]> gcc.gnu.org Git - gcc.git/blob - libgfortran/configure
configure.ac: Add description to AC_DEFINE in GCC_CHECK_MATH_FUNC.
[gcc.git] / libgfortran / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
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.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_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.
43 if 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 --'
47 elif (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'
50 else
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'
70 fi
71
72 # The user is always right.
73 if 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 }
79 fi
80
81
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.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
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
99 IFS=$as_save_IFS
100
101 ;;
102 esac
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.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
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.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if 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
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test 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
172 test \$(( 1 + 1 )) = 2 || exit 1
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\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
185 fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
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
206 fi
207 fi
208 done;;
209 esac
210 as_found=false
211 done
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
215 fi; }
216 IFS=$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+"$@"}
228 fi
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."
236 else
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."
241 fi
242 exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260 { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_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.
275 as_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.
285 as_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.
335 if (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 }'
340 else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345 fi # 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.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357 else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362 fi # 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.
370 as_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
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
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'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
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 |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
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; }
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
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `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';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
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'
491 fi
492 else
493 as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
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 '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_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.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME='GNU Fortran Runtime Library'
558 PACKAGE_TARNAME='libgfortran'
559 PACKAGE_VERSION='0.3'
560 PACKAGE_STRING='GNU Fortran Runtime Library 0.3'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL='http://www.gnu.org/software/libgfortran/'
563
564 # Factoring default headers for most tests.
565 ac_includes_default="\
566 #include <stdio.h>
567 #ifdef HAVE_SYS_TYPES_H
568 # include <sys/types.h>
569 #endif
570 #ifdef HAVE_SYS_STAT_H
571 # include <sys/stat.h>
572 #endif
573 #ifdef STDC_HEADERS
574 # include <stdlib.h>
575 # include <stddef.h>
576 #else
577 # ifdef HAVE_STDLIB_H
578 # include <stdlib.h>
579 # endif
580 #endif
581 #ifdef HAVE_STRING_H
582 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
583 # include <memory.h>
584 # endif
585 # include <string.h>
586 #endif
587 #ifdef HAVE_STRINGS_H
588 # include <strings.h>
589 #endif
590 #ifdef HAVE_INTTYPES_H
591 # include <inttypes.h>
592 #endif
593 #ifdef HAVE_STDINT_H
594 # include <stdint.h>
595 #endif
596 #ifdef HAVE_UNISTD_H
597 # include <unistd.h>
598 #endif"
599
600 ac_header_list=
601 ac_func_list=
602 ac_c_werror_flag=
603 ac_subst_vars='am__EXEEXT_FALSE
604 am__EXEEXT_TRUE
605 LTLIBOBJS
606 LIBOBJS
607 IEEE_FLAGS
608 FPU_HOST_HEADER
609 LIBGFOR_BUILD_QUAD_FALSE
610 LIBGFOR_BUILD_QUAD_TRUE
611 LIBQUADINCLUDE
612 LIBQUADLIB_DEP
613 LIBQUADLIB
614 LIBQUADSPEC
615 extra_ldflags_libgfortran
616 ac_ct_FC
617 FCFLAGS
618 FC
619 enable_static
620 enable_shared
621 lt_host_flags
622 OTOOL64
623 OTOOL
624 LIPO
625 NMEDIT
626 DSYMUTIL
627 OBJDUMP
628 LN_S
629 NM
630 ac_ct_DUMPBIN
631 DUMPBIN
632 LD
633 FGREP
634 SED
635 LIBTOOL
636 RANLIB
637 AR
638 AS
639 SECTION_FLAGS
640 LIBGFOR_USE_SYMVER_SUN_FALSE
641 LIBGFOR_USE_SYMVER_SUN_TRUE
642 LIBGFOR_USE_SYMVER_GNU_FALSE
643 LIBGFOR_USE_SYMVER_GNU_TRUE
644 LIBGFOR_USE_SYMVER_FALSE
645 LIBGFOR_USE_SYMVER_TRUE
646 AM_CFLAGS
647 AM_FCFLAGS
648 toolexeclibdir
649 toolexecdir
650 EGREP
651 GREP
652 CPP
653 am__fastdepCC_FALSE
654 am__fastdepCC_TRUE
655 CCDEPMODE
656 AMDEPBACKSLASH
657 AMDEP_FALSE
658 AMDEP_TRUE
659 am__quote
660 am__include
661 DEPDIR
662 OBJEXT
663 EXEEXT
664 ac_ct_CC
665 CPPFLAGS
666 LDFLAGS
667 CFLAGS
668 CC
669 multi_basedir
670 MAINT
671 MAINTAINER_MODE_FALSE
672 MAINTAINER_MODE_TRUE
673 am__untar
674 am__tar
675 AMTAR
676 am__leading_dot
677 SET_MAKE
678 AWK
679 mkdir_p
680 MKDIR_P
681 INSTALL_STRIP_PROGRAM
682 STRIP
683 install_sh
684 MAKEINFO
685 AUTOHEADER
686 AUTOMAKE
687 AUTOCONF
688 ACLOCAL
689 VERSION
690 PACKAGE
691 CYGPATH_W
692 am__isrc
693 INSTALL_DATA
694 INSTALL_SCRIPT
695 INSTALL_PROGRAM
696 target_noncanonical
697 target_os
698 target_vendor
699 target_cpu
700 target
701 host_os
702 host_vendor
703 host_cpu
704 host
705 onestep
706 onestep_FALSE
707 onestep_TRUE
708 target_subdir
709 host_subdir
710 build_subdir
711 build_libsubdir
712 build_os
713 build_vendor
714 build_cpu
715 build
716 target_alias
717 host_alias
718 build_alias
719 LIBS
720 ECHO_T
721 ECHO_N
722 ECHO_C
723 DEFS
724 mandir
725 localedir
726 libdir
727 psdir
728 pdfdir
729 dvidir
730 htmldir
731 infodir
732 docdir
733 oldincludedir
734 includedir
735 localstatedir
736 sharedstatedir
737 sysconfdir
738 datadir
739 datarootdir
740 libexecdir
741 sbindir
742 bindir
743 program_transform_name
744 prefix
745 exec_prefix
746 PACKAGE_URL
747 PACKAGE_BUGREPORT
748 PACKAGE_STRING
749 PACKAGE_VERSION
750 PACKAGE_TARNAME
751 PACKAGE_NAME
752 PATH_SEPARATOR
753 SHELL'
754 ac_subst_files=''
755 ac_user_opts='
756 enable_option_checking
757 with_build_libsubdir
758 enable_version_specific_runtime_libs
759 enable_intermodule
760 enable_maintainer_mode
761 enable_multilib
762 enable_dependency_tracking
763 enable_symvers
764 enable_shared
765 enable_static
766 with_pic
767 enable_fast_install
768 with_gnu_ld
769 enable_libtool_lock
770 enable_largefile
771 enable_libquadmath_support
772 with_system_libunwind
773 '
774 ac_precious_vars='build_alias
775 host_alias
776 target_alias
777 CC
778 CFLAGS
779 LDFLAGS
780 LIBS
781 CPPFLAGS
782 CPP
783 FC
784 FCFLAGS'
785
786
787 # Initialize some variables set by options.
788 ac_init_help=
789 ac_init_version=false
790 ac_unrecognized_opts=
791 ac_unrecognized_sep=
792 # The variables have the same names as the options, with
793 # dashes changed to underlines.
794 cache_file=/dev/null
795 exec_prefix=NONE
796 no_create=
797 no_recursion=
798 prefix=NONE
799 program_prefix=NONE
800 program_suffix=NONE
801 program_transform_name=s,x,x,
802 silent=
803 site=
804 srcdir=
805 verbose=
806 x_includes=NONE
807 x_libraries=NONE
808
809 # Installation directory options.
810 # These are left unexpanded so users can "make install exec_prefix=/foo"
811 # and all the variables that are supposed to be based on exec_prefix
812 # by default will actually change.
813 # Use braces instead of parens because sh, perl, etc. also accept them.
814 # (The list follows the same order as the GNU Coding Standards.)
815 bindir='${exec_prefix}/bin'
816 sbindir='${exec_prefix}/sbin'
817 libexecdir='${exec_prefix}/libexec'
818 datarootdir='${prefix}/share'
819 datadir='${datarootdir}'
820 sysconfdir='${prefix}/etc'
821 sharedstatedir='${prefix}/com'
822 localstatedir='${prefix}/var'
823 includedir='${prefix}/include'
824 oldincludedir='/usr/include'
825 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
826 infodir='${datarootdir}/info'
827 htmldir='${docdir}'
828 dvidir='${docdir}'
829 pdfdir='${docdir}'
830 psdir='${docdir}'
831 libdir='${exec_prefix}/lib'
832 localedir='${datarootdir}/locale'
833 mandir='${datarootdir}/man'
834
835 ac_prev=
836 ac_dashdash=
837 for ac_option
838 do
839 # If the previous option needs an argument, assign it.
840 if test -n "$ac_prev"; then
841 eval $ac_prev=\$ac_option
842 ac_prev=
843 continue
844 fi
845
846 case $ac_option in
847 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
848 *) ac_optarg=yes ;;
849 esac
850
851 # Accept the important Cygnus configure options, so we can diagnose typos.
852
853 case $ac_dashdash$ac_option in
854 --)
855 ac_dashdash=yes ;;
856
857 -bindir | --bindir | --bindi | --bind | --bin | --bi)
858 ac_prev=bindir ;;
859 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
860 bindir=$ac_optarg ;;
861
862 -build | --build | --buil | --bui | --bu)
863 ac_prev=build_alias ;;
864 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
865 build_alias=$ac_optarg ;;
866
867 -cache-file | --cache-file | --cache-fil | --cache-fi \
868 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
869 ac_prev=cache_file ;;
870 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
871 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
872 cache_file=$ac_optarg ;;
873
874 --config-cache | -C)
875 cache_file=config.cache ;;
876
877 -datadir | --datadir | --datadi | --datad)
878 ac_prev=datadir ;;
879 -datadir=* | --datadir=* | --datadi=* | --datad=*)
880 datadir=$ac_optarg ;;
881
882 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
883 | --dataroo | --dataro | --datar)
884 ac_prev=datarootdir ;;
885 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
886 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
887 datarootdir=$ac_optarg ;;
888
889 -disable-* | --disable-*)
890 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
891 # Reject names that are not valid shell variable names.
892 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
893 as_fn_error "invalid feature name: $ac_useropt"
894 ac_useropt_orig=$ac_useropt
895 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
896 case $ac_user_opts in
897 *"
898 "enable_$ac_useropt"
899 "*) ;;
900 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
901 ac_unrecognized_sep=', ';;
902 esac
903 eval enable_$ac_useropt=no ;;
904
905 -docdir | --docdir | --docdi | --doc | --do)
906 ac_prev=docdir ;;
907 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
908 docdir=$ac_optarg ;;
909
910 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
911 ac_prev=dvidir ;;
912 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
913 dvidir=$ac_optarg ;;
914
915 -enable-* | --enable-*)
916 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
917 # Reject names that are not valid shell variable names.
918 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
919 as_fn_error "invalid feature name: $ac_useropt"
920 ac_useropt_orig=$ac_useropt
921 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
922 case $ac_user_opts in
923 *"
924 "enable_$ac_useropt"
925 "*) ;;
926 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
927 ac_unrecognized_sep=', ';;
928 esac
929 eval enable_$ac_useropt=\$ac_optarg ;;
930
931 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
932 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
933 | --exec | --exe | --ex)
934 ac_prev=exec_prefix ;;
935 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
936 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
937 | --exec=* | --exe=* | --ex=*)
938 exec_prefix=$ac_optarg ;;
939
940 -gas | --gas | --ga | --g)
941 # Obsolete; use --with-gas.
942 with_gas=yes ;;
943
944 -help | --help | --hel | --he | -h)
945 ac_init_help=long ;;
946 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
947 ac_init_help=recursive ;;
948 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
949 ac_init_help=short ;;
950
951 -host | --host | --hos | --ho)
952 ac_prev=host_alias ;;
953 -host=* | --host=* | --hos=* | --ho=*)
954 host_alias=$ac_optarg ;;
955
956 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
957 ac_prev=htmldir ;;
958 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
959 | --ht=*)
960 htmldir=$ac_optarg ;;
961
962 -includedir | --includedir | --includedi | --included | --include \
963 | --includ | --inclu | --incl | --inc)
964 ac_prev=includedir ;;
965 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
966 | --includ=* | --inclu=* | --incl=* | --inc=*)
967 includedir=$ac_optarg ;;
968
969 -infodir | --infodir | --infodi | --infod | --info | --inf)
970 ac_prev=infodir ;;
971 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
972 infodir=$ac_optarg ;;
973
974 -libdir | --libdir | --libdi | --libd)
975 ac_prev=libdir ;;
976 -libdir=* | --libdir=* | --libdi=* | --libd=*)
977 libdir=$ac_optarg ;;
978
979 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
980 | --libexe | --libex | --libe)
981 ac_prev=libexecdir ;;
982 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
983 | --libexe=* | --libex=* | --libe=*)
984 libexecdir=$ac_optarg ;;
985
986 -localedir | --localedir | --localedi | --localed | --locale)
987 ac_prev=localedir ;;
988 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
989 localedir=$ac_optarg ;;
990
991 -localstatedir | --localstatedir | --localstatedi | --localstated \
992 | --localstate | --localstat | --localsta | --localst | --locals)
993 ac_prev=localstatedir ;;
994 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
995 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
996 localstatedir=$ac_optarg ;;
997
998 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
999 ac_prev=mandir ;;
1000 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1001 mandir=$ac_optarg ;;
1002
1003 -nfp | --nfp | --nf)
1004 # Obsolete; use --without-fp.
1005 with_fp=no ;;
1006
1007 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1008 | --no-cr | --no-c | -n)
1009 no_create=yes ;;
1010
1011 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1012 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1013 no_recursion=yes ;;
1014
1015 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1016 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1017 | --oldin | --oldi | --old | --ol | --o)
1018 ac_prev=oldincludedir ;;
1019 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1020 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1021 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1022 oldincludedir=$ac_optarg ;;
1023
1024 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1025 ac_prev=prefix ;;
1026 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1027 prefix=$ac_optarg ;;
1028
1029 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1030 | --program-pre | --program-pr | --program-p)
1031 ac_prev=program_prefix ;;
1032 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1033 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1034 program_prefix=$ac_optarg ;;
1035
1036 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1037 | --program-suf | --program-su | --program-s)
1038 ac_prev=program_suffix ;;
1039 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1040 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1041 program_suffix=$ac_optarg ;;
1042
1043 -program-transform-name | --program-transform-name \
1044 | --program-transform-nam | --program-transform-na \
1045 | --program-transform-n | --program-transform- \
1046 | --program-transform | --program-transfor \
1047 | --program-transfo | --program-transf \
1048 | --program-trans | --program-tran \
1049 | --progr-tra | --program-tr | --program-t)
1050 ac_prev=program_transform_name ;;
1051 -program-transform-name=* | --program-transform-name=* \
1052 | --program-transform-nam=* | --program-transform-na=* \
1053 | --program-transform-n=* | --program-transform-=* \
1054 | --program-transform=* | --program-transfor=* \
1055 | --program-transfo=* | --program-transf=* \
1056 | --program-trans=* | --program-tran=* \
1057 | --progr-tra=* | --program-tr=* | --program-t=*)
1058 program_transform_name=$ac_optarg ;;
1059
1060 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1061 ac_prev=pdfdir ;;
1062 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1063 pdfdir=$ac_optarg ;;
1064
1065 -psdir | --psdir | --psdi | --psd | --ps)
1066 ac_prev=psdir ;;
1067 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1068 psdir=$ac_optarg ;;
1069
1070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071 | -silent | --silent | --silen | --sile | --sil)
1072 silent=yes ;;
1073
1074 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1075 ac_prev=sbindir ;;
1076 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1077 | --sbi=* | --sb=*)
1078 sbindir=$ac_optarg ;;
1079
1080 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1081 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1082 | --sharedst | --shareds | --shared | --share | --shar \
1083 | --sha | --sh)
1084 ac_prev=sharedstatedir ;;
1085 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1086 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1087 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1088 | --sha=* | --sh=*)
1089 sharedstatedir=$ac_optarg ;;
1090
1091 -site | --site | --sit)
1092 ac_prev=site ;;
1093 -site=* | --site=* | --sit=*)
1094 site=$ac_optarg ;;
1095
1096 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1097 ac_prev=srcdir ;;
1098 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1099 srcdir=$ac_optarg ;;
1100
1101 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1102 | --syscon | --sysco | --sysc | --sys | --sy)
1103 ac_prev=sysconfdir ;;
1104 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1105 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1106 sysconfdir=$ac_optarg ;;
1107
1108 -target | --target | --targe | --targ | --tar | --ta | --t)
1109 ac_prev=target_alias ;;
1110 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1111 target_alias=$ac_optarg ;;
1112
1113 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1114 verbose=yes ;;
1115
1116 -version | --version | --versio | --versi | --vers | -V)
1117 ac_init_version=: ;;
1118
1119 -with-* | --with-*)
1120 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1121 # Reject names that are not valid shell variable names.
1122 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123 as_fn_error "invalid package name: $ac_useropt"
1124 ac_useropt_orig=$ac_useropt
1125 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126 case $ac_user_opts in
1127 *"
1128 "with_$ac_useropt"
1129 "*) ;;
1130 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1131 ac_unrecognized_sep=', ';;
1132 esac
1133 eval with_$ac_useropt=\$ac_optarg ;;
1134
1135 -without-* | --without-*)
1136 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139 as_fn_error "invalid package name: $ac_useropt"
1140 ac_useropt_orig=$ac_useropt
1141 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142 case $ac_user_opts in
1143 *"
1144 "with_$ac_useropt"
1145 "*) ;;
1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1147 ac_unrecognized_sep=', ';;
1148 esac
1149 eval with_$ac_useropt=no ;;
1150
1151 --x)
1152 # Obsolete; use --with-x.
1153 with_x=yes ;;
1154
1155 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1156 | --x-incl | --x-inc | --x-in | --x-i)
1157 ac_prev=x_includes ;;
1158 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1159 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1160 x_includes=$ac_optarg ;;
1161
1162 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1163 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1164 ac_prev=x_libraries ;;
1165 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1166 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1167 x_libraries=$ac_optarg ;;
1168
1169 -*) as_fn_error "unrecognized option: \`$ac_option'
1170 Try \`$0 --help' for more information."
1171 ;;
1172
1173 *=*)
1174 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1175 # Reject names that are not valid shell variable names.
1176 case $ac_envvar in #(
1177 '' | [0-9]* | *[!_$as_cr_alnum]* )
1178 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1179 esac
1180 eval $ac_envvar=\$ac_optarg
1181 export $ac_envvar ;;
1182
1183 *)
1184 # FIXME: should be removed in autoconf 3.0.
1185 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1186 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1188 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1189 ;;
1190
1191 esac
1192 done
1193
1194 if test -n "$ac_prev"; then
1195 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1196 as_fn_error "missing argument to $ac_option"
1197 fi
1198
1199 if test -n "$ac_unrecognized_opts"; then
1200 case $enable_option_checking in
1201 no) ;;
1202 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1203 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1204 esac
1205 fi
1206
1207 # Check all directory arguments for consistency.
1208 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1209 datadir sysconfdir sharedstatedir localstatedir includedir \
1210 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1211 libdir localedir mandir
1212 do
1213 eval ac_val=\$$ac_var
1214 # Remove trailing slashes.
1215 case $ac_val in
1216 */ )
1217 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1218 eval $ac_var=\$ac_val;;
1219 esac
1220 # Be sure to have absolute directory names.
1221 case $ac_val in
1222 [\\/$]* | ?:[\\/]* ) continue;;
1223 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1224 esac
1225 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1226 done
1227
1228 # There might be people who depend on the old broken behavior: `$host'
1229 # used to hold the argument of --host etc.
1230 # FIXME: To remove some day.
1231 build=$build_alias
1232 host=$host_alias
1233 target=$target_alias
1234
1235 # FIXME: To remove some day.
1236 if test "x$host_alias" != x; then
1237 if test "x$build_alias" = x; then
1238 cross_compiling=maybe
1239 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1240 If a cross compiler is detected then cross compile mode will be used." >&2
1241 elif test "x$build_alias" != "x$host_alias"; then
1242 cross_compiling=yes
1243 fi
1244 fi
1245
1246 ac_tool_prefix=
1247 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1248
1249 test "$silent" = yes && exec 6>/dev/null
1250
1251
1252 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1253 ac_ls_di=`ls -di .` &&
1254 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1255 as_fn_error "working directory cannot be determined"
1256 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1257 as_fn_error "pwd does not report name of working directory"
1258
1259
1260 # Find the source files, if location was not specified.
1261 if test -z "$srcdir"; then
1262 ac_srcdir_defaulted=yes
1263 # Try the directory containing this script, then the parent directory.
1264 ac_confdir=`$as_dirname -- "$as_myself" ||
1265 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1266 X"$as_myself" : 'X\(//\)[^/]' \| \
1267 X"$as_myself" : 'X\(//\)$' \| \
1268 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1269 $as_echo X"$as_myself" |
1270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1271 s//\1/
1272 q
1273 }
1274 /^X\(\/\/\)[^/].*/{
1275 s//\1/
1276 q
1277 }
1278 /^X\(\/\/\)$/{
1279 s//\1/
1280 q
1281 }
1282 /^X\(\/\).*/{
1283 s//\1/
1284 q
1285 }
1286 s/.*/./; q'`
1287 srcdir=$ac_confdir
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1289 srcdir=..
1290 fi
1291 else
1292 ac_srcdir_defaulted=no
1293 fi
1294 if test ! -r "$srcdir/$ac_unique_file"; then
1295 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1296 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1297 fi
1298 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1299 ac_abs_confdir=`(
1300 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1301 pwd)`
1302 # When building in place, set srcdir=.
1303 if test "$ac_abs_confdir" = "$ac_pwd"; then
1304 srcdir=.
1305 fi
1306 # Remove unnecessary trailing slashes from srcdir.
1307 # Double slashes in file names in object file debugging info
1308 # mess up M-x gdb in Emacs.
1309 case $srcdir in
1310 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1311 esac
1312 for ac_var in $ac_precious_vars; do
1313 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1314 eval ac_env_${ac_var}_value=\$${ac_var}
1315 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1316 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1317 done
1318
1319 #
1320 # Report the --help message.
1321 #
1322 if test "$ac_init_help" = "long"; then
1323 # Omit some internal or obsolete options to make the list less imposing.
1324 # This message is too long to be a string in the A/UX 3.1 sh.
1325 cat <<_ACEOF
1326 \`configure' configures GNU Fortran Runtime Library 0.3 to adapt to many kinds of systems.
1327
1328 Usage: $0 [OPTION]... [VAR=VALUE]...
1329
1330 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1331 VAR=VALUE. See below for descriptions of some of the useful variables.
1332
1333 Defaults for the options are specified in brackets.
1334
1335 Configuration:
1336 -h, --help display this help and exit
1337 --help=short display options specific to this package
1338 --help=recursive display the short help of all the included packages
1339 -V, --version display version information and exit
1340 -q, --quiet, --silent do not print \`checking...' messages
1341 --cache-file=FILE cache test results in FILE [disabled]
1342 -C, --config-cache alias for \`--cache-file=config.cache'
1343 -n, --no-create do not create output files
1344 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1345
1346 Installation directories:
1347 --prefix=PREFIX install architecture-independent files in PREFIX
1348 [$ac_default_prefix]
1349 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1350 [PREFIX]
1351
1352 By default, \`make install' will install all the files in
1353 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1354 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1355 for instance \`--prefix=\$HOME'.
1356
1357 For better control, use the options below.
1358
1359 Fine tuning of the installation directories:
1360 --bindir=DIR user executables [EPREFIX/bin]
1361 --sbindir=DIR system admin executables [EPREFIX/sbin]
1362 --libexecdir=DIR program executables [EPREFIX/libexec]
1363 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1364 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1365 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1366 --libdir=DIR object code libraries [EPREFIX/lib]
1367 --includedir=DIR C header files [PREFIX/include]
1368 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1369 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1370 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1371 --infodir=DIR info documentation [DATAROOTDIR/info]
1372 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1373 --mandir=DIR man documentation [DATAROOTDIR/man]
1374 --docdir=DIR documentation root [DATAROOTDIR/doc/libgfortran]
1375 --htmldir=DIR html documentation [DOCDIR]
1376 --dvidir=DIR dvi documentation [DOCDIR]
1377 --pdfdir=DIR pdf documentation [DOCDIR]
1378 --psdir=DIR ps documentation [DOCDIR]
1379 _ACEOF
1380
1381 cat <<\_ACEOF
1382
1383 Program names:
1384 --program-prefix=PREFIX prepend PREFIX to installed program names
1385 --program-suffix=SUFFIX append SUFFIX to installed program names
1386 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1387
1388 System types:
1389 --build=BUILD configure for building on BUILD [guessed]
1390 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1391 --target=TARGET configure for building compilers for TARGET [HOST]
1392 _ACEOF
1393 fi
1394
1395 if test -n "$ac_init_help"; then
1396 case $ac_init_help in
1397 short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.3:";;
1398 esac
1399 cat <<\_ACEOF
1400
1401 Optional Features:
1402 --disable-option-checking ignore unrecognized --enable/--with options
1403 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1404 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1405 --enable-version-specific-runtime-libs
1406 specify that runtime libraries should be installed
1407 in a compiler-specific directory
1408 --enable-intermodule build the library in one step
1409 --enable-maintainer-mode enable make rules and dependencies not useful
1410 (and sometimes confusing) to the casual installer
1411 --enable-multilib build many library versions (default)
1412 --disable-dependency-tracking speeds up one-time build
1413 --enable-dependency-tracking do not reject slow dependency extractors
1414 --disable-symvers disable symbol versioning for libgfortran
1415 --enable-shared[=PKGS] build shared libraries [default=yes]
1416 --enable-static[=PKGS] build static libraries [default=yes]
1417 --enable-fast-install[=PKGS]
1418 optimize for fast installation [default=yes]
1419 --disable-libtool-lock avoid locking (might break parallel builds)
1420 --disable-largefile omit support for large files
1421 --disable-libquadmath-support
1422 disable libquadmath support for Fortran
1423
1424 Optional Packages:
1425 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1426 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1427 --with-build-libsubdir=DIR Directory where to find libraries for build system
1428 --with-pic try to use only PIC/non-PIC objects [default=use
1429 both]
1430 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1431 --with-system-libunwind use installed libunwind
1432
1433 Some influential environment variables:
1434 CC C compiler command
1435 CFLAGS C compiler flags
1436 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1437 nonstandard directory <lib dir>
1438 LIBS libraries to pass to the linker, e.g. -l<library>
1439 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1440 you have headers in a nonstandard directory <include dir>
1441 CPP C preprocessor
1442 FC Fortran compiler command
1443 FCFLAGS Fortran compiler flags
1444
1445 Use these variables to override the choices made by `configure' or to help
1446 it to find libraries and programs with nonstandard names/locations.
1447
1448 Report bugs to the package provider.
1449 GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
1450 General help using GNU software: <http://www.gnu.org/gethelp/>.
1451 _ACEOF
1452 ac_status=$?
1453 fi
1454
1455 if test "$ac_init_help" = "recursive"; then
1456 # If there are subdirs, report their specific --help.
1457 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1458 test -d "$ac_dir" ||
1459 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1460 continue
1461 ac_builddir=.
1462
1463 case "$ac_dir" in
1464 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1465 *)
1466 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1467 # A ".." for each directory in $ac_dir_suffix.
1468 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1469 case $ac_top_builddir_sub in
1470 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1472 esac ;;
1473 esac
1474 ac_abs_top_builddir=$ac_pwd
1475 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1476 # for backward compatibility:
1477 ac_top_builddir=$ac_top_build_prefix
1478
1479 case $srcdir in
1480 .) # We are building in place.
1481 ac_srcdir=.
1482 ac_top_srcdir=$ac_top_builddir_sub
1483 ac_abs_top_srcdir=$ac_pwd ;;
1484 [\\/]* | ?:[\\/]* ) # Absolute name.
1485 ac_srcdir=$srcdir$ac_dir_suffix;
1486 ac_top_srcdir=$srcdir
1487 ac_abs_top_srcdir=$srcdir ;;
1488 *) # Relative name.
1489 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1490 ac_top_srcdir=$ac_top_build_prefix$srcdir
1491 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1492 esac
1493 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1494
1495 cd "$ac_dir" || { ac_status=$?; continue; }
1496 # Check for guested configure.
1497 if test -f "$ac_srcdir/configure.gnu"; then
1498 echo &&
1499 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1500 elif test -f "$ac_srcdir/configure"; then
1501 echo &&
1502 $SHELL "$ac_srcdir/configure" --help=recursive
1503 else
1504 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1505 fi || ac_status=$?
1506 cd "$ac_pwd" || { ac_status=$?; break; }
1507 done
1508 fi
1509
1510 test -n "$ac_init_help" && exit $ac_status
1511 if $ac_init_version; then
1512 cat <<\_ACEOF
1513 GNU Fortran Runtime Library configure 0.3
1514 generated by GNU Autoconf 2.64
1515
1516 Copyright (C) 2009 Free Software Foundation, Inc.
1517 This configure script is free software; the Free Software Foundation
1518 gives unlimited permission to copy, distribute and modify it.
1519 _ACEOF
1520 exit
1521 fi
1522
1523 ## ------------------------ ##
1524 ## Autoconf initialization. ##
1525 ## ------------------------ ##
1526
1527 # ac_fn_c_try_compile LINENO
1528 # --------------------------
1529 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1530 ac_fn_c_try_compile ()
1531 {
1532 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1533 rm -f conftest.$ac_objext
1534 if { { ac_try="$ac_compile"
1535 case "(($ac_try" in
1536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1537 *) ac_try_echo=$ac_try;;
1538 esac
1539 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1540 $as_echo "$ac_try_echo"; } >&5
1541 (eval "$ac_compile") 2>conftest.err
1542 ac_status=$?
1543 if test -s conftest.err; then
1544 grep -v '^ *+' conftest.err >conftest.er1
1545 cat conftest.er1 >&5
1546 mv -f conftest.er1 conftest.err
1547 fi
1548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1549 test $ac_status = 0; } && {
1550 test -z "$ac_c_werror_flag" ||
1551 test ! -s conftest.err
1552 } && test -s conftest.$ac_objext; then :
1553 ac_retval=0
1554 else
1555 $as_echo "$as_me: failed program was:" >&5
1556 sed 's/^/| /' conftest.$ac_ext >&5
1557
1558 ac_retval=1
1559 fi
1560 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1561 return $ac_retval
1562
1563 } # ac_fn_c_try_compile
1564
1565 # ac_fn_c_try_cpp LINENO
1566 # ----------------------
1567 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1568 ac_fn_c_try_cpp ()
1569 {
1570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1571 if { { ac_try="$ac_cpp conftest.$ac_ext"
1572 case "(($ac_try" in
1573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1574 *) ac_try_echo=$ac_try;;
1575 esac
1576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577 $as_echo "$ac_try_echo"; } >&5
1578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1579 ac_status=$?
1580 if test -s conftest.err; then
1581 grep -v '^ *+' conftest.err >conftest.er1
1582 cat conftest.er1 >&5
1583 mv -f conftest.er1 conftest.err
1584 fi
1585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586 test $ac_status = 0; } >/dev/null && {
1587 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1588 test ! -s conftest.err
1589 }; then :
1590 ac_retval=0
1591 else
1592 $as_echo "$as_me: failed program was:" >&5
1593 sed 's/^/| /' conftest.$ac_ext >&5
1594
1595 ac_retval=1
1596 fi
1597 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1598 return $ac_retval
1599
1600 } # ac_fn_c_try_cpp
1601
1602 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1603 # -------------------------------------------------------
1604 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1605 # the include files in INCLUDES and setting the cache variable VAR
1606 # accordingly.
1607 ac_fn_c_check_header_mongrel ()
1608 {
1609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1612 $as_echo_n "checking for $2... " >&6; }
1613 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1614 $as_echo_n "(cached) " >&6
1615 fi
1616 eval ac_res=\$$3
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1618 $as_echo "$ac_res" >&6; }
1619 else
1620 # Is the header compilable?
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1622 $as_echo_n "checking $2 usability... " >&6; }
1623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1624 /* end confdefs.h. */
1625 $4
1626 #include <$2>
1627 _ACEOF
1628 if ac_fn_c_try_compile "$LINENO"; then :
1629 ac_header_compiler=yes
1630 else
1631 ac_header_compiler=no
1632 fi
1633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1635 $as_echo "$ac_header_compiler" >&6; }
1636
1637 # Is the header present?
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1639 $as_echo_n "checking $2 presence... " >&6; }
1640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1641 /* end confdefs.h. */
1642 #include <$2>
1643 _ACEOF
1644 if ac_fn_c_try_cpp "$LINENO"; then :
1645 ac_header_preproc=yes
1646 else
1647 ac_header_preproc=no
1648 fi
1649 rm -f conftest.err conftest.$ac_ext
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1651 $as_echo "$ac_header_preproc" >&6; }
1652
1653 # So? What about this header?
1654 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1655 yes:no: )
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1657 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1659 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1660 ;;
1661 no:yes:* )
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1663 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1665 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1667 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1669 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1671 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1672 ;;
1673 esac
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1675 $as_echo_n "checking for $2... " >&6; }
1676 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1677 $as_echo_n "(cached) " >&6
1678 else
1679 eval "$3=\$ac_header_compiler"
1680 fi
1681 eval ac_res=\$$3
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1683 $as_echo "$ac_res" >&6; }
1684 fi
1685 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1686
1687 } # ac_fn_c_check_header_mongrel
1688
1689 # ac_fn_c_try_run LINENO
1690 # ----------------------
1691 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1692 # that executables *can* be run.
1693 ac_fn_c_try_run ()
1694 {
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 if { { ac_try="$ac_link"
1697 case "(($ac_try" in
1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1700 esac
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 $as_echo "$ac_try_echo"; } >&5
1703 (eval "$ac_link") 2>&5
1704 ac_status=$?
1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1707 { { case "(($ac_try" in
1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709 *) ac_try_echo=$ac_try;;
1710 esac
1711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712 $as_echo "$ac_try_echo"; } >&5
1713 (eval "$ac_try") 2>&5
1714 ac_status=$?
1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716 test $ac_status = 0; }; }; then :
1717 ac_retval=0
1718 else
1719 $as_echo "$as_me: program exited with status $ac_status" >&5
1720 $as_echo "$as_me: failed program was:" >&5
1721 sed 's/^/| /' conftest.$ac_ext >&5
1722
1723 ac_retval=$ac_status
1724 fi
1725 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1726 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1727 return $ac_retval
1728
1729 } # ac_fn_c_try_run
1730
1731 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1732 # -------------------------------------------------------
1733 # Tests whether HEADER exists and can be compiled using the include files in
1734 # INCLUDES, setting the cache variable VAR accordingly.
1735 ac_fn_c_check_header_compile ()
1736 {
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739 $as_echo_n "checking for $2... " >&6; }
1740 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1741 $as_echo_n "(cached) " >&6
1742 else
1743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744 /* end confdefs.h. */
1745 $4
1746 #include <$2>
1747 _ACEOF
1748 if ac_fn_c_try_compile "$LINENO"; then :
1749 eval "$3=yes"
1750 else
1751 eval "$3=no"
1752 fi
1753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1754 fi
1755 eval ac_res=\$$3
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1757 $as_echo "$ac_res" >&6; }
1758 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1759
1760 } # ac_fn_c_check_header_compile
1761
1762 # ac_fn_c_try_link LINENO
1763 # -----------------------
1764 # Try to link conftest.$ac_ext, and return whether this succeeded.
1765 ac_fn_c_try_link ()
1766 {
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 rm -f conftest.$ac_objext conftest$ac_exeext
1769 if { { ac_try="$ac_link"
1770 case "(($ac_try" in
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1773 esac
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_link") 2>conftest.err
1777 ac_status=$?
1778 if test -s conftest.err; then
1779 grep -v '^ *+' conftest.err >conftest.er1
1780 cat conftest.er1 >&5
1781 mv -f conftest.er1 conftest.err
1782 fi
1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; } && {
1785 test -z "$ac_c_werror_flag" ||
1786 test ! -s conftest.err
1787 } && test -s conftest$ac_exeext && {
1788 test "$cross_compiling" = yes ||
1789 $as_test_x conftest$ac_exeext
1790 }; then :
1791 ac_retval=0
1792 else
1793 $as_echo "$as_me: failed program was:" >&5
1794 sed 's/^/| /' conftest.$ac_ext >&5
1795
1796 ac_retval=1
1797 fi
1798 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1799 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1800 # interfere with the next link command; also delete a directory that is
1801 # left behind by Apple's compiler. We do this before executing the actions.
1802 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1803 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1804 return $ac_retval
1805
1806 } # ac_fn_c_try_link
1807
1808 # ac_fn_c_check_func LINENO FUNC VAR
1809 # ----------------------------------
1810 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1811 ac_fn_c_check_func ()
1812 {
1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1815 $as_echo_n "checking for $2... " >&6; }
1816 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1817 $as_echo_n "(cached) " >&6
1818 else
1819 if test x$gcc_no_link = xyes; then
1820 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1821 fi
1822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1823 /* end confdefs.h. */
1824 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1826 #define $2 innocuous_$2
1827
1828 /* System header to define __stub macros and hopefully few prototypes,
1829 which can conflict with char $2 (); below.
1830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1831 <limits.h> exists even on freestanding compilers. */
1832
1833 #ifdef __STDC__
1834 # include <limits.h>
1835 #else
1836 # include <assert.h>
1837 #endif
1838
1839 #undef $2
1840
1841 /* Override any GCC internal prototype to avoid an error.
1842 Use char because int might match the return type of a GCC
1843 builtin and then its argument prototype would still apply. */
1844 #ifdef __cplusplus
1845 extern "C"
1846 #endif
1847 char $2 ();
1848 /* The GNU C library defines this for functions which it implements
1849 to always fail with ENOSYS. Some functions are actually named
1850 something starting with __ and the normal name is an alias. */
1851 #if defined __stub_$2 || defined __stub___$2
1852 choke me
1853 #endif
1854
1855 int
1856 main ()
1857 {
1858 return $2 ();
1859 ;
1860 return 0;
1861 }
1862 _ACEOF
1863 if ac_fn_c_try_link "$LINENO"; then :
1864 eval "$3=yes"
1865 else
1866 eval "$3=no"
1867 fi
1868 rm -f core conftest.err conftest.$ac_objext \
1869 conftest$ac_exeext conftest.$ac_ext
1870 fi
1871 eval ac_res=\$$3
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1873 $as_echo "$ac_res" >&6; }
1874 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1875
1876 } # ac_fn_c_check_func
1877
1878 # ac_fn_fc_try_compile LINENO
1879 # ---------------------------
1880 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1881 ac_fn_fc_try_compile ()
1882 {
1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884 rm -f conftest.$ac_objext
1885 if { { ac_try="$ac_compile"
1886 case "(($ac_try" in
1887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1888 *) ac_try_echo=$ac_try;;
1889 esac
1890 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1891 $as_echo "$ac_try_echo"; } >&5
1892 (eval "$ac_compile") 2>conftest.err
1893 ac_status=$?
1894 if test -s conftest.err; then
1895 grep -v '^ *+' conftest.err >conftest.er1
1896 cat conftest.er1 >&5
1897 mv -f conftest.er1 conftest.err
1898 fi
1899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1900 test $ac_status = 0; } && {
1901 test -z "$ac_fc_werror_flag" ||
1902 test ! -s conftest.err
1903 } && test -s conftest.$ac_objext; then :
1904 ac_retval=0
1905 else
1906 $as_echo "$as_me: failed program was:" >&5
1907 sed 's/^/| /' conftest.$ac_ext >&5
1908
1909 ac_retval=1
1910 fi
1911 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1912 return $ac_retval
1913
1914 } # ac_fn_fc_try_compile
1915
1916 # ac_fn_fc_try_link LINENO
1917 # ------------------------
1918 # Try to link conftest.$ac_ext, and return whether this succeeded.
1919 ac_fn_fc_try_link ()
1920 {
1921 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922 rm -f conftest.$ac_objext conftest$ac_exeext
1923 if { { ac_try="$ac_link"
1924 case "(($ac_try" in
1925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1926 *) ac_try_echo=$ac_try;;
1927 esac
1928 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1929 $as_echo "$ac_try_echo"; } >&5
1930 (eval "$ac_link") 2>conftest.err
1931 ac_status=$?
1932 if test -s conftest.err; then
1933 grep -v '^ *+' conftest.err >conftest.er1
1934 cat conftest.er1 >&5
1935 mv -f conftest.er1 conftest.err
1936 fi
1937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1938 test $ac_status = 0; } && {
1939 test -z "$ac_fc_werror_flag" ||
1940 test ! -s conftest.err
1941 } && test -s conftest$ac_exeext && {
1942 test "$cross_compiling" = yes ||
1943 $as_test_x conftest$ac_exeext
1944 }; then :
1945 ac_retval=0
1946 else
1947 $as_echo "$as_me: failed program was:" >&5
1948 sed 's/^/| /' conftest.$ac_ext >&5
1949
1950 ac_retval=1
1951 fi
1952 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1953 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1954 # interfere with the next link command; also delete a directory that is
1955 # left behind by Apple's compiler. We do this before executing the actions.
1956 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1957 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1958 return $ac_retval
1959
1960 } # ac_fn_fc_try_link
1961
1962 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1963 # -------------------------------------------
1964 # Tests whether TYPE exists after having included INCLUDES, setting cache
1965 # variable VAR accordingly.
1966 ac_fn_c_check_type ()
1967 {
1968 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1970 $as_echo_n "checking for $2... " >&6; }
1971 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1972 $as_echo_n "(cached) " >&6
1973 else
1974 eval "$3=no"
1975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1976 /* end confdefs.h. */
1977 $4
1978 int
1979 main ()
1980 {
1981 if (sizeof ($2))
1982 return 0;
1983 ;
1984 return 0;
1985 }
1986 _ACEOF
1987 if ac_fn_c_try_compile "$LINENO"; then :
1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989 /* end confdefs.h. */
1990 $4
1991 int
1992 main ()
1993 {
1994 if (sizeof (($2)))
1995 return 0;
1996 ;
1997 return 0;
1998 }
1999 _ACEOF
2000 if ac_fn_c_try_compile "$LINENO"; then :
2001
2002 else
2003 eval "$3=yes"
2004 fi
2005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006 fi
2007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008 fi
2009 eval ac_res=\$$3
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2011 $as_echo "$ac_res" >&6; }
2012 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2013
2014 } # ac_fn_c_check_type
2015
2016 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2017 # --------------------------------------------
2018 # Tries to find the compile-time value of EXPR in a program that includes
2019 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2020 # computed
2021 ac_fn_c_compute_int ()
2022 {
2023 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2024 if test "$cross_compiling" = yes; then
2025 # Depending upon the size, compute the lo and hi bounds.
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h. */
2028 $4
2029 int
2030 main ()
2031 {
2032 static int test_array [1 - 2 * !(($2) >= 0)];
2033 test_array [0] = 0
2034
2035 ;
2036 return 0;
2037 }
2038 _ACEOF
2039 if ac_fn_c_try_compile "$LINENO"; then :
2040 ac_lo=0 ac_mid=0
2041 while :; do
2042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2043 /* end confdefs.h. */
2044 $4
2045 int
2046 main ()
2047 {
2048 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2049 test_array [0] = 0
2050
2051 ;
2052 return 0;
2053 }
2054 _ACEOF
2055 if ac_fn_c_try_compile "$LINENO"; then :
2056 ac_hi=$ac_mid; break
2057 else
2058 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2059 if test $ac_lo -le $ac_mid; then
2060 ac_lo= ac_hi=
2061 break
2062 fi
2063 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2064 fi
2065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2066 done
2067 else
2068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2069 /* end confdefs.h. */
2070 $4
2071 int
2072 main ()
2073 {
2074 static int test_array [1 - 2 * !(($2) < 0)];
2075 test_array [0] = 0
2076
2077 ;
2078 return 0;
2079 }
2080 _ACEOF
2081 if ac_fn_c_try_compile "$LINENO"; then :
2082 ac_hi=-1 ac_mid=-1
2083 while :; do
2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085 /* end confdefs.h. */
2086 $4
2087 int
2088 main ()
2089 {
2090 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2091 test_array [0] = 0
2092
2093 ;
2094 return 0;
2095 }
2096 _ACEOF
2097 if ac_fn_c_try_compile "$LINENO"; then :
2098 ac_lo=$ac_mid; break
2099 else
2100 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2101 if test $ac_mid -le $ac_hi; then
2102 ac_lo= ac_hi=
2103 break
2104 fi
2105 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2106 fi
2107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2108 done
2109 else
2110 ac_lo= ac_hi=
2111 fi
2112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113 fi
2114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2115 # Binary search between lo and hi bounds.
2116 while test "x$ac_lo" != "x$ac_hi"; do
2117 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h. */
2120 $4
2121 int
2122 main ()
2123 {
2124 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2125 test_array [0] = 0
2126
2127 ;
2128 return 0;
2129 }
2130 _ACEOF
2131 if ac_fn_c_try_compile "$LINENO"; then :
2132 ac_hi=$ac_mid
2133 else
2134 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2135 fi
2136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2137 done
2138 case $ac_lo in #((
2139 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2140 '') ac_retval=1 ;;
2141 esac
2142 else
2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144 /* end confdefs.h. */
2145 $4
2146 static long int longval () { return $2; }
2147 static unsigned long int ulongval () { return $2; }
2148 #include <stdio.h>
2149 #include <stdlib.h>
2150 int
2151 main ()
2152 {
2153
2154 FILE *f = fopen ("conftest.val", "w");
2155 if (! f)
2156 return 1;
2157 if (($2) < 0)
2158 {
2159 long int i = longval ();
2160 if (i != ($2))
2161 return 1;
2162 fprintf (f, "%ld", i);
2163 }
2164 else
2165 {
2166 unsigned long int i = ulongval ();
2167 if (i != ($2))
2168 return 1;
2169 fprintf (f, "%lu", i);
2170 }
2171 /* Do not output a trailing newline, as this causes \r\n confusion
2172 on some platforms. */
2173 return ferror (f) || fclose (f) != 0;
2174
2175 ;
2176 return 0;
2177 }
2178 _ACEOF
2179 if ac_fn_c_try_run "$LINENO"; then :
2180 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2181 else
2182 ac_retval=1
2183 fi
2184 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2185 conftest.$ac_objext conftest.beam conftest.$ac_ext
2186 rm -f conftest.val
2187
2188 fi
2189 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2190 return $ac_retval
2191
2192 } # ac_fn_c_compute_int
2193
2194 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2195 # ----------------------------------------------------
2196 # Tries to find if the field MEMBER exists in type AGGR, after including
2197 # INCLUDES, setting cache variable VAR accordingly.
2198 ac_fn_c_check_member ()
2199 {
2200 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2202 $as_echo_n "checking for $2.$3... " >&6; }
2203 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2204 $as_echo_n "(cached) " >&6
2205 else
2206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2207 /* end confdefs.h. */
2208 $5
2209 int
2210 main ()
2211 {
2212 static $2 ac_aggr;
2213 if (ac_aggr.$3)
2214 return 0;
2215 ;
2216 return 0;
2217 }
2218 _ACEOF
2219 if ac_fn_c_try_compile "$LINENO"; then :
2220 eval "$4=yes"
2221 else
2222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2223 /* end confdefs.h. */
2224 $5
2225 int
2226 main ()
2227 {
2228 static $2 ac_aggr;
2229 if (sizeof ac_aggr.$3)
2230 return 0;
2231 ;
2232 return 0;
2233 }
2234 _ACEOF
2235 if ac_fn_c_try_compile "$LINENO"; then :
2236 eval "$4=yes"
2237 else
2238 eval "$4=no"
2239 fi
2240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2241 fi
2242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2243 fi
2244 eval ac_res=\$$4
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2246 $as_echo "$ac_res" >&6; }
2247 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2248
2249 } # ac_fn_c_check_member
2250 cat >config.log <<_ACEOF
2251 This file contains any messages produced by compilers while
2252 running configure, to aid debugging if configure makes a mistake.
2253
2254 It was created by GNU Fortran Runtime Library $as_me 0.3, which was
2255 generated by GNU Autoconf 2.64. Invocation command line was
2256
2257 $ $0 $@
2258
2259 _ACEOF
2260 exec 5>>config.log
2261 {
2262 cat <<_ASUNAME
2263 ## --------- ##
2264 ## Platform. ##
2265 ## --------- ##
2266
2267 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2268 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2269 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2270 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2271 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2272
2273 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2274 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2275
2276 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2277 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2278 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2279 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2280 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2281 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2282 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2283
2284 _ASUNAME
2285
2286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2287 for as_dir in $PATH
2288 do
2289 IFS=$as_save_IFS
2290 test -z "$as_dir" && as_dir=.
2291 $as_echo "PATH: $as_dir"
2292 done
2293 IFS=$as_save_IFS
2294
2295 } >&5
2296
2297 cat >&5 <<_ACEOF
2298
2299
2300 ## ----------- ##
2301 ## Core tests. ##
2302 ## ----------- ##
2303
2304 _ACEOF
2305
2306
2307 # Keep a trace of the command line.
2308 # Strip out --no-create and --no-recursion so they do not pile up.
2309 # Strip out --silent because we don't want to record it for future runs.
2310 # Also quote any args containing shell meta-characters.
2311 # Make two passes to allow for proper duplicate-argument suppression.
2312 ac_configure_args=
2313 ac_configure_args0=
2314 ac_configure_args1=
2315 ac_must_keep_next=false
2316 for ac_pass in 1 2
2317 do
2318 for ac_arg
2319 do
2320 case $ac_arg in
2321 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2322 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2323 | -silent | --silent | --silen | --sile | --sil)
2324 continue ;;
2325 *\'*)
2326 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2327 esac
2328 case $ac_pass in
2329 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2330 2)
2331 as_fn_append ac_configure_args1 " '$ac_arg'"
2332 if test $ac_must_keep_next = true; then
2333 ac_must_keep_next=false # Got value, back to normal.
2334 else
2335 case $ac_arg in
2336 *=* | --config-cache | -C | -disable-* | --disable-* \
2337 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2338 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2339 | -with-* | --with-* | -without-* | --without-* | --x)
2340 case "$ac_configure_args0 " in
2341 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2342 esac
2343 ;;
2344 -* ) ac_must_keep_next=true ;;
2345 esac
2346 fi
2347 as_fn_append ac_configure_args " '$ac_arg'"
2348 ;;
2349 esac
2350 done
2351 done
2352 { ac_configure_args0=; unset ac_configure_args0;}
2353 { ac_configure_args1=; unset ac_configure_args1;}
2354
2355 # When interrupted or exit'd, cleanup temporary files, and complete
2356 # config.log. We remove comments because anyway the quotes in there
2357 # would cause problems or look ugly.
2358 # WARNING: Use '\'' to represent an apostrophe within the trap.
2359 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2360 trap 'exit_status=$?
2361 # Save into config.log some information that might help in debugging.
2362 {
2363 echo
2364
2365 cat <<\_ASBOX
2366 ## ---------------- ##
2367 ## Cache variables. ##
2368 ## ---------------- ##
2369 _ASBOX
2370 echo
2371 # The following way of writing the cache mishandles newlines in values,
2372 (
2373 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2374 eval ac_val=\$$ac_var
2375 case $ac_val in #(
2376 *${as_nl}*)
2377 case $ac_var in #(
2378 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2379 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2380 esac
2381 case $ac_var in #(
2382 _ | IFS | as_nl) ;; #(
2383 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2384 *) { eval $ac_var=; unset $ac_var;} ;;
2385 esac ;;
2386 esac
2387 done
2388 (set) 2>&1 |
2389 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2390 *${as_nl}ac_space=\ *)
2391 sed -n \
2392 "s/'\''/'\''\\\\'\'''\''/g;
2393 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2394 ;; #(
2395 *)
2396 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2397 ;;
2398 esac |
2399 sort
2400 )
2401 echo
2402
2403 cat <<\_ASBOX
2404 ## ----------------- ##
2405 ## Output variables. ##
2406 ## ----------------- ##
2407 _ASBOX
2408 echo
2409 for ac_var in $ac_subst_vars
2410 do
2411 eval ac_val=\$$ac_var
2412 case $ac_val in
2413 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2414 esac
2415 $as_echo "$ac_var='\''$ac_val'\''"
2416 done | sort
2417 echo
2418
2419 if test -n "$ac_subst_files"; then
2420 cat <<\_ASBOX
2421 ## ------------------- ##
2422 ## File substitutions. ##
2423 ## ------------------- ##
2424 _ASBOX
2425 echo
2426 for ac_var in $ac_subst_files
2427 do
2428 eval ac_val=\$$ac_var
2429 case $ac_val in
2430 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2431 esac
2432 $as_echo "$ac_var='\''$ac_val'\''"
2433 done | sort
2434 echo
2435 fi
2436
2437 if test -s confdefs.h; then
2438 cat <<\_ASBOX
2439 ## ----------- ##
2440 ## confdefs.h. ##
2441 ## ----------- ##
2442 _ASBOX
2443 echo
2444 cat confdefs.h
2445 echo
2446 fi
2447 test "$ac_signal" != 0 &&
2448 $as_echo "$as_me: caught signal $ac_signal"
2449 $as_echo "$as_me: exit $exit_status"
2450 } >&5
2451 rm -f core *.core core.conftest.* &&
2452 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2453 exit $exit_status
2454 ' 0
2455 for ac_signal in 1 2 13 15; do
2456 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2457 done
2458 ac_signal=0
2459
2460 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2461 rm -f -r conftest* confdefs.h
2462
2463 $as_echo "/* confdefs.h */" > confdefs.h
2464
2465 # Predefined preprocessor variables.
2466
2467 cat >>confdefs.h <<_ACEOF
2468 #define PACKAGE_NAME "$PACKAGE_NAME"
2469 _ACEOF
2470
2471 cat >>confdefs.h <<_ACEOF
2472 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2473 _ACEOF
2474
2475 cat >>confdefs.h <<_ACEOF
2476 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2477 _ACEOF
2478
2479 cat >>confdefs.h <<_ACEOF
2480 #define PACKAGE_STRING "$PACKAGE_STRING"
2481 _ACEOF
2482
2483 cat >>confdefs.h <<_ACEOF
2484 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2485 _ACEOF
2486
2487 cat >>confdefs.h <<_ACEOF
2488 #define PACKAGE_URL "$PACKAGE_URL"
2489 _ACEOF
2490
2491
2492 # Let the site file select an alternate cache file if it wants to.
2493 # Prefer an explicitly selected file to automatically selected ones.
2494 ac_site_file1=NONE
2495 ac_site_file2=NONE
2496 if test -n "$CONFIG_SITE"; then
2497 ac_site_file1=$CONFIG_SITE
2498 elif test "x$prefix" != xNONE; then
2499 ac_site_file1=$prefix/share/config.site
2500 ac_site_file2=$prefix/etc/config.site
2501 else
2502 ac_site_file1=$ac_default_prefix/share/config.site
2503 ac_site_file2=$ac_default_prefix/etc/config.site
2504 fi
2505 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2506 do
2507 test "x$ac_site_file" = xNONE && continue
2508 if test -r "$ac_site_file"; then
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2510 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2511 sed 's/^/| /' "$ac_site_file" >&5
2512 . "$ac_site_file"
2513 fi
2514 done
2515
2516 if test -r "$cache_file"; then
2517 # Some versions of bash will fail to source /dev/null (special
2518 # files actually), so we avoid doing that.
2519 if test -f "$cache_file"; then
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2521 $as_echo "$as_me: loading cache $cache_file" >&6;}
2522 case $cache_file in
2523 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2524 *) . "./$cache_file";;
2525 esac
2526 fi
2527 else
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2529 $as_echo "$as_me: creating cache $cache_file" >&6;}
2530 >$cache_file
2531 fi
2532
2533 as_fn_append ac_header_list " unistd.h"
2534 as_fn_append ac_header_list " sys/time.h"
2535 as_fn_append ac_header_list " sys/times.h"
2536 as_fn_append ac_header_list " sys/resource.h"
2537 as_fn_append ac_header_list " sys/types.h"
2538 as_fn_append ac_header_list " sys/stat.h"
2539 as_fn_append ac_header_list " sys/wait.h"
2540 as_fn_append ac_header_list " floatingpoint.h"
2541 as_fn_append ac_header_list " ieeefp.h"
2542 as_fn_append ac_header_list " fenv.h"
2543 as_fn_append ac_header_list " fptrap.h"
2544 as_fn_append ac_header_list " pwd.h"
2545 as_fn_append ac_header_list " complex.h"
2546 as_fn_append ac_func_list " getrusage"
2547 as_fn_append ac_func_list " times"
2548 as_fn_append ac_func_list " mkstemp"
2549 as_fn_append ac_func_list " strtof"
2550 as_fn_append ac_func_list " strtold"
2551 as_fn_append ac_func_list " snprintf"
2552 as_fn_append ac_func_list " ftruncate"
2553 as_fn_append ac_func_list " chsize"
2554 as_fn_append ac_func_list " chdir"
2555 as_fn_append ac_func_list " getlogin"
2556 as_fn_append ac_func_list " gethostname"
2557 as_fn_append ac_func_list " kill"
2558 as_fn_append ac_func_list " link"
2559 as_fn_append ac_func_list " symlink"
2560 as_fn_append ac_func_list " sleep"
2561 as_fn_append ac_func_list " ttyname"
2562 as_fn_append ac_func_list " alarm"
2563 as_fn_append ac_func_list " access"
2564 as_fn_append ac_func_list " fork"
2565 as_fn_append ac_func_list " execl"
2566 as_fn_append ac_func_list " wait"
2567 as_fn_append ac_func_list " setmode"
2568 as_fn_append ac_func_list " execve"
2569 as_fn_append ac_func_list " pipe"
2570 as_fn_append ac_func_list " dup2"
2571 as_fn_append ac_func_list " close"
2572 as_fn_append ac_func_list " strcasestr"
2573 as_fn_append ac_func_list " getrlimit"
2574 as_fn_append ac_func_list " gettimeofday"
2575 as_fn_append ac_func_list " stat"
2576 as_fn_append ac_func_list " fstat"
2577 as_fn_append ac_func_list " lstat"
2578 as_fn_append ac_func_list " getpwuid"
2579 as_fn_append ac_func_list " vsnprintf"
2580 as_fn_append ac_func_list " dup"
2581 as_fn_append ac_func_list " getcwd"
2582 as_fn_append ac_func_list " localtime_r"
2583 as_fn_append ac_func_list " gmtime_r"
2584 as_fn_append ac_func_list " strerror_r"
2585 as_fn_append ac_func_list " getpwuid_r"
2586 as_fn_append ac_func_list " ttyname_r"
2587 as_fn_append ac_func_list " clock_gettime"
2588 as_fn_append ac_func_list " readlink"
2589 as_fn_append ac_func_list " getgid"
2590 as_fn_append ac_func_list " getpid"
2591 as_fn_append ac_func_list " getppid"
2592 as_fn_append ac_func_list " getuid"
2593 as_fn_append ac_func_list " geteuid"
2594 as_fn_append ac_func_list " umask"
2595 as_fn_append ac_header_list " math.h"
2596 # Check that the precious variables saved in the cache have kept the same
2597 # value.
2598 ac_cache_corrupted=false
2599 for ac_var in $ac_precious_vars; do
2600 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2601 eval ac_new_set=\$ac_env_${ac_var}_set
2602 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2603 eval ac_new_val=\$ac_env_${ac_var}_value
2604 case $ac_old_set,$ac_new_set in
2605 set,)
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2607 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2608 ac_cache_corrupted=: ;;
2609 ,set)
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2611 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2612 ac_cache_corrupted=: ;;
2613 ,);;
2614 *)
2615 if test "x$ac_old_val" != "x$ac_new_val"; then
2616 # differences in whitespace do not lead to failure.
2617 ac_old_val_w=`echo x $ac_old_val`
2618 ac_new_val_w=`echo x $ac_new_val`
2619 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2621 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2622 ac_cache_corrupted=:
2623 else
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2625 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2626 eval $ac_var=\$ac_old_val
2627 fi
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2629 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2631 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2632 fi;;
2633 esac
2634 # Pass precious variables to config.status.
2635 if test "$ac_new_set" = set; then
2636 case $ac_new_val in
2637 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2638 *) ac_arg=$ac_var=$ac_new_val ;;
2639 esac
2640 case " $ac_configure_args " in
2641 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2642 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2643 esac
2644 fi
2645 done
2646 if $ac_cache_corrupted; then
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2648 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2650 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2651 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2652 fi
2653 ## -------------------- ##
2654 ## Main body of script. ##
2655 ## -------------------- ##
2656
2657 ac_ext=c
2658 ac_cpp='$CPP $CPPFLAGS'
2659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2662
2663
2664
2665
2666
2667 ac_config_headers="$ac_config_headers config.h"
2668
2669 ac_aux_dir=
2670 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2671 for ac_t in install-sh install.sh shtool; do
2672 if test -f "$ac_dir/$ac_t"; then
2673 ac_aux_dir=$ac_dir
2674 ac_install_sh="$ac_aux_dir/$ac_t -c"
2675 break 2
2676 fi
2677 done
2678 done
2679 if test -z "$ac_aux_dir"; then
2680 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2681 fi
2682
2683 # These three variables are undocumented and unsupported,
2684 # and are intended to be withdrawn in a future Autoconf release.
2685 # They can cause serious problems if a builder's source tree is in a directory
2686 # whose full name contains unusual characters.
2687 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2688 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2689 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2690
2691
2692 # Make sure we can run config.sub.
2693 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2694 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2695
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2697 $as_echo_n "checking build system type... " >&6; }
2698 if test "${ac_cv_build+set}" = set; then :
2699 $as_echo_n "(cached) " >&6
2700 else
2701 ac_build_alias=$build_alias
2702 test "x$ac_build_alias" = x &&
2703 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2704 test "x$ac_build_alias" = x &&
2705 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2706 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2707 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2708
2709 fi
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2711 $as_echo "$ac_cv_build" >&6; }
2712 case $ac_cv_build in
2713 *-*-*) ;;
2714 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2715 esac
2716 build=$ac_cv_build
2717 ac_save_IFS=$IFS; IFS='-'
2718 set x $ac_cv_build
2719 shift
2720 build_cpu=$1
2721 build_vendor=$2
2722 shift; shift
2723 # Remember, the first character of IFS is used to create $*,
2724 # except with old shells:
2725 build_os=$*
2726 IFS=$ac_save_IFS
2727 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2728
2729
2730 case ${build_alias} in
2731 "") build_noncanonical=${build} ;;
2732 *) build_noncanonical=${build_alias} ;;
2733 esac
2734
2735 case ${host_alias} in
2736 "") host_noncanonical=${build_noncanonical} ;;
2737 *) host_noncanonical=${host_alias} ;;
2738 esac
2739
2740 case ${target_alias} in
2741 "") target_noncanonical=${host_noncanonical} ;;
2742 *) target_noncanonical=${target_alias} ;;
2743 esac
2744
2745
2746 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2747 # have matching libraries, they should use host libraries: Makefile.tpl
2748 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2749 # However, they still use the build modules, because the corresponding
2750 # host modules (e.g. bison) are only built for the host when bootstrap
2751 # finishes. So:
2752 # - build_subdir is where we find build modules, and never changes.
2753 # - build_libsubdir is where we find build libraries, and can be overridden.
2754
2755 # Prefix 'build-' so this never conflicts with target_subdir.
2756 build_subdir="build-${build_noncanonical}"
2757
2758 # Check whether --with-build-libsubdir was given.
2759 if test "${with_build_libsubdir+set}" = set; then :
2760 withval=$with_build_libsubdir; build_libsubdir="$withval"
2761 else
2762 build_libsubdir="$build_subdir"
2763 fi
2764
2765 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2766 if ( test $srcdir = . && test -d gcc ) \
2767 || test -d $srcdir/../host-${host_noncanonical}; then
2768 host_subdir="host-${host_noncanonical}"
2769 else
2770 host_subdir=.
2771 fi
2772 # No prefix.
2773 target_subdir=${target_noncanonical}
2774
2775
2776 # -------
2777 # Options
2778 # -------
2779
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2781 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2782 # Check whether --enable-version-specific-runtime-libs was given.
2783 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2784 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2785 yes) version_specific_libs=yes ;;
2786 no) version_specific_libs=no ;;
2787 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2788 esac
2789 else
2790 version_specific_libs=no
2791 fi
2792
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2794 $as_echo "$version_specific_libs" >&6; }
2795
2796 # Build with intermodule optimisations
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-intermodule" >&5
2798 $as_echo_n "checking for --enable-intermodule... " >&6; }
2799 # Check whether --enable-intermodule was given.
2800 if test "${enable_intermodule+set}" = set; then :
2801 enableval=$enable_intermodule; case "$enable_intermodule" in
2802 yes) onestep="-onestep";;
2803 *) onestep="";;
2804 esac
2805 else
2806 onestep=""
2807 fi
2808
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_intermodule" >&5
2810 $as_echo "$enable_intermodule" >&6; }
2811 if test x$onestep = x-onestep; then
2812 onestep_TRUE=
2813 onestep_FALSE='#'
2814 else
2815 onestep_TRUE='#'
2816 onestep_FALSE=
2817 fi
2818
2819
2820
2821 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2822 #
2823 # You will slowly go insane if you do not grok the following fact: when
2824 # building this library, the top-level /target/ becomes the library's /host/.
2825 #
2826 # configure then causes --target to default to --host, exactly like any
2827 # other package using autoconf. Therefore, 'target' and 'host' will
2828 # always be the same. This makes sense both for native and cross compilers
2829 # just think about it for a little while. :-)
2830 #
2831 # Also, if this library is being configured as part of a cross compiler, the
2832 # top-level configure script will pass the "real" host as $with_cross_host.
2833 #
2834 # Do not delete or change the following two lines. For why, see
2835 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2837 $as_echo_n "checking host system type... " >&6; }
2838 if test "${ac_cv_host+set}" = set; then :
2839 $as_echo_n "(cached) " >&6
2840 else
2841 if test "x$host_alias" = x; then
2842 ac_cv_host=$ac_cv_build
2843 else
2844 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2845 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2846 fi
2847
2848 fi
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2850 $as_echo "$ac_cv_host" >&6; }
2851 case $ac_cv_host in
2852 *-*-*) ;;
2853 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2854 esac
2855 host=$ac_cv_host
2856 ac_save_IFS=$IFS; IFS='-'
2857 set x $ac_cv_host
2858 shift
2859 host_cpu=$1
2860 host_vendor=$2
2861 shift; shift
2862 # Remember, the first character of IFS is used to create $*,
2863 # except with old shells:
2864 host_os=$*
2865 IFS=$ac_save_IFS
2866 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2867
2868
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2870 $as_echo_n "checking target system type... " >&6; }
2871 if test "${ac_cv_target+set}" = set; then :
2872 $as_echo_n "(cached) " >&6
2873 else
2874 if test "x$target_alias" = x; then
2875 ac_cv_target=$ac_cv_host
2876 else
2877 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2878 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2879 fi
2880
2881 fi
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2883 $as_echo "$ac_cv_target" >&6; }
2884 case $ac_cv_target in
2885 *-*-*) ;;
2886 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2887 esac
2888 target=$ac_cv_target
2889 ac_save_IFS=$IFS; IFS='-'
2890 set x $ac_cv_target
2891 shift
2892 target_cpu=$1
2893 target_vendor=$2
2894 shift; shift
2895 # Remember, the first character of IFS is used to create $*,
2896 # except with old shells:
2897 target_os=$*
2898 IFS=$ac_save_IFS
2899 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2900
2901
2902 # The aliases save the names the user supplied, while $host etc.
2903 # will get canonicalized.
2904 test -n "$target_alias" &&
2905 test "$program_prefix$program_suffix$program_transform_name" = \
2906 NONENONEs,x,x, &&
2907 program_prefix=${target_alias}-
2908
2909
2910
2911
2912 target_alias=${target_alias-$host_alias}
2913
2914
2915 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2916 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2917 # 1.9.6: minimum required version
2918 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2919 # of other PACKAGE_* variables will, however, and there's nothing
2920 # we can do about that; they come from AC_INIT).
2921 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2922 # file in the top srcdir, etc, etc), so stop complaining.
2923 # no-dist: we don't want 'dist' and related rules.
2924 # -Wall: turns on all automake warnings...
2925 # -Wno-portability: ...except this one, since GNU make is required.
2926 am__api_version='1.11'
2927
2928 # Find a good install program. We prefer a C program (faster),
2929 # so one script is as good as another. But avoid the broken or
2930 # incompatible versions:
2931 # SysV /etc/install, /usr/sbin/install
2932 # SunOS /usr/etc/install
2933 # IRIX /sbin/install
2934 # AIX /bin/install
2935 # AmigaOS /C/install, which installs bootblocks on floppy discs
2936 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2937 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2938 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2939 # OS/2's system install, which has a completely different semantic
2940 # ./install, which can be erroneously created by make from ./install.sh.
2941 # Reject install programs that cannot install multiple files.
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2943 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2944 if test -z "$INSTALL"; then
2945 if test "${ac_cv_path_install+set}" = set; then :
2946 $as_echo_n "(cached) " >&6
2947 else
2948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949 for as_dir in $PATH
2950 do
2951 IFS=$as_save_IFS
2952 test -z "$as_dir" && as_dir=.
2953 # Account for people who put trailing slashes in PATH elements.
2954 case $as_dir/ in #((
2955 ./ | .// | /[cC]/* | \
2956 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2957 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2958 /usr/ucb/* ) ;;
2959 *)
2960 # OSF1 and SCO ODT 3.0 have their own names for install.
2961 # Don't use installbsd from OSF since it installs stuff as root
2962 # by default.
2963 for ac_prog in ginstall scoinst install; do
2964 for ac_exec_ext in '' $ac_executable_extensions; do
2965 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2966 if test $ac_prog = install &&
2967 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2968 # AIX install. It has an incompatible calling convention.
2969 :
2970 elif test $ac_prog = install &&
2971 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2972 # program-specific install script used by HP pwplus--don't use.
2973 :
2974 else
2975 rm -rf conftest.one conftest.two conftest.dir
2976 echo one > conftest.one
2977 echo two > conftest.two
2978 mkdir conftest.dir
2979 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2980 test -s conftest.one && test -s conftest.two &&
2981 test -s conftest.dir/conftest.one &&
2982 test -s conftest.dir/conftest.two
2983 then
2984 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2985 break 3
2986 fi
2987 fi
2988 fi
2989 done
2990 done
2991 ;;
2992 esac
2993
2994 done
2995 IFS=$as_save_IFS
2996
2997 rm -rf conftest.one conftest.two conftest.dir
2998
2999 fi
3000 if test "${ac_cv_path_install+set}" = set; then
3001 INSTALL=$ac_cv_path_install
3002 else
3003 # As a last resort, use the slow shell script. Don't cache a
3004 # value for INSTALL within a source directory, because that will
3005 # break other packages using the cache if that directory is
3006 # removed, or if the value is a relative name.
3007 INSTALL=$ac_install_sh
3008 fi
3009 fi
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3011 $as_echo "$INSTALL" >&6; }
3012
3013 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3014 # It thinks the first close brace ends the variable substitution.
3015 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3016
3017 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3018
3019 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3020
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3022 $as_echo_n "checking whether build environment is sane... " >&6; }
3023 # Just in case
3024 sleep 1
3025 echo timestamp > conftest.file
3026 # Reject unsafe characters in $srcdir or the absolute working directory
3027 # name. Accept space and tab only in the latter.
3028 am_lf='
3029 '
3030 case `pwd` in
3031 *[\\\"\#\$\&\'\`$am_lf]*)
3032 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3033 esac
3034 case $srcdir in
3035 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3036 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3037 esac
3038
3039 # Do `set' in a subshell so we don't clobber the current shell's
3040 # arguments. Must try -L first in case configure is actually a
3041 # symlink; some systems play weird games with the mod time of symlinks
3042 # (eg FreeBSD returns the mod time of the symlink's containing
3043 # directory).
3044 if (
3045 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3046 if test "$*" = "X"; then
3047 # -L didn't work.
3048 set X `ls -t "$srcdir/configure" conftest.file`
3049 fi
3050 rm -f conftest.file
3051 if test "$*" != "X $srcdir/configure conftest.file" \
3052 && test "$*" != "X conftest.file $srcdir/configure"; then
3053
3054 # If neither matched, then we have a broken ls. This can happen
3055 # if, for instance, CONFIG_SHELL is bash and it inherits a
3056 # broken ls alias from the environment. This has actually
3057 # happened. Such a system could not be considered "sane".
3058 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3059 alias in your environment" "$LINENO" 5
3060 fi
3061
3062 test "$2" = conftest.file
3063 )
3064 then
3065 # Ok.
3066 :
3067 else
3068 as_fn_error "newly created file is older than distributed files!
3069 Check your system clock" "$LINENO" 5
3070 fi
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3072 $as_echo "yes" >&6; }
3073 test "$program_prefix" != NONE &&
3074 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3075 # Use a double $ so make ignores it.
3076 test "$program_suffix" != NONE &&
3077 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3078 # Double any \ or $.
3079 # By default was `s,x,x', remove it if useless.
3080 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3081 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3082
3083 # expand $ac_aux_dir to an absolute path
3084 am_aux_dir=`cd $ac_aux_dir && pwd`
3085
3086 if test x"${MISSING+set}" != xset; then
3087 case $am_aux_dir in
3088 *\ * | *\ *)
3089 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3090 *)
3091 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3092 esac
3093 fi
3094 # Use eval to expand $SHELL
3095 if eval "$MISSING --run true"; then
3096 am_missing_run="$MISSING --run "
3097 else
3098 am_missing_run=
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3100 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3101 fi
3102
3103 if test x"${install_sh}" != xset; then
3104 case $am_aux_dir in
3105 *\ * | *\ *)
3106 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3107 *)
3108 install_sh="\${SHELL} $am_aux_dir/install-sh"
3109 esac
3110 fi
3111
3112 # Installed binaries are usually stripped using `strip' when the user
3113 # run `make install-strip'. However `strip' might not be the right
3114 # tool to use in cross-compilation environments, therefore Automake
3115 # will honor the `STRIP' environment variable to overrule this program.
3116 if test "$cross_compiling" != no; then
3117 if test -n "$ac_tool_prefix"; then
3118 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3119 set dummy ${ac_tool_prefix}strip; ac_word=$2
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3121 $as_echo_n "checking for $ac_word... " >&6; }
3122 if test "${ac_cv_prog_STRIP+set}" = set; then :
3123 $as_echo_n "(cached) " >&6
3124 else
3125 if test -n "$STRIP"; then
3126 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3127 else
3128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129 for as_dir in $PATH
3130 do
3131 IFS=$as_save_IFS
3132 test -z "$as_dir" && as_dir=.
3133 for ac_exec_ext in '' $ac_executable_extensions; do
3134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3135 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3137 break 2
3138 fi
3139 done
3140 done
3141 IFS=$as_save_IFS
3142
3143 fi
3144 fi
3145 STRIP=$ac_cv_prog_STRIP
3146 if test -n "$STRIP"; then
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3148 $as_echo "$STRIP" >&6; }
3149 else
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3151 $as_echo "no" >&6; }
3152 fi
3153
3154
3155 fi
3156 if test -z "$ac_cv_prog_STRIP"; then
3157 ac_ct_STRIP=$STRIP
3158 # Extract the first word of "strip", so it can be a program name with args.
3159 set dummy strip; ac_word=$2
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3161 $as_echo_n "checking for $ac_word... " >&6; }
3162 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3163 $as_echo_n "(cached) " >&6
3164 else
3165 if test -n "$ac_ct_STRIP"; then
3166 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3167 else
3168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3169 for as_dir in $PATH
3170 do
3171 IFS=$as_save_IFS
3172 test -z "$as_dir" && as_dir=.
3173 for ac_exec_ext in '' $ac_executable_extensions; do
3174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3175 ac_cv_prog_ac_ct_STRIP="strip"
3176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3177 break 2
3178 fi
3179 done
3180 done
3181 IFS=$as_save_IFS
3182
3183 fi
3184 fi
3185 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3186 if test -n "$ac_ct_STRIP"; then
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3188 $as_echo "$ac_ct_STRIP" >&6; }
3189 else
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3191 $as_echo "no" >&6; }
3192 fi
3193
3194 if test "x$ac_ct_STRIP" = x; then
3195 STRIP=":"
3196 else
3197 case $cross_compiling:$ac_tool_warned in
3198 yes:)
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3200 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3201 ac_tool_warned=yes ;;
3202 esac
3203 STRIP=$ac_ct_STRIP
3204 fi
3205 else
3206 STRIP="$ac_cv_prog_STRIP"
3207 fi
3208
3209 fi
3210 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3211
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3213 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3214 if test -z "$MKDIR_P"; then
3215 if test "${ac_cv_path_mkdir+set}" = set; then :
3216 $as_echo_n "(cached) " >&6
3217 else
3218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3219 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3220 do
3221 IFS=$as_save_IFS
3222 test -z "$as_dir" && as_dir=.
3223 for ac_prog in mkdir gmkdir; do
3224 for ac_exec_ext in '' $ac_executable_extensions; do
3225 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3226 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3227 'mkdir (GNU coreutils) '* | \
3228 'mkdir (coreutils) '* | \
3229 'mkdir (fileutils) '4.1*)
3230 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3231 break 3;;
3232 esac
3233 done
3234 done
3235 done
3236 IFS=$as_save_IFS
3237
3238 fi
3239
3240 if test "${ac_cv_path_mkdir+set}" = set; then
3241 MKDIR_P="$ac_cv_path_mkdir -p"
3242 else
3243 # As a last resort, use the slow shell script. Don't cache a
3244 # value for MKDIR_P within a source directory, because that will
3245 # break other packages using the cache if that directory is
3246 # removed, or if the value is a relative name.
3247 test -d ./--version && rmdir ./--version
3248 MKDIR_P="$ac_install_sh -d"
3249 fi
3250 fi
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3252 $as_echo "$MKDIR_P" >&6; }
3253
3254 mkdir_p="$MKDIR_P"
3255 case $mkdir_p in
3256 [\\/$]* | ?:[\\/]*) ;;
3257 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3258 esac
3259
3260 for ac_prog in gawk mawk nawk awk
3261 do
3262 # Extract the first word of "$ac_prog", so it can be a program name with args.
3263 set dummy $ac_prog; ac_word=$2
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3265 $as_echo_n "checking for $ac_word... " >&6; }
3266 if test "${ac_cv_prog_AWK+set}" = set; then :
3267 $as_echo_n "(cached) " >&6
3268 else
3269 if test -n "$AWK"; then
3270 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3271 else
3272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3273 for as_dir in $PATH
3274 do
3275 IFS=$as_save_IFS
3276 test -z "$as_dir" && as_dir=.
3277 for ac_exec_ext in '' $ac_executable_extensions; do
3278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3279 ac_cv_prog_AWK="$ac_prog"
3280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3281 break 2
3282 fi
3283 done
3284 done
3285 IFS=$as_save_IFS
3286
3287 fi
3288 fi
3289 AWK=$ac_cv_prog_AWK
3290 if test -n "$AWK"; then
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3292 $as_echo "$AWK" >&6; }
3293 else
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3295 $as_echo "no" >&6; }
3296 fi
3297
3298
3299 test -n "$AWK" && break
3300 done
3301
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3303 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3304 set x ${MAKE-make}
3305 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3306 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3307 $as_echo_n "(cached) " >&6
3308 else
3309 cat >conftest.make <<\_ACEOF
3310 SHELL = /bin/sh
3311 all:
3312 @echo '@@@%%%=$(MAKE)=@@@%%%'
3313 _ACEOF
3314 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3315 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3316 *@@@%%%=?*=@@@%%%*)
3317 eval ac_cv_prog_make_${ac_make}_set=yes;;
3318 *)
3319 eval ac_cv_prog_make_${ac_make}_set=no;;
3320 esac
3321 rm -f conftest.make
3322 fi
3323 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3325 $as_echo "yes" >&6; }
3326 SET_MAKE=
3327 else
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3329 $as_echo "no" >&6; }
3330 SET_MAKE="MAKE=${MAKE-make}"
3331 fi
3332
3333 rm -rf .tst 2>/dev/null
3334 mkdir .tst 2>/dev/null
3335 if test -d .tst; then
3336 am__leading_dot=.
3337 else
3338 am__leading_dot=_
3339 fi
3340 rmdir .tst 2>/dev/null
3341
3342 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3343 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3344 # is not polluted with repeated "-I."
3345 am__isrc=' -I$(srcdir)'
3346 # test to see if srcdir already configured
3347 if test -f $srcdir/config.status; then
3348 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3349 fi
3350 fi
3351
3352 # test whether we have cygpath
3353 if test -z "$CYGPATH_W"; then
3354 if (cygpath --version) >/dev/null 2>/dev/null; then
3355 CYGPATH_W='cygpath -w'
3356 else
3357 CYGPATH_W=echo
3358 fi
3359 fi
3360
3361
3362 # Define the identity of the package.
3363 PACKAGE='libgfortran'
3364 VERSION='0.3'
3365
3366
3367 # Some tools Automake needs.
3368
3369 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3370
3371
3372 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3373
3374
3375 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3376
3377
3378 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3379
3380
3381 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3382
3383 # We need awk for the "check" target. The system "awk" is bad on
3384 # some platforms.
3385 # Always define AMTAR for backward compatibility.
3386
3387 AMTAR=${AMTAR-"${am_missing_run}tar"}
3388
3389 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3390
3391
3392
3393
3394
3395
3396
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3398 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3399 # Check whether --enable-maintainer-mode was given.
3400 if test "${enable_maintainer_mode+set}" = set; then :
3401 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3402 else
3403 USE_MAINTAINER_MODE=no
3404 fi
3405
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3407 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3408 if test $USE_MAINTAINER_MODE = yes; then
3409 MAINTAINER_MODE_TRUE=
3410 MAINTAINER_MODE_FALSE='#'
3411 else
3412 MAINTAINER_MODE_TRUE='#'
3413 MAINTAINER_MODE_FALSE=
3414 fi
3415
3416 MAINT=$MAINTAINER_MODE_TRUE
3417
3418
3419 # Default to --enable-multilib
3420 # Check whether --enable-multilib was given.
3421 if test "${enable_multilib+set}" = set; then :
3422 enableval=$enable_multilib; case "$enableval" in
3423 yes) multilib=yes ;;
3424 no) multilib=no ;;
3425 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3426 esac
3427 else
3428 multilib=yes
3429 fi
3430
3431
3432 # We may get other options which we leave undocumented:
3433 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3434 # See config-ml.in if you want the gory details.
3435
3436 if test "$srcdir" = "."; then
3437 if test "$with_target_subdir" != "."; then
3438 multi_basedir="$srcdir/$with_multisrctop../.."
3439 else
3440 multi_basedir="$srcdir/$with_multisrctop.."
3441 fi
3442 else
3443 multi_basedir="$srcdir/.."
3444 fi
3445
3446
3447 # Even if the default multilib is not a cross compilation,
3448 # it may be that some of the other multilibs are.
3449 if test $cross_compiling = no && test $multilib = yes \
3450 && test "x${with_multisubdir}" != x ; then
3451 cross_compiling=maybe
3452 fi
3453
3454 ac_config_commands="$ac_config_commands default-1"
3455
3456
3457 # Handy for debugging:
3458 #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
3459
3460 # Are we being configured with some form of cross compiler?
3461 # NB: We don't actually need to know this just now, but when, say, a test
3462 # suite is included, we'll have to know.
3463 if test "$build" != "$host"; then
3464 LIBGFOR_IS_NATIVE=false
3465
3466 else
3467 LIBGFOR_IS_NATIVE=true
3468 fi
3469
3470 DEPDIR="${am__leading_dot}deps"
3471
3472 ac_config_commands="$ac_config_commands depfiles"
3473
3474
3475 am_make=${MAKE-make}
3476 cat > confinc << 'END'
3477 am__doit:
3478 @echo this is the am__doit target
3479 .PHONY: am__doit
3480 END
3481 # If we don't find an include directive, just comment out the code.
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3483 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3484 am__include="#"
3485 am__quote=
3486 _am_result=none
3487 # First try GNU make style include.
3488 echo "include confinc" > confmf
3489 # Ignore all kinds of additional output from `make'.
3490 case `$am_make -s -f confmf 2> /dev/null` in #(
3491 *the\ am__doit\ target*)
3492 am__include=include
3493 am__quote=
3494 _am_result=GNU
3495 ;;
3496 esac
3497 # Now try BSD make style include.
3498 if test "$am__include" = "#"; then
3499 echo '.include "confinc"' > confmf
3500 case `$am_make -s -f confmf 2> /dev/null` in #(
3501 *the\ am__doit\ target*)
3502 am__include=.include
3503 am__quote="\""
3504 _am_result=BSD
3505 ;;
3506 esac
3507 fi
3508
3509
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3511 $as_echo "$_am_result" >&6; }
3512 rm -f confinc confmf
3513
3514 # Check whether --enable-dependency-tracking was given.
3515 if test "${enable_dependency_tracking+set}" = set; then :
3516 enableval=$enable_dependency_tracking;
3517 fi
3518
3519 if test "x$enable_dependency_tracking" != xno; then
3520 am_depcomp="$ac_aux_dir/depcomp"
3521 AMDEPBACKSLASH='\'
3522 fi
3523 if test "x$enable_dependency_tracking" != xno; then
3524 AMDEP_TRUE=
3525 AMDEP_FALSE='#'
3526 else
3527 AMDEP_TRUE='#'
3528 AMDEP_FALSE=
3529 fi
3530
3531
3532 ac_ext=c
3533 ac_cpp='$CPP $CPPFLAGS'
3534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3537 if test -n "$ac_tool_prefix"; then
3538 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3539 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3541 $as_echo_n "checking for $ac_word... " >&6; }
3542 if test "${ac_cv_prog_CC+set}" = set; then :
3543 $as_echo_n "(cached) " >&6
3544 else
3545 if test -n "$CC"; then
3546 ac_cv_prog_CC="$CC" # Let the user override the test.
3547 else
3548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3549 for as_dir in $PATH
3550 do
3551 IFS=$as_save_IFS
3552 test -z "$as_dir" && as_dir=.
3553 for ac_exec_ext in '' $ac_executable_extensions; do
3554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3555 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3557 break 2
3558 fi
3559 done
3560 done
3561 IFS=$as_save_IFS
3562
3563 fi
3564 fi
3565 CC=$ac_cv_prog_CC
3566 if test -n "$CC"; then
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3568 $as_echo "$CC" >&6; }
3569 else
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3571 $as_echo "no" >&6; }
3572 fi
3573
3574
3575 fi
3576 if test -z "$ac_cv_prog_CC"; then
3577 ac_ct_CC=$CC
3578 # Extract the first word of "gcc", so it can be a program name with args.
3579 set dummy gcc; ac_word=$2
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3581 $as_echo_n "checking for $ac_word... " >&6; }
3582 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3583 $as_echo_n "(cached) " >&6
3584 else
3585 if test -n "$ac_ct_CC"; then
3586 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3587 else
3588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3589 for as_dir in $PATH
3590 do
3591 IFS=$as_save_IFS
3592 test -z "$as_dir" && as_dir=.
3593 for ac_exec_ext in '' $ac_executable_extensions; do
3594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3595 ac_cv_prog_ac_ct_CC="gcc"
3596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3597 break 2
3598 fi
3599 done
3600 done
3601 IFS=$as_save_IFS
3602
3603 fi
3604 fi
3605 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3606 if test -n "$ac_ct_CC"; then
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3608 $as_echo "$ac_ct_CC" >&6; }
3609 else
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3611 $as_echo "no" >&6; }
3612 fi
3613
3614 if test "x$ac_ct_CC" = x; then
3615 CC=""
3616 else
3617 case $cross_compiling:$ac_tool_warned in
3618 yes:)
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3621 ac_tool_warned=yes ;;
3622 esac
3623 CC=$ac_ct_CC
3624 fi
3625 else
3626 CC="$ac_cv_prog_CC"
3627 fi
3628
3629 if test -z "$CC"; then
3630 if test -n "$ac_tool_prefix"; then
3631 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3632 set dummy ${ac_tool_prefix}cc; ac_word=$2
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3634 $as_echo_n "checking for $ac_word... " >&6; }
3635 if test "${ac_cv_prog_CC+set}" = set; then :
3636 $as_echo_n "(cached) " >&6
3637 else
3638 if test -n "$CC"; then
3639 ac_cv_prog_CC="$CC" # Let the user override the test.
3640 else
3641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3642 for as_dir in $PATH
3643 do
3644 IFS=$as_save_IFS
3645 test -z "$as_dir" && as_dir=.
3646 for ac_exec_ext in '' $ac_executable_extensions; do
3647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3648 ac_cv_prog_CC="${ac_tool_prefix}cc"
3649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3650 break 2
3651 fi
3652 done
3653 done
3654 IFS=$as_save_IFS
3655
3656 fi
3657 fi
3658 CC=$ac_cv_prog_CC
3659 if test -n "$CC"; then
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3661 $as_echo "$CC" >&6; }
3662 else
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3664 $as_echo "no" >&6; }
3665 fi
3666
3667
3668 fi
3669 fi
3670 if test -z "$CC"; then
3671 # Extract the first word of "cc", so it can be a program name with args.
3672 set dummy cc; ac_word=$2
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3674 $as_echo_n "checking for $ac_word... " >&6; }
3675 if test "${ac_cv_prog_CC+set}" = set; then :
3676 $as_echo_n "(cached) " >&6
3677 else
3678 if test -n "$CC"; then
3679 ac_cv_prog_CC="$CC" # Let the user override the test.
3680 else
3681 ac_prog_rejected=no
3682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3683 for as_dir in $PATH
3684 do
3685 IFS=$as_save_IFS
3686 test -z "$as_dir" && as_dir=.
3687 for ac_exec_ext in '' $ac_executable_extensions; do
3688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3689 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3690 ac_prog_rejected=yes
3691 continue
3692 fi
3693 ac_cv_prog_CC="cc"
3694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3695 break 2
3696 fi
3697 done
3698 done
3699 IFS=$as_save_IFS
3700
3701 if test $ac_prog_rejected = yes; then
3702 # We found a bogon in the path, so make sure we never use it.
3703 set dummy $ac_cv_prog_CC
3704 shift
3705 if test $# != 0; then
3706 # We chose a different compiler from the bogus one.
3707 # However, it has the same basename, so the bogon will be chosen
3708 # first if we set CC to just the basename; use the full file name.
3709 shift
3710 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3711 fi
3712 fi
3713 fi
3714 fi
3715 CC=$ac_cv_prog_CC
3716 if test -n "$CC"; then
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3718 $as_echo "$CC" >&6; }
3719 else
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3721 $as_echo "no" >&6; }
3722 fi
3723
3724
3725 fi
3726 if test -z "$CC"; then
3727 if test -n "$ac_tool_prefix"; then
3728 for ac_prog in cl.exe
3729 do
3730 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3731 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3733 $as_echo_n "checking for $ac_word... " >&6; }
3734 if test "${ac_cv_prog_CC+set}" = set; then :
3735 $as_echo_n "(cached) " >&6
3736 else
3737 if test -n "$CC"; then
3738 ac_cv_prog_CC="$CC" # Let the user override the test.
3739 else
3740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741 for as_dir in $PATH
3742 do
3743 IFS=$as_save_IFS
3744 test -z "$as_dir" && as_dir=.
3745 for ac_exec_ext in '' $ac_executable_extensions; do
3746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3747 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3749 break 2
3750 fi
3751 done
3752 done
3753 IFS=$as_save_IFS
3754
3755 fi
3756 fi
3757 CC=$ac_cv_prog_CC
3758 if test -n "$CC"; then
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3760 $as_echo "$CC" >&6; }
3761 else
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3763 $as_echo "no" >&6; }
3764 fi
3765
3766
3767 test -n "$CC" && break
3768 done
3769 fi
3770 if test -z "$CC"; then
3771 ac_ct_CC=$CC
3772 for ac_prog in cl.exe
3773 do
3774 # Extract the first word of "$ac_prog", so it can be a program name with args.
3775 set dummy $ac_prog; ac_word=$2
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3777 $as_echo_n "checking for $ac_word... " >&6; }
3778 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3779 $as_echo_n "(cached) " >&6
3780 else
3781 if test -n "$ac_ct_CC"; then
3782 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3783 else
3784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3785 for as_dir in $PATH
3786 do
3787 IFS=$as_save_IFS
3788 test -z "$as_dir" && as_dir=.
3789 for ac_exec_ext in '' $ac_executable_extensions; do
3790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3791 ac_cv_prog_ac_ct_CC="$ac_prog"
3792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3793 break 2
3794 fi
3795 done
3796 done
3797 IFS=$as_save_IFS
3798
3799 fi
3800 fi
3801 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3802 if test -n "$ac_ct_CC"; then
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3804 $as_echo "$ac_ct_CC" >&6; }
3805 else
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3807 $as_echo "no" >&6; }
3808 fi
3809
3810
3811 test -n "$ac_ct_CC" && break
3812 done
3813
3814 if test "x$ac_ct_CC" = x; then
3815 CC=""
3816 else
3817 case $cross_compiling:$ac_tool_warned in
3818 yes:)
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3820 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3821 ac_tool_warned=yes ;;
3822 esac
3823 CC=$ac_ct_CC
3824 fi
3825 fi
3826
3827 fi
3828
3829
3830 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3831 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3832 as_fn_error "no acceptable C compiler found in \$PATH
3833 See \`config.log' for more details." "$LINENO" 5; }
3834
3835 # Provide some information about the compiler.
3836 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3837 set X $ac_compile
3838 ac_compiler=$2
3839 for ac_option in --version -v -V -qversion; do
3840 { { ac_try="$ac_compiler $ac_option >&5"
3841 case "(($ac_try" in
3842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843 *) ac_try_echo=$ac_try;;
3844 esac
3845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3846 $as_echo "$ac_try_echo"; } >&5
3847 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3848 ac_status=$?
3849 if test -s conftest.err; then
3850 sed '10a\
3851 ... rest of stderr output deleted ...
3852 10q' conftest.err >conftest.er1
3853 cat conftest.er1 >&5
3854 rm -f conftest.er1 conftest.err
3855 fi
3856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3857 test $ac_status = 0; }
3858 done
3859
3860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3861 /* end confdefs.h. */
3862
3863 int
3864 main ()
3865 {
3866
3867 ;
3868 return 0;
3869 }
3870 _ACEOF
3871 # FIXME: Cleanup?
3872 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3873 (eval $ac_link) 2>&5
3874 ac_status=$?
3875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3876 test $ac_status = 0; }; then :
3877 gcc_no_link=no
3878 else
3879 gcc_no_link=yes
3880 fi
3881 if test x$gcc_no_link = xyes; then
3882 # Setting cross_compile will disable run tests; it will
3883 # also disable AC_CHECK_FILE but that's generally
3884 # correct if we can't link.
3885 cross_compiling=yes
3886 EXEEXT=
3887 else
3888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3889 /* end confdefs.h. */
3890
3891 int
3892 main ()
3893 {
3894
3895 ;
3896 return 0;
3897 }
3898 _ACEOF
3899 ac_clean_files_save=$ac_clean_files
3900 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3901 # Try to create an executable without -o first, disregard a.out.
3902 # It will help us diagnose broken compilers, and finding out an intuition
3903 # of exeext.
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3905 $as_echo_n "checking for C compiler default output file name... " >&6; }
3906 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3907
3908 # The possible output files:
3909 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3910
3911 ac_rmfiles=
3912 for ac_file in $ac_files
3913 do
3914 case $ac_file in
3915 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3916 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3917 esac
3918 done
3919 rm -f $ac_rmfiles
3920
3921 if { { ac_try="$ac_link_default"
3922 case "(($ac_try" in
3923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3924 *) ac_try_echo=$ac_try;;
3925 esac
3926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3927 $as_echo "$ac_try_echo"; } >&5
3928 (eval "$ac_link_default") 2>&5
3929 ac_status=$?
3930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3931 test $ac_status = 0; }; then :
3932 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3933 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3934 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3935 # so that the user can short-circuit this test for compilers unknown to
3936 # Autoconf.
3937 for ac_file in $ac_files ''
3938 do
3939 test -f "$ac_file" || continue
3940 case $ac_file in
3941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3942 ;;
3943 [ab].out )
3944 # We found the default executable, but exeext='' is most
3945 # certainly right.
3946 break;;
3947 *.* )
3948 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3949 then :; else
3950 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3951 fi
3952 # We set ac_cv_exeext here because the later test for it is not
3953 # safe: cross compilers may not add the suffix if given an `-o'
3954 # argument, so we may need to know it at that point already.
3955 # Even if this section looks crufty: it has the advantage of
3956 # actually working.
3957 break;;
3958 * )
3959 break;;
3960 esac
3961 done
3962 test "$ac_cv_exeext" = no && ac_cv_exeext=
3963
3964 else
3965 ac_file=''
3966 fi
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3968 $as_echo "$ac_file" >&6; }
3969 if test -z "$ac_file"; then :
3970 $as_echo "$as_me: failed program was:" >&5
3971 sed 's/^/| /' conftest.$ac_ext >&5
3972
3973 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3974 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3975 { as_fn_set_status 77
3976 as_fn_error "C compiler cannot create executables
3977 See \`config.log' for more details." "$LINENO" 5; }; }
3978 fi
3979 ac_exeext=$ac_cv_exeext
3980
3981 # Check that the compiler produces executables we can run. If not, either
3982 # the compiler is broken, or we cross compile.
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3984 $as_echo_n "checking whether the C compiler works... " >&6; }
3985 # If not cross compiling, check that we can run a simple program.
3986 if test "$cross_compiling" != yes; then
3987 if { ac_try='./$ac_file'
3988 { { case "(($ac_try" in
3989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3990 *) ac_try_echo=$ac_try;;
3991 esac
3992 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3993 $as_echo "$ac_try_echo"; } >&5
3994 (eval "$ac_try") 2>&5
3995 ac_status=$?
3996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3997 test $ac_status = 0; }; }; then
3998 cross_compiling=no
3999 else
4000 if test "$cross_compiling" = maybe; then
4001 cross_compiling=yes
4002 else
4003 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4004 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4005 as_fn_error "cannot run C compiled programs.
4006 If you meant to cross compile, use \`--host'.
4007 See \`config.log' for more details." "$LINENO" 5; }
4008 fi
4009 fi
4010 fi
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4012 $as_echo "yes" >&6; }
4013
4014 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4015 ac_clean_files=$ac_clean_files_save
4016 # Check that the compiler produces executables we can run. If not, either
4017 # the compiler is broken, or we cross compile.
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4019 $as_echo_n "checking whether we are cross compiling... " >&6; }
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4021 $as_echo "$cross_compiling" >&6; }
4022
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4024 $as_echo_n "checking for suffix of executables... " >&6; }
4025 if { { ac_try="$ac_link"
4026 case "(($ac_try" in
4027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4028 *) ac_try_echo=$ac_try;;
4029 esac
4030 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4031 $as_echo "$ac_try_echo"; } >&5
4032 (eval "$ac_link") 2>&5
4033 ac_status=$?
4034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4035 test $ac_status = 0; }; then :
4036 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4037 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4038 # work properly (i.e., refer to `conftest.exe'), while it won't with
4039 # `rm'.
4040 for ac_file in conftest.exe conftest conftest.*; do
4041 test -f "$ac_file" || continue
4042 case $ac_file in
4043 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4044 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4045 break;;
4046 * ) break;;
4047 esac
4048 done
4049 else
4050 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4051 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4052 as_fn_error "cannot compute suffix of executables: cannot compile and link
4053 See \`config.log' for more details." "$LINENO" 5; }
4054 fi
4055 rm -f conftest$ac_cv_exeext
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4057 $as_echo "$ac_cv_exeext" >&6; }
4058
4059 rm -f conftest.$ac_ext
4060 EXEEXT=$ac_cv_exeext
4061 ac_exeext=$EXEEXT
4062 fi
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4064 $as_echo_n "checking for suffix of object files... " >&6; }
4065 if test "${ac_cv_objext+set}" = set; then :
4066 $as_echo_n "(cached) " >&6
4067 else
4068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4069 /* end confdefs.h. */
4070
4071 int
4072 main ()
4073 {
4074
4075 ;
4076 return 0;
4077 }
4078 _ACEOF
4079 rm -f conftest.o conftest.obj
4080 if { { ac_try="$ac_compile"
4081 case "(($ac_try" in
4082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4083 *) ac_try_echo=$ac_try;;
4084 esac
4085 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4086 $as_echo "$ac_try_echo"; } >&5
4087 (eval "$ac_compile") 2>&5
4088 ac_status=$?
4089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4090 test $ac_status = 0; }; then :
4091 for ac_file in conftest.o conftest.obj conftest.*; do
4092 test -f "$ac_file" || continue;
4093 case $ac_file in
4094 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4095 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4096 break;;
4097 esac
4098 done
4099 else
4100 $as_echo "$as_me: failed program was:" >&5
4101 sed 's/^/| /' conftest.$ac_ext >&5
4102
4103 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4104 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4105 as_fn_error "cannot compute suffix of object files: cannot compile
4106 See \`config.log' for more details." "$LINENO" 5; }
4107 fi
4108 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4109 fi
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4111 $as_echo "$ac_cv_objext" >&6; }
4112 OBJEXT=$ac_cv_objext
4113 ac_objext=$OBJEXT
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4115 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4116 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4117 $as_echo_n "(cached) " >&6
4118 else
4119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120 /* end confdefs.h. */
4121
4122 int
4123 main ()
4124 {
4125 #ifndef __GNUC__
4126 choke me
4127 #endif
4128
4129 ;
4130 return 0;
4131 }
4132 _ACEOF
4133 if ac_fn_c_try_compile "$LINENO"; then :
4134 ac_compiler_gnu=yes
4135 else
4136 ac_compiler_gnu=no
4137 fi
4138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4139 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4140
4141 fi
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4143 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4144 if test $ac_compiler_gnu = yes; then
4145 GCC=yes
4146 else
4147 GCC=
4148 fi
4149 ac_test_CFLAGS=${CFLAGS+set}
4150 ac_save_CFLAGS=$CFLAGS
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4152 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4153 if test "${ac_cv_prog_cc_g+set}" = set; then :
4154 $as_echo_n "(cached) " >&6
4155 else
4156 ac_save_c_werror_flag=$ac_c_werror_flag
4157 ac_c_werror_flag=yes
4158 ac_cv_prog_cc_g=no
4159 CFLAGS="-g"
4160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4161 /* end confdefs.h. */
4162
4163 int
4164 main ()
4165 {
4166
4167 ;
4168 return 0;
4169 }
4170 _ACEOF
4171 if ac_fn_c_try_compile "$LINENO"; then :
4172 ac_cv_prog_cc_g=yes
4173 else
4174 CFLAGS=""
4175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4176 /* end confdefs.h. */
4177
4178 int
4179 main ()
4180 {
4181
4182 ;
4183 return 0;
4184 }
4185 _ACEOF
4186 if ac_fn_c_try_compile "$LINENO"; then :
4187
4188 else
4189 ac_c_werror_flag=$ac_save_c_werror_flag
4190 CFLAGS="-g"
4191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4192 /* end confdefs.h. */
4193
4194 int
4195 main ()
4196 {
4197
4198 ;
4199 return 0;
4200 }
4201 _ACEOF
4202 if ac_fn_c_try_compile "$LINENO"; then :
4203 ac_cv_prog_cc_g=yes
4204 fi
4205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4206 fi
4207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4208 fi
4209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4210 ac_c_werror_flag=$ac_save_c_werror_flag
4211 fi
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4213 $as_echo "$ac_cv_prog_cc_g" >&6; }
4214 if test "$ac_test_CFLAGS" = set; then
4215 CFLAGS=$ac_save_CFLAGS
4216 elif test $ac_cv_prog_cc_g = yes; then
4217 if test "$GCC" = yes; then
4218 CFLAGS="-g -O2"
4219 else
4220 CFLAGS="-g"
4221 fi
4222 else
4223 if test "$GCC" = yes; then
4224 CFLAGS="-O2"
4225 else
4226 CFLAGS=
4227 fi
4228 fi
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4230 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4231 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4232 $as_echo_n "(cached) " >&6
4233 else
4234 ac_cv_prog_cc_c89=no
4235 ac_save_CC=$CC
4236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237 /* end confdefs.h. */
4238 #include <stdarg.h>
4239 #include <stdio.h>
4240 #include <sys/types.h>
4241 #include <sys/stat.h>
4242 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4243 struct buf { int x; };
4244 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4245 static char *e (p, i)
4246 char **p;
4247 int i;
4248 {
4249 return p[i];
4250 }
4251 static char *f (char * (*g) (char **, int), char **p, ...)
4252 {
4253 char *s;
4254 va_list v;
4255 va_start (v,p);
4256 s = g (p, va_arg (v,int));
4257 va_end (v);
4258 return s;
4259 }
4260
4261 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4262 function prototypes and stuff, but not '\xHH' hex character constants.
4263 These don't provoke an error unfortunately, instead are silently treated
4264 as 'x'. The following induces an error, until -std is added to get
4265 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4266 array size at least. It's necessary to write '\x00'==0 to get something
4267 that's true only with -std. */
4268 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4269
4270 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4271 inside strings and character constants. */
4272 #define FOO(x) 'x'
4273 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4274
4275 int test (int i, double x);
4276 struct s1 {int (*f) (int a);};
4277 struct s2 {int (*f) (double a);};
4278 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4279 int argc;
4280 char **argv;
4281 int
4282 main ()
4283 {
4284 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4285 ;
4286 return 0;
4287 }
4288 _ACEOF
4289 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4290 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4291 do
4292 CC="$ac_save_CC $ac_arg"
4293 if ac_fn_c_try_compile "$LINENO"; then :
4294 ac_cv_prog_cc_c89=$ac_arg
4295 fi
4296 rm -f core conftest.err conftest.$ac_objext
4297 test "x$ac_cv_prog_cc_c89" != "xno" && break
4298 done
4299 rm -f conftest.$ac_ext
4300 CC=$ac_save_CC
4301
4302 fi
4303 # AC_CACHE_VAL
4304 case "x$ac_cv_prog_cc_c89" in
4305 x)
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4307 $as_echo "none needed" >&6; } ;;
4308 xno)
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4310 $as_echo "unsupported" >&6; } ;;
4311 *)
4312 CC="$CC $ac_cv_prog_cc_c89"
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4314 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4315 esac
4316 if test "x$ac_cv_prog_cc_c89" != xno; then :
4317
4318 fi
4319
4320 ac_ext=c
4321 ac_cpp='$CPP $CPPFLAGS'
4322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4325
4326 depcc="$CC" am_compiler_list=
4327
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4329 $as_echo_n "checking dependency style of $depcc... " >&6; }
4330 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4331 $as_echo_n "(cached) " >&6
4332 else
4333 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4334 # We make a subdir and do the tests there. Otherwise we can end up
4335 # making bogus files that we don't know about and never remove. For
4336 # instance it was reported that on HP-UX the gcc test will end up
4337 # making a dummy file named `D' -- because `-MD' means `put the output
4338 # in D'.
4339 mkdir conftest.dir
4340 # Copy depcomp to subdir because otherwise we won't find it if we're
4341 # using a relative directory.
4342 cp "$am_depcomp" conftest.dir
4343 cd conftest.dir
4344 # We will build objects and dependencies in a subdirectory because
4345 # it helps to detect inapplicable dependency modes. For instance
4346 # both Tru64's cc and ICC support -MD to output dependencies as a
4347 # side effect of compilation, but ICC will put the dependencies in
4348 # the current directory while Tru64 will put them in the object
4349 # directory.
4350 mkdir sub
4351
4352 am_cv_CC_dependencies_compiler_type=none
4353 if test "$am_compiler_list" = ""; then
4354 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4355 fi
4356 am__universal=false
4357 case " $depcc " in #(
4358 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4359 esac
4360
4361 for depmode in $am_compiler_list; do
4362 # Setup a source with many dependencies, because some compilers
4363 # like to wrap large dependency lists on column 80 (with \), and
4364 # we should not choose a depcomp mode which is confused by this.
4365 #
4366 # We need to recreate these files for each test, as the compiler may
4367 # overwrite some of them when testing with obscure command lines.
4368 # This happens at least with the AIX C compiler.
4369 : > sub/conftest.c
4370 for i in 1 2 3 4 5 6; do
4371 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4372 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4373 # Solaris 8's {/usr,}/bin/sh.
4374 touch sub/conftst$i.h
4375 done
4376 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4377
4378 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4379 # mode. It turns out that the SunPro C++ compiler does not properly
4380 # handle `-M -o', and we need to detect this. Also, some Intel
4381 # versions had trouble with output in subdirs
4382 am__obj=sub/conftest.${OBJEXT-o}
4383 am__minus_obj="-o $am__obj"
4384 case $depmode in
4385 gcc)
4386 # This depmode causes a compiler race in universal mode.
4387 test "$am__universal" = false || continue
4388 ;;
4389 nosideeffect)
4390 # after this tag, mechanisms are not by side-effect, so they'll
4391 # only be used when explicitly requested
4392 if test "x$enable_dependency_tracking" = xyes; then
4393 continue
4394 else
4395 break
4396 fi
4397 ;;
4398 msvisualcpp | msvcmsys)
4399 # This compiler won't grok `-c -o', but also, the minuso test has
4400 # not run yet. These depmodes are late enough in the game, and
4401 # so weak that their functioning should not be impacted.
4402 am__obj=conftest.${OBJEXT-o}
4403 am__minus_obj=
4404 ;;
4405 none) break ;;
4406 esac
4407 if depmode=$depmode \
4408 source=sub/conftest.c object=$am__obj \
4409 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4410 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4411 >/dev/null 2>conftest.err &&
4412 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4413 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4414 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4415 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4416 # icc doesn't choke on unknown options, it will just issue warnings
4417 # or remarks (even with -Werror). So we grep stderr for any message
4418 # that says an option was ignored or not supported.
4419 # When given -MP, icc 7.0 and 7.1 complain thusly:
4420 # icc: Command line warning: ignoring option '-M'; no argument required
4421 # The diagnosis changed in icc 8.0:
4422 # icc: Command line remark: option '-MP' not supported
4423 if (grep 'ignoring option' conftest.err ||
4424 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4425 am_cv_CC_dependencies_compiler_type=$depmode
4426 break
4427 fi
4428 fi
4429 done
4430
4431 cd ..
4432 rm -rf conftest.dir
4433 else
4434 am_cv_CC_dependencies_compiler_type=none
4435 fi
4436
4437 fi
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4439 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4440 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4441
4442 if
4443 test "x$enable_dependency_tracking" != xno \
4444 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4445 am__fastdepCC_TRUE=
4446 am__fastdepCC_FALSE='#'
4447 else
4448 am__fastdepCC_TRUE='#'
4449 am__fastdepCC_FALSE=
4450 fi
4451
4452
4453
4454 ac_ext=c
4455 ac_cpp='$CPP $CPPFLAGS'
4456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4460 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4461 # On Suns, sometimes $CPP names a directory.
4462 if test -n "$CPP" && test -d "$CPP"; then
4463 CPP=
4464 fi
4465 if test -z "$CPP"; then
4466 if test "${ac_cv_prog_CPP+set}" = set; then :
4467 $as_echo_n "(cached) " >&6
4468 else
4469 # Double quotes because CPP needs to be expanded
4470 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4471 do
4472 ac_preproc_ok=false
4473 for ac_c_preproc_warn_flag in '' yes
4474 do
4475 # Use a header file that comes with gcc, so configuring glibc
4476 # with a fresh cross-compiler works.
4477 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4478 # <limits.h> exists even on freestanding compilers.
4479 # On the NeXT, cc -E runs the code through the compiler's parser,
4480 # not just through cpp. "Syntax error" is here to catch this case.
4481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4482 /* end confdefs.h. */
4483 #ifdef __STDC__
4484 # include <limits.h>
4485 #else
4486 # include <assert.h>
4487 #endif
4488 Syntax error
4489 _ACEOF
4490 if ac_fn_c_try_cpp "$LINENO"; then :
4491
4492 else
4493 # Broken: fails on valid input.
4494 continue
4495 fi
4496 rm -f conftest.err conftest.$ac_ext
4497
4498 # OK, works on sane cases. Now check whether nonexistent headers
4499 # can be detected and how.
4500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4501 /* end confdefs.h. */
4502 #include <ac_nonexistent.h>
4503 _ACEOF
4504 if ac_fn_c_try_cpp "$LINENO"; then :
4505 # Broken: success on invalid input.
4506 continue
4507 else
4508 # Passes both tests.
4509 ac_preproc_ok=:
4510 break
4511 fi
4512 rm -f conftest.err conftest.$ac_ext
4513
4514 done
4515 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4516 rm -f conftest.err conftest.$ac_ext
4517 if $ac_preproc_ok; then :
4518 break
4519 fi
4520
4521 done
4522 ac_cv_prog_CPP=$CPP
4523
4524 fi
4525 CPP=$ac_cv_prog_CPP
4526 else
4527 ac_cv_prog_CPP=$CPP
4528 fi
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4530 $as_echo "$CPP" >&6; }
4531 ac_preproc_ok=false
4532 for ac_c_preproc_warn_flag in '' yes
4533 do
4534 # Use a header file that comes with gcc, so configuring glibc
4535 # with a fresh cross-compiler works.
4536 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4537 # <limits.h> exists even on freestanding compilers.
4538 # On the NeXT, cc -E runs the code through the compiler's parser,
4539 # not just through cpp. "Syntax error" is here to catch this case.
4540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4541 /* end confdefs.h. */
4542 #ifdef __STDC__
4543 # include <limits.h>
4544 #else
4545 # include <assert.h>
4546 #endif
4547 Syntax error
4548 _ACEOF
4549 if ac_fn_c_try_cpp "$LINENO"; then :
4550
4551 else
4552 # Broken: fails on valid input.
4553 continue
4554 fi
4555 rm -f conftest.err conftest.$ac_ext
4556
4557 # OK, works on sane cases. Now check whether nonexistent headers
4558 # can be detected and how.
4559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4560 /* end confdefs.h. */
4561 #include <ac_nonexistent.h>
4562 _ACEOF
4563 if ac_fn_c_try_cpp "$LINENO"; then :
4564 # Broken: success on invalid input.
4565 continue
4566 else
4567 # Passes both tests.
4568 ac_preproc_ok=:
4569 break
4570 fi
4571 rm -f conftest.err conftest.$ac_ext
4572
4573 done
4574 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4575 rm -f conftest.err conftest.$ac_ext
4576 if $ac_preproc_ok; then :
4577
4578 else
4579 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4580 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4581 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4582 See \`config.log' for more details." "$LINENO" 5; }
4583 fi
4584
4585 ac_ext=c
4586 ac_cpp='$CPP $CPPFLAGS'
4587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4590
4591
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4593 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4594 if test "${ac_cv_path_GREP+set}" = set; then :
4595 $as_echo_n "(cached) " >&6
4596 else
4597 if test -z "$GREP"; then
4598 ac_path_GREP_found=false
4599 # Loop through the user's path and test for each of PROGNAME-LIST
4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4602 do
4603 IFS=$as_save_IFS
4604 test -z "$as_dir" && as_dir=.
4605 for ac_prog in grep ggrep; do
4606 for ac_exec_ext in '' $ac_executable_extensions; do
4607 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4608 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4609 # Check for GNU ac_path_GREP and select it if it is found.
4610 # Check for GNU $ac_path_GREP
4611 case `"$ac_path_GREP" --version 2>&1` in
4612 *GNU*)
4613 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4614 *)
4615 ac_count=0
4616 $as_echo_n 0123456789 >"conftest.in"
4617 while :
4618 do
4619 cat "conftest.in" "conftest.in" >"conftest.tmp"
4620 mv "conftest.tmp" "conftest.in"
4621 cp "conftest.in" "conftest.nl"
4622 $as_echo 'GREP' >> "conftest.nl"
4623 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4624 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4625 as_fn_arith $ac_count + 1 && ac_count=$as_val
4626 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4627 # Best one so far, save it but keep looking for a better one
4628 ac_cv_path_GREP="$ac_path_GREP"
4629 ac_path_GREP_max=$ac_count
4630 fi
4631 # 10*(2^10) chars as input seems more than enough
4632 test $ac_count -gt 10 && break
4633 done
4634 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4635 esac
4636
4637 $ac_path_GREP_found && break 3
4638 done
4639 done
4640 done
4641 IFS=$as_save_IFS
4642 if test -z "$ac_cv_path_GREP"; then
4643 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4644 fi
4645 else
4646 ac_cv_path_GREP=$GREP
4647 fi
4648
4649 fi
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4651 $as_echo "$ac_cv_path_GREP" >&6; }
4652 GREP="$ac_cv_path_GREP"
4653
4654
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4656 $as_echo_n "checking for egrep... " >&6; }
4657 if test "${ac_cv_path_EGREP+set}" = set; then :
4658 $as_echo_n "(cached) " >&6
4659 else
4660 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4661 then ac_cv_path_EGREP="$GREP -E"
4662 else
4663 if test -z "$EGREP"; then
4664 ac_path_EGREP_found=false
4665 # Loop through the user's path and test for each of PROGNAME-LIST
4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4668 do
4669 IFS=$as_save_IFS
4670 test -z "$as_dir" && as_dir=.
4671 for ac_prog in egrep; do
4672 for ac_exec_ext in '' $ac_executable_extensions; do
4673 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4674 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4675 # Check for GNU ac_path_EGREP and select it if it is found.
4676 # Check for GNU $ac_path_EGREP
4677 case `"$ac_path_EGREP" --version 2>&1` in
4678 *GNU*)
4679 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4680 *)
4681 ac_count=0
4682 $as_echo_n 0123456789 >"conftest.in"
4683 while :
4684 do
4685 cat "conftest.in" "conftest.in" >"conftest.tmp"
4686 mv "conftest.tmp" "conftest.in"
4687 cp "conftest.in" "conftest.nl"
4688 $as_echo 'EGREP' >> "conftest.nl"
4689 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4690 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4691 as_fn_arith $ac_count + 1 && ac_count=$as_val
4692 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4693 # Best one so far, save it but keep looking for a better one
4694 ac_cv_path_EGREP="$ac_path_EGREP"
4695 ac_path_EGREP_max=$ac_count
4696 fi
4697 # 10*(2^10) chars as input seems more than enough
4698 test $ac_count -gt 10 && break
4699 done
4700 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4701 esac
4702
4703 $ac_path_EGREP_found && break 3
4704 done
4705 done
4706 done
4707 IFS=$as_save_IFS
4708 if test -z "$ac_cv_path_EGREP"; then
4709 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4710 fi
4711 else
4712 ac_cv_path_EGREP=$EGREP
4713 fi
4714
4715 fi
4716 fi
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4718 $as_echo "$ac_cv_path_EGREP" >&6; }
4719 EGREP="$ac_cv_path_EGREP"
4720
4721
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4723 $as_echo_n "checking for ANSI C header files... " >&6; }
4724 if test "${ac_cv_header_stdc+set}" = set; then :
4725 $as_echo_n "(cached) " >&6
4726 else
4727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728 /* end confdefs.h. */
4729 #include <stdlib.h>
4730 #include <stdarg.h>
4731 #include <string.h>
4732 #include <float.h>
4733
4734 int
4735 main ()
4736 {
4737
4738 ;
4739 return 0;
4740 }
4741 _ACEOF
4742 if ac_fn_c_try_compile "$LINENO"; then :
4743 ac_cv_header_stdc=yes
4744 else
4745 ac_cv_header_stdc=no
4746 fi
4747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4748
4749 if test $ac_cv_header_stdc = yes; then
4750 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4752 /* end confdefs.h. */
4753 #include <string.h>
4754
4755 _ACEOF
4756 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4757 $EGREP "memchr" >/dev/null 2>&1; then :
4758
4759 else
4760 ac_cv_header_stdc=no
4761 fi
4762 rm -f conftest*
4763
4764 fi
4765
4766 if test $ac_cv_header_stdc = yes; then
4767 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4769 /* end confdefs.h. */
4770 #include <stdlib.h>
4771
4772 _ACEOF
4773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4774 $EGREP "free" >/dev/null 2>&1; then :
4775
4776 else
4777 ac_cv_header_stdc=no
4778 fi
4779 rm -f conftest*
4780
4781 fi
4782
4783 if test $ac_cv_header_stdc = yes; then
4784 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4785 if test "$cross_compiling" = yes; then :
4786 :
4787 else
4788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789 /* end confdefs.h. */
4790 #include <ctype.h>
4791 #include <stdlib.h>
4792 #if ((' ' & 0x0FF) == 0x020)
4793 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4794 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4795 #else
4796 # define ISLOWER(c) \
4797 (('a' <= (c) && (c) <= 'i') \
4798 || ('j' <= (c) && (c) <= 'r') \
4799 || ('s' <= (c) && (c) <= 'z'))
4800 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4801 #endif
4802
4803 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4804 int
4805 main ()
4806 {
4807 int i;
4808 for (i = 0; i < 256; i++)
4809 if (XOR (islower (i), ISLOWER (i))
4810 || toupper (i) != TOUPPER (i))
4811 return 2;
4812 return 0;
4813 }
4814 _ACEOF
4815 if ac_fn_c_try_run "$LINENO"; then :
4816
4817 else
4818 ac_cv_header_stdc=no
4819 fi
4820 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4821 conftest.$ac_objext conftest.beam conftest.$ac_ext
4822 fi
4823
4824 fi
4825 fi
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4827 $as_echo "$ac_cv_header_stdc" >&6; }
4828 if test $ac_cv_header_stdc = yes; then
4829
4830 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4831
4832 fi
4833
4834 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4835 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4836 inttypes.h stdint.h unistd.h
4837 do :
4838 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4839 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4840 "
4841 eval as_val=\$$as_ac_Header
4842 if test "x$as_val" = x""yes; then :
4843 cat >>confdefs.h <<_ACEOF
4844 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4845 _ACEOF
4846
4847 fi
4848
4849 done
4850
4851
4852
4853 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4854 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4855 MINIX=yes
4856 else
4857 MINIX=
4858 fi
4859
4860
4861 if test "$MINIX" = yes; then
4862
4863 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4864
4865
4866 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4867
4868
4869 $as_echo "#define _MINIX 1" >>confdefs.h
4870
4871 fi
4872
4873
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4875 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4876 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4877 $as_echo_n "(cached) " >&6
4878 else
4879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4880 /* end confdefs.h. */
4881
4882 # define __EXTENSIONS__ 1
4883 $ac_includes_default
4884 int
4885 main ()
4886 {
4887
4888 ;
4889 return 0;
4890 }
4891 _ACEOF
4892 if ac_fn_c_try_compile "$LINENO"; then :
4893 ac_cv_safe_to_define___extensions__=yes
4894 else
4895 ac_cv_safe_to_define___extensions__=no
4896 fi
4897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4898 fi
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4900 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4901 test $ac_cv_safe_to_define___extensions__ = yes &&
4902 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4903
4904 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4905
4906 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4907
4908 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4909
4910 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4911
4912
4913
4914 # Calculate toolexeclibdir
4915 # Also toolexecdir, though it's only used in toolexeclibdir
4916 case ${version_specific_libs} in
4917 yes)
4918 # Need the gcc compiler version to know where to install libraries
4919 # and header files if --enable-version-specific-runtime-libs option
4920 # is selected.
4921 toolexecdir='$(libdir)/gcc/$(target_alias)'
4922 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4923 ;;
4924 no)
4925 if test -n "$with_cross_host" &&
4926 test x"$with_cross_host" != x"no"; then
4927 # Install a library built with a cross compiler in tooldir, not libdir.
4928 toolexecdir='$(exec_prefix)/$(target_alias)'
4929 toolexeclibdir='$(toolexecdir)/lib'
4930 else
4931 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4932 toolexeclibdir='$(libdir)'
4933 fi
4934 multi_os_directory=`$CC -print-multi-os-directory`
4935 case $multi_os_directory in
4936 .) ;; # Avoid trailing /.
4937 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
4938 esac
4939 ;;
4940 esac
4941
4942
4943
4944 # Create a spec file, so that compile/link tests don't fail
4945 test -f libgfortran.spec || touch libgfortran.spec
4946
4947 ac_ext=c
4948 ac_cpp='$CPP $CPPFLAGS'
4949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4952
4953 # Check the compiler.
4954 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
4955 # We must force CC to /not/ be precious variables; otherwise
4956 # the wrong, non-multilib-adjusted value will be used in multilibs.
4957 # As a side effect, we have to subst CFLAGS ourselves.
4958
4959
4960
4961 ac_ext=c
4962 ac_cpp='$CPP $CPPFLAGS'
4963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4966 if test -n "$ac_tool_prefix"; then
4967 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4968 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4970 $as_echo_n "checking for $ac_word... " >&6; }
4971 if test "${ac_cv_prog_CC+set}" = set; then :
4972 $as_echo_n "(cached) " >&6
4973 else
4974 if test -n "$CC"; then
4975 ac_cv_prog_CC="$CC" # Let the user override the test.
4976 else
4977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978 for as_dir in $PATH
4979 do
4980 IFS=$as_save_IFS
4981 test -z "$as_dir" && as_dir=.
4982 for ac_exec_ext in '' $ac_executable_extensions; do
4983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4984 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4986 break 2
4987 fi
4988 done
4989 done
4990 IFS=$as_save_IFS
4991
4992 fi
4993 fi
4994 CC=$ac_cv_prog_CC
4995 if test -n "$CC"; then
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4997 $as_echo "$CC" >&6; }
4998 else
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5000 $as_echo "no" >&6; }
5001 fi
5002
5003
5004 fi
5005 if test -z "$ac_cv_prog_CC"; then
5006 ac_ct_CC=$CC
5007 # Extract the first word of "gcc", so it can be a program name with args.
5008 set dummy gcc; ac_word=$2
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5010 $as_echo_n "checking for $ac_word... " >&6; }
5011 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5012 $as_echo_n "(cached) " >&6
5013 else
5014 if test -n "$ac_ct_CC"; then
5015 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5016 else
5017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5018 for as_dir in $PATH
5019 do
5020 IFS=$as_save_IFS
5021 test -z "$as_dir" && as_dir=.
5022 for ac_exec_ext in '' $ac_executable_extensions; do
5023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5024 ac_cv_prog_ac_ct_CC="gcc"
5025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5026 break 2
5027 fi
5028 done
5029 done
5030 IFS=$as_save_IFS
5031
5032 fi
5033 fi
5034 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5035 if test -n "$ac_ct_CC"; then
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5037 $as_echo "$ac_ct_CC" >&6; }
5038 else
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5040 $as_echo "no" >&6; }
5041 fi
5042
5043 if test "x$ac_ct_CC" = x; then
5044 CC=""
5045 else
5046 case $cross_compiling:$ac_tool_warned in
5047 yes:)
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5049 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5050 ac_tool_warned=yes ;;
5051 esac
5052 CC=$ac_ct_CC
5053 fi
5054 else
5055 CC="$ac_cv_prog_CC"
5056 fi
5057
5058 if test -z "$CC"; then
5059 if test -n "$ac_tool_prefix"; then
5060 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5061 set dummy ${ac_tool_prefix}cc; ac_word=$2
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5063 $as_echo_n "checking for $ac_word... " >&6; }
5064 if test "${ac_cv_prog_CC+set}" = set; then :
5065 $as_echo_n "(cached) " >&6
5066 else
5067 if test -n "$CC"; then
5068 ac_cv_prog_CC="$CC" # Let the user override the test.
5069 else
5070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5071 for as_dir in $PATH
5072 do
5073 IFS=$as_save_IFS
5074 test -z "$as_dir" && as_dir=.
5075 for ac_exec_ext in '' $ac_executable_extensions; do
5076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5077 ac_cv_prog_CC="${ac_tool_prefix}cc"
5078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5079 break 2
5080 fi
5081 done
5082 done
5083 IFS=$as_save_IFS
5084
5085 fi
5086 fi
5087 CC=$ac_cv_prog_CC
5088 if test -n "$CC"; then
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5090 $as_echo "$CC" >&6; }
5091 else
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5093 $as_echo "no" >&6; }
5094 fi
5095
5096
5097 fi
5098 fi
5099 if test -z "$CC"; then
5100 # Extract the first word of "cc", so it can be a program name with args.
5101 set dummy cc; ac_word=$2
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5103 $as_echo_n "checking for $ac_word... " >&6; }
5104 if test "${ac_cv_prog_CC+set}" = set; then :
5105 $as_echo_n "(cached) " >&6
5106 else
5107 if test -n "$CC"; then
5108 ac_cv_prog_CC="$CC" # Let the user override the test.
5109 else
5110 ac_prog_rejected=no
5111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112 for as_dir in $PATH
5113 do
5114 IFS=$as_save_IFS
5115 test -z "$as_dir" && as_dir=.
5116 for ac_exec_ext in '' $ac_executable_extensions; do
5117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5118 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5119 ac_prog_rejected=yes
5120 continue
5121 fi
5122 ac_cv_prog_CC="cc"
5123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5124 break 2
5125 fi
5126 done
5127 done
5128 IFS=$as_save_IFS
5129
5130 if test $ac_prog_rejected = yes; then
5131 # We found a bogon in the path, so make sure we never use it.
5132 set dummy $ac_cv_prog_CC
5133 shift
5134 if test $# != 0; then
5135 # We chose a different compiler from the bogus one.
5136 # However, it has the same basename, so the bogon will be chosen
5137 # first if we set CC to just the basename; use the full file name.
5138 shift
5139 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5140 fi
5141 fi
5142 fi
5143 fi
5144 CC=$ac_cv_prog_CC
5145 if test -n "$CC"; then
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5147 $as_echo "$CC" >&6; }
5148 else
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5150 $as_echo "no" >&6; }
5151 fi
5152
5153
5154 fi
5155 if test -z "$CC"; then
5156 if test -n "$ac_tool_prefix"; then
5157 for ac_prog in cl.exe
5158 do
5159 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5160 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5162 $as_echo_n "checking for $ac_word... " >&6; }
5163 if test "${ac_cv_prog_CC+set}" = set; then :
5164 $as_echo_n "(cached) " >&6
5165 else
5166 if test -n "$CC"; then
5167 ac_cv_prog_CC="$CC" # Let the user override the test.
5168 else
5169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170 for as_dir in $PATH
5171 do
5172 IFS=$as_save_IFS
5173 test -z "$as_dir" && as_dir=.
5174 for ac_exec_ext in '' $ac_executable_extensions; do
5175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5176 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5178 break 2
5179 fi
5180 done
5181 done
5182 IFS=$as_save_IFS
5183
5184 fi
5185 fi
5186 CC=$ac_cv_prog_CC
5187 if test -n "$CC"; then
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5189 $as_echo "$CC" >&6; }
5190 else
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5192 $as_echo "no" >&6; }
5193 fi
5194
5195
5196 test -n "$CC" && break
5197 done
5198 fi
5199 if test -z "$CC"; then
5200 ac_ct_CC=$CC
5201 for ac_prog in cl.exe
5202 do
5203 # Extract the first word of "$ac_prog", so it can be a program name with args.
5204 set dummy $ac_prog; ac_word=$2
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5206 $as_echo_n "checking for $ac_word... " >&6; }
5207 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5208 $as_echo_n "(cached) " >&6
5209 else
5210 if test -n "$ac_ct_CC"; then
5211 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5212 else
5213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214 for as_dir in $PATH
5215 do
5216 IFS=$as_save_IFS
5217 test -z "$as_dir" && as_dir=.
5218 for ac_exec_ext in '' $ac_executable_extensions; do
5219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5220 ac_cv_prog_ac_ct_CC="$ac_prog"
5221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5222 break 2
5223 fi
5224 done
5225 done
5226 IFS=$as_save_IFS
5227
5228 fi
5229 fi
5230 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5231 if test -n "$ac_ct_CC"; then
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5233 $as_echo "$ac_ct_CC" >&6; }
5234 else
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5236 $as_echo "no" >&6; }
5237 fi
5238
5239
5240 test -n "$ac_ct_CC" && break
5241 done
5242
5243 if test "x$ac_ct_CC" = x; then
5244 CC=""
5245 else
5246 case $cross_compiling:$ac_tool_warned in
5247 yes:)
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5249 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5250 ac_tool_warned=yes ;;
5251 esac
5252 CC=$ac_ct_CC
5253 fi
5254 fi
5255
5256 fi
5257
5258
5259 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5260 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5261 as_fn_error "no acceptable C compiler found in \$PATH
5262 See \`config.log' for more details." "$LINENO" 5; }
5263
5264 # Provide some information about the compiler.
5265 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5266 set X $ac_compile
5267 ac_compiler=$2
5268 for ac_option in --version -v -V -qversion; do
5269 { { ac_try="$ac_compiler $ac_option >&5"
5270 case "(($ac_try" in
5271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5272 *) ac_try_echo=$ac_try;;
5273 esac
5274 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5275 $as_echo "$ac_try_echo"; } >&5
5276 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5277 ac_status=$?
5278 if test -s conftest.err; then
5279 sed '10a\
5280 ... rest of stderr output deleted ...
5281 10q' conftest.err >conftest.er1
5282 cat conftest.er1 >&5
5283 rm -f conftest.er1 conftest.err
5284 fi
5285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5286 test $ac_status = 0; }
5287 done
5288
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5290 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5291 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5292 $as_echo_n "(cached) " >&6
5293 else
5294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5295 /* end confdefs.h. */
5296
5297 int
5298 main ()
5299 {
5300 #ifndef __GNUC__
5301 choke me
5302 #endif
5303
5304 ;
5305 return 0;
5306 }
5307 _ACEOF
5308 if ac_fn_c_try_compile "$LINENO"; then :
5309 ac_compiler_gnu=yes
5310 else
5311 ac_compiler_gnu=no
5312 fi
5313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5314 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5315
5316 fi
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5318 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5319 if test $ac_compiler_gnu = yes; then
5320 GCC=yes
5321 else
5322 GCC=
5323 fi
5324 ac_test_CFLAGS=${CFLAGS+set}
5325 ac_save_CFLAGS=$CFLAGS
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5327 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5328 if test "${ac_cv_prog_cc_g+set}" = set; then :
5329 $as_echo_n "(cached) " >&6
5330 else
5331 ac_save_c_werror_flag=$ac_c_werror_flag
5332 ac_c_werror_flag=yes
5333 ac_cv_prog_cc_g=no
5334 CFLAGS="-g"
5335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5336 /* end confdefs.h. */
5337
5338 int
5339 main ()
5340 {
5341
5342 ;
5343 return 0;
5344 }
5345 _ACEOF
5346 if ac_fn_c_try_compile "$LINENO"; then :
5347 ac_cv_prog_cc_g=yes
5348 else
5349 CFLAGS=""
5350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5351 /* end confdefs.h. */
5352
5353 int
5354 main ()
5355 {
5356
5357 ;
5358 return 0;
5359 }
5360 _ACEOF
5361 if ac_fn_c_try_compile "$LINENO"; then :
5362
5363 else
5364 ac_c_werror_flag=$ac_save_c_werror_flag
5365 CFLAGS="-g"
5366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5367 /* end confdefs.h. */
5368
5369 int
5370 main ()
5371 {
5372
5373 ;
5374 return 0;
5375 }
5376 _ACEOF
5377 if ac_fn_c_try_compile "$LINENO"; then :
5378 ac_cv_prog_cc_g=yes
5379 fi
5380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5381 fi
5382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5383 fi
5384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5385 ac_c_werror_flag=$ac_save_c_werror_flag
5386 fi
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5388 $as_echo "$ac_cv_prog_cc_g" >&6; }
5389 if test "$ac_test_CFLAGS" = set; then
5390 CFLAGS=$ac_save_CFLAGS
5391 elif test $ac_cv_prog_cc_g = yes; then
5392 if test "$GCC" = yes; then
5393 CFLAGS="-g -O2"
5394 else
5395 CFLAGS="-g"
5396 fi
5397 else
5398 if test "$GCC" = yes; then
5399 CFLAGS="-O2"
5400 else
5401 CFLAGS=
5402 fi
5403 fi
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5405 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5406 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5407 $as_echo_n "(cached) " >&6
5408 else
5409 ac_cv_prog_cc_c89=no
5410 ac_save_CC=$CC
5411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5412 /* end confdefs.h. */
5413 #include <stdarg.h>
5414 #include <stdio.h>
5415 #include <sys/types.h>
5416 #include <sys/stat.h>
5417 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5418 struct buf { int x; };
5419 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5420 static char *e (p, i)
5421 char **p;
5422 int i;
5423 {
5424 return p[i];
5425 }
5426 static char *f (char * (*g) (char **, int), char **p, ...)
5427 {
5428 char *s;
5429 va_list v;
5430 va_start (v,p);
5431 s = g (p, va_arg (v,int));
5432 va_end (v);
5433 return s;
5434 }
5435
5436 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5437 function prototypes and stuff, but not '\xHH' hex character constants.
5438 These don't provoke an error unfortunately, instead are silently treated
5439 as 'x'. The following induces an error, until -std is added to get
5440 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5441 array size at least. It's necessary to write '\x00'==0 to get something
5442 that's true only with -std. */
5443 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5444
5445 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5446 inside strings and character constants. */
5447 #define FOO(x) 'x'
5448 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5449
5450 int test (int i, double x);
5451 struct s1 {int (*f) (int a);};
5452 struct s2 {int (*f) (double a);};
5453 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5454 int argc;
5455 char **argv;
5456 int
5457 main ()
5458 {
5459 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5460 ;
5461 return 0;
5462 }
5463 _ACEOF
5464 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5465 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5466 do
5467 CC="$ac_save_CC $ac_arg"
5468 if ac_fn_c_try_compile "$LINENO"; then :
5469 ac_cv_prog_cc_c89=$ac_arg
5470 fi
5471 rm -f core conftest.err conftest.$ac_objext
5472 test "x$ac_cv_prog_cc_c89" != "xno" && break
5473 done
5474 rm -f conftest.$ac_ext
5475 CC=$ac_save_CC
5476
5477 fi
5478 # AC_CACHE_VAL
5479 case "x$ac_cv_prog_cc_c89" in
5480 x)
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5482 $as_echo "none needed" >&6; } ;;
5483 xno)
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5485 $as_echo "unsupported" >&6; } ;;
5486 *)
5487 CC="$CC $ac_cv_prog_cc_c89"
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5489 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5490 esac
5491 if test "x$ac_cv_prog_cc_c89" != xno; then :
5492
5493 fi
5494
5495 ac_ext=c
5496 ac_cpp='$CPP $CPPFLAGS'
5497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5500
5501 depcc="$CC" am_compiler_list=
5502
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5504 $as_echo_n "checking dependency style of $depcc... " >&6; }
5505 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5506 $as_echo_n "(cached) " >&6
5507 else
5508 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5509 # We make a subdir and do the tests there. Otherwise we can end up
5510 # making bogus files that we don't know about and never remove. For
5511 # instance it was reported that on HP-UX the gcc test will end up
5512 # making a dummy file named `D' -- because `-MD' means `put the output
5513 # in D'.
5514 mkdir conftest.dir
5515 # Copy depcomp to subdir because otherwise we won't find it if we're
5516 # using a relative directory.
5517 cp "$am_depcomp" conftest.dir
5518 cd conftest.dir
5519 # We will build objects and dependencies in a subdirectory because
5520 # it helps to detect inapplicable dependency modes. For instance
5521 # both Tru64's cc and ICC support -MD to output dependencies as a
5522 # side effect of compilation, but ICC will put the dependencies in
5523 # the current directory while Tru64 will put them in the object
5524 # directory.
5525 mkdir sub
5526
5527 am_cv_CC_dependencies_compiler_type=none
5528 if test "$am_compiler_list" = ""; then
5529 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5530 fi
5531 am__universal=false
5532 case " $depcc " in #(
5533 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5534 esac
5535
5536 for depmode in $am_compiler_list; do
5537 # Setup a source with many dependencies, because some compilers
5538 # like to wrap large dependency lists on column 80 (with \), and
5539 # we should not choose a depcomp mode which is confused by this.
5540 #
5541 # We need to recreate these files for each test, as the compiler may
5542 # overwrite some of them when testing with obscure command lines.
5543 # This happens at least with the AIX C compiler.
5544 : > sub/conftest.c
5545 for i in 1 2 3 4 5 6; do
5546 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5547 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5548 # Solaris 8's {/usr,}/bin/sh.
5549 touch sub/conftst$i.h
5550 done
5551 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5552
5553 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5554 # mode. It turns out that the SunPro C++ compiler does not properly
5555 # handle `-M -o', and we need to detect this. Also, some Intel
5556 # versions had trouble with output in subdirs
5557 am__obj=sub/conftest.${OBJEXT-o}
5558 am__minus_obj="-o $am__obj"
5559 case $depmode in
5560 gcc)
5561 # This depmode causes a compiler race in universal mode.
5562 test "$am__universal" = false || continue
5563 ;;
5564 nosideeffect)
5565 # after this tag, mechanisms are not by side-effect, so they'll
5566 # only be used when explicitly requested
5567 if test "x$enable_dependency_tracking" = xyes; then
5568 continue
5569 else
5570 break
5571 fi
5572 ;;
5573 msvisualcpp | msvcmsys)
5574 # This compiler won't grok `-c -o', but also, the minuso test has
5575 # not run yet. These depmodes are late enough in the game, and
5576 # so weak that their functioning should not be impacted.
5577 am__obj=conftest.${OBJEXT-o}
5578 am__minus_obj=
5579 ;;
5580 none) break ;;
5581 esac
5582 if depmode=$depmode \
5583 source=sub/conftest.c object=$am__obj \
5584 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5585 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5586 >/dev/null 2>conftest.err &&
5587 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5588 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5589 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5590 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5591 # icc doesn't choke on unknown options, it will just issue warnings
5592 # or remarks (even with -Werror). So we grep stderr for any message
5593 # that says an option was ignored or not supported.
5594 # When given -MP, icc 7.0 and 7.1 complain thusly:
5595 # icc: Command line warning: ignoring option '-M'; no argument required
5596 # The diagnosis changed in icc 8.0:
5597 # icc: Command line remark: option '-MP' not supported
5598 if (grep 'ignoring option' conftest.err ||
5599 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5600 am_cv_CC_dependencies_compiler_type=$depmode
5601 break
5602 fi
5603 fi
5604 done
5605
5606 cd ..
5607 rm -rf conftest.dir
5608 else
5609 am_cv_CC_dependencies_compiler_type=none
5610 fi
5611
5612 fi
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5614 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5615 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5616
5617 if
5618 test "x$enable_dependency_tracking" != xno \
5619 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5620 am__fastdepCC_TRUE=
5621 am__fastdepCC_FALSE='#'
5622 else
5623 am__fastdepCC_TRUE='#'
5624 am__fastdepCC_FALSE=
5625 fi
5626
5627
5628
5629
5630
5631
5632 if test "x$CC" != xcc; then
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5634 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5635 else
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5637 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5638 fi
5639 set dummy $CC; ac_cc=`$as_echo "$2" |
5640 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5641 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5642 $as_echo_n "(cached) " >&6
5643 else
5644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5645 /* end confdefs.h. */
5646
5647 int
5648 main ()
5649 {
5650
5651 ;
5652 return 0;
5653 }
5654 _ACEOF
5655 # Make sure it works both with $CC and with simple cc.
5656 # We do the test twice because some compilers refuse to overwrite an
5657 # existing .o file with -o, though they will create one.
5658 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5659 rm -f conftest2.*
5660 if { { case "(($ac_try" in
5661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5662 *) ac_try_echo=$ac_try;;
5663 esac
5664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5665 $as_echo "$ac_try_echo"; } >&5
5666 (eval "$ac_try") 2>&5
5667 ac_status=$?
5668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5669 test $ac_status = 0; } &&
5670 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5672 *) ac_try_echo=$ac_try;;
5673 esac
5674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5675 $as_echo "$ac_try_echo"; } >&5
5676 (eval "$ac_try") 2>&5
5677 ac_status=$?
5678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5679 test $ac_status = 0; };
5680 then
5681 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5682 if test "x$CC" != xcc; then
5683 # Test first that cc exists at all.
5684 if { ac_try='cc -c conftest.$ac_ext >&5'
5685 { { case "(($ac_try" in
5686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5687 *) ac_try_echo=$ac_try;;
5688 esac
5689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5690 $as_echo "$ac_try_echo"; } >&5
5691 (eval "$ac_try") 2>&5
5692 ac_status=$?
5693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5694 test $ac_status = 0; }; }; then
5695 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5696 rm -f conftest2.*
5697 if { { case "(($ac_try" in
5698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5699 *) ac_try_echo=$ac_try;;
5700 esac
5701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5702 $as_echo "$ac_try_echo"; } >&5
5703 (eval "$ac_try") 2>&5
5704 ac_status=$?
5705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5706 test $ac_status = 0; } &&
5707 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5709 *) ac_try_echo=$ac_try;;
5710 esac
5711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5712 $as_echo "$ac_try_echo"; } >&5
5713 (eval "$ac_try") 2>&5
5714 ac_status=$?
5715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5716 test $ac_status = 0; };
5717 then
5718 # cc works too.
5719 :
5720 else
5721 # cc exists but doesn't like -o.
5722 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5723 fi
5724 fi
5725 fi
5726 else
5727 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5728 fi
5729 rm -f core conftest*
5730
5731 fi
5732 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5734 $as_echo "yes" >&6; }
5735 else
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5737 $as_echo "no" >&6; }
5738
5739 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5740
5741 fi
5742
5743 # FIXME: we rely on the cache variable name because
5744 # there is no other way.
5745 set dummy $CC
5746 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5747 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5748 if test "$am_t" != yes; then
5749 # Losing compiler, so override with the script.
5750 # FIXME: It is wrong to rewrite CC.
5751 # But if we don't then we get into trouble of one sort or another.
5752 # A longer-term fix would be to have automake use am__CC in this case,
5753 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5754 CC="$am_aux_dir/compile $CC"
5755 fi
5756
5757
5758
5759 # Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC.
5760 if test "x$GCC" = "xyes"; then
5761 AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring"
5762 ## We like to use C99 routines when available. This makes sure that
5763 ## __STDC_VERSION__ is set such that libc includes make them available.
5764 AM_CFLAGS="-std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings"
5765 ## Compile the following tests with the same system header contents
5766 ## that we'll encounter when compiling our own source files.
5767 CFLAGS="-std=gnu99 $CFLAGS"
5768 fi
5769
5770
5771
5772
5773 # Check for symbol versioning (copied from libssp).
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
5775 $as_echo_n "checking whether symbol versioning is supported... " >&6; }
5776 # Check whether --enable-symvers was given.
5777 if test "${enable_symvers+set}" = set; then :
5778 enableval=$enable_symvers; gfortran_use_symver=$enableval
5779 else
5780 gfortran_use_symver=yes
5781 fi
5782
5783 if test "x$gfortran_use_symver" = xyes; then
5784 save_LDFLAGS="$LDFLAGS"
5785 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
5786 cat > conftest.map <<EOF
5787 FOO_1.0 {
5788 global: *foo*; bar; local: *;
5789 };
5790 EOF
5791 if test x$gcc_no_link = xyes; then
5792 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5793 fi
5794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5795 /* end confdefs.h. */
5796 int foo;
5797 int
5798 main ()
5799 {
5800
5801 ;
5802 return 0;
5803 }
5804 _ACEOF
5805 if ac_fn_c_try_link "$LINENO"; then :
5806 gfortran_use_symver=gnu
5807 else
5808 gfortran_use_symver=no
5809 fi
5810 rm -f core conftest.err conftest.$ac_objext \
5811 conftest$ac_exeext conftest.$ac_ext
5812 if test x$gfortran_use_symver = xno; then
5813 case "$target_os" in
5814 solaris2*)
5815 LDFLAGS="$save_LDFLAGS"
5816 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
5817 # Sun ld cannot handle wildcards and treats all entries as undefined.
5818 cat > conftest.map <<EOF
5819 FOO_1.0 {
5820 global: foo; local: *;
5821 };
5822 EOF
5823 if test x$gcc_no_link = xyes; then
5824 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5825 fi
5826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5827 /* end confdefs.h. */
5828 int foo;
5829 int
5830 main ()
5831 {
5832
5833 ;
5834 return 0;
5835 }
5836 _ACEOF
5837 if ac_fn_c_try_link "$LINENO"; then :
5838 gfortran_use_symver=sun
5839 else
5840 gfortran_use_symver=no
5841 fi
5842 rm -f core conftest.err conftest.$ac_objext \
5843 conftest$ac_exeext conftest.$ac_ext
5844 ;;
5845 esac
5846 fi
5847 LDFLAGS="$save_LDFLAGS"
5848 fi
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gfortran_use_symver" >&5
5850 $as_echo "$gfortran_use_symver" >&6; }
5851 if test "x$gfortran_use_symver" != xno; then
5852 LIBGFOR_USE_SYMVER_TRUE=
5853 LIBGFOR_USE_SYMVER_FALSE='#'
5854 else
5855 LIBGFOR_USE_SYMVER_TRUE='#'
5856 LIBGFOR_USE_SYMVER_FALSE=
5857 fi
5858
5859 if test "x$gfortran_use_symver" = xgnu; then
5860 LIBGFOR_USE_SYMVER_GNU_TRUE=
5861 LIBGFOR_USE_SYMVER_GNU_FALSE='#'
5862 else
5863 LIBGFOR_USE_SYMVER_GNU_TRUE='#'
5864 LIBGFOR_USE_SYMVER_GNU_FALSE=
5865 fi
5866
5867 if test "x$gfortran_use_symver" = xsun; then
5868 LIBGFOR_USE_SYMVER_SUN_TRUE=
5869 LIBGFOR_USE_SYMVER_SUN_FALSE='#'
5870 else
5871 LIBGFOR_USE_SYMVER_SUN_TRUE='#'
5872 LIBGFOR_USE_SYMVER_SUN_FALSE=
5873 fi
5874
5875
5876 # Figure out whether the compiler supports "-ffunction-sections -fdata-sections",
5877 # similarly to how libstdc++ does it
5878 ac_test_CFLAGS="${CFLAGS+set}"
5879 ac_save_CFLAGS="$CFLAGS"
5880
5881 # Check for -ffunction-sections -fdata-sections
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc that supports -ffunction-sections -fdata-sections" >&5
5883 $as_echo_n "checking for gcc that supports -ffunction-sections -fdata-sections... " >&6; }
5884 CFLAGS='-Werror -ffunction-sections -fdata-sections'
5885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5886 /* end confdefs.h. */
5887
5888 int
5889 main ()
5890 {
5891 int foo;
5892 ;
5893 return 0;
5894 }
5895 _ACEOF
5896 if ac_fn_c_try_compile "$LINENO"; then :
5897 ac_fdsections=yes
5898 else
5899 ac_fdsections=no
5900 fi
5901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5902 if test "$ac_test_CFLAGS" = set; then
5903 CFLAGS="$ac_save_CFLAGS"
5904 else
5905 # this is the suspicious part
5906 CFLAGS=""
5907 fi
5908 if test x"$ac_fdsections" = x"yes"; then
5909 SECTION_FLAGS='-ffunction-sections -fdata-sections'
5910 fi
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
5912 $as_echo "$ac_fdsections" >&6; }
5913
5914
5915 # Find other programs we need.
5916 if test -n "$ac_tool_prefix"; then
5917 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5918 set dummy ${ac_tool_prefix}as; ac_word=$2
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5920 $as_echo_n "checking for $ac_word... " >&6; }
5921 if test "${ac_cv_prog_AS+set}" = set; then :
5922 $as_echo_n "(cached) " >&6
5923 else
5924 if test -n "$AS"; then
5925 ac_cv_prog_AS="$AS" # Let the user override the test.
5926 else
5927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5928 for as_dir in $PATH
5929 do
5930 IFS=$as_save_IFS
5931 test -z "$as_dir" && as_dir=.
5932 for ac_exec_ext in '' $ac_executable_extensions; do
5933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5934 ac_cv_prog_AS="${ac_tool_prefix}as"
5935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5936 break 2
5937 fi
5938 done
5939 done
5940 IFS=$as_save_IFS
5941
5942 fi
5943 fi
5944 AS=$ac_cv_prog_AS
5945 if test -n "$AS"; then
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5947 $as_echo "$AS" >&6; }
5948 else
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5950 $as_echo "no" >&6; }
5951 fi
5952
5953
5954 fi
5955 if test -z "$ac_cv_prog_AS"; then
5956 ac_ct_AS=$AS
5957 # Extract the first word of "as", so it can be a program name with args.
5958 set dummy as; ac_word=$2
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5960 $as_echo_n "checking for $ac_word... " >&6; }
5961 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5962 $as_echo_n "(cached) " >&6
5963 else
5964 if test -n "$ac_ct_AS"; then
5965 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5966 else
5967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5968 for as_dir in $PATH
5969 do
5970 IFS=$as_save_IFS
5971 test -z "$as_dir" && as_dir=.
5972 for ac_exec_ext in '' $ac_executable_extensions; do
5973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5974 ac_cv_prog_ac_ct_AS="as"
5975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5976 break 2
5977 fi
5978 done
5979 done
5980 IFS=$as_save_IFS
5981
5982 fi
5983 fi
5984 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5985 if test -n "$ac_ct_AS"; then
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5987 $as_echo "$ac_ct_AS" >&6; }
5988 else
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5990 $as_echo "no" >&6; }
5991 fi
5992
5993 if test "x$ac_ct_AS" = x; then
5994 AS=""
5995 else
5996 case $cross_compiling:$ac_tool_warned in
5997 yes:)
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5999 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6000 ac_tool_warned=yes ;;
6001 esac
6002 AS=$ac_ct_AS
6003 fi
6004 else
6005 AS="$ac_cv_prog_AS"
6006 fi
6007
6008 if test -n "$ac_tool_prefix"; then
6009 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6010 set dummy ${ac_tool_prefix}ar; ac_word=$2
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6012 $as_echo_n "checking for $ac_word... " >&6; }
6013 if test "${ac_cv_prog_AR+set}" = set; then :
6014 $as_echo_n "(cached) " >&6
6015 else
6016 if test -n "$AR"; then
6017 ac_cv_prog_AR="$AR" # Let the user override the test.
6018 else
6019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6020 for as_dir in $PATH
6021 do
6022 IFS=$as_save_IFS
6023 test -z "$as_dir" && as_dir=.
6024 for ac_exec_ext in '' $ac_executable_extensions; do
6025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6026 ac_cv_prog_AR="${ac_tool_prefix}ar"
6027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6028 break 2
6029 fi
6030 done
6031 done
6032 IFS=$as_save_IFS
6033
6034 fi
6035 fi
6036 AR=$ac_cv_prog_AR
6037 if test -n "$AR"; then
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6039 $as_echo "$AR" >&6; }
6040 else
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6042 $as_echo "no" >&6; }
6043 fi
6044
6045
6046 fi
6047 if test -z "$ac_cv_prog_AR"; then
6048 ac_ct_AR=$AR
6049 # Extract the first word of "ar", so it can be a program name with args.
6050 set dummy ar; ac_word=$2
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6052 $as_echo_n "checking for $ac_word... " >&6; }
6053 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6054 $as_echo_n "(cached) " >&6
6055 else
6056 if test -n "$ac_ct_AR"; then
6057 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6058 else
6059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060 for as_dir in $PATH
6061 do
6062 IFS=$as_save_IFS
6063 test -z "$as_dir" && as_dir=.
6064 for ac_exec_ext in '' $ac_executable_extensions; do
6065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6066 ac_cv_prog_ac_ct_AR="ar"
6067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6068 break 2
6069 fi
6070 done
6071 done
6072 IFS=$as_save_IFS
6073
6074 fi
6075 fi
6076 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6077 if test -n "$ac_ct_AR"; then
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6079 $as_echo "$ac_ct_AR" >&6; }
6080 else
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6082 $as_echo "no" >&6; }
6083 fi
6084
6085 if test "x$ac_ct_AR" = x; then
6086 AR=""
6087 else
6088 case $cross_compiling:$ac_tool_warned in
6089 yes:)
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6091 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6092 ac_tool_warned=yes ;;
6093 esac
6094 AR=$ac_ct_AR
6095 fi
6096 else
6097 AR="$ac_cv_prog_AR"
6098 fi
6099
6100 if test -n "$ac_tool_prefix"; then
6101 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6102 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6104 $as_echo_n "checking for $ac_word... " >&6; }
6105 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6106 $as_echo_n "(cached) " >&6
6107 else
6108 if test -n "$RANLIB"; then
6109 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6110 else
6111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6112 for as_dir in $PATH
6113 do
6114 IFS=$as_save_IFS
6115 test -z "$as_dir" && as_dir=.
6116 for ac_exec_ext in '' $ac_executable_extensions; do
6117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6118 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6120 break 2
6121 fi
6122 done
6123 done
6124 IFS=$as_save_IFS
6125
6126 fi
6127 fi
6128 RANLIB=$ac_cv_prog_RANLIB
6129 if test -n "$RANLIB"; then
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6131 $as_echo "$RANLIB" >&6; }
6132 else
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6134 $as_echo "no" >&6; }
6135 fi
6136
6137
6138 fi
6139 if test -z "$ac_cv_prog_RANLIB"; then
6140 ac_ct_RANLIB=$RANLIB
6141 # Extract the first word of "ranlib", so it can be a program name with args.
6142 set dummy ranlib; ac_word=$2
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6144 $as_echo_n "checking for $ac_word... " >&6; }
6145 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6146 $as_echo_n "(cached) " >&6
6147 else
6148 if test -n "$ac_ct_RANLIB"; then
6149 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6150 else
6151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6152 for as_dir in $PATH
6153 do
6154 IFS=$as_save_IFS
6155 test -z "$as_dir" && as_dir=.
6156 for ac_exec_ext in '' $ac_executable_extensions; do
6157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6158 ac_cv_prog_ac_ct_RANLIB="ranlib"
6159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6160 break 2
6161 fi
6162 done
6163 done
6164 IFS=$as_save_IFS
6165
6166 fi
6167 fi
6168 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6169 if test -n "$ac_ct_RANLIB"; then
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6171 $as_echo "$ac_ct_RANLIB" >&6; }
6172 else
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6174 $as_echo "no" >&6; }
6175 fi
6176
6177 if test "x$ac_ct_RANLIB" = x; then
6178 RANLIB="ranlib-not-found-in-path-error"
6179 else
6180 case $cross_compiling:$ac_tool_warned in
6181 yes:)
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6183 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6184 ac_tool_warned=yes ;;
6185 esac
6186 RANLIB=$ac_ct_RANLIB
6187 fi
6188 else
6189 RANLIB="$ac_cv_prog_RANLIB"
6190 fi
6191
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6193 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6194 set x ${MAKE-make}
6195 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6196 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6197 $as_echo_n "(cached) " >&6
6198 else
6199 cat >conftest.make <<\_ACEOF
6200 SHELL = /bin/sh
6201 all:
6202 @echo '@@@%%%=$(MAKE)=@@@%%%'
6203 _ACEOF
6204 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6205 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6206 *@@@%%%=?*=@@@%%%*)
6207 eval ac_cv_prog_make_${ac_make}_set=yes;;
6208 *)
6209 eval ac_cv_prog_make_${ac_make}_set=no;;
6210 esac
6211 rm -f conftest.make
6212 fi
6213 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6215 $as_echo "yes" >&6; }
6216 SET_MAKE=
6217 else
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6219 $as_echo "no" >&6; }
6220 SET_MAKE="MAKE=${MAKE-make}"
6221 fi
6222
6223
6224
6225 # Configure libtool
6226 #AC_MSG_NOTICE([====== Starting libtool configuration])
6227 enable_dlopen=yes
6228
6229
6230
6231 case `pwd` in
6232 *\ * | *\ *)
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6234 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6235 esac
6236
6237
6238
6239 macro_version='2.2.7a'
6240 macro_revision='1.3134'
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254 ltmain="$ac_aux_dir/ltmain.sh"
6255
6256 # Backslashify metacharacters that are still active within
6257 # double-quoted strings.
6258 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6259
6260 # Same as above, but do not quote variable references.
6261 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6262
6263 # Sed substitution to delay expansion of an escaped shell variable in a
6264 # double_quote_subst'ed string.
6265 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6266
6267 # Sed substitution to delay expansion of an escaped single quote.
6268 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6269
6270 # Sed substitution to avoid accidental globbing in evaled expressions
6271 no_glob_subst='s/\*/\\\*/g'
6272
6273 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6274 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6275 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6276
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6278 $as_echo_n "checking how to print strings... " >&6; }
6279 # Test print first, because it will be a builtin if present.
6280 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6281 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6282 ECHO='print -r --'
6283 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6284 ECHO='printf %s\n'
6285 else
6286 # Use this function as a fallback that always works.
6287 func_fallback_echo ()
6288 {
6289 eval 'cat <<_LTECHO_EOF
6290 $1
6291 _LTECHO_EOF'
6292 }
6293 ECHO='func_fallback_echo'
6294 fi
6295
6296 # func_echo_all arg...
6297 # Invoke $ECHO with all args, space-separated.
6298 func_echo_all ()
6299 {
6300 $ECHO ""
6301 }
6302
6303 case "$ECHO" in
6304 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6305 $as_echo "printf" >&6; } ;;
6306 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6307 $as_echo "print -r" >&6; } ;;
6308 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6309 $as_echo "cat" >&6; } ;;
6310 esac
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6326 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6327 if test "${ac_cv_path_SED+set}" = set; then :
6328 $as_echo_n "(cached) " >&6
6329 else
6330 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6331 for ac_i in 1 2 3 4 5 6 7; do
6332 ac_script="$ac_script$as_nl$ac_script"
6333 done
6334 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6335 { ac_script=; unset ac_script;}
6336 if test -z "$SED"; then
6337 ac_path_SED_found=false
6338 # Loop through the user's path and test for each of PROGNAME-LIST
6339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6340 for as_dir in $PATH
6341 do
6342 IFS=$as_save_IFS
6343 test -z "$as_dir" && as_dir=.
6344 for ac_prog in sed gsed; do
6345 for ac_exec_ext in '' $ac_executable_extensions; do
6346 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6347 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6348 # Check for GNU ac_path_SED and select it if it is found.
6349 # Check for GNU $ac_path_SED
6350 case `"$ac_path_SED" --version 2>&1` in
6351 *GNU*)
6352 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6353 *)
6354 ac_count=0
6355 $as_echo_n 0123456789 >"conftest.in"
6356 while :
6357 do
6358 cat "conftest.in" "conftest.in" >"conftest.tmp"
6359 mv "conftest.tmp" "conftest.in"
6360 cp "conftest.in" "conftest.nl"
6361 $as_echo '' >> "conftest.nl"
6362 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6363 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6364 as_fn_arith $ac_count + 1 && ac_count=$as_val
6365 if test $ac_count -gt ${ac_path_SED_max-0}; then
6366 # Best one so far, save it but keep looking for a better one
6367 ac_cv_path_SED="$ac_path_SED"
6368 ac_path_SED_max=$ac_count
6369 fi
6370 # 10*(2^10) chars as input seems more than enough
6371 test $ac_count -gt 10 && break
6372 done
6373 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6374 esac
6375
6376 $ac_path_SED_found && break 3
6377 done
6378 done
6379 done
6380 IFS=$as_save_IFS
6381 if test -z "$ac_cv_path_SED"; then
6382 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6383 fi
6384 else
6385 ac_cv_path_SED=$SED
6386 fi
6387
6388 fi
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6390 $as_echo "$ac_cv_path_SED" >&6; }
6391 SED="$ac_cv_path_SED"
6392 rm -f conftest.sed
6393
6394 test -z "$SED" && SED=sed
6395 Xsed="$SED -e 1s/^X//"
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6408 $as_echo_n "checking for fgrep... " >&6; }
6409 if test "${ac_cv_path_FGREP+set}" = set; then :
6410 $as_echo_n "(cached) " >&6
6411 else
6412 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6413 then ac_cv_path_FGREP="$GREP -F"
6414 else
6415 if test -z "$FGREP"; then
6416 ac_path_FGREP_found=false
6417 # Loop through the user's path and test for each of PROGNAME-LIST
6418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6419 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6420 do
6421 IFS=$as_save_IFS
6422 test -z "$as_dir" && as_dir=.
6423 for ac_prog in fgrep; do
6424 for ac_exec_ext in '' $ac_executable_extensions; do
6425 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6426 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6427 # Check for GNU ac_path_FGREP and select it if it is found.
6428 # Check for GNU $ac_path_FGREP
6429 case `"$ac_path_FGREP" --version 2>&1` in
6430 *GNU*)
6431 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6432 *)
6433 ac_count=0
6434 $as_echo_n 0123456789 >"conftest.in"
6435 while :
6436 do
6437 cat "conftest.in" "conftest.in" >"conftest.tmp"
6438 mv "conftest.tmp" "conftest.in"
6439 cp "conftest.in" "conftest.nl"
6440 $as_echo 'FGREP' >> "conftest.nl"
6441 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6442 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6443 as_fn_arith $ac_count + 1 && ac_count=$as_val
6444 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6445 # Best one so far, save it but keep looking for a better one
6446 ac_cv_path_FGREP="$ac_path_FGREP"
6447 ac_path_FGREP_max=$ac_count
6448 fi
6449 # 10*(2^10) chars as input seems more than enough
6450 test $ac_count -gt 10 && break
6451 done
6452 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6453 esac
6454
6455 $ac_path_FGREP_found && break 3
6456 done
6457 done
6458 done
6459 IFS=$as_save_IFS
6460 if test -z "$ac_cv_path_FGREP"; then
6461 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6462 fi
6463 else
6464 ac_cv_path_FGREP=$FGREP
6465 fi
6466
6467 fi
6468 fi
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6470 $as_echo "$ac_cv_path_FGREP" >&6; }
6471 FGREP="$ac_cv_path_FGREP"
6472
6473
6474 test -z "$GREP" && GREP=grep
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494 # Check whether --with-gnu-ld was given.
6495 if test "${with_gnu_ld+set}" = set; then :
6496 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6497 else
6498 with_gnu_ld=no
6499 fi
6500
6501 ac_prog=ld
6502 if test "$GCC" = yes; then
6503 # Check if gcc -print-prog-name=ld gives a path.
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6505 $as_echo_n "checking for ld used by $CC... " >&6; }
6506 case $host in
6507 *-*-mingw*)
6508 # gcc leaves a trailing carriage return which upsets mingw
6509 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6510 *)
6511 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6512 esac
6513 case $ac_prog in
6514 # Accept absolute paths.
6515 [\\/]* | ?:[\\/]*)
6516 re_direlt='/[^/][^/]*/\.\./'
6517 # Canonicalize the pathname of ld
6518 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6519 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6520 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6521 done
6522 test -z "$LD" && LD="$ac_prog"
6523 ;;
6524 "")
6525 # If it fails, then pretend we aren't using GCC.
6526 ac_prog=ld
6527 ;;
6528 *)
6529 # If it is relative, then search for the first ld in PATH.
6530 with_gnu_ld=unknown
6531 ;;
6532 esac
6533 elif test "$with_gnu_ld" = yes; then
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6535 $as_echo_n "checking for GNU ld... " >&6; }
6536 else
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6538 $as_echo_n "checking for non-GNU ld... " >&6; }
6539 fi
6540 if test "${lt_cv_path_LD+set}" = set; then :
6541 $as_echo_n "(cached) " >&6
6542 else
6543 if test -z "$LD"; then
6544 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6545 for ac_dir in $PATH; do
6546 IFS="$lt_save_ifs"
6547 test -z "$ac_dir" && ac_dir=.
6548 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6549 lt_cv_path_LD="$ac_dir/$ac_prog"
6550 # Check to see if the program is GNU ld. I'd rather use --version,
6551 # but apparently some variants of GNU ld only accept -v.
6552 # Break only if it was the GNU/non-GNU ld that we prefer.
6553 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6554 *GNU* | *'with BFD'*)
6555 test "$with_gnu_ld" != no && break
6556 ;;
6557 *)
6558 test "$with_gnu_ld" != yes && break
6559 ;;
6560 esac
6561 fi
6562 done
6563 IFS="$lt_save_ifs"
6564 else
6565 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6566 fi
6567 fi
6568
6569 LD="$lt_cv_path_LD"
6570 if test -n "$LD"; then
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6572 $as_echo "$LD" >&6; }
6573 else
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6575 $as_echo "no" >&6; }
6576 fi
6577 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6579 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6580 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6581 $as_echo_n "(cached) " >&6
6582 else
6583 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6584 case `$LD -v 2>&1 </dev/null` in
6585 *GNU* | *'with BFD'*)
6586 lt_cv_prog_gnu_ld=yes
6587 ;;
6588 *)
6589 lt_cv_prog_gnu_ld=no
6590 ;;
6591 esac
6592 fi
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6594 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6595 with_gnu_ld=$lt_cv_prog_gnu_ld
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6606 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6607 if test "${lt_cv_path_NM+set}" = set; then :
6608 $as_echo_n "(cached) " >&6
6609 else
6610 if test -n "$NM"; then
6611 # Let the user override the test.
6612 lt_cv_path_NM="$NM"
6613 else
6614 lt_nm_to_check="${ac_tool_prefix}nm"
6615 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6616 lt_nm_to_check="$lt_nm_to_check nm"
6617 fi
6618 for lt_tmp_nm in $lt_nm_to_check; do
6619 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6620 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6621 IFS="$lt_save_ifs"
6622 test -z "$ac_dir" && ac_dir=.
6623 tmp_nm="$ac_dir/$lt_tmp_nm"
6624 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6625 # Check to see if the nm accepts a BSD-compat flag.
6626 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6627 # nm: unknown option "B" ignored
6628 # Tru64's nm complains that /dev/null is an invalid object file
6629 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6630 */dev/null* | *'Invalid file or object type'*)
6631 lt_cv_path_NM="$tmp_nm -B"
6632 break
6633 ;;
6634 *)
6635 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6636 */dev/null*)
6637 lt_cv_path_NM="$tmp_nm -p"
6638 break
6639 ;;
6640 *)
6641 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6642 continue # so that we can try to find one that supports BSD flags
6643 ;;
6644 esac
6645 ;;
6646 esac
6647 fi
6648 done
6649 IFS="$lt_save_ifs"
6650 done
6651 : ${lt_cv_path_NM=no}
6652 fi
6653 fi
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6655 $as_echo "$lt_cv_path_NM" >&6; }
6656 if test "$lt_cv_path_NM" != "no"; then
6657 NM="$lt_cv_path_NM"
6658 else
6659 # Didn't find any BSD compatible name lister, look for dumpbin.
6660 if test -n "$DUMPBIN"; then :
6661 # Let the user override the test.
6662 else
6663 if test -n "$ac_tool_prefix"; then
6664 for ac_prog in dumpbin "link -dump"
6665 do
6666 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6667 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6669 $as_echo_n "checking for $ac_word... " >&6; }
6670 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6671 $as_echo_n "(cached) " >&6
6672 else
6673 if test -n "$DUMPBIN"; then
6674 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6675 else
6676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677 for as_dir in $PATH
6678 do
6679 IFS=$as_save_IFS
6680 test -z "$as_dir" && as_dir=.
6681 for ac_exec_ext in '' $ac_executable_extensions; do
6682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6683 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6685 break 2
6686 fi
6687 done
6688 done
6689 IFS=$as_save_IFS
6690
6691 fi
6692 fi
6693 DUMPBIN=$ac_cv_prog_DUMPBIN
6694 if test -n "$DUMPBIN"; then
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6696 $as_echo "$DUMPBIN" >&6; }
6697 else
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6699 $as_echo "no" >&6; }
6700 fi
6701
6702
6703 test -n "$DUMPBIN" && break
6704 done
6705 fi
6706 if test -z "$DUMPBIN"; then
6707 ac_ct_DUMPBIN=$DUMPBIN
6708 for ac_prog in dumpbin "link -dump"
6709 do
6710 # Extract the first word of "$ac_prog", so it can be a program name with args.
6711 set dummy $ac_prog; ac_word=$2
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6713 $as_echo_n "checking for $ac_word... " >&6; }
6714 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6715 $as_echo_n "(cached) " >&6
6716 else
6717 if test -n "$ac_ct_DUMPBIN"; then
6718 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6719 else
6720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6721 for as_dir in $PATH
6722 do
6723 IFS=$as_save_IFS
6724 test -z "$as_dir" && as_dir=.
6725 for ac_exec_ext in '' $ac_executable_extensions; do
6726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6727 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6729 break 2
6730 fi
6731 done
6732 done
6733 IFS=$as_save_IFS
6734
6735 fi
6736 fi
6737 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6738 if test -n "$ac_ct_DUMPBIN"; then
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6740 $as_echo "$ac_ct_DUMPBIN" >&6; }
6741 else
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6743 $as_echo "no" >&6; }
6744 fi
6745
6746
6747 test -n "$ac_ct_DUMPBIN" && break
6748 done
6749
6750 if test "x$ac_ct_DUMPBIN" = x; then
6751 DUMPBIN=":"
6752 else
6753 case $cross_compiling:$ac_tool_warned in
6754 yes:)
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6756 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6757 ac_tool_warned=yes ;;
6758 esac
6759 DUMPBIN=$ac_ct_DUMPBIN
6760 fi
6761 fi
6762
6763 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6764 *COFF*)
6765 DUMPBIN="$DUMPBIN -symbols"
6766 ;;
6767 *)
6768 DUMPBIN=:
6769 ;;
6770 esac
6771 fi
6772
6773 if test "$DUMPBIN" != ":"; then
6774 NM="$DUMPBIN"
6775 fi
6776 fi
6777 test -z "$NM" && NM=nm
6778
6779
6780
6781
6782
6783
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6785 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6786 if test "${lt_cv_nm_interface+set}" = set; then :
6787 $as_echo_n "(cached) " >&6
6788 else
6789 lt_cv_nm_interface="BSD nm"
6790 echo "int some_variable = 0;" > conftest.$ac_ext
6791 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6792 (eval "$ac_compile" 2>conftest.err)
6793 cat conftest.err >&5
6794 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6795 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6796 cat conftest.err >&5
6797 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6798 cat conftest.out >&5
6799 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6800 lt_cv_nm_interface="MS dumpbin"
6801 fi
6802 rm -f conftest*
6803 fi
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6805 $as_echo "$lt_cv_nm_interface" >&6; }
6806
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6808 $as_echo_n "checking whether ln -s works... " >&6; }
6809 LN_S=$as_ln_s
6810 if test "$LN_S" = "ln -s"; then
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6812 $as_echo "yes" >&6; }
6813 else
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6815 $as_echo "no, using $LN_S" >&6; }
6816 fi
6817
6818 # find the maximum length of command line arguments
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6820 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6821 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6822 $as_echo_n "(cached) " >&6
6823 else
6824 i=0
6825 teststring="ABCD"
6826
6827 case $build_os in
6828 msdosdjgpp*)
6829 # On DJGPP, this test can blow up pretty badly due to problems in libc
6830 # (any single argument exceeding 2000 bytes causes a buffer overrun
6831 # during glob expansion). Even if it were fixed, the result of this
6832 # check would be larger than it should be.
6833 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6834 ;;
6835
6836 gnu*)
6837 # Under GNU Hurd, this test is not required because there is
6838 # no limit to the length of command line arguments.
6839 # Libtool will interpret -1 as no limit whatsoever
6840 lt_cv_sys_max_cmd_len=-1;
6841 ;;
6842
6843 cygwin* | mingw* | cegcc*)
6844 # On Win9x/ME, this test blows up -- it succeeds, but takes
6845 # about 5 minutes as the teststring grows exponentially.
6846 # Worse, since 9x/ME are not pre-emptively multitasking,
6847 # you end up with a "frozen" computer, even though with patience
6848 # the test eventually succeeds (with a max line length of 256k).
6849 # Instead, let's just punt: use the minimum linelength reported by
6850 # all of the supported platforms: 8192 (on NT/2K/XP).
6851 lt_cv_sys_max_cmd_len=8192;
6852 ;;
6853
6854 mint*)
6855 # On MiNT this can take a long time and run out of memory.
6856 lt_cv_sys_max_cmd_len=8192;
6857 ;;
6858
6859 amigaos*)
6860 # On AmigaOS with pdksh, this test takes hours, literally.
6861 # So we just punt and use a minimum line length of 8192.
6862 lt_cv_sys_max_cmd_len=8192;
6863 ;;
6864
6865 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6866 # This has been around since 386BSD, at least. Likely further.
6867 if test -x /sbin/sysctl; then
6868 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6869 elif test -x /usr/sbin/sysctl; then
6870 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6871 else
6872 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6873 fi
6874 # And add a safety zone
6875 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6876 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6877 ;;
6878
6879 interix*)
6880 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6881 lt_cv_sys_max_cmd_len=196608
6882 ;;
6883
6884 osf*)
6885 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6886 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6887 # nice to cause kernel panics so lets avoid the loop below.
6888 # First set a reasonable default.
6889 lt_cv_sys_max_cmd_len=16384
6890 #
6891 if test -x /sbin/sysconfig; then
6892 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6893 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6894 esac
6895 fi
6896 ;;
6897 sco3.2v5*)
6898 lt_cv_sys_max_cmd_len=102400
6899 ;;
6900 sysv5* | sco5v6* | sysv4.2uw2*)
6901 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6902 if test -n "$kargmax"; then
6903 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6904 else
6905 lt_cv_sys_max_cmd_len=32768
6906 fi
6907 ;;
6908 *)
6909 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6910 if test -n "$lt_cv_sys_max_cmd_len"; then
6911 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6912 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6913 else
6914 # Make teststring a little bigger before we do anything with it.
6915 # a 1K string should be a reasonable start.
6916 for i in 1 2 3 4 5 6 7 8 ; do
6917 teststring=$teststring$teststring
6918 done
6919 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6920 # If test is not a shell built-in, we'll probably end up computing a
6921 # maximum length that is only half of the actual maximum length, but
6922 # we can't tell.
6923 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6924 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6925 test $i != 17 # 1/2 MB should be enough
6926 do
6927 i=`expr $i + 1`
6928 teststring=$teststring$teststring
6929 done
6930 # Only check the string length outside the loop.
6931 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6932 teststring=
6933 # Add a significant safety factor because C++ compilers can tack on
6934 # massive amounts of additional arguments before passing them to the
6935 # linker. It appears as though 1/2 is a usable value.
6936 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6937 fi
6938 ;;
6939 esac
6940
6941 fi
6942
6943 if test -n $lt_cv_sys_max_cmd_len ; then
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6945 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6946 else
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6948 $as_echo "none" >&6; }
6949 fi
6950 max_cmd_len=$lt_cv_sys_max_cmd_len
6951
6952
6953
6954
6955
6956
6957 : ${CP="cp -f"}
6958 : ${MV="mv -f"}
6959 : ${RM="rm -f"}
6960
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6962 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6963 # Try some XSI features
6964 xsi_shell=no
6965 ( _lt_dummy="a/b/c"
6966 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6967 = c,a/b,, \
6968 && eval 'test $(( 1 + 1 )) -eq 2 \
6969 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6970 && xsi_shell=yes
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6972 $as_echo "$xsi_shell" >&6; }
6973
6974
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6976 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6977 lt_shell_append=no
6978 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6979 >/dev/null 2>&1 \
6980 && lt_shell_append=yes
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6982 $as_echo "$lt_shell_append" >&6; }
6983
6984
6985 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6986 lt_unset=unset
6987 else
6988 lt_unset=false
6989 fi
6990
6991
6992
6993
6994
6995 # test EBCDIC or ASCII
6996 case `echo X|tr X '\101'` in
6997 A) # ASCII based system
6998 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6999 lt_SP2NL='tr \040 \012'
7000 lt_NL2SP='tr \015\012 \040\040'
7001 ;;
7002 *) # EBCDIC based system
7003 lt_SP2NL='tr \100 \n'
7004 lt_NL2SP='tr \r\n \100\100'
7005 ;;
7006 esac
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7017 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7018 if test "${lt_cv_ld_reload_flag+set}" = set; then :
7019 $as_echo_n "(cached) " >&6
7020 else
7021 lt_cv_ld_reload_flag='-r'
7022 fi
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7024 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7025 reload_flag=$lt_cv_ld_reload_flag
7026 case $reload_flag in
7027 "" | " "*) ;;
7028 *) reload_flag=" $reload_flag" ;;
7029 esac
7030 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7031 case $host_os in
7032 darwin*)
7033 if test "$GCC" = yes; then
7034 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7035 else
7036 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7037 fi
7038 ;;
7039 esac
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049 if test -n "$ac_tool_prefix"; then
7050 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7051 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7053 $as_echo_n "checking for $ac_word... " >&6; }
7054 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7055 $as_echo_n "(cached) " >&6
7056 else
7057 if test -n "$OBJDUMP"; then
7058 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7059 else
7060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7061 for as_dir in $PATH
7062 do
7063 IFS=$as_save_IFS
7064 test -z "$as_dir" && as_dir=.
7065 for ac_exec_ext in '' $ac_executable_extensions; do
7066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7067 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7069 break 2
7070 fi
7071 done
7072 done
7073 IFS=$as_save_IFS
7074
7075 fi
7076 fi
7077 OBJDUMP=$ac_cv_prog_OBJDUMP
7078 if test -n "$OBJDUMP"; then
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7080 $as_echo "$OBJDUMP" >&6; }
7081 else
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7083 $as_echo "no" >&6; }
7084 fi
7085
7086
7087 fi
7088 if test -z "$ac_cv_prog_OBJDUMP"; then
7089 ac_ct_OBJDUMP=$OBJDUMP
7090 # Extract the first word of "objdump", so it can be a program name with args.
7091 set dummy objdump; ac_word=$2
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7093 $as_echo_n "checking for $ac_word... " >&6; }
7094 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7095 $as_echo_n "(cached) " >&6
7096 else
7097 if test -n "$ac_ct_OBJDUMP"; then
7098 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7099 else
7100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7101 for as_dir in $PATH
7102 do
7103 IFS=$as_save_IFS
7104 test -z "$as_dir" && as_dir=.
7105 for ac_exec_ext in '' $ac_executable_extensions; do
7106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7107 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7109 break 2
7110 fi
7111 done
7112 done
7113 IFS=$as_save_IFS
7114
7115 fi
7116 fi
7117 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7118 if test -n "$ac_ct_OBJDUMP"; then
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7120 $as_echo "$ac_ct_OBJDUMP" >&6; }
7121 else
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7123 $as_echo "no" >&6; }
7124 fi
7125
7126 if test "x$ac_ct_OBJDUMP" = x; then
7127 OBJDUMP="false"
7128 else
7129 case $cross_compiling:$ac_tool_warned in
7130 yes:)
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7132 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7133 ac_tool_warned=yes ;;
7134 esac
7135 OBJDUMP=$ac_ct_OBJDUMP
7136 fi
7137 else
7138 OBJDUMP="$ac_cv_prog_OBJDUMP"
7139 fi
7140
7141 test -z "$OBJDUMP" && OBJDUMP=objdump
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7152 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7153 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7154 $as_echo_n "(cached) " >&6
7155 else
7156 lt_cv_file_magic_cmd='$MAGIC_CMD'
7157 lt_cv_file_magic_test_file=
7158 lt_cv_deplibs_check_method='unknown'
7159 # Need to set the preceding variable on all platforms that support
7160 # interlibrary dependencies.
7161 # 'none' -- dependencies not supported.
7162 # `unknown' -- same as none, but documents that we really don't know.
7163 # 'pass_all' -- all dependencies passed with no checks.
7164 # 'test_compile' -- check by making test program.
7165 # 'file_magic [[regex]]' -- check by looking for files in library path
7166 # which responds to the $file_magic_cmd with a given extended regex.
7167 # If you have `file' or equivalent on your system and you're not sure
7168 # whether `pass_all' will *always* work, you probably want this one.
7169
7170 case $host_os in
7171 aix[4-9]*)
7172 lt_cv_deplibs_check_method=pass_all
7173 ;;
7174
7175 beos*)
7176 lt_cv_deplibs_check_method=pass_all
7177 ;;
7178
7179 bsdi[45]*)
7180 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7181 lt_cv_file_magic_cmd='/usr/bin/file -L'
7182 lt_cv_file_magic_test_file=/shlib/libc.so
7183 ;;
7184
7185 cygwin*)
7186 # func_win32_libid is a shell function defined in ltmain.sh
7187 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7188 lt_cv_file_magic_cmd='func_win32_libid'
7189 ;;
7190
7191 mingw* | pw32*)
7192 # Base MSYS/MinGW do not provide the 'file' command needed by
7193 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7194 # unless we find 'file', for example because we are cross-compiling.
7195 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7196 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7197 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7198 lt_cv_file_magic_cmd='func_win32_libid'
7199 else
7200 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7201 lt_cv_file_magic_cmd='$OBJDUMP -f'
7202 fi
7203 ;;
7204
7205 cegcc*)
7206 # use the weaker test based on 'objdump'. See mingw*.
7207 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7208 lt_cv_file_magic_cmd='$OBJDUMP -f'
7209 ;;
7210
7211 darwin* | rhapsody*)
7212 lt_cv_deplibs_check_method=pass_all
7213 ;;
7214
7215 freebsd* | dragonfly*)
7216 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7217 case $host_cpu in
7218 i*86 )
7219 # Not sure whether the presence of OpenBSD here was a mistake.
7220 # Let's accept both of them until this is cleared up.
7221 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7222 lt_cv_file_magic_cmd=/usr/bin/file
7223 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7224 ;;
7225 esac
7226 else
7227 lt_cv_deplibs_check_method=pass_all
7228 fi
7229 ;;
7230
7231 gnu*)
7232 lt_cv_deplibs_check_method=pass_all
7233 ;;
7234
7235 haiku*)
7236 lt_cv_deplibs_check_method=pass_all
7237 ;;
7238
7239 hpux10.20* | hpux11*)
7240 lt_cv_file_magic_cmd=/usr/bin/file
7241 case $host_cpu in
7242 ia64*)
7243 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7244 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7245 ;;
7246 hppa*64*)
7247 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]'
7248 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7249 ;;
7250 *)
7251 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7252 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7253 ;;
7254 esac
7255 ;;
7256
7257 interix[3-9]*)
7258 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7259 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7260 ;;
7261
7262 irix5* | irix6* | nonstopux*)
7263 case $LD in
7264 *-32|*"-32 ") libmagic=32-bit;;
7265 *-n32|*"-n32 ") libmagic=N32;;
7266 *-64|*"-64 ") libmagic=64-bit;;
7267 *) libmagic=never-match;;
7268 esac
7269 lt_cv_deplibs_check_method=pass_all
7270 ;;
7271
7272 # This must be Linux ELF.
7273 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7274 lt_cv_deplibs_check_method=pass_all
7275 ;;
7276
7277 netbsd*)
7278 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7279 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7280 else
7281 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7282 fi
7283 ;;
7284
7285 newos6*)
7286 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7287 lt_cv_file_magic_cmd=/usr/bin/file
7288 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7289 ;;
7290
7291 *nto* | *qnx*)
7292 lt_cv_deplibs_check_method=pass_all
7293 ;;
7294
7295 openbsd*)
7296 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7297 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7298 else
7299 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7300 fi
7301 ;;
7302
7303 osf3* | osf4* | osf5*)
7304 lt_cv_deplibs_check_method=pass_all
7305 ;;
7306
7307 rdos*)
7308 lt_cv_deplibs_check_method=pass_all
7309 ;;
7310
7311 solaris*)
7312 lt_cv_deplibs_check_method=pass_all
7313 ;;
7314
7315 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7316 lt_cv_deplibs_check_method=pass_all
7317 ;;
7318
7319 sysv4 | sysv4.3*)
7320 case $host_vendor in
7321 motorola)
7322 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]'
7323 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7324 ;;
7325 ncr)
7326 lt_cv_deplibs_check_method=pass_all
7327 ;;
7328 sequent)
7329 lt_cv_file_magic_cmd='/bin/file'
7330 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7331 ;;
7332 sni)
7333 lt_cv_file_magic_cmd='/bin/file'
7334 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7335 lt_cv_file_magic_test_file=/lib/libc.so
7336 ;;
7337 siemens)
7338 lt_cv_deplibs_check_method=pass_all
7339 ;;
7340 pc)
7341 lt_cv_deplibs_check_method=pass_all
7342 ;;
7343 esac
7344 ;;
7345
7346 tpf*)
7347 lt_cv_deplibs_check_method=pass_all
7348 ;;
7349 esac
7350
7351 fi
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7353 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7354 file_magic_cmd=$lt_cv_file_magic_cmd
7355 deplibs_check_method=$lt_cv_deplibs_check_method
7356 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369 if test -n "$ac_tool_prefix"; then
7370 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7371 set dummy ${ac_tool_prefix}ar; ac_word=$2
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7373 $as_echo_n "checking for $ac_word... " >&6; }
7374 if test "${ac_cv_prog_AR+set}" = set; then :
7375 $as_echo_n "(cached) " >&6
7376 else
7377 if test -n "$AR"; then
7378 ac_cv_prog_AR="$AR" # Let the user override the test.
7379 else
7380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381 for as_dir in $PATH
7382 do
7383 IFS=$as_save_IFS
7384 test -z "$as_dir" && as_dir=.
7385 for ac_exec_ext in '' $ac_executable_extensions; do
7386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7387 ac_cv_prog_AR="${ac_tool_prefix}ar"
7388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7389 break 2
7390 fi
7391 done
7392 done
7393 IFS=$as_save_IFS
7394
7395 fi
7396 fi
7397 AR=$ac_cv_prog_AR
7398 if test -n "$AR"; then
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7400 $as_echo "$AR" >&6; }
7401 else
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7403 $as_echo "no" >&6; }
7404 fi
7405
7406
7407 fi
7408 if test -z "$ac_cv_prog_AR"; then
7409 ac_ct_AR=$AR
7410 # Extract the first word of "ar", so it can be a program name with args.
7411 set dummy ar; ac_word=$2
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7413 $as_echo_n "checking for $ac_word... " >&6; }
7414 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7415 $as_echo_n "(cached) " >&6
7416 else
7417 if test -n "$ac_ct_AR"; then
7418 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7419 else
7420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7421 for as_dir in $PATH
7422 do
7423 IFS=$as_save_IFS
7424 test -z "$as_dir" && as_dir=.
7425 for ac_exec_ext in '' $ac_executable_extensions; do
7426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7427 ac_cv_prog_ac_ct_AR="ar"
7428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7429 break 2
7430 fi
7431 done
7432 done
7433 IFS=$as_save_IFS
7434
7435 fi
7436 fi
7437 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7438 if test -n "$ac_ct_AR"; then
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7440 $as_echo "$ac_ct_AR" >&6; }
7441 else
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7443 $as_echo "no" >&6; }
7444 fi
7445
7446 if test "x$ac_ct_AR" = x; then
7447 AR="false"
7448 else
7449 case $cross_compiling:$ac_tool_warned in
7450 yes:)
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7453 ac_tool_warned=yes ;;
7454 esac
7455 AR=$ac_ct_AR
7456 fi
7457 else
7458 AR="$ac_cv_prog_AR"
7459 fi
7460
7461 test -z "$AR" && AR=ar
7462 test -z "$AR_FLAGS" && AR_FLAGS=cru
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474 if test -n "$ac_tool_prefix"; then
7475 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7476 set dummy ${ac_tool_prefix}strip; ac_word=$2
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7478 $as_echo_n "checking for $ac_word... " >&6; }
7479 if test "${ac_cv_prog_STRIP+set}" = set; then :
7480 $as_echo_n "(cached) " >&6
7481 else
7482 if test -n "$STRIP"; then
7483 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7484 else
7485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7486 for as_dir in $PATH
7487 do
7488 IFS=$as_save_IFS
7489 test -z "$as_dir" && as_dir=.
7490 for ac_exec_ext in '' $ac_executable_extensions; do
7491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7492 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7494 break 2
7495 fi
7496 done
7497 done
7498 IFS=$as_save_IFS
7499
7500 fi
7501 fi
7502 STRIP=$ac_cv_prog_STRIP
7503 if test -n "$STRIP"; then
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7505 $as_echo "$STRIP" >&6; }
7506 else
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7508 $as_echo "no" >&6; }
7509 fi
7510
7511
7512 fi
7513 if test -z "$ac_cv_prog_STRIP"; then
7514 ac_ct_STRIP=$STRIP
7515 # Extract the first word of "strip", so it can be a program name with args.
7516 set dummy strip; ac_word=$2
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7518 $as_echo_n "checking for $ac_word... " >&6; }
7519 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7520 $as_echo_n "(cached) " >&6
7521 else
7522 if test -n "$ac_ct_STRIP"; then
7523 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7524 else
7525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7526 for as_dir in $PATH
7527 do
7528 IFS=$as_save_IFS
7529 test -z "$as_dir" && as_dir=.
7530 for ac_exec_ext in '' $ac_executable_extensions; do
7531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7532 ac_cv_prog_ac_ct_STRIP="strip"
7533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7534 break 2
7535 fi
7536 done
7537 done
7538 IFS=$as_save_IFS
7539
7540 fi
7541 fi
7542 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7543 if test -n "$ac_ct_STRIP"; then
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7545 $as_echo "$ac_ct_STRIP" >&6; }
7546 else
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7548 $as_echo "no" >&6; }
7549 fi
7550
7551 if test "x$ac_ct_STRIP" = x; then
7552 STRIP=":"
7553 else
7554 case $cross_compiling:$ac_tool_warned in
7555 yes:)
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7558 ac_tool_warned=yes ;;
7559 esac
7560 STRIP=$ac_ct_STRIP
7561 fi
7562 else
7563 STRIP="$ac_cv_prog_STRIP"
7564 fi
7565
7566 test -z "$STRIP" && STRIP=:
7567
7568
7569
7570
7571
7572
7573 if test -n "$ac_tool_prefix"; then
7574 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7575 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7577 $as_echo_n "checking for $ac_word... " >&6; }
7578 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7579 $as_echo_n "(cached) " >&6
7580 else
7581 if test -n "$RANLIB"; then
7582 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7583 else
7584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585 for as_dir in $PATH
7586 do
7587 IFS=$as_save_IFS
7588 test -z "$as_dir" && as_dir=.
7589 for ac_exec_ext in '' $ac_executable_extensions; do
7590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7591 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7593 break 2
7594 fi
7595 done
7596 done
7597 IFS=$as_save_IFS
7598
7599 fi
7600 fi
7601 RANLIB=$ac_cv_prog_RANLIB
7602 if test -n "$RANLIB"; then
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7604 $as_echo "$RANLIB" >&6; }
7605 else
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7607 $as_echo "no" >&6; }
7608 fi
7609
7610
7611 fi
7612 if test -z "$ac_cv_prog_RANLIB"; then
7613 ac_ct_RANLIB=$RANLIB
7614 # Extract the first word of "ranlib", so it can be a program name with args.
7615 set dummy ranlib; ac_word=$2
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7617 $as_echo_n "checking for $ac_word... " >&6; }
7618 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7619 $as_echo_n "(cached) " >&6
7620 else
7621 if test -n "$ac_ct_RANLIB"; then
7622 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7623 else
7624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7625 for as_dir in $PATH
7626 do
7627 IFS=$as_save_IFS
7628 test -z "$as_dir" && as_dir=.
7629 for ac_exec_ext in '' $ac_executable_extensions; do
7630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7631 ac_cv_prog_ac_ct_RANLIB="ranlib"
7632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7633 break 2
7634 fi
7635 done
7636 done
7637 IFS=$as_save_IFS
7638
7639 fi
7640 fi
7641 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7642 if test -n "$ac_ct_RANLIB"; then
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7644 $as_echo "$ac_ct_RANLIB" >&6; }
7645 else
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7647 $as_echo "no" >&6; }
7648 fi
7649
7650 if test "x$ac_ct_RANLIB" = x; then
7651 RANLIB=":"
7652 else
7653 case $cross_compiling:$ac_tool_warned in
7654 yes:)
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7657 ac_tool_warned=yes ;;
7658 esac
7659 RANLIB=$ac_ct_RANLIB
7660 fi
7661 else
7662 RANLIB="$ac_cv_prog_RANLIB"
7663 fi
7664
7665 test -z "$RANLIB" && RANLIB=:
7666
7667
7668
7669
7670
7671
7672 # Determine commands to create old-style static archives.
7673 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7674 old_postinstall_cmds='chmod 644 $oldlib'
7675 old_postuninstall_cmds=
7676
7677 if test -n "$RANLIB"; then
7678 case $host_os in
7679 openbsd*)
7680 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7681 ;;
7682 *)
7683 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7684 ;;
7685 esac
7686 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7687 fi
7688
7689 case $host_os in
7690 darwin*)
7691 lock_old_archive_extraction=yes ;;
7692 *)
7693 lock_old_archive_extraction=no ;;
7694 esac
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734 # If no C compiler was specified, use CC.
7735 LTCC=${LTCC-"$CC"}
7736
7737 # If no C compiler flags were specified, use CFLAGS.
7738 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7739
7740 # Allow CC to be a program name with arguments.
7741 compiler=$CC
7742
7743
7744 # Check for command to grab the raw symbol name followed by C symbol from nm.
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7746 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7747 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7748 $as_echo_n "(cached) " >&6
7749 else
7750
7751 # These are sane defaults that work on at least a few old systems.
7752 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7753
7754 # Character class describing NM global symbol codes.
7755 symcode='[BCDEGRST]'
7756
7757 # Regexp to match symbols that can be accessed directly from C.
7758 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7759
7760 # Define system-specific variables.
7761 case $host_os in
7762 aix*)
7763 symcode='[BCDT]'
7764 ;;
7765 cygwin* | mingw* | pw32* | cegcc*)
7766 symcode='[ABCDGISTW]'
7767 ;;
7768 hpux*)
7769 if test "$host_cpu" = ia64; then
7770 symcode='[ABCDEGRST]'
7771 fi
7772 ;;
7773 irix* | nonstopux*)
7774 symcode='[BCDEGRST]'
7775 ;;
7776 osf*)
7777 symcode='[BCDEGQRST]'
7778 ;;
7779 solaris*)
7780 symcode='[BDRT]'
7781 ;;
7782 sco3.2v5*)
7783 symcode='[DT]'
7784 ;;
7785 sysv4.2uw2*)
7786 symcode='[DT]'
7787 ;;
7788 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7789 symcode='[ABDT]'
7790 ;;
7791 sysv4)
7792 symcode='[DFNSTU]'
7793 ;;
7794 esac
7795
7796 # If we're using GNU nm, then use its standard symbol codes.
7797 case `$NM -V 2>&1` in
7798 *GNU* | *'with BFD'*)
7799 symcode='[ABCDGIRSTW]' ;;
7800 esac
7801
7802 # Transform an extracted symbol line into a proper C declaration.
7803 # Some systems (esp. on ia64) link data and code symbols differently,
7804 # so use this general approach.
7805 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7806
7807 # Transform an extracted symbol line into symbol name and symbol address
7808 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7809 lt_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'"
7810
7811 # Handle CRLF in mingw tool chain
7812 opt_cr=
7813 case $build_os in
7814 mingw*)
7815 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7816 ;;
7817 esac
7818
7819 # Try without a prefix underscore, then with it.
7820 for ac_symprfx in "" "_"; do
7821
7822 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7823 symxfrm="\\1 $ac_symprfx\\2 \\2"
7824
7825 # Write the raw and C identifiers.
7826 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7827 # Fake it for dumpbin and say T for any non-static function
7828 # and D for any global variable.
7829 # Also find C++ and __fastcall symbols from MSVC++,
7830 # which start with @ or ?.
7831 lt_cv_sys_global_symbol_pipe="$AWK '"\
7832 " {last_section=section; section=\$ 3};"\
7833 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7834 " \$ 0!~/External *\|/{next};"\
7835 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7836 " {if(hide[section]) next};"\
7837 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7838 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7839 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7840 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7841 " ' prfx=^$ac_symprfx"
7842 else
7843 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7844 fi
7845
7846 # Check to see that the pipe works correctly.
7847 pipe_works=no
7848
7849 rm -f conftest*
7850 cat > conftest.$ac_ext <<_LT_EOF
7851 #ifdef __cplusplus
7852 extern "C" {
7853 #endif
7854 char nm_test_var;
7855 void nm_test_func(void);
7856 void nm_test_func(void){}
7857 #ifdef __cplusplus
7858 }
7859 #endif
7860 int main(){nm_test_var='a';nm_test_func();return(0);}
7861 _LT_EOF
7862
7863 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7864 (eval $ac_compile) 2>&5
7865 ac_status=$?
7866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7867 test $ac_status = 0; }; then
7868 # Now try to grab the symbols.
7869 nlist=conftest.nm
7870 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7871 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7872 ac_status=$?
7873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7874 test $ac_status = 0; } && test -s "$nlist"; then
7875 # Try sorting and uniquifying the output.
7876 if sort "$nlist" | uniq > "$nlist"T; then
7877 mv -f "$nlist"T "$nlist"
7878 else
7879 rm -f "$nlist"T
7880 fi
7881
7882 # Make sure that we snagged all the symbols we need.
7883 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7884 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7885 cat <<_LT_EOF > conftest.$ac_ext
7886 #ifdef __cplusplus
7887 extern "C" {
7888 #endif
7889
7890 _LT_EOF
7891 # Now generate the symbol file.
7892 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7893
7894 cat <<_LT_EOF >> conftest.$ac_ext
7895
7896 /* The mapping between symbol names and symbols. */
7897 const struct {
7898 const char *name;
7899 void *address;
7900 }
7901 lt__PROGRAM__LTX_preloaded_symbols[] =
7902 {
7903 { "@PROGRAM@", (void *) 0 },
7904 _LT_EOF
7905 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7906 cat <<\_LT_EOF >> conftest.$ac_ext
7907 {0, (void *) 0}
7908 };
7909
7910 /* This works around a problem in FreeBSD linker */
7911 #ifdef FREEBSD_WORKAROUND
7912 static const void *lt_preloaded_setup() {
7913 return lt__PROGRAM__LTX_preloaded_symbols;
7914 }
7915 #endif
7916
7917 #ifdef __cplusplus
7918 }
7919 #endif
7920 _LT_EOF
7921 # Now try linking the two files.
7922 mv conftest.$ac_objext conftstm.$ac_objext
7923 lt_save_LIBS="$LIBS"
7924 lt_save_CFLAGS="$CFLAGS"
7925 LIBS="conftstm.$ac_objext"
7926 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7927 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7928 (eval $ac_link) 2>&5
7929 ac_status=$?
7930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7931 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7932 pipe_works=yes
7933 fi
7934 LIBS="$lt_save_LIBS"
7935 CFLAGS="$lt_save_CFLAGS"
7936 else
7937 echo "cannot find nm_test_func in $nlist" >&5
7938 fi
7939 else
7940 echo "cannot find nm_test_var in $nlist" >&5
7941 fi
7942 else
7943 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7944 fi
7945 else
7946 echo "$progname: failed program was:" >&5
7947 cat conftest.$ac_ext >&5
7948 fi
7949 rm -rf conftest* conftst*
7950
7951 # Do not use the global_symbol_pipe unless it works.
7952 if test "$pipe_works" = yes; then
7953 break
7954 else
7955 lt_cv_sys_global_symbol_pipe=
7956 fi
7957 done
7958
7959 fi
7960
7961 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7962 lt_cv_sys_global_symbol_to_cdecl=
7963 fi
7964 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7966 $as_echo "failed" >&6; }
7967 else
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7969 $as_echo "ok" >&6; }
7970 fi
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993 # Check whether --enable-libtool-lock was given.
7994 if test "${enable_libtool_lock+set}" = set; then :
7995 enableval=$enable_libtool_lock;
7996 fi
7997
7998 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7999
8000 # Some flags need to be propagated to the compiler or linker for good
8001 # libtool support.
8002 case $host in
8003 ia64-*-hpux*)
8004 # Find out which ABI we are using.
8005 echo 'int i;' > conftest.$ac_ext
8006 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8007 (eval $ac_compile) 2>&5
8008 ac_status=$?
8009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8010 test $ac_status = 0; }; then
8011 case `/usr/bin/file conftest.$ac_objext` in
8012 *ELF-32*)
8013 HPUX_IA64_MODE="32"
8014 ;;
8015 *ELF-64*)
8016 HPUX_IA64_MODE="64"
8017 ;;
8018 esac
8019 fi
8020 rm -rf conftest*
8021 ;;
8022 *-*-irix6*)
8023 # Find out which ABI we are using.
8024 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8025 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8026 (eval $ac_compile) 2>&5
8027 ac_status=$?
8028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8029 test $ac_status = 0; }; then
8030 if test "$lt_cv_prog_gnu_ld" = yes; then
8031 case `/usr/bin/file conftest.$ac_objext` in
8032 *32-bit*)
8033 LD="${LD-ld} -melf32bsmip"
8034 ;;
8035 *N32*)
8036 LD="${LD-ld} -melf32bmipn32"
8037 ;;
8038 *64-bit*)
8039 LD="${LD-ld} -melf64bmip"
8040 ;;
8041 esac
8042 else
8043 case `/usr/bin/file conftest.$ac_objext` in
8044 *32-bit*)
8045 LD="${LD-ld} -32"
8046 ;;
8047 *N32*)
8048 LD="${LD-ld} -n32"
8049 ;;
8050 *64-bit*)
8051 LD="${LD-ld} -64"
8052 ;;
8053 esac
8054 fi
8055 fi
8056 rm -rf conftest*
8057 ;;
8058
8059 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8060 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8061 # Find out which ABI we are using.
8062 echo 'int i;' > conftest.$ac_ext
8063 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8064 (eval $ac_compile) 2>&5
8065 ac_status=$?
8066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8067 test $ac_status = 0; }; then
8068 case `/usr/bin/file conftest.o` in
8069 *32-bit*)
8070 case $host in
8071 x86_64-*kfreebsd*-gnu)
8072 LD="${LD-ld} -m elf_i386_fbsd"
8073 ;;
8074 x86_64-*linux*)
8075 LD="${LD-ld} -m elf_i386"
8076 ;;
8077 ppc64-*linux*|powerpc64-*linux*)
8078 LD="${LD-ld} -m elf32ppclinux"
8079 ;;
8080 s390x-*linux*)
8081 LD="${LD-ld} -m elf_s390"
8082 ;;
8083 sparc64-*linux*)
8084 LD="${LD-ld} -m elf32_sparc"
8085 ;;
8086 esac
8087 ;;
8088 *64-bit*)
8089 case $host in
8090 x86_64-*kfreebsd*-gnu)
8091 LD="${LD-ld} -m elf_x86_64_fbsd"
8092 ;;
8093 x86_64-*linux*)
8094 LD="${LD-ld} -m elf_x86_64"
8095 ;;
8096 ppc*-*linux*|powerpc*-*linux*)
8097 LD="${LD-ld} -m elf64ppc"
8098 ;;
8099 s390*-*linux*|s390*-*tpf*)
8100 LD="${LD-ld} -m elf64_s390"
8101 ;;
8102 sparc*-*linux*)
8103 LD="${LD-ld} -m elf64_sparc"
8104 ;;
8105 esac
8106 ;;
8107 esac
8108 fi
8109 rm -rf conftest*
8110 ;;
8111
8112 *-*-sco3.2v5*)
8113 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8114 SAVE_CFLAGS="$CFLAGS"
8115 CFLAGS="$CFLAGS -belf"
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8117 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8118 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8119 $as_echo_n "(cached) " >&6
8120 else
8121 ac_ext=c
8122 ac_cpp='$CPP $CPPFLAGS'
8123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8126
8127 if test x$gcc_no_link = xyes; then
8128 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8129 fi
8130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8131 /* end confdefs.h. */
8132
8133 int
8134 main ()
8135 {
8136
8137 ;
8138 return 0;
8139 }
8140 _ACEOF
8141 if ac_fn_c_try_link "$LINENO"; then :
8142 lt_cv_cc_needs_belf=yes
8143 else
8144 lt_cv_cc_needs_belf=no
8145 fi
8146 rm -f core conftest.err conftest.$ac_objext \
8147 conftest$ac_exeext conftest.$ac_ext
8148 ac_ext=c
8149 ac_cpp='$CPP $CPPFLAGS'
8150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8153
8154 fi
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8156 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8157 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8158 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8159 CFLAGS="$SAVE_CFLAGS"
8160 fi
8161 ;;
8162 sparc*-*solaris*)
8163 # Find out which ABI we are using.
8164 echo 'int i;' > conftest.$ac_ext
8165 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8166 (eval $ac_compile) 2>&5
8167 ac_status=$?
8168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8169 test $ac_status = 0; }; then
8170 case `/usr/bin/file conftest.o` in
8171 *64-bit*)
8172 case $lt_cv_prog_gnu_ld in
8173 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8174 *)
8175 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8176 LD="${LD-ld} -64"
8177 fi
8178 ;;
8179 esac
8180 ;;
8181 esac
8182 fi
8183 rm -rf conftest*
8184 ;;
8185 esac
8186
8187 need_locks="$enable_libtool_lock"
8188
8189
8190 case $host_os in
8191 rhapsody* | darwin*)
8192 if test -n "$ac_tool_prefix"; then
8193 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8194 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8196 $as_echo_n "checking for $ac_word... " >&6; }
8197 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8198 $as_echo_n "(cached) " >&6
8199 else
8200 if test -n "$DSYMUTIL"; then
8201 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8202 else
8203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8204 for as_dir in $PATH
8205 do
8206 IFS=$as_save_IFS
8207 test -z "$as_dir" && as_dir=.
8208 for ac_exec_ext in '' $ac_executable_extensions; do
8209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8210 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8212 break 2
8213 fi
8214 done
8215 done
8216 IFS=$as_save_IFS
8217
8218 fi
8219 fi
8220 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8221 if test -n "$DSYMUTIL"; then
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8223 $as_echo "$DSYMUTIL" >&6; }
8224 else
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8226 $as_echo "no" >&6; }
8227 fi
8228
8229
8230 fi
8231 if test -z "$ac_cv_prog_DSYMUTIL"; then
8232 ac_ct_DSYMUTIL=$DSYMUTIL
8233 # Extract the first word of "dsymutil", so it can be a program name with args.
8234 set dummy dsymutil; ac_word=$2
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8236 $as_echo_n "checking for $ac_word... " >&6; }
8237 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8238 $as_echo_n "(cached) " >&6
8239 else
8240 if test -n "$ac_ct_DSYMUTIL"; then
8241 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8242 else
8243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8244 for as_dir in $PATH
8245 do
8246 IFS=$as_save_IFS
8247 test -z "$as_dir" && as_dir=.
8248 for ac_exec_ext in '' $ac_executable_extensions; do
8249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8250 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8252 break 2
8253 fi
8254 done
8255 done
8256 IFS=$as_save_IFS
8257
8258 fi
8259 fi
8260 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8261 if test -n "$ac_ct_DSYMUTIL"; then
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8263 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8264 else
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8266 $as_echo "no" >&6; }
8267 fi
8268
8269 if test "x$ac_ct_DSYMUTIL" = x; then
8270 DSYMUTIL=":"
8271 else
8272 case $cross_compiling:$ac_tool_warned in
8273 yes:)
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8275 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8276 ac_tool_warned=yes ;;
8277 esac
8278 DSYMUTIL=$ac_ct_DSYMUTIL
8279 fi
8280 else
8281 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8282 fi
8283
8284 if test -n "$ac_tool_prefix"; then
8285 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8286 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8288 $as_echo_n "checking for $ac_word... " >&6; }
8289 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8290 $as_echo_n "(cached) " >&6
8291 else
8292 if test -n "$NMEDIT"; then
8293 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8294 else
8295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8296 for as_dir in $PATH
8297 do
8298 IFS=$as_save_IFS
8299 test -z "$as_dir" && as_dir=.
8300 for ac_exec_ext in '' $ac_executable_extensions; do
8301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8302 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8304 break 2
8305 fi
8306 done
8307 done
8308 IFS=$as_save_IFS
8309
8310 fi
8311 fi
8312 NMEDIT=$ac_cv_prog_NMEDIT
8313 if test -n "$NMEDIT"; then
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8315 $as_echo "$NMEDIT" >&6; }
8316 else
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8318 $as_echo "no" >&6; }
8319 fi
8320
8321
8322 fi
8323 if test -z "$ac_cv_prog_NMEDIT"; then
8324 ac_ct_NMEDIT=$NMEDIT
8325 # Extract the first word of "nmedit", so it can be a program name with args.
8326 set dummy nmedit; ac_word=$2
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8328 $as_echo_n "checking for $ac_word... " >&6; }
8329 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8330 $as_echo_n "(cached) " >&6
8331 else
8332 if test -n "$ac_ct_NMEDIT"; then
8333 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8334 else
8335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8336 for as_dir in $PATH
8337 do
8338 IFS=$as_save_IFS
8339 test -z "$as_dir" && as_dir=.
8340 for ac_exec_ext in '' $ac_executable_extensions; do
8341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8342 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8344 break 2
8345 fi
8346 done
8347 done
8348 IFS=$as_save_IFS
8349
8350 fi
8351 fi
8352 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8353 if test -n "$ac_ct_NMEDIT"; then
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8355 $as_echo "$ac_ct_NMEDIT" >&6; }
8356 else
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8358 $as_echo "no" >&6; }
8359 fi
8360
8361 if test "x$ac_ct_NMEDIT" = x; then
8362 NMEDIT=":"
8363 else
8364 case $cross_compiling:$ac_tool_warned in
8365 yes:)
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8367 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8368 ac_tool_warned=yes ;;
8369 esac
8370 NMEDIT=$ac_ct_NMEDIT
8371 fi
8372 else
8373 NMEDIT="$ac_cv_prog_NMEDIT"
8374 fi
8375
8376 if test -n "$ac_tool_prefix"; then
8377 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8378 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8380 $as_echo_n "checking for $ac_word... " >&6; }
8381 if test "${ac_cv_prog_LIPO+set}" = set; then :
8382 $as_echo_n "(cached) " >&6
8383 else
8384 if test -n "$LIPO"; then
8385 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8386 else
8387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8388 for as_dir in $PATH
8389 do
8390 IFS=$as_save_IFS
8391 test -z "$as_dir" && as_dir=.
8392 for ac_exec_ext in '' $ac_executable_extensions; do
8393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8394 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8396 break 2
8397 fi
8398 done
8399 done
8400 IFS=$as_save_IFS
8401
8402 fi
8403 fi
8404 LIPO=$ac_cv_prog_LIPO
8405 if test -n "$LIPO"; then
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8407 $as_echo "$LIPO" >&6; }
8408 else
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8410 $as_echo "no" >&6; }
8411 fi
8412
8413
8414 fi
8415 if test -z "$ac_cv_prog_LIPO"; then
8416 ac_ct_LIPO=$LIPO
8417 # Extract the first word of "lipo", so it can be a program name with args.
8418 set dummy lipo; ac_word=$2
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8420 $as_echo_n "checking for $ac_word... " >&6; }
8421 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8422 $as_echo_n "(cached) " >&6
8423 else
8424 if test -n "$ac_ct_LIPO"; then
8425 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8426 else
8427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8428 for as_dir in $PATH
8429 do
8430 IFS=$as_save_IFS
8431 test -z "$as_dir" && as_dir=.
8432 for ac_exec_ext in '' $ac_executable_extensions; do
8433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8434 ac_cv_prog_ac_ct_LIPO="lipo"
8435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8436 break 2
8437 fi
8438 done
8439 done
8440 IFS=$as_save_IFS
8441
8442 fi
8443 fi
8444 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8445 if test -n "$ac_ct_LIPO"; then
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8447 $as_echo "$ac_ct_LIPO" >&6; }
8448 else
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8450 $as_echo "no" >&6; }
8451 fi
8452
8453 if test "x$ac_ct_LIPO" = x; then
8454 LIPO=":"
8455 else
8456 case $cross_compiling:$ac_tool_warned in
8457 yes:)
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8459 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8460 ac_tool_warned=yes ;;
8461 esac
8462 LIPO=$ac_ct_LIPO
8463 fi
8464 else
8465 LIPO="$ac_cv_prog_LIPO"
8466 fi
8467
8468 if test -n "$ac_tool_prefix"; then
8469 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8470 set dummy ${ac_tool_prefix}otool; ac_word=$2
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8472 $as_echo_n "checking for $ac_word... " >&6; }
8473 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8474 $as_echo_n "(cached) " >&6
8475 else
8476 if test -n "$OTOOL"; then
8477 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8478 else
8479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8480 for as_dir in $PATH
8481 do
8482 IFS=$as_save_IFS
8483 test -z "$as_dir" && as_dir=.
8484 for ac_exec_ext in '' $ac_executable_extensions; do
8485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8486 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8488 break 2
8489 fi
8490 done
8491 done
8492 IFS=$as_save_IFS
8493
8494 fi
8495 fi
8496 OTOOL=$ac_cv_prog_OTOOL
8497 if test -n "$OTOOL"; then
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8499 $as_echo "$OTOOL" >&6; }
8500 else
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8502 $as_echo "no" >&6; }
8503 fi
8504
8505
8506 fi
8507 if test -z "$ac_cv_prog_OTOOL"; then
8508 ac_ct_OTOOL=$OTOOL
8509 # Extract the first word of "otool", so it can be a program name with args.
8510 set dummy otool; ac_word=$2
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8512 $as_echo_n "checking for $ac_word... " >&6; }
8513 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8514 $as_echo_n "(cached) " >&6
8515 else
8516 if test -n "$ac_ct_OTOOL"; then
8517 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8518 else
8519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8520 for as_dir in $PATH
8521 do
8522 IFS=$as_save_IFS
8523 test -z "$as_dir" && as_dir=.
8524 for ac_exec_ext in '' $ac_executable_extensions; do
8525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8526 ac_cv_prog_ac_ct_OTOOL="otool"
8527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8528 break 2
8529 fi
8530 done
8531 done
8532 IFS=$as_save_IFS
8533
8534 fi
8535 fi
8536 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8537 if test -n "$ac_ct_OTOOL"; then
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8539 $as_echo "$ac_ct_OTOOL" >&6; }
8540 else
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8542 $as_echo "no" >&6; }
8543 fi
8544
8545 if test "x$ac_ct_OTOOL" = x; then
8546 OTOOL=":"
8547 else
8548 case $cross_compiling:$ac_tool_warned in
8549 yes:)
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8552 ac_tool_warned=yes ;;
8553 esac
8554 OTOOL=$ac_ct_OTOOL
8555 fi
8556 else
8557 OTOOL="$ac_cv_prog_OTOOL"
8558 fi
8559
8560 if test -n "$ac_tool_prefix"; then
8561 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8562 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8564 $as_echo_n "checking for $ac_word... " >&6; }
8565 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8566 $as_echo_n "(cached) " >&6
8567 else
8568 if test -n "$OTOOL64"; then
8569 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8570 else
8571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8572 for as_dir in $PATH
8573 do
8574 IFS=$as_save_IFS
8575 test -z "$as_dir" && as_dir=.
8576 for ac_exec_ext in '' $ac_executable_extensions; do
8577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8578 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8580 break 2
8581 fi
8582 done
8583 done
8584 IFS=$as_save_IFS
8585
8586 fi
8587 fi
8588 OTOOL64=$ac_cv_prog_OTOOL64
8589 if test -n "$OTOOL64"; then
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8591 $as_echo "$OTOOL64" >&6; }
8592 else
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8594 $as_echo "no" >&6; }
8595 fi
8596
8597
8598 fi
8599 if test -z "$ac_cv_prog_OTOOL64"; then
8600 ac_ct_OTOOL64=$OTOOL64
8601 # Extract the first word of "otool64", so it can be a program name with args.
8602 set dummy otool64; ac_word=$2
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8604 $as_echo_n "checking for $ac_word... " >&6; }
8605 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8606 $as_echo_n "(cached) " >&6
8607 else
8608 if test -n "$ac_ct_OTOOL64"; then
8609 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8610 else
8611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8612 for as_dir in $PATH
8613 do
8614 IFS=$as_save_IFS
8615 test -z "$as_dir" && as_dir=.
8616 for ac_exec_ext in '' $ac_executable_extensions; do
8617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8618 ac_cv_prog_ac_ct_OTOOL64="otool64"
8619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8620 break 2
8621 fi
8622 done
8623 done
8624 IFS=$as_save_IFS
8625
8626 fi
8627 fi
8628 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8629 if test -n "$ac_ct_OTOOL64"; then
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8631 $as_echo "$ac_ct_OTOOL64" >&6; }
8632 else
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8634 $as_echo "no" >&6; }
8635 fi
8636
8637 if test "x$ac_ct_OTOOL64" = x; then
8638 OTOOL64=":"
8639 else
8640 case $cross_compiling:$ac_tool_warned in
8641 yes:)
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8644 ac_tool_warned=yes ;;
8645 esac
8646 OTOOL64=$ac_ct_OTOOL64
8647 fi
8648 else
8649 OTOOL64="$ac_cv_prog_OTOOL64"
8650 fi
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8679 $as_echo_n "checking for -single_module linker flag... " >&6; }
8680 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8681 $as_echo_n "(cached) " >&6
8682 else
8683 lt_cv_apple_cc_single_mod=no
8684 if test -z "${LT_MULTI_MODULE}"; then
8685 # By default we will add the -single_module flag. You can override
8686 # by either setting the environment variable LT_MULTI_MODULE
8687 # non-empty at configure time, or by adding -multi_module to the
8688 # link flags.
8689 rm -rf libconftest.dylib*
8690 echo "int foo(void){return 1;}" > conftest.c
8691 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8692 -dynamiclib -Wl,-single_module conftest.c" >&5
8693 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8694 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8695 _lt_result=$?
8696 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8697 lt_cv_apple_cc_single_mod=yes
8698 else
8699 cat conftest.err >&5
8700 fi
8701 rm -rf libconftest.dylib*
8702 rm -f conftest.*
8703 fi
8704 fi
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8706 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8708 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8709 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8710 $as_echo_n "(cached) " >&6
8711 else
8712 lt_cv_ld_exported_symbols_list=no
8713 save_LDFLAGS=$LDFLAGS
8714 echo "_main" > conftest.sym
8715 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8716 if test x$gcc_no_link = xyes; then
8717 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8718 fi
8719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8720 /* end confdefs.h. */
8721
8722 int
8723 main ()
8724 {
8725
8726 ;
8727 return 0;
8728 }
8729 _ACEOF
8730 if ac_fn_c_try_link "$LINENO"; then :
8731 lt_cv_ld_exported_symbols_list=yes
8732 else
8733 lt_cv_ld_exported_symbols_list=no
8734 fi
8735 rm -f core conftest.err conftest.$ac_objext \
8736 conftest$ac_exeext conftest.$ac_ext
8737 LDFLAGS="$save_LDFLAGS"
8738
8739 fi
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8741 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8743 $as_echo_n "checking for -force_load linker flag... " >&6; }
8744 if test "${lt_cv_ld_force_load+set}" = set; then :
8745 $as_echo_n "(cached) " >&6
8746 else
8747 lt_cv_ld_force_load=no
8748 cat > conftest.c << _LT_EOF
8749 int forced_loaded() { return 2;}
8750 _LT_EOF
8751 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8752 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8753 echo "$AR cru libconftest.a conftest.o" >&5
8754 $AR cru libconftest.a conftest.o 2>&5
8755 cat > conftest.c << _LT_EOF
8756 int main() { return 0;}
8757 _LT_EOF
8758 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8759 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8760 _lt_result=$?
8761 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8762 lt_cv_ld_force_load=yes
8763 else
8764 cat conftest.err >&5
8765 fi
8766 rm -f conftest.err libconftest.a conftest conftest.c
8767 rm -rf conftest.dSYM
8768
8769 fi
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8771 $as_echo "$lt_cv_ld_force_load" >&6; }
8772 case $host_os in
8773 rhapsody* | darwin1.[012])
8774 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8775 darwin1.*)
8776 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8777 darwin*) # darwin 5.x on
8778 # if running on 10.5 or later, the deployment target defaults
8779 # to the OS version, if on x86, and 10.4, the deployment
8780 # target defaults to 10.4. Don't you love it?
8781 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8782 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8783 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8784 10.[012]*)
8785 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8786 10.*)
8787 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8788 esac
8789 ;;
8790 esac
8791 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8792 _lt_dar_single_mod='$single_module'
8793 fi
8794 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8795 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8796 else
8797 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8798 fi
8799 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8800 _lt_dsymutil='~$DSYMUTIL $lib || :'
8801 else
8802 _lt_dsymutil=
8803 fi
8804 ;;
8805 esac
8806
8807 for ac_header in dlfcn.h
8808 do :
8809 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8810 "
8811 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8812 cat >>confdefs.h <<_ACEOF
8813 #define HAVE_DLFCN_H 1
8814 _ACEOF
8815
8816 fi
8817
8818 done
8819
8820
8821
8822
8823
8824 # Set options
8825
8826
8827
8828
8829 enable_win32_dll=no
8830
8831
8832 # Check whether --enable-shared was given.
8833 if test "${enable_shared+set}" = set; then :
8834 enableval=$enable_shared; p=${PACKAGE-default}
8835 case $enableval in
8836 yes) enable_shared=yes ;;
8837 no) enable_shared=no ;;
8838 *)
8839 enable_shared=no
8840 # Look at the argument we got. We use all the common list separators.
8841 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8842 for pkg in $enableval; do
8843 IFS="$lt_save_ifs"
8844 if test "X$pkg" = "X$p"; then
8845 enable_shared=yes
8846 fi
8847 done
8848 IFS="$lt_save_ifs"
8849 ;;
8850 esac
8851 else
8852 enable_shared=yes
8853 fi
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863 # Check whether --enable-static was given.
8864 if test "${enable_static+set}" = set; then :
8865 enableval=$enable_static; p=${PACKAGE-default}
8866 case $enableval in
8867 yes) enable_static=yes ;;
8868 no) enable_static=no ;;
8869 *)
8870 enable_static=no
8871 # Look at the argument we got. We use all the common list separators.
8872 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8873 for pkg in $enableval; do
8874 IFS="$lt_save_ifs"
8875 if test "X$pkg" = "X$p"; then
8876 enable_static=yes
8877 fi
8878 done
8879 IFS="$lt_save_ifs"
8880 ;;
8881 esac
8882 else
8883 enable_static=yes
8884 fi
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895 # Check whether --with-pic was given.
8896 if test "${with_pic+set}" = set; then :
8897 withval=$with_pic; pic_mode="$withval"
8898 else
8899 pic_mode=default
8900 fi
8901
8902
8903 test -z "$pic_mode" && pic_mode=default
8904
8905
8906
8907
8908
8909
8910
8911 # Check whether --enable-fast-install was given.
8912 if test "${enable_fast_install+set}" = set; then :
8913 enableval=$enable_fast_install; p=${PACKAGE-default}
8914 case $enableval in
8915 yes) enable_fast_install=yes ;;
8916 no) enable_fast_install=no ;;
8917 *)
8918 enable_fast_install=no
8919 # Look at the argument we got. We use all the common list separators.
8920 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8921 for pkg in $enableval; do
8922 IFS="$lt_save_ifs"
8923 if test "X$pkg" = "X$p"; then
8924 enable_fast_install=yes
8925 fi
8926 done
8927 IFS="$lt_save_ifs"
8928 ;;
8929 esac
8930 else
8931 enable_fast_install=yes
8932 fi
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944 # This can be used to rebuild libtool when needed
8945 LIBTOOL_DEPS="$ltmain"
8946
8947 # Always use our own libtool.
8948 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975 test -z "$LN_S" && LN_S="ln -s"
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990 if test -n "${ZSH_VERSION+set}" ; then
8991 setopt NO_GLOB_SUBST
8992 fi
8993
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8995 $as_echo_n "checking for objdir... " >&6; }
8996 if test "${lt_cv_objdir+set}" = set; then :
8997 $as_echo_n "(cached) " >&6
8998 else
8999 rm -f .libs 2>/dev/null
9000 mkdir .libs 2>/dev/null
9001 if test -d .libs; then
9002 lt_cv_objdir=.libs
9003 else
9004 # MS-DOS does not allow filenames that begin with a dot.
9005 lt_cv_objdir=_libs
9006 fi
9007 rmdir .libs 2>/dev/null
9008 fi
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9010 $as_echo "$lt_cv_objdir" >&6; }
9011 objdir=$lt_cv_objdir
9012
9013
9014
9015
9016
9017 cat >>confdefs.h <<_ACEOF
9018 #define LT_OBJDIR "$lt_cv_objdir/"
9019 _ACEOF
9020
9021
9022
9023
9024 case $host_os in
9025 aix3*)
9026 # AIX sometimes has problems with the GCC collect2 program. For some
9027 # reason, if we set the COLLECT_NAMES environment variable, the problems
9028 # vanish in a puff of smoke.
9029 if test "X${COLLECT_NAMES+set}" != Xset; then
9030 COLLECT_NAMES=
9031 export COLLECT_NAMES
9032 fi
9033 ;;
9034 esac
9035
9036 # Global variables:
9037 ofile=libtool
9038 can_build_shared=yes
9039
9040 # All known linkers require a `.a' archive for static linking (except MSVC,
9041 # which needs '.lib').
9042 libext=a
9043
9044 with_gnu_ld="$lt_cv_prog_gnu_ld"
9045
9046 old_CC="$CC"
9047 old_CFLAGS="$CFLAGS"
9048
9049 # Set sane defaults for various variables
9050 test -z "$CC" && CC=cc
9051 test -z "$LTCC" && LTCC=$CC
9052 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9053 test -z "$LD" && LD=ld
9054 test -z "$ac_objext" && ac_objext=o
9055
9056 for cc_temp in $compiler""; do
9057 case $cc_temp in
9058 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9059 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9060 \-*) ;;
9061 *) break;;
9062 esac
9063 done
9064 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9065
9066
9067 # Only perform the check for file, if the check method requires it
9068 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9069 case $deplibs_check_method in
9070 file_magic*)
9071 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9073 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9074 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9075 $as_echo_n "(cached) " >&6
9076 else
9077 case $MAGIC_CMD in
9078 [\\/*] | ?:[\\/]*)
9079 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9080 ;;
9081 *)
9082 lt_save_MAGIC_CMD="$MAGIC_CMD"
9083 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9084 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9085 for ac_dir in $ac_dummy; do
9086 IFS="$lt_save_ifs"
9087 test -z "$ac_dir" && ac_dir=.
9088 if test -f $ac_dir/${ac_tool_prefix}file; then
9089 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9090 if test -n "$file_magic_test_file"; then
9091 case $deplibs_check_method in
9092 "file_magic "*)
9093 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9094 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9095 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9096 $EGREP "$file_magic_regex" > /dev/null; then
9097 :
9098 else
9099 cat <<_LT_EOF 1>&2
9100
9101 *** Warning: the command libtool uses to detect shared libraries,
9102 *** $file_magic_cmd, produces output that libtool cannot recognize.
9103 *** The result is that libtool may fail to recognize shared libraries
9104 *** as such. This will affect the creation of libtool libraries that
9105 *** depend on shared libraries, but programs linked with such libtool
9106 *** libraries will work regardless of this problem. Nevertheless, you
9107 *** may want to report the problem to your system manager and/or to
9108 *** bug-libtool@gnu.org
9109
9110 _LT_EOF
9111 fi ;;
9112 esac
9113 fi
9114 break
9115 fi
9116 done
9117 IFS="$lt_save_ifs"
9118 MAGIC_CMD="$lt_save_MAGIC_CMD"
9119 ;;
9120 esac
9121 fi
9122
9123 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9124 if test -n "$MAGIC_CMD"; then
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9126 $as_echo "$MAGIC_CMD" >&6; }
9127 else
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9129 $as_echo "no" >&6; }
9130 fi
9131
9132
9133
9134
9135
9136 if test -z "$lt_cv_path_MAGIC_CMD"; then
9137 if test -n "$ac_tool_prefix"; then
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9139 $as_echo_n "checking for file... " >&6; }
9140 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9141 $as_echo_n "(cached) " >&6
9142 else
9143 case $MAGIC_CMD in
9144 [\\/*] | ?:[\\/]*)
9145 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9146 ;;
9147 *)
9148 lt_save_MAGIC_CMD="$MAGIC_CMD"
9149 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9150 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9151 for ac_dir in $ac_dummy; do
9152 IFS="$lt_save_ifs"
9153 test -z "$ac_dir" && ac_dir=.
9154 if test -f $ac_dir/file; then
9155 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9156 if test -n "$file_magic_test_file"; then
9157 case $deplibs_check_method in
9158 "file_magic "*)
9159 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9160 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9161 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9162 $EGREP "$file_magic_regex" > /dev/null; then
9163 :
9164 else
9165 cat <<_LT_EOF 1>&2
9166
9167 *** Warning: the command libtool uses to detect shared libraries,
9168 *** $file_magic_cmd, produces output that libtool cannot recognize.
9169 *** The result is that libtool may fail to recognize shared libraries
9170 *** as such. This will affect the creation of libtool libraries that
9171 *** depend on shared libraries, but programs linked with such libtool
9172 *** libraries will work regardless of this problem. Nevertheless, you
9173 *** may want to report the problem to your system manager and/or to
9174 *** bug-libtool@gnu.org
9175
9176 _LT_EOF
9177 fi ;;
9178 esac
9179 fi
9180 break
9181 fi
9182 done
9183 IFS="$lt_save_ifs"
9184 MAGIC_CMD="$lt_save_MAGIC_CMD"
9185 ;;
9186 esac
9187 fi
9188
9189 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9190 if test -n "$MAGIC_CMD"; then
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9192 $as_echo "$MAGIC_CMD" >&6; }
9193 else
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9195 $as_echo "no" >&6; }
9196 fi
9197
9198
9199 else
9200 MAGIC_CMD=:
9201 fi
9202 fi
9203
9204 fi
9205 ;;
9206 esac
9207
9208 # Use C for the default configuration in the libtool script
9209
9210 lt_save_CC="$CC"
9211 ac_ext=c
9212 ac_cpp='$CPP $CPPFLAGS'
9213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9216
9217
9218 # Source file extension for C test sources.
9219 ac_ext=c
9220
9221 # Object file extension for compiled C test sources.
9222 objext=o
9223 objext=$objext
9224
9225 # Code to be used in simple compile tests
9226 lt_simple_compile_test_code="int some_variable = 0;"
9227
9228 # Code to be used in simple link tests
9229 lt_simple_link_test_code='int main(){return(0);}'
9230
9231
9232
9233
9234
9235
9236
9237 # If no C compiler was specified, use CC.
9238 LTCC=${LTCC-"$CC"}
9239
9240 # If no C compiler flags were specified, use CFLAGS.
9241 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9242
9243 # Allow CC to be a program name with arguments.
9244 compiler=$CC
9245
9246 # Save the default compiler, since it gets overwritten when the other
9247 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9248 compiler_DEFAULT=$CC
9249
9250 # save warnings/boilerplate of simple test code
9251 ac_outfile=conftest.$ac_objext
9252 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9253 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9254 _lt_compiler_boilerplate=`cat conftest.err`
9255 $RM conftest*
9256
9257 ac_outfile=conftest.$ac_objext
9258 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9259 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9260 _lt_linker_boilerplate=`cat conftest.err`
9261 $RM -r conftest*
9262
9263
9264 ## CAVEAT EMPTOR:
9265 ## There is no encapsulation within the following macros, do not change
9266 ## the running order or otherwise move them around unless you know exactly
9267 ## what you are doing...
9268 if test -n "$compiler"; then
9269
9270 lt_prog_compiler_no_builtin_flag=
9271
9272 if test "$GCC" = yes; then
9273 case $cc_basename in
9274 nvcc*)
9275 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9276 *)
9277 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9278 esac
9279
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9281 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9282 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9283 $as_echo_n "(cached) " >&6
9284 else
9285 lt_cv_prog_compiler_rtti_exceptions=no
9286 ac_outfile=conftest.$ac_objext
9287 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9288 lt_compiler_flag="-fno-rtti -fno-exceptions"
9289 # Insert the option either (1) after the last *FLAGS variable, or
9290 # (2) before a word containing "conftest.", or (3) at the end.
9291 # Note that $ac_compile itself does not contain backslashes and begins
9292 # with a dollar sign (not a hyphen), so the echo should work correctly.
9293 # The option is referenced via a variable to avoid confusing sed.
9294 lt_compile=`echo "$ac_compile" | $SED \
9295 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9296 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9297 -e 's:$: $lt_compiler_flag:'`
9298 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9299 (eval "$lt_compile" 2>conftest.err)
9300 ac_status=$?
9301 cat conftest.err >&5
9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303 if (exit $ac_status) && test -s "$ac_outfile"; then
9304 # The compiler can only warn and ignore the option if not recognized
9305 # So say no if there are warnings other than the usual output.
9306 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9307 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9308 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9309 lt_cv_prog_compiler_rtti_exceptions=yes
9310 fi
9311 fi
9312 $RM conftest*
9313
9314 fi
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9316 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9317
9318 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9319 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9320 else
9321 :
9322 fi
9323
9324 fi
9325
9326
9327
9328
9329
9330
9331 lt_prog_compiler_wl=
9332 lt_prog_compiler_pic=
9333 lt_prog_compiler_static=
9334
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9336 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9337
9338 if test "$GCC" = yes; then
9339 lt_prog_compiler_wl='-Wl,'
9340 lt_prog_compiler_static='-static'
9341
9342 case $host_os in
9343 aix*)
9344 # All AIX code is PIC.
9345 if test "$host_cpu" = ia64; then
9346 # AIX 5 now supports IA64 processor
9347 lt_prog_compiler_static='-Bstatic'
9348 fi
9349 ;;
9350
9351 amigaos*)
9352 case $host_cpu in
9353 powerpc)
9354 # see comment about AmigaOS4 .so support
9355 lt_prog_compiler_pic='-fPIC'
9356 ;;
9357 m68k)
9358 # FIXME: we need at least 68020 code to build shared libraries, but
9359 # adding the `-m68020' flag to GCC prevents building anything better,
9360 # like `-m68040'.
9361 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9362 ;;
9363 esac
9364 ;;
9365
9366 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9367 # PIC is the default for these OSes.
9368 ;;
9369
9370 mingw* | cygwin* | pw32* | os2* | cegcc*)
9371 # This hack is so that the source file can tell whether it is being
9372 # built for inclusion in a dll (and should export symbols for example).
9373 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9374 # (--disable-auto-import) libraries
9375 lt_prog_compiler_pic='-DDLL_EXPORT'
9376 ;;
9377
9378 darwin* | rhapsody*)
9379 # PIC is the default on this platform
9380 # Common symbols not allowed in MH_DYLIB files
9381 lt_prog_compiler_pic='-fno-common'
9382 ;;
9383
9384 haiku*)
9385 # PIC is the default for Haiku.
9386 # The "-static" flag exists, but is broken.
9387 lt_prog_compiler_static=
9388 ;;
9389
9390 hpux*)
9391 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9392 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9393 # sets the default TLS model and affects inlining.
9394 case $host_cpu in
9395 hppa*64*)
9396 # +Z the default
9397 ;;
9398 *)
9399 lt_prog_compiler_pic='-fPIC'
9400 ;;
9401 esac
9402 ;;
9403
9404 interix[3-9]*)
9405 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9406 # Instead, we relocate shared libraries at runtime.
9407 ;;
9408
9409 msdosdjgpp*)
9410 # Just because we use GCC doesn't mean we suddenly get shared libraries
9411 # on systems that don't support them.
9412 lt_prog_compiler_can_build_shared=no
9413 enable_shared=no
9414 ;;
9415
9416 *nto* | *qnx*)
9417 # QNX uses GNU C++, but need to define -shared option too, otherwise
9418 # it will coredump.
9419 lt_prog_compiler_pic='-fPIC -shared'
9420 ;;
9421
9422 sysv4*MP*)
9423 if test -d /usr/nec; then
9424 lt_prog_compiler_pic=-Kconform_pic
9425 fi
9426 ;;
9427
9428 *)
9429 lt_prog_compiler_pic='-fPIC'
9430 ;;
9431 esac
9432
9433 case $cc_basename in
9434 nvcc*) # Cuda Compiler Driver 2.2
9435 lt_prog_compiler_wl='-Xlinker '
9436 lt_prog_compiler_pic='-Xcompiler -fPIC'
9437 ;;
9438 esac
9439 else
9440 # PORTME Check for flag to pass linker flags through the system compiler.
9441 case $host_os in
9442 aix*)
9443 lt_prog_compiler_wl='-Wl,'
9444 if test "$host_cpu" = ia64; then
9445 # AIX 5 now supports IA64 processor
9446 lt_prog_compiler_static='-Bstatic'
9447 else
9448 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9449 fi
9450 ;;
9451
9452 mingw* | cygwin* | pw32* | os2* | cegcc*)
9453 # This hack is so that the source file can tell whether it is being
9454 # built for inclusion in a dll (and should export symbols for example).
9455 lt_prog_compiler_pic='-DDLL_EXPORT'
9456 ;;
9457
9458 hpux9* | hpux10* | hpux11*)
9459 lt_prog_compiler_wl='-Wl,'
9460 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9461 # not for PA HP-UX.
9462 case $host_cpu in
9463 hppa*64*|ia64*)
9464 # +Z the default
9465 ;;
9466 *)
9467 lt_prog_compiler_pic='+Z'
9468 ;;
9469 esac
9470 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9471 lt_prog_compiler_static='${wl}-a ${wl}archive'
9472 ;;
9473
9474 irix5* | irix6* | nonstopux*)
9475 lt_prog_compiler_wl='-Wl,'
9476 # PIC (with -KPIC) is the default.
9477 lt_prog_compiler_static='-non_shared'
9478 ;;
9479
9480 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9481 case $cc_basename in
9482 # old Intel for x86_64 which still supported -KPIC.
9483 ecc*)
9484 lt_prog_compiler_wl='-Wl,'
9485 lt_prog_compiler_pic='-KPIC'
9486 lt_prog_compiler_static='-static'
9487 ;;
9488 # icc used to be incompatible with GCC.
9489 # ICC 10 doesn't accept -KPIC any more.
9490 icc* | ifort*)
9491 lt_prog_compiler_wl='-Wl,'
9492 lt_prog_compiler_pic='-fPIC'
9493 lt_prog_compiler_static='-static'
9494 ;;
9495 # Lahey Fortran 8.1.
9496 lf95*)
9497 lt_prog_compiler_wl='-Wl,'
9498 lt_prog_compiler_pic='--shared'
9499 lt_prog_compiler_static='--static'
9500 ;;
9501 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9502 # Portland Group compilers (*not* the Pentium gcc compiler,
9503 # which looks to be a dead project)
9504 lt_prog_compiler_wl='-Wl,'
9505 lt_prog_compiler_pic='-fpic'
9506 lt_prog_compiler_static='-Bstatic'
9507 ;;
9508 ccc*)
9509 lt_prog_compiler_wl='-Wl,'
9510 # All Alpha code is PIC.
9511 lt_prog_compiler_static='-non_shared'
9512 ;;
9513 xl* | bgxl* | bgf* | mpixl*)
9514 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9515 lt_prog_compiler_wl='-Wl,'
9516 lt_prog_compiler_pic='-qpic'
9517 lt_prog_compiler_static='-qstaticlink'
9518 ;;
9519 *)
9520 case `$CC -V 2>&1 | sed 5q` in
9521 *Sun\ F* | *Sun*Fortran*)
9522 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9523 lt_prog_compiler_pic='-KPIC'
9524 lt_prog_compiler_static='-Bstatic'
9525 lt_prog_compiler_wl=''
9526 ;;
9527 *Sun\ C*)
9528 # Sun C 5.9
9529 lt_prog_compiler_pic='-KPIC'
9530 lt_prog_compiler_static='-Bstatic'
9531 lt_prog_compiler_wl='-Wl,'
9532 ;;
9533 esac
9534 ;;
9535 esac
9536 ;;
9537
9538 newsos6)
9539 lt_prog_compiler_pic='-KPIC'
9540 lt_prog_compiler_static='-Bstatic'
9541 ;;
9542
9543 *nto* | *qnx*)
9544 # QNX uses GNU C++, but need to define -shared option too, otherwise
9545 # it will coredump.
9546 lt_prog_compiler_pic='-fPIC -shared'
9547 ;;
9548
9549 osf3* | osf4* | osf5*)
9550 lt_prog_compiler_wl='-Wl,'
9551 # All OSF/1 code is PIC.
9552 lt_prog_compiler_static='-non_shared'
9553 ;;
9554
9555 rdos*)
9556 lt_prog_compiler_static='-non_shared'
9557 ;;
9558
9559 solaris*)
9560 lt_prog_compiler_pic='-KPIC'
9561 lt_prog_compiler_static='-Bstatic'
9562 case $cc_basename in
9563 f77* | f90* | f95*)
9564 lt_prog_compiler_wl='-Qoption ld ';;
9565 *)
9566 lt_prog_compiler_wl='-Wl,';;
9567 esac
9568 ;;
9569
9570 sunos4*)
9571 lt_prog_compiler_wl='-Qoption ld '
9572 lt_prog_compiler_pic='-PIC'
9573 lt_prog_compiler_static='-Bstatic'
9574 ;;
9575
9576 sysv4 | sysv4.2uw2* | sysv4.3*)
9577 lt_prog_compiler_wl='-Wl,'
9578 lt_prog_compiler_pic='-KPIC'
9579 lt_prog_compiler_static='-Bstatic'
9580 ;;
9581
9582 sysv4*MP*)
9583 if test -d /usr/nec ;then
9584 lt_prog_compiler_pic='-Kconform_pic'
9585 lt_prog_compiler_static='-Bstatic'
9586 fi
9587 ;;
9588
9589 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9590 lt_prog_compiler_wl='-Wl,'
9591 lt_prog_compiler_pic='-KPIC'
9592 lt_prog_compiler_static='-Bstatic'
9593 ;;
9594
9595 unicos*)
9596 lt_prog_compiler_wl='-Wl,'
9597 lt_prog_compiler_can_build_shared=no
9598 ;;
9599
9600 uts4*)
9601 lt_prog_compiler_pic='-pic'
9602 lt_prog_compiler_static='-Bstatic'
9603 ;;
9604
9605 *)
9606 lt_prog_compiler_can_build_shared=no
9607 ;;
9608 esac
9609 fi
9610
9611 case $host_os in
9612 # For platforms which do not support PIC, -DPIC is meaningless:
9613 *djgpp*)
9614 lt_prog_compiler_pic=
9615 ;;
9616 *)
9617 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9618 ;;
9619 esac
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9621 $as_echo "$lt_prog_compiler_pic" >&6; }
9622
9623
9624
9625
9626
9627
9628 #
9629 # Check to make sure the PIC flag actually works.
9630 #
9631 if test -n "$lt_prog_compiler_pic"; then
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9633 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9634 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9635 $as_echo_n "(cached) " >&6
9636 else
9637 lt_cv_prog_compiler_pic_works=no
9638 ac_outfile=conftest.$ac_objext
9639 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9640 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9641 # Insert the option either (1) after the last *FLAGS variable, or
9642 # (2) before a word containing "conftest.", or (3) at the end.
9643 # Note that $ac_compile itself does not contain backslashes and begins
9644 # with a dollar sign (not a hyphen), so the echo should work correctly.
9645 # The option is referenced via a variable to avoid confusing sed.
9646 lt_compile=`echo "$ac_compile" | $SED \
9647 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9648 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9649 -e 's:$: $lt_compiler_flag:'`
9650 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9651 (eval "$lt_compile" 2>conftest.err)
9652 ac_status=$?
9653 cat conftest.err >&5
9654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655 if (exit $ac_status) && test -s "$ac_outfile"; then
9656 # The compiler can only warn and ignore the option if not recognized
9657 # So say no if there are warnings other than the usual output.
9658 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9659 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9660 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9661 lt_cv_prog_compiler_pic_works=yes
9662 fi
9663 fi
9664 $RM conftest*
9665
9666 fi
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9668 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9669
9670 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9671 case $lt_prog_compiler_pic in
9672 "" | " "*) ;;
9673 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9674 esac
9675 else
9676 lt_prog_compiler_pic=
9677 lt_prog_compiler_can_build_shared=no
9678 fi
9679
9680 fi
9681
9682
9683
9684
9685
9686
9687 #
9688 # Check to make sure the static flag actually works.
9689 #
9690 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9692 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9693 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9694 $as_echo_n "(cached) " >&6
9695 else
9696 lt_cv_prog_compiler_static_works=no
9697 save_LDFLAGS="$LDFLAGS"
9698 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9699 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9700 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9701 # The linker can only warn and ignore the option if not recognized
9702 # So say no if there are warnings
9703 if test -s conftest.err; then
9704 # Append any errors to the config.log.
9705 cat conftest.err 1>&5
9706 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9707 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9708 if diff conftest.exp conftest.er2 >/dev/null; then
9709 lt_cv_prog_compiler_static_works=yes
9710 fi
9711 else
9712 lt_cv_prog_compiler_static_works=yes
9713 fi
9714 fi
9715 $RM -r conftest*
9716 LDFLAGS="$save_LDFLAGS"
9717
9718 fi
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9720 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9721
9722 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9723 :
9724 else
9725 lt_prog_compiler_static=
9726 fi
9727
9728
9729
9730
9731
9732
9733
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9735 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9736 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9737 $as_echo_n "(cached) " >&6
9738 else
9739 lt_cv_prog_compiler_c_o=no
9740 $RM -r conftest 2>/dev/null
9741 mkdir conftest
9742 cd conftest
9743 mkdir out
9744 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9745
9746 lt_compiler_flag="-o out/conftest2.$ac_objext"
9747 # Insert the option either (1) after the last *FLAGS variable, or
9748 # (2) before a word containing "conftest.", or (3) at the end.
9749 # Note that $ac_compile itself does not contain backslashes and begins
9750 # with a dollar sign (not a hyphen), so the echo should work correctly.
9751 lt_compile=`echo "$ac_compile" | $SED \
9752 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9753 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9754 -e 's:$: $lt_compiler_flag:'`
9755 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9756 (eval "$lt_compile" 2>out/conftest.err)
9757 ac_status=$?
9758 cat out/conftest.err >&5
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9761 then
9762 # The compiler can only warn and ignore the option if not recognized
9763 # So say no if there are warnings
9764 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9765 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9766 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9767 lt_cv_prog_compiler_c_o=yes
9768 fi
9769 fi
9770 chmod u+w . 2>&5
9771 $RM conftest*
9772 # SGI C++ compiler will create directory out/ii_files/ for
9773 # template instantiation
9774 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9775 $RM out/* && rmdir out
9776 cd ..
9777 $RM -r conftest
9778 $RM conftest*
9779
9780 fi
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9782 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9783
9784
9785
9786
9787
9788
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9790 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9791 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9792 $as_echo_n "(cached) " >&6
9793 else
9794 lt_cv_prog_compiler_c_o=no
9795 $RM -r conftest 2>/dev/null
9796 mkdir conftest
9797 cd conftest
9798 mkdir out
9799 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9800
9801 lt_compiler_flag="-o out/conftest2.$ac_objext"
9802 # Insert the option either (1) after the last *FLAGS variable, or
9803 # (2) before a word containing "conftest.", or (3) at the end.
9804 # Note that $ac_compile itself does not contain backslashes and begins
9805 # with a dollar sign (not a hyphen), so the echo should work correctly.
9806 lt_compile=`echo "$ac_compile" | $SED \
9807 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9808 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9809 -e 's:$: $lt_compiler_flag:'`
9810 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9811 (eval "$lt_compile" 2>out/conftest.err)
9812 ac_status=$?
9813 cat out/conftest.err >&5
9814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9816 then
9817 # The compiler can only warn and ignore the option if not recognized
9818 # So say no if there are warnings
9819 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9820 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9821 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9822 lt_cv_prog_compiler_c_o=yes
9823 fi
9824 fi
9825 chmod u+w . 2>&5
9826 $RM conftest*
9827 # SGI C++ compiler will create directory out/ii_files/ for
9828 # template instantiation
9829 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9830 $RM out/* && rmdir out
9831 cd ..
9832 $RM -r conftest
9833 $RM conftest*
9834
9835 fi
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9837 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9838
9839
9840
9841
9842 hard_links="nottested"
9843 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9844 # do not overwrite the value of need_locks provided by the user
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9846 $as_echo_n "checking if we can lock with hard links... " >&6; }
9847 hard_links=yes
9848 $RM conftest*
9849 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9850 touch conftest.a
9851 ln conftest.a conftest.b 2>&5 || hard_links=no
9852 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9854 $as_echo "$hard_links" >&6; }
9855 if test "$hard_links" = no; then
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9857 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9858 need_locks=warn
9859 fi
9860 else
9861 need_locks=no
9862 fi
9863
9864
9865
9866
9867
9868
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9870 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9871
9872 runpath_var=
9873 allow_undefined_flag=
9874 always_export_symbols=no
9875 archive_cmds=
9876 archive_expsym_cmds=
9877 compiler_needs_object=no
9878 enable_shared_with_static_runtimes=no
9879 export_dynamic_flag_spec=
9880 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9881 hardcode_automatic=no
9882 hardcode_direct=no
9883 hardcode_direct_absolute=no
9884 hardcode_libdir_flag_spec=
9885 hardcode_libdir_flag_spec_ld=
9886 hardcode_libdir_separator=
9887 hardcode_minus_L=no
9888 hardcode_shlibpath_var=unsupported
9889 inherit_rpath=no
9890 link_all_deplibs=unknown
9891 module_cmds=
9892 module_expsym_cmds=
9893 old_archive_from_new_cmds=
9894 old_archive_from_expsyms_cmds=
9895 thread_safe_flag_spec=
9896 whole_archive_flag_spec=
9897 # include_expsyms should be a list of space-separated symbols to be *always*
9898 # included in the symbol list
9899 include_expsyms=
9900 # exclude_expsyms can be an extended regexp of symbols to exclude
9901 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9902 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9903 # as well as any symbol that contains `d'.
9904 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9905 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9906 # platforms (ab)use it in PIC code, but their linkers get confused if
9907 # the symbol is explicitly referenced. Since portable code cannot
9908 # rely on this symbol name, it's probably fine to never include it in
9909 # preloaded symbol tables.
9910 # Exclude shared library initialization/finalization symbols.
9911 extract_expsyms_cmds=
9912
9913 case $host_os in
9914 cygwin* | mingw* | pw32* | cegcc*)
9915 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9916 # When not using gcc, we currently assume that we are using
9917 # Microsoft Visual C++.
9918 if test "$GCC" != yes; then
9919 with_gnu_ld=no
9920 fi
9921 ;;
9922 interix*)
9923 # we just hope/assume this is gcc and not c89 (= MSVC++)
9924 with_gnu_ld=yes
9925 ;;
9926 openbsd*)
9927 with_gnu_ld=no
9928 ;;
9929 esac
9930
9931 ld_shlibs=yes
9932
9933 # On some targets, GNU ld is compatible enough with the native linker
9934 # that we're better off using the native interface for both.
9935 lt_use_gnu_ld_interface=no
9936 if test "$with_gnu_ld" = yes; then
9937 case $host_os in
9938 aix*)
9939 # The AIX port of GNU ld has always aspired to compatibility
9940 # with the native linker. However, as the warning in the GNU ld
9941 # block says, versions before 2.19.5* couldn't really create working
9942 # shared libraries, regardless of the interface used.
9943 case `$LD -v 2>&1` in
9944 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9945 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9946 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9947 *)
9948 lt_use_gnu_ld_interface=yes
9949 ;;
9950 esac
9951 ;;
9952 *)
9953 lt_use_gnu_ld_interface=yes
9954 ;;
9955 esac
9956 fi
9957
9958 if test "$lt_use_gnu_ld_interface" = yes; then
9959 # If archive_cmds runs LD, not CC, wlarc should be empty
9960 wlarc='${wl}'
9961
9962 # Set some defaults for GNU ld with shared library support. These
9963 # are reset later if shared libraries are not supported. Putting them
9964 # here allows them to be overridden if necessary.
9965 runpath_var=LD_RUN_PATH
9966 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9967 export_dynamic_flag_spec='${wl}--export-dynamic'
9968 # ancient GNU ld didn't support --whole-archive et. al.
9969 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9970 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9971 else
9972 whole_archive_flag_spec=
9973 fi
9974 supports_anon_versioning=no
9975 case `$LD -v 2>&1` in
9976 *GNU\ gold*) supports_anon_versioning=yes ;;
9977 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9978 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9979 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9980 *\ 2.11.*) ;; # other 2.11 versions
9981 *) supports_anon_versioning=yes ;;
9982 esac
9983
9984 # See if GNU ld supports shared libraries.
9985 case $host_os in
9986 aix[3-9]*)
9987 # On AIX/PPC, the GNU linker is very broken
9988 if test "$host_cpu" != ia64; then
9989 ld_shlibs=no
9990 cat <<_LT_EOF 1>&2
9991
9992 *** Warning: the GNU linker, at least up to release 2.19, is reported
9993 *** to be unable to reliably create shared libraries on AIX.
9994 *** Therefore, libtool is disabling shared libraries support. If you
9995 *** really care for shared libraries, you may want to install binutils
9996 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9997 *** You will then need to restart the configuration process.
9998
9999 _LT_EOF
10000 fi
10001 ;;
10002
10003 amigaos*)
10004 case $host_cpu in
10005 powerpc)
10006 # see comment about AmigaOS4 .so support
10007 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10008 archive_expsym_cmds=''
10009 ;;
10010 m68k)
10011 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)'
10012 hardcode_libdir_flag_spec='-L$libdir'
10013 hardcode_minus_L=yes
10014 ;;
10015 esac
10016 ;;
10017
10018 beos*)
10019 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10020 allow_undefined_flag=unsupported
10021 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10022 # support --undefined. This deserves some investigation. FIXME
10023 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10024 else
10025 ld_shlibs=no
10026 fi
10027 ;;
10028
10029 cygwin* | mingw* | pw32* | cegcc*)
10030 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10031 # as there is no search path for DLLs.
10032 hardcode_libdir_flag_spec='-L$libdir'
10033 export_dynamic_flag_spec='${wl}--export-all-symbols'
10034 allow_undefined_flag=unsupported
10035 always_export_symbols=no
10036 enable_shared_with_static_runtimes=yes
10037 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10038
10039 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10040 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10041 # If the export-symbols file already is a .def file (1st line
10042 # is EXPORTS), use it as is; otherwise, prepend...
10043 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10044 cp $export_symbols $output_objdir/$soname.def;
10045 else
10046 echo EXPORTS > $output_objdir/$soname.def;
10047 cat $export_symbols >> $output_objdir/$soname.def;
10048 fi~
10049 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10050 else
10051 ld_shlibs=no
10052 fi
10053 ;;
10054
10055 haiku*)
10056 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10057 link_all_deplibs=yes
10058 ;;
10059
10060 interix[3-9]*)
10061 hardcode_direct=no
10062 hardcode_shlibpath_var=no
10063 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10064 export_dynamic_flag_spec='${wl}-E'
10065 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10066 # Instead, shared libraries are loaded at an image base (0x10000000 by
10067 # default) and relocated if they conflict, which is a slow very memory
10068 # consuming and fragmenting process. To avoid this, we pick a random,
10069 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10070 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10071 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10072 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'
10073 ;;
10074
10075 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10076 tmp_diet=no
10077 if test "$host_os" = linux-dietlibc; then
10078 case $cc_basename in
10079 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10080 esac
10081 fi
10082 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10083 && test "$tmp_diet" = no
10084 then
10085 tmp_addflag=
10086 tmp_sharedflag='-shared'
10087 case $cc_basename,$host_cpu in
10088 pgcc*) # Portland Group C compiler
10089 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'
10090 tmp_addflag=' $pic_flag'
10091 ;;
10092 pgf77* | pgf90* | pgf95* | pgfortran*)
10093 # Portland Group f77 and f90 compilers
10094 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'
10095 tmp_addflag=' $pic_flag -Mnomain' ;;
10096 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10097 tmp_addflag=' -i_dynamic' ;;
10098 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10099 tmp_addflag=' -i_dynamic -nofor_main' ;;
10100 ifc* | ifort*) # Intel Fortran compiler
10101 tmp_addflag=' -nofor_main' ;;
10102 lf95*) # Lahey Fortran 8.1
10103 whole_archive_flag_spec=
10104 tmp_sharedflag='--shared' ;;
10105 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10106 tmp_sharedflag='-qmkshrobj'
10107 tmp_addflag= ;;
10108 nvcc*) # Cuda Compiler Driver 2.2
10109 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'
10110 compiler_needs_object=yes
10111 ;;
10112 esac
10113 case `$CC -V 2>&1 | sed 5q` in
10114 *Sun\ C*) # Sun C 5.9
10115 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'
10116 compiler_needs_object=yes
10117 tmp_sharedflag='-G' ;;
10118 *Sun\ F*) # Sun Fortran 8.3
10119 tmp_sharedflag='-G' ;;
10120 esac
10121 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10122
10123 if test "x$supports_anon_versioning" = xyes; then
10124 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10125 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10126 echo "local: *; };" >> $output_objdir/$libname.ver~
10127 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10128 fi
10129
10130 case $cc_basename in
10131 xlf* | bgf* | bgxlf* | mpixlf*)
10132 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10133 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10134 hardcode_libdir_flag_spec=
10135 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10136 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10137 if test "x$supports_anon_versioning" = xyes; then
10138 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10139 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10140 echo "local: *; };" >> $output_objdir/$libname.ver~
10141 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10142 fi
10143 ;;
10144 esac
10145 else
10146 ld_shlibs=no
10147 fi
10148 ;;
10149
10150 netbsd*)
10151 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10152 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10153 wlarc=
10154 else
10155 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10156 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10157 fi
10158 ;;
10159
10160 solaris*)
10161 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10162 ld_shlibs=no
10163 cat <<_LT_EOF 1>&2
10164
10165 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10166 *** create shared libraries on Solaris systems. Therefore, libtool
10167 *** is disabling shared libraries support. We urge you to upgrade GNU
10168 *** binutils to release 2.9.1 or newer. Another option is to modify
10169 *** your PATH or compiler configuration so that the native linker is
10170 *** used, and then restart.
10171
10172 _LT_EOF
10173 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10174 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10175 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10176 else
10177 ld_shlibs=no
10178 fi
10179 ;;
10180
10181 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10182 case `$LD -v 2>&1` in
10183 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10184 ld_shlibs=no
10185 cat <<_LT_EOF 1>&2
10186
10187 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10188 *** reliably create shared libraries on SCO systems. Therefore, libtool
10189 *** is disabling shared libraries support. We urge you to upgrade GNU
10190 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10191 *** your PATH or compiler configuration so that the native linker is
10192 *** used, and then restart.
10193
10194 _LT_EOF
10195 ;;
10196 *)
10197 # For security reasons, it is highly recommended that you always
10198 # use absolute paths for naming shared libraries, and exclude the
10199 # DT_RUNPATH tag from executables and libraries. But doing so
10200 # requires that you compile everything twice, which is a pain.
10201 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10202 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10203 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10204 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10205 else
10206 ld_shlibs=no
10207 fi
10208 ;;
10209 esac
10210 ;;
10211
10212 sunos4*)
10213 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10214 wlarc=
10215 hardcode_direct=yes
10216 hardcode_shlibpath_var=no
10217 ;;
10218
10219 *)
10220 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10221 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10222 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10223 else
10224 ld_shlibs=no
10225 fi
10226 ;;
10227 esac
10228
10229 if test "$ld_shlibs" = no; then
10230 runpath_var=
10231 hardcode_libdir_flag_spec=
10232 export_dynamic_flag_spec=
10233 whole_archive_flag_spec=
10234 fi
10235 else
10236 # PORTME fill in a description of your system's linker (not GNU ld)
10237 case $host_os in
10238 aix3*)
10239 allow_undefined_flag=unsupported
10240 always_export_symbols=yes
10241 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'
10242 # Note: this linker hardcodes the directories in LIBPATH if there
10243 # are no directories specified by -L.
10244 hardcode_minus_L=yes
10245 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10246 # Neither direct hardcoding nor static linking is supported with a
10247 # broken collect2.
10248 hardcode_direct=unsupported
10249 fi
10250 ;;
10251
10252 aix[4-9]*)
10253 if test "$host_cpu" = ia64; then
10254 # On IA64, the linker does run time linking by default, so we don't
10255 # have to do anything special.
10256 aix_use_runtimelinking=no
10257 exp_sym_flag='-Bexport'
10258 no_entry_flag=""
10259 else
10260 # If we're using GNU nm, then we don't want the "-C" option.
10261 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10262 # Also, AIX nm treats weak defined symbols like other global
10263 # defined symbols, whereas GNU nm marks them as "W".
10264 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10265 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'
10266 else
10267 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'
10268 fi
10269 aix_use_runtimelinking=no
10270
10271 # Test if we are trying to use run time linking or normal
10272 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10273 # need to do runtime linking.
10274 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10275 for ld_flag in $LDFLAGS; do
10276 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10277 aix_use_runtimelinking=yes
10278 break
10279 fi
10280 done
10281 ;;
10282 esac
10283
10284 exp_sym_flag='-bexport'
10285 no_entry_flag='-bnoentry'
10286 fi
10287
10288 # When large executables or shared objects are built, AIX ld can
10289 # have problems creating the table of contents. If linking a library
10290 # or program results in "error TOC overflow" add -mminimal-toc to
10291 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10292 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10293
10294 archive_cmds=''
10295 hardcode_direct=yes
10296 hardcode_direct_absolute=yes
10297 hardcode_libdir_separator=':'
10298 link_all_deplibs=yes
10299 file_list_spec='${wl}-f,'
10300
10301 if test "$GCC" = yes; then
10302 case $host_os in aix4.[012]|aix4.[012].*)
10303 # We only want to do this on AIX 4.2 and lower, the check
10304 # below for broken collect2 doesn't work under 4.3+
10305 collect2name=`${CC} -print-prog-name=collect2`
10306 if test -f "$collect2name" &&
10307 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10308 then
10309 # We have reworked collect2
10310 :
10311 else
10312 # We have old collect2
10313 hardcode_direct=unsupported
10314 # It fails to find uninstalled libraries when the uninstalled
10315 # path is not listed in the libpath. Setting hardcode_minus_L
10316 # to unsupported forces relinking
10317 hardcode_minus_L=yes
10318 hardcode_libdir_flag_spec='-L$libdir'
10319 hardcode_libdir_separator=
10320 fi
10321 ;;
10322 esac
10323 shared_flag='-shared'
10324 if test "$aix_use_runtimelinking" = yes; then
10325 shared_flag="$shared_flag "'${wl}-G'
10326 fi
10327 else
10328 # not using gcc
10329 if test "$host_cpu" = ia64; then
10330 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10331 # chokes on -Wl,-G. The following line is correct:
10332 shared_flag='-G'
10333 else
10334 if test "$aix_use_runtimelinking" = yes; then
10335 shared_flag='${wl}-G'
10336 else
10337 shared_flag='${wl}-bM:SRE'
10338 fi
10339 fi
10340 fi
10341
10342 export_dynamic_flag_spec='${wl}-bexpall'
10343 # It seems that -bexpall does not export symbols beginning with
10344 # underscore (_), so it is better to generate a list of symbols to export.
10345 always_export_symbols=yes
10346 if test "$aix_use_runtimelinking" = yes; then
10347 # Warning - without using the other runtime loading flags (-brtl),
10348 # -berok will link without error, but may produce a broken library.
10349 allow_undefined_flag='-berok'
10350 # Determine the default libpath from the value encoded in an
10351 # empty executable.
10352 if test x$gcc_no_link = xyes; then
10353 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10354 fi
10355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10356 /* end confdefs.h. */
10357
10358 int
10359 main ()
10360 {
10361
10362 ;
10363 return 0;
10364 }
10365 _ACEOF
10366 if ac_fn_c_try_link "$LINENO"; then :
10367
10368 lt_aix_libpath_sed='
10369 /Import File Strings/,/^$/ {
10370 /^0/ {
10371 s/^0 *\(.*\)$/\1/
10372 p
10373 }
10374 }'
10375 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10376 # Check for a 64-bit object if we didn't find anything.
10377 if test -z "$aix_libpath"; then
10378 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10379 fi
10380 fi
10381 rm -f core conftest.err conftest.$ac_objext \
10382 conftest$ac_exeext conftest.$ac_ext
10383 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10384
10385 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10386 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"
10387 else
10388 if test "$host_cpu" = ia64; then
10389 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10390 allow_undefined_flag="-z nodefs"
10391 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"
10392 else
10393 # Determine the default libpath from the value encoded in an
10394 # empty executable.
10395 if test x$gcc_no_link = xyes; then
10396 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10397 fi
10398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10399 /* end confdefs.h. */
10400
10401 int
10402 main ()
10403 {
10404
10405 ;
10406 return 0;
10407 }
10408 _ACEOF
10409 if ac_fn_c_try_link "$LINENO"; then :
10410
10411 lt_aix_libpath_sed='
10412 /Import File Strings/,/^$/ {
10413 /^0/ {
10414 s/^0 *\(.*\)$/\1/
10415 p
10416 }
10417 }'
10418 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10419 # Check for a 64-bit object if we didn't find anything.
10420 if test -z "$aix_libpath"; then
10421 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10422 fi
10423 fi
10424 rm -f core conftest.err conftest.$ac_objext \
10425 conftest$ac_exeext conftest.$ac_ext
10426 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10427
10428 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10429 # Warning - without using the other run time loading flags,
10430 # -berok will link without error, but may produce a broken library.
10431 no_undefined_flag=' ${wl}-bernotok'
10432 allow_undefined_flag=' ${wl}-berok'
10433 if test "$with_gnu_ld" = yes; then
10434 # We only use this code for GNU lds that support --whole-archive.
10435 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10436 else
10437 # Exported symbols can be pulled into shared objects from archives
10438 whole_archive_flag_spec='$convenience'
10439 fi
10440 archive_cmds_need_lc=yes
10441 # This is similar to how AIX traditionally builds its shared libraries.
10442 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'
10443 fi
10444 fi
10445 ;;
10446
10447 amigaos*)
10448 case $host_cpu in
10449 powerpc)
10450 # see comment about AmigaOS4 .so support
10451 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10452 archive_expsym_cmds=''
10453 ;;
10454 m68k)
10455 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)'
10456 hardcode_libdir_flag_spec='-L$libdir'
10457 hardcode_minus_L=yes
10458 ;;
10459 esac
10460 ;;
10461
10462 bsdi[45]*)
10463 export_dynamic_flag_spec=-rdynamic
10464 ;;
10465
10466 cygwin* | mingw* | pw32* | cegcc*)
10467 # When not using gcc, we currently assume that we are using
10468 # Microsoft Visual C++.
10469 # hardcode_libdir_flag_spec is actually meaningless, as there is
10470 # no search path for DLLs.
10471 hardcode_libdir_flag_spec=' '
10472 allow_undefined_flag=unsupported
10473 # Tell ltmain to make .lib files, not .a files.
10474 libext=lib
10475 # Tell ltmain to make .dll files, not .so files.
10476 shrext_cmds=".dll"
10477 # FIXME: Setting linknames here is a bad hack.
10478 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10479 # The linker will automatically build a .lib file if we build a DLL.
10480 old_archive_from_new_cmds='true'
10481 # FIXME: Should let the user specify the lib program.
10482 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10483 fix_srcfile_path='`cygpath -w "$srcfile"`'
10484 enable_shared_with_static_runtimes=yes
10485 ;;
10486
10487 darwin* | rhapsody*)
10488
10489
10490 archive_cmds_need_lc=no
10491 hardcode_direct=no
10492 hardcode_automatic=yes
10493 hardcode_shlibpath_var=unsupported
10494 if test "$lt_cv_ld_force_load" = "yes"; then
10495 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\"`'
10496 else
10497 whole_archive_flag_spec=''
10498 fi
10499 link_all_deplibs=yes
10500 allow_undefined_flag="$_lt_dar_allow_undefined"
10501 case $cc_basename in
10502 ifort*) _lt_dar_can_shared=yes ;;
10503 *) _lt_dar_can_shared=$GCC ;;
10504 esac
10505 if test "$_lt_dar_can_shared" = "yes"; then
10506 output_verbose_link_cmd=func_echo_all
10507 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10508 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10509 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}"
10510 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}"
10511
10512 else
10513 ld_shlibs=no
10514 fi
10515
10516 ;;
10517
10518 dgux*)
10519 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10520 hardcode_libdir_flag_spec='-L$libdir'
10521 hardcode_shlibpath_var=no
10522 ;;
10523
10524 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10525 # support. Future versions do this automatically, but an explicit c++rt0.o
10526 # does not break anything, and helps significantly (at the cost of a little
10527 # extra space).
10528 freebsd2.2*)
10529 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10530 hardcode_libdir_flag_spec='-R$libdir'
10531 hardcode_direct=yes
10532 hardcode_shlibpath_var=no
10533 ;;
10534
10535 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10536 freebsd2.*)
10537 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10538 hardcode_direct=yes
10539 hardcode_minus_L=yes
10540 hardcode_shlibpath_var=no
10541 ;;
10542
10543 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10544 freebsd* | dragonfly*)
10545 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10546 hardcode_libdir_flag_spec='-R$libdir'
10547 hardcode_direct=yes
10548 hardcode_shlibpath_var=no
10549 ;;
10550
10551 hpux9*)
10552 if test "$GCC" = yes; then
10553 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'
10554 else
10555 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'
10556 fi
10557 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10558 hardcode_libdir_separator=:
10559 hardcode_direct=yes
10560
10561 # hardcode_minus_L: Not really in the search PATH,
10562 # but as the default location of the library.
10563 hardcode_minus_L=yes
10564 export_dynamic_flag_spec='${wl}-E'
10565 ;;
10566
10567 hpux10*)
10568 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10569 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10570 else
10571 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10572 fi
10573 if test "$with_gnu_ld" = no; then
10574 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10575 hardcode_libdir_flag_spec_ld='+b $libdir'
10576 hardcode_libdir_separator=:
10577 hardcode_direct=yes
10578 hardcode_direct_absolute=yes
10579 export_dynamic_flag_spec='${wl}-E'
10580 # hardcode_minus_L: Not really in the search PATH,
10581 # but as the default location of the library.
10582 hardcode_minus_L=yes
10583 fi
10584 ;;
10585
10586 hpux11*)
10587 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10588 case $host_cpu in
10589 hppa*64*)
10590 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10591 ;;
10592 ia64*)
10593 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10594 ;;
10595 *)
10596 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10597 ;;
10598 esac
10599 else
10600 case $host_cpu in
10601 hppa*64*)
10602 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10603 ;;
10604 ia64*)
10605 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10606 ;;
10607 *)
10608
10609 # Older versions of the 11.00 compiler do not understand -b yet
10610 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10612 $as_echo_n "checking if $CC understands -b... " >&6; }
10613 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10614 $as_echo_n "(cached) " >&6
10615 else
10616 lt_cv_prog_compiler__b=no
10617 save_LDFLAGS="$LDFLAGS"
10618 LDFLAGS="$LDFLAGS -b"
10619 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10620 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10621 # The linker can only warn and ignore the option if not recognized
10622 # So say no if there are warnings
10623 if test -s conftest.err; then
10624 # Append any errors to the config.log.
10625 cat conftest.err 1>&5
10626 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10627 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10628 if diff conftest.exp conftest.er2 >/dev/null; then
10629 lt_cv_prog_compiler__b=yes
10630 fi
10631 else
10632 lt_cv_prog_compiler__b=yes
10633 fi
10634 fi
10635 $RM -r conftest*
10636 LDFLAGS="$save_LDFLAGS"
10637
10638 fi
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10640 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10641
10642 if test x"$lt_cv_prog_compiler__b" = xyes; then
10643 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10644 else
10645 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10646 fi
10647
10648 ;;
10649 esac
10650 fi
10651 if test "$with_gnu_ld" = no; then
10652 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10653 hardcode_libdir_separator=:
10654
10655 case $host_cpu in
10656 hppa*64*|ia64*)
10657 hardcode_direct=no
10658 hardcode_shlibpath_var=no
10659 ;;
10660 *)
10661 hardcode_direct=yes
10662 hardcode_direct_absolute=yes
10663 export_dynamic_flag_spec='${wl}-E'
10664
10665 # hardcode_minus_L: Not really in the search PATH,
10666 # but as the default location of the library.
10667 hardcode_minus_L=yes
10668 ;;
10669 esac
10670 fi
10671 ;;
10672
10673 irix5* | irix6* | nonstopux*)
10674 if test "$GCC" = yes; then
10675 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'
10676 # Try to use the -exported_symbol ld option, if it does not
10677 # work, assume that -exports_file does not work either and
10678 # implicitly export all symbols.
10679 save_LDFLAGS="$LDFLAGS"
10680 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10681 if test x$gcc_no_link = xyes; then
10682 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10683 fi
10684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10685 /* end confdefs.h. */
10686 int foo(void) {}
10687 _ACEOF
10688 if ac_fn_c_try_link "$LINENO"; then :
10689 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'
10690
10691 fi
10692 rm -f core conftest.err conftest.$ac_objext \
10693 conftest$ac_exeext conftest.$ac_ext
10694 LDFLAGS="$save_LDFLAGS"
10695 else
10696 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'
10697 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'
10698 fi
10699 archive_cmds_need_lc='no'
10700 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10701 hardcode_libdir_separator=:
10702 inherit_rpath=yes
10703 link_all_deplibs=yes
10704 ;;
10705
10706 netbsd*)
10707 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10708 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10709 else
10710 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10711 fi
10712 hardcode_libdir_flag_spec='-R$libdir'
10713 hardcode_direct=yes
10714 hardcode_shlibpath_var=no
10715 ;;
10716
10717 newsos6)
10718 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10719 hardcode_direct=yes
10720 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10721 hardcode_libdir_separator=:
10722 hardcode_shlibpath_var=no
10723 ;;
10724
10725 *nto* | *qnx*)
10726 ;;
10727
10728 openbsd*)
10729 if test -f /usr/libexec/ld.so; then
10730 hardcode_direct=yes
10731 hardcode_shlibpath_var=no
10732 hardcode_direct_absolute=yes
10733 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10734 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10735 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10736 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10737 export_dynamic_flag_spec='${wl}-E'
10738 else
10739 case $host_os in
10740 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10741 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10742 hardcode_libdir_flag_spec='-R$libdir'
10743 ;;
10744 *)
10745 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10746 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10747 ;;
10748 esac
10749 fi
10750 else
10751 ld_shlibs=no
10752 fi
10753 ;;
10754
10755 os2*)
10756 hardcode_libdir_flag_spec='-L$libdir'
10757 hardcode_minus_L=yes
10758 allow_undefined_flag=unsupported
10759 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'
10760 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10761 ;;
10762
10763 osf3*)
10764 if test "$GCC" = yes; then
10765 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10766 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'
10767 else
10768 allow_undefined_flag=' -expect_unresolved \*'
10769 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'
10770 fi
10771 archive_cmds_need_lc='no'
10772 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10773 hardcode_libdir_separator=:
10774 ;;
10775
10776 osf4* | osf5*) # as osf3* with the addition of -msym flag
10777 if test "$GCC" = yes; then
10778 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10779 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'
10780 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10781 else
10782 allow_undefined_flag=' -expect_unresolved \*'
10783 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'
10784 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~
10785 $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'
10786
10787 # Both c and cxx compiler support -rpath directly
10788 hardcode_libdir_flag_spec='-rpath $libdir'
10789 fi
10790 archive_cmds_need_lc='no'
10791 hardcode_libdir_separator=:
10792 ;;
10793
10794 solaris*)
10795 no_undefined_flag=' -z defs'
10796 if test "$GCC" = yes; then
10797 wlarc='${wl}'
10798 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10799 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10800 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10801 else
10802 case `$CC -V 2>&1` in
10803 *"Compilers 5.0"*)
10804 wlarc=''
10805 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10806 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10807 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10808 ;;
10809 *)
10810 wlarc='${wl}'
10811 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10812 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10813 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10814 ;;
10815 esac
10816 fi
10817 hardcode_libdir_flag_spec='-R$libdir'
10818 hardcode_shlibpath_var=no
10819 case $host_os in
10820 solaris2.[0-5] | solaris2.[0-5].*) ;;
10821 *)
10822 # The compiler driver will combine and reorder linker options,
10823 # but understands `-z linker_flag'. GCC discards it without `$wl',
10824 # but is careful enough not to reorder.
10825 # Supported since Solaris 2.6 (maybe 2.5.1?)
10826 if test "$GCC" = yes; then
10827 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10828 else
10829 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10830 fi
10831 ;;
10832 esac
10833 link_all_deplibs=yes
10834 ;;
10835
10836 sunos4*)
10837 if test "x$host_vendor" = xsequent; then
10838 # Use $CC to link under sequent, because it throws in some extra .o
10839 # files that make .init and .fini sections work.
10840 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10841 else
10842 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10843 fi
10844 hardcode_libdir_flag_spec='-L$libdir'
10845 hardcode_direct=yes
10846 hardcode_minus_L=yes
10847 hardcode_shlibpath_var=no
10848 ;;
10849
10850 sysv4)
10851 case $host_vendor in
10852 sni)
10853 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10854 hardcode_direct=yes # is this really true???
10855 ;;
10856 siemens)
10857 ## LD is ld it makes a PLAMLIB
10858 ## CC just makes a GrossModule.
10859 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10860 reload_cmds='$CC -r -o $output$reload_objs'
10861 hardcode_direct=no
10862 ;;
10863 motorola)
10864 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10865 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10866 ;;
10867 esac
10868 runpath_var='LD_RUN_PATH'
10869 hardcode_shlibpath_var=no
10870 ;;
10871
10872 sysv4.3*)
10873 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10874 hardcode_shlibpath_var=no
10875 export_dynamic_flag_spec='-Bexport'
10876 ;;
10877
10878 sysv4*MP*)
10879 if test -d /usr/nec; then
10880 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10881 hardcode_shlibpath_var=no
10882 runpath_var=LD_RUN_PATH
10883 hardcode_runpath_var=yes
10884 ld_shlibs=yes
10885 fi
10886 ;;
10887
10888 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10889 no_undefined_flag='${wl}-z,text'
10890 archive_cmds_need_lc=no
10891 hardcode_shlibpath_var=no
10892 runpath_var='LD_RUN_PATH'
10893
10894 if test "$GCC" = yes; then
10895 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10896 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10897 else
10898 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10899 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10900 fi
10901 ;;
10902
10903 sysv5* | sco3.2v5* | sco5v6*)
10904 # Note: We can NOT use -z defs as we might desire, because we do not
10905 # link with -lc, and that would cause any symbols used from libc to
10906 # always be unresolved, which means just about no library would
10907 # ever link correctly. If we're not using GNU ld we use -z text
10908 # though, which does catch some bad symbols but isn't as heavy-handed
10909 # as -z defs.
10910 no_undefined_flag='${wl}-z,text'
10911 allow_undefined_flag='${wl}-z,nodefs'
10912 archive_cmds_need_lc=no
10913 hardcode_shlibpath_var=no
10914 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10915 hardcode_libdir_separator=':'
10916 link_all_deplibs=yes
10917 export_dynamic_flag_spec='${wl}-Bexport'
10918 runpath_var='LD_RUN_PATH'
10919
10920 if test "$GCC" = yes; then
10921 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10922 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10923 else
10924 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10925 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10926 fi
10927 ;;
10928
10929 uts4*)
10930 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10931 hardcode_libdir_flag_spec='-L$libdir'
10932 hardcode_shlibpath_var=no
10933 ;;
10934
10935 *)
10936 ld_shlibs=no
10937 ;;
10938 esac
10939
10940 if test x$host_vendor = xsni; then
10941 case $host in
10942 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10943 export_dynamic_flag_spec='${wl}-Blargedynsym'
10944 ;;
10945 esac
10946 fi
10947 fi
10948
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10950 $as_echo "$ld_shlibs" >&6; }
10951 test "$ld_shlibs" = no && can_build_shared=no
10952
10953 with_gnu_ld=$with_gnu_ld
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969 #
10970 # Do we need to explicitly link libc?
10971 #
10972 case "x$archive_cmds_need_lc" in
10973 x|xyes)
10974 # Assume -lc should be added
10975 archive_cmds_need_lc=yes
10976
10977 if test "$enable_shared" = yes && test "$GCC" = yes; then
10978 case $archive_cmds in
10979 *'~'*)
10980 # FIXME: we may have to deal with multi-command sequences.
10981 ;;
10982 '$CC '*)
10983 # Test whether the compiler implicitly links with -lc since on some
10984 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10985 # to ld, don't add -lc before -lgcc.
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10987 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10988 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10989 $as_echo_n "(cached) " >&6
10990 else
10991 $RM conftest*
10992 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10993
10994 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10995 (eval $ac_compile) 2>&5
10996 ac_status=$?
10997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10998 test $ac_status = 0; } 2>conftest.err; then
10999 soname=conftest
11000 lib=conftest
11001 libobjs=conftest.$ac_objext
11002 deplibs=
11003 wl=$lt_prog_compiler_wl
11004 pic_flag=$lt_prog_compiler_pic
11005 compiler_flags=-v
11006 linker_flags=-v
11007 verstring=
11008 output_objdir=.
11009 libname=conftest
11010 lt_save_allow_undefined_flag=$allow_undefined_flag
11011 allow_undefined_flag=
11012 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11013 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11014 ac_status=$?
11015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11016 test $ac_status = 0; }
11017 then
11018 lt_cv_archive_cmds_need_lc=no
11019 else
11020 lt_cv_archive_cmds_need_lc=yes
11021 fi
11022 allow_undefined_flag=$lt_save_allow_undefined_flag
11023 else
11024 cat conftest.err 1>&5
11025 fi
11026 $RM conftest*
11027
11028 fi
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11030 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11031 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11032 ;;
11033 esac
11034 fi
11035 ;;
11036 esac
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11195 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11196
11197 if test "$GCC" = yes; then
11198 case $host_os in
11199 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11200 *) lt_awk_arg="/^libraries:/" ;;
11201 esac
11202 case $host_os in
11203 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11204 *) lt_sed_strip_eq="s,=/,/,g" ;;
11205 esac
11206 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11207 case $lt_search_path_spec in
11208 *\;*)
11209 # if the path contains ";" then we assume it to be the separator
11210 # otherwise default to the standard path separator (i.e. ":") - it is
11211 # assumed that no part of a normal pathname contains ";" but that should
11212 # okay in the real world where ";" in dirpaths is itself problematic.
11213 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11214 ;;
11215 *)
11216 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11217 ;;
11218 esac
11219 # Ok, now we have the path, separated by spaces, we can step through it
11220 # and add multilib dir if necessary.
11221 lt_tmp_lt_search_path_spec=
11222 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11223 for lt_sys_path in $lt_search_path_spec; do
11224 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11225 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11226 else
11227 test -d "$lt_sys_path" && \
11228 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11229 fi
11230 done
11231 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11232 BEGIN {RS=" "; FS="/|\n";} {
11233 lt_foo="";
11234 lt_count=0;
11235 for (lt_i = NF; lt_i > 0; lt_i--) {
11236 if ($lt_i != "" && $lt_i != ".") {
11237 if ($lt_i == "..") {
11238 lt_count++;
11239 } else {
11240 if (lt_count == 0) {
11241 lt_foo="/" $lt_i lt_foo;
11242 } else {
11243 lt_count--;
11244 }
11245 }
11246 }
11247 }
11248 if (lt_foo != "") { lt_freq[lt_foo]++; }
11249 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11250 }'`
11251 # AWK program above erroneously prepends '/' to C:/dos/paths
11252 # for these hosts.
11253 case $host_os in
11254 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11255 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11256 esac
11257 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11258 else
11259 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11260 fi
11261 library_names_spec=
11262 libname_spec='lib$name'
11263 soname_spec=
11264 shrext_cmds=".so"
11265 postinstall_cmds=
11266 postuninstall_cmds=
11267 finish_cmds=
11268 finish_eval=
11269 shlibpath_var=
11270 shlibpath_overrides_runpath=unknown
11271 version_type=none
11272 dynamic_linker="$host_os ld.so"
11273 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11274 need_lib_prefix=unknown
11275 hardcode_into_libs=no
11276
11277 # when you set need_version to no, make sure it does not cause -set_version
11278 # flags to be left without arguments
11279 need_version=unknown
11280
11281 case $host_os in
11282 aix3*)
11283 version_type=linux
11284 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11285 shlibpath_var=LIBPATH
11286
11287 # AIX 3 has no versioning support, so we append a major version to the name.
11288 soname_spec='${libname}${release}${shared_ext}$major'
11289 ;;
11290
11291 aix[4-9]*)
11292 version_type=linux
11293 need_lib_prefix=no
11294 need_version=no
11295 hardcode_into_libs=yes
11296 if test "$host_cpu" = ia64; then
11297 # AIX 5 supports IA64
11298 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11299 shlibpath_var=LD_LIBRARY_PATH
11300 else
11301 # With GCC up to 2.95.x, collect2 would create an import file
11302 # for dependence libraries. The import file would start with
11303 # the line `#! .'. This would cause the generated library to
11304 # depend on `.', always an invalid library. This was fixed in
11305 # development snapshots of GCC prior to 3.0.
11306 case $host_os in
11307 aix4 | aix4.[01] | aix4.[01].*)
11308 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11309 echo ' yes '
11310 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11311 :
11312 else
11313 can_build_shared=no
11314 fi
11315 ;;
11316 esac
11317 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11318 # soname into executable. Probably we can add versioning support to
11319 # collect2, so additional links can be useful in future.
11320 if test "$aix_use_runtimelinking" = yes; then
11321 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11322 # instead of lib<name>.a to let people know that these are not
11323 # typical AIX shared libraries.
11324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11325 else
11326 # We preserve .a as extension for shared libraries through AIX4.2
11327 # and later when we are not doing run time linking.
11328 library_names_spec='${libname}${release}.a $libname.a'
11329 soname_spec='${libname}${release}${shared_ext}$major'
11330 fi
11331 shlibpath_var=LIBPATH
11332 fi
11333 ;;
11334
11335 amigaos*)
11336 case $host_cpu in
11337 powerpc)
11338 # Since July 2007 AmigaOS4 officially supports .so libraries.
11339 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11341 ;;
11342 m68k)
11343 library_names_spec='$libname.ixlibrary $libname.a'
11344 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11345 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'
11346 ;;
11347 esac
11348 ;;
11349
11350 beos*)
11351 library_names_spec='${libname}${shared_ext}'
11352 dynamic_linker="$host_os ld.so"
11353 shlibpath_var=LIBRARY_PATH
11354 ;;
11355
11356 bsdi[45]*)
11357 version_type=linux
11358 need_version=no
11359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11360 soname_spec='${libname}${release}${shared_ext}$major'
11361 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11362 shlibpath_var=LD_LIBRARY_PATH
11363 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11364 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11365 # the default ld.so.conf also contains /usr/contrib/lib and
11366 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11367 # libtool to hard-code these into programs
11368 ;;
11369
11370 cygwin* | mingw* | pw32* | cegcc*)
11371 version_type=windows
11372 shrext_cmds=".dll"
11373 need_version=no
11374 need_lib_prefix=no
11375
11376 case $GCC,$host_os in
11377 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11378 library_names_spec='$libname.dll.a'
11379 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11380 postinstall_cmds='base_file=`basename \${file}`~
11381 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11382 dldir=$destdir/`dirname \$dlpath`~
11383 test -d \$dldir || mkdir -p \$dldir~
11384 $install_prog $dir/$dlname \$dldir/$dlname~
11385 chmod a+x \$dldir/$dlname~
11386 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11387 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11388 fi'
11389 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11390 dlpath=$dir/\$dldll~
11391 $RM \$dlpath'
11392 shlibpath_overrides_runpath=yes
11393
11394 case $host_os in
11395 cygwin*)
11396 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11397 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11398
11399 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11400 ;;
11401 mingw* | cegcc*)
11402 # MinGW DLLs use traditional 'lib' prefix
11403 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11404 ;;
11405 pw32*)
11406 # pw32 DLLs use 'pw' prefix rather than 'lib'
11407 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11408 ;;
11409 esac
11410 ;;
11411
11412 *)
11413 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11414 ;;
11415 esac
11416 dynamic_linker='Win32 ld.exe'
11417 # FIXME: first we should search . and the directory the executable is in
11418 shlibpath_var=PATH
11419 ;;
11420
11421 darwin* | rhapsody*)
11422 dynamic_linker="$host_os dyld"
11423 version_type=darwin
11424 need_lib_prefix=no
11425 need_version=no
11426 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11427 soname_spec='${libname}${release}${major}$shared_ext'
11428 shlibpath_overrides_runpath=yes
11429 shlibpath_var=DYLD_LIBRARY_PATH
11430 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11431
11432 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11433 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11434 ;;
11435
11436 dgux*)
11437 version_type=linux
11438 need_lib_prefix=no
11439 need_version=no
11440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11441 soname_spec='${libname}${release}${shared_ext}$major'
11442 shlibpath_var=LD_LIBRARY_PATH
11443 ;;
11444
11445 freebsd* | dragonfly*)
11446 # DragonFly does not have aout. When/if they implement a new
11447 # versioning mechanism, adjust this.
11448 if test -x /usr/bin/objformat; then
11449 objformat=`/usr/bin/objformat`
11450 else
11451 case $host_os in
11452 freebsd[23].*) objformat=aout ;;
11453 *) objformat=elf ;;
11454 esac
11455 fi
11456 version_type=freebsd-$objformat
11457 case $version_type in
11458 freebsd-elf*)
11459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11460 need_version=no
11461 need_lib_prefix=no
11462 ;;
11463 freebsd-*)
11464 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11465 need_version=yes
11466 ;;
11467 esac
11468 shlibpath_var=LD_LIBRARY_PATH
11469 case $host_os in
11470 freebsd2.*)
11471 shlibpath_overrides_runpath=yes
11472 ;;
11473 freebsd3.[01]* | freebsdelf3.[01]*)
11474 shlibpath_overrides_runpath=yes
11475 hardcode_into_libs=yes
11476 ;;
11477 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11478 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11479 shlibpath_overrides_runpath=no
11480 hardcode_into_libs=yes
11481 ;;
11482 *) # from 4.6 on, and DragonFly
11483 shlibpath_overrides_runpath=yes
11484 hardcode_into_libs=yes
11485 ;;
11486 esac
11487 ;;
11488
11489 gnu*)
11490 version_type=linux
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 hardcode_into_libs=yes
11497 ;;
11498
11499 haiku*)
11500 version_type=linux
11501 need_lib_prefix=no
11502 need_version=no
11503 dynamic_linker="$host_os runtime_loader"
11504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11505 soname_spec='${libname}${release}${shared_ext}$major'
11506 shlibpath_var=LIBRARY_PATH
11507 shlibpath_overrides_runpath=yes
11508 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11509 hardcode_into_libs=yes
11510 ;;
11511
11512 hpux9* | hpux10* | hpux11*)
11513 # Give a soname corresponding to the major version so that dld.sl refuses to
11514 # link against other versions.
11515 version_type=sunos
11516 need_lib_prefix=no
11517 need_version=no
11518 case $host_cpu in
11519 ia64*)
11520 shrext_cmds='.so'
11521 hardcode_into_libs=yes
11522 dynamic_linker="$host_os dld.so"
11523 shlibpath_var=LD_LIBRARY_PATH
11524 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11526 soname_spec='${libname}${release}${shared_ext}$major'
11527 if test "X$HPUX_IA64_MODE" = X32; then
11528 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11529 else
11530 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11531 fi
11532 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11533 ;;
11534 hppa*64*)
11535 shrext_cmds='.sl'
11536 hardcode_into_libs=yes
11537 dynamic_linker="$host_os dld.sl"
11538 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11539 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11541 soname_spec='${libname}${release}${shared_ext}$major'
11542 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11543 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11544 ;;
11545 *)
11546 shrext_cmds='.sl'
11547 dynamic_linker="$host_os dld.sl"
11548 shlibpath_var=SHLIB_PATH
11549 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11551 soname_spec='${libname}${release}${shared_ext}$major'
11552 ;;
11553 esac
11554 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11555 postinstall_cmds='chmod 555 $lib'
11556 # or fails outright, so override atomically:
11557 install_override_mode=555
11558 ;;
11559
11560 interix[3-9]*)
11561 version_type=linux
11562 need_lib_prefix=no
11563 need_version=no
11564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11565 soname_spec='${libname}${release}${shared_ext}$major'
11566 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11567 shlibpath_var=LD_LIBRARY_PATH
11568 shlibpath_overrides_runpath=no
11569 hardcode_into_libs=yes
11570 ;;
11571
11572 irix5* | irix6* | nonstopux*)
11573 case $host_os in
11574 nonstopux*) version_type=nonstopux ;;
11575 *)
11576 if test "$lt_cv_prog_gnu_ld" = yes; then
11577 version_type=linux
11578 else
11579 version_type=irix
11580 fi ;;
11581 esac
11582 need_lib_prefix=no
11583 need_version=no
11584 soname_spec='${libname}${release}${shared_ext}$major'
11585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11586 case $host_os in
11587 irix5* | nonstopux*)
11588 libsuff= shlibsuff=
11589 ;;
11590 *)
11591 case $LD in # libtool.m4 will add one of these switches to LD
11592 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11593 libsuff= shlibsuff= libmagic=32-bit;;
11594 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11595 libsuff=32 shlibsuff=N32 libmagic=N32;;
11596 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11597 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11598 *) libsuff= shlibsuff= libmagic=never-match;;
11599 esac
11600 ;;
11601 esac
11602 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11603 shlibpath_overrides_runpath=no
11604 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11605 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11606 hardcode_into_libs=yes
11607 ;;
11608
11609 # No shared lib support for Linux oldld, aout, or coff.
11610 linux*oldld* | linux*aout* | linux*coff*)
11611 dynamic_linker=no
11612 ;;
11613
11614 # This must be Linux ELF.
11615 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11616 version_type=linux
11617 need_lib_prefix=no
11618 need_version=no
11619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11620 soname_spec='${libname}${release}${shared_ext}$major'
11621 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11622 shlibpath_var=LD_LIBRARY_PATH
11623 shlibpath_overrides_runpath=no
11624
11625 # Some binutils ld are patched to set DT_RUNPATH
11626 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11627 $as_echo_n "(cached) " >&6
11628 else
11629 lt_cv_shlibpath_overrides_runpath=no
11630 save_LDFLAGS=$LDFLAGS
11631 save_libdir=$libdir
11632 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11633 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11634 if test x$gcc_no_link = xyes; then
11635 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11636 fi
11637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11638 /* end confdefs.h. */
11639
11640 int
11641 main ()
11642 {
11643
11644 ;
11645 return 0;
11646 }
11647 _ACEOF
11648 if ac_fn_c_try_link "$LINENO"; then :
11649 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11650 lt_cv_shlibpath_overrides_runpath=yes
11651 fi
11652 fi
11653 rm -f core conftest.err conftest.$ac_objext \
11654 conftest$ac_exeext conftest.$ac_ext
11655 LDFLAGS=$save_LDFLAGS
11656 libdir=$save_libdir
11657
11658 fi
11659
11660 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11661
11662 # This implies no fast_install, which is unacceptable.
11663 # Some rework will be needed to allow for fast_install
11664 # before this can be enabled.
11665 hardcode_into_libs=yes
11666
11667 # Append ld.so.conf contents to the search path
11668 if test -f /etc/ld.so.conf; then
11669 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' ' '`
11670 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11671 fi
11672
11673 # We used to test for /lib/ld.so.1 and disable shared libraries on
11674 # powerpc, because MkLinux only supported shared libraries with the
11675 # GNU dynamic linker. Since this was broken with cross compilers,
11676 # most powerpc-linux boxes support dynamic linking these days and
11677 # people can always --disable-shared, the test was removed, and we
11678 # assume the GNU/Linux dynamic linker is in use.
11679 dynamic_linker='GNU/Linux ld.so'
11680 ;;
11681
11682 netbsd*)
11683 version_type=sunos
11684 need_lib_prefix=no
11685 need_version=no
11686 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11688 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11689 dynamic_linker='NetBSD (a.out) ld.so'
11690 else
11691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11692 soname_spec='${libname}${release}${shared_ext}$major'
11693 dynamic_linker='NetBSD ld.elf_so'
11694 fi
11695 shlibpath_var=LD_LIBRARY_PATH
11696 shlibpath_overrides_runpath=yes
11697 hardcode_into_libs=yes
11698 ;;
11699
11700 newsos6)
11701 version_type=linux
11702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11703 shlibpath_var=LD_LIBRARY_PATH
11704 shlibpath_overrides_runpath=yes
11705 ;;
11706
11707 *nto* | *qnx*)
11708 version_type=qnx
11709 need_lib_prefix=no
11710 need_version=no
11711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11712 soname_spec='${libname}${release}${shared_ext}$major'
11713 shlibpath_var=LD_LIBRARY_PATH
11714 shlibpath_overrides_runpath=no
11715 hardcode_into_libs=yes
11716 dynamic_linker='ldqnx.so'
11717 ;;
11718
11719 openbsd*)
11720 version_type=sunos
11721 sys_lib_dlsearch_path_spec="/usr/lib"
11722 need_lib_prefix=no
11723 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11724 case $host_os in
11725 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11726 *) need_version=no ;;
11727 esac
11728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11729 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11730 shlibpath_var=LD_LIBRARY_PATH
11731 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11732 case $host_os in
11733 openbsd2.[89] | openbsd2.[89].*)
11734 shlibpath_overrides_runpath=no
11735 ;;
11736 *)
11737 shlibpath_overrides_runpath=yes
11738 ;;
11739 esac
11740 else
11741 shlibpath_overrides_runpath=yes
11742 fi
11743 ;;
11744
11745 os2*)
11746 libname_spec='$name'
11747 shrext_cmds=".dll"
11748 need_lib_prefix=no
11749 library_names_spec='$libname${shared_ext} $libname.a'
11750 dynamic_linker='OS/2 ld.exe'
11751 shlibpath_var=LIBPATH
11752 ;;
11753
11754 osf3* | osf4* | osf5*)
11755 version_type=osf
11756 need_lib_prefix=no
11757 need_version=no
11758 soname_spec='${libname}${release}${shared_ext}$major'
11759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11760 shlibpath_var=LD_LIBRARY_PATH
11761 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11762 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11763 ;;
11764
11765 rdos*)
11766 dynamic_linker=no
11767 ;;
11768
11769 solaris*)
11770 version_type=linux
11771 need_lib_prefix=no
11772 need_version=no
11773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11774 soname_spec='${libname}${release}${shared_ext}$major'
11775 shlibpath_var=LD_LIBRARY_PATH
11776 shlibpath_overrides_runpath=yes
11777 hardcode_into_libs=yes
11778 # ldd complains unless libraries are executable
11779 postinstall_cmds='chmod +x $lib'
11780 ;;
11781
11782 sunos4*)
11783 version_type=sunos
11784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11785 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11786 shlibpath_var=LD_LIBRARY_PATH
11787 shlibpath_overrides_runpath=yes
11788 if test "$with_gnu_ld" = yes; then
11789 need_lib_prefix=no
11790 fi
11791 need_version=yes
11792 ;;
11793
11794 sysv4 | sysv4.3*)
11795 version_type=linux
11796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11797 soname_spec='${libname}${release}${shared_ext}$major'
11798 shlibpath_var=LD_LIBRARY_PATH
11799 case $host_vendor in
11800 sni)
11801 shlibpath_overrides_runpath=no
11802 need_lib_prefix=no
11803 runpath_var=LD_RUN_PATH
11804 ;;
11805 siemens)
11806 need_lib_prefix=no
11807 ;;
11808 motorola)
11809 need_lib_prefix=no
11810 need_version=no
11811 shlibpath_overrides_runpath=no
11812 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11813 ;;
11814 esac
11815 ;;
11816
11817 sysv4*MP*)
11818 if test -d /usr/nec ;then
11819 version_type=linux
11820 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11821 soname_spec='$libname${shared_ext}.$major'
11822 shlibpath_var=LD_LIBRARY_PATH
11823 fi
11824 ;;
11825
11826 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11827 version_type=freebsd-elf
11828 need_lib_prefix=no
11829 need_version=no
11830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11831 soname_spec='${libname}${release}${shared_ext}$major'
11832 shlibpath_var=LD_LIBRARY_PATH
11833 shlibpath_overrides_runpath=yes
11834 hardcode_into_libs=yes
11835 if test "$with_gnu_ld" = yes; then
11836 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11837 else
11838 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11839 case $host_os in
11840 sco3.2v5*)
11841 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11842 ;;
11843 esac
11844 fi
11845 sys_lib_dlsearch_path_spec='/usr/lib'
11846 ;;
11847
11848 tpf*)
11849 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11850 version_type=linux
11851 need_lib_prefix=no
11852 need_version=no
11853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11854 shlibpath_var=LD_LIBRARY_PATH
11855 shlibpath_overrides_runpath=no
11856 hardcode_into_libs=yes
11857 ;;
11858
11859 uts4*)
11860 version_type=linux
11861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11862 soname_spec='${libname}${release}${shared_ext}$major'
11863 shlibpath_var=LD_LIBRARY_PATH
11864 ;;
11865
11866 *)
11867 dynamic_linker=no
11868 ;;
11869 esac
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11871 $as_echo "$dynamic_linker" >&6; }
11872 test "$dynamic_linker" = no && can_build_shared=no
11873
11874 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11875 if test "$GCC" = yes; then
11876 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11877 fi
11878
11879 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11880 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11881 fi
11882 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11883 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11884 fi
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11978 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11979 hardcode_action=
11980 if test -n "$hardcode_libdir_flag_spec" ||
11981 test -n "$runpath_var" ||
11982 test "X$hardcode_automatic" = "Xyes" ; then
11983
11984 # We can hardcode non-existent directories.
11985 if test "$hardcode_direct" != no &&
11986 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11987 # have to relink, otherwise we might link with an installed library
11988 # when we should be linking with a yet-to-be-installed one
11989 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11990 test "$hardcode_minus_L" != no; then
11991 # Linking always hardcodes the temporary library directory.
11992 hardcode_action=relink
11993 else
11994 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11995 hardcode_action=immediate
11996 fi
11997 else
11998 # We cannot hardcode anything, or else we can only hardcode existing
11999 # directories.
12000 hardcode_action=unsupported
12001 fi
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12003 $as_echo "$hardcode_action" >&6; }
12004
12005 if test "$hardcode_action" = relink ||
12006 test "$inherit_rpath" = yes; then
12007 # Fast installation is not supported
12008 enable_fast_install=no
12009 elif test "$shlibpath_overrides_runpath" = yes ||
12010 test "$enable_shared" = no; then
12011 # Fast installation is not necessary
12012 enable_fast_install=needless
12013 fi
12014
12015
12016
12017
12018
12019
12020 if test "x$enable_dlopen" != xyes; then
12021 enable_dlopen=unknown
12022 enable_dlopen_self=unknown
12023 enable_dlopen_self_static=unknown
12024 else
12025 lt_cv_dlopen=no
12026 lt_cv_dlopen_libs=
12027
12028 case $host_os in
12029 beos*)
12030 lt_cv_dlopen="load_add_on"
12031 lt_cv_dlopen_libs=
12032 lt_cv_dlopen_self=yes
12033 ;;
12034
12035 mingw* | pw32* | cegcc*)
12036 lt_cv_dlopen="LoadLibrary"
12037 lt_cv_dlopen_libs=
12038 ;;
12039
12040 cygwin*)
12041 lt_cv_dlopen="dlopen"
12042 lt_cv_dlopen_libs=
12043 ;;
12044
12045 darwin*)
12046 # if libdl is installed we need to link against it
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12048 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12049 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12050 $as_echo_n "(cached) " >&6
12051 else
12052 ac_check_lib_save_LIBS=$LIBS
12053 LIBS="-ldl $LIBS"
12054 if test x$gcc_no_link = xyes; then
12055 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12056 fi
12057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12058 /* end confdefs.h. */
12059
12060 /* Override any GCC internal prototype to avoid an error.
12061 Use char because int might match the return type of a GCC
12062 builtin and then its argument prototype would still apply. */
12063 #ifdef __cplusplus
12064 extern "C"
12065 #endif
12066 char dlopen ();
12067 int
12068 main ()
12069 {
12070 return dlopen ();
12071 ;
12072 return 0;
12073 }
12074 _ACEOF
12075 if ac_fn_c_try_link "$LINENO"; then :
12076 ac_cv_lib_dl_dlopen=yes
12077 else
12078 ac_cv_lib_dl_dlopen=no
12079 fi
12080 rm -f core conftest.err conftest.$ac_objext \
12081 conftest$ac_exeext conftest.$ac_ext
12082 LIBS=$ac_check_lib_save_LIBS
12083 fi
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12085 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12086 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12087 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12088 else
12089
12090 lt_cv_dlopen="dyld"
12091 lt_cv_dlopen_libs=
12092 lt_cv_dlopen_self=yes
12093
12094 fi
12095
12096 ;;
12097
12098 *)
12099 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12100 if test "x$ac_cv_func_shl_load" = x""yes; then :
12101 lt_cv_dlopen="shl_load"
12102 else
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12104 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12105 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12106 $as_echo_n "(cached) " >&6
12107 else
12108 ac_check_lib_save_LIBS=$LIBS
12109 LIBS="-ldld $LIBS"
12110 if test x$gcc_no_link = xyes; then
12111 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12112 fi
12113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12114 /* end confdefs.h. */
12115
12116 /* Override any GCC internal prototype to avoid an error.
12117 Use char because int might match the return type of a GCC
12118 builtin and then its argument prototype would still apply. */
12119 #ifdef __cplusplus
12120 extern "C"
12121 #endif
12122 char shl_load ();
12123 int
12124 main ()
12125 {
12126 return shl_load ();
12127 ;
12128 return 0;
12129 }
12130 _ACEOF
12131 if ac_fn_c_try_link "$LINENO"; then :
12132 ac_cv_lib_dld_shl_load=yes
12133 else
12134 ac_cv_lib_dld_shl_load=no
12135 fi
12136 rm -f core conftest.err conftest.$ac_objext \
12137 conftest$ac_exeext conftest.$ac_ext
12138 LIBS=$ac_check_lib_save_LIBS
12139 fi
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12141 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12142 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12143 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12144 else
12145 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12146 if test "x$ac_cv_func_dlopen" = x""yes; then :
12147 lt_cv_dlopen="dlopen"
12148 else
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12150 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12151 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12152 $as_echo_n "(cached) " >&6
12153 else
12154 ac_check_lib_save_LIBS=$LIBS
12155 LIBS="-ldl $LIBS"
12156 if test x$gcc_no_link = xyes; then
12157 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12158 fi
12159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12160 /* end confdefs.h. */
12161
12162 /* Override any GCC internal prototype to avoid an error.
12163 Use char because int might match the return type of a GCC
12164 builtin and then its argument prototype would still apply. */
12165 #ifdef __cplusplus
12166 extern "C"
12167 #endif
12168 char dlopen ();
12169 int
12170 main ()
12171 {
12172 return dlopen ();
12173 ;
12174 return 0;
12175 }
12176 _ACEOF
12177 if ac_fn_c_try_link "$LINENO"; then :
12178 ac_cv_lib_dl_dlopen=yes
12179 else
12180 ac_cv_lib_dl_dlopen=no
12181 fi
12182 rm -f core conftest.err conftest.$ac_objext \
12183 conftest$ac_exeext conftest.$ac_ext
12184 LIBS=$ac_check_lib_save_LIBS
12185 fi
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12187 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12188 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12189 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12190 else
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12192 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12193 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12194 $as_echo_n "(cached) " >&6
12195 else
12196 ac_check_lib_save_LIBS=$LIBS
12197 LIBS="-lsvld $LIBS"
12198 if test x$gcc_no_link = xyes; then
12199 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12200 fi
12201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12202 /* end confdefs.h. */
12203
12204 /* Override any GCC internal prototype to avoid an error.
12205 Use char because int might match the return type of a GCC
12206 builtin and then its argument prototype would still apply. */
12207 #ifdef __cplusplus
12208 extern "C"
12209 #endif
12210 char dlopen ();
12211 int
12212 main ()
12213 {
12214 return dlopen ();
12215 ;
12216 return 0;
12217 }
12218 _ACEOF
12219 if ac_fn_c_try_link "$LINENO"; then :
12220 ac_cv_lib_svld_dlopen=yes
12221 else
12222 ac_cv_lib_svld_dlopen=no
12223 fi
12224 rm -f core conftest.err conftest.$ac_objext \
12225 conftest$ac_exeext conftest.$ac_ext
12226 LIBS=$ac_check_lib_save_LIBS
12227 fi
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12229 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12230 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12231 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12232 else
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12234 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12235 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12236 $as_echo_n "(cached) " >&6
12237 else
12238 ac_check_lib_save_LIBS=$LIBS
12239 LIBS="-ldld $LIBS"
12240 if test x$gcc_no_link = xyes; then
12241 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12242 fi
12243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12244 /* end confdefs.h. */
12245
12246 /* Override any GCC internal prototype to avoid an error.
12247 Use char because int might match the return type of a GCC
12248 builtin and then its argument prototype would still apply. */
12249 #ifdef __cplusplus
12250 extern "C"
12251 #endif
12252 char dld_link ();
12253 int
12254 main ()
12255 {
12256 return dld_link ();
12257 ;
12258 return 0;
12259 }
12260 _ACEOF
12261 if ac_fn_c_try_link "$LINENO"; then :
12262 ac_cv_lib_dld_dld_link=yes
12263 else
12264 ac_cv_lib_dld_dld_link=no
12265 fi
12266 rm -f core conftest.err conftest.$ac_objext \
12267 conftest$ac_exeext conftest.$ac_ext
12268 LIBS=$ac_check_lib_save_LIBS
12269 fi
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12271 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12272 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12273 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12274 fi
12275
12276
12277 fi
12278
12279
12280 fi
12281
12282
12283 fi
12284
12285
12286 fi
12287
12288
12289 fi
12290
12291 ;;
12292 esac
12293
12294 if test "x$lt_cv_dlopen" != xno; then
12295 enable_dlopen=yes
12296 else
12297 enable_dlopen=no
12298 fi
12299
12300 case $lt_cv_dlopen in
12301 dlopen)
12302 save_CPPFLAGS="$CPPFLAGS"
12303 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12304
12305 save_LDFLAGS="$LDFLAGS"
12306 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12307
12308 save_LIBS="$LIBS"
12309 LIBS="$lt_cv_dlopen_libs $LIBS"
12310
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12312 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12313 if test "${lt_cv_dlopen_self+set}" = set; then :
12314 $as_echo_n "(cached) " >&6
12315 else
12316 if test "$cross_compiling" = yes; then :
12317 lt_cv_dlopen_self=cross
12318 else
12319 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12320 lt_status=$lt_dlunknown
12321 cat > conftest.$ac_ext <<_LT_EOF
12322 #line 12322 "configure"
12323 #include "confdefs.h"
12324
12325 #if HAVE_DLFCN_H
12326 #include <dlfcn.h>
12327 #endif
12328
12329 #include <stdio.h>
12330
12331 #ifdef RTLD_GLOBAL
12332 # define LT_DLGLOBAL RTLD_GLOBAL
12333 #else
12334 # ifdef DL_GLOBAL
12335 # define LT_DLGLOBAL DL_GLOBAL
12336 # else
12337 # define LT_DLGLOBAL 0
12338 # endif
12339 #endif
12340
12341 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12342 find out it does not work in some platform. */
12343 #ifndef LT_DLLAZY_OR_NOW
12344 # ifdef RTLD_LAZY
12345 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12346 # else
12347 # ifdef DL_LAZY
12348 # define LT_DLLAZY_OR_NOW DL_LAZY
12349 # else
12350 # ifdef RTLD_NOW
12351 # define LT_DLLAZY_OR_NOW RTLD_NOW
12352 # else
12353 # ifdef DL_NOW
12354 # define LT_DLLAZY_OR_NOW DL_NOW
12355 # else
12356 # define LT_DLLAZY_OR_NOW 0
12357 # endif
12358 # endif
12359 # endif
12360 # endif
12361 #endif
12362
12363 /* When -fvisbility=hidden is used, assume the code has been annotated
12364 correspondingly for the symbols needed. */
12365 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12366 void fnord () __attribute__((visibility("default")));
12367 #endif
12368
12369 void fnord () { int i=42; }
12370 int main ()
12371 {
12372 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12373 int status = $lt_dlunknown;
12374
12375 if (self)
12376 {
12377 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12378 else
12379 {
12380 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12381 else puts (dlerror ());
12382 }
12383 /* dlclose (self); */
12384 }
12385 else
12386 puts (dlerror ());
12387
12388 return status;
12389 }
12390 _LT_EOF
12391 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12392 (eval $ac_link) 2>&5
12393 ac_status=$?
12394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12395 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12396 (./conftest; exit; ) >&5 2>/dev/null
12397 lt_status=$?
12398 case x$lt_status in
12399 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12400 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12401 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12402 esac
12403 else :
12404 # compilation failed
12405 lt_cv_dlopen_self=no
12406 fi
12407 fi
12408 rm -fr conftest*
12409
12410
12411 fi
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12413 $as_echo "$lt_cv_dlopen_self" >&6; }
12414
12415 if test "x$lt_cv_dlopen_self" = xyes; then
12416 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12418 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12419 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12420 $as_echo_n "(cached) " >&6
12421 else
12422 if test "$cross_compiling" = yes; then :
12423 lt_cv_dlopen_self_static=cross
12424 else
12425 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12426 lt_status=$lt_dlunknown
12427 cat > conftest.$ac_ext <<_LT_EOF
12428 #line 12428 "configure"
12429 #include "confdefs.h"
12430
12431 #if HAVE_DLFCN_H
12432 #include <dlfcn.h>
12433 #endif
12434
12435 #include <stdio.h>
12436
12437 #ifdef RTLD_GLOBAL
12438 # define LT_DLGLOBAL RTLD_GLOBAL
12439 #else
12440 # ifdef DL_GLOBAL
12441 # define LT_DLGLOBAL DL_GLOBAL
12442 # else
12443 # define LT_DLGLOBAL 0
12444 # endif
12445 #endif
12446
12447 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12448 find out it does not work in some platform. */
12449 #ifndef LT_DLLAZY_OR_NOW
12450 # ifdef RTLD_LAZY
12451 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12452 # else
12453 # ifdef DL_LAZY
12454 # define LT_DLLAZY_OR_NOW DL_LAZY
12455 # else
12456 # ifdef RTLD_NOW
12457 # define LT_DLLAZY_OR_NOW RTLD_NOW
12458 # else
12459 # ifdef DL_NOW
12460 # define LT_DLLAZY_OR_NOW DL_NOW
12461 # else
12462 # define LT_DLLAZY_OR_NOW 0
12463 # endif
12464 # endif
12465 # endif
12466 # endif
12467 #endif
12468
12469 /* When -fvisbility=hidden is used, assume the code has been annotated
12470 correspondingly for the symbols needed. */
12471 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12472 void fnord () __attribute__((visibility("default")));
12473 #endif
12474
12475 void fnord () { int i=42; }
12476 int main ()
12477 {
12478 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12479 int status = $lt_dlunknown;
12480
12481 if (self)
12482 {
12483 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12484 else
12485 {
12486 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12487 else puts (dlerror ());
12488 }
12489 /* dlclose (self); */
12490 }
12491 else
12492 puts (dlerror ());
12493
12494 return status;
12495 }
12496 _LT_EOF
12497 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12498 (eval $ac_link) 2>&5
12499 ac_status=$?
12500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12501 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12502 (./conftest; exit; ) >&5 2>/dev/null
12503 lt_status=$?
12504 case x$lt_status in
12505 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12506 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12507 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12508 esac
12509 else :
12510 # compilation failed
12511 lt_cv_dlopen_self_static=no
12512 fi
12513 fi
12514 rm -fr conftest*
12515
12516
12517 fi
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12519 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12520 fi
12521
12522 CPPFLAGS="$save_CPPFLAGS"
12523 LDFLAGS="$save_LDFLAGS"
12524 LIBS="$save_LIBS"
12525 ;;
12526 esac
12527
12528 case $lt_cv_dlopen_self in
12529 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12530 *) enable_dlopen_self=unknown ;;
12531 esac
12532
12533 case $lt_cv_dlopen_self_static in
12534 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12535 *) enable_dlopen_self_static=unknown ;;
12536 esac
12537 fi
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555 striplib=
12556 old_striplib=
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12558 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12559 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12560 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12561 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12563 $as_echo "yes" >&6; }
12564 else
12565 # FIXME - insert some real tests, host_os isn't really good enough
12566 case $host_os in
12567 darwin*)
12568 if test -n "$STRIP" ; then
12569 striplib="$STRIP -x"
12570 old_striplib="$STRIP -S"
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12572 $as_echo "yes" >&6; }
12573 else
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12575 $as_echo "no" >&6; }
12576 fi
12577 ;;
12578 *)
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12580 $as_echo "no" >&6; }
12581 ;;
12582 esac
12583 fi
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596 # Report which library types will actually be built
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12598 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12600 $as_echo "$can_build_shared" >&6; }
12601
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12603 $as_echo_n "checking whether to build shared libraries... " >&6; }
12604 test "$can_build_shared" = "no" && enable_shared=no
12605
12606 # On AIX, shared libraries and static libraries use the same namespace, and
12607 # are all built from PIC.
12608 case $host_os in
12609 aix3*)
12610 test "$enable_shared" = yes && enable_static=no
12611 if test -n "$RANLIB"; then
12612 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12613 postinstall_cmds='$RANLIB $lib'
12614 fi
12615 ;;
12616
12617 aix[4-9]*)
12618 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12619 test "$enable_shared" = yes && enable_static=no
12620 fi
12621 ;;
12622 esac
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12624 $as_echo "$enable_shared" >&6; }
12625
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12627 $as_echo_n "checking whether to build static libraries... " >&6; }
12628 # Make sure either enable_shared or enable_static is yes.
12629 test "$enable_shared" = yes || enable_static=yes
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12631 $as_echo "$enable_static" >&6; }
12632
12633
12634
12635
12636 fi
12637 ac_ext=c
12638 ac_cpp='$CPP $CPPFLAGS'
12639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12642
12643 CC="$lt_save_CC"
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657 ac_config_commands="$ac_config_commands libtool"
12658
12659
12660
12661
12662 # Only expand once:
12663
12664
12665
12666
12667
12668 case $host in
12669 *-cygwin* | *-mingw*)
12670 # 'host' will be top-level target in the case of a target lib,
12671 # we must compare to with_cross_host to decide if this is a native
12672 # or cross-compiler and select where to install dlls appropriately.
12673 if test -n "$with_cross_host" &&
12674 test x"$with_cross_host" != x"no"; then
12675 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
12676 else
12677 lt_host_flags='-no-undefined -bindir "$(bindir)"';
12678 fi
12679 ;;
12680 *)
12681 lt_host_flags=
12682 ;;
12683 esac
12684
12685
12686
12687
12688
12689 #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
12690
12691 # We need gfortran to compile parts of the library
12692 #AC_PROG_FC(gfortran)
12693 FC="$GFORTRAN"
12694 ac_ext=${ac_fc_srcext-f}
12695 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12696 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
12697 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12698 if test -n "$ac_tool_prefix"; then
12699 for ac_prog in gfortran
12700 do
12701 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12702 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12704 $as_echo_n "checking for $ac_word... " >&6; }
12705 if test "${ac_cv_prog_FC+set}" = set; then :
12706 $as_echo_n "(cached) " >&6
12707 else
12708 if test -n "$FC"; then
12709 ac_cv_prog_FC="$FC" # Let the user override the test.
12710 else
12711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12712 for as_dir in $PATH
12713 do
12714 IFS=$as_save_IFS
12715 test -z "$as_dir" && as_dir=.
12716 for ac_exec_ext in '' $ac_executable_extensions; do
12717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12718 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
12719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12720 break 2
12721 fi
12722 done
12723 done
12724 IFS=$as_save_IFS
12725
12726 fi
12727 fi
12728 FC=$ac_cv_prog_FC
12729 if test -n "$FC"; then
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
12731 $as_echo "$FC" >&6; }
12732 else
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12734 $as_echo "no" >&6; }
12735 fi
12736
12737
12738 test -n "$FC" && break
12739 done
12740 fi
12741 if test -z "$FC"; then
12742 ac_ct_FC=$FC
12743 for ac_prog in gfortran
12744 do
12745 # Extract the first word of "$ac_prog", so it can be a program name with args.
12746 set dummy $ac_prog; ac_word=$2
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12748 $as_echo_n "checking for $ac_word... " >&6; }
12749 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
12750 $as_echo_n "(cached) " >&6
12751 else
12752 if test -n "$ac_ct_FC"; then
12753 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
12754 else
12755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12756 for as_dir in $PATH
12757 do
12758 IFS=$as_save_IFS
12759 test -z "$as_dir" && as_dir=.
12760 for ac_exec_ext in '' $ac_executable_extensions; do
12761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12762 ac_cv_prog_ac_ct_FC="$ac_prog"
12763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12764 break 2
12765 fi
12766 done
12767 done
12768 IFS=$as_save_IFS
12769
12770 fi
12771 fi
12772 ac_ct_FC=$ac_cv_prog_ac_ct_FC
12773 if test -n "$ac_ct_FC"; then
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
12775 $as_echo "$ac_ct_FC" >&6; }
12776 else
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12778 $as_echo "no" >&6; }
12779 fi
12780
12781
12782 test -n "$ac_ct_FC" && break
12783 done
12784
12785 if test "x$ac_ct_FC" = x; then
12786 FC=""
12787 else
12788 case $cross_compiling:$ac_tool_warned in
12789 yes:)
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12791 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12792 ac_tool_warned=yes ;;
12793 esac
12794 FC=$ac_ct_FC
12795 fi
12796 fi
12797
12798
12799 # Provide some information about the compiler.
12800 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
12801 set X $ac_compile
12802 ac_compiler=$2
12803 for ac_option in --version -v -V -qversion; do
12804 { { ac_try="$ac_compiler $ac_option >&5"
12805 case "(($ac_try" in
12806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12807 *) ac_try_echo=$ac_try;;
12808 esac
12809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12810 $as_echo "$ac_try_echo"; } >&5
12811 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12812 ac_status=$?
12813 if test -s conftest.err; then
12814 sed '10a\
12815 ... rest of stderr output deleted ...
12816 10q' conftest.err >conftest.er1
12817 cat conftest.er1 >&5
12818 rm -f conftest.er1 conftest.err
12819 fi
12820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12821 test $ac_status = 0; }
12822 done
12823 rm -f a.out
12824
12825 # If we don't use `.F' as extension, the preprocessor is not run on the
12826 # input file. (Note that this only needs to work for GNU compilers.)
12827 ac_save_ext=$ac_ext
12828 ac_ext=F
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
12830 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
12831 if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
12832 $as_echo_n "(cached) " >&6
12833 else
12834 cat > conftest.$ac_ext <<_ACEOF
12835 program main
12836 #ifndef __GNUC__
12837 choke me
12838 #endif
12839
12840 end
12841 _ACEOF
12842 if ac_fn_fc_try_compile "$LINENO"; then :
12843 ac_compiler_gnu=yes
12844 else
12845 ac_compiler_gnu=no
12846 fi
12847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12848 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
12849
12850 fi
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
12852 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
12853 ac_ext=$ac_save_ext
12854 ac_test_FCFLAGS=${FCFLAGS+set}
12855 ac_save_FCFLAGS=$FCFLAGS
12856 FCFLAGS=
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
12858 $as_echo_n "checking whether $FC accepts -g... " >&6; }
12859 if test "${ac_cv_prog_fc_g+set}" = set; then :
12860 $as_echo_n "(cached) " >&6
12861 else
12862 FCFLAGS=-g
12863 cat > conftest.$ac_ext <<_ACEOF
12864 program main
12865
12866 end
12867 _ACEOF
12868 if ac_fn_fc_try_compile "$LINENO"; then :
12869 ac_cv_prog_fc_g=yes
12870 else
12871 ac_cv_prog_fc_g=no
12872 fi
12873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12874
12875 fi
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
12877 $as_echo "$ac_cv_prog_fc_g" >&6; }
12878 if test "$ac_test_FCFLAGS" = set; then
12879 FCFLAGS=$ac_save_FCFLAGS
12880 elif test $ac_cv_prog_fc_g = yes; then
12881 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12882 FCFLAGS="-g -O2"
12883 else
12884 FCFLAGS="-g"
12885 fi
12886 else
12887 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12888 FCFLAGS="-O2"
12889 else
12890 FCFLAGS=
12891 fi
12892 fi
12893
12894 ac_ext=c
12895 ac_cpp='$CPP $CPPFLAGS'
12896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12899
12900 ac_ext=${ac_fc_srcext-f}
12901 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12902 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
12903 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12904
12905
12906 if test -z "$FC" || test "X$FC" = "Xno"; then
12907 _lt_disable_FC=yes
12908 fi
12909
12910 archive_cmds_need_lc_FC=no
12911 allow_undefined_flag_FC=
12912 always_export_symbols_FC=no
12913 archive_expsym_cmds_FC=
12914 export_dynamic_flag_spec_FC=
12915 hardcode_direct_FC=no
12916 hardcode_direct_absolute_FC=no
12917 hardcode_libdir_flag_spec_FC=
12918 hardcode_libdir_flag_spec_ld_FC=
12919 hardcode_libdir_separator_FC=
12920 hardcode_minus_L_FC=no
12921 hardcode_automatic_FC=no
12922 inherit_rpath_FC=no
12923 module_cmds_FC=
12924 module_expsym_cmds_FC=
12925 link_all_deplibs_FC=unknown
12926 old_archive_cmds_FC=$old_archive_cmds
12927 reload_flag_FC=$reload_flag
12928 reload_cmds_FC=$reload_cmds
12929 no_undefined_flag_FC=
12930 whole_archive_flag_spec_FC=
12931 enable_shared_with_static_runtimes_FC=no
12932
12933 # Source file extension for fc test sources.
12934 ac_ext=${ac_fc_srcext-f}
12935
12936 # Object file extension for compiled fc test sources.
12937 objext=o
12938 objext_FC=$objext
12939
12940 # No sense in running all these tests if we already determined that
12941 # the FC compiler isn't working. Some variables (like enable_shared)
12942 # are currently assumed to apply to all compilers on this platform,
12943 # and will be corrupted by setting them based on a non-working compiler.
12944 if test "$_lt_disable_FC" != yes; then
12945 # Code to be used in simple compile tests
12946 lt_simple_compile_test_code="\
12947 subroutine t
12948 return
12949 end
12950 "
12951
12952 # Code to be used in simple link tests
12953 lt_simple_link_test_code="\
12954 program t
12955 end
12956 "
12957
12958 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12959
12960
12961
12962
12963
12964
12965 # If no C compiler was specified, use CC.
12966 LTCC=${LTCC-"$CC"}
12967
12968 # If no C compiler flags were specified, use CFLAGS.
12969 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12970
12971 # Allow CC to be a program name with arguments.
12972 compiler=$CC
12973
12974
12975 # save warnings/boilerplate of simple test code
12976 ac_outfile=conftest.$ac_objext
12977 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12978 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12979 _lt_compiler_boilerplate=`cat conftest.err`
12980 $RM conftest*
12981
12982 ac_outfile=conftest.$ac_objext
12983 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12984 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12985 _lt_linker_boilerplate=`cat conftest.err`
12986 $RM -r conftest*
12987
12988
12989 # Allow CC to be a program name with arguments.
12990 lt_save_CC="$CC"
12991 lt_save_GCC=$GCC
12992 CC=${FC-"f95"}
12993 compiler=$CC
12994 GCC=$ac_cv_fc_compiler_gnu
12995
12996 compiler_FC=$CC
12997 for cc_temp in $compiler""; do
12998 case $cc_temp in
12999 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13000 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13001 \-*) ;;
13002 *) break;;
13003 esac
13004 done
13005 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13006
13007
13008 if test -n "$compiler"; then
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13010 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13012 $as_echo "$can_build_shared" >&6; }
13013
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13015 $as_echo_n "checking whether to build shared libraries... " >&6; }
13016 test "$can_build_shared" = "no" && enable_shared=no
13017
13018 # On AIX, shared libraries and static libraries use the same namespace, and
13019 # are all built from PIC.
13020 case $host_os in
13021 aix3*)
13022 test "$enable_shared" = yes && enable_static=no
13023 if test -n "$RANLIB"; then
13024 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13025 postinstall_cmds='$RANLIB $lib'
13026 fi
13027 ;;
13028 aix[4-9]*)
13029 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13030 test "$enable_shared" = yes && enable_static=no
13031 fi
13032 ;;
13033 esac
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13035 $as_echo "$enable_shared" >&6; }
13036
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13038 $as_echo_n "checking whether to build static libraries... " >&6; }
13039 # Make sure either enable_shared or enable_static is yes.
13040 test "$enable_shared" = yes || enable_static=yes
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13042 $as_echo "$enable_static" >&6; }
13043
13044 GCC_FC="$ac_cv_fc_compiler_gnu"
13045 LD_FC="$LD"
13046
13047 ## CAVEAT EMPTOR:
13048 ## There is no encapsulation within the following macros, do not change
13049 ## the running order or otherwise move them around unless you know exactly
13050 ## what you are doing...
13051 # Dependencies to place before and after the object being linked:
13052 predep_objects_FC=
13053 postdep_objects_FC=
13054 predeps_FC=
13055 postdeps_FC=
13056 compiler_lib_search_path_FC=
13057
13058 cat > conftest.$ac_ext <<_LT_EOF
13059 subroutine foo
13060 implicit none
13061 integer a
13062 a=0
13063 return
13064 end
13065 _LT_EOF
13066
13067 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13068 (eval $ac_compile) 2>&5
13069 ac_status=$?
13070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13071 test $ac_status = 0; }; then
13072 # Parse the compiler output and extract the necessary
13073 # objects, libraries and library flags.
13074
13075 # Sentinel used to keep track of whether or not we are before
13076 # the conftest object file.
13077 pre_test_object_deps_done=no
13078
13079 for p in `eval "$output_verbose_link_cmd"`; do
13080 case $p in
13081
13082 -L* | -R* | -l*)
13083 # Some compilers place space between "-{L,R}" and the path.
13084 # Remove the space.
13085 if test $p = "-L" ||
13086 test $p = "-R"; then
13087 prev=$p
13088 continue
13089 else
13090 prev=
13091 fi
13092
13093 if test "$pre_test_object_deps_done" = no; then
13094 case $p in
13095 -L* | -R*)
13096 # Internal compiler library paths should come after those
13097 # provided the user. The postdeps already come after the
13098 # user supplied libs so there is no need to process them.
13099 if test -z "$compiler_lib_search_path_FC"; then
13100 compiler_lib_search_path_FC="${prev}${p}"
13101 else
13102 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
13103 fi
13104 ;;
13105 # The "-l" case would never come before the object being
13106 # linked, so don't bother handling this case.
13107 esac
13108 else
13109 if test -z "$postdeps_FC"; then
13110 postdeps_FC="${prev}${p}"
13111 else
13112 postdeps_FC="${postdeps_FC} ${prev}${p}"
13113 fi
13114 fi
13115 ;;
13116
13117 *.$objext)
13118 # This assumes that the test object file only shows up
13119 # once in the compiler output.
13120 if test "$p" = "conftest.$objext"; then
13121 pre_test_object_deps_done=yes
13122 continue
13123 fi
13124
13125 if test "$pre_test_object_deps_done" = no; then
13126 if test -z "$predep_objects_FC"; then
13127 predep_objects_FC="$p"
13128 else
13129 predep_objects_FC="$predep_objects_FC $p"
13130 fi
13131 else
13132 if test -z "$postdep_objects_FC"; then
13133 postdep_objects_FC="$p"
13134 else
13135 postdep_objects_FC="$postdep_objects_FC $p"
13136 fi
13137 fi
13138 ;;
13139
13140 *) ;; # Ignore the rest.
13141
13142 esac
13143 done
13144
13145 # Clean up.
13146 rm -f a.out a.exe
13147 else
13148 echo "libtool.m4: error: problem compiling FC test program"
13149 fi
13150
13151 $RM -f confest.$objext
13152
13153 # PORTME: override above test on systems where it is broken
13154
13155
13156 case " $postdeps_FC " in
13157 *" -lc "*) archive_cmds_need_lc_FC=no ;;
13158 esac
13159 compiler_lib_search_dirs_FC=
13160 if test -n "${compiler_lib_search_path_FC}"; then
13161 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13162 fi
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194 lt_prog_compiler_wl_FC=
13195 lt_prog_compiler_pic_FC=
13196 lt_prog_compiler_static_FC=
13197
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13199 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13200
13201 if test "$GCC" = yes; then
13202 lt_prog_compiler_wl_FC='-Wl,'
13203 lt_prog_compiler_static_FC='-static'
13204
13205 case $host_os in
13206 aix*)
13207 # All AIX code is PIC.
13208 if test "$host_cpu" = ia64; then
13209 # AIX 5 now supports IA64 processor
13210 lt_prog_compiler_static_FC='-Bstatic'
13211 fi
13212 ;;
13213
13214 amigaos*)
13215 case $host_cpu in
13216 powerpc)
13217 # see comment about AmigaOS4 .so support
13218 lt_prog_compiler_pic_FC='-fPIC'
13219 ;;
13220 m68k)
13221 # FIXME: we need at least 68020 code to build shared libraries, but
13222 # adding the `-m68020' flag to GCC prevents building anything better,
13223 # like `-m68040'.
13224 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
13225 ;;
13226 esac
13227 ;;
13228
13229 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13230 # PIC is the default for these OSes.
13231 ;;
13232
13233 mingw* | cygwin* | pw32* | os2* | cegcc*)
13234 # This hack is so that the source file can tell whether it is being
13235 # built for inclusion in a dll (and should export symbols for example).
13236 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13237 # (--disable-auto-import) libraries
13238 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13239 ;;
13240
13241 darwin* | rhapsody*)
13242 # PIC is the default on this platform
13243 # Common symbols not allowed in MH_DYLIB files
13244 lt_prog_compiler_pic_FC='-fno-common'
13245 ;;
13246
13247 haiku*)
13248 # PIC is the default for Haiku.
13249 # The "-static" flag exists, but is broken.
13250 lt_prog_compiler_static_FC=
13251 ;;
13252
13253 hpux*)
13254 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13255 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13256 # sets the default TLS model and affects inlining.
13257 case $host_cpu in
13258 hppa*64*)
13259 # +Z the default
13260 ;;
13261 *)
13262 lt_prog_compiler_pic_FC='-fPIC'
13263 ;;
13264 esac
13265 ;;
13266
13267 interix[3-9]*)
13268 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13269 # Instead, we relocate shared libraries at runtime.
13270 ;;
13271
13272 msdosdjgpp*)
13273 # Just because we use GCC doesn't mean we suddenly get shared libraries
13274 # on systems that don't support them.
13275 lt_prog_compiler_can_build_shared_FC=no
13276 enable_shared=no
13277 ;;
13278
13279 *nto* | *qnx*)
13280 # QNX uses GNU C++, but need to define -shared option too, otherwise
13281 # it will coredump.
13282 lt_prog_compiler_pic_FC='-fPIC -shared'
13283 ;;
13284
13285 sysv4*MP*)
13286 if test -d /usr/nec; then
13287 lt_prog_compiler_pic_FC=-Kconform_pic
13288 fi
13289 ;;
13290
13291 *)
13292 lt_prog_compiler_pic_FC='-fPIC'
13293 ;;
13294 esac
13295
13296 case $cc_basename in
13297 nvcc*) # Cuda Compiler Driver 2.2
13298 lt_prog_compiler_wl_FC='-Xlinker '
13299 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
13300 ;;
13301 esac
13302 else
13303 # PORTME Check for flag to pass linker flags through the system compiler.
13304 case $host_os in
13305 aix*)
13306 lt_prog_compiler_wl_FC='-Wl,'
13307 if test "$host_cpu" = ia64; then
13308 # AIX 5 now supports IA64 processor
13309 lt_prog_compiler_static_FC='-Bstatic'
13310 else
13311 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
13312 fi
13313 ;;
13314
13315 mingw* | cygwin* | pw32* | os2* | cegcc*)
13316 # This hack is so that the source file can tell whether it is being
13317 # built for inclusion in a dll (and should export symbols for example).
13318 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13319 ;;
13320
13321 hpux9* | hpux10* | hpux11*)
13322 lt_prog_compiler_wl_FC='-Wl,'
13323 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13324 # not for PA HP-UX.
13325 case $host_cpu in
13326 hppa*64*|ia64*)
13327 # +Z the default
13328 ;;
13329 *)
13330 lt_prog_compiler_pic_FC='+Z'
13331 ;;
13332 esac
13333 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13334 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
13335 ;;
13336
13337 irix5* | irix6* | nonstopux*)
13338 lt_prog_compiler_wl_FC='-Wl,'
13339 # PIC (with -KPIC) is the default.
13340 lt_prog_compiler_static_FC='-non_shared'
13341 ;;
13342
13343 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13344 case $cc_basename in
13345 # old Intel for x86_64 which still supported -KPIC.
13346 ecc*)
13347 lt_prog_compiler_wl_FC='-Wl,'
13348 lt_prog_compiler_pic_FC='-KPIC'
13349 lt_prog_compiler_static_FC='-static'
13350 ;;
13351 # icc used to be incompatible with GCC.
13352 # ICC 10 doesn't accept -KPIC any more.
13353 icc* | ifort*)
13354 lt_prog_compiler_wl_FC='-Wl,'
13355 lt_prog_compiler_pic_FC='-fPIC'
13356 lt_prog_compiler_static_FC='-static'
13357 ;;
13358 # Lahey Fortran 8.1.
13359 lf95*)
13360 lt_prog_compiler_wl_FC='-Wl,'
13361 lt_prog_compiler_pic_FC='--shared'
13362 lt_prog_compiler_static_FC='--static'
13363 ;;
13364 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13365 # Portland Group compilers (*not* the Pentium gcc compiler,
13366 # which looks to be a dead project)
13367 lt_prog_compiler_wl_FC='-Wl,'
13368 lt_prog_compiler_pic_FC='-fpic'
13369 lt_prog_compiler_static_FC='-Bstatic'
13370 ;;
13371 ccc*)
13372 lt_prog_compiler_wl_FC='-Wl,'
13373 # All Alpha code is PIC.
13374 lt_prog_compiler_static_FC='-non_shared'
13375 ;;
13376 xl* | bgxl* | bgf* | mpixl*)
13377 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13378 lt_prog_compiler_wl_FC='-Wl,'
13379 lt_prog_compiler_pic_FC='-qpic'
13380 lt_prog_compiler_static_FC='-qstaticlink'
13381 ;;
13382 *)
13383 case `$CC -V 2>&1 | sed 5q` in
13384 *Sun\ F* | *Sun*Fortran*)
13385 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13386 lt_prog_compiler_pic_FC='-KPIC'
13387 lt_prog_compiler_static_FC='-Bstatic'
13388 lt_prog_compiler_wl_FC=''
13389 ;;
13390 *Sun\ C*)
13391 # Sun C 5.9
13392 lt_prog_compiler_pic_FC='-KPIC'
13393 lt_prog_compiler_static_FC='-Bstatic'
13394 lt_prog_compiler_wl_FC='-Wl,'
13395 ;;
13396 esac
13397 ;;
13398 esac
13399 ;;
13400
13401 newsos6)
13402 lt_prog_compiler_pic_FC='-KPIC'
13403 lt_prog_compiler_static_FC='-Bstatic'
13404 ;;
13405
13406 *nto* | *qnx*)
13407 # QNX uses GNU C++, but need to define -shared option too, otherwise
13408 # it will coredump.
13409 lt_prog_compiler_pic_FC='-fPIC -shared'
13410 ;;
13411
13412 osf3* | osf4* | osf5*)
13413 lt_prog_compiler_wl_FC='-Wl,'
13414 # All OSF/1 code is PIC.
13415 lt_prog_compiler_static_FC='-non_shared'
13416 ;;
13417
13418 rdos*)
13419 lt_prog_compiler_static_FC='-non_shared'
13420 ;;
13421
13422 solaris*)
13423 lt_prog_compiler_pic_FC='-KPIC'
13424 lt_prog_compiler_static_FC='-Bstatic'
13425 case $cc_basename in
13426 f77* | f90* | f95*)
13427 lt_prog_compiler_wl_FC='-Qoption ld ';;
13428 *)
13429 lt_prog_compiler_wl_FC='-Wl,';;
13430 esac
13431 ;;
13432
13433 sunos4*)
13434 lt_prog_compiler_wl_FC='-Qoption ld '
13435 lt_prog_compiler_pic_FC='-PIC'
13436 lt_prog_compiler_static_FC='-Bstatic'
13437 ;;
13438
13439 sysv4 | sysv4.2uw2* | sysv4.3*)
13440 lt_prog_compiler_wl_FC='-Wl,'
13441 lt_prog_compiler_pic_FC='-KPIC'
13442 lt_prog_compiler_static_FC='-Bstatic'
13443 ;;
13444
13445 sysv4*MP*)
13446 if test -d /usr/nec ;then
13447 lt_prog_compiler_pic_FC='-Kconform_pic'
13448 lt_prog_compiler_static_FC='-Bstatic'
13449 fi
13450 ;;
13451
13452 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13453 lt_prog_compiler_wl_FC='-Wl,'
13454 lt_prog_compiler_pic_FC='-KPIC'
13455 lt_prog_compiler_static_FC='-Bstatic'
13456 ;;
13457
13458 unicos*)
13459 lt_prog_compiler_wl_FC='-Wl,'
13460 lt_prog_compiler_can_build_shared_FC=no
13461 ;;
13462
13463 uts4*)
13464 lt_prog_compiler_pic_FC='-pic'
13465 lt_prog_compiler_static_FC='-Bstatic'
13466 ;;
13467
13468 *)
13469 lt_prog_compiler_can_build_shared_FC=no
13470 ;;
13471 esac
13472 fi
13473
13474 case $host_os in
13475 # For platforms which do not support PIC, -DPIC is meaningless:
13476 *djgpp*)
13477 lt_prog_compiler_pic_FC=
13478 ;;
13479 *)
13480 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
13481 ;;
13482 esac
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
13484 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
13485
13486
13487
13488 #
13489 # Check to make sure the PIC flag actually works.
13490 #
13491 if test -n "$lt_prog_compiler_pic_FC"; then
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
13493 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
13494 if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then :
13495 $as_echo_n "(cached) " >&6
13496 else
13497 lt_cv_prog_compiler_pic_works_FC=no
13498 ac_outfile=conftest.$ac_objext
13499 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13500 lt_compiler_flag="$lt_prog_compiler_pic_FC"
13501 # Insert the option either (1) after the last *FLAGS variable, or
13502 # (2) before a word containing "conftest.", or (3) at the end.
13503 # Note that $ac_compile itself does not contain backslashes and begins
13504 # with a dollar sign (not a hyphen), so the echo should work correctly.
13505 # The option is referenced via a variable to avoid confusing sed.
13506 lt_compile=`echo "$ac_compile" | $SED \
13507 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13508 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13509 -e 's:$: $lt_compiler_flag:'`
13510 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13511 (eval "$lt_compile" 2>conftest.err)
13512 ac_status=$?
13513 cat conftest.err >&5
13514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515 if (exit $ac_status) && test -s "$ac_outfile"; then
13516 # The compiler can only warn and ignore the option if not recognized
13517 # So say no if there are warnings other than the usual output.
13518 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13519 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13520 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13521 lt_cv_prog_compiler_pic_works_FC=yes
13522 fi
13523 fi
13524 $RM conftest*
13525
13526 fi
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
13528 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
13529
13530 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
13531 case $lt_prog_compiler_pic_FC in
13532 "" | " "*) ;;
13533 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
13534 esac
13535 else
13536 lt_prog_compiler_pic_FC=
13537 lt_prog_compiler_can_build_shared_FC=no
13538 fi
13539
13540 fi
13541
13542
13543
13544 #
13545 # Check to make sure the static flag actually works.
13546 #
13547 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13549 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13550 if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then :
13551 $as_echo_n "(cached) " >&6
13552 else
13553 lt_cv_prog_compiler_static_works_FC=no
13554 save_LDFLAGS="$LDFLAGS"
13555 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13556 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13557 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13558 # The linker can only warn and ignore the option if not recognized
13559 # So say no if there are warnings
13560 if test -s conftest.err; then
13561 # Append any errors to the config.log.
13562 cat conftest.err 1>&5
13563 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13564 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13565 if diff conftest.exp conftest.er2 >/dev/null; then
13566 lt_cv_prog_compiler_static_works_FC=yes
13567 fi
13568 else
13569 lt_cv_prog_compiler_static_works_FC=yes
13570 fi
13571 fi
13572 $RM -r conftest*
13573 LDFLAGS="$save_LDFLAGS"
13574
13575 fi
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
13577 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
13578
13579 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
13580 :
13581 else
13582 lt_prog_compiler_static_FC=
13583 fi
13584
13585
13586
13587
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13589 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13590 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
13591 $as_echo_n "(cached) " >&6
13592 else
13593 lt_cv_prog_compiler_c_o_FC=no
13594 $RM -r conftest 2>/dev/null
13595 mkdir conftest
13596 cd conftest
13597 mkdir out
13598 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13599
13600 lt_compiler_flag="-o out/conftest2.$ac_objext"
13601 # Insert the option either (1) after the last *FLAGS variable, or
13602 # (2) before a word containing "conftest.", or (3) at the end.
13603 # Note that $ac_compile itself does not contain backslashes and begins
13604 # with a dollar sign (not a hyphen), so the echo should work correctly.
13605 lt_compile=`echo "$ac_compile" | $SED \
13606 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13607 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13608 -e 's:$: $lt_compiler_flag:'`
13609 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13610 (eval "$lt_compile" 2>out/conftest.err)
13611 ac_status=$?
13612 cat out/conftest.err >&5
13613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13614 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13615 then
13616 # The compiler can only warn and ignore the option if not recognized
13617 # So say no if there are warnings
13618 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13619 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13620 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13621 lt_cv_prog_compiler_c_o_FC=yes
13622 fi
13623 fi
13624 chmod u+w . 2>&5
13625 $RM conftest*
13626 # SGI C++ compiler will create directory out/ii_files/ for
13627 # template instantiation
13628 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13629 $RM out/* && rmdir out
13630 cd ..
13631 $RM -r conftest
13632 $RM conftest*
13633
13634 fi
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
13636 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
13637
13638
13639
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13641 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13642 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
13643 $as_echo_n "(cached) " >&6
13644 else
13645 lt_cv_prog_compiler_c_o_FC=no
13646 $RM -r conftest 2>/dev/null
13647 mkdir conftest
13648 cd conftest
13649 mkdir out
13650 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13651
13652 lt_compiler_flag="-o out/conftest2.$ac_objext"
13653 # Insert the option either (1) after the last *FLAGS variable, or
13654 # (2) before a word containing "conftest.", or (3) at the end.
13655 # Note that $ac_compile itself does not contain backslashes and begins
13656 # with a dollar sign (not a hyphen), so the echo should work correctly.
13657 lt_compile=`echo "$ac_compile" | $SED \
13658 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13659 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13660 -e 's:$: $lt_compiler_flag:'`
13661 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13662 (eval "$lt_compile" 2>out/conftest.err)
13663 ac_status=$?
13664 cat out/conftest.err >&5
13665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13667 then
13668 # The compiler can only warn and ignore the option if not recognized
13669 # So say no if there are warnings
13670 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13671 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13672 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13673 lt_cv_prog_compiler_c_o_FC=yes
13674 fi
13675 fi
13676 chmod u+w . 2>&5
13677 $RM conftest*
13678 # SGI C++ compiler will create directory out/ii_files/ for
13679 # template instantiation
13680 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13681 $RM out/* && rmdir out
13682 cd ..
13683 $RM -r conftest
13684 $RM conftest*
13685
13686 fi
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
13688 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
13689
13690
13691
13692
13693 hard_links="nottested"
13694 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
13695 # do not overwrite the value of need_locks provided by the user
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13697 $as_echo_n "checking if we can lock with hard links... " >&6; }
13698 hard_links=yes
13699 $RM conftest*
13700 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13701 touch conftest.a
13702 ln conftest.a conftest.b 2>&5 || hard_links=no
13703 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13705 $as_echo "$hard_links" >&6; }
13706 if test "$hard_links" = no; then
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13708 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13709 need_locks=warn
13710 fi
13711 else
13712 need_locks=no
13713 fi
13714
13715
13716
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13718 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13719
13720 runpath_var=
13721 allow_undefined_flag_FC=
13722 always_export_symbols_FC=no
13723 archive_cmds_FC=
13724 archive_expsym_cmds_FC=
13725 compiler_needs_object_FC=no
13726 enable_shared_with_static_runtimes_FC=no
13727 export_dynamic_flag_spec_FC=
13728 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13729 hardcode_automatic_FC=no
13730 hardcode_direct_FC=no
13731 hardcode_direct_absolute_FC=no
13732 hardcode_libdir_flag_spec_FC=
13733 hardcode_libdir_flag_spec_ld_FC=
13734 hardcode_libdir_separator_FC=
13735 hardcode_minus_L_FC=no
13736 hardcode_shlibpath_var_FC=unsupported
13737 inherit_rpath_FC=no
13738 link_all_deplibs_FC=unknown
13739 module_cmds_FC=
13740 module_expsym_cmds_FC=
13741 old_archive_from_new_cmds_FC=
13742 old_archive_from_expsyms_cmds_FC=
13743 thread_safe_flag_spec_FC=
13744 whole_archive_flag_spec_FC=
13745 # include_expsyms should be a list of space-separated symbols to be *always*
13746 # included in the symbol list
13747 include_expsyms_FC=
13748 # exclude_expsyms can be an extended regexp of symbols to exclude
13749 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13750 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13751 # as well as any symbol that contains `d'.
13752 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13753 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13754 # platforms (ab)use it in PIC code, but their linkers get confused if
13755 # the symbol is explicitly referenced. Since portable code cannot
13756 # rely on this symbol name, it's probably fine to never include it in
13757 # preloaded symbol tables.
13758 # Exclude shared library initialization/finalization symbols.
13759 extract_expsyms_cmds=
13760
13761 case $host_os in
13762 cygwin* | mingw* | pw32* | cegcc*)
13763 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13764 # When not using gcc, we currently assume that we are using
13765 # Microsoft Visual C++.
13766 if test "$GCC" != yes; then
13767 with_gnu_ld=no
13768 fi
13769 ;;
13770 interix*)
13771 # we just hope/assume this is gcc and not c89 (= MSVC++)
13772 with_gnu_ld=yes
13773 ;;
13774 openbsd*)
13775 with_gnu_ld=no
13776 ;;
13777 esac
13778
13779 ld_shlibs_FC=yes
13780
13781 # On some targets, GNU ld is compatible enough with the native linker
13782 # that we're better off using the native interface for both.
13783 lt_use_gnu_ld_interface=no
13784 if test "$with_gnu_ld" = yes; then
13785 case $host_os in
13786 aix*)
13787 # The AIX port of GNU ld has always aspired to compatibility
13788 # with the native linker. However, as the warning in the GNU ld
13789 # block says, versions before 2.19.5* couldn't really create working
13790 # shared libraries, regardless of the interface used.
13791 case `$LD -v 2>&1` in
13792 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13793 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13794 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13795 *)
13796 lt_use_gnu_ld_interface=yes
13797 ;;
13798 esac
13799 ;;
13800 *)
13801 lt_use_gnu_ld_interface=yes
13802 ;;
13803 esac
13804 fi
13805
13806 if test "$lt_use_gnu_ld_interface" = yes; then
13807 # If archive_cmds runs LD, not CC, wlarc should be empty
13808 wlarc='${wl}'
13809
13810 # Set some defaults for GNU ld with shared library support. These
13811 # are reset later if shared libraries are not supported. Putting them
13812 # here allows them to be overridden if necessary.
13813 runpath_var=LD_RUN_PATH
13814 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13815 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
13816 # ancient GNU ld didn't support --whole-archive et. al.
13817 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13818 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13819 else
13820 whole_archive_flag_spec_FC=
13821 fi
13822 supports_anon_versioning=no
13823 case `$LD -v 2>&1` in
13824 *GNU\ gold*) supports_anon_versioning=yes ;;
13825 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13826 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13827 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13828 *\ 2.11.*) ;; # other 2.11 versions
13829 *) supports_anon_versioning=yes ;;
13830 esac
13831
13832 # See if GNU ld supports shared libraries.
13833 case $host_os in
13834 aix[3-9]*)
13835 # On AIX/PPC, the GNU linker is very broken
13836 if test "$host_cpu" != ia64; then
13837 ld_shlibs_FC=no
13838 cat <<_LT_EOF 1>&2
13839
13840 *** Warning: the GNU linker, at least up to release 2.19, is reported
13841 *** to be unable to reliably create shared libraries on AIX.
13842 *** Therefore, libtool is disabling shared libraries support. If you
13843 *** really care for shared libraries, you may want to install binutils
13844 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13845 *** You will then need to restart the configuration process.
13846
13847 _LT_EOF
13848 fi
13849 ;;
13850
13851 amigaos*)
13852 case $host_cpu in
13853 powerpc)
13854 # see comment about AmigaOS4 .so support
13855 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13856 archive_expsym_cmds_FC=''
13857 ;;
13858 m68k)
13859 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)'
13860 hardcode_libdir_flag_spec_FC='-L$libdir'
13861 hardcode_minus_L_FC=yes
13862 ;;
13863 esac
13864 ;;
13865
13866 beos*)
13867 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13868 allow_undefined_flag_FC=unsupported
13869 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13870 # support --undefined. This deserves some investigation. FIXME
13871 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13872 else
13873 ld_shlibs_FC=no
13874 fi
13875 ;;
13876
13877 cygwin* | mingw* | pw32* | cegcc*)
13878 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
13879 # as there is no search path for DLLs.
13880 hardcode_libdir_flag_spec_FC='-L$libdir'
13881 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
13882 allow_undefined_flag_FC=unsupported
13883 always_export_symbols_FC=no
13884 enable_shared_with_static_runtimes_FC=yes
13885 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13886
13887 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13888 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13889 # If the export-symbols file already is a .def file (1st line
13890 # is EXPORTS), use it as is; otherwise, prepend...
13891 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13892 cp $export_symbols $output_objdir/$soname.def;
13893 else
13894 echo EXPORTS > $output_objdir/$soname.def;
13895 cat $export_symbols >> $output_objdir/$soname.def;
13896 fi~
13897 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13898 else
13899 ld_shlibs_FC=no
13900 fi
13901 ;;
13902
13903 haiku*)
13904 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13905 link_all_deplibs_FC=yes
13906 ;;
13907
13908 interix[3-9]*)
13909 hardcode_direct_FC=no
13910 hardcode_shlibpath_var_FC=no
13911 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13912 export_dynamic_flag_spec_FC='${wl}-E'
13913 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13914 # Instead, shared libraries are loaded at an image base (0x10000000 by
13915 # default) and relocated if they conflict, which is a slow very memory
13916 # consuming and fragmenting process. To avoid this, we pick a random,
13917 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13918 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13919 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'
13920 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'
13921 ;;
13922
13923 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13924 tmp_diet=no
13925 if test "$host_os" = linux-dietlibc; then
13926 case $cc_basename in
13927 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13928 esac
13929 fi
13930 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13931 && test "$tmp_diet" = no
13932 then
13933 tmp_addflag=
13934 tmp_sharedflag='-shared'
13935 case $cc_basename,$host_cpu in
13936 pgcc*) # Portland Group C compiler
13937 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'
13938 tmp_addflag=' $pic_flag'
13939 ;;
13940 pgf77* | pgf90* | pgf95* | pgfortran*)
13941 # Portland Group f77 and f90 compilers
13942 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'
13943 tmp_addflag=' $pic_flag -Mnomain' ;;
13944 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13945 tmp_addflag=' -i_dynamic' ;;
13946 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13947 tmp_addflag=' -i_dynamic -nofor_main' ;;
13948 ifc* | ifort*) # Intel Fortran compiler
13949 tmp_addflag=' -nofor_main' ;;
13950 lf95*) # Lahey Fortran 8.1
13951 whole_archive_flag_spec_FC=
13952 tmp_sharedflag='--shared' ;;
13953 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13954 tmp_sharedflag='-qmkshrobj'
13955 tmp_addflag= ;;
13956 nvcc*) # Cuda Compiler Driver 2.2
13957 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'
13958 compiler_needs_object_FC=yes
13959 ;;
13960 esac
13961 case `$CC -V 2>&1 | sed 5q` in
13962 *Sun\ C*) # Sun C 5.9
13963 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'
13964 compiler_needs_object_FC=yes
13965 tmp_sharedflag='-G' ;;
13966 *Sun\ F*) # Sun Fortran 8.3
13967 tmp_sharedflag='-G' ;;
13968 esac
13969 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13970
13971 if test "x$supports_anon_versioning" = xyes; then
13972 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
13973 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13974 echo "local: *; };" >> $output_objdir/$libname.ver~
13975 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13976 fi
13977
13978 case $cc_basename in
13979 xlf* | bgf* | bgxlf* | mpixlf*)
13980 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13981 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
13982 hardcode_libdir_flag_spec_FC=
13983 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
13984 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13985 if test "x$supports_anon_versioning" = xyes; then
13986 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
13987 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13988 echo "local: *; };" >> $output_objdir/$libname.ver~
13989 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13990 fi
13991 ;;
13992 esac
13993 else
13994 ld_shlibs_FC=no
13995 fi
13996 ;;
13997
13998 netbsd*)
13999 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14000 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14001 wlarc=
14002 else
14003 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14004 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14005 fi
14006 ;;
14007
14008 solaris*)
14009 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14010 ld_shlibs_FC=no
14011 cat <<_LT_EOF 1>&2
14012
14013 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14014 *** create shared libraries on Solaris systems. Therefore, libtool
14015 *** is disabling shared libraries support. We urge you to upgrade GNU
14016 *** binutils to release 2.9.1 or newer. Another option is to modify
14017 *** your PATH or compiler configuration so that the native linker is
14018 *** used, and then restart.
14019
14020 _LT_EOF
14021 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14022 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14023 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14024 else
14025 ld_shlibs_FC=no
14026 fi
14027 ;;
14028
14029 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14030 case `$LD -v 2>&1` in
14031 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14032 ld_shlibs_FC=no
14033 cat <<_LT_EOF 1>&2
14034
14035 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14036 *** reliably create shared libraries on SCO systems. Therefore, libtool
14037 *** is disabling shared libraries support. We urge you to upgrade GNU
14038 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14039 *** your PATH or compiler configuration so that the native linker is
14040 *** used, and then restart.
14041
14042 _LT_EOF
14043 ;;
14044 *)
14045 # For security reasons, it is highly recommended that you always
14046 # use absolute paths for naming shared libraries, and exclude the
14047 # DT_RUNPATH tag from executables and libraries. But doing so
14048 # requires that you compile everything twice, which is a pain.
14049 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14050 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14051 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14052 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14053 else
14054 ld_shlibs_FC=no
14055 fi
14056 ;;
14057 esac
14058 ;;
14059
14060 sunos4*)
14061 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14062 wlarc=
14063 hardcode_direct_FC=yes
14064 hardcode_shlibpath_var_FC=no
14065 ;;
14066
14067 *)
14068 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14069 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14070 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14071 else
14072 ld_shlibs_FC=no
14073 fi
14074 ;;
14075 esac
14076
14077 if test "$ld_shlibs_FC" = no; then
14078 runpath_var=
14079 hardcode_libdir_flag_spec_FC=
14080 export_dynamic_flag_spec_FC=
14081 whole_archive_flag_spec_FC=
14082 fi
14083 else
14084 # PORTME fill in a description of your system's linker (not GNU ld)
14085 case $host_os in
14086 aix3*)
14087 allow_undefined_flag_FC=unsupported
14088 always_export_symbols_FC=yes
14089 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'
14090 # Note: this linker hardcodes the directories in LIBPATH if there
14091 # are no directories specified by -L.
14092 hardcode_minus_L_FC=yes
14093 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14094 # Neither direct hardcoding nor static linking is supported with a
14095 # broken collect2.
14096 hardcode_direct_FC=unsupported
14097 fi
14098 ;;
14099
14100 aix[4-9]*)
14101 if test "$host_cpu" = ia64; then
14102 # On IA64, the linker does run time linking by default, so we don't
14103 # have to do anything special.
14104 aix_use_runtimelinking=no
14105 exp_sym_flag='-Bexport'
14106 no_entry_flag=""
14107 else
14108 # If we're using GNU nm, then we don't want the "-C" option.
14109 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14110 # Also, AIX nm treats weak defined symbols like other global
14111 # defined symbols, whereas GNU nm marks them as "W".
14112 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14113 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'
14114 else
14115 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'
14116 fi
14117 aix_use_runtimelinking=no
14118
14119 # Test if we are trying to use run time linking or normal
14120 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14121 # need to do runtime linking.
14122 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14123 for ld_flag in $LDFLAGS; do
14124 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14125 aix_use_runtimelinking=yes
14126 break
14127 fi
14128 done
14129 ;;
14130 esac
14131
14132 exp_sym_flag='-bexport'
14133 no_entry_flag='-bnoentry'
14134 fi
14135
14136 # When large executables or shared objects are built, AIX ld can
14137 # have problems creating the table of contents. If linking a library
14138 # or program results in "error TOC overflow" add -mminimal-toc to
14139 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14140 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14141
14142 archive_cmds_FC=''
14143 hardcode_direct_FC=yes
14144 hardcode_direct_absolute_FC=yes
14145 hardcode_libdir_separator_FC=':'
14146 link_all_deplibs_FC=yes
14147 file_list_spec_FC='${wl}-f,'
14148
14149 if test "$GCC" = yes; then
14150 case $host_os in aix4.[012]|aix4.[012].*)
14151 # We only want to do this on AIX 4.2 and lower, the check
14152 # below for broken collect2 doesn't work under 4.3+
14153 collect2name=`${CC} -print-prog-name=collect2`
14154 if test -f "$collect2name" &&
14155 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14156 then
14157 # We have reworked collect2
14158 :
14159 else
14160 # We have old collect2
14161 hardcode_direct_FC=unsupported
14162 # It fails to find uninstalled libraries when the uninstalled
14163 # path is not listed in the libpath. Setting hardcode_minus_L
14164 # to unsupported forces relinking
14165 hardcode_minus_L_FC=yes
14166 hardcode_libdir_flag_spec_FC='-L$libdir'
14167 hardcode_libdir_separator_FC=
14168 fi
14169 ;;
14170 esac
14171 shared_flag='-shared'
14172 if test "$aix_use_runtimelinking" = yes; then
14173 shared_flag="$shared_flag "'${wl}-G'
14174 fi
14175 else
14176 # not using gcc
14177 if test "$host_cpu" = ia64; then
14178 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14179 # chokes on -Wl,-G. The following line is correct:
14180 shared_flag='-G'
14181 else
14182 if test "$aix_use_runtimelinking" = yes; then
14183 shared_flag='${wl}-G'
14184 else
14185 shared_flag='${wl}-bM:SRE'
14186 fi
14187 fi
14188 fi
14189
14190 export_dynamic_flag_spec_FC='${wl}-bexpall'
14191 # It seems that -bexpall does not export symbols beginning with
14192 # underscore (_), so it is better to generate a list of symbols to export.
14193 always_export_symbols_FC=yes
14194 if test "$aix_use_runtimelinking" = yes; then
14195 # Warning - without using the other runtime loading flags (-brtl),
14196 # -berok will link without error, but may produce a broken library.
14197 allow_undefined_flag_FC='-berok'
14198 # Determine the default libpath from the value encoded in an
14199 # empty executable.
14200 if test x$gcc_no_link = xyes; then
14201 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14202 fi
14203 cat > conftest.$ac_ext <<_ACEOF
14204 program main
14205
14206 end
14207 _ACEOF
14208 if ac_fn_fc_try_link "$LINENO"; then :
14209
14210 lt_aix_libpath_sed='
14211 /Import File Strings/,/^$/ {
14212 /^0/ {
14213 s/^0 *\(.*\)$/\1/
14214 p
14215 }
14216 }'
14217 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14218 # Check for a 64-bit object if we didn't find anything.
14219 if test -z "$aix_libpath"; then
14220 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14221 fi
14222 fi
14223 rm -f core conftest.err conftest.$ac_objext \
14224 conftest$ac_exeext conftest.$ac_ext
14225 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14226
14227 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14228 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"
14229 else
14230 if test "$host_cpu" = ia64; then
14231 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
14232 allow_undefined_flag_FC="-z nodefs"
14233 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"
14234 else
14235 # Determine the default libpath from the value encoded in an
14236 # empty executable.
14237 if test x$gcc_no_link = xyes; then
14238 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14239 fi
14240 cat > conftest.$ac_ext <<_ACEOF
14241 program main
14242
14243 end
14244 _ACEOF
14245 if ac_fn_fc_try_link "$LINENO"; then :
14246
14247 lt_aix_libpath_sed='
14248 /Import File Strings/,/^$/ {
14249 /^0/ {
14250 s/^0 *\(.*\)$/\1/
14251 p
14252 }
14253 }'
14254 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14255 # Check for a 64-bit object if we didn't find anything.
14256 if test -z "$aix_libpath"; then
14257 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14258 fi
14259 fi
14260 rm -f core conftest.err conftest.$ac_objext \
14261 conftest$ac_exeext conftest.$ac_ext
14262 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14263
14264 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14265 # Warning - without using the other run time loading flags,
14266 # -berok will link without error, but may produce a broken library.
14267 no_undefined_flag_FC=' ${wl}-bernotok'
14268 allow_undefined_flag_FC=' ${wl}-berok'
14269 if test "$with_gnu_ld" = yes; then
14270 # We only use this code for GNU lds that support --whole-archive.
14271 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14272 else
14273 # Exported symbols can be pulled into shared objects from archives
14274 whole_archive_flag_spec_FC='$convenience'
14275 fi
14276 archive_cmds_need_lc_FC=yes
14277 # This is similar to how AIX traditionally builds its shared libraries.
14278 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'
14279 fi
14280 fi
14281 ;;
14282
14283 amigaos*)
14284 case $host_cpu in
14285 powerpc)
14286 # see comment about AmigaOS4 .so support
14287 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14288 archive_expsym_cmds_FC=''
14289 ;;
14290 m68k)
14291 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)'
14292 hardcode_libdir_flag_spec_FC='-L$libdir'
14293 hardcode_minus_L_FC=yes
14294 ;;
14295 esac
14296 ;;
14297
14298 bsdi[45]*)
14299 export_dynamic_flag_spec_FC=-rdynamic
14300 ;;
14301
14302 cygwin* | mingw* | pw32* | cegcc*)
14303 # When not using gcc, we currently assume that we are using
14304 # Microsoft Visual C++.
14305 # hardcode_libdir_flag_spec is actually meaningless, as there is
14306 # no search path for DLLs.
14307 hardcode_libdir_flag_spec_FC=' '
14308 allow_undefined_flag_FC=unsupported
14309 # Tell ltmain to make .lib files, not .a files.
14310 libext=lib
14311 # Tell ltmain to make .dll files, not .so files.
14312 shrext_cmds=".dll"
14313 # FIXME: Setting linknames here is a bad hack.
14314 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14315 # The linker will automatically build a .lib file if we build a DLL.
14316 old_archive_from_new_cmds_FC='true'
14317 # FIXME: Should let the user specify the lib program.
14318 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
14319 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
14320 enable_shared_with_static_runtimes_FC=yes
14321 ;;
14322
14323 darwin* | rhapsody*)
14324
14325
14326 archive_cmds_need_lc_FC=no
14327 hardcode_direct_FC=no
14328 hardcode_automatic_FC=yes
14329 hardcode_shlibpath_var_FC=unsupported
14330 if test "$lt_cv_ld_force_load" = "yes"; then
14331 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\"`'
14332 else
14333 whole_archive_flag_spec_FC=''
14334 fi
14335 link_all_deplibs_FC=yes
14336 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
14337 case $cc_basename in
14338 ifort*) _lt_dar_can_shared=yes ;;
14339 *) _lt_dar_can_shared=$GCC ;;
14340 esac
14341 if test "$_lt_dar_can_shared" = "yes"; then
14342 output_verbose_link_cmd=func_echo_all
14343 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}"
14344 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14345 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}"
14346 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}"
14347
14348 else
14349 ld_shlibs_FC=no
14350 fi
14351
14352 ;;
14353
14354 dgux*)
14355 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14356 hardcode_libdir_flag_spec_FC='-L$libdir'
14357 hardcode_shlibpath_var_FC=no
14358 ;;
14359
14360 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14361 # support. Future versions do this automatically, but an explicit c++rt0.o
14362 # does not break anything, and helps significantly (at the cost of a little
14363 # extra space).
14364 freebsd2.2*)
14365 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14366 hardcode_libdir_flag_spec_FC='-R$libdir'
14367 hardcode_direct_FC=yes
14368 hardcode_shlibpath_var_FC=no
14369 ;;
14370
14371 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14372 freebsd2.*)
14373 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14374 hardcode_direct_FC=yes
14375 hardcode_minus_L_FC=yes
14376 hardcode_shlibpath_var_FC=no
14377 ;;
14378
14379 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14380 freebsd* | dragonfly*)
14381 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14382 hardcode_libdir_flag_spec_FC='-R$libdir'
14383 hardcode_direct_FC=yes
14384 hardcode_shlibpath_var_FC=no
14385 ;;
14386
14387 hpux9*)
14388 if test "$GCC" = yes; then
14389 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'
14390 else
14391 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'
14392 fi
14393 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14394 hardcode_libdir_separator_FC=:
14395 hardcode_direct_FC=yes
14396
14397 # hardcode_minus_L: Not really in the search PATH,
14398 # but as the default location of the library.
14399 hardcode_minus_L_FC=yes
14400 export_dynamic_flag_spec_FC='${wl}-E'
14401 ;;
14402
14403 hpux10*)
14404 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14405 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14406 else
14407 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14408 fi
14409 if test "$with_gnu_ld" = no; then
14410 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14411 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
14412 hardcode_libdir_separator_FC=:
14413 hardcode_direct_FC=yes
14414 hardcode_direct_absolute_FC=yes
14415 export_dynamic_flag_spec_FC='${wl}-E'
14416 # hardcode_minus_L: Not really in the search PATH,
14417 # but as the default location of the library.
14418 hardcode_minus_L_FC=yes
14419 fi
14420 ;;
14421
14422 hpux11*)
14423 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14424 case $host_cpu in
14425 hppa*64*)
14426 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14427 ;;
14428 ia64*)
14429 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14430 ;;
14431 *)
14432 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14433 ;;
14434 esac
14435 else
14436 case $host_cpu in
14437 hppa*64*)
14438 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14439 ;;
14440 ia64*)
14441 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14442 ;;
14443 *)
14444 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14445 ;;
14446 esac
14447 fi
14448 if test "$with_gnu_ld" = no; then
14449 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14450 hardcode_libdir_separator_FC=:
14451
14452 case $host_cpu in
14453 hppa*64*|ia64*)
14454 hardcode_direct_FC=no
14455 hardcode_shlibpath_var_FC=no
14456 ;;
14457 *)
14458 hardcode_direct_FC=yes
14459 hardcode_direct_absolute_FC=yes
14460 export_dynamic_flag_spec_FC='${wl}-E'
14461
14462 # hardcode_minus_L: Not really in the search PATH,
14463 # but as the default location of the library.
14464 hardcode_minus_L_FC=yes
14465 ;;
14466 esac
14467 fi
14468 ;;
14469
14470 irix5* | irix6* | nonstopux*)
14471 if test "$GCC" = yes; then
14472 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'
14473 # Try to use the -exported_symbol ld option, if it does not
14474 # work, assume that -exports_file does not work either and
14475 # implicitly export all symbols.
14476 save_LDFLAGS="$LDFLAGS"
14477 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14478 if test x$gcc_no_link = xyes; then
14479 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14480 fi
14481 cat > conftest.$ac_ext <<_ACEOF
14482 int foo(void) {}
14483 _ACEOF
14484 if ac_fn_fc_try_link "$LINENO"; then :
14485 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'
14486
14487 fi
14488 rm -f core conftest.err conftest.$ac_objext \
14489 conftest$ac_exeext conftest.$ac_ext
14490 LDFLAGS="$save_LDFLAGS"
14491 else
14492 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'
14493 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'
14494 fi
14495 archive_cmds_need_lc_FC='no'
14496 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14497 hardcode_libdir_separator_FC=:
14498 inherit_rpath_FC=yes
14499 link_all_deplibs_FC=yes
14500 ;;
14501
14502 netbsd*)
14503 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14504 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14505 else
14506 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14507 fi
14508 hardcode_libdir_flag_spec_FC='-R$libdir'
14509 hardcode_direct_FC=yes
14510 hardcode_shlibpath_var_FC=no
14511 ;;
14512
14513 newsos6)
14514 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14515 hardcode_direct_FC=yes
14516 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14517 hardcode_libdir_separator_FC=:
14518 hardcode_shlibpath_var_FC=no
14519 ;;
14520
14521 *nto* | *qnx*)
14522 ;;
14523
14524 openbsd*)
14525 if test -f /usr/libexec/ld.so; then
14526 hardcode_direct_FC=yes
14527 hardcode_shlibpath_var_FC=no
14528 hardcode_direct_absolute_FC=yes
14529 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14530 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14531 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14532 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14533 export_dynamic_flag_spec_FC='${wl}-E'
14534 else
14535 case $host_os in
14536 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14537 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14538 hardcode_libdir_flag_spec_FC='-R$libdir'
14539 ;;
14540 *)
14541 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14542 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14543 ;;
14544 esac
14545 fi
14546 else
14547 ld_shlibs_FC=no
14548 fi
14549 ;;
14550
14551 os2*)
14552 hardcode_libdir_flag_spec_FC='-L$libdir'
14553 hardcode_minus_L_FC=yes
14554 allow_undefined_flag_FC=unsupported
14555 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'
14556 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14557 ;;
14558
14559 osf3*)
14560 if test "$GCC" = yes; then
14561 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
14562 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'
14563 else
14564 allow_undefined_flag_FC=' -expect_unresolved \*'
14565 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'
14566 fi
14567 archive_cmds_need_lc_FC='no'
14568 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14569 hardcode_libdir_separator_FC=:
14570 ;;
14571
14572 osf4* | osf5*) # as osf3* with the addition of -msym flag
14573 if test "$GCC" = yes; then
14574 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
14575 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'
14576 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14577 else
14578 allow_undefined_flag_FC=' -expect_unresolved \*'
14579 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'
14580 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~
14581 $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'
14582
14583 # Both c and cxx compiler support -rpath directly
14584 hardcode_libdir_flag_spec_FC='-rpath $libdir'
14585 fi
14586 archive_cmds_need_lc_FC='no'
14587 hardcode_libdir_separator_FC=:
14588 ;;
14589
14590 solaris*)
14591 no_undefined_flag_FC=' -z defs'
14592 if test "$GCC" = yes; then
14593 wlarc='${wl}'
14594 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14595 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14596 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14597 else
14598 case `$CC -V 2>&1` in
14599 *"Compilers 5.0"*)
14600 wlarc=''
14601 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14602 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14603 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14604 ;;
14605 *)
14606 wlarc='${wl}'
14607 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14608 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14609 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14610 ;;
14611 esac
14612 fi
14613 hardcode_libdir_flag_spec_FC='-R$libdir'
14614 hardcode_shlibpath_var_FC=no
14615 case $host_os in
14616 solaris2.[0-5] | solaris2.[0-5].*) ;;
14617 *)
14618 # The compiler driver will combine and reorder linker options,
14619 # but understands `-z linker_flag'. GCC discards it without `$wl',
14620 # but is careful enough not to reorder.
14621 # Supported since Solaris 2.6 (maybe 2.5.1?)
14622 if test "$GCC" = yes; then
14623 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14624 else
14625 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
14626 fi
14627 ;;
14628 esac
14629 link_all_deplibs_FC=yes
14630 ;;
14631
14632 sunos4*)
14633 if test "x$host_vendor" = xsequent; then
14634 # Use $CC to link under sequent, because it throws in some extra .o
14635 # files that make .init and .fini sections work.
14636 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14637 else
14638 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14639 fi
14640 hardcode_libdir_flag_spec_FC='-L$libdir'
14641 hardcode_direct_FC=yes
14642 hardcode_minus_L_FC=yes
14643 hardcode_shlibpath_var_FC=no
14644 ;;
14645
14646 sysv4)
14647 case $host_vendor in
14648 sni)
14649 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14650 hardcode_direct_FC=yes # is this really true???
14651 ;;
14652 siemens)
14653 ## LD is ld it makes a PLAMLIB
14654 ## CC just makes a GrossModule.
14655 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14656 reload_cmds_FC='$CC -r -o $output$reload_objs'
14657 hardcode_direct_FC=no
14658 ;;
14659 motorola)
14660 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14661 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
14662 ;;
14663 esac
14664 runpath_var='LD_RUN_PATH'
14665 hardcode_shlibpath_var_FC=no
14666 ;;
14667
14668 sysv4.3*)
14669 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14670 hardcode_shlibpath_var_FC=no
14671 export_dynamic_flag_spec_FC='-Bexport'
14672 ;;
14673
14674 sysv4*MP*)
14675 if test -d /usr/nec; then
14676 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14677 hardcode_shlibpath_var_FC=no
14678 runpath_var=LD_RUN_PATH
14679 hardcode_runpath_var=yes
14680 ld_shlibs_FC=yes
14681 fi
14682 ;;
14683
14684 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14685 no_undefined_flag_FC='${wl}-z,text'
14686 archive_cmds_need_lc_FC=no
14687 hardcode_shlibpath_var_FC=no
14688 runpath_var='LD_RUN_PATH'
14689
14690 if test "$GCC" = yes; then
14691 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14692 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14693 else
14694 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14695 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14696 fi
14697 ;;
14698
14699 sysv5* | sco3.2v5* | sco5v6*)
14700 # Note: We can NOT use -z defs as we might desire, because we do not
14701 # link with -lc, and that would cause any symbols used from libc to
14702 # always be unresolved, which means just about no library would
14703 # ever link correctly. If we're not using GNU ld we use -z text
14704 # though, which does catch some bad symbols but isn't as heavy-handed
14705 # as -z defs.
14706 no_undefined_flag_FC='${wl}-z,text'
14707 allow_undefined_flag_FC='${wl}-z,nodefs'
14708 archive_cmds_need_lc_FC=no
14709 hardcode_shlibpath_var_FC=no
14710 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
14711 hardcode_libdir_separator_FC=':'
14712 link_all_deplibs_FC=yes
14713 export_dynamic_flag_spec_FC='${wl}-Bexport'
14714 runpath_var='LD_RUN_PATH'
14715
14716 if test "$GCC" = yes; then
14717 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14718 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14719 else
14720 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14721 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14722 fi
14723 ;;
14724
14725 uts4*)
14726 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14727 hardcode_libdir_flag_spec_FC='-L$libdir'
14728 hardcode_shlibpath_var_FC=no
14729 ;;
14730
14731 *)
14732 ld_shlibs_FC=no
14733 ;;
14734 esac
14735
14736 if test x$host_vendor = xsni; then
14737 case $host in
14738 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14739 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
14740 ;;
14741 esac
14742 fi
14743 fi
14744
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
14746 $as_echo "$ld_shlibs_FC" >&6; }
14747 test "$ld_shlibs_FC" = no && can_build_shared=no
14748
14749 with_gnu_ld_FC=$with_gnu_ld
14750
14751
14752
14753
14754
14755
14756 #
14757 # Do we need to explicitly link libc?
14758 #
14759 case "x$archive_cmds_need_lc_FC" in
14760 x|xyes)
14761 # Assume -lc should be added
14762 archive_cmds_need_lc_FC=yes
14763
14764 if test "$enable_shared" = yes && test "$GCC" = yes; then
14765 case $archive_cmds_FC in
14766 *'~'*)
14767 # FIXME: we may have to deal with multi-command sequences.
14768 ;;
14769 '$CC '*)
14770 # Test whether the compiler implicitly links with -lc since on some
14771 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14772 # to ld, don't add -lc before -lgcc.
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14774 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14775 if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then :
14776 $as_echo_n "(cached) " >&6
14777 else
14778 $RM conftest*
14779 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14780
14781 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14782 (eval $ac_compile) 2>&5
14783 ac_status=$?
14784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14785 test $ac_status = 0; } 2>conftest.err; then
14786 soname=conftest
14787 lib=conftest
14788 libobjs=conftest.$ac_objext
14789 deplibs=
14790 wl=$lt_prog_compiler_wl_FC
14791 pic_flag=$lt_prog_compiler_pic_FC
14792 compiler_flags=-v
14793 linker_flags=-v
14794 verstring=
14795 output_objdir=.
14796 libname=conftest
14797 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
14798 allow_undefined_flag_FC=
14799 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14800 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14801 ac_status=$?
14802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14803 test $ac_status = 0; }
14804 then
14805 lt_cv_archive_cmds_need_lc_FC=no
14806 else
14807 lt_cv_archive_cmds_need_lc_FC=yes
14808 fi
14809 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
14810 else
14811 cat conftest.err 1>&5
14812 fi
14813 $RM conftest*
14814
14815 fi
14816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
14817 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
14818 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
14819 ;;
14820 esac
14821 fi
14822 ;;
14823 esac
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14889 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14890
14891 library_names_spec=
14892 libname_spec='lib$name'
14893 soname_spec=
14894 shrext_cmds=".so"
14895 postinstall_cmds=
14896 postuninstall_cmds=
14897 finish_cmds=
14898 finish_eval=
14899 shlibpath_var=
14900 shlibpath_overrides_runpath=unknown
14901 version_type=none
14902 dynamic_linker="$host_os ld.so"
14903 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14904 need_lib_prefix=unknown
14905 hardcode_into_libs=no
14906
14907 # when you set need_version to no, make sure it does not cause -set_version
14908 # flags to be left without arguments
14909 need_version=unknown
14910
14911 case $host_os in
14912 aix3*)
14913 version_type=linux
14914 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14915 shlibpath_var=LIBPATH
14916
14917 # AIX 3 has no versioning support, so we append a major version to the name.
14918 soname_spec='${libname}${release}${shared_ext}$major'
14919 ;;
14920
14921 aix[4-9]*)
14922 version_type=linux
14923 need_lib_prefix=no
14924 need_version=no
14925 hardcode_into_libs=yes
14926 if test "$host_cpu" = ia64; then
14927 # AIX 5 supports IA64
14928 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14929 shlibpath_var=LD_LIBRARY_PATH
14930 else
14931 # With GCC up to 2.95.x, collect2 would create an import file
14932 # for dependence libraries. The import file would start with
14933 # the line `#! .'. This would cause the generated library to
14934 # depend on `.', always an invalid library. This was fixed in
14935 # development snapshots of GCC prior to 3.0.
14936 case $host_os in
14937 aix4 | aix4.[01] | aix4.[01].*)
14938 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14939 echo ' yes '
14940 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14941 :
14942 else
14943 can_build_shared=no
14944 fi
14945 ;;
14946 esac
14947 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14948 # soname into executable. Probably we can add versioning support to
14949 # collect2, so additional links can be useful in future.
14950 if test "$aix_use_runtimelinking" = yes; then
14951 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14952 # instead of lib<name>.a to let people know that these are not
14953 # typical AIX shared libraries.
14954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14955 else
14956 # We preserve .a as extension for shared libraries through AIX4.2
14957 # and later when we are not doing run time linking.
14958 library_names_spec='${libname}${release}.a $libname.a'
14959 soname_spec='${libname}${release}${shared_ext}$major'
14960 fi
14961 shlibpath_var=LIBPATH
14962 fi
14963 ;;
14964
14965 amigaos*)
14966 case $host_cpu in
14967 powerpc)
14968 # Since July 2007 AmigaOS4 officially supports .so libraries.
14969 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14971 ;;
14972 m68k)
14973 library_names_spec='$libname.ixlibrary $libname.a'
14974 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14975 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'
14976 ;;
14977 esac
14978 ;;
14979
14980 beos*)
14981 library_names_spec='${libname}${shared_ext}'
14982 dynamic_linker="$host_os ld.so"
14983 shlibpath_var=LIBRARY_PATH
14984 ;;
14985
14986 bsdi[45]*)
14987 version_type=linux
14988 need_version=no
14989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14990 soname_spec='${libname}${release}${shared_ext}$major'
14991 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14992 shlibpath_var=LD_LIBRARY_PATH
14993 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14994 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14995 # the default ld.so.conf also contains /usr/contrib/lib and
14996 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14997 # libtool to hard-code these into programs
14998 ;;
14999
15000 cygwin* | mingw* | pw32* | cegcc*)
15001 version_type=windows
15002 shrext_cmds=".dll"
15003 need_version=no
15004 need_lib_prefix=no
15005
15006 case $GCC,$host_os in
15007 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15008 library_names_spec='$libname.dll.a'
15009 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15010 postinstall_cmds='base_file=`basename \${file}`~
15011 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15012 dldir=$destdir/`dirname \$dlpath`~
15013 test -d \$dldir || mkdir -p \$dldir~
15014 $install_prog $dir/$dlname \$dldir/$dlname~
15015 chmod a+x \$dldir/$dlname~
15016 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15017 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15018 fi'
15019 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15020 dlpath=$dir/\$dldll~
15021 $RM \$dlpath'
15022 shlibpath_overrides_runpath=yes
15023
15024 case $host_os in
15025 cygwin*)
15026 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15027 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15028
15029 ;;
15030 mingw* | cegcc*)
15031 # MinGW DLLs use traditional 'lib' prefix
15032 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15033 ;;
15034 pw32*)
15035 # pw32 DLLs use 'pw' prefix rather than 'lib'
15036 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15037 ;;
15038 esac
15039 ;;
15040
15041 *)
15042 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15043 ;;
15044 esac
15045 dynamic_linker='Win32 ld.exe'
15046 # FIXME: first we should search . and the directory the executable is in
15047 shlibpath_var=PATH
15048 ;;
15049
15050 darwin* | rhapsody*)
15051 dynamic_linker="$host_os dyld"
15052 version_type=darwin
15053 need_lib_prefix=no
15054 need_version=no
15055 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15056 soname_spec='${libname}${release}${major}$shared_ext'
15057 shlibpath_overrides_runpath=yes
15058 shlibpath_var=DYLD_LIBRARY_PATH
15059 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15060
15061 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15062 ;;
15063
15064 dgux*)
15065 version_type=linux
15066 need_lib_prefix=no
15067 need_version=no
15068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15069 soname_spec='${libname}${release}${shared_ext}$major'
15070 shlibpath_var=LD_LIBRARY_PATH
15071 ;;
15072
15073 freebsd* | dragonfly*)
15074 # DragonFly does not have aout. When/if they implement a new
15075 # versioning mechanism, adjust this.
15076 if test -x /usr/bin/objformat; then
15077 objformat=`/usr/bin/objformat`
15078 else
15079 case $host_os in
15080 freebsd[23].*) objformat=aout ;;
15081 *) objformat=elf ;;
15082 esac
15083 fi
15084 version_type=freebsd-$objformat
15085 case $version_type in
15086 freebsd-elf*)
15087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15088 need_version=no
15089 need_lib_prefix=no
15090 ;;
15091 freebsd-*)
15092 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15093 need_version=yes
15094 ;;
15095 esac
15096 shlibpath_var=LD_LIBRARY_PATH
15097 case $host_os in
15098 freebsd2.*)
15099 shlibpath_overrides_runpath=yes
15100 ;;
15101 freebsd3.[01]* | freebsdelf3.[01]*)
15102 shlibpath_overrides_runpath=yes
15103 hardcode_into_libs=yes
15104 ;;
15105 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15106 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15107 shlibpath_overrides_runpath=no
15108 hardcode_into_libs=yes
15109 ;;
15110 *) # from 4.6 on, and DragonFly
15111 shlibpath_overrides_runpath=yes
15112 hardcode_into_libs=yes
15113 ;;
15114 esac
15115 ;;
15116
15117 gnu*)
15118 version_type=linux
15119 need_lib_prefix=no
15120 need_version=no
15121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15122 soname_spec='${libname}${release}${shared_ext}$major'
15123 shlibpath_var=LD_LIBRARY_PATH
15124 hardcode_into_libs=yes
15125 ;;
15126
15127 haiku*)
15128 version_type=linux
15129 need_lib_prefix=no
15130 need_version=no
15131 dynamic_linker="$host_os runtime_loader"
15132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15133 soname_spec='${libname}${release}${shared_ext}$major'
15134 shlibpath_var=LIBRARY_PATH
15135 shlibpath_overrides_runpath=yes
15136 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
15137 hardcode_into_libs=yes
15138 ;;
15139
15140 hpux9* | hpux10* | hpux11*)
15141 # Give a soname corresponding to the major version so that dld.sl refuses to
15142 # link against other versions.
15143 version_type=sunos
15144 need_lib_prefix=no
15145 need_version=no
15146 case $host_cpu in
15147 ia64*)
15148 shrext_cmds='.so'
15149 hardcode_into_libs=yes
15150 dynamic_linker="$host_os dld.so"
15151 shlibpath_var=LD_LIBRARY_PATH
15152 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15154 soname_spec='${libname}${release}${shared_ext}$major'
15155 if test "X$HPUX_IA64_MODE" = X32; then
15156 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15157 else
15158 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15159 fi
15160 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15161 ;;
15162 hppa*64*)
15163 shrext_cmds='.sl'
15164 hardcode_into_libs=yes
15165 dynamic_linker="$host_os dld.sl"
15166 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15167 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15169 soname_spec='${libname}${release}${shared_ext}$major'
15170 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15171 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15172 ;;
15173 *)
15174 shrext_cmds='.sl'
15175 dynamic_linker="$host_os dld.sl"
15176 shlibpath_var=SHLIB_PATH
15177 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15179 soname_spec='${libname}${release}${shared_ext}$major'
15180 ;;
15181 esac
15182 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15183 postinstall_cmds='chmod 555 $lib'
15184 # or fails outright, so override atomically:
15185 install_override_mode=555
15186 ;;
15187
15188 interix[3-9]*)
15189 version_type=linux
15190 need_lib_prefix=no
15191 need_version=no
15192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15193 soname_spec='${libname}${release}${shared_ext}$major'
15194 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15195 shlibpath_var=LD_LIBRARY_PATH
15196 shlibpath_overrides_runpath=no
15197 hardcode_into_libs=yes
15198 ;;
15199
15200 irix5* | irix6* | nonstopux*)
15201 case $host_os in
15202 nonstopux*) version_type=nonstopux ;;
15203 *)
15204 if test "$lt_cv_prog_gnu_ld" = yes; then
15205 version_type=linux
15206 else
15207 version_type=irix
15208 fi ;;
15209 esac
15210 need_lib_prefix=no
15211 need_version=no
15212 soname_spec='${libname}${release}${shared_ext}$major'
15213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15214 case $host_os in
15215 irix5* | nonstopux*)
15216 libsuff= shlibsuff=
15217 ;;
15218 *)
15219 case $LD in # libtool.m4 will add one of these switches to LD
15220 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15221 libsuff= shlibsuff= libmagic=32-bit;;
15222 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15223 libsuff=32 shlibsuff=N32 libmagic=N32;;
15224 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15225 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15226 *) libsuff= shlibsuff= libmagic=never-match;;
15227 esac
15228 ;;
15229 esac
15230 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15231 shlibpath_overrides_runpath=no
15232 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15233 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15234 hardcode_into_libs=yes
15235 ;;
15236
15237 # No shared lib support for Linux oldld, aout, or coff.
15238 linux*oldld* | linux*aout* | linux*coff*)
15239 dynamic_linker=no
15240 ;;
15241
15242 # This must be Linux ELF.
15243 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15244 version_type=linux
15245 need_lib_prefix=no
15246 need_version=no
15247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15248 soname_spec='${libname}${release}${shared_ext}$major'
15249 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15250 shlibpath_var=LD_LIBRARY_PATH
15251 shlibpath_overrides_runpath=no
15252
15253 # Some binutils ld are patched to set DT_RUNPATH
15254 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
15255 $as_echo_n "(cached) " >&6
15256 else
15257 lt_cv_shlibpath_overrides_runpath=no
15258 save_LDFLAGS=$LDFLAGS
15259 save_libdir=$libdir
15260 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
15261 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
15262 if test x$gcc_no_link = xyes; then
15263 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
15264 fi
15265 cat > conftest.$ac_ext <<_ACEOF
15266 program main
15267
15268 end
15269 _ACEOF
15270 if ac_fn_fc_try_link "$LINENO"; then :
15271 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15272 lt_cv_shlibpath_overrides_runpath=yes
15273 fi
15274 fi
15275 rm -f core conftest.err conftest.$ac_objext \
15276 conftest$ac_exeext conftest.$ac_ext
15277 LDFLAGS=$save_LDFLAGS
15278 libdir=$save_libdir
15279
15280 fi
15281
15282 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15283
15284 # This implies no fast_install, which is unacceptable.
15285 # Some rework will be needed to allow for fast_install
15286 # before this can be enabled.
15287 hardcode_into_libs=yes
15288
15289 # Append ld.so.conf contents to the search path
15290 if test -f /etc/ld.so.conf; then
15291 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' ' '`
15292 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15293 fi
15294
15295 # We used to test for /lib/ld.so.1 and disable shared libraries on
15296 # powerpc, because MkLinux only supported shared libraries with the
15297 # GNU dynamic linker. Since this was broken with cross compilers,
15298 # most powerpc-linux boxes support dynamic linking these days and
15299 # people can always --disable-shared, the test was removed, and we
15300 # assume the GNU/Linux dynamic linker is in use.
15301 dynamic_linker='GNU/Linux ld.so'
15302 ;;
15303
15304 netbsd*)
15305 version_type=sunos
15306 need_lib_prefix=no
15307 need_version=no
15308 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15310 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15311 dynamic_linker='NetBSD (a.out) ld.so'
15312 else
15313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15314 soname_spec='${libname}${release}${shared_ext}$major'
15315 dynamic_linker='NetBSD ld.elf_so'
15316 fi
15317 shlibpath_var=LD_LIBRARY_PATH
15318 shlibpath_overrides_runpath=yes
15319 hardcode_into_libs=yes
15320 ;;
15321
15322 newsos6)
15323 version_type=linux
15324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15325 shlibpath_var=LD_LIBRARY_PATH
15326 shlibpath_overrides_runpath=yes
15327 ;;
15328
15329 *nto* | *qnx*)
15330 version_type=qnx
15331 need_lib_prefix=no
15332 need_version=no
15333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15334 soname_spec='${libname}${release}${shared_ext}$major'
15335 shlibpath_var=LD_LIBRARY_PATH
15336 shlibpath_overrides_runpath=no
15337 hardcode_into_libs=yes
15338 dynamic_linker='ldqnx.so'
15339 ;;
15340
15341 openbsd*)
15342 version_type=sunos
15343 sys_lib_dlsearch_path_spec="/usr/lib"
15344 need_lib_prefix=no
15345 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15346 case $host_os in
15347 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15348 *) need_version=no ;;
15349 esac
15350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15351 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15352 shlibpath_var=LD_LIBRARY_PATH
15353 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15354 case $host_os in
15355 openbsd2.[89] | openbsd2.[89].*)
15356 shlibpath_overrides_runpath=no
15357 ;;
15358 *)
15359 shlibpath_overrides_runpath=yes
15360 ;;
15361 esac
15362 else
15363 shlibpath_overrides_runpath=yes
15364 fi
15365 ;;
15366
15367 os2*)
15368 libname_spec='$name'
15369 shrext_cmds=".dll"
15370 need_lib_prefix=no
15371 library_names_spec='$libname${shared_ext} $libname.a'
15372 dynamic_linker='OS/2 ld.exe'
15373 shlibpath_var=LIBPATH
15374 ;;
15375
15376 osf3* | osf4* | osf5*)
15377 version_type=osf
15378 need_lib_prefix=no
15379 need_version=no
15380 soname_spec='${libname}${release}${shared_ext}$major'
15381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15382 shlibpath_var=LD_LIBRARY_PATH
15383 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15384 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15385 ;;
15386
15387 rdos*)
15388 dynamic_linker=no
15389 ;;
15390
15391 solaris*)
15392 version_type=linux
15393 need_lib_prefix=no
15394 need_version=no
15395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15396 soname_spec='${libname}${release}${shared_ext}$major'
15397 shlibpath_var=LD_LIBRARY_PATH
15398 shlibpath_overrides_runpath=yes
15399 hardcode_into_libs=yes
15400 # ldd complains unless libraries are executable
15401 postinstall_cmds='chmod +x $lib'
15402 ;;
15403
15404 sunos4*)
15405 version_type=sunos
15406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15407 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15408 shlibpath_var=LD_LIBRARY_PATH
15409 shlibpath_overrides_runpath=yes
15410 if test "$with_gnu_ld" = yes; then
15411 need_lib_prefix=no
15412 fi
15413 need_version=yes
15414 ;;
15415
15416 sysv4 | sysv4.3*)
15417 version_type=linux
15418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15419 soname_spec='${libname}${release}${shared_ext}$major'
15420 shlibpath_var=LD_LIBRARY_PATH
15421 case $host_vendor in
15422 sni)
15423 shlibpath_overrides_runpath=no
15424 need_lib_prefix=no
15425 runpath_var=LD_RUN_PATH
15426 ;;
15427 siemens)
15428 need_lib_prefix=no
15429 ;;
15430 motorola)
15431 need_lib_prefix=no
15432 need_version=no
15433 shlibpath_overrides_runpath=no
15434 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15435 ;;
15436 esac
15437 ;;
15438
15439 sysv4*MP*)
15440 if test -d /usr/nec ;then
15441 version_type=linux
15442 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15443 soname_spec='$libname${shared_ext}.$major'
15444 shlibpath_var=LD_LIBRARY_PATH
15445 fi
15446 ;;
15447
15448 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15449 version_type=freebsd-elf
15450 need_lib_prefix=no
15451 need_version=no
15452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15453 soname_spec='${libname}${release}${shared_ext}$major'
15454 shlibpath_var=LD_LIBRARY_PATH
15455 shlibpath_overrides_runpath=yes
15456 hardcode_into_libs=yes
15457 if test "$with_gnu_ld" = yes; then
15458 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15459 else
15460 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15461 case $host_os in
15462 sco3.2v5*)
15463 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15464 ;;
15465 esac
15466 fi
15467 sys_lib_dlsearch_path_spec='/usr/lib'
15468 ;;
15469
15470 tpf*)
15471 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15472 version_type=linux
15473 need_lib_prefix=no
15474 need_version=no
15475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15476 shlibpath_var=LD_LIBRARY_PATH
15477 shlibpath_overrides_runpath=no
15478 hardcode_into_libs=yes
15479 ;;
15480
15481 uts4*)
15482 version_type=linux
15483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15484 soname_spec='${libname}${release}${shared_ext}$major'
15485 shlibpath_var=LD_LIBRARY_PATH
15486 ;;
15487
15488 *)
15489 dynamic_linker=no
15490 ;;
15491 esac
15492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15493 $as_echo "$dynamic_linker" >&6; }
15494 test "$dynamic_linker" = no && can_build_shared=no
15495
15496 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15497 if test "$GCC" = yes; then
15498 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15499 fi
15500
15501 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15502 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15503 fi
15504 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15505 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15506 fi
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15546 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15547 hardcode_action_FC=
15548 if test -n "$hardcode_libdir_flag_spec_FC" ||
15549 test -n "$runpath_var_FC" ||
15550 test "X$hardcode_automatic_FC" = "Xyes" ; then
15551
15552 # We can hardcode non-existent directories.
15553 if test "$hardcode_direct_FC" != no &&
15554 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15555 # have to relink, otherwise we might link with an installed library
15556 # when we should be linking with a yet-to-be-installed one
15557 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
15558 test "$hardcode_minus_L_FC" != no; then
15559 # Linking always hardcodes the temporary library directory.
15560 hardcode_action_FC=relink
15561 else
15562 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15563 hardcode_action_FC=immediate
15564 fi
15565 else
15566 # We cannot hardcode anything, or else we can only hardcode existing
15567 # directories.
15568 hardcode_action_FC=unsupported
15569 fi
15570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
15571 $as_echo "$hardcode_action_FC" >&6; }
15572
15573 if test "$hardcode_action_FC" = relink ||
15574 test "$inherit_rpath_FC" = yes; then
15575 # Fast installation is not supported
15576 enable_fast_install=no
15577 elif test "$shlibpath_overrides_runpath" = yes ||
15578 test "$enable_shared" = no; then
15579 # Fast installation is not necessary
15580 enable_fast_install=needless
15581 fi
15582
15583
15584
15585
15586
15587
15588
15589 fi # test -n "$compiler"
15590
15591 GCC=$lt_save_GCC
15592 CC="$lt_save_CC"
15593 fi # test "$_lt_disable_FC" != yes
15594
15595 ac_ext=c
15596 ac_cpp='$CPP $CPPFLAGS'
15597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15600
15601
15602
15603 # extra LD Flags which are required for targets
15604 case "${host}" in
15605 *-darwin*)
15606 # Darwin needs -single_module when linking libgfortran
15607 extra_ldflags_libgfortran=-Wl,-single_module
15608 ;;
15609 esac
15610
15611
15612 # We need a working compiler at that point, otherwise give a clear
15613 # error message and bail out.
15614
15615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GNU Fortran compiler is working" >&5
15616 $as_echo_n "checking whether the GNU Fortran compiler is working... " >&6; }
15617 ac_ext=${ac_fc_srcext-f}
15618 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
15619 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
15620 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
15621
15622 cat > conftest.$ac_ext <<_ACEOF
15623
15624 program foo
15625 real, parameter :: bar = sin (12.34 / 2.5)
15626 end program foo
15627 _ACEOF
15628 if ac_fn_fc_try_compile "$LINENO"; then :
15629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15630 $as_echo "yes" >&6; }
15631 else
15632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15633 $as_echo "no" >&6; }
15634 as_fn_error "GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla, attaching $PWD/config.log" "$LINENO" 5
15635
15636 fi
15637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15638 ac_ext=c
15639 ac_cpp='$CPP $CPPFLAGS'
15640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15643
15644
15645
15646 # Check whether --enable-largefile was given.
15647 if test "${enable_largefile+set}" = set; then :
15648 enableval=$enable_largefile;
15649 fi
15650
15651 if test "$enable_largefile" != no; then
15652
15653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15654 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15655 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
15656 $as_echo_n "(cached) " >&6
15657 else
15658 ac_cv_sys_largefile_CC=no
15659 if test "$GCC" != yes; then
15660 ac_save_CC=$CC
15661 while :; do
15662 # IRIX 6.2 and later do not support large files by default,
15663 # so use the C compiler's -n32 option if that helps.
15664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15665 /* end confdefs.h. */
15666 #include <sys/types.h>
15667 /* Check that off_t can represent 2**63 - 1 correctly.
15668 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15669 since some C++ compilers masquerading as C compilers
15670 incorrectly reject 9223372036854775807. */
15671 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15672 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15673 && LARGE_OFF_T % 2147483647 == 1)
15674 ? 1 : -1];
15675 int
15676 main ()
15677 {
15678
15679 ;
15680 return 0;
15681 }
15682 _ACEOF
15683 if ac_fn_c_try_compile "$LINENO"; then :
15684 break
15685 fi
15686 rm -f core conftest.err conftest.$ac_objext
15687 CC="$CC -n32"
15688 if ac_fn_c_try_compile "$LINENO"; then :
15689 ac_cv_sys_largefile_CC=' -n32'; break
15690 fi
15691 rm -f core conftest.err conftest.$ac_objext
15692 break
15693 done
15694 CC=$ac_save_CC
15695 rm -f conftest.$ac_ext
15696 fi
15697 fi
15698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15699 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15700 if test "$ac_cv_sys_largefile_CC" != no; then
15701 CC=$CC$ac_cv_sys_largefile_CC
15702 fi
15703
15704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15705 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15706 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
15707 $as_echo_n "(cached) " >&6
15708 else
15709 while :; do
15710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15711 /* end confdefs.h. */
15712 #include <sys/types.h>
15713 /* Check that off_t can represent 2**63 - 1 correctly.
15714 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15715 since some C++ compilers masquerading as C compilers
15716 incorrectly reject 9223372036854775807. */
15717 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15718 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15719 && LARGE_OFF_T % 2147483647 == 1)
15720 ? 1 : -1];
15721 int
15722 main ()
15723 {
15724
15725 ;
15726 return 0;
15727 }
15728 _ACEOF
15729 if ac_fn_c_try_compile "$LINENO"; then :
15730 ac_cv_sys_file_offset_bits=no; break
15731 fi
15732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15734 /* end confdefs.h. */
15735 #define _FILE_OFFSET_BITS 64
15736 #include <sys/types.h>
15737 /* Check that off_t can represent 2**63 - 1 correctly.
15738 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15739 since some C++ compilers masquerading as C compilers
15740 incorrectly reject 9223372036854775807. */
15741 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15742 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15743 && LARGE_OFF_T % 2147483647 == 1)
15744 ? 1 : -1];
15745 int
15746 main ()
15747 {
15748
15749 ;
15750 return 0;
15751 }
15752 _ACEOF
15753 if ac_fn_c_try_compile "$LINENO"; then :
15754 ac_cv_sys_file_offset_bits=64; break
15755 fi
15756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15757 ac_cv_sys_file_offset_bits=unknown
15758 break
15759 done
15760 fi
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15762 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15763 case $ac_cv_sys_file_offset_bits in #(
15764 no | unknown) ;;
15765 *)
15766 cat >>confdefs.h <<_ACEOF
15767 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15768 _ACEOF
15769 ;;
15770 esac
15771 rm -rf conftest*
15772 if test $ac_cv_sys_file_offset_bits = unknown; then
15773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15774 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15775 if test "${ac_cv_sys_large_files+set}" = set; then :
15776 $as_echo_n "(cached) " >&6
15777 else
15778 while :; do
15779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15780 /* end confdefs.h. */
15781 #include <sys/types.h>
15782 /* Check that off_t can represent 2**63 - 1 correctly.
15783 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15784 since some C++ compilers masquerading as C compilers
15785 incorrectly reject 9223372036854775807. */
15786 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15787 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15788 && LARGE_OFF_T % 2147483647 == 1)
15789 ? 1 : -1];
15790 int
15791 main ()
15792 {
15793
15794 ;
15795 return 0;
15796 }
15797 _ACEOF
15798 if ac_fn_c_try_compile "$LINENO"; then :
15799 ac_cv_sys_large_files=no; break
15800 fi
15801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15803 /* end confdefs.h. */
15804 #define _LARGE_FILES 1
15805 #include <sys/types.h>
15806 /* Check that off_t can represent 2**63 - 1 correctly.
15807 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15808 since some C++ compilers masquerading as C compilers
15809 incorrectly reject 9223372036854775807. */
15810 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15811 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15812 && LARGE_OFF_T % 2147483647 == 1)
15813 ? 1 : -1];
15814 int
15815 main ()
15816 {
15817
15818 ;
15819 return 0;
15820 }
15821 _ACEOF
15822 if ac_fn_c_try_compile "$LINENO"; then :
15823 ac_cv_sys_large_files=1; break
15824 fi
15825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15826 ac_cv_sys_large_files=unknown
15827 break
15828 done
15829 fi
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15831 $as_echo "$ac_cv_sys_large_files" >&6; }
15832 case $ac_cv_sys_large_files in #(
15833 no | unknown) ;;
15834 *)
15835 cat >>confdefs.h <<_ACEOF
15836 #define _LARGE_FILES $ac_cv_sys_large_files
15837 _ACEOF
15838 ;;
15839 esac
15840 rm -rf conftest*
15841 fi
15842 fi
15843
15844
15845 # Types
15846 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15847 if test "x$ac_cv_type_off_t" = x""yes; then :
15848
15849 else
15850
15851 cat >>confdefs.h <<_ACEOF
15852 #define off_t long int
15853 _ACEOF
15854
15855 fi
15856
15857
15858 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
15859 if test "x$ac_cv_type_intptr_t" = x""yes; then :
15860
15861 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
15862
15863 else
15864 for ac_type in 'int' 'long int' 'long long int'; do
15865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15866 /* end confdefs.h. */
15867 $ac_includes_default
15868 int
15869 main ()
15870 {
15871 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
15872 test_array [0] = 0
15873
15874 ;
15875 return 0;
15876 }
15877 _ACEOF
15878 if ac_fn_c_try_compile "$LINENO"; then :
15879
15880 cat >>confdefs.h <<_ACEOF
15881 #define intptr_t $ac_type
15882 _ACEOF
15883
15884 ac_type=
15885 fi
15886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15887 test -z "$ac_type" && break
15888 done
15889 fi
15890
15891
15892
15893 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
15894 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15895
15896 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
15897
15898 else
15899 for ac_type in 'unsigned int' 'unsigned long int' \
15900 'unsigned long long int'; do
15901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15902 /* end confdefs.h. */
15903 $ac_includes_default
15904 int
15905 main ()
15906 {
15907 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
15908 test_array [0] = 0
15909
15910 ;
15911 return 0;
15912 }
15913 _ACEOF
15914 if ac_fn_c_try_compile "$LINENO"; then :
15915
15916 cat >>confdefs.h <<_ACEOF
15917 #define uintptr_t $ac_type
15918 _ACEOF
15919
15920 ac_type=
15921 fi
15922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15923 test -z "$ac_type" && break
15924 done
15925 fi
15926
15927
15928 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
15929 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
15930
15931 cat >>confdefs.h <<_ACEOF
15932 #define HAVE_PTRDIFF_T 1
15933 _ACEOF
15934
15935
15936 fi
15937
15938
15939 # check header files (we assume C89 is available, so don't check for that)
15940
15941
15942
15943 for ac_header in $ac_header_list
15944 do :
15945 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15946 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15947 "
15948 eval as_val=\$$as_ac_Header
15949 if test "x$as_val" = x""yes; then :
15950 cat >>confdefs.h <<_ACEOF
15951 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15952 _ACEOF
15953
15954 fi
15955
15956 done
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
15989
15990 acx_cv_header_stdint=stddef.h
15991 acx_cv_header_stdint_kind="(already complete)"
15992 for i in stdint.h $inttype_headers; do
15993 unset ac_cv_type_uintptr_t
15994 unset ac_cv_type_uintmax_t
15995 unset ac_cv_type_int_least32_t
15996 unset ac_cv_type_int_fast32_t
15997 unset ac_cv_type_uint64_t
15998 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
15999 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
16000 #include <$i>
16001 "
16002 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
16003 acx_cv_header_stdint=$i
16004 else
16005 continue
16006 fi
16007
16008 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16009 #include <$i>
16010 "
16011 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
16012
16013 else
16014 acx_cv_header_stdint_kind="(mostly complete)"
16015 fi
16016
16017 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
16018 #include <$i>
16019 "
16020 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
16021
16022 else
16023 acx_cv_header_stdint_kind="(mostly complete)"
16024 fi
16025
16026 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
16027 #include <$i>
16028 "
16029 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
16030
16031 else
16032 acx_cv_header_stdint_kind="(mostly complete)"
16033 fi
16034
16035 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16036 #include <$i>
16037 "
16038 if test "x$ac_cv_type_uint64_t" = x""yes; then :
16039
16040 else
16041 acx_cv_header_stdint_kind="(lacks uint64_t)"
16042 fi
16043
16044 break
16045 done
16046 if test "$acx_cv_header_stdint" = stddef.h; then
16047 acx_cv_header_stdint_kind="(lacks uintmax_t)"
16048 for i in stdint.h $inttype_headers; do
16049 unset ac_cv_type_uintptr_t
16050 unset ac_cv_type_uint32_t
16051 unset ac_cv_type_uint64_t
16052 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
16053 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
16054 #include <$i>
16055 "
16056 if test "x$ac_cv_type_uint32_t" = x""yes; then :
16057 acx_cv_header_stdint=$i
16058 else
16059 continue
16060 fi
16061
16062 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16063 #include <$i>
16064 "
16065 if test "x$ac_cv_type_uint64_t" = x""yes; then :
16066
16067 fi
16068
16069 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16070 #include <$i>
16071 "
16072 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
16073
16074 fi
16075
16076 break
16077 done
16078 fi
16079 if test "$acx_cv_header_stdint" = stddef.h; then
16080 acx_cv_header_stdint_kind="(u_intXX_t style)"
16081 for i in sys/types.h $inttype_headers; do
16082 unset ac_cv_type_u_int32_t
16083 unset ac_cv_type_u_int64_t
16084 $as_echo_n "looking for u_intXX_t types in $i, " >&6
16085 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
16086 #include <$i>
16087 "
16088 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
16089 acx_cv_header_stdint=$i
16090 else
16091 continue
16092 fi
16093
16094 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
16095 #include <$i>
16096 "
16097 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
16098
16099 fi
16100
16101 break
16102 done
16103 fi
16104 if test "$acx_cv_header_stdint" = stddef.h; then
16105 acx_cv_header_stdint_kind="(using manual detection)"
16106 fi
16107
16108 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
16109 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
16110 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
16111 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
16112 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
16113
16114 # ----------------- Summarize what we found so far
16115
16116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
16117 $as_echo_n "checking what to include in gstdint.h... " >&6; }
16118
16119 case `$as_basename -- gstdint.h ||
16120 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
16121 Xgstdint.h : 'X\(//\)$' \| \
16122 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
16123 $as_echo X/gstdint.h |
16124 sed '/^.*\/\([^/][^/]*\)\/*$/{
16125 s//\1/
16126 q
16127 }
16128 /^X\/\(\/\/\)$/{
16129 s//\1/
16130 q
16131 }
16132 /^X\/\(\/\).*/{
16133 s//\1/
16134 q
16135 }
16136 s/.*/./; q'` in
16137 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16138 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16139 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16140 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16141 *) ;;
16142 esac
16143
16144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
16145 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
16146
16147 # ----------------- done included file, check C basic types --------
16148
16149 # Lacking an uintptr_t? Test size of void *
16150 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
16151 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
16152 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16153 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16154 # This bug is HP SR number 8606223364.
16155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16156 $as_echo_n "checking size of void *... " >&6; }
16157 if test "${ac_cv_sizeof_void_p+set}" = set; then :
16158 $as_echo_n "(cached) " >&6
16159 else
16160 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
16161
16162 else
16163 if test "$ac_cv_type_void_p" = yes; then
16164 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16165 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16166 { as_fn_set_status 77
16167 as_fn_error "cannot compute sizeof (void *)
16168 See \`config.log' for more details." "$LINENO" 5; }; }
16169 else
16170 ac_cv_sizeof_void_p=0
16171 fi
16172 fi
16173
16174 fi
16175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16176 $as_echo "$ac_cv_sizeof_void_p" >&6; }
16177
16178
16179
16180 cat >>confdefs.h <<_ACEOF
16181 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16182 _ACEOF
16183
16184 ;;
16185 esac
16186
16187 # Lacking an uint64_t? Test size of long
16188 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
16189 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
16190 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16191 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16192 # This bug is HP SR number 8606223364.
16193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16194 $as_echo_n "checking size of long... " >&6; }
16195 if test "${ac_cv_sizeof_long+set}" = set; then :
16196 $as_echo_n "(cached) " >&6
16197 else
16198 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16199
16200 else
16201 if test "$ac_cv_type_long" = yes; then
16202 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16203 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16204 { as_fn_set_status 77
16205 as_fn_error "cannot compute sizeof (long)
16206 See \`config.log' for more details." "$LINENO" 5; }; }
16207 else
16208 ac_cv_sizeof_long=0
16209 fi
16210 fi
16211
16212 fi
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16214 $as_echo "$ac_cv_sizeof_long" >&6; }
16215
16216
16217
16218 cat >>confdefs.h <<_ACEOF
16219 #define SIZEOF_LONG $ac_cv_sizeof_long
16220 _ACEOF
16221
16222 ;;
16223 esac
16224
16225 if test $acx_cv_header_stdint = stddef.h; then
16226 # Lacking a good header? Test size of everything and deduce all types.
16227 # The cast to long int works around a bug in the HP C Compiler
16228 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16229 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16230 # This bug is HP SR number 8606223364.
16231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16232 $as_echo_n "checking size of int... " >&6; }
16233 if test "${ac_cv_sizeof_int+set}" = set; then :
16234 $as_echo_n "(cached) " >&6
16235 else
16236 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
16237
16238 else
16239 if test "$ac_cv_type_int" = yes; then
16240 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16242 { as_fn_set_status 77
16243 as_fn_error "cannot compute sizeof (int)
16244 See \`config.log' for more details." "$LINENO" 5; }; }
16245 else
16246 ac_cv_sizeof_int=0
16247 fi
16248 fi
16249
16250 fi
16251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16252 $as_echo "$ac_cv_sizeof_int" >&6; }
16253
16254
16255
16256 cat >>confdefs.h <<_ACEOF
16257 #define SIZEOF_INT $ac_cv_sizeof_int
16258 _ACEOF
16259
16260
16261 # The cast to long int works around a bug in the HP C Compiler
16262 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16263 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16264 # This bug is HP SR number 8606223364.
16265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16266 $as_echo_n "checking size of short... " >&6; }
16267 if test "${ac_cv_sizeof_short+set}" = set; then :
16268 $as_echo_n "(cached) " >&6
16269 else
16270 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
16271
16272 else
16273 if test "$ac_cv_type_short" = yes; then
16274 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16275 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16276 { as_fn_set_status 77
16277 as_fn_error "cannot compute sizeof (short)
16278 See \`config.log' for more details." "$LINENO" 5; }; }
16279 else
16280 ac_cv_sizeof_short=0
16281 fi
16282 fi
16283
16284 fi
16285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16286 $as_echo "$ac_cv_sizeof_short" >&6; }
16287
16288
16289
16290 cat >>confdefs.h <<_ACEOF
16291 #define SIZEOF_SHORT $ac_cv_sizeof_short
16292 _ACEOF
16293
16294
16295 # The cast to long int works around a bug in the HP C Compiler
16296 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16297 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16298 # This bug is HP SR number 8606223364.
16299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16300 $as_echo_n "checking size of char... " >&6; }
16301 if test "${ac_cv_sizeof_char+set}" = set; then :
16302 $as_echo_n "(cached) " >&6
16303 else
16304 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
16305
16306 else
16307 if test "$ac_cv_type_char" = yes; then
16308 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16309 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16310 { as_fn_set_status 77
16311 as_fn_error "cannot compute sizeof (char)
16312 See \`config.log' for more details." "$LINENO" 5; }; }
16313 else
16314 ac_cv_sizeof_char=0
16315 fi
16316 fi
16317
16318 fi
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16320 $as_echo "$ac_cv_sizeof_char" >&6; }
16321
16322
16323
16324 cat >>confdefs.h <<_ACEOF
16325 #define SIZEOF_CHAR $ac_cv_sizeof_char
16326 _ACEOF
16327
16328
16329
16330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
16331 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
16332 case "$ac_cv_sizeof_char" in
16333 1) acx_cv_type_int8_t=char ;;
16334 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
16335 esac
16336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
16337 $as_echo "$acx_cv_type_int8_t" >&6; }
16338
16339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
16340 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
16341 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16342 2:*) acx_cv_type_int16_t=int ;;
16343 *:2) acx_cv_type_int16_t=short ;;
16344 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
16345 esac
16346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16347 $as_echo "$acx_cv_type_int16_t" >&6; }
16348
16349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16350 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
16351 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16352 4:*) acx_cv_type_int32_t=int ;;
16353 *:4) acx_cv_type_int32_t=long ;;
16354 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
16355 esac
16356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16357 $as_echo "$acx_cv_type_int32_t" >&6; }
16358 fi
16359
16360 # These tests are here to make the output prettier
16361
16362 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16363 case "$ac_cv_sizeof_long" in
16364 8) acx_cv_type_int64_t=long ;;
16365 esac
16366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16367 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
16368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16369 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16370 fi
16371
16372 # Now we can use the above types
16373
16374 if test "$ac_cv_type_uintptr_t" != yes; then
16375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16376 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16377 case $ac_cv_sizeof_void_p in
16378 2) acx_cv_type_intptr_t=int16_t ;;
16379 4) acx_cv_type_intptr_t=int32_t ;;
16380 8) acx_cv_type_intptr_t=int64_t ;;
16381 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
16382 esac
16383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16384 $as_echo "$acx_cv_type_intptr_t" >&6; }
16385 fi
16386
16387 # ----------------- done all checks, emit header -------------
16388 ac_config_commands="$ac_config_commands gstdint.h"
16389
16390
16391
16392
16393 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
16394 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
16395
16396 cat >>confdefs.h <<_ACEOF
16397 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
16398 _ACEOF
16399
16400
16401 fi
16402 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
16403 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
16404
16405 cat >>confdefs.h <<_ACEOF
16406 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
16407 _ACEOF
16408
16409
16410 fi
16411 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
16412 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
16413
16414 cat >>confdefs.h <<_ACEOF
16415 #define HAVE_STRUCT_STAT_ST_RDEV 1
16416 _ACEOF
16417
16418
16419 fi
16420
16421
16422 # Check for library functions.
16423
16424
16425
16426 for ac_func in $ac_func_list
16427 do :
16428 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16429 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16430 eval as_val=\$$as_ac_var
16431 if test "x$as_val" = x""yes; then :
16432 cat >>confdefs.h <<_ACEOF
16433 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16434 _ACEOF
16435
16436 fi
16437 done
16438
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538
16539 # Check for C99 (and other IEEE) math functions
16540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
16541 $as_echo_n "checking for sin in -lm... " >&6; }
16542 if test "${ac_cv_lib_m_sin+set}" = set; then :
16543 $as_echo_n "(cached) " >&6
16544 else
16545 ac_check_lib_save_LIBS=$LIBS
16546 LIBS="-lm $LIBS"
16547 if test x$gcc_no_link = xyes; then
16548 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16549 fi
16550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16551 /* end confdefs.h. */
16552
16553 /* Override any GCC internal prototype to avoid an error.
16554 Use char because int might match the return type of a GCC
16555 builtin and then its argument prototype would still apply. */
16556 #ifdef __cplusplus
16557 extern "C"
16558 #endif
16559 char sin ();
16560 int
16561 main ()
16562 {
16563 return sin ();
16564 ;
16565 return 0;
16566 }
16567 _ACEOF
16568 if ac_fn_c_try_link "$LINENO"; then :
16569 ac_cv_lib_m_sin=yes
16570 else
16571 ac_cv_lib_m_sin=no
16572 fi
16573 rm -f core conftest.err conftest.$ac_objext \
16574 conftest$ac_exeext conftest.$ac_ext
16575 LIBS=$ac_check_lib_save_LIBS
16576 fi
16577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
16578 $as_echo "$ac_cv_lib_m_sin" >&6; }
16579 if test "x$ac_cv_lib_m_sin" = x""yes; then :
16580 cat >>confdefs.h <<_ACEOF
16581 #define HAVE_LIBM 1
16582 _ACEOF
16583
16584 LIBS="-lm $LIBS"
16585
16586 fi
16587
16588
16589
16590
16591
16592
16593
16594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosf" >&5
16595 $as_echo_n "checking for acosf... " >&6; }
16596 if test "${gcc_cv_math_func_acosf+set}" = set; then :
16597 $as_echo_n "(cached) " >&6
16598 else
16599 if test x$gcc_no_link = xyes; then
16600 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16601 fi
16602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16603 /* end confdefs.h. */
16604
16605 #ifdef HAVE_COMPLEX_H
16606 #include <complex.h>
16607 #endif
16608 #ifdef HAVE_MATH_H
16609 #include <math.h>
16610 #endif
16611
16612 int (*ptr)() = (int (*)())acosf;
16613
16614 int
16615 main ()
16616 {
16617 return 0;
16618 }
16619
16620 _ACEOF
16621 if ac_fn_c_try_link "$LINENO"; then :
16622 gcc_cv_math_func_acosf=yes
16623 else
16624 gcc_cv_math_func_acosf=no
16625 fi
16626 rm -f core conftest.err conftest.$ac_objext \
16627 conftest$ac_exeext conftest.$ac_ext
16628 fi
16629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosf" >&5
16630 $as_echo "$gcc_cv_math_func_acosf" >&6; }
16631 if test $gcc_cv_math_func_acosf = yes; then
16632
16633 $as_echo "#define HAVE_ACOSF 1" >>confdefs.h
16634
16635 fi
16636
16637
16638
16639
16640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acos" >&5
16641 $as_echo_n "checking for acos... " >&6; }
16642 if test "${gcc_cv_math_func_acos+set}" = set; then :
16643 $as_echo_n "(cached) " >&6
16644 else
16645 if test x$gcc_no_link = xyes; then
16646 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16647 fi
16648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16649 /* end confdefs.h. */
16650
16651 #ifdef HAVE_COMPLEX_H
16652 #include <complex.h>
16653 #endif
16654 #ifdef HAVE_MATH_H
16655 #include <math.h>
16656 #endif
16657
16658 int (*ptr)() = (int (*)())acos;
16659
16660 int
16661 main ()
16662 {
16663 return 0;
16664 }
16665
16666 _ACEOF
16667 if ac_fn_c_try_link "$LINENO"; then :
16668 gcc_cv_math_func_acos=yes
16669 else
16670 gcc_cv_math_func_acos=no
16671 fi
16672 rm -f core conftest.err conftest.$ac_objext \
16673 conftest$ac_exeext conftest.$ac_ext
16674 fi
16675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acos" >&5
16676 $as_echo "$gcc_cv_math_func_acos" >&6; }
16677 if test $gcc_cv_math_func_acos = yes; then
16678
16679 $as_echo "#define HAVE_ACOS 1" >>confdefs.h
16680
16681 fi
16682
16683
16684
16685
16686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosl" >&5
16687 $as_echo_n "checking for acosl... " >&6; }
16688 if test "${gcc_cv_math_func_acosl+set}" = set; then :
16689 $as_echo_n "(cached) " >&6
16690 else
16691 if test x$gcc_no_link = xyes; then
16692 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16693 fi
16694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16695 /* end confdefs.h. */
16696
16697 #ifdef HAVE_COMPLEX_H
16698 #include <complex.h>
16699 #endif
16700 #ifdef HAVE_MATH_H
16701 #include <math.h>
16702 #endif
16703
16704 int (*ptr)() = (int (*)())acosl;
16705
16706 int
16707 main ()
16708 {
16709 return 0;
16710 }
16711
16712 _ACEOF
16713 if ac_fn_c_try_link "$LINENO"; then :
16714 gcc_cv_math_func_acosl=yes
16715 else
16716 gcc_cv_math_func_acosl=no
16717 fi
16718 rm -f core conftest.err conftest.$ac_objext \
16719 conftest$ac_exeext conftest.$ac_ext
16720 fi
16721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosl" >&5
16722 $as_echo "$gcc_cv_math_func_acosl" >&6; }
16723 if test $gcc_cv_math_func_acosl = yes; then
16724
16725 $as_echo "#define HAVE_ACOSL 1" >>confdefs.h
16726
16727 fi
16728
16729
16730
16731
16732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshf" >&5
16733 $as_echo_n "checking for acoshf... " >&6; }
16734 if test "${gcc_cv_math_func_acoshf+set}" = set; then :
16735 $as_echo_n "(cached) " >&6
16736 else
16737 if test x$gcc_no_link = xyes; then
16738 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16739 fi
16740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16741 /* end confdefs.h. */
16742
16743 #ifdef HAVE_COMPLEX_H
16744 #include <complex.h>
16745 #endif
16746 #ifdef HAVE_MATH_H
16747 #include <math.h>
16748 #endif
16749
16750 int (*ptr)() = (int (*)())acoshf;
16751
16752 int
16753 main ()
16754 {
16755 return 0;
16756 }
16757
16758 _ACEOF
16759 if ac_fn_c_try_link "$LINENO"; then :
16760 gcc_cv_math_func_acoshf=yes
16761 else
16762 gcc_cv_math_func_acoshf=no
16763 fi
16764 rm -f core conftest.err conftest.$ac_objext \
16765 conftest$ac_exeext conftest.$ac_ext
16766 fi
16767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshf" >&5
16768 $as_echo "$gcc_cv_math_func_acoshf" >&6; }
16769 if test $gcc_cv_math_func_acoshf = yes; then
16770
16771 $as_echo "#define HAVE_ACOSHF 1" >>confdefs.h
16772
16773 fi
16774
16775
16776
16777
16778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosh" >&5
16779 $as_echo_n "checking for acosh... " >&6; }
16780 if test "${gcc_cv_math_func_acosh+set}" = set; then :
16781 $as_echo_n "(cached) " >&6
16782 else
16783 if test x$gcc_no_link = xyes; then
16784 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16785 fi
16786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16787 /* end confdefs.h. */
16788
16789 #ifdef HAVE_COMPLEX_H
16790 #include <complex.h>
16791 #endif
16792 #ifdef HAVE_MATH_H
16793 #include <math.h>
16794 #endif
16795
16796 int (*ptr)() = (int (*)())acosh;
16797
16798 int
16799 main ()
16800 {
16801 return 0;
16802 }
16803
16804 _ACEOF
16805 if ac_fn_c_try_link "$LINENO"; then :
16806 gcc_cv_math_func_acosh=yes
16807 else
16808 gcc_cv_math_func_acosh=no
16809 fi
16810 rm -f core conftest.err conftest.$ac_objext \
16811 conftest$ac_exeext conftest.$ac_ext
16812 fi
16813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosh" >&5
16814 $as_echo "$gcc_cv_math_func_acosh" >&6; }
16815 if test $gcc_cv_math_func_acosh = yes; then
16816
16817 $as_echo "#define HAVE_ACOSH 1" >>confdefs.h
16818
16819 fi
16820
16821
16822
16823
16824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshl" >&5
16825 $as_echo_n "checking for acoshl... " >&6; }
16826 if test "${gcc_cv_math_func_acoshl+set}" = set; then :
16827 $as_echo_n "(cached) " >&6
16828 else
16829 if test x$gcc_no_link = xyes; then
16830 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16831 fi
16832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16833 /* end confdefs.h. */
16834
16835 #ifdef HAVE_COMPLEX_H
16836 #include <complex.h>
16837 #endif
16838 #ifdef HAVE_MATH_H
16839 #include <math.h>
16840 #endif
16841
16842 int (*ptr)() = (int (*)())acoshl;
16843
16844 int
16845 main ()
16846 {
16847 return 0;
16848 }
16849
16850 _ACEOF
16851 if ac_fn_c_try_link "$LINENO"; then :
16852 gcc_cv_math_func_acoshl=yes
16853 else
16854 gcc_cv_math_func_acoshl=no
16855 fi
16856 rm -f core conftest.err conftest.$ac_objext \
16857 conftest$ac_exeext conftest.$ac_ext
16858 fi
16859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshl" >&5
16860 $as_echo "$gcc_cv_math_func_acoshl" >&6; }
16861 if test $gcc_cv_math_func_acoshl = yes; then
16862
16863 $as_echo "#define HAVE_ACOSHL 1" >>confdefs.h
16864
16865 fi
16866
16867
16868
16869
16870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinf" >&5
16871 $as_echo_n "checking for asinf... " >&6; }
16872 if test "${gcc_cv_math_func_asinf+set}" = set; then :
16873 $as_echo_n "(cached) " >&6
16874 else
16875 if test x$gcc_no_link = xyes; then
16876 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16877 fi
16878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16879 /* end confdefs.h. */
16880
16881 #ifdef HAVE_COMPLEX_H
16882 #include <complex.h>
16883 #endif
16884 #ifdef HAVE_MATH_H
16885 #include <math.h>
16886 #endif
16887
16888 int (*ptr)() = (int (*)())asinf;
16889
16890 int
16891 main ()
16892 {
16893 return 0;
16894 }
16895
16896 _ACEOF
16897 if ac_fn_c_try_link "$LINENO"; then :
16898 gcc_cv_math_func_asinf=yes
16899 else
16900 gcc_cv_math_func_asinf=no
16901 fi
16902 rm -f core conftest.err conftest.$ac_objext \
16903 conftest$ac_exeext conftest.$ac_ext
16904 fi
16905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinf" >&5
16906 $as_echo "$gcc_cv_math_func_asinf" >&6; }
16907 if test $gcc_cv_math_func_asinf = yes; then
16908
16909 $as_echo "#define HAVE_ASINF 1" >>confdefs.h
16910
16911 fi
16912
16913
16914
16915
16916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin" >&5
16917 $as_echo_n "checking for asin... " >&6; }
16918 if test "${gcc_cv_math_func_asin+set}" = set; then :
16919 $as_echo_n "(cached) " >&6
16920 else
16921 if test x$gcc_no_link = xyes; then
16922 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16923 fi
16924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16925 /* end confdefs.h. */
16926
16927 #ifdef HAVE_COMPLEX_H
16928 #include <complex.h>
16929 #endif
16930 #ifdef HAVE_MATH_H
16931 #include <math.h>
16932 #endif
16933
16934 int (*ptr)() = (int (*)())asin;
16935
16936 int
16937 main ()
16938 {
16939 return 0;
16940 }
16941
16942 _ACEOF
16943 if ac_fn_c_try_link "$LINENO"; then :
16944 gcc_cv_math_func_asin=yes
16945 else
16946 gcc_cv_math_func_asin=no
16947 fi
16948 rm -f core conftest.err conftest.$ac_objext \
16949 conftest$ac_exeext conftest.$ac_ext
16950 fi
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asin" >&5
16952 $as_echo "$gcc_cv_math_func_asin" >&6; }
16953 if test $gcc_cv_math_func_asin = yes; then
16954
16955 $as_echo "#define HAVE_ASIN 1" >>confdefs.h
16956
16957 fi
16958
16959
16960
16961
16962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinl" >&5
16963 $as_echo_n "checking for asinl... " >&6; }
16964 if test "${gcc_cv_math_func_asinl+set}" = set; then :
16965 $as_echo_n "(cached) " >&6
16966 else
16967 if test x$gcc_no_link = xyes; then
16968 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16969 fi
16970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16971 /* end confdefs.h. */
16972
16973 #ifdef HAVE_COMPLEX_H
16974 #include <complex.h>
16975 #endif
16976 #ifdef HAVE_MATH_H
16977 #include <math.h>
16978 #endif
16979
16980 int (*ptr)() = (int (*)())asinl;
16981
16982 int
16983 main ()
16984 {
16985 return 0;
16986 }
16987
16988 _ACEOF
16989 if ac_fn_c_try_link "$LINENO"; then :
16990 gcc_cv_math_func_asinl=yes
16991 else
16992 gcc_cv_math_func_asinl=no
16993 fi
16994 rm -f core conftest.err conftest.$ac_objext \
16995 conftest$ac_exeext conftest.$ac_ext
16996 fi
16997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinl" >&5
16998 $as_echo "$gcc_cv_math_func_asinl" >&6; }
16999 if test $gcc_cv_math_func_asinl = yes; then
17000
17001 $as_echo "#define HAVE_ASINL 1" >>confdefs.h
17002
17003 fi
17004
17005
17006
17007
17008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhf" >&5
17009 $as_echo_n "checking for asinhf... " >&6; }
17010 if test "${gcc_cv_math_func_asinhf+set}" = set; then :
17011 $as_echo_n "(cached) " >&6
17012 else
17013 if test x$gcc_no_link = xyes; then
17014 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17015 fi
17016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17017 /* end confdefs.h. */
17018
17019 #ifdef HAVE_COMPLEX_H
17020 #include <complex.h>
17021 #endif
17022 #ifdef HAVE_MATH_H
17023 #include <math.h>
17024 #endif
17025
17026 int (*ptr)() = (int (*)())asinhf;
17027
17028 int
17029 main ()
17030 {
17031 return 0;
17032 }
17033
17034 _ACEOF
17035 if ac_fn_c_try_link "$LINENO"; then :
17036 gcc_cv_math_func_asinhf=yes
17037 else
17038 gcc_cv_math_func_asinhf=no
17039 fi
17040 rm -f core conftest.err conftest.$ac_objext \
17041 conftest$ac_exeext conftest.$ac_ext
17042 fi
17043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhf" >&5
17044 $as_echo "$gcc_cv_math_func_asinhf" >&6; }
17045 if test $gcc_cv_math_func_asinhf = yes; then
17046
17047 $as_echo "#define HAVE_ASINHF 1" >>confdefs.h
17048
17049 fi
17050
17051
17052
17053
17054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinh" >&5
17055 $as_echo_n "checking for asinh... " >&6; }
17056 if test "${gcc_cv_math_func_asinh+set}" = set; then :
17057 $as_echo_n "(cached) " >&6
17058 else
17059 if test x$gcc_no_link = xyes; then
17060 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17061 fi
17062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17063 /* end confdefs.h. */
17064
17065 #ifdef HAVE_COMPLEX_H
17066 #include <complex.h>
17067 #endif
17068 #ifdef HAVE_MATH_H
17069 #include <math.h>
17070 #endif
17071
17072 int (*ptr)() = (int (*)())asinh;
17073
17074 int
17075 main ()
17076 {
17077 return 0;
17078 }
17079
17080 _ACEOF
17081 if ac_fn_c_try_link "$LINENO"; then :
17082 gcc_cv_math_func_asinh=yes
17083 else
17084 gcc_cv_math_func_asinh=no
17085 fi
17086 rm -f core conftest.err conftest.$ac_objext \
17087 conftest$ac_exeext conftest.$ac_ext
17088 fi
17089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinh" >&5
17090 $as_echo "$gcc_cv_math_func_asinh" >&6; }
17091 if test $gcc_cv_math_func_asinh = yes; then
17092
17093 $as_echo "#define HAVE_ASINH 1" >>confdefs.h
17094
17095 fi
17096
17097
17098
17099
17100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhl" >&5
17101 $as_echo_n "checking for asinhl... " >&6; }
17102 if test "${gcc_cv_math_func_asinhl+set}" = set; then :
17103 $as_echo_n "(cached) " >&6
17104 else
17105 if test x$gcc_no_link = xyes; then
17106 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17107 fi
17108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17109 /* end confdefs.h. */
17110
17111 #ifdef HAVE_COMPLEX_H
17112 #include <complex.h>
17113 #endif
17114 #ifdef HAVE_MATH_H
17115 #include <math.h>
17116 #endif
17117
17118 int (*ptr)() = (int (*)())asinhl;
17119
17120 int
17121 main ()
17122 {
17123 return 0;
17124 }
17125
17126 _ACEOF
17127 if ac_fn_c_try_link "$LINENO"; then :
17128 gcc_cv_math_func_asinhl=yes
17129 else
17130 gcc_cv_math_func_asinhl=no
17131 fi
17132 rm -f core conftest.err conftest.$ac_objext \
17133 conftest$ac_exeext conftest.$ac_ext
17134 fi
17135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhl" >&5
17136 $as_echo "$gcc_cv_math_func_asinhl" >&6; }
17137 if test $gcc_cv_math_func_asinhl = yes; then
17138
17139 $as_echo "#define HAVE_ASINHL 1" >>confdefs.h
17140
17141 fi
17142
17143
17144
17145
17146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f" >&5
17147 $as_echo_n "checking for atan2f... " >&6; }
17148 if test "${gcc_cv_math_func_atan2f+set}" = set; then :
17149 $as_echo_n "(cached) " >&6
17150 else
17151 if test x$gcc_no_link = xyes; then
17152 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17153 fi
17154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17155 /* end confdefs.h. */
17156
17157 #ifdef HAVE_COMPLEX_H
17158 #include <complex.h>
17159 #endif
17160 #ifdef HAVE_MATH_H
17161 #include <math.h>
17162 #endif
17163
17164 int (*ptr)() = (int (*)())atan2f;
17165
17166 int
17167 main ()
17168 {
17169 return 0;
17170 }
17171
17172 _ACEOF
17173 if ac_fn_c_try_link "$LINENO"; then :
17174 gcc_cv_math_func_atan2f=yes
17175 else
17176 gcc_cv_math_func_atan2f=no
17177 fi
17178 rm -f core conftest.err conftest.$ac_objext \
17179 conftest$ac_exeext conftest.$ac_ext
17180 fi
17181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2f" >&5
17182 $as_echo "$gcc_cv_math_func_atan2f" >&6; }
17183 if test $gcc_cv_math_func_atan2f = yes; then
17184
17185 $as_echo "#define HAVE_ATAN2F 1" >>confdefs.h
17186
17187 fi
17188
17189
17190
17191
17192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2" >&5
17193 $as_echo_n "checking for atan2... " >&6; }
17194 if test "${gcc_cv_math_func_atan2+set}" = set; then :
17195 $as_echo_n "(cached) " >&6
17196 else
17197 if test x$gcc_no_link = xyes; then
17198 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17199 fi
17200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17201 /* end confdefs.h. */
17202
17203 #ifdef HAVE_COMPLEX_H
17204 #include <complex.h>
17205 #endif
17206 #ifdef HAVE_MATH_H
17207 #include <math.h>
17208 #endif
17209
17210 int (*ptr)() = (int (*)())atan2;
17211
17212 int
17213 main ()
17214 {
17215 return 0;
17216 }
17217
17218 _ACEOF
17219 if ac_fn_c_try_link "$LINENO"; then :
17220 gcc_cv_math_func_atan2=yes
17221 else
17222 gcc_cv_math_func_atan2=no
17223 fi
17224 rm -f core conftest.err conftest.$ac_objext \
17225 conftest$ac_exeext conftest.$ac_ext
17226 fi
17227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2" >&5
17228 $as_echo "$gcc_cv_math_func_atan2" >&6; }
17229 if test $gcc_cv_math_func_atan2 = yes; then
17230
17231 $as_echo "#define HAVE_ATAN2 1" >>confdefs.h
17232
17233 fi
17234
17235
17236
17237
17238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l" >&5
17239 $as_echo_n "checking for atan2l... " >&6; }
17240 if test "${gcc_cv_math_func_atan2l+set}" = set; then :
17241 $as_echo_n "(cached) " >&6
17242 else
17243 if test x$gcc_no_link = xyes; then
17244 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17245 fi
17246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17247 /* end confdefs.h. */
17248
17249 #ifdef HAVE_COMPLEX_H
17250 #include <complex.h>
17251 #endif
17252 #ifdef HAVE_MATH_H
17253 #include <math.h>
17254 #endif
17255
17256 int (*ptr)() = (int (*)())atan2l;
17257
17258 int
17259 main ()
17260 {
17261 return 0;
17262 }
17263
17264 _ACEOF
17265 if ac_fn_c_try_link "$LINENO"; then :
17266 gcc_cv_math_func_atan2l=yes
17267 else
17268 gcc_cv_math_func_atan2l=no
17269 fi
17270 rm -f core conftest.err conftest.$ac_objext \
17271 conftest$ac_exeext conftest.$ac_ext
17272 fi
17273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2l" >&5
17274 $as_echo "$gcc_cv_math_func_atan2l" >&6; }
17275 if test $gcc_cv_math_func_atan2l = yes; then
17276
17277 $as_echo "#define HAVE_ATAN2L 1" >>confdefs.h
17278
17279 fi
17280
17281
17282
17283
17284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanf" >&5
17285 $as_echo_n "checking for atanf... " >&6; }
17286 if test "${gcc_cv_math_func_atanf+set}" = set; then :
17287 $as_echo_n "(cached) " >&6
17288 else
17289 if test x$gcc_no_link = xyes; then
17290 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17291 fi
17292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17293 /* end confdefs.h. */
17294
17295 #ifdef HAVE_COMPLEX_H
17296 #include <complex.h>
17297 #endif
17298 #ifdef HAVE_MATH_H
17299 #include <math.h>
17300 #endif
17301
17302 int (*ptr)() = (int (*)())atanf;
17303
17304 int
17305 main ()
17306 {
17307 return 0;
17308 }
17309
17310 _ACEOF
17311 if ac_fn_c_try_link "$LINENO"; then :
17312 gcc_cv_math_func_atanf=yes
17313 else
17314 gcc_cv_math_func_atanf=no
17315 fi
17316 rm -f core conftest.err conftest.$ac_objext \
17317 conftest$ac_exeext conftest.$ac_ext
17318 fi
17319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanf" >&5
17320 $as_echo "$gcc_cv_math_func_atanf" >&6; }
17321 if test $gcc_cv_math_func_atanf = yes; then
17322
17323 $as_echo "#define HAVE_ATANF 1" >>confdefs.h
17324
17325 fi
17326
17327
17328
17329
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan" >&5
17331 $as_echo_n "checking for atan... " >&6; }
17332 if test "${gcc_cv_math_func_atan+set}" = set; then :
17333 $as_echo_n "(cached) " >&6
17334 else
17335 if test x$gcc_no_link = xyes; then
17336 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17337 fi
17338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17339 /* end confdefs.h. */
17340
17341 #ifdef HAVE_COMPLEX_H
17342 #include <complex.h>
17343 #endif
17344 #ifdef HAVE_MATH_H
17345 #include <math.h>
17346 #endif
17347
17348 int (*ptr)() = (int (*)())atan;
17349
17350 int
17351 main ()
17352 {
17353 return 0;
17354 }
17355
17356 _ACEOF
17357 if ac_fn_c_try_link "$LINENO"; then :
17358 gcc_cv_math_func_atan=yes
17359 else
17360 gcc_cv_math_func_atan=no
17361 fi
17362 rm -f core conftest.err conftest.$ac_objext \
17363 conftest$ac_exeext conftest.$ac_ext
17364 fi
17365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan" >&5
17366 $as_echo "$gcc_cv_math_func_atan" >&6; }
17367 if test $gcc_cv_math_func_atan = yes; then
17368
17369 $as_echo "#define HAVE_ATAN 1" >>confdefs.h
17370
17371 fi
17372
17373
17374
17375
17376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanl" >&5
17377 $as_echo_n "checking for atanl... " >&6; }
17378 if test "${gcc_cv_math_func_atanl+set}" = set; then :
17379 $as_echo_n "(cached) " >&6
17380 else
17381 if test x$gcc_no_link = xyes; then
17382 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17383 fi
17384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17385 /* end confdefs.h. */
17386
17387 #ifdef HAVE_COMPLEX_H
17388 #include <complex.h>
17389 #endif
17390 #ifdef HAVE_MATH_H
17391 #include <math.h>
17392 #endif
17393
17394 int (*ptr)() = (int (*)())atanl;
17395
17396 int
17397 main ()
17398 {
17399 return 0;
17400 }
17401
17402 _ACEOF
17403 if ac_fn_c_try_link "$LINENO"; then :
17404 gcc_cv_math_func_atanl=yes
17405 else
17406 gcc_cv_math_func_atanl=no
17407 fi
17408 rm -f core conftest.err conftest.$ac_objext \
17409 conftest$ac_exeext conftest.$ac_ext
17410 fi
17411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanl" >&5
17412 $as_echo "$gcc_cv_math_func_atanl" >&6; }
17413 if test $gcc_cv_math_func_atanl = yes; then
17414
17415 $as_echo "#define HAVE_ATANL 1" >>confdefs.h
17416
17417 fi
17418
17419
17420
17421
17422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhf" >&5
17423 $as_echo_n "checking for atanhf... " >&6; }
17424 if test "${gcc_cv_math_func_atanhf+set}" = set; then :
17425 $as_echo_n "(cached) " >&6
17426 else
17427 if test x$gcc_no_link = xyes; then
17428 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17429 fi
17430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17431 /* end confdefs.h. */
17432
17433 #ifdef HAVE_COMPLEX_H
17434 #include <complex.h>
17435 #endif
17436 #ifdef HAVE_MATH_H
17437 #include <math.h>
17438 #endif
17439
17440 int (*ptr)() = (int (*)())atanhf;
17441
17442 int
17443 main ()
17444 {
17445 return 0;
17446 }
17447
17448 _ACEOF
17449 if ac_fn_c_try_link "$LINENO"; then :
17450 gcc_cv_math_func_atanhf=yes
17451 else
17452 gcc_cv_math_func_atanhf=no
17453 fi
17454 rm -f core conftest.err conftest.$ac_objext \
17455 conftest$ac_exeext conftest.$ac_ext
17456 fi
17457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhf" >&5
17458 $as_echo "$gcc_cv_math_func_atanhf" >&6; }
17459 if test $gcc_cv_math_func_atanhf = yes; then
17460
17461 $as_echo "#define HAVE_ATANHF 1" >>confdefs.h
17462
17463 fi
17464
17465
17466
17467
17468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanh" >&5
17469 $as_echo_n "checking for atanh... " >&6; }
17470 if test "${gcc_cv_math_func_atanh+set}" = set; then :
17471 $as_echo_n "(cached) " >&6
17472 else
17473 if test x$gcc_no_link = xyes; then
17474 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17475 fi
17476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17477 /* end confdefs.h. */
17478
17479 #ifdef HAVE_COMPLEX_H
17480 #include <complex.h>
17481 #endif
17482 #ifdef HAVE_MATH_H
17483 #include <math.h>
17484 #endif
17485
17486 int (*ptr)() = (int (*)())atanh;
17487
17488 int
17489 main ()
17490 {
17491 return 0;
17492 }
17493
17494 _ACEOF
17495 if ac_fn_c_try_link "$LINENO"; then :
17496 gcc_cv_math_func_atanh=yes
17497 else
17498 gcc_cv_math_func_atanh=no
17499 fi
17500 rm -f core conftest.err conftest.$ac_objext \
17501 conftest$ac_exeext conftest.$ac_ext
17502 fi
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanh" >&5
17504 $as_echo "$gcc_cv_math_func_atanh" >&6; }
17505 if test $gcc_cv_math_func_atanh = yes; then
17506
17507 $as_echo "#define HAVE_ATANH 1" >>confdefs.h
17508
17509 fi
17510
17511
17512
17513
17514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhl" >&5
17515 $as_echo_n "checking for atanhl... " >&6; }
17516 if test "${gcc_cv_math_func_atanhl+set}" = set; then :
17517 $as_echo_n "(cached) " >&6
17518 else
17519 if test x$gcc_no_link = xyes; then
17520 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17521 fi
17522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17523 /* end confdefs.h. */
17524
17525 #ifdef HAVE_COMPLEX_H
17526 #include <complex.h>
17527 #endif
17528 #ifdef HAVE_MATH_H
17529 #include <math.h>
17530 #endif
17531
17532 int (*ptr)() = (int (*)())atanhl;
17533
17534 int
17535 main ()
17536 {
17537 return 0;
17538 }
17539
17540 _ACEOF
17541 if ac_fn_c_try_link "$LINENO"; then :
17542 gcc_cv_math_func_atanhl=yes
17543 else
17544 gcc_cv_math_func_atanhl=no
17545 fi
17546 rm -f core conftest.err conftest.$ac_objext \
17547 conftest$ac_exeext conftest.$ac_ext
17548 fi
17549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhl" >&5
17550 $as_echo "$gcc_cv_math_func_atanhl" >&6; }
17551 if test $gcc_cv_math_func_atanhl = yes; then
17552
17553 $as_echo "#define HAVE_ATANHL 1" >>confdefs.h
17554
17555 fi
17556
17557
17558
17559
17560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargf" >&5
17561 $as_echo_n "checking for cargf... " >&6; }
17562 if test "${gcc_cv_math_func_cargf+set}" = set; then :
17563 $as_echo_n "(cached) " >&6
17564 else
17565 if test x$gcc_no_link = xyes; then
17566 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17567 fi
17568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17569 /* end confdefs.h. */
17570
17571 #ifdef HAVE_COMPLEX_H
17572 #include <complex.h>
17573 #endif
17574 #ifdef HAVE_MATH_H
17575 #include <math.h>
17576 #endif
17577
17578 int (*ptr)() = (int (*)())cargf;
17579
17580 int
17581 main ()
17582 {
17583 return 0;
17584 }
17585
17586 _ACEOF
17587 if ac_fn_c_try_link "$LINENO"; then :
17588 gcc_cv_math_func_cargf=yes
17589 else
17590 gcc_cv_math_func_cargf=no
17591 fi
17592 rm -f core conftest.err conftest.$ac_objext \
17593 conftest$ac_exeext conftest.$ac_ext
17594 fi
17595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargf" >&5
17596 $as_echo "$gcc_cv_math_func_cargf" >&6; }
17597 if test $gcc_cv_math_func_cargf = yes; then
17598
17599 $as_echo "#define HAVE_CARGF 1" >>confdefs.h
17600
17601 fi
17602
17603
17604
17605
17606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for carg" >&5
17607 $as_echo_n "checking for carg... " >&6; }
17608 if test "${gcc_cv_math_func_carg+set}" = set; then :
17609 $as_echo_n "(cached) " >&6
17610 else
17611 if test x$gcc_no_link = xyes; then
17612 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17613 fi
17614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17615 /* end confdefs.h. */
17616
17617 #ifdef HAVE_COMPLEX_H
17618 #include <complex.h>
17619 #endif
17620 #ifdef HAVE_MATH_H
17621 #include <math.h>
17622 #endif
17623
17624 int (*ptr)() = (int (*)())carg;
17625
17626 int
17627 main ()
17628 {
17629 return 0;
17630 }
17631
17632 _ACEOF
17633 if ac_fn_c_try_link "$LINENO"; then :
17634 gcc_cv_math_func_carg=yes
17635 else
17636 gcc_cv_math_func_carg=no
17637 fi
17638 rm -f core conftest.err conftest.$ac_objext \
17639 conftest$ac_exeext conftest.$ac_ext
17640 fi
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_carg" >&5
17642 $as_echo "$gcc_cv_math_func_carg" >&6; }
17643 if test $gcc_cv_math_func_carg = yes; then
17644
17645 $as_echo "#define HAVE_CARG 1" >>confdefs.h
17646
17647 fi
17648
17649
17650
17651
17652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargl" >&5
17653 $as_echo_n "checking for cargl... " >&6; }
17654 if test "${gcc_cv_math_func_cargl+set}" = set; then :
17655 $as_echo_n "(cached) " >&6
17656 else
17657 if test x$gcc_no_link = xyes; then
17658 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17659 fi
17660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17661 /* end confdefs.h. */
17662
17663 #ifdef HAVE_COMPLEX_H
17664 #include <complex.h>
17665 #endif
17666 #ifdef HAVE_MATH_H
17667 #include <math.h>
17668 #endif
17669
17670 int (*ptr)() = (int (*)())cargl;
17671
17672 int
17673 main ()
17674 {
17675 return 0;
17676 }
17677
17678 _ACEOF
17679 if ac_fn_c_try_link "$LINENO"; then :
17680 gcc_cv_math_func_cargl=yes
17681 else
17682 gcc_cv_math_func_cargl=no
17683 fi
17684 rm -f core conftest.err conftest.$ac_objext \
17685 conftest$ac_exeext conftest.$ac_ext
17686 fi
17687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargl" >&5
17688 $as_echo "$gcc_cv_math_func_cargl" >&6; }
17689 if test $gcc_cv_math_func_cargl = yes; then
17690
17691 $as_echo "#define HAVE_CARGL 1" >>confdefs.h
17692
17693 fi
17694
17695
17696
17697
17698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceilf" >&5
17699 $as_echo_n "checking for ceilf... " >&6; }
17700 if test "${gcc_cv_math_func_ceilf+set}" = set; then :
17701 $as_echo_n "(cached) " >&6
17702 else
17703 if test x$gcc_no_link = xyes; then
17704 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17705 fi
17706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17707 /* end confdefs.h. */
17708
17709 #ifdef HAVE_COMPLEX_H
17710 #include <complex.h>
17711 #endif
17712 #ifdef HAVE_MATH_H
17713 #include <math.h>
17714 #endif
17715
17716 int (*ptr)() = (int (*)())ceilf;
17717
17718 int
17719 main ()
17720 {
17721 return 0;
17722 }
17723
17724 _ACEOF
17725 if ac_fn_c_try_link "$LINENO"; then :
17726 gcc_cv_math_func_ceilf=yes
17727 else
17728 gcc_cv_math_func_ceilf=no
17729 fi
17730 rm -f core conftest.err conftest.$ac_objext \
17731 conftest$ac_exeext conftest.$ac_ext
17732 fi
17733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceilf" >&5
17734 $as_echo "$gcc_cv_math_func_ceilf" >&6; }
17735 if test $gcc_cv_math_func_ceilf = yes; then
17736
17737 $as_echo "#define HAVE_CEILF 1" >>confdefs.h
17738
17739 fi
17740
17741
17742
17743
17744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil" >&5
17745 $as_echo_n "checking for ceil... " >&6; }
17746 if test "${gcc_cv_math_func_ceil+set}" = set; then :
17747 $as_echo_n "(cached) " >&6
17748 else
17749 if test x$gcc_no_link = xyes; then
17750 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17751 fi
17752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17753 /* end confdefs.h. */
17754
17755 #ifdef HAVE_COMPLEX_H
17756 #include <complex.h>
17757 #endif
17758 #ifdef HAVE_MATH_H
17759 #include <math.h>
17760 #endif
17761
17762 int (*ptr)() = (int (*)())ceil;
17763
17764 int
17765 main ()
17766 {
17767 return 0;
17768 }
17769
17770 _ACEOF
17771 if ac_fn_c_try_link "$LINENO"; then :
17772 gcc_cv_math_func_ceil=yes
17773 else
17774 gcc_cv_math_func_ceil=no
17775 fi
17776 rm -f core conftest.err conftest.$ac_objext \
17777 conftest$ac_exeext conftest.$ac_ext
17778 fi
17779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceil" >&5
17780 $as_echo "$gcc_cv_math_func_ceil" >&6; }
17781 if test $gcc_cv_math_func_ceil = yes; then
17782
17783 $as_echo "#define HAVE_CEIL 1" >>confdefs.h
17784
17785 fi
17786
17787
17788
17789
17790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceill" >&5
17791 $as_echo_n "checking for ceill... " >&6; }
17792 if test "${gcc_cv_math_func_ceill+set}" = set; then :
17793 $as_echo_n "(cached) " >&6
17794 else
17795 if test x$gcc_no_link = xyes; then
17796 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17797 fi
17798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17799 /* end confdefs.h. */
17800
17801 #ifdef HAVE_COMPLEX_H
17802 #include <complex.h>
17803 #endif
17804 #ifdef HAVE_MATH_H
17805 #include <math.h>
17806 #endif
17807
17808 int (*ptr)() = (int (*)())ceill;
17809
17810 int
17811 main ()
17812 {
17813 return 0;
17814 }
17815
17816 _ACEOF
17817 if ac_fn_c_try_link "$LINENO"; then :
17818 gcc_cv_math_func_ceill=yes
17819 else
17820 gcc_cv_math_func_ceill=no
17821 fi
17822 rm -f core conftest.err conftest.$ac_objext \
17823 conftest$ac_exeext conftest.$ac_ext
17824 fi
17825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceill" >&5
17826 $as_echo "$gcc_cv_math_func_ceill" >&6; }
17827 if test $gcc_cv_math_func_ceill = yes; then
17828
17829 $as_echo "#define HAVE_CEILL 1" >>confdefs.h
17830
17831 fi
17832
17833
17834
17835
17836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignf" >&5
17837 $as_echo_n "checking for copysignf... " >&6; }
17838 if test "${gcc_cv_math_func_copysignf+set}" = set; then :
17839 $as_echo_n "(cached) " >&6
17840 else
17841 if test x$gcc_no_link = xyes; then
17842 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17843 fi
17844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17845 /* end confdefs.h. */
17846
17847 #ifdef HAVE_COMPLEX_H
17848 #include <complex.h>
17849 #endif
17850 #ifdef HAVE_MATH_H
17851 #include <math.h>
17852 #endif
17853
17854 int (*ptr)() = (int (*)())copysignf;
17855
17856 int
17857 main ()
17858 {
17859 return 0;
17860 }
17861
17862 _ACEOF
17863 if ac_fn_c_try_link "$LINENO"; then :
17864 gcc_cv_math_func_copysignf=yes
17865 else
17866 gcc_cv_math_func_copysignf=no
17867 fi
17868 rm -f core conftest.err conftest.$ac_objext \
17869 conftest$ac_exeext conftest.$ac_ext
17870 fi
17871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignf" >&5
17872 $as_echo "$gcc_cv_math_func_copysignf" >&6; }
17873 if test $gcc_cv_math_func_copysignf = yes; then
17874
17875 $as_echo "#define HAVE_COPYSIGNF 1" >>confdefs.h
17876
17877 fi
17878
17879
17880
17881
17882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysign" >&5
17883 $as_echo_n "checking for copysign... " >&6; }
17884 if test "${gcc_cv_math_func_copysign+set}" = set; then :
17885 $as_echo_n "(cached) " >&6
17886 else
17887 if test x$gcc_no_link = xyes; then
17888 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17889 fi
17890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17891 /* end confdefs.h. */
17892
17893 #ifdef HAVE_COMPLEX_H
17894 #include <complex.h>
17895 #endif
17896 #ifdef HAVE_MATH_H
17897 #include <math.h>
17898 #endif
17899
17900 int (*ptr)() = (int (*)())copysign;
17901
17902 int
17903 main ()
17904 {
17905 return 0;
17906 }
17907
17908 _ACEOF
17909 if ac_fn_c_try_link "$LINENO"; then :
17910 gcc_cv_math_func_copysign=yes
17911 else
17912 gcc_cv_math_func_copysign=no
17913 fi
17914 rm -f core conftest.err conftest.$ac_objext \
17915 conftest$ac_exeext conftest.$ac_ext
17916 fi
17917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysign" >&5
17918 $as_echo "$gcc_cv_math_func_copysign" >&6; }
17919 if test $gcc_cv_math_func_copysign = yes; then
17920
17921 $as_echo "#define HAVE_COPYSIGN 1" >>confdefs.h
17922
17923 fi
17924
17925
17926
17927
17928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignl" >&5
17929 $as_echo_n "checking for copysignl... " >&6; }
17930 if test "${gcc_cv_math_func_copysignl+set}" = set; then :
17931 $as_echo_n "(cached) " >&6
17932 else
17933 if test x$gcc_no_link = xyes; then
17934 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17935 fi
17936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17937 /* end confdefs.h. */
17938
17939 #ifdef HAVE_COMPLEX_H
17940 #include <complex.h>
17941 #endif
17942 #ifdef HAVE_MATH_H
17943 #include <math.h>
17944 #endif
17945
17946 int (*ptr)() = (int (*)())copysignl;
17947
17948 int
17949 main ()
17950 {
17951 return 0;
17952 }
17953
17954 _ACEOF
17955 if ac_fn_c_try_link "$LINENO"; then :
17956 gcc_cv_math_func_copysignl=yes
17957 else
17958 gcc_cv_math_func_copysignl=no
17959 fi
17960 rm -f core conftest.err conftest.$ac_objext \
17961 conftest$ac_exeext conftest.$ac_ext
17962 fi
17963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignl" >&5
17964 $as_echo "$gcc_cv_math_func_copysignl" >&6; }
17965 if test $gcc_cv_math_func_copysignl = yes; then
17966
17967 $as_echo "#define HAVE_COPYSIGNL 1" >>confdefs.h
17968
17969 fi
17970
17971
17972
17973
17974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosf" >&5
17975 $as_echo_n "checking for cosf... " >&6; }
17976 if test "${gcc_cv_math_func_cosf+set}" = set; then :
17977 $as_echo_n "(cached) " >&6
17978 else
17979 if test x$gcc_no_link = xyes; then
17980 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17981 fi
17982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17983 /* end confdefs.h. */
17984
17985 #ifdef HAVE_COMPLEX_H
17986 #include <complex.h>
17987 #endif
17988 #ifdef HAVE_MATH_H
17989 #include <math.h>
17990 #endif
17991
17992 int (*ptr)() = (int (*)())cosf;
17993
17994 int
17995 main ()
17996 {
17997 return 0;
17998 }
17999
18000 _ACEOF
18001 if ac_fn_c_try_link "$LINENO"; then :
18002 gcc_cv_math_func_cosf=yes
18003 else
18004 gcc_cv_math_func_cosf=no
18005 fi
18006 rm -f core conftest.err conftest.$ac_objext \
18007 conftest$ac_exeext conftest.$ac_ext
18008 fi
18009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosf" >&5
18010 $as_echo "$gcc_cv_math_func_cosf" >&6; }
18011 if test $gcc_cv_math_func_cosf = yes; then
18012
18013 $as_echo "#define HAVE_COSF 1" >>confdefs.h
18014
18015 fi
18016
18017
18018
18019
18020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos" >&5
18021 $as_echo_n "checking for cos... " >&6; }
18022 if test "${gcc_cv_math_func_cos+set}" = set; then :
18023 $as_echo_n "(cached) " >&6
18024 else
18025 if test x$gcc_no_link = xyes; then
18026 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18027 fi
18028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18029 /* end confdefs.h. */
18030
18031 #ifdef HAVE_COMPLEX_H
18032 #include <complex.h>
18033 #endif
18034 #ifdef HAVE_MATH_H
18035 #include <math.h>
18036 #endif
18037
18038 int (*ptr)() = (int (*)())cos;
18039
18040 int
18041 main ()
18042 {
18043 return 0;
18044 }
18045
18046 _ACEOF
18047 if ac_fn_c_try_link "$LINENO"; then :
18048 gcc_cv_math_func_cos=yes
18049 else
18050 gcc_cv_math_func_cos=no
18051 fi
18052 rm -f core conftest.err conftest.$ac_objext \
18053 conftest$ac_exeext conftest.$ac_ext
18054 fi
18055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cos" >&5
18056 $as_echo "$gcc_cv_math_func_cos" >&6; }
18057 if test $gcc_cv_math_func_cos = yes; then
18058
18059 $as_echo "#define HAVE_COS 1" >>confdefs.h
18060
18061 fi
18062
18063
18064
18065
18066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosl" >&5
18067 $as_echo_n "checking for cosl... " >&6; }
18068 if test "${gcc_cv_math_func_cosl+set}" = set; then :
18069 $as_echo_n "(cached) " >&6
18070 else
18071 if test x$gcc_no_link = xyes; then
18072 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18073 fi
18074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18075 /* end confdefs.h. */
18076
18077 #ifdef HAVE_COMPLEX_H
18078 #include <complex.h>
18079 #endif
18080 #ifdef HAVE_MATH_H
18081 #include <math.h>
18082 #endif
18083
18084 int (*ptr)() = (int (*)())cosl;
18085
18086 int
18087 main ()
18088 {
18089 return 0;
18090 }
18091
18092 _ACEOF
18093 if ac_fn_c_try_link "$LINENO"; then :
18094 gcc_cv_math_func_cosl=yes
18095 else
18096 gcc_cv_math_func_cosl=no
18097 fi
18098 rm -f core conftest.err conftest.$ac_objext \
18099 conftest$ac_exeext conftest.$ac_ext
18100 fi
18101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosl" >&5
18102 $as_echo "$gcc_cv_math_func_cosl" >&6; }
18103 if test $gcc_cv_math_func_cosl = yes; then
18104
18105 $as_echo "#define HAVE_COSL 1" >>confdefs.h
18106
18107 fi
18108
18109
18110
18111
18112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosf" >&5
18113 $as_echo_n "checking for ccosf... " >&6; }
18114 if test "${gcc_cv_math_func_ccosf+set}" = set; then :
18115 $as_echo_n "(cached) " >&6
18116 else
18117 if test x$gcc_no_link = xyes; then
18118 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18119 fi
18120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18121 /* end confdefs.h. */
18122
18123 #ifdef HAVE_COMPLEX_H
18124 #include <complex.h>
18125 #endif
18126 #ifdef HAVE_MATH_H
18127 #include <math.h>
18128 #endif
18129
18130 int (*ptr)() = (int (*)())ccosf;
18131
18132 int
18133 main ()
18134 {
18135 return 0;
18136 }
18137
18138 _ACEOF
18139 if ac_fn_c_try_link "$LINENO"; then :
18140 gcc_cv_math_func_ccosf=yes
18141 else
18142 gcc_cv_math_func_ccosf=no
18143 fi
18144 rm -f core conftest.err conftest.$ac_objext \
18145 conftest$ac_exeext conftest.$ac_ext
18146 fi
18147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosf" >&5
18148 $as_echo "$gcc_cv_math_func_ccosf" >&6; }
18149 if test $gcc_cv_math_func_ccosf = yes; then
18150
18151 $as_echo "#define HAVE_CCOSF 1" >>confdefs.h
18152
18153 fi
18154
18155
18156
18157
18158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccos" >&5
18159 $as_echo_n "checking for ccos... " >&6; }
18160 if test "${gcc_cv_math_func_ccos+set}" = set; then :
18161 $as_echo_n "(cached) " >&6
18162 else
18163 if test x$gcc_no_link = xyes; then
18164 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18165 fi
18166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18167 /* end confdefs.h. */
18168
18169 #ifdef HAVE_COMPLEX_H
18170 #include <complex.h>
18171 #endif
18172 #ifdef HAVE_MATH_H
18173 #include <math.h>
18174 #endif
18175
18176 int (*ptr)() = (int (*)())ccos;
18177
18178 int
18179 main ()
18180 {
18181 return 0;
18182 }
18183
18184 _ACEOF
18185 if ac_fn_c_try_link "$LINENO"; then :
18186 gcc_cv_math_func_ccos=yes
18187 else
18188 gcc_cv_math_func_ccos=no
18189 fi
18190 rm -f core conftest.err conftest.$ac_objext \
18191 conftest$ac_exeext conftest.$ac_ext
18192 fi
18193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccos" >&5
18194 $as_echo "$gcc_cv_math_func_ccos" >&6; }
18195 if test $gcc_cv_math_func_ccos = yes; then
18196
18197 $as_echo "#define HAVE_CCOS 1" >>confdefs.h
18198
18199 fi
18200
18201
18202
18203
18204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosl" >&5
18205 $as_echo_n "checking for ccosl... " >&6; }
18206 if test "${gcc_cv_math_func_ccosl+set}" = set; then :
18207 $as_echo_n "(cached) " >&6
18208 else
18209 if test x$gcc_no_link = xyes; then
18210 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18211 fi
18212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18213 /* end confdefs.h. */
18214
18215 #ifdef HAVE_COMPLEX_H
18216 #include <complex.h>
18217 #endif
18218 #ifdef HAVE_MATH_H
18219 #include <math.h>
18220 #endif
18221
18222 int (*ptr)() = (int (*)())ccosl;
18223
18224 int
18225 main ()
18226 {
18227 return 0;
18228 }
18229
18230 _ACEOF
18231 if ac_fn_c_try_link "$LINENO"; then :
18232 gcc_cv_math_func_ccosl=yes
18233 else
18234 gcc_cv_math_func_ccosl=no
18235 fi
18236 rm -f core conftest.err conftest.$ac_objext \
18237 conftest$ac_exeext conftest.$ac_ext
18238 fi
18239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosl" >&5
18240 $as_echo "$gcc_cv_math_func_ccosl" >&6; }
18241 if test $gcc_cv_math_func_ccosl = yes; then
18242
18243 $as_echo "#define HAVE_CCOSL 1" >>confdefs.h
18244
18245 fi
18246
18247
18248
18249
18250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshf" >&5
18251 $as_echo_n "checking for coshf... " >&6; }
18252 if test "${gcc_cv_math_func_coshf+set}" = set; then :
18253 $as_echo_n "(cached) " >&6
18254 else
18255 if test x$gcc_no_link = xyes; then
18256 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18257 fi
18258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18259 /* end confdefs.h. */
18260
18261 #ifdef HAVE_COMPLEX_H
18262 #include <complex.h>
18263 #endif
18264 #ifdef HAVE_MATH_H
18265 #include <math.h>
18266 #endif
18267
18268 int (*ptr)() = (int (*)())coshf;
18269
18270 int
18271 main ()
18272 {
18273 return 0;
18274 }
18275
18276 _ACEOF
18277 if ac_fn_c_try_link "$LINENO"; then :
18278 gcc_cv_math_func_coshf=yes
18279 else
18280 gcc_cv_math_func_coshf=no
18281 fi
18282 rm -f core conftest.err conftest.$ac_objext \
18283 conftest$ac_exeext conftest.$ac_ext
18284 fi
18285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshf" >&5
18286 $as_echo "$gcc_cv_math_func_coshf" >&6; }
18287 if test $gcc_cv_math_func_coshf = yes; then
18288
18289 $as_echo "#define HAVE_COSHF 1" >>confdefs.h
18290
18291 fi
18292
18293
18294
18295
18296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosh" >&5
18297 $as_echo_n "checking for cosh... " >&6; }
18298 if test "${gcc_cv_math_func_cosh+set}" = set; then :
18299 $as_echo_n "(cached) " >&6
18300 else
18301 if test x$gcc_no_link = xyes; then
18302 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18303 fi
18304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18305 /* end confdefs.h. */
18306
18307 #ifdef HAVE_COMPLEX_H
18308 #include <complex.h>
18309 #endif
18310 #ifdef HAVE_MATH_H
18311 #include <math.h>
18312 #endif
18313
18314 int (*ptr)() = (int (*)())cosh;
18315
18316 int
18317 main ()
18318 {
18319 return 0;
18320 }
18321
18322 _ACEOF
18323 if ac_fn_c_try_link "$LINENO"; then :
18324 gcc_cv_math_func_cosh=yes
18325 else
18326 gcc_cv_math_func_cosh=no
18327 fi
18328 rm -f core conftest.err conftest.$ac_objext \
18329 conftest$ac_exeext conftest.$ac_ext
18330 fi
18331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosh" >&5
18332 $as_echo "$gcc_cv_math_func_cosh" >&6; }
18333 if test $gcc_cv_math_func_cosh = yes; then
18334
18335 $as_echo "#define HAVE_COSH 1" >>confdefs.h
18336
18337 fi
18338
18339
18340
18341
18342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshl" >&5
18343 $as_echo_n "checking for coshl... " >&6; }
18344 if test "${gcc_cv_math_func_coshl+set}" = set; then :
18345 $as_echo_n "(cached) " >&6
18346 else
18347 if test x$gcc_no_link = xyes; then
18348 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18349 fi
18350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18351 /* end confdefs.h. */
18352
18353 #ifdef HAVE_COMPLEX_H
18354 #include <complex.h>
18355 #endif
18356 #ifdef HAVE_MATH_H
18357 #include <math.h>
18358 #endif
18359
18360 int (*ptr)() = (int (*)())coshl;
18361
18362 int
18363 main ()
18364 {
18365 return 0;
18366 }
18367
18368 _ACEOF
18369 if ac_fn_c_try_link "$LINENO"; then :
18370 gcc_cv_math_func_coshl=yes
18371 else
18372 gcc_cv_math_func_coshl=no
18373 fi
18374 rm -f core conftest.err conftest.$ac_objext \
18375 conftest$ac_exeext conftest.$ac_ext
18376 fi
18377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshl" >&5
18378 $as_echo "$gcc_cv_math_func_coshl" >&6; }
18379 if test $gcc_cv_math_func_coshl = yes; then
18380
18381 $as_echo "#define HAVE_COSHL 1" >>confdefs.h
18382
18383 fi
18384
18385
18386
18387
18388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshf" >&5
18389 $as_echo_n "checking for ccoshf... " >&6; }
18390 if test "${gcc_cv_math_func_ccoshf+set}" = set; then :
18391 $as_echo_n "(cached) " >&6
18392 else
18393 if test x$gcc_no_link = xyes; then
18394 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18395 fi
18396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18397 /* end confdefs.h. */
18398
18399 #ifdef HAVE_COMPLEX_H
18400 #include <complex.h>
18401 #endif
18402 #ifdef HAVE_MATH_H
18403 #include <math.h>
18404 #endif
18405
18406 int (*ptr)() = (int (*)())ccoshf;
18407
18408 int
18409 main ()
18410 {
18411 return 0;
18412 }
18413
18414 _ACEOF
18415 if ac_fn_c_try_link "$LINENO"; then :
18416 gcc_cv_math_func_ccoshf=yes
18417 else
18418 gcc_cv_math_func_ccoshf=no
18419 fi
18420 rm -f core conftest.err conftest.$ac_objext \
18421 conftest$ac_exeext conftest.$ac_ext
18422 fi
18423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshf" >&5
18424 $as_echo "$gcc_cv_math_func_ccoshf" >&6; }
18425 if test $gcc_cv_math_func_ccoshf = yes; then
18426
18427 $as_echo "#define HAVE_CCOSHF 1" >>confdefs.h
18428
18429 fi
18430
18431
18432
18433
18434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosh" >&5
18435 $as_echo_n "checking for ccosh... " >&6; }
18436 if test "${gcc_cv_math_func_ccosh+set}" = set; then :
18437 $as_echo_n "(cached) " >&6
18438 else
18439 if test x$gcc_no_link = xyes; then
18440 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18441 fi
18442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18443 /* end confdefs.h. */
18444
18445 #ifdef HAVE_COMPLEX_H
18446 #include <complex.h>
18447 #endif
18448 #ifdef HAVE_MATH_H
18449 #include <math.h>
18450 #endif
18451
18452 int (*ptr)() = (int (*)())ccosh;
18453
18454 int
18455 main ()
18456 {
18457 return 0;
18458 }
18459
18460 _ACEOF
18461 if ac_fn_c_try_link "$LINENO"; then :
18462 gcc_cv_math_func_ccosh=yes
18463 else
18464 gcc_cv_math_func_ccosh=no
18465 fi
18466 rm -f core conftest.err conftest.$ac_objext \
18467 conftest$ac_exeext conftest.$ac_ext
18468 fi
18469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosh" >&5
18470 $as_echo "$gcc_cv_math_func_ccosh" >&6; }
18471 if test $gcc_cv_math_func_ccosh = yes; then
18472
18473 $as_echo "#define HAVE_CCOSH 1" >>confdefs.h
18474
18475 fi
18476
18477
18478
18479
18480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshl" >&5
18481 $as_echo_n "checking for ccoshl... " >&6; }
18482 if test "${gcc_cv_math_func_ccoshl+set}" = set; then :
18483 $as_echo_n "(cached) " >&6
18484 else
18485 if test x$gcc_no_link = xyes; then
18486 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18487 fi
18488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18489 /* end confdefs.h. */
18490
18491 #ifdef HAVE_COMPLEX_H
18492 #include <complex.h>
18493 #endif
18494 #ifdef HAVE_MATH_H
18495 #include <math.h>
18496 #endif
18497
18498 int (*ptr)() = (int (*)())ccoshl;
18499
18500 int
18501 main ()
18502 {
18503 return 0;
18504 }
18505
18506 _ACEOF
18507 if ac_fn_c_try_link "$LINENO"; then :
18508 gcc_cv_math_func_ccoshl=yes
18509 else
18510 gcc_cv_math_func_ccoshl=no
18511 fi
18512 rm -f core conftest.err conftest.$ac_objext \
18513 conftest$ac_exeext conftest.$ac_ext
18514 fi
18515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshl" >&5
18516 $as_echo "$gcc_cv_math_func_ccoshl" >&6; }
18517 if test $gcc_cv_math_func_ccoshl = yes; then
18518
18519 $as_echo "#define HAVE_CCOSHL 1" >>confdefs.h
18520
18521 fi
18522
18523
18524
18525
18526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf" >&5
18527 $as_echo_n "checking for expf... " >&6; }
18528 if test "${gcc_cv_math_func_expf+set}" = set; then :
18529 $as_echo_n "(cached) " >&6
18530 else
18531 if test x$gcc_no_link = xyes; then
18532 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18533 fi
18534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18535 /* end confdefs.h. */
18536
18537 #ifdef HAVE_COMPLEX_H
18538 #include <complex.h>
18539 #endif
18540 #ifdef HAVE_MATH_H
18541 #include <math.h>
18542 #endif
18543
18544 int (*ptr)() = (int (*)())expf;
18545
18546 int
18547 main ()
18548 {
18549 return 0;
18550 }
18551
18552 _ACEOF
18553 if ac_fn_c_try_link "$LINENO"; then :
18554 gcc_cv_math_func_expf=yes
18555 else
18556 gcc_cv_math_func_expf=no
18557 fi
18558 rm -f core conftest.err conftest.$ac_objext \
18559 conftest$ac_exeext conftest.$ac_ext
18560 fi
18561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expf" >&5
18562 $as_echo "$gcc_cv_math_func_expf" >&6; }
18563 if test $gcc_cv_math_func_expf = yes; then
18564
18565 $as_echo "#define HAVE_EXPF 1" >>confdefs.h
18566
18567 fi
18568
18569
18570
18571
18572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp" >&5
18573 $as_echo_n "checking for exp... " >&6; }
18574 if test "${gcc_cv_math_func_exp+set}" = set; then :
18575 $as_echo_n "(cached) " >&6
18576 else
18577 if test x$gcc_no_link = xyes; then
18578 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18579 fi
18580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18581 /* end confdefs.h. */
18582
18583 #ifdef HAVE_COMPLEX_H
18584 #include <complex.h>
18585 #endif
18586 #ifdef HAVE_MATH_H
18587 #include <math.h>
18588 #endif
18589
18590 int (*ptr)() = (int (*)())exp;
18591
18592 int
18593 main ()
18594 {
18595 return 0;
18596 }
18597
18598 _ACEOF
18599 if ac_fn_c_try_link "$LINENO"; then :
18600 gcc_cv_math_func_exp=yes
18601 else
18602 gcc_cv_math_func_exp=no
18603 fi
18604 rm -f core conftest.err conftest.$ac_objext \
18605 conftest$ac_exeext conftest.$ac_ext
18606 fi
18607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_exp" >&5
18608 $as_echo "$gcc_cv_math_func_exp" >&6; }
18609 if test $gcc_cv_math_func_exp = yes; then
18610
18611 $as_echo "#define HAVE_EXP 1" >>confdefs.h
18612
18613 fi
18614
18615
18616
18617
18618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl" >&5
18619 $as_echo_n "checking for expl... " >&6; }
18620 if test "${gcc_cv_math_func_expl+set}" = set; then :
18621 $as_echo_n "(cached) " >&6
18622 else
18623 if test x$gcc_no_link = xyes; then
18624 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18625 fi
18626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18627 /* end confdefs.h. */
18628
18629 #ifdef HAVE_COMPLEX_H
18630 #include <complex.h>
18631 #endif
18632 #ifdef HAVE_MATH_H
18633 #include <math.h>
18634 #endif
18635
18636 int (*ptr)() = (int (*)())expl;
18637
18638 int
18639 main ()
18640 {
18641 return 0;
18642 }
18643
18644 _ACEOF
18645 if ac_fn_c_try_link "$LINENO"; then :
18646 gcc_cv_math_func_expl=yes
18647 else
18648 gcc_cv_math_func_expl=no
18649 fi
18650 rm -f core conftest.err conftest.$ac_objext \
18651 conftest$ac_exeext conftest.$ac_ext
18652 fi
18653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expl" >&5
18654 $as_echo "$gcc_cv_math_func_expl" >&6; }
18655 if test $gcc_cv_math_func_expl = yes; then
18656
18657 $as_echo "#define HAVE_EXPL 1" >>confdefs.h
18658
18659 fi
18660
18661
18662
18663
18664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpf" >&5
18665 $as_echo_n "checking for cexpf... " >&6; }
18666 if test "${gcc_cv_math_func_cexpf+set}" = set; then :
18667 $as_echo_n "(cached) " >&6
18668 else
18669 if test x$gcc_no_link = xyes; then
18670 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18671 fi
18672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18673 /* end confdefs.h. */
18674
18675 #ifdef HAVE_COMPLEX_H
18676 #include <complex.h>
18677 #endif
18678 #ifdef HAVE_MATH_H
18679 #include <math.h>
18680 #endif
18681
18682 int (*ptr)() = (int (*)())cexpf;
18683
18684 int
18685 main ()
18686 {
18687 return 0;
18688 }
18689
18690 _ACEOF
18691 if ac_fn_c_try_link "$LINENO"; then :
18692 gcc_cv_math_func_cexpf=yes
18693 else
18694 gcc_cv_math_func_cexpf=no
18695 fi
18696 rm -f core conftest.err conftest.$ac_objext \
18697 conftest$ac_exeext conftest.$ac_ext
18698 fi
18699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpf" >&5
18700 $as_echo "$gcc_cv_math_func_cexpf" >&6; }
18701 if test $gcc_cv_math_func_cexpf = yes; then
18702
18703 $as_echo "#define HAVE_CEXPF 1" >>confdefs.h
18704
18705 fi
18706
18707
18708
18709
18710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexp" >&5
18711 $as_echo_n "checking for cexp... " >&6; }
18712 if test "${gcc_cv_math_func_cexp+set}" = set; then :
18713 $as_echo_n "(cached) " >&6
18714 else
18715 if test x$gcc_no_link = xyes; then
18716 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18717 fi
18718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18719 /* end confdefs.h. */
18720
18721 #ifdef HAVE_COMPLEX_H
18722 #include <complex.h>
18723 #endif
18724 #ifdef HAVE_MATH_H
18725 #include <math.h>
18726 #endif
18727
18728 int (*ptr)() = (int (*)())cexp;
18729
18730 int
18731 main ()
18732 {
18733 return 0;
18734 }
18735
18736 _ACEOF
18737 if ac_fn_c_try_link "$LINENO"; then :
18738 gcc_cv_math_func_cexp=yes
18739 else
18740 gcc_cv_math_func_cexp=no
18741 fi
18742 rm -f core conftest.err conftest.$ac_objext \
18743 conftest$ac_exeext conftest.$ac_ext
18744 fi
18745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexp" >&5
18746 $as_echo "$gcc_cv_math_func_cexp" >&6; }
18747 if test $gcc_cv_math_func_cexp = yes; then
18748
18749 $as_echo "#define HAVE_CEXP 1" >>confdefs.h
18750
18751 fi
18752
18753
18754
18755
18756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpl" >&5
18757 $as_echo_n "checking for cexpl... " >&6; }
18758 if test "${gcc_cv_math_func_cexpl+set}" = set; then :
18759 $as_echo_n "(cached) " >&6
18760 else
18761 if test x$gcc_no_link = xyes; then
18762 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18763 fi
18764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18765 /* end confdefs.h. */
18766
18767 #ifdef HAVE_COMPLEX_H
18768 #include <complex.h>
18769 #endif
18770 #ifdef HAVE_MATH_H
18771 #include <math.h>
18772 #endif
18773
18774 int (*ptr)() = (int (*)())cexpl;
18775
18776 int
18777 main ()
18778 {
18779 return 0;
18780 }
18781
18782 _ACEOF
18783 if ac_fn_c_try_link "$LINENO"; then :
18784 gcc_cv_math_func_cexpl=yes
18785 else
18786 gcc_cv_math_func_cexpl=no
18787 fi
18788 rm -f core conftest.err conftest.$ac_objext \
18789 conftest$ac_exeext conftest.$ac_ext
18790 fi
18791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpl" >&5
18792 $as_echo "$gcc_cv_math_func_cexpl" >&6; }
18793 if test $gcc_cv_math_func_cexpl = yes; then
18794
18795 $as_echo "#define HAVE_CEXPL 1" >>confdefs.h
18796
18797 fi
18798
18799
18800
18801
18802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf" >&5
18803 $as_echo_n "checking for fabsf... " >&6; }
18804 if test "${gcc_cv_math_func_fabsf+set}" = set; then :
18805 $as_echo_n "(cached) " >&6
18806 else
18807 if test x$gcc_no_link = xyes; then
18808 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18809 fi
18810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18811 /* end confdefs.h. */
18812
18813 #ifdef HAVE_COMPLEX_H
18814 #include <complex.h>
18815 #endif
18816 #ifdef HAVE_MATH_H
18817 #include <math.h>
18818 #endif
18819
18820 int (*ptr)() = (int (*)())fabsf;
18821
18822 int
18823 main ()
18824 {
18825 return 0;
18826 }
18827
18828 _ACEOF
18829 if ac_fn_c_try_link "$LINENO"; then :
18830 gcc_cv_math_func_fabsf=yes
18831 else
18832 gcc_cv_math_func_fabsf=no
18833 fi
18834 rm -f core conftest.err conftest.$ac_objext \
18835 conftest$ac_exeext conftest.$ac_ext
18836 fi
18837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsf" >&5
18838 $as_echo "$gcc_cv_math_func_fabsf" >&6; }
18839 if test $gcc_cv_math_func_fabsf = yes; then
18840
18841 $as_echo "#define HAVE_FABSF 1" >>confdefs.h
18842
18843 fi
18844
18845
18846
18847
18848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs" >&5
18849 $as_echo_n "checking for fabs... " >&6; }
18850 if test "${gcc_cv_math_func_fabs+set}" = set; then :
18851 $as_echo_n "(cached) " >&6
18852 else
18853 if test x$gcc_no_link = xyes; then
18854 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18855 fi
18856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18857 /* end confdefs.h. */
18858
18859 #ifdef HAVE_COMPLEX_H
18860 #include <complex.h>
18861 #endif
18862 #ifdef HAVE_MATH_H
18863 #include <math.h>
18864 #endif
18865
18866 int (*ptr)() = (int (*)())fabs;
18867
18868 int
18869 main ()
18870 {
18871 return 0;
18872 }
18873
18874 _ACEOF
18875 if ac_fn_c_try_link "$LINENO"; then :
18876 gcc_cv_math_func_fabs=yes
18877 else
18878 gcc_cv_math_func_fabs=no
18879 fi
18880 rm -f core conftest.err conftest.$ac_objext \
18881 conftest$ac_exeext conftest.$ac_ext
18882 fi
18883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabs" >&5
18884 $as_echo "$gcc_cv_math_func_fabs" >&6; }
18885 if test $gcc_cv_math_func_fabs = yes; then
18886
18887 $as_echo "#define HAVE_FABS 1" >>confdefs.h
18888
18889 fi
18890
18891
18892
18893
18894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl" >&5
18895 $as_echo_n "checking for fabsl... " >&6; }
18896 if test "${gcc_cv_math_func_fabsl+set}" = set; then :
18897 $as_echo_n "(cached) " >&6
18898 else
18899 if test x$gcc_no_link = xyes; then
18900 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18901 fi
18902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18903 /* end confdefs.h. */
18904
18905 #ifdef HAVE_COMPLEX_H
18906 #include <complex.h>
18907 #endif
18908 #ifdef HAVE_MATH_H
18909 #include <math.h>
18910 #endif
18911
18912 int (*ptr)() = (int (*)())fabsl;
18913
18914 int
18915 main ()
18916 {
18917 return 0;
18918 }
18919
18920 _ACEOF
18921 if ac_fn_c_try_link "$LINENO"; then :
18922 gcc_cv_math_func_fabsl=yes
18923 else
18924 gcc_cv_math_func_fabsl=no
18925 fi
18926 rm -f core conftest.err conftest.$ac_objext \
18927 conftest$ac_exeext conftest.$ac_ext
18928 fi
18929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsl" >&5
18930 $as_echo "$gcc_cv_math_func_fabsl" >&6; }
18931 if test $gcc_cv_math_func_fabsl = yes; then
18932
18933 $as_echo "#define HAVE_FABSL 1" >>confdefs.h
18934
18935 fi
18936
18937
18938
18939
18940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsf" >&5
18941 $as_echo_n "checking for cabsf... " >&6; }
18942 if test "${gcc_cv_math_func_cabsf+set}" = set; then :
18943 $as_echo_n "(cached) " >&6
18944 else
18945 if test x$gcc_no_link = xyes; then
18946 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18947 fi
18948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18949 /* end confdefs.h. */
18950
18951 #ifdef HAVE_COMPLEX_H
18952 #include <complex.h>
18953 #endif
18954 #ifdef HAVE_MATH_H
18955 #include <math.h>
18956 #endif
18957
18958 int (*ptr)() = (int (*)())cabsf;
18959
18960 int
18961 main ()
18962 {
18963 return 0;
18964 }
18965
18966 _ACEOF
18967 if ac_fn_c_try_link "$LINENO"; then :
18968 gcc_cv_math_func_cabsf=yes
18969 else
18970 gcc_cv_math_func_cabsf=no
18971 fi
18972 rm -f core conftest.err conftest.$ac_objext \
18973 conftest$ac_exeext conftest.$ac_ext
18974 fi
18975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsf" >&5
18976 $as_echo "$gcc_cv_math_func_cabsf" >&6; }
18977 if test $gcc_cv_math_func_cabsf = yes; then
18978
18979 $as_echo "#define HAVE_CABSF 1" >>confdefs.h
18980
18981 fi
18982
18983
18984
18985
18986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabs" >&5
18987 $as_echo_n "checking for cabs... " >&6; }
18988 if test "${gcc_cv_math_func_cabs+set}" = set; then :
18989 $as_echo_n "(cached) " >&6
18990 else
18991 if test x$gcc_no_link = xyes; then
18992 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18993 fi
18994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18995 /* end confdefs.h. */
18996
18997 #ifdef HAVE_COMPLEX_H
18998 #include <complex.h>
18999 #endif
19000 #ifdef HAVE_MATH_H
19001 #include <math.h>
19002 #endif
19003
19004 int (*ptr)() = (int (*)())cabs;
19005
19006 int
19007 main ()
19008 {
19009 return 0;
19010 }
19011
19012 _ACEOF
19013 if ac_fn_c_try_link "$LINENO"; then :
19014 gcc_cv_math_func_cabs=yes
19015 else
19016 gcc_cv_math_func_cabs=no
19017 fi
19018 rm -f core conftest.err conftest.$ac_objext \
19019 conftest$ac_exeext conftest.$ac_ext
19020 fi
19021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabs" >&5
19022 $as_echo "$gcc_cv_math_func_cabs" >&6; }
19023 if test $gcc_cv_math_func_cabs = yes; then
19024
19025 $as_echo "#define HAVE_CABS 1" >>confdefs.h
19026
19027 fi
19028
19029
19030
19031
19032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsl" >&5
19033 $as_echo_n "checking for cabsl... " >&6; }
19034 if test "${gcc_cv_math_func_cabsl+set}" = set; then :
19035 $as_echo_n "(cached) " >&6
19036 else
19037 if test x$gcc_no_link = xyes; then
19038 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19039 fi
19040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19041 /* end confdefs.h. */
19042
19043 #ifdef HAVE_COMPLEX_H
19044 #include <complex.h>
19045 #endif
19046 #ifdef HAVE_MATH_H
19047 #include <math.h>
19048 #endif
19049
19050 int (*ptr)() = (int (*)())cabsl;
19051
19052 int
19053 main ()
19054 {
19055 return 0;
19056 }
19057
19058 _ACEOF
19059 if ac_fn_c_try_link "$LINENO"; then :
19060 gcc_cv_math_func_cabsl=yes
19061 else
19062 gcc_cv_math_func_cabsl=no
19063 fi
19064 rm -f core conftest.err conftest.$ac_objext \
19065 conftest$ac_exeext conftest.$ac_ext
19066 fi
19067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsl" >&5
19068 $as_echo "$gcc_cv_math_func_cabsl" >&6; }
19069 if test $gcc_cv_math_func_cabsl = yes; then
19070
19071 $as_echo "#define HAVE_CABSL 1" >>confdefs.h
19072
19073 fi
19074
19075
19076
19077
19078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorf" >&5
19079 $as_echo_n "checking for floorf... " >&6; }
19080 if test "${gcc_cv_math_func_floorf+set}" = set; then :
19081 $as_echo_n "(cached) " >&6
19082 else
19083 if test x$gcc_no_link = xyes; then
19084 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19085 fi
19086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19087 /* end confdefs.h. */
19088
19089 #ifdef HAVE_COMPLEX_H
19090 #include <complex.h>
19091 #endif
19092 #ifdef HAVE_MATH_H
19093 #include <math.h>
19094 #endif
19095
19096 int (*ptr)() = (int (*)())floorf;
19097
19098 int
19099 main ()
19100 {
19101 return 0;
19102 }
19103
19104 _ACEOF
19105 if ac_fn_c_try_link "$LINENO"; then :
19106 gcc_cv_math_func_floorf=yes
19107 else
19108 gcc_cv_math_func_floorf=no
19109 fi
19110 rm -f core conftest.err conftest.$ac_objext \
19111 conftest$ac_exeext conftest.$ac_ext
19112 fi
19113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorf" >&5
19114 $as_echo "$gcc_cv_math_func_floorf" >&6; }
19115 if test $gcc_cv_math_func_floorf = yes; then
19116
19117 $as_echo "#define HAVE_FLOORF 1" >>confdefs.h
19118
19119 fi
19120
19121
19122
19123
19124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor" >&5
19125 $as_echo_n "checking for floor... " >&6; }
19126 if test "${gcc_cv_math_func_floor+set}" = set; then :
19127 $as_echo_n "(cached) " >&6
19128 else
19129 if test x$gcc_no_link = xyes; then
19130 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19131 fi
19132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19133 /* end confdefs.h. */
19134
19135 #ifdef HAVE_COMPLEX_H
19136 #include <complex.h>
19137 #endif
19138 #ifdef HAVE_MATH_H
19139 #include <math.h>
19140 #endif
19141
19142 int (*ptr)() = (int (*)())floor;
19143
19144 int
19145 main ()
19146 {
19147 return 0;
19148 }
19149
19150 _ACEOF
19151 if ac_fn_c_try_link "$LINENO"; then :
19152 gcc_cv_math_func_floor=yes
19153 else
19154 gcc_cv_math_func_floor=no
19155 fi
19156 rm -f core conftest.err conftest.$ac_objext \
19157 conftest$ac_exeext conftest.$ac_ext
19158 fi
19159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floor" >&5
19160 $as_echo "$gcc_cv_math_func_floor" >&6; }
19161 if test $gcc_cv_math_func_floor = yes; then
19162
19163 $as_echo "#define HAVE_FLOOR 1" >>confdefs.h
19164
19165 fi
19166
19167
19168
19169
19170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorl" >&5
19171 $as_echo_n "checking for floorl... " >&6; }
19172 if test "${gcc_cv_math_func_floorl+set}" = set; then :
19173 $as_echo_n "(cached) " >&6
19174 else
19175 if test x$gcc_no_link = xyes; then
19176 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19177 fi
19178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19179 /* end confdefs.h. */
19180
19181 #ifdef HAVE_COMPLEX_H
19182 #include <complex.h>
19183 #endif
19184 #ifdef HAVE_MATH_H
19185 #include <math.h>
19186 #endif
19187
19188 int (*ptr)() = (int (*)())floorl;
19189
19190 int
19191 main ()
19192 {
19193 return 0;
19194 }
19195
19196 _ACEOF
19197 if ac_fn_c_try_link "$LINENO"; then :
19198 gcc_cv_math_func_floorl=yes
19199 else
19200 gcc_cv_math_func_floorl=no
19201 fi
19202 rm -f core conftest.err conftest.$ac_objext \
19203 conftest$ac_exeext conftest.$ac_ext
19204 fi
19205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorl" >&5
19206 $as_echo "$gcc_cv_math_func_floorl" >&6; }
19207 if test $gcc_cv_math_func_floorl = yes; then
19208
19209 $as_echo "#define HAVE_FLOORL 1" >>confdefs.h
19210
19211 fi
19212
19213
19214
19215
19216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf" >&5
19217 $as_echo_n "checking for fmodf... " >&6; }
19218 if test "${gcc_cv_math_func_fmodf+set}" = set; then :
19219 $as_echo_n "(cached) " >&6
19220 else
19221 if test x$gcc_no_link = xyes; then
19222 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19223 fi
19224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19225 /* end confdefs.h. */
19226
19227 #ifdef HAVE_COMPLEX_H
19228 #include <complex.h>
19229 #endif
19230 #ifdef HAVE_MATH_H
19231 #include <math.h>
19232 #endif
19233
19234 int (*ptr)() = (int (*)())fmodf;
19235
19236 int
19237 main ()
19238 {
19239 return 0;
19240 }
19241
19242 _ACEOF
19243 if ac_fn_c_try_link "$LINENO"; then :
19244 gcc_cv_math_func_fmodf=yes
19245 else
19246 gcc_cv_math_func_fmodf=no
19247 fi
19248 rm -f core conftest.err conftest.$ac_objext \
19249 conftest$ac_exeext conftest.$ac_ext
19250 fi
19251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodf" >&5
19252 $as_echo "$gcc_cv_math_func_fmodf" >&6; }
19253 if test $gcc_cv_math_func_fmodf = yes; then
19254
19255 $as_echo "#define HAVE_FMODF 1" >>confdefs.h
19256
19257 fi
19258
19259
19260
19261
19262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod" >&5
19263 $as_echo_n "checking for fmod... " >&6; }
19264 if test "${gcc_cv_math_func_fmod+set}" = set; then :
19265 $as_echo_n "(cached) " >&6
19266 else
19267 if test x$gcc_no_link = xyes; then
19268 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19269 fi
19270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19271 /* end confdefs.h. */
19272
19273 #ifdef HAVE_COMPLEX_H
19274 #include <complex.h>
19275 #endif
19276 #ifdef HAVE_MATH_H
19277 #include <math.h>
19278 #endif
19279
19280 int (*ptr)() = (int (*)())fmod;
19281
19282 int
19283 main ()
19284 {
19285 return 0;
19286 }
19287
19288 _ACEOF
19289 if ac_fn_c_try_link "$LINENO"; then :
19290 gcc_cv_math_func_fmod=yes
19291 else
19292 gcc_cv_math_func_fmod=no
19293 fi
19294 rm -f core conftest.err conftest.$ac_objext \
19295 conftest$ac_exeext conftest.$ac_ext
19296 fi
19297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmod" >&5
19298 $as_echo "$gcc_cv_math_func_fmod" >&6; }
19299 if test $gcc_cv_math_func_fmod = yes; then
19300
19301 $as_echo "#define HAVE_FMOD 1" >>confdefs.h
19302
19303 fi
19304
19305
19306
19307
19308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl" >&5
19309 $as_echo_n "checking for fmodl... " >&6; }
19310 if test "${gcc_cv_math_func_fmodl+set}" = set; then :
19311 $as_echo_n "(cached) " >&6
19312 else
19313 if test x$gcc_no_link = xyes; then
19314 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19315 fi
19316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19317 /* end confdefs.h. */
19318
19319 #ifdef HAVE_COMPLEX_H
19320 #include <complex.h>
19321 #endif
19322 #ifdef HAVE_MATH_H
19323 #include <math.h>
19324 #endif
19325
19326 int (*ptr)() = (int (*)())fmodl;
19327
19328 int
19329 main ()
19330 {
19331 return 0;
19332 }
19333
19334 _ACEOF
19335 if ac_fn_c_try_link "$LINENO"; then :
19336 gcc_cv_math_func_fmodl=yes
19337 else
19338 gcc_cv_math_func_fmodl=no
19339 fi
19340 rm -f core conftest.err conftest.$ac_objext \
19341 conftest$ac_exeext conftest.$ac_ext
19342 fi
19343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodl" >&5
19344 $as_echo "$gcc_cv_math_func_fmodl" >&6; }
19345 if test $gcc_cv_math_func_fmodl = yes; then
19346
19347 $as_echo "#define HAVE_FMODL 1" >>confdefs.h
19348
19349 fi
19350
19351
19352
19353
19354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf" >&5
19355 $as_echo_n "checking for frexpf... " >&6; }
19356 if test "${gcc_cv_math_func_frexpf+set}" = set; then :
19357 $as_echo_n "(cached) " >&6
19358 else
19359 if test x$gcc_no_link = xyes; then
19360 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19361 fi
19362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19363 /* end confdefs.h. */
19364
19365 #ifdef HAVE_COMPLEX_H
19366 #include <complex.h>
19367 #endif
19368 #ifdef HAVE_MATH_H
19369 #include <math.h>
19370 #endif
19371
19372 int (*ptr)() = (int (*)())frexpf;
19373
19374 int
19375 main ()
19376 {
19377 return 0;
19378 }
19379
19380 _ACEOF
19381 if ac_fn_c_try_link "$LINENO"; then :
19382 gcc_cv_math_func_frexpf=yes
19383 else
19384 gcc_cv_math_func_frexpf=no
19385 fi
19386 rm -f core conftest.err conftest.$ac_objext \
19387 conftest$ac_exeext conftest.$ac_ext
19388 fi
19389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpf" >&5
19390 $as_echo "$gcc_cv_math_func_frexpf" >&6; }
19391 if test $gcc_cv_math_func_frexpf = yes; then
19392
19393 $as_echo "#define HAVE_FREXPF 1" >>confdefs.h
19394
19395 fi
19396
19397
19398
19399
19400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexp" >&5
19401 $as_echo_n "checking for frexp... " >&6; }
19402 if test "${gcc_cv_math_func_frexp+set}" = set; then :
19403 $as_echo_n "(cached) " >&6
19404 else
19405 if test x$gcc_no_link = xyes; then
19406 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19407 fi
19408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19409 /* end confdefs.h. */
19410
19411 #ifdef HAVE_COMPLEX_H
19412 #include <complex.h>
19413 #endif
19414 #ifdef HAVE_MATH_H
19415 #include <math.h>
19416 #endif
19417
19418 int (*ptr)() = (int (*)())frexp;
19419
19420 int
19421 main ()
19422 {
19423 return 0;
19424 }
19425
19426 _ACEOF
19427 if ac_fn_c_try_link "$LINENO"; then :
19428 gcc_cv_math_func_frexp=yes
19429 else
19430 gcc_cv_math_func_frexp=no
19431 fi
19432 rm -f core conftest.err conftest.$ac_objext \
19433 conftest$ac_exeext conftest.$ac_ext
19434 fi
19435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexp" >&5
19436 $as_echo "$gcc_cv_math_func_frexp" >&6; }
19437 if test $gcc_cv_math_func_frexp = yes; then
19438
19439 $as_echo "#define HAVE_FREXP 1" >>confdefs.h
19440
19441 fi
19442
19443
19444
19445
19446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl" >&5
19447 $as_echo_n "checking for frexpl... " >&6; }
19448 if test "${gcc_cv_math_func_frexpl+set}" = set; then :
19449 $as_echo_n "(cached) " >&6
19450 else
19451 if test x$gcc_no_link = xyes; then
19452 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19453 fi
19454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19455 /* end confdefs.h. */
19456
19457 #ifdef HAVE_COMPLEX_H
19458 #include <complex.h>
19459 #endif
19460 #ifdef HAVE_MATH_H
19461 #include <math.h>
19462 #endif
19463
19464 int (*ptr)() = (int (*)())frexpl;
19465
19466 int
19467 main ()
19468 {
19469 return 0;
19470 }
19471
19472 _ACEOF
19473 if ac_fn_c_try_link "$LINENO"; then :
19474 gcc_cv_math_func_frexpl=yes
19475 else
19476 gcc_cv_math_func_frexpl=no
19477 fi
19478 rm -f core conftest.err conftest.$ac_objext \
19479 conftest$ac_exeext conftest.$ac_ext
19480 fi
19481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpl" >&5
19482 $as_echo "$gcc_cv_math_func_frexpl" >&6; }
19483 if test $gcc_cv_math_func_frexpl = yes; then
19484
19485 $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
19486
19487 fi
19488
19489
19490
19491
19492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf" >&5
19493 $as_echo_n "checking for hypotf... " >&6; }
19494 if test "${gcc_cv_math_func_hypotf+set}" = set; then :
19495 $as_echo_n "(cached) " >&6
19496 else
19497 if test x$gcc_no_link = xyes; then
19498 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19499 fi
19500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19501 /* end confdefs.h. */
19502
19503 #ifdef HAVE_COMPLEX_H
19504 #include <complex.h>
19505 #endif
19506 #ifdef HAVE_MATH_H
19507 #include <math.h>
19508 #endif
19509
19510 int (*ptr)() = (int (*)())hypotf;
19511
19512 int
19513 main ()
19514 {
19515 return 0;
19516 }
19517
19518 _ACEOF
19519 if ac_fn_c_try_link "$LINENO"; then :
19520 gcc_cv_math_func_hypotf=yes
19521 else
19522 gcc_cv_math_func_hypotf=no
19523 fi
19524 rm -f core conftest.err conftest.$ac_objext \
19525 conftest$ac_exeext conftest.$ac_ext
19526 fi
19527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotf" >&5
19528 $as_echo "$gcc_cv_math_func_hypotf" >&6; }
19529 if test $gcc_cv_math_func_hypotf = yes; then
19530
19531 $as_echo "#define HAVE_HYPOTF 1" >>confdefs.h
19532
19533 fi
19534
19535
19536
19537
19538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot" >&5
19539 $as_echo_n "checking for hypot... " >&6; }
19540 if test "${gcc_cv_math_func_hypot+set}" = set; then :
19541 $as_echo_n "(cached) " >&6
19542 else
19543 if test x$gcc_no_link = xyes; then
19544 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19545 fi
19546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19547 /* end confdefs.h. */
19548
19549 #ifdef HAVE_COMPLEX_H
19550 #include <complex.h>
19551 #endif
19552 #ifdef HAVE_MATH_H
19553 #include <math.h>
19554 #endif
19555
19556 int (*ptr)() = (int (*)())hypot;
19557
19558 int
19559 main ()
19560 {
19561 return 0;
19562 }
19563
19564 _ACEOF
19565 if ac_fn_c_try_link "$LINENO"; then :
19566 gcc_cv_math_func_hypot=yes
19567 else
19568 gcc_cv_math_func_hypot=no
19569 fi
19570 rm -f core conftest.err conftest.$ac_objext \
19571 conftest$ac_exeext conftest.$ac_ext
19572 fi
19573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypot" >&5
19574 $as_echo "$gcc_cv_math_func_hypot" >&6; }
19575 if test $gcc_cv_math_func_hypot = yes; then
19576
19577 $as_echo "#define HAVE_HYPOT 1" >>confdefs.h
19578
19579 fi
19580
19581
19582
19583
19584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl" >&5
19585 $as_echo_n "checking for hypotl... " >&6; }
19586 if test "${gcc_cv_math_func_hypotl+set}" = set; then :
19587 $as_echo_n "(cached) " >&6
19588 else
19589 if test x$gcc_no_link = xyes; then
19590 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19591 fi
19592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19593 /* end confdefs.h. */
19594
19595 #ifdef HAVE_COMPLEX_H
19596 #include <complex.h>
19597 #endif
19598 #ifdef HAVE_MATH_H
19599 #include <math.h>
19600 #endif
19601
19602 int (*ptr)() = (int (*)())hypotl;
19603
19604 int
19605 main ()
19606 {
19607 return 0;
19608 }
19609
19610 _ACEOF
19611 if ac_fn_c_try_link "$LINENO"; then :
19612 gcc_cv_math_func_hypotl=yes
19613 else
19614 gcc_cv_math_func_hypotl=no
19615 fi
19616 rm -f core conftest.err conftest.$ac_objext \
19617 conftest$ac_exeext conftest.$ac_ext
19618 fi
19619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotl" >&5
19620 $as_echo "$gcc_cv_math_func_hypotl" >&6; }
19621 if test $gcc_cv_math_func_hypotl = yes; then
19622
19623 $as_echo "#define HAVE_HYPOTL 1" >>confdefs.h
19624
19625 fi
19626
19627
19628
19629
19630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf" >&5
19631 $as_echo_n "checking for ldexpf... " >&6; }
19632 if test "${gcc_cv_math_func_ldexpf+set}" = set; then :
19633 $as_echo_n "(cached) " >&6
19634 else
19635 if test x$gcc_no_link = xyes; then
19636 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19637 fi
19638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19639 /* end confdefs.h. */
19640
19641 #ifdef HAVE_COMPLEX_H
19642 #include <complex.h>
19643 #endif
19644 #ifdef HAVE_MATH_H
19645 #include <math.h>
19646 #endif
19647
19648 int (*ptr)() = (int (*)())ldexpf;
19649
19650 int
19651 main ()
19652 {
19653 return 0;
19654 }
19655
19656 _ACEOF
19657 if ac_fn_c_try_link "$LINENO"; then :
19658 gcc_cv_math_func_ldexpf=yes
19659 else
19660 gcc_cv_math_func_ldexpf=no
19661 fi
19662 rm -f core conftest.err conftest.$ac_objext \
19663 conftest$ac_exeext conftest.$ac_ext
19664 fi
19665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpf" >&5
19666 $as_echo "$gcc_cv_math_func_ldexpf" >&6; }
19667 if test $gcc_cv_math_func_ldexpf = yes; then
19668
19669 $as_echo "#define HAVE_LDEXPF 1" >>confdefs.h
19670
19671 fi
19672
19673
19674
19675
19676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexp" >&5
19677 $as_echo_n "checking for ldexp... " >&6; }
19678 if test "${gcc_cv_math_func_ldexp+set}" = set; then :
19679 $as_echo_n "(cached) " >&6
19680 else
19681 if test x$gcc_no_link = xyes; then
19682 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19683 fi
19684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19685 /* end confdefs.h. */
19686
19687 #ifdef HAVE_COMPLEX_H
19688 #include <complex.h>
19689 #endif
19690 #ifdef HAVE_MATH_H
19691 #include <math.h>
19692 #endif
19693
19694 int (*ptr)() = (int (*)())ldexp;
19695
19696 int
19697 main ()
19698 {
19699 return 0;
19700 }
19701
19702 _ACEOF
19703 if ac_fn_c_try_link "$LINENO"; then :
19704 gcc_cv_math_func_ldexp=yes
19705 else
19706 gcc_cv_math_func_ldexp=no
19707 fi
19708 rm -f core conftest.err conftest.$ac_objext \
19709 conftest$ac_exeext conftest.$ac_ext
19710 fi
19711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexp" >&5
19712 $as_echo "$gcc_cv_math_func_ldexp" >&6; }
19713 if test $gcc_cv_math_func_ldexp = yes; then
19714
19715 $as_echo "#define HAVE_LDEXP 1" >>confdefs.h
19716
19717 fi
19718
19719
19720
19721
19722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl" >&5
19723 $as_echo_n "checking for ldexpl... " >&6; }
19724 if test "${gcc_cv_math_func_ldexpl+set}" = set; then :
19725 $as_echo_n "(cached) " >&6
19726 else
19727 if test x$gcc_no_link = xyes; then
19728 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19729 fi
19730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19731 /* end confdefs.h. */
19732
19733 #ifdef HAVE_COMPLEX_H
19734 #include <complex.h>
19735 #endif
19736 #ifdef HAVE_MATH_H
19737 #include <math.h>
19738 #endif
19739
19740 int (*ptr)() = (int (*)())ldexpl;
19741
19742 int
19743 main ()
19744 {
19745 return 0;
19746 }
19747
19748 _ACEOF
19749 if ac_fn_c_try_link "$LINENO"; then :
19750 gcc_cv_math_func_ldexpl=yes
19751 else
19752 gcc_cv_math_func_ldexpl=no
19753 fi
19754 rm -f core conftest.err conftest.$ac_objext \
19755 conftest$ac_exeext conftest.$ac_ext
19756 fi
19757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpl" >&5
19758 $as_echo "$gcc_cv_math_func_ldexpl" >&6; }
19759 if test $gcc_cv_math_func_ldexpl = yes; then
19760
19761 $as_echo "#define HAVE_LDEXPL 1" >>confdefs.h
19762
19763 fi
19764
19765
19766
19767
19768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf" >&5
19769 $as_echo_n "checking for logf... " >&6; }
19770 if test "${gcc_cv_math_func_logf+set}" = set; then :
19771 $as_echo_n "(cached) " >&6
19772 else
19773 if test x$gcc_no_link = xyes; then
19774 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19775 fi
19776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19777 /* end confdefs.h. */
19778
19779 #ifdef HAVE_COMPLEX_H
19780 #include <complex.h>
19781 #endif
19782 #ifdef HAVE_MATH_H
19783 #include <math.h>
19784 #endif
19785
19786 int (*ptr)() = (int (*)())logf;
19787
19788 int
19789 main ()
19790 {
19791 return 0;
19792 }
19793
19794 _ACEOF
19795 if ac_fn_c_try_link "$LINENO"; then :
19796 gcc_cv_math_func_logf=yes
19797 else
19798 gcc_cv_math_func_logf=no
19799 fi
19800 rm -f core conftest.err conftest.$ac_objext \
19801 conftest$ac_exeext conftest.$ac_ext
19802 fi
19803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logf" >&5
19804 $as_echo "$gcc_cv_math_func_logf" >&6; }
19805 if test $gcc_cv_math_func_logf = yes; then
19806
19807 $as_echo "#define HAVE_LOGF 1" >>confdefs.h
19808
19809 fi
19810
19811
19812
19813
19814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log" >&5
19815 $as_echo_n "checking for log... " >&6; }
19816 if test "${gcc_cv_math_func_log+set}" = set; then :
19817 $as_echo_n "(cached) " >&6
19818 else
19819 if test x$gcc_no_link = xyes; then
19820 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19821 fi
19822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19823 /* end confdefs.h. */
19824
19825 #ifdef HAVE_COMPLEX_H
19826 #include <complex.h>
19827 #endif
19828 #ifdef HAVE_MATH_H
19829 #include <math.h>
19830 #endif
19831
19832 int (*ptr)() = (int (*)())log;
19833
19834 int
19835 main ()
19836 {
19837 return 0;
19838 }
19839
19840 _ACEOF
19841 if ac_fn_c_try_link "$LINENO"; then :
19842 gcc_cv_math_func_log=yes
19843 else
19844 gcc_cv_math_func_log=no
19845 fi
19846 rm -f core conftest.err conftest.$ac_objext \
19847 conftest$ac_exeext conftest.$ac_ext
19848 fi
19849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log" >&5
19850 $as_echo "$gcc_cv_math_func_log" >&6; }
19851 if test $gcc_cv_math_func_log = yes; then
19852
19853 $as_echo "#define HAVE_LOG 1" >>confdefs.h
19854
19855 fi
19856
19857
19858
19859
19860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl" >&5
19861 $as_echo_n "checking for logl... " >&6; }
19862 if test "${gcc_cv_math_func_logl+set}" = set; then :
19863 $as_echo_n "(cached) " >&6
19864 else
19865 if test x$gcc_no_link = xyes; then
19866 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19867 fi
19868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19869 /* end confdefs.h. */
19870
19871 #ifdef HAVE_COMPLEX_H
19872 #include <complex.h>
19873 #endif
19874 #ifdef HAVE_MATH_H
19875 #include <math.h>
19876 #endif
19877
19878 int (*ptr)() = (int (*)())logl;
19879
19880 int
19881 main ()
19882 {
19883 return 0;
19884 }
19885
19886 _ACEOF
19887 if ac_fn_c_try_link "$LINENO"; then :
19888 gcc_cv_math_func_logl=yes
19889 else
19890 gcc_cv_math_func_logl=no
19891 fi
19892 rm -f core conftest.err conftest.$ac_objext \
19893 conftest$ac_exeext conftest.$ac_ext
19894 fi
19895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logl" >&5
19896 $as_echo "$gcc_cv_math_func_logl" >&6; }
19897 if test $gcc_cv_math_func_logl = yes; then
19898
19899 $as_echo "#define HAVE_LOGL 1" >>confdefs.h
19900
19901 fi
19902
19903
19904
19905
19906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogf" >&5
19907 $as_echo_n "checking for clogf... " >&6; }
19908 if test "${gcc_cv_math_func_clogf+set}" = set; then :
19909 $as_echo_n "(cached) " >&6
19910 else
19911 if test x$gcc_no_link = xyes; then
19912 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19913 fi
19914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19915 /* end confdefs.h. */
19916
19917 #ifdef HAVE_COMPLEX_H
19918 #include <complex.h>
19919 #endif
19920 #ifdef HAVE_MATH_H
19921 #include <math.h>
19922 #endif
19923
19924 int (*ptr)() = (int (*)())clogf;
19925
19926 int
19927 main ()
19928 {
19929 return 0;
19930 }
19931
19932 _ACEOF
19933 if ac_fn_c_try_link "$LINENO"; then :
19934 gcc_cv_math_func_clogf=yes
19935 else
19936 gcc_cv_math_func_clogf=no
19937 fi
19938 rm -f core conftest.err conftest.$ac_objext \
19939 conftest$ac_exeext conftest.$ac_ext
19940 fi
19941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogf" >&5
19942 $as_echo "$gcc_cv_math_func_clogf" >&6; }
19943 if test $gcc_cv_math_func_clogf = yes; then
19944
19945 $as_echo "#define HAVE_CLOGF 1" >>confdefs.h
19946
19947 fi
19948
19949
19950
19951
19952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog" >&5
19953 $as_echo_n "checking for clog... " >&6; }
19954 if test "${gcc_cv_math_func_clog+set}" = set; then :
19955 $as_echo_n "(cached) " >&6
19956 else
19957 if test x$gcc_no_link = xyes; then
19958 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19959 fi
19960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19961 /* end confdefs.h. */
19962
19963 #ifdef HAVE_COMPLEX_H
19964 #include <complex.h>
19965 #endif
19966 #ifdef HAVE_MATH_H
19967 #include <math.h>
19968 #endif
19969
19970 int (*ptr)() = (int (*)())clog;
19971
19972 int
19973 main ()
19974 {
19975 return 0;
19976 }
19977
19978 _ACEOF
19979 if ac_fn_c_try_link "$LINENO"; then :
19980 gcc_cv_math_func_clog=yes
19981 else
19982 gcc_cv_math_func_clog=no
19983 fi
19984 rm -f core conftest.err conftest.$ac_objext \
19985 conftest$ac_exeext conftest.$ac_ext
19986 fi
19987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog" >&5
19988 $as_echo "$gcc_cv_math_func_clog" >&6; }
19989 if test $gcc_cv_math_func_clog = yes; then
19990
19991 $as_echo "#define HAVE_CLOG 1" >>confdefs.h
19992
19993 fi
19994
19995
19996
19997
19998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogl" >&5
19999 $as_echo_n "checking for clogl... " >&6; }
20000 if test "${gcc_cv_math_func_clogl+set}" = set; then :
20001 $as_echo_n "(cached) " >&6
20002 else
20003 if test x$gcc_no_link = xyes; then
20004 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20005 fi
20006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20007 /* end confdefs.h. */
20008
20009 #ifdef HAVE_COMPLEX_H
20010 #include <complex.h>
20011 #endif
20012 #ifdef HAVE_MATH_H
20013 #include <math.h>
20014 #endif
20015
20016 int (*ptr)() = (int (*)())clogl;
20017
20018 int
20019 main ()
20020 {
20021 return 0;
20022 }
20023
20024 _ACEOF
20025 if ac_fn_c_try_link "$LINENO"; then :
20026 gcc_cv_math_func_clogl=yes
20027 else
20028 gcc_cv_math_func_clogl=no
20029 fi
20030 rm -f core conftest.err conftest.$ac_objext \
20031 conftest$ac_exeext conftest.$ac_ext
20032 fi
20033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogl" >&5
20034 $as_echo "$gcc_cv_math_func_clogl" >&6; }
20035 if test $gcc_cv_math_func_clogl = yes; then
20036
20037 $as_echo "#define HAVE_CLOGL 1" >>confdefs.h
20038
20039 fi
20040
20041
20042
20043
20044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f" >&5
20045 $as_echo_n "checking for log10f... " >&6; }
20046 if test "${gcc_cv_math_func_log10f+set}" = set; then :
20047 $as_echo_n "(cached) " >&6
20048 else
20049 if test x$gcc_no_link = xyes; then
20050 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20051 fi
20052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20053 /* end confdefs.h. */
20054
20055 #ifdef HAVE_COMPLEX_H
20056 #include <complex.h>
20057 #endif
20058 #ifdef HAVE_MATH_H
20059 #include <math.h>
20060 #endif
20061
20062 int (*ptr)() = (int (*)())log10f;
20063
20064 int
20065 main ()
20066 {
20067 return 0;
20068 }
20069
20070 _ACEOF
20071 if ac_fn_c_try_link "$LINENO"; then :
20072 gcc_cv_math_func_log10f=yes
20073 else
20074 gcc_cv_math_func_log10f=no
20075 fi
20076 rm -f core conftest.err conftest.$ac_objext \
20077 conftest$ac_exeext conftest.$ac_ext
20078 fi
20079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10f" >&5
20080 $as_echo "$gcc_cv_math_func_log10f" >&6; }
20081 if test $gcc_cv_math_func_log10f = yes; then
20082
20083 $as_echo "#define HAVE_LOG10F 1" >>confdefs.h
20084
20085 fi
20086
20087
20088
20089
20090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10" >&5
20091 $as_echo_n "checking for log10... " >&6; }
20092 if test "${gcc_cv_math_func_log10+set}" = set; then :
20093 $as_echo_n "(cached) " >&6
20094 else
20095 if test x$gcc_no_link = xyes; then
20096 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20097 fi
20098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20099 /* end confdefs.h. */
20100
20101 #ifdef HAVE_COMPLEX_H
20102 #include <complex.h>
20103 #endif
20104 #ifdef HAVE_MATH_H
20105 #include <math.h>
20106 #endif
20107
20108 int (*ptr)() = (int (*)())log10;
20109
20110 int
20111 main ()
20112 {
20113 return 0;
20114 }
20115
20116 _ACEOF
20117 if ac_fn_c_try_link "$LINENO"; then :
20118 gcc_cv_math_func_log10=yes
20119 else
20120 gcc_cv_math_func_log10=no
20121 fi
20122 rm -f core conftest.err conftest.$ac_objext \
20123 conftest$ac_exeext conftest.$ac_ext
20124 fi
20125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10" >&5
20126 $as_echo "$gcc_cv_math_func_log10" >&6; }
20127 if test $gcc_cv_math_func_log10 = yes; then
20128
20129 $as_echo "#define HAVE_LOG10 1" >>confdefs.h
20130
20131 fi
20132
20133
20134
20135
20136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l" >&5
20137 $as_echo_n "checking for log10l... " >&6; }
20138 if test "${gcc_cv_math_func_log10l+set}" = set; then :
20139 $as_echo_n "(cached) " >&6
20140 else
20141 if test x$gcc_no_link = xyes; then
20142 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20143 fi
20144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20145 /* end confdefs.h. */
20146
20147 #ifdef HAVE_COMPLEX_H
20148 #include <complex.h>
20149 #endif
20150 #ifdef HAVE_MATH_H
20151 #include <math.h>
20152 #endif
20153
20154 int (*ptr)() = (int (*)())log10l;
20155
20156 int
20157 main ()
20158 {
20159 return 0;
20160 }
20161
20162 _ACEOF
20163 if ac_fn_c_try_link "$LINENO"; then :
20164 gcc_cv_math_func_log10l=yes
20165 else
20166 gcc_cv_math_func_log10l=no
20167 fi
20168 rm -f core conftest.err conftest.$ac_objext \
20169 conftest$ac_exeext conftest.$ac_ext
20170 fi
20171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10l" >&5
20172 $as_echo "$gcc_cv_math_func_log10l" >&6; }
20173 if test $gcc_cv_math_func_log10l = yes; then
20174
20175 $as_echo "#define HAVE_LOG10L 1" >>confdefs.h
20176
20177 fi
20178
20179
20180
20181
20182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10f" >&5
20183 $as_echo_n "checking for clog10f... " >&6; }
20184 if test "${gcc_cv_math_func_clog10f+set}" = set; then :
20185 $as_echo_n "(cached) " >&6
20186 else
20187 if test x$gcc_no_link = xyes; then
20188 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20189 fi
20190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20191 /* end confdefs.h. */
20192
20193 #ifdef HAVE_COMPLEX_H
20194 #include <complex.h>
20195 #endif
20196 #ifdef HAVE_MATH_H
20197 #include <math.h>
20198 #endif
20199
20200 int (*ptr)() = (int (*)())clog10f;
20201
20202 int
20203 main ()
20204 {
20205 return 0;
20206 }
20207
20208 _ACEOF
20209 if ac_fn_c_try_link "$LINENO"; then :
20210 gcc_cv_math_func_clog10f=yes
20211 else
20212 gcc_cv_math_func_clog10f=no
20213 fi
20214 rm -f core conftest.err conftest.$ac_objext \
20215 conftest$ac_exeext conftest.$ac_ext
20216 fi
20217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10f" >&5
20218 $as_echo "$gcc_cv_math_func_clog10f" >&6; }
20219 if test $gcc_cv_math_func_clog10f = yes; then
20220
20221 $as_echo "#define HAVE_CLOG10F 1" >>confdefs.h
20222
20223 fi
20224
20225
20226
20227
20228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10" >&5
20229 $as_echo_n "checking for clog10... " >&6; }
20230 if test "${gcc_cv_math_func_clog10+set}" = set; then :
20231 $as_echo_n "(cached) " >&6
20232 else
20233 if test x$gcc_no_link = xyes; then
20234 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20235 fi
20236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20237 /* end confdefs.h. */
20238
20239 #ifdef HAVE_COMPLEX_H
20240 #include <complex.h>
20241 #endif
20242 #ifdef HAVE_MATH_H
20243 #include <math.h>
20244 #endif
20245
20246 int (*ptr)() = (int (*)())clog10;
20247
20248 int
20249 main ()
20250 {
20251 return 0;
20252 }
20253
20254 _ACEOF
20255 if ac_fn_c_try_link "$LINENO"; then :
20256 gcc_cv_math_func_clog10=yes
20257 else
20258 gcc_cv_math_func_clog10=no
20259 fi
20260 rm -f core conftest.err conftest.$ac_objext \
20261 conftest$ac_exeext conftest.$ac_ext
20262 fi
20263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10" >&5
20264 $as_echo "$gcc_cv_math_func_clog10" >&6; }
20265 if test $gcc_cv_math_func_clog10 = yes; then
20266
20267 $as_echo "#define HAVE_CLOG10 1" >>confdefs.h
20268
20269 fi
20270
20271
20272
20273
20274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10l" >&5
20275 $as_echo_n "checking for clog10l... " >&6; }
20276 if test "${gcc_cv_math_func_clog10l+set}" = set; then :
20277 $as_echo_n "(cached) " >&6
20278 else
20279 if test x$gcc_no_link = xyes; then
20280 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20281 fi
20282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20283 /* end confdefs.h. */
20284
20285 #ifdef HAVE_COMPLEX_H
20286 #include <complex.h>
20287 #endif
20288 #ifdef HAVE_MATH_H
20289 #include <math.h>
20290 #endif
20291
20292 int (*ptr)() = (int (*)())clog10l;
20293
20294 int
20295 main ()
20296 {
20297 return 0;
20298 }
20299
20300 _ACEOF
20301 if ac_fn_c_try_link "$LINENO"; then :
20302 gcc_cv_math_func_clog10l=yes
20303 else
20304 gcc_cv_math_func_clog10l=no
20305 fi
20306 rm -f core conftest.err conftest.$ac_objext \
20307 conftest$ac_exeext conftest.$ac_ext
20308 fi
20309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10l" >&5
20310 $as_echo "$gcc_cv_math_func_clog10l" >&6; }
20311 if test $gcc_cv_math_func_clog10l = yes; then
20312
20313 $as_echo "#define HAVE_CLOG10L 1" >>confdefs.h
20314
20315 fi
20316
20317
20318
20319
20320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterf" >&5
20321 $as_echo_n "checking for nextafterf... " >&6; }
20322 if test "${gcc_cv_math_func_nextafterf+set}" = set; then :
20323 $as_echo_n "(cached) " >&6
20324 else
20325 if test x$gcc_no_link = xyes; then
20326 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20327 fi
20328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20329 /* end confdefs.h. */
20330
20331 #ifdef HAVE_COMPLEX_H
20332 #include <complex.h>
20333 #endif
20334 #ifdef HAVE_MATH_H
20335 #include <math.h>
20336 #endif
20337
20338 int (*ptr)() = (int (*)())nextafterf;
20339
20340 int
20341 main ()
20342 {
20343 return 0;
20344 }
20345
20346 _ACEOF
20347 if ac_fn_c_try_link "$LINENO"; then :
20348 gcc_cv_math_func_nextafterf=yes
20349 else
20350 gcc_cv_math_func_nextafterf=no
20351 fi
20352 rm -f core conftest.err conftest.$ac_objext \
20353 conftest$ac_exeext conftest.$ac_ext
20354 fi
20355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterf" >&5
20356 $as_echo "$gcc_cv_math_func_nextafterf" >&6; }
20357 if test $gcc_cv_math_func_nextafterf = yes; then
20358
20359 $as_echo "#define HAVE_NEXTAFTERF 1" >>confdefs.h
20360
20361 fi
20362
20363
20364
20365
20366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafter" >&5
20367 $as_echo_n "checking for nextafter... " >&6; }
20368 if test "${gcc_cv_math_func_nextafter+set}" = set; then :
20369 $as_echo_n "(cached) " >&6
20370 else
20371 if test x$gcc_no_link = xyes; then
20372 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20373 fi
20374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20375 /* end confdefs.h. */
20376
20377 #ifdef HAVE_COMPLEX_H
20378 #include <complex.h>
20379 #endif
20380 #ifdef HAVE_MATH_H
20381 #include <math.h>
20382 #endif
20383
20384 int (*ptr)() = (int (*)())nextafter;
20385
20386 int
20387 main ()
20388 {
20389 return 0;
20390 }
20391
20392 _ACEOF
20393 if ac_fn_c_try_link "$LINENO"; then :
20394 gcc_cv_math_func_nextafter=yes
20395 else
20396 gcc_cv_math_func_nextafter=no
20397 fi
20398 rm -f core conftest.err conftest.$ac_objext \
20399 conftest$ac_exeext conftest.$ac_ext
20400 fi
20401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafter" >&5
20402 $as_echo "$gcc_cv_math_func_nextafter" >&6; }
20403 if test $gcc_cv_math_func_nextafter = yes; then
20404
20405 $as_echo "#define HAVE_NEXTAFTER 1" >>confdefs.h
20406
20407 fi
20408
20409
20410
20411
20412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterl" >&5
20413 $as_echo_n "checking for nextafterl... " >&6; }
20414 if test "${gcc_cv_math_func_nextafterl+set}" = set; then :
20415 $as_echo_n "(cached) " >&6
20416 else
20417 if test x$gcc_no_link = xyes; then
20418 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20419 fi
20420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20421 /* end confdefs.h. */
20422
20423 #ifdef HAVE_COMPLEX_H
20424 #include <complex.h>
20425 #endif
20426 #ifdef HAVE_MATH_H
20427 #include <math.h>
20428 #endif
20429
20430 int (*ptr)() = (int (*)())nextafterl;
20431
20432 int
20433 main ()
20434 {
20435 return 0;
20436 }
20437
20438 _ACEOF
20439 if ac_fn_c_try_link "$LINENO"; then :
20440 gcc_cv_math_func_nextafterl=yes
20441 else
20442 gcc_cv_math_func_nextafterl=no
20443 fi
20444 rm -f core conftest.err conftest.$ac_objext \
20445 conftest$ac_exeext conftest.$ac_ext
20446 fi
20447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterl" >&5
20448 $as_echo "$gcc_cv_math_func_nextafterl" >&6; }
20449 if test $gcc_cv_math_func_nextafterl = yes; then
20450
20451 $as_echo "#define HAVE_NEXTAFTERL 1" >>confdefs.h
20452
20453 fi
20454
20455
20456
20457
20458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf" >&5
20459 $as_echo_n "checking for powf... " >&6; }
20460 if test "${gcc_cv_math_func_powf+set}" = set; then :
20461 $as_echo_n "(cached) " >&6
20462 else
20463 if test x$gcc_no_link = xyes; then
20464 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20465 fi
20466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20467 /* end confdefs.h. */
20468
20469 #ifdef HAVE_COMPLEX_H
20470 #include <complex.h>
20471 #endif
20472 #ifdef HAVE_MATH_H
20473 #include <math.h>
20474 #endif
20475
20476 int (*ptr)() = (int (*)())powf;
20477
20478 int
20479 main ()
20480 {
20481 return 0;
20482 }
20483
20484 _ACEOF
20485 if ac_fn_c_try_link "$LINENO"; then :
20486 gcc_cv_math_func_powf=yes
20487 else
20488 gcc_cv_math_func_powf=no
20489 fi
20490 rm -f core conftest.err conftest.$ac_objext \
20491 conftest$ac_exeext conftest.$ac_ext
20492 fi
20493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powf" >&5
20494 $as_echo "$gcc_cv_math_func_powf" >&6; }
20495 if test $gcc_cv_math_func_powf = yes; then
20496
20497 $as_echo "#define HAVE_POWF 1" >>confdefs.h
20498
20499 fi
20500
20501
20502
20503
20504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow" >&5
20505 $as_echo_n "checking for pow... " >&6; }
20506 if test "${gcc_cv_math_func_pow+set}" = set; then :
20507 $as_echo_n "(cached) " >&6
20508 else
20509 if test x$gcc_no_link = xyes; then
20510 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20511 fi
20512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20513 /* end confdefs.h. */
20514
20515 #ifdef HAVE_COMPLEX_H
20516 #include <complex.h>
20517 #endif
20518 #ifdef HAVE_MATH_H
20519 #include <math.h>
20520 #endif
20521
20522 int (*ptr)() = (int (*)())pow;
20523
20524 int
20525 main ()
20526 {
20527 return 0;
20528 }
20529
20530 _ACEOF
20531 if ac_fn_c_try_link "$LINENO"; then :
20532 gcc_cv_math_func_pow=yes
20533 else
20534 gcc_cv_math_func_pow=no
20535 fi
20536 rm -f core conftest.err conftest.$ac_objext \
20537 conftest$ac_exeext conftest.$ac_ext
20538 fi
20539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_pow" >&5
20540 $as_echo "$gcc_cv_math_func_pow" >&6; }
20541 if test $gcc_cv_math_func_pow = yes; then
20542
20543 $as_echo "#define HAVE_POW 1" >>confdefs.h
20544
20545 fi
20546
20547
20548
20549
20550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powl" >&5
20551 $as_echo_n "checking for powl... " >&6; }
20552 if test "${gcc_cv_math_func_powl+set}" = set; then :
20553 $as_echo_n "(cached) " >&6
20554 else
20555 if test x$gcc_no_link = xyes; then
20556 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20557 fi
20558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20559 /* end confdefs.h. */
20560
20561 #ifdef HAVE_COMPLEX_H
20562 #include <complex.h>
20563 #endif
20564 #ifdef HAVE_MATH_H
20565 #include <math.h>
20566 #endif
20567
20568 int (*ptr)() = (int (*)())powl;
20569
20570 int
20571 main ()
20572 {
20573 return 0;
20574 }
20575
20576 _ACEOF
20577 if ac_fn_c_try_link "$LINENO"; then :
20578 gcc_cv_math_func_powl=yes
20579 else
20580 gcc_cv_math_func_powl=no
20581 fi
20582 rm -f core conftest.err conftest.$ac_objext \
20583 conftest$ac_exeext conftest.$ac_ext
20584 fi
20585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powl" >&5
20586 $as_echo "$gcc_cv_math_func_powl" >&6; }
20587 if test $gcc_cv_math_func_powl = yes; then
20588
20589 $as_echo "#define HAVE_POWL 1" >>confdefs.h
20590
20591 fi
20592
20593
20594
20595
20596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowf" >&5
20597 $as_echo_n "checking for cpowf... " >&6; }
20598 if test "${gcc_cv_math_func_cpowf+set}" = set; then :
20599 $as_echo_n "(cached) " >&6
20600 else
20601 if test x$gcc_no_link = xyes; then
20602 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20603 fi
20604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20605 /* end confdefs.h. */
20606
20607 #ifdef HAVE_COMPLEX_H
20608 #include <complex.h>
20609 #endif
20610 #ifdef HAVE_MATH_H
20611 #include <math.h>
20612 #endif
20613
20614 int (*ptr)() = (int (*)())cpowf;
20615
20616 int
20617 main ()
20618 {
20619 return 0;
20620 }
20621
20622 _ACEOF
20623 if ac_fn_c_try_link "$LINENO"; then :
20624 gcc_cv_math_func_cpowf=yes
20625 else
20626 gcc_cv_math_func_cpowf=no
20627 fi
20628 rm -f core conftest.err conftest.$ac_objext \
20629 conftest$ac_exeext conftest.$ac_ext
20630 fi
20631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowf" >&5
20632 $as_echo "$gcc_cv_math_func_cpowf" >&6; }
20633 if test $gcc_cv_math_func_cpowf = yes; then
20634
20635 $as_echo "#define HAVE_CPOWF 1" >>confdefs.h
20636
20637 fi
20638
20639
20640
20641
20642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpow" >&5
20643 $as_echo_n "checking for cpow... " >&6; }
20644 if test "${gcc_cv_math_func_cpow+set}" = set; then :
20645 $as_echo_n "(cached) " >&6
20646 else
20647 if test x$gcc_no_link = xyes; then
20648 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20649 fi
20650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20651 /* end confdefs.h. */
20652
20653 #ifdef HAVE_COMPLEX_H
20654 #include <complex.h>
20655 #endif
20656 #ifdef HAVE_MATH_H
20657 #include <math.h>
20658 #endif
20659
20660 int (*ptr)() = (int (*)())cpow;
20661
20662 int
20663 main ()
20664 {
20665 return 0;
20666 }
20667
20668 _ACEOF
20669 if ac_fn_c_try_link "$LINENO"; then :
20670 gcc_cv_math_func_cpow=yes
20671 else
20672 gcc_cv_math_func_cpow=no
20673 fi
20674 rm -f core conftest.err conftest.$ac_objext \
20675 conftest$ac_exeext conftest.$ac_ext
20676 fi
20677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpow" >&5
20678 $as_echo "$gcc_cv_math_func_cpow" >&6; }
20679 if test $gcc_cv_math_func_cpow = yes; then
20680
20681 $as_echo "#define HAVE_CPOW 1" >>confdefs.h
20682
20683 fi
20684
20685
20686
20687
20688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowl" >&5
20689 $as_echo_n "checking for cpowl... " >&6; }
20690 if test "${gcc_cv_math_func_cpowl+set}" = set; then :
20691 $as_echo_n "(cached) " >&6
20692 else
20693 if test x$gcc_no_link = xyes; then
20694 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20695 fi
20696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20697 /* end confdefs.h. */
20698
20699 #ifdef HAVE_COMPLEX_H
20700 #include <complex.h>
20701 #endif
20702 #ifdef HAVE_MATH_H
20703 #include <math.h>
20704 #endif
20705
20706 int (*ptr)() = (int (*)())cpowl;
20707
20708 int
20709 main ()
20710 {
20711 return 0;
20712 }
20713
20714 _ACEOF
20715 if ac_fn_c_try_link "$LINENO"; then :
20716 gcc_cv_math_func_cpowl=yes
20717 else
20718 gcc_cv_math_func_cpowl=no
20719 fi
20720 rm -f core conftest.err conftest.$ac_objext \
20721 conftest$ac_exeext conftest.$ac_ext
20722 fi
20723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowl" >&5
20724 $as_echo "$gcc_cv_math_func_cpowl" >&6; }
20725 if test $gcc_cv_math_func_cpowl = yes; then
20726
20727 $as_echo "#define HAVE_CPOWL 1" >>confdefs.h
20728
20729 fi
20730
20731
20732
20733
20734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundf" >&5
20735 $as_echo_n "checking for roundf... " >&6; }
20736 if test "${gcc_cv_math_func_roundf+set}" = set; then :
20737 $as_echo_n "(cached) " >&6
20738 else
20739 if test x$gcc_no_link = xyes; then
20740 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20741 fi
20742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20743 /* end confdefs.h. */
20744
20745 #ifdef HAVE_COMPLEX_H
20746 #include <complex.h>
20747 #endif
20748 #ifdef HAVE_MATH_H
20749 #include <math.h>
20750 #endif
20751
20752 int (*ptr)() = (int (*)())roundf;
20753
20754 int
20755 main ()
20756 {
20757 return 0;
20758 }
20759
20760 _ACEOF
20761 if ac_fn_c_try_link "$LINENO"; then :
20762 gcc_cv_math_func_roundf=yes
20763 else
20764 gcc_cv_math_func_roundf=no
20765 fi
20766 rm -f core conftest.err conftest.$ac_objext \
20767 conftest$ac_exeext conftest.$ac_ext
20768 fi
20769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundf" >&5
20770 $as_echo "$gcc_cv_math_func_roundf" >&6; }
20771 if test $gcc_cv_math_func_roundf = yes; then
20772
20773 $as_echo "#define HAVE_ROUNDF 1" >>confdefs.h
20774
20775 fi
20776
20777
20778
20779
20780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for round" >&5
20781 $as_echo_n "checking for round... " >&6; }
20782 if test "${gcc_cv_math_func_round+set}" = set; then :
20783 $as_echo_n "(cached) " >&6
20784 else
20785 if test x$gcc_no_link = xyes; then
20786 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20787 fi
20788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20789 /* end confdefs.h. */
20790
20791 #ifdef HAVE_COMPLEX_H
20792 #include <complex.h>
20793 #endif
20794 #ifdef HAVE_MATH_H
20795 #include <math.h>
20796 #endif
20797
20798 int (*ptr)() = (int (*)())round;
20799
20800 int
20801 main ()
20802 {
20803 return 0;
20804 }
20805
20806 _ACEOF
20807 if ac_fn_c_try_link "$LINENO"; then :
20808 gcc_cv_math_func_round=yes
20809 else
20810 gcc_cv_math_func_round=no
20811 fi
20812 rm -f core conftest.err conftest.$ac_objext \
20813 conftest$ac_exeext conftest.$ac_ext
20814 fi
20815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_round" >&5
20816 $as_echo "$gcc_cv_math_func_round" >&6; }
20817 if test $gcc_cv_math_func_round = yes; then
20818
20819 $as_echo "#define HAVE_ROUND 1" >>confdefs.h
20820
20821 fi
20822
20823
20824
20825
20826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundl" >&5
20827 $as_echo_n "checking for roundl... " >&6; }
20828 if test "${gcc_cv_math_func_roundl+set}" = set; then :
20829 $as_echo_n "(cached) " >&6
20830 else
20831 if test x$gcc_no_link = xyes; then
20832 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20833 fi
20834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20835 /* end confdefs.h. */
20836
20837 #ifdef HAVE_COMPLEX_H
20838 #include <complex.h>
20839 #endif
20840 #ifdef HAVE_MATH_H
20841 #include <math.h>
20842 #endif
20843
20844 int (*ptr)() = (int (*)())roundl;
20845
20846 int
20847 main ()
20848 {
20849 return 0;
20850 }
20851
20852 _ACEOF
20853 if ac_fn_c_try_link "$LINENO"; then :
20854 gcc_cv_math_func_roundl=yes
20855 else
20856 gcc_cv_math_func_roundl=no
20857 fi
20858 rm -f core conftest.err conftest.$ac_objext \
20859 conftest$ac_exeext conftest.$ac_ext
20860 fi
20861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundl" >&5
20862 $as_echo "$gcc_cv_math_func_roundl" >&6; }
20863 if test $gcc_cv_math_func_roundl = yes; then
20864
20865 $as_echo "#define HAVE_ROUNDL 1" >>confdefs.h
20866
20867 fi
20868
20869
20870
20871
20872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundf" >&5
20873 $as_echo_n "checking for lroundf... " >&6; }
20874 if test "${gcc_cv_math_func_lroundf+set}" = set; then :
20875 $as_echo_n "(cached) " >&6
20876 else
20877 if test x$gcc_no_link = xyes; then
20878 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20879 fi
20880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20881 /* end confdefs.h. */
20882
20883 #ifdef HAVE_COMPLEX_H
20884 #include <complex.h>
20885 #endif
20886 #ifdef HAVE_MATH_H
20887 #include <math.h>
20888 #endif
20889
20890 int (*ptr)() = (int (*)())lroundf;
20891
20892 int
20893 main ()
20894 {
20895 return 0;
20896 }
20897
20898 _ACEOF
20899 if ac_fn_c_try_link "$LINENO"; then :
20900 gcc_cv_math_func_lroundf=yes
20901 else
20902 gcc_cv_math_func_lroundf=no
20903 fi
20904 rm -f core conftest.err conftest.$ac_objext \
20905 conftest$ac_exeext conftest.$ac_ext
20906 fi
20907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundf" >&5
20908 $as_echo "$gcc_cv_math_func_lroundf" >&6; }
20909 if test $gcc_cv_math_func_lroundf = yes; then
20910
20911 $as_echo "#define HAVE_LROUNDF 1" >>confdefs.h
20912
20913 fi
20914
20915
20916
20917
20918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lround" >&5
20919 $as_echo_n "checking for lround... " >&6; }
20920 if test "${gcc_cv_math_func_lround+set}" = set; then :
20921 $as_echo_n "(cached) " >&6
20922 else
20923 if test x$gcc_no_link = xyes; then
20924 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20925 fi
20926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20927 /* end confdefs.h. */
20928
20929 #ifdef HAVE_COMPLEX_H
20930 #include <complex.h>
20931 #endif
20932 #ifdef HAVE_MATH_H
20933 #include <math.h>
20934 #endif
20935
20936 int (*ptr)() = (int (*)())lround;
20937
20938 int
20939 main ()
20940 {
20941 return 0;
20942 }
20943
20944 _ACEOF
20945 if ac_fn_c_try_link "$LINENO"; then :
20946 gcc_cv_math_func_lround=yes
20947 else
20948 gcc_cv_math_func_lround=no
20949 fi
20950 rm -f core conftest.err conftest.$ac_objext \
20951 conftest$ac_exeext conftest.$ac_ext
20952 fi
20953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lround" >&5
20954 $as_echo "$gcc_cv_math_func_lround" >&6; }
20955 if test $gcc_cv_math_func_lround = yes; then
20956
20957 $as_echo "#define HAVE_LROUND 1" >>confdefs.h
20958
20959 fi
20960
20961
20962
20963
20964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundl" >&5
20965 $as_echo_n "checking for lroundl... " >&6; }
20966 if test "${gcc_cv_math_func_lroundl+set}" = set; then :
20967 $as_echo_n "(cached) " >&6
20968 else
20969 if test x$gcc_no_link = xyes; then
20970 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20971 fi
20972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20973 /* end confdefs.h. */
20974
20975 #ifdef HAVE_COMPLEX_H
20976 #include <complex.h>
20977 #endif
20978 #ifdef HAVE_MATH_H
20979 #include <math.h>
20980 #endif
20981
20982 int (*ptr)() = (int (*)())lroundl;
20983
20984 int
20985 main ()
20986 {
20987 return 0;
20988 }
20989
20990 _ACEOF
20991 if ac_fn_c_try_link "$LINENO"; then :
20992 gcc_cv_math_func_lroundl=yes
20993 else
20994 gcc_cv_math_func_lroundl=no
20995 fi
20996 rm -f core conftest.err conftest.$ac_objext \
20997 conftest$ac_exeext conftest.$ac_ext
20998 fi
20999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundl" >&5
21000 $as_echo "$gcc_cv_math_func_lroundl" >&6; }
21001 if test $gcc_cv_math_func_lroundl = yes; then
21002
21003 $as_echo "#define HAVE_LROUNDL 1" >>confdefs.h
21004
21005 fi
21006
21007
21008
21009
21010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundf" >&5
21011 $as_echo_n "checking for llroundf... " >&6; }
21012 if test "${gcc_cv_math_func_llroundf+set}" = set; then :
21013 $as_echo_n "(cached) " >&6
21014 else
21015 if test x$gcc_no_link = xyes; then
21016 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21017 fi
21018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21019 /* end confdefs.h. */
21020
21021 #ifdef HAVE_COMPLEX_H
21022 #include <complex.h>
21023 #endif
21024 #ifdef HAVE_MATH_H
21025 #include <math.h>
21026 #endif
21027
21028 int (*ptr)() = (int (*)())llroundf;
21029
21030 int
21031 main ()
21032 {
21033 return 0;
21034 }
21035
21036 _ACEOF
21037 if ac_fn_c_try_link "$LINENO"; then :
21038 gcc_cv_math_func_llroundf=yes
21039 else
21040 gcc_cv_math_func_llroundf=no
21041 fi
21042 rm -f core conftest.err conftest.$ac_objext \
21043 conftest$ac_exeext conftest.$ac_ext
21044 fi
21045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundf" >&5
21046 $as_echo "$gcc_cv_math_func_llroundf" >&6; }
21047 if test $gcc_cv_math_func_llroundf = yes; then
21048
21049 $as_echo "#define HAVE_LLROUNDF 1" >>confdefs.h
21050
21051 fi
21052
21053
21054
21055
21056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llround" >&5
21057 $as_echo_n "checking for llround... " >&6; }
21058 if test "${gcc_cv_math_func_llround+set}" = set; then :
21059 $as_echo_n "(cached) " >&6
21060 else
21061 if test x$gcc_no_link = xyes; then
21062 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21063 fi
21064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21065 /* end confdefs.h. */
21066
21067 #ifdef HAVE_COMPLEX_H
21068 #include <complex.h>
21069 #endif
21070 #ifdef HAVE_MATH_H
21071 #include <math.h>
21072 #endif
21073
21074 int (*ptr)() = (int (*)())llround;
21075
21076 int
21077 main ()
21078 {
21079 return 0;
21080 }
21081
21082 _ACEOF
21083 if ac_fn_c_try_link "$LINENO"; then :
21084 gcc_cv_math_func_llround=yes
21085 else
21086 gcc_cv_math_func_llround=no
21087 fi
21088 rm -f core conftest.err conftest.$ac_objext \
21089 conftest$ac_exeext conftest.$ac_ext
21090 fi
21091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llround" >&5
21092 $as_echo "$gcc_cv_math_func_llround" >&6; }
21093 if test $gcc_cv_math_func_llround = yes; then
21094
21095 $as_echo "#define HAVE_LLROUND 1" >>confdefs.h
21096
21097 fi
21098
21099
21100
21101
21102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundl" >&5
21103 $as_echo_n "checking for llroundl... " >&6; }
21104 if test "${gcc_cv_math_func_llroundl+set}" = set; then :
21105 $as_echo_n "(cached) " >&6
21106 else
21107 if test x$gcc_no_link = xyes; then
21108 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21109 fi
21110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21111 /* end confdefs.h. */
21112
21113 #ifdef HAVE_COMPLEX_H
21114 #include <complex.h>
21115 #endif
21116 #ifdef HAVE_MATH_H
21117 #include <math.h>
21118 #endif
21119
21120 int (*ptr)() = (int (*)())llroundl;
21121
21122 int
21123 main ()
21124 {
21125 return 0;
21126 }
21127
21128 _ACEOF
21129 if ac_fn_c_try_link "$LINENO"; then :
21130 gcc_cv_math_func_llroundl=yes
21131 else
21132 gcc_cv_math_func_llroundl=no
21133 fi
21134 rm -f core conftest.err conftest.$ac_objext \
21135 conftest$ac_exeext conftest.$ac_ext
21136 fi
21137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundl" >&5
21138 $as_echo "$gcc_cv_math_func_llroundl" >&6; }
21139 if test $gcc_cv_math_func_llroundl = yes; then
21140
21141 $as_echo "#define HAVE_LLROUNDL 1" >>confdefs.h
21142
21143 fi
21144
21145
21146
21147
21148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnf" >&5
21149 $as_echo_n "checking for scalbnf... " >&6; }
21150 if test "${gcc_cv_math_func_scalbnf+set}" = set; then :
21151 $as_echo_n "(cached) " >&6
21152 else
21153 if test x$gcc_no_link = xyes; then
21154 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21155 fi
21156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21157 /* end confdefs.h. */
21158
21159 #ifdef HAVE_COMPLEX_H
21160 #include <complex.h>
21161 #endif
21162 #ifdef HAVE_MATH_H
21163 #include <math.h>
21164 #endif
21165
21166 int (*ptr)() = (int (*)())scalbnf;
21167
21168 int
21169 main ()
21170 {
21171 return 0;
21172 }
21173
21174 _ACEOF
21175 if ac_fn_c_try_link "$LINENO"; then :
21176 gcc_cv_math_func_scalbnf=yes
21177 else
21178 gcc_cv_math_func_scalbnf=no
21179 fi
21180 rm -f core conftest.err conftest.$ac_objext \
21181 conftest$ac_exeext conftest.$ac_ext
21182 fi
21183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnf" >&5
21184 $as_echo "$gcc_cv_math_func_scalbnf" >&6; }
21185 if test $gcc_cv_math_func_scalbnf = yes; then
21186
21187 $as_echo "#define HAVE_SCALBNF 1" >>confdefs.h
21188
21189 fi
21190
21191
21192
21193
21194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbn" >&5
21195 $as_echo_n "checking for scalbn... " >&6; }
21196 if test "${gcc_cv_math_func_scalbn+set}" = set; then :
21197 $as_echo_n "(cached) " >&6
21198 else
21199 if test x$gcc_no_link = xyes; then
21200 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21201 fi
21202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21203 /* end confdefs.h. */
21204
21205 #ifdef HAVE_COMPLEX_H
21206 #include <complex.h>
21207 #endif
21208 #ifdef HAVE_MATH_H
21209 #include <math.h>
21210 #endif
21211
21212 int (*ptr)() = (int (*)())scalbn;
21213
21214 int
21215 main ()
21216 {
21217 return 0;
21218 }
21219
21220 _ACEOF
21221 if ac_fn_c_try_link "$LINENO"; then :
21222 gcc_cv_math_func_scalbn=yes
21223 else
21224 gcc_cv_math_func_scalbn=no
21225 fi
21226 rm -f core conftest.err conftest.$ac_objext \
21227 conftest$ac_exeext conftest.$ac_ext
21228 fi
21229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbn" >&5
21230 $as_echo "$gcc_cv_math_func_scalbn" >&6; }
21231 if test $gcc_cv_math_func_scalbn = yes; then
21232
21233 $as_echo "#define HAVE_SCALBN 1" >>confdefs.h
21234
21235 fi
21236
21237
21238
21239
21240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnl" >&5
21241 $as_echo_n "checking for scalbnl... " >&6; }
21242 if test "${gcc_cv_math_func_scalbnl+set}" = set; then :
21243 $as_echo_n "(cached) " >&6
21244 else
21245 if test x$gcc_no_link = xyes; then
21246 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21247 fi
21248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21249 /* end confdefs.h. */
21250
21251 #ifdef HAVE_COMPLEX_H
21252 #include <complex.h>
21253 #endif
21254 #ifdef HAVE_MATH_H
21255 #include <math.h>
21256 #endif
21257
21258 int (*ptr)() = (int (*)())scalbnl;
21259
21260 int
21261 main ()
21262 {
21263 return 0;
21264 }
21265
21266 _ACEOF
21267 if ac_fn_c_try_link "$LINENO"; then :
21268 gcc_cv_math_func_scalbnl=yes
21269 else
21270 gcc_cv_math_func_scalbnl=no
21271 fi
21272 rm -f core conftest.err conftest.$ac_objext \
21273 conftest$ac_exeext conftest.$ac_ext
21274 fi
21275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnl" >&5
21276 $as_echo "$gcc_cv_math_func_scalbnl" >&6; }
21277 if test $gcc_cv_math_func_scalbnl = yes; then
21278
21279 $as_echo "#define HAVE_SCALBNL 1" >>confdefs.h
21280
21281 fi
21282
21283
21284
21285
21286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinf" >&5
21287 $as_echo_n "checking for sinf... " >&6; }
21288 if test "${gcc_cv_math_func_sinf+set}" = set; then :
21289 $as_echo_n "(cached) " >&6
21290 else
21291 if test x$gcc_no_link = xyes; then
21292 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21293 fi
21294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21295 /* end confdefs.h. */
21296
21297 #ifdef HAVE_COMPLEX_H
21298 #include <complex.h>
21299 #endif
21300 #ifdef HAVE_MATH_H
21301 #include <math.h>
21302 #endif
21303
21304 int (*ptr)() = (int (*)())sinf;
21305
21306 int
21307 main ()
21308 {
21309 return 0;
21310 }
21311
21312 _ACEOF
21313 if ac_fn_c_try_link "$LINENO"; then :
21314 gcc_cv_math_func_sinf=yes
21315 else
21316 gcc_cv_math_func_sinf=no
21317 fi
21318 rm -f core conftest.err conftest.$ac_objext \
21319 conftest$ac_exeext conftest.$ac_ext
21320 fi
21321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinf" >&5
21322 $as_echo "$gcc_cv_math_func_sinf" >&6; }
21323 if test $gcc_cv_math_func_sinf = yes; then
21324
21325 $as_echo "#define HAVE_SINF 1" >>confdefs.h
21326
21327 fi
21328
21329
21330
21331
21332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin" >&5
21333 $as_echo_n "checking for sin... " >&6; }
21334 if test "${gcc_cv_math_func_sin+set}" = set; then :
21335 $as_echo_n "(cached) " >&6
21336 else
21337 if test x$gcc_no_link = xyes; then
21338 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21339 fi
21340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21341 /* end confdefs.h. */
21342
21343 #ifdef HAVE_COMPLEX_H
21344 #include <complex.h>
21345 #endif
21346 #ifdef HAVE_MATH_H
21347 #include <math.h>
21348 #endif
21349
21350 int (*ptr)() = (int (*)())sin;
21351
21352 int
21353 main ()
21354 {
21355 return 0;
21356 }
21357
21358 _ACEOF
21359 if ac_fn_c_try_link "$LINENO"; then :
21360 gcc_cv_math_func_sin=yes
21361 else
21362 gcc_cv_math_func_sin=no
21363 fi
21364 rm -f core conftest.err conftest.$ac_objext \
21365 conftest$ac_exeext conftest.$ac_ext
21366 fi
21367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sin" >&5
21368 $as_echo "$gcc_cv_math_func_sin" >&6; }
21369 if test $gcc_cv_math_func_sin = yes; then
21370
21371 $as_echo "#define HAVE_SIN 1" >>confdefs.h
21372
21373 fi
21374
21375
21376
21377
21378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinl" >&5
21379 $as_echo_n "checking for sinl... " >&6; }
21380 if test "${gcc_cv_math_func_sinl+set}" = set; then :
21381 $as_echo_n "(cached) " >&6
21382 else
21383 if test x$gcc_no_link = xyes; then
21384 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21385 fi
21386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21387 /* end confdefs.h. */
21388
21389 #ifdef HAVE_COMPLEX_H
21390 #include <complex.h>
21391 #endif
21392 #ifdef HAVE_MATH_H
21393 #include <math.h>
21394 #endif
21395
21396 int (*ptr)() = (int (*)())sinl;
21397
21398 int
21399 main ()
21400 {
21401 return 0;
21402 }
21403
21404 _ACEOF
21405 if ac_fn_c_try_link "$LINENO"; then :
21406 gcc_cv_math_func_sinl=yes
21407 else
21408 gcc_cv_math_func_sinl=no
21409 fi
21410 rm -f core conftest.err conftest.$ac_objext \
21411 conftest$ac_exeext conftest.$ac_ext
21412 fi
21413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinl" >&5
21414 $as_echo "$gcc_cv_math_func_sinl" >&6; }
21415 if test $gcc_cv_math_func_sinl = yes; then
21416
21417 $as_echo "#define HAVE_SINL 1" >>confdefs.h
21418
21419 fi
21420
21421
21422
21423
21424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinf" >&5
21425 $as_echo_n "checking for csinf... " >&6; }
21426 if test "${gcc_cv_math_func_csinf+set}" = set; then :
21427 $as_echo_n "(cached) " >&6
21428 else
21429 if test x$gcc_no_link = xyes; then
21430 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21431 fi
21432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21433 /* end confdefs.h. */
21434
21435 #ifdef HAVE_COMPLEX_H
21436 #include <complex.h>
21437 #endif
21438 #ifdef HAVE_MATH_H
21439 #include <math.h>
21440 #endif
21441
21442 int (*ptr)() = (int (*)())csinf;
21443
21444 int
21445 main ()
21446 {
21447 return 0;
21448 }
21449
21450 _ACEOF
21451 if ac_fn_c_try_link "$LINENO"; then :
21452 gcc_cv_math_func_csinf=yes
21453 else
21454 gcc_cv_math_func_csinf=no
21455 fi
21456 rm -f core conftest.err conftest.$ac_objext \
21457 conftest$ac_exeext conftest.$ac_ext
21458 fi
21459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinf" >&5
21460 $as_echo "$gcc_cv_math_func_csinf" >&6; }
21461 if test $gcc_cv_math_func_csinf = yes; then
21462
21463 $as_echo "#define HAVE_CSINF 1" >>confdefs.h
21464
21465 fi
21466
21467
21468
21469
21470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csin" >&5
21471 $as_echo_n "checking for csin... " >&6; }
21472 if test "${gcc_cv_math_func_csin+set}" = set; then :
21473 $as_echo_n "(cached) " >&6
21474 else
21475 if test x$gcc_no_link = xyes; then
21476 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21477 fi
21478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21479 /* end confdefs.h. */
21480
21481 #ifdef HAVE_COMPLEX_H
21482 #include <complex.h>
21483 #endif
21484 #ifdef HAVE_MATH_H
21485 #include <math.h>
21486 #endif
21487
21488 int (*ptr)() = (int (*)())csin;
21489
21490 int
21491 main ()
21492 {
21493 return 0;
21494 }
21495
21496 _ACEOF
21497 if ac_fn_c_try_link "$LINENO"; then :
21498 gcc_cv_math_func_csin=yes
21499 else
21500 gcc_cv_math_func_csin=no
21501 fi
21502 rm -f core conftest.err conftest.$ac_objext \
21503 conftest$ac_exeext conftest.$ac_ext
21504 fi
21505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csin" >&5
21506 $as_echo "$gcc_cv_math_func_csin" >&6; }
21507 if test $gcc_cv_math_func_csin = yes; then
21508
21509 $as_echo "#define HAVE_CSIN 1" >>confdefs.h
21510
21511 fi
21512
21513
21514
21515
21516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinl" >&5
21517 $as_echo_n "checking for csinl... " >&6; }
21518 if test "${gcc_cv_math_func_csinl+set}" = set; then :
21519 $as_echo_n "(cached) " >&6
21520 else
21521 if test x$gcc_no_link = xyes; then
21522 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21523 fi
21524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21525 /* end confdefs.h. */
21526
21527 #ifdef HAVE_COMPLEX_H
21528 #include <complex.h>
21529 #endif
21530 #ifdef HAVE_MATH_H
21531 #include <math.h>
21532 #endif
21533
21534 int (*ptr)() = (int (*)())csinl;
21535
21536 int
21537 main ()
21538 {
21539 return 0;
21540 }
21541
21542 _ACEOF
21543 if ac_fn_c_try_link "$LINENO"; then :
21544 gcc_cv_math_func_csinl=yes
21545 else
21546 gcc_cv_math_func_csinl=no
21547 fi
21548 rm -f core conftest.err conftest.$ac_objext \
21549 conftest$ac_exeext conftest.$ac_ext
21550 fi
21551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinl" >&5
21552 $as_echo "$gcc_cv_math_func_csinl" >&6; }
21553 if test $gcc_cv_math_func_csinl = yes; then
21554
21555 $as_echo "#define HAVE_CSINL 1" >>confdefs.h
21556
21557 fi
21558
21559
21560
21561
21562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhf" >&5
21563 $as_echo_n "checking for sinhf... " >&6; }
21564 if test "${gcc_cv_math_func_sinhf+set}" = set; then :
21565 $as_echo_n "(cached) " >&6
21566 else
21567 if test x$gcc_no_link = xyes; then
21568 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21569 fi
21570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21571 /* end confdefs.h. */
21572
21573 #ifdef HAVE_COMPLEX_H
21574 #include <complex.h>
21575 #endif
21576 #ifdef HAVE_MATH_H
21577 #include <math.h>
21578 #endif
21579
21580 int (*ptr)() = (int (*)())sinhf;
21581
21582 int
21583 main ()
21584 {
21585 return 0;
21586 }
21587
21588 _ACEOF
21589 if ac_fn_c_try_link "$LINENO"; then :
21590 gcc_cv_math_func_sinhf=yes
21591 else
21592 gcc_cv_math_func_sinhf=no
21593 fi
21594 rm -f core conftest.err conftest.$ac_objext \
21595 conftest$ac_exeext conftest.$ac_ext
21596 fi
21597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhf" >&5
21598 $as_echo "$gcc_cv_math_func_sinhf" >&6; }
21599 if test $gcc_cv_math_func_sinhf = yes; then
21600
21601 $as_echo "#define HAVE_SINHF 1" >>confdefs.h
21602
21603 fi
21604
21605
21606
21607
21608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinh" >&5
21609 $as_echo_n "checking for sinh... " >&6; }
21610 if test "${gcc_cv_math_func_sinh+set}" = set; then :
21611 $as_echo_n "(cached) " >&6
21612 else
21613 if test x$gcc_no_link = xyes; then
21614 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21615 fi
21616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21617 /* end confdefs.h. */
21618
21619 #ifdef HAVE_COMPLEX_H
21620 #include <complex.h>
21621 #endif
21622 #ifdef HAVE_MATH_H
21623 #include <math.h>
21624 #endif
21625
21626 int (*ptr)() = (int (*)())sinh;
21627
21628 int
21629 main ()
21630 {
21631 return 0;
21632 }
21633
21634 _ACEOF
21635 if ac_fn_c_try_link "$LINENO"; then :
21636 gcc_cv_math_func_sinh=yes
21637 else
21638 gcc_cv_math_func_sinh=no
21639 fi
21640 rm -f core conftest.err conftest.$ac_objext \
21641 conftest$ac_exeext conftest.$ac_ext
21642 fi
21643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinh" >&5
21644 $as_echo "$gcc_cv_math_func_sinh" >&6; }
21645 if test $gcc_cv_math_func_sinh = yes; then
21646
21647 $as_echo "#define HAVE_SINH 1" >>confdefs.h
21648
21649 fi
21650
21651
21652
21653
21654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhl" >&5
21655 $as_echo_n "checking for sinhl... " >&6; }
21656 if test "${gcc_cv_math_func_sinhl+set}" = set; then :
21657 $as_echo_n "(cached) " >&6
21658 else
21659 if test x$gcc_no_link = xyes; then
21660 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21661 fi
21662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21663 /* end confdefs.h. */
21664
21665 #ifdef HAVE_COMPLEX_H
21666 #include <complex.h>
21667 #endif
21668 #ifdef HAVE_MATH_H
21669 #include <math.h>
21670 #endif
21671
21672 int (*ptr)() = (int (*)())sinhl;
21673
21674 int
21675 main ()
21676 {
21677 return 0;
21678 }
21679
21680 _ACEOF
21681 if ac_fn_c_try_link "$LINENO"; then :
21682 gcc_cv_math_func_sinhl=yes
21683 else
21684 gcc_cv_math_func_sinhl=no
21685 fi
21686 rm -f core conftest.err conftest.$ac_objext \
21687 conftest$ac_exeext conftest.$ac_ext
21688 fi
21689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhl" >&5
21690 $as_echo "$gcc_cv_math_func_sinhl" >&6; }
21691 if test $gcc_cv_math_func_sinhl = yes; then
21692
21693 $as_echo "#define HAVE_SINHL 1" >>confdefs.h
21694
21695 fi
21696
21697
21698
21699
21700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhf" >&5
21701 $as_echo_n "checking for csinhf... " >&6; }
21702 if test "${gcc_cv_math_func_csinhf+set}" = set; then :
21703 $as_echo_n "(cached) " >&6
21704 else
21705 if test x$gcc_no_link = xyes; then
21706 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21707 fi
21708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21709 /* end confdefs.h. */
21710
21711 #ifdef HAVE_COMPLEX_H
21712 #include <complex.h>
21713 #endif
21714 #ifdef HAVE_MATH_H
21715 #include <math.h>
21716 #endif
21717
21718 int (*ptr)() = (int (*)())csinhf;
21719
21720 int
21721 main ()
21722 {
21723 return 0;
21724 }
21725
21726 _ACEOF
21727 if ac_fn_c_try_link "$LINENO"; then :
21728 gcc_cv_math_func_csinhf=yes
21729 else
21730 gcc_cv_math_func_csinhf=no
21731 fi
21732 rm -f core conftest.err conftest.$ac_objext \
21733 conftest$ac_exeext conftest.$ac_ext
21734 fi
21735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhf" >&5
21736 $as_echo "$gcc_cv_math_func_csinhf" >&6; }
21737 if test $gcc_cv_math_func_csinhf = yes; then
21738
21739 $as_echo "#define HAVE_CSINHF 1" >>confdefs.h
21740
21741 fi
21742
21743
21744
21745
21746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinh" >&5
21747 $as_echo_n "checking for csinh... " >&6; }
21748 if test "${gcc_cv_math_func_csinh+set}" = set; then :
21749 $as_echo_n "(cached) " >&6
21750 else
21751 if test x$gcc_no_link = xyes; then
21752 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21753 fi
21754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21755 /* end confdefs.h. */
21756
21757 #ifdef HAVE_COMPLEX_H
21758 #include <complex.h>
21759 #endif
21760 #ifdef HAVE_MATH_H
21761 #include <math.h>
21762 #endif
21763
21764 int (*ptr)() = (int (*)())csinh;
21765
21766 int
21767 main ()
21768 {
21769 return 0;
21770 }
21771
21772 _ACEOF
21773 if ac_fn_c_try_link "$LINENO"; then :
21774 gcc_cv_math_func_csinh=yes
21775 else
21776 gcc_cv_math_func_csinh=no
21777 fi
21778 rm -f core conftest.err conftest.$ac_objext \
21779 conftest$ac_exeext conftest.$ac_ext
21780 fi
21781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinh" >&5
21782 $as_echo "$gcc_cv_math_func_csinh" >&6; }
21783 if test $gcc_cv_math_func_csinh = yes; then
21784
21785 $as_echo "#define HAVE_CSINH 1" >>confdefs.h
21786
21787 fi
21788
21789
21790
21791
21792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhl" >&5
21793 $as_echo_n "checking for csinhl... " >&6; }
21794 if test "${gcc_cv_math_func_csinhl+set}" = set; then :
21795 $as_echo_n "(cached) " >&6
21796 else
21797 if test x$gcc_no_link = xyes; then
21798 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21799 fi
21800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21801 /* end confdefs.h. */
21802
21803 #ifdef HAVE_COMPLEX_H
21804 #include <complex.h>
21805 #endif
21806 #ifdef HAVE_MATH_H
21807 #include <math.h>
21808 #endif
21809
21810 int (*ptr)() = (int (*)())csinhl;
21811
21812 int
21813 main ()
21814 {
21815 return 0;
21816 }
21817
21818 _ACEOF
21819 if ac_fn_c_try_link "$LINENO"; then :
21820 gcc_cv_math_func_csinhl=yes
21821 else
21822 gcc_cv_math_func_csinhl=no
21823 fi
21824 rm -f core conftest.err conftest.$ac_objext \
21825 conftest$ac_exeext conftest.$ac_ext
21826 fi
21827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhl" >&5
21828 $as_echo "$gcc_cv_math_func_csinhl" >&6; }
21829 if test $gcc_cv_math_func_csinhl = yes; then
21830
21831 $as_echo "#define HAVE_CSINHL 1" >>confdefs.h
21832
21833 fi
21834
21835
21836
21837
21838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf" >&5
21839 $as_echo_n "checking for sqrtf... " >&6; }
21840 if test "${gcc_cv_math_func_sqrtf+set}" = set; then :
21841 $as_echo_n "(cached) " >&6
21842 else
21843 if test x$gcc_no_link = xyes; then
21844 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21845 fi
21846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21847 /* end confdefs.h. */
21848
21849 #ifdef HAVE_COMPLEX_H
21850 #include <complex.h>
21851 #endif
21852 #ifdef HAVE_MATH_H
21853 #include <math.h>
21854 #endif
21855
21856 int (*ptr)() = (int (*)())sqrtf;
21857
21858 int
21859 main ()
21860 {
21861 return 0;
21862 }
21863
21864 _ACEOF
21865 if ac_fn_c_try_link "$LINENO"; then :
21866 gcc_cv_math_func_sqrtf=yes
21867 else
21868 gcc_cv_math_func_sqrtf=no
21869 fi
21870 rm -f core conftest.err conftest.$ac_objext \
21871 conftest$ac_exeext conftest.$ac_ext
21872 fi
21873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtf" >&5
21874 $as_echo "$gcc_cv_math_func_sqrtf" >&6; }
21875 if test $gcc_cv_math_func_sqrtf = yes; then
21876
21877 $as_echo "#define HAVE_SQRTF 1" >>confdefs.h
21878
21879 fi
21880
21881
21882
21883
21884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt" >&5
21885 $as_echo_n "checking for sqrt... " >&6; }
21886 if test "${gcc_cv_math_func_sqrt+set}" = set; then :
21887 $as_echo_n "(cached) " >&6
21888 else
21889 if test x$gcc_no_link = xyes; then
21890 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21891 fi
21892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21893 /* end confdefs.h. */
21894
21895 #ifdef HAVE_COMPLEX_H
21896 #include <complex.h>
21897 #endif
21898 #ifdef HAVE_MATH_H
21899 #include <math.h>
21900 #endif
21901
21902 int (*ptr)() = (int (*)())sqrt;
21903
21904 int
21905 main ()
21906 {
21907 return 0;
21908 }
21909
21910 _ACEOF
21911 if ac_fn_c_try_link "$LINENO"; then :
21912 gcc_cv_math_func_sqrt=yes
21913 else
21914 gcc_cv_math_func_sqrt=no
21915 fi
21916 rm -f core conftest.err conftest.$ac_objext \
21917 conftest$ac_exeext conftest.$ac_ext
21918 fi
21919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrt" >&5
21920 $as_echo "$gcc_cv_math_func_sqrt" >&6; }
21921 if test $gcc_cv_math_func_sqrt = yes; then
21922
21923 $as_echo "#define HAVE_SQRT 1" >>confdefs.h
21924
21925 fi
21926
21927
21928
21929
21930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl" >&5
21931 $as_echo_n "checking for sqrtl... " >&6; }
21932 if test "${gcc_cv_math_func_sqrtl+set}" = set; then :
21933 $as_echo_n "(cached) " >&6
21934 else
21935 if test x$gcc_no_link = xyes; then
21936 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21937 fi
21938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21939 /* end confdefs.h. */
21940
21941 #ifdef HAVE_COMPLEX_H
21942 #include <complex.h>
21943 #endif
21944 #ifdef HAVE_MATH_H
21945 #include <math.h>
21946 #endif
21947
21948 int (*ptr)() = (int (*)())sqrtl;
21949
21950 int
21951 main ()
21952 {
21953 return 0;
21954 }
21955
21956 _ACEOF
21957 if ac_fn_c_try_link "$LINENO"; then :
21958 gcc_cv_math_func_sqrtl=yes
21959 else
21960 gcc_cv_math_func_sqrtl=no
21961 fi
21962 rm -f core conftest.err conftest.$ac_objext \
21963 conftest$ac_exeext conftest.$ac_ext
21964 fi
21965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtl" >&5
21966 $as_echo "$gcc_cv_math_func_sqrtl" >&6; }
21967 if test $gcc_cv_math_func_sqrtl = yes; then
21968
21969 $as_echo "#define HAVE_SQRTL 1" >>confdefs.h
21970
21971 fi
21972
21973
21974
21975
21976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtf" >&5
21977 $as_echo_n "checking for csqrtf... " >&6; }
21978 if test "${gcc_cv_math_func_csqrtf+set}" = set; then :
21979 $as_echo_n "(cached) " >&6
21980 else
21981 if test x$gcc_no_link = xyes; then
21982 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21983 fi
21984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21985 /* end confdefs.h. */
21986
21987 #ifdef HAVE_COMPLEX_H
21988 #include <complex.h>
21989 #endif
21990 #ifdef HAVE_MATH_H
21991 #include <math.h>
21992 #endif
21993
21994 int (*ptr)() = (int (*)())csqrtf;
21995
21996 int
21997 main ()
21998 {
21999 return 0;
22000 }
22001
22002 _ACEOF
22003 if ac_fn_c_try_link "$LINENO"; then :
22004 gcc_cv_math_func_csqrtf=yes
22005 else
22006 gcc_cv_math_func_csqrtf=no
22007 fi
22008 rm -f core conftest.err conftest.$ac_objext \
22009 conftest$ac_exeext conftest.$ac_ext
22010 fi
22011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtf" >&5
22012 $as_echo "$gcc_cv_math_func_csqrtf" >&6; }
22013 if test $gcc_cv_math_func_csqrtf = yes; then
22014
22015 $as_echo "#define HAVE_CSQRTF 1" >>confdefs.h
22016
22017 fi
22018
22019
22020
22021
22022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrt" >&5
22023 $as_echo_n "checking for csqrt... " >&6; }
22024 if test "${gcc_cv_math_func_csqrt+set}" = set; then :
22025 $as_echo_n "(cached) " >&6
22026 else
22027 if test x$gcc_no_link = xyes; then
22028 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22029 fi
22030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22031 /* end confdefs.h. */
22032
22033 #ifdef HAVE_COMPLEX_H
22034 #include <complex.h>
22035 #endif
22036 #ifdef HAVE_MATH_H
22037 #include <math.h>
22038 #endif
22039
22040 int (*ptr)() = (int (*)())csqrt;
22041
22042 int
22043 main ()
22044 {
22045 return 0;
22046 }
22047
22048 _ACEOF
22049 if ac_fn_c_try_link "$LINENO"; then :
22050 gcc_cv_math_func_csqrt=yes
22051 else
22052 gcc_cv_math_func_csqrt=no
22053 fi
22054 rm -f core conftest.err conftest.$ac_objext \
22055 conftest$ac_exeext conftest.$ac_ext
22056 fi
22057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrt" >&5
22058 $as_echo "$gcc_cv_math_func_csqrt" >&6; }
22059 if test $gcc_cv_math_func_csqrt = yes; then
22060
22061 $as_echo "#define HAVE_CSQRT 1" >>confdefs.h
22062
22063 fi
22064
22065
22066
22067
22068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtl" >&5
22069 $as_echo_n "checking for csqrtl... " >&6; }
22070 if test "${gcc_cv_math_func_csqrtl+set}" = set; then :
22071 $as_echo_n "(cached) " >&6
22072 else
22073 if test x$gcc_no_link = xyes; then
22074 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22075 fi
22076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22077 /* end confdefs.h. */
22078
22079 #ifdef HAVE_COMPLEX_H
22080 #include <complex.h>
22081 #endif
22082 #ifdef HAVE_MATH_H
22083 #include <math.h>
22084 #endif
22085
22086 int (*ptr)() = (int (*)())csqrtl;
22087
22088 int
22089 main ()
22090 {
22091 return 0;
22092 }
22093
22094 _ACEOF
22095 if ac_fn_c_try_link "$LINENO"; then :
22096 gcc_cv_math_func_csqrtl=yes
22097 else
22098 gcc_cv_math_func_csqrtl=no
22099 fi
22100 rm -f core conftest.err conftest.$ac_objext \
22101 conftest$ac_exeext conftest.$ac_ext
22102 fi
22103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtl" >&5
22104 $as_echo "$gcc_cv_math_func_csqrtl" >&6; }
22105 if test $gcc_cv_math_func_csqrtl = yes; then
22106
22107 $as_echo "#define HAVE_CSQRTL 1" >>confdefs.h
22108
22109 fi
22110
22111
22112
22113
22114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanf" >&5
22115 $as_echo_n "checking for tanf... " >&6; }
22116 if test "${gcc_cv_math_func_tanf+set}" = set; then :
22117 $as_echo_n "(cached) " >&6
22118 else
22119 if test x$gcc_no_link = xyes; then
22120 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22121 fi
22122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22123 /* end confdefs.h. */
22124
22125 #ifdef HAVE_COMPLEX_H
22126 #include <complex.h>
22127 #endif
22128 #ifdef HAVE_MATH_H
22129 #include <math.h>
22130 #endif
22131
22132 int (*ptr)() = (int (*)())tanf;
22133
22134 int
22135 main ()
22136 {
22137 return 0;
22138 }
22139
22140 _ACEOF
22141 if ac_fn_c_try_link "$LINENO"; then :
22142 gcc_cv_math_func_tanf=yes
22143 else
22144 gcc_cv_math_func_tanf=no
22145 fi
22146 rm -f core conftest.err conftest.$ac_objext \
22147 conftest$ac_exeext conftest.$ac_ext
22148 fi
22149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanf" >&5
22150 $as_echo "$gcc_cv_math_func_tanf" >&6; }
22151 if test $gcc_cv_math_func_tanf = yes; then
22152
22153 $as_echo "#define HAVE_TANF 1" >>confdefs.h
22154
22155 fi
22156
22157
22158
22159
22160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tan" >&5
22161 $as_echo_n "checking for tan... " >&6; }
22162 if test "${gcc_cv_math_func_tan+set}" = set; then :
22163 $as_echo_n "(cached) " >&6
22164 else
22165 if test x$gcc_no_link = xyes; then
22166 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22167 fi
22168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22169 /* end confdefs.h. */
22170
22171 #ifdef HAVE_COMPLEX_H
22172 #include <complex.h>
22173 #endif
22174 #ifdef HAVE_MATH_H
22175 #include <math.h>
22176 #endif
22177
22178 int (*ptr)() = (int (*)())tan;
22179
22180 int
22181 main ()
22182 {
22183 return 0;
22184 }
22185
22186 _ACEOF
22187 if ac_fn_c_try_link "$LINENO"; then :
22188 gcc_cv_math_func_tan=yes
22189 else
22190 gcc_cv_math_func_tan=no
22191 fi
22192 rm -f core conftest.err conftest.$ac_objext \
22193 conftest$ac_exeext conftest.$ac_ext
22194 fi
22195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tan" >&5
22196 $as_echo "$gcc_cv_math_func_tan" >&6; }
22197 if test $gcc_cv_math_func_tan = yes; then
22198
22199 $as_echo "#define HAVE_TAN 1" >>confdefs.h
22200
22201 fi
22202
22203
22204
22205
22206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanl" >&5
22207 $as_echo_n "checking for tanl... " >&6; }
22208 if test "${gcc_cv_math_func_tanl+set}" = set; then :
22209 $as_echo_n "(cached) " >&6
22210 else
22211 if test x$gcc_no_link = xyes; then
22212 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22213 fi
22214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22215 /* end confdefs.h. */
22216
22217 #ifdef HAVE_COMPLEX_H
22218 #include <complex.h>
22219 #endif
22220 #ifdef HAVE_MATH_H
22221 #include <math.h>
22222 #endif
22223
22224 int (*ptr)() = (int (*)())tanl;
22225
22226 int
22227 main ()
22228 {
22229 return 0;
22230 }
22231
22232 _ACEOF
22233 if ac_fn_c_try_link "$LINENO"; then :
22234 gcc_cv_math_func_tanl=yes
22235 else
22236 gcc_cv_math_func_tanl=no
22237 fi
22238 rm -f core conftest.err conftest.$ac_objext \
22239 conftest$ac_exeext conftest.$ac_ext
22240 fi
22241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanl" >&5
22242 $as_echo "$gcc_cv_math_func_tanl" >&6; }
22243 if test $gcc_cv_math_func_tanl = yes; then
22244
22245 $as_echo "#define HAVE_TANL 1" >>confdefs.h
22246
22247 fi
22248
22249
22250
22251
22252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanf" >&5
22253 $as_echo_n "checking for ctanf... " >&6; }
22254 if test "${gcc_cv_math_func_ctanf+set}" = set; then :
22255 $as_echo_n "(cached) " >&6
22256 else
22257 if test x$gcc_no_link = xyes; then
22258 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22259 fi
22260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22261 /* end confdefs.h. */
22262
22263 #ifdef HAVE_COMPLEX_H
22264 #include <complex.h>
22265 #endif
22266 #ifdef HAVE_MATH_H
22267 #include <math.h>
22268 #endif
22269
22270 int (*ptr)() = (int (*)())ctanf;
22271
22272 int
22273 main ()
22274 {
22275 return 0;
22276 }
22277
22278 _ACEOF
22279 if ac_fn_c_try_link "$LINENO"; then :
22280 gcc_cv_math_func_ctanf=yes
22281 else
22282 gcc_cv_math_func_ctanf=no
22283 fi
22284 rm -f core conftest.err conftest.$ac_objext \
22285 conftest$ac_exeext conftest.$ac_ext
22286 fi
22287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanf" >&5
22288 $as_echo "$gcc_cv_math_func_ctanf" >&6; }
22289 if test $gcc_cv_math_func_ctanf = yes; then
22290
22291 $as_echo "#define HAVE_CTANF 1" >>confdefs.h
22292
22293 fi
22294
22295
22296
22297
22298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctan" >&5
22299 $as_echo_n "checking for ctan... " >&6; }
22300 if test "${gcc_cv_math_func_ctan+set}" = set; then :
22301 $as_echo_n "(cached) " >&6
22302 else
22303 if test x$gcc_no_link = xyes; then
22304 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22305 fi
22306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22307 /* end confdefs.h. */
22308
22309 #ifdef HAVE_COMPLEX_H
22310 #include <complex.h>
22311 #endif
22312 #ifdef HAVE_MATH_H
22313 #include <math.h>
22314 #endif
22315
22316 int (*ptr)() = (int (*)())ctan;
22317
22318 int
22319 main ()
22320 {
22321 return 0;
22322 }
22323
22324 _ACEOF
22325 if ac_fn_c_try_link "$LINENO"; then :
22326 gcc_cv_math_func_ctan=yes
22327 else
22328 gcc_cv_math_func_ctan=no
22329 fi
22330 rm -f core conftest.err conftest.$ac_objext \
22331 conftest$ac_exeext conftest.$ac_ext
22332 fi
22333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctan" >&5
22334 $as_echo "$gcc_cv_math_func_ctan" >&6; }
22335 if test $gcc_cv_math_func_ctan = yes; then
22336
22337 $as_echo "#define HAVE_CTAN 1" >>confdefs.h
22338
22339 fi
22340
22341
22342
22343
22344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanl" >&5
22345 $as_echo_n "checking for ctanl... " >&6; }
22346 if test "${gcc_cv_math_func_ctanl+set}" = set; then :
22347 $as_echo_n "(cached) " >&6
22348 else
22349 if test x$gcc_no_link = xyes; then
22350 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22351 fi
22352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22353 /* end confdefs.h. */
22354
22355 #ifdef HAVE_COMPLEX_H
22356 #include <complex.h>
22357 #endif
22358 #ifdef HAVE_MATH_H
22359 #include <math.h>
22360 #endif
22361
22362 int (*ptr)() = (int (*)())ctanl;
22363
22364 int
22365 main ()
22366 {
22367 return 0;
22368 }
22369
22370 _ACEOF
22371 if ac_fn_c_try_link "$LINENO"; then :
22372 gcc_cv_math_func_ctanl=yes
22373 else
22374 gcc_cv_math_func_ctanl=no
22375 fi
22376 rm -f core conftest.err conftest.$ac_objext \
22377 conftest$ac_exeext conftest.$ac_ext
22378 fi
22379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanl" >&5
22380 $as_echo "$gcc_cv_math_func_ctanl" >&6; }
22381 if test $gcc_cv_math_func_ctanl = yes; then
22382
22383 $as_echo "#define HAVE_CTANL 1" >>confdefs.h
22384
22385 fi
22386
22387
22388
22389
22390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhf" >&5
22391 $as_echo_n "checking for tanhf... " >&6; }
22392 if test "${gcc_cv_math_func_tanhf+set}" = set; then :
22393 $as_echo_n "(cached) " >&6
22394 else
22395 if test x$gcc_no_link = xyes; then
22396 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22397 fi
22398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22399 /* end confdefs.h. */
22400
22401 #ifdef HAVE_COMPLEX_H
22402 #include <complex.h>
22403 #endif
22404 #ifdef HAVE_MATH_H
22405 #include <math.h>
22406 #endif
22407
22408 int (*ptr)() = (int (*)())tanhf;
22409
22410 int
22411 main ()
22412 {
22413 return 0;
22414 }
22415
22416 _ACEOF
22417 if ac_fn_c_try_link "$LINENO"; then :
22418 gcc_cv_math_func_tanhf=yes
22419 else
22420 gcc_cv_math_func_tanhf=no
22421 fi
22422 rm -f core conftest.err conftest.$ac_objext \
22423 conftest$ac_exeext conftest.$ac_ext
22424 fi
22425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhf" >&5
22426 $as_echo "$gcc_cv_math_func_tanhf" >&6; }
22427 if test $gcc_cv_math_func_tanhf = yes; then
22428
22429 $as_echo "#define HAVE_TANHF 1" >>confdefs.h
22430
22431 fi
22432
22433
22434
22435
22436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanh" >&5
22437 $as_echo_n "checking for tanh... " >&6; }
22438 if test "${gcc_cv_math_func_tanh+set}" = set; then :
22439 $as_echo_n "(cached) " >&6
22440 else
22441 if test x$gcc_no_link = xyes; then
22442 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22443 fi
22444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22445 /* end confdefs.h. */
22446
22447 #ifdef HAVE_COMPLEX_H
22448 #include <complex.h>
22449 #endif
22450 #ifdef HAVE_MATH_H
22451 #include <math.h>
22452 #endif
22453
22454 int (*ptr)() = (int (*)())tanh;
22455
22456 int
22457 main ()
22458 {
22459 return 0;
22460 }
22461
22462 _ACEOF
22463 if ac_fn_c_try_link "$LINENO"; then :
22464 gcc_cv_math_func_tanh=yes
22465 else
22466 gcc_cv_math_func_tanh=no
22467 fi
22468 rm -f core conftest.err conftest.$ac_objext \
22469 conftest$ac_exeext conftest.$ac_ext
22470 fi
22471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanh" >&5
22472 $as_echo "$gcc_cv_math_func_tanh" >&6; }
22473 if test $gcc_cv_math_func_tanh = yes; then
22474
22475 $as_echo "#define HAVE_TANH 1" >>confdefs.h
22476
22477 fi
22478
22479
22480
22481
22482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhl" >&5
22483 $as_echo_n "checking for tanhl... " >&6; }
22484 if test "${gcc_cv_math_func_tanhl+set}" = set; then :
22485 $as_echo_n "(cached) " >&6
22486 else
22487 if test x$gcc_no_link = xyes; then
22488 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22489 fi
22490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22491 /* end confdefs.h. */
22492
22493 #ifdef HAVE_COMPLEX_H
22494 #include <complex.h>
22495 #endif
22496 #ifdef HAVE_MATH_H
22497 #include <math.h>
22498 #endif
22499
22500 int (*ptr)() = (int (*)())tanhl;
22501
22502 int
22503 main ()
22504 {
22505 return 0;
22506 }
22507
22508 _ACEOF
22509 if ac_fn_c_try_link "$LINENO"; then :
22510 gcc_cv_math_func_tanhl=yes
22511 else
22512 gcc_cv_math_func_tanhl=no
22513 fi
22514 rm -f core conftest.err conftest.$ac_objext \
22515 conftest$ac_exeext conftest.$ac_ext
22516 fi
22517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhl" >&5
22518 $as_echo "$gcc_cv_math_func_tanhl" >&6; }
22519 if test $gcc_cv_math_func_tanhl = yes; then
22520
22521 $as_echo "#define HAVE_TANHL 1" >>confdefs.h
22522
22523 fi
22524
22525
22526
22527
22528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhf" >&5
22529 $as_echo_n "checking for ctanhf... " >&6; }
22530 if test "${gcc_cv_math_func_ctanhf+set}" = set; then :
22531 $as_echo_n "(cached) " >&6
22532 else
22533 if test x$gcc_no_link = xyes; then
22534 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22535 fi
22536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22537 /* end confdefs.h. */
22538
22539 #ifdef HAVE_COMPLEX_H
22540 #include <complex.h>
22541 #endif
22542 #ifdef HAVE_MATH_H
22543 #include <math.h>
22544 #endif
22545
22546 int (*ptr)() = (int (*)())ctanhf;
22547
22548 int
22549 main ()
22550 {
22551 return 0;
22552 }
22553
22554 _ACEOF
22555 if ac_fn_c_try_link "$LINENO"; then :
22556 gcc_cv_math_func_ctanhf=yes
22557 else
22558 gcc_cv_math_func_ctanhf=no
22559 fi
22560 rm -f core conftest.err conftest.$ac_objext \
22561 conftest$ac_exeext conftest.$ac_ext
22562 fi
22563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhf" >&5
22564 $as_echo "$gcc_cv_math_func_ctanhf" >&6; }
22565 if test $gcc_cv_math_func_ctanhf = yes; then
22566
22567 $as_echo "#define HAVE_CTANHF 1" >>confdefs.h
22568
22569 fi
22570
22571
22572
22573
22574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanh" >&5
22575 $as_echo_n "checking for ctanh... " >&6; }
22576 if test "${gcc_cv_math_func_ctanh+set}" = set; then :
22577 $as_echo_n "(cached) " >&6
22578 else
22579 if test x$gcc_no_link = xyes; then
22580 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22581 fi
22582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22583 /* end confdefs.h. */
22584
22585 #ifdef HAVE_COMPLEX_H
22586 #include <complex.h>
22587 #endif
22588 #ifdef HAVE_MATH_H
22589 #include <math.h>
22590 #endif
22591
22592 int (*ptr)() = (int (*)())ctanh;
22593
22594 int
22595 main ()
22596 {
22597 return 0;
22598 }
22599
22600 _ACEOF
22601 if ac_fn_c_try_link "$LINENO"; then :
22602 gcc_cv_math_func_ctanh=yes
22603 else
22604 gcc_cv_math_func_ctanh=no
22605 fi
22606 rm -f core conftest.err conftest.$ac_objext \
22607 conftest$ac_exeext conftest.$ac_ext
22608 fi
22609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanh" >&5
22610 $as_echo "$gcc_cv_math_func_ctanh" >&6; }
22611 if test $gcc_cv_math_func_ctanh = yes; then
22612
22613 $as_echo "#define HAVE_CTANH 1" >>confdefs.h
22614
22615 fi
22616
22617
22618
22619
22620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhl" >&5
22621 $as_echo_n "checking for ctanhl... " >&6; }
22622 if test "${gcc_cv_math_func_ctanhl+set}" = set; then :
22623 $as_echo_n "(cached) " >&6
22624 else
22625 if test x$gcc_no_link = xyes; then
22626 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22627 fi
22628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22629 /* end confdefs.h. */
22630
22631 #ifdef HAVE_COMPLEX_H
22632 #include <complex.h>
22633 #endif
22634 #ifdef HAVE_MATH_H
22635 #include <math.h>
22636 #endif
22637
22638 int (*ptr)() = (int (*)())ctanhl;
22639
22640 int
22641 main ()
22642 {
22643 return 0;
22644 }
22645
22646 _ACEOF
22647 if ac_fn_c_try_link "$LINENO"; then :
22648 gcc_cv_math_func_ctanhl=yes
22649 else
22650 gcc_cv_math_func_ctanhl=no
22651 fi
22652 rm -f core conftest.err conftest.$ac_objext \
22653 conftest$ac_exeext conftest.$ac_ext
22654 fi
22655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhl" >&5
22656 $as_echo "$gcc_cv_math_func_ctanhl" >&6; }
22657 if test $gcc_cv_math_func_ctanhl = yes; then
22658
22659 $as_echo "#define HAVE_CTANHL 1" >>confdefs.h
22660
22661 fi
22662
22663
22664
22665
22666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncf" >&5
22667 $as_echo_n "checking for truncf... " >&6; }
22668 if test "${gcc_cv_math_func_truncf+set}" = set; then :
22669 $as_echo_n "(cached) " >&6
22670 else
22671 if test x$gcc_no_link = xyes; then
22672 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22673 fi
22674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22675 /* end confdefs.h. */
22676
22677 #ifdef HAVE_COMPLEX_H
22678 #include <complex.h>
22679 #endif
22680 #ifdef HAVE_MATH_H
22681 #include <math.h>
22682 #endif
22683
22684 int (*ptr)() = (int (*)())truncf;
22685
22686 int
22687 main ()
22688 {
22689 return 0;
22690 }
22691
22692 _ACEOF
22693 if ac_fn_c_try_link "$LINENO"; then :
22694 gcc_cv_math_func_truncf=yes
22695 else
22696 gcc_cv_math_func_truncf=no
22697 fi
22698 rm -f core conftest.err conftest.$ac_objext \
22699 conftest$ac_exeext conftest.$ac_ext
22700 fi
22701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncf" >&5
22702 $as_echo "$gcc_cv_math_func_truncf" >&6; }
22703 if test $gcc_cv_math_func_truncf = yes; then
22704
22705 $as_echo "#define HAVE_TRUNCF 1" >>confdefs.h
22706
22707 fi
22708
22709
22710
22711
22712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for trunc" >&5
22713 $as_echo_n "checking for trunc... " >&6; }
22714 if test "${gcc_cv_math_func_trunc+set}" = set; then :
22715 $as_echo_n "(cached) " >&6
22716 else
22717 if test x$gcc_no_link = xyes; then
22718 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22719 fi
22720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22721 /* end confdefs.h. */
22722
22723 #ifdef HAVE_COMPLEX_H
22724 #include <complex.h>
22725 #endif
22726 #ifdef HAVE_MATH_H
22727 #include <math.h>
22728 #endif
22729
22730 int (*ptr)() = (int (*)())trunc;
22731
22732 int
22733 main ()
22734 {
22735 return 0;
22736 }
22737
22738 _ACEOF
22739 if ac_fn_c_try_link "$LINENO"; then :
22740 gcc_cv_math_func_trunc=yes
22741 else
22742 gcc_cv_math_func_trunc=no
22743 fi
22744 rm -f core conftest.err conftest.$ac_objext \
22745 conftest$ac_exeext conftest.$ac_ext
22746 fi
22747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_trunc" >&5
22748 $as_echo "$gcc_cv_math_func_trunc" >&6; }
22749 if test $gcc_cv_math_func_trunc = yes; then
22750
22751 $as_echo "#define HAVE_TRUNC 1" >>confdefs.h
22752
22753 fi
22754
22755
22756
22757
22758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncl" >&5
22759 $as_echo_n "checking for truncl... " >&6; }
22760 if test "${gcc_cv_math_func_truncl+set}" = set; then :
22761 $as_echo_n "(cached) " >&6
22762 else
22763 if test x$gcc_no_link = xyes; then
22764 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22765 fi
22766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22767 /* end confdefs.h. */
22768
22769 #ifdef HAVE_COMPLEX_H
22770 #include <complex.h>
22771 #endif
22772 #ifdef HAVE_MATH_H
22773 #include <math.h>
22774 #endif
22775
22776 int (*ptr)() = (int (*)())truncl;
22777
22778 int
22779 main ()
22780 {
22781 return 0;
22782 }
22783
22784 _ACEOF
22785 if ac_fn_c_try_link "$LINENO"; then :
22786 gcc_cv_math_func_truncl=yes
22787 else
22788 gcc_cv_math_func_truncl=no
22789 fi
22790 rm -f core conftest.err conftest.$ac_objext \
22791 conftest$ac_exeext conftest.$ac_ext
22792 fi
22793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncl" >&5
22794 $as_echo "$gcc_cv_math_func_truncl" >&6; }
22795 if test $gcc_cv_math_func_truncl = yes; then
22796
22797 $as_echo "#define HAVE_TRUNCL 1" >>confdefs.h
22798
22799 fi
22800
22801
22802
22803
22804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erff" >&5
22805 $as_echo_n "checking for erff... " >&6; }
22806 if test "${gcc_cv_math_func_erff+set}" = set; then :
22807 $as_echo_n "(cached) " >&6
22808 else
22809 if test x$gcc_no_link = xyes; then
22810 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22811 fi
22812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22813 /* end confdefs.h. */
22814
22815 #ifdef HAVE_COMPLEX_H
22816 #include <complex.h>
22817 #endif
22818 #ifdef HAVE_MATH_H
22819 #include <math.h>
22820 #endif
22821
22822 int (*ptr)() = (int (*)())erff;
22823
22824 int
22825 main ()
22826 {
22827 return 0;
22828 }
22829
22830 _ACEOF
22831 if ac_fn_c_try_link "$LINENO"; then :
22832 gcc_cv_math_func_erff=yes
22833 else
22834 gcc_cv_math_func_erff=no
22835 fi
22836 rm -f core conftest.err conftest.$ac_objext \
22837 conftest$ac_exeext conftest.$ac_ext
22838 fi
22839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erff" >&5
22840 $as_echo "$gcc_cv_math_func_erff" >&6; }
22841 if test $gcc_cv_math_func_erff = yes; then
22842
22843 $as_echo "#define HAVE_ERFF 1" >>confdefs.h
22844
22845 fi
22846
22847
22848
22849
22850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erf" >&5
22851 $as_echo_n "checking for erf... " >&6; }
22852 if test "${gcc_cv_math_func_erf+set}" = set; then :
22853 $as_echo_n "(cached) " >&6
22854 else
22855 if test x$gcc_no_link = xyes; then
22856 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22857 fi
22858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22859 /* end confdefs.h. */
22860
22861 #ifdef HAVE_COMPLEX_H
22862 #include <complex.h>
22863 #endif
22864 #ifdef HAVE_MATH_H
22865 #include <math.h>
22866 #endif
22867
22868 int (*ptr)() = (int (*)())erf;
22869
22870 int
22871 main ()
22872 {
22873 return 0;
22874 }
22875
22876 _ACEOF
22877 if ac_fn_c_try_link "$LINENO"; then :
22878 gcc_cv_math_func_erf=yes
22879 else
22880 gcc_cv_math_func_erf=no
22881 fi
22882 rm -f core conftest.err conftest.$ac_objext \
22883 conftest$ac_exeext conftest.$ac_ext
22884 fi
22885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erf" >&5
22886 $as_echo "$gcc_cv_math_func_erf" >&6; }
22887 if test $gcc_cv_math_func_erf = yes; then
22888
22889 $as_echo "#define HAVE_ERF 1" >>confdefs.h
22890
22891 fi
22892
22893
22894
22895
22896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfl" >&5
22897 $as_echo_n "checking for erfl... " >&6; }
22898 if test "${gcc_cv_math_func_erfl+set}" = set; then :
22899 $as_echo_n "(cached) " >&6
22900 else
22901 if test x$gcc_no_link = xyes; then
22902 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22903 fi
22904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22905 /* end confdefs.h. */
22906
22907 #ifdef HAVE_COMPLEX_H
22908 #include <complex.h>
22909 #endif
22910 #ifdef HAVE_MATH_H
22911 #include <math.h>
22912 #endif
22913
22914 int (*ptr)() = (int (*)())erfl;
22915
22916 int
22917 main ()
22918 {
22919 return 0;
22920 }
22921
22922 _ACEOF
22923 if ac_fn_c_try_link "$LINENO"; then :
22924 gcc_cv_math_func_erfl=yes
22925 else
22926 gcc_cv_math_func_erfl=no
22927 fi
22928 rm -f core conftest.err conftest.$ac_objext \
22929 conftest$ac_exeext conftest.$ac_ext
22930 fi
22931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfl" >&5
22932 $as_echo "$gcc_cv_math_func_erfl" >&6; }
22933 if test $gcc_cv_math_func_erfl = yes; then
22934
22935 $as_echo "#define HAVE_ERFL 1" >>confdefs.h
22936
22937 fi
22938
22939
22940
22941
22942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcf" >&5
22943 $as_echo_n "checking for erfcf... " >&6; }
22944 if test "${gcc_cv_math_func_erfcf+set}" = set; then :
22945 $as_echo_n "(cached) " >&6
22946 else
22947 if test x$gcc_no_link = xyes; then
22948 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22949 fi
22950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22951 /* end confdefs.h. */
22952
22953 #ifdef HAVE_COMPLEX_H
22954 #include <complex.h>
22955 #endif
22956 #ifdef HAVE_MATH_H
22957 #include <math.h>
22958 #endif
22959
22960 int (*ptr)() = (int (*)())erfcf;
22961
22962 int
22963 main ()
22964 {
22965 return 0;
22966 }
22967
22968 _ACEOF
22969 if ac_fn_c_try_link "$LINENO"; then :
22970 gcc_cv_math_func_erfcf=yes
22971 else
22972 gcc_cv_math_func_erfcf=no
22973 fi
22974 rm -f core conftest.err conftest.$ac_objext \
22975 conftest$ac_exeext conftest.$ac_ext
22976 fi
22977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcf" >&5
22978 $as_echo "$gcc_cv_math_func_erfcf" >&6; }
22979 if test $gcc_cv_math_func_erfcf = yes; then
22980
22981 $as_echo "#define HAVE_ERFCF 1" >>confdefs.h
22982
22983 fi
22984
22985
22986
22987
22988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfc" >&5
22989 $as_echo_n "checking for erfc... " >&6; }
22990 if test "${gcc_cv_math_func_erfc+set}" = set; then :
22991 $as_echo_n "(cached) " >&6
22992 else
22993 if test x$gcc_no_link = xyes; then
22994 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22995 fi
22996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22997 /* end confdefs.h. */
22998
22999 #ifdef HAVE_COMPLEX_H
23000 #include <complex.h>
23001 #endif
23002 #ifdef HAVE_MATH_H
23003 #include <math.h>
23004 #endif
23005
23006 int (*ptr)() = (int (*)())erfc;
23007
23008 int
23009 main ()
23010 {
23011 return 0;
23012 }
23013
23014 _ACEOF
23015 if ac_fn_c_try_link "$LINENO"; then :
23016 gcc_cv_math_func_erfc=yes
23017 else
23018 gcc_cv_math_func_erfc=no
23019 fi
23020 rm -f core conftest.err conftest.$ac_objext \
23021 conftest$ac_exeext conftest.$ac_ext
23022 fi
23023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfc" >&5
23024 $as_echo "$gcc_cv_math_func_erfc" >&6; }
23025 if test $gcc_cv_math_func_erfc = yes; then
23026
23027 $as_echo "#define HAVE_ERFC 1" >>confdefs.h
23028
23029 fi
23030
23031
23032
23033
23034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcl" >&5
23035 $as_echo_n "checking for erfcl... " >&6; }
23036 if test "${gcc_cv_math_func_erfcl+set}" = set; then :
23037 $as_echo_n "(cached) " >&6
23038 else
23039 if test x$gcc_no_link = xyes; then
23040 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23041 fi
23042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23043 /* end confdefs.h. */
23044
23045 #ifdef HAVE_COMPLEX_H
23046 #include <complex.h>
23047 #endif
23048 #ifdef HAVE_MATH_H
23049 #include <math.h>
23050 #endif
23051
23052 int (*ptr)() = (int (*)())erfcl;
23053
23054 int
23055 main ()
23056 {
23057 return 0;
23058 }
23059
23060 _ACEOF
23061 if ac_fn_c_try_link "$LINENO"; then :
23062 gcc_cv_math_func_erfcl=yes
23063 else
23064 gcc_cv_math_func_erfcl=no
23065 fi
23066 rm -f core conftest.err conftest.$ac_objext \
23067 conftest$ac_exeext conftest.$ac_ext
23068 fi
23069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcl" >&5
23070 $as_echo "$gcc_cv_math_func_erfcl" >&6; }
23071 if test $gcc_cv_math_func_erfcl = yes; then
23072
23073 $as_echo "#define HAVE_ERFCL 1" >>confdefs.h
23074
23075 fi
23076
23077
23078
23079
23080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0f" >&5
23081 $as_echo_n "checking for j0f... " >&6; }
23082 if test "${gcc_cv_math_func_j0f+set}" = set; then :
23083 $as_echo_n "(cached) " >&6
23084 else
23085 if test x$gcc_no_link = xyes; then
23086 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23087 fi
23088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23089 /* end confdefs.h. */
23090
23091 #ifdef HAVE_COMPLEX_H
23092 #include <complex.h>
23093 #endif
23094 #ifdef HAVE_MATH_H
23095 #include <math.h>
23096 #endif
23097
23098 int (*ptr)() = (int (*)())j0f;
23099
23100 int
23101 main ()
23102 {
23103 return 0;
23104 }
23105
23106 _ACEOF
23107 if ac_fn_c_try_link "$LINENO"; then :
23108 gcc_cv_math_func_j0f=yes
23109 else
23110 gcc_cv_math_func_j0f=no
23111 fi
23112 rm -f core conftest.err conftest.$ac_objext \
23113 conftest$ac_exeext conftest.$ac_ext
23114 fi
23115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0f" >&5
23116 $as_echo "$gcc_cv_math_func_j0f" >&6; }
23117 if test $gcc_cv_math_func_j0f = yes; then
23118
23119 $as_echo "#define HAVE_J0F 1" >>confdefs.h
23120
23121 fi
23122
23123
23124
23125
23126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0" >&5
23127 $as_echo_n "checking for j0... " >&6; }
23128 if test "${gcc_cv_math_func_j0+set}" = set; then :
23129 $as_echo_n "(cached) " >&6
23130 else
23131 if test x$gcc_no_link = xyes; then
23132 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23133 fi
23134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23135 /* end confdefs.h. */
23136
23137 #ifdef HAVE_COMPLEX_H
23138 #include <complex.h>
23139 #endif
23140 #ifdef HAVE_MATH_H
23141 #include <math.h>
23142 #endif
23143
23144 int (*ptr)() = (int (*)())j0;
23145
23146 int
23147 main ()
23148 {
23149 return 0;
23150 }
23151
23152 _ACEOF
23153 if ac_fn_c_try_link "$LINENO"; then :
23154 gcc_cv_math_func_j0=yes
23155 else
23156 gcc_cv_math_func_j0=no
23157 fi
23158 rm -f core conftest.err conftest.$ac_objext \
23159 conftest$ac_exeext conftest.$ac_ext
23160 fi
23161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0" >&5
23162 $as_echo "$gcc_cv_math_func_j0" >&6; }
23163 if test $gcc_cv_math_func_j0 = yes; then
23164
23165 $as_echo "#define HAVE_J0 1" >>confdefs.h
23166
23167 fi
23168
23169
23170
23171
23172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0l" >&5
23173 $as_echo_n "checking for j0l... " >&6; }
23174 if test "${gcc_cv_math_func_j0l+set}" = set; then :
23175 $as_echo_n "(cached) " >&6
23176 else
23177 if test x$gcc_no_link = xyes; then
23178 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23179 fi
23180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23181 /* end confdefs.h. */
23182
23183 #ifdef HAVE_COMPLEX_H
23184 #include <complex.h>
23185 #endif
23186 #ifdef HAVE_MATH_H
23187 #include <math.h>
23188 #endif
23189
23190 int (*ptr)() = (int (*)())j0l;
23191
23192 int
23193 main ()
23194 {
23195 return 0;
23196 }
23197
23198 _ACEOF
23199 if ac_fn_c_try_link "$LINENO"; then :
23200 gcc_cv_math_func_j0l=yes
23201 else
23202 gcc_cv_math_func_j0l=no
23203 fi
23204 rm -f core conftest.err conftest.$ac_objext \
23205 conftest$ac_exeext conftest.$ac_ext
23206 fi
23207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0l" >&5
23208 $as_echo "$gcc_cv_math_func_j0l" >&6; }
23209 if test $gcc_cv_math_func_j0l = yes; then
23210
23211 $as_echo "#define HAVE_J0L 1" >>confdefs.h
23212
23213 fi
23214
23215
23216
23217
23218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1f" >&5
23219 $as_echo_n "checking for j1f... " >&6; }
23220 if test "${gcc_cv_math_func_j1f+set}" = set; then :
23221 $as_echo_n "(cached) " >&6
23222 else
23223 if test x$gcc_no_link = xyes; then
23224 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23225 fi
23226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23227 /* end confdefs.h. */
23228
23229 #ifdef HAVE_COMPLEX_H
23230 #include <complex.h>
23231 #endif
23232 #ifdef HAVE_MATH_H
23233 #include <math.h>
23234 #endif
23235
23236 int (*ptr)() = (int (*)())j1f;
23237
23238 int
23239 main ()
23240 {
23241 return 0;
23242 }
23243
23244 _ACEOF
23245 if ac_fn_c_try_link "$LINENO"; then :
23246 gcc_cv_math_func_j1f=yes
23247 else
23248 gcc_cv_math_func_j1f=no
23249 fi
23250 rm -f core conftest.err conftest.$ac_objext \
23251 conftest$ac_exeext conftest.$ac_ext
23252 fi
23253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1f" >&5
23254 $as_echo "$gcc_cv_math_func_j1f" >&6; }
23255 if test $gcc_cv_math_func_j1f = yes; then
23256
23257 $as_echo "#define HAVE_J1F 1" >>confdefs.h
23258
23259 fi
23260
23261
23262
23263
23264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1" >&5
23265 $as_echo_n "checking for j1... " >&6; }
23266 if test "${gcc_cv_math_func_j1+set}" = set; then :
23267 $as_echo_n "(cached) " >&6
23268 else
23269 if test x$gcc_no_link = xyes; then
23270 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23271 fi
23272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23273 /* end confdefs.h. */
23274
23275 #ifdef HAVE_COMPLEX_H
23276 #include <complex.h>
23277 #endif
23278 #ifdef HAVE_MATH_H
23279 #include <math.h>
23280 #endif
23281
23282 int (*ptr)() = (int (*)())j1;
23283
23284 int
23285 main ()
23286 {
23287 return 0;
23288 }
23289
23290 _ACEOF
23291 if ac_fn_c_try_link "$LINENO"; then :
23292 gcc_cv_math_func_j1=yes
23293 else
23294 gcc_cv_math_func_j1=no
23295 fi
23296 rm -f core conftest.err conftest.$ac_objext \
23297 conftest$ac_exeext conftest.$ac_ext
23298 fi
23299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1" >&5
23300 $as_echo "$gcc_cv_math_func_j1" >&6; }
23301 if test $gcc_cv_math_func_j1 = yes; then
23302
23303 $as_echo "#define HAVE_J1 1" >>confdefs.h
23304
23305 fi
23306
23307
23308
23309
23310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1l" >&5
23311 $as_echo_n "checking for j1l... " >&6; }
23312 if test "${gcc_cv_math_func_j1l+set}" = set; then :
23313 $as_echo_n "(cached) " >&6
23314 else
23315 if test x$gcc_no_link = xyes; then
23316 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23317 fi
23318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23319 /* end confdefs.h. */
23320
23321 #ifdef HAVE_COMPLEX_H
23322 #include <complex.h>
23323 #endif
23324 #ifdef HAVE_MATH_H
23325 #include <math.h>
23326 #endif
23327
23328 int (*ptr)() = (int (*)())j1l;
23329
23330 int
23331 main ()
23332 {
23333 return 0;
23334 }
23335
23336 _ACEOF
23337 if ac_fn_c_try_link "$LINENO"; then :
23338 gcc_cv_math_func_j1l=yes
23339 else
23340 gcc_cv_math_func_j1l=no
23341 fi
23342 rm -f core conftest.err conftest.$ac_objext \
23343 conftest$ac_exeext conftest.$ac_ext
23344 fi
23345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1l" >&5
23346 $as_echo "$gcc_cv_math_func_j1l" >&6; }
23347 if test $gcc_cv_math_func_j1l = yes; then
23348
23349 $as_echo "#define HAVE_J1L 1" >>confdefs.h
23350
23351 fi
23352
23353
23354
23355
23356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnf" >&5
23357 $as_echo_n "checking for jnf... " >&6; }
23358 if test "${gcc_cv_math_func_jnf+set}" = set; then :
23359 $as_echo_n "(cached) " >&6
23360 else
23361 if test x$gcc_no_link = xyes; then
23362 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23363 fi
23364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23365 /* end confdefs.h. */
23366
23367 #ifdef HAVE_COMPLEX_H
23368 #include <complex.h>
23369 #endif
23370 #ifdef HAVE_MATH_H
23371 #include <math.h>
23372 #endif
23373
23374 int (*ptr)() = (int (*)())jnf;
23375
23376 int
23377 main ()
23378 {
23379 return 0;
23380 }
23381
23382 _ACEOF
23383 if ac_fn_c_try_link "$LINENO"; then :
23384 gcc_cv_math_func_jnf=yes
23385 else
23386 gcc_cv_math_func_jnf=no
23387 fi
23388 rm -f core conftest.err conftest.$ac_objext \
23389 conftest$ac_exeext conftest.$ac_ext
23390 fi
23391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnf" >&5
23392 $as_echo "$gcc_cv_math_func_jnf" >&6; }
23393 if test $gcc_cv_math_func_jnf = yes; then
23394
23395 $as_echo "#define HAVE_JNF 1" >>confdefs.h
23396
23397 fi
23398
23399
23400
23401
23402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jn" >&5
23403 $as_echo_n "checking for jn... " >&6; }
23404 if test "${gcc_cv_math_func_jn+set}" = set; then :
23405 $as_echo_n "(cached) " >&6
23406 else
23407 if test x$gcc_no_link = xyes; then
23408 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23409 fi
23410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23411 /* end confdefs.h. */
23412
23413 #ifdef HAVE_COMPLEX_H
23414 #include <complex.h>
23415 #endif
23416 #ifdef HAVE_MATH_H
23417 #include <math.h>
23418 #endif
23419
23420 int (*ptr)() = (int (*)())jn;
23421
23422 int
23423 main ()
23424 {
23425 return 0;
23426 }
23427
23428 _ACEOF
23429 if ac_fn_c_try_link "$LINENO"; then :
23430 gcc_cv_math_func_jn=yes
23431 else
23432 gcc_cv_math_func_jn=no
23433 fi
23434 rm -f core conftest.err conftest.$ac_objext \
23435 conftest$ac_exeext conftest.$ac_ext
23436 fi
23437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jn" >&5
23438 $as_echo "$gcc_cv_math_func_jn" >&6; }
23439 if test $gcc_cv_math_func_jn = yes; then
23440
23441 $as_echo "#define HAVE_JN 1" >>confdefs.h
23442
23443 fi
23444
23445
23446
23447
23448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnl" >&5
23449 $as_echo_n "checking for jnl... " >&6; }
23450 if test "${gcc_cv_math_func_jnl+set}" = set; then :
23451 $as_echo_n "(cached) " >&6
23452 else
23453 if test x$gcc_no_link = xyes; then
23454 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23455 fi
23456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23457 /* end confdefs.h. */
23458
23459 #ifdef HAVE_COMPLEX_H
23460 #include <complex.h>
23461 #endif
23462 #ifdef HAVE_MATH_H
23463 #include <math.h>
23464 #endif
23465
23466 int (*ptr)() = (int (*)())jnl;
23467
23468 int
23469 main ()
23470 {
23471 return 0;
23472 }
23473
23474 _ACEOF
23475 if ac_fn_c_try_link "$LINENO"; then :
23476 gcc_cv_math_func_jnl=yes
23477 else
23478 gcc_cv_math_func_jnl=no
23479 fi
23480 rm -f core conftest.err conftest.$ac_objext \
23481 conftest$ac_exeext conftest.$ac_ext
23482 fi
23483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnl" >&5
23484 $as_echo "$gcc_cv_math_func_jnl" >&6; }
23485 if test $gcc_cv_math_func_jnl = yes; then
23486
23487 $as_echo "#define HAVE_JNL 1" >>confdefs.h
23488
23489 fi
23490
23491
23492
23493
23494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0f" >&5
23495 $as_echo_n "checking for y0f... " >&6; }
23496 if test "${gcc_cv_math_func_y0f+set}" = set; then :
23497 $as_echo_n "(cached) " >&6
23498 else
23499 if test x$gcc_no_link = xyes; then
23500 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23501 fi
23502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23503 /* end confdefs.h. */
23504
23505 #ifdef HAVE_COMPLEX_H
23506 #include <complex.h>
23507 #endif
23508 #ifdef HAVE_MATH_H
23509 #include <math.h>
23510 #endif
23511
23512 int (*ptr)() = (int (*)())y0f;
23513
23514 int
23515 main ()
23516 {
23517 return 0;
23518 }
23519
23520 _ACEOF
23521 if ac_fn_c_try_link "$LINENO"; then :
23522 gcc_cv_math_func_y0f=yes
23523 else
23524 gcc_cv_math_func_y0f=no
23525 fi
23526 rm -f core conftest.err conftest.$ac_objext \
23527 conftest$ac_exeext conftest.$ac_ext
23528 fi
23529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0f" >&5
23530 $as_echo "$gcc_cv_math_func_y0f" >&6; }
23531 if test $gcc_cv_math_func_y0f = yes; then
23532
23533 $as_echo "#define HAVE_Y0F 1" >>confdefs.h
23534
23535 fi
23536
23537
23538
23539
23540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0" >&5
23541 $as_echo_n "checking for y0... " >&6; }
23542 if test "${gcc_cv_math_func_y0+set}" = set; then :
23543 $as_echo_n "(cached) " >&6
23544 else
23545 if test x$gcc_no_link = xyes; then
23546 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23547 fi
23548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23549 /* end confdefs.h. */
23550
23551 #ifdef HAVE_COMPLEX_H
23552 #include <complex.h>
23553 #endif
23554 #ifdef HAVE_MATH_H
23555 #include <math.h>
23556 #endif
23557
23558 int (*ptr)() = (int (*)())y0;
23559
23560 int
23561 main ()
23562 {
23563 return 0;
23564 }
23565
23566 _ACEOF
23567 if ac_fn_c_try_link "$LINENO"; then :
23568 gcc_cv_math_func_y0=yes
23569 else
23570 gcc_cv_math_func_y0=no
23571 fi
23572 rm -f core conftest.err conftest.$ac_objext \
23573 conftest$ac_exeext conftest.$ac_ext
23574 fi
23575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0" >&5
23576 $as_echo "$gcc_cv_math_func_y0" >&6; }
23577 if test $gcc_cv_math_func_y0 = yes; then
23578
23579 $as_echo "#define HAVE_Y0 1" >>confdefs.h
23580
23581 fi
23582
23583
23584
23585
23586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0l" >&5
23587 $as_echo_n "checking for y0l... " >&6; }
23588 if test "${gcc_cv_math_func_y0l+set}" = set; then :
23589 $as_echo_n "(cached) " >&6
23590 else
23591 if test x$gcc_no_link = xyes; then
23592 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23593 fi
23594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23595 /* end confdefs.h. */
23596
23597 #ifdef HAVE_COMPLEX_H
23598 #include <complex.h>
23599 #endif
23600 #ifdef HAVE_MATH_H
23601 #include <math.h>
23602 #endif
23603
23604 int (*ptr)() = (int (*)())y0l;
23605
23606 int
23607 main ()
23608 {
23609 return 0;
23610 }
23611
23612 _ACEOF
23613 if ac_fn_c_try_link "$LINENO"; then :
23614 gcc_cv_math_func_y0l=yes
23615 else
23616 gcc_cv_math_func_y0l=no
23617 fi
23618 rm -f core conftest.err conftest.$ac_objext \
23619 conftest$ac_exeext conftest.$ac_ext
23620 fi
23621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0l" >&5
23622 $as_echo "$gcc_cv_math_func_y0l" >&6; }
23623 if test $gcc_cv_math_func_y0l = yes; then
23624
23625 $as_echo "#define HAVE_Y0L 1" >>confdefs.h
23626
23627 fi
23628
23629
23630
23631
23632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1f" >&5
23633 $as_echo_n "checking for y1f... " >&6; }
23634 if test "${gcc_cv_math_func_y1f+set}" = set; then :
23635 $as_echo_n "(cached) " >&6
23636 else
23637 if test x$gcc_no_link = xyes; then
23638 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23639 fi
23640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23641 /* end confdefs.h. */
23642
23643 #ifdef HAVE_COMPLEX_H
23644 #include <complex.h>
23645 #endif
23646 #ifdef HAVE_MATH_H
23647 #include <math.h>
23648 #endif
23649
23650 int (*ptr)() = (int (*)())y1f;
23651
23652 int
23653 main ()
23654 {
23655 return 0;
23656 }
23657
23658 _ACEOF
23659 if ac_fn_c_try_link "$LINENO"; then :
23660 gcc_cv_math_func_y1f=yes
23661 else
23662 gcc_cv_math_func_y1f=no
23663 fi
23664 rm -f core conftest.err conftest.$ac_objext \
23665 conftest$ac_exeext conftest.$ac_ext
23666 fi
23667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1f" >&5
23668 $as_echo "$gcc_cv_math_func_y1f" >&6; }
23669 if test $gcc_cv_math_func_y1f = yes; then
23670
23671 $as_echo "#define HAVE_Y1F 1" >>confdefs.h
23672
23673 fi
23674
23675
23676
23677
23678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1" >&5
23679 $as_echo_n "checking for y1... " >&6; }
23680 if test "${gcc_cv_math_func_y1+set}" = set; then :
23681 $as_echo_n "(cached) " >&6
23682 else
23683 if test x$gcc_no_link = xyes; then
23684 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23685 fi
23686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23687 /* end confdefs.h. */
23688
23689 #ifdef HAVE_COMPLEX_H
23690 #include <complex.h>
23691 #endif
23692 #ifdef HAVE_MATH_H
23693 #include <math.h>
23694 #endif
23695
23696 int (*ptr)() = (int (*)())y1;
23697
23698 int
23699 main ()
23700 {
23701 return 0;
23702 }
23703
23704 _ACEOF
23705 if ac_fn_c_try_link "$LINENO"; then :
23706 gcc_cv_math_func_y1=yes
23707 else
23708 gcc_cv_math_func_y1=no
23709 fi
23710 rm -f core conftest.err conftest.$ac_objext \
23711 conftest$ac_exeext conftest.$ac_ext
23712 fi
23713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1" >&5
23714 $as_echo "$gcc_cv_math_func_y1" >&6; }
23715 if test $gcc_cv_math_func_y1 = yes; then
23716
23717 $as_echo "#define HAVE_Y1 1" >>confdefs.h
23718
23719 fi
23720
23721
23722
23723
23724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1l" >&5
23725 $as_echo_n "checking for y1l... " >&6; }
23726 if test "${gcc_cv_math_func_y1l+set}" = set; then :
23727 $as_echo_n "(cached) " >&6
23728 else
23729 if test x$gcc_no_link = xyes; then
23730 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23731 fi
23732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23733 /* end confdefs.h. */
23734
23735 #ifdef HAVE_COMPLEX_H
23736 #include <complex.h>
23737 #endif
23738 #ifdef HAVE_MATH_H
23739 #include <math.h>
23740 #endif
23741
23742 int (*ptr)() = (int (*)())y1l;
23743
23744 int
23745 main ()
23746 {
23747 return 0;
23748 }
23749
23750 _ACEOF
23751 if ac_fn_c_try_link "$LINENO"; then :
23752 gcc_cv_math_func_y1l=yes
23753 else
23754 gcc_cv_math_func_y1l=no
23755 fi
23756 rm -f core conftest.err conftest.$ac_objext \
23757 conftest$ac_exeext conftest.$ac_ext
23758 fi
23759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1l" >&5
23760 $as_echo "$gcc_cv_math_func_y1l" >&6; }
23761 if test $gcc_cv_math_func_y1l = yes; then
23762
23763 $as_echo "#define HAVE_Y1L 1" >>confdefs.h
23764
23765 fi
23766
23767
23768
23769
23770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynf" >&5
23771 $as_echo_n "checking for ynf... " >&6; }
23772 if test "${gcc_cv_math_func_ynf+set}" = set; then :
23773 $as_echo_n "(cached) " >&6
23774 else
23775 if test x$gcc_no_link = xyes; then
23776 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23777 fi
23778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23779 /* end confdefs.h. */
23780
23781 #ifdef HAVE_COMPLEX_H
23782 #include <complex.h>
23783 #endif
23784 #ifdef HAVE_MATH_H
23785 #include <math.h>
23786 #endif
23787
23788 int (*ptr)() = (int (*)())ynf;
23789
23790 int
23791 main ()
23792 {
23793 return 0;
23794 }
23795
23796 _ACEOF
23797 if ac_fn_c_try_link "$LINENO"; then :
23798 gcc_cv_math_func_ynf=yes
23799 else
23800 gcc_cv_math_func_ynf=no
23801 fi
23802 rm -f core conftest.err conftest.$ac_objext \
23803 conftest$ac_exeext conftest.$ac_ext
23804 fi
23805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynf" >&5
23806 $as_echo "$gcc_cv_math_func_ynf" >&6; }
23807 if test $gcc_cv_math_func_ynf = yes; then
23808
23809 $as_echo "#define HAVE_YNF 1" >>confdefs.h
23810
23811 fi
23812
23813
23814
23815
23816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yn" >&5
23817 $as_echo_n "checking for yn... " >&6; }
23818 if test "${gcc_cv_math_func_yn+set}" = set; then :
23819 $as_echo_n "(cached) " >&6
23820 else
23821 if test x$gcc_no_link = xyes; then
23822 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23823 fi
23824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23825 /* end confdefs.h. */
23826
23827 #ifdef HAVE_COMPLEX_H
23828 #include <complex.h>
23829 #endif
23830 #ifdef HAVE_MATH_H
23831 #include <math.h>
23832 #endif
23833
23834 int (*ptr)() = (int (*)())yn;
23835
23836 int
23837 main ()
23838 {
23839 return 0;
23840 }
23841
23842 _ACEOF
23843 if ac_fn_c_try_link "$LINENO"; then :
23844 gcc_cv_math_func_yn=yes
23845 else
23846 gcc_cv_math_func_yn=no
23847 fi
23848 rm -f core conftest.err conftest.$ac_objext \
23849 conftest$ac_exeext conftest.$ac_ext
23850 fi
23851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_yn" >&5
23852 $as_echo "$gcc_cv_math_func_yn" >&6; }
23853 if test $gcc_cv_math_func_yn = yes; then
23854
23855 $as_echo "#define HAVE_YN 1" >>confdefs.h
23856
23857 fi
23858
23859
23860
23861
23862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynl" >&5
23863 $as_echo_n "checking for ynl... " >&6; }
23864 if test "${gcc_cv_math_func_ynl+set}" = set; then :
23865 $as_echo_n "(cached) " >&6
23866 else
23867 if test x$gcc_no_link = xyes; then
23868 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23869 fi
23870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23871 /* end confdefs.h. */
23872
23873 #ifdef HAVE_COMPLEX_H
23874 #include <complex.h>
23875 #endif
23876 #ifdef HAVE_MATH_H
23877 #include <math.h>
23878 #endif
23879
23880 int (*ptr)() = (int (*)())ynl;
23881
23882 int
23883 main ()
23884 {
23885 return 0;
23886 }
23887
23888 _ACEOF
23889 if ac_fn_c_try_link "$LINENO"; then :
23890 gcc_cv_math_func_ynl=yes
23891 else
23892 gcc_cv_math_func_ynl=no
23893 fi
23894 rm -f core conftest.err conftest.$ac_objext \
23895 conftest$ac_exeext conftest.$ac_ext
23896 fi
23897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynl" >&5
23898 $as_echo "$gcc_cv_math_func_ynl" >&6; }
23899 if test $gcc_cv_math_func_ynl = yes; then
23900
23901 $as_echo "#define HAVE_YNL 1" >>confdefs.h
23902
23903 fi
23904
23905
23906
23907
23908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgamma" >&5
23909 $as_echo_n "checking for tgamma... " >&6; }
23910 if test "${gcc_cv_math_func_tgamma+set}" = set; then :
23911 $as_echo_n "(cached) " >&6
23912 else
23913 if test x$gcc_no_link = xyes; then
23914 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23915 fi
23916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23917 /* end confdefs.h. */
23918
23919 #ifdef HAVE_COMPLEX_H
23920 #include <complex.h>
23921 #endif
23922 #ifdef HAVE_MATH_H
23923 #include <math.h>
23924 #endif
23925
23926 int (*ptr)() = (int (*)())tgamma;
23927
23928 int
23929 main ()
23930 {
23931 return 0;
23932 }
23933
23934 _ACEOF
23935 if ac_fn_c_try_link "$LINENO"; then :
23936 gcc_cv_math_func_tgamma=yes
23937 else
23938 gcc_cv_math_func_tgamma=no
23939 fi
23940 rm -f core conftest.err conftest.$ac_objext \
23941 conftest$ac_exeext conftest.$ac_ext
23942 fi
23943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgamma" >&5
23944 $as_echo "$gcc_cv_math_func_tgamma" >&6; }
23945 if test $gcc_cv_math_func_tgamma = yes; then
23946
23947 $as_echo "#define HAVE_TGAMMA 1" >>confdefs.h
23948
23949 fi
23950
23951
23952
23953
23954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammaf" >&5
23955 $as_echo_n "checking for tgammaf... " >&6; }
23956 if test "${gcc_cv_math_func_tgammaf+set}" = set; then :
23957 $as_echo_n "(cached) " >&6
23958 else
23959 if test x$gcc_no_link = xyes; then
23960 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23961 fi
23962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23963 /* end confdefs.h. */
23964
23965 #ifdef HAVE_COMPLEX_H
23966 #include <complex.h>
23967 #endif
23968 #ifdef HAVE_MATH_H
23969 #include <math.h>
23970 #endif
23971
23972 int (*ptr)() = (int (*)())tgammaf;
23973
23974 int
23975 main ()
23976 {
23977 return 0;
23978 }
23979
23980 _ACEOF
23981 if ac_fn_c_try_link "$LINENO"; then :
23982 gcc_cv_math_func_tgammaf=yes
23983 else
23984 gcc_cv_math_func_tgammaf=no
23985 fi
23986 rm -f core conftest.err conftest.$ac_objext \
23987 conftest$ac_exeext conftest.$ac_ext
23988 fi
23989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammaf" >&5
23990 $as_echo "$gcc_cv_math_func_tgammaf" >&6; }
23991 if test $gcc_cv_math_func_tgammaf = yes; then
23992
23993 $as_echo "#define HAVE_TGAMMAF 1" >>confdefs.h
23994
23995 fi
23996
23997
23998
23999
24000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammal" >&5
24001 $as_echo_n "checking for tgammal... " >&6; }
24002 if test "${gcc_cv_math_func_tgammal+set}" = set; then :
24003 $as_echo_n "(cached) " >&6
24004 else
24005 if test x$gcc_no_link = xyes; then
24006 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24007 fi
24008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24009 /* end confdefs.h. */
24010
24011 #ifdef HAVE_COMPLEX_H
24012 #include <complex.h>
24013 #endif
24014 #ifdef HAVE_MATH_H
24015 #include <math.h>
24016 #endif
24017
24018 int (*ptr)() = (int (*)())tgammal;
24019
24020 int
24021 main ()
24022 {
24023 return 0;
24024 }
24025
24026 _ACEOF
24027 if ac_fn_c_try_link "$LINENO"; then :
24028 gcc_cv_math_func_tgammal=yes
24029 else
24030 gcc_cv_math_func_tgammal=no
24031 fi
24032 rm -f core conftest.err conftest.$ac_objext \
24033 conftest$ac_exeext conftest.$ac_ext
24034 fi
24035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammal" >&5
24036 $as_echo "$gcc_cv_math_func_tgammal" >&6; }
24037 if test $gcc_cv_math_func_tgammal = yes; then
24038
24039 $as_echo "#define HAVE_TGAMMAL 1" >>confdefs.h
24040
24041 fi
24042
24043
24044
24045
24046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgamma" >&5
24047 $as_echo_n "checking for lgamma... " >&6; }
24048 if test "${gcc_cv_math_func_lgamma+set}" = set; then :
24049 $as_echo_n "(cached) " >&6
24050 else
24051 if test x$gcc_no_link = xyes; then
24052 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24053 fi
24054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24055 /* end confdefs.h. */
24056
24057 #ifdef HAVE_COMPLEX_H
24058 #include <complex.h>
24059 #endif
24060 #ifdef HAVE_MATH_H
24061 #include <math.h>
24062 #endif
24063
24064 int (*ptr)() = (int (*)())lgamma;
24065
24066 int
24067 main ()
24068 {
24069 return 0;
24070 }
24071
24072 _ACEOF
24073 if ac_fn_c_try_link "$LINENO"; then :
24074 gcc_cv_math_func_lgamma=yes
24075 else
24076 gcc_cv_math_func_lgamma=no
24077 fi
24078 rm -f core conftest.err conftest.$ac_objext \
24079 conftest$ac_exeext conftest.$ac_ext
24080 fi
24081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgamma" >&5
24082 $as_echo "$gcc_cv_math_func_lgamma" >&6; }
24083 if test $gcc_cv_math_func_lgamma = yes; then
24084
24085 $as_echo "#define HAVE_LGAMMA 1" >>confdefs.h
24086
24087 fi
24088
24089
24090
24091
24092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammaf" >&5
24093 $as_echo_n "checking for lgammaf... " >&6; }
24094 if test "${gcc_cv_math_func_lgammaf+set}" = set; then :
24095 $as_echo_n "(cached) " >&6
24096 else
24097 if test x$gcc_no_link = xyes; then
24098 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24099 fi
24100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24101 /* end confdefs.h. */
24102
24103 #ifdef HAVE_COMPLEX_H
24104 #include <complex.h>
24105 #endif
24106 #ifdef HAVE_MATH_H
24107 #include <math.h>
24108 #endif
24109
24110 int (*ptr)() = (int (*)())lgammaf;
24111
24112 int
24113 main ()
24114 {
24115 return 0;
24116 }
24117
24118 _ACEOF
24119 if ac_fn_c_try_link "$LINENO"; then :
24120 gcc_cv_math_func_lgammaf=yes
24121 else
24122 gcc_cv_math_func_lgammaf=no
24123 fi
24124 rm -f core conftest.err conftest.$ac_objext \
24125 conftest$ac_exeext conftest.$ac_ext
24126 fi
24127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammaf" >&5
24128 $as_echo "$gcc_cv_math_func_lgammaf" >&6; }
24129 if test $gcc_cv_math_func_lgammaf = yes; then
24130
24131 $as_echo "#define HAVE_LGAMMAF 1" >>confdefs.h
24132
24133 fi
24134
24135
24136
24137
24138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammal" >&5
24139 $as_echo_n "checking for lgammal... " >&6; }
24140 if test "${gcc_cv_math_func_lgammal+set}" = set; then :
24141 $as_echo_n "(cached) " >&6
24142 else
24143 if test x$gcc_no_link = xyes; then
24144 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24145 fi
24146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24147 /* end confdefs.h. */
24148
24149 #ifdef HAVE_COMPLEX_H
24150 #include <complex.h>
24151 #endif
24152 #ifdef HAVE_MATH_H
24153 #include <math.h>
24154 #endif
24155
24156 int (*ptr)() = (int (*)())lgammal;
24157
24158 int
24159 main ()
24160 {
24161 return 0;
24162 }
24163
24164 _ACEOF
24165 if ac_fn_c_try_link "$LINENO"; then :
24166 gcc_cv_math_func_lgammal=yes
24167 else
24168 gcc_cv_math_func_lgammal=no
24169 fi
24170 rm -f core conftest.err conftest.$ac_objext \
24171 conftest$ac_exeext conftest.$ac_ext
24172 fi
24173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammal" >&5
24174 $as_echo "$gcc_cv_math_func_lgammal" >&6; }
24175 if test $gcc_cv_math_func_lgammal = yes; then
24176
24177 $as_echo "#define HAVE_LGAMMAL 1" >>confdefs.h
24178
24179 fi
24180
24181
24182 # Check for GFORTRAN_C99_1.1 funcs
24183
24184
24185
24186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacos" >&5
24187 $as_echo_n "checking for cacos... " >&6; }
24188 if test "${gcc_cv_math_func_cacos+set}" = set; then :
24189 $as_echo_n "(cached) " >&6
24190 else
24191 if test x$gcc_no_link = xyes; then
24192 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24193 fi
24194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24195 /* end confdefs.h. */
24196
24197 #ifdef HAVE_COMPLEX_H
24198 #include <complex.h>
24199 #endif
24200 #ifdef HAVE_MATH_H
24201 #include <math.h>
24202 #endif
24203
24204 int (*ptr)() = (int (*)())cacos;
24205
24206 int
24207 main ()
24208 {
24209 return 0;
24210 }
24211
24212 _ACEOF
24213 if ac_fn_c_try_link "$LINENO"; then :
24214 gcc_cv_math_func_cacos=yes
24215 else
24216 gcc_cv_math_func_cacos=no
24217 fi
24218 rm -f core conftest.err conftest.$ac_objext \
24219 conftest$ac_exeext conftest.$ac_ext
24220 fi
24221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacos" >&5
24222 $as_echo "$gcc_cv_math_func_cacos" >&6; }
24223 if test $gcc_cv_math_func_cacos = yes; then
24224
24225 $as_echo "#define HAVE_CACOS 1" >>confdefs.h
24226
24227 fi
24228
24229
24230
24231
24232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosf" >&5
24233 $as_echo_n "checking for cacosf... " >&6; }
24234 if test "${gcc_cv_math_func_cacosf+set}" = set; then :
24235 $as_echo_n "(cached) " >&6
24236 else
24237 if test x$gcc_no_link = xyes; then
24238 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24239 fi
24240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24241 /* end confdefs.h. */
24242
24243 #ifdef HAVE_COMPLEX_H
24244 #include <complex.h>
24245 #endif
24246 #ifdef HAVE_MATH_H
24247 #include <math.h>
24248 #endif
24249
24250 int (*ptr)() = (int (*)())cacosf;
24251
24252 int
24253 main ()
24254 {
24255 return 0;
24256 }
24257
24258 _ACEOF
24259 if ac_fn_c_try_link "$LINENO"; then :
24260 gcc_cv_math_func_cacosf=yes
24261 else
24262 gcc_cv_math_func_cacosf=no
24263 fi
24264 rm -f core conftest.err conftest.$ac_objext \
24265 conftest$ac_exeext conftest.$ac_ext
24266 fi
24267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosf" >&5
24268 $as_echo "$gcc_cv_math_func_cacosf" >&6; }
24269 if test $gcc_cv_math_func_cacosf = yes; then
24270
24271 $as_echo "#define HAVE_CACOSF 1" >>confdefs.h
24272
24273 fi
24274
24275
24276
24277
24278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosh" >&5
24279 $as_echo_n "checking for cacosh... " >&6; }
24280 if test "${gcc_cv_math_func_cacosh+set}" = set; then :
24281 $as_echo_n "(cached) " >&6
24282 else
24283 if test x$gcc_no_link = xyes; then
24284 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24285 fi
24286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24287 /* end confdefs.h. */
24288
24289 #ifdef HAVE_COMPLEX_H
24290 #include <complex.h>
24291 #endif
24292 #ifdef HAVE_MATH_H
24293 #include <math.h>
24294 #endif
24295
24296 int (*ptr)() = (int (*)())cacosh;
24297
24298 int
24299 main ()
24300 {
24301 return 0;
24302 }
24303
24304 _ACEOF
24305 if ac_fn_c_try_link "$LINENO"; then :
24306 gcc_cv_math_func_cacosh=yes
24307 else
24308 gcc_cv_math_func_cacosh=no
24309 fi
24310 rm -f core conftest.err conftest.$ac_objext \
24311 conftest$ac_exeext conftest.$ac_ext
24312 fi
24313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosh" >&5
24314 $as_echo "$gcc_cv_math_func_cacosh" >&6; }
24315 if test $gcc_cv_math_func_cacosh = yes; then
24316
24317 $as_echo "#define HAVE_CACOSH 1" >>confdefs.h
24318
24319 fi
24320
24321
24322
24323
24324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshf" >&5
24325 $as_echo_n "checking for cacoshf... " >&6; }
24326 if test "${gcc_cv_math_func_cacoshf+set}" = set; then :
24327 $as_echo_n "(cached) " >&6
24328 else
24329 if test x$gcc_no_link = xyes; then
24330 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24331 fi
24332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24333 /* end confdefs.h. */
24334
24335 #ifdef HAVE_COMPLEX_H
24336 #include <complex.h>
24337 #endif
24338 #ifdef HAVE_MATH_H
24339 #include <math.h>
24340 #endif
24341
24342 int (*ptr)() = (int (*)())cacoshf;
24343
24344 int
24345 main ()
24346 {
24347 return 0;
24348 }
24349
24350 _ACEOF
24351 if ac_fn_c_try_link "$LINENO"; then :
24352 gcc_cv_math_func_cacoshf=yes
24353 else
24354 gcc_cv_math_func_cacoshf=no
24355 fi
24356 rm -f core conftest.err conftest.$ac_objext \
24357 conftest$ac_exeext conftest.$ac_ext
24358 fi
24359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshf" >&5
24360 $as_echo "$gcc_cv_math_func_cacoshf" >&6; }
24361 if test $gcc_cv_math_func_cacoshf = yes; then
24362
24363 $as_echo "#define HAVE_CACOSHF 1" >>confdefs.h
24364
24365 fi
24366
24367
24368
24369
24370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshl" >&5
24371 $as_echo_n "checking for cacoshl... " >&6; }
24372 if test "${gcc_cv_math_func_cacoshl+set}" = set; then :
24373 $as_echo_n "(cached) " >&6
24374 else
24375 if test x$gcc_no_link = xyes; then
24376 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24377 fi
24378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24379 /* end confdefs.h. */
24380
24381 #ifdef HAVE_COMPLEX_H
24382 #include <complex.h>
24383 #endif
24384 #ifdef HAVE_MATH_H
24385 #include <math.h>
24386 #endif
24387
24388 int (*ptr)() = (int (*)())cacoshl;
24389
24390 int
24391 main ()
24392 {
24393 return 0;
24394 }
24395
24396 _ACEOF
24397 if ac_fn_c_try_link "$LINENO"; then :
24398 gcc_cv_math_func_cacoshl=yes
24399 else
24400 gcc_cv_math_func_cacoshl=no
24401 fi
24402 rm -f core conftest.err conftest.$ac_objext \
24403 conftest$ac_exeext conftest.$ac_ext
24404 fi
24405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshl" >&5
24406 $as_echo "$gcc_cv_math_func_cacoshl" >&6; }
24407 if test $gcc_cv_math_func_cacoshl = yes; then
24408
24409 $as_echo "#define HAVE_CACOSHL 1" >>confdefs.h
24410
24411 fi
24412
24413
24414
24415
24416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosl" >&5
24417 $as_echo_n "checking for cacosl... " >&6; }
24418 if test "${gcc_cv_math_func_cacosl+set}" = set; then :
24419 $as_echo_n "(cached) " >&6
24420 else
24421 if test x$gcc_no_link = xyes; then
24422 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24423 fi
24424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24425 /* end confdefs.h. */
24426
24427 #ifdef HAVE_COMPLEX_H
24428 #include <complex.h>
24429 #endif
24430 #ifdef HAVE_MATH_H
24431 #include <math.h>
24432 #endif
24433
24434 int (*ptr)() = (int (*)())cacosl;
24435
24436 int
24437 main ()
24438 {
24439 return 0;
24440 }
24441
24442 _ACEOF
24443 if ac_fn_c_try_link "$LINENO"; then :
24444 gcc_cv_math_func_cacosl=yes
24445 else
24446 gcc_cv_math_func_cacosl=no
24447 fi
24448 rm -f core conftest.err conftest.$ac_objext \
24449 conftest$ac_exeext conftest.$ac_ext
24450 fi
24451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosl" >&5
24452 $as_echo "$gcc_cv_math_func_cacosl" >&6; }
24453 if test $gcc_cv_math_func_cacosl = yes; then
24454
24455 $as_echo "#define HAVE_CACOSL 1" >>confdefs.h
24456
24457 fi
24458
24459
24460
24461
24462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casin" >&5
24463 $as_echo_n "checking for casin... " >&6; }
24464 if test "${gcc_cv_math_func_casin+set}" = set; then :
24465 $as_echo_n "(cached) " >&6
24466 else
24467 if test x$gcc_no_link = xyes; then
24468 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24469 fi
24470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24471 /* end confdefs.h. */
24472
24473 #ifdef HAVE_COMPLEX_H
24474 #include <complex.h>
24475 #endif
24476 #ifdef HAVE_MATH_H
24477 #include <math.h>
24478 #endif
24479
24480 int (*ptr)() = (int (*)())casin;
24481
24482 int
24483 main ()
24484 {
24485 return 0;
24486 }
24487
24488 _ACEOF
24489 if ac_fn_c_try_link "$LINENO"; then :
24490 gcc_cv_math_func_casin=yes
24491 else
24492 gcc_cv_math_func_casin=no
24493 fi
24494 rm -f core conftest.err conftest.$ac_objext \
24495 conftest$ac_exeext conftest.$ac_ext
24496 fi
24497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casin" >&5
24498 $as_echo "$gcc_cv_math_func_casin" >&6; }
24499 if test $gcc_cv_math_func_casin = yes; then
24500
24501 $as_echo "#define HAVE_CASIN 1" >>confdefs.h
24502
24503 fi
24504
24505
24506
24507
24508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinf" >&5
24509 $as_echo_n "checking for casinf... " >&6; }
24510 if test "${gcc_cv_math_func_casinf+set}" = set; then :
24511 $as_echo_n "(cached) " >&6
24512 else
24513 if test x$gcc_no_link = xyes; then
24514 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24515 fi
24516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24517 /* end confdefs.h. */
24518
24519 #ifdef HAVE_COMPLEX_H
24520 #include <complex.h>
24521 #endif
24522 #ifdef HAVE_MATH_H
24523 #include <math.h>
24524 #endif
24525
24526 int (*ptr)() = (int (*)())casinf;
24527
24528 int
24529 main ()
24530 {
24531 return 0;
24532 }
24533
24534 _ACEOF
24535 if ac_fn_c_try_link "$LINENO"; then :
24536 gcc_cv_math_func_casinf=yes
24537 else
24538 gcc_cv_math_func_casinf=no
24539 fi
24540 rm -f core conftest.err conftest.$ac_objext \
24541 conftest$ac_exeext conftest.$ac_ext
24542 fi
24543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinf" >&5
24544 $as_echo "$gcc_cv_math_func_casinf" >&6; }
24545 if test $gcc_cv_math_func_casinf = yes; then
24546
24547 $as_echo "#define HAVE_CASINF 1" >>confdefs.h
24548
24549 fi
24550
24551
24552
24553
24554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinh" >&5
24555 $as_echo_n "checking for casinh... " >&6; }
24556 if test "${gcc_cv_math_func_casinh+set}" = set; then :
24557 $as_echo_n "(cached) " >&6
24558 else
24559 if test x$gcc_no_link = xyes; then
24560 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24561 fi
24562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24563 /* end confdefs.h. */
24564
24565 #ifdef HAVE_COMPLEX_H
24566 #include <complex.h>
24567 #endif
24568 #ifdef HAVE_MATH_H
24569 #include <math.h>
24570 #endif
24571
24572 int (*ptr)() = (int (*)())casinh;
24573
24574 int
24575 main ()
24576 {
24577 return 0;
24578 }
24579
24580 _ACEOF
24581 if ac_fn_c_try_link "$LINENO"; then :
24582 gcc_cv_math_func_casinh=yes
24583 else
24584 gcc_cv_math_func_casinh=no
24585 fi
24586 rm -f core conftest.err conftest.$ac_objext \
24587 conftest$ac_exeext conftest.$ac_ext
24588 fi
24589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinh" >&5
24590 $as_echo "$gcc_cv_math_func_casinh" >&6; }
24591 if test $gcc_cv_math_func_casinh = yes; then
24592
24593 $as_echo "#define HAVE_CASINH 1" >>confdefs.h
24594
24595 fi
24596
24597
24598
24599
24600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhf" >&5
24601 $as_echo_n "checking for casinhf... " >&6; }
24602 if test "${gcc_cv_math_func_casinhf+set}" = set; then :
24603 $as_echo_n "(cached) " >&6
24604 else
24605 if test x$gcc_no_link = xyes; then
24606 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24607 fi
24608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24609 /* end confdefs.h. */
24610
24611 #ifdef HAVE_COMPLEX_H
24612 #include <complex.h>
24613 #endif
24614 #ifdef HAVE_MATH_H
24615 #include <math.h>
24616 #endif
24617
24618 int (*ptr)() = (int (*)())casinhf;
24619
24620 int
24621 main ()
24622 {
24623 return 0;
24624 }
24625
24626 _ACEOF
24627 if ac_fn_c_try_link "$LINENO"; then :
24628 gcc_cv_math_func_casinhf=yes
24629 else
24630 gcc_cv_math_func_casinhf=no
24631 fi
24632 rm -f core conftest.err conftest.$ac_objext \
24633 conftest$ac_exeext conftest.$ac_ext
24634 fi
24635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhf" >&5
24636 $as_echo "$gcc_cv_math_func_casinhf" >&6; }
24637 if test $gcc_cv_math_func_casinhf = yes; then
24638
24639 $as_echo "#define HAVE_CASINHF 1" >>confdefs.h
24640
24641 fi
24642
24643
24644
24645
24646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhl" >&5
24647 $as_echo_n "checking for casinhl... " >&6; }
24648 if test "${gcc_cv_math_func_casinhl+set}" = set; then :
24649 $as_echo_n "(cached) " >&6
24650 else
24651 if test x$gcc_no_link = xyes; then
24652 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24653 fi
24654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24655 /* end confdefs.h. */
24656
24657 #ifdef HAVE_COMPLEX_H
24658 #include <complex.h>
24659 #endif
24660 #ifdef HAVE_MATH_H
24661 #include <math.h>
24662 #endif
24663
24664 int (*ptr)() = (int (*)())casinhl;
24665
24666 int
24667 main ()
24668 {
24669 return 0;
24670 }
24671
24672 _ACEOF
24673 if ac_fn_c_try_link "$LINENO"; then :
24674 gcc_cv_math_func_casinhl=yes
24675 else
24676 gcc_cv_math_func_casinhl=no
24677 fi
24678 rm -f core conftest.err conftest.$ac_objext \
24679 conftest$ac_exeext conftest.$ac_ext
24680 fi
24681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhl" >&5
24682 $as_echo "$gcc_cv_math_func_casinhl" >&6; }
24683 if test $gcc_cv_math_func_casinhl = yes; then
24684
24685 $as_echo "#define HAVE_CASINHL 1" >>confdefs.h
24686
24687 fi
24688
24689
24690
24691
24692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinl" >&5
24693 $as_echo_n "checking for casinl... " >&6; }
24694 if test "${gcc_cv_math_func_casinl+set}" = set; then :
24695 $as_echo_n "(cached) " >&6
24696 else
24697 if test x$gcc_no_link = xyes; then
24698 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24699 fi
24700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24701 /* end confdefs.h. */
24702
24703 #ifdef HAVE_COMPLEX_H
24704 #include <complex.h>
24705 #endif
24706 #ifdef HAVE_MATH_H
24707 #include <math.h>
24708 #endif
24709
24710 int (*ptr)() = (int (*)())casinl;
24711
24712 int
24713 main ()
24714 {
24715 return 0;
24716 }
24717
24718 _ACEOF
24719 if ac_fn_c_try_link "$LINENO"; then :
24720 gcc_cv_math_func_casinl=yes
24721 else
24722 gcc_cv_math_func_casinl=no
24723 fi
24724 rm -f core conftest.err conftest.$ac_objext \
24725 conftest$ac_exeext conftest.$ac_ext
24726 fi
24727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinl" >&5
24728 $as_echo "$gcc_cv_math_func_casinl" >&6; }
24729 if test $gcc_cv_math_func_casinl = yes; then
24730
24731 $as_echo "#define HAVE_CASINL 1" >>confdefs.h
24732
24733 fi
24734
24735
24736
24737
24738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catan" >&5
24739 $as_echo_n "checking for catan... " >&6; }
24740 if test "${gcc_cv_math_func_catan+set}" = set; then :
24741 $as_echo_n "(cached) " >&6
24742 else
24743 if test x$gcc_no_link = xyes; then
24744 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24745 fi
24746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24747 /* end confdefs.h. */
24748
24749 #ifdef HAVE_COMPLEX_H
24750 #include <complex.h>
24751 #endif
24752 #ifdef HAVE_MATH_H
24753 #include <math.h>
24754 #endif
24755
24756 int (*ptr)() = (int (*)())catan;
24757
24758 int
24759 main ()
24760 {
24761 return 0;
24762 }
24763
24764 _ACEOF
24765 if ac_fn_c_try_link "$LINENO"; then :
24766 gcc_cv_math_func_catan=yes
24767 else
24768 gcc_cv_math_func_catan=no
24769 fi
24770 rm -f core conftest.err conftest.$ac_objext \
24771 conftest$ac_exeext conftest.$ac_ext
24772 fi
24773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catan" >&5
24774 $as_echo "$gcc_cv_math_func_catan" >&6; }
24775 if test $gcc_cv_math_func_catan = yes; then
24776
24777 $as_echo "#define HAVE_CATAN 1" >>confdefs.h
24778
24779 fi
24780
24781
24782
24783
24784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanf" >&5
24785 $as_echo_n "checking for catanf... " >&6; }
24786 if test "${gcc_cv_math_func_catanf+set}" = set; then :
24787 $as_echo_n "(cached) " >&6
24788 else
24789 if test x$gcc_no_link = xyes; then
24790 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24791 fi
24792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24793 /* end confdefs.h. */
24794
24795 #ifdef HAVE_COMPLEX_H
24796 #include <complex.h>
24797 #endif
24798 #ifdef HAVE_MATH_H
24799 #include <math.h>
24800 #endif
24801
24802 int (*ptr)() = (int (*)())catanf;
24803
24804 int
24805 main ()
24806 {
24807 return 0;
24808 }
24809
24810 _ACEOF
24811 if ac_fn_c_try_link "$LINENO"; then :
24812 gcc_cv_math_func_catanf=yes
24813 else
24814 gcc_cv_math_func_catanf=no
24815 fi
24816 rm -f core conftest.err conftest.$ac_objext \
24817 conftest$ac_exeext conftest.$ac_ext
24818 fi
24819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanf" >&5
24820 $as_echo "$gcc_cv_math_func_catanf" >&6; }
24821 if test $gcc_cv_math_func_catanf = yes; then
24822
24823 $as_echo "#define HAVE_CATANF 1" >>confdefs.h
24824
24825 fi
24826
24827
24828
24829
24830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanh" >&5
24831 $as_echo_n "checking for catanh... " >&6; }
24832 if test "${gcc_cv_math_func_catanh+set}" = set; then :
24833 $as_echo_n "(cached) " >&6
24834 else
24835 if test x$gcc_no_link = xyes; then
24836 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24837 fi
24838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24839 /* end confdefs.h. */
24840
24841 #ifdef HAVE_COMPLEX_H
24842 #include <complex.h>
24843 #endif
24844 #ifdef HAVE_MATH_H
24845 #include <math.h>
24846 #endif
24847
24848 int (*ptr)() = (int (*)())catanh;
24849
24850 int
24851 main ()
24852 {
24853 return 0;
24854 }
24855
24856 _ACEOF
24857 if ac_fn_c_try_link "$LINENO"; then :
24858 gcc_cv_math_func_catanh=yes
24859 else
24860 gcc_cv_math_func_catanh=no
24861 fi
24862 rm -f core conftest.err conftest.$ac_objext \
24863 conftest$ac_exeext conftest.$ac_ext
24864 fi
24865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanh" >&5
24866 $as_echo "$gcc_cv_math_func_catanh" >&6; }
24867 if test $gcc_cv_math_func_catanh = yes; then
24868
24869 $as_echo "#define HAVE_CATANH 1" >>confdefs.h
24870
24871 fi
24872
24873
24874
24875
24876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhf" >&5
24877 $as_echo_n "checking for catanhf... " >&6; }
24878 if test "${gcc_cv_math_func_catanhf+set}" = set; then :
24879 $as_echo_n "(cached) " >&6
24880 else
24881 if test x$gcc_no_link = xyes; then
24882 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24883 fi
24884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24885 /* end confdefs.h. */
24886
24887 #ifdef HAVE_COMPLEX_H
24888 #include <complex.h>
24889 #endif
24890 #ifdef HAVE_MATH_H
24891 #include <math.h>
24892 #endif
24893
24894 int (*ptr)() = (int (*)())catanhf;
24895
24896 int
24897 main ()
24898 {
24899 return 0;
24900 }
24901
24902 _ACEOF
24903 if ac_fn_c_try_link "$LINENO"; then :
24904 gcc_cv_math_func_catanhf=yes
24905 else
24906 gcc_cv_math_func_catanhf=no
24907 fi
24908 rm -f core conftest.err conftest.$ac_objext \
24909 conftest$ac_exeext conftest.$ac_ext
24910 fi
24911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhf" >&5
24912 $as_echo "$gcc_cv_math_func_catanhf" >&6; }
24913 if test $gcc_cv_math_func_catanhf = yes; then
24914
24915 $as_echo "#define HAVE_CATANHF 1" >>confdefs.h
24916
24917 fi
24918
24919
24920
24921
24922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhl" >&5
24923 $as_echo_n "checking for catanhl... " >&6; }
24924 if test "${gcc_cv_math_func_catanhl+set}" = set; then :
24925 $as_echo_n "(cached) " >&6
24926 else
24927 if test x$gcc_no_link = xyes; then
24928 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24929 fi
24930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24931 /* end confdefs.h. */
24932
24933 #ifdef HAVE_COMPLEX_H
24934 #include <complex.h>
24935 #endif
24936 #ifdef HAVE_MATH_H
24937 #include <math.h>
24938 #endif
24939
24940 int (*ptr)() = (int (*)())catanhl;
24941
24942 int
24943 main ()
24944 {
24945 return 0;
24946 }
24947
24948 _ACEOF
24949 if ac_fn_c_try_link "$LINENO"; then :
24950 gcc_cv_math_func_catanhl=yes
24951 else
24952 gcc_cv_math_func_catanhl=no
24953 fi
24954 rm -f core conftest.err conftest.$ac_objext \
24955 conftest$ac_exeext conftest.$ac_ext
24956 fi
24957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhl" >&5
24958 $as_echo "$gcc_cv_math_func_catanhl" >&6; }
24959 if test $gcc_cv_math_func_catanhl = yes; then
24960
24961 $as_echo "#define HAVE_CATANHL 1" >>confdefs.h
24962
24963 fi
24964
24965
24966
24967
24968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanl" >&5
24969 $as_echo_n "checking for catanl... " >&6; }
24970 if test "${gcc_cv_math_func_catanl+set}" = set; then :
24971 $as_echo_n "(cached) " >&6
24972 else
24973 if test x$gcc_no_link = xyes; then
24974 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24975 fi
24976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24977 /* end confdefs.h. */
24978
24979 #ifdef HAVE_COMPLEX_H
24980 #include <complex.h>
24981 #endif
24982 #ifdef HAVE_MATH_H
24983 #include <math.h>
24984 #endif
24985
24986 int (*ptr)() = (int (*)())catanl;
24987
24988 int
24989 main ()
24990 {
24991 return 0;
24992 }
24993
24994 _ACEOF
24995 if ac_fn_c_try_link "$LINENO"; then :
24996 gcc_cv_math_func_catanl=yes
24997 else
24998 gcc_cv_math_func_catanl=no
24999 fi
25000 rm -f core conftest.err conftest.$ac_objext \
25001 conftest$ac_exeext conftest.$ac_ext
25002 fi
25003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanl" >&5
25004 $as_echo "$gcc_cv_math_func_catanl" >&6; }
25005 if test $gcc_cv_math_func_catanl = yes; then
25006
25007 $as_echo "#define HAVE_CATANL 1" >>confdefs.h
25008
25009 fi
25010
25011
25012 # On AIX, clog is present in libm as __clog
25013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __clog in -lm" >&5
25014 $as_echo_n "checking for __clog in -lm... " >&6; }
25015 if test "${ac_cv_lib_m___clog+set}" = set; then :
25016 $as_echo_n "(cached) " >&6
25017 else
25018 ac_check_lib_save_LIBS=$LIBS
25019 LIBS="-lm $LIBS"
25020 if test x$gcc_no_link = xyes; then
25021 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25022 fi
25023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25024 /* end confdefs.h. */
25025
25026 /* Override any GCC internal prototype to avoid an error.
25027 Use char because int might match the return type of a GCC
25028 builtin and then its argument prototype would still apply. */
25029 #ifdef __cplusplus
25030 extern "C"
25031 #endif
25032 char __clog ();
25033 int
25034 main ()
25035 {
25036 return __clog ();
25037 ;
25038 return 0;
25039 }
25040 _ACEOF
25041 if ac_fn_c_try_link "$LINENO"; then :
25042 ac_cv_lib_m___clog=yes
25043 else
25044 ac_cv_lib_m___clog=no
25045 fi
25046 rm -f core conftest.err conftest.$ac_objext \
25047 conftest$ac_exeext conftest.$ac_ext
25048 LIBS=$ac_check_lib_save_LIBS
25049 fi
25050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m___clog" >&5
25051 $as_echo "$ac_cv_lib_m___clog" >&6; }
25052 if test "x$ac_cv_lib_m___clog" = x""yes; then :
25053
25054 $as_echo "#define HAVE_CLOG 1" >>confdefs.h
25055
25056 fi
25057
25058
25059 # Check whether the system has a working stat()
25060
25061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target stat is reliable" >&5
25062 $as_echo_n "checking whether the target stat is reliable... " >&6; }
25063 if test "${libgfor_cv_have_working_stat+set}" = set; then :
25064 $as_echo_n "(cached) " >&6
25065 else
25066
25067 if test "$cross_compiling" = yes; then :
25068
25069 case "${target}" in
25070 *mingw*) libgfor_cv_have_working_stat=no ;;
25071 *) libgfor_cv_have_working_stat=yes;;
25072 esac
25073 else
25074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25075 /* end confdefs.h. */
25076
25077 #include <stdio.h>
25078 #include <sys/types.h>
25079 #include <sys/stat.h>
25080 #include <unistd.h>
25081
25082 int main ()
25083 {
25084 FILE *f, *g;
25085 struct stat st1, st2;
25086
25087 f = fopen ("foo", "w");
25088 g = fopen ("bar", "w");
25089 if (stat ("foo", &st1) != 0 || stat ("bar", &st2))
25090 return 1;
25091 if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino)
25092 return 1;
25093 fclose(f);
25094 fclose(g);
25095 return 0;
25096 }
25097 _ACEOF
25098 if ac_fn_c_try_run "$LINENO"; then :
25099 libgfor_cv_have_working_stat=yes
25100 else
25101 libgfor_cv_have_working_stat=no
25102 fi
25103 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25104 conftest.$ac_objext conftest.beam conftest.$ac_ext
25105 fi
25106
25107 fi
25108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_working_stat" >&5
25109 $as_echo "$libgfor_cv_have_working_stat" >&6; }
25110 if test x"$libgfor_cv_have_working_stat" = xyes; then
25111
25112 $as_echo "#define HAVE_WORKING_STAT 1" >>confdefs.h
25113
25114 fi
25115
25116 # Check whether __mingw_snprintf() is present
25117
25118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __mingw_snprintf is present" >&5
25119 $as_echo_n "checking whether __mingw_snprintf is present... " >&6; }
25120 if test "${libgfor_cv_have_mingw_snprintf+set}" = set; then :
25121 $as_echo_n "(cached) " >&6
25122 else
25123
25124 if test x$gcc_no_link = xyes; then
25125 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25126 fi
25127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25128 /* end confdefs.h. */
25129
25130 #include <stdio.h>
25131 extern int __mingw_snprintf (char *, size_t, const char *, ...);
25132
25133 int
25134 main ()
25135 {
25136
25137 __mingw_snprintf (NULL, 0, "%d\n", 1);
25138
25139 ;
25140 return 0;
25141 }
25142 _ACEOF
25143 if ac_fn_c_try_link "$LINENO"; then :
25144 eval "libgfor_cv_have_mingw_snprintf=yes"
25145 else
25146 eval "libgfor_cv_have_mingw_snprintf=no"
25147 fi
25148 rm -f core conftest.err conftest.$ac_objext \
25149 conftest$ac_exeext conftest.$ac_ext
25150
25151 fi
25152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_mingw_snprintf" >&5
25153 $as_echo "$libgfor_cv_have_mingw_snprintf" >&6; }
25154 if test x"$libgfor_cv_have_mingw_snprintf" = xyes; then
25155
25156 $as_echo "#define HAVE_MINGW_SNPRINTF 1" >>confdefs.h
25157
25158 fi
25159
25160
25161 # Check for a broken powf implementation
25162
25163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether powf is broken" >&5
25164 $as_echo_n "checking whether powf is broken... " >&6; }
25165 if test "${libgfor_cv_have_broken_powf+set}" = set; then :
25166 $as_echo_n "(cached) " >&6
25167 else
25168
25169 case "${target}" in
25170 hppa*64*-*-hpux*) libgfor_cv_have_broken_powf=yes ;;
25171 *) libgfor_cv_have_broken_powf=no;;
25172 esac
25173 fi
25174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_broken_powf" >&5
25175 $as_echo "$libgfor_cv_have_broken_powf" >&6; }
25176 if test x"$libgfor_cv_have_broken_powf" = xyes; then
25177
25178 $as_echo "#define HAVE_BROKEN_POWF 1" >>confdefs.h
25179
25180 fi
25181
25182
25183 # Check whether libquadmath should be used
25184 # Check whether --enable-libquadmath-support was given.
25185 if test "${enable_libquadmath_support+set}" = set; then :
25186 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
25187 else
25188 ENABLE_LIBQUADMATH_SUPPORT=yes
25189 fi
25190
25191 enable_libquadmath_support=
25192 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
25193 enable_libquadmath_support=no
25194 fi
25195
25196 # Check whether we have a __float128 type, depends on enable_libquadmath_support
25197
25198 LIBQUADSPEC=
25199
25200 if test "x$enable_libquadmath_support" != xno; then
25201
25202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a usable __float128 type" >&5
25203 $as_echo_n "checking whether we have a usable __float128 type... " >&6; }
25204 if test "${libgfor_cv_have_float128+set}" = set; then :
25205 $as_echo_n "(cached) " >&6
25206 else
25207
25208 if test x$gcc_no_link = xyes; then
25209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25210 /* end confdefs.h. */
25211
25212 typedef _Complex float __attribute__((mode(TC))) __complex128;
25213
25214 __float128 foo (__float128 x)
25215 {
25216
25217 __complex128 z1, z2;
25218
25219 z1 = x;
25220 z2 = x / 7.Q;
25221 z2 /= z1;
25222
25223 return (__float128) z2;
25224 }
25225
25226 __float128 bar (__float128 x)
25227 {
25228 return x * __builtin_huge_valq ();
25229 }
25230
25231 int
25232 main ()
25233 {
25234
25235 foo (1.2Q);
25236 bar (1.2Q);
25237
25238 ;
25239 return 0;
25240 }
25241 _ACEOF
25242 if ac_fn_c_try_compile "$LINENO"; then :
25243
25244 libgfor_cv_have_float128=yes
25245
25246 else
25247
25248 libgfor_cv_have_float128=no
25249
25250 fi
25251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25252 else
25253 if test x$gcc_no_link = xyes; then
25254 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25255 fi
25256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25257 /* end confdefs.h. */
25258
25259 typedef _Complex float __attribute__((mode(TC))) __complex128;
25260
25261 __float128 foo (__float128 x)
25262 {
25263
25264 __complex128 z1, z2;
25265
25266 z1 = x;
25267 z2 = x / 7.Q;
25268 z2 /= z1;
25269
25270 return (__float128) z2;
25271 }
25272
25273 __float128 bar (__float128 x)
25274 {
25275 return x * __builtin_huge_valq ();
25276 }
25277
25278 int
25279 main ()
25280 {
25281
25282 foo (1.2Q);
25283 bar (1.2Q);
25284
25285 ;
25286 return 0;
25287 }
25288 _ACEOF
25289 if ac_fn_c_try_link "$LINENO"; then :
25290
25291 libgfor_cv_have_float128=yes
25292
25293 else
25294
25295 libgfor_cv_have_float128=no
25296
25297 fi
25298 rm -f core conftest.err conftest.$ac_objext \
25299 conftest$ac_exeext conftest.$ac_ext
25300 fi
25301 fi
25302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_float128" >&5
25303 $as_echo "$libgfor_cv_have_float128" >&6; }
25304
25305 if test "x$libgfor_cv_have_float128" = xyes; then
25306
25307 $as_echo "#define HAVE_FLOAT128 1" >>confdefs.h
25308
25309
25310 ac_xsave_c_werror_flag=$ac_c_werror_flag
25311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --as-needed works" >&5
25312 $as_echo_n "checking whether --as-needed works... " >&6; }
25313 if test "${libgfor_cv_have_as_needed+set}" = set; then :
25314 $as_echo_n "(cached) " >&6
25315 else
25316
25317 save_LDFLAGS="$LDFLAGS"
25318 LDFLAGS="$LDFLAGS -Wl,--as-needed -lm -Wl,--no-as-needed"
25319 libgfor_cv_have_as_needed=no
25320
25321 ac_c_werror_flag=yes
25322 if test x$gcc_no_link = xyes; then
25323 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25324 fi
25325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25326 /* end confdefs.h. */
25327
25328 int
25329 main ()
25330 {
25331
25332 ;
25333 return 0;
25334 }
25335 _ACEOF
25336 if ac_fn_c_try_link "$LINENO"; then :
25337 libgfor_cv_have_as_needed=yes
25338 else
25339 libgfor_cv_have_as_needed=no
25340 fi
25341 rm -f core conftest.err conftest.$ac_objext \
25342 conftest$ac_exeext conftest.$ac_ext
25343 LDFLAGS="$save_LDFLAGS"
25344 ac_c_werror_flag=$ac_xsave_c_werror_flag
25345
25346 fi
25347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_as_needed" >&5
25348 $as_echo "$libgfor_cv_have_as_needed" >&6; }
25349
25350 if test "x$libgfor_cv_have_as_needed" = xyes; then
25351 LIBQUADSPEC="%{static-libgfortran:--as-needed} -lquadmath %{static-libgfortran:--no-as-needed}"
25352 else
25353 LIBQUADSPEC="-lquadmath"
25354 fi
25355 if test -f ../libquadmath/libquadmath.la; then
25356 LIBQUADLIB=../libquadmath/libquadmath.la
25357 LIBQUADLIB_DEP=../libquadmath/libquadmath.la
25358 LIBQUADINCLUDE='-I$(srcdir)/../libquadmath'
25359 else
25360 LIBQUADLIB="-lquadmath"
25361 LIBQUADLIB_DEP=
25362 LIBQUADINCLUDE=
25363 fi
25364 fi
25365 else
25366 # for --disable-quadmath
25367 LIBQUADLIB=
25368 LIBQUADLIB_DEP=
25369 LIBQUADINCLUDE=
25370 fi
25371
25372
25373
25374
25375
25376
25377 if test "x$libgfor_cv_have_float128" = xyes; then
25378 LIBGFOR_BUILD_QUAD_TRUE=
25379 LIBGFOR_BUILD_QUAD_FALSE='#'
25380 else
25381 LIBGFOR_BUILD_QUAD_TRUE='#'
25382 LIBGFOR_BUILD_QUAD_FALSE=
25383 fi
25384
25385
25386
25387 # Check for GNU libc feenableexcept
25388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5
25389 $as_echo_n "checking for feenableexcept in -lm... " >&6; }
25390 if test "${ac_cv_lib_m_feenableexcept+set}" = set; then :
25391 $as_echo_n "(cached) " >&6
25392 else
25393 ac_check_lib_save_LIBS=$LIBS
25394 LIBS="-lm $LIBS"
25395 if test x$gcc_no_link = xyes; then
25396 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25397 fi
25398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25399 /* end confdefs.h. */
25400
25401 /* Override any GCC internal prototype to avoid an error.
25402 Use char because int might match the return type of a GCC
25403 builtin and then its argument prototype would still apply. */
25404 #ifdef __cplusplus
25405 extern "C"
25406 #endif
25407 char feenableexcept ();
25408 int
25409 main ()
25410 {
25411 return feenableexcept ();
25412 ;
25413 return 0;
25414 }
25415 _ACEOF
25416 if ac_fn_c_try_link "$LINENO"; then :
25417 ac_cv_lib_m_feenableexcept=yes
25418 else
25419 ac_cv_lib_m_feenableexcept=no
25420 fi
25421 rm -f core conftest.err conftest.$ac_objext \
25422 conftest$ac_exeext conftest.$ac_ext
25423 LIBS=$ac_check_lib_save_LIBS
25424 fi
25425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5
25426 $as_echo "$ac_cv_lib_m_feenableexcept" >&6; }
25427 if test "x$ac_cv_lib_m_feenableexcept" = x""yes; then :
25428 have_feenableexcept=yes
25429 $as_echo "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h
25430
25431 fi
25432
25433
25434 # At least for glibc, clock_gettime is in librt. But don't
25435 # pull that in if it still doesn't give us the function we want. This
25436 # test is copied from libgomp, and modified to not link in -lrt as
25437 # libgfortran calls clock_gettime via a weak reference if it's found
25438 # in librt.
25439 if test $ac_cv_func_clock_gettime = no; then
25440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
25441 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
25442 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
25443 $as_echo_n "(cached) " >&6
25444 else
25445 ac_check_lib_save_LIBS=$LIBS
25446 LIBS="-lrt $LIBS"
25447 if test x$gcc_no_link = xyes; then
25448 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25449 fi
25450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25451 /* end confdefs.h. */
25452
25453 /* Override any GCC internal prototype to avoid an error.
25454 Use char because int might match the return type of a GCC
25455 builtin and then its argument prototype would still apply. */
25456 #ifdef __cplusplus
25457 extern "C"
25458 #endif
25459 char clock_gettime ();
25460 int
25461 main ()
25462 {
25463 return clock_gettime ();
25464 ;
25465 return 0;
25466 }
25467 _ACEOF
25468 if ac_fn_c_try_link "$LINENO"; then :
25469 ac_cv_lib_rt_clock_gettime=yes
25470 else
25471 ac_cv_lib_rt_clock_gettime=no
25472 fi
25473 rm -f core conftest.err conftest.$ac_objext \
25474 conftest$ac_exeext conftest.$ac_ext
25475 LIBS=$ac_check_lib_save_LIBS
25476 fi
25477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
25478 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
25479 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
25480
25481 $as_echo "#define HAVE_CLOCK_GETTIME_LIBRT 1" >>confdefs.h
25482
25483 fi
25484
25485 fi
25486
25487 # Check for SysV fpsetmask
25488
25489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fpsetmask is present" >&5
25490 $as_echo_n "checking whether fpsetmask is present... " >&6; }
25491 if test "${libgfor_cv_have_fpsetmask+set}" = set; then :
25492 $as_echo_n "(cached) " >&6
25493 else
25494
25495 if test x$gcc_no_link = xyes; then
25496 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25497 fi
25498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25499 /* end confdefs.h. */
25500
25501 #if HAVE_FLOATINGPOINT_H
25502 # include <floatingpoint.h>
25503 #endif /* HAVE_FLOATINGPOINT_H */
25504 #if HAVE_IEEEFP_H
25505 # include <ieeefp.h>
25506 #endif /* HAVE_IEEEFP_H */
25507 int
25508 main ()
25509 {
25510 fpsetmask(0);
25511 ;
25512 return 0;
25513 }
25514 _ACEOF
25515 if ac_fn_c_try_link "$LINENO"; then :
25516 eval "libgfor_cv_have_fpsetmask=yes"
25517 else
25518 eval "libgfor_cv_have_fpsetmask=no"
25519 fi
25520 rm -f core conftest.err conftest.$ac_objext \
25521 conftest$ac_exeext conftest.$ac_ext
25522
25523 fi
25524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_fpsetmask" >&5
25525 $as_echo "$libgfor_cv_have_fpsetmask" >&6; }
25526 if test x"$libgfor_cv_have_fpsetmask" = xyes; then
25527 have_fpsetmask=yes
25528
25529 $as_echo "#define HAVE_FPSETMASK 1" >>confdefs.h
25530
25531 fi
25532
25533
25534 # Check for AIX fp_trap and fp_enable
25535 ac_fn_c_check_func "$LINENO" "fp_trap" "ac_cv_func_fp_trap"
25536 if test "x$ac_cv_func_fp_trap" = x""yes; then :
25537 have_fp_trap=yes
25538 $as_echo "#define HAVE_FP_TRAP 1" >>confdefs.h
25539
25540 fi
25541
25542 ac_fn_c_check_func "$LINENO" "fp_enable" "ac_cv_func_fp_enable"
25543 if test "x$ac_cv_func_fp_enable" = x""yes; then :
25544 have_fp_enable=yes
25545 $as_echo "#define HAVE_FP_ENABLE 1" >>confdefs.h
25546
25547 fi
25548
25549
25550 # Runs configure.host to set up necessary host-dependent shell variables.
25551 # We then display a message about it, and propagate them through the
25552 # build chain.
25553 . ${srcdir}/configure.host
25554 { $as_echo "$as_me:${as_lineno-$LINENO}: FPU dependent file will be ${fpu_host}.h" >&5
25555 $as_echo "$as_me: FPU dependent file will be ${fpu_host}.h" >&6;}
25556 FPU_HOST_HEADER=config/${fpu_host}.h
25557
25558
25559 # Some targets require additional compiler options for IEEE compatibility.
25560 IEEE_FLAGS="${ieee_flags}"
25561
25562
25563
25564 # Check for POSIX getpwuid_r
25565 #
25566 # There are two versions of getpwuid_r, the POSIX one with 5
25567 # arguments, and another one with 4 arguments used by at least HP-UX
25568 # 10.2.
25569 if test "$ac_cv_func_getpwuid_r" = "yes"; then
25570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX version of getpwuid_r with 5 arguments" >&5
25571 $as_echo_n "checking POSIX version of getpwuid_r with 5 arguments... " >&6; }
25572 if test "${libgfor_cv_posix_getpwuid_r+set}" = set; then :
25573 $as_echo_n "(cached) " >&6
25574 else
25575
25576 if test x$gcc_no_link = xyes; then
25577 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25578 fi
25579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25580 /* end confdefs.h. */
25581
25582 #include <stdio.h>
25583 #include <sys/types.h>
25584 #include <pwd.h>
25585 int
25586 main ()
25587 {
25588
25589 getpwuid_r(0, NULL, NULL, 0, NULL);
25590
25591 ;
25592 return 0;
25593 }
25594 _ACEOF
25595 if ac_fn_c_try_link "$LINENO"; then :
25596 libgfor_cv_posix_getpwuid_r="yes"
25597 else
25598 libgfor_cv_posix_getpwuid_r="no"
25599 fi
25600 rm -f core conftest.err conftest.$ac_objext \
25601 conftest$ac_exeext conftest.$ac_ext
25602 fi
25603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_posix_getpwuid_r" >&5
25604 $as_echo "$libgfor_cv_posix_getpwuid_r" >&6; }
25605 fi
25606 if test "$libgfor_cv_posix_getpwuid_r" = "yes"; then
25607
25608 $as_echo "#define HAVE_POSIX_GETPWUID_R 1" >>confdefs.h
25609
25610 fi
25611
25612
25613 # Check out attribute support.
25614
25615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
25616 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
25617 if test "${libgfor_cv_have_attribute_visibility+set}" = set; then :
25618 $as_echo_n "(cached) " >&6
25619 else
25620
25621 save_CFLAGS="$CFLAGS"
25622 CFLAGS="$CFLAGS -Werror"
25623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25624 /* end confdefs.h. */
25625 void __attribute__((visibility("hidden"))) foo(void) { }
25626 int
25627 main ()
25628 {
25629
25630 ;
25631 return 0;
25632 }
25633 _ACEOF
25634 if ac_fn_c_try_compile "$LINENO"; then :
25635 libgfor_cv_have_attribute_visibility=yes
25636 else
25637 libgfor_cv_have_attribute_visibility=no
25638 fi
25639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25640 CFLAGS="$save_CFLAGS"
25641 fi
25642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_visibility" >&5
25643 $as_echo "$libgfor_cv_have_attribute_visibility" >&6; }
25644 if test $libgfor_cv_have_attribute_visibility = yes; then
25645
25646 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
25647
25648 fi
25649
25650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
25651 $as_echo_n "checking whether the target supports dllexport... " >&6; }
25652 if test "${libgfor_cv_have_attribute_dllexport+set}" = set; then :
25653 $as_echo_n "(cached) " >&6
25654 else
25655
25656 save_CFLAGS="$CFLAGS"
25657 CFLAGS="$CFLAGS -Werror"
25658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25659 /* end confdefs.h. */
25660 void __attribute__((dllexport)) foo(void) { }
25661 int
25662 main ()
25663 {
25664
25665 ;
25666 return 0;
25667 }
25668 _ACEOF
25669 if ac_fn_c_try_compile "$LINENO"; then :
25670 libgfor_cv_have_attribute_dllexport=yes
25671 else
25672 libgfor_cv_have_attribute_dllexport=no
25673 fi
25674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25675 CFLAGS="$save_CFLAGS"
25676 fi
25677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_dllexport" >&5
25678 $as_echo "$libgfor_cv_have_attribute_dllexport" >&6; }
25679 if test $libgfor_cv_have_attribute_dllexport = yes; then
25680
25681 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
25682
25683 fi
25684
25685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
25686 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
25687 if test "${libgfor_cv_have_attribute_alias+set}" = set; then :
25688 $as_echo_n "(cached) " >&6
25689 else
25690
25691 if test x$gcc_no_link = xyes; then
25692 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25693 fi
25694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25695 /* end confdefs.h. */
25696
25697 void foo(void) { }
25698 extern void bar(void) __attribute__((alias("foo")));
25699 int
25700 main ()
25701 {
25702 bar();
25703 ;
25704 return 0;
25705 }
25706 _ACEOF
25707 if ac_fn_c_try_link "$LINENO"; then :
25708 libgfor_cv_have_attribute_alias=yes
25709 else
25710 libgfor_cv_have_attribute_alias=no
25711 fi
25712 rm -f core conftest.err conftest.$ac_objext \
25713 conftest$ac_exeext conftest.$ac_ext
25714 fi
25715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_alias" >&5
25716 $as_echo "$libgfor_cv_have_attribute_alias" >&6; }
25717 if test $libgfor_cv_have_attribute_alias = yes; then
25718
25719 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
25720
25721 fi
25722
25723 # Check out sync builtins support.
25724
25725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_fetch_and_add" >&5
25726 $as_echo_n "checking whether the target supports __sync_fetch_and_add... " >&6; }
25727 if test "${libgfor_cv_have_sync_fetch_and_add+set}" = set; then :
25728 $as_echo_n "(cached) " >&6
25729 else
25730
25731 if test x$gcc_no_link = xyes; then
25732 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25733 fi
25734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25735 /* end confdefs.h. */
25736 int foovar = 0;
25737 int
25738 main ()
25739 {
25740
25741 if (foovar <= 0) return __sync_fetch_and_add (&foovar, 1);
25742 if (foovar > 10) return __sync_add_and_fetch (&foovar, -1);
25743 ;
25744 return 0;
25745 }
25746 _ACEOF
25747 if ac_fn_c_try_link "$LINENO"; then :
25748 libgfor_cv_have_sync_fetch_and_add=yes
25749 else
25750 libgfor_cv_have_sync_fetch_and_add=no
25751 fi
25752 rm -f core conftest.err conftest.$ac_objext \
25753 conftest$ac_exeext conftest.$ac_ext
25754 fi
25755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_sync_fetch_and_add" >&5
25756 $as_echo "$libgfor_cv_have_sync_fetch_and_add" >&6; }
25757 if test $libgfor_cv_have_sync_fetch_and_add = yes; then
25758
25759 $as_echo "#define HAVE_SYNC_FETCH_AND_ADD 1" >>confdefs.h
25760
25761 fi
25762
25763 # Check out #pragma weak.
25764
25765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pragma weak works" >&5
25766 $as_echo_n "checking whether pragma weak works... " >&6; }
25767 if test "${libgfor_cv_have_pragma_weak+set}" = set; then :
25768 $as_echo_n "(cached) " >&6
25769 else
25770
25771 gfor_save_CFLAGS="$CFLAGS"
25772 CFLAGS="$CFLAGS -Wunknown-pragmas"
25773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25774 /* end confdefs.h. */
25775
25776 void foo (void);
25777 #pragma weak foo
25778
25779 int
25780 main ()
25781 {
25782 if (foo) foo ();
25783 ;
25784 return 0;
25785 }
25786 _ACEOF
25787 if ac_fn_c_try_compile "$LINENO"; then :
25788 libgfor_cv_have_pragma_weak=yes
25789 else
25790 libgfor_cv_have_pragma_weak=no
25791 fi
25792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25793 fi
25794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_pragma_weak" >&5
25795 $as_echo "$libgfor_cv_have_pragma_weak" >&6; }
25796 if test $libgfor_cv_have_pragma_weak = yes; then
25797
25798 $as_echo "#define SUPPORTS_WEAK 1" >>confdefs.h
25799
25800 fi
25801 case "$host" in
25802 *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* )
25803
25804 $as_echo "#define GTHREAD_USE_WEAK 0" >>confdefs.h
25805
25806 ;;
25807 esac
25808
25809 # Various other checks on target
25810
25811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target can unlink an open file" >&5
25812 $as_echo_n "checking whether the target can unlink an open file... " >&6; }
25813 if test "${libgfor_cv_have_unlink_open_file+set}" = set; then :
25814 $as_echo_n "(cached) " >&6
25815 else
25816
25817 if test "$cross_compiling" = yes; then :
25818
25819 case "${target}" in
25820 *mingw*) libgfor_cv_have_unlink_open_file=no ;;
25821 *) libgfor_cv_have_unlink_open_file=yes;;
25822 esac
25823 else
25824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25825 /* end confdefs.h. */
25826
25827 #include <errno.h>
25828 #include <fcntl.h>
25829 #include <unistd.h>
25830 #include <sys/stat.h>
25831
25832 int main ()
25833 {
25834 int fd;
25835
25836 fd = open ("testfile", O_RDWR | O_CREAT, S_IWUSR | S_IRUSR);
25837 if (fd <= 0)
25838 return 0;
25839 if (unlink ("testfile") == -1)
25840 return 1;
25841 write (fd, "This is a test\n", 15);
25842 close (fd);
25843
25844 if (open ("testfile", O_RDONLY) == -1 && errno == ENOENT)
25845 return 0;
25846 else
25847 return 1;
25848 }
25849 _ACEOF
25850 if ac_fn_c_try_run "$LINENO"; then :
25851 libgfor_cv_have_unlink_open_file=yes
25852 else
25853 libgfor_cv_have_unlink_open_file=no
25854 fi
25855 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25856 conftest.$ac_objext conftest.beam conftest.$ac_ext
25857 fi
25858
25859 fi
25860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_unlink_open_file" >&5
25861 $as_echo "$libgfor_cv_have_unlink_open_file" >&6; }
25862 if test x"$libgfor_cv_have_unlink_open_file" = xyes; then
25863
25864 $as_echo "#define HAVE_UNLINK_OPEN_FILE 1" >>confdefs.h
25865
25866 fi
25867
25868 # Check whether line terminator is LF or CRLF
25869
25870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target has CRLF as line terminator" >&5
25871 $as_echo_n "checking whether the target has CRLF as line terminator... " >&6; }
25872 if test "${libgfor_cv_have_crlf+set}" = set; then :
25873 $as_echo_n "(cached) " >&6
25874 else
25875
25876 if test "$cross_compiling" = yes; then :
25877
25878 case "${target}" in
25879 *mingw*) libgfor_cv_have_crlf=yes ;;
25880 *) libgfor_cv_have_crlf=no;;
25881 esac
25882 else
25883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25884 /* end confdefs.h. */
25885
25886 /* This test program should exit with status 0 if system uses a CRLF as
25887 line terminator, and status 1 otherwise.
25888 Since it is used to check for mingw systems, and should return 0 in any
25889 other case, in case of a failure we will not use CRLF. */
25890 #include <sys/stat.h>
25891 #include <stdlib.h>
25892 #include <fcntl.h>
25893 #include <stdio.h>
25894
25895 int main ()
25896 {
25897 #ifndef O_BINARY
25898 exit(1);
25899 #else
25900 int fd, bytes;
25901 char buff[5];
25902
25903 fd = open ("foo", O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU);
25904 if (fd < 0)
25905 exit(1);
25906 if (write (fd, "\n", 1) < 0)
25907 perror ("write");
25908
25909 close (fd);
25910
25911 if ((fd = open ("foo", O_RDONLY | O_BINARY, S_IRWXU)) < 0)
25912 exit(1);
25913 bytes = read (fd, buff, 5);
25914 if (bytes == 2 && buff[0] == '\r' && buff[1] == '\n')
25915 exit(0);
25916 else
25917 exit(1);
25918 #endif
25919 }
25920 _ACEOF
25921 if ac_fn_c_try_run "$LINENO"; then :
25922 libgfor_cv_have_crlf=yes
25923 else
25924 libgfor_cv_have_crlf=no
25925 fi
25926 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25927 conftest.$ac_objext conftest.beam conftest.$ac_ext
25928 fi
25929
25930 fi
25931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_crlf" >&5
25932 $as_echo "$libgfor_cv_have_crlf" >&6; }
25933 if test x"$libgfor_cv_have_crlf" = xyes; then
25934
25935 $as_echo "#define HAVE_CRLF 1" >>confdefs.h
25936
25937 fi
25938
25939 # Check whether we have _Unwind_GetIPInfo for backtrace
25940
25941
25942 # Check whether --with-system-libunwind was given.
25943 if test "${with_system_libunwind+set}" = set; then :
25944 withval=$with_system_libunwind;
25945 fi
25946
25947 # If system-libunwind was not specifically set, pick a default setting.
25948 if test x$with_system_libunwind = x; then
25949 case ${target} in
25950 ia64-*-hpux*) with_system_libunwind=yes ;;
25951 *) with_system_libunwind=no ;;
25952 esac
25953 fi
25954 # Based on system-libunwind and target, do we have ipinfo?
25955 if test x$with_system_libunwind = xyes; then
25956 case ${target} in
25957 ia64-*-*) have_unwind_getipinfo=no ;;
25958 *) have_unwind_getipinfo=yes ;;
25959 esac
25960 else
25961 # Darwin before version 9 does not have _Unwind_GetIPInfo.
25962
25963 case ${target} in
25964 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
25965 *) have_unwind_getipinfo=yes ;;
25966 esac
25967
25968 fi
25969
25970 if test x$have_unwind_getipinfo = xyes; then
25971
25972 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
25973
25974 fi
25975
25976
25977 cat >confcache <<\_ACEOF
25978 # This file is a shell script that caches the results of configure
25979 # tests run on this system so they can be shared between configure
25980 # scripts and configure runs, see configure's option --config-cache.
25981 # It is not useful on other systems. If it contains results you don't
25982 # want to keep, you may remove or edit it.
25983 #
25984 # config.status only pays attention to the cache file if you give it
25985 # the --recheck option to rerun configure.
25986 #
25987 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25988 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25989 # following values.
25990
25991 _ACEOF
25992
25993 # The following way of writing the cache mishandles newlines in values,
25994 # but we know of no workaround that is simple, portable, and efficient.
25995 # So, we kill variables containing newlines.
25996 # Ultrix sh set writes to stderr and can't be redirected directly,
25997 # and sets the high bit in the cache file unless we assign to the vars.
25998 (
25999 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26000 eval ac_val=\$$ac_var
26001 case $ac_val in #(
26002 *${as_nl}*)
26003 case $ac_var in #(
26004 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26005 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26006 esac
26007 case $ac_var in #(
26008 _ | IFS | as_nl) ;; #(
26009 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26010 *) { eval $ac_var=; unset $ac_var;} ;;
26011 esac ;;
26012 esac
26013 done
26014
26015 (set) 2>&1 |
26016 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26017 *${as_nl}ac_space=\ *)
26018 # `set' does not quote correctly, so add quotes: double-quote
26019 # substitution turns \\\\ into \\, and sed turns \\ into \.
26020 sed -n \
26021 "s/'/'\\\\''/g;
26022 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26023 ;; #(
26024 *)
26025 # `set' quotes correctly as required by POSIX, so do not add quotes.
26026 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26027 ;;
26028 esac |
26029 sort
26030 ) |
26031 sed '
26032 /^ac_cv_env_/b end
26033 t clear
26034 :clear
26035 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26036 t end
26037 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26038 :end' >>confcache
26039 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26040 if test -w "$cache_file"; then
26041 test "x$cache_file" != "x/dev/null" &&
26042 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26043 $as_echo "$as_me: updating cache $cache_file" >&6;}
26044 cat confcache >$cache_file
26045 else
26046 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26047 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26048 fi
26049 fi
26050 rm -f confcache
26051
26052 if test ${multilib} = yes; then
26053 multilib_arg="--enable-multilib"
26054 else
26055 multilib_arg=
26056 fi
26057
26058 # Write our Makefile and spec file.
26059 ac_config_files="$ac_config_files Makefile libgfortran.spec"
26060
26061 cat >confcache <<\_ACEOF
26062 # This file is a shell script that caches the results of configure
26063 # tests run on this system so they can be shared between configure
26064 # scripts and configure runs, see configure's option --config-cache.
26065 # It is not useful on other systems. If it contains results you don't
26066 # want to keep, you may remove or edit it.
26067 #
26068 # config.status only pays attention to the cache file if you give it
26069 # the --recheck option to rerun configure.
26070 #
26071 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26072 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26073 # following values.
26074
26075 _ACEOF
26076
26077 # The following way of writing the cache mishandles newlines in values,
26078 # but we know of no workaround that is simple, portable, and efficient.
26079 # So, we kill variables containing newlines.
26080 # Ultrix sh set writes to stderr and can't be redirected directly,
26081 # and sets the high bit in the cache file unless we assign to the vars.
26082 (
26083 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26084 eval ac_val=\$$ac_var
26085 case $ac_val in #(
26086 *${as_nl}*)
26087 case $ac_var in #(
26088 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26089 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26090 esac
26091 case $ac_var in #(
26092 _ | IFS | as_nl) ;; #(
26093 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26094 *) { eval $ac_var=; unset $ac_var;} ;;
26095 esac ;;
26096 esac
26097 done
26098
26099 (set) 2>&1 |
26100 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26101 *${as_nl}ac_space=\ *)
26102 # `set' does not quote correctly, so add quotes: double-quote
26103 # substitution turns \\\\ into \\, and sed turns \\ into \.
26104 sed -n \
26105 "s/'/'\\\\''/g;
26106 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26107 ;; #(
26108 *)
26109 # `set' quotes correctly as required by POSIX, so do not add quotes.
26110 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26111 ;;
26112 esac |
26113 sort
26114 ) |
26115 sed '
26116 /^ac_cv_env_/b end
26117 t clear
26118 :clear
26119 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26120 t end
26121 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26122 :end' >>confcache
26123 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26124 if test -w "$cache_file"; then
26125 test "x$cache_file" != "x/dev/null" &&
26126 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26127 $as_echo "$as_me: updating cache $cache_file" >&6;}
26128 cat confcache >$cache_file
26129 else
26130 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26131 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26132 fi
26133 fi
26134 rm -f confcache
26135
26136 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26137 # Let make expand exec_prefix.
26138 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26139
26140 DEFS=-DHAVE_CONFIG_H
26141
26142 ac_libobjs=
26143 ac_ltlibobjs=
26144 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26145 # 1. Remove the extension, and $U if already installed.
26146 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26147 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26148 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26149 # will be set to the directory where LIBOBJS objects are built.
26150 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26151 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26152 done
26153 LIBOBJS=$ac_libobjs
26154
26155 LTLIBOBJS=$ac_ltlibobjs
26156
26157
26158 if test -z "${onestep_TRUE}" && test -z "${onestep_FALSE}"; then
26159 as_fn_error "conditional \"onestep\" was never defined.
26160 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26161 fi
26162 if test -n "$EXEEXT"; then
26163 am__EXEEXT_TRUE=
26164 am__EXEEXT_FALSE='#'
26165 else
26166 am__EXEEXT_TRUE='#'
26167 am__EXEEXT_FALSE=
26168 fi
26169
26170 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26171 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
26172 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26173 fi
26174 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26175 as_fn_error "conditional \"AMDEP\" was never defined.
26176 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26177 fi
26178 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26179 as_fn_error "conditional \"am__fastdepCC\" was never defined.
26180 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26181 fi
26182 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26183 as_fn_error "conditional \"am__fastdepCC\" was never defined.
26184 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26185 fi
26186 if test -z "${LIBGFOR_USE_SYMVER_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_FALSE}"; then
26187 as_fn_error "conditional \"LIBGFOR_USE_SYMVER\" was never defined.
26188 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26189 fi
26190 if test -z "${LIBGFOR_USE_SYMVER_GNU_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_GNU_FALSE}"; then
26191 as_fn_error "conditional \"LIBGFOR_USE_SYMVER_GNU\" was never defined.
26192 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26193 fi
26194 if test -z "${LIBGFOR_USE_SYMVER_SUN_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_SUN_FALSE}"; then
26195 as_fn_error "conditional \"LIBGFOR_USE_SYMVER_SUN\" was never defined.
26196 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26197 fi
26198 if test -z "${LIBGFOR_BUILD_QUAD_TRUE}" && test -z "${LIBGFOR_BUILD_QUAD_FALSE}"; then
26199 as_fn_error "conditional \"LIBGFOR_BUILD_QUAD\" was never defined.
26200 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26201 fi
26202
26203 : ${CONFIG_STATUS=./config.status}
26204 ac_write_fail=0
26205 ac_clean_files_save=$ac_clean_files
26206 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26207 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26208 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26209 as_write_fail=0
26210 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26211 #! $SHELL
26212 # Generated by $as_me.
26213 # Run this file to recreate the current configuration.
26214 # Compiler output produced by configure, useful for debugging
26215 # configure, is in config.log if it exists.
26216
26217 debug=false
26218 ac_cs_recheck=false
26219 ac_cs_silent=false
26220
26221 SHELL=\${CONFIG_SHELL-$SHELL}
26222 export SHELL
26223 _ASEOF
26224 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26225 ## -------------------- ##
26226 ## M4sh Initialization. ##
26227 ## -------------------- ##
26228
26229 # Be more Bourne compatible
26230 DUALCASE=1; export DUALCASE # for MKS sh
26231 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26232 emulate sh
26233 NULLCMD=:
26234 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26235 # is contrary to our usage. Disable this feature.
26236 alias -g '${1+"$@"}'='"$@"'
26237 setopt NO_GLOB_SUBST
26238 else
26239 case `(set -o) 2>/dev/null` in #(
26240 *posix*) :
26241 set -o posix ;; #(
26242 *) :
26243 ;;
26244 esac
26245 fi
26246
26247
26248 as_nl='
26249 '
26250 export as_nl
26251 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26252 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26253 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26254 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26255 # Prefer a ksh shell builtin over an external printf program on Solaris,
26256 # but without wasting forks for bash or zsh.
26257 if test -z "$BASH_VERSION$ZSH_VERSION" \
26258 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26259 as_echo='print -r --'
26260 as_echo_n='print -rn --'
26261 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26262 as_echo='printf %s\n'
26263 as_echo_n='printf %s'
26264 else
26265 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26266 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26267 as_echo_n='/usr/ucb/echo -n'
26268 else
26269 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26270 as_echo_n_body='eval
26271 arg=$1;
26272 case $arg in #(
26273 *"$as_nl"*)
26274 expr "X$arg" : "X\\(.*\\)$as_nl";
26275 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26276 esac;
26277 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26278 '
26279 export as_echo_n_body
26280 as_echo_n='sh -c $as_echo_n_body as_echo'
26281 fi
26282 export as_echo_body
26283 as_echo='sh -c $as_echo_body as_echo'
26284 fi
26285
26286 # The user is always right.
26287 if test "${PATH_SEPARATOR+set}" != set; then
26288 PATH_SEPARATOR=:
26289 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26290 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26291 PATH_SEPARATOR=';'
26292 }
26293 fi
26294
26295
26296 # IFS
26297 # We need space, tab and new line, in precisely that order. Quoting is
26298 # there to prevent editors from complaining about space-tab.
26299 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26300 # splitting by setting IFS to empty value.)
26301 IFS=" "" $as_nl"
26302
26303 # Find who we are. Look in the path if we contain no directory separator.
26304 case $0 in #((
26305 *[\\/]* ) as_myself=$0 ;;
26306 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26307 for as_dir in $PATH
26308 do
26309 IFS=$as_save_IFS
26310 test -z "$as_dir" && as_dir=.
26311 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26312 done
26313 IFS=$as_save_IFS
26314
26315 ;;
26316 esac
26317 # We did not find ourselves, most probably we were run as `sh COMMAND'
26318 # in which case we are not to be found in the path.
26319 if test "x$as_myself" = x; then
26320 as_myself=$0
26321 fi
26322 if test ! -f "$as_myself"; then
26323 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26324 exit 1
26325 fi
26326
26327 # Unset variables that we do not need and which cause bugs (e.g. in
26328 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26329 # suppresses any "Segmentation fault" message there. '((' could
26330 # trigger a bug in pdksh 5.2.14.
26331 for as_var in BASH_ENV ENV MAIL MAILPATH
26332 do eval test x\${$as_var+set} = xset \
26333 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26334 done
26335 PS1='$ '
26336 PS2='> '
26337 PS4='+ '
26338
26339 # NLS nuisances.
26340 LC_ALL=C
26341 export LC_ALL
26342 LANGUAGE=C
26343 export LANGUAGE
26344
26345 # CDPATH.
26346 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26347
26348
26349 # as_fn_error ERROR [LINENO LOG_FD]
26350 # ---------------------------------
26351 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26352 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26353 # script with status $?, using 1 if that was 0.
26354 as_fn_error ()
26355 {
26356 as_status=$?; test $as_status -eq 0 && as_status=1
26357 if test "$3"; then
26358 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26359 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26360 fi
26361 $as_echo "$as_me: error: $1" >&2
26362 as_fn_exit $as_status
26363 } # as_fn_error
26364
26365
26366 # as_fn_set_status STATUS
26367 # -----------------------
26368 # Set $? to STATUS, without forking.
26369 as_fn_set_status ()
26370 {
26371 return $1
26372 } # as_fn_set_status
26373
26374 # as_fn_exit STATUS
26375 # -----------------
26376 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26377 as_fn_exit ()
26378 {
26379 set +e
26380 as_fn_set_status $1
26381 exit $1
26382 } # as_fn_exit
26383
26384 # as_fn_unset VAR
26385 # ---------------
26386 # Portably unset VAR.
26387 as_fn_unset ()
26388 {
26389 { eval $1=; unset $1;}
26390 }
26391 as_unset=as_fn_unset
26392 # as_fn_append VAR VALUE
26393 # ----------------------
26394 # Append the text in VALUE to the end of the definition contained in VAR. Take
26395 # advantage of any shell optimizations that allow amortized linear growth over
26396 # repeated appends, instead of the typical quadratic growth present in naive
26397 # implementations.
26398 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26399 eval 'as_fn_append ()
26400 {
26401 eval $1+=\$2
26402 }'
26403 else
26404 as_fn_append ()
26405 {
26406 eval $1=\$$1\$2
26407 }
26408 fi # as_fn_append
26409
26410 # as_fn_arith ARG...
26411 # ------------------
26412 # Perform arithmetic evaluation on the ARGs, and store the result in the
26413 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26414 # must be portable across $(()) and expr.
26415 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26416 eval 'as_fn_arith ()
26417 {
26418 as_val=$(( $* ))
26419 }'
26420 else
26421 as_fn_arith ()
26422 {
26423 as_val=`expr "$@" || test $? -eq 1`
26424 }
26425 fi # as_fn_arith
26426
26427
26428 if expr a : '\(a\)' >/dev/null 2>&1 &&
26429 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26430 as_expr=expr
26431 else
26432 as_expr=false
26433 fi
26434
26435 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26436 as_basename=basename
26437 else
26438 as_basename=false
26439 fi
26440
26441 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26442 as_dirname=dirname
26443 else
26444 as_dirname=false
26445 fi
26446
26447 as_me=`$as_basename -- "$0" ||
26448 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26449 X"$0" : 'X\(//\)$' \| \
26450 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26451 $as_echo X/"$0" |
26452 sed '/^.*\/\([^/][^/]*\)\/*$/{
26453 s//\1/
26454 q
26455 }
26456 /^X\/\(\/\/\)$/{
26457 s//\1/
26458 q
26459 }
26460 /^X\/\(\/\).*/{
26461 s//\1/
26462 q
26463 }
26464 s/.*/./; q'`
26465
26466 # Avoid depending upon Character Ranges.
26467 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26468 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26469 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26470 as_cr_digits='0123456789'
26471 as_cr_alnum=$as_cr_Letters$as_cr_digits
26472
26473 ECHO_C= ECHO_N= ECHO_T=
26474 case `echo -n x` in #(((((
26475 -n*)
26476 case `echo 'xy\c'` in
26477 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26478 xy) ECHO_C='\c';;
26479 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
26480 ECHO_T=' ';;
26481 esac;;
26482 *)
26483 ECHO_N='-n';;
26484 esac
26485
26486 rm -f conf$$ conf$$.exe conf$$.file
26487 if test -d conf$$.dir; then
26488 rm -f conf$$.dir/conf$$.file
26489 else
26490 rm -f conf$$.dir
26491 mkdir conf$$.dir 2>/dev/null
26492 fi
26493 if (echo >conf$$.file) 2>/dev/null; then
26494 if ln -s conf$$.file conf$$ 2>/dev/null; then
26495 as_ln_s='ln -s'
26496 # ... but there are two gotchas:
26497 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26498 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26499 # In both cases, we have to default to `cp -p'.
26500 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26501 as_ln_s='cp -p'
26502 elif ln conf$$.file conf$$ 2>/dev/null; then
26503 as_ln_s=ln
26504 else
26505 as_ln_s='cp -p'
26506 fi
26507 else
26508 as_ln_s='cp -p'
26509 fi
26510 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26511 rmdir conf$$.dir 2>/dev/null
26512
26513
26514 # as_fn_mkdir_p
26515 # -------------
26516 # Create "$as_dir" as a directory, including parents if necessary.
26517 as_fn_mkdir_p ()
26518 {
26519
26520 case $as_dir in #(
26521 -*) as_dir=./$as_dir;;
26522 esac
26523 test -d "$as_dir" || eval $as_mkdir_p || {
26524 as_dirs=
26525 while :; do
26526 case $as_dir in #(
26527 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26528 *) as_qdir=$as_dir;;
26529 esac
26530 as_dirs="'$as_qdir' $as_dirs"
26531 as_dir=`$as_dirname -- "$as_dir" ||
26532 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26533 X"$as_dir" : 'X\(//\)[^/]' \| \
26534 X"$as_dir" : 'X\(//\)$' \| \
26535 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26536 $as_echo X"$as_dir" |
26537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26538 s//\1/
26539 q
26540 }
26541 /^X\(\/\/\)[^/].*/{
26542 s//\1/
26543 q
26544 }
26545 /^X\(\/\/\)$/{
26546 s//\1/
26547 q
26548 }
26549 /^X\(\/\).*/{
26550 s//\1/
26551 q
26552 }
26553 s/.*/./; q'`
26554 test -d "$as_dir" && break
26555 done
26556 test -z "$as_dirs" || eval "mkdir $as_dirs"
26557 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
26558
26559
26560 } # as_fn_mkdir_p
26561 if mkdir -p . 2>/dev/null; then
26562 as_mkdir_p='mkdir -p "$as_dir"'
26563 else
26564 test -d ./-p && rmdir ./-p
26565 as_mkdir_p=false
26566 fi
26567
26568 if test -x / >/dev/null 2>&1; then
26569 as_test_x='test -x'
26570 else
26571 if ls -dL / >/dev/null 2>&1; then
26572 as_ls_L_option=L
26573 else
26574 as_ls_L_option=
26575 fi
26576 as_test_x='
26577 eval sh -c '\''
26578 if test -d "$1"; then
26579 test -d "$1/.";
26580 else
26581 case $1 in #(
26582 -*)set "./$1";;
26583 esac;
26584 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
26585 ???[sx]*):;;*)false;;esac;fi
26586 '\'' sh
26587 '
26588 fi
26589 as_executable_p=$as_test_x
26590
26591 # Sed expression to map a string onto a valid CPP name.
26592 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26593
26594 # Sed expression to map a string onto a valid variable name.
26595 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26596
26597
26598 exec 6>&1
26599 ## ----------------------------------- ##
26600 ## Main body of $CONFIG_STATUS script. ##
26601 ## ----------------------------------- ##
26602 _ASEOF
26603 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26604
26605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26606 # Save the log message, to keep $0 and so on meaningful, and to
26607 # report actual input values of CONFIG_FILES etc. instead of their
26608 # values after options handling.
26609 ac_log="
26610 This file was extended by GNU Fortran Runtime Library $as_me 0.3, which was
26611 generated by GNU Autoconf 2.64. Invocation command line was
26612
26613 CONFIG_FILES = $CONFIG_FILES
26614 CONFIG_HEADERS = $CONFIG_HEADERS
26615 CONFIG_LINKS = $CONFIG_LINKS
26616 CONFIG_COMMANDS = $CONFIG_COMMANDS
26617 $ $0 $@
26618
26619 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26620 "
26621
26622 _ACEOF
26623
26624 case $ac_config_files in *"
26625 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26626 esac
26627
26628 case $ac_config_headers in *"
26629 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26630 esac
26631
26632
26633 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26634 # Files that config.status was made for.
26635 config_files="$ac_config_files"
26636 config_headers="$ac_config_headers"
26637 config_commands="$ac_config_commands"
26638
26639 _ACEOF
26640
26641 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26642 ac_cs_usage="\
26643 \`$as_me' instantiates files and other configuration actions
26644 from templates according to the current configuration. Unless the files
26645 and actions are specified as TAGs, all are instantiated by default.
26646
26647 Usage: $0 [OPTION]... [TAG]...
26648
26649 -h, --help print this help, then exit
26650 -V, --version print version number and configuration settings, then exit
26651 -q, --quiet, --silent
26652 do not print progress messages
26653 -d, --debug don't remove temporary files
26654 --recheck update $as_me by reconfiguring in the same conditions
26655 --file=FILE[:TEMPLATE]
26656 instantiate the configuration file FILE
26657 --header=FILE[:TEMPLATE]
26658 instantiate the configuration header FILE
26659
26660 Configuration files:
26661 $config_files
26662
26663 Configuration headers:
26664 $config_headers
26665
26666 Configuration commands:
26667 $config_commands
26668
26669 Report bugs to the package provider.
26670 GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
26671 General help using GNU software: <http://www.gnu.org/gethelp/>."
26672
26673 _ACEOF
26674 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26675 ac_cs_version="\\
26676 GNU Fortran Runtime Library config.status 0.3
26677 configured by $0, generated by GNU Autoconf 2.64,
26678 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26679
26680 Copyright (C) 2009 Free Software Foundation, Inc.
26681 This config.status script is free software; the Free Software Foundation
26682 gives unlimited permission to copy, distribute and modify it."
26683
26684 ac_pwd='$ac_pwd'
26685 srcdir='$srcdir'
26686 INSTALL='$INSTALL'
26687 MKDIR_P='$MKDIR_P'
26688 AWK='$AWK'
26689 test -n "\$AWK" || AWK=awk
26690 _ACEOF
26691
26692 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26693 # The default lists apply if the user does not specify any file.
26694 ac_need_defaults=:
26695 while test $# != 0
26696 do
26697 case $1 in
26698 --*=*)
26699 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26700 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26701 ac_shift=:
26702 ;;
26703 *)
26704 ac_option=$1
26705 ac_optarg=$2
26706 ac_shift=shift
26707 ;;
26708 esac
26709
26710 case $ac_option in
26711 # Handling of the options.
26712 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26713 ac_cs_recheck=: ;;
26714 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26715 $as_echo "$ac_cs_version"; exit ;;
26716 --debug | --debu | --deb | --de | --d | -d )
26717 debug=: ;;
26718 --file | --fil | --fi | --f )
26719 $ac_shift
26720 case $ac_optarg in
26721 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26722 esac
26723 as_fn_append CONFIG_FILES " '$ac_optarg'"
26724 ac_need_defaults=false;;
26725 --header | --heade | --head | --hea )
26726 $ac_shift
26727 case $ac_optarg in
26728 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26729 esac
26730 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26731 ac_need_defaults=false;;
26732 --he | --h)
26733 # Conflict between --help and --header
26734 as_fn_error "ambiguous option: \`$1'
26735 Try \`$0 --help' for more information.";;
26736 --help | --hel | -h )
26737 $as_echo "$ac_cs_usage"; exit ;;
26738 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26739 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26740 ac_cs_silent=: ;;
26741
26742 # This is an error.
26743 -*) as_fn_error "unrecognized option: \`$1'
26744 Try \`$0 --help' for more information." ;;
26745
26746 *) as_fn_append ac_config_targets " $1"
26747 ac_need_defaults=false ;;
26748
26749 esac
26750 shift
26751 done
26752
26753 ac_configure_extra_args=
26754
26755 if $ac_cs_silent; then
26756 exec 6>/dev/null
26757 ac_configure_extra_args="$ac_configure_extra_args --silent"
26758 fi
26759
26760 _ACEOF
26761 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26762 if \$ac_cs_recheck; then
26763 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26764 shift
26765 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26766 CONFIG_SHELL='$SHELL'
26767 export CONFIG_SHELL
26768 exec "\$@"
26769 fi
26770
26771 _ACEOF
26772 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26773 exec 5>>config.log
26774 {
26775 echo
26776 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26777 ## Running $as_me. ##
26778 _ASBOX
26779 $as_echo "$ac_log"
26780 } >&5
26781
26782 _ACEOF
26783 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26784 #
26785 # INIT-COMMANDS
26786 #
26787
26788 srcdir="$srcdir"
26789 host="$host"
26790 target="$target"
26791 with_multisubdir="$with_multisubdir"
26792 with_multisrctop="$with_multisrctop"
26793 with_target_subdir="$with_target_subdir"
26794 ac_configure_args="${multilib_arg} ${ac_configure_args}"
26795 multi_basedir="$multi_basedir"
26796 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
26797 CC="$CC"
26798 CXX="$CXX"
26799 GFORTRAN="$GFORTRAN"
26800 GCJ="$GCJ"
26801 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26802
26803
26804 # The HP-UX ksh and POSIX shell print the target directory to stdout
26805 # if CDPATH is set.
26806 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26807
26808 sed_quote_subst='$sed_quote_subst'
26809 double_quote_subst='$double_quote_subst'
26810 delay_variable_subst='$delay_variable_subst'
26811 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
26812 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
26813 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
26814 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
26815 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
26816 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
26817 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
26818 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
26819 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
26820 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
26821 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
26822 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
26823 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
26824 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
26825 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
26826 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
26827 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
26828 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
26829 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
26830 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
26831 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
26832 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
26833 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
26834 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
26835 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
26836 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
26837 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
26838 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
26839 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
26840 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
26841 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
26842 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
26843 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
26844 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
26845 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
26846 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
26847 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
26848 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26849 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26850 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
26851 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
26852 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
26853 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
26854 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
26855 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
26856 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
26857 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
26858 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
26859 lt_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"`'
26860 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
26861 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
26862 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
26863 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
26864 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
26865 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
26866 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
26867 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
26868 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
26869 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
26870 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
26871 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
26872 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
26873 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
26874 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
26875 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26876 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
26877 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
26878 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
26879 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
26880 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
26881 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
26882 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26883 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
26884 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26885 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
26886 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26887 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
26888 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
26889 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
26890 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
26891 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
26892 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
26893 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
26894 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
26895 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
26896 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
26897 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
26898 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
26899 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
26900 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
26901 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
26902 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
26903 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
26904 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
26905 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
26906 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
26907 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
26908 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
26909 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
26910 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
26911 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
26912 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
26913 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
26914 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
26915 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
26916 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
26917 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
26918 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26919 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26920 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
26921 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
26922 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
26923 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
26924 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
26925 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
26926 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
26927 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
26928 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
26929 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
26930 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
26931 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
26932 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
26933 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
26934 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
26935 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
26936 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
26937 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
26938 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
26939 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
26940 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
26941 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
26942 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
26943 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
26944 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
26945 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
26946 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
26947 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
26948 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
26949 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
26950 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
26951 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
26952 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
26953 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
26954 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
26955 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
26956 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
26957 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
26958 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
26959 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
26960 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
26961 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
26962 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
26963 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
26964 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
26965 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
26966 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
26967 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
26968 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
26969 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
26970 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
26971 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
26972 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
26973 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
26974 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
26975 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
26976 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
26977 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
26978 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
26979 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
26980 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
26981 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
26982 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
26983 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
26984 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
26985 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
26986
26987 LTCC='$LTCC'
26988 LTCFLAGS='$LTCFLAGS'
26989 compiler='$compiler_DEFAULT'
26990
26991 # A function that is used when there is no print builtin or printf.
26992 func_fallback_echo ()
26993 {
26994 eval 'cat <<_LTECHO_EOF
26995 \$1
26996 _LTECHO_EOF'
26997 }
26998
26999 # Quote evaled strings.
27000 for var in SHELL \
27001 ECHO \
27002 SED \
27003 GREP \
27004 EGREP \
27005 FGREP \
27006 LD \
27007 NM \
27008 LN_S \
27009 lt_SP2NL \
27010 lt_NL2SP \
27011 reload_flag \
27012 OBJDUMP \
27013 deplibs_check_method \
27014 file_magic_cmd \
27015 AR \
27016 AR_FLAGS \
27017 STRIP \
27018 RANLIB \
27019 CC \
27020 CFLAGS \
27021 compiler \
27022 lt_cv_sys_global_symbol_pipe \
27023 lt_cv_sys_global_symbol_to_cdecl \
27024 lt_cv_sys_global_symbol_to_c_name_address \
27025 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27026 lt_prog_compiler_no_builtin_flag \
27027 lt_prog_compiler_wl \
27028 lt_prog_compiler_pic \
27029 lt_prog_compiler_static \
27030 lt_cv_prog_compiler_c_o \
27031 need_locks \
27032 DSYMUTIL \
27033 NMEDIT \
27034 LIPO \
27035 OTOOL \
27036 OTOOL64 \
27037 shrext_cmds \
27038 export_dynamic_flag_spec \
27039 whole_archive_flag_spec \
27040 compiler_needs_object \
27041 with_gnu_ld \
27042 allow_undefined_flag \
27043 no_undefined_flag \
27044 hardcode_libdir_flag_spec \
27045 hardcode_libdir_flag_spec_ld \
27046 hardcode_libdir_separator \
27047 fix_srcfile_path \
27048 exclude_expsyms \
27049 include_expsyms \
27050 file_list_spec \
27051 variables_saved_for_relink \
27052 libname_spec \
27053 library_names_spec \
27054 soname_spec \
27055 install_override_mode \
27056 finish_eval \
27057 old_striplib \
27058 striplib \
27059 compiler_lib_search_dirs \
27060 predep_objects \
27061 postdep_objects \
27062 predeps \
27063 postdeps \
27064 compiler_lib_search_path \
27065 LD_FC \
27066 reload_flag_FC \
27067 compiler_FC \
27068 lt_prog_compiler_no_builtin_flag_FC \
27069 lt_prog_compiler_wl_FC \
27070 lt_prog_compiler_pic_FC \
27071 lt_prog_compiler_static_FC \
27072 lt_cv_prog_compiler_c_o_FC \
27073 export_dynamic_flag_spec_FC \
27074 whole_archive_flag_spec_FC \
27075 compiler_needs_object_FC \
27076 with_gnu_ld_FC \
27077 allow_undefined_flag_FC \
27078 no_undefined_flag_FC \
27079 hardcode_libdir_flag_spec_FC \
27080 hardcode_libdir_flag_spec_ld_FC \
27081 hardcode_libdir_separator_FC \
27082 fix_srcfile_path_FC \
27083 exclude_expsyms_FC \
27084 include_expsyms_FC \
27085 file_list_spec_FC \
27086 compiler_lib_search_dirs_FC \
27087 predep_objects_FC \
27088 postdep_objects_FC \
27089 predeps_FC \
27090 postdeps_FC \
27091 compiler_lib_search_path_FC; do
27092 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27093 *[\\\\\\\`\\"\\\$]*)
27094 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
27095 ;;
27096 *)
27097 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27098 ;;
27099 esac
27100 done
27101
27102 # Double-quote double-evaled strings.
27103 for var in reload_cmds \
27104 old_postinstall_cmds \
27105 old_postuninstall_cmds \
27106 old_archive_cmds \
27107 extract_expsyms_cmds \
27108 old_archive_from_new_cmds \
27109 old_archive_from_expsyms_cmds \
27110 archive_cmds \
27111 archive_expsym_cmds \
27112 module_cmds \
27113 module_expsym_cmds \
27114 export_symbols_cmds \
27115 prelink_cmds \
27116 postinstall_cmds \
27117 postuninstall_cmds \
27118 finish_cmds \
27119 sys_lib_search_path_spec \
27120 sys_lib_dlsearch_path_spec \
27121 reload_cmds_FC \
27122 old_archive_cmds_FC \
27123 old_archive_from_new_cmds_FC \
27124 old_archive_from_expsyms_cmds_FC \
27125 archive_cmds_FC \
27126 archive_expsym_cmds_FC \
27127 module_cmds_FC \
27128 module_expsym_cmds_FC \
27129 export_symbols_cmds_FC \
27130 prelink_cmds_FC; do
27131 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27132 *[\\\\\\\`\\"\\\$]*)
27133 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
27134 ;;
27135 *)
27136 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27137 ;;
27138 esac
27139 done
27140
27141 ac_aux_dir='$ac_aux_dir'
27142 xsi_shell='$xsi_shell'
27143 lt_shell_append='$lt_shell_append'
27144
27145 # See if we are running on zsh, and set the options which allow our
27146 # commands through without removal of \ escapes INIT.
27147 if test -n "\${ZSH_VERSION+set}" ; then
27148 setopt NO_GLOB_SUBST
27149 fi
27150
27151
27152 PACKAGE='$PACKAGE'
27153 VERSION='$VERSION'
27154 TIMESTAMP='$TIMESTAMP'
27155 RM='$RM'
27156 ofile='$ofile'
27157
27158
27159
27160
27161
27162
27163 GCC="$GCC"
27164 CC="$CC"
27165 acx_cv_header_stdint="$acx_cv_header_stdint"
27166 acx_cv_type_int8_t="$acx_cv_type_int8_t"
27167 acx_cv_type_int16_t="$acx_cv_type_int16_t"
27168 acx_cv_type_int32_t="$acx_cv_type_int32_t"
27169 acx_cv_type_int64_t="$acx_cv_type_int64_t"
27170 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
27171 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
27172 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
27173 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
27174 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
27175 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
27176 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
27177 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
27178 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
27179
27180
27181 _ACEOF
27182
27183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27184
27185 # Handling of arguments.
27186 for ac_config_target in $ac_config_targets
27187 do
27188 case $ac_config_target in
27189 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27190 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
27191 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27192 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27193 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
27194 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27195 "libgfortran.spec") CONFIG_FILES="$CONFIG_FILES libgfortran.spec" ;;
27196
27197 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27198 esac
27199 done
27200
27201
27202 # If the user did not use the arguments to specify the items to instantiate,
27203 # then the envvar interface is used. Set only those that are not.
27204 # We use the long form for the default assignment because of an extremely
27205 # bizarre bug on SunOS 4.1.3.
27206 if $ac_need_defaults; then
27207 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27208 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27209 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27210 fi
27211
27212 # Have a temporary directory for convenience. Make it in the build tree
27213 # simply because there is no reason against having it here, and in addition,
27214 # creating and moving files from /tmp can sometimes cause problems.
27215 # Hook for its removal unless debugging.
27216 # Note that there is a small window in which the directory will not be cleaned:
27217 # after its creation but before its name has been assigned to `$tmp'.
27218 $debug ||
27219 {
27220 tmp=
27221 trap 'exit_status=$?
27222 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27223 ' 0
27224 trap 'as_fn_exit 1' 1 2 13 15
27225 }
27226 # Create a (secure) tmp directory for tmp files.
27227
27228 {
27229 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27230 test -n "$tmp" && test -d "$tmp"
27231 } ||
27232 {
27233 tmp=./conf$$-$RANDOM
27234 (umask 077 && mkdir "$tmp")
27235 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
27236
27237 # Set up the scripts for CONFIG_FILES section.
27238 # No need to generate them if there are no CONFIG_FILES.
27239 # This happens for instance with `./config.status config.h'.
27240 if test -n "$CONFIG_FILES"; then
27241
27242
27243 ac_cr=`echo X | tr X '\015'`
27244 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27245 # But we know of no other shell where ac_cr would be empty at this
27246 # point, so we can use a bashism as a fallback.
27247 if test "x$ac_cr" = x; then
27248 eval ac_cr=\$\'\\r\'
27249 fi
27250 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27251 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27252 ac_cs_awk_cr='\r'
27253 else
27254 ac_cs_awk_cr=$ac_cr
27255 fi
27256
27257 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27258 _ACEOF
27259
27260
27261 {
27262 echo "cat >conf$$subs.awk <<_ACEOF" &&
27263 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27264 echo "_ACEOF"
27265 } >conf$$subs.sh ||
27266 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27267 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27268 ac_delim='%!_!# '
27269 for ac_last_try in false false false false false :; do
27270 . ./conf$$subs.sh ||
27271 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27272
27273 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27274 if test $ac_delim_n = $ac_delim_num; then
27275 break
27276 elif $ac_last_try; then
27277 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27278 else
27279 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27280 fi
27281 done
27282 rm -f conf$$subs.sh
27283
27284 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27285 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27286 _ACEOF
27287 sed -n '
27288 h
27289 s/^/S["/; s/!.*/"]=/
27290 p
27291 g
27292 s/^[^!]*!//
27293 :repl
27294 t repl
27295 s/'"$ac_delim"'$//
27296 t delim
27297 :nl
27298 h
27299 s/\(.\{148\}\).*/\1/
27300 t more1
27301 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27302 p
27303 n
27304 b repl
27305 :more1
27306 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27307 p
27308 g
27309 s/.\{148\}//
27310 t nl
27311 :delim
27312 h
27313 s/\(.\{148\}\).*/\1/
27314 t more2
27315 s/["\\]/\\&/g; s/^/"/; s/$/"/
27316 p
27317 b
27318 :more2
27319 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27320 p
27321 g
27322 s/.\{148\}//
27323 t delim
27324 ' <conf$$subs.awk | sed '
27325 /^[^""]/{
27326 N
27327 s/\n//
27328 }
27329 ' >>$CONFIG_STATUS || ac_write_fail=1
27330 rm -f conf$$subs.awk
27331 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27332 _ACAWK
27333 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27334 for (key in S) S_is_set[key] = 1
27335 FS = "\a"
27336
27337 }
27338 {
27339 line = $ 0
27340 nfields = split(line, field, "@")
27341 substed = 0
27342 len = length(field[1])
27343 for (i = 2; i < nfields; i++) {
27344 key = field[i]
27345 keylen = length(key)
27346 if (S_is_set[key]) {
27347 value = S[key]
27348 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27349 len += length(value) + length(field[++i])
27350 substed = 1
27351 } else
27352 len += 1 + keylen
27353 }
27354
27355 print line
27356 }
27357
27358 _ACAWK
27359 _ACEOF
27360 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27361 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27362 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27363 else
27364 cat
27365 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27366 || as_fn_error "could not setup config files machinery" "$LINENO" 5
27367 _ACEOF
27368
27369 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27370 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27371 # trailing colons and then remove the whole line if VPATH becomes empty
27372 # (actually we leave an empty line to preserve line numbers).
27373 if test "x$srcdir" = x.; then
27374 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27375 s/:*\$(srcdir):*/:/
27376 s/:*\${srcdir}:*/:/
27377 s/:*@srcdir@:*/:/
27378 s/^\([^=]*=[ ]*\):*/\1/
27379 s/:*$//
27380 s/^[^=]*=[ ]*$//
27381 }'
27382 fi
27383
27384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27385 fi # test -n "$CONFIG_FILES"
27386
27387 # Set up the scripts for CONFIG_HEADERS section.
27388 # No need to generate them if there are no CONFIG_HEADERS.
27389 # This happens for instance with `./config.status Makefile'.
27390 if test -n "$CONFIG_HEADERS"; then
27391 cat >"$tmp/defines.awk" <<\_ACAWK ||
27392 BEGIN {
27393 _ACEOF
27394
27395 # Transform confdefs.h into an awk script `defines.awk', embedded as
27396 # here-document in config.status, that substitutes the proper values into
27397 # config.h.in to produce config.h.
27398
27399 # Create a delimiter string that does not exist in confdefs.h, to ease
27400 # handling of long lines.
27401 ac_delim='%!_!# '
27402 for ac_last_try in false false :; do
27403 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27404 if test -z "$ac_t"; then
27405 break
27406 elif $ac_last_try; then
27407 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
27408 else
27409 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27410 fi
27411 done
27412
27413 # For the awk script, D is an array of macro values keyed by name,
27414 # likewise P contains macro parameters if any. Preserve backslash
27415 # newline sequences.
27416
27417 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27418 sed -n '
27419 s/.\{148\}/&'"$ac_delim"'/g
27420 t rset
27421 :rset
27422 s/^[ ]*#[ ]*define[ ][ ]*/ /
27423 t def
27424 d
27425 :def
27426 s/\\$//
27427 t bsnl
27428 s/["\\]/\\&/g
27429 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27430 D["\1"]=" \3"/p
27431 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27432 d
27433 :bsnl
27434 s/["\\]/\\&/g
27435 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27436 D["\1"]=" \3\\\\\\n"\\/p
27437 t cont
27438 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27439 t cont
27440 d
27441 :cont
27442 n
27443 s/.\{148\}/&'"$ac_delim"'/g
27444 t clear
27445 :clear
27446 s/\\$//
27447 t bsnlc
27448 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27449 d
27450 :bsnlc
27451 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27452 b cont
27453 ' <confdefs.h | sed '
27454 s/'"$ac_delim"'/"\\\
27455 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27456
27457 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27458 for (key in D) D_is_set[key] = 1
27459 FS = "\a"
27460 }
27461 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27462 line = \$ 0
27463 split(line, arg, " ")
27464 if (arg[1] == "#") {
27465 defundef = arg[2]
27466 mac1 = arg[3]
27467 } else {
27468 defundef = substr(arg[1], 2)
27469 mac1 = arg[2]
27470 }
27471 split(mac1, mac2, "(") #)
27472 macro = mac2[1]
27473 prefix = substr(line, 1, index(line, defundef) - 1)
27474 if (D_is_set[macro]) {
27475 # Preserve the white space surrounding the "#".
27476 print prefix "define", macro P[macro] D[macro]
27477 next
27478 } else {
27479 # Replace #undef with comments. This is necessary, for example,
27480 # in the case of _POSIX_SOURCE, which is predefined and required
27481 # on some systems where configure will not decide to define it.
27482 if (defundef == "undef") {
27483 print "/*", prefix defundef, macro, "*/"
27484 next
27485 }
27486 }
27487 }
27488 { print }
27489 _ACAWK
27490 _ACEOF
27491 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27492 as_fn_error "could not setup config headers machinery" "$LINENO" 5
27493 fi # test -n "$CONFIG_HEADERS"
27494
27495
27496 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27497 shift
27498 for ac_tag
27499 do
27500 case $ac_tag in
27501 :[FHLC]) ac_mode=$ac_tag; continue;;
27502 esac
27503 case $ac_mode$ac_tag in
27504 :[FHL]*:*);;
27505 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
27506 :[FH]-) ac_tag=-:-;;
27507 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27508 esac
27509 ac_save_IFS=$IFS
27510 IFS=:
27511 set x $ac_tag
27512 IFS=$ac_save_IFS
27513 shift
27514 ac_file=$1
27515 shift
27516
27517 case $ac_mode in
27518 :L) ac_source=$1;;
27519 :[FH])
27520 ac_file_inputs=
27521 for ac_f
27522 do
27523 case $ac_f in
27524 -) ac_f="$tmp/stdin";;
27525 *) # Look for the file first in the build tree, then in the source tree
27526 # (if the path is not absolute). The absolute path cannot be DOS-style,
27527 # because $ac_f cannot contain `:'.
27528 test -f "$ac_f" ||
27529 case $ac_f in
27530 [\\/$]*) false;;
27531 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27532 esac ||
27533 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27534 esac
27535 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27536 as_fn_append ac_file_inputs " '$ac_f'"
27537 done
27538
27539 # Let's still pretend it is `configure' which instantiates (i.e., don't
27540 # use $as_me), people would be surprised to read:
27541 # /* config.h. Generated by config.status. */
27542 configure_input='Generated from '`
27543 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27544 `' by configure.'
27545 if test x"$ac_file" != x-; then
27546 configure_input="$ac_file. $configure_input"
27547 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27548 $as_echo "$as_me: creating $ac_file" >&6;}
27549 fi
27550 # Neutralize special characters interpreted by sed in replacement strings.
27551 case $configure_input in #(
27552 *\&* | *\|* | *\\* )
27553 ac_sed_conf_input=`$as_echo "$configure_input" |
27554 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27555 *) ac_sed_conf_input=$configure_input;;
27556 esac
27557
27558 case $ac_tag in
27559 *:-:* | *:-) cat >"$tmp/stdin" \
27560 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
27561 esac
27562 ;;
27563 esac
27564
27565 ac_dir=`$as_dirname -- "$ac_file" ||
27566 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27567 X"$ac_file" : 'X\(//\)[^/]' \| \
27568 X"$ac_file" : 'X\(//\)$' \| \
27569 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27570 $as_echo X"$ac_file" |
27571 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27572 s//\1/
27573 q
27574 }
27575 /^X\(\/\/\)[^/].*/{
27576 s//\1/
27577 q
27578 }
27579 /^X\(\/\/\)$/{
27580 s//\1/
27581 q
27582 }
27583 /^X\(\/\).*/{
27584 s//\1/
27585 q
27586 }
27587 s/.*/./; q'`
27588 as_dir="$ac_dir"; as_fn_mkdir_p
27589 ac_builddir=.
27590
27591 case "$ac_dir" in
27592 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27593 *)
27594 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27595 # A ".." for each directory in $ac_dir_suffix.
27596 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27597 case $ac_top_builddir_sub in
27598 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27599 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27600 esac ;;
27601 esac
27602 ac_abs_top_builddir=$ac_pwd
27603 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27604 # for backward compatibility:
27605 ac_top_builddir=$ac_top_build_prefix
27606
27607 case $srcdir in
27608 .) # We are building in place.
27609 ac_srcdir=.
27610 ac_top_srcdir=$ac_top_builddir_sub
27611 ac_abs_top_srcdir=$ac_pwd ;;
27612 [\\/]* | ?:[\\/]* ) # Absolute name.
27613 ac_srcdir=$srcdir$ac_dir_suffix;
27614 ac_top_srcdir=$srcdir
27615 ac_abs_top_srcdir=$srcdir ;;
27616 *) # Relative name.
27617 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27618 ac_top_srcdir=$ac_top_build_prefix$srcdir
27619 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27620 esac
27621 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27622
27623
27624 case $ac_mode in
27625 :F)
27626 #
27627 # CONFIG_FILE
27628 #
27629
27630 case $INSTALL in
27631 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27632 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27633 esac
27634 ac_MKDIR_P=$MKDIR_P
27635 case $MKDIR_P in
27636 [\\/$]* | ?:[\\/]* ) ;;
27637 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
27638 esac
27639 _ACEOF
27640
27641 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27642 # If the template does not know about datarootdir, expand it.
27643 # FIXME: This hack should be removed a few years after 2.60.
27644 ac_datarootdir_hack=; ac_datarootdir_seen=
27645 ac_sed_dataroot='
27646 /datarootdir/ {
27647 p
27648 q
27649 }
27650 /@datadir@/p
27651 /@docdir@/p
27652 /@infodir@/p
27653 /@localedir@/p
27654 /@mandir@/p'
27655 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27656 *datarootdir*) ac_datarootdir_seen=yes;;
27657 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27659 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27660 _ACEOF
27661 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27662 ac_datarootdir_hack='
27663 s&@datadir@&$datadir&g
27664 s&@docdir@&$docdir&g
27665 s&@infodir@&$infodir&g
27666 s&@localedir@&$localedir&g
27667 s&@mandir@&$mandir&g
27668 s&\\\${datarootdir}&$datarootdir&g' ;;
27669 esac
27670 _ACEOF
27671
27672 # Neutralize VPATH when `$srcdir' = `.'.
27673 # Shell code in configure.ac might set extrasub.
27674 # FIXME: do we really want to maintain this feature?
27675 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27676 ac_sed_extra="$ac_vpsub
27677 $extrasub
27678 _ACEOF
27679 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27680 :t
27681 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27682 s|@configure_input@|$ac_sed_conf_input|;t t
27683 s&@top_builddir@&$ac_top_builddir_sub&;t t
27684 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27685 s&@srcdir@&$ac_srcdir&;t t
27686 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27687 s&@top_srcdir@&$ac_top_srcdir&;t t
27688 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27689 s&@builddir@&$ac_builddir&;t t
27690 s&@abs_builddir@&$ac_abs_builddir&;t t
27691 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27692 s&@INSTALL@&$ac_INSTALL&;t t
27693 s&@MKDIR_P@&$ac_MKDIR_P&;t t
27694 $ac_datarootdir_hack
27695 "
27696 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
27697 || as_fn_error "could not create $ac_file" "$LINENO" 5
27698
27699 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27700 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27701 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27703 which seems to be undefined. Please make sure it is defined." >&5
27704 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27705 which seems to be undefined. Please make sure it is defined." >&2;}
27706
27707 rm -f "$tmp/stdin"
27708 case $ac_file in
27709 -) cat "$tmp/out" && rm -f "$tmp/out";;
27710 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27711 esac \
27712 || as_fn_error "could not create $ac_file" "$LINENO" 5
27713 ;;
27714 :H)
27715 #
27716 # CONFIG_HEADER
27717 #
27718 if test x"$ac_file" != x-; then
27719 {
27720 $as_echo "/* $configure_input */" \
27721 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27722 } >"$tmp/config.h" \
27723 || as_fn_error "could not create $ac_file" "$LINENO" 5
27724 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27725 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27726 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27727 else
27728 rm -f "$ac_file"
27729 mv "$tmp/config.h" "$ac_file" \
27730 || as_fn_error "could not create $ac_file" "$LINENO" 5
27731 fi
27732 else
27733 $as_echo "/* $configure_input */" \
27734 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27735 || as_fn_error "could not create -" "$LINENO" 5
27736 fi
27737 # Compute "$ac_file"'s index in $config_headers.
27738 _am_arg="$ac_file"
27739 _am_stamp_count=1
27740 for _am_header in $config_headers :; do
27741 case $_am_header in
27742 $_am_arg | $_am_arg:* )
27743 break ;;
27744 * )
27745 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27746 esac
27747 done
27748 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
27749 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27750 X"$_am_arg" : 'X\(//\)[^/]' \| \
27751 X"$_am_arg" : 'X\(//\)$' \| \
27752 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
27753 $as_echo X"$_am_arg" |
27754 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27755 s//\1/
27756 q
27757 }
27758 /^X\(\/\/\)[^/].*/{
27759 s//\1/
27760 q
27761 }
27762 /^X\(\/\/\)$/{
27763 s//\1/
27764 q
27765 }
27766 /^X\(\/\).*/{
27767 s//\1/
27768 q
27769 }
27770 s/.*/./; q'`/stamp-h$_am_stamp_count
27771 ;;
27772
27773 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27774 $as_echo "$as_me: executing $ac_file commands" >&6;}
27775 ;;
27776 esac
27777
27778
27779 case $ac_file$ac_mode in
27780 "default-1":C)
27781 # Only add multilib support code if we just rebuilt the top-level
27782 # Makefile.
27783 case " $CONFIG_FILES " in
27784 *" Makefile "*)
27785 ac_file=Makefile . ${multi_basedir}/config-ml.in
27786 ;;
27787 esac ;;
27788 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
27789 # Autoconf 2.62 quotes --file arguments for eval, but not when files
27790 # are listed without --file. Let's play safe and only enable the eval
27791 # if we detect the quoting.
27792 case $CONFIG_FILES in
27793 *\'*) eval set x "$CONFIG_FILES" ;;
27794 *) set x $CONFIG_FILES ;;
27795 esac
27796 shift
27797 for mf
27798 do
27799 # Strip MF so we end up with the name of the file.
27800 mf=`echo "$mf" | sed -e 's/:.*$//'`
27801 # Check whether this is an Automake generated Makefile or not.
27802 # We used to match only the files named `Makefile.in', but
27803 # some people rename them; so instead we look at the file content.
27804 # Grep'ing the first line is not enough: some people post-process
27805 # each Makefile.in and add a new line on top of each file to say so.
27806 # Grep'ing the whole file is not good either: AIX grep has a line
27807 # limit of 2048, but all sed's we know have understand at least 4000.
27808 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
27809 dirpart=`$as_dirname -- "$mf" ||
27810 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27811 X"$mf" : 'X\(//\)[^/]' \| \
27812 X"$mf" : 'X\(//\)$' \| \
27813 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27814 $as_echo X"$mf" |
27815 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27816 s//\1/
27817 q
27818 }
27819 /^X\(\/\/\)[^/].*/{
27820 s//\1/
27821 q
27822 }
27823 /^X\(\/\/\)$/{
27824 s//\1/
27825 q
27826 }
27827 /^X\(\/\).*/{
27828 s//\1/
27829 q
27830 }
27831 s/.*/./; q'`
27832 else
27833 continue
27834 fi
27835 # Extract the definition of DEPDIR, am__include, and am__quote
27836 # from the Makefile without running `make'.
27837 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27838 test -z "$DEPDIR" && continue
27839 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27840 test -z "am__include" && continue
27841 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27842 # When using ansi2knr, U may be empty or an underscore; expand it
27843 U=`sed -n 's/^U = //p' < "$mf"`
27844 # Find all dependency output files, they are included files with
27845 # $(DEPDIR) in their names. We invoke sed twice because it is the
27846 # simplest approach to changing $(DEPDIR) to its actual value in the
27847 # expansion.
27848 for file in `sed -n "
27849 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27850 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27851 # Make sure the directory exists.
27852 test -f "$dirpart/$file" && continue
27853 fdir=`$as_dirname -- "$file" ||
27854 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27855 X"$file" : 'X\(//\)[^/]' \| \
27856 X"$file" : 'X\(//\)$' \| \
27857 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27858 $as_echo X"$file" |
27859 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27860 s//\1/
27861 q
27862 }
27863 /^X\(\/\/\)[^/].*/{
27864 s//\1/
27865 q
27866 }
27867 /^X\(\/\/\)$/{
27868 s//\1/
27869 q
27870 }
27871 /^X\(\/\).*/{
27872 s//\1/
27873 q
27874 }
27875 s/.*/./; q'`
27876 as_dir=$dirpart/$fdir; as_fn_mkdir_p
27877 # echo "creating $dirpart/$file"
27878 echo '# dummy' > "$dirpart/$file"
27879 done
27880 done
27881 }
27882 ;;
27883 "libtool":C)
27884
27885 # See if we are running on zsh, and set the options which allow our
27886 # commands through without removal of \ escapes.
27887 if test -n "${ZSH_VERSION+set}" ; then
27888 setopt NO_GLOB_SUBST
27889 fi
27890
27891 cfgfile="${ofile}T"
27892 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
27893 $RM "$cfgfile"
27894
27895 cat <<_LT_EOF >> "$cfgfile"
27896 #! $SHELL
27897
27898 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
27899 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
27900 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
27901 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
27902 #
27903 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
27904 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
27905 # Written by Gordon Matzigkeit, 1996
27906 #
27907 # This file is part of GNU Libtool.
27908 #
27909 # GNU Libtool is free software; you can redistribute it and/or
27910 # modify it under the terms of the GNU General Public License as
27911 # published by the Free Software Foundation; either version 2 of
27912 # the License, or (at your option) any later version.
27913 #
27914 # As a special exception to the GNU General Public License,
27915 # if you distribute this file as part of a program or library that
27916 # is built using GNU Libtool, you may include this file under the
27917 # same distribution terms that you use for the rest of that program.
27918 #
27919 # GNU Libtool is distributed in the hope that it will be useful,
27920 # but WITHOUT ANY WARRANTY; without even the implied warranty of
27921 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27922 # GNU General Public License for more details.
27923 #
27924 # You should have received a copy of the GNU General Public License
27925 # along with GNU Libtool; see the file COPYING. If not, a copy
27926 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
27927 # obtained by writing to the Free Software Foundation, Inc.,
27928 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
27929
27930
27931 # The names of the tagged configurations supported by this script.
27932 available_tags="FC "
27933
27934 # ### BEGIN LIBTOOL CONFIG
27935
27936 # Which release of libtool.m4 was used?
27937 macro_version=$macro_version
27938 macro_revision=$macro_revision
27939
27940 # Whether or not to build shared libraries.
27941 build_libtool_libs=$enable_shared
27942
27943 # Whether or not to build static libraries.
27944 build_old_libs=$enable_static
27945
27946 # What type of objects to build.
27947 pic_mode=$pic_mode
27948
27949 # Whether or not to optimize for fast installation.
27950 fast_install=$enable_fast_install
27951
27952 # Shell to use when invoking shell scripts.
27953 SHELL=$lt_SHELL
27954
27955 # An echo program that protects backslashes.
27956 ECHO=$lt_ECHO
27957
27958 # The host system.
27959 host_alias=$host_alias
27960 host=$host
27961 host_os=$host_os
27962
27963 # The build system.
27964 build_alias=$build_alias
27965 build=$build
27966 build_os=$build_os
27967
27968 # A sed program that does not truncate output.
27969 SED=$lt_SED
27970
27971 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
27972 Xsed="\$SED -e 1s/^X//"
27973
27974 # A grep program that handles long lines.
27975 GREP=$lt_GREP
27976
27977 # An ERE matcher.
27978 EGREP=$lt_EGREP
27979
27980 # A literal string matcher.
27981 FGREP=$lt_FGREP
27982
27983 # A BSD- or MS-compatible name lister.
27984 NM=$lt_NM
27985
27986 # Whether we need soft or hard links.
27987 LN_S=$lt_LN_S
27988
27989 # What is the maximum length of a command?
27990 max_cmd_len=$max_cmd_len
27991
27992 # Object file suffix (normally "o").
27993 objext=$ac_objext
27994
27995 # Executable file suffix (normally "").
27996 exeext=$exeext
27997
27998 # whether the shell understands "unset".
27999 lt_unset=$lt_unset
28000
28001 # turn spaces into newlines.
28002 SP2NL=$lt_lt_SP2NL
28003
28004 # turn newlines into spaces.
28005 NL2SP=$lt_lt_NL2SP
28006
28007 # An object symbol dumper.
28008 OBJDUMP=$lt_OBJDUMP
28009
28010 # Method to check whether dependent libraries are shared objects.
28011 deplibs_check_method=$lt_deplibs_check_method
28012
28013 # Command to use when deplibs_check_method == "file_magic".
28014 file_magic_cmd=$lt_file_magic_cmd
28015
28016 # The archiver.
28017 AR=$lt_AR
28018 AR_FLAGS=$lt_AR_FLAGS
28019
28020 # A symbol stripping program.
28021 STRIP=$lt_STRIP
28022
28023 # Commands used to install an old-style archive.
28024 RANLIB=$lt_RANLIB
28025 old_postinstall_cmds=$lt_old_postinstall_cmds
28026 old_postuninstall_cmds=$lt_old_postuninstall_cmds
28027
28028 # Whether to use a lock for old archive extraction.
28029 lock_old_archive_extraction=$lock_old_archive_extraction
28030
28031 # A C compiler.
28032 LTCC=$lt_CC
28033
28034 # LTCC compiler flags.
28035 LTCFLAGS=$lt_CFLAGS
28036
28037 # Take the output of nm and produce a listing of raw symbols and C names.
28038 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28039
28040 # Transform the output of nm in a proper C declaration.
28041 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28042
28043 # Transform the output of nm in a C name address pair.
28044 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28045
28046 # Transform the output of nm in a C name address pair when lib prefix is needed.
28047 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28048
28049 # The name of the directory that contains temporary libtool files.
28050 objdir=$objdir
28051
28052 # Used to examine libraries when file_magic_cmd begins with "file".
28053 MAGIC_CMD=$MAGIC_CMD
28054
28055 # Must we lock files when doing compilation?
28056 need_locks=$lt_need_locks
28057
28058 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28059 DSYMUTIL=$lt_DSYMUTIL
28060
28061 # Tool to change global to local symbols on Mac OS X.
28062 NMEDIT=$lt_NMEDIT
28063
28064 # Tool to manipulate fat objects and archives on Mac OS X.
28065 LIPO=$lt_LIPO
28066
28067 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
28068 OTOOL=$lt_OTOOL
28069
28070 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28071 OTOOL64=$lt_OTOOL64
28072
28073 # Old archive suffix (normally "a").
28074 libext=$libext
28075
28076 # Shared library suffix (normally ".so").
28077 shrext_cmds=$lt_shrext_cmds
28078
28079 # The commands to extract the exported symbol list from a shared archive.
28080 extract_expsyms_cmds=$lt_extract_expsyms_cmds
28081
28082 # Variables whose values should be saved in libtool wrapper scripts and
28083 # restored at link time.
28084 variables_saved_for_relink=$lt_variables_saved_for_relink
28085
28086 # Do we need the "lib" prefix for modules?
28087 need_lib_prefix=$need_lib_prefix
28088
28089 # Do we need a version for libraries?
28090 need_version=$need_version
28091
28092 # Library versioning type.
28093 version_type=$version_type
28094
28095 # Shared library runtime path variable.
28096 runpath_var=$runpath_var
28097
28098 # Shared library path variable.
28099 shlibpath_var=$shlibpath_var
28100
28101 # Is shlibpath searched before the hard-coded library search path?
28102 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28103
28104 # Format of library name prefix.
28105 libname_spec=$lt_libname_spec
28106
28107 # List of archive names. First name is the real one, the rest are links.
28108 # The last name is the one that the linker finds with -lNAME
28109 library_names_spec=$lt_library_names_spec
28110
28111 # The coded name of the library, if different from the real name.
28112 soname_spec=$lt_soname_spec
28113
28114 # Permission mode override for installation of shared libraries.
28115 install_override_mode=$lt_install_override_mode
28116
28117 # Command to use after installation of a shared archive.
28118 postinstall_cmds=$lt_postinstall_cmds
28119
28120 # Command to use after uninstallation of a shared archive.
28121 postuninstall_cmds=$lt_postuninstall_cmds
28122
28123 # Commands used to finish a libtool library installation in a directory.
28124 finish_cmds=$lt_finish_cmds
28125
28126 # As "finish_cmds", except a single script fragment to be evaled but
28127 # not shown.
28128 finish_eval=$lt_finish_eval
28129
28130 # Whether we should hardcode library paths into libraries.
28131 hardcode_into_libs=$hardcode_into_libs
28132
28133 # Compile-time system search path for libraries.
28134 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28135
28136 # Run-time system search path for libraries.
28137 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
28138
28139 # Whether dlopen is supported.
28140 dlopen_support=$enable_dlopen
28141
28142 # Whether dlopen of programs is supported.
28143 dlopen_self=$enable_dlopen_self
28144
28145 # Whether dlopen of statically linked programs is supported.
28146 dlopen_self_static=$enable_dlopen_self_static
28147
28148 # Commands to strip libraries.
28149 old_striplib=$lt_old_striplib
28150 striplib=$lt_striplib
28151
28152
28153 # The linker used to build libraries.
28154 LD=$lt_LD
28155
28156 # How to create reloadable object files.
28157 reload_flag=$lt_reload_flag
28158 reload_cmds=$lt_reload_cmds
28159
28160 # Commands used to build an old-style archive.
28161 old_archive_cmds=$lt_old_archive_cmds
28162
28163 # A language specific compiler.
28164 CC=$lt_compiler
28165
28166 # Is the compiler the GNU compiler?
28167 with_gcc=$GCC
28168
28169 # Compiler flag to turn off builtin functions.
28170 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28171
28172 # How to pass a linker flag through the compiler.
28173 wl=$lt_lt_prog_compiler_wl
28174
28175 # Additional compiler flags for building library objects.
28176 pic_flag=$lt_lt_prog_compiler_pic
28177
28178 # Compiler flag to prevent dynamic linking.
28179 link_static_flag=$lt_lt_prog_compiler_static
28180
28181 # Does compiler simultaneously support -c and -o options?
28182 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28183
28184 # Whether or not to add -lc for building shared libraries.
28185 build_libtool_need_lc=$archive_cmds_need_lc
28186
28187 # Whether or not to disallow shared libs when runtime libs are static.
28188 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28189
28190 # Compiler flag to allow reflexive dlopens.
28191 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28192
28193 # Compiler flag to generate shared objects directly from archives.
28194 whole_archive_flag_spec=$lt_whole_archive_flag_spec
28195
28196 # Whether the compiler copes with passing no objects directly.
28197 compiler_needs_object=$lt_compiler_needs_object
28198
28199 # Create an old-style archive from a shared archive.
28200 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28201
28202 # Create a temporary old-style archive to link instead of a shared archive.
28203 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28204
28205 # Commands used to build a shared archive.
28206 archive_cmds=$lt_archive_cmds
28207 archive_expsym_cmds=$lt_archive_expsym_cmds
28208
28209 # Commands used to build a loadable module if different from building
28210 # a shared archive.
28211 module_cmds=$lt_module_cmds
28212 module_expsym_cmds=$lt_module_expsym_cmds
28213
28214 # Whether we are building with GNU ld or not.
28215 with_gnu_ld=$lt_with_gnu_ld
28216
28217 # Flag that allows shared libraries with undefined symbols to be built.
28218 allow_undefined_flag=$lt_allow_undefined_flag
28219
28220 # Flag that enforces no undefined symbols.
28221 no_undefined_flag=$lt_no_undefined_flag
28222
28223 # Flag to hardcode \$libdir into a binary during linking.
28224 # This must work even if \$libdir does not exist
28225 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28226
28227 # If ld is used when linking, flag to hardcode \$libdir into a binary
28228 # during linking. This must work even if \$libdir does not exist.
28229 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
28230
28231 # Whether we need a single "-rpath" flag with a separated argument.
28232 hardcode_libdir_separator=$lt_hardcode_libdir_separator
28233
28234 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28235 # DIR into the resulting binary.
28236 hardcode_direct=$hardcode_direct
28237
28238 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28239 # DIR into the resulting binary and the resulting library dependency is
28240 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28241 # library is relocated.
28242 hardcode_direct_absolute=$hardcode_direct_absolute
28243
28244 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28245 # into the resulting binary.
28246 hardcode_minus_L=$hardcode_minus_L
28247
28248 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28249 # into the resulting binary.
28250 hardcode_shlibpath_var=$hardcode_shlibpath_var
28251
28252 # Set to "yes" if building a shared library automatically hardcodes DIR
28253 # into the library and all subsequent libraries and executables linked
28254 # against it.
28255 hardcode_automatic=$hardcode_automatic
28256
28257 # Set to yes if linker adds runtime paths of dependent libraries
28258 # to runtime path list.
28259 inherit_rpath=$inherit_rpath
28260
28261 # Whether libtool must link a program against all its dependency libraries.
28262 link_all_deplibs=$link_all_deplibs
28263
28264 # Fix the shell variable \$srcfile for the compiler.
28265 fix_srcfile_path=$lt_fix_srcfile_path
28266
28267 # Set to "yes" if exported symbols are required.
28268 always_export_symbols=$always_export_symbols
28269
28270 # The commands to list exported symbols.
28271 export_symbols_cmds=$lt_export_symbols_cmds
28272
28273 # Symbols that should not be listed in the preloaded symbols.
28274 exclude_expsyms=$lt_exclude_expsyms
28275
28276 # Symbols that must always be exported.
28277 include_expsyms=$lt_include_expsyms
28278
28279 # Commands necessary for linking programs (against libraries) with templates.
28280 prelink_cmds=$lt_prelink_cmds
28281
28282 # Specify filename containing input files.
28283 file_list_spec=$lt_file_list_spec
28284
28285 # How to hardcode a shared library path into an executable.
28286 hardcode_action=$hardcode_action
28287
28288 # The directories searched by this compiler when creating a shared library.
28289 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
28290
28291 # Dependencies to place before and after the objects being linked to
28292 # create a shared library.
28293 predep_objects=$lt_predep_objects
28294 postdep_objects=$lt_postdep_objects
28295 predeps=$lt_predeps
28296 postdeps=$lt_postdeps
28297
28298 # The library search path used internally by the compiler when linking
28299 # a shared library.
28300 compiler_lib_search_path=$lt_compiler_lib_search_path
28301
28302 # ### END LIBTOOL CONFIG
28303
28304 _LT_EOF
28305
28306 case $host_os in
28307 aix3*)
28308 cat <<\_LT_EOF >> "$cfgfile"
28309 # AIX sometimes has problems with the GCC collect2 program. For some
28310 # reason, if we set the COLLECT_NAMES environment variable, the problems
28311 # vanish in a puff of smoke.
28312 if test "X${COLLECT_NAMES+set}" != Xset; then
28313 COLLECT_NAMES=
28314 export COLLECT_NAMES
28315 fi
28316 _LT_EOF
28317 ;;
28318 esac
28319
28320
28321 ltmain="$ac_aux_dir/ltmain.sh"
28322
28323
28324 # We use sed instead of cat because bash on DJGPP gets confused if
28325 # if finds mixed CR/LF and LF-only lines. Since sed operates in
28326 # text mode, it properly converts lines to CR/LF. This bash problem
28327 # is reportedly fixed, but why not run on old versions too?
28328 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
28329 || (rm -f "$cfgfile"; exit 1)
28330
28331 case $xsi_shell in
28332 yes)
28333 cat << \_LT_EOF >> "$cfgfile"
28334
28335 # func_dirname file append nondir_replacement
28336 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
28337 # otherwise set result to NONDIR_REPLACEMENT.
28338 func_dirname ()
28339 {
28340 case ${1} in
28341 */*) func_dirname_result="${1%/*}${2}" ;;
28342 * ) func_dirname_result="${3}" ;;
28343 esac
28344 }
28345
28346 # func_basename file
28347 func_basename ()
28348 {
28349 func_basename_result="${1##*/}"
28350 }
28351
28352 # func_dirname_and_basename file append nondir_replacement
28353 # perform func_basename and func_dirname in a single function
28354 # call:
28355 # dirname: Compute the dirname of FILE. If nonempty,
28356 # add APPEND to the result, otherwise set result
28357 # to NONDIR_REPLACEMENT.
28358 # value returned in "$func_dirname_result"
28359 # basename: Compute filename of FILE.
28360 # value retuned in "$func_basename_result"
28361 # Implementation must be kept synchronized with func_dirname
28362 # and func_basename. For efficiency, we do not delegate to
28363 # those functions but instead duplicate the functionality here.
28364 func_dirname_and_basename ()
28365 {
28366 case ${1} in
28367 */*) func_dirname_result="${1%/*}${2}" ;;
28368 * ) func_dirname_result="${3}" ;;
28369 esac
28370 func_basename_result="${1##*/}"
28371 }
28372
28373 # func_stripname prefix suffix name
28374 # strip PREFIX and SUFFIX off of NAME.
28375 # PREFIX and SUFFIX must not contain globbing or regex special
28376 # characters, hashes, percent signs, but SUFFIX may contain a leading
28377 # dot (in which case that matches only a dot).
28378 func_stripname ()
28379 {
28380 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
28381 # positional parameters, so assign one to ordinary parameter first.
28382 func_stripname_result=${3}
28383 func_stripname_result=${func_stripname_result#"${1}"}
28384 func_stripname_result=${func_stripname_result%"${2}"}
28385 }
28386
28387 # func_opt_split
28388 func_opt_split ()
28389 {
28390 func_opt_split_opt=${1%%=*}
28391 func_opt_split_arg=${1#*=}
28392 }
28393
28394 # func_lo2o object
28395 func_lo2o ()
28396 {
28397 case ${1} in
28398 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
28399 *) func_lo2o_result=${1} ;;
28400 esac
28401 }
28402
28403 # func_xform libobj-or-source
28404 func_xform ()
28405 {
28406 func_xform_result=${1%.*}.lo
28407 }
28408
28409 # func_arith arithmetic-term...
28410 func_arith ()
28411 {
28412 func_arith_result=$(( $* ))
28413 }
28414
28415 # func_len string
28416 # STRING may not start with a hyphen.
28417 func_len ()
28418 {
28419 func_len_result=${#1}
28420 }
28421
28422 _LT_EOF
28423 ;;
28424 *) # Bourne compatible functions.
28425 cat << \_LT_EOF >> "$cfgfile"
28426
28427 # func_dirname file append nondir_replacement
28428 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
28429 # otherwise set result to NONDIR_REPLACEMENT.
28430 func_dirname ()
28431 {
28432 # Extract subdirectory from the argument.
28433 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
28434 if test "X$func_dirname_result" = "X${1}"; then
28435 func_dirname_result="${3}"
28436 else
28437 func_dirname_result="$func_dirname_result${2}"
28438 fi
28439 }
28440
28441 # func_basename file
28442 func_basename ()
28443 {
28444 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
28445 }
28446
28447
28448 # func_stripname prefix suffix name
28449 # strip PREFIX and SUFFIX off of NAME.
28450 # PREFIX and SUFFIX must not contain globbing or regex special
28451 # characters, hashes, percent signs, but SUFFIX may contain a leading
28452 # dot (in which case that matches only a dot).
28453 # func_strip_suffix prefix name
28454 func_stripname ()
28455 {
28456 case ${2} in
28457 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
28458 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
28459 esac
28460 }
28461
28462 # sed scripts:
28463 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
28464 my_sed_long_arg='1s/^-[^=]*=//'
28465
28466 # func_opt_split
28467 func_opt_split ()
28468 {
28469 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
28470 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
28471 }
28472
28473 # func_lo2o object
28474 func_lo2o ()
28475 {
28476 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
28477 }
28478
28479 # func_xform libobj-or-source
28480 func_xform ()
28481 {
28482 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
28483 }
28484
28485 # func_arith arithmetic-term...
28486 func_arith ()
28487 {
28488 func_arith_result=`expr "$@"`
28489 }
28490
28491 # func_len string
28492 # STRING may not start with a hyphen.
28493 func_len ()
28494 {
28495 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
28496 }
28497
28498 _LT_EOF
28499 esac
28500
28501 case $lt_shell_append in
28502 yes)
28503 cat << \_LT_EOF >> "$cfgfile"
28504
28505 # func_append var value
28506 # Append VALUE to the end of shell variable VAR.
28507 func_append ()
28508 {
28509 eval "$1+=\$2"
28510 }
28511 _LT_EOF
28512 ;;
28513 *)
28514 cat << \_LT_EOF >> "$cfgfile"
28515
28516 # func_append var value
28517 # Append VALUE to the end of shell variable VAR.
28518 func_append ()
28519 {
28520 eval "$1=\$$1\$2"
28521 }
28522
28523 _LT_EOF
28524 ;;
28525 esac
28526
28527
28528 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
28529 || (rm -f "$cfgfile"; exit 1)
28530
28531 mv -f "$cfgfile" "$ofile" ||
28532 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
28533 chmod +x "$ofile"
28534
28535
28536 cat <<_LT_EOF >> "$ofile"
28537
28538 # ### BEGIN LIBTOOL TAG CONFIG: FC
28539
28540 # The linker used to build libraries.
28541 LD=$lt_LD_FC
28542
28543 # How to create reloadable object files.
28544 reload_flag=$lt_reload_flag_FC
28545 reload_cmds=$lt_reload_cmds_FC
28546
28547 # Commands used to build an old-style archive.
28548 old_archive_cmds=$lt_old_archive_cmds_FC
28549
28550 # A language specific compiler.
28551 CC=$lt_compiler_FC
28552
28553 # Is the compiler the GNU compiler?
28554 with_gcc=$GCC_FC
28555
28556 # Compiler flag to turn off builtin functions.
28557 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
28558
28559 # How to pass a linker flag through the compiler.
28560 wl=$lt_lt_prog_compiler_wl_FC
28561
28562 # Additional compiler flags for building library objects.
28563 pic_flag=$lt_lt_prog_compiler_pic_FC
28564
28565 # Compiler flag to prevent dynamic linking.
28566 link_static_flag=$lt_lt_prog_compiler_static_FC
28567
28568 # Does compiler simultaneously support -c and -o options?
28569 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
28570
28571 # Whether or not to add -lc for building shared libraries.
28572 build_libtool_need_lc=$archive_cmds_need_lc_FC
28573
28574 # Whether or not to disallow shared libs when runtime libs are static.
28575 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
28576
28577 # Compiler flag to allow reflexive dlopens.
28578 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
28579
28580 # Compiler flag to generate shared objects directly from archives.
28581 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
28582
28583 # Whether the compiler copes with passing no objects directly.
28584 compiler_needs_object=$lt_compiler_needs_object_FC
28585
28586 # Create an old-style archive from a shared archive.
28587 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
28588
28589 # Create a temporary old-style archive to link instead of a shared archive.
28590 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
28591
28592 # Commands used to build a shared archive.
28593 archive_cmds=$lt_archive_cmds_FC
28594 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
28595
28596 # Commands used to build a loadable module if different from building
28597 # a shared archive.
28598 module_cmds=$lt_module_cmds_FC
28599 module_expsym_cmds=$lt_module_expsym_cmds_FC
28600
28601 # Whether we are building with GNU ld or not.
28602 with_gnu_ld=$lt_with_gnu_ld_FC
28603
28604 # Flag that allows shared libraries with undefined symbols to be built.
28605 allow_undefined_flag=$lt_allow_undefined_flag_FC
28606
28607 # Flag that enforces no undefined symbols.
28608 no_undefined_flag=$lt_no_undefined_flag_FC
28609
28610 # Flag to hardcode \$libdir into a binary during linking.
28611 # This must work even if \$libdir does not exist
28612 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
28613
28614 # If ld is used when linking, flag to hardcode \$libdir into a binary
28615 # during linking. This must work even if \$libdir does not exist.
28616 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
28617
28618 # Whether we need a single "-rpath" flag with a separated argument.
28619 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
28620
28621 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28622 # DIR into the resulting binary.
28623 hardcode_direct=$hardcode_direct_FC
28624
28625 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28626 # DIR into the resulting binary and the resulting library dependency is
28627 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28628 # library is relocated.
28629 hardcode_direct_absolute=$hardcode_direct_absolute_FC
28630
28631 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28632 # into the resulting binary.
28633 hardcode_minus_L=$hardcode_minus_L_FC
28634
28635 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28636 # into the resulting binary.
28637 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
28638
28639 # Set to "yes" if building a shared library automatically hardcodes DIR
28640 # into the library and all subsequent libraries and executables linked
28641 # against it.
28642 hardcode_automatic=$hardcode_automatic_FC
28643
28644 # Set to yes if linker adds runtime paths of dependent libraries
28645 # to runtime path list.
28646 inherit_rpath=$inherit_rpath_FC
28647
28648 # Whether libtool must link a program against all its dependency libraries.
28649 link_all_deplibs=$link_all_deplibs_FC
28650
28651 # Fix the shell variable \$srcfile for the compiler.
28652 fix_srcfile_path=$lt_fix_srcfile_path_FC
28653
28654 # Set to "yes" if exported symbols are required.
28655 always_export_symbols=$always_export_symbols_FC
28656
28657 # The commands to list exported symbols.
28658 export_symbols_cmds=$lt_export_symbols_cmds_FC
28659
28660 # Symbols that should not be listed in the preloaded symbols.
28661 exclude_expsyms=$lt_exclude_expsyms_FC
28662
28663 # Symbols that must always be exported.
28664 include_expsyms=$lt_include_expsyms_FC
28665
28666 # Commands necessary for linking programs (against libraries) with templates.
28667 prelink_cmds=$lt_prelink_cmds_FC
28668
28669 # Specify filename containing input files.
28670 file_list_spec=$lt_file_list_spec_FC
28671
28672 # How to hardcode a shared library path into an executable.
28673 hardcode_action=$hardcode_action_FC
28674
28675 # The directories searched by this compiler when creating a shared library.
28676 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
28677
28678 # Dependencies to place before and after the objects being linked to
28679 # create a shared library.
28680 predep_objects=$lt_predep_objects_FC
28681 postdep_objects=$lt_postdep_objects_FC
28682 predeps=$lt_predeps_FC
28683 postdeps=$lt_postdeps_FC
28684
28685 # The library search path used internally by the compiler when linking
28686 # a shared library.
28687 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
28688
28689 # ### END LIBTOOL TAG CONFIG: FC
28690 _LT_EOF
28691
28692 ;;
28693 "gstdint.h":C)
28694 if test "$GCC" = yes; then
28695 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
28696 else
28697 echo "/* generated for $CC */" > tmp-stdint.h
28698 fi
28699
28700 sed 's/^ *//' >> tmp-stdint.h <<EOF
28701
28702 #ifndef GCC_GENERATED_STDINT_H
28703 #define GCC_GENERATED_STDINT_H 1
28704
28705 #include <sys/types.h>
28706 EOF
28707
28708 if test "$acx_cv_header_stdint" != stdint.h; then
28709 echo "#include <stddef.h>" >> tmp-stdint.h
28710 fi
28711 if test "$acx_cv_header_stdint" != stddef.h; then
28712 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
28713 fi
28714
28715 sed 's/^ *//' >> tmp-stdint.h <<EOF
28716 /* glibc uses these symbols as guards to prevent redefinitions. */
28717 #ifdef __int8_t_defined
28718 #define _INT8_T
28719 #define _INT16_T
28720 #define _INT32_T
28721 #endif
28722 #ifdef __uint32_t_defined
28723 #define _UINT32_T
28724 #endif
28725
28726 EOF
28727
28728 # ----------------- done header, emit basic int types -------------
28729 if test "$acx_cv_header_stdint" = stddef.h; then
28730 sed 's/^ *//' >> tmp-stdint.h <<EOF
28731
28732 #ifndef _UINT8_T
28733 #define _UINT8_T
28734 #ifndef __uint8_t_defined
28735 #define __uint8_t_defined
28736 #ifndef uint8_t
28737 typedef unsigned $acx_cv_type_int8_t uint8_t;
28738 #endif
28739 #endif
28740 #endif
28741
28742 #ifndef _UINT16_T
28743 #define _UINT16_T
28744 #ifndef __uint16_t_defined
28745 #define __uint16_t_defined
28746 #ifndef uint16_t
28747 typedef unsigned $acx_cv_type_int16_t uint16_t;
28748 #endif
28749 #endif
28750 #endif
28751
28752 #ifndef _UINT32_T
28753 #define _UINT32_T
28754 #ifndef __uint32_t_defined
28755 #define __uint32_t_defined
28756 #ifndef uint32_t
28757 typedef unsigned $acx_cv_type_int32_t uint32_t;
28758 #endif
28759 #endif
28760 #endif
28761
28762 #ifndef _INT8_T
28763 #define _INT8_T
28764 #ifndef __int8_t_defined
28765 #define __int8_t_defined
28766 #ifndef int8_t
28767 typedef $acx_cv_type_int8_t int8_t;
28768 #endif
28769 #endif
28770 #endif
28771
28772 #ifndef _INT16_T
28773 #define _INT16_T
28774 #ifndef __int16_t_defined
28775 #define __int16_t_defined
28776 #ifndef int16_t
28777 typedef $acx_cv_type_int16_t int16_t;
28778 #endif
28779 #endif
28780 #endif
28781
28782 #ifndef _INT32_T
28783 #define _INT32_T
28784 #ifndef __int32_t_defined
28785 #define __int32_t_defined
28786 #ifndef int32_t
28787 typedef $acx_cv_type_int32_t int32_t;
28788 #endif
28789 #endif
28790 #endif
28791 EOF
28792 elif test "$ac_cv_type_u_int32_t" = yes; then
28793 sed 's/^ *//' >> tmp-stdint.h <<EOF
28794
28795 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
28796 #ifndef _INT8_T
28797 #define _INT8_T
28798 #endif
28799 #ifndef _INT16_T
28800 #define _INT16_T
28801 #endif
28802 #ifndef _INT32_T
28803 #define _INT32_T
28804 #endif
28805
28806 #ifndef _UINT8_T
28807 #define _UINT8_T
28808 #ifndef __uint8_t_defined
28809 #define __uint8_t_defined
28810 #ifndef uint8_t
28811 typedef u_int8_t uint8_t;
28812 #endif
28813 #endif
28814 #endif
28815
28816 #ifndef _UINT16_T
28817 #define _UINT16_T
28818 #ifndef __uint16_t_defined
28819 #define __uint16_t_defined
28820 #ifndef uint16_t
28821 typedef u_int16_t uint16_t;
28822 #endif
28823 #endif
28824 #endif
28825
28826 #ifndef _UINT32_T
28827 #define _UINT32_T
28828 #ifndef __uint32_t_defined
28829 #define __uint32_t_defined
28830 #ifndef uint32_t
28831 typedef u_int32_t uint32_t;
28832 #endif
28833 #endif
28834 #endif
28835 EOF
28836 else
28837 sed 's/^ *//' >> tmp-stdint.h <<EOF
28838
28839 /* Some systems have guard macros to prevent redefinitions, define them. */
28840 #ifndef _INT8_T
28841 #define _INT8_T
28842 #endif
28843 #ifndef _INT16_T
28844 #define _INT16_T
28845 #endif
28846 #ifndef _INT32_T
28847 #define _INT32_T
28848 #endif
28849 #ifndef _UINT8_T
28850 #define _UINT8_T
28851 #endif
28852 #ifndef _UINT16_T
28853 #define _UINT16_T
28854 #endif
28855 #ifndef _UINT32_T
28856 #define _UINT32_T
28857 #endif
28858 EOF
28859 fi
28860
28861 # ------------- done basic int types, emit int64_t types ------------
28862 if test "$ac_cv_type_uint64_t" = yes; then
28863 sed 's/^ *//' >> tmp-stdint.h <<EOF
28864
28865 /* system headers have good uint64_t and int64_t */
28866 #ifndef _INT64_T
28867 #define _INT64_T
28868 #endif
28869 #ifndef _UINT64_T
28870 #define _UINT64_T
28871 #endif
28872 EOF
28873 elif test "$ac_cv_type_u_int64_t" = yes; then
28874 sed 's/^ *//' >> tmp-stdint.h <<EOF
28875
28876 /* system headers have an u_int64_t (and int64_t) */
28877 #ifndef _INT64_T
28878 #define _INT64_T
28879 #endif
28880 #ifndef _UINT64_T
28881 #define _UINT64_T
28882 #ifndef __uint64_t_defined
28883 #define __uint64_t_defined
28884 #ifndef uint64_t
28885 typedef u_int64_t uint64_t;
28886 #endif
28887 #endif
28888 #endif
28889 EOF
28890 elif test -n "$acx_cv_type_int64_t"; then
28891 sed 's/^ *//' >> tmp-stdint.h <<EOF
28892
28893 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
28894 #ifndef _INT64_T
28895 #define _INT64_T
28896 #ifndef int64_t
28897 typedef $acx_cv_type_int64_t int64_t;
28898 #endif
28899 #endif
28900 #ifndef _UINT64_T
28901 #define _UINT64_T
28902 #ifndef __uint64_t_defined
28903 #define __uint64_t_defined
28904 #ifndef uint64_t
28905 typedef unsigned $acx_cv_type_int64_t uint64_t;
28906 #endif
28907 #endif
28908 #endif
28909 EOF
28910 else
28911 sed 's/^ *//' >> tmp-stdint.h <<EOF
28912
28913 /* some common heuristics for int64_t, using compiler-specific tests */
28914 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
28915 #ifndef _INT64_T
28916 #define _INT64_T
28917 #ifndef __int64_t_defined
28918 #ifndef int64_t
28919 typedef long long int64_t;
28920 #endif
28921 #endif
28922 #endif
28923 #ifndef _UINT64_T
28924 #define _UINT64_T
28925 #ifndef uint64_t
28926 typedef unsigned long long uint64_t;
28927 #endif
28928 #endif
28929
28930 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
28931 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
28932 does not implement __extension__. But that compiler doesn't define
28933 __GNUC_MINOR__. */
28934 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
28935 # define __extension__
28936 # endif
28937
28938 # ifndef _INT64_T
28939 # define _INT64_T
28940 # ifndef int64_t
28941 __extension__ typedef long long int64_t;
28942 # endif
28943 # endif
28944 # ifndef _UINT64_T
28945 # define _UINT64_T
28946 # ifndef uint64_t
28947 __extension__ typedef unsigned long long uint64_t;
28948 # endif
28949 # endif
28950
28951 #elif !defined __STRICT_ANSI__
28952 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
28953
28954 # ifndef _INT64_T
28955 # define _INT64_T
28956 # ifndef int64_t
28957 typedef __int64 int64_t;
28958 # endif
28959 # endif
28960 # ifndef _UINT64_T
28961 # define _UINT64_T
28962 # ifndef uint64_t
28963 typedef unsigned __int64 uint64_t;
28964 # endif
28965 # endif
28966 # endif /* compiler */
28967
28968 #endif /* ANSI version */
28969 EOF
28970 fi
28971
28972 # ------------- done int64_t types, emit intptr types ------------
28973 if test "$ac_cv_type_uintptr_t" != yes; then
28974 sed 's/^ *//' >> tmp-stdint.h <<EOF
28975
28976 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
28977 #ifndef __uintptr_t_defined
28978 #ifndef uintptr_t
28979 typedef u$acx_cv_type_intptr_t uintptr_t;
28980 #endif
28981 #endif
28982 #ifndef __intptr_t_defined
28983 #ifndef intptr_t
28984 typedef $acx_cv_type_intptr_t intptr_t;
28985 #endif
28986 #endif
28987 EOF
28988 fi
28989
28990 # ------------- done intptr types, emit int_least types ------------
28991 if test "$ac_cv_type_int_least32_t" != yes; then
28992 sed 's/^ *//' >> tmp-stdint.h <<EOF
28993
28994 /* Define int_least types */
28995 typedef int8_t int_least8_t;
28996 typedef int16_t int_least16_t;
28997 typedef int32_t int_least32_t;
28998 #ifdef _INT64_T
28999 typedef int64_t int_least64_t;
29000 #endif
29001
29002 typedef uint8_t uint_least8_t;
29003 typedef uint16_t uint_least16_t;
29004 typedef uint32_t uint_least32_t;
29005 #ifdef _UINT64_T
29006 typedef uint64_t uint_least64_t;
29007 #endif
29008 EOF
29009 fi
29010
29011 # ------------- done intptr types, emit int_fast types ------------
29012 if test "$ac_cv_type_int_fast32_t" != yes; then
29013 sed 's/^ *//' >> tmp-stdint.h <<EOF
29014
29015 /* Define int_fast types. short is often slow */
29016 typedef int8_t int_fast8_t;
29017 typedef int int_fast16_t;
29018 typedef int32_t int_fast32_t;
29019 #ifdef _INT64_T
29020 typedef int64_t int_fast64_t;
29021 #endif
29022
29023 typedef uint8_t uint_fast8_t;
29024 typedef unsigned int uint_fast16_t;
29025 typedef uint32_t uint_fast32_t;
29026 #ifdef _UINT64_T
29027 typedef uint64_t uint_fast64_t;
29028 #endif
29029 EOF
29030 fi
29031
29032 if test "$ac_cv_type_uintmax_t" != yes; then
29033 sed 's/^ *//' >> tmp-stdint.h <<EOF
29034
29035 /* Define intmax based on what we found */
29036 #ifndef intmax_t
29037 #ifdef _INT64_T
29038 typedef int64_t intmax_t;
29039 #else
29040 typedef long intmax_t;
29041 #endif
29042 #endif
29043 #ifndef uintmax_t
29044 #ifdef _UINT64_T
29045 typedef uint64_t uintmax_t;
29046 #else
29047 typedef unsigned long uintmax_t;
29048 #endif
29049 #endif
29050 EOF
29051 fi
29052
29053 sed 's/^ *//' >> tmp-stdint.h <<EOF
29054
29055 #endif /* GCC_GENERATED_STDINT_H */
29056 EOF
29057
29058 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
29059 rm -f tmp-stdint.h
29060 else
29061 mv -f tmp-stdint.h gstdint.h
29062 fi
29063
29064 ;;
29065
29066 esac
29067 done # for ac_tag
29068
29069
29070 as_fn_exit 0
29071 _ACEOF
29072 ac_clean_files=$ac_clean_files_save
29073
29074 test $ac_write_fail = 0 ||
29075 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29076
29077
29078 # configure is writing to config.log, and then calls config.status.
29079 # config.status does its own redirection, appending to config.log.
29080 # Unfortunately, on DOS this fails, as config.log is still kept open
29081 # by configure, so config.status won't be able to write to it; its
29082 # output is simply discarded. So we exec the FD to /dev/null,
29083 # effectively closing config.log, so it can be properly (re)opened and
29084 # appended to by config.status. When coming back to configure, we
29085 # need to make the FD available again.
29086 if test "$no_create" != yes; then
29087 ac_cs_success=:
29088 ac_config_status_args=
29089 test "$silent" = yes &&
29090 ac_config_status_args="$ac_config_status_args --quiet"
29091 exec 5>/dev/null
29092 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29093 exec 5>>config.log
29094 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29095 # would make configure fail if this is the last instruction.
29096 $ac_cs_success || as_fn_exit $?
29097 fi
29098 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29100 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
29101 fi
29102
This page took 1.360203 seconds and 6 git commands to generate.