Use -z ignore instead of --as-needed on Solaris
[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_c_werror_flag=
604 ac_subst_vars='am__EXEEXT_FALSE
605 am__EXEEXT_TRUE
606 LTLIBOBJS
607 LIBOBJS
608 IEEE_FLAGS
609 FPU_HOST_HEADER
610 LIBGFOR_BUILD_QUAD_FALSE
611 LIBGFOR_BUILD_QUAD_TRUE
612 LIBQUADINCLUDE
613 LIBQUADLIB_DEP
614 LIBQUADLIB
615 LIBQUADSPEC
616 extra_ldflags_libgfortran
617 ac_ct_FC
618 FCFLAGS
619 FC
620 enable_static
621 enable_shared
622 lt_host_flags
623 OTOOL64
624 OTOOL
625 LIPO
626 NMEDIT
627 DSYMUTIL
628 OBJDUMP
629 LN_S
630 NM
631 ac_ct_DUMPBIN
632 DUMPBIN
633 LD
634 FGREP
635 SED
636 LIBTOOL
637 RANLIB
638 AR
639 AS
640 SECTION_FLAGS
641 LIBGFOR_USE_SYMVER_SUN_FALSE
642 LIBGFOR_USE_SYMVER_SUN_TRUE
643 LIBGFOR_USE_SYMVER_GNU_FALSE
644 LIBGFOR_USE_SYMVER_GNU_TRUE
645 LIBGFOR_USE_SYMVER_FALSE
646 LIBGFOR_USE_SYMVER_TRUE
647 AM_CFLAGS
648 AM_FCFLAGS
649 toolexeclibdir
650 toolexecdir
651 EGREP
652 GREP
653 CPP
654 am__fastdepCC_FALSE
655 am__fastdepCC_TRUE
656 CCDEPMODE
657 am__nodep
658 AMDEPBACKSLASH
659 AMDEP_FALSE
660 AMDEP_TRUE
661 am__quote
662 am__include
663 DEPDIR
664 OBJEXT
665 EXEEXT
666 ac_ct_CC
667 CPPFLAGS
668 LDFLAGS
669 CFLAGS
670 CC
671 multi_basedir
672 MAINT
673 MAINTAINER_MODE_FALSE
674 MAINTAINER_MODE_TRUE
675 am__untar
676 am__tar
677 AMTAR
678 am__leading_dot
679 SET_MAKE
680 AWK
681 mkdir_p
682 MKDIR_P
683 INSTALL_STRIP_PROGRAM
684 STRIP
685 install_sh
686 MAKEINFO
687 AUTOHEADER
688 AUTOMAKE
689 AUTOCONF
690 ACLOCAL
691 VERSION
692 PACKAGE
693 CYGPATH_W
694 am__isrc
695 INSTALL_DATA
696 INSTALL_SCRIPT
697 INSTALL_PROGRAM
698 target_noncanonical
699 target_os
700 target_vendor
701 target_cpu
702 target
703 host_os
704 host_vendor
705 host_cpu
706 host
707 onestep
708 onestep_FALSE
709 onestep_TRUE
710 target_subdir
711 host_subdir
712 build_subdir
713 build_libsubdir
714 build_os
715 build_vendor
716 build_cpu
717 build
718 target_alias
719 host_alias
720 build_alias
721 LIBS
722 ECHO_T
723 ECHO_N
724 ECHO_C
725 DEFS
726 mandir
727 localedir
728 libdir
729 psdir
730 pdfdir
731 dvidir
732 htmldir
733 infodir
734 docdir
735 oldincludedir
736 includedir
737 localstatedir
738 sharedstatedir
739 sysconfdir
740 datadir
741 datarootdir
742 libexecdir
743 sbindir
744 bindir
745 program_transform_name
746 prefix
747 exec_prefix
748 PACKAGE_URL
749 PACKAGE_BUGREPORT
750 PACKAGE_STRING
751 PACKAGE_VERSION
752 PACKAGE_TARNAME
753 PACKAGE_NAME
754 PATH_SEPARATOR
755 SHELL'
756 ac_subst_files=''
757 ac_user_opts='
758 enable_option_checking
759 with_build_libsubdir
760 enable_version_specific_runtime_libs
761 enable_intermodule
762 enable_maintainer_mode
763 enable_multilib
764 enable_dependency_tracking
765 enable_symvers
766 enable_shared
767 enable_static
768 with_pic
769 enable_fast_install
770 with_gnu_ld
771 enable_libtool_lock
772 enable_largefile
773 enable_libquadmath_support
774 with_system_libunwind
775 '
776 ac_precious_vars='build_alias
777 host_alias
778 target_alias
779 CC
780 CFLAGS
781 LDFLAGS
782 LIBS
783 CPPFLAGS
784 CPP
785 FC
786 FCFLAGS'
787
788
789 # Initialize some variables set by options.
790 ac_init_help=
791 ac_init_version=false
792 ac_unrecognized_opts=
793 ac_unrecognized_sep=
794 # The variables have the same names as the options, with
795 # dashes changed to underlines.
796 cache_file=/dev/null
797 exec_prefix=NONE
798 no_create=
799 no_recursion=
800 prefix=NONE
801 program_prefix=NONE
802 program_suffix=NONE
803 program_transform_name=s,x,x,
804 silent=
805 site=
806 srcdir=
807 verbose=
808 x_includes=NONE
809 x_libraries=NONE
810
811 # Installation directory options.
812 # These are left unexpanded so users can "make install exec_prefix=/foo"
813 # and all the variables that are supposed to be based on exec_prefix
814 # by default will actually change.
815 # Use braces instead of parens because sh, perl, etc. also accept them.
816 # (The list follows the same order as the GNU Coding Standards.)
817 bindir='${exec_prefix}/bin'
818 sbindir='${exec_prefix}/sbin'
819 libexecdir='${exec_prefix}/libexec'
820 datarootdir='${prefix}/share'
821 datadir='${datarootdir}'
822 sysconfdir='${prefix}/etc'
823 sharedstatedir='${prefix}/com'
824 localstatedir='${prefix}/var'
825 includedir='${prefix}/include'
826 oldincludedir='/usr/include'
827 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
828 infodir='${datarootdir}/info'
829 htmldir='${docdir}'
830 dvidir='${docdir}'
831 pdfdir='${docdir}'
832 psdir='${docdir}'
833 libdir='${exec_prefix}/lib'
834 localedir='${datarootdir}/locale'
835 mandir='${datarootdir}/man'
836
837 ac_prev=
838 ac_dashdash=
839 for ac_option
840 do
841 # If the previous option needs an argument, assign it.
842 if test -n "$ac_prev"; then
843 eval $ac_prev=\$ac_option
844 ac_prev=
845 continue
846 fi
847
848 case $ac_option in
849 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
850 *) ac_optarg=yes ;;
851 esac
852
853 # Accept the important Cygnus configure options, so we can diagnose typos.
854
855 case $ac_dashdash$ac_option in
856 --)
857 ac_dashdash=yes ;;
858
859 -bindir | --bindir | --bindi | --bind | --bin | --bi)
860 ac_prev=bindir ;;
861 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
862 bindir=$ac_optarg ;;
863
864 -build | --build | --buil | --bui | --bu)
865 ac_prev=build_alias ;;
866 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
867 build_alias=$ac_optarg ;;
868
869 -cache-file | --cache-file | --cache-fil | --cache-fi \
870 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
871 ac_prev=cache_file ;;
872 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
873 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
874 cache_file=$ac_optarg ;;
875
876 --config-cache | -C)
877 cache_file=config.cache ;;
878
879 -datadir | --datadir | --datadi | --datad)
880 ac_prev=datadir ;;
881 -datadir=* | --datadir=* | --datadi=* | --datad=*)
882 datadir=$ac_optarg ;;
883
884 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
885 | --dataroo | --dataro | --datar)
886 ac_prev=datarootdir ;;
887 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
888 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
889 datarootdir=$ac_optarg ;;
890
891 -disable-* | --disable-*)
892 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
893 # Reject names that are not valid shell variable names.
894 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
895 as_fn_error "invalid feature name: $ac_useropt"
896 ac_useropt_orig=$ac_useropt
897 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
898 case $ac_user_opts in
899 *"
900 "enable_$ac_useropt"
901 "*) ;;
902 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
903 ac_unrecognized_sep=', ';;
904 esac
905 eval enable_$ac_useropt=no ;;
906
907 -docdir | --docdir | --docdi | --doc | --do)
908 ac_prev=docdir ;;
909 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
910 docdir=$ac_optarg ;;
911
912 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
913 ac_prev=dvidir ;;
914 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
915 dvidir=$ac_optarg ;;
916
917 -enable-* | --enable-*)
918 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
919 # Reject names that are not valid shell variable names.
920 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
921 as_fn_error "invalid feature name: $ac_useropt"
922 ac_useropt_orig=$ac_useropt
923 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924 case $ac_user_opts in
925 *"
926 "enable_$ac_useropt"
927 "*) ;;
928 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
929 ac_unrecognized_sep=', ';;
930 esac
931 eval enable_$ac_useropt=\$ac_optarg ;;
932
933 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
934 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
935 | --exec | --exe | --ex)
936 ac_prev=exec_prefix ;;
937 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
938 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
939 | --exec=* | --exe=* | --ex=*)
940 exec_prefix=$ac_optarg ;;
941
942 -gas | --gas | --ga | --g)
943 # Obsolete; use --with-gas.
944 with_gas=yes ;;
945
946 -help | --help | --hel | --he | -h)
947 ac_init_help=long ;;
948 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
949 ac_init_help=recursive ;;
950 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
951 ac_init_help=short ;;
952
953 -host | --host | --hos | --ho)
954 ac_prev=host_alias ;;
955 -host=* | --host=* | --hos=* | --ho=*)
956 host_alias=$ac_optarg ;;
957
958 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
959 ac_prev=htmldir ;;
960 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
961 | --ht=*)
962 htmldir=$ac_optarg ;;
963
964 -includedir | --includedir | --includedi | --included | --include \
965 | --includ | --inclu | --incl | --inc)
966 ac_prev=includedir ;;
967 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
968 | --includ=* | --inclu=* | --incl=* | --inc=*)
969 includedir=$ac_optarg ;;
970
971 -infodir | --infodir | --infodi | --infod | --info | --inf)
972 ac_prev=infodir ;;
973 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
974 infodir=$ac_optarg ;;
975
976 -libdir | --libdir | --libdi | --libd)
977 ac_prev=libdir ;;
978 -libdir=* | --libdir=* | --libdi=* | --libd=*)
979 libdir=$ac_optarg ;;
980
981 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
982 | --libexe | --libex | --libe)
983 ac_prev=libexecdir ;;
984 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
985 | --libexe=* | --libex=* | --libe=*)
986 libexecdir=$ac_optarg ;;
987
988 -localedir | --localedir | --localedi | --localed | --locale)
989 ac_prev=localedir ;;
990 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
991 localedir=$ac_optarg ;;
992
993 -localstatedir | --localstatedir | --localstatedi | --localstated \
994 | --localstate | --localstat | --localsta | --localst | --locals)
995 ac_prev=localstatedir ;;
996 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
997 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
998 localstatedir=$ac_optarg ;;
999
1000 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1001 ac_prev=mandir ;;
1002 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1003 mandir=$ac_optarg ;;
1004
1005 -nfp | --nfp | --nf)
1006 # Obsolete; use --without-fp.
1007 with_fp=no ;;
1008
1009 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1010 | --no-cr | --no-c | -n)
1011 no_create=yes ;;
1012
1013 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1014 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1015 no_recursion=yes ;;
1016
1017 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1018 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1019 | --oldin | --oldi | --old | --ol | --o)
1020 ac_prev=oldincludedir ;;
1021 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1022 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1023 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1024 oldincludedir=$ac_optarg ;;
1025
1026 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1027 ac_prev=prefix ;;
1028 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1029 prefix=$ac_optarg ;;
1030
1031 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1032 | --program-pre | --program-pr | --program-p)
1033 ac_prev=program_prefix ;;
1034 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1035 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1036 program_prefix=$ac_optarg ;;
1037
1038 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1039 | --program-suf | --program-su | --program-s)
1040 ac_prev=program_suffix ;;
1041 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1042 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1043 program_suffix=$ac_optarg ;;
1044
1045 -program-transform-name | --program-transform-name \
1046 | --program-transform-nam | --program-transform-na \
1047 | --program-transform-n | --program-transform- \
1048 | --program-transform | --program-transfor \
1049 | --program-transfo | --program-transf \
1050 | --program-trans | --program-tran \
1051 | --progr-tra | --program-tr | --program-t)
1052 ac_prev=program_transform_name ;;
1053 -program-transform-name=* | --program-transform-name=* \
1054 | --program-transform-nam=* | --program-transform-na=* \
1055 | --program-transform-n=* | --program-transform-=* \
1056 | --program-transform=* | --program-transfor=* \
1057 | --program-transfo=* | --program-transf=* \
1058 | --program-trans=* | --program-tran=* \
1059 | --progr-tra=* | --program-tr=* | --program-t=*)
1060 program_transform_name=$ac_optarg ;;
1061
1062 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1063 ac_prev=pdfdir ;;
1064 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1065 pdfdir=$ac_optarg ;;
1066
1067 -psdir | --psdir | --psdi | --psd | --ps)
1068 ac_prev=psdir ;;
1069 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1070 psdir=$ac_optarg ;;
1071
1072 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073 | -silent | --silent | --silen | --sile | --sil)
1074 silent=yes ;;
1075
1076 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1077 ac_prev=sbindir ;;
1078 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1079 | --sbi=* | --sb=*)
1080 sbindir=$ac_optarg ;;
1081
1082 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1083 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1084 | --sharedst | --shareds | --shared | --share | --shar \
1085 | --sha | --sh)
1086 ac_prev=sharedstatedir ;;
1087 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1088 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1089 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1090 | --sha=* | --sh=*)
1091 sharedstatedir=$ac_optarg ;;
1092
1093 -site | --site | --sit)
1094 ac_prev=site ;;
1095 -site=* | --site=* | --sit=*)
1096 site=$ac_optarg ;;
1097
1098 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1099 ac_prev=srcdir ;;
1100 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1101 srcdir=$ac_optarg ;;
1102
1103 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1104 | --syscon | --sysco | --sysc | --sys | --sy)
1105 ac_prev=sysconfdir ;;
1106 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1107 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1108 sysconfdir=$ac_optarg ;;
1109
1110 -target | --target | --targe | --targ | --tar | --ta | --t)
1111 ac_prev=target_alias ;;
1112 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1113 target_alias=$ac_optarg ;;
1114
1115 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1116 verbose=yes ;;
1117
1118 -version | --version | --versio | --versi | --vers | -V)
1119 ac_init_version=: ;;
1120
1121 -with-* | --with-*)
1122 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1123 # Reject names that are not valid shell variable names.
1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125 as_fn_error "invalid package name: $ac_useropt"
1126 ac_useropt_orig=$ac_useropt
1127 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128 case $ac_user_opts in
1129 *"
1130 "with_$ac_useropt"
1131 "*) ;;
1132 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1133 ac_unrecognized_sep=', ';;
1134 esac
1135 eval with_$ac_useropt=\$ac_optarg ;;
1136
1137 -without-* | --without-*)
1138 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1141 as_fn_error "invalid package name: $ac_useropt"
1142 ac_useropt_orig=$ac_useropt
1143 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1144 case $ac_user_opts in
1145 *"
1146 "with_$ac_useropt"
1147 "*) ;;
1148 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1149 ac_unrecognized_sep=', ';;
1150 esac
1151 eval with_$ac_useropt=no ;;
1152
1153 --x)
1154 # Obsolete; use --with-x.
1155 with_x=yes ;;
1156
1157 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1158 | --x-incl | --x-inc | --x-in | --x-i)
1159 ac_prev=x_includes ;;
1160 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1161 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1162 x_includes=$ac_optarg ;;
1163
1164 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1165 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1166 ac_prev=x_libraries ;;
1167 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1168 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1169 x_libraries=$ac_optarg ;;
1170
1171 -*) as_fn_error "unrecognized option: \`$ac_option'
1172 Try \`$0 --help' for more information."
1173 ;;
1174
1175 *=*)
1176 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1177 # Reject names that are not valid shell variable names.
1178 case $ac_envvar in #(
1179 '' | [0-9]* | *[!_$as_cr_alnum]* )
1180 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1181 esac
1182 eval $ac_envvar=\$ac_optarg
1183 export $ac_envvar ;;
1184
1185 *)
1186 # FIXME: should be removed in autoconf 3.0.
1187 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1188 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1189 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1190 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1191 ;;
1192
1193 esac
1194 done
1195
1196 if test -n "$ac_prev"; then
1197 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1198 as_fn_error "missing argument to $ac_option"
1199 fi
1200
1201 if test -n "$ac_unrecognized_opts"; then
1202 case $enable_option_checking in
1203 no) ;;
1204 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1205 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1206 esac
1207 fi
1208
1209 # Check all directory arguments for consistency.
1210 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1211 datadir sysconfdir sharedstatedir localstatedir includedir \
1212 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1213 libdir localedir mandir
1214 do
1215 eval ac_val=\$$ac_var
1216 # Remove trailing slashes.
1217 case $ac_val in
1218 */ )
1219 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1220 eval $ac_var=\$ac_val;;
1221 esac
1222 # Be sure to have absolute directory names.
1223 case $ac_val in
1224 [\\/$]* | ?:[\\/]* ) continue;;
1225 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1226 esac
1227 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1228 done
1229
1230 # There might be people who depend on the old broken behavior: `$host'
1231 # used to hold the argument of --host etc.
1232 # FIXME: To remove some day.
1233 build=$build_alias
1234 host=$host_alias
1235 target=$target_alias
1236
1237 # FIXME: To remove some day.
1238 if test "x$host_alias" != x; then
1239 if test "x$build_alias" = x; then
1240 cross_compiling=maybe
1241 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1242 If a cross compiler is detected then cross compile mode will be used." >&2
1243 elif test "x$build_alias" != "x$host_alias"; then
1244 cross_compiling=yes
1245 fi
1246 fi
1247
1248 ac_tool_prefix=
1249 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1250
1251 test "$silent" = yes && exec 6>/dev/null
1252
1253
1254 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1255 ac_ls_di=`ls -di .` &&
1256 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1257 as_fn_error "working directory cannot be determined"
1258 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1259 as_fn_error "pwd does not report name of working directory"
1260
1261
1262 # Find the source files, if location was not specified.
1263 if test -z "$srcdir"; then
1264 ac_srcdir_defaulted=yes
1265 # Try the directory containing this script, then the parent directory.
1266 ac_confdir=`$as_dirname -- "$as_myself" ||
1267 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1268 X"$as_myself" : 'X\(//\)[^/]' \| \
1269 X"$as_myself" : 'X\(//\)$' \| \
1270 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1271 $as_echo X"$as_myself" |
1272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1273 s//\1/
1274 q
1275 }
1276 /^X\(\/\/\)[^/].*/{
1277 s//\1/
1278 q
1279 }
1280 /^X\(\/\/\)$/{
1281 s//\1/
1282 q
1283 }
1284 /^X\(\/\).*/{
1285 s//\1/
1286 q
1287 }
1288 s/.*/./; q'`
1289 srcdir=$ac_confdir
1290 if test ! -r "$srcdir/$ac_unique_file"; then
1291 srcdir=..
1292 fi
1293 else
1294 ac_srcdir_defaulted=no
1295 fi
1296 if test ! -r "$srcdir/$ac_unique_file"; then
1297 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1298 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1299 fi
1300 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1301 ac_abs_confdir=`(
1302 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1303 pwd)`
1304 # When building in place, set srcdir=.
1305 if test "$ac_abs_confdir" = "$ac_pwd"; then
1306 srcdir=.
1307 fi
1308 # Remove unnecessary trailing slashes from srcdir.
1309 # Double slashes in file names in object file debugging info
1310 # mess up M-x gdb in Emacs.
1311 case $srcdir in
1312 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1313 esac
1314 for ac_var in $ac_precious_vars; do
1315 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1316 eval ac_env_${ac_var}_value=\$${ac_var}
1317 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1318 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1319 done
1320
1321 #
1322 # Report the --help message.
1323 #
1324 if test "$ac_init_help" = "long"; then
1325 # Omit some internal or obsolete options to make the list less imposing.
1326 # This message is too long to be a string in the A/UX 3.1 sh.
1327 cat <<_ACEOF
1328 \`configure' configures GNU Fortran Runtime Library 0.3 to adapt to many kinds of systems.
1329
1330 Usage: $0 [OPTION]... [VAR=VALUE]...
1331
1332 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1333 VAR=VALUE. See below for descriptions of some of the useful variables.
1334
1335 Defaults for the options are specified in brackets.
1336
1337 Configuration:
1338 -h, --help display this help and exit
1339 --help=short display options specific to this package
1340 --help=recursive display the short help of all the included packages
1341 -V, --version display version information and exit
1342 -q, --quiet, --silent do not print \`checking...' messages
1343 --cache-file=FILE cache test results in FILE [disabled]
1344 -C, --config-cache alias for \`--cache-file=config.cache'
1345 -n, --no-create do not create output files
1346 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1347
1348 Installation directories:
1349 --prefix=PREFIX install architecture-independent files in PREFIX
1350 [$ac_default_prefix]
1351 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1352 [PREFIX]
1353
1354 By default, \`make install' will install all the files in
1355 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1356 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1357 for instance \`--prefix=\$HOME'.
1358
1359 For better control, use the options below.
1360
1361 Fine tuning of the installation directories:
1362 --bindir=DIR user executables [EPREFIX/bin]
1363 --sbindir=DIR system admin executables [EPREFIX/sbin]
1364 --libexecdir=DIR program executables [EPREFIX/libexec]
1365 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1366 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1367 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1368 --libdir=DIR object code libraries [EPREFIX/lib]
1369 --includedir=DIR C header files [PREFIX/include]
1370 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1371 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1372 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1373 --infodir=DIR info documentation [DATAROOTDIR/info]
1374 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1375 --mandir=DIR man documentation [DATAROOTDIR/man]
1376 --docdir=DIR documentation root [DATAROOTDIR/doc/libgfortran]
1377 --htmldir=DIR html documentation [DOCDIR]
1378 --dvidir=DIR dvi documentation [DOCDIR]
1379 --pdfdir=DIR pdf documentation [DOCDIR]
1380 --psdir=DIR ps documentation [DOCDIR]
1381 _ACEOF
1382
1383 cat <<\_ACEOF
1384
1385 Program names:
1386 --program-prefix=PREFIX prepend PREFIX to installed program names
1387 --program-suffix=SUFFIX append SUFFIX to installed program names
1388 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1389
1390 System types:
1391 --build=BUILD configure for building on BUILD [guessed]
1392 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1393 --target=TARGET configure for building compilers for TARGET [HOST]
1394 _ACEOF
1395 fi
1396
1397 if test -n "$ac_init_help"; then
1398 case $ac_init_help in
1399 short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.3:";;
1400 esac
1401 cat <<\_ACEOF
1402
1403 Optional Features:
1404 --disable-option-checking ignore unrecognized --enable/--with options
1405 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1406 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1407 --enable-version-specific-runtime-libs
1408 specify that runtime libraries should be installed
1409 in a compiler-specific directory
1410 --enable-intermodule build the library in one step
1411 --enable-maintainer-mode enable make rules and dependencies not useful
1412 (and sometimes confusing) to the casual installer
1413 --enable-multilib build many library versions (default)
1414 --disable-dependency-tracking speeds up one-time build
1415 --enable-dependency-tracking do not reject slow dependency extractors
1416 --disable-symvers disable symbol versioning for libgfortran
1417 --enable-shared[=PKGS] build shared libraries [default=yes]
1418 --enable-static[=PKGS] build static libraries [default=yes]
1419 --enable-fast-install[=PKGS]
1420 optimize for fast installation [default=yes]
1421 --disable-libtool-lock avoid locking (might break parallel builds)
1422 --disable-largefile omit support for large files
1423 --disable-libquadmath-support
1424 disable libquadmath support for Fortran
1425
1426 Optional Packages:
1427 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1428 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1429 --with-build-libsubdir=DIR Directory where to find libraries for build system
1430 --with-pic try to use only PIC/non-PIC objects [default=use
1431 both]
1432 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1433 --with-system-libunwind use installed libunwind
1434
1435 Some influential environment variables:
1436 CC C compiler command
1437 CFLAGS C compiler flags
1438 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1439 nonstandard directory <lib dir>
1440 LIBS libraries to pass to the linker, e.g. -l<library>
1441 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1442 you have headers in a nonstandard directory <include dir>
1443 CPP C preprocessor
1444 FC Fortran compiler command
1445 FCFLAGS Fortran compiler flags
1446
1447 Use these variables to override the choices made by `configure' or to help
1448 it to find libraries and programs with nonstandard names/locations.
1449
1450 Report bugs to the package provider.
1451 GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
1452 General help using GNU software: <http://www.gnu.org/gethelp/>.
1453 _ACEOF
1454 ac_status=$?
1455 fi
1456
1457 if test "$ac_init_help" = "recursive"; then
1458 # If there are subdirs, report their specific --help.
1459 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1460 test -d "$ac_dir" ||
1461 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1462 continue
1463 ac_builddir=.
1464
1465 case "$ac_dir" in
1466 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1467 *)
1468 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1469 # A ".." for each directory in $ac_dir_suffix.
1470 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1471 case $ac_top_builddir_sub in
1472 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1473 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1474 esac ;;
1475 esac
1476 ac_abs_top_builddir=$ac_pwd
1477 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1478 # for backward compatibility:
1479 ac_top_builddir=$ac_top_build_prefix
1480
1481 case $srcdir in
1482 .) # We are building in place.
1483 ac_srcdir=.
1484 ac_top_srcdir=$ac_top_builddir_sub
1485 ac_abs_top_srcdir=$ac_pwd ;;
1486 [\\/]* | ?:[\\/]* ) # Absolute name.
1487 ac_srcdir=$srcdir$ac_dir_suffix;
1488 ac_top_srcdir=$srcdir
1489 ac_abs_top_srcdir=$srcdir ;;
1490 *) # Relative name.
1491 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1492 ac_top_srcdir=$ac_top_build_prefix$srcdir
1493 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1494 esac
1495 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1496
1497 cd "$ac_dir" || { ac_status=$?; continue; }
1498 # Check for guested configure.
1499 if test -f "$ac_srcdir/configure.gnu"; then
1500 echo &&
1501 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1502 elif test -f "$ac_srcdir/configure"; then
1503 echo &&
1504 $SHELL "$ac_srcdir/configure" --help=recursive
1505 else
1506 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1507 fi || ac_status=$?
1508 cd "$ac_pwd" || { ac_status=$?; break; }
1509 done
1510 fi
1511
1512 test -n "$ac_init_help" && exit $ac_status
1513 if $ac_init_version; then
1514 cat <<\_ACEOF
1515 GNU Fortran Runtime Library configure 0.3
1516 generated by GNU Autoconf 2.64
1517
1518 Copyright (C) 2009 Free Software Foundation, Inc.
1519 This configure script is free software; the Free Software Foundation
1520 gives unlimited permission to copy, distribute and modify it.
1521 _ACEOF
1522 exit
1523 fi
1524
1525 ## ------------------------ ##
1526 ## Autoconf initialization. ##
1527 ## ------------------------ ##
1528
1529 # ac_fn_c_try_compile LINENO
1530 # --------------------------
1531 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1532 ac_fn_c_try_compile ()
1533 {
1534 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1535 rm -f conftest.$ac_objext
1536 if { { ac_try="$ac_compile"
1537 case "(($ac_try" in
1538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1539 *) ac_try_echo=$ac_try;;
1540 esac
1541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1542 $as_echo "$ac_try_echo"; } >&5
1543 (eval "$ac_compile") 2>conftest.err
1544 ac_status=$?
1545 if test -s conftest.err; then
1546 grep -v '^ *+' conftest.err >conftest.er1
1547 cat conftest.er1 >&5
1548 mv -f conftest.er1 conftest.err
1549 fi
1550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1551 test $ac_status = 0; } && {
1552 test -z "$ac_c_werror_flag" ||
1553 test ! -s conftest.err
1554 } && test -s conftest.$ac_objext; then :
1555 ac_retval=0
1556 else
1557 $as_echo "$as_me: failed program was:" >&5
1558 sed 's/^/| /' conftest.$ac_ext >&5
1559
1560 ac_retval=1
1561 fi
1562 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1563 return $ac_retval
1564
1565 } # ac_fn_c_try_compile
1566
1567 # ac_fn_c_try_cpp LINENO
1568 # ----------------------
1569 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1570 ac_fn_c_try_cpp ()
1571 {
1572 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1573 if { { ac_try="$ac_cpp conftest.$ac_ext"
1574 case "(($ac_try" in
1575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1576 *) ac_try_echo=$ac_try;;
1577 esac
1578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1579 $as_echo "$ac_try_echo"; } >&5
1580 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1581 ac_status=$?
1582 if test -s conftest.err; then
1583 grep -v '^ *+' conftest.err >conftest.er1
1584 cat conftest.er1 >&5
1585 mv -f conftest.er1 conftest.err
1586 fi
1587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1588 test $ac_status = 0; } >/dev/null && {
1589 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1590 test ! -s conftest.err
1591 }; then :
1592 ac_retval=0
1593 else
1594 $as_echo "$as_me: failed program was:" >&5
1595 sed 's/^/| /' conftest.$ac_ext >&5
1596
1597 ac_retval=1
1598 fi
1599 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1600 return $ac_retval
1601
1602 } # ac_fn_c_try_cpp
1603
1604 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1605 # -------------------------------------------------------
1606 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1607 # the include files in INCLUDES and setting the cache variable VAR
1608 # accordingly.
1609 ac_fn_c_check_header_mongrel ()
1610 {
1611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1614 $as_echo_n "checking for $2... " >&6; }
1615 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1616 $as_echo_n "(cached) " >&6
1617 fi
1618 eval ac_res=\$$3
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1620 $as_echo "$ac_res" >&6; }
1621 else
1622 # Is the header compilable?
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1624 $as_echo_n "checking $2 usability... " >&6; }
1625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1626 /* end confdefs.h. */
1627 $4
1628 #include <$2>
1629 _ACEOF
1630 if ac_fn_c_try_compile "$LINENO"; then :
1631 ac_header_compiler=yes
1632 else
1633 ac_header_compiler=no
1634 fi
1635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1637 $as_echo "$ac_header_compiler" >&6; }
1638
1639 # Is the header present?
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1641 $as_echo_n "checking $2 presence... " >&6; }
1642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1643 /* end confdefs.h. */
1644 #include <$2>
1645 _ACEOF
1646 if ac_fn_c_try_cpp "$LINENO"; then :
1647 ac_header_preproc=yes
1648 else
1649 ac_header_preproc=no
1650 fi
1651 rm -f conftest.err conftest.$ac_ext
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1653 $as_echo "$ac_header_preproc" >&6; }
1654
1655 # So? What about this header?
1656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1657 yes:no: )
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1659 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1661 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1662 ;;
1663 no:yes:* )
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1665 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1667 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1669 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1671 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1673 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1674 ;;
1675 esac
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1677 $as_echo_n "checking for $2... " >&6; }
1678 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1679 $as_echo_n "(cached) " >&6
1680 else
1681 eval "$3=\$ac_header_compiler"
1682 fi
1683 eval ac_res=\$$3
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1685 $as_echo "$ac_res" >&6; }
1686 fi
1687 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1688
1689 } # ac_fn_c_check_header_mongrel
1690
1691 # ac_fn_c_try_run LINENO
1692 # ----------------------
1693 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1694 # that executables *can* be run.
1695 ac_fn_c_try_run ()
1696 {
1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698 if { { ac_try="$ac_link"
1699 case "(($ac_try" in
1700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701 *) ac_try_echo=$ac_try;;
1702 esac
1703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704 $as_echo "$ac_try_echo"; } >&5
1705 (eval "$ac_link") 2>&5
1706 ac_status=$?
1707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1709 { { case "(($ac_try" in
1710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1711 *) ac_try_echo=$ac_try;;
1712 esac
1713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1714 $as_echo "$ac_try_echo"; } >&5
1715 (eval "$ac_try") 2>&5
1716 ac_status=$?
1717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718 test $ac_status = 0; }; }; then :
1719 ac_retval=0
1720 else
1721 $as_echo "$as_me: program exited with status $ac_status" >&5
1722 $as_echo "$as_me: failed program was:" >&5
1723 sed 's/^/| /' conftest.$ac_ext >&5
1724
1725 ac_retval=$ac_status
1726 fi
1727 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1728 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1729 return $ac_retval
1730
1731 } # ac_fn_c_try_run
1732
1733 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1734 # -------------------------------------------------------
1735 # Tests whether HEADER exists and can be compiled using the include files in
1736 # INCLUDES, setting the cache variable VAR accordingly.
1737 ac_fn_c_check_header_compile ()
1738 {
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1741 $as_echo_n "checking for $2... " >&6; }
1742 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1743 $as_echo_n "(cached) " >&6
1744 else
1745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1746 /* end confdefs.h. */
1747 $4
1748 #include <$2>
1749 _ACEOF
1750 if ac_fn_c_try_compile "$LINENO"; then :
1751 eval "$3=yes"
1752 else
1753 eval "$3=no"
1754 fi
1755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1756 fi
1757 eval ac_res=\$$3
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1759 $as_echo "$ac_res" >&6; }
1760 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1761
1762 } # ac_fn_c_check_header_compile
1763
1764 # ac_fn_c_try_link LINENO
1765 # -----------------------
1766 # Try to link conftest.$ac_ext, and return whether this succeeded.
1767 ac_fn_c_try_link ()
1768 {
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 rm -f conftest.$ac_objext conftest$ac_exeext
1771 if { { ac_try="$ac_link"
1772 case "(($ac_try" in
1773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774 *) ac_try_echo=$ac_try;;
1775 esac
1776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777 $as_echo "$ac_try_echo"; } >&5
1778 (eval "$ac_link") 2>conftest.err
1779 ac_status=$?
1780 if test -s conftest.err; then
1781 grep -v '^ *+' conftest.err >conftest.er1
1782 cat conftest.er1 >&5
1783 mv -f conftest.er1 conftest.err
1784 fi
1785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786 test $ac_status = 0; } && {
1787 test -z "$ac_c_werror_flag" ||
1788 test ! -s conftest.err
1789 } && test -s conftest$ac_exeext && {
1790 test "$cross_compiling" = yes ||
1791 $as_test_x conftest$ac_exeext
1792 }; then :
1793 ac_retval=0
1794 else
1795 $as_echo "$as_me: failed program was:" >&5
1796 sed 's/^/| /' conftest.$ac_ext >&5
1797
1798 ac_retval=1
1799 fi
1800 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1801 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1802 # interfere with the next link command; also delete a directory that is
1803 # left behind by Apple's compiler. We do this before executing the actions.
1804 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1805 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1806 return $ac_retval
1807
1808 } # ac_fn_c_try_link
1809
1810 # ac_fn_c_check_func LINENO FUNC VAR
1811 # ----------------------------------
1812 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1813 ac_fn_c_check_func ()
1814 {
1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1817 $as_echo_n "checking for $2... " >&6; }
1818 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1819 $as_echo_n "(cached) " >&6
1820 else
1821 if test x$gcc_no_link = xyes; then
1822 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1823 fi
1824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1825 /* end confdefs.h. */
1826 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1828 #define $2 innocuous_$2
1829
1830 /* System header to define __stub macros and hopefully few prototypes,
1831 which can conflict with char $2 (); below.
1832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1833 <limits.h> exists even on freestanding compilers. */
1834
1835 #ifdef __STDC__
1836 # include <limits.h>
1837 #else
1838 # include <assert.h>
1839 #endif
1840
1841 #undef $2
1842
1843 /* Override any GCC internal prototype to avoid an error.
1844 Use char because int might match the return type of a GCC
1845 builtin and then its argument prototype would still apply. */
1846 #ifdef __cplusplus
1847 extern "C"
1848 #endif
1849 char $2 ();
1850 /* The GNU C library defines this for functions which it implements
1851 to always fail with ENOSYS. Some functions are actually named
1852 something starting with __ and the normal name is an alias. */
1853 #if defined __stub_$2 || defined __stub___$2
1854 choke me
1855 #endif
1856
1857 int
1858 main ()
1859 {
1860 return $2 ();
1861 ;
1862 return 0;
1863 }
1864 _ACEOF
1865 if ac_fn_c_try_link "$LINENO"; then :
1866 eval "$3=yes"
1867 else
1868 eval "$3=no"
1869 fi
1870 rm -f core conftest.err conftest.$ac_objext \
1871 conftest$ac_exeext conftest.$ac_ext
1872 fi
1873 eval ac_res=\$$3
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875 $as_echo "$ac_res" >&6; }
1876 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1877
1878 } # ac_fn_c_check_func
1879
1880 # ac_fn_fc_try_compile LINENO
1881 # ---------------------------
1882 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1883 ac_fn_fc_try_compile ()
1884 {
1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886 rm -f conftest.$ac_objext
1887 if { { ac_try="$ac_compile"
1888 case "(($ac_try" in
1889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1890 *) ac_try_echo=$ac_try;;
1891 esac
1892 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1893 $as_echo "$ac_try_echo"; } >&5
1894 (eval "$ac_compile") 2>conftest.err
1895 ac_status=$?
1896 if test -s conftest.err; then
1897 grep -v '^ *+' conftest.err >conftest.er1
1898 cat conftest.er1 >&5
1899 mv -f conftest.er1 conftest.err
1900 fi
1901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902 test $ac_status = 0; } && {
1903 test -z "$ac_fc_werror_flag" ||
1904 test ! -s conftest.err
1905 } && test -s conftest.$ac_objext; then :
1906 ac_retval=0
1907 else
1908 $as_echo "$as_me: failed program was:" >&5
1909 sed 's/^/| /' conftest.$ac_ext >&5
1910
1911 ac_retval=1
1912 fi
1913 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1914 return $ac_retval
1915
1916 } # ac_fn_fc_try_compile
1917
1918 # ac_fn_fc_try_link LINENO
1919 # ------------------------
1920 # Try to link conftest.$ac_ext, and return whether this succeeded.
1921 ac_fn_fc_try_link ()
1922 {
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 rm -f conftest.$ac_objext conftest$ac_exeext
1925 if { { ac_try="$ac_link"
1926 case "(($ac_try" in
1927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1928 *) ac_try_echo=$ac_try;;
1929 esac
1930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1931 $as_echo "$ac_try_echo"; } >&5
1932 (eval "$ac_link") 2>conftest.err
1933 ac_status=$?
1934 if test -s conftest.err; then
1935 grep -v '^ *+' conftest.err >conftest.er1
1936 cat conftest.er1 >&5
1937 mv -f conftest.er1 conftest.err
1938 fi
1939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1940 test $ac_status = 0; } && {
1941 test -z "$ac_fc_werror_flag" ||
1942 test ! -s conftest.err
1943 } && test -s conftest$ac_exeext && {
1944 test "$cross_compiling" = yes ||
1945 $as_test_x conftest$ac_exeext
1946 }; then :
1947 ac_retval=0
1948 else
1949 $as_echo "$as_me: failed program was:" >&5
1950 sed 's/^/| /' conftest.$ac_ext >&5
1951
1952 ac_retval=1
1953 fi
1954 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1955 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1956 # interfere with the next link command; also delete a directory that is
1957 # left behind by Apple's compiler. We do this before executing the actions.
1958 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1959 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1960 return $ac_retval
1961
1962 } # ac_fn_fc_try_link
1963
1964 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1965 # -------------------------------------------
1966 # Tests whether TYPE exists after having included INCLUDES, setting cache
1967 # variable VAR accordingly.
1968 ac_fn_c_check_type ()
1969 {
1970 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1972 $as_echo_n "checking for $2... " >&6; }
1973 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1974 $as_echo_n "(cached) " >&6
1975 else
1976 eval "$3=no"
1977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1978 /* end confdefs.h. */
1979 $4
1980 int
1981 main ()
1982 {
1983 if (sizeof ($2))
1984 return 0;
1985 ;
1986 return 0;
1987 }
1988 _ACEOF
1989 if ac_fn_c_try_compile "$LINENO"; then :
1990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1991 /* end confdefs.h. */
1992 $4
1993 int
1994 main ()
1995 {
1996 if (sizeof (($2)))
1997 return 0;
1998 ;
1999 return 0;
2000 }
2001 _ACEOF
2002 if ac_fn_c_try_compile "$LINENO"; then :
2003
2004 else
2005 eval "$3=yes"
2006 fi
2007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008 fi
2009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2010 fi
2011 eval ac_res=\$$3
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2013 $as_echo "$ac_res" >&6; }
2014 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2015
2016 } # ac_fn_c_check_type
2017
2018 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2019 # --------------------------------------------
2020 # Tries to find the compile-time value of EXPR in a program that includes
2021 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2022 # computed
2023 ac_fn_c_compute_int ()
2024 {
2025 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2026 if test "$cross_compiling" = yes; then
2027 # Depending upon the size, compute the lo and hi bounds.
2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h. */
2030 $4
2031 int
2032 main ()
2033 {
2034 static int test_array [1 - 2 * !(($2) >= 0)];
2035 test_array [0] = 0
2036
2037 ;
2038 return 0;
2039 }
2040 _ACEOF
2041 if ac_fn_c_try_compile "$LINENO"; then :
2042 ac_lo=0 ac_mid=0
2043 while :; do
2044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045 /* end confdefs.h. */
2046 $4
2047 int
2048 main ()
2049 {
2050 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2051 test_array [0] = 0
2052
2053 ;
2054 return 0;
2055 }
2056 _ACEOF
2057 if ac_fn_c_try_compile "$LINENO"; then :
2058 ac_hi=$ac_mid; break
2059 else
2060 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2061 if test $ac_lo -le $ac_mid; then
2062 ac_lo= ac_hi=
2063 break
2064 fi
2065 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2066 fi
2067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2068 done
2069 else
2070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2071 /* end confdefs.h. */
2072 $4
2073 int
2074 main ()
2075 {
2076 static int test_array [1 - 2 * !(($2) < 0)];
2077 test_array [0] = 0
2078
2079 ;
2080 return 0;
2081 }
2082 _ACEOF
2083 if ac_fn_c_try_compile "$LINENO"; then :
2084 ac_hi=-1 ac_mid=-1
2085 while :; do
2086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087 /* end confdefs.h. */
2088 $4
2089 int
2090 main ()
2091 {
2092 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2093 test_array [0] = 0
2094
2095 ;
2096 return 0;
2097 }
2098 _ACEOF
2099 if ac_fn_c_try_compile "$LINENO"; then :
2100 ac_lo=$ac_mid; break
2101 else
2102 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2103 if test $ac_mid -le $ac_hi; then
2104 ac_lo= ac_hi=
2105 break
2106 fi
2107 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2108 fi
2109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2110 done
2111 else
2112 ac_lo= ac_hi=
2113 fi
2114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2115 fi
2116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2117 # Binary search between lo and hi bounds.
2118 while test "x$ac_lo" != "x$ac_hi"; do
2119 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2121 /* end confdefs.h. */
2122 $4
2123 int
2124 main ()
2125 {
2126 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2127 test_array [0] = 0
2128
2129 ;
2130 return 0;
2131 }
2132 _ACEOF
2133 if ac_fn_c_try_compile "$LINENO"; then :
2134 ac_hi=$ac_mid
2135 else
2136 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2137 fi
2138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2139 done
2140 case $ac_lo in #((
2141 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2142 '') ac_retval=1 ;;
2143 esac
2144 else
2145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2146 /* end confdefs.h. */
2147 $4
2148 static long int longval () { return $2; }
2149 static unsigned long int ulongval () { return $2; }
2150 #include <stdio.h>
2151 #include <stdlib.h>
2152 int
2153 main ()
2154 {
2155
2156 FILE *f = fopen ("conftest.val", "w");
2157 if (! f)
2158 return 1;
2159 if (($2) < 0)
2160 {
2161 long int i = longval ();
2162 if (i != ($2))
2163 return 1;
2164 fprintf (f, "%ld", i);
2165 }
2166 else
2167 {
2168 unsigned long int i = ulongval ();
2169 if (i != ($2))
2170 return 1;
2171 fprintf (f, "%lu", i);
2172 }
2173 /* Do not output a trailing newline, as this causes \r\n confusion
2174 on some platforms. */
2175 return ferror (f) || fclose (f) != 0;
2176
2177 ;
2178 return 0;
2179 }
2180 _ACEOF
2181 if ac_fn_c_try_run "$LINENO"; then :
2182 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2183 else
2184 ac_retval=1
2185 fi
2186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2187 conftest.$ac_objext conftest.beam conftest.$ac_ext
2188 rm -f conftest.val
2189
2190 fi
2191 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2192 return $ac_retval
2193
2194 } # ac_fn_c_compute_int
2195
2196 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2197 # ----------------------------------------------------
2198 # Tries to find if the field MEMBER exists in type AGGR, after including
2199 # INCLUDES, setting cache variable VAR accordingly.
2200 ac_fn_c_check_member ()
2201 {
2202 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2204 $as_echo_n "checking for $2.$3... " >&6; }
2205 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2206 $as_echo_n "(cached) " >&6
2207 else
2208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2209 /* end confdefs.h. */
2210 $5
2211 int
2212 main ()
2213 {
2214 static $2 ac_aggr;
2215 if (ac_aggr.$3)
2216 return 0;
2217 ;
2218 return 0;
2219 }
2220 _ACEOF
2221 if ac_fn_c_try_compile "$LINENO"; then :
2222 eval "$4=yes"
2223 else
2224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2225 /* end confdefs.h. */
2226 $5
2227 int
2228 main ()
2229 {
2230 static $2 ac_aggr;
2231 if (sizeof ac_aggr.$3)
2232 return 0;
2233 ;
2234 return 0;
2235 }
2236 _ACEOF
2237 if ac_fn_c_try_compile "$LINENO"; then :
2238 eval "$4=yes"
2239 else
2240 eval "$4=no"
2241 fi
2242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2243 fi
2244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2245 fi
2246 eval ac_res=\$$4
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2248 $as_echo "$ac_res" >&6; }
2249 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2250
2251 } # ac_fn_c_check_member
2252 cat >config.log <<_ACEOF
2253 This file contains any messages produced by compilers while
2254 running configure, to aid debugging if configure makes a mistake.
2255
2256 It was created by GNU Fortran Runtime Library $as_me 0.3, which was
2257 generated by GNU Autoconf 2.64. Invocation command line was
2258
2259 $ $0 $@
2260
2261 _ACEOF
2262 exec 5>>config.log
2263 {
2264 cat <<_ASUNAME
2265 ## --------- ##
2266 ## Platform. ##
2267 ## --------- ##
2268
2269 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2270 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2271 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2272 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2273 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2274
2275 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2276 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2277
2278 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2279 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2280 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2281 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2282 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2283 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2284 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2285
2286 _ASUNAME
2287
2288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289 for as_dir in $PATH
2290 do
2291 IFS=$as_save_IFS
2292 test -z "$as_dir" && as_dir=.
2293 $as_echo "PATH: $as_dir"
2294 done
2295 IFS=$as_save_IFS
2296
2297 } >&5
2298
2299 cat >&5 <<_ACEOF
2300
2301
2302 ## ----------- ##
2303 ## Core tests. ##
2304 ## ----------- ##
2305
2306 _ACEOF
2307
2308
2309 # Keep a trace of the command line.
2310 # Strip out --no-create and --no-recursion so they do not pile up.
2311 # Strip out --silent because we don't want to record it for future runs.
2312 # Also quote any args containing shell meta-characters.
2313 # Make two passes to allow for proper duplicate-argument suppression.
2314 ac_configure_args=
2315 ac_configure_args0=
2316 ac_configure_args1=
2317 ac_must_keep_next=false
2318 for ac_pass in 1 2
2319 do
2320 for ac_arg
2321 do
2322 case $ac_arg in
2323 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2324 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2325 | -silent | --silent | --silen | --sile | --sil)
2326 continue ;;
2327 *\'*)
2328 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2329 esac
2330 case $ac_pass in
2331 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2332 2)
2333 as_fn_append ac_configure_args1 " '$ac_arg'"
2334 if test $ac_must_keep_next = true; then
2335 ac_must_keep_next=false # Got value, back to normal.
2336 else
2337 case $ac_arg in
2338 *=* | --config-cache | -C | -disable-* | --disable-* \
2339 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2340 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2341 | -with-* | --with-* | -without-* | --without-* | --x)
2342 case "$ac_configure_args0 " in
2343 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2344 esac
2345 ;;
2346 -* ) ac_must_keep_next=true ;;
2347 esac
2348 fi
2349 as_fn_append ac_configure_args " '$ac_arg'"
2350 ;;
2351 esac
2352 done
2353 done
2354 { ac_configure_args0=; unset ac_configure_args0;}
2355 { ac_configure_args1=; unset ac_configure_args1;}
2356
2357 # When interrupted or exit'd, cleanup temporary files, and complete
2358 # config.log. We remove comments because anyway the quotes in there
2359 # would cause problems or look ugly.
2360 # WARNING: Use '\'' to represent an apostrophe within the trap.
2361 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2362 trap 'exit_status=$?
2363 # Save into config.log some information that might help in debugging.
2364 {
2365 echo
2366
2367 cat <<\_ASBOX
2368 ## ---------------- ##
2369 ## Cache variables. ##
2370 ## ---------------- ##
2371 _ASBOX
2372 echo
2373 # The following way of writing the cache mishandles newlines in values,
2374 (
2375 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2376 eval ac_val=\$$ac_var
2377 case $ac_val in #(
2378 *${as_nl}*)
2379 case $ac_var in #(
2380 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2381 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2382 esac
2383 case $ac_var in #(
2384 _ | IFS | as_nl) ;; #(
2385 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2386 *) { eval $ac_var=; unset $ac_var;} ;;
2387 esac ;;
2388 esac
2389 done
2390 (set) 2>&1 |
2391 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2392 *${as_nl}ac_space=\ *)
2393 sed -n \
2394 "s/'\''/'\''\\\\'\'''\''/g;
2395 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2396 ;; #(
2397 *)
2398 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2399 ;;
2400 esac |
2401 sort
2402 )
2403 echo
2404
2405 cat <<\_ASBOX
2406 ## ----------------- ##
2407 ## Output variables. ##
2408 ## ----------------- ##
2409 _ASBOX
2410 echo
2411 for ac_var in $ac_subst_vars
2412 do
2413 eval ac_val=\$$ac_var
2414 case $ac_val in
2415 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2416 esac
2417 $as_echo "$ac_var='\''$ac_val'\''"
2418 done | sort
2419 echo
2420
2421 if test -n "$ac_subst_files"; then
2422 cat <<\_ASBOX
2423 ## ------------------- ##
2424 ## File substitutions. ##
2425 ## ------------------- ##
2426 _ASBOX
2427 echo
2428 for ac_var in $ac_subst_files
2429 do
2430 eval ac_val=\$$ac_var
2431 case $ac_val in
2432 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2433 esac
2434 $as_echo "$ac_var='\''$ac_val'\''"
2435 done | sort
2436 echo
2437 fi
2438
2439 if test -s confdefs.h; then
2440 cat <<\_ASBOX
2441 ## ----------- ##
2442 ## confdefs.h. ##
2443 ## ----------- ##
2444 _ASBOX
2445 echo
2446 cat confdefs.h
2447 echo
2448 fi
2449 test "$ac_signal" != 0 &&
2450 $as_echo "$as_me: caught signal $ac_signal"
2451 $as_echo "$as_me: exit $exit_status"
2452 } >&5
2453 rm -f core *.core core.conftest.* &&
2454 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2455 exit $exit_status
2456 ' 0
2457 for ac_signal in 1 2 13 15; do
2458 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2459 done
2460 ac_signal=0
2461
2462 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2463 rm -f -r conftest* confdefs.h
2464
2465 $as_echo "/* confdefs.h */" > confdefs.h
2466
2467 # Predefined preprocessor variables.
2468
2469 cat >>confdefs.h <<_ACEOF
2470 #define PACKAGE_NAME "$PACKAGE_NAME"
2471 _ACEOF
2472
2473 cat >>confdefs.h <<_ACEOF
2474 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2475 _ACEOF
2476
2477 cat >>confdefs.h <<_ACEOF
2478 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2479 _ACEOF
2480
2481 cat >>confdefs.h <<_ACEOF
2482 #define PACKAGE_STRING "$PACKAGE_STRING"
2483 _ACEOF
2484
2485 cat >>confdefs.h <<_ACEOF
2486 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2487 _ACEOF
2488
2489 cat >>confdefs.h <<_ACEOF
2490 #define PACKAGE_URL "$PACKAGE_URL"
2491 _ACEOF
2492
2493
2494 # Let the site file select an alternate cache file if it wants to.
2495 # Prefer an explicitly selected file to automatically selected ones.
2496 ac_site_file1=NONE
2497 ac_site_file2=NONE
2498 if test -n "$CONFIG_SITE"; then
2499 ac_site_file1=$CONFIG_SITE
2500 elif test "x$prefix" != xNONE; then
2501 ac_site_file1=$prefix/share/config.site
2502 ac_site_file2=$prefix/etc/config.site
2503 else
2504 ac_site_file1=$ac_default_prefix/share/config.site
2505 ac_site_file2=$ac_default_prefix/etc/config.site
2506 fi
2507 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2508 do
2509 test "x$ac_site_file" = xNONE && continue
2510 if test -r "$ac_site_file"; then
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2512 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2513 sed 's/^/| /' "$ac_site_file" >&5
2514 . "$ac_site_file"
2515 fi
2516 done
2517
2518 if test -r "$cache_file"; then
2519 # Some versions of bash will fail to source /dev/null (special
2520 # files actually), so we avoid doing that.
2521 if test -f "$cache_file"; then
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2523 $as_echo "$as_me: loading cache $cache_file" >&6;}
2524 case $cache_file in
2525 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2526 *) . "./$cache_file";;
2527 esac
2528 fi
2529 else
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2531 $as_echo "$as_me: creating cache $cache_file" >&6;}
2532 >$cache_file
2533 fi
2534
2535 as_fn_append ac_header_list " unistd.h"
2536 as_fn_append ac_header_list " sys/time.h"
2537 as_fn_append ac_header_list " sys/times.h"
2538 as_fn_append ac_header_list " sys/resource.h"
2539 as_fn_append ac_header_list " sys/types.h"
2540 as_fn_append ac_header_list " sys/stat.h"
2541 as_fn_append ac_header_list " sys/wait.h"
2542 as_fn_append ac_header_list " floatingpoint.h"
2543 as_fn_append ac_header_list " ieeefp.h"
2544 as_fn_append ac_header_list " fenv.h"
2545 as_fn_append ac_header_list " fptrap.h"
2546 as_fn_append ac_header_list " pwd.h"
2547 as_fn_append ac_header_list " complex.h"
2548 as_fn_append ac_func_list " getrusage"
2549 as_fn_append ac_func_list " times"
2550 as_fn_append ac_func_list " mkstemp"
2551 as_fn_append ac_func_list " strtof"
2552 as_fn_append ac_func_list " strtold"
2553 as_fn_append ac_func_list " snprintf"
2554 as_fn_append ac_func_list " ftruncate"
2555 as_fn_append ac_func_list " chsize"
2556 as_fn_append ac_func_list " chdir"
2557 as_fn_append ac_func_list " getlogin"
2558 as_fn_append ac_func_list " gethostname"
2559 as_fn_append ac_func_list " kill"
2560 as_fn_append ac_func_list " link"
2561 as_fn_append ac_func_list " symlink"
2562 as_fn_append ac_func_list " sleep"
2563 as_fn_append ac_func_list " ttyname"
2564 as_fn_append ac_func_list " alarm"
2565 as_fn_append ac_func_list " access"
2566 as_fn_append ac_func_list " fork"
2567 as_fn_append ac_func_list " execl"
2568 as_fn_append ac_func_list " wait"
2569 as_fn_append ac_func_list " setmode"
2570 as_fn_append ac_func_list " execve"
2571 as_fn_append ac_func_list " pipe"
2572 as_fn_append ac_func_list " dup2"
2573 as_fn_append ac_func_list " close"
2574 as_fn_append ac_func_list " strcasestr"
2575 as_fn_append ac_func_list " getrlimit"
2576 as_fn_append ac_func_list " gettimeofday"
2577 as_fn_append ac_func_list " stat"
2578 as_fn_append ac_func_list " fstat"
2579 as_fn_append ac_func_list " lstat"
2580 as_fn_append ac_func_list " getpwuid"
2581 as_fn_append ac_func_list " vsnprintf"
2582 as_fn_append ac_func_list " dup"
2583 as_fn_append ac_func_list " getcwd"
2584 as_fn_append ac_func_list " localtime_r"
2585 as_fn_append ac_func_list " gmtime_r"
2586 as_fn_append ac_func_list " getpwuid_r"
2587 as_fn_append ac_func_list " ttyname_r"
2588 as_fn_append ac_func_list " clock_gettime"
2589 as_fn_append ac_func_list " readlink"
2590 as_fn_append ac_func_list " getgid"
2591 as_fn_append ac_func_list " getpid"
2592 as_fn_append ac_func_list " getppid"
2593 as_fn_append ac_func_list " getuid"
2594 as_fn_append ac_func_list " geteuid"
2595 as_fn_append ac_func_list " umask"
2596 as_fn_append ac_func_list " getegid"
2597 as_fn_append ac_func_list " secure_getenv"
2598 as_fn_append ac_func_list " __secure_getenv"
2599 as_fn_append ac_header_list " math.h"
2600 # Check that the precious variables saved in the cache have kept the same
2601 # value.
2602 ac_cache_corrupted=false
2603 for ac_var in $ac_precious_vars; do
2604 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2605 eval ac_new_set=\$ac_env_${ac_var}_set
2606 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2607 eval ac_new_val=\$ac_env_${ac_var}_value
2608 case $ac_old_set,$ac_new_set in
2609 set,)
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2611 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2612 ac_cache_corrupted=: ;;
2613 ,set)
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2615 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2616 ac_cache_corrupted=: ;;
2617 ,);;
2618 *)
2619 if test "x$ac_old_val" != "x$ac_new_val"; then
2620 # differences in whitespace do not lead to failure.
2621 ac_old_val_w=`echo x $ac_old_val`
2622 ac_new_val_w=`echo x $ac_new_val`
2623 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2625 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2626 ac_cache_corrupted=:
2627 else
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2629 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2630 eval $ac_var=\$ac_old_val
2631 fi
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2633 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2635 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2636 fi;;
2637 esac
2638 # Pass precious variables to config.status.
2639 if test "$ac_new_set" = set; then
2640 case $ac_new_val in
2641 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2642 *) ac_arg=$ac_var=$ac_new_val ;;
2643 esac
2644 case " $ac_configure_args " in
2645 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2646 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2647 esac
2648 fi
2649 done
2650 if $ac_cache_corrupted; then
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2652 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2654 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2655 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2656 fi
2657 ## -------------------- ##
2658 ## Main body of script. ##
2659 ## -------------------- ##
2660
2661 ac_ext=c
2662 ac_cpp='$CPP $CPPFLAGS'
2663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2666
2667
2668
2669
2670
2671 ac_config_headers="$ac_config_headers config.h"
2672
2673 ac_aux_dir=
2674 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2675 for ac_t in install-sh install.sh shtool; do
2676 if test -f "$ac_dir/$ac_t"; then
2677 ac_aux_dir=$ac_dir
2678 ac_install_sh="$ac_aux_dir/$ac_t -c"
2679 break 2
2680 fi
2681 done
2682 done
2683 if test -z "$ac_aux_dir"; then
2684 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2685 fi
2686
2687 # These three variables are undocumented and unsupported,
2688 # and are intended to be withdrawn in a future Autoconf release.
2689 # They can cause serious problems if a builder's source tree is in a directory
2690 # whose full name contains unusual characters.
2691 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2692 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2693 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2694
2695
2696 # Make sure we can run config.sub.
2697 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2698 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2699
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2701 $as_echo_n "checking build system type... " >&6; }
2702 if test "${ac_cv_build+set}" = set; then :
2703 $as_echo_n "(cached) " >&6
2704 else
2705 ac_build_alias=$build_alias
2706 test "x$ac_build_alias" = x &&
2707 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2708 test "x$ac_build_alias" = x &&
2709 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2710 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2711 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2712
2713 fi
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2715 $as_echo "$ac_cv_build" >&6; }
2716 case $ac_cv_build in
2717 *-*-*) ;;
2718 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2719 esac
2720 build=$ac_cv_build
2721 ac_save_IFS=$IFS; IFS='-'
2722 set x $ac_cv_build
2723 shift
2724 build_cpu=$1
2725 build_vendor=$2
2726 shift; shift
2727 # Remember, the first character of IFS is used to create $*,
2728 # except with old shells:
2729 build_os=$*
2730 IFS=$ac_save_IFS
2731 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2732
2733
2734 case ${build_alias} in
2735 "") build_noncanonical=${build} ;;
2736 *) build_noncanonical=${build_alias} ;;
2737 esac
2738
2739 case ${host_alias} in
2740 "") host_noncanonical=${build_noncanonical} ;;
2741 *) host_noncanonical=${host_alias} ;;
2742 esac
2743
2744 case ${target_alias} in
2745 "") target_noncanonical=${host_noncanonical} ;;
2746 *) target_noncanonical=${target_alias} ;;
2747 esac
2748
2749
2750 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2751 # have matching libraries, they should use host libraries: Makefile.tpl
2752 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2753 # However, they still use the build modules, because the corresponding
2754 # host modules (e.g. bison) are only built for the host when bootstrap
2755 # finishes. So:
2756 # - build_subdir is where we find build modules, and never changes.
2757 # - build_libsubdir is where we find build libraries, and can be overridden.
2758
2759 # Prefix 'build-' so this never conflicts with target_subdir.
2760 build_subdir="build-${build_noncanonical}"
2761
2762 # Check whether --with-build-libsubdir was given.
2763 if test "${with_build_libsubdir+set}" = set; then :
2764 withval=$with_build_libsubdir; build_libsubdir="$withval"
2765 else
2766 build_libsubdir="$build_subdir"
2767 fi
2768
2769 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2770 if ( test $srcdir = . && test -d gcc ) \
2771 || test -d $srcdir/../host-${host_noncanonical}; then
2772 host_subdir="host-${host_noncanonical}"
2773 else
2774 host_subdir=.
2775 fi
2776 # No prefix.
2777 target_subdir=${target_noncanonical}
2778
2779
2780 # -------
2781 # Options
2782 # -------
2783
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2785 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2786 # Check whether --enable-version-specific-runtime-libs was given.
2787 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2788 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2789 yes) version_specific_libs=yes ;;
2790 no) version_specific_libs=no ;;
2791 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2792 esac
2793 else
2794 version_specific_libs=no
2795 fi
2796
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2798 $as_echo "$version_specific_libs" >&6; }
2799
2800 # Build with intermodule optimisations
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-intermodule" >&5
2802 $as_echo_n "checking for --enable-intermodule... " >&6; }
2803 # Check whether --enable-intermodule was given.
2804 if test "${enable_intermodule+set}" = set; then :
2805 enableval=$enable_intermodule; case "$enable_intermodule" in
2806 yes) onestep="-onestep";;
2807 *) onestep="";;
2808 esac
2809 else
2810 onestep=""
2811 fi
2812
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_intermodule" >&5
2814 $as_echo "$enable_intermodule" >&6; }
2815 if test x$onestep = x-onestep; then
2816 onestep_TRUE=
2817 onestep_FALSE='#'
2818 else
2819 onestep_TRUE='#'
2820 onestep_FALSE=
2821 fi
2822
2823
2824
2825 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2826 #
2827 # You will slowly go insane if you do not grok the following fact: when
2828 # building this library, the top-level /target/ becomes the library's /host/.
2829 #
2830 # configure then causes --target to default to --host, exactly like any
2831 # other package using autoconf. Therefore, 'target' and 'host' will
2832 # always be the same. This makes sense both for native and cross compilers
2833 # just think about it for a little while. :-)
2834 #
2835 # Also, if this library is being configured as part of a cross compiler, the
2836 # top-level configure script will pass the "real" host as $with_cross_host.
2837 #
2838 # Do not delete or change the following two lines. For why, see
2839 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2841 $as_echo_n "checking host system type... " >&6; }
2842 if test "${ac_cv_host+set}" = set; then :
2843 $as_echo_n "(cached) " >&6
2844 else
2845 if test "x$host_alias" = x; then
2846 ac_cv_host=$ac_cv_build
2847 else
2848 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2849 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2850 fi
2851
2852 fi
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2854 $as_echo "$ac_cv_host" >&6; }
2855 case $ac_cv_host in
2856 *-*-*) ;;
2857 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2858 esac
2859 host=$ac_cv_host
2860 ac_save_IFS=$IFS; IFS='-'
2861 set x $ac_cv_host
2862 shift
2863 host_cpu=$1
2864 host_vendor=$2
2865 shift; shift
2866 # Remember, the first character of IFS is used to create $*,
2867 # except with old shells:
2868 host_os=$*
2869 IFS=$ac_save_IFS
2870 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2871
2872
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2874 $as_echo_n "checking target system type... " >&6; }
2875 if test "${ac_cv_target+set}" = set; then :
2876 $as_echo_n "(cached) " >&6
2877 else
2878 if test "x$target_alias" = x; then
2879 ac_cv_target=$ac_cv_host
2880 else
2881 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2882 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2883 fi
2884
2885 fi
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2887 $as_echo "$ac_cv_target" >&6; }
2888 case $ac_cv_target in
2889 *-*-*) ;;
2890 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2891 esac
2892 target=$ac_cv_target
2893 ac_save_IFS=$IFS; IFS='-'
2894 set x $ac_cv_target
2895 shift
2896 target_cpu=$1
2897 target_vendor=$2
2898 shift; shift
2899 # Remember, the first character of IFS is used to create $*,
2900 # except with old shells:
2901 target_os=$*
2902 IFS=$ac_save_IFS
2903 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2904
2905
2906 # The aliases save the names the user supplied, while $host etc.
2907 # will get canonicalized.
2908 test -n "$target_alias" &&
2909 test "$program_prefix$program_suffix$program_transform_name" = \
2910 NONENONEs,x,x, &&
2911 program_prefix=${target_alias}-
2912
2913
2914
2915
2916 target_alias=${target_alias-$host_alias}
2917
2918
2919 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2920 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2921 # 1.9.6: minimum required version
2922 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2923 # of other PACKAGE_* variables will, however, and there's nothing
2924 # we can do about that; they come from AC_INIT).
2925 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2926 # file in the top srcdir, etc, etc), so stop complaining.
2927 # no-dist: we don't want 'dist' and related rules.
2928 # -Wall: turns on all automake warnings...
2929 # -Wno-portability: ...except this one, since GNU make is required.
2930 am__api_version='1.11'
2931
2932 # Find a good install program. We prefer a C program (faster),
2933 # so one script is as good as another. But avoid the broken or
2934 # incompatible versions:
2935 # SysV /etc/install, /usr/sbin/install
2936 # SunOS /usr/etc/install
2937 # IRIX /sbin/install
2938 # AIX /bin/install
2939 # AmigaOS /C/install, which installs bootblocks on floppy discs
2940 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2941 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2942 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2943 # OS/2's system install, which has a completely different semantic
2944 # ./install, which can be erroneously created by make from ./install.sh.
2945 # Reject install programs that cannot install multiple files.
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2947 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2948 if test -z "$INSTALL"; then
2949 if test "${ac_cv_path_install+set}" = set; then :
2950 $as_echo_n "(cached) " >&6
2951 else
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953 for as_dir in $PATH
2954 do
2955 IFS=$as_save_IFS
2956 test -z "$as_dir" && as_dir=.
2957 # Account for people who put trailing slashes in PATH elements.
2958 case $as_dir/ in #((
2959 ./ | .// | /[cC]/* | \
2960 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2961 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2962 /usr/ucb/* ) ;;
2963 *)
2964 # OSF1 and SCO ODT 3.0 have their own names for install.
2965 # Don't use installbsd from OSF since it installs stuff as root
2966 # by default.
2967 for ac_prog in ginstall scoinst install; do
2968 for ac_exec_ext in '' $ac_executable_extensions; do
2969 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2970 if test $ac_prog = install &&
2971 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2972 # AIX install. It has an incompatible calling convention.
2973 :
2974 elif test $ac_prog = install &&
2975 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2976 # program-specific install script used by HP pwplus--don't use.
2977 :
2978 else
2979 rm -rf conftest.one conftest.two conftest.dir
2980 echo one > conftest.one
2981 echo two > conftest.two
2982 mkdir conftest.dir
2983 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2984 test -s conftest.one && test -s conftest.two &&
2985 test -s conftest.dir/conftest.one &&
2986 test -s conftest.dir/conftest.two
2987 then
2988 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2989 break 3
2990 fi
2991 fi
2992 fi
2993 done
2994 done
2995 ;;
2996 esac
2997
2998 done
2999 IFS=$as_save_IFS
3000
3001 rm -rf conftest.one conftest.two conftest.dir
3002
3003 fi
3004 if test "${ac_cv_path_install+set}" = set; then
3005 INSTALL=$ac_cv_path_install
3006 else
3007 # As a last resort, use the slow shell script. Don't cache a
3008 # value for INSTALL within a source directory, because that will
3009 # break other packages using the cache if that directory is
3010 # removed, or if the value is a relative name.
3011 INSTALL=$ac_install_sh
3012 fi
3013 fi
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3015 $as_echo "$INSTALL" >&6; }
3016
3017 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3018 # It thinks the first close brace ends the variable substitution.
3019 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3020
3021 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3022
3023 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3024
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3026 $as_echo_n "checking whether build environment is sane... " >&6; }
3027 # Just in case
3028 sleep 1
3029 echo timestamp > conftest.file
3030 # Reject unsafe characters in $srcdir or the absolute working directory
3031 # name. Accept space and tab only in the latter.
3032 am_lf='
3033 '
3034 case `pwd` in
3035 *[\\\"\#\$\&\'\`$am_lf]*)
3036 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3037 esac
3038 case $srcdir in
3039 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3040 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3041 esac
3042
3043 # Do `set' in a subshell so we don't clobber the current shell's
3044 # arguments. Must try -L first in case configure is actually a
3045 # symlink; some systems play weird games with the mod time of symlinks
3046 # (eg FreeBSD returns the mod time of the symlink's containing
3047 # directory).
3048 if (
3049 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3050 if test "$*" = "X"; then
3051 # -L didn't work.
3052 set X `ls -t "$srcdir/configure" conftest.file`
3053 fi
3054 rm -f conftest.file
3055 if test "$*" != "X $srcdir/configure conftest.file" \
3056 && test "$*" != "X conftest.file $srcdir/configure"; then
3057
3058 # If neither matched, then we have a broken ls. This can happen
3059 # if, for instance, CONFIG_SHELL is bash and it inherits a
3060 # broken ls alias from the environment. This has actually
3061 # happened. Such a system could not be considered "sane".
3062 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3063 alias in your environment" "$LINENO" 5
3064 fi
3065
3066 test "$2" = conftest.file
3067 )
3068 then
3069 # Ok.
3070 :
3071 else
3072 as_fn_error "newly created file is older than distributed files!
3073 Check your system clock" "$LINENO" 5
3074 fi
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3076 $as_echo "yes" >&6; }
3077 test "$program_prefix" != NONE &&
3078 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3079 # Use a double $ so make ignores it.
3080 test "$program_suffix" != NONE &&
3081 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3082 # Double any \ or $.
3083 # By default was `s,x,x', remove it if useless.
3084 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3085 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3086
3087 # expand $ac_aux_dir to an absolute path
3088 am_aux_dir=`cd $ac_aux_dir && pwd`
3089
3090 if test x"${MISSING+set}" != xset; then
3091 case $am_aux_dir in
3092 *\ * | *\ *)
3093 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3094 *)
3095 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3096 esac
3097 fi
3098 # Use eval to expand $SHELL
3099 if eval "$MISSING --run true"; then
3100 am_missing_run="$MISSING --run "
3101 else
3102 am_missing_run=
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3104 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3105 fi
3106
3107 if test x"${install_sh}" != xset; then
3108 case $am_aux_dir in
3109 *\ * | *\ *)
3110 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3111 *)
3112 install_sh="\${SHELL} $am_aux_dir/install-sh"
3113 esac
3114 fi
3115
3116 # Installed binaries are usually stripped using `strip' when the user
3117 # run `make install-strip'. However `strip' might not be the right
3118 # tool to use in cross-compilation environments, therefore Automake
3119 # will honor the `STRIP' environment variable to overrule this program.
3120 if test "$cross_compiling" != no; then
3121 if test -n "$ac_tool_prefix"; then
3122 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3123 set dummy ${ac_tool_prefix}strip; ac_word=$2
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3125 $as_echo_n "checking for $ac_word... " >&6; }
3126 if test "${ac_cv_prog_STRIP+set}" = set; then :
3127 $as_echo_n "(cached) " >&6
3128 else
3129 if test -n "$STRIP"; then
3130 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3131 else
3132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3133 for as_dir in $PATH
3134 do
3135 IFS=$as_save_IFS
3136 test -z "$as_dir" && as_dir=.
3137 for ac_exec_ext in '' $ac_executable_extensions; do
3138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3139 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3141 break 2
3142 fi
3143 done
3144 done
3145 IFS=$as_save_IFS
3146
3147 fi
3148 fi
3149 STRIP=$ac_cv_prog_STRIP
3150 if test -n "$STRIP"; then
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3152 $as_echo "$STRIP" >&6; }
3153 else
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3155 $as_echo "no" >&6; }
3156 fi
3157
3158
3159 fi
3160 if test -z "$ac_cv_prog_STRIP"; then
3161 ac_ct_STRIP=$STRIP
3162 # Extract the first word of "strip", so it can be a program name with args.
3163 set dummy strip; ac_word=$2
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3165 $as_echo_n "checking for $ac_word... " >&6; }
3166 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3167 $as_echo_n "(cached) " >&6
3168 else
3169 if test -n "$ac_ct_STRIP"; then
3170 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3171 else
3172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173 for as_dir in $PATH
3174 do
3175 IFS=$as_save_IFS
3176 test -z "$as_dir" && as_dir=.
3177 for ac_exec_ext in '' $ac_executable_extensions; do
3178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3179 ac_cv_prog_ac_ct_STRIP="strip"
3180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3181 break 2
3182 fi
3183 done
3184 done
3185 IFS=$as_save_IFS
3186
3187 fi
3188 fi
3189 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3190 if test -n "$ac_ct_STRIP"; then
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3192 $as_echo "$ac_ct_STRIP" >&6; }
3193 else
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3195 $as_echo "no" >&6; }
3196 fi
3197
3198 if test "x$ac_ct_STRIP" = x; then
3199 STRIP=":"
3200 else
3201 case $cross_compiling:$ac_tool_warned in
3202 yes:)
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3204 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3205 ac_tool_warned=yes ;;
3206 esac
3207 STRIP=$ac_ct_STRIP
3208 fi
3209 else
3210 STRIP="$ac_cv_prog_STRIP"
3211 fi
3212
3213 fi
3214 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3215
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3217 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3218 if test -z "$MKDIR_P"; then
3219 if test "${ac_cv_path_mkdir+set}" = set; then :
3220 $as_echo_n "(cached) " >&6
3221 else
3222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3223 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3224 do
3225 IFS=$as_save_IFS
3226 test -z "$as_dir" && as_dir=.
3227 for ac_prog in mkdir gmkdir; do
3228 for ac_exec_ext in '' $ac_executable_extensions; do
3229 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3230 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3231 'mkdir (GNU coreutils) '* | \
3232 'mkdir (coreutils) '* | \
3233 'mkdir (fileutils) '4.1*)
3234 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3235 break 3;;
3236 esac
3237 done
3238 done
3239 done
3240 IFS=$as_save_IFS
3241
3242 fi
3243
3244 if test "${ac_cv_path_mkdir+set}" = set; then
3245 MKDIR_P="$ac_cv_path_mkdir -p"
3246 else
3247 # As a last resort, use the slow shell script. Don't cache a
3248 # value for MKDIR_P within a source directory, because that will
3249 # break other packages using the cache if that directory is
3250 # removed, or if the value is a relative name.
3251 test -d ./--version && rmdir ./--version
3252 MKDIR_P="$ac_install_sh -d"
3253 fi
3254 fi
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3256 $as_echo "$MKDIR_P" >&6; }
3257
3258 mkdir_p="$MKDIR_P"
3259 case $mkdir_p in
3260 [\\/$]* | ?:[\\/]*) ;;
3261 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3262 esac
3263
3264 for ac_prog in gawk mawk nawk awk
3265 do
3266 # Extract the first word of "$ac_prog", so it can be a program name with args.
3267 set dummy $ac_prog; ac_word=$2
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3269 $as_echo_n "checking for $ac_word... " >&6; }
3270 if test "${ac_cv_prog_AWK+set}" = set; then :
3271 $as_echo_n "(cached) " >&6
3272 else
3273 if test -n "$AWK"; then
3274 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3275 else
3276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277 for as_dir in $PATH
3278 do
3279 IFS=$as_save_IFS
3280 test -z "$as_dir" && as_dir=.
3281 for ac_exec_ext in '' $ac_executable_extensions; do
3282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3283 ac_cv_prog_AWK="$ac_prog"
3284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3285 break 2
3286 fi
3287 done
3288 done
3289 IFS=$as_save_IFS
3290
3291 fi
3292 fi
3293 AWK=$ac_cv_prog_AWK
3294 if test -n "$AWK"; then
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3296 $as_echo "$AWK" >&6; }
3297 else
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299 $as_echo "no" >&6; }
3300 fi
3301
3302
3303 test -n "$AWK" && break
3304 done
3305
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3307 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3308 set x ${MAKE-make}
3309 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3310 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3311 $as_echo_n "(cached) " >&6
3312 else
3313 cat >conftest.make <<\_ACEOF
3314 SHELL = /bin/sh
3315 all:
3316 @echo '@@@%%%=$(MAKE)=@@@%%%'
3317 _ACEOF
3318 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3319 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3320 *@@@%%%=?*=@@@%%%*)
3321 eval ac_cv_prog_make_${ac_make}_set=yes;;
3322 *)
3323 eval ac_cv_prog_make_${ac_make}_set=no;;
3324 esac
3325 rm -f conftest.make
3326 fi
3327 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3329 $as_echo "yes" >&6; }
3330 SET_MAKE=
3331 else
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3333 $as_echo "no" >&6; }
3334 SET_MAKE="MAKE=${MAKE-make}"
3335 fi
3336
3337 rm -rf .tst 2>/dev/null
3338 mkdir .tst 2>/dev/null
3339 if test -d .tst; then
3340 am__leading_dot=.
3341 else
3342 am__leading_dot=_
3343 fi
3344 rmdir .tst 2>/dev/null
3345
3346 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3347 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3348 # is not polluted with repeated "-I."
3349 am__isrc=' -I$(srcdir)'
3350 # test to see if srcdir already configured
3351 if test -f $srcdir/config.status; then
3352 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3353 fi
3354 fi
3355
3356 # test whether we have cygpath
3357 if test -z "$CYGPATH_W"; then
3358 if (cygpath --version) >/dev/null 2>/dev/null; then
3359 CYGPATH_W='cygpath -w'
3360 else
3361 CYGPATH_W=echo
3362 fi
3363 fi
3364
3365
3366 # Define the identity of the package.
3367 PACKAGE='libgfortran'
3368 VERSION='0.3'
3369
3370
3371 # Some tools Automake needs.
3372
3373 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3374
3375
3376 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3377
3378
3379 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3380
3381
3382 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3383
3384
3385 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3386
3387 # We need awk for the "check" target. The system "awk" is bad on
3388 # some platforms.
3389 # Always define AMTAR for backward compatibility. Yes, it's still used
3390 # in the wild :-( We should find a proper way to deprecate it ...
3391 AMTAR='$${TAR-tar}'
3392
3393 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3394
3395
3396
3397
3398
3399
3400
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3402 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3403 # Check whether --enable-maintainer-mode was given.
3404 if test "${enable_maintainer_mode+set}" = set; then :
3405 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3406 else
3407 USE_MAINTAINER_MODE=no
3408 fi
3409
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3411 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3412 if test $USE_MAINTAINER_MODE = yes; then
3413 MAINTAINER_MODE_TRUE=
3414 MAINTAINER_MODE_FALSE='#'
3415 else
3416 MAINTAINER_MODE_TRUE='#'
3417 MAINTAINER_MODE_FALSE=
3418 fi
3419
3420 MAINT=$MAINTAINER_MODE_TRUE
3421
3422
3423 # Default to --enable-multilib
3424 # Check whether --enable-multilib was given.
3425 if test "${enable_multilib+set}" = set; then :
3426 enableval=$enable_multilib; case "$enableval" in
3427 yes) multilib=yes ;;
3428 no) multilib=no ;;
3429 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3430 esac
3431 else
3432 multilib=yes
3433 fi
3434
3435
3436 # We may get other options which we leave undocumented:
3437 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3438 # See config-ml.in if you want the gory details.
3439
3440 if test "$srcdir" = "."; then
3441 if test "$with_target_subdir" != "."; then
3442 multi_basedir="$srcdir/$with_multisrctop../.."
3443 else
3444 multi_basedir="$srcdir/$with_multisrctop.."
3445 fi
3446 else
3447 multi_basedir="$srcdir/.."
3448 fi
3449
3450
3451 # Even if the default multilib is not a cross compilation,
3452 # it may be that some of the other multilibs are.
3453 if test $cross_compiling = no && test $multilib = yes \
3454 && test "x${with_multisubdir}" != x ; then
3455 cross_compiling=maybe
3456 fi
3457
3458 ac_config_commands="$ac_config_commands default-1"
3459
3460
3461 # Handy for debugging:
3462 #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
3463
3464 # Are we being configured with some form of cross compiler?
3465 # NB: We don't actually need to know this just now, but when, say, a test
3466 # suite is included, we'll have to know.
3467 if test "$build" != "$host"; then
3468 LIBGFOR_IS_NATIVE=false
3469
3470 else
3471 LIBGFOR_IS_NATIVE=true
3472 fi
3473
3474 DEPDIR="${am__leading_dot}deps"
3475
3476 ac_config_commands="$ac_config_commands depfiles"
3477
3478
3479 am_make=${MAKE-make}
3480 cat > confinc << 'END'
3481 am__doit:
3482 @echo this is the am__doit target
3483 .PHONY: am__doit
3484 END
3485 # If we don't find an include directive, just comment out the code.
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3487 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3488 am__include="#"
3489 am__quote=
3490 _am_result=none
3491 # First try GNU make style include.
3492 echo "include confinc" > confmf
3493 # Ignore all kinds of additional output from `make'.
3494 case `$am_make -s -f confmf 2> /dev/null` in #(
3495 *the\ am__doit\ target*)
3496 am__include=include
3497 am__quote=
3498 _am_result=GNU
3499 ;;
3500 esac
3501 # Now try BSD make style include.
3502 if test "$am__include" = "#"; then
3503 echo '.include "confinc"' > confmf
3504 case `$am_make -s -f confmf 2> /dev/null` in #(
3505 *the\ am__doit\ target*)
3506 am__include=.include
3507 am__quote="\""
3508 _am_result=BSD
3509 ;;
3510 esac
3511 fi
3512
3513
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3515 $as_echo "$_am_result" >&6; }
3516 rm -f confinc confmf
3517
3518 # Check whether --enable-dependency-tracking was given.
3519 if test "${enable_dependency_tracking+set}" = set; then :
3520 enableval=$enable_dependency_tracking;
3521 fi
3522
3523 if test "x$enable_dependency_tracking" != xno; then
3524 am_depcomp="$ac_aux_dir/depcomp"
3525 AMDEPBACKSLASH='\'
3526 am__nodep='_no'
3527 fi
3528 if test "x$enable_dependency_tracking" != xno; then
3529 AMDEP_TRUE=
3530 AMDEP_FALSE='#'
3531 else
3532 AMDEP_TRUE='#'
3533 AMDEP_FALSE=
3534 fi
3535
3536
3537 ac_ext=c
3538 ac_cpp='$CPP $CPPFLAGS'
3539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3542 if test -n "$ac_tool_prefix"; then
3543 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3544 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3546 $as_echo_n "checking for $ac_word... " >&6; }
3547 if test "${ac_cv_prog_CC+set}" = set; then :
3548 $as_echo_n "(cached) " >&6
3549 else
3550 if test -n "$CC"; then
3551 ac_cv_prog_CC="$CC" # Let the user override the test.
3552 else
3553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554 for as_dir in $PATH
3555 do
3556 IFS=$as_save_IFS
3557 test -z "$as_dir" && as_dir=.
3558 for ac_exec_ext in '' $ac_executable_extensions; do
3559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3560 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3562 break 2
3563 fi
3564 done
3565 done
3566 IFS=$as_save_IFS
3567
3568 fi
3569 fi
3570 CC=$ac_cv_prog_CC
3571 if test -n "$CC"; then
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3573 $as_echo "$CC" >&6; }
3574 else
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3576 $as_echo "no" >&6; }
3577 fi
3578
3579
3580 fi
3581 if test -z "$ac_cv_prog_CC"; then
3582 ac_ct_CC=$CC
3583 # Extract the first word of "gcc", so it can be a program name with args.
3584 set dummy gcc; ac_word=$2
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3586 $as_echo_n "checking for $ac_word... " >&6; }
3587 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3588 $as_echo_n "(cached) " >&6
3589 else
3590 if test -n "$ac_ct_CC"; then
3591 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3592 else
3593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3594 for as_dir in $PATH
3595 do
3596 IFS=$as_save_IFS
3597 test -z "$as_dir" && as_dir=.
3598 for ac_exec_ext in '' $ac_executable_extensions; do
3599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3600 ac_cv_prog_ac_ct_CC="gcc"
3601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3602 break 2
3603 fi
3604 done
3605 done
3606 IFS=$as_save_IFS
3607
3608 fi
3609 fi
3610 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3611 if test -n "$ac_ct_CC"; then
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3613 $as_echo "$ac_ct_CC" >&6; }
3614 else
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3616 $as_echo "no" >&6; }
3617 fi
3618
3619 if test "x$ac_ct_CC" = x; then
3620 CC=""
3621 else
3622 case $cross_compiling:$ac_tool_warned in
3623 yes:)
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3625 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3626 ac_tool_warned=yes ;;
3627 esac
3628 CC=$ac_ct_CC
3629 fi
3630 else
3631 CC="$ac_cv_prog_CC"
3632 fi
3633
3634 if test -z "$CC"; then
3635 if test -n "$ac_tool_prefix"; then
3636 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3637 set dummy ${ac_tool_prefix}cc; ac_word=$2
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3639 $as_echo_n "checking for $ac_word... " >&6; }
3640 if test "${ac_cv_prog_CC+set}" = set; then :
3641 $as_echo_n "(cached) " >&6
3642 else
3643 if test -n "$CC"; then
3644 ac_cv_prog_CC="$CC" # Let the user override the test.
3645 else
3646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3647 for as_dir in $PATH
3648 do
3649 IFS=$as_save_IFS
3650 test -z "$as_dir" && as_dir=.
3651 for ac_exec_ext in '' $ac_executable_extensions; do
3652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3653 ac_cv_prog_CC="${ac_tool_prefix}cc"
3654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3655 break 2
3656 fi
3657 done
3658 done
3659 IFS=$as_save_IFS
3660
3661 fi
3662 fi
3663 CC=$ac_cv_prog_CC
3664 if test -n "$CC"; then
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3666 $as_echo "$CC" >&6; }
3667 else
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3669 $as_echo "no" >&6; }
3670 fi
3671
3672
3673 fi
3674 fi
3675 if test -z "$CC"; then
3676 # Extract the first word of "cc", so it can be a program name with args.
3677 set dummy cc; ac_word=$2
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3679 $as_echo_n "checking for $ac_word... " >&6; }
3680 if test "${ac_cv_prog_CC+set}" = set; then :
3681 $as_echo_n "(cached) " >&6
3682 else
3683 if test -n "$CC"; then
3684 ac_cv_prog_CC="$CC" # Let the user override the test.
3685 else
3686 ac_prog_rejected=no
3687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3688 for as_dir in $PATH
3689 do
3690 IFS=$as_save_IFS
3691 test -z "$as_dir" && as_dir=.
3692 for ac_exec_ext in '' $ac_executable_extensions; do
3693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3694 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3695 ac_prog_rejected=yes
3696 continue
3697 fi
3698 ac_cv_prog_CC="cc"
3699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3700 break 2
3701 fi
3702 done
3703 done
3704 IFS=$as_save_IFS
3705
3706 if test $ac_prog_rejected = yes; then
3707 # We found a bogon in the path, so make sure we never use it.
3708 set dummy $ac_cv_prog_CC
3709 shift
3710 if test $# != 0; then
3711 # We chose a different compiler from the bogus one.
3712 # However, it has the same basename, so the bogon will be chosen
3713 # first if we set CC to just the basename; use the full file name.
3714 shift
3715 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3716 fi
3717 fi
3718 fi
3719 fi
3720 CC=$ac_cv_prog_CC
3721 if test -n "$CC"; then
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3723 $as_echo "$CC" >&6; }
3724 else
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3726 $as_echo "no" >&6; }
3727 fi
3728
3729
3730 fi
3731 if test -z "$CC"; then
3732 if test -n "$ac_tool_prefix"; then
3733 for ac_prog in cl.exe
3734 do
3735 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3736 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3738 $as_echo_n "checking for $ac_word... " >&6; }
3739 if test "${ac_cv_prog_CC+set}" = set; then :
3740 $as_echo_n "(cached) " >&6
3741 else
3742 if test -n "$CC"; then
3743 ac_cv_prog_CC="$CC" # Let the user override the test.
3744 else
3745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3746 for as_dir in $PATH
3747 do
3748 IFS=$as_save_IFS
3749 test -z "$as_dir" && as_dir=.
3750 for ac_exec_ext in '' $ac_executable_extensions; do
3751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3752 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3754 break 2
3755 fi
3756 done
3757 done
3758 IFS=$as_save_IFS
3759
3760 fi
3761 fi
3762 CC=$ac_cv_prog_CC
3763 if test -n "$CC"; then
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3765 $as_echo "$CC" >&6; }
3766 else
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3768 $as_echo "no" >&6; }
3769 fi
3770
3771
3772 test -n "$CC" && break
3773 done
3774 fi
3775 if test -z "$CC"; then
3776 ac_ct_CC=$CC
3777 for ac_prog in cl.exe
3778 do
3779 # Extract the first word of "$ac_prog", so it can be a program name with args.
3780 set dummy $ac_prog; ac_word=$2
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3782 $as_echo_n "checking for $ac_word... " >&6; }
3783 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3784 $as_echo_n "(cached) " >&6
3785 else
3786 if test -n "$ac_ct_CC"; then
3787 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3788 else
3789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3790 for as_dir in $PATH
3791 do
3792 IFS=$as_save_IFS
3793 test -z "$as_dir" && as_dir=.
3794 for ac_exec_ext in '' $ac_executable_extensions; do
3795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3796 ac_cv_prog_ac_ct_CC="$ac_prog"
3797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3798 break 2
3799 fi
3800 done
3801 done
3802 IFS=$as_save_IFS
3803
3804 fi
3805 fi
3806 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3807 if test -n "$ac_ct_CC"; then
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3809 $as_echo "$ac_ct_CC" >&6; }
3810 else
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3812 $as_echo "no" >&6; }
3813 fi
3814
3815
3816 test -n "$ac_ct_CC" && break
3817 done
3818
3819 if test "x$ac_ct_CC" = x; then
3820 CC=""
3821 else
3822 case $cross_compiling:$ac_tool_warned in
3823 yes:)
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3825 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3826 ac_tool_warned=yes ;;
3827 esac
3828 CC=$ac_ct_CC
3829 fi
3830 fi
3831
3832 fi
3833
3834
3835 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3836 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3837 as_fn_error "no acceptable C compiler found in \$PATH
3838 See \`config.log' for more details." "$LINENO" 5; }
3839
3840 # Provide some information about the compiler.
3841 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3842 set X $ac_compile
3843 ac_compiler=$2
3844 for ac_option in --version -v -V -qversion; do
3845 { { ac_try="$ac_compiler $ac_option >&5"
3846 case "(($ac_try" in
3847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3848 *) ac_try_echo=$ac_try;;
3849 esac
3850 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3851 $as_echo "$ac_try_echo"; } >&5
3852 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3853 ac_status=$?
3854 if test -s conftest.err; then
3855 sed '10a\
3856 ... rest of stderr output deleted ...
3857 10q' conftest.err >conftest.er1
3858 cat conftest.er1 >&5
3859 rm -f conftest.er1 conftest.err
3860 fi
3861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3862 test $ac_status = 0; }
3863 done
3864
3865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3866 /* end confdefs.h. */
3867
3868 int
3869 main ()
3870 {
3871
3872 ;
3873 return 0;
3874 }
3875 _ACEOF
3876 # FIXME: Cleanup?
3877 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3878 (eval $ac_link) 2>&5
3879 ac_status=$?
3880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3881 test $ac_status = 0; }; then :
3882 gcc_no_link=no
3883 else
3884 gcc_no_link=yes
3885 fi
3886 if test x$gcc_no_link = xyes; then
3887 # Setting cross_compile will disable run tests; it will
3888 # also disable AC_CHECK_FILE but that's generally
3889 # correct if we can't link.
3890 cross_compiling=yes
3891 EXEEXT=
3892 else
3893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3894 /* end confdefs.h. */
3895
3896 int
3897 main ()
3898 {
3899
3900 ;
3901 return 0;
3902 }
3903 _ACEOF
3904 ac_clean_files_save=$ac_clean_files
3905 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3906 # Try to create an executable without -o first, disregard a.out.
3907 # It will help us diagnose broken compilers, and finding out an intuition
3908 # of exeext.
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3910 $as_echo_n "checking for C compiler default output file name... " >&6; }
3911 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3912
3913 # The possible output files:
3914 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3915
3916 ac_rmfiles=
3917 for ac_file in $ac_files
3918 do
3919 case $ac_file in
3920 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3921 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3922 esac
3923 done
3924 rm -f $ac_rmfiles
3925
3926 if { { ac_try="$ac_link_default"
3927 case "(($ac_try" in
3928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3929 *) ac_try_echo=$ac_try;;
3930 esac
3931 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3932 $as_echo "$ac_try_echo"; } >&5
3933 (eval "$ac_link_default") 2>&5
3934 ac_status=$?
3935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3936 test $ac_status = 0; }; then :
3937 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3938 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3939 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3940 # so that the user can short-circuit this test for compilers unknown to
3941 # Autoconf.
3942 for ac_file in $ac_files ''
3943 do
3944 test -f "$ac_file" || continue
3945 case $ac_file in
3946 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3947 ;;
3948 [ab].out )
3949 # We found the default executable, but exeext='' is most
3950 # certainly right.
3951 break;;
3952 *.* )
3953 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3954 then :; else
3955 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3956 fi
3957 # We set ac_cv_exeext here because the later test for it is not
3958 # safe: cross compilers may not add the suffix if given an `-o'
3959 # argument, so we may need to know it at that point already.
3960 # Even if this section looks crufty: it has the advantage of
3961 # actually working.
3962 break;;
3963 * )
3964 break;;
3965 esac
3966 done
3967 test "$ac_cv_exeext" = no && ac_cv_exeext=
3968
3969 else
3970 ac_file=''
3971 fi
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3973 $as_echo "$ac_file" >&6; }
3974 if test -z "$ac_file"; then :
3975 $as_echo "$as_me: failed program was:" >&5
3976 sed 's/^/| /' conftest.$ac_ext >&5
3977
3978 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3979 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3980 { as_fn_set_status 77
3981 as_fn_error "C compiler cannot create executables
3982 See \`config.log' for more details." "$LINENO" 5; }; }
3983 fi
3984 ac_exeext=$ac_cv_exeext
3985
3986 # Check that the compiler produces executables we can run. If not, either
3987 # the compiler is broken, or we cross compile.
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3989 $as_echo_n "checking whether the C compiler works... " >&6; }
3990 # If not cross compiling, check that we can run a simple program.
3991 if test "$cross_compiling" != yes; then
3992 if { ac_try='./$ac_file'
3993 { { case "(($ac_try" in
3994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3995 *) ac_try_echo=$ac_try;;
3996 esac
3997 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3998 $as_echo "$ac_try_echo"; } >&5
3999 (eval "$ac_try") 2>&5
4000 ac_status=$?
4001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4002 test $ac_status = 0; }; }; then
4003 cross_compiling=no
4004 else
4005 if test "$cross_compiling" = maybe; then
4006 cross_compiling=yes
4007 else
4008 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4009 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4010 as_fn_error "cannot run C compiled programs.
4011 If you meant to cross compile, use \`--host'.
4012 See \`config.log' for more details." "$LINENO" 5; }
4013 fi
4014 fi
4015 fi
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4017 $as_echo "yes" >&6; }
4018
4019 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4020 ac_clean_files=$ac_clean_files_save
4021 # Check that the compiler produces executables we can run. If not, either
4022 # the compiler is broken, or we cross compile.
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4024 $as_echo_n "checking whether we are cross compiling... " >&6; }
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4026 $as_echo "$cross_compiling" >&6; }
4027
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4029 $as_echo_n "checking for suffix of executables... " >&6; }
4030 if { { ac_try="$ac_link"
4031 case "(($ac_try" in
4032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033 *) ac_try_echo=$ac_try;;
4034 esac
4035 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4036 $as_echo "$ac_try_echo"; } >&5
4037 (eval "$ac_link") 2>&5
4038 ac_status=$?
4039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4040 test $ac_status = 0; }; then :
4041 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4042 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4043 # work properly (i.e., refer to `conftest.exe'), while it won't with
4044 # `rm'.
4045 for ac_file in conftest.exe conftest conftest.*; do
4046 test -f "$ac_file" || continue
4047 case $ac_file in
4048 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4049 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4050 break;;
4051 * ) break;;
4052 esac
4053 done
4054 else
4055 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4056 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4057 as_fn_error "cannot compute suffix of executables: cannot compile and link
4058 See \`config.log' for more details." "$LINENO" 5; }
4059 fi
4060 rm -f conftest$ac_cv_exeext
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4062 $as_echo "$ac_cv_exeext" >&6; }
4063
4064 rm -f conftest.$ac_ext
4065 EXEEXT=$ac_cv_exeext
4066 ac_exeext=$EXEEXT
4067 fi
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4069 $as_echo_n "checking for suffix of object files... " >&6; }
4070 if test "${ac_cv_objext+set}" = set; then :
4071 $as_echo_n "(cached) " >&6
4072 else
4073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4074 /* end confdefs.h. */
4075
4076 int
4077 main ()
4078 {
4079
4080 ;
4081 return 0;
4082 }
4083 _ACEOF
4084 rm -f conftest.o conftest.obj
4085 if { { ac_try="$ac_compile"
4086 case "(($ac_try" in
4087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4088 *) ac_try_echo=$ac_try;;
4089 esac
4090 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4091 $as_echo "$ac_try_echo"; } >&5
4092 (eval "$ac_compile") 2>&5
4093 ac_status=$?
4094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4095 test $ac_status = 0; }; then :
4096 for ac_file in conftest.o conftest.obj conftest.*; do
4097 test -f "$ac_file" || continue;
4098 case $ac_file in
4099 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4100 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4101 break;;
4102 esac
4103 done
4104 else
4105 $as_echo "$as_me: failed program was:" >&5
4106 sed 's/^/| /' conftest.$ac_ext >&5
4107
4108 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4109 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4110 as_fn_error "cannot compute suffix of object files: cannot compile
4111 See \`config.log' for more details." "$LINENO" 5; }
4112 fi
4113 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4114 fi
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4116 $as_echo "$ac_cv_objext" >&6; }
4117 OBJEXT=$ac_cv_objext
4118 ac_objext=$OBJEXT
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4120 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4121 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4122 $as_echo_n "(cached) " >&6
4123 else
4124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4125 /* end confdefs.h. */
4126
4127 int
4128 main ()
4129 {
4130 #ifndef __GNUC__
4131 choke me
4132 #endif
4133
4134 ;
4135 return 0;
4136 }
4137 _ACEOF
4138 if ac_fn_c_try_compile "$LINENO"; then :
4139 ac_compiler_gnu=yes
4140 else
4141 ac_compiler_gnu=no
4142 fi
4143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4144 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4145
4146 fi
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4148 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4149 if test $ac_compiler_gnu = yes; then
4150 GCC=yes
4151 else
4152 GCC=
4153 fi
4154 ac_test_CFLAGS=${CFLAGS+set}
4155 ac_save_CFLAGS=$CFLAGS
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4157 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4158 if test "${ac_cv_prog_cc_g+set}" = set; then :
4159 $as_echo_n "(cached) " >&6
4160 else
4161 ac_save_c_werror_flag=$ac_c_werror_flag
4162 ac_c_werror_flag=yes
4163 ac_cv_prog_cc_g=no
4164 CFLAGS="-g"
4165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4166 /* end confdefs.h. */
4167
4168 int
4169 main ()
4170 {
4171
4172 ;
4173 return 0;
4174 }
4175 _ACEOF
4176 if ac_fn_c_try_compile "$LINENO"; then :
4177 ac_cv_prog_cc_g=yes
4178 else
4179 CFLAGS=""
4180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4181 /* end confdefs.h. */
4182
4183 int
4184 main ()
4185 {
4186
4187 ;
4188 return 0;
4189 }
4190 _ACEOF
4191 if ac_fn_c_try_compile "$LINENO"; then :
4192
4193 else
4194 ac_c_werror_flag=$ac_save_c_werror_flag
4195 CFLAGS="-g"
4196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4197 /* end confdefs.h. */
4198
4199 int
4200 main ()
4201 {
4202
4203 ;
4204 return 0;
4205 }
4206 _ACEOF
4207 if ac_fn_c_try_compile "$LINENO"; then :
4208 ac_cv_prog_cc_g=yes
4209 fi
4210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4211 fi
4212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4213 fi
4214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4215 ac_c_werror_flag=$ac_save_c_werror_flag
4216 fi
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4218 $as_echo "$ac_cv_prog_cc_g" >&6; }
4219 if test "$ac_test_CFLAGS" = set; then
4220 CFLAGS=$ac_save_CFLAGS
4221 elif test $ac_cv_prog_cc_g = yes; then
4222 if test "$GCC" = yes; then
4223 CFLAGS="-g -O2"
4224 else
4225 CFLAGS="-g"
4226 fi
4227 else
4228 if test "$GCC" = yes; then
4229 CFLAGS="-O2"
4230 else
4231 CFLAGS=
4232 fi
4233 fi
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4235 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4236 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4237 $as_echo_n "(cached) " >&6
4238 else
4239 ac_cv_prog_cc_c89=no
4240 ac_save_CC=$CC
4241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4242 /* end confdefs.h. */
4243 #include <stdarg.h>
4244 #include <stdio.h>
4245 #include <sys/types.h>
4246 #include <sys/stat.h>
4247 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4248 struct buf { int x; };
4249 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4250 static char *e (p, i)
4251 char **p;
4252 int i;
4253 {
4254 return p[i];
4255 }
4256 static char *f (char * (*g) (char **, int), char **p, ...)
4257 {
4258 char *s;
4259 va_list v;
4260 va_start (v,p);
4261 s = g (p, va_arg (v,int));
4262 va_end (v);
4263 return s;
4264 }
4265
4266 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4267 function prototypes and stuff, but not '\xHH' hex character constants.
4268 These don't provoke an error unfortunately, instead are silently treated
4269 as 'x'. The following induces an error, until -std is added to get
4270 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4271 array size at least. It's necessary to write '\x00'==0 to get something
4272 that's true only with -std. */
4273 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4274
4275 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4276 inside strings and character constants. */
4277 #define FOO(x) 'x'
4278 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4279
4280 int test (int i, double x);
4281 struct s1 {int (*f) (int a);};
4282 struct s2 {int (*f) (double a);};
4283 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4284 int argc;
4285 char **argv;
4286 int
4287 main ()
4288 {
4289 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4290 ;
4291 return 0;
4292 }
4293 _ACEOF
4294 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4295 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4296 do
4297 CC="$ac_save_CC $ac_arg"
4298 if ac_fn_c_try_compile "$LINENO"; then :
4299 ac_cv_prog_cc_c89=$ac_arg
4300 fi
4301 rm -f core conftest.err conftest.$ac_objext
4302 test "x$ac_cv_prog_cc_c89" != "xno" && break
4303 done
4304 rm -f conftest.$ac_ext
4305 CC=$ac_save_CC
4306
4307 fi
4308 # AC_CACHE_VAL
4309 case "x$ac_cv_prog_cc_c89" in
4310 x)
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4312 $as_echo "none needed" >&6; } ;;
4313 xno)
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4315 $as_echo "unsupported" >&6; } ;;
4316 *)
4317 CC="$CC $ac_cv_prog_cc_c89"
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4319 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4320 esac
4321 if test "x$ac_cv_prog_cc_c89" != xno; then :
4322
4323 fi
4324
4325 ac_ext=c
4326 ac_cpp='$CPP $CPPFLAGS'
4327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4330
4331 depcc="$CC" am_compiler_list=
4332
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4334 $as_echo_n "checking dependency style of $depcc... " >&6; }
4335 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4336 $as_echo_n "(cached) " >&6
4337 else
4338 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4339 # We make a subdir and do the tests there. Otherwise we can end up
4340 # making bogus files that we don't know about and never remove. For
4341 # instance it was reported that on HP-UX the gcc test will end up
4342 # making a dummy file named `D' -- because `-MD' means `put the output
4343 # in D'.
4344 rm -rf conftest.dir
4345 mkdir conftest.dir
4346 # Copy depcomp to subdir because otherwise we won't find it if we're
4347 # using a relative directory.
4348 cp "$am_depcomp" conftest.dir
4349 cd conftest.dir
4350 # We will build objects and dependencies in a subdirectory because
4351 # it helps to detect inapplicable dependency modes. For instance
4352 # both Tru64's cc and ICC support -MD to output dependencies as a
4353 # side effect of compilation, but ICC will put the dependencies in
4354 # the current directory while Tru64 will put them in the object
4355 # directory.
4356 mkdir sub
4357
4358 am_cv_CC_dependencies_compiler_type=none
4359 if test "$am_compiler_list" = ""; then
4360 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4361 fi
4362 am__universal=false
4363 case " $depcc " in #(
4364 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4365 esac
4366
4367 for depmode in $am_compiler_list; do
4368 # Setup a source with many dependencies, because some compilers
4369 # like to wrap large dependency lists on column 80 (with \), and
4370 # we should not choose a depcomp mode which is confused by this.
4371 #
4372 # We need to recreate these files for each test, as the compiler may
4373 # overwrite some of them when testing with obscure command lines.
4374 # This happens at least with the AIX C compiler.
4375 : > sub/conftest.c
4376 for i in 1 2 3 4 5 6; do
4377 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4378 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4379 # Solaris 8's {/usr,}/bin/sh.
4380 touch sub/conftst$i.h
4381 done
4382 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4383
4384 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4385 # mode. It turns out that the SunPro C++ compiler does not properly
4386 # handle `-M -o', and we need to detect this. Also, some Intel
4387 # versions had trouble with output in subdirs
4388 am__obj=sub/conftest.${OBJEXT-o}
4389 am__minus_obj="-o $am__obj"
4390 case $depmode in
4391 gcc)
4392 # This depmode causes a compiler race in universal mode.
4393 test "$am__universal" = false || continue
4394 ;;
4395 nosideeffect)
4396 # after this tag, mechanisms are not by side-effect, so they'll
4397 # only be used when explicitly requested
4398 if test "x$enable_dependency_tracking" = xyes; then
4399 continue
4400 else
4401 break
4402 fi
4403 ;;
4404 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4405 # This compiler won't grok `-c -o', but also, the minuso test has
4406 # not run yet. These depmodes are late enough in the game, and
4407 # so weak that their functioning should not be impacted.
4408 am__obj=conftest.${OBJEXT-o}
4409 am__minus_obj=
4410 ;;
4411 none) break ;;
4412 esac
4413 if depmode=$depmode \
4414 source=sub/conftest.c object=$am__obj \
4415 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4416 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4417 >/dev/null 2>conftest.err &&
4418 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4419 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4420 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4421 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4422 # icc doesn't choke on unknown options, it will just issue warnings
4423 # or remarks (even with -Werror). So we grep stderr for any message
4424 # that says an option was ignored or not supported.
4425 # When given -MP, icc 7.0 and 7.1 complain thusly:
4426 # icc: Command line warning: ignoring option '-M'; no argument required
4427 # The diagnosis changed in icc 8.0:
4428 # icc: Command line remark: option '-MP' not supported
4429 if (grep 'ignoring option' conftest.err ||
4430 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4431 am_cv_CC_dependencies_compiler_type=$depmode
4432 break
4433 fi
4434 fi
4435 done
4436
4437 cd ..
4438 rm -rf conftest.dir
4439 else
4440 am_cv_CC_dependencies_compiler_type=none
4441 fi
4442
4443 fi
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4445 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4446 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4447
4448 if
4449 test "x$enable_dependency_tracking" != xno \
4450 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4451 am__fastdepCC_TRUE=
4452 am__fastdepCC_FALSE='#'
4453 else
4454 am__fastdepCC_TRUE='#'
4455 am__fastdepCC_FALSE=
4456 fi
4457
4458
4459
4460 ac_ext=c
4461 ac_cpp='$CPP $CPPFLAGS'
4462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4466 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4467 # On Suns, sometimes $CPP names a directory.
4468 if test -n "$CPP" && test -d "$CPP"; then
4469 CPP=
4470 fi
4471 if test -z "$CPP"; then
4472 if test "${ac_cv_prog_CPP+set}" = set; then :
4473 $as_echo_n "(cached) " >&6
4474 else
4475 # Double quotes because CPP needs to be expanded
4476 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4477 do
4478 ac_preproc_ok=false
4479 for ac_c_preproc_warn_flag in '' yes
4480 do
4481 # Use a header file that comes with gcc, so configuring glibc
4482 # with a fresh cross-compiler works.
4483 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4484 # <limits.h> exists even on freestanding compilers.
4485 # On the NeXT, cc -E runs the code through the compiler's parser,
4486 # not just through cpp. "Syntax error" is here to catch this case.
4487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4488 /* end confdefs.h. */
4489 #ifdef __STDC__
4490 # include <limits.h>
4491 #else
4492 # include <assert.h>
4493 #endif
4494 Syntax error
4495 _ACEOF
4496 if ac_fn_c_try_cpp "$LINENO"; then :
4497
4498 else
4499 # Broken: fails on valid input.
4500 continue
4501 fi
4502 rm -f conftest.err conftest.$ac_ext
4503
4504 # OK, works on sane cases. Now check whether nonexistent headers
4505 # can be detected and how.
4506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4507 /* end confdefs.h. */
4508 #include <ac_nonexistent.h>
4509 _ACEOF
4510 if ac_fn_c_try_cpp "$LINENO"; then :
4511 # Broken: success on invalid input.
4512 continue
4513 else
4514 # Passes both tests.
4515 ac_preproc_ok=:
4516 break
4517 fi
4518 rm -f conftest.err conftest.$ac_ext
4519
4520 done
4521 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4522 rm -f conftest.err conftest.$ac_ext
4523 if $ac_preproc_ok; then :
4524 break
4525 fi
4526
4527 done
4528 ac_cv_prog_CPP=$CPP
4529
4530 fi
4531 CPP=$ac_cv_prog_CPP
4532 else
4533 ac_cv_prog_CPP=$CPP
4534 fi
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4536 $as_echo "$CPP" >&6; }
4537 ac_preproc_ok=false
4538 for ac_c_preproc_warn_flag in '' yes
4539 do
4540 # Use a header file that comes with gcc, so configuring glibc
4541 # with a fresh cross-compiler works.
4542 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4543 # <limits.h> exists even on freestanding compilers.
4544 # On the NeXT, cc -E runs the code through the compiler's parser,
4545 # not just through cpp. "Syntax error" is here to catch this case.
4546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4547 /* end confdefs.h. */
4548 #ifdef __STDC__
4549 # include <limits.h>
4550 #else
4551 # include <assert.h>
4552 #endif
4553 Syntax error
4554 _ACEOF
4555 if ac_fn_c_try_cpp "$LINENO"; then :
4556
4557 else
4558 # Broken: fails on valid input.
4559 continue
4560 fi
4561 rm -f conftest.err conftest.$ac_ext
4562
4563 # OK, works on sane cases. Now check whether nonexistent headers
4564 # can be detected and how.
4565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4566 /* end confdefs.h. */
4567 #include <ac_nonexistent.h>
4568 _ACEOF
4569 if ac_fn_c_try_cpp "$LINENO"; then :
4570 # Broken: success on invalid input.
4571 continue
4572 else
4573 # Passes both tests.
4574 ac_preproc_ok=:
4575 break
4576 fi
4577 rm -f conftest.err conftest.$ac_ext
4578
4579 done
4580 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4581 rm -f conftest.err conftest.$ac_ext
4582 if $ac_preproc_ok; then :
4583
4584 else
4585 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4586 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4587 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4588 See \`config.log' for more details." "$LINENO" 5; }
4589 fi
4590
4591 ac_ext=c
4592 ac_cpp='$CPP $CPPFLAGS'
4593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4596
4597
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4599 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4600 if test "${ac_cv_path_GREP+set}" = set; then :
4601 $as_echo_n "(cached) " >&6
4602 else
4603 if test -z "$GREP"; then
4604 ac_path_GREP_found=false
4605 # Loop through the user's path and test for each of PROGNAME-LIST
4606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4608 do
4609 IFS=$as_save_IFS
4610 test -z "$as_dir" && as_dir=.
4611 for ac_prog in grep ggrep; do
4612 for ac_exec_ext in '' $ac_executable_extensions; do
4613 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4614 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4615 # Check for GNU ac_path_GREP and select it if it is found.
4616 # Check for GNU $ac_path_GREP
4617 case `"$ac_path_GREP" --version 2>&1` in
4618 *GNU*)
4619 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4620 *)
4621 ac_count=0
4622 $as_echo_n 0123456789 >"conftest.in"
4623 while :
4624 do
4625 cat "conftest.in" "conftest.in" >"conftest.tmp"
4626 mv "conftest.tmp" "conftest.in"
4627 cp "conftest.in" "conftest.nl"
4628 $as_echo 'GREP' >> "conftest.nl"
4629 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4630 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4631 as_fn_arith $ac_count + 1 && ac_count=$as_val
4632 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4633 # Best one so far, save it but keep looking for a better one
4634 ac_cv_path_GREP="$ac_path_GREP"
4635 ac_path_GREP_max=$ac_count
4636 fi
4637 # 10*(2^10) chars as input seems more than enough
4638 test $ac_count -gt 10 && break
4639 done
4640 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4641 esac
4642
4643 $ac_path_GREP_found && break 3
4644 done
4645 done
4646 done
4647 IFS=$as_save_IFS
4648 if test -z "$ac_cv_path_GREP"; then
4649 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4650 fi
4651 else
4652 ac_cv_path_GREP=$GREP
4653 fi
4654
4655 fi
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4657 $as_echo "$ac_cv_path_GREP" >&6; }
4658 GREP="$ac_cv_path_GREP"
4659
4660
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4662 $as_echo_n "checking for egrep... " >&6; }
4663 if test "${ac_cv_path_EGREP+set}" = set; then :
4664 $as_echo_n "(cached) " >&6
4665 else
4666 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4667 then ac_cv_path_EGREP="$GREP -E"
4668 else
4669 if test -z "$EGREP"; then
4670 ac_path_EGREP_found=false
4671 # Loop through the user's path and test for each of PROGNAME-LIST
4672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4673 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4674 do
4675 IFS=$as_save_IFS
4676 test -z "$as_dir" && as_dir=.
4677 for ac_prog in egrep; do
4678 for ac_exec_ext in '' $ac_executable_extensions; do
4679 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4680 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4681 # Check for GNU ac_path_EGREP and select it if it is found.
4682 # Check for GNU $ac_path_EGREP
4683 case `"$ac_path_EGREP" --version 2>&1` in
4684 *GNU*)
4685 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4686 *)
4687 ac_count=0
4688 $as_echo_n 0123456789 >"conftest.in"
4689 while :
4690 do
4691 cat "conftest.in" "conftest.in" >"conftest.tmp"
4692 mv "conftest.tmp" "conftest.in"
4693 cp "conftest.in" "conftest.nl"
4694 $as_echo 'EGREP' >> "conftest.nl"
4695 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4696 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4697 as_fn_arith $ac_count + 1 && ac_count=$as_val
4698 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4699 # Best one so far, save it but keep looking for a better one
4700 ac_cv_path_EGREP="$ac_path_EGREP"
4701 ac_path_EGREP_max=$ac_count
4702 fi
4703 # 10*(2^10) chars as input seems more than enough
4704 test $ac_count -gt 10 && break
4705 done
4706 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4707 esac
4708
4709 $ac_path_EGREP_found && break 3
4710 done
4711 done
4712 done
4713 IFS=$as_save_IFS
4714 if test -z "$ac_cv_path_EGREP"; then
4715 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4716 fi
4717 else
4718 ac_cv_path_EGREP=$EGREP
4719 fi
4720
4721 fi
4722 fi
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4724 $as_echo "$ac_cv_path_EGREP" >&6; }
4725 EGREP="$ac_cv_path_EGREP"
4726
4727
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4729 $as_echo_n "checking for ANSI C header files... " >&6; }
4730 if test "${ac_cv_header_stdc+set}" = set; then :
4731 $as_echo_n "(cached) " >&6
4732 else
4733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4734 /* end confdefs.h. */
4735 #include <stdlib.h>
4736 #include <stdarg.h>
4737 #include <string.h>
4738 #include <float.h>
4739
4740 int
4741 main ()
4742 {
4743
4744 ;
4745 return 0;
4746 }
4747 _ACEOF
4748 if ac_fn_c_try_compile "$LINENO"; then :
4749 ac_cv_header_stdc=yes
4750 else
4751 ac_cv_header_stdc=no
4752 fi
4753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4754
4755 if test $ac_cv_header_stdc = yes; then
4756 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4758 /* end confdefs.h. */
4759 #include <string.h>
4760
4761 _ACEOF
4762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4763 $EGREP "memchr" >/dev/null 2>&1; then :
4764
4765 else
4766 ac_cv_header_stdc=no
4767 fi
4768 rm -f conftest*
4769
4770 fi
4771
4772 if test $ac_cv_header_stdc = yes; then
4773 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4775 /* end confdefs.h. */
4776 #include <stdlib.h>
4777
4778 _ACEOF
4779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4780 $EGREP "free" >/dev/null 2>&1; then :
4781
4782 else
4783 ac_cv_header_stdc=no
4784 fi
4785 rm -f conftest*
4786
4787 fi
4788
4789 if test $ac_cv_header_stdc = yes; then
4790 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4791 if test "$cross_compiling" = yes; then :
4792 :
4793 else
4794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4795 /* end confdefs.h. */
4796 #include <ctype.h>
4797 #include <stdlib.h>
4798 #if ((' ' & 0x0FF) == 0x020)
4799 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4800 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4801 #else
4802 # define ISLOWER(c) \
4803 (('a' <= (c) && (c) <= 'i') \
4804 || ('j' <= (c) && (c) <= 'r') \
4805 || ('s' <= (c) && (c) <= 'z'))
4806 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4807 #endif
4808
4809 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4810 int
4811 main ()
4812 {
4813 int i;
4814 for (i = 0; i < 256; i++)
4815 if (XOR (islower (i), ISLOWER (i))
4816 || toupper (i) != TOUPPER (i))
4817 return 2;
4818 return 0;
4819 }
4820 _ACEOF
4821 if ac_fn_c_try_run "$LINENO"; then :
4822
4823 else
4824 ac_cv_header_stdc=no
4825 fi
4826 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4827 conftest.$ac_objext conftest.beam conftest.$ac_ext
4828 fi
4829
4830 fi
4831 fi
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4833 $as_echo "$ac_cv_header_stdc" >&6; }
4834 if test $ac_cv_header_stdc = yes; then
4835
4836 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4837
4838 fi
4839
4840 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4841 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4842 inttypes.h stdint.h unistd.h
4843 do :
4844 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4845 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4846 "
4847 eval as_val=\$$as_ac_Header
4848 if test "x$as_val" = x""yes; then :
4849 cat >>confdefs.h <<_ACEOF
4850 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4851 _ACEOF
4852
4853 fi
4854
4855 done
4856
4857
4858
4859 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4860 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4861 MINIX=yes
4862 else
4863 MINIX=
4864 fi
4865
4866
4867 if test "$MINIX" = yes; then
4868
4869 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4870
4871
4872 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4873
4874
4875 $as_echo "#define _MINIX 1" >>confdefs.h
4876
4877 fi
4878
4879
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4881 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4882 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4883 $as_echo_n "(cached) " >&6
4884 else
4885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4886 /* end confdefs.h. */
4887
4888 # define __EXTENSIONS__ 1
4889 $ac_includes_default
4890 int
4891 main ()
4892 {
4893
4894 ;
4895 return 0;
4896 }
4897 _ACEOF
4898 if ac_fn_c_try_compile "$LINENO"; then :
4899 ac_cv_safe_to_define___extensions__=yes
4900 else
4901 ac_cv_safe_to_define___extensions__=no
4902 fi
4903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4904 fi
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4906 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4907 test $ac_cv_safe_to_define___extensions__ = yes &&
4908 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4909
4910 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4911
4912 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4913
4914 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4915
4916 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4917
4918
4919
4920 # Calculate toolexeclibdir
4921 # Also toolexecdir, though it's only used in toolexeclibdir
4922 case ${version_specific_libs} in
4923 yes)
4924 # Need the gcc compiler version to know where to install libraries
4925 # and header files if --enable-version-specific-runtime-libs option
4926 # is selected.
4927 toolexecdir='$(libdir)/gcc/$(target_alias)'
4928 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4929 ;;
4930 no)
4931 if test -n "$with_cross_host" &&
4932 test x"$with_cross_host" != x"no"; then
4933 # Install a library built with a cross compiler in tooldir, not libdir.
4934 toolexecdir='$(exec_prefix)/$(target_alias)'
4935 toolexeclibdir='$(toolexecdir)/lib'
4936 else
4937 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4938 toolexeclibdir='$(libdir)'
4939 fi
4940 multi_os_directory=`$CC -print-multi-os-directory`
4941 case $multi_os_directory in
4942 .) ;; # Avoid trailing /.
4943 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
4944 esac
4945 ;;
4946 esac
4947
4948
4949
4950 # Create a spec file, so that compile/link tests don't fail
4951 test -f libgfortran.spec || touch libgfortran.spec
4952
4953 ac_ext=c
4954 ac_cpp='$CPP $CPPFLAGS'
4955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4958
4959 # Check the compiler.
4960 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
4961 # We must force CC to /not/ be precious variables; otherwise
4962 # the wrong, non-multilib-adjusted value will be used in multilibs.
4963 # As a side effect, we have to subst CFLAGS ourselves.
4964
4965
4966
4967 ac_ext=c
4968 ac_cpp='$CPP $CPPFLAGS'
4969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4972 if test -n "$ac_tool_prefix"; then
4973 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4974 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4976 $as_echo_n "checking for $ac_word... " >&6; }
4977 if test "${ac_cv_prog_CC+set}" = set; then :
4978 $as_echo_n "(cached) " >&6
4979 else
4980 if test -n "$CC"; then
4981 ac_cv_prog_CC="$CC" # Let the user override the test.
4982 else
4983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4984 for as_dir in $PATH
4985 do
4986 IFS=$as_save_IFS
4987 test -z "$as_dir" && as_dir=.
4988 for ac_exec_ext in '' $ac_executable_extensions; do
4989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4990 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4992 break 2
4993 fi
4994 done
4995 done
4996 IFS=$as_save_IFS
4997
4998 fi
4999 fi
5000 CC=$ac_cv_prog_CC
5001 if test -n "$CC"; then
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5003 $as_echo "$CC" >&6; }
5004 else
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5006 $as_echo "no" >&6; }
5007 fi
5008
5009
5010 fi
5011 if test -z "$ac_cv_prog_CC"; then
5012 ac_ct_CC=$CC
5013 # Extract the first word of "gcc", so it can be a program name with args.
5014 set dummy gcc; ac_word=$2
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5016 $as_echo_n "checking for $ac_word... " >&6; }
5017 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5018 $as_echo_n "(cached) " >&6
5019 else
5020 if test -n "$ac_ct_CC"; then
5021 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5022 else
5023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5024 for as_dir in $PATH
5025 do
5026 IFS=$as_save_IFS
5027 test -z "$as_dir" && as_dir=.
5028 for ac_exec_ext in '' $ac_executable_extensions; do
5029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5030 ac_cv_prog_ac_ct_CC="gcc"
5031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5032 break 2
5033 fi
5034 done
5035 done
5036 IFS=$as_save_IFS
5037
5038 fi
5039 fi
5040 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5041 if test -n "$ac_ct_CC"; then
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5043 $as_echo "$ac_ct_CC" >&6; }
5044 else
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5046 $as_echo "no" >&6; }
5047 fi
5048
5049 if test "x$ac_ct_CC" = x; then
5050 CC=""
5051 else
5052 case $cross_compiling:$ac_tool_warned in
5053 yes:)
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5055 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5056 ac_tool_warned=yes ;;
5057 esac
5058 CC=$ac_ct_CC
5059 fi
5060 else
5061 CC="$ac_cv_prog_CC"
5062 fi
5063
5064 if test -z "$CC"; then
5065 if test -n "$ac_tool_prefix"; then
5066 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5067 set dummy ${ac_tool_prefix}cc; ac_word=$2
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5069 $as_echo_n "checking for $ac_word... " >&6; }
5070 if test "${ac_cv_prog_CC+set}" = set; then :
5071 $as_echo_n "(cached) " >&6
5072 else
5073 if test -n "$CC"; then
5074 ac_cv_prog_CC="$CC" # Let the user override the test.
5075 else
5076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5077 for as_dir in $PATH
5078 do
5079 IFS=$as_save_IFS
5080 test -z "$as_dir" && as_dir=.
5081 for ac_exec_ext in '' $ac_executable_extensions; do
5082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5083 ac_cv_prog_CC="${ac_tool_prefix}cc"
5084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5085 break 2
5086 fi
5087 done
5088 done
5089 IFS=$as_save_IFS
5090
5091 fi
5092 fi
5093 CC=$ac_cv_prog_CC
5094 if test -n "$CC"; then
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5096 $as_echo "$CC" >&6; }
5097 else
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5099 $as_echo "no" >&6; }
5100 fi
5101
5102
5103 fi
5104 fi
5105 if test -z "$CC"; then
5106 # Extract the first word of "cc", so it can be a program name with args.
5107 set dummy cc; ac_word=$2
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5109 $as_echo_n "checking for $ac_word... " >&6; }
5110 if test "${ac_cv_prog_CC+set}" = set; then :
5111 $as_echo_n "(cached) " >&6
5112 else
5113 if test -n "$CC"; then
5114 ac_cv_prog_CC="$CC" # Let the user override the test.
5115 else
5116 ac_prog_rejected=no
5117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5118 for as_dir in $PATH
5119 do
5120 IFS=$as_save_IFS
5121 test -z "$as_dir" && as_dir=.
5122 for ac_exec_ext in '' $ac_executable_extensions; do
5123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5124 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5125 ac_prog_rejected=yes
5126 continue
5127 fi
5128 ac_cv_prog_CC="cc"
5129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5130 break 2
5131 fi
5132 done
5133 done
5134 IFS=$as_save_IFS
5135
5136 if test $ac_prog_rejected = yes; then
5137 # We found a bogon in the path, so make sure we never use it.
5138 set dummy $ac_cv_prog_CC
5139 shift
5140 if test $# != 0; then
5141 # We chose a different compiler from the bogus one.
5142 # However, it has the same basename, so the bogon will be chosen
5143 # first if we set CC to just the basename; use the full file name.
5144 shift
5145 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5146 fi
5147 fi
5148 fi
5149 fi
5150 CC=$ac_cv_prog_CC
5151 if test -n "$CC"; then
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5153 $as_echo "$CC" >&6; }
5154 else
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5156 $as_echo "no" >&6; }
5157 fi
5158
5159
5160 fi
5161 if test -z "$CC"; then
5162 if test -n "$ac_tool_prefix"; then
5163 for ac_prog in cl.exe
5164 do
5165 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5166 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5168 $as_echo_n "checking for $ac_word... " >&6; }
5169 if test "${ac_cv_prog_CC+set}" = set; then :
5170 $as_echo_n "(cached) " >&6
5171 else
5172 if test -n "$CC"; then
5173 ac_cv_prog_CC="$CC" # Let the user override the test.
5174 else
5175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176 for as_dir in $PATH
5177 do
5178 IFS=$as_save_IFS
5179 test -z "$as_dir" && as_dir=.
5180 for ac_exec_ext in '' $ac_executable_extensions; do
5181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5182 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5184 break 2
5185 fi
5186 done
5187 done
5188 IFS=$as_save_IFS
5189
5190 fi
5191 fi
5192 CC=$ac_cv_prog_CC
5193 if test -n "$CC"; then
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5195 $as_echo "$CC" >&6; }
5196 else
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5198 $as_echo "no" >&6; }
5199 fi
5200
5201
5202 test -n "$CC" && break
5203 done
5204 fi
5205 if test -z "$CC"; then
5206 ac_ct_CC=$CC
5207 for ac_prog in cl.exe
5208 do
5209 # Extract the first word of "$ac_prog", so it can be a program name with args.
5210 set dummy $ac_prog; ac_word=$2
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5212 $as_echo_n "checking for $ac_word... " >&6; }
5213 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5214 $as_echo_n "(cached) " >&6
5215 else
5216 if test -n "$ac_ct_CC"; then
5217 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5218 else
5219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5220 for as_dir in $PATH
5221 do
5222 IFS=$as_save_IFS
5223 test -z "$as_dir" && as_dir=.
5224 for ac_exec_ext in '' $ac_executable_extensions; do
5225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5226 ac_cv_prog_ac_ct_CC="$ac_prog"
5227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5228 break 2
5229 fi
5230 done
5231 done
5232 IFS=$as_save_IFS
5233
5234 fi
5235 fi
5236 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5237 if test -n "$ac_ct_CC"; then
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5239 $as_echo "$ac_ct_CC" >&6; }
5240 else
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5242 $as_echo "no" >&6; }
5243 fi
5244
5245
5246 test -n "$ac_ct_CC" && break
5247 done
5248
5249 if test "x$ac_ct_CC" = x; then
5250 CC=""
5251 else
5252 case $cross_compiling:$ac_tool_warned in
5253 yes:)
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5256 ac_tool_warned=yes ;;
5257 esac
5258 CC=$ac_ct_CC
5259 fi
5260 fi
5261
5262 fi
5263
5264
5265 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5266 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5267 as_fn_error "no acceptable C compiler found in \$PATH
5268 See \`config.log' for more details." "$LINENO" 5; }
5269
5270 # Provide some information about the compiler.
5271 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5272 set X $ac_compile
5273 ac_compiler=$2
5274 for ac_option in --version -v -V -qversion; do
5275 { { ac_try="$ac_compiler $ac_option >&5"
5276 case "(($ac_try" in
5277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5278 *) ac_try_echo=$ac_try;;
5279 esac
5280 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5281 $as_echo "$ac_try_echo"; } >&5
5282 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5283 ac_status=$?
5284 if test -s conftest.err; then
5285 sed '10a\
5286 ... rest of stderr output deleted ...
5287 10q' conftest.err >conftest.er1
5288 cat conftest.er1 >&5
5289 rm -f conftest.er1 conftest.err
5290 fi
5291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5292 test $ac_status = 0; }
5293 done
5294
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5296 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5297 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5298 $as_echo_n "(cached) " >&6
5299 else
5300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5301 /* end confdefs.h. */
5302
5303 int
5304 main ()
5305 {
5306 #ifndef __GNUC__
5307 choke me
5308 #endif
5309
5310 ;
5311 return 0;
5312 }
5313 _ACEOF
5314 if ac_fn_c_try_compile "$LINENO"; then :
5315 ac_compiler_gnu=yes
5316 else
5317 ac_compiler_gnu=no
5318 fi
5319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5320 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5321
5322 fi
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5324 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5325 if test $ac_compiler_gnu = yes; then
5326 GCC=yes
5327 else
5328 GCC=
5329 fi
5330 ac_test_CFLAGS=${CFLAGS+set}
5331 ac_save_CFLAGS=$CFLAGS
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5333 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5334 if test "${ac_cv_prog_cc_g+set}" = set; then :
5335 $as_echo_n "(cached) " >&6
5336 else
5337 ac_save_c_werror_flag=$ac_c_werror_flag
5338 ac_c_werror_flag=yes
5339 ac_cv_prog_cc_g=no
5340 CFLAGS="-g"
5341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5342 /* end confdefs.h. */
5343
5344 int
5345 main ()
5346 {
5347
5348 ;
5349 return 0;
5350 }
5351 _ACEOF
5352 if ac_fn_c_try_compile "$LINENO"; then :
5353 ac_cv_prog_cc_g=yes
5354 else
5355 CFLAGS=""
5356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5357 /* end confdefs.h. */
5358
5359 int
5360 main ()
5361 {
5362
5363 ;
5364 return 0;
5365 }
5366 _ACEOF
5367 if ac_fn_c_try_compile "$LINENO"; then :
5368
5369 else
5370 ac_c_werror_flag=$ac_save_c_werror_flag
5371 CFLAGS="-g"
5372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5373 /* end confdefs.h. */
5374
5375 int
5376 main ()
5377 {
5378
5379 ;
5380 return 0;
5381 }
5382 _ACEOF
5383 if ac_fn_c_try_compile "$LINENO"; then :
5384 ac_cv_prog_cc_g=yes
5385 fi
5386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5387 fi
5388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5389 fi
5390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5391 ac_c_werror_flag=$ac_save_c_werror_flag
5392 fi
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5394 $as_echo "$ac_cv_prog_cc_g" >&6; }
5395 if test "$ac_test_CFLAGS" = set; then
5396 CFLAGS=$ac_save_CFLAGS
5397 elif test $ac_cv_prog_cc_g = yes; then
5398 if test "$GCC" = yes; then
5399 CFLAGS="-g -O2"
5400 else
5401 CFLAGS="-g"
5402 fi
5403 else
5404 if test "$GCC" = yes; then
5405 CFLAGS="-O2"
5406 else
5407 CFLAGS=
5408 fi
5409 fi
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5411 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5412 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5413 $as_echo_n "(cached) " >&6
5414 else
5415 ac_cv_prog_cc_c89=no
5416 ac_save_CC=$CC
5417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5418 /* end confdefs.h. */
5419 #include <stdarg.h>
5420 #include <stdio.h>
5421 #include <sys/types.h>
5422 #include <sys/stat.h>
5423 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5424 struct buf { int x; };
5425 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5426 static char *e (p, i)
5427 char **p;
5428 int i;
5429 {
5430 return p[i];
5431 }
5432 static char *f (char * (*g) (char **, int), char **p, ...)
5433 {
5434 char *s;
5435 va_list v;
5436 va_start (v,p);
5437 s = g (p, va_arg (v,int));
5438 va_end (v);
5439 return s;
5440 }
5441
5442 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5443 function prototypes and stuff, but not '\xHH' hex character constants.
5444 These don't provoke an error unfortunately, instead are silently treated
5445 as 'x'. The following induces an error, until -std is added to get
5446 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5447 array size at least. It's necessary to write '\x00'==0 to get something
5448 that's true only with -std. */
5449 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5450
5451 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5452 inside strings and character constants. */
5453 #define FOO(x) 'x'
5454 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5455
5456 int test (int i, double x);
5457 struct s1 {int (*f) (int a);};
5458 struct s2 {int (*f) (double a);};
5459 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5460 int argc;
5461 char **argv;
5462 int
5463 main ()
5464 {
5465 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5466 ;
5467 return 0;
5468 }
5469 _ACEOF
5470 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5471 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5472 do
5473 CC="$ac_save_CC $ac_arg"
5474 if ac_fn_c_try_compile "$LINENO"; then :
5475 ac_cv_prog_cc_c89=$ac_arg
5476 fi
5477 rm -f core conftest.err conftest.$ac_objext
5478 test "x$ac_cv_prog_cc_c89" != "xno" && break
5479 done
5480 rm -f conftest.$ac_ext
5481 CC=$ac_save_CC
5482
5483 fi
5484 # AC_CACHE_VAL
5485 case "x$ac_cv_prog_cc_c89" in
5486 x)
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5488 $as_echo "none needed" >&6; } ;;
5489 xno)
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5491 $as_echo "unsupported" >&6; } ;;
5492 *)
5493 CC="$CC $ac_cv_prog_cc_c89"
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5495 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5496 esac
5497 if test "x$ac_cv_prog_cc_c89" != xno; then :
5498
5499 fi
5500
5501 ac_ext=c
5502 ac_cpp='$CPP $CPPFLAGS'
5503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5506
5507 depcc="$CC" am_compiler_list=
5508
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5510 $as_echo_n "checking dependency style of $depcc... " >&6; }
5511 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5512 $as_echo_n "(cached) " >&6
5513 else
5514 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5515 # We make a subdir and do the tests there. Otherwise we can end up
5516 # making bogus files that we don't know about and never remove. For
5517 # instance it was reported that on HP-UX the gcc test will end up
5518 # making a dummy file named `D' -- because `-MD' means `put the output
5519 # in D'.
5520 rm -rf conftest.dir
5521 mkdir conftest.dir
5522 # Copy depcomp to subdir because otherwise we won't find it if we're
5523 # using a relative directory.
5524 cp "$am_depcomp" conftest.dir
5525 cd conftest.dir
5526 # We will build objects and dependencies in a subdirectory because
5527 # it helps to detect inapplicable dependency modes. For instance
5528 # both Tru64's cc and ICC support -MD to output dependencies as a
5529 # side effect of compilation, but ICC will put the dependencies in
5530 # the current directory while Tru64 will put them in the object
5531 # directory.
5532 mkdir sub
5533
5534 am_cv_CC_dependencies_compiler_type=none
5535 if test "$am_compiler_list" = ""; then
5536 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5537 fi
5538 am__universal=false
5539 case " $depcc " in #(
5540 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5541 esac
5542
5543 for depmode in $am_compiler_list; do
5544 # Setup a source with many dependencies, because some compilers
5545 # like to wrap large dependency lists on column 80 (with \), and
5546 # we should not choose a depcomp mode which is confused by this.
5547 #
5548 # We need to recreate these files for each test, as the compiler may
5549 # overwrite some of them when testing with obscure command lines.
5550 # This happens at least with the AIX C compiler.
5551 : > sub/conftest.c
5552 for i in 1 2 3 4 5 6; do
5553 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5554 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5555 # Solaris 8's {/usr,}/bin/sh.
5556 touch sub/conftst$i.h
5557 done
5558 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5559
5560 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5561 # mode. It turns out that the SunPro C++ compiler does not properly
5562 # handle `-M -o', and we need to detect this. Also, some Intel
5563 # versions had trouble with output in subdirs
5564 am__obj=sub/conftest.${OBJEXT-o}
5565 am__minus_obj="-o $am__obj"
5566 case $depmode in
5567 gcc)
5568 # This depmode causes a compiler race in universal mode.
5569 test "$am__universal" = false || continue
5570 ;;
5571 nosideeffect)
5572 # after this tag, mechanisms are not by side-effect, so they'll
5573 # only be used when explicitly requested
5574 if test "x$enable_dependency_tracking" = xyes; then
5575 continue
5576 else
5577 break
5578 fi
5579 ;;
5580 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5581 # This compiler won't grok `-c -o', but also, the minuso test has
5582 # not run yet. These depmodes are late enough in the game, and
5583 # so weak that their functioning should not be impacted.
5584 am__obj=conftest.${OBJEXT-o}
5585 am__minus_obj=
5586 ;;
5587 none) break ;;
5588 esac
5589 if depmode=$depmode \
5590 source=sub/conftest.c object=$am__obj \
5591 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5592 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5593 >/dev/null 2>conftest.err &&
5594 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5595 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5596 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5597 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5598 # icc doesn't choke on unknown options, it will just issue warnings
5599 # or remarks (even with -Werror). So we grep stderr for any message
5600 # that says an option was ignored or not supported.
5601 # When given -MP, icc 7.0 and 7.1 complain thusly:
5602 # icc: Command line warning: ignoring option '-M'; no argument required
5603 # The diagnosis changed in icc 8.0:
5604 # icc: Command line remark: option '-MP' not supported
5605 if (grep 'ignoring option' conftest.err ||
5606 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5607 am_cv_CC_dependencies_compiler_type=$depmode
5608 break
5609 fi
5610 fi
5611 done
5612
5613 cd ..
5614 rm -rf conftest.dir
5615 else
5616 am_cv_CC_dependencies_compiler_type=none
5617 fi
5618
5619 fi
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5621 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5622 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5623
5624 if
5625 test "x$enable_dependency_tracking" != xno \
5626 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5627 am__fastdepCC_TRUE=
5628 am__fastdepCC_FALSE='#'
5629 else
5630 am__fastdepCC_TRUE='#'
5631 am__fastdepCC_FALSE=
5632 fi
5633
5634
5635
5636
5637
5638
5639 if test "x$CC" != xcc; then
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5641 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5642 else
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5644 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5645 fi
5646 set dummy $CC; ac_cc=`$as_echo "$2" |
5647 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5648 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5649 $as_echo_n "(cached) " >&6
5650 else
5651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5652 /* end confdefs.h. */
5653
5654 int
5655 main ()
5656 {
5657
5658 ;
5659 return 0;
5660 }
5661 _ACEOF
5662 # Make sure it works both with $CC and with simple cc.
5663 # We do the test twice because some compilers refuse to overwrite an
5664 # existing .o file with -o, though they will create one.
5665 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5666 rm -f conftest2.*
5667 if { { case "(($ac_try" in
5668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5669 *) ac_try_echo=$ac_try;;
5670 esac
5671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5672 $as_echo "$ac_try_echo"; } >&5
5673 (eval "$ac_try") 2>&5
5674 ac_status=$?
5675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5676 test $ac_status = 0; } &&
5677 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5679 *) ac_try_echo=$ac_try;;
5680 esac
5681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5682 $as_echo "$ac_try_echo"; } >&5
5683 (eval "$ac_try") 2>&5
5684 ac_status=$?
5685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5686 test $ac_status = 0; };
5687 then
5688 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5689 if test "x$CC" != xcc; then
5690 # Test first that cc exists at all.
5691 if { ac_try='cc -c conftest.$ac_ext >&5'
5692 { { case "(($ac_try" in
5693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5694 *) ac_try_echo=$ac_try;;
5695 esac
5696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5697 $as_echo "$ac_try_echo"; } >&5
5698 (eval "$ac_try") 2>&5
5699 ac_status=$?
5700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5701 test $ac_status = 0; }; }; then
5702 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5703 rm -f conftest2.*
5704 if { { case "(($ac_try" in
5705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5706 *) ac_try_echo=$ac_try;;
5707 esac
5708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5709 $as_echo "$ac_try_echo"; } >&5
5710 (eval "$ac_try") 2>&5
5711 ac_status=$?
5712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5713 test $ac_status = 0; } &&
5714 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5716 *) ac_try_echo=$ac_try;;
5717 esac
5718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5719 $as_echo "$ac_try_echo"; } >&5
5720 (eval "$ac_try") 2>&5
5721 ac_status=$?
5722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5723 test $ac_status = 0; };
5724 then
5725 # cc works too.
5726 :
5727 else
5728 # cc exists but doesn't like -o.
5729 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5730 fi
5731 fi
5732 fi
5733 else
5734 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5735 fi
5736 rm -f core conftest*
5737
5738 fi
5739 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5741 $as_echo "yes" >&6; }
5742 else
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5744 $as_echo "no" >&6; }
5745
5746 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5747
5748 fi
5749
5750 # FIXME: we rely on the cache variable name because
5751 # there is no other way.
5752 set dummy $CC
5753 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5754 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5755 if test "$am_t" != yes; then
5756 # Losing compiler, so override with the script.
5757 # FIXME: It is wrong to rewrite CC.
5758 # But if we don't then we get into trouble of one sort or another.
5759 # A longer-term fix would be to have automake use am__CC in this case,
5760 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5761 CC="$am_aux_dir/compile $CC"
5762 fi
5763
5764
5765
5766 # Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC.
5767 if test "x$GCC" = "xyes"; then
5768 AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring"
5769 ## We like to use C99 routines when available. This makes sure that
5770 ## __STDC_VERSION__ is set such that libc includes make them available.
5771 AM_CFLAGS="-std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings"
5772 ## Compile the following tests with the same system header contents
5773 ## that we'll encounter when compiling our own source files.
5774 CFLAGS="-std=gnu99 $CFLAGS"
5775 fi
5776
5777
5778
5779
5780 # Check for symbol versioning (copied from libssp).
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
5782 $as_echo_n "checking whether symbol versioning is supported... " >&6; }
5783 # Check whether --enable-symvers was given.
5784 if test "${enable_symvers+set}" = set; then :
5785 enableval=$enable_symvers; gfortran_use_symver=$enableval
5786 else
5787 gfortran_use_symver=yes
5788 fi
5789
5790 if test "x$gfortran_use_symver" != xno; then
5791 save_LDFLAGS="$LDFLAGS"
5792 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
5793 cat > conftest.map <<EOF
5794 FOO_1.0 {
5795 global: *foo*; bar; local: *;
5796 };
5797 EOF
5798 if test x$gcc_no_link = xyes; then
5799 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5800 fi
5801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5802 /* end confdefs.h. */
5803 int foo;
5804 int
5805 main ()
5806 {
5807
5808 ;
5809 return 0;
5810 }
5811 _ACEOF
5812 if ac_fn_c_try_link "$LINENO"; then :
5813 gfortran_use_symver=gnu
5814 else
5815 gfortran_use_symver=no
5816 fi
5817 rm -f core conftest.err conftest.$ac_objext \
5818 conftest$ac_exeext conftest.$ac_ext
5819 if test x$gfortran_use_symver = xno; then
5820 case "$target_os" in
5821 solaris2*)
5822 LDFLAGS="$save_LDFLAGS"
5823 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
5824 # Sun ld cannot handle wildcards and treats all entries as undefined.
5825 cat > conftest.map <<EOF
5826 FOO_1.0 {
5827 global: foo; local: *;
5828 };
5829 EOF
5830 if test x$gcc_no_link = xyes; then
5831 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5832 fi
5833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5834 /* end confdefs.h. */
5835 int foo;
5836 int
5837 main ()
5838 {
5839
5840 ;
5841 return 0;
5842 }
5843 _ACEOF
5844 if ac_fn_c_try_link "$LINENO"; then :
5845 gfortran_use_symver=sun
5846 else
5847 gfortran_use_symver=no
5848 fi
5849 rm -f core conftest.err conftest.$ac_objext \
5850 conftest$ac_exeext conftest.$ac_ext
5851 ;;
5852 esac
5853 fi
5854 LDFLAGS="$save_LDFLAGS"
5855 fi
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gfortran_use_symver" >&5
5857 $as_echo "$gfortran_use_symver" >&6; }
5858 if test "x$gfortran_use_symver" != xno; then
5859 LIBGFOR_USE_SYMVER_TRUE=
5860 LIBGFOR_USE_SYMVER_FALSE='#'
5861 else
5862 LIBGFOR_USE_SYMVER_TRUE='#'
5863 LIBGFOR_USE_SYMVER_FALSE=
5864 fi
5865
5866 if test "x$gfortran_use_symver" = xgnu; then
5867 LIBGFOR_USE_SYMVER_GNU_TRUE=
5868 LIBGFOR_USE_SYMVER_GNU_FALSE='#'
5869 else
5870 LIBGFOR_USE_SYMVER_GNU_TRUE='#'
5871 LIBGFOR_USE_SYMVER_GNU_FALSE=
5872 fi
5873
5874 if test "x$gfortran_use_symver" = xsun; then
5875 LIBGFOR_USE_SYMVER_SUN_TRUE=
5876 LIBGFOR_USE_SYMVER_SUN_FALSE='#'
5877 else
5878 LIBGFOR_USE_SYMVER_SUN_TRUE='#'
5879 LIBGFOR_USE_SYMVER_SUN_FALSE=
5880 fi
5881
5882
5883 # Figure out whether the compiler supports "-ffunction-sections -fdata-sections",
5884 # similarly to how libstdc++ does it
5885 ac_test_CFLAGS="${CFLAGS+set}"
5886 ac_save_CFLAGS="$CFLAGS"
5887
5888 # Check for -ffunction-sections -fdata-sections
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc that supports -ffunction-sections -fdata-sections" >&5
5890 $as_echo_n "checking for gcc that supports -ffunction-sections -fdata-sections... " >&6; }
5891 CFLAGS='-Werror -ffunction-sections -fdata-sections'
5892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5893 /* end confdefs.h. */
5894
5895 int
5896 main ()
5897 {
5898 int foo;
5899 ;
5900 return 0;
5901 }
5902 _ACEOF
5903 if ac_fn_c_try_compile "$LINENO"; then :
5904 ac_fdsections=yes
5905 else
5906 ac_fdsections=no
5907 fi
5908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5909 if test "$ac_test_CFLAGS" = set; then
5910 CFLAGS="$ac_save_CFLAGS"
5911 else
5912 # this is the suspicious part
5913 CFLAGS=""
5914 fi
5915 if test x"$ac_fdsections" = x"yes"; then
5916 SECTION_FLAGS='-ffunction-sections -fdata-sections'
5917 fi
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
5919 $as_echo "$ac_fdsections" >&6; }
5920
5921
5922 # Find other programs we need.
5923 if test -n "$ac_tool_prefix"; then
5924 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5925 set dummy ${ac_tool_prefix}as; ac_word=$2
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5927 $as_echo_n "checking for $ac_word... " >&6; }
5928 if test "${ac_cv_prog_AS+set}" = set; then :
5929 $as_echo_n "(cached) " >&6
5930 else
5931 if test -n "$AS"; then
5932 ac_cv_prog_AS="$AS" # Let the user override the test.
5933 else
5934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935 for as_dir in $PATH
5936 do
5937 IFS=$as_save_IFS
5938 test -z "$as_dir" && as_dir=.
5939 for ac_exec_ext in '' $ac_executable_extensions; do
5940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5941 ac_cv_prog_AS="${ac_tool_prefix}as"
5942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5943 break 2
5944 fi
5945 done
5946 done
5947 IFS=$as_save_IFS
5948
5949 fi
5950 fi
5951 AS=$ac_cv_prog_AS
5952 if test -n "$AS"; then
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5954 $as_echo "$AS" >&6; }
5955 else
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5957 $as_echo "no" >&6; }
5958 fi
5959
5960
5961 fi
5962 if test -z "$ac_cv_prog_AS"; then
5963 ac_ct_AS=$AS
5964 # Extract the first word of "as", so it can be a program name with args.
5965 set dummy as; ac_word=$2
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5967 $as_echo_n "checking for $ac_word... " >&6; }
5968 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5969 $as_echo_n "(cached) " >&6
5970 else
5971 if test -n "$ac_ct_AS"; then
5972 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5973 else
5974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5975 for as_dir in $PATH
5976 do
5977 IFS=$as_save_IFS
5978 test -z "$as_dir" && as_dir=.
5979 for ac_exec_ext in '' $ac_executable_extensions; do
5980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5981 ac_cv_prog_ac_ct_AS="as"
5982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5983 break 2
5984 fi
5985 done
5986 done
5987 IFS=$as_save_IFS
5988
5989 fi
5990 fi
5991 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5992 if test -n "$ac_ct_AS"; then
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5994 $as_echo "$ac_ct_AS" >&6; }
5995 else
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5997 $as_echo "no" >&6; }
5998 fi
5999
6000 if test "x$ac_ct_AS" = x; then
6001 AS=""
6002 else
6003 case $cross_compiling:$ac_tool_warned in
6004 yes:)
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6006 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6007 ac_tool_warned=yes ;;
6008 esac
6009 AS=$ac_ct_AS
6010 fi
6011 else
6012 AS="$ac_cv_prog_AS"
6013 fi
6014
6015 if test -n "$ac_tool_prefix"; then
6016 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6017 set dummy ${ac_tool_prefix}ar; ac_word=$2
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6019 $as_echo_n "checking for $ac_word... " >&6; }
6020 if test "${ac_cv_prog_AR+set}" = set; then :
6021 $as_echo_n "(cached) " >&6
6022 else
6023 if test -n "$AR"; then
6024 ac_cv_prog_AR="$AR" # Let the user override the test.
6025 else
6026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6027 for as_dir in $PATH
6028 do
6029 IFS=$as_save_IFS
6030 test -z "$as_dir" && as_dir=.
6031 for ac_exec_ext in '' $ac_executable_extensions; do
6032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6033 ac_cv_prog_AR="${ac_tool_prefix}ar"
6034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6035 break 2
6036 fi
6037 done
6038 done
6039 IFS=$as_save_IFS
6040
6041 fi
6042 fi
6043 AR=$ac_cv_prog_AR
6044 if test -n "$AR"; then
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6046 $as_echo "$AR" >&6; }
6047 else
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6049 $as_echo "no" >&6; }
6050 fi
6051
6052
6053 fi
6054 if test -z "$ac_cv_prog_AR"; then
6055 ac_ct_AR=$AR
6056 # Extract the first word of "ar", so it can be a program name with args.
6057 set dummy ar; ac_word=$2
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6059 $as_echo_n "checking for $ac_word... " >&6; }
6060 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6061 $as_echo_n "(cached) " >&6
6062 else
6063 if test -n "$ac_ct_AR"; then
6064 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6065 else
6066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6067 for as_dir in $PATH
6068 do
6069 IFS=$as_save_IFS
6070 test -z "$as_dir" && as_dir=.
6071 for ac_exec_ext in '' $ac_executable_extensions; do
6072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6073 ac_cv_prog_ac_ct_AR="ar"
6074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6075 break 2
6076 fi
6077 done
6078 done
6079 IFS=$as_save_IFS
6080
6081 fi
6082 fi
6083 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6084 if test -n "$ac_ct_AR"; then
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6086 $as_echo "$ac_ct_AR" >&6; }
6087 else
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6089 $as_echo "no" >&6; }
6090 fi
6091
6092 if test "x$ac_ct_AR" = x; then
6093 AR=""
6094 else
6095 case $cross_compiling:$ac_tool_warned in
6096 yes:)
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6098 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6099 ac_tool_warned=yes ;;
6100 esac
6101 AR=$ac_ct_AR
6102 fi
6103 else
6104 AR="$ac_cv_prog_AR"
6105 fi
6106
6107 if test -n "$ac_tool_prefix"; then
6108 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6109 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6111 $as_echo_n "checking for $ac_word... " >&6; }
6112 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6113 $as_echo_n "(cached) " >&6
6114 else
6115 if test -n "$RANLIB"; then
6116 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6117 else
6118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6119 for as_dir in $PATH
6120 do
6121 IFS=$as_save_IFS
6122 test -z "$as_dir" && as_dir=.
6123 for ac_exec_ext in '' $ac_executable_extensions; do
6124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6125 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6127 break 2
6128 fi
6129 done
6130 done
6131 IFS=$as_save_IFS
6132
6133 fi
6134 fi
6135 RANLIB=$ac_cv_prog_RANLIB
6136 if test -n "$RANLIB"; then
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6138 $as_echo "$RANLIB" >&6; }
6139 else
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6141 $as_echo "no" >&6; }
6142 fi
6143
6144
6145 fi
6146 if test -z "$ac_cv_prog_RANLIB"; then
6147 ac_ct_RANLIB=$RANLIB
6148 # Extract the first word of "ranlib", so it can be a program name with args.
6149 set dummy ranlib; ac_word=$2
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6151 $as_echo_n "checking for $ac_word... " >&6; }
6152 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6153 $as_echo_n "(cached) " >&6
6154 else
6155 if test -n "$ac_ct_RANLIB"; then
6156 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6157 else
6158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6159 for as_dir in $PATH
6160 do
6161 IFS=$as_save_IFS
6162 test -z "$as_dir" && as_dir=.
6163 for ac_exec_ext in '' $ac_executable_extensions; do
6164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6165 ac_cv_prog_ac_ct_RANLIB="ranlib"
6166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6167 break 2
6168 fi
6169 done
6170 done
6171 IFS=$as_save_IFS
6172
6173 fi
6174 fi
6175 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6176 if test -n "$ac_ct_RANLIB"; then
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6178 $as_echo "$ac_ct_RANLIB" >&6; }
6179 else
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6181 $as_echo "no" >&6; }
6182 fi
6183
6184 if test "x$ac_ct_RANLIB" = x; then
6185 RANLIB="ranlib-not-found-in-path-error"
6186 else
6187 case $cross_compiling:$ac_tool_warned in
6188 yes:)
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6190 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6191 ac_tool_warned=yes ;;
6192 esac
6193 RANLIB=$ac_ct_RANLIB
6194 fi
6195 else
6196 RANLIB="$ac_cv_prog_RANLIB"
6197 fi
6198
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6200 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6201 set x ${MAKE-make}
6202 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6203 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6204 $as_echo_n "(cached) " >&6
6205 else
6206 cat >conftest.make <<\_ACEOF
6207 SHELL = /bin/sh
6208 all:
6209 @echo '@@@%%%=$(MAKE)=@@@%%%'
6210 _ACEOF
6211 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6212 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6213 *@@@%%%=?*=@@@%%%*)
6214 eval ac_cv_prog_make_${ac_make}_set=yes;;
6215 *)
6216 eval ac_cv_prog_make_${ac_make}_set=no;;
6217 esac
6218 rm -f conftest.make
6219 fi
6220 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6222 $as_echo "yes" >&6; }
6223 SET_MAKE=
6224 else
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6226 $as_echo "no" >&6; }
6227 SET_MAKE="MAKE=${MAKE-make}"
6228 fi
6229
6230
6231
6232 # Configure libtool
6233 #AC_MSG_NOTICE([====== Starting libtool configuration])
6234 enable_dlopen=yes
6235
6236
6237
6238 case `pwd` in
6239 *\ * | *\ *)
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6241 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6242 esac
6243
6244
6245
6246 macro_version='2.2.7a'
6247 macro_revision='1.3134'
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261 ltmain="$ac_aux_dir/ltmain.sh"
6262
6263 # Backslashify metacharacters that are still active within
6264 # double-quoted strings.
6265 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6266
6267 # Same as above, but do not quote variable references.
6268 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6269
6270 # Sed substitution to delay expansion of an escaped shell variable in a
6271 # double_quote_subst'ed string.
6272 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6273
6274 # Sed substitution to delay expansion of an escaped single quote.
6275 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6276
6277 # Sed substitution to avoid accidental globbing in evaled expressions
6278 no_glob_subst='s/\*/\\\*/g'
6279
6280 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6281 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6282 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6283
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6285 $as_echo_n "checking how to print strings... " >&6; }
6286 # Test print first, because it will be a builtin if present.
6287 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6288 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6289 ECHO='print -r --'
6290 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6291 ECHO='printf %s\n'
6292 else
6293 # Use this function as a fallback that always works.
6294 func_fallback_echo ()
6295 {
6296 eval 'cat <<_LTECHO_EOF
6297 $1
6298 _LTECHO_EOF'
6299 }
6300 ECHO='func_fallback_echo'
6301 fi
6302
6303 # func_echo_all arg...
6304 # Invoke $ECHO with all args, space-separated.
6305 func_echo_all ()
6306 {
6307 $ECHO ""
6308 }
6309
6310 case "$ECHO" in
6311 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6312 $as_echo "printf" >&6; } ;;
6313 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6314 $as_echo "print -r" >&6; } ;;
6315 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6316 $as_echo "cat" >&6; } ;;
6317 esac
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6333 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6334 if test "${ac_cv_path_SED+set}" = set; then :
6335 $as_echo_n "(cached) " >&6
6336 else
6337 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6338 for ac_i in 1 2 3 4 5 6 7; do
6339 ac_script="$ac_script$as_nl$ac_script"
6340 done
6341 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6342 { ac_script=; unset ac_script;}
6343 if test -z "$SED"; then
6344 ac_path_SED_found=false
6345 # Loop through the user's path and test for each of PROGNAME-LIST
6346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6347 for as_dir in $PATH
6348 do
6349 IFS=$as_save_IFS
6350 test -z "$as_dir" && as_dir=.
6351 for ac_prog in sed gsed; do
6352 for ac_exec_ext in '' $ac_executable_extensions; do
6353 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6354 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6355 # Check for GNU ac_path_SED and select it if it is found.
6356 # Check for GNU $ac_path_SED
6357 case `"$ac_path_SED" --version 2>&1` in
6358 *GNU*)
6359 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6360 *)
6361 ac_count=0
6362 $as_echo_n 0123456789 >"conftest.in"
6363 while :
6364 do
6365 cat "conftest.in" "conftest.in" >"conftest.tmp"
6366 mv "conftest.tmp" "conftest.in"
6367 cp "conftest.in" "conftest.nl"
6368 $as_echo '' >> "conftest.nl"
6369 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6370 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6371 as_fn_arith $ac_count + 1 && ac_count=$as_val
6372 if test $ac_count -gt ${ac_path_SED_max-0}; then
6373 # Best one so far, save it but keep looking for a better one
6374 ac_cv_path_SED="$ac_path_SED"
6375 ac_path_SED_max=$ac_count
6376 fi
6377 # 10*(2^10) chars as input seems more than enough
6378 test $ac_count -gt 10 && break
6379 done
6380 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6381 esac
6382
6383 $ac_path_SED_found && break 3
6384 done
6385 done
6386 done
6387 IFS=$as_save_IFS
6388 if test -z "$ac_cv_path_SED"; then
6389 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6390 fi
6391 else
6392 ac_cv_path_SED=$SED
6393 fi
6394
6395 fi
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6397 $as_echo "$ac_cv_path_SED" >&6; }
6398 SED="$ac_cv_path_SED"
6399 rm -f conftest.sed
6400
6401 test -z "$SED" && SED=sed
6402 Xsed="$SED -e 1s/^X//"
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6415 $as_echo_n "checking for fgrep... " >&6; }
6416 if test "${ac_cv_path_FGREP+set}" = set; then :
6417 $as_echo_n "(cached) " >&6
6418 else
6419 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6420 then ac_cv_path_FGREP="$GREP -F"
6421 else
6422 if test -z "$FGREP"; then
6423 ac_path_FGREP_found=false
6424 # Loop through the user's path and test for each of PROGNAME-LIST
6425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6426 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6427 do
6428 IFS=$as_save_IFS
6429 test -z "$as_dir" && as_dir=.
6430 for ac_prog in fgrep; do
6431 for ac_exec_ext in '' $ac_executable_extensions; do
6432 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6433 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6434 # Check for GNU ac_path_FGREP and select it if it is found.
6435 # Check for GNU $ac_path_FGREP
6436 case `"$ac_path_FGREP" --version 2>&1` in
6437 *GNU*)
6438 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6439 *)
6440 ac_count=0
6441 $as_echo_n 0123456789 >"conftest.in"
6442 while :
6443 do
6444 cat "conftest.in" "conftest.in" >"conftest.tmp"
6445 mv "conftest.tmp" "conftest.in"
6446 cp "conftest.in" "conftest.nl"
6447 $as_echo 'FGREP' >> "conftest.nl"
6448 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6449 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6450 as_fn_arith $ac_count + 1 && ac_count=$as_val
6451 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6452 # Best one so far, save it but keep looking for a better one
6453 ac_cv_path_FGREP="$ac_path_FGREP"
6454 ac_path_FGREP_max=$ac_count
6455 fi
6456 # 10*(2^10) chars as input seems more than enough
6457 test $ac_count -gt 10 && break
6458 done
6459 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6460 esac
6461
6462 $ac_path_FGREP_found && break 3
6463 done
6464 done
6465 done
6466 IFS=$as_save_IFS
6467 if test -z "$ac_cv_path_FGREP"; then
6468 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6469 fi
6470 else
6471 ac_cv_path_FGREP=$FGREP
6472 fi
6473
6474 fi
6475 fi
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6477 $as_echo "$ac_cv_path_FGREP" >&6; }
6478 FGREP="$ac_cv_path_FGREP"
6479
6480
6481 test -z "$GREP" && GREP=grep
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501 # Check whether --with-gnu-ld was given.
6502 if test "${with_gnu_ld+set}" = set; then :
6503 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6504 else
6505 with_gnu_ld=no
6506 fi
6507
6508 ac_prog=ld
6509 if test "$GCC" = yes; then
6510 # Check if gcc -print-prog-name=ld gives a path.
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6512 $as_echo_n "checking for ld used by $CC... " >&6; }
6513 case $host in
6514 *-*-mingw*)
6515 # gcc leaves a trailing carriage return which upsets mingw
6516 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6517 *)
6518 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6519 esac
6520 case $ac_prog in
6521 # Accept absolute paths.
6522 [\\/]* | ?:[\\/]*)
6523 re_direlt='/[^/][^/]*/\.\./'
6524 # Canonicalize the pathname of ld
6525 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6526 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6527 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6528 done
6529 test -z "$LD" && LD="$ac_prog"
6530 ;;
6531 "")
6532 # If it fails, then pretend we aren't using GCC.
6533 ac_prog=ld
6534 ;;
6535 *)
6536 # If it is relative, then search for the first ld in PATH.
6537 with_gnu_ld=unknown
6538 ;;
6539 esac
6540 elif test "$with_gnu_ld" = yes; then
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6542 $as_echo_n "checking for GNU ld... " >&6; }
6543 else
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6545 $as_echo_n "checking for non-GNU ld... " >&6; }
6546 fi
6547 if test "${lt_cv_path_LD+set}" = set; then :
6548 $as_echo_n "(cached) " >&6
6549 else
6550 if test -z "$LD"; then
6551 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6552 for ac_dir in $PATH; do
6553 IFS="$lt_save_ifs"
6554 test -z "$ac_dir" && ac_dir=.
6555 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6556 lt_cv_path_LD="$ac_dir/$ac_prog"
6557 # Check to see if the program is GNU ld. I'd rather use --version,
6558 # but apparently some variants of GNU ld only accept -v.
6559 # Break only if it was the GNU/non-GNU ld that we prefer.
6560 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6561 *GNU* | *'with BFD'*)
6562 test "$with_gnu_ld" != no && break
6563 ;;
6564 *)
6565 test "$with_gnu_ld" != yes && break
6566 ;;
6567 esac
6568 fi
6569 done
6570 IFS="$lt_save_ifs"
6571 else
6572 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6573 fi
6574 fi
6575
6576 LD="$lt_cv_path_LD"
6577 if test -n "$LD"; then
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6579 $as_echo "$LD" >&6; }
6580 else
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6582 $as_echo "no" >&6; }
6583 fi
6584 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6586 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6587 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6588 $as_echo_n "(cached) " >&6
6589 else
6590 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6591 case `$LD -v 2>&1 </dev/null` in
6592 *GNU* | *'with BFD'*)
6593 lt_cv_prog_gnu_ld=yes
6594 ;;
6595 *)
6596 lt_cv_prog_gnu_ld=no
6597 ;;
6598 esac
6599 fi
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6601 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6602 with_gnu_ld=$lt_cv_prog_gnu_ld
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6613 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6614 if test "${lt_cv_path_NM+set}" = set; then :
6615 $as_echo_n "(cached) " >&6
6616 else
6617 if test -n "$NM"; then
6618 # Let the user override the test.
6619 lt_cv_path_NM="$NM"
6620 else
6621 lt_nm_to_check="${ac_tool_prefix}nm"
6622 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6623 lt_nm_to_check="$lt_nm_to_check nm"
6624 fi
6625 for lt_tmp_nm in $lt_nm_to_check; do
6626 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6627 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6628 IFS="$lt_save_ifs"
6629 test -z "$ac_dir" && ac_dir=.
6630 tmp_nm="$ac_dir/$lt_tmp_nm"
6631 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6632 # Check to see if the nm accepts a BSD-compat flag.
6633 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6634 # nm: unknown option "B" ignored
6635 # Tru64's nm complains that /dev/null is an invalid object file
6636 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6637 */dev/null* | *'Invalid file or object type'*)
6638 lt_cv_path_NM="$tmp_nm -B"
6639 break
6640 ;;
6641 *)
6642 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6643 */dev/null*)
6644 lt_cv_path_NM="$tmp_nm -p"
6645 break
6646 ;;
6647 *)
6648 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6649 continue # so that we can try to find one that supports BSD flags
6650 ;;
6651 esac
6652 ;;
6653 esac
6654 fi
6655 done
6656 IFS="$lt_save_ifs"
6657 done
6658 : ${lt_cv_path_NM=no}
6659 fi
6660 fi
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6662 $as_echo "$lt_cv_path_NM" >&6; }
6663 if test "$lt_cv_path_NM" != "no"; then
6664 NM="$lt_cv_path_NM"
6665 else
6666 # Didn't find any BSD compatible name lister, look for dumpbin.
6667 if test -n "$DUMPBIN"; then :
6668 # Let the user override the test.
6669 else
6670 if test -n "$ac_tool_prefix"; then
6671 for ac_prog in dumpbin "link -dump"
6672 do
6673 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6674 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6676 $as_echo_n "checking for $ac_word... " >&6; }
6677 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6678 $as_echo_n "(cached) " >&6
6679 else
6680 if test -n "$DUMPBIN"; then
6681 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6682 else
6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684 for as_dir in $PATH
6685 do
6686 IFS=$as_save_IFS
6687 test -z "$as_dir" && as_dir=.
6688 for ac_exec_ext in '' $ac_executable_extensions; do
6689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6690 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6692 break 2
6693 fi
6694 done
6695 done
6696 IFS=$as_save_IFS
6697
6698 fi
6699 fi
6700 DUMPBIN=$ac_cv_prog_DUMPBIN
6701 if test -n "$DUMPBIN"; then
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6703 $as_echo "$DUMPBIN" >&6; }
6704 else
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6706 $as_echo "no" >&6; }
6707 fi
6708
6709
6710 test -n "$DUMPBIN" && break
6711 done
6712 fi
6713 if test -z "$DUMPBIN"; then
6714 ac_ct_DUMPBIN=$DUMPBIN
6715 for ac_prog in dumpbin "link -dump"
6716 do
6717 # Extract the first word of "$ac_prog", so it can be a program name with args.
6718 set dummy $ac_prog; ac_word=$2
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6720 $as_echo_n "checking for $ac_word... " >&6; }
6721 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6722 $as_echo_n "(cached) " >&6
6723 else
6724 if test -n "$ac_ct_DUMPBIN"; then
6725 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6726 else
6727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728 for as_dir in $PATH
6729 do
6730 IFS=$as_save_IFS
6731 test -z "$as_dir" && as_dir=.
6732 for ac_exec_ext in '' $ac_executable_extensions; do
6733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6734 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6736 break 2
6737 fi
6738 done
6739 done
6740 IFS=$as_save_IFS
6741
6742 fi
6743 fi
6744 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6745 if test -n "$ac_ct_DUMPBIN"; then
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6747 $as_echo "$ac_ct_DUMPBIN" >&6; }
6748 else
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6750 $as_echo "no" >&6; }
6751 fi
6752
6753
6754 test -n "$ac_ct_DUMPBIN" && break
6755 done
6756
6757 if test "x$ac_ct_DUMPBIN" = x; then
6758 DUMPBIN=":"
6759 else
6760 case $cross_compiling:$ac_tool_warned in
6761 yes:)
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6763 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6764 ac_tool_warned=yes ;;
6765 esac
6766 DUMPBIN=$ac_ct_DUMPBIN
6767 fi
6768 fi
6769
6770 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6771 *COFF*)
6772 DUMPBIN="$DUMPBIN -symbols"
6773 ;;
6774 *)
6775 DUMPBIN=:
6776 ;;
6777 esac
6778 fi
6779
6780 if test "$DUMPBIN" != ":"; then
6781 NM="$DUMPBIN"
6782 fi
6783 fi
6784 test -z "$NM" && NM=nm
6785
6786
6787
6788
6789
6790
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6792 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6793 if test "${lt_cv_nm_interface+set}" = set; then :
6794 $as_echo_n "(cached) " >&6
6795 else
6796 lt_cv_nm_interface="BSD nm"
6797 echo "int some_variable = 0;" > conftest.$ac_ext
6798 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6799 (eval "$ac_compile" 2>conftest.err)
6800 cat conftest.err >&5
6801 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6802 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6803 cat conftest.err >&5
6804 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6805 cat conftest.out >&5
6806 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6807 lt_cv_nm_interface="MS dumpbin"
6808 fi
6809 rm -f conftest*
6810 fi
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6812 $as_echo "$lt_cv_nm_interface" >&6; }
6813
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6815 $as_echo_n "checking whether ln -s works... " >&6; }
6816 LN_S=$as_ln_s
6817 if test "$LN_S" = "ln -s"; then
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6819 $as_echo "yes" >&6; }
6820 else
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6822 $as_echo "no, using $LN_S" >&6; }
6823 fi
6824
6825 # find the maximum length of command line arguments
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6827 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6828 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6829 $as_echo_n "(cached) " >&6
6830 else
6831 i=0
6832 teststring="ABCD"
6833
6834 case $build_os in
6835 msdosdjgpp*)
6836 # On DJGPP, this test can blow up pretty badly due to problems in libc
6837 # (any single argument exceeding 2000 bytes causes a buffer overrun
6838 # during glob expansion). Even if it were fixed, the result of this
6839 # check would be larger than it should be.
6840 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6841 ;;
6842
6843 gnu*)
6844 # Under GNU Hurd, this test is not required because there is
6845 # no limit to the length of command line arguments.
6846 # Libtool will interpret -1 as no limit whatsoever
6847 lt_cv_sys_max_cmd_len=-1;
6848 ;;
6849
6850 cygwin* | mingw* | cegcc*)
6851 # On Win9x/ME, this test blows up -- it succeeds, but takes
6852 # about 5 minutes as the teststring grows exponentially.
6853 # Worse, since 9x/ME are not pre-emptively multitasking,
6854 # you end up with a "frozen" computer, even though with patience
6855 # the test eventually succeeds (with a max line length of 256k).
6856 # Instead, let's just punt: use the minimum linelength reported by
6857 # all of the supported platforms: 8192 (on NT/2K/XP).
6858 lt_cv_sys_max_cmd_len=8192;
6859 ;;
6860
6861 mint*)
6862 # On MiNT this can take a long time and run out of memory.
6863 lt_cv_sys_max_cmd_len=8192;
6864 ;;
6865
6866 amigaos*)
6867 # On AmigaOS with pdksh, this test takes hours, literally.
6868 # So we just punt and use a minimum line length of 8192.
6869 lt_cv_sys_max_cmd_len=8192;
6870 ;;
6871
6872 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6873 # This has been around since 386BSD, at least. Likely further.
6874 if test -x /sbin/sysctl; then
6875 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6876 elif test -x /usr/sbin/sysctl; then
6877 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6878 else
6879 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6880 fi
6881 # And add a safety zone
6882 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6883 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6884 ;;
6885
6886 interix*)
6887 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6888 lt_cv_sys_max_cmd_len=196608
6889 ;;
6890
6891 osf*)
6892 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6893 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6894 # nice to cause kernel panics so lets avoid the loop below.
6895 # First set a reasonable default.
6896 lt_cv_sys_max_cmd_len=16384
6897 #
6898 if test -x /sbin/sysconfig; then
6899 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6900 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6901 esac
6902 fi
6903 ;;
6904 sco3.2v5*)
6905 lt_cv_sys_max_cmd_len=102400
6906 ;;
6907 sysv5* | sco5v6* | sysv4.2uw2*)
6908 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6909 if test -n "$kargmax"; then
6910 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6911 else
6912 lt_cv_sys_max_cmd_len=32768
6913 fi
6914 ;;
6915 *)
6916 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6917 if test -n "$lt_cv_sys_max_cmd_len"; then
6918 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6919 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6920 else
6921 # Make teststring a little bigger before we do anything with it.
6922 # a 1K string should be a reasonable start.
6923 for i in 1 2 3 4 5 6 7 8 ; do
6924 teststring=$teststring$teststring
6925 done
6926 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6927 # If test is not a shell built-in, we'll probably end up computing a
6928 # maximum length that is only half of the actual maximum length, but
6929 # we can't tell.
6930 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6931 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6932 test $i != 17 # 1/2 MB should be enough
6933 do
6934 i=`expr $i + 1`
6935 teststring=$teststring$teststring
6936 done
6937 # Only check the string length outside the loop.
6938 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6939 teststring=
6940 # Add a significant safety factor because C++ compilers can tack on
6941 # massive amounts of additional arguments before passing them to the
6942 # linker. It appears as though 1/2 is a usable value.
6943 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6944 fi
6945 ;;
6946 esac
6947
6948 fi
6949
6950 if test -n $lt_cv_sys_max_cmd_len ; then
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6952 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6953 else
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6955 $as_echo "none" >&6; }
6956 fi
6957 max_cmd_len=$lt_cv_sys_max_cmd_len
6958
6959
6960
6961
6962
6963
6964 : ${CP="cp -f"}
6965 : ${MV="mv -f"}
6966 : ${RM="rm -f"}
6967
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6969 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6970 # Try some XSI features
6971 xsi_shell=no
6972 ( _lt_dummy="a/b/c"
6973 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6974 = c,a/b,, \
6975 && eval 'test $(( 1 + 1 )) -eq 2 \
6976 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6977 && xsi_shell=yes
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6979 $as_echo "$xsi_shell" >&6; }
6980
6981
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6983 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6984 lt_shell_append=no
6985 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6986 >/dev/null 2>&1 \
6987 && lt_shell_append=yes
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6989 $as_echo "$lt_shell_append" >&6; }
6990
6991
6992 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6993 lt_unset=unset
6994 else
6995 lt_unset=false
6996 fi
6997
6998
6999
7000
7001
7002 # test EBCDIC or ASCII
7003 case `echo X|tr X '\101'` in
7004 A) # ASCII based system
7005 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7006 lt_SP2NL='tr \040 \012'
7007 lt_NL2SP='tr \015\012 \040\040'
7008 ;;
7009 *) # EBCDIC based system
7010 lt_SP2NL='tr \100 \n'
7011 lt_NL2SP='tr \r\n \100\100'
7012 ;;
7013 esac
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7024 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7025 if test "${lt_cv_ld_reload_flag+set}" = set; then :
7026 $as_echo_n "(cached) " >&6
7027 else
7028 lt_cv_ld_reload_flag='-r'
7029 fi
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7031 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7032 reload_flag=$lt_cv_ld_reload_flag
7033 case $reload_flag in
7034 "" | " "*) ;;
7035 *) reload_flag=" $reload_flag" ;;
7036 esac
7037 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7038 case $host_os in
7039 darwin*)
7040 if test "$GCC" = yes; then
7041 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7042 else
7043 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7044 fi
7045 ;;
7046 esac
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056 if test -n "$ac_tool_prefix"; then
7057 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7058 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7060 $as_echo_n "checking for $ac_word... " >&6; }
7061 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7062 $as_echo_n "(cached) " >&6
7063 else
7064 if test -n "$OBJDUMP"; then
7065 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7066 else
7067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7068 for as_dir in $PATH
7069 do
7070 IFS=$as_save_IFS
7071 test -z "$as_dir" && as_dir=.
7072 for ac_exec_ext in '' $ac_executable_extensions; do
7073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7074 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7076 break 2
7077 fi
7078 done
7079 done
7080 IFS=$as_save_IFS
7081
7082 fi
7083 fi
7084 OBJDUMP=$ac_cv_prog_OBJDUMP
7085 if test -n "$OBJDUMP"; then
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7087 $as_echo "$OBJDUMP" >&6; }
7088 else
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7090 $as_echo "no" >&6; }
7091 fi
7092
7093
7094 fi
7095 if test -z "$ac_cv_prog_OBJDUMP"; then
7096 ac_ct_OBJDUMP=$OBJDUMP
7097 # Extract the first word of "objdump", so it can be a program name with args.
7098 set dummy objdump; ac_word=$2
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7100 $as_echo_n "checking for $ac_word... " >&6; }
7101 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7102 $as_echo_n "(cached) " >&6
7103 else
7104 if test -n "$ac_ct_OBJDUMP"; then
7105 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7106 else
7107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7108 for as_dir in $PATH
7109 do
7110 IFS=$as_save_IFS
7111 test -z "$as_dir" && as_dir=.
7112 for ac_exec_ext in '' $ac_executable_extensions; do
7113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7114 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7116 break 2
7117 fi
7118 done
7119 done
7120 IFS=$as_save_IFS
7121
7122 fi
7123 fi
7124 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7125 if test -n "$ac_ct_OBJDUMP"; then
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7127 $as_echo "$ac_ct_OBJDUMP" >&6; }
7128 else
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7130 $as_echo "no" >&6; }
7131 fi
7132
7133 if test "x$ac_ct_OBJDUMP" = x; then
7134 OBJDUMP="false"
7135 else
7136 case $cross_compiling:$ac_tool_warned in
7137 yes:)
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7139 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7140 ac_tool_warned=yes ;;
7141 esac
7142 OBJDUMP=$ac_ct_OBJDUMP
7143 fi
7144 else
7145 OBJDUMP="$ac_cv_prog_OBJDUMP"
7146 fi
7147
7148 test -z "$OBJDUMP" && OBJDUMP=objdump
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7159 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7160 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7161 $as_echo_n "(cached) " >&6
7162 else
7163 lt_cv_file_magic_cmd='$MAGIC_CMD'
7164 lt_cv_file_magic_test_file=
7165 lt_cv_deplibs_check_method='unknown'
7166 # Need to set the preceding variable on all platforms that support
7167 # interlibrary dependencies.
7168 # 'none' -- dependencies not supported.
7169 # `unknown' -- same as none, but documents that we really don't know.
7170 # 'pass_all' -- all dependencies passed with no checks.
7171 # 'test_compile' -- check by making test program.
7172 # 'file_magic [[regex]]' -- check by looking for files in library path
7173 # which responds to the $file_magic_cmd with a given extended regex.
7174 # If you have `file' or equivalent on your system and you're not sure
7175 # whether `pass_all' will *always* work, you probably want this one.
7176
7177 case $host_os in
7178 aix[4-9]*)
7179 lt_cv_deplibs_check_method=pass_all
7180 ;;
7181
7182 beos*)
7183 lt_cv_deplibs_check_method=pass_all
7184 ;;
7185
7186 bsdi[45]*)
7187 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7188 lt_cv_file_magic_cmd='/usr/bin/file -L'
7189 lt_cv_file_magic_test_file=/shlib/libc.so
7190 ;;
7191
7192 cygwin*)
7193 # func_win32_libid is a shell function defined in ltmain.sh
7194 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7195 lt_cv_file_magic_cmd='func_win32_libid'
7196 ;;
7197
7198 mingw* | pw32*)
7199 # Base MSYS/MinGW do not provide the 'file' command needed by
7200 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7201 # unless we find 'file', for example because we are cross-compiling.
7202 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7203 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7204 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7205 lt_cv_file_magic_cmd='func_win32_libid'
7206 else
7207 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7208 lt_cv_file_magic_cmd='$OBJDUMP -f'
7209 fi
7210 ;;
7211
7212 cegcc*)
7213 # use the weaker test based on 'objdump'. See mingw*.
7214 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7215 lt_cv_file_magic_cmd='$OBJDUMP -f'
7216 ;;
7217
7218 darwin* | rhapsody*)
7219 lt_cv_deplibs_check_method=pass_all
7220 ;;
7221
7222 freebsd* | dragonfly*)
7223 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7224 case $host_cpu in
7225 i*86 )
7226 # Not sure whether the presence of OpenBSD here was a mistake.
7227 # Let's accept both of them until this is cleared up.
7228 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7229 lt_cv_file_magic_cmd=/usr/bin/file
7230 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7231 ;;
7232 esac
7233 else
7234 lt_cv_deplibs_check_method=pass_all
7235 fi
7236 ;;
7237
7238 gnu*)
7239 lt_cv_deplibs_check_method=pass_all
7240 ;;
7241
7242 haiku*)
7243 lt_cv_deplibs_check_method=pass_all
7244 ;;
7245
7246 hpux10.20* | hpux11*)
7247 lt_cv_file_magic_cmd=/usr/bin/file
7248 case $host_cpu in
7249 ia64*)
7250 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7251 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7252 ;;
7253 hppa*64*)
7254 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]'
7255 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7256 ;;
7257 *)
7258 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7259 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7260 ;;
7261 esac
7262 ;;
7263
7264 interix[3-9]*)
7265 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7266 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7267 ;;
7268
7269 irix5* | irix6* | nonstopux*)
7270 case $LD in
7271 *-32|*"-32 ") libmagic=32-bit;;
7272 *-n32|*"-n32 ") libmagic=N32;;
7273 *-64|*"-64 ") libmagic=64-bit;;
7274 *) libmagic=never-match;;
7275 esac
7276 lt_cv_deplibs_check_method=pass_all
7277 ;;
7278
7279 # This must be Linux ELF.
7280 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7281 lt_cv_deplibs_check_method=pass_all
7282 ;;
7283
7284 netbsd*)
7285 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7286 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7287 else
7288 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7289 fi
7290 ;;
7291
7292 newos6*)
7293 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7294 lt_cv_file_magic_cmd=/usr/bin/file
7295 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7296 ;;
7297
7298 *nto* | *qnx*)
7299 lt_cv_deplibs_check_method=pass_all
7300 ;;
7301
7302 openbsd*)
7303 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7304 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7305 else
7306 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7307 fi
7308 ;;
7309
7310 osf3* | osf4* | osf5*)
7311 lt_cv_deplibs_check_method=pass_all
7312 ;;
7313
7314 rdos*)
7315 lt_cv_deplibs_check_method=pass_all
7316 ;;
7317
7318 solaris*)
7319 lt_cv_deplibs_check_method=pass_all
7320 ;;
7321
7322 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7323 lt_cv_deplibs_check_method=pass_all
7324 ;;
7325
7326 sysv4 | sysv4.3*)
7327 case $host_vendor in
7328 motorola)
7329 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]'
7330 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7331 ;;
7332 ncr)
7333 lt_cv_deplibs_check_method=pass_all
7334 ;;
7335 sequent)
7336 lt_cv_file_magic_cmd='/bin/file'
7337 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7338 ;;
7339 sni)
7340 lt_cv_file_magic_cmd='/bin/file'
7341 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7342 lt_cv_file_magic_test_file=/lib/libc.so
7343 ;;
7344 siemens)
7345 lt_cv_deplibs_check_method=pass_all
7346 ;;
7347 pc)
7348 lt_cv_deplibs_check_method=pass_all
7349 ;;
7350 esac
7351 ;;
7352
7353 tpf*)
7354 lt_cv_deplibs_check_method=pass_all
7355 ;;
7356 esac
7357
7358 fi
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7360 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7361 file_magic_cmd=$lt_cv_file_magic_cmd
7362 deplibs_check_method=$lt_cv_deplibs_check_method
7363 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376 if test -n "$ac_tool_prefix"; then
7377 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7378 set dummy ${ac_tool_prefix}ar; ac_word=$2
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7380 $as_echo_n "checking for $ac_word... " >&6; }
7381 if test "${ac_cv_prog_AR+set}" = set; then :
7382 $as_echo_n "(cached) " >&6
7383 else
7384 if test -n "$AR"; then
7385 ac_cv_prog_AR="$AR" # Let the user override the test.
7386 else
7387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7388 for as_dir in $PATH
7389 do
7390 IFS=$as_save_IFS
7391 test -z "$as_dir" && as_dir=.
7392 for ac_exec_ext in '' $ac_executable_extensions; do
7393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7394 ac_cv_prog_AR="${ac_tool_prefix}ar"
7395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7396 break 2
7397 fi
7398 done
7399 done
7400 IFS=$as_save_IFS
7401
7402 fi
7403 fi
7404 AR=$ac_cv_prog_AR
7405 if test -n "$AR"; then
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7407 $as_echo "$AR" >&6; }
7408 else
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7410 $as_echo "no" >&6; }
7411 fi
7412
7413
7414 fi
7415 if test -z "$ac_cv_prog_AR"; then
7416 ac_ct_AR=$AR
7417 # Extract the first word of "ar", so it can be a program name with args.
7418 set dummy ar; ac_word=$2
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7420 $as_echo_n "checking for $ac_word... " >&6; }
7421 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7422 $as_echo_n "(cached) " >&6
7423 else
7424 if test -n "$ac_ct_AR"; then
7425 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7426 else
7427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7428 for as_dir in $PATH
7429 do
7430 IFS=$as_save_IFS
7431 test -z "$as_dir" && as_dir=.
7432 for ac_exec_ext in '' $ac_executable_extensions; do
7433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7434 ac_cv_prog_ac_ct_AR="ar"
7435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7436 break 2
7437 fi
7438 done
7439 done
7440 IFS=$as_save_IFS
7441
7442 fi
7443 fi
7444 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7445 if test -n "$ac_ct_AR"; then
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7447 $as_echo "$ac_ct_AR" >&6; }
7448 else
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7450 $as_echo "no" >&6; }
7451 fi
7452
7453 if test "x$ac_ct_AR" = x; then
7454 AR="false"
7455 else
7456 case $cross_compiling:$ac_tool_warned in
7457 yes:)
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7459 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7460 ac_tool_warned=yes ;;
7461 esac
7462 AR=$ac_ct_AR
7463 fi
7464 else
7465 AR="$ac_cv_prog_AR"
7466 fi
7467
7468 test -z "$AR" && AR=ar
7469 test -z "$AR_FLAGS" && AR_FLAGS=cru
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481 if test -n "$ac_tool_prefix"; then
7482 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7483 set dummy ${ac_tool_prefix}strip; ac_word=$2
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7485 $as_echo_n "checking for $ac_word... " >&6; }
7486 if test "${ac_cv_prog_STRIP+set}" = set; then :
7487 $as_echo_n "(cached) " >&6
7488 else
7489 if test -n "$STRIP"; then
7490 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7491 else
7492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7493 for as_dir in $PATH
7494 do
7495 IFS=$as_save_IFS
7496 test -z "$as_dir" && as_dir=.
7497 for ac_exec_ext in '' $ac_executable_extensions; do
7498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7499 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7501 break 2
7502 fi
7503 done
7504 done
7505 IFS=$as_save_IFS
7506
7507 fi
7508 fi
7509 STRIP=$ac_cv_prog_STRIP
7510 if test -n "$STRIP"; then
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7512 $as_echo "$STRIP" >&6; }
7513 else
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7515 $as_echo "no" >&6; }
7516 fi
7517
7518
7519 fi
7520 if test -z "$ac_cv_prog_STRIP"; then
7521 ac_ct_STRIP=$STRIP
7522 # Extract the first word of "strip", so it can be a program name with args.
7523 set dummy strip; ac_word=$2
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7525 $as_echo_n "checking for $ac_word... " >&6; }
7526 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7527 $as_echo_n "(cached) " >&6
7528 else
7529 if test -n "$ac_ct_STRIP"; then
7530 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7531 else
7532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7533 for as_dir in $PATH
7534 do
7535 IFS=$as_save_IFS
7536 test -z "$as_dir" && as_dir=.
7537 for ac_exec_ext in '' $ac_executable_extensions; do
7538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7539 ac_cv_prog_ac_ct_STRIP="strip"
7540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7541 break 2
7542 fi
7543 done
7544 done
7545 IFS=$as_save_IFS
7546
7547 fi
7548 fi
7549 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7550 if test -n "$ac_ct_STRIP"; then
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7552 $as_echo "$ac_ct_STRIP" >&6; }
7553 else
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7555 $as_echo "no" >&6; }
7556 fi
7557
7558 if test "x$ac_ct_STRIP" = x; then
7559 STRIP=":"
7560 else
7561 case $cross_compiling:$ac_tool_warned in
7562 yes:)
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7564 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7565 ac_tool_warned=yes ;;
7566 esac
7567 STRIP=$ac_ct_STRIP
7568 fi
7569 else
7570 STRIP="$ac_cv_prog_STRIP"
7571 fi
7572
7573 test -z "$STRIP" && STRIP=:
7574
7575
7576
7577
7578
7579
7580 if test -n "$ac_tool_prefix"; then
7581 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7582 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7584 $as_echo_n "checking for $ac_word... " >&6; }
7585 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7586 $as_echo_n "(cached) " >&6
7587 else
7588 if test -n "$RANLIB"; then
7589 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7590 else
7591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7592 for as_dir in $PATH
7593 do
7594 IFS=$as_save_IFS
7595 test -z "$as_dir" && as_dir=.
7596 for ac_exec_ext in '' $ac_executable_extensions; do
7597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7598 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7600 break 2
7601 fi
7602 done
7603 done
7604 IFS=$as_save_IFS
7605
7606 fi
7607 fi
7608 RANLIB=$ac_cv_prog_RANLIB
7609 if test -n "$RANLIB"; then
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7611 $as_echo "$RANLIB" >&6; }
7612 else
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7614 $as_echo "no" >&6; }
7615 fi
7616
7617
7618 fi
7619 if test -z "$ac_cv_prog_RANLIB"; then
7620 ac_ct_RANLIB=$RANLIB
7621 # Extract the first word of "ranlib", so it can be a program name with args.
7622 set dummy ranlib; ac_word=$2
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7624 $as_echo_n "checking for $ac_word... " >&6; }
7625 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7626 $as_echo_n "(cached) " >&6
7627 else
7628 if test -n "$ac_ct_RANLIB"; then
7629 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7630 else
7631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7632 for as_dir in $PATH
7633 do
7634 IFS=$as_save_IFS
7635 test -z "$as_dir" && as_dir=.
7636 for ac_exec_ext in '' $ac_executable_extensions; do
7637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7638 ac_cv_prog_ac_ct_RANLIB="ranlib"
7639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7640 break 2
7641 fi
7642 done
7643 done
7644 IFS=$as_save_IFS
7645
7646 fi
7647 fi
7648 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7649 if test -n "$ac_ct_RANLIB"; then
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7651 $as_echo "$ac_ct_RANLIB" >&6; }
7652 else
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7654 $as_echo "no" >&6; }
7655 fi
7656
7657 if test "x$ac_ct_RANLIB" = x; then
7658 RANLIB=":"
7659 else
7660 case $cross_compiling:$ac_tool_warned in
7661 yes:)
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7663 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7664 ac_tool_warned=yes ;;
7665 esac
7666 RANLIB=$ac_ct_RANLIB
7667 fi
7668 else
7669 RANLIB="$ac_cv_prog_RANLIB"
7670 fi
7671
7672 test -z "$RANLIB" && RANLIB=:
7673
7674
7675
7676
7677
7678
7679 # Determine commands to create old-style static archives.
7680 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7681 old_postinstall_cmds='chmod 644 $oldlib'
7682 old_postuninstall_cmds=
7683
7684 if test -n "$RANLIB"; then
7685 case $host_os in
7686 openbsd*)
7687 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7688 ;;
7689 *)
7690 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7691 ;;
7692 esac
7693 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7694 fi
7695
7696 case $host_os in
7697 darwin*)
7698 lock_old_archive_extraction=yes ;;
7699 *)
7700 lock_old_archive_extraction=no ;;
7701 esac
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
7735
7736
7737
7738
7739
7740
7741 # If no C compiler was specified, use CC.
7742 LTCC=${LTCC-"$CC"}
7743
7744 # If no C compiler flags were specified, use CFLAGS.
7745 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7746
7747 # Allow CC to be a program name with arguments.
7748 compiler=$CC
7749
7750
7751 # Check for command to grab the raw symbol name followed by C symbol from nm.
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7753 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7754 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7755 $as_echo_n "(cached) " >&6
7756 else
7757
7758 # These are sane defaults that work on at least a few old systems.
7759 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7760
7761 # Character class describing NM global symbol codes.
7762 symcode='[BCDEGRST]'
7763
7764 # Regexp to match symbols that can be accessed directly from C.
7765 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7766
7767 # Define system-specific variables.
7768 case $host_os in
7769 aix*)
7770 symcode='[BCDT]'
7771 ;;
7772 cygwin* | mingw* | pw32* | cegcc*)
7773 symcode='[ABCDGISTW]'
7774 ;;
7775 hpux*)
7776 if test "$host_cpu" = ia64; then
7777 symcode='[ABCDEGRST]'
7778 fi
7779 ;;
7780 irix* | nonstopux*)
7781 symcode='[BCDEGRST]'
7782 ;;
7783 osf*)
7784 symcode='[BCDEGQRST]'
7785 ;;
7786 solaris*)
7787 symcode='[BDRT]'
7788 ;;
7789 sco3.2v5*)
7790 symcode='[DT]'
7791 ;;
7792 sysv4.2uw2*)
7793 symcode='[DT]'
7794 ;;
7795 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7796 symcode='[ABDT]'
7797 ;;
7798 sysv4)
7799 symcode='[DFNSTU]'
7800 ;;
7801 esac
7802
7803 # If we're using GNU nm, then use its standard symbol codes.
7804 case `$NM -V 2>&1` in
7805 *GNU* | *'with BFD'*)
7806 symcode='[ABCDGIRSTW]' ;;
7807 esac
7808
7809 # Transform an extracted symbol line into a proper C declaration.
7810 # Some systems (esp. on ia64) link data and code symbols differently,
7811 # so use this general approach.
7812 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7813
7814 # Transform an extracted symbol line into symbol name and symbol address
7815 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7816 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'"
7817
7818 # Handle CRLF in mingw tool chain
7819 opt_cr=
7820 case $build_os in
7821 mingw*)
7822 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7823 ;;
7824 esac
7825
7826 # Try without a prefix underscore, then with it.
7827 for ac_symprfx in "" "_"; do
7828
7829 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7830 symxfrm="\\1 $ac_symprfx\\2 \\2"
7831
7832 # Write the raw and C identifiers.
7833 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7834 # Fake it for dumpbin and say T for any non-static function
7835 # and D for any global variable.
7836 # Also find C++ and __fastcall symbols from MSVC++,
7837 # which start with @ or ?.
7838 lt_cv_sys_global_symbol_pipe="$AWK '"\
7839 " {last_section=section; section=\$ 3};"\
7840 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7841 " \$ 0!~/External *\|/{next};"\
7842 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7843 " {if(hide[section]) next};"\
7844 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7845 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7846 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7847 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7848 " ' prfx=^$ac_symprfx"
7849 else
7850 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7851 fi
7852
7853 # Check to see that the pipe works correctly.
7854 pipe_works=no
7855
7856 rm -f conftest*
7857 cat > conftest.$ac_ext <<_LT_EOF
7858 #ifdef __cplusplus
7859 extern "C" {
7860 #endif
7861 char nm_test_var;
7862 void nm_test_func(void);
7863 void nm_test_func(void){}
7864 #ifdef __cplusplus
7865 }
7866 #endif
7867 int main(){nm_test_var='a';nm_test_func();return(0);}
7868 _LT_EOF
7869
7870 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7871 (eval $ac_compile) 2>&5
7872 ac_status=$?
7873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7874 test $ac_status = 0; }; then
7875 # Now try to grab the symbols.
7876 nlist=conftest.nm
7877 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7878 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7879 ac_status=$?
7880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7881 test $ac_status = 0; } && test -s "$nlist"; then
7882 # Try sorting and uniquifying the output.
7883 if sort "$nlist" | uniq > "$nlist"T; then
7884 mv -f "$nlist"T "$nlist"
7885 else
7886 rm -f "$nlist"T
7887 fi
7888
7889 # Make sure that we snagged all the symbols we need.
7890 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7891 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7892 cat <<_LT_EOF > conftest.$ac_ext
7893 #ifdef __cplusplus
7894 extern "C" {
7895 #endif
7896
7897 _LT_EOF
7898 # Now generate the symbol file.
7899 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7900
7901 cat <<_LT_EOF >> conftest.$ac_ext
7902
7903 /* The mapping between symbol names and symbols. */
7904 const struct {
7905 const char *name;
7906 void *address;
7907 }
7908 lt__PROGRAM__LTX_preloaded_symbols[] =
7909 {
7910 { "@PROGRAM@", (void *) 0 },
7911 _LT_EOF
7912 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7913 cat <<\_LT_EOF >> conftest.$ac_ext
7914 {0, (void *) 0}
7915 };
7916
7917 /* This works around a problem in FreeBSD linker */
7918 #ifdef FREEBSD_WORKAROUND
7919 static const void *lt_preloaded_setup() {
7920 return lt__PROGRAM__LTX_preloaded_symbols;
7921 }
7922 #endif
7923
7924 #ifdef __cplusplus
7925 }
7926 #endif
7927 _LT_EOF
7928 # Now try linking the two files.
7929 mv conftest.$ac_objext conftstm.$ac_objext
7930 lt_save_LIBS="$LIBS"
7931 lt_save_CFLAGS="$CFLAGS"
7932 LIBS="conftstm.$ac_objext"
7933 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7934 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7935 (eval $ac_link) 2>&5
7936 ac_status=$?
7937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7938 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7939 pipe_works=yes
7940 fi
7941 LIBS="$lt_save_LIBS"
7942 CFLAGS="$lt_save_CFLAGS"
7943 else
7944 echo "cannot find nm_test_func in $nlist" >&5
7945 fi
7946 else
7947 echo "cannot find nm_test_var in $nlist" >&5
7948 fi
7949 else
7950 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7951 fi
7952 else
7953 echo "$progname: failed program was:" >&5
7954 cat conftest.$ac_ext >&5
7955 fi
7956 rm -rf conftest* conftst*
7957
7958 # Do not use the global_symbol_pipe unless it works.
7959 if test "$pipe_works" = yes; then
7960 break
7961 else
7962 lt_cv_sys_global_symbol_pipe=
7963 fi
7964 done
7965
7966 fi
7967
7968 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7969 lt_cv_sys_global_symbol_to_cdecl=
7970 fi
7971 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7973 $as_echo "failed" >&6; }
7974 else
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7976 $as_echo "ok" >&6; }
7977 fi
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000 # Check whether --enable-libtool-lock was given.
8001 if test "${enable_libtool_lock+set}" = set; then :
8002 enableval=$enable_libtool_lock;
8003 fi
8004
8005 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8006
8007 # Some flags need to be propagated to the compiler or linker for good
8008 # libtool support.
8009 case $host in
8010 ia64-*-hpux*)
8011 # Find out which ABI we are using.
8012 echo 'int i;' > conftest.$ac_ext
8013 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8014 (eval $ac_compile) 2>&5
8015 ac_status=$?
8016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8017 test $ac_status = 0; }; then
8018 case `/usr/bin/file conftest.$ac_objext` in
8019 *ELF-32*)
8020 HPUX_IA64_MODE="32"
8021 ;;
8022 *ELF-64*)
8023 HPUX_IA64_MODE="64"
8024 ;;
8025 esac
8026 fi
8027 rm -rf conftest*
8028 ;;
8029 *-*-irix6*)
8030 # Find out which ABI we are using.
8031 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8032 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8033 (eval $ac_compile) 2>&5
8034 ac_status=$?
8035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8036 test $ac_status = 0; }; then
8037 if test "$lt_cv_prog_gnu_ld" = yes; then
8038 case `/usr/bin/file conftest.$ac_objext` in
8039 *32-bit*)
8040 LD="${LD-ld} -melf32bsmip"
8041 ;;
8042 *N32*)
8043 LD="${LD-ld} -melf32bmipn32"
8044 ;;
8045 *64-bit*)
8046 LD="${LD-ld} -melf64bmip"
8047 ;;
8048 esac
8049 else
8050 case `/usr/bin/file conftest.$ac_objext` in
8051 *32-bit*)
8052 LD="${LD-ld} -32"
8053 ;;
8054 *N32*)
8055 LD="${LD-ld} -n32"
8056 ;;
8057 *64-bit*)
8058 LD="${LD-ld} -64"
8059 ;;
8060 esac
8061 fi
8062 fi
8063 rm -rf conftest*
8064 ;;
8065
8066 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8067 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8068 # Find out which ABI we are using.
8069 echo 'int i;' > conftest.$ac_ext
8070 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8071 (eval $ac_compile) 2>&5
8072 ac_status=$?
8073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8074 test $ac_status = 0; }; then
8075 case `/usr/bin/file conftest.o` in
8076 *32-bit*)
8077 case $host in
8078 x86_64-*kfreebsd*-gnu)
8079 LD="${LD-ld} -m elf_i386_fbsd"
8080 ;;
8081 x86_64-*linux*)
8082 case `/usr/bin/file conftest.o` in
8083 *x86-64*)
8084 LD="${LD-ld} -m elf32_x86_64"
8085 ;;
8086 *)
8087 LD="${LD-ld} -m elf_i386"
8088 ;;
8089 esac
8090 ;;
8091 ppc64-*linux*|powerpc64-*linux*)
8092 LD="${LD-ld} -m elf32ppclinux"
8093 ;;
8094 s390x-*linux*)
8095 LD="${LD-ld} -m elf_s390"
8096 ;;
8097 sparc64-*linux*)
8098 LD="${LD-ld} -m elf32_sparc"
8099 ;;
8100 esac
8101 ;;
8102 *64-bit*)
8103 case $host in
8104 x86_64-*kfreebsd*-gnu)
8105 LD="${LD-ld} -m elf_x86_64_fbsd"
8106 ;;
8107 x86_64-*linux*)
8108 LD="${LD-ld} -m elf_x86_64"
8109 ;;
8110 ppc*-*linux*|powerpc*-*linux*)
8111 LD="${LD-ld} -m elf64ppc"
8112 ;;
8113 s390*-*linux*|s390*-*tpf*)
8114 LD="${LD-ld} -m elf64_s390"
8115 ;;
8116 sparc*-*linux*)
8117 LD="${LD-ld} -m elf64_sparc"
8118 ;;
8119 esac
8120 ;;
8121 esac
8122 fi
8123 rm -rf conftest*
8124 ;;
8125
8126 *-*-sco3.2v5*)
8127 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8128 SAVE_CFLAGS="$CFLAGS"
8129 CFLAGS="$CFLAGS -belf"
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8131 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8132 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8133 $as_echo_n "(cached) " >&6
8134 else
8135 ac_ext=c
8136 ac_cpp='$CPP $CPPFLAGS'
8137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8140
8141 if test x$gcc_no_link = xyes; then
8142 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8143 fi
8144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8145 /* end confdefs.h. */
8146
8147 int
8148 main ()
8149 {
8150
8151 ;
8152 return 0;
8153 }
8154 _ACEOF
8155 if ac_fn_c_try_link "$LINENO"; then :
8156 lt_cv_cc_needs_belf=yes
8157 else
8158 lt_cv_cc_needs_belf=no
8159 fi
8160 rm -f core conftest.err conftest.$ac_objext \
8161 conftest$ac_exeext conftest.$ac_ext
8162 ac_ext=c
8163 ac_cpp='$CPP $CPPFLAGS'
8164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8167
8168 fi
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8170 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8171 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8172 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8173 CFLAGS="$SAVE_CFLAGS"
8174 fi
8175 ;;
8176 sparc*-*solaris*)
8177 # Find out which ABI we are using.
8178 echo 'int i;' > conftest.$ac_ext
8179 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8180 (eval $ac_compile) 2>&5
8181 ac_status=$?
8182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8183 test $ac_status = 0; }; then
8184 case `/usr/bin/file conftest.o` in
8185 *64-bit*)
8186 case $lt_cv_prog_gnu_ld in
8187 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8188 *)
8189 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8190 LD="${LD-ld} -64"
8191 fi
8192 ;;
8193 esac
8194 ;;
8195 esac
8196 fi
8197 rm -rf conftest*
8198 ;;
8199 esac
8200
8201 need_locks="$enable_libtool_lock"
8202
8203
8204 case $host_os in
8205 rhapsody* | darwin*)
8206 if test -n "$ac_tool_prefix"; then
8207 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8208 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8210 $as_echo_n "checking for $ac_word... " >&6; }
8211 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8212 $as_echo_n "(cached) " >&6
8213 else
8214 if test -n "$DSYMUTIL"; then
8215 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8216 else
8217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8218 for as_dir in $PATH
8219 do
8220 IFS=$as_save_IFS
8221 test -z "$as_dir" && as_dir=.
8222 for ac_exec_ext in '' $ac_executable_extensions; do
8223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8224 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8226 break 2
8227 fi
8228 done
8229 done
8230 IFS=$as_save_IFS
8231
8232 fi
8233 fi
8234 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8235 if test -n "$DSYMUTIL"; then
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8237 $as_echo "$DSYMUTIL" >&6; }
8238 else
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8240 $as_echo "no" >&6; }
8241 fi
8242
8243
8244 fi
8245 if test -z "$ac_cv_prog_DSYMUTIL"; then
8246 ac_ct_DSYMUTIL=$DSYMUTIL
8247 # Extract the first word of "dsymutil", so it can be a program name with args.
8248 set dummy dsymutil; ac_word=$2
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8250 $as_echo_n "checking for $ac_word... " >&6; }
8251 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8252 $as_echo_n "(cached) " >&6
8253 else
8254 if test -n "$ac_ct_DSYMUTIL"; then
8255 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8256 else
8257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8258 for as_dir in $PATH
8259 do
8260 IFS=$as_save_IFS
8261 test -z "$as_dir" && as_dir=.
8262 for ac_exec_ext in '' $ac_executable_extensions; do
8263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8264 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8266 break 2
8267 fi
8268 done
8269 done
8270 IFS=$as_save_IFS
8271
8272 fi
8273 fi
8274 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8275 if test -n "$ac_ct_DSYMUTIL"; then
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8277 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8278 else
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8280 $as_echo "no" >&6; }
8281 fi
8282
8283 if test "x$ac_ct_DSYMUTIL" = x; then
8284 DSYMUTIL=":"
8285 else
8286 case $cross_compiling:$ac_tool_warned in
8287 yes:)
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8289 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8290 ac_tool_warned=yes ;;
8291 esac
8292 DSYMUTIL=$ac_ct_DSYMUTIL
8293 fi
8294 else
8295 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8296 fi
8297
8298 if test -n "$ac_tool_prefix"; then
8299 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8300 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8302 $as_echo_n "checking for $ac_word... " >&6; }
8303 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8304 $as_echo_n "(cached) " >&6
8305 else
8306 if test -n "$NMEDIT"; then
8307 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8308 else
8309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8310 for as_dir in $PATH
8311 do
8312 IFS=$as_save_IFS
8313 test -z "$as_dir" && as_dir=.
8314 for ac_exec_ext in '' $ac_executable_extensions; do
8315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8316 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8318 break 2
8319 fi
8320 done
8321 done
8322 IFS=$as_save_IFS
8323
8324 fi
8325 fi
8326 NMEDIT=$ac_cv_prog_NMEDIT
8327 if test -n "$NMEDIT"; then
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8329 $as_echo "$NMEDIT" >&6; }
8330 else
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8332 $as_echo "no" >&6; }
8333 fi
8334
8335
8336 fi
8337 if test -z "$ac_cv_prog_NMEDIT"; then
8338 ac_ct_NMEDIT=$NMEDIT
8339 # Extract the first word of "nmedit", so it can be a program name with args.
8340 set dummy nmedit; ac_word=$2
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8342 $as_echo_n "checking for $ac_word... " >&6; }
8343 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8344 $as_echo_n "(cached) " >&6
8345 else
8346 if test -n "$ac_ct_NMEDIT"; then
8347 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8348 else
8349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8350 for as_dir in $PATH
8351 do
8352 IFS=$as_save_IFS
8353 test -z "$as_dir" && as_dir=.
8354 for ac_exec_ext in '' $ac_executable_extensions; do
8355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8356 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8358 break 2
8359 fi
8360 done
8361 done
8362 IFS=$as_save_IFS
8363
8364 fi
8365 fi
8366 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8367 if test -n "$ac_ct_NMEDIT"; then
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8369 $as_echo "$ac_ct_NMEDIT" >&6; }
8370 else
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8372 $as_echo "no" >&6; }
8373 fi
8374
8375 if test "x$ac_ct_NMEDIT" = x; then
8376 NMEDIT=":"
8377 else
8378 case $cross_compiling:$ac_tool_warned in
8379 yes:)
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8382 ac_tool_warned=yes ;;
8383 esac
8384 NMEDIT=$ac_ct_NMEDIT
8385 fi
8386 else
8387 NMEDIT="$ac_cv_prog_NMEDIT"
8388 fi
8389
8390 if test -n "$ac_tool_prefix"; then
8391 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8392 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8394 $as_echo_n "checking for $ac_word... " >&6; }
8395 if test "${ac_cv_prog_LIPO+set}" = set; then :
8396 $as_echo_n "(cached) " >&6
8397 else
8398 if test -n "$LIPO"; then
8399 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8400 else
8401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8402 for as_dir in $PATH
8403 do
8404 IFS=$as_save_IFS
8405 test -z "$as_dir" && as_dir=.
8406 for ac_exec_ext in '' $ac_executable_extensions; do
8407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8408 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8410 break 2
8411 fi
8412 done
8413 done
8414 IFS=$as_save_IFS
8415
8416 fi
8417 fi
8418 LIPO=$ac_cv_prog_LIPO
8419 if test -n "$LIPO"; then
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8421 $as_echo "$LIPO" >&6; }
8422 else
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8424 $as_echo "no" >&6; }
8425 fi
8426
8427
8428 fi
8429 if test -z "$ac_cv_prog_LIPO"; then
8430 ac_ct_LIPO=$LIPO
8431 # Extract the first word of "lipo", so it can be a program name with args.
8432 set dummy lipo; ac_word=$2
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8434 $as_echo_n "checking for $ac_word... " >&6; }
8435 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8436 $as_echo_n "(cached) " >&6
8437 else
8438 if test -n "$ac_ct_LIPO"; then
8439 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8440 else
8441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8442 for as_dir in $PATH
8443 do
8444 IFS=$as_save_IFS
8445 test -z "$as_dir" && as_dir=.
8446 for ac_exec_ext in '' $ac_executable_extensions; do
8447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8448 ac_cv_prog_ac_ct_LIPO="lipo"
8449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8450 break 2
8451 fi
8452 done
8453 done
8454 IFS=$as_save_IFS
8455
8456 fi
8457 fi
8458 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8459 if test -n "$ac_ct_LIPO"; then
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8461 $as_echo "$ac_ct_LIPO" >&6; }
8462 else
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8464 $as_echo "no" >&6; }
8465 fi
8466
8467 if test "x$ac_ct_LIPO" = x; then
8468 LIPO=":"
8469 else
8470 case $cross_compiling:$ac_tool_warned in
8471 yes:)
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8473 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8474 ac_tool_warned=yes ;;
8475 esac
8476 LIPO=$ac_ct_LIPO
8477 fi
8478 else
8479 LIPO="$ac_cv_prog_LIPO"
8480 fi
8481
8482 if test -n "$ac_tool_prefix"; then
8483 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8484 set dummy ${ac_tool_prefix}otool; ac_word=$2
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8486 $as_echo_n "checking for $ac_word... " >&6; }
8487 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8488 $as_echo_n "(cached) " >&6
8489 else
8490 if test -n "$OTOOL"; then
8491 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8492 else
8493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8494 for as_dir in $PATH
8495 do
8496 IFS=$as_save_IFS
8497 test -z "$as_dir" && as_dir=.
8498 for ac_exec_ext in '' $ac_executable_extensions; do
8499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8500 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8502 break 2
8503 fi
8504 done
8505 done
8506 IFS=$as_save_IFS
8507
8508 fi
8509 fi
8510 OTOOL=$ac_cv_prog_OTOOL
8511 if test -n "$OTOOL"; then
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8513 $as_echo "$OTOOL" >&6; }
8514 else
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8516 $as_echo "no" >&6; }
8517 fi
8518
8519
8520 fi
8521 if test -z "$ac_cv_prog_OTOOL"; then
8522 ac_ct_OTOOL=$OTOOL
8523 # Extract the first word of "otool", so it can be a program name with args.
8524 set dummy otool; ac_word=$2
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8526 $as_echo_n "checking for $ac_word... " >&6; }
8527 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8528 $as_echo_n "(cached) " >&6
8529 else
8530 if test -n "$ac_ct_OTOOL"; then
8531 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8532 else
8533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8534 for as_dir in $PATH
8535 do
8536 IFS=$as_save_IFS
8537 test -z "$as_dir" && as_dir=.
8538 for ac_exec_ext in '' $ac_executable_extensions; do
8539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8540 ac_cv_prog_ac_ct_OTOOL="otool"
8541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8542 break 2
8543 fi
8544 done
8545 done
8546 IFS=$as_save_IFS
8547
8548 fi
8549 fi
8550 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8551 if test -n "$ac_ct_OTOOL"; then
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8553 $as_echo "$ac_ct_OTOOL" >&6; }
8554 else
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8556 $as_echo "no" >&6; }
8557 fi
8558
8559 if test "x$ac_ct_OTOOL" = x; then
8560 OTOOL=":"
8561 else
8562 case $cross_compiling:$ac_tool_warned in
8563 yes:)
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8565 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8566 ac_tool_warned=yes ;;
8567 esac
8568 OTOOL=$ac_ct_OTOOL
8569 fi
8570 else
8571 OTOOL="$ac_cv_prog_OTOOL"
8572 fi
8573
8574 if test -n "$ac_tool_prefix"; then
8575 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8576 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8578 $as_echo_n "checking for $ac_word... " >&6; }
8579 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8580 $as_echo_n "(cached) " >&6
8581 else
8582 if test -n "$OTOOL64"; then
8583 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8584 else
8585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8586 for as_dir in $PATH
8587 do
8588 IFS=$as_save_IFS
8589 test -z "$as_dir" && as_dir=.
8590 for ac_exec_ext in '' $ac_executable_extensions; do
8591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8592 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8594 break 2
8595 fi
8596 done
8597 done
8598 IFS=$as_save_IFS
8599
8600 fi
8601 fi
8602 OTOOL64=$ac_cv_prog_OTOOL64
8603 if test -n "$OTOOL64"; then
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8605 $as_echo "$OTOOL64" >&6; }
8606 else
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8608 $as_echo "no" >&6; }
8609 fi
8610
8611
8612 fi
8613 if test -z "$ac_cv_prog_OTOOL64"; then
8614 ac_ct_OTOOL64=$OTOOL64
8615 # Extract the first word of "otool64", so it can be a program name with args.
8616 set dummy otool64; ac_word=$2
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8618 $as_echo_n "checking for $ac_word... " >&6; }
8619 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8620 $as_echo_n "(cached) " >&6
8621 else
8622 if test -n "$ac_ct_OTOOL64"; then
8623 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8624 else
8625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8626 for as_dir in $PATH
8627 do
8628 IFS=$as_save_IFS
8629 test -z "$as_dir" && as_dir=.
8630 for ac_exec_ext in '' $ac_executable_extensions; do
8631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8632 ac_cv_prog_ac_ct_OTOOL64="otool64"
8633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8634 break 2
8635 fi
8636 done
8637 done
8638 IFS=$as_save_IFS
8639
8640 fi
8641 fi
8642 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8643 if test -n "$ac_ct_OTOOL64"; then
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8645 $as_echo "$ac_ct_OTOOL64" >&6; }
8646 else
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8648 $as_echo "no" >&6; }
8649 fi
8650
8651 if test "x$ac_ct_OTOOL64" = x; then
8652 OTOOL64=":"
8653 else
8654 case $cross_compiling:$ac_tool_warned in
8655 yes:)
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8658 ac_tool_warned=yes ;;
8659 esac
8660 OTOOL64=$ac_ct_OTOOL64
8661 fi
8662 else
8663 OTOOL64="$ac_cv_prog_OTOOL64"
8664 fi
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8693 $as_echo_n "checking for -single_module linker flag... " >&6; }
8694 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8695 $as_echo_n "(cached) " >&6
8696 else
8697 lt_cv_apple_cc_single_mod=no
8698 if test -z "${LT_MULTI_MODULE}"; then
8699 # By default we will add the -single_module flag. You can override
8700 # by either setting the environment variable LT_MULTI_MODULE
8701 # non-empty at configure time, or by adding -multi_module to the
8702 # link flags.
8703 rm -rf libconftest.dylib*
8704 echo "int foo(void){return 1;}" > conftest.c
8705 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8706 -dynamiclib -Wl,-single_module conftest.c" >&5
8707 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8708 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8709 _lt_result=$?
8710 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8711 lt_cv_apple_cc_single_mod=yes
8712 else
8713 cat conftest.err >&5
8714 fi
8715 rm -rf libconftest.dylib*
8716 rm -f conftest.*
8717 fi
8718 fi
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8720 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8722 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8723 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8724 $as_echo_n "(cached) " >&6
8725 else
8726 lt_cv_ld_exported_symbols_list=no
8727 save_LDFLAGS=$LDFLAGS
8728 echo "_main" > conftest.sym
8729 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8730 if test x$gcc_no_link = xyes; then
8731 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8732 fi
8733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8734 /* end confdefs.h. */
8735
8736 int
8737 main ()
8738 {
8739
8740 ;
8741 return 0;
8742 }
8743 _ACEOF
8744 if ac_fn_c_try_link "$LINENO"; then :
8745 lt_cv_ld_exported_symbols_list=yes
8746 else
8747 lt_cv_ld_exported_symbols_list=no
8748 fi
8749 rm -f core conftest.err conftest.$ac_objext \
8750 conftest$ac_exeext conftest.$ac_ext
8751 LDFLAGS="$save_LDFLAGS"
8752
8753 fi
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8755 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8757 $as_echo_n "checking for -force_load linker flag... " >&6; }
8758 if test "${lt_cv_ld_force_load+set}" = set; then :
8759 $as_echo_n "(cached) " >&6
8760 else
8761 lt_cv_ld_force_load=no
8762 cat > conftest.c << _LT_EOF
8763 int forced_loaded() { return 2;}
8764 _LT_EOF
8765 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8766 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8767 echo "$AR cru libconftest.a conftest.o" >&5
8768 $AR cru libconftest.a conftest.o 2>&5
8769 cat > conftest.c << _LT_EOF
8770 int main() { return 0;}
8771 _LT_EOF
8772 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8773 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8774 _lt_result=$?
8775 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8776 lt_cv_ld_force_load=yes
8777 else
8778 cat conftest.err >&5
8779 fi
8780 rm -f conftest.err libconftest.a conftest conftest.c
8781 rm -rf conftest.dSYM
8782
8783 fi
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8785 $as_echo "$lt_cv_ld_force_load" >&6; }
8786 case $host_os in
8787 rhapsody* | darwin1.[012])
8788 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8789 darwin1.*)
8790 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8791 darwin*) # darwin 5.x on
8792 # if running on 10.5 or later, the deployment target defaults
8793 # to the OS version, if on x86, and 10.4, the deployment
8794 # target defaults to 10.4. Don't you love it?
8795 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8796 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8797 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8798 10.[012]*)
8799 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8800 10.*)
8801 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8802 esac
8803 ;;
8804 esac
8805 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8806 _lt_dar_single_mod='$single_module'
8807 fi
8808 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8809 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8810 else
8811 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8812 fi
8813 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8814 _lt_dsymutil='~$DSYMUTIL $lib || :'
8815 else
8816 _lt_dsymutil=
8817 fi
8818 ;;
8819 esac
8820
8821 for ac_header in dlfcn.h
8822 do :
8823 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8824 "
8825 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8826 cat >>confdefs.h <<_ACEOF
8827 #define HAVE_DLFCN_H 1
8828 _ACEOF
8829
8830 fi
8831
8832 done
8833
8834
8835
8836
8837
8838 # Set options
8839
8840
8841
8842
8843 enable_win32_dll=no
8844
8845
8846 # Check whether --enable-shared was given.
8847 if test "${enable_shared+set}" = set; then :
8848 enableval=$enable_shared; p=${PACKAGE-default}
8849 case $enableval in
8850 yes) enable_shared=yes ;;
8851 no) enable_shared=no ;;
8852 *)
8853 enable_shared=no
8854 # Look at the argument we got. We use all the common list separators.
8855 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8856 for pkg in $enableval; do
8857 IFS="$lt_save_ifs"
8858 if test "X$pkg" = "X$p"; then
8859 enable_shared=yes
8860 fi
8861 done
8862 IFS="$lt_save_ifs"
8863 ;;
8864 esac
8865 else
8866 enable_shared=yes
8867 fi
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877 # Check whether --enable-static was given.
8878 if test "${enable_static+set}" = set; then :
8879 enableval=$enable_static; p=${PACKAGE-default}
8880 case $enableval in
8881 yes) enable_static=yes ;;
8882 no) enable_static=no ;;
8883 *)
8884 enable_static=no
8885 # Look at the argument we got. We use all the common list separators.
8886 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8887 for pkg in $enableval; do
8888 IFS="$lt_save_ifs"
8889 if test "X$pkg" = "X$p"; then
8890 enable_static=yes
8891 fi
8892 done
8893 IFS="$lt_save_ifs"
8894 ;;
8895 esac
8896 else
8897 enable_static=yes
8898 fi
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909 # Check whether --with-pic was given.
8910 if test "${with_pic+set}" = set; then :
8911 withval=$with_pic; pic_mode="$withval"
8912 else
8913 pic_mode=default
8914 fi
8915
8916
8917 test -z "$pic_mode" && pic_mode=default
8918
8919
8920
8921
8922
8923
8924
8925 # Check whether --enable-fast-install was given.
8926 if test "${enable_fast_install+set}" = set; then :
8927 enableval=$enable_fast_install; p=${PACKAGE-default}
8928 case $enableval in
8929 yes) enable_fast_install=yes ;;
8930 no) enable_fast_install=no ;;
8931 *)
8932 enable_fast_install=no
8933 # Look at the argument we got. We use all the common list separators.
8934 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8935 for pkg in $enableval; do
8936 IFS="$lt_save_ifs"
8937 if test "X$pkg" = "X$p"; then
8938 enable_fast_install=yes
8939 fi
8940 done
8941 IFS="$lt_save_ifs"
8942 ;;
8943 esac
8944 else
8945 enable_fast_install=yes
8946 fi
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958 # This can be used to rebuild libtool when needed
8959 LIBTOOL_DEPS="$ltmain"
8960
8961 # Always use our own libtool.
8962 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989 test -z "$LN_S" && LN_S="ln -s"
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004 if test -n "${ZSH_VERSION+set}" ; then
9005 setopt NO_GLOB_SUBST
9006 fi
9007
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9009 $as_echo_n "checking for objdir... " >&6; }
9010 if test "${lt_cv_objdir+set}" = set; then :
9011 $as_echo_n "(cached) " >&6
9012 else
9013 rm -f .libs 2>/dev/null
9014 mkdir .libs 2>/dev/null
9015 if test -d .libs; then
9016 lt_cv_objdir=.libs
9017 else
9018 # MS-DOS does not allow filenames that begin with a dot.
9019 lt_cv_objdir=_libs
9020 fi
9021 rmdir .libs 2>/dev/null
9022 fi
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9024 $as_echo "$lt_cv_objdir" >&6; }
9025 objdir=$lt_cv_objdir
9026
9027
9028
9029
9030
9031 cat >>confdefs.h <<_ACEOF
9032 #define LT_OBJDIR "$lt_cv_objdir/"
9033 _ACEOF
9034
9035
9036
9037
9038 case $host_os in
9039 aix3*)
9040 # AIX sometimes has problems with the GCC collect2 program. For some
9041 # reason, if we set the COLLECT_NAMES environment variable, the problems
9042 # vanish in a puff of smoke.
9043 if test "X${COLLECT_NAMES+set}" != Xset; then
9044 COLLECT_NAMES=
9045 export COLLECT_NAMES
9046 fi
9047 ;;
9048 esac
9049
9050 # Global variables:
9051 ofile=libtool
9052 can_build_shared=yes
9053
9054 # All known linkers require a `.a' archive for static linking (except MSVC,
9055 # which needs '.lib').
9056 libext=a
9057
9058 with_gnu_ld="$lt_cv_prog_gnu_ld"
9059
9060 old_CC="$CC"
9061 old_CFLAGS="$CFLAGS"
9062
9063 # Set sane defaults for various variables
9064 test -z "$CC" && CC=cc
9065 test -z "$LTCC" && LTCC=$CC
9066 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9067 test -z "$LD" && LD=ld
9068 test -z "$ac_objext" && ac_objext=o
9069
9070 for cc_temp in $compiler""; do
9071 case $cc_temp in
9072 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9073 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9074 \-*) ;;
9075 *) break;;
9076 esac
9077 done
9078 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9079
9080
9081 # Only perform the check for file, if the check method requires it
9082 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9083 case $deplibs_check_method in
9084 file_magic*)
9085 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9087 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9088 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9089 $as_echo_n "(cached) " >&6
9090 else
9091 case $MAGIC_CMD in
9092 [\\/*] | ?:[\\/]*)
9093 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9094 ;;
9095 *)
9096 lt_save_MAGIC_CMD="$MAGIC_CMD"
9097 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9098 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9099 for ac_dir in $ac_dummy; do
9100 IFS="$lt_save_ifs"
9101 test -z "$ac_dir" && ac_dir=.
9102 if test -f $ac_dir/${ac_tool_prefix}file; then
9103 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9104 if test -n "$file_magic_test_file"; then
9105 case $deplibs_check_method in
9106 "file_magic "*)
9107 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9108 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9109 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9110 $EGREP "$file_magic_regex" > /dev/null; then
9111 :
9112 else
9113 cat <<_LT_EOF 1>&2
9114
9115 *** Warning: the command libtool uses to detect shared libraries,
9116 *** $file_magic_cmd, produces output that libtool cannot recognize.
9117 *** The result is that libtool may fail to recognize shared libraries
9118 *** as such. This will affect the creation of libtool libraries that
9119 *** depend on shared libraries, but programs linked with such libtool
9120 *** libraries will work regardless of this problem. Nevertheless, you
9121 *** may want to report the problem to your system manager and/or to
9122 *** bug-libtool@gnu.org
9123
9124 _LT_EOF
9125 fi ;;
9126 esac
9127 fi
9128 break
9129 fi
9130 done
9131 IFS="$lt_save_ifs"
9132 MAGIC_CMD="$lt_save_MAGIC_CMD"
9133 ;;
9134 esac
9135 fi
9136
9137 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9138 if test -n "$MAGIC_CMD"; then
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9140 $as_echo "$MAGIC_CMD" >&6; }
9141 else
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9143 $as_echo "no" >&6; }
9144 fi
9145
9146
9147
9148
9149
9150 if test -z "$lt_cv_path_MAGIC_CMD"; then
9151 if test -n "$ac_tool_prefix"; then
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9153 $as_echo_n "checking for file... " >&6; }
9154 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9155 $as_echo_n "(cached) " >&6
9156 else
9157 case $MAGIC_CMD in
9158 [\\/*] | ?:[\\/]*)
9159 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9160 ;;
9161 *)
9162 lt_save_MAGIC_CMD="$MAGIC_CMD"
9163 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9164 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9165 for ac_dir in $ac_dummy; do
9166 IFS="$lt_save_ifs"
9167 test -z "$ac_dir" && ac_dir=.
9168 if test -f $ac_dir/file; then
9169 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9170 if test -n "$file_magic_test_file"; then
9171 case $deplibs_check_method in
9172 "file_magic "*)
9173 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9174 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9175 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9176 $EGREP "$file_magic_regex" > /dev/null; then
9177 :
9178 else
9179 cat <<_LT_EOF 1>&2
9180
9181 *** Warning: the command libtool uses to detect shared libraries,
9182 *** $file_magic_cmd, produces output that libtool cannot recognize.
9183 *** The result is that libtool may fail to recognize shared libraries
9184 *** as such. This will affect the creation of libtool libraries that
9185 *** depend on shared libraries, but programs linked with such libtool
9186 *** libraries will work regardless of this problem. Nevertheless, you
9187 *** may want to report the problem to your system manager and/or to
9188 *** bug-libtool@gnu.org
9189
9190 _LT_EOF
9191 fi ;;
9192 esac
9193 fi
9194 break
9195 fi
9196 done
9197 IFS="$lt_save_ifs"
9198 MAGIC_CMD="$lt_save_MAGIC_CMD"
9199 ;;
9200 esac
9201 fi
9202
9203 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9204 if test -n "$MAGIC_CMD"; then
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9206 $as_echo "$MAGIC_CMD" >&6; }
9207 else
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9209 $as_echo "no" >&6; }
9210 fi
9211
9212
9213 else
9214 MAGIC_CMD=:
9215 fi
9216 fi
9217
9218 fi
9219 ;;
9220 esac
9221
9222 # Use C for the default configuration in the libtool script
9223
9224 lt_save_CC="$CC"
9225 ac_ext=c
9226 ac_cpp='$CPP $CPPFLAGS'
9227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9230
9231
9232 # Source file extension for C test sources.
9233 ac_ext=c
9234
9235 # Object file extension for compiled C test sources.
9236 objext=o
9237 objext=$objext
9238
9239 # Code to be used in simple compile tests
9240 lt_simple_compile_test_code="int some_variable = 0;"
9241
9242 # Code to be used in simple link tests
9243 lt_simple_link_test_code='int main(){return(0);}'
9244
9245
9246
9247
9248
9249
9250
9251 # If no C compiler was specified, use CC.
9252 LTCC=${LTCC-"$CC"}
9253
9254 # If no C compiler flags were specified, use CFLAGS.
9255 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9256
9257 # Allow CC to be a program name with arguments.
9258 compiler=$CC
9259
9260 # Save the default compiler, since it gets overwritten when the other
9261 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9262 compiler_DEFAULT=$CC
9263
9264 # save warnings/boilerplate of simple test code
9265 ac_outfile=conftest.$ac_objext
9266 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9267 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9268 _lt_compiler_boilerplate=`cat conftest.err`
9269 $RM conftest*
9270
9271 ac_outfile=conftest.$ac_objext
9272 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9273 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9274 _lt_linker_boilerplate=`cat conftest.err`
9275 $RM -r conftest*
9276
9277
9278 ## CAVEAT EMPTOR:
9279 ## There is no encapsulation within the following macros, do not change
9280 ## the running order or otherwise move them around unless you know exactly
9281 ## what you are doing...
9282 if test -n "$compiler"; then
9283
9284 lt_prog_compiler_no_builtin_flag=
9285
9286 if test "$GCC" = yes; then
9287 case $cc_basename in
9288 nvcc*)
9289 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9290 *)
9291 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9292 esac
9293
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9295 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9296 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9297 $as_echo_n "(cached) " >&6
9298 else
9299 lt_cv_prog_compiler_rtti_exceptions=no
9300 ac_outfile=conftest.$ac_objext
9301 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9302 lt_compiler_flag="-fno-rtti -fno-exceptions"
9303 # Insert the option either (1) after the last *FLAGS variable, or
9304 # (2) before a word containing "conftest.", or (3) at the end.
9305 # Note that $ac_compile itself does not contain backslashes and begins
9306 # with a dollar sign (not a hyphen), so the echo should work correctly.
9307 # The option is referenced via a variable to avoid confusing sed.
9308 lt_compile=`echo "$ac_compile" | $SED \
9309 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9310 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9311 -e 's:$: $lt_compiler_flag:'`
9312 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9313 (eval "$lt_compile" 2>conftest.err)
9314 ac_status=$?
9315 cat conftest.err >&5
9316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 if (exit $ac_status) && test -s "$ac_outfile"; then
9318 # The compiler can only warn and ignore the option if not recognized
9319 # So say no if there are warnings other than the usual output.
9320 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9321 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9322 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9323 lt_cv_prog_compiler_rtti_exceptions=yes
9324 fi
9325 fi
9326 $RM conftest*
9327
9328 fi
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9330 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9331
9332 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9333 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9334 else
9335 :
9336 fi
9337
9338 fi
9339
9340
9341
9342
9343
9344
9345 lt_prog_compiler_wl=
9346 lt_prog_compiler_pic=
9347 lt_prog_compiler_static=
9348
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9350 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9351
9352 if test "$GCC" = yes; then
9353 lt_prog_compiler_wl='-Wl,'
9354 lt_prog_compiler_static='-static'
9355
9356 case $host_os in
9357 aix*)
9358 # All AIX code is PIC.
9359 if test "$host_cpu" = ia64; then
9360 # AIX 5 now supports IA64 processor
9361 lt_prog_compiler_static='-Bstatic'
9362 fi
9363 lt_prog_compiler_pic='-fPIC'
9364 ;;
9365
9366 amigaos*)
9367 case $host_cpu in
9368 powerpc)
9369 # see comment about AmigaOS4 .so support
9370 lt_prog_compiler_pic='-fPIC'
9371 ;;
9372 m68k)
9373 # FIXME: we need at least 68020 code to build shared libraries, but
9374 # adding the `-m68020' flag to GCC prevents building anything better,
9375 # like `-m68040'.
9376 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9377 ;;
9378 esac
9379 ;;
9380
9381 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9382 # PIC is the default for these OSes.
9383 ;;
9384
9385 mingw* | cygwin* | pw32* | os2* | cegcc*)
9386 # This hack is so that the source file can tell whether it is being
9387 # built for inclusion in a dll (and should export symbols for example).
9388 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9389 # (--disable-auto-import) libraries
9390 lt_prog_compiler_pic='-DDLL_EXPORT'
9391 ;;
9392
9393 darwin* | rhapsody*)
9394 # PIC is the default on this platform
9395 # Common symbols not allowed in MH_DYLIB files
9396 lt_prog_compiler_pic='-fno-common'
9397 ;;
9398
9399 haiku*)
9400 # PIC is the default for Haiku.
9401 # The "-static" flag exists, but is broken.
9402 lt_prog_compiler_static=
9403 ;;
9404
9405 hpux*)
9406 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9407 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9408 # sets the default TLS model and affects inlining.
9409 case $host_cpu in
9410 hppa*64*)
9411 # +Z the default
9412 ;;
9413 *)
9414 lt_prog_compiler_pic='-fPIC'
9415 ;;
9416 esac
9417 ;;
9418
9419 interix[3-9]*)
9420 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9421 # Instead, we relocate shared libraries at runtime.
9422 ;;
9423
9424 msdosdjgpp*)
9425 # Just because we use GCC doesn't mean we suddenly get shared libraries
9426 # on systems that don't support them.
9427 lt_prog_compiler_can_build_shared=no
9428 enable_shared=no
9429 ;;
9430
9431 *nto* | *qnx*)
9432 # QNX uses GNU C++, but need to define -shared option too, otherwise
9433 # it will coredump.
9434 lt_prog_compiler_pic='-fPIC -shared'
9435 ;;
9436
9437 sysv4*MP*)
9438 if test -d /usr/nec; then
9439 lt_prog_compiler_pic=-Kconform_pic
9440 fi
9441 ;;
9442
9443 *)
9444 lt_prog_compiler_pic='-fPIC'
9445 ;;
9446 esac
9447
9448 case $cc_basename in
9449 nvcc*) # Cuda Compiler Driver 2.2
9450 lt_prog_compiler_wl='-Xlinker '
9451 lt_prog_compiler_pic='-Xcompiler -fPIC'
9452 ;;
9453 esac
9454 else
9455 # PORTME Check for flag to pass linker flags through the system compiler.
9456 case $host_os in
9457 aix*)
9458 lt_prog_compiler_wl='-Wl,'
9459 if test "$host_cpu" = ia64; then
9460 # AIX 5 now supports IA64 processor
9461 lt_prog_compiler_static='-Bstatic'
9462 else
9463 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9464 fi
9465 ;;
9466
9467 mingw* | cygwin* | pw32* | os2* | cegcc*)
9468 # This hack is so that the source file can tell whether it is being
9469 # built for inclusion in a dll (and should export symbols for example).
9470 lt_prog_compiler_pic='-DDLL_EXPORT'
9471 ;;
9472
9473 hpux9* | hpux10* | hpux11*)
9474 lt_prog_compiler_wl='-Wl,'
9475 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9476 # not for PA HP-UX.
9477 case $host_cpu in
9478 hppa*64*|ia64*)
9479 # +Z the default
9480 ;;
9481 *)
9482 lt_prog_compiler_pic='+Z'
9483 ;;
9484 esac
9485 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9486 lt_prog_compiler_static='${wl}-a ${wl}archive'
9487 ;;
9488
9489 irix5* | irix6* | nonstopux*)
9490 lt_prog_compiler_wl='-Wl,'
9491 # PIC (with -KPIC) is the default.
9492 lt_prog_compiler_static='-non_shared'
9493 ;;
9494
9495 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9496 case $cc_basename in
9497 # old Intel for x86_64 which still supported -KPIC.
9498 ecc*)
9499 lt_prog_compiler_wl='-Wl,'
9500 lt_prog_compiler_pic='-KPIC'
9501 lt_prog_compiler_static='-static'
9502 ;;
9503 # icc used to be incompatible with GCC.
9504 # ICC 10 doesn't accept -KPIC any more.
9505 icc* | ifort*)
9506 lt_prog_compiler_wl='-Wl,'
9507 lt_prog_compiler_pic='-fPIC'
9508 lt_prog_compiler_static='-static'
9509 ;;
9510 # Lahey Fortran 8.1.
9511 lf95*)
9512 lt_prog_compiler_wl='-Wl,'
9513 lt_prog_compiler_pic='--shared'
9514 lt_prog_compiler_static='--static'
9515 ;;
9516 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9517 # Portland Group compilers (*not* the Pentium gcc compiler,
9518 # which looks to be a dead project)
9519 lt_prog_compiler_wl='-Wl,'
9520 lt_prog_compiler_pic='-fpic'
9521 lt_prog_compiler_static='-Bstatic'
9522 ;;
9523 ccc*)
9524 lt_prog_compiler_wl='-Wl,'
9525 # All Alpha code is PIC.
9526 lt_prog_compiler_static='-non_shared'
9527 ;;
9528 xl* | bgxl* | bgf* | mpixl*)
9529 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9530 lt_prog_compiler_wl='-Wl,'
9531 lt_prog_compiler_pic='-qpic'
9532 lt_prog_compiler_static='-qstaticlink'
9533 ;;
9534 *)
9535 case `$CC -V 2>&1 | sed 5q` in
9536 *Sun\ F* | *Sun*Fortran*)
9537 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9538 lt_prog_compiler_pic='-KPIC'
9539 lt_prog_compiler_static='-Bstatic'
9540 lt_prog_compiler_wl=''
9541 ;;
9542 *Sun\ C*)
9543 # Sun C 5.9
9544 lt_prog_compiler_pic='-KPIC'
9545 lt_prog_compiler_static='-Bstatic'
9546 lt_prog_compiler_wl='-Wl,'
9547 ;;
9548 esac
9549 ;;
9550 esac
9551 ;;
9552
9553 newsos6)
9554 lt_prog_compiler_pic='-KPIC'
9555 lt_prog_compiler_static='-Bstatic'
9556 ;;
9557
9558 *nto* | *qnx*)
9559 # QNX uses GNU C++, but need to define -shared option too, otherwise
9560 # it will coredump.
9561 lt_prog_compiler_pic='-fPIC -shared'
9562 ;;
9563
9564 osf3* | osf4* | osf5*)
9565 lt_prog_compiler_wl='-Wl,'
9566 # All OSF/1 code is PIC.
9567 lt_prog_compiler_static='-non_shared'
9568 ;;
9569
9570 rdos*)
9571 lt_prog_compiler_static='-non_shared'
9572 ;;
9573
9574 solaris*)
9575 lt_prog_compiler_pic='-KPIC'
9576 lt_prog_compiler_static='-Bstatic'
9577 case $cc_basename in
9578 f77* | f90* | f95*)
9579 lt_prog_compiler_wl='-Qoption ld ';;
9580 *)
9581 lt_prog_compiler_wl='-Wl,';;
9582 esac
9583 ;;
9584
9585 sunos4*)
9586 lt_prog_compiler_wl='-Qoption ld '
9587 lt_prog_compiler_pic='-PIC'
9588 lt_prog_compiler_static='-Bstatic'
9589 ;;
9590
9591 sysv4 | sysv4.2uw2* | sysv4.3*)
9592 lt_prog_compiler_wl='-Wl,'
9593 lt_prog_compiler_pic='-KPIC'
9594 lt_prog_compiler_static='-Bstatic'
9595 ;;
9596
9597 sysv4*MP*)
9598 if test -d /usr/nec ;then
9599 lt_prog_compiler_pic='-Kconform_pic'
9600 lt_prog_compiler_static='-Bstatic'
9601 fi
9602 ;;
9603
9604 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9605 lt_prog_compiler_wl='-Wl,'
9606 lt_prog_compiler_pic='-KPIC'
9607 lt_prog_compiler_static='-Bstatic'
9608 ;;
9609
9610 unicos*)
9611 lt_prog_compiler_wl='-Wl,'
9612 lt_prog_compiler_can_build_shared=no
9613 ;;
9614
9615 uts4*)
9616 lt_prog_compiler_pic='-pic'
9617 lt_prog_compiler_static='-Bstatic'
9618 ;;
9619
9620 *)
9621 lt_prog_compiler_can_build_shared=no
9622 ;;
9623 esac
9624 fi
9625
9626 case $host_os in
9627 # For platforms which do not support PIC, -DPIC is meaningless:
9628 *djgpp*)
9629 lt_prog_compiler_pic=
9630 ;;
9631 *)
9632 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9633 ;;
9634 esac
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9636 $as_echo "$lt_prog_compiler_pic" >&6; }
9637
9638
9639
9640
9641
9642
9643 #
9644 # Check to make sure the PIC flag actually works.
9645 #
9646 if test -n "$lt_prog_compiler_pic"; then
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9648 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9649 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9650 $as_echo_n "(cached) " >&6
9651 else
9652 lt_cv_prog_compiler_pic_works=no
9653 ac_outfile=conftest.$ac_objext
9654 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9655 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9656 # Insert the option either (1) after the last *FLAGS variable, or
9657 # (2) before a word containing "conftest.", or (3) at the end.
9658 # Note that $ac_compile itself does not contain backslashes and begins
9659 # with a dollar sign (not a hyphen), so the echo should work correctly.
9660 # The option is referenced via a variable to avoid confusing sed.
9661 lt_compile=`echo "$ac_compile" | $SED \
9662 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9663 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9664 -e 's:$: $lt_compiler_flag:'`
9665 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9666 (eval "$lt_compile" 2>conftest.err)
9667 ac_status=$?
9668 cat conftest.err >&5
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670 if (exit $ac_status) && test -s "$ac_outfile"; then
9671 # The compiler can only warn and ignore the option if not recognized
9672 # So say no if there are warnings other than the usual output.
9673 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9674 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9675 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9676 lt_cv_prog_compiler_pic_works=yes
9677 fi
9678 fi
9679 $RM conftest*
9680
9681 fi
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9683 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9684
9685 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9686 case $lt_prog_compiler_pic in
9687 "" | " "*) ;;
9688 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9689 esac
9690 else
9691 lt_prog_compiler_pic=
9692 lt_prog_compiler_can_build_shared=no
9693 fi
9694
9695 fi
9696
9697
9698
9699
9700
9701
9702 #
9703 # Check to make sure the static flag actually works.
9704 #
9705 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9707 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9708 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9709 $as_echo_n "(cached) " >&6
9710 else
9711 lt_cv_prog_compiler_static_works=no
9712 save_LDFLAGS="$LDFLAGS"
9713 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9714 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9715 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9716 # The linker can only warn and ignore the option if not recognized
9717 # So say no if there are warnings
9718 if test -s conftest.err; then
9719 # Append any errors to the config.log.
9720 cat conftest.err 1>&5
9721 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9722 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9723 if diff conftest.exp conftest.er2 >/dev/null; then
9724 lt_cv_prog_compiler_static_works=yes
9725 fi
9726 else
9727 lt_cv_prog_compiler_static_works=yes
9728 fi
9729 fi
9730 $RM -r conftest*
9731 LDFLAGS="$save_LDFLAGS"
9732
9733 fi
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9735 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9736
9737 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9738 :
9739 else
9740 lt_prog_compiler_static=
9741 fi
9742
9743
9744
9745
9746
9747
9748
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9750 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9751 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9752 $as_echo_n "(cached) " >&6
9753 else
9754 lt_cv_prog_compiler_c_o=no
9755 $RM -r conftest 2>/dev/null
9756 mkdir conftest
9757 cd conftest
9758 mkdir out
9759 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9760
9761 lt_compiler_flag="-o out/conftest2.$ac_objext"
9762 # Insert the option either (1) after the last *FLAGS variable, or
9763 # (2) before a word containing "conftest.", or (3) at the end.
9764 # Note that $ac_compile itself does not contain backslashes and begins
9765 # with a dollar sign (not a hyphen), so the echo should work correctly.
9766 lt_compile=`echo "$ac_compile" | $SED \
9767 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9768 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9769 -e 's:$: $lt_compiler_flag:'`
9770 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9771 (eval "$lt_compile" 2>out/conftest.err)
9772 ac_status=$?
9773 cat out/conftest.err >&5
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9776 then
9777 # The compiler can only warn and ignore the option if not recognized
9778 # So say no if there are warnings
9779 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9780 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9781 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9782 lt_cv_prog_compiler_c_o=yes
9783 fi
9784 fi
9785 chmod u+w . 2>&5
9786 $RM conftest*
9787 # SGI C++ compiler will create directory out/ii_files/ for
9788 # template instantiation
9789 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9790 $RM out/* && rmdir out
9791 cd ..
9792 $RM -r conftest
9793 $RM conftest*
9794
9795 fi
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9797 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9798
9799
9800
9801
9802
9803
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9805 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9806 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9807 $as_echo_n "(cached) " >&6
9808 else
9809 lt_cv_prog_compiler_c_o=no
9810 $RM -r conftest 2>/dev/null
9811 mkdir conftest
9812 cd conftest
9813 mkdir out
9814 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9815
9816 lt_compiler_flag="-o out/conftest2.$ac_objext"
9817 # Insert the option either (1) after the last *FLAGS variable, or
9818 # (2) before a word containing "conftest.", or (3) at the end.
9819 # Note that $ac_compile itself does not contain backslashes and begins
9820 # with a dollar sign (not a hyphen), so the echo should work correctly.
9821 lt_compile=`echo "$ac_compile" | $SED \
9822 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9823 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9824 -e 's:$: $lt_compiler_flag:'`
9825 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9826 (eval "$lt_compile" 2>out/conftest.err)
9827 ac_status=$?
9828 cat out/conftest.err >&5
9829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9831 then
9832 # The compiler can only warn and ignore the option if not recognized
9833 # So say no if there are warnings
9834 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9835 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9836 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9837 lt_cv_prog_compiler_c_o=yes
9838 fi
9839 fi
9840 chmod u+w . 2>&5
9841 $RM conftest*
9842 # SGI C++ compiler will create directory out/ii_files/ for
9843 # template instantiation
9844 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9845 $RM out/* && rmdir out
9846 cd ..
9847 $RM -r conftest
9848 $RM conftest*
9849
9850 fi
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9852 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9853
9854
9855
9856
9857 hard_links="nottested"
9858 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9859 # do not overwrite the value of need_locks provided by the user
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9861 $as_echo_n "checking if we can lock with hard links... " >&6; }
9862 hard_links=yes
9863 $RM conftest*
9864 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9865 touch conftest.a
9866 ln conftest.a conftest.b 2>&5 || hard_links=no
9867 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9869 $as_echo "$hard_links" >&6; }
9870 if test "$hard_links" = no; then
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9872 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9873 need_locks=warn
9874 fi
9875 else
9876 need_locks=no
9877 fi
9878
9879
9880
9881
9882
9883
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9885 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9886
9887 runpath_var=
9888 allow_undefined_flag=
9889 always_export_symbols=no
9890 archive_cmds=
9891 archive_expsym_cmds=
9892 compiler_needs_object=no
9893 enable_shared_with_static_runtimes=no
9894 export_dynamic_flag_spec=
9895 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9896 hardcode_automatic=no
9897 hardcode_direct=no
9898 hardcode_direct_absolute=no
9899 hardcode_libdir_flag_spec=
9900 hardcode_libdir_flag_spec_ld=
9901 hardcode_libdir_separator=
9902 hardcode_minus_L=no
9903 hardcode_shlibpath_var=unsupported
9904 inherit_rpath=no
9905 link_all_deplibs=unknown
9906 module_cmds=
9907 module_expsym_cmds=
9908 old_archive_from_new_cmds=
9909 old_archive_from_expsyms_cmds=
9910 thread_safe_flag_spec=
9911 whole_archive_flag_spec=
9912 # include_expsyms should be a list of space-separated symbols to be *always*
9913 # included in the symbol list
9914 include_expsyms=
9915 # exclude_expsyms can be an extended regexp of symbols to exclude
9916 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9917 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9918 # as well as any symbol that contains `d'.
9919 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9920 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9921 # platforms (ab)use it in PIC code, but their linkers get confused if
9922 # the symbol is explicitly referenced. Since portable code cannot
9923 # rely on this symbol name, it's probably fine to never include it in
9924 # preloaded symbol tables.
9925 # Exclude shared library initialization/finalization symbols.
9926 extract_expsyms_cmds=
9927
9928 case $host_os in
9929 cygwin* | mingw* | pw32* | cegcc*)
9930 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9931 # When not using gcc, we currently assume that we are using
9932 # Microsoft Visual C++.
9933 if test "$GCC" != yes; then
9934 with_gnu_ld=no
9935 fi
9936 ;;
9937 interix*)
9938 # we just hope/assume this is gcc and not c89 (= MSVC++)
9939 with_gnu_ld=yes
9940 ;;
9941 openbsd*)
9942 with_gnu_ld=no
9943 ;;
9944 esac
9945
9946 ld_shlibs=yes
9947
9948 # On some targets, GNU ld is compatible enough with the native linker
9949 # that we're better off using the native interface for both.
9950 lt_use_gnu_ld_interface=no
9951 if test "$with_gnu_ld" = yes; then
9952 case $host_os in
9953 aix*)
9954 # The AIX port of GNU ld has always aspired to compatibility
9955 # with the native linker. However, as the warning in the GNU ld
9956 # block says, versions before 2.19.5* couldn't really create working
9957 # shared libraries, regardless of the interface used.
9958 case `$LD -v 2>&1` in
9959 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9960 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9961 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9962 *)
9963 lt_use_gnu_ld_interface=yes
9964 ;;
9965 esac
9966 ;;
9967 *)
9968 lt_use_gnu_ld_interface=yes
9969 ;;
9970 esac
9971 fi
9972
9973 if test "$lt_use_gnu_ld_interface" = yes; then
9974 # If archive_cmds runs LD, not CC, wlarc should be empty
9975 wlarc='${wl}'
9976
9977 # Set some defaults for GNU ld with shared library support. These
9978 # are reset later if shared libraries are not supported. Putting them
9979 # here allows them to be overridden if necessary.
9980 runpath_var=LD_RUN_PATH
9981 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9982 export_dynamic_flag_spec='${wl}--export-dynamic'
9983 # ancient GNU ld didn't support --whole-archive et. al.
9984 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9985 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9986 else
9987 whole_archive_flag_spec=
9988 fi
9989 supports_anon_versioning=no
9990 case `$LD -v 2>&1` in
9991 *GNU\ gold*) supports_anon_versioning=yes ;;
9992 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9993 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9994 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9995 *\ 2.11.*) ;; # other 2.11 versions
9996 *) supports_anon_versioning=yes ;;
9997 esac
9998
9999 # See if GNU ld supports shared libraries.
10000 case $host_os in
10001 aix[3-9]*)
10002 # On AIX/PPC, the GNU linker is very broken
10003 if test "$host_cpu" != ia64; then
10004 ld_shlibs=no
10005 cat <<_LT_EOF 1>&2
10006
10007 *** Warning: the GNU linker, at least up to release 2.19, is reported
10008 *** to be unable to reliably create shared libraries on AIX.
10009 *** Therefore, libtool is disabling shared libraries support. If you
10010 *** really care for shared libraries, you may want to install binutils
10011 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10012 *** You will then need to restart the configuration process.
10013
10014 _LT_EOF
10015 fi
10016 ;;
10017
10018 amigaos*)
10019 case $host_cpu in
10020 powerpc)
10021 # see comment about AmigaOS4 .so support
10022 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10023 archive_expsym_cmds=''
10024 ;;
10025 m68k)
10026 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)'
10027 hardcode_libdir_flag_spec='-L$libdir'
10028 hardcode_minus_L=yes
10029 ;;
10030 esac
10031 ;;
10032
10033 beos*)
10034 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10035 allow_undefined_flag=unsupported
10036 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10037 # support --undefined. This deserves some investigation. FIXME
10038 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10039 else
10040 ld_shlibs=no
10041 fi
10042 ;;
10043
10044 cygwin* | mingw* | pw32* | cegcc*)
10045 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10046 # as there is no search path for DLLs.
10047 hardcode_libdir_flag_spec='-L$libdir'
10048 export_dynamic_flag_spec='${wl}--export-all-symbols'
10049 allow_undefined_flag=unsupported
10050 always_export_symbols=no
10051 enable_shared_with_static_runtimes=yes
10052 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10053
10054 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10055 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10056 # If the export-symbols file already is a .def file (1st line
10057 # is EXPORTS), use it as is; otherwise, prepend...
10058 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10059 cp $export_symbols $output_objdir/$soname.def;
10060 else
10061 echo EXPORTS > $output_objdir/$soname.def;
10062 cat $export_symbols >> $output_objdir/$soname.def;
10063 fi~
10064 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10065 else
10066 ld_shlibs=no
10067 fi
10068 ;;
10069
10070 haiku*)
10071 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10072 link_all_deplibs=yes
10073 ;;
10074
10075 interix[3-9]*)
10076 hardcode_direct=no
10077 hardcode_shlibpath_var=no
10078 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10079 export_dynamic_flag_spec='${wl}-E'
10080 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10081 # Instead, shared libraries are loaded at an image base (0x10000000 by
10082 # default) and relocated if they conflict, which is a slow very memory
10083 # consuming and fragmenting process. To avoid this, we pick a random,
10084 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10085 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10086 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10087 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'
10088 ;;
10089
10090 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10091 tmp_diet=no
10092 if test "$host_os" = linux-dietlibc; then
10093 case $cc_basename in
10094 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10095 esac
10096 fi
10097 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10098 && test "$tmp_diet" = no
10099 then
10100 tmp_addflag=
10101 tmp_sharedflag='-shared'
10102 case $cc_basename,$host_cpu in
10103 pgcc*) # Portland Group C compiler
10104 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'
10105 tmp_addflag=' $pic_flag'
10106 ;;
10107 pgf77* | pgf90* | pgf95* | pgfortran*)
10108 # Portland Group f77 and f90 compilers
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 tmp_addflag=' $pic_flag -Mnomain' ;;
10111 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10112 tmp_addflag=' -i_dynamic' ;;
10113 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10114 tmp_addflag=' -i_dynamic -nofor_main' ;;
10115 ifc* | ifort*) # Intel Fortran compiler
10116 tmp_addflag=' -nofor_main' ;;
10117 lf95*) # Lahey Fortran 8.1
10118 whole_archive_flag_spec=
10119 tmp_sharedflag='--shared' ;;
10120 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10121 tmp_sharedflag='-qmkshrobj'
10122 tmp_addflag= ;;
10123 nvcc*) # Cuda Compiler Driver 2.2
10124 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'
10125 compiler_needs_object=yes
10126 ;;
10127 esac
10128 case `$CC -V 2>&1 | sed 5q` in
10129 *Sun\ C*) # Sun C 5.9
10130 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'
10131 compiler_needs_object=yes
10132 tmp_sharedflag='-G' ;;
10133 *Sun\ F*) # Sun Fortran 8.3
10134 tmp_sharedflag='-G' ;;
10135 esac
10136 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10137
10138 if test "x$supports_anon_versioning" = xyes; then
10139 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10140 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10141 echo "local: *; };" >> $output_objdir/$libname.ver~
10142 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10143 fi
10144
10145 case $cc_basename in
10146 xlf* | bgf* | bgxlf* | mpixlf*)
10147 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10148 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10149 hardcode_libdir_flag_spec=
10150 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10151 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10152 if test "x$supports_anon_versioning" = xyes; then
10153 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10154 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10155 echo "local: *; };" >> $output_objdir/$libname.ver~
10156 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10157 fi
10158 ;;
10159 esac
10160 else
10161 ld_shlibs=no
10162 fi
10163 ;;
10164
10165 netbsd*)
10166 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10167 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10168 wlarc=
10169 else
10170 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10171 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10172 fi
10173 ;;
10174
10175 solaris*)
10176 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10177 ld_shlibs=no
10178 cat <<_LT_EOF 1>&2
10179
10180 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10181 *** create shared libraries on Solaris systems. Therefore, libtool
10182 *** is disabling shared libraries support. We urge you to upgrade GNU
10183 *** binutils to release 2.9.1 or newer. Another option is to modify
10184 *** your PATH or compiler configuration so that the native linker is
10185 *** used, and then restart.
10186
10187 _LT_EOF
10188 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10189 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10190 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10191 else
10192 ld_shlibs=no
10193 fi
10194 ;;
10195
10196 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10197 case `$LD -v 2>&1` in
10198 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10199 ld_shlibs=no
10200 cat <<_LT_EOF 1>&2
10201
10202 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10203 *** reliably create shared libraries on SCO systems. Therefore, libtool
10204 *** is disabling shared libraries support. We urge you to upgrade GNU
10205 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10206 *** your PATH or compiler configuration so that the native linker is
10207 *** used, and then restart.
10208
10209 _LT_EOF
10210 ;;
10211 *)
10212 # For security reasons, it is highly recommended that you always
10213 # use absolute paths for naming shared libraries, and exclude the
10214 # DT_RUNPATH tag from executables and libraries. But doing so
10215 # requires that you compile everything twice, which is a pain.
10216 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10217 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10218 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10219 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10220 else
10221 ld_shlibs=no
10222 fi
10223 ;;
10224 esac
10225 ;;
10226
10227 sunos4*)
10228 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10229 wlarc=
10230 hardcode_direct=yes
10231 hardcode_shlibpath_var=no
10232 ;;
10233
10234 *)
10235 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10236 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10237 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10238 else
10239 ld_shlibs=no
10240 fi
10241 ;;
10242 esac
10243
10244 if test "$ld_shlibs" = no; then
10245 runpath_var=
10246 hardcode_libdir_flag_spec=
10247 export_dynamic_flag_spec=
10248 whole_archive_flag_spec=
10249 fi
10250 else
10251 # PORTME fill in a description of your system's linker (not GNU ld)
10252 case $host_os in
10253 aix3*)
10254 allow_undefined_flag=unsupported
10255 always_export_symbols=yes
10256 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'
10257 # Note: this linker hardcodes the directories in LIBPATH if there
10258 # are no directories specified by -L.
10259 hardcode_minus_L=yes
10260 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10261 # Neither direct hardcoding nor static linking is supported with a
10262 # broken collect2.
10263 hardcode_direct=unsupported
10264 fi
10265 ;;
10266
10267 aix[4-9]*)
10268 if test "$host_cpu" = ia64; then
10269 # On IA64, the linker does run time linking by default, so we don't
10270 # have to do anything special.
10271 aix_use_runtimelinking=no
10272 exp_sym_flag='-Bexport'
10273 no_entry_flag=""
10274 else
10275 # If we're using GNU nm, then we don't want the "-C" option.
10276 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10277 # Also, AIX nm treats weak defined symbols like other global
10278 # defined symbols, whereas GNU nm marks them as "W".
10279 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10280 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'
10281 else
10282 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'
10283 fi
10284 aix_use_runtimelinking=no
10285
10286 # Test if we are trying to use run time linking or normal
10287 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10288 # need to do runtime linking.
10289 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10290 for ld_flag in $LDFLAGS; do
10291 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10292 aix_use_runtimelinking=yes
10293 break
10294 fi
10295 done
10296 ;;
10297 esac
10298
10299 exp_sym_flag='-bexport'
10300 no_entry_flag='-bnoentry'
10301 fi
10302
10303 # When large executables or shared objects are built, AIX ld can
10304 # have problems creating the table of contents. If linking a library
10305 # or program results in "error TOC overflow" add -mminimal-toc to
10306 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10307 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10308
10309 archive_cmds=''
10310 hardcode_direct=yes
10311 hardcode_direct_absolute=yes
10312 hardcode_libdir_separator=':'
10313 link_all_deplibs=yes
10314 file_list_spec='${wl}-f,'
10315
10316 if test "$GCC" = yes; then
10317 case $host_os in aix4.[012]|aix4.[012].*)
10318 # We only want to do this on AIX 4.2 and lower, the check
10319 # below for broken collect2 doesn't work under 4.3+
10320 collect2name=`${CC} -print-prog-name=collect2`
10321 if test -f "$collect2name" &&
10322 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10323 then
10324 # We have reworked collect2
10325 :
10326 else
10327 # We have old collect2
10328 hardcode_direct=unsupported
10329 # It fails to find uninstalled libraries when the uninstalled
10330 # path is not listed in the libpath. Setting hardcode_minus_L
10331 # to unsupported forces relinking
10332 hardcode_minus_L=yes
10333 hardcode_libdir_flag_spec='-L$libdir'
10334 hardcode_libdir_separator=
10335 fi
10336 ;;
10337 esac
10338 shared_flag='-shared'
10339 if test "$aix_use_runtimelinking" = yes; then
10340 shared_flag="$shared_flag "'${wl}-G'
10341 fi
10342 else
10343 # not using gcc
10344 if test "$host_cpu" = ia64; then
10345 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10346 # chokes on -Wl,-G. The following line is correct:
10347 shared_flag='-G'
10348 else
10349 if test "$aix_use_runtimelinking" = yes; then
10350 shared_flag='${wl}-G'
10351 else
10352 shared_flag='${wl}-bM:SRE'
10353 fi
10354 fi
10355 fi
10356
10357 export_dynamic_flag_spec='${wl}-bexpall'
10358 # It seems that -bexpall does not export symbols beginning with
10359 # underscore (_), so it is better to generate a list of symbols to export.
10360 always_export_symbols=yes
10361 if test "$aix_use_runtimelinking" = yes; then
10362 # Warning - without using the other runtime loading flags (-brtl),
10363 # -berok will link without error, but may produce a broken library.
10364 allow_undefined_flag='-berok'
10365 # Determine the default libpath from the value encoded in an
10366 # empty executable.
10367 if test x$gcc_no_link = xyes; then
10368 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10369 fi
10370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10371 /* end confdefs.h. */
10372
10373 int
10374 main ()
10375 {
10376
10377 ;
10378 return 0;
10379 }
10380 _ACEOF
10381 if ac_fn_c_try_link "$LINENO"; then :
10382
10383 lt_aix_libpath_sed='
10384 /Import File Strings/,/^$/ {
10385 /^0/ {
10386 s/^0 *\(.*\)$/\1/
10387 p
10388 }
10389 }'
10390 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10391 # Check for a 64-bit object if we didn't find anything.
10392 if test -z "$aix_libpath"; then
10393 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10394 fi
10395 fi
10396 rm -f core conftest.err conftest.$ac_objext \
10397 conftest$ac_exeext conftest.$ac_ext
10398 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10399
10400 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10401 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"
10402 else
10403 if test "$host_cpu" = ia64; then
10404 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10405 allow_undefined_flag="-z nodefs"
10406 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"
10407 else
10408 # Determine the default libpath from the value encoded in an
10409 # empty executable.
10410 if test x$gcc_no_link = xyes; then
10411 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10412 fi
10413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10414 /* end confdefs.h. */
10415
10416 int
10417 main ()
10418 {
10419
10420 ;
10421 return 0;
10422 }
10423 _ACEOF
10424 if ac_fn_c_try_link "$LINENO"; then :
10425
10426 lt_aix_libpath_sed='
10427 /Import File Strings/,/^$/ {
10428 /^0/ {
10429 s/^0 *\(.*\)$/\1/
10430 p
10431 }
10432 }'
10433 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10434 # Check for a 64-bit object if we didn't find anything.
10435 if test -z "$aix_libpath"; then
10436 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10437 fi
10438 fi
10439 rm -f core conftest.err conftest.$ac_objext \
10440 conftest$ac_exeext conftest.$ac_ext
10441 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10442
10443 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10444 # Warning - without using the other run time loading flags,
10445 # -berok will link without error, but may produce a broken library.
10446 no_undefined_flag=' ${wl}-bernotok'
10447 allow_undefined_flag=' ${wl}-berok'
10448 if test "$with_gnu_ld" = yes; then
10449 # We only use this code for GNU lds that support --whole-archive.
10450 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10451 else
10452 # Exported symbols can be pulled into shared objects from archives
10453 whole_archive_flag_spec='$convenience'
10454 fi
10455 archive_cmds_need_lc=yes
10456 # This is similar to how AIX traditionally builds its shared libraries.
10457 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'
10458 fi
10459 fi
10460 ;;
10461
10462 amigaos*)
10463 case $host_cpu in
10464 powerpc)
10465 # see comment about AmigaOS4 .so support
10466 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10467 archive_expsym_cmds=''
10468 ;;
10469 m68k)
10470 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)'
10471 hardcode_libdir_flag_spec='-L$libdir'
10472 hardcode_minus_L=yes
10473 ;;
10474 esac
10475 ;;
10476
10477 bsdi[45]*)
10478 export_dynamic_flag_spec=-rdynamic
10479 ;;
10480
10481 cygwin* | mingw* | pw32* | cegcc*)
10482 # When not using gcc, we currently assume that we are using
10483 # Microsoft Visual C++.
10484 # hardcode_libdir_flag_spec is actually meaningless, as there is
10485 # no search path for DLLs.
10486 hardcode_libdir_flag_spec=' '
10487 allow_undefined_flag=unsupported
10488 # Tell ltmain to make .lib files, not .a files.
10489 libext=lib
10490 # Tell ltmain to make .dll files, not .so files.
10491 shrext_cmds=".dll"
10492 # FIXME: Setting linknames here is a bad hack.
10493 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10494 # The linker will automatically build a .lib file if we build a DLL.
10495 old_archive_from_new_cmds='true'
10496 # FIXME: Should let the user specify the lib program.
10497 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10498 fix_srcfile_path='`cygpath -w "$srcfile"`'
10499 enable_shared_with_static_runtimes=yes
10500 ;;
10501
10502 darwin* | rhapsody*)
10503
10504
10505 archive_cmds_need_lc=no
10506 hardcode_direct=no
10507 hardcode_automatic=yes
10508 hardcode_shlibpath_var=unsupported
10509 if test "$lt_cv_ld_force_load" = "yes"; then
10510 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\"`'
10511 else
10512 whole_archive_flag_spec=''
10513 fi
10514 link_all_deplibs=yes
10515 allow_undefined_flag="$_lt_dar_allow_undefined"
10516 case $cc_basename in
10517 ifort*) _lt_dar_can_shared=yes ;;
10518 *) _lt_dar_can_shared=$GCC ;;
10519 esac
10520 if test "$_lt_dar_can_shared" = "yes"; then
10521 output_verbose_link_cmd=func_echo_all
10522 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10523 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10524 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}"
10525 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}"
10526
10527 else
10528 ld_shlibs=no
10529 fi
10530
10531 ;;
10532
10533 dgux*)
10534 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10535 hardcode_libdir_flag_spec='-L$libdir'
10536 hardcode_shlibpath_var=no
10537 ;;
10538
10539 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10540 # support. Future versions do this automatically, but an explicit c++rt0.o
10541 # does not break anything, and helps significantly (at the cost of a little
10542 # extra space).
10543 freebsd2.2*)
10544 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10545 hardcode_libdir_flag_spec='-R$libdir'
10546 hardcode_direct=yes
10547 hardcode_shlibpath_var=no
10548 ;;
10549
10550 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10551 freebsd2.*)
10552 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10553 hardcode_direct=yes
10554 hardcode_minus_L=yes
10555 hardcode_shlibpath_var=no
10556 ;;
10557
10558 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10559 freebsd* | dragonfly*)
10560 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10561 hardcode_libdir_flag_spec='-R$libdir'
10562 hardcode_direct=yes
10563 hardcode_shlibpath_var=no
10564 ;;
10565
10566 hpux9*)
10567 if test "$GCC" = yes; then
10568 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'
10569 else
10570 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'
10571 fi
10572 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10573 hardcode_libdir_separator=:
10574 hardcode_direct=yes
10575
10576 # hardcode_minus_L: Not really in the search PATH,
10577 # but as the default location of the library.
10578 hardcode_minus_L=yes
10579 export_dynamic_flag_spec='${wl}-E'
10580 ;;
10581
10582 hpux10*)
10583 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10584 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10585 else
10586 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10587 fi
10588 if test "$with_gnu_ld" = no; then
10589 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10590 hardcode_libdir_flag_spec_ld='+b $libdir'
10591 hardcode_libdir_separator=:
10592 hardcode_direct=yes
10593 hardcode_direct_absolute=yes
10594 export_dynamic_flag_spec='${wl}-E'
10595 # hardcode_minus_L: Not really in the search PATH,
10596 # but as the default location of the library.
10597 hardcode_minus_L=yes
10598 fi
10599 ;;
10600
10601 hpux11*)
10602 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10603 case $host_cpu in
10604 hppa*64*)
10605 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10606 ;;
10607 ia64*)
10608 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10609 ;;
10610 *)
10611 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10612 ;;
10613 esac
10614 else
10615 case $host_cpu in
10616 hppa*64*)
10617 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10618 ;;
10619 ia64*)
10620 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10621 ;;
10622 *)
10623
10624 # Older versions of the 11.00 compiler do not understand -b yet
10625 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10627 $as_echo_n "checking if $CC understands -b... " >&6; }
10628 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10629 $as_echo_n "(cached) " >&6
10630 else
10631 lt_cv_prog_compiler__b=no
10632 save_LDFLAGS="$LDFLAGS"
10633 LDFLAGS="$LDFLAGS -b"
10634 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10635 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10636 # The linker can only warn and ignore the option if not recognized
10637 # So say no if there are warnings
10638 if test -s conftest.err; then
10639 # Append any errors to the config.log.
10640 cat conftest.err 1>&5
10641 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10642 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10643 if diff conftest.exp conftest.er2 >/dev/null; then
10644 lt_cv_prog_compiler__b=yes
10645 fi
10646 else
10647 lt_cv_prog_compiler__b=yes
10648 fi
10649 fi
10650 $RM -r conftest*
10651 LDFLAGS="$save_LDFLAGS"
10652
10653 fi
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10655 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10656
10657 if test x"$lt_cv_prog_compiler__b" = xyes; then
10658 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10659 else
10660 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10661 fi
10662
10663 ;;
10664 esac
10665 fi
10666 if test "$with_gnu_ld" = no; then
10667 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10668 hardcode_libdir_separator=:
10669
10670 case $host_cpu in
10671 hppa*64*|ia64*)
10672 hardcode_direct=no
10673 hardcode_shlibpath_var=no
10674 ;;
10675 *)
10676 hardcode_direct=yes
10677 hardcode_direct_absolute=yes
10678 export_dynamic_flag_spec='${wl}-E'
10679
10680 # hardcode_minus_L: Not really in the search PATH,
10681 # but as the default location of the library.
10682 hardcode_minus_L=yes
10683 ;;
10684 esac
10685 fi
10686 ;;
10687
10688 irix5* | irix6* | nonstopux*)
10689 if test "$GCC" = yes; then
10690 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'
10691 # Try to use the -exported_symbol ld option, if it does not
10692 # work, assume that -exports_file does not work either and
10693 # implicitly export all symbols.
10694 save_LDFLAGS="$LDFLAGS"
10695 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10696 if test x$gcc_no_link = xyes; then
10697 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10698 fi
10699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10700 /* end confdefs.h. */
10701 int foo(void) {}
10702 _ACEOF
10703 if ac_fn_c_try_link "$LINENO"; then :
10704 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'
10705
10706 fi
10707 rm -f core conftest.err conftest.$ac_objext \
10708 conftest$ac_exeext conftest.$ac_ext
10709 LDFLAGS="$save_LDFLAGS"
10710 else
10711 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'
10712 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'
10713 fi
10714 archive_cmds_need_lc='no'
10715 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10716 hardcode_libdir_separator=:
10717 inherit_rpath=yes
10718 link_all_deplibs=yes
10719 ;;
10720
10721 netbsd*)
10722 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10723 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10724 else
10725 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10726 fi
10727 hardcode_libdir_flag_spec='-R$libdir'
10728 hardcode_direct=yes
10729 hardcode_shlibpath_var=no
10730 ;;
10731
10732 newsos6)
10733 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10734 hardcode_direct=yes
10735 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10736 hardcode_libdir_separator=:
10737 hardcode_shlibpath_var=no
10738 ;;
10739
10740 *nto* | *qnx*)
10741 ;;
10742
10743 openbsd*)
10744 if test -f /usr/libexec/ld.so; then
10745 hardcode_direct=yes
10746 hardcode_shlibpath_var=no
10747 hardcode_direct_absolute=yes
10748 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10749 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10750 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10751 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10752 export_dynamic_flag_spec='${wl}-E'
10753 else
10754 case $host_os in
10755 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10756 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10757 hardcode_libdir_flag_spec='-R$libdir'
10758 ;;
10759 *)
10760 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10761 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10762 ;;
10763 esac
10764 fi
10765 else
10766 ld_shlibs=no
10767 fi
10768 ;;
10769
10770 os2*)
10771 hardcode_libdir_flag_spec='-L$libdir'
10772 hardcode_minus_L=yes
10773 allow_undefined_flag=unsupported
10774 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'
10775 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10776 ;;
10777
10778 osf3*)
10779 if test "$GCC" = yes; then
10780 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10781 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'
10782 else
10783 allow_undefined_flag=' -expect_unresolved \*'
10784 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'
10785 fi
10786 archive_cmds_need_lc='no'
10787 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10788 hardcode_libdir_separator=:
10789 ;;
10790
10791 osf4* | osf5*) # as osf3* with the addition of -msym flag
10792 if test "$GCC" = yes; then
10793 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10794 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'
10795 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10796 else
10797 allow_undefined_flag=' -expect_unresolved \*'
10798 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'
10799 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~
10800 $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'
10801
10802 # Both c and cxx compiler support -rpath directly
10803 hardcode_libdir_flag_spec='-rpath $libdir'
10804 fi
10805 archive_cmds_need_lc='no'
10806 hardcode_libdir_separator=:
10807 ;;
10808
10809 solaris*)
10810 no_undefined_flag=' -z defs'
10811 if test "$GCC" = yes; then
10812 wlarc='${wl}'
10813 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10814 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10815 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10816 else
10817 case `$CC -V 2>&1` in
10818 *"Compilers 5.0"*)
10819 wlarc=''
10820 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10821 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10822 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10823 ;;
10824 *)
10825 wlarc='${wl}'
10826 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10827 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10828 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10829 ;;
10830 esac
10831 fi
10832 hardcode_libdir_flag_spec='-R$libdir'
10833 hardcode_shlibpath_var=no
10834 case $host_os in
10835 solaris2.[0-5] | solaris2.[0-5].*) ;;
10836 *)
10837 # The compiler driver will combine and reorder linker options,
10838 # but understands `-z linker_flag'. GCC discards it without `$wl',
10839 # but is careful enough not to reorder.
10840 # Supported since Solaris 2.6 (maybe 2.5.1?)
10841 if test "$GCC" = yes; then
10842 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10843 else
10844 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10845 fi
10846 ;;
10847 esac
10848 link_all_deplibs=yes
10849 ;;
10850
10851 sunos4*)
10852 if test "x$host_vendor" = xsequent; then
10853 # Use $CC to link under sequent, because it throws in some extra .o
10854 # files that make .init and .fini sections work.
10855 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10856 else
10857 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10858 fi
10859 hardcode_libdir_flag_spec='-L$libdir'
10860 hardcode_direct=yes
10861 hardcode_minus_L=yes
10862 hardcode_shlibpath_var=no
10863 ;;
10864
10865 sysv4)
10866 case $host_vendor in
10867 sni)
10868 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10869 hardcode_direct=yes # is this really true???
10870 ;;
10871 siemens)
10872 ## LD is ld it makes a PLAMLIB
10873 ## CC just makes a GrossModule.
10874 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10875 reload_cmds='$CC -r -o $output$reload_objs'
10876 hardcode_direct=no
10877 ;;
10878 motorola)
10879 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10880 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10881 ;;
10882 esac
10883 runpath_var='LD_RUN_PATH'
10884 hardcode_shlibpath_var=no
10885 ;;
10886
10887 sysv4.3*)
10888 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10889 hardcode_shlibpath_var=no
10890 export_dynamic_flag_spec='-Bexport'
10891 ;;
10892
10893 sysv4*MP*)
10894 if test -d /usr/nec; then
10895 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10896 hardcode_shlibpath_var=no
10897 runpath_var=LD_RUN_PATH
10898 hardcode_runpath_var=yes
10899 ld_shlibs=yes
10900 fi
10901 ;;
10902
10903 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10904 no_undefined_flag='${wl}-z,text'
10905 archive_cmds_need_lc=no
10906 hardcode_shlibpath_var=no
10907 runpath_var='LD_RUN_PATH'
10908
10909 if test "$GCC" = yes; then
10910 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10911 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10912 else
10913 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10914 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10915 fi
10916 ;;
10917
10918 sysv5* | sco3.2v5* | sco5v6*)
10919 # Note: We can NOT use -z defs as we might desire, because we do not
10920 # link with -lc, and that would cause any symbols used from libc to
10921 # always be unresolved, which means just about no library would
10922 # ever link correctly. If we're not using GNU ld we use -z text
10923 # though, which does catch some bad symbols but isn't as heavy-handed
10924 # as -z defs.
10925 no_undefined_flag='${wl}-z,text'
10926 allow_undefined_flag='${wl}-z,nodefs'
10927 archive_cmds_need_lc=no
10928 hardcode_shlibpath_var=no
10929 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10930 hardcode_libdir_separator=':'
10931 link_all_deplibs=yes
10932 export_dynamic_flag_spec='${wl}-Bexport'
10933 runpath_var='LD_RUN_PATH'
10934
10935 if test "$GCC" = yes; then
10936 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10937 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10938 else
10939 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10940 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10941 fi
10942 ;;
10943
10944 uts4*)
10945 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10946 hardcode_libdir_flag_spec='-L$libdir'
10947 hardcode_shlibpath_var=no
10948 ;;
10949
10950 *)
10951 ld_shlibs=no
10952 ;;
10953 esac
10954
10955 if test x$host_vendor = xsni; then
10956 case $host in
10957 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10958 export_dynamic_flag_spec='${wl}-Blargedynsym'
10959 ;;
10960 esac
10961 fi
10962 fi
10963
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10965 $as_echo "$ld_shlibs" >&6; }
10966 test "$ld_shlibs" = no && can_build_shared=no
10967
10968 with_gnu_ld=$with_gnu_ld
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984 #
10985 # Do we need to explicitly link libc?
10986 #
10987 case "x$archive_cmds_need_lc" in
10988 x|xyes)
10989 # Assume -lc should be added
10990 archive_cmds_need_lc=yes
10991
10992 if test "$enable_shared" = yes && test "$GCC" = yes; then
10993 case $archive_cmds in
10994 *'~'*)
10995 # FIXME: we may have to deal with multi-command sequences.
10996 ;;
10997 '$CC '*)
10998 # Test whether the compiler implicitly links with -lc since on some
10999 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11000 # to ld, don't add -lc before -lgcc.
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11002 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11003 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
11004 $as_echo_n "(cached) " >&6
11005 else
11006 $RM conftest*
11007 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11008
11009 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11010 (eval $ac_compile) 2>&5
11011 ac_status=$?
11012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11013 test $ac_status = 0; } 2>conftest.err; then
11014 soname=conftest
11015 lib=conftest
11016 libobjs=conftest.$ac_objext
11017 deplibs=
11018 wl=$lt_prog_compiler_wl
11019 pic_flag=$lt_prog_compiler_pic
11020 compiler_flags=-v
11021 linker_flags=-v
11022 verstring=
11023 output_objdir=.
11024 libname=conftest
11025 lt_save_allow_undefined_flag=$allow_undefined_flag
11026 allow_undefined_flag=
11027 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11028 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11029 ac_status=$?
11030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11031 test $ac_status = 0; }
11032 then
11033 lt_cv_archive_cmds_need_lc=no
11034 else
11035 lt_cv_archive_cmds_need_lc=yes
11036 fi
11037 allow_undefined_flag=$lt_save_allow_undefined_flag
11038 else
11039 cat conftest.err 1>&5
11040 fi
11041 $RM conftest*
11042
11043 fi
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11045 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11046 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11047 ;;
11048 esac
11049 fi
11050 ;;
11051 esac
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11210 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11211
11212 if test "$GCC" = yes; then
11213 case $host_os in
11214 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11215 *) lt_awk_arg="/^libraries:/" ;;
11216 esac
11217 case $host_os in
11218 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11219 *) lt_sed_strip_eq="s,=/,/,g" ;;
11220 esac
11221 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11222 case $lt_search_path_spec in
11223 *\;*)
11224 # if the path contains ";" then we assume it to be the separator
11225 # otherwise default to the standard path separator (i.e. ":") - it is
11226 # assumed that no part of a normal pathname contains ";" but that should
11227 # okay in the real world where ";" in dirpaths is itself problematic.
11228 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11229 ;;
11230 *)
11231 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11232 ;;
11233 esac
11234 # Ok, now we have the path, separated by spaces, we can step through it
11235 # and add multilib dir if necessary.
11236 lt_tmp_lt_search_path_spec=
11237 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11238 for lt_sys_path in $lt_search_path_spec; do
11239 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11240 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11241 else
11242 test -d "$lt_sys_path" && \
11243 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11244 fi
11245 done
11246 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11247 BEGIN {RS=" "; FS="/|\n";} {
11248 lt_foo="";
11249 lt_count=0;
11250 for (lt_i = NF; lt_i > 0; lt_i--) {
11251 if ($lt_i != "" && $lt_i != ".") {
11252 if ($lt_i == "..") {
11253 lt_count++;
11254 } else {
11255 if (lt_count == 0) {
11256 lt_foo="/" $lt_i lt_foo;
11257 } else {
11258 lt_count--;
11259 }
11260 }
11261 }
11262 }
11263 if (lt_foo != "") { lt_freq[lt_foo]++; }
11264 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11265 }'`
11266 # AWK program above erroneously prepends '/' to C:/dos/paths
11267 # for these hosts.
11268 case $host_os in
11269 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11270 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11271 esac
11272 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11273 else
11274 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11275 fi
11276 library_names_spec=
11277 libname_spec='lib$name'
11278 soname_spec=
11279 shrext_cmds=".so"
11280 postinstall_cmds=
11281 postuninstall_cmds=
11282 finish_cmds=
11283 finish_eval=
11284 shlibpath_var=
11285 shlibpath_overrides_runpath=unknown
11286 version_type=none
11287 dynamic_linker="$host_os ld.so"
11288 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11289 need_lib_prefix=unknown
11290 hardcode_into_libs=no
11291
11292 # when you set need_version to no, make sure it does not cause -set_version
11293 # flags to be left without arguments
11294 need_version=unknown
11295
11296 case $host_os in
11297 aix3*)
11298 version_type=linux
11299 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11300 shlibpath_var=LIBPATH
11301
11302 # AIX 3 has no versioning support, so we append a major version to the name.
11303 soname_spec='${libname}${release}${shared_ext}$major'
11304 ;;
11305
11306 aix[4-9]*)
11307 version_type=linux
11308 need_lib_prefix=no
11309 need_version=no
11310 hardcode_into_libs=yes
11311 if test "$host_cpu" = ia64; then
11312 # AIX 5 supports IA64
11313 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11314 shlibpath_var=LD_LIBRARY_PATH
11315 else
11316 # With GCC up to 2.95.x, collect2 would create an import file
11317 # for dependence libraries. The import file would start with
11318 # the line `#! .'. This would cause the generated library to
11319 # depend on `.', always an invalid library. This was fixed in
11320 # development snapshots of GCC prior to 3.0.
11321 case $host_os in
11322 aix4 | aix4.[01] | aix4.[01].*)
11323 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11324 echo ' yes '
11325 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11326 :
11327 else
11328 can_build_shared=no
11329 fi
11330 ;;
11331 esac
11332 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11333 # soname into executable. Probably we can add versioning support to
11334 # collect2, so additional links can be useful in future.
11335 if test "$aix_use_runtimelinking" = yes; then
11336 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11337 # instead of lib<name>.a to let people know that these are not
11338 # typical AIX shared libraries.
11339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11340 else
11341 # We preserve .a as extension for shared libraries through AIX4.2
11342 # and later when we are not doing run time linking.
11343 library_names_spec='${libname}${release}.a $libname.a'
11344 soname_spec='${libname}${release}${shared_ext}$major'
11345 fi
11346 shlibpath_var=LIBPATH
11347 fi
11348 ;;
11349
11350 amigaos*)
11351 case $host_cpu in
11352 powerpc)
11353 # Since July 2007 AmigaOS4 officially supports .so libraries.
11354 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11356 ;;
11357 m68k)
11358 library_names_spec='$libname.ixlibrary $libname.a'
11359 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11360 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'
11361 ;;
11362 esac
11363 ;;
11364
11365 beos*)
11366 library_names_spec='${libname}${shared_ext}'
11367 dynamic_linker="$host_os ld.so"
11368 shlibpath_var=LIBRARY_PATH
11369 ;;
11370
11371 bsdi[45]*)
11372 version_type=linux
11373 need_version=no
11374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11375 soname_spec='${libname}${release}${shared_ext}$major'
11376 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11377 shlibpath_var=LD_LIBRARY_PATH
11378 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11379 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11380 # the default ld.so.conf also contains /usr/contrib/lib and
11381 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11382 # libtool to hard-code these into programs
11383 ;;
11384
11385 cygwin* | mingw* | pw32* | cegcc*)
11386 version_type=windows
11387 shrext_cmds=".dll"
11388 need_version=no
11389 need_lib_prefix=no
11390
11391 case $GCC,$host_os in
11392 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11393 library_names_spec='$libname.dll.a'
11394 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11395 postinstall_cmds='base_file=`basename \${file}`~
11396 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11397 dldir=$destdir/`dirname \$dlpath`~
11398 test -d \$dldir || mkdir -p \$dldir~
11399 $install_prog $dir/$dlname \$dldir/$dlname~
11400 chmod a+x \$dldir/$dlname~
11401 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11402 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11403 fi'
11404 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11405 dlpath=$dir/\$dldll~
11406 $RM \$dlpath'
11407 shlibpath_overrides_runpath=yes
11408
11409 case $host_os in
11410 cygwin*)
11411 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11412 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11413
11414 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11415 ;;
11416 mingw* | cegcc*)
11417 # MinGW DLLs use traditional 'lib' prefix
11418 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11419 ;;
11420 pw32*)
11421 # pw32 DLLs use 'pw' prefix rather than 'lib'
11422 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11423 ;;
11424 esac
11425 ;;
11426
11427 *)
11428 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11429 ;;
11430 esac
11431 dynamic_linker='Win32 ld.exe'
11432 # FIXME: first we should search . and the directory the executable is in
11433 shlibpath_var=PATH
11434 ;;
11435
11436 darwin* | rhapsody*)
11437 dynamic_linker="$host_os dyld"
11438 version_type=darwin
11439 need_lib_prefix=no
11440 need_version=no
11441 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11442 soname_spec='${libname}${release}${major}$shared_ext'
11443 shlibpath_overrides_runpath=yes
11444 shlibpath_var=DYLD_LIBRARY_PATH
11445 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11446
11447 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11448 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11449 ;;
11450
11451 dgux*)
11452 version_type=linux
11453 need_lib_prefix=no
11454 need_version=no
11455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11456 soname_spec='${libname}${release}${shared_ext}$major'
11457 shlibpath_var=LD_LIBRARY_PATH
11458 ;;
11459
11460 freebsd* | dragonfly*)
11461 # DragonFly does not have aout. When/if they implement a new
11462 # versioning mechanism, adjust this.
11463 if test -x /usr/bin/objformat; then
11464 objformat=`/usr/bin/objformat`
11465 else
11466 case $host_os in
11467 freebsd[23].*) objformat=aout ;;
11468 *) objformat=elf ;;
11469 esac
11470 fi
11471 version_type=freebsd-$objformat
11472 case $version_type in
11473 freebsd-elf*)
11474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11475 need_version=no
11476 need_lib_prefix=no
11477 ;;
11478 freebsd-*)
11479 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11480 need_version=yes
11481 ;;
11482 esac
11483 shlibpath_var=LD_LIBRARY_PATH
11484 case $host_os in
11485 freebsd2.*)
11486 shlibpath_overrides_runpath=yes
11487 ;;
11488 freebsd3.[01]* | freebsdelf3.[01]*)
11489 shlibpath_overrides_runpath=yes
11490 hardcode_into_libs=yes
11491 ;;
11492 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11493 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11494 shlibpath_overrides_runpath=no
11495 hardcode_into_libs=yes
11496 ;;
11497 *) # from 4.6 on, and DragonFly
11498 shlibpath_overrides_runpath=yes
11499 hardcode_into_libs=yes
11500 ;;
11501 esac
11502 ;;
11503
11504 gnu*)
11505 version_type=linux
11506 need_lib_prefix=no
11507 need_version=no
11508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11509 soname_spec='${libname}${release}${shared_ext}$major'
11510 shlibpath_var=LD_LIBRARY_PATH
11511 hardcode_into_libs=yes
11512 ;;
11513
11514 haiku*)
11515 version_type=linux
11516 need_lib_prefix=no
11517 need_version=no
11518 dynamic_linker="$host_os runtime_loader"
11519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11520 soname_spec='${libname}${release}${shared_ext}$major'
11521 shlibpath_var=LIBRARY_PATH
11522 shlibpath_overrides_runpath=yes
11523 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11524 hardcode_into_libs=yes
11525 ;;
11526
11527 hpux9* | hpux10* | hpux11*)
11528 # Give a soname corresponding to the major version so that dld.sl refuses to
11529 # link against other versions.
11530 version_type=sunos
11531 need_lib_prefix=no
11532 need_version=no
11533 case $host_cpu in
11534 ia64*)
11535 shrext_cmds='.so'
11536 hardcode_into_libs=yes
11537 dynamic_linker="$host_os dld.so"
11538 shlibpath_var=LD_LIBRARY_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 if test "X$HPUX_IA64_MODE" = X32; then
11543 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11544 else
11545 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11546 fi
11547 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11548 ;;
11549 hppa*64*)
11550 shrext_cmds='.sl'
11551 hardcode_into_libs=yes
11552 dynamic_linker="$host_os dld.sl"
11553 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11554 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11556 soname_spec='${libname}${release}${shared_ext}$major'
11557 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11558 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11559 ;;
11560 *)
11561 shrext_cmds='.sl'
11562 dynamic_linker="$host_os dld.sl"
11563 shlibpath_var=SHLIB_PATH
11564 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11566 soname_spec='${libname}${release}${shared_ext}$major'
11567 ;;
11568 esac
11569 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11570 postinstall_cmds='chmod 555 $lib'
11571 # or fails outright, so override atomically:
11572 install_override_mode=555
11573 ;;
11574
11575 interix[3-9]*)
11576 version_type=linux
11577 need_lib_prefix=no
11578 need_version=no
11579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11580 soname_spec='${libname}${release}${shared_ext}$major'
11581 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11582 shlibpath_var=LD_LIBRARY_PATH
11583 shlibpath_overrides_runpath=no
11584 hardcode_into_libs=yes
11585 ;;
11586
11587 irix5* | irix6* | nonstopux*)
11588 case $host_os in
11589 nonstopux*) version_type=nonstopux ;;
11590 *)
11591 if test "$lt_cv_prog_gnu_ld" = yes; then
11592 version_type=linux
11593 else
11594 version_type=irix
11595 fi ;;
11596 esac
11597 need_lib_prefix=no
11598 need_version=no
11599 soname_spec='${libname}${release}${shared_ext}$major'
11600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11601 case $host_os in
11602 irix5* | nonstopux*)
11603 libsuff= shlibsuff=
11604 ;;
11605 *)
11606 case $LD in # libtool.m4 will add one of these switches to LD
11607 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11608 libsuff= shlibsuff= libmagic=32-bit;;
11609 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11610 libsuff=32 shlibsuff=N32 libmagic=N32;;
11611 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11612 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11613 *) libsuff= shlibsuff= libmagic=never-match;;
11614 esac
11615 ;;
11616 esac
11617 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11618 shlibpath_overrides_runpath=no
11619 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11620 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11621 hardcode_into_libs=yes
11622 ;;
11623
11624 # No shared lib support for Linux oldld, aout, or coff.
11625 linux*oldld* | linux*aout* | linux*coff*)
11626 dynamic_linker=no
11627 ;;
11628
11629 # This must be Linux ELF.
11630 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11631 version_type=linux
11632 need_lib_prefix=no
11633 need_version=no
11634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11635 soname_spec='${libname}${release}${shared_ext}$major'
11636 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11637 shlibpath_var=LD_LIBRARY_PATH
11638 shlibpath_overrides_runpath=no
11639
11640 # Some binutils ld are patched to set DT_RUNPATH
11641 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11642 $as_echo_n "(cached) " >&6
11643 else
11644 lt_cv_shlibpath_overrides_runpath=no
11645 save_LDFLAGS=$LDFLAGS
11646 save_libdir=$libdir
11647 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11648 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11649 if test x$gcc_no_link = xyes; then
11650 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11651 fi
11652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11653 /* end confdefs.h. */
11654
11655 int
11656 main ()
11657 {
11658
11659 ;
11660 return 0;
11661 }
11662 _ACEOF
11663 if ac_fn_c_try_link "$LINENO"; then :
11664 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11665 lt_cv_shlibpath_overrides_runpath=yes
11666 fi
11667 fi
11668 rm -f core conftest.err conftest.$ac_objext \
11669 conftest$ac_exeext conftest.$ac_ext
11670 LDFLAGS=$save_LDFLAGS
11671 libdir=$save_libdir
11672
11673 fi
11674
11675 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11676
11677 # This implies no fast_install, which is unacceptable.
11678 # Some rework will be needed to allow for fast_install
11679 # before this can be enabled.
11680 hardcode_into_libs=yes
11681
11682 # Append ld.so.conf contents to the search path
11683 if test -f /etc/ld.so.conf; then
11684 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' ' '`
11685 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11686 fi
11687
11688 # We used to test for /lib/ld.so.1 and disable shared libraries on
11689 # powerpc, because MkLinux only supported shared libraries with the
11690 # GNU dynamic linker. Since this was broken with cross compilers,
11691 # most powerpc-linux boxes support dynamic linking these days and
11692 # people can always --disable-shared, the test was removed, and we
11693 # assume the GNU/Linux dynamic linker is in use.
11694 dynamic_linker='GNU/Linux ld.so'
11695 ;;
11696
11697 netbsd*)
11698 version_type=sunos
11699 need_lib_prefix=no
11700 need_version=no
11701 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11703 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11704 dynamic_linker='NetBSD (a.out) ld.so'
11705 else
11706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11707 soname_spec='${libname}${release}${shared_ext}$major'
11708 dynamic_linker='NetBSD ld.elf_so'
11709 fi
11710 shlibpath_var=LD_LIBRARY_PATH
11711 shlibpath_overrides_runpath=yes
11712 hardcode_into_libs=yes
11713 ;;
11714
11715 newsos6)
11716 version_type=linux
11717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11718 shlibpath_var=LD_LIBRARY_PATH
11719 shlibpath_overrides_runpath=yes
11720 ;;
11721
11722 *nto* | *qnx*)
11723 version_type=qnx
11724 need_lib_prefix=no
11725 need_version=no
11726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11727 soname_spec='${libname}${release}${shared_ext}$major'
11728 shlibpath_var=LD_LIBRARY_PATH
11729 shlibpath_overrides_runpath=no
11730 hardcode_into_libs=yes
11731 dynamic_linker='ldqnx.so'
11732 ;;
11733
11734 openbsd*)
11735 version_type=sunos
11736 sys_lib_dlsearch_path_spec="/usr/lib"
11737 need_lib_prefix=no
11738 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11739 case $host_os in
11740 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11741 *) need_version=no ;;
11742 esac
11743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11744 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11745 shlibpath_var=LD_LIBRARY_PATH
11746 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11747 case $host_os in
11748 openbsd2.[89] | openbsd2.[89].*)
11749 shlibpath_overrides_runpath=no
11750 ;;
11751 *)
11752 shlibpath_overrides_runpath=yes
11753 ;;
11754 esac
11755 else
11756 shlibpath_overrides_runpath=yes
11757 fi
11758 ;;
11759
11760 os2*)
11761 libname_spec='$name'
11762 shrext_cmds=".dll"
11763 need_lib_prefix=no
11764 library_names_spec='$libname${shared_ext} $libname.a'
11765 dynamic_linker='OS/2 ld.exe'
11766 shlibpath_var=LIBPATH
11767 ;;
11768
11769 osf3* | osf4* | osf5*)
11770 version_type=osf
11771 need_lib_prefix=no
11772 need_version=no
11773 soname_spec='${libname}${release}${shared_ext}$major'
11774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11775 shlibpath_var=LD_LIBRARY_PATH
11776 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11777 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11778 ;;
11779
11780 rdos*)
11781 dynamic_linker=no
11782 ;;
11783
11784 solaris*)
11785 version_type=linux
11786 need_lib_prefix=no
11787 need_version=no
11788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11789 soname_spec='${libname}${release}${shared_ext}$major'
11790 shlibpath_var=LD_LIBRARY_PATH
11791 shlibpath_overrides_runpath=yes
11792 hardcode_into_libs=yes
11793 # ldd complains unless libraries are executable
11794 postinstall_cmds='chmod +x $lib'
11795 ;;
11796
11797 sunos4*)
11798 version_type=sunos
11799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11800 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11801 shlibpath_var=LD_LIBRARY_PATH
11802 shlibpath_overrides_runpath=yes
11803 if test "$with_gnu_ld" = yes; then
11804 need_lib_prefix=no
11805 fi
11806 need_version=yes
11807 ;;
11808
11809 sysv4 | sysv4.3*)
11810 version_type=linux
11811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11812 soname_spec='${libname}${release}${shared_ext}$major'
11813 shlibpath_var=LD_LIBRARY_PATH
11814 case $host_vendor in
11815 sni)
11816 shlibpath_overrides_runpath=no
11817 need_lib_prefix=no
11818 runpath_var=LD_RUN_PATH
11819 ;;
11820 siemens)
11821 need_lib_prefix=no
11822 ;;
11823 motorola)
11824 need_lib_prefix=no
11825 need_version=no
11826 shlibpath_overrides_runpath=no
11827 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11828 ;;
11829 esac
11830 ;;
11831
11832 sysv4*MP*)
11833 if test -d /usr/nec ;then
11834 version_type=linux
11835 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11836 soname_spec='$libname${shared_ext}.$major'
11837 shlibpath_var=LD_LIBRARY_PATH
11838 fi
11839 ;;
11840
11841 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11842 version_type=freebsd-elf
11843 need_lib_prefix=no
11844 need_version=no
11845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11846 soname_spec='${libname}${release}${shared_ext}$major'
11847 shlibpath_var=LD_LIBRARY_PATH
11848 shlibpath_overrides_runpath=yes
11849 hardcode_into_libs=yes
11850 if test "$with_gnu_ld" = yes; then
11851 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11852 else
11853 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11854 case $host_os in
11855 sco3.2v5*)
11856 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11857 ;;
11858 esac
11859 fi
11860 sys_lib_dlsearch_path_spec='/usr/lib'
11861 ;;
11862
11863 tpf*)
11864 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11865 version_type=linux
11866 need_lib_prefix=no
11867 need_version=no
11868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11869 shlibpath_var=LD_LIBRARY_PATH
11870 shlibpath_overrides_runpath=no
11871 hardcode_into_libs=yes
11872 ;;
11873
11874 uts4*)
11875 version_type=linux
11876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11877 soname_spec='${libname}${release}${shared_ext}$major'
11878 shlibpath_var=LD_LIBRARY_PATH
11879 ;;
11880
11881 *)
11882 dynamic_linker=no
11883 ;;
11884 esac
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11886 $as_echo "$dynamic_linker" >&6; }
11887 test "$dynamic_linker" = no && can_build_shared=no
11888
11889 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11890 if test "$GCC" = yes; then
11891 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11892 fi
11893
11894 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11895 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11896 fi
11897 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11898 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11899 fi
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
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11993 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11994 hardcode_action=
11995 if test -n "$hardcode_libdir_flag_spec" ||
11996 test -n "$runpath_var" ||
11997 test "X$hardcode_automatic" = "Xyes" ; then
11998
11999 # We can hardcode non-existent directories.
12000 if test "$hardcode_direct" != no &&
12001 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12002 # have to relink, otherwise we might link with an installed library
12003 # when we should be linking with a yet-to-be-installed one
12004 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12005 test "$hardcode_minus_L" != no; then
12006 # Linking always hardcodes the temporary library directory.
12007 hardcode_action=relink
12008 else
12009 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12010 hardcode_action=immediate
12011 fi
12012 else
12013 # We cannot hardcode anything, or else we can only hardcode existing
12014 # directories.
12015 hardcode_action=unsupported
12016 fi
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12018 $as_echo "$hardcode_action" >&6; }
12019
12020 if test "$hardcode_action" = relink ||
12021 test "$inherit_rpath" = yes; then
12022 # Fast installation is not supported
12023 enable_fast_install=no
12024 elif test "$shlibpath_overrides_runpath" = yes ||
12025 test "$enable_shared" = no; then
12026 # Fast installation is not necessary
12027 enable_fast_install=needless
12028 fi
12029
12030
12031
12032
12033
12034
12035 if test "x$enable_dlopen" != xyes; then
12036 enable_dlopen=unknown
12037 enable_dlopen_self=unknown
12038 enable_dlopen_self_static=unknown
12039 else
12040 lt_cv_dlopen=no
12041 lt_cv_dlopen_libs=
12042
12043 case $host_os in
12044 beos*)
12045 lt_cv_dlopen="load_add_on"
12046 lt_cv_dlopen_libs=
12047 lt_cv_dlopen_self=yes
12048 ;;
12049
12050 mingw* | pw32* | cegcc*)
12051 lt_cv_dlopen="LoadLibrary"
12052 lt_cv_dlopen_libs=
12053 ;;
12054
12055 cygwin*)
12056 lt_cv_dlopen="dlopen"
12057 lt_cv_dlopen_libs=
12058 ;;
12059
12060 darwin*)
12061 # if libdl is installed we need to link against it
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12063 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12064 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12065 $as_echo_n "(cached) " >&6
12066 else
12067 ac_check_lib_save_LIBS=$LIBS
12068 LIBS="-ldl $LIBS"
12069 if test x$gcc_no_link = xyes; then
12070 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12071 fi
12072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12073 /* end confdefs.h. */
12074
12075 /* Override any GCC internal prototype to avoid an error.
12076 Use char because int might match the return type of a GCC
12077 builtin and then its argument prototype would still apply. */
12078 #ifdef __cplusplus
12079 extern "C"
12080 #endif
12081 char dlopen ();
12082 int
12083 main ()
12084 {
12085 return dlopen ();
12086 ;
12087 return 0;
12088 }
12089 _ACEOF
12090 if ac_fn_c_try_link "$LINENO"; then :
12091 ac_cv_lib_dl_dlopen=yes
12092 else
12093 ac_cv_lib_dl_dlopen=no
12094 fi
12095 rm -f core conftest.err conftest.$ac_objext \
12096 conftest$ac_exeext conftest.$ac_ext
12097 LIBS=$ac_check_lib_save_LIBS
12098 fi
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12100 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12101 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12102 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12103 else
12104
12105 lt_cv_dlopen="dyld"
12106 lt_cv_dlopen_libs=
12107 lt_cv_dlopen_self=yes
12108
12109 fi
12110
12111 ;;
12112
12113 *)
12114 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12115 if test "x$ac_cv_func_shl_load" = x""yes; then :
12116 lt_cv_dlopen="shl_load"
12117 else
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12119 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12120 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12121 $as_echo_n "(cached) " >&6
12122 else
12123 ac_check_lib_save_LIBS=$LIBS
12124 LIBS="-ldld $LIBS"
12125 if test x$gcc_no_link = xyes; then
12126 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12127 fi
12128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12129 /* end confdefs.h. */
12130
12131 /* Override any GCC internal prototype to avoid an error.
12132 Use char because int might match the return type of a GCC
12133 builtin and then its argument prototype would still apply. */
12134 #ifdef __cplusplus
12135 extern "C"
12136 #endif
12137 char shl_load ();
12138 int
12139 main ()
12140 {
12141 return shl_load ();
12142 ;
12143 return 0;
12144 }
12145 _ACEOF
12146 if ac_fn_c_try_link "$LINENO"; then :
12147 ac_cv_lib_dld_shl_load=yes
12148 else
12149 ac_cv_lib_dld_shl_load=no
12150 fi
12151 rm -f core conftest.err conftest.$ac_objext \
12152 conftest$ac_exeext conftest.$ac_ext
12153 LIBS=$ac_check_lib_save_LIBS
12154 fi
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12156 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12157 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12158 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12159 else
12160 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12161 if test "x$ac_cv_func_dlopen" = x""yes; then :
12162 lt_cv_dlopen="dlopen"
12163 else
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12165 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12166 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12167 $as_echo_n "(cached) " >&6
12168 else
12169 ac_check_lib_save_LIBS=$LIBS
12170 LIBS="-ldl $LIBS"
12171 if test x$gcc_no_link = xyes; then
12172 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12173 fi
12174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12175 /* end confdefs.h. */
12176
12177 /* Override any GCC internal prototype to avoid an error.
12178 Use char because int might match the return type of a GCC
12179 builtin and then its argument prototype would still apply. */
12180 #ifdef __cplusplus
12181 extern "C"
12182 #endif
12183 char dlopen ();
12184 int
12185 main ()
12186 {
12187 return dlopen ();
12188 ;
12189 return 0;
12190 }
12191 _ACEOF
12192 if ac_fn_c_try_link "$LINENO"; then :
12193 ac_cv_lib_dl_dlopen=yes
12194 else
12195 ac_cv_lib_dl_dlopen=no
12196 fi
12197 rm -f core conftest.err conftest.$ac_objext \
12198 conftest$ac_exeext conftest.$ac_ext
12199 LIBS=$ac_check_lib_save_LIBS
12200 fi
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12202 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12203 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12204 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12205 else
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12207 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12208 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12209 $as_echo_n "(cached) " >&6
12210 else
12211 ac_check_lib_save_LIBS=$LIBS
12212 LIBS="-lsvld $LIBS"
12213 if test x$gcc_no_link = xyes; then
12214 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12215 fi
12216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12217 /* end confdefs.h. */
12218
12219 /* Override any GCC internal prototype to avoid an error.
12220 Use char because int might match the return type of a GCC
12221 builtin and then its argument prototype would still apply. */
12222 #ifdef __cplusplus
12223 extern "C"
12224 #endif
12225 char dlopen ();
12226 int
12227 main ()
12228 {
12229 return dlopen ();
12230 ;
12231 return 0;
12232 }
12233 _ACEOF
12234 if ac_fn_c_try_link "$LINENO"; then :
12235 ac_cv_lib_svld_dlopen=yes
12236 else
12237 ac_cv_lib_svld_dlopen=no
12238 fi
12239 rm -f core conftest.err conftest.$ac_objext \
12240 conftest$ac_exeext conftest.$ac_ext
12241 LIBS=$ac_check_lib_save_LIBS
12242 fi
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12244 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12245 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12246 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12247 else
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12249 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12250 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12251 $as_echo_n "(cached) " >&6
12252 else
12253 ac_check_lib_save_LIBS=$LIBS
12254 LIBS="-ldld $LIBS"
12255 if test x$gcc_no_link = xyes; then
12256 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12257 fi
12258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12259 /* end confdefs.h. */
12260
12261 /* Override any GCC internal prototype to avoid an error.
12262 Use char because int might match the return type of a GCC
12263 builtin and then its argument prototype would still apply. */
12264 #ifdef __cplusplus
12265 extern "C"
12266 #endif
12267 char dld_link ();
12268 int
12269 main ()
12270 {
12271 return dld_link ();
12272 ;
12273 return 0;
12274 }
12275 _ACEOF
12276 if ac_fn_c_try_link "$LINENO"; then :
12277 ac_cv_lib_dld_dld_link=yes
12278 else
12279 ac_cv_lib_dld_dld_link=no
12280 fi
12281 rm -f core conftest.err conftest.$ac_objext \
12282 conftest$ac_exeext conftest.$ac_ext
12283 LIBS=$ac_check_lib_save_LIBS
12284 fi
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12286 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12287 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12288 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12289 fi
12290
12291
12292 fi
12293
12294
12295 fi
12296
12297
12298 fi
12299
12300
12301 fi
12302
12303
12304 fi
12305
12306 ;;
12307 esac
12308
12309 if test "x$lt_cv_dlopen" != xno; then
12310 enable_dlopen=yes
12311 else
12312 enable_dlopen=no
12313 fi
12314
12315 case $lt_cv_dlopen in
12316 dlopen)
12317 save_CPPFLAGS="$CPPFLAGS"
12318 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12319
12320 save_LDFLAGS="$LDFLAGS"
12321 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12322
12323 save_LIBS="$LIBS"
12324 LIBS="$lt_cv_dlopen_libs $LIBS"
12325
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12327 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12328 if test "${lt_cv_dlopen_self+set}" = set; then :
12329 $as_echo_n "(cached) " >&6
12330 else
12331 if test "$cross_compiling" = yes; then :
12332 lt_cv_dlopen_self=cross
12333 else
12334 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12335 lt_status=$lt_dlunknown
12336 cat > conftest.$ac_ext <<_LT_EOF
12337 #line 12337 "configure"
12338 #include "confdefs.h"
12339
12340 #if HAVE_DLFCN_H
12341 #include <dlfcn.h>
12342 #endif
12343
12344 #include <stdio.h>
12345
12346 #ifdef RTLD_GLOBAL
12347 # define LT_DLGLOBAL RTLD_GLOBAL
12348 #else
12349 # ifdef DL_GLOBAL
12350 # define LT_DLGLOBAL DL_GLOBAL
12351 # else
12352 # define LT_DLGLOBAL 0
12353 # endif
12354 #endif
12355
12356 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12357 find out it does not work in some platform. */
12358 #ifndef LT_DLLAZY_OR_NOW
12359 # ifdef RTLD_LAZY
12360 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12361 # else
12362 # ifdef DL_LAZY
12363 # define LT_DLLAZY_OR_NOW DL_LAZY
12364 # else
12365 # ifdef RTLD_NOW
12366 # define LT_DLLAZY_OR_NOW RTLD_NOW
12367 # else
12368 # ifdef DL_NOW
12369 # define LT_DLLAZY_OR_NOW DL_NOW
12370 # else
12371 # define LT_DLLAZY_OR_NOW 0
12372 # endif
12373 # endif
12374 # endif
12375 # endif
12376 #endif
12377
12378 /* When -fvisbility=hidden is used, assume the code has been annotated
12379 correspondingly for the symbols needed. */
12380 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12381 void fnord () __attribute__((visibility("default")));
12382 #endif
12383
12384 void fnord () { int i=42; }
12385 int main ()
12386 {
12387 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12388 int status = $lt_dlunknown;
12389
12390 if (self)
12391 {
12392 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12393 else
12394 {
12395 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12396 else puts (dlerror ());
12397 }
12398 /* dlclose (self); */
12399 }
12400 else
12401 puts (dlerror ());
12402
12403 return status;
12404 }
12405 _LT_EOF
12406 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12407 (eval $ac_link) 2>&5
12408 ac_status=$?
12409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12410 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12411 (./conftest; exit; ) >&5 2>/dev/null
12412 lt_status=$?
12413 case x$lt_status in
12414 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12415 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12416 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12417 esac
12418 else :
12419 # compilation failed
12420 lt_cv_dlopen_self=no
12421 fi
12422 fi
12423 rm -fr conftest*
12424
12425
12426 fi
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12428 $as_echo "$lt_cv_dlopen_self" >&6; }
12429
12430 if test "x$lt_cv_dlopen_self" = xyes; then
12431 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12433 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12434 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12435 $as_echo_n "(cached) " >&6
12436 else
12437 if test "$cross_compiling" = yes; then :
12438 lt_cv_dlopen_self_static=cross
12439 else
12440 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12441 lt_status=$lt_dlunknown
12442 cat > conftest.$ac_ext <<_LT_EOF
12443 #line 12443 "configure"
12444 #include "confdefs.h"
12445
12446 #if HAVE_DLFCN_H
12447 #include <dlfcn.h>
12448 #endif
12449
12450 #include <stdio.h>
12451
12452 #ifdef RTLD_GLOBAL
12453 # define LT_DLGLOBAL RTLD_GLOBAL
12454 #else
12455 # ifdef DL_GLOBAL
12456 # define LT_DLGLOBAL DL_GLOBAL
12457 # else
12458 # define LT_DLGLOBAL 0
12459 # endif
12460 #endif
12461
12462 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12463 find out it does not work in some platform. */
12464 #ifndef LT_DLLAZY_OR_NOW
12465 # ifdef RTLD_LAZY
12466 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12467 # else
12468 # ifdef DL_LAZY
12469 # define LT_DLLAZY_OR_NOW DL_LAZY
12470 # else
12471 # ifdef RTLD_NOW
12472 # define LT_DLLAZY_OR_NOW RTLD_NOW
12473 # else
12474 # ifdef DL_NOW
12475 # define LT_DLLAZY_OR_NOW DL_NOW
12476 # else
12477 # define LT_DLLAZY_OR_NOW 0
12478 # endif
12479 # endif
12480 # endif
12481 # endif
12482 #endif
12483
12484 /* When -fvisbility=hidden is used, assume the code has been annotated
12485 correspondingly for the symbols needed. */
12486 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12487 void fnord () __attribute__((visibility("default")));
12488 #endif
12489
12490 void fnord () { int i=42; }
12491 int main ()
12492 {
12493 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12494 int status = $lt_dlunknown;
12495
12496 if (self)
12497 {
12498 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12499 else
12500 {
12501 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12502 else puts (dlerror ());
12503 }
12504 /* dlclose (self); */
12505 }
12506 else
12507 puts (dlerror ());
12508
12509 return status;
12510 }
12511 _LT_EOF
12512 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12513 (eval $ac_link) 2>&5
12514 ac_status=$?
12515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12516 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12517 (./conftest; exit; ) >&5 2>/dev/null
12518 lt_status=$?
12519 case x$lt_status in
12520 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12521 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12522 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12523 esac
12524 else :
12525 # compilation failed
12526 lt_cv_dlopen_self_static=no
12527 fi
12528 fi
12529 rm -fr conftest*
12530
12531
12532 fi
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12534 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12535 fi
12536
12537 CPPFLAGS="$save_CPPFLAGS"
12538 LDFLAGS="$save_LDFLAGS"
12539 LIBS="$save_LIBS"
12540 ;;
12541 esac
12542
12543 case $lt_cv_dlopen_self in
12544 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12545 *) enable_dlopen_self=unknown ;;
12546 esac
12547
12548 case $lt_cv_dlopen_self_static in
12549 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12550 *) enable_dlopen_self_static=unknown ;;
12551 esac
12552 fi
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570 striplib=
12571 old_striplib=
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12573 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12574 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12575 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12576 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12578 $as_echo "yes" >&6; }
12579 else
12580 # FIXME - insert some real tests, host_os isn't really good enough
12581 case $host_os in
12582 darwin*)
12583 if test -n "$STRIP" ; then
12584 striplib="$STRIP -x"
12585 old_striplib="$STRIP -S"
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12587 $as_echo "yes" >&6; }
12588 else
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12590 $as_echo "no" >&6; }
12591 fi
12592 ;;
12593 *)
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12595 $as_echo "no" >&6; }
12596 ;;
12597 esac
12598 fi
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611 # Report which library types will actually be built
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12613 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12615 $as_echo "$can_build_shared" >&6; }
12616
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12618 $as_echo_n "checking whether to build shared libraries... " >&6; }
12619 test "$can_build_shared" = "no" && enable_shared=no
12620
12621 # On AIX, shared libraries and static libraries use the same namespace, and
12622 # are all built from PIC.
12623 case $host_os in
12624 aix3*)
12625 test "$enable_shared" = yes && enable_static=no
12626 if test -n "$RANLIB"; then
12627 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12628 postinstall_cmds='$RANLIB $lib'
12629 fi
12630 ;;
12631
12632 aix[4-9]*)
12633 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12634 test "$enable_shared" = yes && enable_static=no
12635 fi
12636 ;;
12637 esac
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12639 $as_echo "$enable_shared" >&6; }
12640
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12642 $as_echo_n "checking whether to build static libraries... " >&6; }
12643 # Make sure either enable_shared or enable_static is yes.
12644 test "$enable_shared" = yes || enable_static=yes
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12646 $as_echo "$enable_static" >&6; }
12647
12648
12649
12650
12651 fi
12652 ac_ext=c
12653 ac_cpp='$CPP $CPPFLAGS'
12654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12657
12658 CC="$lt_save_CC"
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672 ac_config_commands="$ac_config_commands libtool"
12673
12674
12675
12676
12677 # Only expand once:
12678
12679
12680
12681
12682
12683 case $host in
12684 *-cygwin* | *-mingw*)
12685 # 'host' will be top-level target in the case of a target lib,
12686 # we must compare to with_cross_host to decide if this is a native
12687 # or cross-compiler and select where to install dlls appropriately.
12688 if test -n "$with_cross_host" &&
12689 test x"$with_cross_host" != x"no"; then
12690 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
12691 else
12692 lt_host_flags='-no-undefined -bindir "$(bindir)"';
12693 fi
12694 ;;
12695 *)
12696 lt_host_flags=
12697 ;;
12698 esac
12699
12700
12701
12702
12703
12704 #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
12705
12706 # We need gfortran to compile parts of the library
12707 #AC_PROG_FC(gfortran)
12708 FC="$GFORTRAN"
12709 ac_ext=${ac_fc_srcext-f}
12710 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12711 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
12712 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12713 if test -n "$ac_tool_prefix"; then
12714 for ac_prog in gfortran
12715 do
12716 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12717 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12719 $as_echo_n "checking for $ac_word... " >&6; }
12720 if test "${ac_cv_prog_FC+set}" = set; then :
12721 $as_echo_n "(cached) " >&6
12722 else
12723 if test -n "$FC"; then
12724 ac_cv_prog_FC="$FC" # Let the user override the test.
12725 else
12726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12727 for as_dir in $PATH
12728 do
12729 IFS=$as_save_IFS
12730 test -z "$as_dir" && as_dir=.
12731 for ac_exec_ext in '' $ac_executable_extensions; do
12732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12733 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
12734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12735 break 2
12736 fi
12737 done
12738 done
12739 IFS=$as_save_IFS
12740
12741 fi
12742 fi
12743 FC=$ac_cv_prog_FC
12744 if test -n "$FC"; then
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
12746 $as_echo "$FC" >&6; }
12747 else
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12749 $as_echo "no" >&6; }
12750 fi
12751
12752
12753 test -n "$FC" && break
12754 done
12755 fi
12756 if test -z "$FC"; then
12757 ac_ct_FC=$FC
12758 for ac_prog in gfortran
12759 do
12760 # Extract the first word of "$ac_prog", so it can be a program name with args.
12761 set dummy $ac_prog; ac_word=$2
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12763 $as_echo_n "checking for $ac_word... " >&6; }
12764 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
12765 $as_echo_n "(cached) " >&6
12766 else
12767 if test -n "$ac_ct_FC"; then
12768 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
12769 else
12770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12771 for as_dir in $PATH
12772 do
12773 IFS=$as_save_IFS
12774 test -z "$as_dir" && as_dir=.
12775 for ac_exec_ext in '' $ac_executable_extensions; do
12776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12777 ac_cv_prog_ac_ct_FC="$ac_prog"
12778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12779 break 2
12780 fi
12781 done
12782 done
12783 IFS=$as_save_IFS
12784
12785 fi
12786 fi
12787 ac_ct_FC=$ac_cv_prog_ac_ct_FC
12788 if test -n "$ac_ct_FC"; then
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
12790 $as_echo "$ac_ct_FC" >&6; }
12791 else
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12793 $as_echo "no" >&6; }
12794 fi
12795
12796
12797 test -n "$ac_ct_FC" && break
12798 done
12799
12800 if test "x$ac_ct_FC" = x; then
12801 FC=""
12802 else
12803 case $cross_compiling:$ac_tool_warned in
12804 yes:)
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12807 ac_tool_warned=yes ;;
12808 esac
12809 FC=$ac_ct_FC
12810 fi
12811 fi
12812
12813
12814 # Provide some information about the compiler.
12815 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
12816 set X $ac_compile
12817 ac_compiler=$2
12818 for ac_option in --version -v -V -qversion; do
12819 { { ac_try="$ac_compiler $ac_option >&5"
12820 case "(($ac_try" in
12821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12822 *) ac_try_echo=$ac_try;;
12823 esac
12824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12825 $as_echo "$ac_try_echo"; } >&5
12826 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12827 ac_status=$?
12828 if test -s conftest.err; then
12829 sed '10a\
12830 ... rest of stderr output deleted ...
12831 10q' conftest.err >conftest.er1
12832 cat conftest.er1 >&5
12833 rm -f conftest.er1 conftest.err
12834 fi
12835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12836 test $ac_status = 0; }
12837 done
12838 rm -f a.out
12839
12840 # If we don't use `.F' as extension, the preprocessor is not run on the
12841 # input file. (Note that this only needs to work for GNU compilers.)
12842 ac_save_ext=$ac_ext
12843 ac_ext=F
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
12845 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
12846 if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
12847 $as_echo_n "(cached) " >&6
12848 else
12849 cat > conftest.$ac_ext <<_ACEOF
12850 program main
12851 #ifndef __GNUC__
12852 choke me
12853 #endif
12854
12855 end
12856 _ACEOF
12857 if ac_fn_fc_try_compile "$LINENO"; then :
12858 ac_compiler_gnu=yes
12859 else
12860 ac_compiler_gnu=no
12861 fi
12862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12863 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
12864
12865 fi
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
12867 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
12868 ac_ext=$ac_save_ext
12869 ac_test_FCFLAGS=${FCFLAGS+set}
12870 ac_save_FCFLAGS=$FCFLAGS
12871 FCFLAGS=
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
12873 $as_echo_n "checking whether $FC accepts -g... " >&6; }
12874 if test "${ac_cv_prog_fc_g+set}" = set; then :
12875 $as_echo_n "(cached) " >&6
12876 else
12877 FCFLAGS=-g
12878 cat > conftest.$ac_ext <<_ACEOF
12879 program main
12880
12881 end
12882 _ACEOF
12883 if ac_fn_fc_try_compile "$LINENO"; then :
12884 ac_cv_prog_fc_g=yes
12885 else
12886 ac_cv_prog_fc_g=no
12887 fi
12888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12889
12890 fi
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
12892 $as_echo "$ac_cv_prog_fc_g" >&6; }
12893 if test "$ac_test_FCFLAGS" = set; then
12894 FCFLAGS=$ac_save_FCFLAGS
12895 elif test $ac_cv_prog_fc_g = yes; then
12896 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12897 FCFLAGS="-g -O2"
12898 else
12899 FCFLAGS="-g"
12900 fi
12901 else
12902 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12903 FCFLAGS="-O2"
12904 else
12905 FCFLAGS=
12906 fi
12907 fi
12908
12909 ac_ext=c
12910 ac_cpp='$CPP $CPPFLAGS'
12911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12914
12915 ac_ext=${ac_fc_srcext-f}
12916 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12917 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
12918 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12919
12920
12921 if test -z "$FC" || test "X$FC" = "Xno"; then
12922 _lt_disable_FC=yes
12923 fi
12924
12925 archive_cmds_need_lc_FC=no
12926 allow_undefined_flag_FC=
12927 always_export_symbols_FC=no
12928 archive_expsym_cmds_FC=
12929 export_dynamic_flag_spec_FC=
12930 hardcode_direct_FC=no
12931 hardcode_direct_absolute_FC=no
12932 hardcode_libdir_flag_spec_FC=
12933 hardcode_libdir_flag_spec_ld_FC=
12934 hardcode_libdir_separator_FC=
12935 hardcode_minus_L_FC=no
12936 hardcode_automatic_FC=no
12937 inherit_rpath_FC=no
12938 module_cmds_FC=
12939 module_expsym_cmds_FC=
12940 link_all_deplibs_FC=unknown
12941 old_archive_cmds_FC=$old_archive_cmds
12942 reload_flag_FC=$reload_flag
12943 reload_cmds_FC=$reload_cmds
12944 no_undefined_flag_FC=
12945 whole_archive_flag_spec_FC=
12946 enable_shared_with_static_runtimes_FC=no
12947
12948 # Source file extension for fc test sources.
12949 ac_ext=${ac_fc_srcext-f}
12950
12951 # Object file extension for compiled fc test sources.
12952 objext=o
12953 objext_FC=$objext
12954
12955 # No sense in running all these tests if we already determined that
12956 # the FC compiler isn't working. Some variables (like enable_shared)
12957 # are currently assumed to apply to all compilers on this platform,
12958 # and will be corrupted by setting them based on a non-working compiler.
12959 if test "$_lt_disable_FC" != yes; then
12960 # Code to be used in simple compile tests
12961 lt_simple_compile_test_code="\
12962 subroutine t
12963 return
12964 end
12965 "
12966
12967 # Code to be used in simple link tests
12968 lt_simple_link_test_code="\
12969 program t
12970 end
12971 "
12972
12973 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12974
12975
12976
12977
12978
12979
12980 # If no C compiler was specified, use CC.
12981 LTCC=${LTCC-"$CC"}
12982
12983 # If no C compiler flags were specified, use CFLAGS.
12984 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12985
12986 # Allow CC to be a program name with arguments.
12987 compiler=$CC
12988
12989
12990 # save warnings/boilerplate of simple test code
12991 ac_outfile=conftest.$ac_objext
12992 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12993 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12994 _lt_compiler_boilerplate=`cat conftest.err`
12995 $RM conftest*
12996
12997 ac_outfile=conftest.$ac_objext
12998 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12999 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13000 _lt_linker_boilerplate=`cat conftest.err`
13001 $RM -r conftest*
13002
13003
13004 # Allow CC to be a program name with arguments.
13005 lt_save_CC="$CC"
13006 lt_save_GCC=$GCC
13007 CC=${FC-"f95"}
13008 compiler=$CC
13009 GCC=$ac_cv_fc_compiler_gnu
13010
13011 compiler_FC=$CC
13012 for cc_temp in $compiler""; do
13013 case $cc_temp in
13014 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13015 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13016 \-*) ;;
13017 *) break;;
13018 esac
13019 done
13020 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13021
13022
13023 if test -n "$compiler"; then
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13025 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13027 $as_echo "$can_build_shared" >&6; }
13028
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13030 $as_echo_n "checking whether to build shared libraries... " >&6; }
13031 test "$can_build_shared" = "no" && enable_shared=no
13032
13033 # On AIX, shared libraries and static libraries use the same namespace, and
13034 # are all built from PIC.
13035 case $host_os in
13036 aix3*)
13037 test "$enable_shared" = yes && enable_static=no
13038 if test -n "$RANLIB"; then
13039 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13040 postinstall_cmds='$RANLIB $lib'
13041 fi
13042 ;;
13043 aix[4-9]*)
13044 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13045 test "$enable_shared" = yes && enable_static=no
13046 fi
13047 ;;
13048 esac
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13050 $as_echo "$enable_shared" >&6; }
13051
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13053 $as_echo_n "checking whether to build static libraries... " >&6; }
13054 # Make sure either enable_shared or enable_static is yes.
13055 test "$enable_shared" = yes || enable_static=yes
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13057 $as_echo "$enable_static" >&6; }
13058
13059 GCC_FC="$ac_cv_fc_compiler_gnu"
13060 LD_FC="$LD"
13061
13062 ## CAVEAT EMPTOR:
13063 ## There is no encapsulation within the following macros, do not change
13064 ## the running order or otherwise move them around unless you know exactly
13065 ## what you are doing...
13066 # Dependencies to place before and after the object being linked:
13067 predep_objects_FC=
13068 postdep_objects_FC=
13069 predeps_FC=
13070 postdeps_FC=
13071 compiler_lib_search_path_FC=
13072
13073 cat > conftest.$ac_ext <<_LT_EOF
13074 subroutine foo
13075 implicit none
13076 integer a
13077 a=0
13078 return
13079 end
13080 _LT_EOF
13081
13082 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13083 (eval $ac_compile) 2>&5
13084 ac_status=$?
13085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13086 test $ac_status = 0; }; then
13087 # Parse the compiler output and extract the necessary
13088 # objects, libraries and library flags.
13089
13090 # Sentinel used to keep track of whether or not we are before
13091 # the conftest object file.
13092 pre_test_object_deps_done=no
13093
13094 for p in `eval "$output_verbose_link_cmd"`; do
13095 case $p in
13096
13097 -L* | -R* | -l*)
13098 # Some compilers place space between "-{L,R}" and the path.
13099 # Remove the space.
13100 if test $p = "-L" ||
13101 test $p = "-R"; then
13102 prev=$p
13103 continue
13104 else
13105 prev=
13106 fi
13107
13108 if test "$pre_test_object_deps_done" = no; then
13109 case $p in
13110 -L* | -R*)
13111 # Internal compiler library paths should come after those
13112 # provided the user. The postdeps already come after the
13113 # user supplied libs so there is no need to process them.
13114 if test -z "$compiler_lib_search_path_FC"; then
13115 compiler_lib_search_path_FC="${prev}${p}"
13116 else
13117 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
13118 fi
13119 ;;
13120 # The "-l" case would never come before the object being
13121 # linked, so don't bother handling this case.
13122 esac
13123 else
13124 if test -z "$postdeps_FC"; then
13125 postdeps_FC="${prev}${p}"
13126 else
13127 postdeps_FC="${postdeps_FC} ${prev}${p}"
13128 fi
13129 fi
13130 ;;
13131
13132 *.$objext)
13133 # This assumes that the test object file only shows up
13134 # once in the compiler output.
13135 if test "$p" = "conftest.$objext"; then
13136 pre_test_object_deps_done=yes
13137 continue
13138 fi
13139
13140 if test "$pre_test_object_deps_done" = no; then
13141 if test -z "$predep_objects_FC"; then
13142 predep_objects_FC="$p"
13143 else
13144 predep_objects_FC="$predep_objects_FC $p"
13145 fi
13146 else
13147 if test -z "$postdep_objects_FC"; then
13148 postdep_objects_FC="$p"
13149 else
13150 postdep_objects_FC="$postdep_objects_FC $p"
13151 fi
13152 fi
13153 ;;
13154
13155 *) ;; # Ignore the rest.
13156
13157 esac
13158 done
13159
13160 # Clean up.
13161 rm -f a.out a.exe
13162 else
13163 echo "libtool.m4: error: problem compiling FC test program"
13164 fi
13165
13166 $RM -f confest.$objext
13167
13168 # PORTME: override above test on systems where it is broken
13169
13170
13171 case " $postdeps_FC " in
13172 *" -lc "*) archive_cmds_need_lc_FC=no ;;
13173 esac
13174 compiler_lib_search_dirs_FC=
13175 if test -n "${compiler_lib_search_path_FC}"; then
13176 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13177 fi
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209 lt_prog_compiler_wl_FC=
13210 lt_prog_compiler_pic_FC=
13211 lt_prog_compiler_static_FC=
13212
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13214 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13215
13216 if test "$GCC" = yes; then
13217 lt_prog_compiler_wl_FC='-Wl,'
13218 lt_prog_compiler_static_FC='-static'
13219
13220 case $host_os in
13221 aix*)
13222 # All AIX code is PIC.
13223 if test "$host_cpu" = ia64; then
13224 # AIX 5 now supports IA64 processor
13225 lt_prog_compiler_static_FC='-Bstatic'
13226 fi
13227 lt_prog_compiler_pic_FC='-fPIC'
13228 ;;
13229
13230 amigaos*)
13231 case $host_cpu in
13232 powerpc)
13233 # see comment about AmigaOS4 .so support
13234 lt_prog_compiler_pic_FC='-fPIC'
13235 ;;
13236 m68k)
13237 # FIXME: we need at least 68020 code to build shared libraries, but
13238 # adding the `-m68020' flag to GCC prevents building anything better,
13239 # like `-m68040'.
13240 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
13241 ;;
13242 esac
13243 ;;
13244
13245 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13246 # PIC is the default for these OSes.
13247 ;;
13248
13249 mingw* | cygwin* | pw32* | os2* | cegcc*)
13250 # This hack is so that the source file can tell whether it is being
13251 # built for inclusion in a dll (and should export symbols for example).
13252 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13253 # (--disable-auto-import) libraries
13254 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13255 ;;
13256
13257 darwin* | rhapsody*)
13258 # PIC is the default on this platform
13259 # Common symbols not allowed in MH_DYLIB files
13260 lt_prog_compiler_pic_FC='-fno-common'
13261 ;;
13262
13263 haiku*)
13264 # PIC is the default for Haiku.
13265 # The "-static" flag exists, but is broken.
13266 lt_prog_compiler_static_FC=
13267 ;;
13268
13269 hpux*)
13270 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13271 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13272 # sets the default TLS model and affects inlining.
13273 case $host_cpu in
13274 hppa*64*)
13275 # +Z the default
13276 ;;
13277 *)
13278 lt_prog_compiler_pic_FC='-fPIC'
13279 ;;
13280 esac
13281 ;;
13282
13283 interix[3-9]*)
13284 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13285 # Instead, we relocate shared libraries at runtime.
13286 ;;
13287
13288 msdosdjgpp*)
13289 # Just because we use GCC doesn't mean we suddenly get shared libraries
13290 # on systems that don't support them.
13291 lt_prog_compiler_can_build_shared_FC=no
13292 enable_shared=no
13293 ;;
13294
13295 *nto* | *qnx*)
13296 # QNX uses GNU C++, but need to define -shared option too, otherwise
13297 # it will coredump.
13298 lt_prog_compiler_pic_FC='-fPIC -shared'
13299 ;;
13300
13301 sysv4*MP*)
13302 if test -d /usr/nec; then
13303 lt_prog_compiler_pic_FC=-Kconform_pic
13304 fi
13305 ;;
13306
13307 *)
13308 lt_prog_compiler_pic_FC='-fPIC'
13309 ;;
13310 esac
13311
13312 case $cc_basename in
13313 nvcc*) # Cuda Compiler Driver 2.2
13314 lt_prog_compiler_wl_FC='-Xlinker '
13315 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
13316 ;;
13317 esac
13318 else
13319 # PORTME Check for flag to pass linker flags through the system compiler.
13320 case $host_os in
13321 aix*)
13322 lt_prog_compiler_wl_FC='-Wl,'
13323 if test "$host_cpu" = ia64; then
13324 # AIX 5 now supports IA64 processor
13325 lt_prog_compiler_static_FC='-Bstatic'
13326 else
13327 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
13328 fi
13329 ;;
13330
13331 mingw* | cygwin* | pw32* | os2* | cegcc*)
13332 # This hack is so that the source file can tell whether it is being
13333 # built for inclusion in a dll (and should export symbols for example).
13334 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13335 ;;
13336
13337 hpux9* | hpux10* | hpux11*)
13338 lt_prog_compiler_wl_FC='-Wl,'
13339 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13340 # not for PA HP-UX.
13341 case $host_cpu in
13342 hppa*64*|ia64*)
13343 # +Z the default
13344 ;;
13345 *)
13346 lt_prog_compiler_pic_FC='+Z'
13347 ;;
13348 esac
13349 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13350 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
13351 ;;
13352
13353 irix5* | irix6* | nonstopux*)
13354 lt_prog_compiler_wl_FC='-Wl,'
13355 # PIC (with -KPIC) is the default.
13356 lt_prog_compiler_static_FC='-non_shared'
13357 ;;
13358
13359 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13360 case $cc_basename in
13361 # old Intel for x86_64 which still supported -KPIC.
13362 ecc*)
13363 lt_prog_compiler_wl_FC='-Wl,'
13364 lt_prog_compiler_pic_FC='-KPIC'
13365 lt_prog_compiler_static_FC='-static'
13366 ;;
13367 # icc used to be incompatible with GCC.
13368 # ICC 10 doesn't accept -KPIC any more.
13369 icc* | ifort*)
13370 lt_prog_compiler_wl_FC='-Wl,'
13371 lt_prog_compiler_pic_FC='-fPIC'
13372 lt_prog_compiler_static_FC='-static'
13373 ;;
13374 # Lahey Fortran 8.1.
13375 lf95*)
13376 lt_prog_compiler_wl_FC='-Wl,'
13377 lt_prog_compiler_pic_FC='--shared'
13378 lt_prog_compiler_static_FC='--static'
13379 ;;
13380 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13381 # Portland Group compilers (*not* the Pentium gcc compiler,
13382 # which looks to be a dead project)
13383 lt_prog_compiler_wl_FC='-Wl,'
13384 lt_prog_compiler_pic_FC='-fpic'
13385 lt_prog_compiler_static_FC='-Bstatic'
13386 ;;
13387 ccc*)
13388 lt_prog_compiler_wl_FC='-Wl,'
13389 # All Alpha code is PIC.
13390 lt_prog_compiler_static_FC='-non_shared'
13391 ;;
13392 xl* | bgxl* | bgf* | mpixl*)
13393 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13394 lt_prog_compiler_wl_FC='-Wl,'
13395 lt_prog_compiler_pic_FC='-qpic'
13396 lt_prog_compiler_static_FC='-qstaticlink'
13397 ;;
13398 *)
13399 case `$CC -V 2>&1 | sed 5q` in
13400 *Sun\ F* | *Sun*Fortran*)
13401 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13402 lt_prog_compiler_pic_FC='-KPIC'
13403 lt_prog_compiler_static_FC='-Bstatic'
13404 lt_prog_compiler_wl_FC=''
13405 ;;
13406 *Sun\ C*)
13407 # Sun C 5.9
13408 lt_prog_compiler_pic_FC='-KPIC'
13409 lt_prog_compiler_static_FC='-Bstatic'
13410 lt_prog_compiler_wl_FC='-Wl,'
13411 ;;
13412 esac
13413 ;;
13414 esac
13415 ;;
13416
13417 newsos6)
13418 lt_prog_compiler_pic_FC='-KPIC'
13419 lt_prog_compiler_static_FC='-Bstatic'
13420 ;;
13421
13422 *nto* | *qnx*)
13423 # QNX uses GNU C++, but need to define -shared option too, otherwise
13424 # it will coredump.
13425 lt_prog_compiler_pic_FC='-fPIC -shared'
13426 ;;
13427
13428 osf3* | osf4* | osf5*)
13429 lt_prog_compiler_wl_FC='-Wl,'
13430 # All OSF/1 code is PIC.
13431 lt_prog_compiler_static_FC='-non_shared'
13432 ;;
13433
13434 rdos*)
13435 lt_prog_compiler_static_FC='-non_shared'
13436 ;;
13437
13438 solaris*)
13439 lt_prog_compiler_pic_FC='-KPIC'
13440 lt_prog_compiler_static_FC='-Bstatic'
13441 case $cc_basename in
13442 f77* | f90* | f95*)
13443 lt_prog_compiler_wl_FC='-Qoption ld ';;
13444 *)
13445 lt_prog_compiler_wl_FC='-Wl,';;
13446 esac
13447 ;;
13448
13449 sunos4*)
13450 lt_prog_compiler_wl_FC='-Qoption ld '
13451 lt_prog_compiler_pic_FC='-PIC'
13452 lt_prog_compiler_static_FC='-Bstatic'
13453 ;;
13454
13455 sysv4 | sysv4.2uw2* | sysv4.3*)
13456 lt_prog_compiler_wl_FC='-Wl,'
13457 lt_prog_compiler_pic_FC='-KPIC'
13458 lt_prog_compiler_static_FC='-Bstatic'
13459 ;;
13460
13461 sysv4*MP*)
13462 if test -d /usr/nec ;then
13463 lt_prog_compiler_pic_FC='-Kconform_pic'
13464 lt_prog_compiler_static_FC='-Bstatic'
13465 fi
13466 ;;
13467
13468 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13469 lt_prog_compiler_wl_FC='-Wl,'
13470 lt_prog_compiler_pic_FC='-KPIC'
13471 lt_prog_compiler_static_FC='-Bstatic'
13472 ;;
13473
13474 unicos*)
13475 lt_prog_compiler_wl_FC='-Wl,'
13476 lt_prog_compiler_can_build_shared_FC=no
13477 ;;
13478
13479 uts4*)
13480 lt_prog_compiler_pic_FC='-pic'
13481 lt_prog_compiler_static_FC='-Bstatic'
13482 ;;
13483
13484 *)
13485 lt_prog_compiler_can_build_shared_FC=no
13486 ;;
13487 esac
13488 fi
13489
13490 case $host_os in
13491 # For platforms which do not support PIC, -DPIC is meaningless:
13492 *djgpp*)
13493 lt_prog_compiler_pic_FC=
13494 ;;
13495 *)
13496 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
13497 ;;
13498 esac
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
13500 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
13501
13502
13503
13504 #
13505 # Check to make sure the PIC flag actually works.
13506 #
13507 if test -n "$lt_prog_compiler_pic_FC"; then
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
13509 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
13510 if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then :
13511 $as_echo_n "(cached) " >&6
13512 else
13513 lt_cv_prog_compiler_pic_works_FC=no
13514 ac_outfile=conftest.$ac_objext
13515 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13516 lt_compiler_flag="$lt_prog_compiler_pic_FC"
13517 # Insert the option either (1) after the last *FLAGS variable, or
13518 # (2) before a word containing "conftest.", or (3) at the end.
13519 # Note that $ac_compile itself does not contain backslashes and begins
13520 # with a dollar sign (not a hyphen), so the echo should work correctly.
13521 # The option is referenced via a variable to avoid confusing sed.
13522 lt_compile=`echo "$ac_compile" | $SED \
13523 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13524 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13525 -e 's:$: $lt_compiler_flag:'`
13526 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13527 (eval "$lt_compile" 2>conftest.err)
13528 ac_status=$?
13529 cat conftest.err >&5
13530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531 if (exit $ac_status) && test -s "$ac_outfile"; then
13532 # The compiler can only warn and ignore the option if not recognized
13533 # So say no if there are warnings other than the usual output.
13534 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13535 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13536 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13537 lt_cv_prog_compiler_pic_works_FC=yes
13538 fi
13539 fi
13540 $RM conftest*
13541
13542 fi
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
13544 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
13545
13546 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
13547 case $lt_prog_compiler_pic_FC in
13548 "" | " "*) ;;
13549 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
13550 esac
13551 else
13552 lt_prog_compiler_pic_FC=
13553 lt_prog_compiler_can_build_shared_FC=no
13554 fi
13555
13556 fi
13557
13558
13559
13560 #
13561 # Check to make sure the static flag actually works.
13562 #
13563 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13565 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13566 if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then :
13567 $as_echo_n "(cached) " >&6
13568 else
13569 lt_cv_prog_compiler_static_works_FC=no
13570 save_LDFLAGS="$LDFLAGS"
13571 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13572 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13573 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13574 # The linker can only warn and ignore the option if not recognized
13575 # So say no if there are warnings
13576 if test -s conftest.err; then
13577 # Append any errors to the config.log.
13578 cat conftest.err 1>&5
13579 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13580 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13581 if diff conftest.exp conftest.er2 >/dev/null; then
13582 lt_cv_prog_compiler_static_works_FC=yes
13583 fi
13584 else
13585 lt_cv_prog_compiler_static_works_FC=yes
13586 fi
13587 fi
13588 $RM -r conftest*
13589 LDFLAGS="$save_LDFLAGS"
13590
13591 fi
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
13593 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
13594
13595 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
13596 :
13597 else
13598 lt_prog_compiler_static_FC=
13599 fi
13600
13601
13602
13603
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13605 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13606 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
13607 $as_echo_n "(cached) " >&6
13608 else
13609 lt_cv_prog_compiler_c_o_FC=no
13610 $RM -r conftest 2>/dev/null
13611 mkdir conftest
13612 cd conftest
13613 mkdir out
13614 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13615
13616 lt_compiler_flag="-o out/conftest2.$ac_objext"
13617 # Insert the option either (1) after the last *FLAGS variable, or
13618 # (2) before a word containing "conftest.", or (3) at the end.
13619 # Note that $ac_compile itself does not contain backslashes and begins
13620 # with a dollar sign (not a hyphen), so the echo should work correctly.
13621 lt_compile=`echo "$ac_compile" | $SED \
13622 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13623 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13624 -e 's:$: $lt_compiler_flag:'`
13625 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13626 (eval "$lt_compile" 2>out/conftest.err)
13627 ac_status=$?
13628 cat out/conftest.err >&5
13629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13631 then
13632 # The compiler can only warn and ignore the option if not recognized
13633 # So say no if there are warnings
13634 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13635 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13636 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13637 lt_cv_prog_compiler_c_o_FC=yes
13638 fi
13639 fi
13640 chmod u+w . 2>&5
13641 $RM conftest*
13642 # SGI C++ compiler will create directory out/ii_files/ for
13643 # template instantiation
13644 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13645 $RM out/* && rmdir out
13646 cd ..
13647 $RM -r conftest
13648 $RM conftest*
13649
13650 fi
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
13652 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
13653
13654
13655
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13657 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13658 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
13659 $as_echo_n "(cached) " >&6
13660 else
13661 lt_cv_prog_compiler_c_o_FC=no
13662 $RM -r conftest 2>/dev/null
13663 mkdir conftest
13664 cd conftest
13665 mkdir out
13666 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13667
13668 lt_compiler_flag="-o out/conftest2.$ac_objext"
13669 # Insert the option either (1) after the last *FLAGS variable, or
13670 # (2) before a word containing "conftest.", or (3) at the end.
13671 # Note that $ac_compile itself does not contain backslashes and begins
13672 # with a dollar sign (not a hyphen), so the echo should work correctly.
13673 lt_compile=`echo "$ac_compile" | $SED \
13674 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13675 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13676 -e 's:$: $lt_compiler_flag:'`
13677 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13678 (eval "$lt_compile" 2>out/conftest.err)
13679 ac_status=$?
13680 cat out/conftest.err >&5
13681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13683 then
13684 # The compiler can only warn and ignore the option if not recognized
13685 # So say no if there are warnings
13686 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13687 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13688 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13689 lt_cv_prog_compiler_c_o_FC=yes
13690 fi
13691 fi
13692 chmod u+w . 2>&5
13693 $RM conftest*
13694 # SGI C++ compiler will create directory out/ii_files/ for
13695 # template instantiation
13696 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13697 $RM out/* && rmdir out
13698 cd ..
13699 $RM -r conftest
13700 $RM conftest*
13701
13702 fi
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
13704 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
13705
13706
13707
13708
13709 hard_links="nottested"
13710 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
13711 # do not overwrite the value of need_locks provided by the user
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13713 $as_echo_n "checking if we can lock with hard links... " >&6; }
13714 hard_links=yes
13715 $RM conftest*
13716 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13717 touch conftest.a
13718 ln conftest.a conftest.b 2>&5 || hard_links=no
13719 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13721 $as_echo "$hard_links" >&6; }
13722 if test "$hard_links" = no; then
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13724 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13725 need_locks=warn
13726 fi
13727 else
13728 need_locks=no
13729 fi
13730
13731
13732
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13734 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13735
13736 runpath_var=
13737 allow_undefined_flag_FC=
13738 always_export_symbols_FC=no
13739 archive_cmds_FC=
13740 archive_expsym_cmds_FC=
13741 compiler_needs_object_FC=no
13742 enable_shared_with_static_runtimes_FC=no
13743 export_dynamic_flag_spec_FC=
13744 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13745 hardcode_automatic_FC=no
13746 hardcode_direct_FC=no
13747 hardcode_direct_absolute_FC=no
13748 hardcode_libdir_flag_spec_FC=
13749 hardcode_libdir_flag_spec_ld_FC=
13750 hardcode_libdir_separator_FC=
13751 hardcode_minus_L_FC=no
13752 hardcode_shlibpath_var_FC=unsupported
13753 inherit_rpath_FC=no
13754 link_all_deplibs_FC=unknown
13755 module_cmds_FC=
13756 module_expsym_cmds_FC=
13757 old_archive_from_new_cmds_FC=
13758 old_archive_from_expsyms_cmds_FC=
13759 thread_safe_flag_spec_FC=
13760 whole_archive_flag_spec_FC=
13761 # include_expsyms should be a list of space-separated symbols to be *always*
13762 # included in the symbol list
13763 include_expsyms_FC=
13764 # exclude_expsyms can be an extended regexp of symbols to exclude
13765 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13766 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13767 # as well as any symbol that contains `d'.
13768 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13769 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13770 # platforms (ab)use it in PIC code, but their linkers get confused if
13771 # the symbol is explicitly referenced. Since portable code cannot
13772 # rely on this symbol name, it's probably fine to never include it in
13773 # preloaded symbol tables.
13774 # Exclude shared library initialization/finalization symbols.
13775 extract_expsyms_cmds=
13776
13777 case $host_os in
13778 cygwin* | mingw* | pw32* | cegcc*)
13779 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13780 # When not using gcc, we currently assume that we are using
13781 # Microsoft Visual C++.
13782 if test "$GCC" != yes; then
13783 with_gnu_ld=no
13784 fi
13785 ;;
13786 interix*)
13787 # we just hope/assume this is gcc and not c89 (= MSVC++)
13788 with_gnu_ld=yes
13789 ;;
13790 openbsd*)
13791 with_gnu_ld=no
13792 ;;
13793 esac
13794
13795 ld_shlibs_FC=yes
13796
13797 # On some targets, GNU ld is compatible enough with the native linker
13798 # that we're better off using the native interface for both.
13799 lt_use_gnu_ld_interface=no
13800 if test "$with_gnu_ld" = yes; then
13801 case $host_os in
13802 aix*)
13803 # The AIX port of GNU ld has always aspired to compatibility
13804 # with the native linker. However, as the warning in the GNU ld
13805 # block says, versions before 2.19.5* couldn't really create working
13806 # shared libraries, regardless of the interface used.
13807 case `$LD -v 2>&1` in
13808 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13809 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13810 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13811 *)
13812 lt_use_gnu_ld_interface=yes
13813 ;;
13814 esac
13815 ;;
13816 *)
13817 lt_use_gnu_ld_interface=yes
13818 ;;
13819 esac
13820 fi
13821
13822 if test "$lt_use_gnu_ld_interface" = yes; then
13823 # If archive_cmds runs LD, not CC, wlarc should be empty
13824 wlarc='${wl}'
13825
13826 # Set some defaults for GNU ld with shared library support. These
13827 # are reset later if shared libraries are not supported. Putting them
13828 # here allows them to be overridden if necessary.
13829 runpath_var=LD_RUN_PATH
13830 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13831 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
13832 # ancient GNU ld didn't support --whole-archive et. al.
13833 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13834 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13835 else
13836 whole_archive_flag_spec_FC=
13837 fi
13838 supports_anon_versioning=no
13839 case `$LD -v 2>&1` in
13840 *GNU\ gold*) supports_anon_versioning=yes ;;
13841 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13842 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13843 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13844 *\ 2.11.*) ;; # other 2.11 versions
13845 *) supports_anon_versioning=yes ;;
13846 esac
13847
13848 # See if GNU ld supports shared libraries.
13849 case $host_os in
13850 aix[3-9]*)
13851 # On AIX/PPC, the GNU linker is very broken
13852 if test "$host_cpu" != ia64; then
13853 ld_shlibs_FC=no
13854 cat <<_LT_EOF 1>&2
13855
13856 *** Warning: the GNU linker, at least up to release 2.19, is reported
13857 *** to be unable to reliably create shared libraries on AIX.
13858 *** Therefore, libtool is disabling shared libraries support. If you
13859 *** really care for shared libraries, you may want to install binutils
13860 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13861 *** You will then need to restart the configuration process.
13862
13863 _LT_EOF
13864 fi
13865 ;;
13866
13867 amigaos*)
13868 case $host_cpu in
13869 powerpc)
13870 # see comment about AmigaOS4 .so support
13871 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13872 archive_expsym_cmds_FC=''
13873 ;;
13874 m68k)
13875 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)'
13876 hardcode_libdir_flag_spec_FC='-L$libdir'
13877 hardcode_minus_L_FC=yes
13878 ;;
13879 esac
13880 ;;
13881
13882 beos*)
13883 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13884 allow_undefined_flag_FC=unsupported
13885 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13886 # support --undefined. This deserves some investigation. FIXME
13887 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13888 else
13889 ld_shlibs_FC=no
13890 fi
13891 ;;
13892
13893 cygwin* | mingw* | pw32* | cegcc*)
13894 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
13895 # as there is no search path for DLLs.
13896 hardcode_libdir_flag_spec_FC='-L$libdir'
13897 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
13898 allow_undefined_flag_FC=unsupported
13899 always_export_symbols_FC=no
13900 enable_shared_with_static_runtimes_FC=yes
13901 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13902
13903 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13904 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13905 # If the export-symbols file already is a .def file (1st line
13906 # is EXPORTS), use it as is; otherwise, prepend...
13907 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13908 cp $export_symbols $output_objdir/$soname.def;
13909 else
13910 echo EXPORTS > $output_objdir/$soname.def;
13911 cat $export_symbols >> $output_objdir/$soname.def;
13912 fi~
13913 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13914 else
13915 ld_shlibs_FC=no
13916 fi
13917 ;;
13918
13919 haiku*)
13920 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13921 link_all_deplibs_FC=yes
13922 ;;
13923
13924 interix[3-9]*)
13925 hardcode_direct_FC=no
13926 hardcode_shlibpath_var_FC=no
13927 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13928 export_dynamic_flag_spec_FC='${wl}-E'
13929 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13930 # Instead, shared libraries are loaded at an image base (0x10000000 by
13931 # default) and relocated if they conflict, which is a slow very memory
13932 # consuming and fragmenting process. To avoid this, we pick a random,
13933 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13934 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13935 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'
13936 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'
13937 ;;
13938
13939 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13940 tmp_diet=no
13941 if test "$host_os" = linux-dietlibc; then
13942 case $cc_basename in
13943 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13944 esac
13945 fi
13946 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13947 && test "$tmp_diet" = no
13948 then
13949 tmp_addflag=
13950 tmp_sharedflag='-shared'
13951 case $cc_basename,$host_cpu in
13952 pgcc*) # Portland Group C compiler
13953 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'
13954 tmp_addflag=' $pic_flag'
13955 ;;
13956 pgf77* | pgf90* | pgf95* | pgfortran*)
13957 # Portland Group f77 and f90 compilers
13958 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'
13959 tmp_addflag=' $pic_flag -Mnomain' ;;
13960 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13961 tmp_addflag=' -i_dynamic' ;;
13962 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13963 tmp_addflag=' -i_dynamic -nofor_main' ;;
13964 ifc* | ifort*) # Intel Fortran compiler
13965 tmp_addflag=' -nofor_main' ;;
13966 lf95*) # Lahey Fortran 8.1
13967 whole_archive_flag_spec_FC=
13968 tmp_sharedflag='--shared' ;;
13969 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13970 tmp_sharedflag='-qmkshrobj'
13971 tmp_addflag= ;;
13972 nvcc*) # Cuda Compiler Driver 2.2
13973 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'
13974 compiler_needs_object_FC=yes
13975 ;;
13976 esac
13977 case `$CC -V 2>&1 | sed 5q` in
13978 *Sun\ C*) # Sun C 5.9
13979 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'
13980 compiler_needs_object_FC=yes
13981 tmp_sharedflag='-G' ;;
13982 *Sun\ F*) # Sun Fortran 8.3
13983 tmp_sharedflag='-G' ;;
13984 esac
13985 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13986
13987 if test "x$supports_anon_versioning" = xyes; then
13988 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
13989 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13990 echo "local: *; };" >> $output_objdir/$libname.ver~
13991 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13992 fi
13993
13994 case $cc_basename in
13995 xlf* | bgf* | bgxlf* | mpixlf*)
13996 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13997 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
13998 hardcode_libdir_flag_spec_FC=
13999 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
14000 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
14001 if test "x$supports_anon_versioning" = xyes; then
14002 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14003 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14004 echo "local: *; };" >> $output_objdir/$libname.ver~
14005 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14006 fi
14007 ;;
14008 esac
14009 else
14010 ld_shlibs_FC=no
14011 fi
14012 ;;
14013
14014 netbsd*)
14015 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14016 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14017 wlarc=
14018 else
14019 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14020 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14021 fi
14022 ;;
14023
14024 solaris*)
14025 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14026 ld_shlibs_FC=no
14027 cat <<_LT_EOF 1>&2
14028
14029 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14030 *** create shared libraries on Solaris systems. Therefore, libtool
14031 *** is disabling shared libraries support. We urge you to upgrade GNU
14032 *** binutils to release 2.9.1 or newer. Another option is to modify
14033 *** your PATH or compiler configuration so that the native linker is
14034 *** used, and then restart.
14035
14036 _LT_EOF
14037 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14038 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14039 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14040 else
14041 ld_shlibs_FC=no
14042 fi
14043 ;;
14044
14045 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14046 case `$LD -v 2>&1` in
14047 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14048 ld_shlibs_FC=no
14049 cat <<_LT_EOF 1>&2
14050
14051 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14052 *** reliably create shared libraries on SCO systems. Therefore, libtool
14053 *** is disabling shared libraries support. We urge you to upgrade GNU
14054 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14055 *** your PATH or compiler configuration so that the native linker is
14056 *** used, and then restart.
14057
14058 _LT_EOF
14059 ;;
14060 *)
14061 # For security reasons, it is highly recommended that you always
14062 # use absolute paths for naming shared libraries, and exclude the
14063 # DT_RUNPATH tag from executables and libraries. But doing so
14064 # requires that you compile everything twice, which is a pain.
14065 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14066 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14067 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14068 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14069 else
14070 ld_shlibs_FC=no
14071 fi
14072 ;;
14073 esac
14074 ;;
14075
14076 sunos4*)
14077 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14078 wlarc=
14079 hardcode_direct_FC=yes
14080 hardcode_shlibpath_var_FC=no
14081 ;;
14082
14083 *)
14084 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14085 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14086 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14087 else
14088 ld_shlibs_FC=no
14089 fi
14090 ;;
14091 esac
14092
14093 if test "$ld_shlibs_FC" = no; then
14094 runpath_var=
14095 hardcode_libdir_flag_spec_FC=
14096 export_dynamic_flag_spec_FC=
14097 whole_archive_flag_spec_FC=
14098 fi
14099 else
14100 # PORTME fill in a description of your system's linker (not GNU ld)
14101 case $host_os in
14102 aix3*)
14103 allow_undefined_flag_FC=unsupported
14104 always_export_symbols_FC=yes
14105 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'
14106 # Note: this linker hardcodes the directories in LIBPATH if there
14107 # are no directories specified by -L.
14108 hardcode_minus_L_FC=yes
14109 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14110 # Neither direct hardcoding nor static linking is supported with a
14111 # broken collect2.
14112 hardcode_direct_FC=unsupported
14113 fi
14114 ;;
14115
14116 aix[4-9]*)
14117 if test "$host_cpu" = ia64; then
14118 # On IA64, the linker does run time linking by default, so we don't
14119 # have to do anything special.
14120 aix_use_runtimelinking=no
14121 exp_sym_flag='-Bexport'
14122 no_entry_flag=""
14123 else
14124 # If we're using GNU nm, then we don't want the "-C" option.
14125 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14126 # Also, AIX nm treats weak defined symbols like other global
14127 # defined symbols, whereas GNU nm marks them as "W".
14128 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14129 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'
14130 else
14131 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'
14132 fi
14133 aix_use_runtimelinking=no
14134
14135 # Test if we are trying to use run time linking or normal
14136 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14137 # need to do runtime linking.
14138 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14139 for ld_flag in $LDFLAGS; do
14140 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14141 aix_use_runtimelinking=yes
14142 break
14143 fi
14144 done
14145 ;;
14146 esac
14147
14148 exp_sym_flag='-bexport'
14149 no_entry_flag='-bnoentry'
14150 fi
14151
14152 # When large executables or shared objects are built, AIX ld can
14153 # have problems creating the table of contents. If linking a library
14154 # or program results in "error TOC overflow" add -mminimal-toc to
14155 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14156 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14157
14158 archive_cmds_FC=''
14159 hardcode_direct_FC=yes
14160 hardcode_direct_absolute_FC=yes
14161 hardcode_libdir_separator_FC=':'
14162 link_all_deplibs_FC=yes
14163 file_list_spec_FC='${wl}-f,'
14164
14165 if test "$GCC" = yes; then
14166 case $host_os in aix4.[012]|aix4.[012].*)
14167 # We only want to do this on AIX 4.2 and lower, the check
14168 # below for broken collect2 doesn't work under 4.3+
14169 collect2name=`${CC} -print-prog-name=collect2`
14170 if test -f "$collect2name" &&
14171 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14172 then
14173 # We have reworked collect2
14174 :
14175 else
14176 # We have old collect2
14177 hardcode_direct_FC=unsupported
14178 # It fails to find uninstalled libraries when the uninstalled
14179 # path is not listed in the libpath. Setting hardcode_minus_L
14180 # to unsupported forces relinking
14181 hardcode_minus_L_FC=yes
14182 hardcode_libdir_flag_spec_FC='-L$libdir'
14183 hardcode_libdir_separator_FC=
14184 fi
14185 ;;
14186 esac
14187 shared_flag='-shared'
14188 if test "$aix_use_runtimelinking" = yes; then
14189 shared_flag="$shared_flag "'${wl}-G'
14190 fi
14191 else
14192 # not using gcc
14193 if test "$host_cpu" = ia64; then
14194 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14195 # chokes on -Wl,-G. The following line is correct:
14196 shared_flag='-G'
14197 else
14198 if test "$aix_use_runtimelinking" = yes; then
14199 shared_flag='${wl}-G'
14200 else
14201 shared_flag='${wl}-bM:SRE'
14202 fi
14203 fi
14204 fi
14205
14206 export_dynamic_flag_spec_FC='${wl}-bexpall'
14207 # It seems that -bexpall does not export symbols beginning with
14208 # underscore (_), so it is better to generate a list of symbols to export.
14209 always_export_symbols_FC=yes
14210 if test "$aix_use_runtimelinking" = yes; then
14211 # Warning - without using the other runtime loading flags (-brtl),
14212 # -berok will link without error, but may produce a broken library.
14213 allow_undefined_flag_FC='-berok'
14214 # Determine the default libpath from the value encoded in an
14215 # empty executable.
14216 if test x$gcc_no_link = xyes; then
14217 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14218 fi
14219 cat > conftest.$ac_ext <<_ACEOF
14220 program main
14221
14222 end
14223 _ACEOF
14224 if ac_fn_fc_try_link "$LINENO"; then :
14225
14226 lt_aix_libpath_sed='
14227 /Import File Strings/,/^$/ {
14228 /^0/ {
14229 s/^0 *\(.*\)$/\1/
14230 p
14231 }
14232 }'
14233 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14234 # Check for a 64-bit object if we didn't find anything.
14235 if test -z "$aix_libpath"; then
14236 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14237 fi
14238 fi
14239 rm -f core conftest.err conftest.$ac_objext \
14240 conftest$ac_exeext conftest.$ac_ext
14241 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14242
14243 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14244 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"
14245 else
14246 if test "$host_cpu" = ia64; then
14247 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
14248 allow_undefined_flag_FC="-z nodefs"
14249 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"
14250 else
14251 # Determine the default libpath from the value encoded in an
14252 # empty executable.
14253 if test x$gcc_no_link = xyes; then
14254 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14255 fi
14256 cat > conftest.$ac_ext <<_ACEOF
14257 program main
14258
14259 end
14260 _ACEOF
14261 if ac_fn_fc_try_link "$LINENO"; then :
14262
14263 lt_aix_libpath_sed='
14264 /Import File Strings/,/^$/ {
14265 /^0/ {
14266 s/^0 *\(.*\)$/\1/
14267 p
14268 }
14269 }'
14270 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14271 # Check for a 64-bit object if we didn't find anything.
14272 if test -z "$aix_libpath"; then
14273 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14274 fi
14275 fi
14276 rm -f core conftest.err conftest.$ac_objext \
14277 conftest$ac_exeext conftest.$ac_ext
14278 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14279
14280 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14281 # Warning - without using the other run time loading flags,
14282 # -berok will link without error, but may produce a broken library.
14283 no_undefined_flag_FC=' ${wl}-bernotok'
14284 allow_undefined_flag_FC=' ${wl}-berok'
14285 if test "$with_gnu_ld" = yes; then
14286 # We only use this code for GNU lds that support --whole-archive.
14287 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14288 else
14289 # Exported symbols can be pulled into shared objects from archives
14290 whole_archive_flag_spec_FC='$convenience'
14291 fi
14292 archive_cmds_need_lc_FC=yes
14293 # This is similar to how AIX traditionally builds its shared libraries.
14294 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'
14295 fi
14296 fi
14297 ;;
14298
14299 amigaos*)
14300 case $host_cpu in
14301 powerpc)
14302 # see comment about AmigaOS4 .so support
14303 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14304 archive_expsym_cmds_FC=''
14305 ;;
14306 m68k)
14307 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)'
14308 hardcode_libdir_flag_spec_FC='-L$libdir'
14309 hardcode_minus_L_FC=yes
14310 ;;
14311 esac
14312 ;;
14313
14314 bsdi[45]*)
14315 export_dynamic_flag_spec_FC=-rdynamic
14316 ;;
14317
14318 cygwin* | mingw* | pw32* | cegcc*)
14319 # When not using gcc, we currently assume that we are using
14320 # Microsoft Visual C++.
14321 # hardcode_libdir_flag_spec is actually meaningless, as there is
14322 # no search path for DLLs.
14323 hardcode_libdir_flag_spec_FC=' '
14324 allow_undefined_flag_FC=unsupported
14325 # Tell ltmain to make .lib files, not .a files.
14326 libext=lib
14327 # Tell ltmain to make .dll files, not .so files.
14328 shrext_cmds=".dll"
14329 # FIXME: Setting linknames here is a bad hack.
14330 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14331 # The linker will automatically build a .lib file if we build a DLL.
14332 old_archive_from_new_cmds_FC='true'
14333 # FIXME: Should let the user specify the lib program.
14334 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
14335 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
14336 enable_shared_with_static_runtimes_FC=yes
14337 ;;
14338
14339 darwin* | rhapsody*)
14340
14341
14342 archive_cmds_need_lc_FC=no
14343 hardcode_direct_FC=no
14344 hardcode_automatic_FC=yes
14345 hardcode_shlibpath_var_FC=unsupported
14346 if test "$lt_cv_ld_force_load" = "yes"; then
14347 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\"`'
14348 else
14349 whole_archive_flag_spec_FC=''
14350 fi
14351 link_all_deplibs_FC=yes
14352 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
14353 case $cc_basename in
14354 ifort*) _lt_dar_can_shared=yes ;;
14355 *) _lt_dar_can_shared=$GCC ;;
14356 esac
14357 if test "$_lt_dar_can_shared" = "yes"; then
14358 output_verbose_link_cmd=func_echo_all
14359 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}"
14360 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14361 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}"
14362 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}"
14363
14364 else
14365 ld_shlibs_FC=no
14366 fi
14367
14368 ;;
14369
14370 dgux*)
14371 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14372 hardcode_libdir_flag_spec_FC='-L$libdir'
14373 hardcode_shlibpath_var_FC=no
14374 ;;
14375
14376 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14377 # support. Future versions do this automatically, but an explicit c++rt0.o
14378 # does not break anything, and helps significantly (at the cost of a little
14379 # extra space).
14380 freebsd2.2*)
14381 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14382 hardcode_libdir_flag_spec_FC='-R$libdir'
14383 hardcode_direct_FC=yes
14384 hardcode_shlibpath_var_FC=no
14385 ;;
14386
14387 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14388 freebsd2.*)
14389 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14390 hardcode_direct_FC=yes
14391 hardcode_minus_L_FC=yes
14392 hardcode_shlibpath_var_FC=no
14393 ;;
14394
14395 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14396 freebsd* | dragonfly*)
14397 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14398 hardcode_libdir_flag_spec_FC='-R$libdir'
14399 hardcode_direct_FC=yes
14400 hardcode_shlibpath_var_FC=no
14401 ;;
14402
14403 hpux9*)
14404 if test "$GCC" = yes; then
14405 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'
14406 else
14407 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'
14408 fi
14409 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14410 hardcode_libdir_separator_FC=:
14411 hardcode_direct_FC=yes
14412
14413 # hardcode_minus_L: Not really in the search PATH,
14414 # but as the default location of the library.
14415 hardcode_minus_L_FC=yes
14416 export_dynamic_flag_spec_FC='${wl}-E'
14417 ;;
14418
14419 hpux10*)
14420 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14421 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14422 else
14423 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14424 fi
14425 if test "$with_gnu_ld" = no; then
14426 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14427 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
14428 hardcode_libdir_separator_FC=:
14429 hardcode_direct_FC=yes
14430 hardcode_direct_absolute_FC=yes
14431 export_dynamic_flag_spec_FC='${wl}-E'
14432 # hardcode_minus_L: Not really in the search PATH,
14433 # but as the default location of the library.
14434 hardcode_minus_L_FC=yes
14435 fi
14436 ;;
14437
14438 hpux11*)
14439 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14440 case $host_cpu in
14441 hppa*64*)
14442 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14443 ;;
14444 ia64*)
14445 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14446 ;;
14447 *)
14448 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14449 ;;
14450 esac
14451 else
14452 case $host_cpu in
14453 hppa*64*)
14454 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14455 ;;
14456 ia64*)
14457 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14458 ;;
14459 *)
14460 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14461 ;;
14462 esac
14463 fi
14464 if test "$with_gnu_ld" = no; then
14465 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14466 hardcode_libdir_separator_FC=:
14467
14468 case $host_cpu in
14469 hppa*64*|ia64*)
14470 hardcode_direct_FC=no
14471 hardcode_shlibpath_var_FC=no
14472 ;;
14473 *)
14474 hardcode_direct_FC=yes
14475 hardcode_direct_absolute_FC=yes
14476 export_dynamic_flag_spec_FC='${wl}-E'
14477
14478 # hardcode_minus_L: Not really in the search PATH,
14479 # but as the default location of the library.
14480 hardcode_minus_L_FC=yes
14481 ;;
14482 esac
14483 fi
14484 ;;
14485
14486 irix5* | irix6* | nonstopux*)
14487 if test "$GCC" = yes; then
14488 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'
14489 # Try to use the -exported_symbol ld option, if it does not
14490 # work, assume that -exports_file does not work either and
14491 # implicitly export all symbols.
14492 save_LDFLAGS="$LDFLAGS"
14493 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14494 if test x$gcc_no_link = xyes; then
14495 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14496 fi
14497 cat > conftest.$ac_ext <<_ACEOF
14498 int foo(void) {}
14499 _ACEOF
14500 if ac_fn_fc_try_link "$LINENO"; then :
14501 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'
14502
14503 fi
14504 rm -f core conftest.err conftest.$ac_objext \
14505 conftest$ac_exeext conftest.$ac_ext
14506 LDFLAGS="$save_LDFLAGS"
14507 else
14508 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'
14509 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'
14510 fi
14511 archive_cmds_need_lc_FC='no'
14512 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14513 hardcode_libdir_separator_FC=:
14514 inherit_rpath_FC=yes
14515 link_all_deplibs_FC=yes
14516 ;;
14517
14518 netbsd*)
14519 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14520 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14521 else
14522 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14523 fi
14524 hardcode_libdir_flag_spec_FC='-R$libdir'
14525 hardcode_direct_FC=yes
14526 hardcode_shlibpath_var_FC=no
14527 ;;
14528
14529 newsos6)
14530 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14531 hardcode_direct_FC=yes
14532 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14533 hardcode_libdir_separator_FC=:
14534 hardcode_shlibpath_var_FC=no
14535 ;;
14536
14537 *nto* | *qnx*)
14538 ;;
14539
14540 openbsd*)
14541 if test -f /usr/libexec/ld.so; then
14542 hardcode_direct_FC=yes
14543 hardcode_shlibpath_var_FC=no
14544 hardcode_direct_absolute_FC=yes
14545 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14546 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14547 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14548 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14549 export_dynamic_flag_spec_FC='${wl}-E'
14550 else
14551 case $host_os in
14552 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14553 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14554 hardcode_libdir_flag_spec_FC='-R$libdir'
14555 ;;
14556 *)
14557 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14558 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14559 ;;
14560 esac
14561 fi
14562 else
14563 ld_shlibs_FC=no
14564 fi
14565 ;;
14566
14567 os2*)
14568 hardcode_libdir_flag_spec_FC='-L$libdir'
14569 hardcode_minus_L_FC=yes
14570 allow_undefined_flag_FC=unsupported
14571 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'
14572 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14573 ;;
14574
14575 osf3*)
14576 if test "$GCC" = yes; then
14577 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
14578 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'
14579 else
14580 allow_undefined_flag_FC=' -expect_unresolved \*'
14581 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'
14582 fi
14583 archive_cmds_need_lc_FC='no'
14584 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14585 hardcode_libdir_separator_FC=:
14586 ;;
14587
14588 osf4* | osf5*) # as osf3* with the addition of -msym flag
14589 if test "$GCC" = yes; then
14590 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
14591 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'
14592 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14593 else
14594 allow_undefined_flag_FC=' -expect_unresolved \*'
14595 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'
14596 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~
14597 $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'
14598
14599 # Both c and cxx compiler support -rpath directly
14600 hardcode_libdir_flag_spec_FC='-rpath $libdir'
14601 fi
14602 archive_cmds_need_lc_FC='no'
14603 hardcode_libdir_separator_FC=:
14604 ;;
14605
14606 solaris*)
14607 no_undefined_flag_FC=' -z defs'
14608 if test "$GCC" = yes; then
14609 wlarc='${wl}'
14610 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14611 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14612 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14613 else
14614 case `$CC -V 2>&1` in
14615 *"Compilers 5.0"*)
14616 wlarc=''
14617 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14618 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14619 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14620 ;;
14621 *)
14622 wlarc='${wl}'
14623 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14624 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14625 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14626 ;;
14627 esac
14628 fi
14629 hardcode_libdir_flag_spec_FC='-R$libdir'
14630 hardcode_shlibpath_var_FC=no
14631 case $host_os in
14632 solaris2.[0-5] | solaris2.[0-5].*) ;;
14633 *)
14634 # The compiler driver will combine and reorder linker options,
14635 # but understands `-z linker_flag'. GCC discards it without `$wl',
14636 # but is careful enough not to reorder.
14637 # Supported since Solaris 2.6 (maybe 2.5.1?)
14638 if test "$GCC" = yes; then
14639 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14640 else
14641 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
14642 fi
14643 ;;
14644 esac
14645 link_all_deplibs_FC=yes
14646 ;;
14647
14648 sunos4*)
14649 if test "x$host_vendor" = xsequent; then
14650 # Use $CC to link under sequent, because it throws in some extra .o
14651 # files that make .init and .fini sections work.
14652 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14653 else
14654 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14655 fi
14656 hardcode_libdir_flag_spec_FC='-L$libdir'
14657 hardcode_direct_FC=yes
14658 hardcode_minus_L_FC=yes
14659 hardcode_shlibpath_var_FC=no
14660 ;;
14661
14662 sysv4)
14663 case $host_vendor in
14664 sni)
14665 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14666 hardcode_direct_FC=yes # is this really true???
14667 ;;
14668 siemens)
14669 ## LD is ld it makes a PLAMLIB
14670 ## CC just makes a GrossModule.
14671 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14672 reload_cmds_FC='$CC -r -o $output$reload_objs'
14673 hardcode_direct_FC=no
14674 ;;
14675 motorola)
14676 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14677 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
14678 ;;
14679 esac
14680 runpath_var='LD_RUN_PATH'
14681 hardcode_shlibpath_var_FC=no
14682 ;;
14683
14684 sysv4.3*)
14685 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14686 hardcode_shlibpath_var_FC=no
14687 export_dynamic_flag_spec_FC='-Bexport'
14688 ;;
14689
14690 sysv4*MP*)
14691 if test -d /usr/nec; then
14692 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14693 hardcode_shlibpath_var_FC=no
14694 runpath_var=LD_RUN_PATH
14695 hardcode_runpath_var=yes
14696 ld_shlibs_FC=yes
14697 fi
14698 ;;
14699
14700 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14701 no_undefined_flag_FC='${wl}-z,text'
14702 archive_cmds_need_lc_FC=no
14703 hardcode_shlibpath_var_FC=no
14704 runpath_var='LD_RUN_PATH'
14705
14706 if test "$GCC" = yes; then
14707 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14708 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14709 else
14710 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14711 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14712 fi
14713 ;;
14714
14715 sysv5* | sco3.2v5* | sco5v6*)
14716 # Note: We can NOT use -z defs as we might desire, because we do not
14717 # link with -lc, and that would cause any symbols used from libc to
14718 # always be unresolved, which means just about no library would
14719 # ever link correctly. If we're not using GNU ld we use -z text
14720 # though, which does catch some bad symbols but isn't as heavy-handed
14721 # as -z defs.
14722 no_undefined_flag_FC='${wl}-z,text'
14723 allow_undefined_flag_FC='${wl}-z,nodefs'
14724 archive_cmds_need_lc_FC=no
14725 hardcode_shlibpath_var_FC=no
14726 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
14727 hardcode_libdir_separator_FC=':'
14728 link_all_deplibs_FC=yes
14729 export_dynamic_flag_spec_FC='${wl}-Bexport'
14730 runpath_var='LD_RUN_PATH'
14731
14732 if test "$GCC" = yes; then
14733 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14734 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14735 else
14736 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14737 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14738 fi
14739 ;;
14740
14741 uts4*)
14742 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14743 hardcode_libdir_flag_spec_FC='-L$libdir'
14744 hardcode_shlibpath_var_FC=no
14745 ;;
14746
14747 *)
14748 ld_shlibs_FC=no
14749 ;;
14750 esac
14751
14752 if test x$host_vendor = xsni; then
14753 case $host in
14754 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14755 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
14756 ;;
14757 esac
14758 fi
14759 fi
14760
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
14762 $as_echo "$ld_shlibs_FC" >&6; }
14763 test "$ld_shlibs_FC" = no && can_build_shared=no
14764
14765 with_gnu_ld_FC=$with_gnu_ld
14766
14767
14768
14769
14770
14771
14772 #
14773 # Do we need to explicitly link libc?
14774 #
14775 case "x$archive_cmds_need_lc_FC" in
14776 x|xyes)
14777 # Assume -lc should be added
14778 archive_cmds_need_lc_FC=yes
14779
14780 if test "$enable_shared" = yes && test "$GCC" = yes; then
14781 case $archive_cmds_FC in
14782 *'~'*)
14783 # FIXME: we may have to deal with multi-command sequences.
14784 ;;
14785 '$CC '*)
14786 # Test whether the compiler implicitly links with -lc since on some
14787 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14788 # to ld, don't add -lc before -lgcc.
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14790 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14791 if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then :
14792 $as_echo_n "(cached) " >&6
14793 else
14794 $RM conftest*
14795 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14796
14797 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14798 (eval $ac_compile) 2>&5
14799 ac_status=$?
14800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14801 test $ac_status = 0; } 2>conftest.err; then
14802 soname=conftest
14803 lib=conftest
14804 libobjs=conftest.$ac_objext
14805 deplibs=
14806 wl=$lt_prog_compiler_wl_FC
14807 pic_flag=$lt_prog_compiler_pic_FC
14808 compiler_flags=-v
14809 linker_flags=-v
14810 verstring=
14811 output_objdir=.
14812 libname=conftest
14813 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
14814 allow_undefined_flag_FC=
14815 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14816 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14817 ac_status=$?
14818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14819 test $ac_status = 0; }
14820 then
14821 lt_cv_archive_cmds_need_lc_FC=no
14822 else
14823 lt_cv_archive_cmds_need_lc_FC=yes
14824 fi
14825 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
14826 else
14827 cat conftest.err 1>&5
14828 fi
14829 $RM conftest*
14830
14831 fi
14832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
14833 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
14834 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
14835 ;;
14836 esac
14837 fi
14838 ;;
14839 esac
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14905 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14906
14907 library_names_spec=
14908 libname_spec='lib$name'
14909 soname_spec=
14910 shrext_cmds=".so"
14911 postinstall_cmds=
14912 postuninstall_cmds=
14913 finish_cmds=
14914 finish_eval=
14915 shlibpath_var=
14916 shlibpath_overrides_runpath=unknown
14917 version_type=none
14918 dynamic_linker="$host_os ld.so"
14919 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14920 need_lib_prefix=unknown
14921 hardcode_into_libs=no
14922
14923 # when you set need_version to no, make sure it does not cause -set_version
14924 # flags to be left without arguments
14925 need_version=unknown
14926
14927 case $host_os in
14928 aix3*)
14929 version_type=linux
14930 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14931 shlibpath_var=LIBPATH
14932
14933 # AIX 3 has no versioning support, so we append a major version to the name.
14934 soname_spec='${libname}${release}${shared_ext}$major'
14935 ;;
14936
14937 aix[4-9]*)
14938 version_type=linux
14939 need_lib_prefix=no
14940 need_version=no
14941 hardcode_into_libs=yes
14942 if test "$host_cpu" = ia64; then
14943 # AIX 5 supports IA64
14944 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14945 shlibpath_var=LD_LIBRARY_PATH
14946 else
14947 # With GCC up to 2.95.x, collect2 would create an import file
14948 # for dependence libraries. The import file would start with
14949 # the line `#! .'. This would cause the generated library to
14950 # depend on `.', always an invalid library. This was fixed in
14951 # development snapshots of GCC prior to 3.0.
14952 case $host_os in
14953 aix4 | aix4.[01] | aix4.[01].*)
14954 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14955 echo ' yes '
14956 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14957 :
14958 else
14959 can_build_shared=no
14960 fi
14961 ;;
14962 esac
14963 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14964 # soname into executable. Probably we can add versioning support to
14965 # collect2, so additional links can be useful in future.
14966 if test "$aix_use_runtimelinking" = yes; then
14967 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14968 # instead of lib<name>.a to let people know that these are not
14969 # typical AIX shared libraries.
14970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14971 else
14972 # We preserve .a as extension for shared libraries through AIX4.2
14973 # and later when we are not doing run time linking.
14974 library_names_spec='${libname}${release}.a $libname.a'
14975 soname_spec='${libname}${release}${shared_ext}$major'
14976 fi
14977 shlibpath_var=LIBPATH
14978 fi
14979 ;;
14980
14981 amigaos*)
14982 case $host_cpu in
14983 powerpc)
14984 # Since July 2007 AmigaOS4 officially supports .so libraries.
14985 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14987 ;;
14988 m68k)
14989 library_names_spec='$libname.ixlibrary $libname.a'
14990 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14991 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'
14992 ;;
14993 esac
14994 ;;
14995
14996 beos*)
14997 library_names_spec='${libname}${shared_ext}'
14998 dynamic_linker="$host_os ld.so"
14999 shlibpath_var=LIBRARY_PATH
15000 ;;
15001
15002 bsdi[45]*)
15003 version_type=linux
15004 need_version=no
15005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15006 soname_spec='${libname}${release}${shared_ext}$major'
15007 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15008 shlibpath_var=LD_LIBRARY_PATH
15009 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15010 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15011 # the default ld.so.conf also contains /usr/contrib/lib and
15012 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15013 # libtool to hard-code these into programs
15014 ;;
15015
15016 cygwin* | mingw* | pw32* | cegcc*)
15017 version_type=windows
15018 shrext_cmds=".dll"
15019 need_version=no
15020 need_lib_prefix=no
15021
15022 case $GCC,$host_os in
15023 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15024 library_names_spec='$libname.dll.a'
15025 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15026 postinstall_cmds='base_file=`basename \${file}`~
15027 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15028 dldir=$destdir/`dirname \$dlpath`~
15029 test -d \$dldir || mkdir -p \$dldir~
15030 $install_prog $dir/$dlname \$dldir/$dlname~
15031 chmod a+x \$dldir/$dlname~
15032 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15033 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15034 fi'
15035 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15036 dlpath=$dir/\$dldll~
15037 $RM \$dlpath'
15038 shlibpath_overrides_runpath=yes
15039
15040 case $host_os in
15041 cygwin*)
15042 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15043 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15044
15045 ;;
15046 mingw* | cegcc*)
15047 # MinGW DLLs use traditional 'lib' prefix
15048 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15049 ;;
15050 pw32*)
15051 # pw32 DLLs use 'pw' prefix rather than 'lib'
15052 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15053 ;;
15054 esac
15055 ;;
15056
15057 *)
15058 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15059 ;;
15060 esac
15061 dynamic_linker='Win32 ld.exe'
15062 # FIXME: first we should search . and the directory the executable is in
15063 shlibpath_var=PATH
15064 ;;
15065
15066 darwin* | rhapsody*)
15067 dynamic_linker="$host_os dyld"
15068 version_type=darwin
15069 need_lib_prefix=no
15070 need_version=no
15071 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15072 soname_spec='${libname}${release}${major}$shared_ext'
15073 shlibpath_overrides_runpath=yes
15074 shlibpath_var=DYLD_LIBRARY_PATH
15075 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15076
15077 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15078 ;;
15079
15080 dgux*)
15081 version_type=linux
15082 need_lib_prefix=no
15083 need_version=no
15084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15085 soname_spec='${libname}${release}${shared_ext}$major'
15086 shlibpath_var=LD_LIBRARY_PATH
15087 ;;
15088
15089 freebsd* | dragonfly*)
15090 # DragonFly does not have aout. When/if they implement a new
15091 # versioning mechanism, adjust this.
15092 if test -x /usr/bin/objformat; then
15093 objformat=`/usr/bin/objformat`
15094 else
15095 case $host_os in
15096 freebsd[23].*) objformat=aout ;;
15097 *) objformat=elf ;;
15098 esac
15099 fi
15100 version_type=freebsd-$objformat
15101 case $version_type in
15102 freebsd-elf*)
15103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15104 need_version=no
15105 need_lib_prefix=no
15106 ;;
15107 freebsd-*)
15108 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15109 need_version=yes
15110 ;;
15111 esac
15112 shlibpath_var=LD_LIBRARY_PATH
15113 case $host_os in
15114 freebsd2.*)
15115 shlibpath_overrides_runpath=yes
15116 ;;
15117 freebsd3.[01]* | freebsdelf3.[01]*)
15118 shlibpath_overrides_runpath=yes
15119 hardcode_into_libs=yes
15120 ;;
15121 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15122 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15123 shlibpath_overrides_runpath=no
15124 hardcode_into_libs=yes
15125 ;;
15126 *) # from 4.6 on, and DragonFly
15127 shlibpath_overrides_runpath=yes
15128 hardcode_into_libs=yes
15129 ;;
15130 esac
15131 ;;
15132
15133 gnu*)
15134 version_type=linux
15135 need_lib_prefix=no
15136 need_version=no
15137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15138 soname_spec='${libname}${release}${shared_ext}$major'
15139 shlibpath_var=LD_LIBRARY_PATH
15140 hardcode_into_libs=yes
15141 ;;
15142
15143 haiku*)
15144 version_type=linux
15145 need_lib_prefix=no
15146 need_version=no
15147 dynamic_linker="$host_os runtime_loader"
15148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15149 soname_spec='${libname}${release}${shared_ext}$major'
15150 shlibpath_var=LIBRARY_PATH
15151 shlibpath_overrides_runpath=yes
15152 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
15153 hardcode_into_libs=yes
15154 ;;
15155
15156 hpux9* | hpux10* | hpux11*)
15157 # Give a soname corresponding to the major version so that dld.sl refuses to
15158 # link against other versions.
15159 version_type=sunos
15160 need_lib_prefix=no
15161 need_version=no
15162 case $host_cpu in
15163 ia64*)
15164 shrext_cmds='.so'
15165 hardcode_into_libs=yes
15166 dynamic_linker="$host_os dld.so"
15167 shlibpath_var=LD_LIBRARY_PATH
15168 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15170 soname_spec='${libname}${release}${shared_ext}$major'
15171 if test "X$HPUX_IA64_MODE" = X32; then
15172 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15173 else
15174 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15175 fi
15176 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15177 ;;
15178 hppa*64*)
15179 shrext_cmds='.sl'
15180 hardcode_into_libs=yes
15181 dynamic_linker="$host_os dld.sl"
15182 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15183 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15185 soname_spec='${libname}${release}${shared_ext}$major'
15186 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15187 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15188 ;;
15189 *)
15190 shrext_cmds='.sl'
15191 dynamic_linker="$host_os dld.sl"
15192 shlibpath_var=SHLIB_PATH
15193 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15195 soname_spec='${libname}${release}${shared_ext}$major'
15196 ;;
15197 esac
15198 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15199 postinstall_cmds='chmod 555 $lib'
15200 # or fails outright, so override atomically:
15201 install_override_mode=555
15202 ;;
15203
15204 interix[3-9]*)
15205 version_type=linux
15206 need_lib_prefix=no
15207 need_version=no
15208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15209 soname_spec='${libname}${release}${shared_ext}$major'
15210 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15211 shlibpath_var=LD_LIBRARY_PATH
15212 shlibpath_overrides_runpath=no
15213 hardcode_into_libs=yes
15214 ;;
15215
15216 irix5* | irix6* | nonstopux*)
15217 case $host_os in
15218 nonstopux*) version_type=nonstopux ;;
15219 *)
15220 if test "$lt_cv_prog_gnu_ld" = yes; then
15221 version_type=linux
15222 else
15223 version_type=irix
15224 fi ;;
15225 esac
15226 need_lib_prefix=no
15227 need_version=no
15228 soname_spec='${libname}${release}${shared_ext}$major'
15229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15230 case $host_os in
15231 irix5* | nonstopux*)
15232 libsuff= shlibsuff=
15233 ;;
15234 *)
15235 case $LD in # libtool.m4 will add one of these switches to LD
15236 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15237 libsuff= shlibsuff= libmagic=32-bit;;
15238 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15239 libsuff=32 shlibsuff=N32 libmagic=N32;;
15240 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15241 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15242 *) libsuff= shlibsuff= libmagic=never-match;;
15243 esac
15244 ;;
15245 esac
15246 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15247 shlibpath_overrides_runpath=no
15248 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15249 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15250 hardcode_into_libs=yes
15251 ;;
15252
15253 # No shared lib support for Linux oldld, aout, or coff.
15254 linux*oldld* | linux*aout* | linux*coff*)
15255 dynamic_linker=no
15256 ;;
15257
15258 # This must be Linux ELF.
15259 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15260 version_type=linux
15261 need_lib_prefix=no
15262 need_version=no
15263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15264 soname_spec='${libname}${release}${shared_ext}$major'
15265 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15266 shlibpath_var=LD_LIBRARY_PATH
15267 shlibpath_overrides_runpath=no
15268
15269 # Some binutils ld are patched to set DT_RUNPATH
15270 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
15271 $as_echo_n "(cached) " >&6
15272 else
15273 lt_cv_shlibpath_overrides_runpath=no
15274 save_LDFLAGS=$LDFLAGS
15275 save_libdir=$libdir
15276 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
15277 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
15278 if test x$gcc_no_link = xyes; then
15279 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
15280 fi
15281 cat > conftest.$ac_ext <<_ACEOF
15282 program main
15283
15284 end
15285 _ACEOF
15286 if ac_fn_fc_try_link "$LINENO"; then :
15287 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15288 lt_cv_shlibpath_overrides_runpath=yes
15289 fi
15290 fi
15291 rm -f core conftest.err conftest.$ac_objext \
15292 conftest$ac_exeext conftest.$ac_ext
15293 LDFLAGS=$save_LDFLAGS
15294 libdir=$save_libdir
15295
15296 fi
15297
15298 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15299
15300 # This implies no fast_install, which is unacceptable.
15301 # Some rework will be needed to allow for fast_install
15302 # before this can be enabled.
15303 hardcode_into_libs=yes
15304
15305 # Append ld.so.conf contents to the search path
15306 if test -f /etc/ld.so.conf; then
15307 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' ' '`
15308 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15309 fi
15310
15311 # We used to test for /lib/ld.so.1 and disable shared libraries on
15312 # powerpc, because MkLinux only supported shared libraries with the
15313 # GNU dynamic linker. Since this was broken with cross compilers,
15314 # most powerpc-linux boxes support dynamic linking these days and
15315 # people can always --disable-shared, the test was removed, and we
15316 # assume the GNU/Linux dynamic linker is in use.
15317 dynamic_linker='GNU/Linux ld.so'
15318 ;;
15319
15320 netbsd*)
15321 version_type=sunos
15322 need_lib_prefix=no
15323 need_version=no
15324 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15326 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15327 dynamic_linker='NetBSD (a.out) ld.so'
15328 else
15329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15330 soname_spec='${libname}${release}${shared_ext}$major'
15331 dynamic_linker='NetBSD ld.elf_so'
15332 fi
15333 shlibpath_var=LD_LIBRARY_PATH
15334 shlibpath_overrides_runpath=yes
15335 hardcode_into_libs=yes
15336 ;;
15337
15338 newsos6)
15339 version_type=linux
15340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15341 shlibpath_var=LD_LIBRARY_PATH
15342 shlibpath_overrides_runpath=yes
15343 ;;
15344
15345 *nto* | *qnx*)
15346 version_type=qnx
15347 need_lib_prefix=no
15348 need_version=no
15349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15350 soname_spec='${libname}${release}${shared_ext}$major'
15351 shlibpath_var=LD_LIBRARY_PATH
15352 shlibpath_overrides_runpath=no
15353 hardcode_into_libs=yes
15354 dynamic_linker='ldqnx.so'
15355 ;;
15356
15357 openbsd*)
15358 version_type=sunos
15359 sys_lib_dlsearch_path_spec="/usr/lib"
15360 need_lib_prefix=no
15361 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15362 case $host_os in
15363 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15364 *) need_version=no ;;
15365 esac
15366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15367 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15368 shlibpath_var=LD_LIBRARY_PATH
15369 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15370 case $host_os in
15371 openbsd2.[89] | openbsd2.[89].*)
15372 shlibpath_overrides_runpath=no
15373 ;;
15374 *)
15375 shlibpath_overrides_runpath=yes
15376 ;;
15377 esac
15378 else
15379 shlibpath_overrides_runpath=yes
15380 fi
15381 ;;
15382
15383 os2*)
15384 libname_spec='$name'
15385 shrext_cmds=".dll"
15386 need_lib_prefix=no
15387 library_names_spec='$libname${shared_ext} $libname.a'
15388 dynamic_linker='OS/2 ld.exe'
15389 shlibpath_var=LIBPATH
15390 ;;
15391
15392 osf3* | osf4* | osf5*)
15393 version_type=osf
15394 need_lib_prefix=no
15395 need_version=no
15396 soname_spec='${libname}${release}${shared_ext}$major'
15397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15398 shlibpath_var=LD_LIBRARY_PATH
15399 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15400 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15401 ;;
15402
15403 rdos*)
15404 dynamic_linker=no
15405 ;;
15406
15407 solaris*)
15408 version_type=linux
15409 need_lib_prefix=no
15410 need_version=no
15411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15412 soname_spec='${libname}${release}${shared_ext}$major'
15413 shlibpath_var=LD_LIBRARY_PATH
15414 shlibpath_overrides_runpath=yes
15415 hardcode_into_libs=yes
15416 # ldd complains unless libraries are executable
15417 postinstall_cmds='chmod +x $lib'
15418 ;;
15419
15420 sunos4*)
15421 version_type=sunos
15422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15423 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15424 shlibpath_var=LD_LIBRARY_PATH
15425 shlibpath_overrides_runpath=yes
15426 if test "$with_gnu_ld" = yes; then
15427 need_lib_prefix=no
15428 fi
15429 need_version=yes
15430 ;;
15431
15432 sysv4 | sysv4.3*)
15433 version_type=linux
15434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15435 soname_spec='${libname}${release}${shared_ext}$major'
15436 shlibpath_var=LD_LIBRARY_PATH
15437 case $host_vendor in
15438 sni)
15439 shlibpath_overrides_runpath=no
15440 need_lib_prefix=no
15441 runpath_var=LD_RUN_PATH
15442 ;;
15443 siemens)
15444 need_lib_prefix=no
15445 ;;
15446 motorola)
15447 need_lib_prefix=no
15448 need_version=no
15449 shlibpath_overrides_runpath=no
15450 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15451 ;;
15452 esac
15453 ;;
15454
15455 sysv4*MP*)
15456 if test -d /usr/nec ;then
15457 version_type=linux
15458 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15459 soname_spec='$libname${shared_ext}.$major'
15460 shlibpath_var=LD_LIBRARY_PATH
15461 fi
15462 ;;
15463
15464 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15465 version_type=freebsd-elf
15466 need_lib_prefix=no
15467 need_version=no
15468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15469 soname_spec='${libname}${release}${shared_ext}$major'
15470 shlibpath_var=LD_LIBRARY_PATH
15471 shlibpath_overrides_runpath=yes
15472 hardcode_into_libs=yes
15473 if test "$with_gnu_ld" = yes; then
15474 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15475 else
15476 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15477 case $host_os in
15478 sco3.2v5*)
15479 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15480 ;;
15481 esac
15482 fi
15483 sys_lib_dlsearch_path_spec='/usr/lib'
15484 ;;
15485
15486 tpf*)
15487 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15488 version_type=linux
15489 need_lib_prefix=no
15490 need_version=no
15491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15492 shlibpath_var=LD_LIBRARY_PATH
15493 shlibpath_overrides_runpath=no
15494 hardcode_into_libs=yes
15495 ;;
15496
15497 uts4*)
15498 version_type=linux
15499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15500 soname_spec='${libname}${release}${shared_ext}$major'
15501 shlibpath_var=LD_LIBRARY_PATH
15502 ;;
15503
15504 *)
15505 dynamic_linker=no
15506 ;;
15507 esac
15508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15509 $as_echo "$dynamic_linker" >&6; }
15510 test "$dynamic_linker" = no && can_build_shared=no
15511
15512 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15513 if test "$GCC" = yes; then
15514 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15515 fi
15516
15517 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15518 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15519 fi
15520 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15521 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15522 fi
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15562 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15563 hardcode_action_FC=
15564 if test -n "$hardcode_libdir_flag_spec_FC" ||
15565 test -n "$runpath_var_FC" ||
15566 test "X$hardcode_automatic_FC" = "Xyes" ; then
15567
15568 # We can hardcode non-existent directories.
15569 if test "$hardcode_direct_FC" != no &&
15570 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15571 # have to relink, otherwise we might link with an installed library
15572 # when we should be linking with a yet-to-be-installed one
15573 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
15574 test "$hardcode_minus_L_FC" != no; then
15575 # Linking always hardcodes the temporary library directory.
15576 hardcode_action_FC=relink
15577 else
15578 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15579 hardcode_action_FC=immediate
15580 fi
15581 else
15582 # We cannot hardcode anything, or else we can only hardcode existing
15583 # directories.
15584 hardcode_action_FC=unsupported
15585 fi
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
15587 $as_echo "$hardcode_action_FC" >&6; }
15588
15589 if test "$hardcode_action_FC" = relink ||
15590 test "$inherit_rpath_FC" = yes; then
15591 # Fast installation is not supported
15592 enable_fast_install=no
15593 elif test "$shlibpath_overrides_runpath" = yes ||
15594 test "$enable_shared" = no; then
15595 # Fast installation is not necessary
15596 enable_fast_install=needless
15597 fi
15598
15599
15600
15601
15602
15603
15604
15605 fi # test -n "$compiler"
15606
15607 GCC=$lt_save_GCC
15608 CC="$lt_save_CC"
15609 fi # test "$_lt_disable_FC" != yes
15610
15611 ac_ext=c
15612 ac_cpp='$CPP $CPPFLAGS'
15613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15616
15617
15618
15619 # extra LD Flags which are required for targets
15620 case "${host}" in
15621 *-darwin*)
15622 # Darwin needs -single_module when linking libgfortran
15623 extra_ldflags_libgfortran=-Wl,-single_module
15624 ;;
15625 esac
15626
15627
15628 # We need a working compiler at that point, otherwise give a clear
15629 # error message and bail out.
15630
15631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GNU Fortran compiler is working" >&5
15632 $as_echo_n "checking whether the GNU Fortran compiler is working... " >&6; }
15633 ac_ext=${ac_fc_srcext-f}
15634 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
15635 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
15636 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
15637
15638 cat > conftest.$ac_ext <<_ACEOF
15639
15640 program foo
15641 real, parameter :: bar = sin (12.34 / 2.5)
15642 end program foo
15643 _ACEOF
15644 if ac_fn_fc_try_compile "$LINENO"; then :
15645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15646 $as_echo "yes" >&6; }
15647 else
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15649 $as_echo "no" >&6; }
15650 as_fn_error "GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla, attaching $PWD/config.log" "$LINENO" 5
15651
15652 fi
15653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15654 ac_ext=c
15655 ac_cpp='$CPP $CPPFLAGS'
15656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15659
15660
15661
15662 # Check whether --enable-largefile was given.
15663 if test "${enable_largefile+set}" = set; then :
15664 enableval=$enable_largefile;
15665 fi
15666
15667 if test "$enable_largefile" != no; then
15668
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15670 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15671 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
15672 $as_echo_n "(cached) " >&6
15673 else
15674 ac_cv_sys_largefile_CC=no
15675 if test "$GCC" != yes; then
15676 ac_save_CC=$CC
15677 while :; do
15678 # IRIX 6.2 and later do not support large files by default,
15679 # so use the C compiler's -n32 option if that helps.
15680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15681 /* end confdefs.h. */
15682 #include <sys/types.h>
15683 /* Check that off_t can represent 2**63 - 1 correctly.
15684 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15685 since some C++ compilers masquerading as C compilers
15686 incorrectly reject 9223372036854775807. */
15687 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15688 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15689 && LARGE_OFF_T % 2147483647 == 1)
15690 ? 1 : -1];
15691 int
15692 main ()
15693 {
15694
15695 ;
15696 return 0;
15697 }
15698 _ACEOF
15699 if ac_fn_c_try_compile "$LINENO"; then :
15700 break
15701 fi
15702 rm -f core conftest.err conftest.$ac_objext
15703 CC="$CC -n32"
15704 if ac_fn_c_try_compile "$LINENO"; then :
15705 ac_cv_sys_largefile_CC=' -n32'; break
15706 fi
15707 rm -f core conftest.err conftest.$ac_objext
15708 break
15709 done
15710 CC=$ac_save_CC
15711 rm -f conftest.$ac_ext
15712 fi
15713 fi
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15715 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15716 if test "$ac_cv_sys_largefile_CC" != no; then
15717 CC=$CC$ac_cv_sys_largefile_CC
15718 fi
15719
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15721 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15722 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
15723 $as_echo_n "(cached) " >&6
15724 else
15725 while :; do
15726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15727 /* end confdefs.h. */
15728 #include <sys/types.h>
15729 /* Check that off_t can represent 2**63 - 1 correctly.
15730 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15731 since some C++ compilers masquerading as C compilers
15732 incorrectly reject 9223372036854775807. */
15733 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15734 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15735 && LARGE_OFF_T % 2147483647 == 1)
15736 ? 1 : -1];
15737 int
15738 main ()
15739 {
15740
15741 ;
15742 return 0;
15743 }
15744 _ACEOF
15745 if ac_fn_c_try_compile "$LINENO"; then :
15746 ac_cv_sys_file_offset_bits=no; break
15747 fi
15748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15750 /* end confdefs.h. */
15751 #define _FILE_OFFSET_BITS 64
15752 #include <sys/types.h>
15753 /* Check that off_t can represent 2**63 - 1 correctly.
15754 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15755 since some C++ compilers masquerading as C compilers
15756 incorrectly reject 9223372036854775807. */
15757 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15758 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15759 && LARGE_OFF_T % 2147483647 == 1)
15760 ? 1 : -1];
15761 int
15762 main ()
15763 {
15764
15765 ;
15766 return 0;
15767 }
15768 _ACEOF
15769 if ac_fn_c_try_compile "$LINENO"; then :
15770 ac_cv_sys_file_offset_bits=64; break
15771 fi
15772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15773 ac_cv_sys_file_offset_bits=unknown
15774 break
15775 done
15776 fi
15777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15778 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15779 case $ac_cv_sys_file_offset_bits in #(
15780 no | unknown) ;;
15781 *)
15782 cat >>confdefs.h <<_ACEOF
15783 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15784 _ACEOF
15785 ;;
15786 esac
15787 rm -rf conftest*
15788 if test $ac_cv_sys_file_offset_bits = unknown; then
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15790 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15791 if test "${ac_cv_sys_large_files+set}" = set; then :
15792 $as_echo_n "(cached) " >&6
15793 else
15794 while :; do
15795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15796 /* end confdefs.h. */
15797 #include <sys/types.h>
15798 /* Check that off_t can represent 2**63 - 1 correctly.
15799 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15800 since some C++ compilers masquerading as C compilers
15801 incorrectly reject 9223372036854775807. */
15802 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15803 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15804 && LARGE_OFF_T % 2147483647 == 1)
15805 ? 1 : -1];
15806 int
15807 main ()
15808 {
15809
15810 ;
15811 return 0;
15812 }
15813 _ACEOF
15814 if ac_fn_c_try_compile "$LINENO"; then :
15815 ac_cv_sys_large_files=no; break
15816 fi
15817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15819 /* end confdefs.h. */
15820 #define _LARGE_FILES 1
15821 #include <sys/types.h>
15822 /* Check that off_t can represent 2**63 - 1 correctly.
15823 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15824 since some C++ compilers masquerading as C compilers
15825 incorrectly reject 9223372036854775807. */
15826 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15827 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15828 && LARGE_OFF_T % 2147483647 == 1)
15829 ? 1 : -1];
15830 int
15831 main ()
15832 {
15833
15834 ;
15835 return 0;
15836 }
15837 _ACEOF
15838 if ac_fn_c_try_compile "$LINENO"; then :
15839 ac_cv_sys_large_files=1; break
15840 fi
15841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15842 ac_cv_sys_large_files=unknown
15843 break
15844 done
15845 fi
15846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15847 $as_echo "$ac_cv_sys_large_files" >&6; }
15848 case $ac_cv_sys_large_files in #(
15849 no | unknown) ;;
15850 *)
15851 cat >>confdefs.h <<_ACEOF
15852 #define _LARGE_FILES $ac_cv_sys_large_files
15853 _ACEOF
15854 ;;
15855 esac
15856 rm -rf conftest*
15857 fi
15858 fi
15859
15860
15861 # Types
15862 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15863 if test "x$ac_cv_type_off_t" = x""yes; then :
15864
15865 else
15866
15867 cat >>confdefs.h <<_ACEOF
15868 #define off_t long int
15869 _ACEOF
15870
15871 fi
15872
15873
15874 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
15875 if test "x$ac_cv_type_intptr_t" = x""yes; then :
15876
15877 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
15878
15879 else
15880 for ac_type in 'int' 'long int' 'long long int'; do
15881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15882 /* end confdefs.h. */
15883 $ac_includes_default
15884 int
15885 main ()
15886 {
15887 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
15888 test_array [0] = 0
15889
15890 ;
15891 return 0;
15892 }
15893 _ACEOF
15894 if ac_fn_c_try_compile "$LINENO"; then :
15895
15896 cat >>confdefs.h <<_ACEOF
15897 #define intptr_t $ac_type
15898 _ACEOF
15899
15900 ac_type=
15901 fi
15902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15903 test -z "$ac_type" && break
15904 done
15905 fi
15906
15907
15908
15909 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
15910 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15911
15912 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
15913
15914 else
15915 for ac_type in 'unsigned int' 'unsigned long int' \
15916 'unsigned long long int'; do
15917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15918 /* end confdefs.h. */
15919 $ac_includes_default
15920 int
15921 main ()
15922 {
15923 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
15924 test_array [0] = 0
15925
15926 ;
15927 return 0;
15928 }
15929 _ACEOF
15930 if ac_fn_c_try_compile "$LINENO"; then :
15931
15932 cat >>confdefs.h <<_ACEOF
15933 #define uintptr_t $ac_type
15934 _ACEOF
15935
15936 ac_type=
15937 fi
15938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15939 test -z "$ac_type" && break
15940 done
15941 fi
15942
15943
15944 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
15945 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
15946
15947 cat >>confdefs.h <<_ACEOF
15948 #define HAVE_PTRDIFF_T 1
15949 _ACEOF
15950
15951
15952 fi
15953
15954
15955 # check header files (we assume C89 is available, so don't check for that)
15956
15957
15958
15959 for ac_header in $ac_header_list
15960 do :
15961 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15962 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15963 "
15964 eval as_val=\$$as_ac_Header
15965 if test "x$as_val" = x""yes; then :
15966 cat >>confdefs.h <<_ACEOF
15967 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15968 _ACEOF
15969
15970 fi
15971
15972 done
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
16005
16006 acx_cv_header_stdint=stddef.h
16007 acx_cv_header_stdint_kind="(already complete)"
16008 for i in stdint.h $inttype_headers; do
16009 unset ac_cv_type_uintptr_t
16010 unset ac_cv_type_uintmax_t
16011 unset ac_cv_type_int_least32_t
16012 unset ac_cv_type_int_fast32_t
16013 unset ac_cv_type_uint64_t
16014 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
16015 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
16016 #include <$i>
16017 "
16018 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
16019 acx_cv_header_stdint=$i
16020 else
16021 continue
16022 fi
16023
16024 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16025 #include <$i>
16026 "
16027 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
16028
16029 else
16030 acx_cv_header_stdint_kind="(mostly complete)"
16031 fi
16032
16033 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
16034 #include <$i>
16035 "
16036 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
16037
16038 else
16039 acx_cv_header_stdint_kind="(mostly complete)"
16040 fi
16041
16042 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
16043 #include <$i>
16044 "
16045 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
16046
16047 else
16048 acx_cv_header_stdint_kind="(mostly complete)"
16049 fi
16050
16051 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16052 #include <$i>
16053 "
16054 if test "x$ac_cv_type_uint64_t" = x""yes; then :
16055
16056 else
16057 acx_cv_header_stdint_kind="(lacks uint64_t)"
16058 fi
16059
16060 break
16061 done
16062 if test "$acx_cv_header_stdint" = stddef.h; then
16063 acx_cv_header_stdint_kind="(lacks uintmax_t)"
16064 for i in stdint.h $inttype_headers; do
16065 unset ac_cv_type_uintptr_t
16066 unset ac_cv_type_uint32_t
16067 unset ac_cv_type_uint64_t
16068 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
16069 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
16070 #include <$i>
16071 "
16072 if test "x$ac_cv_type_uint32_t" = x""yes; then :
16073 acx_cv_header_stdint=$i
16074 else
16075 continue
16076 fi
16077
16078 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16079 #include <$i>
16080 "
16081 if test "x$ac_cv_type_uint64_t" = x""yes; then :
16082
16083 fi
16084
16085 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16086 #include <$i>
16087 "
16088 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
16089
16090 fi
16091
16092 break
16093 done
16094 fi
16095 if test "$acx_cv_header_stdint" = stddef.h; then
16096 acx_cv_header_stdint_kind="(u_intXX_t style)"
16097 for i in sys/types.h $inttype_headers; do
16098 unset ac_cv_type_u_int32_t
16099 unset ac_cv_type_u_int64_t
16100 $as_echo_n "looking for u_intXX_t types in $i, " >&6
16101 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
16102 #include <$i>
16103 "
16104 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
16105 acx_cv_header_stdint=$i
16106 else
16107 continue
16108 fi
16109
16110 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
16111 #include <$i>
16112 "
16113 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
16114
16115 fi
16116
16117 break
16118 done
16119 fi
16120 if test "$acx_cv_header_stdint" = stddef.h; then
16121 acx_cv_header_stdint_kind="(using manual detection)"
16122 fi
16123
16124 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
16125 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
16126 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
16127 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
16128 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
16129
16130 # ----------------- Summarize what we found so far
16131
16132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
16133 $as_echo_n "checking what to include in gstdint.h... " >&6; }
16134
16135 case `$as_basename -- gstdint.h ||
16136 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
16137 Xgstdint.h : 'X\(//\)$' \| \
16138 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
16139 $as_echo X/gstdint.h |
16140 sed '/^.*\/\([^/][^/]*\)\/*$/{
16141 s//\1/
16142 q
16143 }
16144 /^X\/\(\/\/\)$/{
16145 s//\1/
16146 q
16147 }
16148 /^X\/\(\/\).*/{
16149 s//\1/
16150 q
16151 }
16152 s/.*/./; q'` in
16153 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16154 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16155 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16156 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16157 *) ;;
16158 esac
16159
16160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
16161 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
16162
16163 # ----------------- done included file, check C basic types --------
16164
16165 # Lacking an uintptr_t? Test size of void *
16166 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
16167 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
16168 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16169 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16170 # This bug is HP SR number 8606223364.
16171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16172 $as_echo_n "checking size of void *... " >&6; }
16173 if test "${ac_cv_sizeof_void_p+set}" = set; then :
16174 $as_echo_n "(cached) " >&6
16175 else
16176 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
16177
16178 else
16179 if test "$ac_cv_type_void_p" = yes; then
16180 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16182 { as_fn_set_status 77
16183 as_fn_error "cannot compute sizeof (void *)
16184 See \`config.log' for more details." "$LINENO" 5; }; }
16185 else
16186 ac_cv_sizeof_void_p=0
16187 fi
16188 fi
16189
16190 fi
16191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16192 $as_echo "$ac_cv_sizeof_void_p" >&6; }
16193
16194
16195
16196 cat >>confdefs.h <<_ACEOF
16197 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16198 _ACEOF
16199
16200 ;;
16201 esac
16202
16203 # Lacking an uint64_t? Test size of long
16204 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
16205 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
16206 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16207 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16208 # This bug is HP SR number 8606223364.
16209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16210 $as_echo_n "checking size of long... " >&6; }
16211 if test "${ac_cv_sizeof_long+set}" = set; then :
16212 $as_echo_n "(cached) " >&6
16213 else
16214 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16215
16216 else
16217 if test "$ac_cv_type_long" = yes; then
16218 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16220 { as_fn_set_status 77
16221 as_fn_error "cannot compute sizeof (long)
16222 See \`config.log' for more details." "$LINENO" 5; }; }
16223 else
16224 ac_cv_sizeof_long=0
16225 fi
16226 fi
16227
16228 fi
16229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16230 $as_echo "$ac_cv_sizeof_long" >&6; }
16231
16232
16233
16234 cat >>confdefs.h <<_ACEOF
16235 #define SIZEOF_LONG $ac_cv_sizeof_long
16236 _ACEOF
16237
16238 ;;
16239 esac
16240
16241 if test $acx_cv_header_stdint = stddef.h; then
16242 # Lacking a good header? Test size of everything and deduce all types.
16243 # The cast to long int works around a bug in the HP C Compiler
16244 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16245 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16246 # This bug is HP SR number 8606223364.
16247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16248 $as_echo_n "checking size of int... " >&6; }
16249 if test "${ac_cv_sizeof_int+set}" = set; then :
16250 $as_echo_n "(cached) " >&6
16251 else
16252 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
16253
16254 else
16255 if test "$ac_cv_type_int" = yes; then
16256 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16258 { as_fn_set_status 77
16259 as_fn_error "cannot compute sizeof (int)
16260 See \`config.log' for more details." "$LINENO" 5; }; }
16261 else
16262 ac_cv_sizeof_int=0
16263 fi
16264 fi
16265
16266 fi
16267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16268 $as_echo "$ac_cv_sizeof_int" >&6; }
16269
16270
16271
16272 cat >>confdefs.h <<_ACEOF
16273 #define SIZEOF_INT $ac_cv_sizeof_int
16274 _ACEOF
16275
16276
16277 # The cast to long int works around a bug in the HP C Compiler
16278 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16279 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16280 # This bug is HP SR number 8606223364.
16281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16282 $as_echo_n "checking size of short... " >&6; }
16283 if test "${ac_cv_sizeof_short+set}" = set; then :
16284 $as_echo_n "(cached) " >&6
16285 else
16286 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
16287
16288 else
16289 if test "$ac_cv_type_short" = yes; then
16290 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16292 { as_fn_set_status 77
16293 as_fn_error "cannot compute sizeof (short)
16294 See \`config.log' for more details." "$LINENO" 5; }; }
16295 else
16296 ac_cv_sizeof_short=0
16297 fi
16298 fi
16299
16300 fi
16301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16302 $as_echo "$ac_cv_sizeof_short" >&6; }
16303
16304
16305
16306 cat >>confdefs.h <<_ACEOF
16307 #define SIZEOF_SHORT $ac_cv_sizeof_short
16308 _ACEOF
16309
16310
16311 # The cast to long int works around a bug in the HP C Compiler
16312 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16313 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16314 # This bug is HP SR number 8606223364.
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16316 $as_echo_n "checking size of char... " >&6; }
16317 if test "${ac_cv_sizeof_char+set}" = set; then :
16318 $as_echo_n "(cached) " >&6
16319 else
16320 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
16321
16322 else
16323 if test "$ac_cv_type_char" = yes; then
16324 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16325 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16326 { as_fn_set_status 77
16327 as_fn_error "cannot compute sizeof (char)
16328 See \`config.log' for more details." "$LINENO" 5; }; }
16329 else
16330 ac_cv_sizeof_char=0
16331 fi
16332 fi
16333
16334 fi
16335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16336 $as_echo "$ac_cv_sizeof_char" >&6; }
16337
16338
16339
16340 cat >>confdefs.h <<_ACEOF
16341 #define SIZEOF_CHAR $ac_cv_sizeof_char
16342 _ACEOF
16343
16344
16345
16346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
16347 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
16348 case "$ac_cv_sizeof_char" in
16349 1) acx_cv_type_int8_t=char ;;
16350 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
16351 esac
16352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
16353 $as_echo "$acx_cv_type_int8_t" >&6; }
16354
16355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
16356 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
16357 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16358 2:*) acx_cv_type_int16_t=int ;;
16359 *:2) acx_cv_type_int16_t=short ;;
16360 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
16361 esac
16362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16363 $as_echo "$acx_cv_type_int16_t" >&6; }
16364
16365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16366 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
16367 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16368 4:*) acx_cv_type_int32_t=int ;;
16369 *:4) acx_cv_type_int32_t=long ;;
16370 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
16371 esac
16372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16373 $as_echo "$acx_cv_type_int32_t" >&6; }
16374 fi
16375
16376 # These tests are here to make the output prettier
16377
16378 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16379 case "$ac_cv_sizeof_long" in
16380 8) acx_cv_type_int64_t=long ;;
16381 esac
16382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16383 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
16384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16385 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16386 fi
16387
16388 # Now we can use the above types
16389
16390 if test "$ac_cv_type_uintptr_t" != yes; then
16391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16392 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16393 case $ac_cv_sizeof_void_p in
16394 2) acx_cv_type_intptr_t=int16_t ;;
16395 4) acx_cv_type_intptr_t=int32_t ;;
16396 8) acx_cv_type_intptr_t=int64_t ;;
16397 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
16398 esac
16399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16400 $as_echo "$acx_cv_type_intptr_t" >&6; }
16401 fi
16402
16403 # ----------------- done all checks, emit header -------------
16404 ac_config_commands="$ac_config_commands gstdint.h"
16405
16406
16407
16408
16409 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
16410 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
16411
16412 cat >>confdefs.h <<_ACEOF
16413 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
16414 _ACEOF
16415
16416
16417 fi
16418 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
16419 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
16420
16421 cat >>confdefs.h <<_ACEOF
16422 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
16423 _ACEOF
16424
16425
16426 fi
16427 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
16428 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
16429
16430 cat >>confdefs.h <<_ACEOF
16431 #define HAVE_STRUCT_STAT_ST_RDEV 1
16432 _ACEOF
16433
16434
16435 fi
16436
16437
16438 # Check for library functions.
16439
16440
16441
16442 for ac_func in $ac_func_list
16443 do :
16444 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16445 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16446 eval as_val=\$$as_ac_var
16447 if test "x$as_val" = x""yes; then :
16448 cat >>confdefs.h <<_ACEOF
16449 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16450 _ACEOF
16451
16452 fi
16453 done
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
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559 # Check strerror_r, cannot be above as versions with two and three arguments exist
16560
16561 ac_save_CFLAGS="$CFLAGS"
16562 CFLAGS="-Wimplicit-function-declaration -Werror"
16563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16564 /* end confdefs.h. */
16565 #define _GNU_SOURCE 1
16566 #include <string.h>
16567 #include <locale.h>
16568 int
16569 main ()
16570 {
16571 char s[128]; strerror_r(5, s, 128);
16572 ;
16573 return 0;
16574 }
16575 _ACEOF
16576 if ac_fn_c_try_compile "$LINENO"; then :
16577
16578 $as_echo "#define HAVE_STRERROR_R 1" >>confdefs.h
16579
16580 fi
16581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16582 CFLAGS="$ac_save_CFLAGS"
16583
16584 ac_save_CFLAGS="$CFLAGS"
16585 CFLAGS="-Wimplicit-function-declaration -Werror"
16586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16587 /* end confdefs.h. */
16588 #define _GNU_SOURCE 1
16589 #include <string.h>
16590 #include <locale.h>
16591 int
16592 main ()
16593 {
16594 char s[128]; strerror_r(5, s);
16595 ;
16596 return 0;
16597 }
16598 _ACEOF
16599 if ac_fn_c_try_compile "$LINENO"; then :
16600
16601 $as_echo "#define HAVE_STRERROR_R_2ARGS 1" >>confdefs.h
16602
16603 fi
16604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16605 CFLAGS="$ac_save_CFLAGS"
16606
16607
16608 # Check for C99 (and other IEEE) math functions
16609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
16610 $as_echo_n "checking for sin in -lm... " >&6; }
16611 if test "${ac_cv_lib_m_sin+set}" = set; then :
16612 $as_echo_n "(cached) " >&6
16613 else
16614 ac_check_lib_save_LIBS=$LIBS
16615 LIBS="-lm $LIBS"
16616 if test x$gcc_no_link = xyes; then
16617 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16618 fi
16619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16620 /* end confdefs.h. */
16621
16622 /* Override any GCC internal prototype to avoid an error.
16623 Use char because int might match the return type of a GCC
16624 builtin and then its argument prototype would still apply. */
16625 #ifdef __cplusplus
16626 extern "C"
16627 #endif
16628 char sin ();
16629 int
16630 main ()
16631 {
16632 return sin ();
16633 ;
16634 return 0;
16635 }
16636 _ACEOF
16637 if ac_fn_c_try_link "$LINENO"; then :
16638 ac_cv_lib_m_sin=yes
16639 else
16640 ac_cv_lib_m_sin=no
16641 fi
16642 rm -f core conftest.err conftest.$ac_objext \
16643 conftest$ac_exeext conftest.$ac_ext
16644 LIBS=$ac_check_lib_save_LIBS
16645 fi
16646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
16647 $as_echo "$ac_cv_lib_m_sin" >&6; }
16648 if test "x$ac_cv_lib_m_sin" = x""yes; then :
16649 cat >>confdefs.h <<_ACEOF
16650 #define HAVE_LIBM 1
16651 _ACEOF
16652
16653 LIBS="-lm $LIBS"
16654
16655 fi
16656
16657
16658
16659
16660
16661
16662
16663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosf" >&5
16664 $as_echo_n "checking for acosf... " >&6; }
16665 if test "${gcc_cv_math_func_acosf+set}" = set; then :
16666 $as_echo_n "(cached) " >&6
16667 else
16668 if test x$gcc_no_link = xyes; then
16669 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16670 fi
16671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16672 /* end confdefs.h. */
16673
16674 #ifdef HAVE_COMPLEX_H
16675 #include <complex.h>
16676 #endif
16677 #ifdef HAVE_MATH_H
16678 #include <math.h>
16679 #endif
16680
16681 int (*ptr)() = (int (*)())acosf;
16682
16683 int
16684 main ()
16685 {
16686 return 0;
16687 }
16688
16689 _ACEOF
16690 if ac_fn_c_try_link "$LINENO"; then :
16691 gcc_cv_math_func_acosf=yes
16692 else
16693 gcc_cv_math_func_acosf=no
16694 fi
16695 rm -f core conftest.err conftest.$ac_objext \
16696 conftest$ac_exeext conftest.$ac_ext
16697 fi
16698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosf" >&5
16699 $as_echo "$gcc_cv_math_func_acosf" >&6; }
16700 if test $gcc_cv_math_func_acosf = yes; then
16701
16702 cat >>confdefs.h <<_ACEOF
16703 #define HAVE_ACOSF 1
16704 _ACEOF
16705
16706 fi
16707
16708
16709
16710
16711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acos" >&5
16712 $as_echo_n "checking for acos... " >&6; }
16713 if test "${gcc_cv_math_func_acos+set}" = set; then :
16714 $as_echo_n "(cached) " >&6
16715 else
16716 if test x$gcc_no_link = xyes; then
16717 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16718 fi
16719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16720 /* end confdefs.h. */
16721
16722 #ifdef HAVE_COMPLEX_H
16723 #include <complex.h>
16724 #endif
16725 #ifdef HAVE_MATH_H
16726 #include <math.h>
16727 #endif
16728
16729 int (*ptr)() = (int (*)())acos;
16730
16731 int
16732 main ()
16733 {
16734 return 0;
16735 }
16736
16737 _ACEOF
16738 if ac_fn_c_try_link "$LINENO"; then :
16739 gcc_cv_math_func_acos=yes
16740 else
16741 gcc_cv_math_func_acos=no
16742 fi
16743 rm -f core conftest.err conftest.$ac_objext \
16744 conftest$ac_exeext conftest.$ac_ext
16745 fi
16746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acos" >&5
16747 $as_echo "$gcc_cv_math_func_acos" >&6; }
16748 if test $gcc_cv_math_func_acos = yes; then
16749
16750 cat >>confdefs.h <<_ACEOF
16751 #define HAVE_ACOS 1
16752 _ACEOF
16753
16754 fi
16755
16756
16757
16758
16759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosl" >&5
16760 $as_echo_n "checking for acosl... " >&6; }
16761 if test "${gcc_cv_math_func_acosl+set}" = set; then :
16762 $as_echo_n "(cached) " >&6
16763 else
16764 if test x$gcc_no_link = xyes; then
16765 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16766 fi
16767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16768 /* end confdefs.h. */
16769
16770 #ifdef HAVE_COMPLEX_H
16771 #include <complex.h>
16772 #endif
16773 #ifdef HAVE_MATH_H
16774 #include <math.h>
16775 #endif
16776
16777 int (*ptr)() = (int (*)())acosl;
16778
16779 int
16780 main ()
16781 {
16782 return 0;
16783 }
16784
16785 _ACEOF
16786 if ac_fn_c_try_link "$LINENO"; then :
16787 gcc_cv_math_func_acosl=yes
16788 else
16789 gcc_cv_math_func_acosl=no
16790 fi
16791 rm -f core conftest.err conftest.$ac_objext \
16792 conftest$ac_exeext conftest.$ac_ext
16793 fi
16794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosl" >&5
16795 $as_echo "$gcc_cv_math_func_acosl" >&6; }
16796 if test $gcc_cv_math_func_acosl = yes; then
16797
16798 cat >>confdefs.h <<_ACEOF
16799 #define HAVE_ACOSL 1
16800 _ACEOF
16801
16802 fi
16803
16804
16805
16806
16807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshf" >&5
16808 $as_echo_n "checking for acoshf... " >&6; }
16809 if test "${gcc_cv_math_func_acoshf+set}" = set; then :
16810 $as_echo_n "(cached) " >&6
16811 else
16812 if test x$gcc_no_link = xyes; then
16813 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16814 fi
16815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16816 /* end confdefs.h. */
16817
16818 #ifdef HAVE_COMPLEX_H
16819 #include <complex.h>
16820 #endif
16821 #ifdef HAVE_MATH_H
16822 #include <math.h>
16823 #endif
16824
16825 int (*ptr)() = (int (*)())acoshf;
16826
16827 int
16828 main ()
16829 {
16830 return 0;
16831 }
16832
16833 _ACEOF
16834 if ac_fn_c_try_link "$LINENO"; then :
16835 gcc_cv_math_func_acoshf=yes
16836 else
16837 gcc_cv_math_func_acoshf=no
16838 fi
16839 rm -f core conftest.err conftest.$ac_objext \
16840 conftest$ac_exeext conftest.$ac_ext
16841 fi
16842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshf" >&5
16843 $as_echo "$gcc_cv_math_func_acoshf" >&6; }
16844 if test $gcc_cv_math_func_acoshf = yes; then
16845
16846 cat >>confdefs.h <<_ACEOF
16847 #define HAVE_ACOSHF 1
16848 _ACEOF
16849
16850 fi
16851
16852
16853
16854
16855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosh" >&5
16856 $as_echo_n "checking for acosh... " >&6; }
16857 if test "${gcc_cv_math_func_acosh+set}" = set; then :
16858 $as_echo_n "(cached) " >&6
16859 else
16860 if test x$gcc_no_link = xyes; then
16861 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16862 fi
16863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16864 /* end confdefs.h. */
16865
16866 #ifdef HAVE_COMPLEX_H
16867 #include <complex.h>
16868 #endif
16869 #ifdef HAVE_MATH_H
16870 #include <math.h>
16871 #endif
16872
16873 int (*ptr)() = (int (*)())acosh;
16874
16875 int
16876 main ()
16877 {
16878 return 0;
16879 }
16880
16881 _ACEOF
16882 if ac_fn_c_try_link "$LINENO"; then :
16883 gcc_cv_math_func_acosh=yes
16884 else
16885 gcc_cv_math_func_acosh=no
16886 fi
16887 rm -f core conftest.err conftest.$ac_objext \
16888 conftest$ac_exeext conftest.$ac_ext
16889 fi
16890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosh" >&5
16891 $as_echo "$gcc_cv_math_func_acosh" >&6; }
16892 if test $gcc_cv_math_func_acosh = yes; then
16893
16894 cat >>confdefs.h <<_ACEOF
16895 #define HAVE_ACOSH 1
16896 _ACEOF
16897
16898 fi
16899
16900
16901
16902
16903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshl" >&5
16904 $as_echo_n "checking for acoshl... " >&6; }
16905 if test "${gcc_cv_math_func_acoshl+set}" = set; then :
16906 $as_echo_n "(cached) " >&6
16907 else
16908 if test x$gcc_no_link = xyes; then
16909 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16910 fi
16911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16912 /* end confdefs.h. */
16913
16914 #ifdef HAVE_COMPLEX_H
16915 #include <complex.h>
16916 #endif
16917 #ifdef HAVE_MATH_H
16918 #include <math.h>
16919 #endif
16920
16921 int (*ptr)() = (int (*)())acoshl;
16922
16923 int
16924 main ()
16925 {
16926 return 0;
16927 }
16928
16929 _ACEOF
16930 if ac_fn_c_try_link "$LINENO"; then :
16931 gcc_cv_math_func_acoshl=yes
16932 else
16933 gcc_cv_math_func_acoshl=no
16934 fi
16935 rm -f core conftest.err conftest.$ac_objext \
16936 conftest$ac_exeext conftest.$ac_ext
16937 fi
16938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshl" >&5
16939 $as_echo "$gcc_cv_math_func_acoshl" >&6; }
16940 if test $gcc_cv_math_func_acoshl = yes; then
16941
16942 cat >>confdefs.h <<_ACEOF
16943 #define HAVE_ACOSHL 1
16944 _ACEOF
16945
16946 fi
16947
16948
16949
16950
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinf" >&5
16952 $as_echo_n "checking for asinf... " >&6; }
16953 if test "${gcc_cv_math_func_asinf+set}" = set; then :
16954 $as_echo_n "(cached) " >&6
16955 else
16956 if test x$gcc_no_link = xyes; then
16957 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16958 fi
16959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16960 /* end confdefs.h. */
16961
16962 #ifdef HAVE_COMPLEX_H
16963 #include <complex.h>
16964 #endif
16965 #ifdef HAVE_MATH_H
16966 #include <math.h>
16967 #endif
16968
16969 int (*ptr)() = (int (*)())asinf;
16970
16971 int
16972 main ()
16973 {
16974 return 0;
16975 }
16976
16977 _ACEOF
16978 if ac_fn_c_try_link "$LINENO"; then :
16979 gcc_cv_math_func_asinf=yes
16980 else
16981 gcc_cv_math_func_asinf=no
16982 fi
16983 rm -f core conftest.err conftest.$ac_objext \
16984 conftest$ac_exeext conftest.$ac_ext
16985 fi
16986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinf" >&5
16987 $as_echo "$gcc_cv_math_func_asinf" >&6; }
16988 if test $gcc_cv_math_func_asinf = yes; then
16989
16990 cat >>confdefs.h <<_ACEOF
16991 #define HAVE_ASINF 1
16992 _ACEOF
16993
16994 fi
16995
16996
16997
16998
16999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin" >&5
17000 $as_echo_n "checking for asin... " >&6; }
17001 if test "${gcc_cv_math_func_asin+set}" = set; then :
17002 $as_echo_n "(cached) " >&6
17003 else
17004 if test x$gcc_no_link = xyes; then
17005 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17006 fi
17007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17008 /* end confdefs.h. */
17009
17010 #ifdef HAVE_COMPLEX_H
17011 #include <complex.h>
17012 #endif
17013 #ifdef HAVE_MATH_H
17014 #include <math.h>
17015 #endif
17016
17017 int (*ptr)() = (int (*)())asin;
17018
17019 int
17020 main ()
17021 {
17022 return 0;
17023 }
17024
17025 _ACEOF
17026 if ac_fn_c_try_link "$LINENO"; then :
17027 gcc_cv_math_func_asin=yes
17028 else
17029 gcc_cv_math_func_asin=no
17030 fi
17031 rm -f core conftest.err conftest.$ac_objext \
17032 conftest$ac_exeext conftest.$ac_ext
17033 fi
17034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asin" >&5
17035 $as_echo "$gcc_cv_math_func_asin" >&6; }
17036 if test $gcc_cv_math_func_asin = yes; then
17037
17038 cat >>confdefs.h <<_ACEOF
17039 #define HAVE_ASIN 1
17040 _ACEOF
17041
17042 fi
17043
17044
17045
17046
17047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinl" >&5
17048 $as_echo_n "checking for asinl... " >&6; }
17049 if test "${gcc_cv_math_func_asinl+set}" = set; then :
17050 $as_echo_n "(cached) " >&6
17051 else
17052 if test x$gcc_no_link = xyes; then
17053 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17054 fi
17055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17056 /* end confdefs.h. */
17057
17058 #ifdef HAVE_COMPLEX_H
17059 #include <complex.h>
17060 #endif
17061 #ifdef HAVE_MATH_H
17062 #include <math.h>
17063 #endif
17064
17065 int (*ptr)() = (int (*)())asinl;
17066
17067 int
17068 main ()
17069 {
17070 return 0;
17071 }
17072
17073 _ACEOF
17074 if ac_fn_c_try_link "$LINENO"; then :
17075 gcc_cv_math_func_asinl=yes
17076 else
17077 gcc_cv_math_func_asinl=no
17078 fi
17079 rm -f core conftest.err conftest.$ac_objext \
17080 conftest$ac_exeext conftest.$ac_ext
17081 fi
17082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinl" >&5
17083 $as_echo "$gcc_cv_math_func_asinl" >&6; }
17084 if test $gcc_cv_math_func_asinl = yes; then
17085
17086 cat >>confdefs.h <<_ACEOF
17087 #define HAVE_ASINL 1
17088 _ACEOF
17089
17090 fi
17091
17092
17093
17094
17095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhf" >&5
17096 $as_echo_n "checking for asinhf... " >&6; }
17097 if test "${gcc_cv_math_func_asinhf+set}" = set; then :
17098 $as_echo_n "(cached) " >&6
17099 else
17100 if test x$gcc_no_link = xyes; then
17101 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17102 fi
17103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17104 /* end confdefs.h. */
17105
17106 #ifdef HAVE_COMPLEX_H
17107 #include <complex.h>
17108 #endif
17109 #ifdef HAVE_MATH_H
17110 #include <math.h>
17111 #endif
17112
17113 int (*ptr)() = (int (*)())asinhf;
17114
17115 int
17116 main ()
17117 {
17118 return 0;
17119 }
17120
17121 _ACEOF
17122 if ac_fn_c_try_link "$LINENO"; then :
17123 gcc_cv_math_func_asinhf=yes
17124 else
17125 gcc_cv_math_func_asinhf=no
17126 fi
17127 rm -f core conftest.err conftest.$ac_objext \
17128 conftest$ac_exeext conftest.$ac_ext
17129 fi
17130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhf" >&5
17131 $as_echo "$gcc_cv_math_func_asinhf" >&6; }
17132 if test $gcc_cv_math_func_asinhf = yes; then
17133
17134 cat >>confdefs.h <<_ACEOF
17135 #define HAVE_ASINHF 1
17136 _ACEOF
17137
17138 fi
17139
17140
17141
17142
17143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinh" >&5
17144 $as_echo_n "checking for asinh... " >&6; }
17145 if test "${gcc_cv_math_func_asinh+set}" = set; then :
17146 $as_echo_n "(cached) " >&6
17147 else
17148 if test x$gcc_no_link = xyes; then
17149 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17150 fi
17151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17152 /* end confdefs.h. */
17153
17154 #ifdef HAVE_COMPLEX_H
17155 #include <complex.h>
17156 #endif
17157 #ifdef HAVE_MATH_H
17158 #include <math.h>
17159 #endif
17160
17161 int (*ptr)() = (int (*)())asinh;
17162
17163 int
17164 main ()
17165 {
17166 return 0;
17167 }
17168
17169 _ACEOF
17170 if ac_fn_c_try_link "$LINENO"; then :
17171 gcc_cv_math_func_asinh=yes
17172 else
17173 gcc_cv_math_func_asinh=no
17174 fi
17175 rm -f core conftest.err conftest.$ac_objext \
17176 conftest$ac_exeext conftest.$ac_ext
17177 fi
17178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinh" >&5
17179 $as_echo "$gcc_cv_math_func_asinh" >&6; }
17180 if test $gcc_cv_math_func_asinh = yes; then
17181
17182 cat >>confdefs.h <<_ACEOF
17183 #define HAVE_ASINH 1
17184 _ACEOF
17185
17186 fi
17187
17188
17189
17190
17191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhl" >&5
17192 $as_echo_n "checking for asinhl... " >&6; }
17193 if test "${gcc_cv_math_func_asinhl+set}" = set; then :
17194 $as_echo_n "(cached) " >&6
17195 else
17196 if test x$gcc_no_link = xyes; then
17197 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17198 fi
17199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17200 /* end confdefs.h. */
17201
17202 #ifdef HAVE_COMPLEX_H
17203 #include <complex.h>
17204 #endif
17205 #ifdef HAVE_MATH_H
17206 #include <math.h>
17207 #endif
17208
17209 int (*ptr)() = (int (*)())asinhl;
17210
17211 int
17212 main ()
17213 {
17214 return 0;
17215 }
17216
17217 _ACEOF
17218 if ac_fn_c_try_link "$LINENO"; then :
17219 gcc_cv_math_func_asinhl=yes
17220 else
17221 gcc_cv_math_func_asinhl=no
17222 fi
17223 rm -f core conftest.err conftest.$ac_objext \
17224 conftest$ac_exeext conftest.$ac_ext
17225 fi
17226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhl" >&5
17227 $as_echo "$gcc_cv_math_func_asinhl" >&6; }
17228 if test $gcc_cv_math_func_asinhl = yes; then
17229
17230 cat >>confdefs.h <<_ACEOF
17231 #define HAVE_ASINHL 1
17232 _ACEOF
17233
17234 fi
17235
17236
17237
17238
17239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f" >&5
17240 $as_echo_n "checking for atan2f... " >&6; }
17241 if test "${gcc_cv_math_func_atan2f+set}" = set; then :
17242 $as_echo_n "(cached) " >&6
17243 else
17244 if test x$gcc_no_link = xyes; then
17245 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17246 fi
17247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17248 /* end confdefs.h. */
17249
17250 #ifdef HAVE_COMPLEX_H
17251 #include <complex.h>
17252 #endif
17253 #ifdef HAVE_MATH_H
17254 #include <math.h>
17255 #endif
17256
17257 int (*ptr)() = (int (*)())atan2f;
17258
17259 int
17260 main ()
17261 {
17262 return 0;
17263 }
17264
17265 _ACEOF
17266 if ac_fn_c_try_link "$LINENO"; then :
17267 gcc_cv_math_func_atan2f=yes
17268 else
17269 gcc_cv_math_func_atan2f=no
17270 fi
17271 rm -f core conftest.err conftest.$ac_objext \
17272 conftest$ac_exeext conftest.$ac_ext
17273 fi
17274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2f" >&5
17275 $as_echo "$gcc_cv_math_func_atan2f" >&6; }
17276 if test $gcc_cv_math_func_atan2f = yes; then
17277
17278 cat >>confdefs.h <<_ACEOF
17279 #define HAVE_ATAN2F 1
17280 _ACEOF
17281
17282 fi
17283
17284
17285
17286
17287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2" >&5
17288 $as_echo_n "checking for atan2... " >&6; }
17289 if test "${gcc_cv_math_func_atan2+set}" = set; then :
17290 $as_echo_n "(cached) " >&6
17291 else
17292 if test x$gcc_no_link = xyes; then
17293 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17294 fi
17295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17296 /* end confdefs.h. */
17297
17298 #ifdef HAVE_COMPLEX_H
17299 #include <complex.h>
17300 #endif
17301 #ifdef HAVE_MATH_H
17302 #include <math.h>
17303 #endif
17304
17305 int (*ptr)() = (int (*)())atan2;
17306
17307 int
17308 main ()
17309 {
17310 return 0;
17311 }
17312
17313 _ACEOF
17314 if ac_fn_c_try_link "$LINENO"; then :
17315 gcc_cv_math_func_atan2=yes
17316 else
17317 gcc_cv_math_func_atan2=no
17318 fi
17319 rm -f core conftest.err conftest.$ac_objext \
17320 conftest$ac_exeext conftest.$ac_ext
17321 fi
17322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2" >&5
17323 $as_echo "$gcc_cv_math_func_atan2" >&6; }
17324 if test $gcc_cv_math_func_atan2 = yes; then
17325
17326 cat >>confdefs.h <<_ACEOF
17327 #define HAVE_ATAN2 1
17328 _ACEOF
17329
17330 fi
17331
17332
17333
17334
17335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l" >&5
17336 $as_echo_n "checking for atan2l... " >&6; }
17337 if test "${gcc_cv_math_func_atan2l+set}" = set; then :
17338 $as_echo_n "(cached) " >&6
17339 else
17340 if test x$gcc_no_link = xyes; then
17341 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17342 fi
17343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17344 /* end confdefs.h. */
17345
17346 #ifdef HAVE_COMPLEX_H
17347 #include <complex.h>
17348 #endif
17349 #ifdef HAVE_MATH_H
17350 #include <math.h>
17351 #endif
17352
17353 int (*ptr)() = (int (*)())atan2l;
17354
17355 int
17356 main ()
17357 {
17358 return 0;
17359 }
17360
17361 _ACEOF
17362 if ac_fn_c_try_link "$LINENO"; then :
17363 gcc_cv_math_func_atan2l=yes
17364 else
17365 gcc_cv_math_func_atan2l=no
17366 fi
17367 rm -f core conftest.err conftest.$ac_objext \
17368 conftest$ac_exeext conftest.$ac_ext
17369 fi
17370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2l" >&5
17371 $as_echo "$gcc_cv_math_func_atan2l" >&6; }
17372 if test $gcc_cv_math_func_atan2l = yes; then
17373
17374 cat >>confdefs.h <<_ACEOF
17375 #define HAVE_ATAN2L 1
17376 _ACEOF
17377
17378 fi
17379
17380
17381
17382
17383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanf" >&5
17384 $as_echo_n "checking for atanf... " >&6; }
17385 if test "${gcc_cv_math_func_atanf+set}" = set; then :
17386 $as_echo_n "(cached) " >&6
17387 else
17388 if test x$gcc_no_link = xyes; then
17389 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17390 fi
17391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17392 /* end confdefs.h. */
17393
17394 #ifdef HAVE_COMPLEX_H
17395 #include <complex.h>
17396 #endif
17397 #ifdef HAVE_MATH_H
17398 #include <math.h>
17399 #endif
17400
17401 int (*ptr)() = (int (*)())atanf;
17402
17403 int
17404 main ()
17405 {
17406 return 0;
17407 }
17408
17409 _ACEOF
17410 if ac_fn_c_try_link "$LINENO"; then :
17411 gcc_cv_math_func_atanf=yes
17412 else
17413 gcc_cv_math_func_atanf=no
17414 fi
17415 rm -f core conftest.err conftest.$ac_objext \
17416 conftest$ac_exeext conftest.$ac_ext
17417 fi
17418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanf" >&5
17419 $as_echo "$gcc_cv_math_func_atanf" >&6; }
17420 if test $gcc_cv_math_func_atanf = yes; then
17421
17422 cat >>confdefs.h <<_ACEOF
17423 #define HAVE_ATANF 1
17424 _ACEOF
17425
17426 fi
17427
17428
17429
17430
17431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan" >&5
17432 $as_echo_n "checking for atan... " >&6; }
17433 if test "${gcc_cv_math_func_atan+set}" = set; then :
17434 $as_echo_n "(cached) " >&6
17435 else
17436 if test x$gcc_no_link = xyes; then
17437 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17438 fi
17439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17440 /* end confdefs.h. */
17441
17442 #ifdef HAVE_COMPLEX_H
17443 #include <complex.h>
17444 #endif
17445 #ifdef HAVE_MATH_H
17446 #include <math.h>
17447 #endif
17448
17449 int (*ptr)() = (int (*)())atan;
17450
17451 int
17452 main ()
17453 {
17454 return 0;
17455 }
17456
17457 _ACEOF
17458 if ac_fn_c_try_link "$LINENO"; then :
17459 gcc_cv_math_func_atan=yes
17460 else
17461 gcc_cv_math_func_atan=no
17462 fi
17463 rm -f core conftest.err conftest.$ac_objext \
17464 conftest$ac_exeext conftest.$ac_ext
17465 fi
17466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan" >&5
17467 $as_echo "$gcc_cv_math_func_atan" >&6; }
17468 if test $gcc_cv_math_func_atan = yes; then
17469
17470 cat >>confdefs.h <<_ACEOF
17471 #define HAVE_ATAN 1
17472 _ACEOF
17473
17474 fi
17475
17476
17477
17478
17479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanl" >&5
17480 $as_echo_n "checking for atanl... " >&6; }
17481 if test "${gcc_cv_math_func_atanl+set}" = set; then :
17482 $as_echo_n "(cached) " >&6
17483 else
17484 if test x$gcc_no_link = xyes; then
17485 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17486 fi
17487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17488 /* end confdefs.h. */
17489
17490 #ifdef HAVE_COMPLEX_H
17491 #include <complex.h>
17492 #endif
17493 #ifdef HAVE_MATH_H
17494 #include <math.h>
17495 #endif
17496
17497 int (*ptr)() = (int (*)())atanl;
17498
17499 int
17500 main ()
17501 {
17502 return 0;
17503 }
17504
17505 _ACEOF
17506 if ac_fn_c_try_link "$LINENO"; then :
17507 gcc_cv_math_func_atanl=yes
17508 else
17509 gcc_cv_math_func_atanl=no
17510 fi
17511 rm -f core conftest.err conftest.$ac_objext \
17512 conftest$ac_exeext conftest.$ac_ext
17513 fi
17514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanl" >&5
17515 $as_echo "$gcc_cv_math_func_atanl" >&6; }
17516 if test $gcc_cv_math_func_atanl = yes; then
17517
17518 cat >>confdefs.h <<_ACEOF
17519 #define HAVE_ATANL 1
17520 _ACEOF
17521
17522 fi
17523
17524
17525
17526
17527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhf" >&5
17528 $as_echo_n "checking for atanhf... " >&6; }
17529 if test "${gcc_cv_math_func_atanhf+set}" = set; then :
17530 $as_echo_n "(cached) " >&6
17531 else
17532 if test x$gcc_no_link = xyes; then
17533 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17534 fi
17535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17536 /* end confdefs.h. */
17537
17538 #ifdef HAVE_COMPLEX_H
17539 #include <complex.h>
17540 #endif
17541 #ifdef HAVE_MATH_H
17542 #include <math.h>
17543 #endif
17544
17545 int (*ptr)() = (int (*)())atanhf;
17546
17547 int
17548 main ()
17549 {
17550 return 0;
17551 }
17552
17553 _ACEOF
17554 if ac_fn_c_try_link "$LINENO"; then :
17555 gcc_cv_math_func_atanhf=yes
17556 else
17557 gcc_cv_math_func_atanhf=no
17558 fi
17559 rm -f core conftest.err conftest.$ac_objext \
17560 conftest$ac_exeext conftest.$ac_ext
17561 fi
17562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhf" >&5
17563 $as_echo "$gcc_cv_math_func_atanhf" >&6; }
17564 if test $gcc_cv_math_func_atanhf = yes; then
17565
17566 cat >>confdefs.h <<_ACEOF
17567 #define HAVE_ATANHF 1
17568 _ACEOF
17569
17570 fi
17571
17572
17573
17574
17575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanh" >&5
17576 $as_echo_n "checking for atanh... " >&6; }
17577 if test "${gcc_cv_math_func_atanh+set}" = set; then :
17578 $as_echo_n "(cached) " >&6
17579 else
17580 if test x$gcc_no_link = xyes; then
17581 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17582 fi
17583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17584 /* end confdefs.h. */
17585
17586 #ifdef HAVE_COMPLEX_H
17587 #include <complex.h>
17588 #endif
17589 #ifdef HAVE_MATH_H
17590 #include <math.h>
17591 #endif
17592
17593 int (*ptr)() = (int (*)())atanh;
17594
17595 int
17596 main ()
17597 {
17598 return 0;
17599 }
17600
17601 _ACEOF
17602 if ac_fn_c_try_link "$LINENO"; then :
17603 gcc_cv_math_func_atanh=yes
17604 else
17605 gcc_cv_math_func_atanh=no
17606 fi
17607 rm -f core conftest.err conftest.$ac_objext \
17608 conftest$ac_exeext conftest.$ac_ext
17609 fi
17610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanh" >&5
17611 $as_echo "$gcc_cv_math_func_atanh" >&6; }
17612 if test $gcc_cv_math_func_atanh = yes; then
17613
17614 cat >>confdefs.h <<_ACEOF
17615 #define HAVE_ATANH 1
17616 _ACEOF
17617
17618 fi
17619
17620
17621
17622
17623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhl" >&5
17624 $as_echo_n "checking for atanhl... " >&6; }
17625 if test "${gcc_cv_math_func_atanhl+set}" = set; then :
17626 $as_echo_n "(cached) " >&6
17627 else
17628 if test x$gcc_no_link = xyes; then
17629 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17630 fi
17631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17632 /* end confdefs.h. */
17633
17634 #ifdef HAVE_COMPLEX_H
17635 #include <complex.h>
17636 #endif
17637 #ifdef HAVE_MATH_H
17638 #include <math.h>
17639 #endif
17640
17641 int (*ptr)() = (int (*)())atanhl;
17642
17643 int
17644 main ()
17645 {
17646 return 0;
17647 }
17648
17649 _ACEOF
17650 if ac_fn_c_try_link "$LINENO"; then :
17651 gcc_cv_math_func_atanhl=yes
17652 else
17653 gcc_cv_math_func_atanhl=no
17654 fi
17655 rm -f core conftest.err conftest.$ac_objext \
17656 conftest$ac_exeext conftest.$ac_ext
17657 fi
17658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhl" >&5
17659 $as_echo "$gcc_cv_math_func_atanhl" >&6; }
17660 if test $gcc_cv_math_func_atanhl = yes; then
17661
17662 cat >>confdefs.h <<_ACEOF
17663 #define HAVE_ATANHL 1
17664 _ACEOF
17665
17666 fi
17667
17668
17669
17670
17671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargf" >&5
17672 $as_echo_n "checking for cargf... " >&6; }
17673 if test "${gcc_cv_math_func_cargf+set}" = set; then :
17674 $as_echo_n "(cached) " >&6
17675 else
17676 if test x$gcc_no_link = xyes; then
17677 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17678 fi
17679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17680 /* end confdefs.h. */
17681
17682 #ifdef HAVE_COMPLEX_H
17683 #include <complex.h>
17684 #endif
17685 #ifdef HAVE_MATH_H
17686 #include <math.h>
17687 #endif
17688
17689 int (*ptr)() = (int (*)())cargf;
17690
17691 int
17692 main ()
17693 {
17694 return 0;
17695 }
17696
17697 _ACEOF
17698 if ac_fn_c_try_link "$LINENO"; then :
17699 gcc_cv_math_func_cargf=yes
17700 else
17701 gcc_cv_math_func_cargf=no
17702 fi
17703 rm -f core conftest.err conftest.$ac_objext \
17704 conftest$ac_exeext conftest.$ac_ext
17705 fi
17706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargf" >&5
17707 $as_echo "$gcc_cv_math_func_cargf" >&6; }
17708 if test $gcc_cv_math_func_cargf = yes; then
17709
17710 cat >>confdefs.h <<_ACEOF
17711 #define HAVE_CARGF 1
17712 _ACEOF
17713
17714 fi
17715
17716
17717
17718
17719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for carg" >&5
17720 $as_echo_n "checking for carg... " >&6; }
17721 if test "${gcc_cv_math_func_carg+set}" = set; then :
17722 $as_echo_n "(cached) " >&6
17723 else
17724 if test x$gcc_no_link = xyes; then
17725 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17726 fi
17727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17728 /* end confdefs.h. */
17729
17730 #ifdef HAVE_COMPLEX_H
17731 #include <complex.h>
17732 #endif
17733 #ifdef HAVE_MATH_H
17734 #include <math.h>
17735 #endif
17736
17737 int (*ptr)() = (int (*)())carg;
17738
17739 int
17740 main ()
17741 {
17742 return 0;
17743 }
17744
17745 _ACEOF
17746 if ac_fn_c_try_link "$LINENO"; then :
17747 gcc_cv_math_func_carg=yes
17748 else
17749 gcc_cv_math_func_carg=no
17750 fi
17751 rm -f core conftest.err conftest.$ac_objext \
17752 conftest$ac_exeext conftest.$ac_ext
17753 fi
17754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_carg" >&5
17755 $as_echo "$gcc_cv_math_func_carg" >&6; }
17756 if test $gcc_cv_math_func_carg = yes; then
17757
17758 cat >>confdefs.h <<_ACEOF
17759 #define HAVE_CARG 1
17760 _ACEOF
17761
17762 fi
17763
17764
17765
17766
17767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargl" >&5
17768 $as_echo_n "checking for cargl... " >&6; }
17769 if test "${gcc_cv_math_func_cargl+set}" = set; then :
17770 $as_echo_n "(cached) " >&6
17771 else
17772 if test x$gcc_no_link = xyes; then
17773 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17774 fi
17775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17776 /* end confdefs.h. */
17777
17778 #ifdef HAVE_COMPLEX_H
17779 #include <complex.h>
17780 #endif
17781 #ifdef HAVE_MATH_H
17782 #include <math.h>
17783 #endif
17784
17785 int (*ptr)() = (int (*)())cargl;
17786
17787 int
17788 main ()
17789 {
17790 return 0;
17791 }
17792
17793 _ACEOF
17794 if ac_fn_c_try_link "$LINENO"; then :
17795 gcc_cv_math_func_cargl=yes
17796 else
17797 gcc_cv_math_func_cargl=no
17798 fi
17799 rm -f core conftest.err conftest.$ac_objext \
17800 conftest$ac_exeext conftest.$ac_ext
17801 fi
17802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargl" >&5
17803 $as_echo "$gcc_cv_math_func_cargl" >&6; }
17804 if test $gcc_cv_math_func_cargl = yes; then
17805
17806 cat >>confdefs.h <<_ACEOF
17807 #define HAVE_CARGL 1
17808 _ACEOF
17809
17810 fi
17811
17812
17813
17814
17815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceilf" >&5
17816 $as_echo_n "checking for ceilf... " >&6; }
17817 if test "${gcc_cv_math_func_ceilf+set}" = set; then :
17818 $as_echo_n "(cached) " >&6
17819 else
17820 if test x$gcc_no_link = xyes; then
17821 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17822 fi
17823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17824 /* end confdefs.h. */
17825
17826 #ifdef HAVE_COMPLEX_H
17827 #include <complex.h>
17828 #endif
17829 #ifdef HAVE_MATH_H
17830 #include <math.h>
17831 #endif
17832
17833 int (*ptr)() = (int (*)())ceilf;
17834
17835 int
17836 main ()
17837 {
17838 return 0;
17839 }
17840
17841 _ACEOF
17842 if ac_fn_c_try_link "$LINENO"; then :
17843 gcc_cv_math_func_ceilf=yes
17844 else
17845 gcc_cv_math_func_ceilf=no
17846 fi
17847 rm -f core conftest.err conftest.$ac_objext \
17848 conftest$ac_exeext conftest.$ac_ext
17849 fi
17850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceilf" >&5
17851 $as_echo "$gcc_cv_math_func_ceilf" >&6; }
17852 if test $gcc_cv_math_func_ceilf = yes; then
17853
17854 cat >>confdefs.h <<_ACEOF
17855 #define HAVE_CEILF 1
17856 _ACEOF
17857
17858 fi
17859
17860
17861
17862
17863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil" >&5
17864 $as_echo_n "checking for ceil... " >&6; }
17865 if test "${gcc_cv_math_func_ceil+set}" = set; then :
17866 $as_echo_n "(cached) " >&6
17867 else
17868 if test x$gcc_no_link = xyes; then
17869 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17870 fi
17871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17872 /* end confdefs.h. */
17873
17874 #ifdef HAVE_COMPLEX_H
17875 #include <complex.h>
17876 #endif
17877 #ifdef HAVE_MATH_H
17878 #include <math.h>
17879 #endif
17880
17881 int (*ptr)() = (int (*)())ceil;
17882
17883 int
17884 main ()
17885 {
17886 return 0;
17887 }
17888
17889 _ACEOF
17890 if ac_fn_c_try_link "$LINENO"; then :
17891 gcc_cv_math_func_ceil=yes
17892 else
17893 gcc_cv_math_func_ceil=no
17894 fi
17895 rm -f core conftest.err conftest.$ac_objext \
17896 conftest$ac_exeext conftest.$ac_ext
17897 fi
17898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceil" >&5
17899 $as_echo "$gcc_cv_math_func_ceil" >&6; }
17900 if test $gcc_cv_math_func_ceil = yes; then
17901
17902 cat >>confdefs.h <<_ACEOF
17903 #define HAVE_CEIL 1
17904 _ACEOF
17905
17906 fi
17907
17908
17909
17910
17911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceill" >&5
17912 $as_echo_n "checking for ceill... " >&6; }
17913 if test "${gcc_cv_math_func_ceill+set}" = set; then :
17914 $as_echo_n "(cached) " >&6
17915 else
17916 if test x$gcc_no_link = xyes; then
17917 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17918 fi
17919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17920 /* end confdefs.h. */
17921
17922 #ifdef HAVE_COMPLEX_H
17923 #include <complex.h>
17924 #endif
17925 #ifdef HAVE_MATH_H
17926 #include <math.h>
17927 #endif
17928
17929 int (*ptr)() = (int (*)())ceill;
17930
17931 int
17932 main ()
17933 {
17934 return 0;
17935 }
17936
17937 _ACEOF
17938 if ac_fn_c_try_link "$LINENO"; then :
17939 gcc_cv_math_func_ceill=yes
17940 else
17941 gcc_cv_math_func_ceill=no
17942 fi
17943 rm -f core conftest.err conftest.$ac_objext \
17944 conftest$ac_exeext conftest.$ac_ext
17945 fi
17946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceill" >&5
17947 $as_echo "$gcc_cv_math_func_ceill" >&6; }
17948 if test $gcc_cv_math_func_ceill = yes; then
17949
17950 cat >>confdefs.h <<_ACEOF
17951 #define HAVE_CEILL 1
17952 _ACEOF
17953
17954 fi
17955
17956
17957
17958
17959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignf" >&5
17960 $as_echo_n "checking for copysignf... " >&6; }
17961 if test "${gcc_cv_math_func_copysignf+set}" = set; then :
17962 $as_echo_n "(cached) " >&6
17963 else
17964 if test x$gcc_no_link = xyes; then
17965 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17966 fi
17967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17968 /* end confdefs.h. */
17969
17970 #ifdef HAVE_COMPLEX_H
17971 #include <complex.h>
17972 #endif
17973 #ifdef HAVE_MATH_H
17974 #include <math.h>
17975 #endif
17976
17977 int (*ptr)() = (int (*)())copysignf;
17978
17979 int
17980 main ()
17981 {
17982 return 0;
17983 }
17984
17985 _ACEOF
17986 if ac_fn_c_try_link "$LINENO"; then :
17987 gcc_cv_math_func_copysignf=yes
17988 else
17989 gcc_cv_math_func_copysignf=no
17990 fi
17991 rm -f core conftest.err conftest.$ac_objext \
17992 conftest$ac_exeext conftest.$ac_ext
17993 fi
17994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignf" >&5
17995 $as_echo "$gcc_cv_math_func_copysignf" >&6; }
17996 if test $gcc_cv_math_func_copysignf = yes; then
17997
17998 cat >>confdefs.h <<_ACEOF
17999 #define HAVE_COPYSIGNF 1
18000 _ACEOF
18001
18002 fi
18003
18004
18005
18006
18007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysign" >&5
18008 $as_echo_n "checking for copysign... " >&6; }
18009 if test "${gcc_cv_math_func_copysign+set}" = set; then :
18010 $as_echo_n "(cached) " >&6
18011 else
18012 if test x$gcc_no_link = xyes; then
18013 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18014 fi
18015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18016 /* end confdefs.h. */
18017
18018 #ifdef HAVE_COMPLEX_H
18019 #include <complex.h>
18020 #endif
18021 #ifdef HAVE_MATH_H
18022 #include <math.h>
18023 #endif
18024
18025 int (*ptr)() = (int (*)())copysign;
18026
18027 int
18028 main ()
18029 {
18030 return 0;
18031 }
18032
18033 _ACEOF
18034 if ac_fn_c_try_link "$LINENO"; then :
18035 gcc_cv_math_func_copysign=yes
18036 else
18037 gcc_cv_math_func_copysign=no
18038 fi
18039 rm -f core conftest.err conftest.$ac_objext \
18040 conftest$ac_exeext conftest.$ac_ext
18041 fi
18042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysign" >&5
18043 $as_echo "$gcc_cv_math_func_copysign" >&6; }
18044 if test $gcc_cv_math_func_copysign = yes; then
18045
18046 cat >>confdefs.h <<_ACEOF
18047 #define HAVE_COPYSIGN 1
18048 _ACEOF
18049
18050 fi
18051
18052
18053
18054
18055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignl" >&5
18056 $as_echo_n "checking for copysignl... " >&6; }
18057 if test "${gcc_cv_math_func_copysignl+set}" = set; then :
18058 $as_echo_n "(cached) " >&6
18059 else
18060 if test x$gcc_no_link = xyes; then
18061 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18062 fi
18063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18064 /* end confdefs.h. */
18065
18066 #ifdef HAVE_COMPLEX_H
18067 #include <complex.h>
18068 #endif
18069 #ifdef HAVE_MATH_H
18070 #include <math.h>
18071 #endif
18072
18073 int (*ptr)() = (int (*)())copysignl;
18074
18075 int
18076 main ()
18077 {
18078 return 0;
18079 }
18080
18081 _ACEOF
18082 if ac_fn_c_try_link "$LINENO"; then :
18083 gcc_cv_math_func_copysignl=yes
18084 else
18085 gcc_cv_math_func_copysignl=no
18086 fi
18087 rm -f core conftest.err conftest.$ac_objext \
18088 conftest$ac_exeext conftest.$ac_ext
18089 fi
18090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignl" >&5
18091 $as_echo "$gcc_cv_math_func_copysignl" >&6; }
18092 if test $gcc_cv_math_func_copysignl = yes; then
18093
18094 cat >>confdefs.h <<_ACEOF
18095 #define HAVE_COPYSIGNL 1
18096 _ACEOF
18097
18098 fi
18099
18100
18101
18102
18103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosf" >&5
18104 $as_echo_n "checking for cosf... " >&6; }
18105 if test "${gcc_cv_math_func_cosf+set}" = set; then :
18106 $as_echo_n "(cached) " >&6
18107 else
18108 if test x$gcc_no_link = xyes; then
18109 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18110 fi
18111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18112 /* end confdefs.h. */
18113
18114 #ifdef HAVE_COMPLEX_H
18115 #include <complex.h>
18116 #endif
18117 #ifdef HAVE_MATH_H
18118 #include <math.h>
18119 #endif
18120
18121 int (*ptr)() = (int (*)())cosf;
18122
18123 int
18124 main ()
18125 {
18126 return 0;
18127 }
18128
18129 _ACEOF
18130 if ac_fn_c_try_link "$LINENO"; then :
18131 gcc_cv_math_func_cosf=yes
18132 else
18133 gcc_cv_math_func_cosf=no
18134 fi
18135 rm -f core conftest.err conftest.$ac_objext \
18136 conftest$ac_exeext conftest.$ac_ext
18137 fi
18138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosf" >&5
18139 $as_echo "$gcc_cv_math_func_cosf" >&6; }
18140 if test $gcc_cv_math_func_cosf = yes; then
18141
18142 cat >>confdefs.h <<_ACEOF
18143 #define HAVE_COSF 1
18144 _ACEOF
18145
18146 fi
18147
18148
18149
18150
18151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos" >&5
18152 $as_echo_n "checking for cos... " >&6; }
18153 if test "${gcc_cv_math_func_cos+set}" = set; then :
18154 $as_echo_n "(cached) " >&6
18155 else
18156 if test x$gcc_no_link = xyes; then
18157 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18158 fi
18159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18160 /* end confdefs.h. */
18161
18162 #ifdef HAVE_COMPLEX_H
18163 #include <complex.h>
18164 #endif
18165 #ifdef HAVE_MATH_H
18166 #include <math.h>
18167 #endif
18168
18169 int (*ptr)() = (int (*)())cos;
18170
18171 int
18172 main ()
18173 {
18174 return 0;
18175 }
18176
18177 _ACEOF
18178 if ac_fn_c_try_link "$LINENO"; then :
18179 gcc_cv_math_func_cos=yes
18180 else
18181 gcc_cv_math_func_cos=no
18182 fi
18183 rm -f core conftest.err conftest.$ac_objext \
18184 conftest$ac_exeext conftest.$ac_ext
18185 fi
18186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cos" >&5
18187 $as_echo "$gcc_cv_math_func_cos" >&6; }
18188 if test $gcc_cv_math_func_cos = yes; then
18189
18190 cat >>confdefs.h <<_ACEOF
18191 #define HAVE_COS 1
18192 _ACEOF
18193
18194 fi
18195
18196
18197
18198
18199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosl" >&5
18200 $as_echo_n "checking for cosl... " >&6; }
18201 if test "${gcc_cv_math_func_cosl+set}" = set; then :
18202 $as_echo_n "(cached) " >&6
18203 else
18204 if test x$gcc_no_link = xyes; then
18205 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18206 fi
18207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18208 /* end confdefs.h. */
18209
18210 #ifdef HAVE_COMPLEX_H
18211 #include <complex.h>
18212 #endif
18213 #ifdef HAVE_MATH_H
18214 #include <math.h>
18215 #endif
18216
18217 int (*ptr)() = (int (*)())cosl;
18218
18219 int
18220 main ()
18221 {
18222 return 0;
18223 }
18224
18225 _ACEOF
18226 if ac_fn_c_try_link "$LINENO"; then :
18227 gcc_cv_math_func_cosl=yes
18228 else
18229 gcc_cv_math_func_cosl=no
18230 fi
18231 rm -f core conftest.err conftest.$ac_objext \
18232 conftest$ac_exeext conftest.$ac_ext
18233 fi
18234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosl" >&5
18235 $as_echo "$gcc_cv_math_func_cosl" >&6; }
18236 if test $gcc_cv_math_func_cosl = yes; then
18237
18238 cat >>confdefs.h <<_ACEOF
18239 #define HAVE_COSL 1
18240 _ACEOF
18241
18242 fi
18243
18244
18245
18246
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosf" >&5
18248 $as_echo_n "checking for ccosf... " >&6; }
18249 if test "${gcc_cv_math_func_ccosf+set}" = set; then :
18250 $as_echo_n "(cached) " >&6
18251 else
18252 if test x$gcc_no_link = xyes; then
18253 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18254 fi
18255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18256 /* end confdefs.h. */
18257
18258 #ifdef HAVE_COMPLEX_H
18259 #include <complex.h>
18260 #endif
18261 #ifdef HAVE_MATH_H
18262 #include <math.h>
18263 #endif
18264
18265 int (*ptr)() = (int (*)())ccosf;
18266
18267 int
18268 main ()
18269 {
18270 return 0;
18271 }
18272
18273 _ACEOF
18274 if ac_fn_c_try_link "$LINENO"; then :
18275 gcc_cv_math_func_ccosf=yes
18276 else
18277 gcc_cv_math_func_ccosf=no
18278 fi
18279 rm -f core conftest.err conftest.$ac_objext \
18280 conftest$ac_exeext conftest.$ac_ext
18281 fi
18282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosf" >&5
18283 $as_echo "$gcc_cv_math_func_ccosf" >&6; }
18284 if test $gcc_cv_math_func_ccosf = yes; then
18285
18286 cat >>confdefs.h <<_ACEOF
18287 #define HAVE_CCOSF 1
18288 _ACEOF
18289
18290 fi
18291
18292
18293
18294
18295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccos" >&5
18296 $as_echo_n "checking for ccos... " >&6; }
18297 if test "${gcc_cv_math_func_ccos+set}" = set; then :
18298 $as_echo_n "(cached) " >&6
18299 else
18300 if test x$gcc_no_link = xyes; then
18301 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18302 fi
18303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18304 /* end confdefs.h. */
18305
18306 #ifdef HAVE_COMPLEX_H
18307 #include <complex.h>
18308 #endif
18309 #ifdef HAVE_MATH_H
18310 #include <math.h>
18311 #endif
18312
18313 int (*ptr)() = (int (*)())ccos;
18314
18315 int
18316 main ()
18317 {
18318 return 0;
18319 }
18320
18321 _ACEOF
18322 if ac_fn_c_try_link "$LINENO"; then :
18323 gcc_cv_math_func_ccos=yes
18324 else
18325 gcc_cv_math_func_ccos=no
18326 fi
18327 rm -f core conftest.err conftest.$ac_objext \
18328 conftest$ac_exeext conftest.$ac_ext
18329 fi
18330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccos" >&5
18331 $as_echo "$gcc_cv_math_func_ccos" >&6; }
18332 if test $gcc_cv_math_func_ccos = yes; then
18333
18334 cat >>confdefs.h <<_ACEOF
18335 #define HAVE_CCOS 1
18336 _ACEOF
18337
18338 fi
18339
18340
18341
18342
18343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosl" >&5
18344 $as_echo_n "checking for ccosl... " >&6; }
18345 if test "${gcc_cv_math_func_ccosl+set}" = set; then :
18346 $as_echo_n "(cached) " >&6
18347 else
18348 if test x$gcc_no_link = xyes; then
18349 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18350 fi
18351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18352 /* end confdefs.h. */
18353
18354 #ifdef HAVE_COMPLEX_H
18355 #include <complex.h>
18356 #endif
18357 #ifdef HAVE_MATH_H
18358 #include <math.h>
18359 #endif
18360
18361 int (*ptr)() = (int (*)())ccosl;
18362
18363 int
18364 main ()
18365 {
18366 return 0;
18367 }
18368
18369 _ACEOF
18370 if ac_fn_c_try_link "$LINENO"; then :
18371 gcc_cv_math_func_ccosl=yes
18372 else
18373 gcc_cv_math_func_ccosl=no
18374 fi
18375 rm -f core conftest.err conftest.$ac_objext \
18376 conftest$ac_exeext conftest.$ac_ext
18377 fi
18378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosl" >&5
18379 $as_echo "$gcc_cv_math_func_ccosl" >&6; }
18380 if test $gcc_cv_math_func_ccosl = yes; then
18381
18382 cat >>confdefs.h <<_ACEOF
18383 #define HAVE_CCOSL 1
18384 _ACEOF
18385
18386 fi
18387
18388
18389
18390
18391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshf" >&5
18392 $as_echo_n "checking for coshf... " >&6; }
18393 if test "${gcc_cv_math_func_coshf+set}" = set; then :
18394 $as_echo_n "(cached) " >&6
18395 else
18396 if test x$gcc_no_link = xyes; then
18397 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18398 fi
18399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18400 /* end confdefs.h. */
18401
18402 #ifdef HAVE_COMPLEX_H
18403 #include <complex.h>
18404 #endif
18405 #ifdef HAVE_MATH_H
18406 #include <math.h>
18407 #endif
18408
18409 int (*ptr)() = (int (*)())coshf;
18410
18411 int
18412 main ()
18413 {
18414 return 0;
18415 }
18416
18417 _ACEOF
18418 if ac_fn_c_try_link "$LINENO"; then :
18419 gcc_cv_math_func_coshf=yes
18420 else
18421 gcc_cv_math_func_coshf=no
18422 fi
18423 rm -f core conftest.err conftest.$ac_objext \
18424 conftest$ac_exeext conftest.$ac_ext
18425 fi
18426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshf" >&5
18427 $as_echo "$gcc_cv_math_func_coshf" >&6; }
18428 if test $gcc_cv_math_func_coshf = yes; then
18429
18430 cat >>confdefs.h <<_ACEOF
18431 #define HAVE_COSHF 1
18432 _ACEOF
18433
18434 fi
18435
18436
18437
18438
18439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosh" >&5
18440 $as_echo_n "checking for cosh... " >&6; }
18441 if test "${gcc_cv_math_func_cosh+set}" = set; then :
18442 $as_echo_n "(cached) " >&6
18443 else
18444 if test x$gcc_no_link = xyes; then
18445 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18446 fi
18447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18448 /* end confdefs.h. */
18449
18450 #ifdef HAVE_COMPLEX_H
18451 #include <complex.h>
18452 #endif
18453 #ifdef HAVE_MATH_H
18454 #include <math.h>
18455 #endif
18456
18457 int (*ptr)() = (int (*)())cosh;
18458
18459 int
18460 main ()
18461 {
18462 return 0;
18463 }
18464
18465 _ACEOF
18466 if ac_fn_c_try_link "$LINENO"; then :
18467 gcc_cv_math_func_cosh=yes
18468 else
18469 gcc_cv_math_func_cosh=no
18470 fi
18471 rm -f core conftest.err conftest.$ac_objext \
18472 conftest$ac_exeext conftest.$ac_ext
18473 fi
18474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosh" >&5
18475 $as_echo "$gcc_cv_math_func_cosh" >&6; }
18476 if test $gcc_cv_math_func_cosh = yes; then
18477
18478 cat >>confdefs.h <<_ACEOF
18479 #define HAVE_COSH 1
18480 _ACEOF
18481
18482 fi
18483
18484
18485
18486
18487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshl" >&5
18488 $as_echo_n "checking for coshl... " >&6; }
18489 if test "${gcc_cv_math_func_coshl+set}" = set; then :
18490 $as_echo_n "(cached) " >&6
18491 else
18492 if test x$gcc_no_link = xyes; then
18493 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18494 fi
18495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18496 /* end confdefs.h. */
18497
18498 #ifdef HAVE_COMPLEX_H
18499 #include <complex.h>
18500 #endif
18501 #ifdef HAVE_MATH_H
18502 #include <math.h>
18503 #endif
18504
18505 int (*ptr)() = (int (*)())coshl;
18506
18507 int
18508 main ()
18509 {
18510 return 0;
18511 }
18512
18513 _ACEOF
18514 if ac_fn_c_try_link "$LINENO"; then :
18515 gcc_cv_math_func_coshl=yes
18516 else
18517 gcc_cv_math_func_coshl=no
18518 fi
18519 rm -f core conftest.err conftest.$ac_objext \
18520 conftest$ac_exeext conftest.$ac_ext
18521 fi
18522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshl" >&5
18523 $as_echo "$gcc_cv_math_func_coshl" >&6; }
18524 if test $gcc_cv_math_func_coshl = yes; then
18525
18526 cat >>confdefs.h <<_ACEOF
18527 #define HAVE_COSHL 1
18528 _ACEOF
18529
18530 fi
18531
18532
18533
18534
18535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshf" >&5
18536 $as_echo_n "checking for ccoshf... " >&6; }
18537 if test "${gcc_cv_math_func_ccoshf+set}" = set; then :
18538 $as_echo_n "(cached) " >&6
18539 else
18540 if test x$gcc_no_link = xyes; then
18541 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18542 fi
18543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18544 /* end confdefs.h. */
18545
18546 #ifdef HAVE_COMPLEX_H
18547 #include <complex.h>
18548 #endif
18549 #ifdef HAVE_MATH_H
18550 #include <math.h>
18551 #endif
18552
18553 int (*ptr)() = (int (*)())ccoshf;
18554
18555 int
18556 main ()
18557 {
18558 return 0;
18559 }
18560
18561 _ACEOF
18562 if ac_fn_c_try_link "$LINENO"; then :
18563 gcc_cv_math_func_ccoshf=yes
18564 else
18565 gcc_cv_math_func_ccoshf=no
18566 fi
18567 rm -f core conftest.err conftest.$ac_objext \
18568 conftest$ac_exeext conftest.$ac_ext
18569 fi
18570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshf" >&5
18571 $as_echo "$gcc_cv_math_func_ccoshf" >&6; }
18572 if test $gcc_cv_math_func_ccoshf = yes; then
18573
18574 cat >>confdefs.h <<_ACEOF
18575 #define HAVE_CCOSHF 1
18576 _ACEOF
18577
18578 fi
18579
18580
18581
18582
18583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosh" >&5
18584 $as_echo_n "checking for ccosh... " >&6; }
18585 if test "${gcc_cv_math_func_ccosh+set}" = set; then :
18586 $as_echo_n "(cached) " >&6
18587 else
18588 if test x$gcc_no_link = xyes; then
18589 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18590 fi
18591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18592 /* end confdefs.h. */
18593
18594 #ifdef HAVE_COMPLEX_H
18595 #include <complex.h>
18596 #endif
18597 #ifdef HAVE_MATH_H
18598 #include <math.h>
18599 #endif
18600
18601 int (*ptr)() = (int (*)())ccosh;
18602
18603 int
18604 main ()
18605 {
18606 return 0;
18607 }
18608
18609 _ACEOF
18610 if ac_fn_c_try_link "$LINENO"; then :
18611 gcc_cv_math_func_ccosh=yes
18612 else
18613 gcc_cv_math_func_ccosh=no
18614 fi
18615 rm -f core conftest.err conftest.$ac_objext \
18616 conftest$ac_exeext conftest.$ac_ext
18617 fi
18618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosh" >&5
18619 $as_echo "$gcc_cv_math_func_ccosh" >&6; }
18620 if test $gcc_cv_math_func_ccosh = yes; then
18621
18622 cat >>confdefs.h <<_ACEOF
18623 #define HAVE_CCOSH 1
18624 _ACEOF
18625
18626 fi
18627
18628
18629
18630
18631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshl" >&5
18632 $as_echo_n "checking for ccoshl... " >&6; }
18633 if test "${gcc_cv_math_func_ccoshl+set}" = set; then :
18634 $as_echo_n "(cached) " >&6
18635 else
18636 if test x$gcc_no_link = xyes; then
18637 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18638 fi
18639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18640 /* end confdefs.h. */
18641
18642 #ifdef HAVE_COMPLEX_H
18643 #include <complex.h>
18644 #endif
18645 #ifdef HAVE_MATH_H
18646 #include <math.h>
18647 #endif
18648
18649 int (*ptr)() = (int (*)())ccoshl;
18650
18651 int
18652 main ()
18653 {
18654 return 0;
18655 }
18656
18657 _ACEOF
18658 if ac_fn_c_try_link "$LINENO"; then :
18659 gcc_cv_math_func_ccoshl=yes
18660 else
18661 gcc_cv_math_func_ccoshl=no
18662 fi
18663 rm -f core conftest.err conftest.$ac_objext \
18664 conftest$ac_exeext conftest.$ac_ext
18665 fi
18666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshl" >&5
18667 $as_echo "$gcc_cv_math_func_ccoshl" >&6; }
18668 if test $gcc_cv_math_func_ccoshl = yes; then
18669
18670 cat >>confdefs.h <<_ACEOF
18671 #define HAVE_CCOSHL 1
18672 _ACEOF
18673
18674 fi
18675
18676
18677
18678
18679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf" >&5
18680 $as_echo_n "checking for expf... " >&6; }
18681 if test "${gcc_cv_math_func_expf+set}" = set; then :
18682 $as_echo_n "(cached) " >&6
18683 else
18684 if test x$gcc_no_link = xyes; then
18685 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18686 fi
18687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18688 /* end confdefs.h. */
18689
18690 #ifdef HAVE_COMPLEX_H
18691 #include <complex.h>
18692 #endif
18693 #ifdef HAVE_MATH_H
18694 #include <math.h>
18695 #endif
18696
18697 int (*ptr)() = (int (*)())expf;
18698
18699 int
18700 main ()
18701 {
18702 return 0;
18703 }
18704
18705 _ACEOF
18706 if ac_fn_c_try_link "$LINENO"; then :
18707 gcc_cv_math_func_expf=yes
18708 else
18709 gcc_cv_math_func_expf=no
18710 fi
18711 rm -f core conftest.err conftest.$ac_objext \
18712 conftest$ac_exeext conftest.$ac_ext
18713 fi
18714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expf" >&5
18715 $as_echo "$gcc_cv_math_func_expf" >&6; }
18716 if test $gcc_cv_math_func_expf = yes; then
18717
18718 cat >>confdefs.h <<_ACEOF
18719 #define HAVE_EXPF 1
18720 _ACEOF
18721
18722 fi
18723
18724
18725
18726
18727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp" >&5
18728 $as_echo_n "checking for exp... " >&6; }
18729 if test "${gcc_cv_math_func_exp+set}" = set; then :
18730 $as_echo_n "(cached) " >&6
18731 else
18732 if test x$gcc_no_link = xyes; then
18733 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18734 fi
18735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18736 /* end confdefs.h. */
18737
18738 #ifdef HAVE_COMPLEX_H
18739 #include <complex.h>
18740 #endif
18741 #ifdef HAVE_MATH_H
18742 #include <math.h>
18743 #endif
18744
18745 int (*ptr)() = (int (*)())exp;
18746
18747 int
18748 main ()
18749 {
18750 return 0;
18751 }
18752
18753 _ACEOF
18754 if ac_fn_c_try_link "$LINENO"; then :
18755 gcc_cv_math_func_exp=yes
18756 else
18757 gcc_cv_math_func_exp=no
18758 fi
18759 rm -f core conftest.err conftest.$ac_objext \
18760 conftest$ac_exeext conftest.$ac_ext
18761 fi
18762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_exp" >&5
18763 $as_echo "$gcc_cv_math_func_exp" >&6; }
18764 if test $gcc_cv_math_func_exp = yes; then
18765
18766 cat >>confdefs.h <<_ACEOF
18767 #define HAVE_EXP 1
18768 _ACEOF
18769
18770 fi
18771
18772
18773
18774
18775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl" >&5
18776 $as_echo_n "checking for expl... " >&6; }
18777 if test "${gcc_cv_math_func_expl+set}" = set; then :
18778 $as_echo_n "(cached) " >&6
18779 else
18780 if test x$gcc_no_link = xyes; then
18781 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18782 fi
18783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18784 /* end confdefs.h. */
18785
18786 #ifdef HAVE_COMPLEX_H
18787 #include <complex.h>
18788 #endif
18789 #ifdef HAVE_MATH_H
18790 #include <math.h>
18791 #endif
18792
18793 int (*ptr)() = (int (*)())expl;
18794
18795 int
18796 main ()
18797 {
18798 return 0;
18799 }
18800
18801 _ACEOF
18802 if ac_fn_c_try_link "$LINENO"; then :
18803 gcc_cv_math_func_expl=yes
18804 else
18805 gcc_cv_math_func_expl=no
18806 fi
18807 rm -f core conftest.err conftest.$ac_objext \
18808 conftest$ac_exeext conftest.$ac_ext
18809 fi
18810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expl" >&5
18811 $as_echo "$gcc_cv_math_func_expl" >&6; }
18812 if test $gcc_cv_math_func_expl = yes; then
18813
18814 cat >>confdefs.h <<_ACEOF
18815 #define HAVE_EXPL 1
18816 _ACEOF
18817
18818 fi
18819
18820
18821
18822
18823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpf" >&5
18824 $as_echo_n "checking for cexpf... " >&6; }
18825 if test "${gcc_cv_math_func_cexpf+set}" = set; then :
18826 $as_echo_n "(cached) " >&6
18827 else
18828 if test x$gcc_no_link = xyes; then
18829 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18830 fi
18831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18832 /* end confdefs.h. */
18833
18834 #ifdef HAVE_COMPLEX_H
18835 #include <complex.h>
18836 #endif
18837 #ifdef HAVE_MATH_H
18838 #include <math.h>
18839 #endif
18840
18841 int (*ptr)() = (int (*)())cexpf;
18842
18843 int
18844 main ()
18845 {
18846 return 0;
18847 }
18848
18849 _ACEOF
18850 if ac_fn_c_try_link "$LINENO"; then :
18851 gcc_cv_math_func_cexpf=yes
18852 else
18853 gcc_cv_math_func_cexpf=no
18854 fi
18855 rm -f core conftest.err conftest.$ac_objext \
18856 conftest$ac_exeext conftest.$ac_ext
18857 fi
18858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpf" >&5
18859 $as_echo "$gcc_cv_math_func_cexpf" >&6; }
18860 if test $gcc_cv_math_func_cexpf = yes; then
18861
18862 cat >>confdefs.h <<_ACEOF
18863 #define HAVE_CEXPF 1
18864 _ACEOF
18865
18866 fi
18867
18868
18869
18870
18871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexp" >&5
18872 $as_echo_n "checking for cexp... " >&6; }
18873 if test "${gcc_cv_math_func_cexp+set}" = set; then :
18874 $as_echo_n "(cached) " >&6
18875 else
18876 if test x$gcc_no_link = xyes; then
18877 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18878 fi
18879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18880 /* end confdefs.h. */
18881
18882 #ifdef HAVE_COMPLEX_H
18883 #include <complex.h>
18884 #endif
18885 #ifdef HAVE_MATH_H
18886 #include <math.h>
18887 #endif
18888
18889 int (*ptr)() = (int (*)())cexp;
18890
18891 int
18892 main ()
18893 {
18894 return 0;
18895 }
18896
18897 _ACEOF
18898 if ac_fn_c_try_link "$LINENO"; then :
18899 gcc_cv_math_func_cexp=yes
18900 else
18901 gcc_cv_math_func_cexp=no
18902 fi
18903 rm -f core conftest.err conftest.$ac_objext \
18904 conftest$ac_exeext conftest.$ac_ext
18905 fi
18906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexp" >&5
18907 $as_echo "$gcc_cv_math_func_cexp" >&6; }
18908 if test $gcc_cv_math_func_cexp = yes; then
18909
18910 cat >>confdefs.h <<_ACEOF
18911 #define HAVE_CEXP 1
18912 _ACEOF
18913
18914 fi
18915
18916
18917
18918
18919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpl" >&5
18920 $as_echo_n "checking for cexpl... " >&6; }
18921 if test "${gcc_cv_math_func_cexpl+set}" = set; then :
18922 $as_echo_n "(cached) " >&6
18923 else
18924 if test x$gcc_no_link = xyes; then
18925 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18926 fi
18927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18928 /* end confdefs.h. */
18929
18930 #ifdef HAVE_COMPLEX_H
18931 #include <complex.h>
18932 #endif
18933 #ifdef HAVE_MATH_H
18934 #include <math.h>
18935 #endif
18936
18937 int (*ptr)() = (int (*)())cexpl;
18938
18939 int
18940 main ()
18941 {
18942 return 0;
18943 }
18944
18945 _ACEOF
18946 if ac_fn_c_try_link "$LINENO"; then :
18947 gcc_cv_math_func_cexpl=yes
18948 else
18949 gcc_cv_math_func_cexpl=no
18950 fi
18951 rm -f core conftest.err conftest.$ac_objext \
18952 conftest$ac_exeext conftest.$ac_ext
18953 fi
18954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpl" >&5
18955 $as_echo "$gcc_cv_math_func_cexpl" >&6; }
18956 if test $gcc_cv_math_func_cexpl = yes; then
18957
18958 cat >>confdefs.h <<_ACEOF
18959 #define HAVE_CEXPL 1
18960 _ACEOF
18961
18962 fi
18963
18964
18965
18966
18967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf" >&5
18968 $as_echo_n "checking for fabsf... " >&6; }
18969 if test "${gcc_cv_math_func_fabsf+set}" = set; then :
18970 $as_echo_n "(cached) " >&6
18971 else
18972 if test x$gcc_no_link = xyes; then
18973 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18974 fi
18975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18976 /* end confdefs.h. */
18977
18978 #ifdef HAVE_COMPLEX_H
18979 #include <complex.h>
18980 #endif
18981 #ifdef HAVE_MATH_H
18982 #include <math.h>
18983 #endif
18984
18985 int (*ptr)() = (int (*)())fabsf;
18986
18987 int
18988 main ()
18989 {
18990 return 0;
18991 }
18992
18993 _ACEOF
18994 if ac_fn_c_try_link "$LINENO"; then :
18995 gcc_cv_math_func_fabsf=yes
18996 else
18997 gcc_cv_math_func_fabsf=no
18998 fi
18999 rm -f core conftest.err conftest.$ac_objext \
19000 conftest$ac_exeext conftest.$ac_ext
19001 fi
19002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsf" >&5
19003 $as_echo "$gcc_cv_math_func_fabsf" >&6; }
19004 if test $gcc_cv_math_func_fabsf = yes; then
19005
19006 cat >>confdefs.h <<_ACEOF
19007 #define HAVE_FABSF 1
19008 _ACEOF
19009
19010 fi
19011
19012
19013
19014
19015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs" >&5
19016 $as_echo_n "checking for fabs... " >&6; }
19017 if test "${gcc_cv_math_func_fabs+set}" = set; then :
19018 $as_echo_n "(cached) " >&6
19019 else
19020 if test x$gcc_no_link = xyes; then
19021 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19022 fi
19023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19024 /* end confdefs.h. */
19025
19026 #ifdef HAVE_COMPLEX_H
19027 #include <complex.h>
19028 #endif
19029 #ifdef HAVE_MATH_H
19030 #include <math.h>
19031 #endif
19032
19033 int (*ptr)() = (int (*)())fabs;
19034
19035 int
19036 main ()
19037 {
19038 return 0;
19039 }
19040
19041 _ACEOF
19042 if ac_fn_c_try_link "$LINENO"; then :
19043 gcc_cv_math_func_fabs=yes
19044 else
19045 gcc_cv_math_func_fabs=no
19046 fi
19047 rm -f core conftest.err conftest.$ac_objext \
19048 conftest$ac_exeext conftest.$ac_ext
19049 fi
19050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabs" >&5
19051 $as_echo "$gcc_cv_math_func_fabs" >&6; }
19052 if test $gcc_cv_math_func_fabs = yes; then
19053
19054 cat >>confdefs.h <<_ACEOF
19055 #define HAVE_FABS 1
19056 _ACEOF
19057
19058 fi
19059
19060
19061
19062
19063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl" >&5
19064 $as_echo_n "checking for fabsl... " >&6; }
19065 if test "${gcc_cv_math_func_fabsl+set}" = set; then :
19066 $as_echo_n "(cached) " >&6
19067 else
19068 if test x$gcc_no_link = xyes; then
19069 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19070 fi
19071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19072 /* end confdefs.h. */
19073
19074 #ifdef HAVE_COMPLEX_H
19075 #include <complex.h>
19076 #endif
19077 #ifdef HAVE_MATH_H
19078 #include <math.h>
19079 #endif
19080
19081 int (*ptr)() = (int (*)())fabsl;
19082
19083 int
19084 main ()
19085 {
19086 return 0;
19087 }
19088
19089 _ACEOF
19090 if ac_fn_c_try_link "$LINENO"; then :
19091 gcc_cv_math_func_fabsl=yes
19092 else
19093 gcc_cv_math_func_fabsl=no
19094 fi
19095 rm -f core conftest.err conftest.$ac_objext \
19096 conftest$ac_exeext conftest.$ac_ext
19097 fi
19098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsl" >&5
19099 $as_echo "$gcc_cv_math_func_fabsl" >&6; }
19100 if test $gcc_cv_math_func_fabsl = yes; then
19101
19102 cat >>confdefs.h <<_ACEOF
19103 #define HAVE_FABSL 1
19104 _ACEOF
19105
19106 fi
19107
19108
19109
19110
19111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsf" >&5
19112 $as_echo_n "checking for cabsf... " >&6; }
19113 if test "${gcc_cv_math_func_cabsf+set}" = set; then :
19114 $as_echo_n "(cached) " >&6
19115 else
19116 if test x$gcc_no_link = xyes; then
19117 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19118 fi
19119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19120 /* end confdefs.h. */
19121
19122 #ifdef HAVE_COMPLEX_H
19123 #include <complex.h>
19124 #endif
19125 #ifdef HAVE_MATH_H
19126 #include <math.h>
19127 #endif
19128
19129 int (*ptr)() = (int (*)())cabsf;
19130
19131 int
19132 main ()
19133 {
19134 return 0;
19135 }
19136
19137 _ACEOF
19138 if ac_fn_c_try_link "$LINENO"; then :
19139 gcc_cv_math_func_cabsf=yes
19140 else
19141 gcc_cv_math_func_cabsf=no
19142 fi
19143 rm -f core conftest.err conftest.$ac_objext \
19144 conftest$ac_exeext conftest.$ac_ext
19145 fi
19146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsf" >&5
19147 $as_echo "$gcc_cv_math_func_cabsf" >&6; }
19148 if test $gcc_cv_math_func_cabsf = yes; then
19149
19150 cat >>confdefs.h <<_ACEOF
19151 #define HAVE_CABSF 1
19152 _ACEOF
19153
19154 fi
19155
19156
19157
19158
19159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabs" >&5
19160 $as_echo_n "checking for cabs... " >&6; }
19161 if test "${gcc_cv_math_func_cabs+set}" = set; then :
19162 $as_echo_n "(cached) " >&6
19163 else
19164 if test x$gcc_no_link = xyes; then
19165 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19166 fi
19167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19168 /* end confdefs.h. */
19169
19170 #ifdef HAVE_COMPLEX_H
19171 #include <complex.h>
19172 #endif
19173 #ifdef HAVE_MATH_H
19174 #include <math.h>
19175 #endif
19176
19177 int (*ptr)() = (int (*)())cabs;
19178
19179 int
19180 main ()
19181 {
19182 return 0;
19183 }
19184
19185 _ACEOF
19186 if ac_fn_c_try_link "$LINENO"; then :
19187 gcc_cv_math_func_cabs=yes
19188 else
19189 gcc_cv_math_func_cabs=no
19190 fi
19191 rm -f core conftest.err conftest.$ac_objext \
19192 conftest$ac_exeext conftest.$ac_ext
19193 fi
19194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabs" >&5
19195 $as_echo "$gcc_cv_math_func_cabs" >&6; }
19196 if test $gcc_cv_math_func_cabs = yes; then
19197
19198 cat >>confdefs.h <<_ACEOF
19199 #define HAVE_CABS 1
19200 _ACEOF
19201
19202 fi
19203
19204
19205
19206
19207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsl" >&5
19208 $as_echo_n "checking for cabsl... " >&6; }
19209 if test "${gcc_cv_math_func_cabsl+set}" = set; then :
19210 $as_echo_n "(cached) " >&6
19211 else
19212 if test x$gcc_no_link = xyes; then
19213 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19214 fi
19215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19216 /* end confdefs.h. */
19217
19218 #ifdef HAVE_COMPLEX_H
19219 #include <complex.h>
19220 #endif
19221 #ifdef HAVE_MATH_H
19222 #include <math.h>
19223 #endif
19224
19225 int (*ptr)() = (int (*)())cabsl;
19226
19227 int
19228 main ()
19229 {
19230 return 0;
19231 }
19232
19233 _ACEOF
19234 if ac_fn_c_try_link "$LINENO"; then :
19235 gcc_cv_math_func_cabsl=yes
19236 else
19237 gcc_cv_math_func_cabsl=no
19238 fi
19239 rm -f core conftest.err conftest.$ac_objext \
19240 conftest$ac_exeext conftest.$ac_ext
19241 fi
19242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsl" >&5
19243 $as_echo "$gcc_cv_math_func_cabsl" >&6; }
19244 if test $gcc_cv_math_func_cabsl = yes; then
19245
19246 cat >>confdefs.h <<_ACEOF
19247 #define HAVE_CABSL 1
19248 _ACEOF
19249
19250 fi
19251
19252
19253
19254
19255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorf" >&5
19256 $as_echo_n "checking for floorf... " >&6; }
19257 if test "${gcc_cv_math_func_floorf+set}" = set; then :
19258 $as_echo_n "(cached) " >&6
19259 else
19260 if test x$gcc_no_link = xyes; then
19261 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19262 fi
19263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19264 /* end confdefs.h. */
19265
19266 #ifdef HAVE_COMPLEX_H
19267 #include <complex.h>
19268 #endif
19269 #ifdef HAVE_MATH_H
19270 #include <math.h>
19271 #endif
19272
19273 int (*ptr)() = (int (*)())floorf;
19274
19275 int
19276 main ()
19277 {
19278 return 0;
19279 }
19280
19281 _ACEOF
19282 if ac_fn_c_try_link "$LINENO"; then :
19283 gcc_cv_math_func_floorf=yes
19284 else
19285 gcc_cv_math_func_floorf=no
19286 fi
19287 rm -f core conftest.err conftest.$ac_objext \
19288 conftest$ac_exeext conftest.$ac_ext
19289 fi
19290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorf" >&5
19291 $as_echo "$gcc_cv_math_func_floorf" >&6; }
19292 if test $gcc_cv_math_func_floorf = yes; then
19293
19294 cat >>confdefs.h <<_ACEOF
19295 #define HAVE_FLOORF 1
19296 _ACEOF
19297
19298 fi
19299
19300
19301
19302
19303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor" >&5
19304 $as_echo_n "checking for floor... " >&6; }
19305 if test "${gcc_cv_math_func_floor+set}" = set; then :
19306 $as_echo_n "(cached) " >&6
19307 else
19308 if test x$gcc_no_link = xyes; then
19309 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19310 fi
19311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19312 /* end confdefs.h. */
19313
19314 #ifdef HAVE_COMPLEX_H
19315 #include <complex.h>
19316 #endif
19317 #ifdef HAVE_MATH_H
19318 #include <math.h>
19319 #endif
19320
19321 int (*ptr)() = (int (*)())floor;
19322
19323 int
19324 main ()
19325 {
19326 return 0;
19327 }
19328
19329 _ACEOF
19330 if ac_fn_c_try_link "$LINENO"; then :
19331 gcc_cv_math_func_floor=yes
19332 else
19333 gcc_cv_math_func_floor=no
19334 fi
19335 rm -f core conftest.err conftest.$ac_objext \
19336 conftest$ac_exeext conftest.$ac_ext
19337 fi
19338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floor" >&5
19339 $as_echo "$gcc_cv_math_func_floor" >&6; }
19340 if test $gcc_cv_math_func_floor = yes; then
19341
19342 cat >>confdefs.h <<_ACEOF
19343 #define HAVE_FLOOR 1
19344 _ACEOF
19345
19346 fi
19347
19348
19349
19350
19351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorl" >&5
19352 $as_echo_n "checking for floorl... " >&6; }
19353 if test "${gcc_cv_math_func_floorl+set}" = set; then :
19354 $as_echo_n "(cached) " >&6
19355 else
19356 if test x$gcc_no_link = xyes; then
19357 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19358 fi
19359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19360 /* end confdefs.h. */
19361
19362 #ifdef HAVE_COMPLEX_H
19363 #include <complex.h>
19364 #endif
19365 #ifdef HAVE_MATH_H
19366 #include <math.h>
19367 #endif
19368
19369 int (*ptr)() = (int (*)())floorl;
19370
19371 int
19372 main ()
19373 {
19374 return 0;
19375 }
19376
19377 _ACEOF
19378 if ac_fn_c_try_link "$LINENO"; then :
19379 gcc_cv_math_func_floorl=yes
19380 else
19381 gcc_cv_math_func_floorl=no
19382 fi
19383 rm -f core conftest.err conftest.$ac_objext \
19384 conftest$ac_exeext conftest.$ac_ext
19385 fi
19386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorl" >&5
19387 $as_echo "$gcc_cv_math_func_floorl" >&6; }
19388 if test $gcc_cv_math_func_floorl = yes; then
19389
19390 cat >>confdefs.h <<_ACEOF
19391 #define HAVE_FLOORL 1
19392 _ACEOF
19393
19394 fi
19395
19396
19397
19398
19399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf" >&5
19400 $as_echo_n "checking for fmodf... " >&6; }
19401 if test "${gcc_cv_math_func_fmodf+set}" = set; then :
19402 $as_echo_n "(cached) " >&6
19403 else
19404 if test x$gcc_no_link = xyes; then
19405 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19406 fi
19407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19408 /* end confdefs.h. */
19409
19410 #ifdef HAVE_COMPLEX_H
19411 #include <complex.h>
19412 #endif
19413 #ifdef HAVE_MATH_H
19414 #include <math.h>
19415 #endif
19416
19417 int (*ptr)() = (int (*)())fmodf;
19418
19419 int
19420 main ()
19421 {
19422 return 0;
19423 }
19424
19425 _ACEOF
19426 if ac_fn_c_try_link "$LINENO"; then :
19427 gcc_cv_math_func_fmodf=yes
19428 else
19429 gcc_cv_math_func_fmodf=no
19430 fi
19431 rm -f core conftest.err conftest.$ac_objext \
19432 conftest$ac_exeext conftest.$ac_ext
19433 fi
19434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodf" >&5
19435 $as_echo "$gcc_cv_math_func_fmodf" >&6; }
19436 if test $gcc_cv_math_func_fmodf = yes; then
19437
19438 cat >>confdefs.h <<_ACEOF
19439 #define HAVE_FMODF 1
19440 _ACEOF
19441
19442 fi
19443
19444
19445
19446
19447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod" >&5
19448 $as_echo_n "checking for fmod... " >&6; }
19449 if test "${gcc_cv_math_func_fmod+set}" = set; then :
19450 $as_echo_n "(cached) " >&6
19451 else
19452 if test x$gcc_no_link = xyes; then
19453 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19454 fi
19455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19456 /* end confdefs.h. */
19457
19458 #ifdef HAVE_COMPLEX_H
19459 #include <complex.h>
19460 #endif
19461 #ifdef HAVE_MATH_H
19462 #include <math.h>
19463 #endif
19464
19465 int (*ptr)() = (int (*)())fmod;
19466
19467 int
19468 main ()
19469 {
19470 return 0;
19471 }
19472
19473 _ACEOF
19474 if ac_fn_c_try_link "$LINENO"; then :
19475 gcc_cv_math_func_fmod=yes
19476 else
19477 gcc_cv_math_func_fmod=no
19478 fi
19479 rm -f core conftest.err conftest.$ac_objext \
19480 conftest$ac_exeext conftest.$ac_ext
19481 fi
19482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmod" >&5
19483 $as_echo "$gcc_cv_math_func_fmod" >&6; }
19484 if test $gcc_cv_math_func_fmod = yes; then
19485
19486 cat >>confdefs.h <<_ACEOF
19487 #define HAVE_FMOD 1
19488 _ACEOF
19489
19490 fi
19491
19492
19493
19494
19495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl" >&5
19496 $as_echo_n "checking for fmodl... " >&6; }
19497 if test "${gcc_cv_math_func_fmodl+set}" = set; then :
19498 $as_echo_n "(cached) " >&6
19499 else
19500 if test x$gcc_no_link = xyes; then
19501 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19502 fi
19503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19504 /* end confdefs.h. */
19505
19506 #ifdef HAVE_COMPLEX_H
19507 #include <complex.h>
19508 #endif
19509 #ifdef HAVE_MATH_H
19510 #include <math.h>
19511 #endif
19512
19513 int (*ptr)() = (int (*)())fmodl;
19514
19515 int
19516 main ()
19517 {
19518 return 0;
19519 }
19520
19521 _ACEOF
19522 if ac_fn_c_try_link "$LINENO"; then :
19523 gcc_cv_math_func_fmodl=yes
19524 else
19525 gcc_cv_math_func_fmodl=no
19526 fi
19527 rm -f core conftest.err conftest.$ac_objext \
19528 conftest$ac_exeext conftest.$ac_ext
19529 fi
19530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodl" >&5
19531 $as_echo "$gcc_cv_math_func_fmodl" >&6; }
19532 if test $gcc_cv_math_func_fmodl = yes; then
19533
19534 cat >>confdefs.h <<_ACEOF
19535 #define HAVE_FMODL 1
19536 _ACEOF
19537
19538 fi
19539
19540
19541
19542
19543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf" >&5
19544 $as_echo_n "checking for frexpf... " >&6; }
19545 if test "${gcc_cv_math_func_frexpf+set}" = set; then :
19546 $as_echo_n "(cached) " >&6
19547 else
19548 if test x$gcc_no_link = xyes; then
19549 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19550 fi
19551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19552 /* end confdefs.h. */
19553
19554 #ifdef HAVE_COMPLEX_H
19555 #include <complex.h>
19556 #endif
19557 #ifdef HAVE_MATH_H
19558 #include <math.h>
19559 #endif
19560
19561 int (*ptr)() = (int (*)())frexpf;
19562
19563 int
19564 main ()
19565 {
19566 return 0;
19567 }
19568
19569 _ACEOF
19570 if ac_fn_c_try_link "$LINENO"; then :
19571 gcc_cv_math_func_frexpf=yes
19572 else
19573 gcc_cv_math_func_frexpf=no
19574 fi
19575 rm -f core conftest.err conftest.$ac_objext \
19576 conftest$ac_exeext conftest.$ac_ext
19577 fi
19578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpf" >&5
19579 $as_echo "$gcc_cv_math_func_frexpf" >&6; }
19580 if test $gcc_cv_math_func_frexpf = yes; then
19581
19582 cat >>confdefs.h <<_ACEOF
19583 #define HAVE_FREXPF 1
19584 _ACEOF
19585
19586 fi
19587
19588
19589
19590
19591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexp" >&5
19592 $as_echo_n "checking for frexp... " >&6; }
19593 if test "${gcc_cv_math_func_frexp+set}" = set; then :
19594 $as_echo_n "(cached) " >&6
19595 else
19596 if test x$gcc_no_link = xyes; then
19597 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19598 fi
19599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19600 /* end confdefs.h. */
19601
19602 #ifdef HAVE_COMPLEX_H
19603 #include <complex.h>
19604 #endif
19605 #ifdef HAVE_MATH_H
19606 #include <math.h>
19607 #endif
19608
19609 int (*ptr)() = (int (*)())frexp;
19610
19611 int
19612 main ()
19613 {
19614 return 0;
19615 }
19616
19617 _ACEOF
19618 if ac_fn_c_try_link "$LINENO"; then :
19619 gcc_cv_math_func_frexp=yes
19620 else
19621 gcc_cv_math_func_frexp=no
19622 fi
19623 rm -f core conftest.err conftest.$ac_objext \
19624 conftest$ac_exeext conftest.$ac_ext
19625 fi
19626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexp" >&5
19627 $as_echo "$gcc_cv_math_func_frexp" >&6; }
19628 if test $gcc_cv_math_func_frexp = yes; then
19629
19630 cat >>confdefs.h <<_ACEOF
19631 #define HAVE_FREXP 1
19632 _ACEOF
19633
19634 fi
19635
19636
19637
19638
19639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl" >&5
19640 $as_echo_n "checking for frexpl... " >&6; }
19641 if test "${gcc_cv_math_func_frexpl+set}" = set; then :
19642 $as_echo_n "(cached) " >&6
19643 else
19644 if test x$gcc_no_link = xyes; then
19645 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19646 fi
19647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19648 /* end confdefs.h. */
19649
19650 #ifdef HAVE_COMPLEX_H
19651 #include <complex.h>
19652 #endif
19653 #ifdef HAVE_MATH_H
19654 #include <math.h>
19655 #endif
19656
19657 int (*ptr)() = (int (*)())frexpl;
19658
19659 int
19660 main ()
19661 {
19662 return 0;
19663 }
19664
19665 _ACEOF
19666 if ac_fn_c_try_link "$LINENO"; then :
19667 gcc_cv_math_func_frexpl=yes
19668 else
19669 gcc_cv_math_func_frexpl=no
19670 fi
19671 rm -f core conftest.err conftest.$ac_objext \
19672 conftest$ac_exeext conftest.$ac_ext
19673 fi
19674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpl" >&5
19675 $as_echo "$gcc_cv_math_func_frexpl" >&6; }
19676 if test $gcc_cv_math_func_frexpl = yes; then
19677
19678 cat >>confdefs.h <<_ACEOF
19679 #define HAVE_FREXPL 1
19680 _ACEOF
19681
19682 fi
19683
19684
19685
19686
19687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf" >&5
19688 $as_echo_n "checking for hypotf... " >&6; }
19689 if test "${gcc_cv_math_func_hypotf+set}" = set; then :
19690 $as_echo_n "(cached) " >&6
19691 else
19692 if test x$gcc_no_link = xyes; then
19693 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19694 fi
19695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19696 /* end confdefs.h. */
19697
19698 #ifdef HAVE_COMPLEX_H
19699 #include <complex.h>
19700 #endif
19701 #ifdef HAVE_MATH_H
19702 #include <math.h>
19703 #endif
19704
19705 int (*ptr)() = (int (*)())hypotf;
19706
19707 int
19708 main ()
19709 {
19710 return 0;
19711 }
19712
19713 _ACEOF
19714 if ac_fn_c_try_link "$LINENO"; then :
19715 gcc_cv_math_func_hypotf=yes
19716 else
19717 gcc_cv_math_func_hypotf=no
19718 fi
19719 rm -f core conftest.err conftest.$ac_objext \
19720 conftest$ac_exeext conftest.$ac_ext
19721 fi
19722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotf" >&5
19723 $as_echo "$gcc_cv_math_func_hypotf" >&6; }
19724 if test $gcc_cv_math_func_hypotf = yes; then
19725
19726 cat >>confdefs.h <<_ACEOF
19727 #define HAVE_HYPOTF 1
19728 _ACEOF
19729
19730 fi
19731
19732
19733
19734
19735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot" >&5
19736 $as_echo_n "checking for hypot... " >&6; }
19737 if test "${gcc_cv_math_func_hypot+set}" = set; then :
19738 $as_echo_n "(cached) " >&6
19739 else
19740 if test x$gcc_no_link = xyes; then
19741 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19742 fi
19743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19744 /* end confdefs.h. */
19745
19746 #ifdef HAVE_COMPLEX_H
19747 #include <complex.h>
19748 #endif
19749 #ifdef HAVE_MATH_H
19750 #include <math.h>
19751 #endif
19752
19753 int (*ptr)() = (int (*)())hypot;
19754
19755 int
19756 main ()
19757 {
19758 return 0;
19759 }
19760
19761 _ACEOF
19762 if ac_fn_c_try_link "$LINENO"; then :
19763 gcc_cv_math_func_hypot=yes
19764 else
19765 gcc_cv_math_func_hypot=no
19766 fi
19767 rm -f core conftest.err conftest.$ac_objext \
19768 conftest$ac_exeext conftest.$ac_ext
19769 fi
19770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypot" >&5
19771 $as_echo "$gcc_cv_math_func_hypot" >&6; }
19772 if test $gcc_cv_math_func_hypot = yes; then
19773
19774 cat >>confdefs.h <<_ACEOF
19775 #define HAVE_HYPOT 1
19776 _ACEOF
19777
19778 fi
19779
19780
19781
19782
19783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl" >&5
19784 $as_echo_n "checking for hypotl... " >&6; }
19785 if test "${gcc_cv_math_func_hypotl+set}" = set; then :
19786 $as_echo_n "(cached) " >&6
19787 else
19788 if test x$gcc_no_link = xyes; then
19789 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19790 fi
19791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19792 /* end confdefs.h. */
19793
19794 #ifdef HAVE_COMPLEX_H
19795 #include <complex.h>
19796 #endif
19797 #ifdef HAVE_MATH_H
19798 #include <math.h>
19799 #endif
19800
19801 int (*ptr)() = (int (*)())hypotl;
19802
19803 int
19804 main ()
19805 {
19806 return 0;
19807 }
19808
19809 _ACEOF
19810 if ac_fn_c_try_link "$LINENO"; then :
19811 gcc_cv_math_func_hypotl=yes
19812 else
19813 gcc_cv_math_func_hypotl=no
19814 fi
19815 rm -f core conftest.err conftest.$ac_objext \
19816 conftest$ac_exeext conftest.$ac_ext
19817 fi
19818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotl" >&5
19819 $as_echo "$gcc_cv_math_func_hypotl" >&6; }
19820 if test $gcc_cv_math_func_hypotl = yes; then
19821
19822 cat >>confdefs.h <<_ACEOF
19823 #define HAVE_HYPOTL 1
19824 _ACEOF
19825
19826 fi
19827
19828
19829
19830
19831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf" >&5
19832 $as_echo_n "checking for ldexpf... " >&6; }
19833 if test "${gcc_cv_math_func_ldexpf+set}" = set; then :
19834 $as_echo_n "(cached) " >&6
19835 else
19836 if test x$gcc_no_link = xyes; then
19837 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19838 fi
19839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19840 /* end confdefs.h. */
19841
19842 #ifdef HAVE_COMPLEX_H
19843 #include <complex.h>
19844 #endif
19845 #ifdef HAVE_MATH_H
19846 #include <math.h>
19847 #endif
19848
19849 int (*ptr)() = (int (*)())ldexpf;
19850
19851 int
19852 main ()
19853 {
19854 return 0;
19855 }
19856
19857 _ACEOF
19858 if ac_fn_c_try_link "$LINENO"; then :
19859 gcc_cv_math_func_ldexpf=yes
19860 else
19861 gcc_cv_math_func_ldexpf=no
19862 fi
19863 rm -f core conftest.err conftest.$ac_objext \
19864 conftest$ac_exeext conftest.$ac_ext
19865 fi
19866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpf" >&5
19867 $as_echo "$gcc_cv_math_func_ldexpf" >&6; }
19868 if test $gcc_cv_math_func_ldexpf = yes; then
19869
19870 cat >>confdefs.h <<_ACEOF
19871 #define HAVE_LDEXPF 1
19872 _ACEOF
19873
19874 fi
19875
19876
19877
19878
19879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexp" >&5
19880 $as_echo_n "checking for ldexp... " >&6; }
19881 if test "${gcc_cv_math_func_ldexp+set}" = set; then :
19882 $as_echo_n "(cached) " >&6
19883 else
19884 if test x$gcc_no_link = xyes; then
19885 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19886 fi
19887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19888 /* end confdefs.h. */
19889
19890 #ifdef HAVE_COMPLEX_H
19891 #include <complex.h>
19892 #endif
19893 #ifdef HAVE_MATH_H
19894 #include <math.h>
19895 #endif
19896
19897 int (*ptr)() = (int (*)())ldexp;
19898
19899 int
19900 main ()
19901 {
19902 return 0;
19903 }
19904
19905 _ACEOF
19906 if ac_fn_c_try_link "$LINENO"; then :
19907 gcc_cv_math_func_ldexp=yes
19908 else
19909 gcc_cv_math_func_ldexp=no
19910 fi
19911 rm -f core conftest.err conftest.$ac_objext \
19912 conftest$ac_exeext conftest.$ac_ext
19913 fi
19914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexp" >&5
19915 $as_echo "$gcc_cv_math_func_ldexp" >&6; }
19916 if test $gcc_cv_math_func_ldexp = yes; then
19917
19918 cat >>confdefs.h <<_ACEOF
19919 #define HAVE_LDEXP 1
19920 _ACEOF
19921
19922 fi
19923
19924
19925
19926
19927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl" >&5
19928 $as_echo_n "checking for ldexpl... " >&6; }
19929 if test "${gcc_cv_math_func_ldexpl+set}" = set; then :
19930 $as_echo_n "(cached) " >&6
19931 else
19932 if test x$gcc_no_link = xyes; then
19933 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19934 fi
19935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19936 /* end confdefs.h. */
19937
19938 #ifdef HAVE_COMPLEX_H
19939 #include <complex.h>
19940 #endif
19941 #ifdef HAVE_MATH_H
19942 #include <math.h>
19943 #endif
19944
19945 int (*ptr)() = (int (*)())ldexpl;
19946
19947 int
19948 main ()
19949 {
19950 return 0;
19951 }
19952
19953 _ACEOF
19954 if ac_fn_c_try_link "$LINENO"; then :
19955 gcc_cv_math_func_ldexpl=yes
19956 else
19957 gcc_cv_math_func_ldexpl=no
19958 fi
19959 rm -f core conftest.err conftest.$ac_objext \
19960 conftest$ac_exeext conftest.$ac_ext
19961 fi
19962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpl" >&5
19963 $as_echo "$gcc_cv_math_func_ldexpl" >&6; }
19964 if test $gcc_cv_math_func_ldexpl = yes; then
19965
19966 cat >>confdefs.h <<_ACEOF
19967 #define HAVE_LDEXPL 1
19968 _ACEOF
19969
19970 fi
19971
19972
19973
19974
19975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf" >&5
19976 $as_echo_n "checking for logf... " >&6; }
19977 if test "${gcc_cv_math_func_logf+set}" = set; then :
19978 $as_echo_n "(cached) " >&6
19979 else
19980 if test x$gcc_no_link = xyes; then
19981 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19982 fi
19983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19984 /* end confdefs.h. */
19985
19986 #ifdef HAVE_COMPLEX_H
19987 #include <complex.h>
19988 #endif
19989 #ifdef HAVE_MATH_H
19990 #include <math.h>
19991 #endif
19992
19993 int (*ptr)() = (int (*)())logf;
19994
19995 int
19996 main ()
19997 {
19998 return 0;
19999 }
20000
20001 _ACEOF
20002 if ac_fn_c_try_link "$LINENO"; then :
20003 gcc_cv_math_func_logf=yes
20004 else
20005 gcc_cv_math_func_logf=no
20006 fi
20007 rm -f core conftest.err conftest.$ac_objext \
20008 conftest$ac_exeext conftest.$ac_ext
20009 fi
20010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logf" >&5
20011 $as_echo "$gcc_cv_math_func_logf" >&6; }
20012 if test $gcc_cv_math_func_logf = yes; then
20013
20014 cat >>confdefs.h <<_ACEOF
20015 #define HAVE_LOGF 1
20016 _ACEOF
20017
20018 fi
20019
20020
20021
20022
20023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log" >&5
20024 $as_echo_n "checking for log... " >&6; }
20025 if test "${gcc_cv_math_func_log+set}" = set; then :
20026 $as_echo_n "(cached) " >&6
20027 else
20028 if test x$gcc_no_link = xyes; then
20029 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20030 fi
20031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20032 /* end confdefs.h. */
20033
20034 #ifdef HAVE_COMPLEX_H
20035 #include <complex.h>
20036 #endif
20037 #ifdef HAVE_MATH_H
20038 #include <math.h>
20039 #endif
20040
20041 int (*ptr)() = (int (*)())log;
20042
20043 int
20044 main ()
20045 {
20046 return 0;
20047 }
20048
20049 _ACEOF
20050 if ac_fn_c_try_link "$LINENO"; then :
20051 gcc_cv_math_func_log=yes
20052 else
20053 gcc_cv_math_func_log=no
20054 fi
20055 rm -f core conftest.err conftest.$ac_objext \
20056 conftest$ac_exeext conftest.$ac_ext
20057 fi
20058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log" >&5
20059 $as_echo "$gcc_cv_math_func_log" >&6; }
20060 if test $gcc_cv_math_func_log = yes; then
20061
20062 cat >>confdefs.h <<_ACEOF
20063 #define HAVE_LOG 1
20064 _ACEOF
20065
20066 fi
20067
20068
20069
20070
20071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl" >&5
20072 $as_echo_n "checking for logl... " >&6; }
20073 if test "${gcc_cv_math_func_logl+set}" = set; then :
20074 $as_echo_n "(cached) " >&6
20075 else
20076 if test x$gcc_no_link = xyes; then
20077 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20078 fi
20079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20080 /* end confdefs.h. */
20081
20082 #ifdef HAVE_COMPLEX_H
20083 #include <complex.h>
20084 #endif
20085 #ifdef HAVE_MATH_H
20086 #include <math.h>
20087 #endif
20088
20089 int (*ptr)() = (int (*)())logl;
20090
20091 int
20092 main ()
20093 {
20094 return 0;
20095 }
20096
20097 _ACEOF
20098 if ac_fn_c_try_link "$LINENO"; then :
20099 gcc_cv_math_func_logl=yes
20100 else
20101 gcc_cv_math_func_logl=no
20102 fi
20103 rm -f core conftest.err conftest.$ac_objext \
20104 conftest$ac_exeext conftest.$ac_ext
20105 fi
20106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logl" >&5
20107 $as_echo "$gcc_cv_math_func_logl" >&6; }
20108 if test $gcc_cv_math_func_logl = yes; then
20109
20110 cat >>confdefs.h <<_ACEOF
20111 #define HAVE_LOGL 1
20112 _ACEOF
20113
20114 fi
20115
20116
20117
20118
20119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogf" >&5
20120 $as_echo_n "checking for clogf... " >&6; }
20121 if test "${gcc_cv_math_func_clogf+set}" = set; then :
20122 $as_echo_n "(cached) " >&6
20123 else
20124 if test x$gcc_no_link = xyes; then
20125 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20126 fi
20127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20128 /* end confdefs.h. */
20129
20130 #ifdef HAVE_COMPLEX_H
20131 #include <complex.h>
20132 #endif
20133 #ifdef HAVE_MATH_H
20134 #include <math.h>
20135 #endif
20136
20137 int (*ptr)() = (int (*)())clogf;
20138
20139 int
20140 main ()
20141 {
20142 return 0;
20143 }
20144
20145 _ACEOF
20146 if ac_fn_c_try_link "$LINENO"; then :
20147 gcc_cv_math_func_clogf=yes
20148 else
20149 gcc_cv_math_func_clogf=no
20150 fi
20151 rm -f core conftest.err conftest.$ac_objext \
20152 conftest$ac_exeext conftest.$ac_ext
20153 fi
20154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogf" >&5
20155 $as_echo "$gcc_cv_math_func_clogf" >&6; }
20156 if test $gcc_cv_math_func_clogf = yes; then
20157
20158 cat >>confdefs.h <<_ACEOF
20159 #define HAVE_CLOGF 1
20160 _ACEOF
20161
20162 fi
20163
20164
20165
20166
20167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog" >&5
20168 $as_echo_n "checking for clog... " >&6; }
20169 if test "${gcc_cv_math_func_clog+set}" = set; then :
20170 $as_echo_n "(cached) " >&6
20171 else
20172 if test x$gcc_no_link = xyes; then
20173 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20174 fi
20175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20176 /* end confdefs.h. */
20177
20178 #ifdef HAVE_COMPLEX_H
20179 #include <complex.h>
20180 #endif
20181 #ifdef HAVE_MATH_H
20182 #include <math.h>
20183 #endif
20184
20185 int (*ptr)() = (int (*)())clog;
20186
20187 int
20188 main ()
20189 {
20190 return 0;
20191 }
20192
20193 _ACEOF
20194 if ac_fn_c_try_link "$LINENO"; then :
20195 gcc_cv_math_func_clog=yes
20196 else
20197 gcc_cv_math_func_clog=no
20198 fi
20199 rm -f core conftest.err conftest.$ac_objext \
20200 conftest$ac_exeext conftest.$ac_ext
20201 fi
20202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog" >&5
20203 $as_echo "$gcc_cv_math_func_clog" >&6; }
20204 if test $gcc_cv_math_func_clog = yes; then
20205
20206 cat >>confdefs.h <<_ACEOF
20207 #define HAVE_CLOG 1
20208 _ACEOF
20209
20210 fi
20211
20212
20213
20214
20215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogl" >&5
20216 $as_echo_n "checking for clogl... " >&6; }
20217 if test "${gcc_cv_math_func_clogl+set}" = set; then :
20218 $as_echo_n "(cached) " >&6
20219 else
20220 if test x$gcc_no_link = xyes; then
20221 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20222 fi
20223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20224 /* end confdefs.h. */
20225
20226 #ifdef HAVE_COMPLEX_H
20227 #include <complex.h>
20228 #endif
20229 #ifdef HAVE_MATH_H
20230 #include <math.h>
20231 #endif
20232
20233 int (*ptr)() = (int (*)())clogl;
20234
20235 int
20236 main ()
20237 {
20238 return 0;
20239 }
20240
20241 _ACEOF
20242 if ac_fn_c_try_link "$LINENO"; then :
20243 gcc_cv_math_func_clogl=yes
20244 else
20245 gcc_cv_math_func_clogl=no
20246 fi
20247 rm -f core conftest.err conftest.$ac_objext \
20248 conftest$ac_exeext conftest.$ac_ext
20249 fi
20250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogl" >&5
20251 $as_echo "$gcc_cv_math_func_clogl" >&6; }
20252 if test $gcc_cv_math_func_clogl = yes; then
20253
20254 cat >>confdefs.h <<_ACEOF
20255 #define HAVE_CLOGL 1
20256 _ACEOF
20257
20258 fi
20259
20260
20261
20262
20263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f" >&5
20264 $as_echo_n "checking for log10f... " >&6; }
20265 if test "${gcc_cv_math_func_log10f+set}" = set; then :
20266 $as_echo_n "(cached) " >&6
20267 else
20268 if test x$gcc_no_link = xyes; then
20269 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20270 fi
20271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20272 /* end confdefs.h. */
20273
20274 #ifdef HAVE_COMPLEX_H
20275 #include <complex.h>
20276 #endif
20277 #ifdef HAVE_MATH_H
20278 #include <math.h>
20279 #endif
20280
20281 int (*ptr)() = (int (*)())log10f;
20282
20283 int
20284 main ()
20285 {
20286 return 0;
20287 }
20288
20289 _ACEOF
20290 if ac_fn_c_try_link "$LINENO"; then :
20291 gcc_cv_math_func_log10f=yes
20292 else
20293 gcc_cv_math_func_log10f=no
20294 fi
20295 rm -f core conftest.err conftest.$ac_objext \
20296 conftest$ac_exeext conftest.$ac_ext
20297 fi
20298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10f" >&5
20299 $as_echo "$gcc_cv_math_func_log10f" >&6; }
20300 if test $gcc_cv_math_func_log10f = yes; then
20301
20302 cat >>confdefs.h <<_ACEOF
20303 #define HAVE_LOG10F 1
20304 _ACEOF
20305
20306 fi
20307
20308
20309
20310
20311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10" >&5
20312 $as_echo_n "checking for log10... " >&6; }
20313 if test "${gcc_cv_math_func_log10+set}" = set; then :
20314 $as_echo_n "(cached) " >&6
20315 else
20316 if test x$gcc_no_link = xyes; then
20317 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20318 fi
20319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20320 /* end confdefs.h. */
20321
20322 #ifdef HAVE_COMPLEX_H
20323 #include <complex.h>
20324 #endif
20325 #ifdef HAVE_MATH_H
20326 #include <math.h>
20327 #endif
20328
20329 int (*ptr)() = (int (*)())log10;
20330
20331 int
20332 main ()
20333 {
20334 return 0;
20335 }
20336
20337 _ACEOF
20338 if ac_fn_c_try_link "$LINENO"; then :
20339 gcc_cv_math_func_log10=yes
20340 else
20341 gcc_cv_math_func_log10=no
20342 fi
20343 rm -f core conftest.err conftest.$ac_objext \
20344 conftest$ac_exeext conftest.$ac_ext
20345 fi
20346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10" >&5
20347 $as_echo "$gcc_cv_math_func_log10" >&6; }
20348 if test $gcc_cv_math_func_log10 = yes; then
20349
20350 cat >>confdefs.h <<_ACEOF
20351 #define HAVE_LOG10 1
20352 _ACEOF
20353
20354 fi
20355
20356
20357
20358
20359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l" >&5
20360 $as_echo_n "checking for log10l... " >&6; }
20361 if test "${gcc_cv_math_func_log10l+set}" = set; then :
20362 $as_echo_n "(cached) " >&6
20363 else
20364 if test x$gcc_no_link = xyes; then
20365 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20366 fi
20367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20368 /* end confdefs.h. */
20369
20370 #ifdef HAVE_COMPLEX_H
20371 #include <complex.h>
20372 #endif
20373 #ifdef HAVE_MATH_H
20374 #include <math.h>
20375 #endif
20376
20377 int (*ptr)() = (int (*)())log10l;
20378
20379 int
20380 main ()
20381 {
20382 return 0;
20383 }
20384
20385 _ACEOF
20386 if ac_fn_c_try_link "$LINENO"; then :
20387 gcc_cv_math_func_log10l=yes
20388 else
20389 gcc_cv_math_func_log10l=no
20390 fi
20391 rm -f core conftest.err conftest.$ac_objext \
20392 conftest$ac_exeext conftest.$ac_ext
20393 fi
20394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10l" >&5
20395 $as_echo "$gcc_cv_math_func_log10l" >&6; }
20396 if test $gcc_cv_math_func_log10l = yes; then
20397
20398 cat >>confdefs.h <<_ACEOF
20399 #define HAVE_LOG10L 1
20400 _ACEOF
20401
20402 fi
20403
20404
20405
20406
20407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10f" >&5
20408 $as_echo_n "checking for clog10f... " >&6; }
20409 if test "${gcc_cv_math_func_clog10f+set}" = set; then :
20410 $as_echo_n "(cached) " >&6
20411 else
20412 if test x$gcc_no_link = xyes; then
20413 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20414 fi
20415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20416 /* end confdefs.h. */
20417
20418 #ifdef HAVE_COMPLEX_H
20419 #include <complex.h>
20420 #endif
20421 #ifdef HAVE_MATH_H
20422 #include <math.h>
20423 #endif
20424
20425 int (*ptr)() = (int (*)())clog10f;
20426
20427 int
20428 main ()
20429 {
20430 return 0;
20431 }
20432
20433 _ACEOF
20434 if ac_fn_c_try_link "$LINENO"; then :
20435 gcc_cv_math_func_clog10f=yes
20436 else
20437 gcc_cv_math_func_clog10f=no
20438 fi
20439 rm -f core conftest.err conftest.$ac_objext \
20440 conftest$ac_exeext conftest.$ac_ext
20441 fi
20442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10f" >&5
20443 $as_echo "$gcc_cv_math_func_clog10f" >&6; }
20444 if test $gcc_cv_math_func_clog10f = yes; then
20445
20446 cat >>confdefs.h <<_ACEOF
20447 #define HAVE_CLOG10F 1
20448 _ACEOF
20449
20450 fi
20451
20452
20453
20454
20455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10" >&5
20456 $as_echo_n "checking for clog10... " >&6; }
20457 if test "${gcc_cv_math_func_clog10+set}" = set; then :
20458 $as_echo_n "(cached) " >&6
20459 else
20460 if test x$gcc_no_link = xyes; then
20461 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20462 fi
20463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20464 /* end confdefs.h. */
20465
20466 #ifdef HAVE_COMPLEX_H
20467 #include <complex.h>
20468 #endif
20469 #ifdef HAVE_MATH_H
20470 #include <math.h>
20471 #endif
20472
20473 int (*ptr)() = (int (*)())clog10;
20474
20475 int
20476 main ()
20477 {
20478 return 0;
20479 }
20480
20481 _ACEOF
20482 if ac_fn_c_try_link "$LINENO"; then :
20483 gcc_cv_math_func_clog10=yes
20484 else
20485 gcc_cv_math_func_clog10=no
20486 fi
20487 rm -f core conftest.err conftest.$ac_objext \
20488 conftest$ac_exeext conftest.$ac_ext
20489 fi
20490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10" >&5
20491 $as_echo "$gcc_cv_math_func_clog10" >&6; }
20492 if test $gcc_cv_math_func_clog10 = yes; then
20493
20494 cat >>confdefs.h <<_ACEOF
20495 #define HAVE_CLOG10 1
20496 _ACEOF
20497
20498 fi
20499
20500
20501
20502
20503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10l" >&5
20504 $as_echo_n "checking for clog10l... " >&6; }
20505 if test "${gcc_cv_math_func_clog10l+set}" = set; then :
20506 $as_echo_n "(cached) " >&6
20507 else
20508 if test x$gcc_no_link = xyes; then
20509 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20510 fi
20511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20512 /* end confdefs.h. */
20513
20514 #ifdef HAVE_COMPLEX_H
20515 #include <complex.h>
20516 #endif
20517 #ifdef HAVE_MATH_H
20518 #include <math.h>
20519 #endif
20520
20521 int (*ptr)() = (int (*)())clog10l;
20522
20523 int
20524 main ()
20525 {
20526 return 0;
20527 }
20528
20529 _ACEOF
20530 if ac_fn_c_try_link "$LINENO"; then :
20531 gcc_cv_math_func_clog10l=yes
20532 else
20533 gcc_cv_math_func_clog10l=no
20534 fi
20535 rm -f core conftest.err conftest.$ac_objext \
20536 conftest$ac_exeext conftest.$ac_ext
20537 fi
20538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10l" >&5
20539 $as_echo "$gcc_cv_math_func_clog10l" >&6; }
20540 if test $gcc_cv_math_func_clog10l = yes; then
20541
20542 cat >>confdefs.h <<_ACEOF
20543 #define HAVE_CLOG10L 1
20544 _ACEOF
20545
20546 fi
20547
20548
20549
20550
20551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterf" >&5
20552 $as_echo_n "checking for nextafterf... " >&6; }
20553 if test "${gcc_cv_math_func_nextafterf+set}" = set; then :
20554 $as_echo_n "(cached) " >&6
20555 else
20556 if test x$gcc_no_link = xyes; then
20557 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20558 fi
20559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20560 /* end confdefs.h. */
20561
20562 #ifdef HAVE_COMPLEX_H
20563 #include <complex.h>
20564 #endif
20565 #ifdef HAVE_MATH_H
20566 #include <math.h>
20567 #endif
20568
20569 int (*ptr)() = (int (*)())nextafterf;
20570
20571 int
20572 main ()
20573 {
20574 return 0;
20575 }
20576
20577 _ACEOF
20578 if ac_fn_c_try_link "$LINENO"; then :
20579 gcc_cv_math_func_nextafterf=yes
20580 else
20581 gcc_cv_math_func_nextafterf=no
20582 fi
20583 rm -f core conftest.err conftest.$ac_objext \
20584 conftest$ac_exeext conftest.$ac_ext
20585 fi
20586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterf" >&5
20587 $as_echo "$gcc_cv_math_func_nextafterf" >&6; }
20588 if test $gcc_cv_math_func_nextafterf = yes; then
20589
20590 cat >>confdefs.h <<_ACEOF
20591 #define HAVE_NEXTAFTERF 1
20592 _ACEOF
20593
20594 fi
20595
20596
20597
20598
20599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafter" >&5
20600 $as_echo_n "checking for nextafter... " >&6; }
20601 if test "${gcc_cv_math_func_nextafter+set}" = set; then :
20602 $as_echo_n "(cached) " >&6
20603 else
20604 if test x$gcc_no_link = xyes; then
20605 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20606 fi
20607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20608 /* end confdefs.h. */
20609
20610 #ifdef HAVE_COMPLEX_H
20611 #include <complex.h>
20612 #endif
20613 #ifdef HAVE_MATH_H
20614 #include <math.h>
20615 #endif
20616
20617 int (*ptr)() = (int (*)())nextafter;
20618
20619 int
20620 main ()
20621 {
20622 return 0;
20623 }
20624
20625 _ACEOF
20626 if ac_fn_c_try_link "$LINENO"; then :
20627 gcc_cv_math_func_nextafter=yes
20628 else
20629 gcc_cv_math_func_nextafter=no
20630 fi
20631 rm -f core conftest.err conftest.$ac_objext \
20632 conftest$ac_exeext conftest.$ac_ext
20633 fi
20634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafter" >&5
20635 $as_echo "$gcc_cv_math_func_nextafter" >&6; }
20636 if test $gcc_cv_math_func_nextafter = yes; then
20637
20638 cat >>confdefs.h <<_ACEOF
20639 #define HAVE_NEXTAFTER 1
20640 _ACEOF
20641
20642 fi
20643
20644
20645
20646
20647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterl" >&5
20648 $as_echo_n "checking for nextafterl... " >&6; }
20649 if test "${gcc_cv_math_func_nextafterl+set}" = set; then :
20650 $as_echo_n "(cached) " >&6
20651 else
20652 if test x$gcc_no_link = xyes; then
20653 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20654 fi
20655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20656 /* end confdefs.h. */
20657
20658 #ifdef HAVE_COMPLEX_H
20659 #include <complex.h>
20660 #endif
20661 #ifdef HAVE_MATH_H
20662 #include <math.h>
20663 #endif
20664
20665 int (*ptr)() = (int (*)())nextafterl;
20666
20667 int
20668 main ()
20669 {
20670 return 0;
20671 }
20672
20673 _ACEOF
20674 if ac_fn_c_try_link "$LINENO"; then :
20675 gcc_cv_math_func_nextafterl=yes
20676 else
20677 gcc_cv_math_func_nextafterl=no
20678 fi
20679 rm -f core conftest.err conftest.$ac_objext \
20680 conftest$ac_exeext conftest.$ac_ext
20681 fi
20682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterl" >&5
20683 $as_echo "$gcc_cv_math_func_nextafterl" >&6; }
20684 if test $gcc_cv_math_func_nextafterl = yes; then
20685
20686 cat >>confdefs.h <<_ACEOF
20687 #define HAVE_NEXTAFTERL 1
20688 _ACEOF
20689
20690 fi
20691
20692
20693
20694
20695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf" >&5
20696 $as_echo_n "checking for powf... " >&6; }
20697 if test "${gcc_cv_math_func_powf+set}" = set; then :
20698 $as_echo_n "(cached) " >&6
20699 else
20700 if test x$gcc_no_link = xyes; then
20701 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20702 fi
20703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20704 /* end confdefs.h. */
20705
20706 #ifdef HAVE_COMPLEX_H
20707 #include <complex.h>
20708 #endif
20709 #ifdef HAVE_MATH_H
20710 #include <math.h>
20711 #endif
20712
20713 int (*ptr)() = (int (*)())powf;
20714
20715 int
20716 main ()
20717 {
20718 return 0;
20719 }
20720
20721 _ACEOF
20722 if ac_fn_c_try_link "$LINENO"; then :
20723 gcc_cv_math_func_powf=yes
20724 else
20725 gcc_cv_math_func_powf=no
20726 fi
20727 rm -f core conftest.err conftest.$ac_objext \
20728 conftest$ac_exeext conftest.$ac_ext
20729 fi
20730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powf" >&5
20731 $as_echo "$gcc_cv_math_func_powf" >&6; }
20732 if test $gcc_cv_math_func_powf = yes; then
20733
20734 cat >>confdefs.h <<_ACEOF
20735 #define HAVE_POWF 1
20736 _ACEOF
20737
20738 fi
20739
20740
20741
20742
20743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow" >&5
20744 $as_echo_n "checking for pow... " >&6; }
20745 if test "${gcc_cv_math_func_pow+set}" = set; then :
20746 $as_echo_n "(cached) " >&6
20747 else
20748 if test x$gcc_no_link = xyes; then
20749 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20750 fi
20751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20752 /* end confdefs.h. */
20753
20754 #ifdef HAVE_COMPLEX_H
20755 #include <complex.h>
20756 #endif
20757 #ifdef HAVE_MATH_H
20758 #include <math.h>
20759 #endif
20760
20761 int (*ptr)() = (int (*)())pow;
20762
20763 int
20764 main ()
20765 {
20766 return 0;
20767 }
20768
20769 _ACEOF
20770 if ac_fn_c_try_link "$LINENO"; then :
20771 gcc_cv_math_func_pow=yes
20772 else
20773 gcc_cv_math_func_pow=no
20774 fi
20775 rm -f core conftest.err conftest.$ac_objext \
20776 conftest$ac_exeext conftest.$ac_ext
20777 fi
20778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_pow" >&5
20779 $as_echo "$gcc_cv_math_func_pow" >&6; }
20780 if test $gcc_cv_math_func_pow = yes; then
20781
20782 cat >>confdefs.h <<_ACEOF
20783 #define HAVE_POW 1
20784 _ACEOF
20785
20786 fi
20787
20788
20789
20790
20791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powl" >&5
20792 $as_echo_n "checking for powl... " >&6; }
20793 if test "${gcc_cv_math_func_powl+set}" = set; then :
20794 $as_echo_n "(cached) " >&6
20795 else
20796 if test x$gcc_no_link = xyes; then
20797 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20798 fi
20799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20800 /* end confdefs.h. */
20801
20802 #ifdef HAVE_COMPLEX_H
20803 #include <complex.h>
20804 #endif
20805 #ifdef HAVE_MATH_H
20806 #include <math.h>
20807 #endif
20808
20809 int (*ptr)() = (int (*)())powl;
20810
20811 int
20812 main ()
20813 {
20814 return 0;
20815 }
20816
20817 _ACEOF
20818 if ac_fn_c_try_link "$LINENO"; then :
20819 gcc_cv_math_func_powl=yes
20820 else
20821 gcc_cv_math_func_powl=no
20822 fi
20823 rm -f core conftest.err conftest.$ac_objext \
20824 conftest$ac_exeext conftest.$ac_ext
20825 fi
20826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powl" >&5
20827 $as_echo "$gcc_cv_math_func_powl" >&6; }
20828 if test $gcc_cv_math_func_powl = yes; then
20829
20830 cat >>confdefs.h <<_ACEOF
20831 #define HAVE_POWL 1
20832 _ACEOF
20833
20834 fi
20835
20836
20837
20838
20839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowf" >&5
20840 $as_echo_n "checking for cpowf... " >&6; }
20841 if test "${gcc_cv_math_func_cpowf+set}" = set; then :
20842 $as_echo_n "(cached) " >&6
20843 else
20844 if test x$gcc_no_link = xyes; then
20845 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20846 fi
20847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20848 /* end confdefs.h. */
20849
20850 #ifdef HAVE_COMPLEX_H
20851 #include <complex.h>
20852 #endif
20853 #ifdef HAVE_MATH_H
20854 #include <math.h>
20855 #endif
20856
20857 int (*ptr)() = (int (*)())cpowf;
20858
20859 int
20860 main ()
20861 {
20862 return 0;
20863 }
20864
20865 _ACEOF
20866 if ac_fn_c_try_link "$LINENO"; then :
20867 gcc_cv_math_func_cpowf=yes
20868 else
20869 gcc_cv_math_func_cpowf=no
20870 fi
20871 rm -f core conftest.err conftest.$ac_objext \
20872 conftest$ac_exeext conftest.$ac_ext
20873 fi
20874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowf" >&5
20875 $as_echo "$gcc_cv_math_func_cpowf" >&6; }
20876 if test $gcc_cv_math_func_cpowf = yes; then
20877
20878 cat >>confdefs.h <<_ACEOF
20879 #define HAVE_CPOWF 1
20880 _ACEOF
20881
20882 fi
20883
20884
20885
20886
20887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpow" >&5
20888 $as_echo_n "checking for cpow... " >&6; }
20889 if test "${gcc_cv_math_func_cpow+set}" = set; then :
20890 $as_echo_n "(cached) " >&6
20891 else
20892 if test x$gcc_no_link = xyes; then
20893 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20894 fi
20895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20896 /* end confdefs.h. */
20897
20898 #ifdef HAVE_COMPLEX_H
20899 #include <complex.h>
20900 #endif
20901 #ifdef HAVE_MATH_H
20902 #include <math.h>
20903 #endif
20904
20905 int (*ptr)() = (int (*)())cpow;
20906
20907 int
20908 main ()
20909 {
20910 return 0;
20911 }
20912
20913 _ACEOF
20914 if ac_fn_c_try_link "$LINENO"; then :
20915 gcc_cv_math_func_cpow=yes
20916 else
20917 gcc_cv_math_func_cpow=no
20918 fi
20919 rm -f core conftest.err conftest.$ac_objext \
20920 conftest$ac_exeext conftest.$ac_ext
20921 fi
20922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpow" >&5
20923 $as_echo "$gcc_cv_math_func_cpow" >&6; }
20924 if test $gcc_cv_math_func_cpow = yes; then
20925
20926 cat >>confdefs.h <<_ACEOF
20927 #define HAVE_CPOW 1
20928 _ACEOF
20929
20930 fi
20931
20932
20933
20934
20935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowl" >&5
20936 $as_echo_n "checking for cpowl... " >&6; }
20937 if test "${gcc_cv_math_func_cpowl+set}" = set; then :
20938 $as_echo_n "(cached) " >&6
20939 else
20940 if test x$gcc_no_link = xyes; then
20941 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20942 fi
20943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20944 /* end confdefs.h. */
20945
20946 #ifdef HAVE_COMPLEX_H
20947 #include <complex.h>
20948 #endif
20949 #ifdef HAVE_MATH_H
20950 #include <math.h>
20951 #endif
20952
20953 int (*ptr)() = (int (*)())cpowl;
20954
20955 int
20956 main ()
20957 {
20958 return 0;
20959 }
20960
20961 _ACEOF
20962 if ac_fn_c_try_link "$LINENO"; then :
20963 gcc_cv_math_func_cpowl=yes
20964 else
20965 gcc_cv_math_func_cpowl=no
20966 fi
20967 rm -f core conftest.err conftest.$ac_objext \
20968 conftest$ac_exeext conftest.$ac_ext
20969 fi
20970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowl" >&5
20971 $as_echo "$gcc_cv_math_func_cpowl" >&6; }
20972 if test $gcc_cv_math_func_cpowl = yes; then
20973
20974 cat >>confdefs.h <<_ACEOF
20975 #define HAVE_CPOWL 1
20976 _ACEOF
20977
20978 fi
20979
20980
20981
20982
20983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundf" >&5
20984 $as_echo_n "checking for roundf... " >&6; }
20985 if test "${gcc_cv_math_func_roundf+set}" = set; then :
20986 $as_echo_n "(cached) " >&6
20987 else
20988 if test x$gcc_no_link = xyes; then
20989 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20990 fi
20991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20992 /* end confdefs.h. */
20993
20994 #ifdef HAVE_COMPLEX_H
20995 #include <complex.h>
20996 #endif
20997 #ifdef HAVE_MATH_H
20998 #include <math.h>
20999 #endif
21000
21001 int (*ptr)() = (int (*)())roundf;
21002
21003 int
21004 main ()
21005 {
21006 return 0;
21007 }
21008
21009 _ACEOF
21010 if ac_fn_c_try_link "$LINENO"; then :
21011 gcc_cv_math_func_roundf=yes
21012 else
21013 gcc_cv_math_func_roundf=no
21014 fi
21015 rm -f core conftest.err conftest.$ac_objext \
21016 conftest$ac_exeext conftest.$ac_ext
21017 fi
21018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundf" >&5
21019 $as_echo "$gcc_cv_math_func_roundf" >&6; }
21020 if test $gcc_cv_math_func_roundf = yes; then
21021
21022 cat >>confdefs.h <<_ACEOF
21023 #define HAVE_ROUNDF 1
21024 _ACEOF
21025
21026 fi
21027
21028
21029
21030
21031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for round" >&5
21032 $as_echo_n "checking for round... " >&6; }
21033 if test "${gcc_cv_math_func_round+set}" = set; then :
21034 $as_echo_n "(cached) " >&6
21035 else
21036 if test x$gcc_no_link = xyes; then
21037 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21038 fi
21039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21040 /* end confdefs.h. */
21041
21042 #ifdef HAVE_COMPLEX_H
21043 #include <complex.h>
21044 #endif
21045 #ifdef HAVE_MATH_H
21046 #include <math.h>
21047 #endif
21048
21049 int (*ptr)() = (int (*)())round;
21050
21051 int
21052 main ()
21053 {
21054 return 0;
21055 }
21056
21057 _ACEOF
21058 if ac_fn_c_try_link "$LINENO"; then :
21059 gcc_cv_math_func_round=yes
21060 else
21061 gcc_cv_math_func_round=no
21062 fi
21063 rm -f core conftest.err conftest.$ac_objext \
21064 conftest$ac_exeext conftest.$ac_ext
21065 fi
21066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_round" >&5
21067 $as_echo "$gcc_cv_math_func_round" >&6; }
21068 if test $gcc_cv_math_func_round = yes; then
21069
21070 cat >>confdefs.h <<_ACEOF
21071 #define HAVE_ROUND 1
21072 _ACEOF
21073
21074 fi
21075
21076
21077
21078
21079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundl" >&5
21080 $as_echo_n "checking for roundl... " >&6; }
21081 if test "${gcc_cv_math_func_roundl+set}" = set; then :
21082 $as_echo_n "(cached) " >&6
21083 else
21084 if test x$gcc_no_link = xyes; then
21085 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21086 fi
21087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21088 /* end confdefs.h. */
21089
21090 #ifdef HAVE_COMPLEX_H
21091 #include <complex.h>
21092 #endif
21093 #ifdef HAVE_MATH_H
21094 #include <math.h>
21095 #endif
21096
21097 int (*ptr)() = (int (*)())roundl;
21098
21099 int
21100 main ()
21101 {
21102 return 0;
21103 }
21104
21105 _ACEOF
21106 if ac_fn_c_try_link "$LINENO"; then :
21107 gcc_cv_math_func_roundl=yes
21108 else
21109 gcc_cv_math_func_roundl=no
21110 fi
21111 rm -f core conftest.err conftest.$ac_objext \
21112 conftest$ac_exeext conftest.$ac_ext
21113 fi
21114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundl" >&5
21115 $as_echo "$gcc_cv_math_func_roundl" >&6; }
21116 if test $gcc_cv_math_func_roundl = yes; then
21117
21118 cat >>confdefs.h <<_ACEOF
21119 #define HAVE_ROUNDL 1
21120 _ACEOF
21121
21122 fi
21123
21124
21125
21126
21127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundf" >&5
21128 $as_echo_n "checking for lroundf... " >&6; }
21129 if test "${gcc_cv_math_func_lroundf+set}" = set; then :
21130 $as_echo_n "(cached) " >&6
21131 else
21132 if test x$gcc_no_link = xyes; then
21133 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21134 fi
21135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21136 /* end confdefs.h. */
21137
21138 #ifdef HAVE_COMPLEX_H
21139 #include <complex.h>
21140 #endif
21141 #ifdef HAVE_MATH_H
21142 #include <math.h>
21143 #endif
21144
21145 int (*ptr)() = (int (*)())lroundf;
21146
21147 int
21148 main ()
21149 {
21150 return 0;
21151 }
21152
21153 _ACEOF
21154 if ac_fn_c_try_link "$LINENO"; then :
21155 gcc_cv_math_func_lroundf=yes
21156 else
21157 gcc_cv_math_func_lroundf=no
21158 fi
21159 rm -f core conftest.err conftest.$ac_objext \
21160 conftest$ac_exeext conftest.$ac_ext
21161 fi
21162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundf" >&5
21163 $as_echo "$gcc_cv_math_func_lroundf" >&6; }
21164 if test $gcc_cv_math_func_lroundf = yes; then
21165
21166 cat >>confdefs.h <<_ACEOF
21167 #define HAVE_LROUNDF 1
21168 _ACEOF
21169
21170 fi
21171
21172
21173
21174
21175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lround" >&5
21176 $as_echo_n "checking for lround... " >&6; }
21177 if test "${gcc_cv_math_func_lround+set}" = set; then :
21178 $as_echo_n "(cached) " >&6
21179 else
21180 if test x$gcc_no_link = xyes; then
21181 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21182 fi
21183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21184 /* end confdefs.h. */
21185
21186 #ifdef HAVE_COMPLEX_H
21187 #include <complex.h>
21188 #endif
21189 #ifdef HAVE_MATH_H
21190 #include <math.h>
21191 #endif
21192
21193 int (*ptr)() = (int (*)())lround;
21194
21195 int
21196 main ()
21197 {
21198 return 0;
21199 }
21200
21201 _ACEOF
21202 if ac_fn_c_try_link "$LINENO"; then :
21203 gcc_cv_math_func_lround=yes
21204 else
21205 gcc_cv_math_func_lround=no
21206 fi
21207 rm -f core conftest.err conftest.$ac_objext \
21208 conftest$ac_exeext conftest.$ac_ext
21209 fi
21210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lround" >&5
21211 $as_echo "$gcc_cv_math_func_lround" >&6; }
21212 if test $gcc_cv_math_func_lround = yes; then
21213
21214 cat >>confdefs.h <<_ACEOF
21215 #define HAVE_LROUND 1
21216 _ACEOF
21217
21218 fi
21219
21220
21221
21222
21223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundl" >&5
21224 $as_echo_n "checking for lroundl... " >&6; }
21225 if test "${gcc_cv_math_func_lroundl+set}" = set; then :
21226 $as_echo_n "(cached) " >&6
21227 else
21228 if test x$gcc_no_link = xyes; then
21229 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21230 fi
21231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21232 /* end confdefs.h. */
21233
21234 #ifdef HAVE_COMPLEX_H
21235 #include <complex.h>
21236 #endif
21237 #ifdef HAVE_MATH_H
21238 #include <math.h>
21239 #endif
21240
21241 int (*ptr)() = (int (*)())lroundl;
21242
21243 int
21244 main ()
21245 {
21246 return 0;
21247 }
21248
21249 _ACEOF
21250 if ac_fn_c_try_link "$LINENO"; then :
21251 gcc_cv_math_func_lroundl=yes
21252 else
21253 gcc_cv_math_func_lroundl=no
21254 fi
21255 rm -f core conftest.err conftest.$ac_objext \
21256 conftest$ac_exeext conftest.$ac_ext
21257 fi
21258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundl" >&5
21259 $as_echo "$gcc_cv_math_func_lroundl" >&6; }
21260 if test $gcc_cv_math_func_lroundl = yes; then
21261
21262 cat >>confdefs.h <<_ACEOF
21263 #define HAVE_LROUNDL 1
21264 _ACEOF
21265
21266 fi
21267
21268
21269
21270
21271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundf" >&5
21272 $as_echo_n "checking for llroundf... " >&6; }
21273 if test "${gcc_cv_math_func_llroundf+set}" = set; then :
21274 $as_echo_n "(cached) " >&6
21275 else
21276 if test x$gcc_no_link = xyes; then
21277 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21278 fi
21279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21280 /* end confdefs.h. */
21281
21282 #ifdef HAVE_COMPLEX_H
21283 #include <complex.h>
21284 #endif
21285 #ifdef HAVE_MATH_H
21286 #include <math.h>
21287 #endif
21288
21289 int (*ptr)() = (int (*)())llroundf;
21290
21291 int
21292 main ()
21293 {
21294 return 0;
21295 }
21296
21297 _ACEOF
21298 if ac_fn_c_try_link "$LINENO"; then :
21299 gcc_cv_math_func_llroundf=yes
21300 else
21301 gcc_cv_math_func_llroundf=no
21302 fi
21303 rm -f core conftest.err conftest.$ac_objext \
21304 conftest$ac_exeext conftest.$ac_ext
21305 fi
21306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundf" >&5
21307 $as_echo "$gcc_cv_math_func_llroundf" >&6; }
21308 if test $gcc_cv_math_func_llroundf = yes; then
21309
21310 cat >>confdefs.h <<_ACEOF
21311 #define HAVE_LLROUNDF 1
21312 _ACEOF
21313
21314 fi
21315
21316
21317
21318
21319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llround" >&5
21320 $as_echo_n "checking for llround... " >&6; }
21321 if test "${gcc_cv_math_func_llround+set}" = set; then :
21322 $as_echo_n "(cached) " >&6
21323 else
21324 if test x$gcc_no_link = xyes; then
21325 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21326 fi
21327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21328 /* end confdefs.h. */
21329
21330 #ifdef HAVE_COMPLEX_H
21331 #include <complex.h>
21332 #endif
21333 #ifdef HAVE_MATH_H
21334 #include <math.h>
21335 #endif
21336
21337 int (*ptr)() = (int (*)())llround;
21338
21339 int
21340 main ()
21341 {
21342 return 0;
21343 }
21344
21345 _ACEOF
21346 if ac_fn_c_try_link "$LINENO"; then :
21347 gcc_cv_math_func_llround=yes
21348 else
21349 gcc_cv_math_func_llround=no
21350 fi
21351 rm -f core conftest.err conftest.$ac_objext \
21352 conftest$ac_exeext conftest.$ac_ext
21353 fi
21354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llround" >&5
21355 $as_echo "$gcc_cv_math_func_llround" >&6; }
21356 if test $gcc_cv_math_func_llround = yes; then
21357
21358 cat >>confdefs.h <<_ACEOF
21359 #define HAVE_LLROUND 1
21360 _ACEOF
21361
21362 fi
21363
21364
21365
21366
21367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundl" >&5
21368 $as_echo_n "checking for llroundl... " >&6; }
21369 if test "${gcc_cv_math_func_llroundl+set}" = set; then :
21370 $as_echo_n "(cached) " >&6
21371 else
21372 if test x$gcc_no_link = xyes; then
21373 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21374 fi
21375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21376 /* end confdefs.h. */
21377
21378 #ifdef HAVE_COMPLEX_H
21379 #include <complex.h>
21380 #endif
21381 #ifdef HAVE_MATH_H
21382 #include <math.h>
21383 #endif
21384
21385 int (*ptr)() = (int (*)())llroundl;
21386
21387 int
21388 main ()
21389 {
21390 return 0;
21391 }
21392
21393 _ACEOF
21394 if ac_fn_c_try_link "$LINENO"; then :
21395 gcc_cv_math_func_llroundl=yes
21396 else
21397 gcc_cv_math_func_llroundl=no
21398 fi
21399 rm -f core conftest.err conftest.$ac_objext \
21400 conftest$ac_exeext conftest.$ac_ext
21401 fi
21402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundl" >&5
21403 $as_echo "$gcc_cv_math_func_llroundl" >&6; }
21404 if test $gcc_cv_math_func_llroundl = yes; then
21405
21406 cat >>confdefs.h <<_ACEOF
21407 #define HAVE_LLROUNDL 1
21408 _ACEOF
21409
21410 fi
21411
21412
21413
21414
21415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnf" >&5
21416 $as_echo_n "checking for scalbnf... " >&6; }
21417 if test "${gcc_cv_math_func_scalbnf+set}" = set; then :
21418 $as_echo_n "(cached) " >&6
21419 else
21420 if test x$gcc_no_link = xyes; then
21421 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21422 fi
21423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21424 /* end confdefs.h. */
21425
21426 #ifdef HAVE_COMPLEX_H
21427 #include <complex.h>
21428 #endif
21429 #ifdef HAVE_MATH_H
21430 #include <math.h>
21431 #endif
21432
21433 int (*ptr)() = (int (*)())scalbnf;
21434
21435 int
21436 main ()
21437 {
21438 return 0;
21439 }
21440
21441 _ACEOF
21442 if ac_fn_c_try_link "$LINENO"; then :
21443 gcc_cv_math_func_scalbnf=yes
21444 else
21445 gcc_cv_math_func_scalbnf=no
21446 fi
21447 rm -f core conftest.err conftest.$ac_objext \
21448 conftest$ac_exeext conftest.$ac_ext
21449 fi
21450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnf" >&5
21451 $as_echo "$gcc_cv_math_func_scalbnf" >&6; }
21452 if test $gcc_cv_math_func_scalbnf = yes; then
21453
21454 cat >>confdefs.h <<_ACEOF
21455 #define HAVE_SCALBNF 1
21456 _ACEOF
21457
21458 fi
21459
21460
21461
21462
21463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbn" >&5
21464 $as_echo_n "checking for scalbn... " >&6; }
21465 if test "${gcc_cv_math_func_scalbn+set}" = set; then :
21466 $as_echo_n "(cached) " >&6
21467 else
21468 if test x$gcc_no_link = xyes; then
21469 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21470 fi
21471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21472 /* end confdefs.h. */
21473
21474 #ifdef HAVE_COMPLEX_H
21475 #include <complex.h>
21476 #endif
21477 #ifdef HAVE_MATH_H
21478 #include <math.h>
21479 #endif
21480
21481 int (*ptr)() = (int (*)())scalbn;
21482
21483 int
21484 main ()
21485 {
21486 return 0;
21487 }
21488
21489 _ACEOF
21490 if ac_fn_c_try_link "$LINENO"; then :
21491 gcc_cv_math_func_scalbn=yes
21492 else
21493 gcc_cv_math_func_scalbn=no
21494 fi
21495 rm -f core conftest.err conftest.$ac_objext \
21496 conftest$ac_exeext conftest.$ac_ext
21497 fi
21498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbn" >&5
21499 $as_echo "$gcc_cv_math_func_scalbn" >&6; }
21500 if test $gcc_cv_math_func_scalbn = yes; then
21501
21502 cat >>confdefs.h <<_ACEOF
21503 #define HAVE_SCALBN 1
21504 _ACEOF
21505
21506 fi
21507
21508
21509
21510
21511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnl" >&5
21512 $as_echo_n "checking for scalbnl... " >&6; }
21513 if test "${gcc_cv_math_func_scalbnl+set}" = set; then :
21514 $as_echo_n "(cached) " >&6
21515 else
21516 if test x$gcc_no_link = xyes; then
21517 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21518 fi
21519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21520 /* end confdefs.h. */
21521
21522 #ifdef HAVE_COMPLEX_H
21523 #include <complex.h>
21524 #endif
21525 #ifdef HAVE_MATH_H
21526 #include <math.h>
21527 #endif
21528
21529 int (*ptr)() = (int (*)())scalbnl;
21530
21531 int
21532 main ()
21533 {
21534 return 0;
21535 }
21536
21537 _ACEOF
21538 if ac_fn_c_try_link "$LINENO"; then :
21539 gcc_cv_math_func_scalbnl=yes
21540 else
21541 gcc_cv_math_func_scalbnl=no
21542 fi
21543 rm -f core conftest.err conftest.$ac_objext \
21544 conftest$ac_exeext conftest.$ac_ext
21545 fi
21546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnl" >&5
21547 $as_echo "$gcc_cv_math_func_scalbnl" >&6; }
21548 if test $gcc_cv_math_func_scalbnl = yes; then
21549
21550 cat >>confdefs.h <<_ACEOF
21551 #define HAVE_SCALBNL 1
21552 _ACEOF
21553
21554 fi
21555
21556
21557
21558
21559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinf" >&5
21560 $as_echo_n "checking for sinf... " >&6; }
21561 if test "${gcc_cv_math_func_sinf+set}" = set; then :
21562 $as_echo_n "(cached) " >&6
21563 else
21564 if test x$gcc_no_link = xyes; then
21565 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21566 fi
21567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21568 /* end confdefs.h. */
21569
21570 #ifdef HAVE_COMPLEX_H
21571 #include <complex.h>
21572 #endif
21573 #ifdef HAVE_MATH_H
21574 #include <math.h>
21575 #endif
21576
21577 int (*ptr)() = (int (*)())sinf;
21578
21579 int
21580 main ()
21581 {
21582 return 0;
21583 }
21584
21585 _ACEOF
21586 if ac_fn_c_try_link "$LINENO"; then :
21587 gcc_cv_math_func_sinf=yes
21588 else
21589 gcc_cv_math_func_sinf=no
21590 fi
21591 rm -f core conftest.err conftest.$ac_objext \
21592 conftest$ac_exeext conftest.$ac_ext
21593 fi
21594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinf" >&5
21595 $as_echo "$gcc_cv_math_func_sinf" >&6; }
21596 if test $gcc_cv_math_func_sinf = yes; then
21597
21598 cat >>confdefs.h <<_ACEOF
21599 #define HAVE_SINF 1
21600 _ACEOF
21601
21602 fi
21603
21604
21605
21606
21607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin" >&5
21608 $as_echo_n "checking for sin... " >&6; }
21609 if test "${gcc_cv_math_func_sin+set}" = set; then :
21610 $as_echo_n "(cached) " >&6
21611 else
21612 if test x$gcc_no_link = xyes; then
21613 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21614 fi
21615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21616 /* end confdefs.h. */
21617
21618 #ifdef HAVE_COMPLEX_H
21619 #include <complex.h>
21620 #endif
21621 #ifdef HAVE_MATH_H
21622 #include <math.h>
21623 #endif
21624
21625 int (*ptr)() = (int (*)())sin;
21626
21627 int
21628 main ()
21629 {
21630 return 0;
21631 }
21632
21633 _ACEOF
21634 if ac_fn_c_try_link "$LINENO"; then :
21635 gcc_cv_math_func_sin=yes
21636 else
21637 gcc_cv_math_func_sin=no
21638 fi
21639 rm -f core conftest.err conftest.$ac_objext \
21640 conftest$ac_exeext conftest.$ac_ext
21641 fi
21642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sin" >&5
21643 $as_echo "$gcc_cv_math_func_sin" >&6; }
21644 if test $gcc_cv_math_func_sin = yes; then
21645
21646 cat >>confdefs.h <<_ACEOF
21647 #define HAVE_SIN 1
21648 _ACEOF
21649
21650 fi
21651
21652
21653
21654
21655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinl" >&5
21656 $as_echo_n "checking for sinl... " >&6; }
21657 if test "${gcc_cv_math_func_sinl+set}" = set; then :
21658 $as_echo_n "(cached) " >&6
21659 else
21660 if test x$gcc_no_link = xyes; then
21661 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21662 fi
21663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21664 /* end confdefs.h. */
21665
21666 #ifdef HAVE_COMPLEX_H
21667 #include <complex.h>
21668 #endif
21669 #ifdef HAVE_MATH_H
21670 #include <math.h>
21671 #endif
21672
21673 int (*ptr)() = (int (*)())sinl;
21674
21675 int
21676 main ()
21677 {
21678 return 0;
21679 }
21680
21681 _ACEOF
21682 if ac_fn_c_try_link "$LINENO"; then :
21683 gcc_cv_math_func_sinl=yes
21684 else
21685 gcc_cv_math_func_sinl=no
21686 fi
21687 rm -f core conftest.err conftest.$ac_objext \
21688 conftest$ac_exeext conftest.$ac_ext
21689 fi
21690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinl" >&5
21691 $as_echo "$gcc_cv_math_func_sinl" >&6; }
21692 if test $gcc_cv_math_func_sinl = yes; then
21693
21694 cat >>confdefs.h <<_ACEOF
21695 #define HAVE_SINL 1
21696 _ACEOF
21697
21698 fi
21699
21700
21701
21702
21703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinf" >&5
21704 $as_echo_n "checking for csinf... " >&6; }
21705 if test "${gcc_cv_math_func_csinf+set}" = set; then :
21706 $as_echo_n "(cached) " >&6
21707 else
21708 if test x$gcc_no_link = xyes; then
21709 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21710 fi
21711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21712 /* end confdefs.h. */
21713
21714 #ifdef HAVE_COMPLEX_H
21715 #include <complex.h>
21716 #endif
21717 #ifdef HAVE_MATH_H
21718 #include <math.h>
21719 #endif
21720
21721 int (*ptr)() = (int (*)())csinf;
21722
21723 int
21724 main ()
21725 {
21726 return 0;
21727 }
21728
21729 _ACEOF
21730 if ac_fn_c_try_link "$LINENO"; then :
21731 gcc_cv_math_func_csinf=yes
21732 else
21733 gcc_cv_math_func_csinf=no
21734 fi
21735 rm -f core conftest.err conftest.$ac_objext \
21736 conftest$ac_exeext conftest.$ac_ext
21737 fi
21738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinf" >&5
21739 $as_echo "$gcc_cv_math_func_csinf" >&6; }
21740 if test $gcc_cv_math_func_csinf = yes; then
21741
21742 cat >>confdefs.h <<_ACEOF
21743 #define HAVE_CSINF 1
21744 _ACEOF
21745
21746 fi
21747
21748
21749
21750
21751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csin" >&5
21752 $as_echo_n "checking for csin... " >&6; }
21753 if test "${gcc_cv_math_func_csin+set}" = set; then :
21754 $as_echo_n "(cached) " >&6
21755 else
21756 if test x$gcc_no_link = xyes; then
21757 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21758 fi
21759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21760 /* end confdefs.h. */
21761
21762 #ifdef HAVE_COMPLEX_H
21763 #include <complex.h>
21764 #endif
21765 #ifdef HAVE_MATH_H
21766 #include <math.h>
21767 #endif
21768
21769 int (*ptr)() = (int (*)())csin;
21770
21771 int
21772 main ()
21773 {
21774 return 0;
21775 }
21776
21777 _ACEOF
21778 if ac_fn_c_try_link "$LINENO"; then :
21779 gcc_cv_math_func_csin=yes
21780 else
21781 gcc_cv_math_func_csin=no
21782 fi
21783 rm -f core conftest.err conftest.$ac_objext \
21784 conftest$ac_exeext conftest.$ac_ext
21785 fi
21786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csin" >&5
21787 $as_echo "$gcc_cv_math_func_csin" >&6; }
21788 if test $gcc_cv_math_func_csin = yes; then
21789
21790 cat >>confdefs.h <<_ACEOF
21791 #define HAVE_CSIN 1
21792 _ACEOF
21793
21794 fi
21795
21796
21797
21798
21799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinl" >&5
21800 $as_echo_n "checking for csinl... " >&6; }
21801 if test "${gcc_cv_math_func_csinl+set}" = set; then :
21802 $as_echo_n "(cached) " >&6
21803 else
21804 if test x$gcc_no_link = xyes; then
21805 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21806 fi
21807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21808 /* end confdefs.h. */
21809
21810 #ifdef HAVE_COMPLEX_H
21811 #include <complex.h>
21812 #endif
21813 #ifdef HAVE_MATH_H
21814 #include <math.h>
21815 #endif
21816
21817 int (*ptr)() = (int (*)())csinl;
21818
21819 int
21820 main ()
21821 {
21822 return 0;
21823 }
21824
21825 _ACEOF
21826 if ac_fn_c_try_link "$LINENO"; then :
21827 gcc_cv_math_func_csinl=yes
21828 else
21829 gcc_cv_math_func_csinl=no
21830 fi
21831 rm -f core conftest.err conftest.$ac_objext \
21832 conftest$ac_exeext conftest.$ac_ext
21833 fi
21834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinl" >&5
21835 $as_echo "$gcc_cv_math_func_csinl" >&6; }
21836 if test $gcc_cv_math_func_csinl = yes; then
21837
21838 cat >>confdefs.h <<_ACEOF
21839 #define HAVE_CSINL 1
21840 _ACEOF
21841
21842 fi
21843
21844
21845
21846
21847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhf" >&5
21848 $as_echo_n "checking for sinhf... " >&6; }
21849 if test "${gcc_cv_math_func_sinhf+set}" = set; then :
21850 $as_echo_n "(cached) " >&6
21851 else
21852 if test x$gcc_no_link = xyes; then
21853 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21854 fi
21855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21856 /* end confdefs.h. */
21857
21858 #ifdef HAVE_COMPLEX_H
21859 #include <complex.h>
21860 #endif
21861 #ifdef HAVE_MATH_H
21862 #include <math.h>
21863 #endif
21864
21865 int (*ptr)() = (int (*)())sinhf;
21866
21867 int
21868 main ()
21869 {
21870 return 0;
21871 }
21872
21873 _ACEOF
21874 if ac_fn_c_try_link "$LINENO"; then :
21875 gcc_cv_math_func_sinhf=yes
21876 else
21877 gcc_cv_math_func_sinhf=no
21878 fi
21879 rm -f core conftest.err conftest.$ac_objext \
21880 conftest$ac_exeext conftest.$ac_ext
21881 fi
21882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhf" >&5
21883 $as_echo "$gcc_cv_math_func_sinhf" >&6; }
21884 if test $gcc_cv_math_func_sinhf = yes; then
21885
21886 cat >>confdefs.h <<_ACEOF
21887 #define HAVE_SINHF 1
21888 _ACEOF
21889
21890 fi
21891
21892
21893
21894
21895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinh" >&5
21896 $as_echo_n "checking for sinh... " >&6; }
21897 if test "${gcc_cv_math_func_sinh+set}" = set; then :
21898 $as_echo_n "(cached) " >&6
21899 else
21900 if test x$gcc_no_link = xyes; then
21901 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21902 fi
21903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21904 /* end confdefs.h. */
21905
21906 #ifdef HAVE_COMPLEX_H
21907 #include <complex.h>
21908 #endif
21909 #ifdef HAVE_MATH_H
21910 #include <math.h>
21911 #endif
21912
21913 int (*ptr)() = (int (*)())sinh;
21914
21915 int
21916 main ()
21917 {
21918 return 0;
21919 }
21920
21921 _ACEOF
21922 if ac_fn_c_try_link "$LINENO"; then :
21923 gcc_cv_math_func_sinh=yes
21924 else
21925 gcc_cv_math_func_sinh=no
21926 fi
21927 rm -f core conftest.err conftest.$ac_objext \
21928 conftest$ac_exeext conftest.$ac_ext
21929 fi
21930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinh" >&5
21931 $as_echo "$gcc_cv_math_func_sinh" >&6; }
21932 if test $gcc_cv_math_func_sinh = yes; then
21933
21934 cat >>confdefs.h <<_ACEOF
21935 #define HAVE_SINH 1
21936 _ACEOF
21937
21938 fi
21939
21940
21941
21942
21943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhl" >&5
21944 $as_echo_n "checking for sinhl... " >&6; }
21945 if test "${gcc_cv_math_func_sinhl+set}" = set; then :
21946 $as_echo_n "(cached) " >&6
21947 else
21948 if test x$gcc_no_link = xyes; then
21949 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21950 fi
21951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21952 /* end confdefs.h. */
21953
21954 #ifdef HAVE_COMPLEX_H
21955 #include <complex.h>
21956 #endif
21957 #ifdef HAVE_MATH_H
21958 #include <math.h>
21959 #endif
21960
21961 int (*ptr)() = (int (*)())sinhl;
21962
21963 int
21964 main ()
21965 {
21966 return 0;
21967 }
21968
21969 _ACEOF
21970 if ac_fn_c_try_link "$LINENO"; then :
21971 gcc_cv_math_func_sinhl=yes
21972 else
21973 gcc_cv_math_func_sinhl=no
21974 fi
21975 rm -f core conftest.err conftest.$ac_objext \
21976 conftest$ac_exeext conftest.$ac_ext
21977 fi
21978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhl" >&5
21979 $as_echo "$gcc_cv_math_func_sinhl" >&6; }
21980 if test $gcc_cv_math_func_sinhl = yes; then
21981
21982 cat >>confdefs.h <<_ACEOF
21983 #define HAVE_SINHL 1
21984 _ACEOF
21985
21986 fi
21987
21988
21989
21990
21991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhf" >&5
21992 $as_echo_n "checking for csinhf... " >&6; }
21993 if test "${gcc_cv_math_func_csinhf+set}" = set; then :
21994 $as_echo_n "(cached) " >&6
21995 else
21996 if test x$gcc_no_link = xyes; then
21997 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21998 fi
21999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22000 /* end confdefs.h. */
22001
22002 #ifdef HAVE_COMPLEX_H
22003 #include <complex.h>
22004 #endif
22005 #ifdef HAVE_MATH_H
22006 #include <math.h>
22007 #endif
22008
22009 int (*ptr)() = (int (*)())csinhf;
22010
22011 int
22012 main ()
22013 {
22014 return 0;
22015 }
22016
22017 _ACEOF
22018 if ac_fn_c_try_link "$LINENO"; then :
22019 gcc_cv_math_func_csinhf=yes
22020 else
22021 gcc_cv_math_func_csinhf=no
22022 fi
22023 rm -f core conftest.err conftest.$ac_objext \
22024 conftest$ac_exeext conftest.$ac_ext
22025 fi
22026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhf" >&5
22027 $as_echo "$gcc_cv_math_func_csinhf" >&6; }
22028 if test $gcc_cv_math_func_csinhf = yes; then
22029
22030 cat >>confdefs.h <<_ACEOF
22031 #define HAVE_CSINHF 1
22032 _ACEOF
22033
22034 fi
22035
22036
22037
22038
22039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinh" >&5
22040 $as_echo_n "checking for csinh... " >&6; }
22041 if test "${gcc_cv_math_func_csinh+set}" = set; then :
22042 $as_echo_n "(cached) " >&6
22043 else
22044 if test x$gcc_no_link = xyes; then
22045 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22046 fi
22047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22048 /* end confdefs.h. */
22049
22050 #ifdef HAVE_COMPLEX_H
22051 #include <complex.h>
22052 #endif
22053 #ifdef HAVE_MATH_H
22054 #include <math.h>
22055 #endif
22056
22057 int (*ptr)() = (int (*)())csinh;
22058
22059 int
22060 main ()
22061 {
22062 return 0;
22063 }
22064
22065 _ACEOF
22066 if ac_fn_c_try_link "$LINENO"; then :
22067 gcc_cv_math_func_csinh=yes
22068 else
22069 gcc_cv_math_func_csinh=no
22070 fi
22071 rm -f core conftest.err conftest.$ac_objext \
22072 conftest$ac_exeext conftest.$ac_ext
22073 fi
22074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinh" >&5
22075 $as_echo "$gcc_cv_math_func_csinh" >&6; }
22076 if test $gcc_cv_math_func_csinh = yes; then
22077
22078 cat >>confdefs.h <<_ACEOF
22079 #define HAVE_CSINH 1
22080 _ACEOF
22081
22082 fi
22083
22084
22085
22086
22087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhl" >&5
22088 $as_echo_n "checking for csinhl... " >&6; }
22089 if test "${gcc_cv_math_func_csinhl+set}" = set; then :
22090 $as_echo_n "(cached) " >&6
22091 else
22092 if test x$gcc_no_link = xyes; then
22093 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22094 fi
22095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22096 /* end confdefs.h. */
22097
22098 #ifdef HAVE_COMPLEX_H
22099 #include <complex.h>
22100 #endif
22101 #ifdef HAVE_MATH_H
22102 #include <math.h>
22103 #endif
22104
22105 int (*ptr)() = (int (*)())csinhl;
22106
22107 int
22108 main ()
22109 {
22110 return 0;
22111 }
22112
22113 _ACEOF
22114 if ac_fn_c_try_link "$LINENO"; then :
22115 gcc_cv_math_func_csinhl=yes
22116 else
22117 gcc_cv_math_func_csinhl=no
22118 fi
22119 rm -f core conftest.err conftest.$ac_objext \
22120 conftest$ac_exeext conftest.$ac_ext
22121 fi
22122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhl" >&5
22123 $as_echo "$gcc_cv_math_func_csinhl" >&6; }
22124 if test $gcc_cv_math_func_csinhl = yes; then
22125
22126 cat >>confdefs.h <<_ACEOF
22127 #define HAVE_CSINHL 1
22128 _ACEOF
22129
22130 fi
22131
22132
22133
22134
22135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf" >&5
22136 $as_echo_n "checking for sqrtf... " >&6; }
22137 if test "${gcc_cv_math_func_sqrtf+set}" = set; then :
22138 $as_echo_n "(cached) " >&6
22139 else
22140 if test x$gcc_no_link = xyes; then
22141 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22142 fi
22143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22144 /* end confdefs.h. */
22145
22146 #ifdef HAVE_COMPLEX_H
22147 #include <complex.h>
22148 #endif
22149 #ifdef HAVE_MATH_H
22150 #include <math.h>
22151 #endif
22152
22153 int (*ptr)() = (int (*)())sqrtf;
22154
22155 int
22156 main ()
22157 {
22158 return 0;
22159 }
22160
22161 _ACEOF
22162 if ac_fn_c_try_link "$LINENO"; then :
22163 gcc_cv_math_func_sqrtf=yes
22164 else
22165 gcc_cv_math_func_sqrtf=no
22166 fi
22167 rm -f core conftest.err conftest.$ac_objext \
22168 conftest$ac_exeext conftest.$ac_ext
22169 fi
22170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtf" >&5
22171 $as_echo "$gcc_cv_math_func_sqrtf" >&6; }
22172 if test $gcc_cv_math_func_sqrtf = yes; then
22173
22174 cat >>confdefs.h <<_ACEOF
22175 #define HAVE_SQRTF 1
22176 _ACEOF
22177
22178 fi
22179
22180
22181
22182
22183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt" >&5
22184 $as_echo_n "checking for sqrt... " >&6; }
22185 if test "${gcc_cv_math_func_sqrt+set}" = set; then :
22186 $as_echo_n "(cached) " >&6
22187 else
22188 if test x$gcc_no_link = xyes; then
22189 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22190 fi
22191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22192 /* end confdefs.h. */
22193
22194 #ifdef HAVE_COMPLEX_H
22195 #include <complex.h>
22196 #endif
22197 #ifdef HAVE_MATH_H
22198 #include <math.h>
22199 #endif
22200
22201 int (*ptr)() = (int (*)())sqrt;
22202
22203 int
22204 main ()
22205 {
22206 return 0;
22207 }
22208
22209 _ACEOF
22210 if ac_fn_c_try_link "$LINENO"; then :
22211 gcc_cv_math_func_sqrt=yes
22212 else
22213 gcc_cv_math_func_sqrt=no
22214 fi
22215 rm -f core conftest.err conftest.$ac_objext \
22216 conftest$ac_exeext conftest.$ac_ext
22217 fi
22218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrt" >&5
22219 $as_echo "$gcc_cv_math_func_sqrt" >&6; }
22220 if test $gcc_cv_math_func_sqrt = yes; then
22221
22222 cat >>confdefs.h <<_ACEOF
22223 #define HAVE_SQRT 1
22224 _ACEOF
22225
22226 fi
22227
22228
22229
22230
22231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl" >&5
22232 $as_echo_n "checking for sqrtl... " >&6; }
22233 if test "${gcc_cv_math_func_sqrtl+set}" = set; then :
22234 $as_echo_n "(cached) " >&6
22235 else
22236 if test x$gcc_no_link = xyes; then
22237 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22238 fi
22239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22240 /* end confdefs.h. */
22241
22242 #ifdef HAVE_COMPLEX_H
22243 #include <complex.h>
22244 #endif
22245 #ifdef HAVE_MATH_H
22246 #include <math.h>
22247 #endif
22248
22249 int (*ptr)() = (int (*)())sqrtl;
22250
22251 int
22252 main ()
22253 {
22254 return 0;
22255 }
22256
22257 _ACEOF
22258 if ac_fn_c_try_link "$LINENO"; then :
22259 gcc_cv_math_func_sqrtl=yes
22260 else
22261 gcc_cv_math_func_sqrtl=no
22262 fi
22263 rm -f core conftest.err conftest.$ac_objext \
22264 conftest$ac_exeext conftest.$ac_ext
22265 fi
22266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtl" >&5
22267 $as_echo "$gcc_cv_math_func_sqrtl" >&6; }
22268 if test $gcc_cv_math_func_sqrtl = yes; then
22269
22270 cat >>confdefs.h <<_ACEOF
22271 #define HAVE_SQRTL 1
22272 _ACEOF
22273
22274 fi
22275
22276
22277
22278
22279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtf" >&5
22280 $as_echo_n "checking for csqrtf... " >&6; }
22281 if test "${gcc_cv_math_func_csqrtf+set}" = set; then :
22282 $as_echo_n "(cached) " >&6
22283 else
22284 if test x$gcc_no_link = xyes; then
22285 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22286 fi
22287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22288 /* end confdefs.h. */
22289
22290 #ifdef HAVE_COMPLEX_H
22291 #include <complex.h>
22292 #endif
22293 #ifdef HAVE_MATH_H
22294 #include <math.h>
22295 #endif
22296
22297 int (*ptr)() = (int (*)())csqrtf;
22298
22299 int
22300 main ()
22301 {
22302 return 0;
22303 }
22304
22305 _ACEOF
22306 if ac_fn_c_try_link "$LINENO"; then :
22307 gcc_cv_math_func_csqrtf=yes
22308 else
22309 gcc_cv_math_func_csqrtf=no
22310 fi
22311 rm -f core conftest.err conftest.$ac_objext \
22312 conftest$ac_exeext conftest.$ac_ext
22313 fi
22314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtf" >&5
22315 $as_echo "$gcc_cv_math_func_csqrtf" >&6; }
22316 if test $gcc_cv_math_func_csqrtf = yes; then
22317
22318 cat >>confdefs.h <<_ACEOF
22319 #define HAVE_CSQRTF 1
22320 _ACEOF
22321
22322 fi
22323
22324
22325
22326
22327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrt" >&5
22328 $as_echo_n "checking for csqrt... " >&6; }
22329 if test "${gcc_cv_math_func_csqrt+set}" = set; then :
22330 $as_echo_n "(cached) " >&6
22331 else
22332 if test x$gcc_no_link = xyes; then
22333 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22334 fi
22335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22336 /* end confdefs.h. */
22337
22338 #ifdef HAVE_COMPLEX_H
22339 #include <complex.h>
22340 #endif
22341 #ifdef HAVE_MATH_H
22342 #include <math.h>
22343 #endif
22344
22345 int (*ptr)() = (int (*)())csqrt;
22346
22347 int
22348 main ()
22349 {
22350 return 0;
22351 }
22352
22353 _ACEOF
22354 if ac_fn_c_try_link "$LINENO"; then :
22355 gcc_cv_math_func_csqrt=yes
22356 else
22357 gcc_cv_math_func_csqrt=no
22358 fi
22359 rm -f core conftest.err conftest.$ac_objext \
22360 conftest$ac_exeext conftest.$ac_ext
22361 fi
22362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrt" >&5
22363 $as_echo "$gcc_cv_math_func_csqrt" >&6; }
22364 if test $gcc_cv_math_func_csqrt = yes; then
22365
22366 cat >>confdefs.h <<_ACEOF
22367 #define HAVE_CSQRT 1
22368 _ACEOF
22369
22370 fi
22371
22372
22373
22374
22375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtl" >&5
22376 $as_echo_n "checking for csqrtl... " >&6; }
22377 if test "${gcc_cv_math_func_csqrtl+set}" = set; then :
22378 $as_echo_n "(cached) " >&6
22379 else
22380 if test x$gcc_no_link = xyes; then
22381 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22382 fi
22383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22384 /* end confdefs.h. */
22385
22386 #ifdef HAVE_COMPLEX_H
22387 #include <complex.h>
22388 #endif
22389 #ifdef HAVE_MATH_H
22390 #include <math.h>
22391 #endif
22392
22393 int (*ptr)() = (int (*)())csqrtl;
22394
22395 int
22396 main ()
22397 {
22398 return 0;
22399 }
22400
22401 _ACEOF
22402 if ac_fn_c_try_link "$LINENO"; then :
22403 gcc_cv_math_func_csqrtl=yes
22404 else
22405 gcc_cv_math_func_csqrtl=no
22406 fi
22407 rm -f core conftest.err conftest.$ac_objext \
22408 conftest$ac_exeext conftest.$ac_ext
22409 fi
22410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtl" >&5
22411 $as_echo "$gcc_cv_math_func_csqrtl" >&6; }
22412 if test $gcc_cv_math_func_csqrtl = yes; then
22413
22414 cat >>confdefs.h <<_ACEOF
22415 #define HAVE_CSQRTL 1
22416 _ACEOF
22417
22418 fi
22419
22420
22421
22422
22423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanf" >&5
22424 $as_echo_n "checking for tanf... " >&6; }
22425 if test "${gcc_cv_math_func_tanf+set}" = set; then :
22426 $as_echo_n "(cached) " >&6
22427 else
22428 if test x$gcc_no_link = xyes; then
22429 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22430 fi
22431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22432 /* end confdefs.h. */
22433
22434 #ifdef HAVE_COMPLEX_H
22435 #include <complex.h>
22436 #endif
22437 #ifdef HAVE_MATH_H
22438 #include <math.h>
22439 #endif
22440
22441 int (*ptr)() = (int (*)())tanf;
22442
22443 int
22444 main ()
22445 {
22446 return 0;
22447 }
22448
22449 _ACEOF
22450 if ac_fn_c_try_link "$LINENO"; then :
22451 gcc_cv_math_func_tanf=yes
22452 else
22453 gcc_cv_math_func_tanf=no
22454 fi
22455 rm -f core conftest.err conftest.$ac_objext \
22456 conftest$ac_exeext conftest.$ac_ext
22457 fi
22458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanf" >&5
22459 $as_echo "$gcc_cv_math_func_tanf" >&6; }
22460 if test $gcc_cv_math_func_tanf = yes; then
22461
22462 cat >>confdefs.h <<_ACEOF
22463 #define HAVE_TANF 1
22464 _ACEOF
22465
22466 fi
22467
22468
22469
22470
22471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tan" >&5
22472 $as_echo_n "checking for tan... " >&6; }
22473 if test "${gcc_cv_math_func_tan+set}" = set; then :
22474 $as_echo_n "(cached) " >&6
22475 else
22476 if test x$gcc_no_link = xyes; then
22477 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22478 fi
22479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22480 /* end confdefs.h. */
22481
22482 #ifdef HAVE_COMPLEX_H
22483 #include <complex.h>
22484 #endif
22485 #ifdef HAVE_MATH_H
22486 #include <math.h>
22487 #endif
22488
22489 int (*ptr)() = (int (*)())tan;
22490
22491 int
22492 main ()
22493 {
22494 return 0;
22495 }
22496
22497 _ACEOF
22498 if ac_fn_c_try_link "$LINENO"; then :
22499 gcc_cv_math_func_tan=yes
22500 else
22501 gcc_cv_math_func_tan=no
22502 fi
22503 rm -f core conftest.err conftest.$ac_objext \
22504 conftest$ac_exeext conftest.$ac_ext
22505 fi
22506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tan" >&5
22507 $as_echo "$gcc_cv_math_func_tan" >&6; }
22508 if test $gcc_cv_math_func_tan = yes; then
22509
22510 cat >>confdefs.h <<_ACEOF
22511 #define HAVE_TAN 1
22512 _ACEOF
22513
22514 fi
22515
22516
22517
22518
22519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanl" >&5
22520 $as_echo_n "checking for tanl... " >&6; }
22521 if test "${gcc_cv_math_func_tanl+set}" = set; then :
22522 $as_echo_n "(cached) " >&6
22523 else
22524 if test x$gcc_no_link = xyes; then
22525 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22526 fi
22527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22528 /* end confdefs.h. */
22529
22530 #ifdef HAVE_COMPLEX_H
22531 #include <complex.h>
22532 #endif
22533 #ifdef HAVE_MATH_H
22534 #include <math.h>
22535 #endif
22536
22537 int (*ptr)() = (int (*)())tanl;
22538
22539 int
22540 main ()
22541 {
22542 return 0;
22543 }
22544
22545 _ACEOF
22546 if ac_fn_c_try_link "$LINENO"; then :
22547 gcc_cv_math_func_tanl=yes
22548 else
22549 gcc_cv_math_func_tanl=no
22550 fi
22551 rm -f core conftest.err conftest.$ac_objext \
22552 conftest$ac_exeext conftest.$ac_ext
22553 fi
22554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanl" >&5
22555 $as_echo "$gcc_cv_math_func_tanl" >&6; }
22556 if test $gcc_cv_math_func_tanl = yes; then
22557
22558 cat >>confdefs.h <<_ACEOF
22559 #define HAVE_TANL 1
22560 _ACEOF
22561
22562 fi
22563
22564
22565
22566
22567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanf" >&5
22568 $as_echo_n "checking for ctanf... " >&6; }
22569 if test "${gcc_cv_math_func_ctanf+set}" = set; then :
22570 $as_echo_n "(cached) " >&6
22571 else
22572 if test x$gcc_no_link = xyes; then
22573 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22574 fi
22575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22576 /* end confdefs.h. */
22577
22578 #ifdef HAVE_COMPLEX_H
22579 #include <complex.h>
22580 #endif
22581 #ifdef HAVE_MATH_H
22582 #include <math.h>
22583 #endif
22584
22585 int (*ptr)() = (int (*)())ctanf;
22586
22587 int
22588 main ()
22589 {
22590 return 0;
22591 }
22592
22593 _ACEOF
22594 if ac_fn_c_try_link "$LINENO"; then :
22595 gcc_cv_math_func_ctanf=yes
22596 else
22597 gcc_cv_math_func_ctanf=no
22598 fi
22599 rm -f core conftest.err conftest.$ac_objext \
22600 conftest$ac_exeext conftest.$ac_ext
22601 fi
22602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanf" >&5
22603 $as_echo "$gcc_cv_math_func_ctanf" >&6; }
22604 if test $gcc_cv_math_func_ctanf = yes; then
22605
22606 cat >>confdefs.h <<_ACEOF
22607 #define HAVE_CTANF 1
22608 _ACEOF
22609
22610 fi
22611
22612
22613
22614
22615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctan" >&5
22616 $as_echo_n "checking for ctan... " >&6; }
22617 if test "${gcc_cv_math_func_ctan+set}" = set; then :
22618 $as_echo_n "(cached) " >&6
22619 else
22620 if test x$gcc_no_link = xyes; then
22621 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22622 fi
22623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22624 /* end confdefs.h. */
22625
22626 #ifdef HAVE_COMPLEX_H
22627 #include <complex.h>
22628 #endif
22629 #ifdef HAVE_MATH_H
22630 #include <math.h>
22631 #endif
22632
22633 int (*ptr)() = (int (*)())ctan;
22634
22635 int
22636 main ()
22637 {
22638 return 0;
22639 }
22640
22641 _ACEOF
22642 if ac_fn_c_try_link "$LINENO"; then :
22643 gcc_cv_math_func_ctan=yes
22644 else
22645 gcc_cv_math_func_ctan=no
22646 fi
22647 rm -f core conftest.err conftest.$ac_objext \
22648 conftest$ac_exeext conftest.$ac_ext
22649 fi
22650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctan" >&5
22651 $as_echo "$gcc_cv_math_func_ctan" >&6; }
22652 if test $gcc_cv_math_func_ctan = yes; then
22653
22654 cat >>confdefs.h <<_ACEOF
22655 #define HAVE_CTAN 1
22656 _ACEOF
22657
22658 fi
22659
22660
22661
22662
22663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanl" >&5
22664 $as_echo_n "checking for ctanl... " >&6; }
22665 if test "${gcc_cv_math_func_ctanl+set}" = set; then :
22666 $as_echo_n "(cached) " >&6
22667 else
22668 if test x$gcc_no_link = xyes; then
22669 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22670 fi
22671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22672 /* end confdefs.h. */
22673
22674 #ifdef HAVE_COMPLEX_H
22675 #include <complex.h>
22676 #endif
22677 #ifdef HAVE_MATH_H
22678 #include <math.h>
22679 #endif
22680
22681 int (*ptr)() = (int (*)())ctanl;
22682
22683 int
22684 main ()
22685 {
22686 return 0;
22687 }
22688
22689 _ACEOF
22690 if ac_fn_c_try_link "$LINENO"; then :
22691 gcc_cv_math_func_ctanl=yes
22692 else
22693 gcc_cv_math_func_ctanl=no
22694 fi
22695 rm -f core conftest.err conftest.$ac_objext \
22696 conftest$ac_exeext conftest.$ac_ext
22697 fi
22698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanl" >&5
22699 $as_echo "$gcc_cv_math_func_ctanl" >&6; }
22700 if test $gcc_cv_math_func_ctanl = yes; then
22701
22702 cat >>confdefs.h <<_ACEOF
22703 #define HAVE_CTANL 1
22704 _ACEOF
22705
22706 fi
22707
22708
22709
22710
22711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhf" >&5
22712 $as_echo_n "checking for tanhf... " >&6; }
22713 if test "${gcc_cv_math_func_tanhf+set}" = set; then :
22714 $as_echo_n "(cached) " >&6
22715 else
22716 if test x$gcc_no_link = xyes; then
22717 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22718 fi
22719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22720 /* end confdefs.h. */
22721
22722 #ifdef HAVE_COMPLEX_H
22723 #include <complex.h>
22724 #endif
22725 #ifdef HAVE_MATH_H
22726 #include <math.h>
22727 #endif
22728
22729 int (*ptr)() = (int (*)())tanhf;
22730
22731 int
22732 main ()
22733 {
22734 return 0;
22735 }
22736
22737 _ACEOF
22738 if ac_fn_c_try_link "$LINENO"; then :
22739 gcc_cv_math_func_tanhf=yes
22740 else
22741 gcc_cv_math_func_tanhf=no
22742 fi
22743 rm -f core conftest.err conftest.$ac_objext \
22744 conftest$ac_exeext conftest.$ac_ext
22745 fi
22746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhf" >&5
22747 $as_echo "$gcc_cv_math_func_tanhf" >&6; }
22748 if test $gcc_cv_math_func_tanhf = yes; then
22749
22750 cat >>confdefs.h <<_ACEOF
22751 #define HAVE_TANHF 1
22752 _ACEOF
22753
22754 fi
22755
22756
22757
22758
22759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanh" >&5
22760 $as_echo_n "checking for tanh... " >&6; }
22761 if test "${gcc_cv_math_func_tanh+set}" = set; then :
22762 $as_echo_n "(cached) " >&6
22763 else
22764 if test x$gcc_no_link = xyes; then
22765 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22766 fi
22767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22768 /* end confdefs.h. */
22769
22770 #ifdef HAVE_COMPLEX_H
22771 #include <complex.h>
22772 #endif
22773 #ifdef HAVE_MATH_H
22774 #include <math.h>
22775 #endif
22776
22777 int (*ptr)() = (int (*)())tanh;
22778
22779 int
22780 main ()
22781 {
22782 return 0;
22783 }
22784
22785 _ACEOF
22786 if ac_fn_c_try_link "$LINENO"; then :
22787 gcc_cv_math_func_tanh=yes
22788 else
22789 gcc_cv_math_func_tanh=no
22790 fi
22791 rm -f core conftest.err conftest.$ac_objext \
22792 conftest$ac_exeext conftest.$ac_ext
22793 fi
22794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanh" >&5
22795 $as_echo "$gcc_cv_math_func_tanh" >&6; }
22796 if test $gcc_cv_math_func_tanh = yes; then
22797
22798 cat >>confdefs.h <<_ACEOF
22799 #define HAVE_TANH 1
22800 _ACEOF
22801
22802 fi
22803
22804
22805
22806
22807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhl" >&5
22808 $as_echo_n "checking for tanhl... " >&6; }
22809 if test "${gcc_cv_math_func_tanhl+set}" = set; then :
22810 $as_echo_n "(cached) " >&6
22811 else
22812 if test x$gcc_no_link = xyes; then
22813 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22814 fi
22815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22816 /* end confdefs.h. */
22817
22818 #ifdef HAVE_COMPLEX_H
22819 #include <complex.h>
22820 #endif
22821 #ifdef HAVE_MATH_H
22822 #include <math.h>
22823 #endif
22824
22825 int (*ptr)() = (int (*)())tanhl;
22826
22827 int
22828 main ()
22829 {
22830 return 0;
22831 }
22832
22833 _ACEOF
22834 if ac_fn_c_try_link "$LINENO"; then :
22835 gcc_cv_math_func_tanhl=yes
22836 else
22837 gcc_cv_math_func_tanhl=no
22838 fi
22839 rm -f core conftest.err conftest.$ac_objext \
22840 conftest$ac_exeext conftest.$ac_ext
22841 fi
22842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhl" >&5
22843 $as_echo "$gcc_cv_math_func_tanhl" >&6; }
22844 if test $gcc_cv_math_func_tanhl = yes; then
22845
22846 cat >>confdefs.h <<_ACEOF
22847 #define HAVE_TANHL 1
22848 _ACEOF
22849
22850 fi
22851
22852
22853
22854
22855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhf" >&5
22856 $as_echo_n "checking for ctanhf... " >&6; }
22857 if test "${gcc_cv_math_func_ctanhf+set}" = set; then :
22858 $as_echo_n "(cached) " >&6
22859 else
22860 if test x$gcc_no_link = xyes; then
22861 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22862 fi
22863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22864 /* end confdefs.h. */
22865
22866 #ifdef HAVE_COMPLEX_H
22867 #include <complex.h>
22868 #endif
22869 #ifdef HAVE_MATH_H
22870 #include <math.h>
22871 #endif
22872
22873 int (*ptr)() = (int (*)())ctanhf;
22874
22875 int
22876 main ()
22877 {
22878 return 0;
22879 }
22880
22881 _ACEOF
22882 if ac_fn_c_try_link "$LINENO"; then :
22883 gcc_cv_math_func_ctanhf=yes
22884 else
22885 gcc_cv_math_func_ctanhf=no
22886 fi
22887 rm -f core conftest.err conftest.$ac_objext \
22888 conftest$ac_exeext conftest.$ac_ext
22889 fi
22890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhf" >&5
22891 $as_echo "$gcc_cv_math_func_ctanhf" >&6; }
22892 if test $gcc_cv_math_func_ctanhf = yes; then
22893
22894 cat >>confdefs.h <<_ACEOF
22895 #define HAVE_CTANHF 1
22896 _ACEOF
22897
22898 fi
22899
22900
22901
22902
22903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanh" >&5
22904 $as_echo_n "checking for ctanh... " >&6; }
22905 if test "${gcc_cv_math_func_ctanh+set}" = set; then :
22906 $as_echo_n "(cached) " >&6
22907 else
22908 if test x$gcc_no_link = xyes; then
22909 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22910 fi
22911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22912 /* end confdefs.h. */
22913
22914 #ifdef HAVE_COMPLEX_H
22915 #include <complex.h>
22916 #endif
22917 #ifdef HAVE_MATH_H
22918 #include <math.h>
22919 #endif
22920
22921 int (*ptr)() = (int (*)())ctanh;
22922
22923 int
22924 main ()
22925 {
22926 return 0;
22927 }
22928
22929 _ACEOF
22930 if ac_fn_c_try_link "$LINENO"; then :
22931 gcc_cv_math_func_ctanh=yes
22932 else
22933 gcc_cv_math_func_ctanh=no
22934 fi
22935 rm -f core conftest.err conftest.$ac_objext \
22936 conftest$ac_exeext conftest.$ac_ext
22937 fi
22938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanh" >&5
22939 $as_echo "$gcc_cv_math_func_ctanh" >&6; }
22940 if test $gcc_cv_math_func_ctanh = yes; then
22941
22942 cat >>confdefs.h <<_ACEOF
22943 #define HAVE_CTANH 1
22944 _ACEOF
22945
22946 fi
22947
22948
22949
22950
22951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhl" >&5
22952 $as_echo_n "checking for ctanhl... " >&6; }
22953 if test "${gcc_cv_math_func_ctanhl+set}" = set; then :
22954 $as_echo_n "(cached) " >&6
22955 else
22956 if test x$gcc_no_link = xyes; then
22957 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22958 fi
22959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22960 /* end confdefs.h. */
22961
22962 #ifdef HAVE_COMPLEX_H
22963 #include <complex.h>
22964 #endif
22965 #ifdef HAVE_MATH_H
22966 #include <math.h>
22967 #endif
22968
22969 int (*ptr)() = (int (*)())ctanhl;
22970
22971 int
22972 main ()
22973 {
22974 return 0;
22975 }
22976
22977 _ACEOF
22978 if ac_fn_c_try_link "$LINENO"; then :
22979 gcc_cv_math_func_ctanhl=yes
22980 else
22981 gcc_cv_math_func_ctanhl=no
22982 fi
22983 rm -f core conftest.err conftest.$ac_objext \
22984 conftest$ac_exeext conftest.$ac_ext
22985 fi
22986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhl" >&5
22987 $as_echo "$gcc_cv_math_func_ctanhl" >&6; }
22988 if test $gcc_cv_math_func_ctanhl = yes; then
22989
22990 cat >>confdefs.h <<_ACEOF
22991 #define HAVE_CTANHL 1
22992 _ACEOF
22993
22994 fi
22995
22996
22997
22998
22999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncf" >&5
23000 $as_echo_n "checking for truncf... " >&6; }
23001 if test "${gcc_cv_math_func_truncf+set}" = set; then :
23002 $as_echo_n "(cached) " >&6
23003 else
23004 if test x$gcc_no_link = xyes; then
23005 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23006 fi
23007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23008 /* end confdefs.h. */
23009
23010 #ifdef HAVE_COMPLEX_H
23011 #include <complex.h>
23012 #endif
23013 #ifdef HAVE_MATH_H
23014 #include <math.h>
23015 #endif
23016
23017 int (*ptr)() = (int (*)())truncf;
23018
23019 int
23020 main ()
23021 {
23022 return 0;
23023 }
23024
23025 _ACEOF
23026 if ac_fn_c_try_link "$LINENO"; then :
23027 gcc_cv_math_func_truncf=yes
23028 else
23029 gcc_cv_math_func_truncf=no
23030 fi
23031 rm -f core conftest.err conftest.$ac_objext \
23032 conftest$ac_exeext conftest.$ac_ext
23033 fi
23034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncf" >&5
23035 $as_echo "$gcc_cv_math_func_truncf" >&6; }
23036 if test $gcc_cv_math_func_truncf = yes; then
23037
23038 cat >>confdefs.h <<_ACEOF
23039 #define HAVE_TRUNCF 1
23040 _ACEOF
23041
23042 fi
23043
23044
23045
23046
23047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for trunc" >&5
23048 $as_echo_n "checking for trunc... " >&6; }
23049 if test "${gcc_cv_math_func_trunc+set}" = set; then :
23050 $as_echo_n "(cached) " >&6
23051 else
23052 if test x$gcc_no_link = xyes; then
23053 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23054 fi
23055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23056 /* end confdefs.h. */
23057
23058 #ifdef HAVE_COMPLEX_H
23059 #include <complex.h>
23060 #endif
23061 #ifdef HAVE_MATH_H
23062 #include <math.h>
23063 #endif
23064
23065 int (*ptr)() = (int (*)())trunc;
23066
23067 int
23068 main ()
23069 {
23070 return 0;
23071 }
23072
23073 _ACEOF
23074 if ac_fn_c_try_link "$LINENO"; then :
23075 gcc_cv_math_func_trunc=yes
23076 else
23077 gcc_cv_math_func_trunc=no
23078 fi
23079 rm -f core conftest.err conftest.$ac_objext \
23080 conftest$ac_exeext conftest.$ac_ext
23081 fi
23082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_trunc" >&5
23083 $as_echo "$gcc_cv_math_func_trunc" >&6; }
23084 if test $gcc_cv_math_func_trunc = yes; then
23085
23086 cat >>confdefs.h <<_ACEOF
23087 #define HAVE_TRUNC 1
23088 _ACEOF
23089
23090 fi
23091
23092
23093
23094
23095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncl" >&5
23096 $as_echo_n "checking for truncl... " >&6; }
23097 if test "${gcc_cv_math_func_truncl+set}" = set; then :
23098 $as_echo_n "(cached) " >&6
23099 else
23100 if test x$gcc_no_link = xyes; then
23101 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23102 fi
23103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23104 /* end confdefs.h. */
23105
23106 #ifdef HAVE_COMPLEX_H
23107 #include <complex.h>
23108 #endif
23109 #ifdef HAVE_MATH_H
23110 #include <math.h>
23111 #endif
23112
23113 int (*ptr)() = (int (*)())truncl;
23114
23115 int
23116 main ()
23117 {
23118 return 0;
23119 }
23120
23121 _ACEOF
23122 if ac_fn_c_try_link "$LINENO"; then :
23123 gcc_cv_math_func_truncl=yes
23124 else
23125 gcc_cv_math_func_truncl=no
23126 fi
23127 rm -f core conftest.err conftest.$ac_objext \
23128 conftest$ac_exeext conftest.$ac_ext
23129 fi
23130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncl" >&5
23131 $as_echo "$gcc_cv_math_func_truncl" >&6; }
23132 if test $gcc_cv_math_func_truncl = yes; then
23133
23134 cat >>confdefs.h <<_ACEOF
23135 #define HAVE_TRUNCL 1
23136 _ACEOF
23137
23138 fi
23139
23140
23141
23142
23143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erff" >&5
23144 $as_echo_n "checking for erff... " >&6; }
23145 if test "${gcc_cv_math_func_erff+set}" = set; then :
23146 $as_echo_n "(cached) " >&6
23147 else
23148 if test x$gcc_no_link = xyes; then
23149 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23150 fi
23151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23152 /* end confdefs.h. */
23153
23154 #ifdef HAVE_COMPLEX_H
23155 #include <complex.h>
23156 #endif
23157 #ifdef HAVE_MATH_H
23158 #include <math.h>
23159 #endif
23160
23161 int (*ptr)() = (int (*)())erff;
23162
23163 int
23164 main ()
23165 {
23166 return 0;
23167 }
23168
23169 _ACEOF
23170 if ac_fn_c_try_link "$LINENO"; then :
23171 gcc_cv_math_func_erff=yes
23172 else
23173 gcc_cv_math_func_erff=no
23174 fi
23175 rm -f core conftest.err conftest.$ac_objext \
23176 conftest$ac_exeext conftest.$ac_ext
23177 fi
23178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erff" >&5
23179 $as_echo "$gcc_cv_math_func_erff" >&6; }
23180 if test $gcc_cv_math_func_erff = yes; then
23181
23182 cat >>confdefs.h <<_ACEOF
23183 #define HAVE_ERFF 1
23184 _ACEOF
23185
23186 fi
23187
23188
23189
23190
23191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erf" >&5
23192 $as_echo_n "checking for erf... " >&6; }
23193 if test "${gcc_cv_math_func_erf+set}" = set; then :
23194 $as_echo_n "(cached) " >&6
23195 else
23196 if test x$gcc_no_link = xyes; then
23197 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23198 fi
23199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23200 /* end confdefs.h. */
23201
23202 #ifdef HAVE_COMPLEX_H
23203 #include <complex.h>
23204 #endif
23205 #ifdef HAVE_MATH_H
23206 #include <math.h>
23207 #endif
23208
23209 int (*ptr)() = (int (*)())erf;
23210
23211 int
23212 main ()
23213 {
23214 return 0;
23215 }
23216
23217 _ACEOF
23218 if ac_fn_c_try_link "$LINENO"; then :
23219 gcc_cv_math_func_erf=yes
23220 else
23221 gcc_cv_math_func_erf=no
23222 fi
23223 rm -f core conftest.err conftest.$ac_objext \
23224 conftest$ac_exeext conftest.$ac_ext
23225 fi
23226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erf" >&5
23227 $as_echo "$gcc_cv_math_func_erf" >&6; }
23228 if test $gcc_cv_math_func_erf = yes; then
23229
23230 cat >>confdefs.h <<_ACEOF
23231 #define HAVE_ERF 1
23232 _ACEOF
23233
23234 fi
23235
23236
23237
23238
23239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfl" >&5
23240 $as_echo_n "checking for erfl... " >&6; }
23241 if test "${gcc_cv_math_func_erfl+set}" = set; then :
23242 $as_echo_n "(cached) " >&6
23243 else
23244 if test x$gcc_no_link = xyes; then
23245 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23246 fi
23247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23248 /* end confdefs.h. */
23249
23250 #ifdef HAVE_COMPLEX_H
23251 #include <complex.h>
23252 #endif
23253 #ifdef HAVE_MATH_H
23254 #include <math.h>
23255 #endif
23256
23257 int (*ptr)() = (int (*)())erfl;
23258
23259 int
23260 main ()
23261 {
23262 return 0;
23263 }
23264
23265 _ACEOF
23266 if ac_fn_c_try_link "$LINENO"; then :
23267 gcc_cv_math_func_erfl=yes
23268 else
23269 gcc_cv_math_func_erfl=no
23270 fi
23271 rm -f core conftest.err conftest.$ac_objext \
23272 conftest$ac_exeext conftest.$ac_ext
23273 fi
23274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfl" >&5
23275 $as_echo "$gcc_cv_math_func_erfl" >&6; }
23276 if test $gcc_cv_math_func_erfl = yes; then
23277
23278 cat >>confdefs.h <<_ACEOF
23279 #define HAVE_ERFL 1
23280 _ACEOF
23281
23282 fi
23283
23284
23285
23286
23287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcf" >&5
23288 $as_echo_n "checking for erfcf... " >&6; }
23289 if test "${gcc_cv_math_func_erfcf+set}" = set; then :
23290 $as_echo_n "(cached) " >&6
23291 else
23292 if test x$gcc_no_link = xyes; then
23293 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23294 fi
23295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23296 /* end confdefs.h. */
23297
23298 #ifdef HAVE_COMPLEX_H
23299 #include <complex.h>
23300 #endif
23301 #ifdef HAVE_MATH_H
23302 #include <math.h>
23303 #endif
23304
23305 int (*ptr)() = (int (*)())erfcf;
23306
23307 int
23308 main ()
23309 {
23310 return 0;
23311 }
23312
23313 _ACEOF
23314 if ac_fn_c_try_link "$LINENO"; then :
23315 gcc_cv_math_func_erfcf=yes
23316 else
23317 gcc_cv_math_func_erfcf=no
23318 fi
23319 rm -f core conftest.err conftest.$ac_objext \
23320 conftest$ac_exeext conftest.$ac_ext
23321 fi
23322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcf" >&5
23323 $as_echo "$gcc_cv_math_func_erfcf" >&6; }
23324 if test $gcc_cv_math_func_erfcf = yes; then
23325
23326 cat >>confdefs.h <<_ACEOF
23327 #define HAVE_ERFCF 1
23328 _ACEOF
23329
23330 fi
23331
23332
23333
23334
23335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfc" >&5
23336 $as_echo_n "checking for erfc... " >&6; }
23337 if test "${gcc_cv_math_func_erfc+set}" = set; then :
23338 $as_echo_n "(cached) " >&6
23339 else
23340 if test x$gcc_no_link = xyes; then
23341 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23342 fi
23343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23344 /* end confdefs.h. */
23345
23346 #ifdef HAVE_COMPLEX_H
23347 #include <complex.h>
23348 #endif
23349 #ifdef HAVE_MATH_H
23350 #include <math.h>
23351 #endif
23352
23353 int (*ptr)() = (int (*)())erfc;
23354
23355 int
23356 main ()
23357 {
23358 return 0;
23359 }
23360
23361 _ACEOF
23362 if ac_fn_c_try_link "$LINENO"; then :
23363 gcc_cv_math_func_erfc=yes
23364 else
23365 gcc_cv_math_func_erfc=no
23366 fi
23367 rm -f core conftest.err conftest.$ac_objext \
23368 conftest$ac_exeext conftest.$ac_ext
23369 fi
23370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfc" >&5
23371 $as_echo "$gcc_cv_math_func_erfc" >&6; }
23372 if test $gcc_cv_math_func_erfc = yes; then
23373
23374 cat >>confdefs.h <<_ACEOF
23375 #define HAVE_ERFC 1
23376 _ACEOF
23377
23378 fi
23379
23380
23381
23382
23383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcl" >&5
23384 $as_echo_n "checking for erfcl... " >&6; }
23385 if test "${gcc_cv_math_func_erfcl+set}" = set; then :
23386 $as_echo_n "(cached) " >&6
23387 else
23388 if test x$gcc_no_link = xyes; then
23389 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23390 fi
23391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23392 /* end confdefs.h. */
23393
23394 #ifdef HAVE_COMPLEX_H
23395 #include <complex.h>
23396 #endif
23397 #ifdef HAVE_MATH_H
23398 #include <math.h>
23399 #endif
23400
23401 int (*ptr)() = (int (*)())erfcl;
23402
23403 int
23404 main ()
23405 {
23406 return 0;
23407 }
23408
23409 _ACEOF
23410 if ac_fn_c_try_link "$LINENO"; then :
23411 gcc_cv_math_func_erfcl=yes
23412 else
23413 gcc_cv_math_func_erfcl=no
23414 fi
23415 rm -f core conftest.err conftest.$ac_objext \
23416 conftest$ac_exeext conftest.$ac_ext
23417 fi
23418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcl" >&5
23419 $as_echo "$gcc_cv_math_func_erfcl" >&6; }
23420 if test $gcc_cv_math_func_erfcl = yes; then
23421
23422 cat >>confdefs.h <<_ACEOF
23423 #define HAVE_ERFCL 1
23424 _ACEOF
23425
23426 fi
23427
23428
23429
23430
23431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0f" >&5
23432 $as_echo_n "checking for j0f... " >&6; }
23433 if test "${gcc_cv_math_func_j0f+set}" = set; then :
23434 $as_echo_n "(cached) " >&6
23435 else
23436 if test x$gcc_no_link = xyes; then
23437 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23438 fi
23439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23440 /* end confdefs.h. */
23441
23442 #ifdef HAVE_COMPLEX_H
23443 #include <complex.h>
23444 #endif
23445 #ifdef HAVE_MATH_H
23446 #include <math.h>
23447 #endif
23448
23449 int (*ptr)() = (int (*)())j0f;
23450
23451 int
23452 main ()
23453 {
23454 return 0;
23455 }
23456
23457 _ACEOF
23458 if ac_fn_c_try_link "$LINENO"; then :
23459 gcc_cv_math_func_j0f=yes
23460 else
23461 gcc_cv_math_func_j0f=no
23462 fi
23463 rm -f core conftest.err conftest.$ac_objext \
23464 conftest$ac_exeext conftest.$ac_ext
23465 fi
23466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0f" >&5
23467 $as_echo "$gcc_cv_math_func_j0f" >&6; }
23468 if test $gcc_cv_math_func_j0f = yes; then
23469
23470 cat >>confdefs.h <<_ACEOF
23471 #define HAVE_J0F 1
23472 _ACEOF
23473
23474 fi
23475
23476
23477
23478
23479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0" >&5
23480 $as_echo_n "checking for j0... " >&6; }
23481 if test "${gcc_cv_math_func_j0+set}" = set; then :
23482 $as_echo_n "(cached) " >&6
23483 else
23484 if test x$gcc_no_link = xyes; then
23485 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23486 fi
23487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23488 /* end confdefs.h. */
23489
23490 #ifdef HAVE_COMPLEX_H
23491 #include <complex.h>
23492 #endif
23493 #ifdef HAVE_MATH_H
23494 #include <math.h>
23495 #endif
23496
23497 int (*ptr)() = (int (*)())j0;
23498
23499 int
23500 main ()
23501 {
23502 return 0;
23503 }
23504
23505 _ACEOF
23506 if ac_fn_c_try_link "$LINENO"; then :
23507 gcc_cv_math_func_j0=yes
23508 else
23509 gcc_cv_math_func_j0=no
23510 fi
23511 rm -f core conftest.err conftest.$ac_objext \
23512 conftest$ac_exeext conftest.$ac_ext
23513 fi
23514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0" >&5
23515 $as_echo "$gcc_cv_math_func_j0" >&6; }
23516 if test $gcc_cv_math_func_j0 = yes; then
23517
23518 cat >>confdefs.h <<_ACEOF
23519 #define HAVE_J0 1
23520 _ACEOF
23521
23522 fi
23523
23524
23525
23526
23527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0l" >&5
23528 $as_echo_n "checking for j0l... " >&6; }
23529 if test "${gcc_cv_math_func_j0l+set}" = set; then :
23530 $as_echo_n "(cached) " >&6
23531 else
23532 if test x$gcc_no_link = xyes; then
23533 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23534 fi
23535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23536 /* end confdefs.h. */
23537
23538 #ifdef HAVE_COMPLEX_H
23539 #include <complex.h>
23540 #endif
23541 #ifdef HAVE_MATH_H
23542 #include <math.h>
23543 #endif
23544
23545 int (*ptr)() = (int (*)())j0l;
23546
23547 int
23548 main ()
23549 {
23550 return 0;
23551 }
23552
23553 _ACEOF
23554 if ac_fn_c_try_link "$LINENO"; then :
23555 gcc_cv_math_func_j0l=yes
23556 else
23557 gcc_cv_math_func_j0l=no
23558 fi
23559 rm -f core conftest.err conftest.$ac_objext \
23560 conftest$ac_exeext conftest.$ac_ext
23561 fi
23562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0l" >&5
23563 $as_echo "$gcc_cv_math_func_j0l" >&6; }
23564 if test $gcc_cv_math_func_j0l = yes; then
23565
23566 cat >>confdefs.h <<_ACEOF
23567 #define HAVE_J0L 1
23568 _ACEOF
23569
23570 fi
23571
23572
23573
23574
23575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1f" >&5
23576 $as_echo_n "checking for j1f... " >&6; }
23577 if test "${gcc_cv_math_func_j1f+set}" = set; then :
23578 $as_echo_n "(cached) " >&6
23579 else
23580 if test x$gcc_no_link = xyes; then
23581 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23582 fi
23583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23584 /* end confdefs.h. */
23585
23586 #ifdef HAVE_COMPLEX_H
23587 #include <complex.h>
23588 #endif
23589 #ifdef HAVE_MATH_H
23590 #include <math.h>
23591 #endif
23592
23593 int (*ptr)() = (int (*)())j1f;
23594
23595 int
23596 main ()
23597 {
23598 return 0;
23599 }
23600
23601 _ACEOF
23602 if ac_fn_c_try_link "$LINENO"; then :
23603 gcc_cv_math_func_j1f=yes
23604 else
23605 gcc_cv_math_func_j1f=no
23606 fi
23607 rm -f core conftest.err conftest.$ac_objext \
23608 conftest$ac_exeext conftest.$ac_ext
23609 fi
23610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1f" >&5
23611 $as_echo "$gcc_cv_math_func_j1f" >&6; }
23612 if test $gcc_cv_math_func_j1f = yes; then
23613
23614 cat >>confdefs.h <<_ACEOF
23615 #define HAVE_J1F 1
23616 _ACEOF
23617
23618 fi
23619
23620
23621
23622
23623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1" >&5
23624 $as_echo_n "checking for j1... " >&6; }
23625 if test "${gcc_cv_math_func_j1+set}" = set; then :
23626 $as_echo_n "(cached) " >&6
23627 else
23628 if test x$gcc_no_link = xyes; then
23629 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23630 fi
23631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23632 /* end confdefs.h. */
23633
23634 #ifdef HAVE_COMPLEX_H
23635 #include <complex.h>
23636 #endif
23637 #ifdef HAVE_MATH_H
23638 #include <math.h>
23639 #endif
23640
23641 int (*ptr)() = (int (*)())j1;
23642
23643 int
23644 main ()
23645 {
23646 return 0;
23647 }
23648
23649 _ACEOF
23650 if ac_fn_c_try_link "$LINENO"; then :
23651 gcc_cv_math_func_j1=yes
23652 else
23653 gcc_cv_math_func_j1=no
23654 fi
23655 rm -f core conftest.err conftest.$ac_objext \
23656 conftest$ac_exeext conftest.$ac_ext
23657 fi
23658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1" >&5
23659 $as_echo "$gcc_cv_math_func_j1" >&6; }
23660 if test $gcc_cv_math_func_j1 = yes; then
23661
23662 cat >>confdefs.h <<_ACEOF
23663 #define HAVE_J1 1
23664 _ACEOF
23665
23666 fi
23667
23668
23669
23670
23671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1l" >&5
23672 $as_echo_n "checking for j1l... " >&6; }
23673 if test "${gcc_cv_math_func_j1l+set}" = set; then :
23674 $as_echo_n "(cached) " >&6
23675 else
23676 if test x$gcc_no_link = xyes; then
23677 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23678 fi
23679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23680 /* end confdefs.h. */
23681
23682 #ifdef HAVE_COMPLEX_H
23683 #include <complex.h>
23684 #endif
23685 #ifdef HAVE_MATH_H
23686 #include <math.h>
23687 #endif
23688
23689 int (*ptr)() = (int (*)())j1l;
23690
23691 int
23692 main ()
23693 {
23694 return 0;
23695 }
23696
23697 _ACEOF
23698 if ac_fn_c_try_link "$LINENO"; then :
23699 gcc_cv_math_func_j1l=yes
23700 else
23701 gcc_cv_math_func_j1l=no
23702 fi
23703 rm -f core conftest.err conftest.$ac_objext \
23704 conftest$ac_exeext conftest.$ac_ext
23705 fi
23706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1l" >&5
23707 $as_echo "$gcc_cv_math_func_j1l" >&6; }
23708 if test $gcc_cv_math_func_j1l = yes; then
23709
23710 cat >>confdefs.h <<_ACEOF
23711 #define HAVE_J1L 1
23712 _ACEOF
23713
23714 fi
23715
23716
23717
23718
23719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnf" >&5
23720 $as_echo_n "checking for jnf... " >&6; }
23721 if test "${gcc_cv_math_func_jnf+set}" = set; then :
23722 $as_echo_n "(cached) " >&6
23723 else
23724 if test x$gcc_no_link = xyes; then
23725 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23726 fi
23727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23728 /* end confdefs.h. */
23729
23730 #ifdef HAVE_COMPLEX_H
23731 #include <complex.h>
23732 #endif
23733 #ifdef HAVE_MATH_H
23734 #include <math.h>
23735 #endif
23736
23737 int (*ptr)() = (int (*)())jnf;
23738
23739 int
23740 main ()
23741 {
23742 return 0;
23743 }
23744
23745 _ACEOF
23746 if ac_fn_c_try_link "$LINENO"; then :
23747 gcc_cv_math_func_jnf=yes
23748 else
23749 gcc_cv_math_func_jnf=no
23750 fi
23751 rm -f core conftest.err conftest.$ac_objext \
23752 conftest$ac_exeext conftest.$ac_ext
23753 fi
23754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnf" >&5
23755 $as_echo "$gcc_cv_math_func_jnf" >&6; }
23756 if test $gcc_cv_math_func_jnf = yes; then
23757
23758 cat >>confdefs.h <<_ACEOF
23759 #define HAVE_JNF 1
23760 _ACEOF
23761
23762 fi
23763
23764
23765
23766
23767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jn" >&5
23768 $as_echo_n "checking for jn... " >&6; }
23769 if test "${gcc_cv_math_func_jn+set}" = set; then :
23770 $as_echo_n "(cached) " >&6
23771 else
23772 if test x$gcc_no_link = xyes; then
23773 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23774 fi
23775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23776 /* end confdefs.h. */
23777
23778 #ifdef HAVE_COMPLEX_H
23779 #include <complex.h>
23780 #endif
23781 #ifdef HAVE_MATH_H
23782 #include <math.h>
23783 #endif
23784
23785 int (*ptr)() = (int (*)())jn;
23786
23787 int
23788 main ()
23789 {
23790 return 0;
23791 }
23792
23793 _ACEOF
23794 if ac_fn_c_try_link "$LINENO"; then :
23795 gcc_cv_math_func_jn=yes
23796 else
23797 gcc_cv_math_func_jn=no
23798 fi
23799 rm -f core conftest.err conftest.$ac_objext \
23800 conftest$ac_exeext conftest.$ac_ext
23801 fi
23802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jn" >&5
23803 $as_echo "$gcc_cv_math_func_jn" >&6; }
23804 if test $gcc_cv_math_func_jn = yes; then
23805
23806 cat >>confdefs.h <<_ACEOF
23807 #define HAVE_JN 1
23808 _ACEOF
23809
23810 fi
23811
23812
23813
23814
23815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnl" >&5
23816 $as_echo_n "checking for jnl... " >&6; }
23817 if test "${gcc_cv_math_func_jnl+set}" = set; then :
23818 $as_echo_n "(cached) " >&6
23819 else
23820 if test x$gcc_no_link = xyes; then
23821 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23822 fi
23823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23824 /* end confdefs.h. */
23825
23826 #ifdef HAVE_COMPLEX_H
23827 #include <complex.h>
23828 #endif
23829 #ifdef HAVE_MATH_H
23830 #include <math.h>
23831 #endif
23832
23833 int (*ptr)() = (int (*)())jnl;
23834
23835 int
23836 main ()
23837 {
23838 return 0;
23839 }
23840
23841 _ACEOF
23842 if ac_fn_c_try_link "$LINENO"; then :
23843 gcc_cv_math_func_jnl=yes
23844 else
23845 gcc_cv_math_func_jnl=no
23846 fi
23847 rm -f core conftest.err conftest.$ac_objext \
23848 conftest$ac_exeext conftest.$ac_ext
23849 fi
23850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnl" >&5
23851 $as_echo "$gcc_cv_math_func_jnl" >&6; }
23852 if test $gcc_cv_math_func_jnl = yes; then
23853
23854 cat >>confdefs.h <<_ACEOF
23855 #define HAVE_JNL 1
23856 _ACEOF
23857
23858 fi
23859
23860
23861
23862
23863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0f" >&5
23864 $as_echo_n "checking for y0f... " >&6; }
23865 if test "${gcc_cv_math_func_y0f+set}" = set; then :
23866 $as_echo_n "(cached) " >&6
23867 else
23868 if test x$gcc_no_link = xyes; then
23869 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23870 fi
23871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23872 /* end confdefs.h. */
23873
23874 #ifdef HAVE_COMPLEX_H
23875 #include <complex.h>
23876 #endif
23877 #ifdef HAVE_MATH_H
23878 #include <math.h>
23879 #endif
23880
23881 int (*ptr)() = (int (*)())y0f;
23882
23883 int
23884 main ()
23885 {
23886 return 0;
23887 }
23888
23889 _ACEOF
23890 if ac_fn_c_try_link "$LINENO"; then :
23891 gcc_cv_math_func_y0f=yes
23892 else
23893 gcc_cv_math_func_y0f=no
23894 fi
23895 rm -f core conftest.err conftest.$ac_objext \
23896 conftest$ac_exeext conftest.$ac_ext
23897 fi
23898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0f" >&5
23899 $as_echo "$gcc_cv_math_func_y0f" >&6; }
23900 if test $gcc_cv_math_func_y0f = yes; then
23901
23902 cat >>confdefs.h <<_ACEOF
23903 #define HAVE_Y0F 1
23904 _ACEOF
23905
23906 fi
23907
23908
23909
23910
23911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0" >&5
23912 $as_echo_n "checking for y0... " >&6; }
23913 if test "${gcc_cv_math_func_y0+set}" = set; then :
23914 $as_echo_n "(cached) " >&6
23915 else
23916 if test x$gcc_no_link = xyes; then
23917 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23918 fi
23919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23920 /* end confdefs.h. */
23921
23922 #ifdef HAVE_COMPLEX_H
23923 #include <complex.h>
23924 #endif
23925 #ifdef HAVE_MATH_H
23926 #include <math.h>
23927 #endif
23928
23929 int (*ptr)() = (int (*)())y0;
23930
23931 int
23932 main ()
23933 {
23934 return 0;
23935 }
23936
23937 _ACEOF
23938 if ac_fn_c_try_link "$LINENO"; then :
23939 gcc_cv_math_func_y0=yes
23940 else
23941 gcc_cv_math_func_y0=no
23942 fi
23943 rm -f core conftest.err conftest.$ac_objext \
23944 conftest$ac_exeext conftest.$ac_ext
23945 fi
23946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0" >&5
23947 $as_echo "$gcc_cv_math_func_y0" >&6; }
23948 if test $gcc_cv_math_func_y0 = yes; then
23949
23950 cat >>confdefs.h <<_ACEOF
23951 #define HAVE_Y0 1
23952 _ACEOF
23953
23954 fi
23955
23956
23957
23958
23959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0l" >&5
23960 $as_echo_n "checking for y0l... " >&6; }
23961 if test "${gcc_cv_math_func_y0l+set}" = set; then :
23962 $as_echo_n "(cached) " >&6
23963 else
23964 if test x$gcc_no_link = xyes; then
23965 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23966 fi
23967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23968 /* end confdefs.h. */
23969
23970 #ifdef HAVE_COMPLEX_H
23971 #include <complex.h>
23972 #endif
23973 #ifdef HAVE_MATH_H
23974 #include <math.h>
23975 #endif
23976
23977 int (*ptr)() = (int (*)())y0l;
23978
23979 int
23980 main ()
23981 {
23982 return 0;
23983 }
23984
23985 _ACEOF
23986 if ac_fn_c_try_link "$LINENO"; then :
23987 gcc_cv_math_func_y0l=yes
23988 else
23989 gcc_cv_math_func_y0l=no
23990 fi
23991 rm -f core conftest.err conftest.$ac_objext \
23992 conftest$ac_exeext conftest.$ac_ext
23993 fi
23994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0l" >&5
23995 $as_echo "$gcc_cv_math_func_y0l" >&6; }
23996 if test $gcc_cv_math_func_y0l = yes; then
23997
23998 cat >>confdefs.h <<_ACEOF
23999 #define HAVE_Y0L 1
24000 _ACEOF
24001
24002 fi
24003
24004
24005
24006
24007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1f" >&5
24008 $as_echo_n "checking for y1f... " >&6; }
24009 if test "${gcc_cv_math_func_y1f+set}" = set; then :
24010 $as_echo_n "(cached) " >&6
24011 else
24012 if test x$gcc_no_link = xyes; then
24013 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24014 fi
24015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24016 /* end confdefs.h. */
24017
24018 #ifdef HAVE_COMPLEX_H
24019 #include <complex.h>
24020 #endif
24021 #ifdef HAVE_MATH_H
24022 #include <math.h>
24023 #endif
24024
24025 int (*ptr)() = (int (*)())y1f;
24026
24027 int
24028 main ()
24029 {
24030 return 0;
24031 }
24032
24033 _ACEOF
24034 if ac_fn_c_try_link "$LINENO"; then :
24035 gcc_cv_math_func_y1f=yes
24036 else
24037 gcc_cv_math_func_y1f=no
24038 fi
24039 rm -f core conftest.err conftest.$ac_objext \
24040 conftest$ac_exeext conftest.$ac_ext
24041 fi
24042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1f" >&5
24043 $as_echo "$gcc_cv_math_func_y1f" >&6; }
24044 if test $gcc_cv_math_func_y1f = yes; then
24045
24046 cat >>confdefs.h <<_ACEOF
24047 #define HAVE_Y1F 1
24048 _ACEOF
24049
24050 fi
24051
24052
24053
24054
24055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1" >&5
24056 $as_echo_n "checking for y1... " >&6; }
24057 if test "${gcc_cv_math_func_y1+set}" = set; then :
24058 $as_echo_n "(cached) " >&6
24059 else
24060 if test x$gcc_no_link = xyes; then
24061 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24062 fi
24063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24064 /* end confdefs.h. */
24065
24066 #ifdef HAVE_COMPLEX_H
24067 #include <complex.h>
24068 #endif
24069 #ifdef HAVE_MATH_H
24070 #include <math.h>
24071 #endif
24072
24073 int (*ptr)() = (int (*)())y1;
24074
24075 int
24076 main ()
24077 {
24078 return 0;
24079 }
24080
24081 _ACEOF
24082 if ac_fn_c_try_link "$LINENO"; then :
24083 gcc_cv_math_func_y1=yes
24084 else
24085 gcc_cv_math_func_y1=no
24086 fi
24087 rm -f core conftest.err conftest.$ac_objext \
24088 conftest$ac_exeext conftest.$ac_ext
24089 fi
24090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1" >&5
24091 $as_echo "$gcc_cv_math_func_y1" >&6; }
24092 if test $gcc_cv_math_func_y1 = yes; then
24093
24094 cat >>confdefs.h <<_ACEOF
24095 #define HAVE_Y1 1
24096 _ACEOF
24097
24098 fi
24099
24100
24101
24102
24103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1l" >&5
24104 $as_echo_n "checking for y1l... " >&6; }
24105 if test "${gcc_cv_math_func_y1l+set}" = set; then :
24106 $as_echo_n "(cached) " >&6
24107 else
24108 if test x$gcc_no_link = xyes; then
24109 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24110 fi
24111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24112 /* end confdefs.h. */
24113
24114 #ifdef HAVE_COMPLEX_H
24115 #include <complex.h>
24116 #endif
24117 #ifdef HAVE_MATH_H
24118 #include <math.h>
24119 #endif
24120
24121 int (*ptr)() = (int (*)())y1l;
24122
24123 int
24124 main ()
24125 {
24126 return 0;
24127 }
24128
24129 _ACEOF
24130 if ac_fn_c_try_link "$LINENO"; then :
24131 gcc_cv_math_func_y1l=yes
24132 else
24133 gcc_cv_math_func_y1l=no
24134 fi
24135 rm -f core conftest.err conftest.$ac_objext \
24136 conftest$ac_exeext conftest.$ac_ext
24137 fi
24138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1l" >&5
24139 $as_echo "$gcc_cv_math_func_y1l" >&6; }
24140 if test $gcc_cv_math_func_y1l = yes; then
24141
24142 cat >>confdefs.h <<_ACEOF
24143 #define HAVE_Y1L 1
24144 _ACEOF
24145
24146 fi
24147
24148
24149
24150
24151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynf" >&5
24152 $as_echo_n "checking for ynf... " >&6; }
24153 if test "${gcc_cv_math_func_ynf+set}" = set; then :
24154 $as_echo_n "(cached) " >&6
24155 else
24156 if test x$gcc_no_link = xyes; then
24157 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24158 fi
24159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24160 /* end confdefs.h. */
24161
24162 #ifdef HAVE_COMPLEX_H
24163 #include <complex.h>
24164 #endif
24165 #ifdef HAVE_MATH_H
24166 #include <math.h>
24167 #endif
24168
24169 int (*ptr)() = (int (*)())ynf;
24170
24171 int
24172 main ()
24173 {
24174 return 0;
24175 }
24176
24177 _ACEOF
24178 if ac_fn_c_try_link "$LINENO"; then :
24179 gcc_cv_math_func_ynf=yes
24180 else
24181 gcc_cv_math_func_ynf=no
24182 fi
24183 rm -f core conftest.err conftest.$ac_objext \
24184 conftest$ac_exeext conftest.$ac_ext
24185 fi
24186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynf" >&5
24187 $as_echo "$gcc_cv_math_func_ynf" >&6; }
24188 if test $gcc_cv_math_func_ynf = yes; then
24189
24190 cat >>confdefs.h <<_ACEOF
24191 #define HAVE_YNF 1
24192 _ACEOF
24193
24194 fi
24195
24196
24197
24198
24199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yn" >&5
24200 $as_echo_n "checking for yn... " >&6; }
24201 if test "${gcc_cv_math_func_yn+set}" = set; then :
24202 $as_echo_n "(cached) " >&6
24203 else
24204 if test x$gcc_no_link = xyes; then
24205 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24206 fi
24207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24208 /* end confdefs.h. */
24209
24210 #ifdef HAVE_COMPLEX_H
24211 #include <complex.h>
24212 #endif
24213 #ifdef HAVE_MATH_H
24214 #include <math.h>
24215 #endif
24216
24217 int (*ptr)() = (int (*)())yn;
24218
24219 int
24220 main ()
24221 {
24222 return 0;
24223 }
24224
24225 _ACEOF
24226 if ac_fn_c_try_link "$LINENO"; then :
24227 gcc_cv_math_func_yn=yes
24228 else
24229 gcc_cv_math_func_yn=no
24230 fi
24231 rm -f core conftest.err conftest.$ac_objext \
24232 conftest$ac_exeext conftest.$ac_ext
24233 fi
24234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_yn" >&5
24235 $as_echo "$gcc_cv_math_func_yn" >&6; }
24236 if test $gcc_cv_math_func_yn = yes; then
24237
24238 cat >>confdefs.h <<_ACEOF
24239 #define HAVE_YN 1
24240 _ACEOF
24241
24242 fi
24243
24244
24245
24246
24247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynl" >&5
24248 $as_echo_n "checking for ynl... " >&6; }
24249 if test "${gcc_cv_math_func_ynl+set}" = set; then :
24250 $as_echo_n "(cached) " >&6
24251 else
24252 if test x$gcc_no_link = xyes; then
24253 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24254 fi
24255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24256 /* end confdefs.h. */
24257
24258 #ifdef HAVE_COMPLEX_H
24259 #include <complex.h>
24260 #endif
24261 #ifdef HAVE_MATH_H
24262 #include <math.h>
24263 #endif
24264
24265 int (*ptr)() = (int (*)())ynl;
24266
24267 int
24268 main ()
24269 {
24270 return 0;
24271 }
24272
24273 _ACEOF
24274 if ac_fn_c_try_link "$LINENO"; then :
24275 gcc_cv_math_func_ynl=yes
24276 else
24277 gcc_cv_math_func_ynl=no
24278 fi
24279 rm -f core conftest.err conftest.$ac_objext \
24280 conftest$ac_exeext conftest.$ac_ext
24281 fi
24282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynl" >&5
24283 $as_echo "$gcc_cv_math_func_ynl" >&6; }
24284 if test $gcc_cv_math_func_ynl = yes; then
24285
24286 cat >>confdefs.h <<_ACEOF
24287 #define HAVE_YNL 1
24288 _ACEOF
24289
24290 fi
24291
24292
24293
24294
24295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgamma" >&5
24296 $as_echo_n "checking for tgamma... " >&6; }
24297 if test "${gcc_cv_math_func_tgamma+set}" = set; then :
24298 $as_echo_n "(cached) " >&6
24299 else
24300 if test x$gcc_no_link = xyes; then
24301 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24302 fi
24303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24304 /* end confdefs.h. */
24305
24306 #ifdef HAVE_COMPLEX_H
24307 #include <complex.h>
24308 #endif
24309 #ifdef HAVE_MATH_H
24310 #include <math.h>
24311 #endif
24312
24313 int (*ptr)() = (int (*)())tgamma;
24314
24315 int
24316 main ()
24317 {
24318 return 0;
24319 }
24320
24321 _ACEOF
24322 if ac_fn_c_try_link "$LINENO"; then :
24323 gcc_cv_math_func_tgamma=yes
24324 else
24325 gcc_cv_math_func_tgamma=no
24326 fi
24327 rm -f core conftest.err conftest.$ac_objext \
24328 conftest$ac_exeext conftest.$ac_ext
24329 fi
24330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgamma" >&5
24331 $as_echo "$gcc_cv_math_func_tgamma" >&6; }
24332 if test $gcc_cv_math_func_tgamma = yes; then
24333
24334 cat >>confdefs.h <<_ACEOF
24335 #define HAVE_TGAMMA 1
24336 _ACEOF
24337
24338 fi
24339
24340
24341
24342
24343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammaf" >&5
24344 $as_echo_n "checking for tgammaf... " >&6; }
24345 if test "${gcc_cv_math_func_tgammaf+set}" = set; then :
24346 $as_echo_n "(cached) " >&6
24347 else
24348 if test x$gcc_no_link = xyes; then
24349 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24350 fi
24351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24352 /* end confdefs.h. */
24353
24354 #ifdef HAVE_COMPLEX_H
24355 #include <complex.h>
24356 #endif
24357 #ifdef HAVE_MATH_H
24358 #include <math.h>
24359 #endif
24360
24361 int (*ptr)() = (int (*)())tgammaf;
24362
24363 int
24364 main ()
24365 {
24366 return 0;
24367 }
24368
24369 _ACEOF
24370 if ac_fn_c_try_link "$LINENO"; then :
24371 gcc_cv_math_func_tgammaf=yes
24372 else
24373 gcc_cv_math_func_tgammaf=no
24374 fi
24375 rm -f core conftest.err conftest.$ac_objext \
24376 conftest$ac_exeext conftest.$ac_ext
24377 fi
24378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammaf" >&5
24379 $as_echo "$gcc_cv_math_func_tgammaf" >&6; }
24380 if test $gcc_cv_math_func_tgammaf = yes; then
24381
24382 cat >>confdefs.h <<_ACEOF
24383 #define HAVE_TGAMMAF 1
24384 _ACEOF
24385
24386 fi
24387
24388
24389
24390
24391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammal" >&5
24392 $as_echo_n "checking for tgammal... " >&6; }
24393 if test "${gcc_cv_math_func_tgammal+set}" = set; then :
24394 $as_echo_n "(cached) " >&6
24395 else
24396 if test x$gcc_no_link = xyes; then
24397 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24398 fi
24399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24400 /* end confdefs.h. */
24401
24402 #ifdef HAVE_COMPLEX_H
24403 #include <complex.h>
24404 #endif
24405 #ifdef HAVE_MATH_H
24406 #include <math.h>
24407 #endif
24408
24409 int (*ptr)() = (int (*)())tgammal;
24410
24411 int
24412 main ()
24413 {
24414 return 0;
24415 }
24416
24417 _ACEOF
24418 if ac_fn_c_try_link "$LINENO"; then :
24419 gcc_cv_math_func_tgammal=yes
24420 else
24421 gcc_cv_math_func_tgammal=no
24422 fi
24423 rm -f core conftest.err conftest.$ac_objext \
24424 conftest$ac_exeext conftest.$ac_ext
24425 fi
24426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammal" >&5
24427 $as_echo "$gcc_cv_math_func_tgammal" >&6; }
24428 if test $gcc_cv_math_func_tgammal = yes; then
24429
24430 cat >>confdefs.h <<_ACEOF
24431 #define HAVE_TGAMMAL 1
24432 _ACEOF
24433
24434 fi
24435
24436
24437
24438
24439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgamma" >&5
24440 $as_echo_n "checking for lgamma... " >&6; }
24441 if test "${gcc_cv_math_func_lgamma+set}" = set; then :
24442 $as_echo_n "(cached) " >&6
24443 else
24444 if test x$gcc_no_link = xyes; then
24445 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24446 fi
24447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24448 /* end confdefs.h. */
24449
24450 #ifdef HAVE_COMPLEX_H
24451 #include <complex.h>
24452 #endif
24453 #ifdef HAVE_MATH_H
24454 #include <math.h>
24455 #endif
24456
24457 int (*ptr)() = (int (*)())lgamma;
24458
24459 int
24460 main ()
24461 {
24462 return 0;
24463 }
24464
24465 _ACEOF
24466 if ac_fn_c_try_link "$LINENO"; then :
24467 gcc_cv_math_func_lgamma=yes
24468 else
24469 gcc_cv_math_func_lgamma=no
24470 fi
24471 rm -f core conftest.err conftest.$ac_objext \
24472 conftest$ac_exeext conftest.$ac_ext
24473 fi
24474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgamma" >&5
24475 $as_echo "$gcc_cv_math_func_lgamma" >&6; }
24476 if test $gcc_cv_math_func_lgamma = yes; then
24477
24478 cat >>confdefs.h <<_ACEOF
24479 #define HAVE_LGAMMA 1
24480 _ACEOF
24481
24482 fi
24483
24484
24485
24486
24487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammaf" >&5
24488 $as_echo_n "checking for lgammaf... " >&6; }
24489 if test "${gcc_cv_math_func_lgammaf+set}" = set; then :
24490 $as_echo_n "(cached) " >&6
24491 else
24492 if test x$gcc_no_link = xyes; then
24493 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24494 fi
24495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24496 /* end confdefs.h. */
24497
24498 #ifdef HAVE_COMPLEX_H
24499 #include <complex.h>
24500 #endif
24501 #ifdef HAVE_MATH_H
24502 #include <math.h>
24503 #endif
24504
24505 int (*ptr)() = (int (*)())lgammaf;
24506
24507 int
24508 main ()
24509 {
24510 return 0;
24511 }
24512
24513 _ACEOF
24514 if ac_fn_c_try_link "$LINENO"; then :
24515 gcc_cv_math_func_lgammaf=yes
24516 else
24517 gcc_cv_math_func_lgammaf=no
24518 fi
24519 rm -f core conftest.err conftest.$ac_objext \
24520 conftest$ac_exeext conftest.$ac_ext
24521 fi
24522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammaf" >&5
24523 $as_echo "$gcc_cv_math_func_lgammaf" >&6; }
24524 if test $gcc_cv_math_func_lgammaf = yes; then
24525
24526 cat >>confdefs.h <<_ACEOF
24527 #define HAVE_LGAMMAF 1
24528 _ACEOF
24529
24530 fi
24531
24532
24533
24534
24535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammal" >&5
24536 $as_echo_n "checking for lgammal... " >&6; }
24537 if test "${gcc_cv_math_func_lgammal+set}" = set; then :
24538 $as_echo_n "(cached) " >&6
24539 else
24540 if test x$gcc_no_link = xyes; then
24541 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24542 fi
24543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24544 /* end confdefs.h. */
24545
24546 #ifdef HAVE_COMPLEX_H
24547 #include <complex.h>
24548 #endif
24549 #ifdef HAVE_MATH_H
24550 #include <math.h>
24551 #endif
24552
24553 int (*ptr)() = (int (*)())lgammal;
24554
24555 int
24556 main ()
24557 {
24558 return 0;
24559 }
24560
24561 _ACEOF
24562 if ac_fn_c_try_link "$LINENO"; then :
24563 gcc_cv_math_func_lgammal=yes
24564 else
24565 gcc_cv_math_func_lgammal=no
24566 fi
24567 rm -f core conftest.err conftest.$ac_objext \
24568 conftest$ac_exeext conftest.$ac_ext
24569 fi
24570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammal" >&5
24571 $as_echo "$gcc_cv_math_func_lgammal" >&6; }
24572 if test $gcc_cv_math_func_lgammal = yes; then
24573
24574 cat >>confdefs.h <<_ACEOF
24575 #define HAVE_LGAMMAL 1
24576 _ACEOF
24577
24578 fi
24579
24580
24581 # Check for GFORTRAN_C99_1.1 funcs
24582
24583
24584
24585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacos" >&5
24586 $as_echo_n "checking for cacos... " >&6; }
24587 if test "${gcc_cv_math_func_cacos+set}" = set; then :
24588 $as_echo_n "(cached) " >&6
24589 else
24590 if test x$gcc_no_link = xyes; then
24591 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24592 fi
24593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24594 /* end confdefs.h. */
24595
24596 #ifdef HAVE_COMPLEX_H
24597 #include <complex.h>
24598 #endif
24599 #ifdef HAVE_MATH_H
24600 #include <math.h>
24601 #endif
24602
24603 int (*ptr)() = (int (*)())cacos;
24604
24605 int
24606 main ()
24607 {
24608 return 0;
24609 }
24610
24611 _ACEOF
24612 if ac_fn_c_try_link "$LINENO"; then :
24613 gcc_cv_math_func_cacos=yes
24614 else
24615 gcc_cv_math_func_cacos=no
24616 fi
24617 rm -f core conftest.err conftest.$ac_objext \
24618 conftest$ac_exeext conftest.$ac_ext
24619 fi
24620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacos" >&5
24621 $as_echo "$gcc_cv_math_func_cacos" >&6; }
24622 if test $gcc_cv_math_func_cacos = yes; then
24623
24624 cat >>confdefs.h <<_ACEOF
24625 #define HAVE_CACOS 1
24626 _ACEOF
24627
24628 fi
24629
24630
24631
24632
24633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosf" >&5
24634 $as_echo_n "checking for cacosf... " >&6; }
24635 if test "${gcc_cv_math_func_cacosf+set}" = set; then :
24636 $as_echo_n "(cached) " >&6
24637 else
24638 if test x$gcc_no_link = xyes; then
24639 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24640 fi
24641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24642 /* end confdefs.h. */
24643
24644 #ifdef HAVE_COMPLEX_H
24645 #include <complex.h>
24646 #endif
24647 #ifdef HAVE_MATH_H
24648 #include <math.h>
24649 #endif
24650
24651 int (*ptr)() = (int (*)())cacosf;
24652
24653 int
24654 main ()
24655 {
24656 return 0;
24657 }
24658
24659 _ACEOF
24660 if ac_fn_c_try_link "$LINENO"; then :
24661 gcc_cv_math_func_cacosf=yes
24662 else
24663 gcc_cv_math_func_cacosf=no
24664 fi
24665 rm -f core conftest.err conftest.$ac_objext \
24666 conftest$ac_exeext conftest.$ac_ext
24667 fi
24668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosf" >&5
24669 $as_echo "$gcc_cv_math_func_cacosf" >&6; }
24670 if test $gcc_cv_math_func_cacosf = yes; then
24671
24672 cat >>confdefs.h <<_ACEOF
24673 #define HAVE_CACOSF 1
24674 _ACEOF
24675
24676 fi
24677
24678
24679
24680
24681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosh" >&5
24682 $as_echo_n "checking for cacosh... " >&6; }
24683 if test "${gcc_cv_math_func_cacosh+set}" = set; then :
24684 $as_echo_n "(cached) " >&6
24685 else
24686 if test x$gcc_no_link = xyes; then
24687 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24688 fi
24689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24690 /* end confdefs.h. */
24691
24692 #ifdef HAVE_COMPLEX_H
24693 #include <complex.h>
24694 #endif
24695 #ifdef HAVE_MATH_H
24696 #include <math.h>
24697 #endif
24698
24699 int (*ptr)() = (int (*)())cacosh;
24700
24701 int
24702 main ()
24703 {
24704 return 0;
24705 }
24706
24707 _ACEOF
24708 if ac_fn_c_try_link "$LINENO"; then :
24709 gcc_cv_math_func_cacosh=yes
24710 else
24711 gcc_cv_math_func_cacosh=no
24712 fi
24713 rm -f core conftest.err conftest.$ac_objext \
24714 conftest$ac_exeext conftest.$ac_ext
24715 fi
24716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosh" >&5
24717 $as_echo "$gcc_cv_math_func_cacosh" >&6; }
24718 if test $gcc_cv_math_func_cacosh = yes; then
24719
24720 cat >>confdefs.h <<_ACEOF
24721 #define HAVE_CACOSH 1
24722 _ACEOF
24723
24724 fi
24725
24726
24727
24728
24729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshf" >&5
24730 $as_echo_n "checking for cacoshf... " >&6; }
24731 if test "${gcc_cv_math_func_cacoshf+set}" = set; then :
24732 $as_echo_n "(cached) " >&6
24733 else
24734 if test x$gcc_no_link = xyes; then
24735 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24736 fi
24737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24738 /* end confdefs.h. */
24739
24740 #ifdef HAVE_COMPLEX_H
24741 #include <complex.h>
24742 #endif
24743 #ifdef HAVE_MATH_H
24744 #include <math.h>
24745 #endif
24746
24747 int (*ptr)() = (int (*)())cacoshf;
24748
24749 int
24750 main ()
24751 {
24752 return 0;
24753 }
24754
24755 _ACEOF
24756 if ac_fn_c_try_link "$LINENO"; then :
24757 gcc_cv_math_func_cacoshf=yes
24758 else
24759 gcc_cv_math_func_cacoshf=no
24760 fi
24761 rm -f core conftest.err conftest.$ac_objext \
24762 conftest$ac_exeext conftest.$ac_ext
24763 fi
24764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshf" >&5
24765 $as_echo "$gcc_cv_math_func_cacoshf" >&6; }
24766 if test $gcc_cv_math_func_cacoshf = yes; then
24767
24768 cat >>confdefs.h <<_ACEOF
24769 #define HAVE_CACOSHF 1
24770 _ACEOF
24771
24772 fi
24773
24774
24775
24776
24777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshl" >&5
24778 $as_echo_n "checking for cacoshl... " >&6; }
24779 if test "${gcc_cv_math_func_cacoshl+set}" = set; then :
24780 $as_echo_n "(cached) " >&6
24781 else
24782 if test x$gcc_no_link = xyes; then
24783 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24784 fi
24785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24786 /* end confdefs.h. */
24787
24788 #ifdef HAVE_COMPLEX_H
24789 #include <complex.h>
24790 #endif
24791 #ifdef HAVE_MATH_H
24792 #include <math.h>
24793 #endif
24794
24795 int (*ptr)() = (int (*)())cacoshl;
24796
24797 int
24798 main ()
24799 {
24800 return 0;
24801 }
24802
24803 _ACEOF
24804 if ac_fn_c_try_link "$LINENO"; then :
24805 gcc_cv_math_func_cacoshl=yes
24806 else
24807 gcc_cv_math_func_cacoshl=no
24808 fi
24809 rm -f core conftest.err conftest.$ac_objext \
24810 conftest$ac_exeext conftest.$ac_ext
24811 fi
24812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshl" >&5
24813 $as_echo "$gcc_cv_math_func_cacoshl" >&6; }
24814 if test $gcc_cv_math_func_cacoshl = yes; then
24815
24816 cat >>confdefs.h <<_ACEOF
24817 #define HAVE_CACOSHL 1
24818 _ACEOF
24819
24820 fi
24821
24822
24823
24824
24825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosl" >&5
24826 $as_echo_n "checking for cacosl... " >&6; }
24827 if test "${gcc_cv_math_func_cacosl+set}" = set; then :
24828 $as_echo_n "(cached) " >&6
24829 else
24830 if test x$gcc_no_link = xyes; then
24831 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24832 fi
24833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24834 /* end confdefs.h. */
24835
24836 #ifdef HAVE_COMPLEX_H
24837 #include <complex.h>
24838 #endif
24839 #ifdef HAVE_MATH_H
24840 #include <math.h>
24841 #endif
24842
24843 int (*ptr)() = (int (*)())cacosl;
24844
24845 int
24846 main ()
24847 {
24848 return 0;
24849 }
24850
24851 _ACEOF
24852 if ac_fn_c_try_link "$LINENO"; then :
24853 gcc_cv_math_func_cacosl=yes
24854 else
24855 gcc_cv_math_func_cacosl=no
24856 fi
24857 rm -f core conftest.err conftest.$ac_objext \
24858 conftest$ac_exeext conftest.$ac_ext
24859 fi
24860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosl" >&5
24861 $as_echo "$gcc_cv_math_func_cacosl" >&6; }
24862 if test $gcc_cv_math_func_cacosl = yes; then
24863
24864 cat >>confdefs.h <<_ACEOF
24865 #define HAVE_CACOSL 1
24866 _ACEOF
24867
24868 fi
24869
24870
24871
24872
24873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casin" >&5
24874 $as_echo_n "checking for casin... " >&6; }
24875 if test "${gcc_cv_math_func_casin+set}" = set; then :
24876 $as_echo_n "(cached) " >&6
24877 else
24878 if test x$gcc_no_link = xyes; then
24879 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24880 fi
24881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24882 /* end confdefs.h. */
24883
24884 #ifdef HAVE_COMPLEX_H
24885 #include <complex.h>
24886 #endif
24887 #ifdef HAVE_MATH_H
24888 #include <math.h>
24889 #endif
24890
24891 int (*ptr)() = (int (*)())casin;
24892
24893 int
24894 main ()
24895 {
24896 return 0;
24897 }
24898
24899 _ACEOF
24900 if ac_fn_c_try_link "$LINENO"; then :
24901 gcc_cv_math_func_casin=yes
24902 else
24903 gcc_cv_math_func_casin=no
24904 fi
24905 rm -f core conftest.err conftest.$ac_objext \
24906 conftest$ac_exeext conftest.$ac_ext
24907 fi
24908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casin" >&5
24909 $as_echo "$gcc_cv_math_func_casin" >&6; }
24910 if test $gcc_cv_math_func_casin = yes; then
24911
24912 cat >>confdefs.h <<_ACEOF
24913 #define HAVE_CASIN 1
24914 _ACEOF
24915
24916 fi
24917
24918
24919
24920
24921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinf" >&5
24922 $as_echo_n "checking for casinf... " >&6; }
24923 if test "${gcc_cv_math_func_casinf+set}" = set; then :
24924 $as_echo_n "(cached) " >&6
24925 else
24926 if test x$gcc_no_link = xyes; then
24927 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24928 fi
24929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24930 /* end confdefs.h. */
24931
24932 #ifdef HAVE_COMPLEX_H
24933 #include <complex.h>
24934 #endif
24935 #ifdef HAVE_MATH_H
24936 #include <math.h>
24937 #endif
24938
24939 int (*ptr)() = (int (*)())casinf;
24940
24941 int
24942 main ()
24943 {
24944 return 0;
24945 }
24946
24947 _ACEOF
24948 if ac_fn_c_try_link "$LINENO"; then :
24949 gcc_cv_math_func_casinf=yes
24950 else
24951 gcc_cv_math_func_casinf=no
24952 fi
24953 rm -f core conftest.err conftest.$ac_objext \
24954 conftest$ac_exeext conftest.$ac_ext
24955 fi
24956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinf" >&5
24957 $as_echo "$gcc_cv_math_func_casinf" >&6; }
24958 if test $gcc_cv_math_func_casinf = yes; then
24959
24960 cat >>confdefs.h <<_ACEOF
24961 #define HAVE_CASINF 1
24962 _ACEOF
24963
24964 fi
24965
24966
24967
24968
24969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinh" >&5
24970 $as_echo_n "checking for casinh... " >&6; }
24971 if test "${gcc_cv_math_func_casinh+set}" = set; then :
24972 $as_echo_n "(cached) " >&6
24973 else
24974 if test x$gcc_no_link = xyes; then
24975 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24976 fi
24977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24978 /* end confdefs.h. */
24979
24980 #ifdef HAVE_COMPLEX_H
24981 #include <complex.h>
24982 #endif
24983 #ifdef HAVE_MATH_H
24984 #include <math.h>
24985 #endif
24986
24987 int (*ptr)() = (int (*)())casinh;
24988
24989 int
24990 main ()
24991 {
24992 return 0;
24993 }
24994
24995 _ACEOF
24996 if ac_fn_c_try_link "$LINENO"; then :
24997 gcc_cv_math_func_casinh=yes
24998 else
24999 gcc_cv_math_func_casinh=no
25000 fi
25001 rm -f core conftest.err conftest.$ac_objext \
25002 conftest$ac_exeext conftest.$ac_ext
25003 fi
25004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinh" >&5
25005 $as_echo "$gcc_cv_math_func_casinh" >&6; }
25006 if test $gcc_cv_math_func_casinh = yes; then
25007
25008 cat >>confdefs.h <<_ACEOF
25009 #define HAVE_CASINH 1
25010 _ACEOF
25011
25012 fi
25013
25014
25015
25016
25017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhf" >&5
25018 $as_echo_n "checking for casinhf... " >&6; }
25019 if test "${gcc_cv_math_func_casinhf+set}" = set; then :
25020 $as_echo_n "(cached) " >&6
25021 else
25022 if test x$gcc_no_link = xyes; then
25023 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25024 fi
25025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25026 /* end confdefs.h. */
25027
25028 #ifdef HAVE_COMPLEX_H
25029 #include <complex.h>
25030 #endif
25031 #ifdef HAVE_MATH_H
25032 #include <math.h>
25033 #endif
25034
25035 int (*ptr)() = (int (*)())casinhf;
25036
25037 int
25038 main ()
25039 {
25040 return 0;
25041 }
25042
25043 _ACEOF
25044 if ac_fn_c_try_link "$LINENO"; then :
25045 gcc_cv_math_func_casinhf=yes
25046 else
25047 gcc_cv_math_func_casinhf=no
25048 fi
25049 rm -f core conftest.err conftest.$ac_objext \
25050 conftest$ac_exeext conftest.$ac_ext
25051 fi
25052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhf" >&5
25053 $as_echo "$gcc_cv_math_func_casinhf" >&6; }
25054 if test $gcc_cv_math_func_casinhf = yes; then
25055
25056 cat >>confdefs.h <<_ACEOF
25057 #define HAVE_CASINHF 1
25058 _ACEOF
25059
25060 fi
25061
25062
25063
25064
25065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhl" >&5
25066 $as_echo_n "checking for casinhl... " >&6; }
25067 if test "${gcc_cv_math_func_casinhl+set}" = set; then :
25068 $as_echo_n "(cached) " >&6
25069 else
25070 if test x$gcc_no_link = xyes; then
25071 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25072 fi
25073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25074 /* end confdefs.h. */
25075
25076 #ifdef HAVE_COMPLEX_H
25077 #include <complex.h>
25078 #endif
25079 #ifdef HAVE_MATH_H
25080 #include <math.h>
25081 #endif
25082
25083 int (*ptr)() = (int (*)())casinhl;
25084
25085 int
25086 main ()
25087 {
25088 return 0;
25089 }
25090
25091 _ACEOF
25092 if ac_fn_c_try_link "$LINENO"; then :
25093 gcc_cv_math_func_casinhl=yes
25094 else
25095 gcc_cv_math_func_casinhl=no
25096 fi
25097 rm -f core conftest.err conftest.$ac_objext \
25098 conftest$ac_exeext conftest.$ac_ext
25099 fi
25100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhl" >&5
25101 $as_echo "$gcc_cv_math_func_casinhl" >&6; }
25102 if test $gcc_cv_math_func_casinhl = yes; then
25103
25104 cat >>confdefs.h <<_ACEOF
25105 #define HAVE_CASINHL 1
25106 _ACEOF
25107
25108 fi
25109
25110
25111
25112
25113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinl" >&5
25114 $as_echo_n "checking for casinl... " >&6; }
25115 if test "${gcc_cv_math_func_casinl+set}" = set; then :
25116 $as_echo_n "(cached) " >&6
25117 else
25118 if test x$gcc_no_link = xyes; then
25119 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25120 fi
25121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25122 /* end confdefs.h. */
25123
25124 #ifdef HAVE_COMPLEX_H
25125 #include <complex.h>
25126 #endif
25127 #ifdef HAVE_MATH_H
25128 #include <math.h>
25129 #endif
25130
25131 int (*ptr)() = (int (*)())casinl;
25132
25133 int
25134 main ()
25135 {
25136 return 0;
25137 }
25138
25139 _ACEOF
25140 if ac_fn_c_try_link "$LINENO"; then :
25141 gcc_cv_math_func_casinl=yes
25142 else
25143 gcc_cv_math_func_casinl=no
25144 fi
25145 rm -f core conftest.err conftest.$ac_objext \
25146 conftest$ac_exeext conftest.$ac_ext
25147 fi
25148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinl" >&5
25149 $as_echo "$gcc_cv_math_func_casinl" >&6; }
25150 if test $gcc_cv_math_func_casinl = yes; then
25151
25152 cat >>confdefs.h <<_ACEOF
25153 #define HAVE_CASINL 1
25154 _ACEOF
25155
25156 fi
25157
25158
25159
25160
25161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catan" >&5
25162 $as_echo_n "checking for catan... " >&6; }
25163 if test "${gcc_cv_math_func_catan+set}" = set; then :
25164 $as_echo_n "(cached) " >&6
25165 else
25166 if test x$gcc_no_link = xyes; then
25167 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25168 fi
25169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25170 /* end confdefs.h. */
25171
25172 #ifdef HAVE_COMPLEX_H
25173 #include <complex.h>
25174 #endif
25175 #ifdef HAVE_MATH_H
25176 #include <math.h>
25177 #endif
25178
25179 int (*ptr)() = (int (*)())catan;
25180
25181 int
25182 main ()
25183 {
25184 return 0;
25185 }
25186
25187 _ACEOF
25188 if ac_fn_c_try_link "$LINENO"; then :
25189 gcc_cv_math_func_catan=yes
25190 else
25191 gcc_cv_math_func_catan=no
25192 fi
25193 rm -f core conftest.err conftest.$ac_objext \
25194 conftest$ac_exeext conftest.$ac_ext
25195 fi
25196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catan" >&5
25197 $as_echo "$gcc_cv_math_func_catan" >&6; }
25198 if test $gcc_cv_math_func_catan = yes; then
25199
25200 cat >>confdefs.h <<_ACEOF
25201 #define HAVE_CATAN 1
25202 _ACEOF
25203
25204 fi
25205
25206
25207
25208
25209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanf" >&5
25210 $as_echo_n "checking for catanf... " >&6; }
25211 if test "${gcc_cv_math_func_catanf+set}" = set; then :
25212 $as_echo_n "(cached) " >&6
25213 else
25214 if test x$gcc_no_link = xyes; then
25215 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25216 fi
25217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25218 /* end confdefs.h. */
25219
25220 #ifdef HAVE_COMPLEX_H
25221 #include <complex.h>
25222 #endif
25223 #ifdef HAVE_MATH_H
25224 #include <math.h>
25225 #endif
25226
25227 int (*ptr)() = (int (*)())catanf;
25228
25229 int
25230 main ()
25231 {
25232 return 0;
25233 }
25234
25235 _ACEOF
25236 if ac_fn_c_try_link "$LINENO"; then :
25237 gcc_cv_math_func_catanf=yes
25238 else
25239 gcc_cv_math_func_catanf=no
25240 fi
25241 rm -f core conftest.err conftest.$ac_objext \
25242 conftest$ac_exeext conftest.$ac_ext
25243 fi
25244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanf" >&5
25245 $as_echo "$gcc_cv_math_func_catanf" >&6; }
25246 if test $gcc_cv_math_func_catanf = yes; then
25247
25248 cat >>confdefs.h <<_ACEOF
25249 #define HAVE_CATANF 1
25250 _ACEOF
25251
25252 fi
25253
25254
25255
25256
25257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanh" >&5
25258 $as_echo_n "checking for catanh... " >&6; }
25259 if test "${gcc_cv_math_func_catanh+set}" = set; then :
25260 $as_echo_n "(cached) " >&6
25261 else
25262 if test x$gcc_no_link = xyes; then
25263 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25264 fi
25265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25266 /* end confdefs.h. */
25267
25268 #ifdef HAVE_COMPLEX_H
25269 #include <complex.h>
25270 #endif
25271 #ifdef HAVE_MATH_H
25272 #include <math.h>
25273 #endif
25274
25275 int (*ptr)() = (int (*)())catanh;
25276
25277 int
25278 main ()
25279 {
25280 return 0;
25281 }
25282
25283 _ACEOF
25284 if ac_fn_c_try_link "$LINENO"; then :
25285 gcc_cv_math_func_catanh=yes
25286 else
25287 gcc_cv_math_func_catanh=no
25288 fi
25289 rm -f core conftest.err conftest.$ac_objext \
25290 conftest$ac_exeext conftest.$ac_ext
25291 fi
25292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanh" >&5
25293 $as_echo "$gcc_cv_math_func_catanh" >&6; }
25294 if test $gcc_cv_math_func_catanh = yes; then
25295
25296 cat >>confdefs.h <<_ACEOF
25297 #define HAVE_CATANH 1
25298 _ACEOF
25299
25300 fi
25301
25302
25303
25304
25305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhf" >&5
25306 $as_echo_n "checking for catanhf... " >&6; }
25307 if test "${gcc_cv_math_func_catanhf+set}" = set; then :
25308 $as_echo_n "(cached) " >&6
25309 else
25310 if test x$gcc_no_link = xyes; then
25311 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25312 fi
25313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25314 /* end confdefs.h. */
25315
25316 #ifdef HAVE_COMPLEX_H
25317 #include <complex.h>
25318 #endif
25319 #ifdef HAVE_MATH_H
25320 #include <math.h>
25321 #endif
25322
25323 int (*ptr)() = (int (*)())catanhf;
25324
25325 int
25326 main ()
25327 {
25328 return 0;
25329 }
25330
25331 _ACEOF
25332 if ac_fn_c_try_link "$LINENO"; then :
25333 gcc_cv_math_func_catanhf=yes
25334 else
25335 gcc_cv_math_func_catanhf=no
25336 fi
25337 rm -f core conftest.err conftest.$ac_objext \
25338 conftest$ac_exeext conftest.$ac_ext
25339 fi
25340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhf" >&5
25341 $as_echo "$gcc_cv_math_func_catanhf" >&6; }
25342 if test $gcc_cv_math_func_catanhf = yes; then
25343
25344 cat >>confdefs.h <<_ACEOF
25345 #define HAVE_CATANHF 1
25346 _ACEOF
25347
25348 fi
25349
25350
25351
25352
25353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhl" >&5
25354 $as_echo_n "checking for catanhl... " >&6; }
25355 if test "${gcc_cv_math_func_catanhl+set}" = set; then :
25356 $as_echo_n "(cached) " >&6
25357 else
25358 if test x$gcc_no_link = xyes; then
25359 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25360 fi
25361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25362 /* end confdefs.h. */
25363
25364 #ifdef HAVE_COMPLEX_H
25365 #include <complex.h>
25366 #endif
25367 #ifdef HAVE_MATH_H
25368 #include <math.h>
25369 #endif
25370
25371 int (*ptr)() = (int (*)())catanhl;
25372
25373 int
25374 main ()
25375 {
25376 return 0;
25377 }
25378
25379 _ACEOF
25380 if ac_fn_c_try_link "$LINENO"; then :
25381 gcc_cv_math_func_catanhl=yes
25382 else
25383 gcc_cv_math_func_catanhl=no
25384 fi
25385 rm -f core conftest.err conftest.$ac_objext \
25386 conftest$ac_exeext conftest.$ac_ext
25387 fi
25388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhl" >&5
25389 $as_echo "$gcc_cv_math_func_catanhl" >&6; }
25390 if test $gcc_cv_math_func_catanhl = yes; then
25391
25392 cat >>confdefs.h <<_ACEOF
25393 #define HAVE_CATANHL 1
25394 _ACEOF
25395
25396 fi
25397
25398
25399
25400
25401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanl" >&5
25402 $as_echo_n "checking for catanl... " >&6; }
25403 if test "${gcc_cv_math_func_catanl+set}" = set; then :
25404 $as_echo_n "(cached) " >&6
25405 else
25406 if test x$gcc_no_link = xyes; then
25407 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25408 fi
25409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25410 /* end confdefs.h. */
25411
25412 #ifdef HAVE_COMPLEX_H
25413 #include <complex.h>
25414 #endif
25415 #ifdef HAVE_MATH_H
25416 #include <math.h>
25417 #endif
25418
25419 int (*ptr)() = (int (*)())catanl;
25420
25421 int
25422 main ()
25423 {
25424 return 0;
25425 }
25426
25427 _ACEOF
25428 if ac_fn_c_try_link "$LINENO"; then :
25429 gcc_cv_math_func_catanl=yes
25430 else
25431 gcc_cv_math_func_catanl=no
25432 fi
25433 rm -f core conftest.err conftest.$ac_objext \
25434 conftest$ac_exeext conftest.$ac_ext
25435 fi
25436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanl" >&5
25437 $as_echo "$gcc_cv_math_func_catanl" >&6; }
25438 if test $gcc_cv_math_func_catanl = yes; then
25439
25440 cat >>confdefs.h <<_ACEOF
25441 #define HAVE_CATANL 1
25442 _ACEOF
25443
25444 fi
25445
25446
25447 # On AIX, clog is present in libm as __clog
25448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __clog in -lm" >&5
25449 $as_echo_n "checking for __clog in -lm... " >&6; }
25450 if test "${ac_cv_lib_m___clog+set}" = set; then :
25451 $as_echo_n "(cached) " >&6
25452 else
25453 ac_check_lib_save_LIBS=$LIBS
25454 LIBS="-lm $LIBS"
25455 if test x$gcc_no_link = xyes; then
25456 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25457 fi
25458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25459 /* end confdefs.h. */
25460
25461 /* Override any GCC internal prototype to avoid an error.
25462 Use char because int might match the return type of a GCC
25463 builtin and then its argument prototype would still apply. */
25464 #ifdef __cplusplus
25465 extern "C"
25466 #endif
25467 char __clog ();
25468 int
25469 main ()
25470 {
25471 return __clog ();
25472 ;
25473 return 0;
25474 }
25475 _ACEOF
25476 if ac_fn_c_try_link "$LINENO"; then :
25477 ac_cv_lib_m___clog=yes
25478 else
25479 ac_cv_lib_m___clog=no
25480 fi
25481 rm -f core conftest.err conftest.$ac_objext \
25482 conftest$ac_exeext conftest.$ac_ext
25483 LIBS=$ac_check_lib_save_LIBS
25484 fi
25485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m___clog" >&5
25486 $as_echo "$ac_cv_lib_m___clog" >&6; }
25487 if test "x$ac_cv_lib_m___clog" = x""yes; then :
25488
25489 $as_echo "#define HAVE_CLOG 1" >>confdefs.h
25490
25491 fi
25492
25493
25494 # Check whether the system has a working stat()
25495
25496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target stat is reliable" >&5
25497 $as_echo_n "checking whether the target stat is reliable... " >&6; }
25498 if test "${libgfor_cv_have_working_stat+set}" = set; then :
25499 $as_echo_n "(cached) " >&6
25500 else
25501
25502 if test "$cross_compiling" = yes; then :
25503
25504 case "${target}" in
25505 *mingw*) libgfor_cv_have_working_stat=no ;;
25506 *) libgfor_cv_have_working_stat=yes;;
25507 esac
25508 else
25509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25510 /* end confdefs.h. */
25511
25512 #include <stdio.h>
25513 #include <sys/types.h>
25514 #include <sys/stat.h>
25515 #include <unistd.h>
25516
25517 int main ()
25518 {
25519 FILE *f, *g;
25520 struct stat st1, st2;
25521
25522 f = fopen ("foo", "w");
25523 g = fopen ("bar", "w");
25524 if (stat ("foo", &st1) != 0 || stat ("bar", &st2))
25525 return 1;
25526 if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino)
25527 return 1;
25528 fclose(f);
25529 fclose(g);
25530 return 0;
25531 }
25532 _ACEOF
25533 if ac_fn_c_try_run "$LINENO"; then :
25534 libgfor_cv_have_working_stat=yes
25535 else
25536 libgfor_cv_have_working_stat=no
25537 fi
25538 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25539 conftest.$ac_objext conftest.beam conftest.$ac_ext
25540 fi
25541
25542 fi
25543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_working_stat" >&5
25544 $as_echo "$libgfor_cv_have_working_stat" >&6; }
25545 if test x"$libgfor_cv_have_working_stat" = xyes; then
25546
25547 $as_echo "#define HAVE_WORKING_STAT 1" >>confdefs.h
25548
25549 fi
25550
25551 # Check whether __mingw_snprintf() is present
25552
25553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __mingw_snprintf is present" >&5
25554 $as_echo_n "checking whether __mingw_snprintf is present... " >&6; }
25555 if test "${libgfor_cv_have_mingw_snprintf+set}" = set; then :
25556 $as_echo_n "(cached) " >&6
25557 else
25558
25559 if test x$gcc_no_link = xyes; then
25560 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25561 fi
25562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25563 /* end confdefs.h. */
25564
25565 #include <stdio.h>
25566 extern int __mingw_snprintf (char *, size_t, const char *, ...);
25567
25568 int
25569 main ()
25570 {
25571
25572 __mingw_snprintf (NULL, 0, "%d\n", 1);
25573
25574 ;
25575 return 0;
25576 }
25577 _ACEOF
25578 if ac_fn_c_try_link "$LINENO"; then :
25579 eval "libgfor_cv_have_mingw_snprintf=yes"
25580 else
25581 eval "libgfor_cv_have_mingw_snprintf=no"
25582 fi
25583 rm -f core conftest.err conftest.$ac_objext \
25584 conftest$ac_exeext conftest.$ac_ext
25585
25586 fi
25587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_mingw_snprintf" >&5
25588 $as_echo "$libgfor_cv_have_mingw_snprintf" >&6; }
25589 if test x"$libgfor_cv_have_mingw_snprintf" = xyes; then
25590
25591 $as_echo "#define HAVE_MINGW_SNPRINTF 1" >>confdefs.h
25592
25593 fi
25594
25595
25596 # Check whether libquadmath should be used
25597 # Check whether --enable-libquadmath-support was given.
25598 if test "${enable_libquadmath_support+set}" = set; then :
25599 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
25600 else
25601 ENABLE_LIBQUADMATH_SUPPORT=yes
25602 fi
25603
25604 enable_libquadmath_support=
25605 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
25606 enable_libquadmath_support=no
25607 fi
25608
25609 # Check whether we have a __float128 type, depends on enable_libquadmath_support
25610
25611 LIBQUADSPEC=
25612
25613 if test "x$enable_libquadmath_support" != xno; then
25614
25615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a usable __float128 type" >&5
25616 $as_echo_n "checking whether we have a usable __float128 type... " >&6; }
25617 if test "${libgfor_cv_have_float128+set}" = set; then :
25618 $as_echo_n "(cached) " >&6
25619 else
25620
25621 if test x$gcc_no_link = xyes; then
25622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25623 /* end confdefs.h. */
25624
25625 typedef _Complex float __attribute__((mode(TC))) __complex128;
25626
25627 __float128 foo (__float128 x)
25628 {
25629
25630 __complex128 z1, z2;
25631
25632 z1 = x;
25633 z2 = x / 7.Q;
25634 z2 /= z1;
25635
25636 return (__float128) z2;
25637 }
25638
25639 __float128 bar (__float128 x)
25640 {
25641 return x * __builtin_huge_valq ();
25642 }
25643
25644 int
25645 main ()
25646 {
25647
25648 foo (1.2Q);
25649 bar (1.2Q);
25650
25651 ;
25652 return 0;
25653 }
25654 _ACEOF
25655 if ac_fn_c_try_compile "$LINENO"; then :
25656
25657 libgfor_cv_have_float128=yes
25658
25659 else
25660
25661 libgfor_cv_have_float128=no
25662
25663 fi
25664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25665 else
25666 if test x$gcc_no_link = xyes; then
25667 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25668 fi
25669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25670 /* end confdefs.h. */
25671
25672 typedef _Complex float __attribute__((mode(TC))) __complex128;
25673
25674 __float128 foo (__float128 x)
25675 {
25676
25677 __complex128 z1, z2;
25678
25679 z1 = x;
25680 z2 = x / 7.Q;
25681 z2 /= z1;
25682
25683 return (__float128) z2;
25684 }
25685
25686 __float128 bar (__float128 x)
25687 {
25688 return x * __builtin_huge_valq ();
25689 }
25690
25691 int
25692 main ()
25693 {
25694
25695 foo (1.2Q);
25696 bar (1.2Q);
25697
25698 ;
25699 return 0;
25700 }
25701 _ACEOF
25702 if ac_fn_c_try_link "$LINENO"; then :
25703
25704 libgfor_cv_have_float128=yes
25705
25706 else
25707
25708 libgfor_cv_have_float128=no
25709
25710 fi
25711 rm -f core conftest.err conftest.$ac_objext \
25712 conftest$ac_exeext conftest.$ac_ext
25713 fi
25714 fi
25715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_float128" >&5
25716 $as_echo "$libgfor_cv_have_float128" >&6; }
25717
25718 if test "x$libgfor_cv_have_float128" = xyes; then
25719
25720 $as_echo "#define HAVE_FLOAT128 1" >>confdefs.h
25721
25722
25723 ac_xsave_c_werror_flag=$ac_c_werror_flag
25724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --as-needed/-z ignore works" >&5
25725 $as_echo_n "checking whether --as-needed/-z ignore works... " >&6; }
25726 if test "${libgfor_cv_have_as_needed+set}" = set; then :
25727 $as_echo_n "(cached) " >&6
25728 else
25729
25730 # Test for native Solaris options first.
25731 # No whitespace after -z to pass it through -Wl.
25732 libgfor_cv_as_needed_option="-zignore"
25733 libgfor_cv_no_as_needed_option="-zrecord"
25734 save_LDFLAGS="$LDFLAGS"
25735 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
25736 libgfor_cv_have_as_needed=no
25737
25738 ac_c_werror_flag=yes
25739 if test x$gcc_no_link = xyes; then
25740 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25741 fi
25742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25743 /* end confdefs.h. */
25744
25745 int
25746 main ()
25747 {
25748
25749 ;
25750 return 0;
25751 }
25752 _ACEOF
25753 if ac_fn_c_try_link "$LINENO"; then :
25754 libgfor_cv_have_as_needed=yes
25755 else
25756 libgfor_cv_have_as_needed=no
25757 fi
25758 rm -f core conftest.err conftest.$ac_objext \
25759 conftest$ac_exeext conftest.$ac_ext
25760 LDFLAGS="$save_LDFLAGS"
25761 if test "x$libgfor_cv_have_as_needed" = xno; then
25762 libgfor_cv_as_needed_option="--as-needed"
25763 libgfor_cv_no_as_needed_option="--no-as-needed"
25764 save_LDFLAGS="$LDFLAGS"
25765 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
25766 libgfor_cv_have_as_needed=no
25767
25768 ac_c_werror_flag=yes
25769 if test x$gcc_no_link = xyes; then
25770 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25771 fi
25772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25773 /* end confdefs.h. */
25774
25775 int
25776 main ()
25777 {
25778
25779 ;
25780 return 0;
25781 }
25782 _ACEOF
25783 if ac_fn_c_try_link "$LINENO"; then :
25784 libgfor_cv_have_as_needed=yes
25785 else
25786 libgfor_cv_have_as_needed=no
25787 fi
25788 rm -f core conftest.err conftest.$ac_objext \
25789 conftest$ac_exeext conftest.$ac_ext
25790 LDFLAGS="$save_LDFLAGS"
25791 fi
25792 ac_c_werror_flag=$ac_xsave_c_werror_flag
25793
25794 fi
25795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_as_needed" >&5
25796 $as_echo "$libgfor_cv_have_as_needed" >&6; }
25797
25798 if test "x$libgfor_cv_have_as_needed" = xyes; then
25799 LIBQUADSPEC="%{static-libgfortran:$libgfor_cv_as_needed_option} -lquadmath %{static-libgfortran:$libgfor_cv_no_as_needed_option}"
25800 else
25801 LIBQUADSPEC="-lquadmath"
25802 fi
25803 if test -f ../libquadmath/libquadmath.la; then
25804 LIBQUADLIB=../libquadmath/libquadmath.la
25805 LIBQUADLIB_DEP=../libquadmath/libquadmath.la
25806 LIBQUADINCLUDE='-I$(srcdir)/../libquadmath'
25807 else
25808 LIBQUADLIB="-lquadmath"
25809 LIBQUADLIB_DEP=
25810 LIBQUADINCLUDE=
25811 fi
25812 fi
25813 else
25814 # for --disable-quadmath
25815 LIBQUADLIB=
25816 LIBQUADLIB_DEP=
25817 LIBQUADINCLUDE=
25818 fi
25819
25820
25821
25822
25823
25824
25825 if test "x$libgfor_cv_have_float128" = xyes; then
25826 LIBGFOR_BUILD_QUAD_TRUE=
25827 LIBGFOR_BUILD_QUAD_FALSE='#'
25828 else
25829 LIBGFOR_BUILD_QUAD_TRUE='#'
25830 LIBGFOR_BUILD_QUAD_FALSE=
25831 fi
25832
25833
25834
25835 # Check for GNU libc feenableexcept
25836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5
25837 $as_echo_n "checking for feenableexcept in -lm... " >&6; }
25838 if test "${ac_cv_lib_m_feenableexcept+set}" = set; then :
25839 $as_echo_n "(cached) " >&6
25840 else
25841 ac_check_lib_save_LIBS=$LIBS
25842 LIBS="-lm $LIBS"
25843 if test x$gcc_no_link = xyes; then
25844 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25845 fi
25846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25847 /* end confdefs.h. */
25848
25849 /* Override any GCC internal prototype to avoid an error.
25850 Use char because int might match the return type of a GCC
25851 builtin and then its argument prototype would still apply. */
25852 #ifdef __cplusplus
25853 extern "C"
25854 #endif
25855 char feenableexcept ();
25856 int
25857 main ()
25858 {
25859 return feenableexcept ();
25860 ;
25861 return 0;
25862 }
25863 _ACEOF
25864 if ac_fn_c_try_link "$LINENO"; then :
25865 ac_cv_lib_m_feenableexcept=yes
25866 else
25867 ac_cv_lib_m_feenableexcept=no
25868 fi
25869 rm -f core conftest.err conftest.$ac_objext \
25870 conftest$ac_exeext conftest.$ac_ext
25871 LIBS=$ac_check_lib_save_LIBS
25872 fi
25873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5
25874 $as_echo "$ac_cv_lib_m_feenableexcept" >&6; }
25875 if test "x$ac_cv_lib_m_feenableexcept" = x""yes; then :
25876 have_feenableexcept=yes
25877 $as_echo "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h
25878
25879 fi
25880
25881
25882 # At least for glibc, clock_gettime is in librt. But don't
25883 # pull that in if it still doesn't give us the function we want. This
25884 # test is copied from libgomp, and modified to not link in -lrt as
25885 # libgfortran calls clock_gettime via a weak reference if it's found
25886 # in librt.
25887 if test $ac_cv_func_clock_gettime = no; then
25888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
25889 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
25890 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
25891 $as_echo_n "(cached) " >&6
25892 else
25893 ac_check_lib_save_LIBS=$LIBS
25894 LIBS="-lrt $LIBS"
25895 if test x$gcc_no_link = xyes; then
25896 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25897 fi
25898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25899 /* end confdefs.h. */
25900
25901 /* Override any GCC internal prototype to avoid an error.
25902 Use char because int might match the return type of a GCC
25903 builtin and then its argument prototype would still apply. */
25904 #ifdef __cplusplus
25905 extern "C"
25906 #endif
25907 char clock_gettime ();
25908 int
25909 main ()
25910 {
25911 return clock_gettime ();
25912 ;
25913 return 0;
25914 }
25915 _ACEOF
25916 if ac_fn_c_try_link "$LINENO"; then :
25917 ac_cv_lib_rt_clock_gettime=yes
25918 else
25919 ac_cv_lib_rt_clock_gettime=no
25920 fi
25921 rm -f core conftest.err conftest.$ac_objext \
25922 conftest$ac_exeext conftest.$ac_ext
25923 LIBS=$ac_check_lib_save_LIBS
25924 fi
25925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
25926 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
25927 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
25928
25929 $as_echo "#define HAVE_CLOCK_GETTIME_LIBRT 1" >>confdefs.h
25930
25931 fi
25932
25933 fi
25934
25935 # Check for SysV fpsetmask
25936
25937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fpsetmask is present" >&5
25938 $as_echo_n "checking whether fpsetmask is present... " >&6; }
25939 if test "${libgfor_cv_have_fpsetmask+set}" = set; then :
25940 $as_echo_n "(cached) " >&6
25941 else
25942
25943 if test x$gcc_no_link = xyes; then
25944 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25945 fi
25946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25947 /* end confdefs.h. */
25948
25949 #if HAVE_FLOATINGPOINT_H
25950 # include <floatingpoint.h>
25951 #endif /* HAVE_FLOATINGPOINT_H */
25952 #if HAVE_IEEEFP_H
25953 # include <ieeefp.h>
25954 #endif /* HAVE_IEEEFP_H */
25955 int
25956 main ()
25957 {
25958 fpsetmask(0);
25959 ;
25960 return 0;
25961 }
25962 _ACEOF
25963 if ac_fn_c_try_link "$LINENO"; then :
25964 eval "libgfor_cv_have_fpsetmask=yes"
25965 else
25966 eval "libgfor_cv_have_fpsetmask=no"
25967 fi
25968 rm -f core conftest.err conftest.$ac_objext \
25969 conftest$ac_exeext conftest.$ac_ext
25970
25971 fi
25972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_fpsetmask" >&5
25973 $as_echo "$libgfor_cv_have_fpsetmask" >&6; }
25974 if test x"$libgfor_cv_have_fpsetmask" = xyes; then
25975 have_fpsetmask=yes
25976
25977 $as_echo "#define HAVE_FPSETMASK 1" >>confdefs.h
25978
25979 fi
25980
25981
25982 # Check for AIX fp_trap and fp_enable
25983 ac_fn_c_check_func "$LINENO" "fp_trap" "ac_cv_func_fp_trap"
25984 if test "x$ac_cv_func_fp_trap" = x""yes; then :
25985 have_fp_trap=yes
25986 $as_echo "#define HAVE_FP_TRAP 1" >>confdefs.h
25987
25988 fi
25989
25990 ac_fn_c_check_func "$LINENO" "fp_enable" "ac_cv_func_fp_enable"
25991 if test "x$ac_cv_func_fp_enable" = x""yes; then :
25992 have_fp_enable=yes
25993 $as_echo "#define HAVE_FP_ENABLE 1" >>confdefs.h
25994
25995 fi
25996
25997
25998 # Runs configure.host to set up necessary host-dependent shell variables.
25999 # We then display a message about it, and propagate them through the
26000 # build chain.
26001 . ${srcdir}/configure.host
26002 { $as_echo "$as_me:${as_lineno-$LINENO}: FPU dependent file will be ${fpu_host}.h" >&5
26003 $as_echo "$as_me: FPU dependent file will be ${fpu_host}.h" >&6;}
26004 FPU_HOST_HEADER=config/${fpu_host}.h
26005
26006
26007 # Some targets require additional compiler options for IEEE compatibility.
26008 IEEE_FLAGS="${ieee_flags}"
26009
26010
26011
26012 # Check for POSIX getpwuid_r
26013 #
26014 # There are two versions of getpwuid_r, the POSIX one with 5
26015 # arguments, and another one with 4 arguments used by at least HP-UX
26016 # 10.2.
26017 if test "$ac_cv_func_getpwuid_r" = "yes"; then
26018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX version of getpwuid_r with 5 arguments" >&5
26019 $as_echo_n "checking POSIX version of getpwuid_r with 5 arguments... " >&6; }
26020 if test "${libgfor_cv_posix_getpwuid_r+set}" = set; then :
26021 $as_echo_n "(cached) " >&6
26022 else
26023
26024 if test x$gcc_no_link = xyes; then
26025 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26026 fi
26027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26028 /* end confdefs.h. */
26029
26030 #include <stdio.h>
26031 #include <sys/types.h>
26032 #include <pwd.h>
26033 int
26034 main ()
26035 {
26036
26037 getpwuid_r(0, NULL, NULL, 0, NULL);
26038
26039 ;
26040 return 0;
26041 }
26042 _ACEOF
26043 if ac_fn_c_try_link "$LINENO"; then :
26044 libgfor_cv_posix_getpwuid_r="yes"
26045 else
26046 libgfor_cv_posix_getpwuid_r="no"
26047 fi
26048 rm -f core conftest.err conftest.$ac_objext \
26049 conftest$ac_exeext conftest.$ac_ext
26050 fi
26051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_posix_getpwuid_r" >&5
26052 $as_echo "$libgfor_cv_posix_getpwuid_r" >&6; }
26053 fi
26054 if test "$libgfor_cv_posix_getpwuid_r" = "yes"; then
26055
26056 $as_echo "#define HAVE_POSIX_GETPWUID_R 1" >>confdefs.h
26057
26058 fi
26059
26060
26061 # Check out attribute support.
26062
26063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
26064 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
26065 if test "${libgfor_cv_have_attribute_visibility+set}" = set; then :
26066 $as_echo_n "(cached) " >&6
26067 else
26068
26069 save_CFLAGS="$CFLAGS"
26070 CFLAGS="$CFLAGS -Werror"
26071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26072 /* end confdefs.h. */
26073 void __attribute__((visibility("hidden"))) foo(void) { }
26074 int
26075 main ()
26076 {
26077
26078 ;
26079 return 0;
26080 }
26081 _ACEOF
26082 if ac_fn_c_try_compile "$LINENO"; then :
26083 libgfor_cv_have_attribute_visibility=yes
26084 else
26085 libgfor_cv_have_attribute_visibility=no
26086 fi
26087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26088 CFLAGS="$save_CFLAGS"
26089 fi
26090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_visibility" >&5
26091 $as_echo "$libgfor_cv_have_attribute_visibility" >&6; }
26092 if test $libgfor_cv_have_attribute_visibility = yes; then
26093
26094 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
26095
26096 fi
26097
26098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
26099 $as_echo_n "checking whether the target supports dllexport... " >&6; }
26100 if test "${libgfor_cv_have_attribute_dllexport+set}" = set; then :
26101 $as_echo_n "(cached) " >&6
26102 else
26103
26104 save_CFLAGS="$CFLAGS"
26105 CFLAGS="$CFLAGS -Werror"
26106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26107 /* end confdefs.h. */
26108 void __attribute__((dllexport)) foo(void) { }
26109 int
26110 main ()
26111 {
26112
26113 ;
26114 return 0;
26115 }
26116 _ACEOF
26117 if ac_fn_c_try_compile "$LINENO"; then :
26118 libgfor_cv_have_attribute_dllexport=yes
26119 else
26120 libgfor_cv_have_attribute_dllexport=no
26121 fi
26122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26123 CFLAGS="$save_CFLAGS"
26124 fi
26125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_dllexport" >&5
26126 $as_echo "$libgfor_cv_have_attribute_dllexport" >&6; }
26127 if test $libgfor_cv_have_attribute_dllexport = yes; then
26128
26129 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
26130
26131 fi
26132
26133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
26134 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
26135 if test "${libgfor_cv_have_attribute_alias+set}" = set; then :
26136 $as_echo_n "(cached) " >&6
26137 else
26138
26139 if test x$gcc_no_link = xyes; then
26140 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26141 fi
26142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26143 /* end confdefs.h. */
26144
26145 void foo(void) { }
26146 extern void bar(void) __attribute__((alias("foo")));
26147 int
26148 main ()
26149 {
26150 bar();
26151 ;
26152 return 0;
26153 }
26154 _ACEOF
26155 if ac_fn_c_try_link "$LINENO"; then :
26156 libgfor_cv_have_attribute_alias=yes
26157 else
26158 libgfor_cv_have_attribute_alias=no
26159 fi
26160 rm -f core conftest.err conftest.$ac_objext \
26161 conftest$ac_exeext conftest.$ac_ext
26162 fi
26163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_alias" >&5
26164 $as_echo "$libgfor_cv_have_attribute_alias" >&6; }
26165 if test $libgfor_cv_have_attribute_alias = yes; then
26166
26167 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
26168
26169 fi
26170
26171 # Check out sync builtins support.
26172
26173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_fetch_and_add" >&5
26174 $as_echo_n "checking whether the target supports __sync_fetch_and_add... " >&6; }
26175 if test "${libgfor_cv_have_sync_fetch_and_add+set}" = set; then :
26176 $as_echo_n "(cached) " >&6
26177 else
26178
26179 if test x$gcc_no_link = xyes; then
26180 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26181 fi
26182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26183 /* end confdefs.h. */
26184 int foovar = 0;
26185 int
26186 main ()
26187 {
26188
26189 if (foovar <= 0) return __sync_fetch_and_add (&foovar, 1);
26190 if (foovar > 10) return __sync_add_and_fetch (&foovar, -1);
26191 ;
26192 return 0;
26193 }
26194 _ACEOF
26195 if ac_fn_c_try_link "$LINENO"; then :
26196 libgfor_cv_have_sync_fetch_and_add=yes
26197 else
26198 libgfor_cv_have_sync_fetch_and_add=no
26199 fi
26200 rm -f core conftest.err conftest.$ac_objext \
26201 conftest$ac_exeext conftest.$ac_ext
26202 fi
26203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_sync_fetch_and_add" >&5
26204 $as_echo "$libgfor_cv_have_sync_fetch_and_add" >&6; }
26205 if test $libgfor_cv_have_sync_fetch_and_add = yes; then
26206
26207 $as_echo "#define HAVE_SYNC_FETCH_AND_ADD 1" >>confdefs.h
26208
26209 fi
26210
26211 # Check out #pragma weak.
26212
26213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pragma weak works" >&5
26214 $as_echo_n "checking whether pragma weak works... " >&6; }
26215 if test "${libgfor_cv_have_pragma_weak+set}" = set; then :
26216 $as_echo_n "(cached) " >&6
26217 else
26218
26219 gfor_save_CFLAGS="$CFLAGS"
26220 CFLAGS="$CFLAGS -Wunknown-pragmas"
26221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26222 /* end confdefs.h. */
26223
26224 void foo (void);
26225 #pragma weak foo
26226
26227 int
26228 main ()
26229 {
26230 if (foo) foo ();
26231 ;
26232 return 0;
26233 }
26234 _ACEOF
26235 if ac_fn_c_try_compile "$LINENO"; then :
26236 libgfor_cv_have_pragma_weak=yes
26237 else
26238 libgfor_cv_have_pragma_weak=no
26239 fi
26240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26241 fi
26242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_pragma_weak" >&5
26243 $as_echo "$libgfor_cv_have_pragma_weak" >&6; }
26244 if test $libgfor_cv_have_pragma_weak = yes; then
26245
26246 $as_echo "#define SUPPORTS_WEAK 1" >>confdefs.h
26247
26248 fi
26249 case "$host" in
26250 *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* )
26251
26252 $as_echo "#define GTHREAD_USE_WEAK 0" >>confdefs.h
26253
26254 ;;
26255 esac
26256
26257 # Various other checks on target
26258
26259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target can unlink an open file" >&5
26260 $as_echo_n "checking whether the target can unlink an open file... " >&6; }
26261 if test "${libgfor_cv_have_unlink_open_file+set}" = set; then :
26262 $as_echo_n "(cached) " >&6
26263 else
26264
26265 if test "$cross_compiling" = yes; then :
26266
26267 case "${target}" in
26268 *mingw*) libgfor_cv_have_unlink_open_file=no ;;
26269 *) libgfor_cv_have_unlink_open_file=yes;;
26270 esac
26271 else
26272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26273 /* end confdefs.h. */
26274
26275 #include <errno.h>
26276 #include <fcntl.h>
26277 #include <unistd.h>
26278 #include <sys/stat.h>
26279
26280 int main ()
26281 {
26282 int fd;
26283
26284 fd = open ("testfile", O_RDWR | O_CREAT, S_IWUSR | S_IRUSR);
26285 if (fd <= 0)
26286 return 0;
26287 if (unlink ("testfile") == -1)
26288 return 1;
26289 write (fd, "This is a test\n", 15);
26290 close (fd);
26291
26292 if (open ("testfile", O_RDONLY) == -1 && errno == ENOENT)
26293 return 0;
26294 else
26295 return 1;
26296 }
26297 _ACEOF
26298 if ac_fn_c_try_run "$LINENO"; then :
26299 libgfor_cv_have_unlink_open_file=yes
26300 else
26301 libgfor_cv_have_unlink_open_file=no
26302 fi
26303 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26304 conftest.$ac_objext conftest.beam conftest.$ac_ext
26305 fi
26306
26307 fi
26308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_unlink_open_file" >&5
26309 $as_echo "$libgfor_cv_have_unlink_open_file" >&6; }
26310 if test x"$libgfor_cv_have_unlink_open_file" = xyes; then
26311
26312 $as_echo "#define HAVE_UNLINK_OPEN_FILE 1" >>confdefs.h
26313
26314 fi
26315
26316 # Check whether line terminator is LF or CRLF
26317
26318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target has CRLF as line terminator" >&5
26319 $as_echo_n "checking whether the target has CRLF as line terminator... " >&6; }
26320 if test "${libgfor_cv_have_crlf+set}" = set; then :
26321 $as_echo_n "(cached) " >&6
26322 else
26323
26324 if test "$cross_compiling" = yes; then :
26325
26326 case "${target}" in
26327 *mingw*) libgfor_cv_have_crlf=yes ;;
26328 *) libgfor_cv_have_crlf=no;;
26329 esac
26330 else
26331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26332 /* end confdefs.h. */
26333
26334 /* This test program should exit with status 0 if system uses a CRLF as
26335 line terminator, and status 1 otherwise.
26336 Since it is used to check for mingw systems, and should return 0 in any
26337 other case, in case of a failure we will not use CRLF. */
26338 #include <sys/stat.h>
26339 #include <stdlib.h>
26340 #include <fcntl.h>
26341 #include <stdio.h>
26342
26343 int main ()
26344 {
26345 #ifndef O_BINARY
26346 exit(1);
26347 #else
26348 int fd, bytes;
26349 char buff[5];
26350
26351 fd = open ("foo", O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU);
26352 if (fd < 0)
26353 exit(1);
26354 if (write (fd, "\n", 1) < 0)
26355 perror ("write");
26356
26357 close (fd);
26358
26359 if ((fd = open ("foo", O_RDONLY | O_BINARY, S_IRWXU)) < 0)
26360 exit(1);
26361 bytes = read (fd, buff, 5);
26362 if (bytes == 2 && buff[0] == '\r' && buff[1] == '\n')
26363 exit(0);
26364 else
26365 exit(1);
26366 #endif
26367 }
26368 _ACEOF
26369 if ac_fn_c_try_run "$LINENO"; then :
26370 libgfor_cv_have_crlf=yes
26371 else
26372 libgfor_cv_have_crlf=no
26373 fi
26374 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26375 conftest.$ac_objext conftest.beam conftest.$ac_ext
26376 fi
26377
26378 fi
26379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_crlf" >&5
26380 $as_echo "$libgfor_cv_have_crlf" >&6; }
26381 if test x"$libgfor_cv_have_crlf" = xyes; then
26382
26383 $as_echo "#define HAVE_CRLF 1" >>confdefs.h
26384
26385 fi
26386
26387 # Check whether we have _Unwind_GetIPInfo for backtrace
26388
26389
26390 # Check whether --with-system-libunwind was given.
26391 if test "${with_system_libunwind+set}" = set; then :
26392 withval=$with_system_libunwind;
26393 fi
26394
26395 # If system-libunwind was not specifically set, pick a default setting.
26396 if test x$with_system_libunwind = x; then
26397 case ${target} in
26398 ia64-*-hpux*) with_system_libunwind=yes ;;
26399 *) with_system_libunwind=no ;;
26400 esac
26401 fi
26402 # Based on system-libunwind and target, do we have ipinfo?
26403 if test x$with_system_libunwind = xyes; then
26404 case ${target} in
26405 ia64-*-*) have_unwind_getipinfo=no ;;
26406 *) have_unwind_getipinfo=yes ;;
26407 esac
26408 else
26409 # Darwin before version 9 does not have _Unwind_GetIPInfo.
26410
26411 case ${target} in
26412 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
26413 *) have_unwind_getipinfo=yes ;;
26414 esac
26415
26416 fi
26417
26418 if test x$have_unwind_getipinfo = xyes; then
26419
26420 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
26421
26422 fi
26423
26424
26425 cat >confcache <<\_ACEOF
26426 # This file is a shell script that caches the results of configure
26427 # tests run on this system so they can be shared between configure
26428 # scripts and configure runs, see configure's option --config-cache.
26429 # It is not useful on other systems. If it contains results you don't
26430 # want to keep, you may remove or edit it.
26431 #
26432 # config.status only pays attention to the cache file if you give it
26433 # the --recheck option to rerun configure.
26434 #
26435 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26436 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26437 # following values.
26438
26439 _ACEOF
26440
26441 # The following way of writing the cache mishandles newlines in values,
26442 # but we know of no workaround that is simple, portable, and efficient.
26443 # So, we kill variables containing newlines.
26444 # Ultrix sh set writes to stderr and can't be redirected directly,
26445 # and sets the high bit in the cache file unless we assign to the vars.
26446 (
26447 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26448 eval ac_val=\$$ac_var
26449 case $ac_val in #(
26450 *${as_nl}*)
26451 case $ac_var in #(
26452 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26453 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26454 esac
26455 case $ac_var in #(
26456 _ | IFS | as_nl) ;; #(
26457 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26458 *) { eval $ac_var=; unset $ac_var;} ;;
26459 esac ;;
26460 esac
26461 done
26462
26463 (set) 2>&1 |
26464 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26465 *${as_nl}ac_space=\ *)
26466 # `set' does not quote correctly, so add quotes: double-quote
26467 # substitution turns \\\\ into \\, and sed turns \\ into \.
26468 sed -n \
26469 "s/'/'\\\\''/g;
26470 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26471 ;; #(
26472 *)
26473 # `set' quotes correctly as required by POSIX, so do not add quotes.
26474 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26475 ;;
26476 esac |
26477 sort
26478 ) |
26479 sed '
26480 /^ac_cv_env_/b end
26481 t clear
26482 :clear
26483 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26484 t end
26485 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26486 :end' >>confcache
26487 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26488 if test -w "$cache_file"; then
26489 test "x$cache_file" != "x/dev/null" &&
26490 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26491 $as_echo "$as_me: updating cache $cache_file" >&6;}
26492 cat confcache >$cache_file
26493 else
26494 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26495 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26496 fi
26497 fi
26498 rm -f confcache
26499
26500 if test ${multilib} = yes; then
26501 multilib_arg="--enable-multilib"
26502 else
26503 multilib_arg=
26504 fi
26505
26506 # Write our Makefile and spec file.
26507 ac_config_files="$ac_config_files Makefile libgfortran.spec"
26508
26509 cat >confcache <<\_ACEOF
26510 # This file is a shell script that caches the results of configure
26511 # tests run on this system so they can be shared between configure
26512 # scripts and configure runs, see configure's option --config-cache.
26513 # It is not useful on other systems. If it contains results you don't
26514 # want to keep, you may remove or edit it.
26515 #
26516 # config.status only pays attention to the cache file if you give it
26517 # the --recheck option to rerun configure.
26518 #
26519 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26520 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26521 # following values.
26522
26523 _ACEOF
26524
26525 # The following way of writing the cache mishandles newlines in values,
26526 # but we know of no workaround that is simple, portable, and efficient.
26527 # So, we kill variables containing newlines.
26528 # Ultrix sh set writes to stderr and can't be redirected directly,
26529 # and sets the high bit in the cache file unless we assign to the vars.
26530 (
26531 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26532 eval ac_val=\$$ac_var
26533 case $ac_val in #(
26534 *${as_nl}*)
26535 case $ac_var in #(
26536 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26537 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26538 esac
26539 case $ac_var in #(
26540 _ | IFS | as_nl) ;; #(
26541 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26542 *) { eval $ac_var=; unset $ac_var;} ;;
26543 esac ;;
26544 esac
26545 done
26546
26547 (set) 2>&1 |
26548 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26549 *${as_nl}ac_space=\ *)
26550 # `set' does not quote correctly, so add quotes: double-quote
26551 # substitution turns \\\\ into \\, and sed turns \\ into \.
26552 sed -n \
26553 "s/'/'\\\\''/g;
26554 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26555 ;; #(
26556 *)
26557 # `set' quotes correctly as required by POSIX, so do not add quotes.
26558 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26559 ;;
26560 esac |
26561 sort
26562 ) |
26563 sed '
26564 /^ac_cv_env_/b end
26565 t clear
26566 :clear
26567 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26568 t end
26569 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26570 :end' >>confcache
26571 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26572 if test -w "$cache_file"; then
26573 test "x$cache_file" != "x/dev/null" &&
26574 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26575 $as_echo "$as_me: updating cache $cache_file" >&6;}
26576 cat confcache >$cache_file
26577 else
26578 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26579 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26580 fi
26581 fi
26582 rm -f confcache
26583
26584 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26585 # Let make expand exec_prefix.
26586 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26587
26588 DEFS=-DHAVE_CONFIG_H
26589
26590 ac_libobjs=
26591 ac_ltlibobjs=
26592 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26593 # 1. Remove the extension, and $U if already installed.
26594 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26595 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26596 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26597 # will be set to the directory where LIBOBJS objects are built.
26598 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26599 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26600 done
26601 LIBOBJS=$ac_libobjs
26602
26603 LTLIBOBJS=$ac_ltlibobjs
26604
26605
26606 if test -z "${onestep_TRUE}" && test -z "${onestep_FALSE}"; then
26607 as_fn_error "conditional \"onestep\" was never defined.
26608 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26609 fi
26610 if test -n "$EXEEXT"; then
26611 am__EXEEXT_TRUE=
26612 am__EXEEXT_FALSE='#'
26613 else
26614 am__EXEEXT_TRUE='#'
26615 am__EXEEXT_FALSE=
26616 fi
26617
26618 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26619 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
26620 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26621 fi
26622 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26623 as_fn_error "conditional \"AMDEP\" was never defined.
26624 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26625 fi
26626 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26627 as_fn_error "conditional \"am__fastdepCC\" was never defined.
26628 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26629 fi
26630 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26631 as_fn_error "conditional \"am__fastdepCC\" was never defined.
26632 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26633 fi
26634 if test -z "${LIBGFOR_USE_SYMVER_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_FALSE}"; then
26635 as_fn_error "conditional \"LIBGFOR_USE_SYMVER\" was never defined.
26636 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26637 fi
26638 if test -z "${LIBGFOR_USE_SYMVER_GNU_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_GNU_FALSE}"; then
26639 as_fn_error "conditional \"LIBGFOR_USE_SYMVER_GNU\" was never defined.
26640 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26641 fi
26642 if test -z "${LIBGFOR_USE_SYMVER_SUN_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_SUN_FALSE}"; then
26643 as_fn_error "conditional \"LIBGFOR_USE_SYMVER_SUN\" was never defined.
26644 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26645 fi
26646 if test -z "${LIBGFOR_BUILD_QUAD_TRUE}" && test -z "${LIBGFOR_BUILD_QUAD_FALSE}"; then
26647 as_fn_error "conditional \"LIBGFOR_BUILD_QUAD\" was never defined.
26648 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26649 fi
26650
26651 : ${CONFIG_STATUS=./config.status}
26652 ac_write_fail=0
26653 ac_clean_files_save=$ac_clean_files
26654 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26655 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26656 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26657 as_write_fail=0
26658 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26659 #! $SHELL
26660 # Generated by $as_me.
26661 # Run this file to recreate the current configuration.
26662 # Compiler output produced by configure, useful for debugging
26663 # configure, is in config.log if it exists.
26664
26665 debug=false
26666 ac_cs_recheck=false
26667 ac_cs_silent=false
26668
26669 SHELL=\${CONFIG_SHELL-$SHELL}
26670 export SHELL
26671 _ASEOF
26672 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26673 ## -------------------- ##
26674 ## M4sh Initialization. ##
26675 ## -------------------- ##
26676
26677 # Be more Bourne compatible
26678 DUALCASE=1; export DUALCASE # for MKS sh
26679 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26680 emulate sh
26681 NULLCMD=:
26682 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26683 # is contrary to our usage. Disable this feature.
26684 alias -g '${1+"$@"}'='"$@"'
26685 setopt NO_GLOB_SUBST
26686 else
26687 case `(set -o) 2>/dev/null` in #(
26688 *posix*) :
26689 set -o posix ;; #(
26690 *) :
26691 ;;
26692 esac
26693 fi
26694
26695
26696 as_nl='
26697 '
26698 export as_nl
26699 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26700 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26701 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26702 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26703 # Prefer a ksh shell builtin over an external printf program on Solaris,
26704 # but without wasting forks for bash or zsh.
26705 if test -z "$BASH_VERSION$ZSH_VERSION" \
26706 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26707 as_echo='print -r --'
26708 as_echo_n='print -rn --'
26709 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26710 as_echo='printf %s\n'
26711 as_echo_n='printf %s'
26712 else
26713 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26714 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26715 as_echo_n='/usr/ucb/echo -n'
26716 else
26717 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26718 as_echo_n_body='eval
26719 arg=$1;
26720 case $arg in #(
26721 *"$as_nl"*)
26722 expr "X$arg" : "X\\(.*\\)$as_nl";
26723 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26724 esac;
26725 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26726 '
26727 export as_echo_n_body
26728 as_echo_n='sh -c $as_echo_n_body as_echo'
26729 fi
26730 export as_echo_body
26731 as_echo='sh -c $as_echo_body as_echo'
26732 fi
26733
26734 # The user is always right.
26735 if test "${PATH_SEPARATOR+set}" != set; then
26736 PATH_SEPARATOR=:
26737 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26738 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26739 PATH_SEPARATOR=';'
26740 }
26741 fi
26742
26743
26744 # IFS
26745 # We need space, tab and new line, in precisely that order. Quoting is
26746 # there to prevent editors from complaining about space-tab.
26747 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26748 # splitting by setting IFS to empty value.)
26749 IFS=" "" $as_nl"
26750
26751 # Find who we are. Look in the path if we contain no directory separator.
26752 case $0 in #((
26753 *[\\/]* ) as_myself=$0 ;;
26754 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26755 for as_dir in $PATH
26756 do
26757 IFS=$as_save_IFS
26758 test -z "$as_dir" && as_dir=.
26759 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26760 done
26761 IFS=$as_save_IFS
26762
26763 ;;
26764 esac
26765 # We did not find ourselves, most probably we were run as `sh COMMAND'
26766 # in which case we are not to be found in the path.
26767 if test "x$as_myself" = x; then
26768 as_myself=$0
26769 fi
26770 if test ! -f "$as_myself"; then
26771 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26772 exit 1
26773 fi
26774
26775 # Unset variables that we do not need and which cause bugs (e.g. in
26776 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26777 # suppresses any "Segmentation fault" message there. '((' could
26778 # trigger a bug in pdksh 5.2.14.
26779 for as_var in BASH_ENV ENV MAIL MAILPATH
26780 do eval test x\${$as_var+set} = xset \
26781 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26782 done
26783 PS1='$ '
26784 PS2='> '
26785 PS4='+ '
26786
26787 # NLS nuisances.
26788 LC_ALL=C
26789 export LC_ALL
26790 LANGUAGE=C
26791 export LANGUAGE
26792
26793 # CDPATH.
26794 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26795
26796
26797 # as_fn_error ERROR [LINENO LOG_FD]
26798 # ---------------------------------
26799 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26800 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26801 # script with status $?, using 1 if that was 0.
26802 as_fn_error ()
26803 {
26804 as_status=$?; test $as_status -eq 0 && as_status=1
26805 if test "$3"; then
26806 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26807 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26808 fi
26809 $as_echo "$as_me: error: $1" >&2
26810 as_fn_exit $as_status
26811 } # as_fn_error
26812
26813
26814 # as_fn_set_status STATUS
26815 # -----------------------
26816 # Set $? to STATUS, without forking.
26817 as_fn_set_status ()
26818 {
26819 return $1
26820 } # as_fn_set_status
26821
26822 # as_fn_exit STATUS
26823 # -----------------
26824 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26825 as_fn_exit ()
26826 {
26827 set +e
26828 as_fn_set_status $1
26829 exit $1
26830 } # as_fn_exit
26831
26832 # as_fn_unset VAR
26833 # ---------------
26834 # Portably unset VAR.
26835 as_fn_unset ()
26836 {
26837 { eval $1=; unset $1;}
26838 }
26839 as_unset=as_fn_unset
26840 # as_fn_append VAR VALUE
26841 # ----------------------
26842 # Append the text in VALUE to the end of the definition contained in VAR. Take
26843 # advantage of any shell optimizations that allow amortized linear growth over
26844 # repeated appends, instead of the typical quadratic growth present in naive
26845 # implementations.
26846 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26847 eval 'as_fn_append ()
26848 {
26849 eval $1+=\$2
26850 }'
26851 else
26852 as_fn_append ()
26853 {
26854 eval $1=\$$1\$2
26855 }
26856 fi # as_fn_append
26857
26858 # as_fn_arith ARG...
26859 # ------------------
26860 # Perform arithmetic evaluation on the ARGs, and store the result in the
26861 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26862 # must be portable across $(()) and expr.
26863 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26864 eval 'as_fn_arith ()
26865 {
26866 as_val=$(( $* ))
26867 }'
26868 else
26869 as_fn_arith ()
26870 {
26871 as_val=`expr "$@" || test $? -eq 1`
26872 }
26873 fi # as_fn_arith
26874
26875
26876 if expr a : '\(a\)' >/dev/null 2>&1 &&
26877 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26878 as_expr=expr
26879 else
26880 as_expr=false
26881 fi
26882
26883 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26884 as_basename=basename
26885 else
26886 as_basename=false
26887 fi
26888
26889 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26890 as_dirname=dirname
26891 else
26892 as_dirname=false
26893 fi
26894
26895 as_me=`$as_basename -- "$0" ||
26896 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26897 X"$0" : 'X\(//\)$' \| \
26898 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26899 $as_echo X/"$0" |
26900 sed '/^.*\/\([^/][^/]*\)\/*$/{
26901 s//\1/
26902 q
26903 }
26904 /^X\/\(\/\/\)$/{
26905 s//\1/
26906 q
26907 }
26908 /^X\/\(\/\).*/{
26909 s//\1/
26910 q
26911 }
26912 s/.*/./; q'`
26913
26914 # Avoid depending upon Character Ranges.
26915 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26916 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26917 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26918 as_cr_digits='0123456789'
26919 as_cr_alnum=$as_cr_Letters$as_cr_digits
26920
26921 ECHO_C= ECHO_N= ECHO_T=
26922 case `echo -n x` in #(((((
26923 -n*)
26924 case `echo 'xy\c'` in
26925 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26926 xy) ECHO_C='\c';;
26927 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
26928 ECHO_T=' ';;
26929 esac;;
26930 *)
26931 ECHO_N='-n';;
26932 esac
26933
26934 rm -f conf$$ conf$$.exe conf$$.file
26935 if test -d conf$$.dir; then
26936 rm -f conf$$.dir/conf$$.file
26937 else
26938 rm -f conf$$.dir
26939 mkdir conf$$.dir 2>/dev/null
26940 fi
26941 if (echo >conf$$.file) 2>/dev/null; then
26942 if ln -s conf$$.file conf$$ 2>/dev/null; then
26943 as_ln_s='ln -s'
26944 # ... but there are two gotchas:
26945 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26946 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26947 # In both cases, we have to default to `cp -p'.
26948 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26949 as_ln_s='cp -p'
26950 elif ln conf$$.file conf$$ 2>/dev/null; then
26951 as_ln_s=ln
26952 else
26953 as_ln_s='cp -p'
26954 fi
26955 else
26956 as_ln_s='cp -p'
26957 fi
26958 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26959 rmdir conf$$.dir 2>/dev/null
26960
26961
26962 # as_fn_mkdir_p
26963 # -------------
26964 # Create "$as_dir" as a directory, including parents if necessary.
26965 as_fn_mkdir_p ()
26966 {
26967
26968 case $as_dir in #(
26969 -*) as_dir=./$as_dir;;
26970 esac
26971 test -d "$as_dir" || eval $as_mkdir_p || {
26972 as_dirs=
26973 while :; do
26974 case $as_dir in #(
26975 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26976 *) as_qdir=$as_dir;;
26977 esac
26978 as_dirs="'$as_qdir' $as_dirs"
26979 as_dir=`$as_dirname -- "$as_dir" ||
26980 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26981 X"$as_dir" : 'X\(//\)[^/]' \| \
26982 X"$as_dir" : 'X\(//\)$' \| \
26983 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26984 $as_echo X"$as_dir" |
26985 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26986 s//\1/
26987 q
26988 }
26989 /^X\(\/\/\)[^/].*/{
26990 s//\1/
26991 q
26992 }
26993 /^X\(\/\/\)$/{
26994 s//\1/
26995 q
26996 }
26997 /^X\(\/\).*/{
26998 s//\1/
26999 q
27000 }
27001 s/.*/./; q'`
27002 test -d "$as_dir" && break
27003 done
27004 test -z "$as_dirs" || eval "mkdir $as_dirs"
27005 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27006
27007
27008 } # as_fn_mkdir_p
27009 if mkdir -p . 2>/dev/null; then
27010 as_mkdir_p='mkdir -p "$as_dir"'
27011 else
27012 test -d ./-p && rmdir ./-p
27013 as_mkdir_p=false
27014 fi
27015
27016 if test -x / >/dev/null 2>&1; then
27017 as_test_x='test -x'
27018 else
27019 if ls -dL / >/dev/null 2>&1; then
27020 as_ls_L_option=L
27021 else
27022 as_ls_L_option=
27023 fi
27024 as_test_x='
27025 eval sh -c '\''
27026 if test -d "$1"; then
27027 test -d "$1/.";
27028 else
27029 case $1 in #(
27030 -*)set "./$1";;
27031 esac;
27032 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27033 ???[sx]*):;;*)false;;esac;fi
27034 '\'' sh
27035 '
27036 fi
27037 as_executable_p=$as_test_x
27038
27039 # Sed expression to map a string onto a valid CPP name.
27040 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27041
27042 # Sed expression to map a string onto a valid variable name.
27043 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27044
27045
27046 exec 6>&1
27047 ## ----------------------------------- ##
27048 ## Main body of $CONFIG_STATUS script. ##
27049 ## ----------------------------------- ##
27050 _ASEOF
27051 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27052
27053 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27054 # Save the log message, to keep $0 and so on meaningful, and to
27055 # report actual input values of CONFIG_FILES etc. instead of their
27056 # values after options handling.
27057 ac_log="
27058 This file was extended by GNU Fortran Runtime Library $as_me 0.3, which was
27059 generated by GNU Autoconf 2.64. Invocation command line was
27060
27061 CONFIG_FILES = $CONFIG_FILES
27062 CONFIG_HEADERS = $CONFIG_HEADERS
27063 CONFIG_LINKS = $CONFIG_LINKS
27064 CONFIG_COMMANDS = $CONFIG_COMMANDS
27065 $ $0 $@
27066
27067 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27068 "
27069
27070 _ACEOF
27071
27072 case $ac_config_files in *"
27073 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27074 esac
27075
27076 case $ac_config_headers in *"
27077 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27078 esac
27079
27080
27081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27082 # Files that config.status was made for.
27083 config_files="$ac_config_files"
27084 config_headers="$ac_config_headers"
27085 config_commands="$ac_config_commands"
27086
27087 _ACEOF
27088
27089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27090 ac_cs_usage="\
27091 \`$as_me' instantiates files and other configuration actions
27092 from templates according to the current configuration. Unless the files
27093 and actions are specified as TAGs, all are instantiated by default.
27094
27095 Usage: $0 [OPTION]... [TAG]...
27096
27097 -h, --help print this help, then exit
27098 -V, --version print version number and configuration settings, then exit
27099 -q, --quiet, --silent
27100 do not print progress messages
27101 -d, --debug don't remove temporary files
27102 --recheck update $as_me by reconfiguring in the same conditions
27103 --file=FILE[:TEMPLATE]
27104 instantiate the configuration file FILE
27105 --header=FILE[:TEMPLATE]
27106 instantiate the configuration header FILE
27107
27108 Configuration files:
27109 $config_files
27110
27111 Configuration headers:
27112 $config_headers
27113
27114 Configuration commands:
27115 $config_commands
27116
27117 Report bugs to the package provider.
27118 GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
27119 General help using GNU software: <http://www.gnu.org/gethelp/>."
27120
27121 _ACEOF
27122 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27123 ac_cs_version="\\
27124 GNU Fortran Runtime Library config.status 0.3
27125 configured by $0, generated by GNU Autoconf 2.64,
27126 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27127
27128 Copyright (C) 2009 Free Software Foundation, Inc.
27129 This config.status script is free software; the Free Software Foundation
27130 gives unlimited permission to copy, distribute and modify it."
27131
27132 ac_pwd='$ac_pwd'
27133 srcdir='$srcdir'
27134 INSTALL='$INSTALL'
27135 MKDIR_P='$MKDIR_P'
27136 AWK='$AWK'
27137 test -n "\$AWK" || AWK=awk
27138 _ACEOF
27139
27140 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27141 # The default lists apply if the user does not specify any file.
27142 ac_need_defaults=:
27143 while test $# != 0
27144 do
27145 case $1 in
27146 --*=*)
27147 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27148 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27149 ac_shift=:
27150 ;;
27151 *)
27152 ac_option=$1
27153 ac_optarg=$2
27154 ac_shift=shift
27155 ;;
27156 esac
27157
27158 case $ac_option in
27159 # Handling of the options.
27160 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27161 ac_cs_recheck=: ;;
27162 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27163 $as_echo "$ac_cs_version"; exit ;;
27164 --debug | --debu | --deb | --de | --d | -d )
27165 debug=: ;;
27166 --file | --fil | --fi | --f )
27167 $ac_shift
27168 case $ac_optarg in
27169 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27170 esac
27171 as_fn_append CONFIG_FILES " '$ac_optarg'"
27172 ac_need_defaults=false;;
27173 --header | --heade | --head | --hea )
27174 $ac_shift
27175 case $ac_optarg in
27176 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27177 esac
27178 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27179 ac_need_defaults=false;;
27180 --he | --h)
27181 # Conflict between --help and --header
27182 as_fn_error "ambiguous option: \`$1'
27183 Try \`$0 --help' for more information.";;
27184 --help | --hel | -h )
27185 $as_echo "$ac_cs_usage"; exit ;;
27186 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27187 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27188 ac_cs_silent=: ;;
27189
27190 # This is an error.
27191 -*) as_fn_error "unrecognized option: \`$1'
27192 Try \`$0 --help' for more information." ;;
27193
27194 *) as_fn_append ac_config_targets " $1"
27195 ac_need_defaults=false ;;
27196
27197 esac
27198 shift
27199 done
27200
27201 ac_configure_extra_args=
27202
27203 if $ac_cs_silent; then
27204 exec 6>/dev/null
27205 ac_configure_extra_args="$ac_configure_extra_args --silent"
27206 fi
27207
27208 _ACEOF
27209 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27210 if \$ac_cs_recheck; then
27211 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27212 shift
27213 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27214 CONFIG_SHELL='$SHELL'
27215 export CONFIG_SHELL
27216 exec "\$@"
27217 fi
27218
27219 _ACEOF
27220 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27221 exec 5>>config.log
27222 {
27223 echo
27224 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27225 ## Running $as_me. ##
27226 _ASBOX
27227 $as_echo "$ac_log"
27228 } >&5
27229
27230 _ACEOF
27231 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27232 #
27233 # INIT-COMMANDS
27234 #
27235
27236 srcdir="$srcdir"
27237 host="$host"
27238 target="$target"
27239 with_multisubdir="$with_multisubdir"
27240 with_multisrctop="$with_multisrctop"
27241 with_target_subdir="$with_target_subdir"
27242 ac_configure_args="${multilib_arg} ${ac_configure_args}"
27243 multi_basedir="$multi_basedir"
27244 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
27245 CC="$CC"
27246 CXX="$CXX"
27247 GFORTRAN="$GFORTRAN"
27248 GCJ="$GCJ"
27249 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27250
27251
27252 # The HP-UX ksh and POSIX shell print the target directory to stdout
27253 # if CDPATH is set.
27254 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27255
27256 sed_quote_subst='$sed_quote_subst'
27257 double_quote_subst='$double_quote_subst'
27258 delay_variable_subst='$delay_variable_subst'
27259 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
27260 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
27261 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
27262 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27263 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27264 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
27265 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27266 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27267 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27268 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27269 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
27270 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
27271 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
27272 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
27273 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
27274 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
27275 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
27276 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
27277 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
27278 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
27279 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27280 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27281 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27282 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27283 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27284 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27285 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27286 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27287 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27288 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27289 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
27290 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27291 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27292 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27293 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27294 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27295 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27296 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27297 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27298 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27299 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27300 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27301 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27302 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27303 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27304 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27305 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27306 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27307 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"`'
27308 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27309 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27310 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27311 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27312 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27313 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27314 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27315 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27316 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27317 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27318 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27319 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27320 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27321 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27322 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27323 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27324 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27325 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27326 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27327 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27328 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27329 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
27330 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27331 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27332 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27333 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27334 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27335 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27336 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27337 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27338 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27339 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
27340 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27341 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27342 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27343 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27344 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27345 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27346 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27347 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27348 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
27349 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27350 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27351 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27352 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27353 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27354 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27355 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27356 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27357 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27358 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27359 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27360 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27361 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27362 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27363 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27364 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27365 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27366 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27367 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27368 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27369 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27370 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27371 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27372 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
27373 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27374 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27375 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27376 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27377 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27378 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27379 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
27380 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
27381 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
27382 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
27383 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
27384 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
27385 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
27386 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
27387 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
27388 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
27389 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
27390 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
27391 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
27392 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
27393 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
27394 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
27395 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
27396 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
27397 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
27398 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27399 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27400 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
27401 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
27402 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
27403 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
27404 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
27405 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
27406 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
27407 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
27408 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
27409 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
27410 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27411 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
27412 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
27413 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
27414 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
27415 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
27416 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
27417 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
27418 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
27419 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
27420 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
27421 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
27422 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
27423 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
27424 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
27425 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
27426 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
27427 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
27428 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
27429 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
27430 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
27431 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
27432 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
27433 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
27434
27435 LTCC='$LTCC'
27436 LTCFLAGS='$LTCFLAGS'
27437 compiler='$compiler_DEFAULT'
27438
27439 # A function that is used when there is no print builtin or printf.
27440 func_fallback_echo ()
27441 {
27442 eval 'cat <<_LTECHO_EOF
27443 \$1
27444 _LTECHO_EOF'
27445 }
27446
27447 # Quote evaled strings.
27448 for var in SHELL \
27449 ECHO \
27450 SED \
27451 GREP \
27452 EGREP \
27453 FGREP \
27454 LD \
27455 NM \
27456 LN_S \
27457 lt_SP2NL \
27458 lt_NL2SP \
27459 reload_flag \
27460 OBJDUMP \
27461 deplibs_check_method \
27462 file_magic_cmd \
27463 AR \
27464 AR_FLAGS \
27465 STRIP \
27466 RANLIB \
27467 CC \
27468 CFLAGS \
27469 compiler \
27470 lt_cv_sys_global_symbol_pipe \
27471 lt_cv_sys_global_symbol_to_cdecl \
27472 lt_cv_sys_global_symbol_to_c_name_address \
27473 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27474 lt_prog_compiler_no_builtin_flag \
27475 lt_prog_compiler_wl \
27476 lt_prog_compiler_pic \
27477 lt_prog_compiler_static \
27478 lt_cv_prog_compiler_c_o \
27479 need_locks \
27480 DSYMUTIL \
27481 NMEDIT \
27482 LIPO \
27483 OTOOL \
27484 OTOOL64 \
27485 shrext_cmds \
27486 export_dynamic_flag_spec \
27487 whole_archive_flag_spec \
27488 compiler_needs_object \
27489 with_gnu_ld \
27490 allow_undefined_flag \
27491 no_undefined_flag \
27492 hardcode_libdir_flag_spec \
27493 hardcode_libdir_flag_spec_ld \
27494 hardcode_libdir_separator \
27495 fix_srcfile_path \
27496 exclude_expsyms \
27497 include_expsyms \
27498 file_list_spec \
27499 variables_saved_for_relink \
27500 libname_spec \
27501 library_names_spec \
27502 soname_spec \
27503 install_override_mode \
27504 finish_eval \
27505 old_striplib \
27506 striplib \
27507 compiler_lib_search_dirs \
27508 predep_objects \
27509 postdep_objects \
27510 predeps \
27511 postdeps \
27512 compiler_lib_search_path \
27513 LD_FC \
27514 reload_flag_FC \
27515 compiler_FC \
27516 lt_prog_compiler_no_builtin_flag_FC \
27517 lt_prog_compiler_wl_FC \
27518 lt_prog_compiler_pic_FC \
27519 lt_prog_compiler_static_FC \
27520 lt_cv_prog_compiler_c_o_FC \
27521 export_dynamic_flag_spec_FC \
27522 whole_archive_flag_spec_FC \
27523 compiler_needs_object_FC \
27524 with_gnu_ld_FC \
27525 allow_undefined_flag_FC \
27526 no_undefined_flag_FC \
27527 hardcode_libdir_flag_spec_FC \
27528 hardcode_libdir_flag_spec_ld_FC \
27529 hardcode_libdir_separator_FC \
27530 fix_srcfile_path_FC \
27531 exclude_expsyms_FC \
27532 include_expsyms_FC \
27533 file_list_spec_FC \
27534 compiler_lib_search_dirs_FC \
27535 predep_objects_FC \
27536 postdep_objects_FC \
27537 predeps_FC \
27538 postdeps_FC \
27539 compiler_lib_search_path_FC; do
27540 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27541 *[\\\\\\\`\\"\\\$]*)
27542 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
27543 ;;
27544 *)
27545 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27546 ;;
27547 esac
27548 done
27549
27550 # Double-quote double-evaled strings.
27551 for var in reload_cmds \
27552 old_postinstall_cmds \
27553 old_postuninstall_cmds \
27554 old_archive_cmds \
27555 extract_expsyms_cmds \
27556 old_archive_from_new_cmds \
27557 old_archive_from_expsyms_cmds \
27558 archive_cmds \
27559 archive_expsym_cmds \
27560 module_cmds \
27561 module_expsym_cmds \
27562 export_symbols_cmds \
27563 prelink_cmds \
27564 postinstall_cmds \
27565 postuninstall_cmds \
27566 finish_cmds \
27567 sys_lib_search_path_spec \
27568 sys_lib_dlsearch_path_spec \
27569 reload_cmds_FC \
27570 old_archive_cmds_FC \
27571 old_archive_from_new_cmds_FC \
27572 old_archive_from_expsyms_cmds_FC \
27573 archive_cmds_FC \
27574 archive_expsym_cmds_FC \
27575 module_cmds_FC \
27576 module_expsym_cmds_FC \
27577 export_symbols_cmds_FC \
27578 prelink_cmds_FC; do
27579 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27580 *[\\\\\\\`\\"\\\$]*)
27581 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
27582 ;;
27583 *)
27584 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27585 ;;
27586 esac
27587 done
27588
27589 ac_aux_dir='$ac_aux_dir'
27590 xsi_shell='$xsi_shell'
27591 lt_shell_append='$lt_shell_append'
27592
27593 # See if we are running on zsh, and set the options which allow our
27594 # commands through without removal of \ escapes INIT.
27595 if test -n "\${ZSH_VERSION+set}" ; then
27596 setopt NO_GLOB_SUBST
27597 fi
27598
27599
27600 PACKAGE='$PACKAGE'
27601 VERSION='$VERSION'
27602 TIMESTAMP='$TIMESTAMP'
27603 RM='$RM'
27604 ofile='$ofile'
27605
27606
27607
27608
27609
27610
27611 GCC="$GCC"
27612 CC="$CC"
27613 acx_cv_header_stdint="$acx_cv_header_stdint"
27614 acx_cv_type_int8_t="$acx_cv_type_int8_t"
27615 acx_cv_type_int16_t="$acx_cv_type_int16_t"
27616 acx_cv_type_int32_t="$acx_cv_type_int32_t"
27617 acx_cv_type_int64_t="$acx_cv_type_int64_t"
27618 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
27619 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
27620 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
27621 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
27622 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
27623 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
27624 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
27625 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
27626 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
27627
27628
27629 _ACEOF
27630
27631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27632
27633 # Handling of arguments.
27634 for ac_config_target in $ac_config_targets
27635 do
27636 case $ac_config_target in
27637 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27638 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
27639 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27640 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27641 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
27642 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27643 "libgfortran.spec") CONFIG_FILES="$CONFIG_FILES libgfortran.spec" ;;
27644
27645 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27646 esac
27647 done
27648
27649
27650 # If the user did not use the arguments to specify the items to instantiate,
27651 # then the envvar interface is used. Set only those that are not.
27652 # We use the long form for the default assignment because of an extremely
27653 # bizarre bug on SunOS 4.1.3.
27654 if $ac_need_defaults; then
27655 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27656 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27657 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27658 fi
27659
27660 # Have a temporary directory for convenience. Make it in the build tree
27661 # simply because there is no reason against having it here, and in addition,
27662 # creating and moving files from /tmp can sometimes cause problems.
27663 # Hook for its removal unless debugging.
27664 # Note that there is a small window in which the directory will not be cleaned:
27665 # after its creation but before its name has been assigned to `$tmp'.
27666 $debug ||
27667 {
27668 tmp=
27669 trap 'exit_status=$?
27670 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27671 ' 0
27672 trap 'as_fn_exit 1' 1 2 13 15
27673 }
27674 # Create a (secure) tmp directory for tmp files.
27675
27676 {
27677 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27678 test -n "$tmp" && test -d "$tmp"
27679 } ||
27680 {
27681 tmp=./conf$$-$RANDOM
27682 (umask 077 && mkdir "$tmp")
27683 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
27684
27685 # Set up the scripts for CONFIG_FILES section.
27686 # No need to generate them if there are no CONFIG_FILES.
27687 # This happens for instance with `./config.status config.h'.
27688 if test -n "$CONFIG_FILES"; then
27689
27690
27691 ac_cr=`echo X | tr X '\015'`
27692 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27693 # But we know of no other shell where ac_cr would be empty at this
27694 # point, so we can use a bashism as a fallback.
27695 if test "x$ac_cr" = x; then
27696 eval ac_cr=\$\'\\r\'
27697 fi
27698 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27699 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27700 ac_cs_awk_cr='\r'
27701 else
27702 ac_cs_awk_cr=$ac_cr
27703 fi
27704
27705 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27706 _ACEOF
27707
27708
27709 {
27710 echo "cat >conf$$subs.awk <<_ACEOF" &&
27711 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27712 echo "_ACEOF"
27713 } >conf$$subs.sh ||
27714 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27715 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27716 ac_delim='%!_!# '
27717 for ac_last_try in false false false false false :; do
27718 . ./conf$$subs.sh ||
27719 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27720
27721 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27722 if test $ac_delim_n = $ac_delim_num; then
27723 break
27724 elif $ac_last_try; then
27725 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27726 else
27727 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27728 fi
27729 done
27730 rm -f conf$$subs.sh
27731
27732 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27733 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27734 _ACEOF
27735 sed -n '
27736 h
27737 s/^/S["/; s/!.*/"]=/
27738 p
27739 g
27740 s/^[^!]*!//
27741 :repl
27742 t repl
27743 s/'"$ac_delim"'$//
27744 t delim
27745 :nl
27746 h
27747 s/\(.\{148\}\).*/\1/
27748 t more1
27749 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27750 p
27751 n
27752 b repl
27753 :more1
27754 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27755 p
27756 g
27757 s/.\{148\}//
27758 t nl
27759 :delim
27760 h
27761 s/\(.\{148\}\).*/\1/
27762 t more2
27763 s/["\\]/\\&/g; s/^/"/; s/$/"/
27764 p
27765 b
27766 :more2
27767 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27768 p
27769 g
27770 s/.\{148\}//
27771 t delim
27772 ' <conf$$subs.awk | sed '
27773 /^[^""]/{
27774 N
27775 s/\n//
27776 }
27777 ' >>$CONFIG_STATUS || ac_write_fail=1
27778 rm -f conf$$subs.awk
27779 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27780 _ACAWK
27781 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27782 for (key in S) S_is_set[key] = 1
27783 FS = "\a"
27784
27785 }
27786 {
27787 line = $ 0
27788 nfields = split(line, field, "@")
27789 substed = 0
27790 len = length(field[1])
27791 for (i = 2; i < nfields; i++) {
27792 key = field[i]
27793 keylen = length(key)
27794 if (S_is_set[key]) {
27795 value = S[key]
27796 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27797 len += length(value) + length(field[++i])
27798 substed = 1
27799 } else
27800 len += 1 + keylen
27801 }
27802
27803 print line
27804 }
27805
27806 _ACAWK
27807 _ACEOF
27808 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27809 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27810 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27811 else
27812 cat
27813 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27814 || as_fn_error "could not setup config files machinery" "$LINENO" 5
27815 _ACEOF
27816
27817 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27818 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27819 # trailing colons and then remove the whole line if VPATH becomes empty
27820 # (actually we leave an empty line to preserve line numbers).
27821 if test "x$srcdir" = x.; then
27822 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27823 s/:*\$(srcdir):*/:/
27824 s/:*\${srcdir}:*/:/
27825 s/:*@srcdir@:*/:/
27826 s/^\([^=]*=[ ]*\):*/\1/
27827 s/:*$//
27828 s/^[^=]*=[ ]*$//
27829 }'
27830 fi
27831
27832 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27833 fi # test -n "$CONFIG_FILES"
27834
27835 # Set up the scripts for CONFIG_HEADERS section.
27836 # No need to generate them if there are no CONFIG_HEADERS.
27837 # This happens for instance with `./config.status Makefile'.
27838 if test -n "$CONFIG_HEADERS"; then
27839 cat >"$tmp/defines.awk" <<\_ACAWK ||
27840 BEGIN {
27841 _ACEOF
27842
27843 # Transform confdefs.h into an awk script `defines.awk', embedded as
27844 # here-document in config.status, that substitutes the proper values into
27845 # config.h.in to produce config.h.
27846
27847 # Create a delimiter string that does not exist in confdefs.h, to ease
27848 # handling of long lines.
27849 ac_delim='%!_!# '
27850 for ac_last_try in false false :; do
27851 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27852 if test -z "$ac_t"; then
27853 break
27854 elif $ac_last_try; then
27855 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
27856 else
27857 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27858 fi
27859 done
27860
27861 # For the awk script, D is an array of macro values keyed by name,
27862 # likewise P contains macro parameters if any. Preserve backslash
27863 # newline sequences.
27864
27865 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27866 sed -n '
27867 s/.\{148\}/&'"$ac_delim"'/g
27868 t rset
27869 :rset
27870 s/^[ ]*#[ ]*define[ ][ ]*/ /
27871 t def
27872 d
27873 :def
27874 s/\\$//
27875 t bsnl
27876 s/["\\]/\\&/g
27877 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27878 D["\1"]=" \3"/p
27879 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27880 d
27881 :bsnl
27882 s/["\\]/\\&/g
27883 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27884 D["\1"]=" \3\\\\\\n"\\/p
27885 t cont
27886 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27887 t cont
27888 d
27889 :cont
27890 n
27891 s/.\{148\}/&'"$ac_delim"'/g
27892 t clear
27893 :clear
27894 s/\\$//
27895 t bsnlc
27896 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27897 d
27898 :bsnlc
27899 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27900 b cont
27901 ' <confdefs.h | sed '
27902 s/'"$ac_delim"'/"\\\
27903 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27904
27905 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27906 for (key in D) D_is_set[key] = 1
27907 FS = "\a"
27908 }
27909 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27910 line = \$ 0
27911 split(line, arg, " ")
27912 if (arg[1] == "#") {
27913 defundef = arg[2]
27914 mac1 = arg[3]
27915 } else {
27916 defundef = substr(arg[1], 2)
27917 mac1 = arg[2]
27918 }
27919 split(mac1, mac2, "(") #)
27920 macro = mac2[1]
27921 prefix = substr(line, 1, index(line, defundef) - 1)
27922 if (D_is_set[macro]) {
27923 # Preserve the white space surrounding the "#".
27924 print prefix "define", macro P[macro] D[macro]
27925 next
27926 } else {
27927 # Replace #undef with comments. This is necessary, for example,
27928 # in the case of _POSIX_SOURCE, which is predefined and required
27929 # on some systems where configure will not decide to define it.
27930 if (defundef == "undef") {
27931 print "/*", prefix defundef, macro, "*/"
27932 next
27933 }
27934 }
27935 }
27936 { print }
27937 _ACAWK
27938 _ACEOF
27939 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27940 as_fn_error "could not setup config headers machinery" "$LINENO" 5
27941 fi # test -n "$CONFIG_HEADERS"
27942
27943
27944 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27945 shift
27946 for ac_tag
27947 do
27948 case $ac_tag in
27949 :[FHLC]) ac_mode=$ac_tag; continue;;
27950 esac
27951 case $ac_mode$ac_tag in
27952 :[FHL]*:*);;
27953 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
27954 :[FH]-) ac_tag=-:-;;
27955 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27956 esac
27957 ac_save_IFS=$IFS
27958 IFS=:
27959 set x $ac_tag
27960 IFS=$ac_save_IFS
27961 shift
27962 ac_file=$1
27963 shift
27964
27965 case $ac_mode in
27966 :L) ac_source=$1;;
27967 :[FH])
27968 ac_file_inputs=
27969 for ac_f
27970 do
27971 case $ac_f in
27972 -) ac_f="$tmp/stdin";;
27973 *) # Look for the file first in the build tree, then in the source tree
27974 # (if the path is not absolute). The absolute path cannot be DOS-style,
27975 # because $ac_f cannot contain `:'.
27976 test -f "$ac_f" ||
27977 case $ac_f in
27978 [\\/$]*) false;;
27979 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27980 esac ||
27981 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27982 esac
27983 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27984 as_fn_append ac_file_inputs " '$ac_f'"
27985 done
27986
27987 # Let's still pretend it is `configure' which instantiates (i.e., don't
27988 # use $as_me), people would be surprised to read:
27989 # /* config.h. Generated by config.status. */
27990 configure_input='Generated from '`
27991 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27992 `' by configure.'
27993 if test x"$ac_file" != x-; then
27994 configure_input="$ac_file. $configure_input"
27995 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27996 $as_echo "$as_me: creating $ac_file" >&6;}
27997 fi
27998 # Neutralize special characters interpreted by sed in replacement strings.
27999 case $configure_input in #(
28000 *\&* | *\|* | *\\* )
28001 ac_sed_conf_input=`$as_echo "$configure_input" |
28002 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28003 *) ac_sed_conf_input=$configure_input;;
28004 esac
28005
28006 case $ac_tag in
28007 *:-:* | *:-) cat >"$tmp/stdin" \
28008 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28009 esac
28010 ;;
28011 esac
28012
28013 ac_dir=`$as_dirname -- "$ac_file" ||
28014 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28015 X"$ac_file" : 'X\(//\)[^/]' \| \
28016 X"$ac_file" : 'X\(//\)$' \| \
28017 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28018 $as_echo X"$ac_file" |
28019 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28020 s//\1/
28021 q
28022 }
28023 /^X\(\/\/\)[^/].*/{
28024 s//\1/
28025 q
28026 }
28027 /^X\(\/\/\)$/{
28028 s//\1/
28029 q
28030 }
28031 /^X\(\/\).*/{
28032 s//\1/
28033 q
28034 }
28035 s/.*/./; q'`
28036 as_dir="$ac_dir"; as_fn_mkdir_p
28037 ac_builddir=.
28038
28039 case "$ac_dir" in
28040 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28041 *)
28042 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28043 # A ".." for each directory in $ac_dir_suffix.
28044 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28045 case $ac_top_builddir_sub in
28046 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28047 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28048 esac ;;
28049 esac
28050 ac_abs_top_builddir=$ac_pwd
28051 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28052 # for backward compatibility:
28053 ac_top_builddir=$ac_top_build_prefix
28054
28055 case $srcdir in
28056 .) # We are building in place.
28057 ac_srcdir=.
28058 ac_top_srcdir=$ac_top_builddir_sub
28059 ac_abs_top_srcdir=$ac_pwd ;;
28060 [\\/]* | ?:[\\/]* ) # Absolute name.
28061 ac_srcdir=$srcdir$ac_dir_suffix;
28062 ac_top_srcdir=$srcdir
28063 ac_abs_top_srcdir=$srcdir ;;
28064 *) # Relative name.
28065 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28066 ac_top_srcdir=$ac_top_build_prefix$srcdir
28067 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28068 esac
28069 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28070
28071
28072 case $ac_mode in
28073 :F)
28074 #
28075 # CONFIG_FILE
28076 #
28077
28078 case $INSTALL in
28079 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28080 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28081 esac
28082 ac_MKDIR_P=$MKDIR_P
28083 case $MKDIR_P in
28084 [\\/$]* | ?:[\\/]* ) ;;
28085 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28086 esac
28087 _ACEOF
28088
28089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28090 # If the template does not know about datarootdir, expand it.
28091 # FIXME: This hack should be removed a few years after 2.60.
28092 ac_datarootdir_hack=; ac_datarootdir_seen=
28093 ac_sed_dataroot='
28094 /datarootdir/ {
28095 p
28096 q
28097 }
28098 /@datadir@/p
28099 /@docdir@/p
28100 /@infodir@/p
28101 /@localedir@/p
28102 /@mandir@/p'
28103 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28104 *datarootdir*) ac_datarootdir_seen=yes;;
28105 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28107 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28108 _ACEOF
28109 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28110 ac_datarootdir_hack='
28111 s&@datadir@&$datadir&g
28112 s&@docdir@&$docdir&g
28113 s&@infodir@&$infodir&g
28114 s&@localedir@&$localedir&g
28115 s&@mandir@&$mandir&g
28116 s&\\\${datarootdir}&$datarootdir&g' ;;
28117 esac
28118 _ACEOF
28119
28120 # Neutralize VPATH when `$srcdir' = `.'.
28121 # Shell code in configure.ac might set extrasub.
28122 # FIXME: do we really want to maintain this feature?
28123 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28124 ac_sed_extra="$ac_vpsub
28125 $extrasub
28126 _ACEOF
28127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28128 :t
28129 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28130 s|@configure_input@|$ac_sed_conf_input|;t t
28131 s&@top_builddir@&$ac_top_builddir_sub&;t t
28132 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28133 s&@srcdir@&$ac_srcdir&;t t
28134 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28135 s&@top_srcdir@&$ac_top_srcdir&;t t
28136 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28137 s&@builddir@&$ac_builddir&;t t
28138 s&@abs_builddir@&$ac_abs_builddir&;t t
28139 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28140 s&@INSTALL@&$ac_INSTALL&;t t
28141 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28142 $ac_datarootdir_hack
28143 "
28144 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
28145 || as_fn_error "could not create $ac_file" "$LINENO" 5
28146
28147 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28148 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28149 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28151 which seems to be undefined. Please make sure it is defined." >&5
28152 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28153 which seems to be undefined. Please make sure it is defined." >&2;}
28154
28155 rm -f "$tmp/stdin"
28156 case $ac_file in
28157 -) cat "$tmp/out" && rm -f "$tmp/out";;
28158 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28159 esac \
28160 || as_fn_error "could not create $ac_file" "$LINENO" 5
28161 ;;
28162 :H)
28163 #
28164 # CONFIG_HEADER
28165 #
28166 if test x"$ac_file" != x-; then
28167 {
28168 $as_echo "/* $configure_input */" \
28169 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28170 } >"$tmp/config.h" \
28171 || as_fn_error "could not create $ac_file" "$LINENO" 5
28172 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28173 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28174 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28175 else
28176 rm -f "$ac_file"
28177 mv "$tmp/config.h" "$ac_file" \
28178 || as_fn_error "could not create $ac_file" "$LINENO" 5
28179 fi
28180 else
28181 $as_echo "/* $configure_input */" \
28182 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28183 || as_fn_error "could not create -" "$LINENO" 5
28184 fi
28185 # Compute "$ac_file"'s index in $config_headers.
28186 _am_arg="$ac_file"
28187 _am_stamp_count=1
28188 for _am_header in $config_headers :; do
28189 case $_am_header in
28190 $_am_arg | $_am_arg:* )
28191 break ;;
28192 * )
28193 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28194 esac
28195 done
28196 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28197 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28198 X"$_am_arg" : 'X\(//\)[^/]' \| \
28199 X"$_am_arg" : 'X\(//\)$' \| \
28200 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28201 $as_echo X"$_am_arg" |
28202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28203 s//\1/
28204 q
28205 }
28206 /^X\(\/\/\)[^/].*/{
28207 s//\1/
28208 q
28209 }
28210 /^X\(\/\/\)$/{
28211 s//\1/
28212 q
28213 }
28214 /^X\(\/\).*/{
28215 s//\1/
28216 q
28217 }
28218 s/.*/./; q'`/stamp-h$_am_stamp_count
28219 ;;
28220
28221 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28222 $as_echo "$as_me: executing $ac_file commands" >&6;}
28223 ;;
28224 esac
28225
28226
28227 case $ac_file$ac_mode in
28228 "default-1":C)
28229 # Only add multilib support code if we just rebuilt the top-level
28230 # Makefile.
28231 case " $CONFIG_FILES " in
28232 *" Makefile "*)
28233 ac_file=Makefile . ${multi_basedir}/config-ml.in
28234 ;;
28235 esac ;;
28236 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28237 # Autoconf 2.62 quotes --file arguments for eval, but not when files
28238 # are listed without --file. Let's play safe and only enable the eval
28239 # if we detect the quoting.
28240 case $CONFIG_FILES in
28241 *\'*) eval set x "$CONFIG_FILES" ;;
28242 *) set x $CONFIG_FILES ;;
28243 esac
28244 shift
28245 for mf
28246 do
28247 # Strip MF so we end up with the name of the file.
28248 mf=`echo "$mf" | sed -e 's/:.*$//'`
28249 # Check whether this is an Automake generated Makefile or not.
28250 # We used to match only the files named `Makefile.in', but
28251 # some people rename them; so instead we look at the file content.
28252 # Grep'ing the first line is not enough: some people post-process
28253 # each Makefile.in and add a new line on top of each file to say so.
28254 # Grep'ing the whole file is not good either: AIX grep has a line
28255 # limit of 2048, but all sed's we know have understand at least 4000.
28256 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
28257 dirpart=`$as_dirname -- "$mf" ||
28258 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28259 X"$mf" : 'X\(//\)[^/]' \| \
28260 X"$mf" : 'X\(//\)$' \| \
28261 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28262 $as_echo X"$mf" |
28263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28264 s//\1/
28265 q
28266 }
28267 /^X\(\/\/\)[^/].*/{
28268 s//\1/
28269 q
28270 }
28271 /^X\(\/\/\)$/{
28272 s//\1/
28273 q
28274 }
28275 /^X\(\/\).*/{
28276 s//\1/
28277 q
28278 }
28279 s/.*/./; q'`
28280 else
28281 continue
28282 fi
28283 # Extract the definition of DEPDIR, am__include, and am__quote
28284 # from the Makefile without running `make'.
28285 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28286 test -z "$DEPDIR" && continue
28287 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28288 test -z "am__include" && continue
28289 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28290 # When using ansi2knr, U may be empty or an underscore; expand it
28291 U=`sed -n 's/^U = //p' < "$mf"`
28292 # Find all dependency output files, they are included files with
28293 # $(DEPDIR) in their names. We invoke sed twice because it is the
28294 # simplest approach to changing $(DEPDIR) to its actual value in the
28295 # expansion.
28296 for file in `sed -n "
28297 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28298 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28299 # Make sure the directory exists.
28300 test -f "$dirpart/$file" && continue
28301 fdir=`$as_dirname -- "$file" ||
28302 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28303 X"$file" : 'X\(//\)[^/]' \| \
28304 X"$file" : 'X\(//\)$' \| \
28305 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28306 $as_echo X"$file" |
28307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28308 s//\1/
28309 q
28310 }
28311 /^X\(\/\/\)[^/].*/{
28312 s//\1/
28313 q
28314 }
28315 /^X\(\/\/\)$/{
28316 s//\1/
28317 q
28318 }
28319 /^X\(\/\).*/{
28320 s//\1/
28321 q
28322 }
28323 s/.*/./; q'`
28324 as_dir=$dirpart/$fdir; as_fn_mkdir_p
28325 # echo "creating $dirpart/$file"
28326 echo '# dummy' > "$dirpart/$file"
28327 done
28328 done
28329 }
28330 ;;
28331 "libtool":C)
28332
28333 # See if we are running on zsh, and set the options which allow our
28334 # commands through without removal of \ escapes.
28335 if test -n "${ZSH_VERSION+set}" ; then
28336 setopt NO_GLOB_SUBST
28337 fi
28338
28339 cfgfile="${ofile}T"
28340 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28341 $RM "$cfgfile"
28342
28343 cat <<_LT_EOF >> "$cfgfile"
28344 #! $SHELL
28345
28346 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
28347 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
28348 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
28349 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
28350 #
28351 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
28352 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
28353 # Written by Gordon Matzigkeit, 1996
28354 #
28355 # This file is part of GNU Libtool.
28356 #
28357 # GNU Libtool is free software; you can redistribute it and/or
28358 # modify it under the terms of the GNU General Public License as
28359 # published by the Free Software Foundation; either version 2 of
28360 # the License, or (at your option) any later version.
28361 #
28362 # As a special exception to the GNU General Public License,
28363 # if you distribute this file as part of a program or library that
28364 # is built using GNU Libtool, you may include this file under the
28365 # same distribution terms that you use for the rest of that program.
28366 #
28367 # GNU Libtool is distributed in the hope that it will be useful,
28368 # but WITHOUT ANY WARRANTY; without even the implied warranty of
28369 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28370 # GNU General Public License for more details.
28371 #
28372 # You should have received a copy of the GNU General Public License
28373 # along with GNU Libtool; see the file COPYING. If not, a copy
28374 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
28375 # obtained by writing to the Free Software Foundation, Inc.,
28376 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
28377
28378
28379 # The names of the tagged configurations supported by this script.
28380 available_tags="FC "
28381
28382 # ### BEGIN LIBTOOL CONFIG
28383
28384 # Which release of libtool.m4 was used?
28385 macro_version=$macro_version
28386 macro_revision=$macro_revision
28387
28388 # Whether or not to build shared libraries.
28389 build_libtool_libs=$enable_shared
28390
28391 # Whether or not to build static libraries.
28392 build_old_libs=$enable_static
28393
28394 # What type of objects to build.
28395 pic_mode=$pic_mode
28396
28397 # Whether or not to optimize for fast installation.
28398 fast_install=$enable_fast_install
28399
28400 # Shell to use when invoking shell scripts.
28401 SHELL=$lt_SHELL
28402
28403 # An echo program that protects backslashes.
28404 ECHO=$lt_ECHO
28405
28406 # The host system.
28407 host_alias=$host_alias
28408 host=$host
28409 host_os=$host_os
28410
28411 # The build system.
28412 build_alias=$build_alias
28413 build=$build
28414 build_os=$build_os
28415
28416 # A sed program that does not truncate output.
28417 SED=$lt_SED
28418
28419 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
28420 Xsed="\$SED -e 1s/^X//"
28421
28422 # A grep program that handles long lines.
28423 GREP=$lt_GREP
28424
28425 # An ERE matcher.
28426 EGREP=$lt_EGREP
28427
28428 # A literal string matcher.
28429 FGREP=$lt_FGREP
28430
28431 # A BSD- or MS-compatible name lister.
28432 NM=$lt_NM
28433
28434 # Whether we need soft or hard links.
28435 LN_S=$lt_LN_S
28436
28437 # What is the maximum length of a command?
28438 max_cmd_len=$max_cmd_len
28439
28440 # Object file suffix (normally "o").
28441 objext=$ac_objext
28442
28443 # Executable file suffix (normally "").
28444 exeext=$exeext
28445
28446 # whether the shell understands "unset".
28447 lt_unset=$lt_unset
28448
28449 # turn spaces into newlines.
28450 SP2NL=$lt_lt_SP2NL
28451
28452 # turn newlines into spaces.
28453 NL2SP=$lt_lt_NL2SP
28454
28455 # An object symbol dumper.
28456 OBJDUMP=$lt_OBJDUMP
28457
28458 # Method to check whether dependent libraries are shared objects.
28459 deplibs_check_method=$lt_deplibs_check_method
28460
28461 # Command to use when deplibs_check_method == "file_magic".
28462 file_magic_cmd=$lt_file_magic_cmd
28463
28464 # The archiver.
28465 AR=$lt_AR
28466 AR_FLAGS=$lt_AR_FLAGS
28467
28468 # A symbol stripping program.
28469 STRIP=$lt_STRIP
28470
28471 # Commands used to install an old-style archive.
28472 RANLIB=$lt_RANLIB
28473 old_postinstall_cmds=$lt_old_postinstall_cmds
28474 old_postuninstall_cmds=$lt_old_postuninstall_cmds
28475
28476 # Whether to use a lock for old archive extraction.
28477 lock_old_archive_extraction=$lock_old_archive_extraction
28478
28479 # A C compiler.
28480 LTCC=$lt_CC
28481
28482 # LTCC compiler flags.
28483 LTCFLAGS=$lt_CFLAGS
28484
28485 # Take the output of nm and produce a listing of raw symbols and C names.
28486 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28487
28488 # Transform the output of nm in a proper C declaration.
28489 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28490
28491 # Transform the output of nm in a C name address pair.
28492 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28493
28494 # Transform the output of nm in a C name address pair when lib prefix is needed.
28495 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28496
28497 # The name of the directory that contains temporary libtool files.
28498 objdir=$objdir
28499
28500 # Used to examine libraries when file_magic_cmd begins with "file".
28501 MAGIC_CMD=$MAGIC_CMD
28502
28503 # Must we lock files when doing compilation?
28504 need_locks=$lt_need_locks
28505
28506 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28507 DSYMUTIL=$lt_DSYMUTIL
28508
28509 # Tool to change global to local symbols on Mac OS X.
28510 NMEDIT=$lt_NMEDIT
28511
28512 # Tool to manipulate fat objects and archives on Mac OS X.
28513 LIPO=$lt_LIPO
28514
28515 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
28516 OTOOL=$lt_OTOOL
28517
28518 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28519 OTOOL64=$lt_OTOOL64
28520
28521 # Old archive suffix (normally "a").
28522 libext=$libext
28523
28524 # Shared library suffix (normally ".so").
28525 shrext_cmds=$lt_shrext_cmds
28526
28527 # The commands to extract the exported symbol list from a shared archive.
28528 extract_expsyms_cmds=$lt_extract_expsyms_cmds
28529
28530 # Variables whose values should be saved in libtool wrapper scripts and
28531 # restored at link time.
28532 variables_saved_for_relink=$lt_variables_saved_for_relink
28533
28534 # Do we need the "lib" prefix for modules?
28535 need_lib_prefix=$need_lib_prefix
28536
28537 # Do we need a version for libraries?
28538 need_version=$need_version
28539
28540 # Library versioning type.
28541 version_type=$version_type
28542
28543 # Shared library runtime path variable.
28544 runpath_var=$runpath_var
28545
28546 # Shared library path variable.
28547 shlibpath_var=$shlibpath_var
28548
28549 # Is shlibpath searched before the hard-coded library search path?
28550 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28551
28552 # Format of library name prefix.
28553 libname_spec=$lt_libname_spec
28554
28555 # List of archive names. First name is the real one, the rest are links.
28556 # The last name is the one that the linker finds with -lNAME
28557 library_names_spec=$lt_library_names_spec
28558
28559 # The coded name of the library, if different from the real name.
28560 soname_spec=$lt_soname_spec
28561
28562 # Permission mode override for installation of shared libraries.
28563 install_override_mode=$lt_install_override_mode
28564
28565 # Command to use after installation of a shared archive.
28566 postinstall_cmds=$lt_postinstall_cmds
28567
28568 # Command to use after uninstallation of a shared archive.
28569 postuninstall_cmds=$lt_postuninstall_cmds
28570
28571 # Commands used to finish a libtool library installation in a directory.
28572 finish_cmds=$lt_finish_cmds
28573
28574 # As "finish_cmds", except a single script fragment to be evaled but
28575 # not shown.
28576 finish_eval=$lt_finish_eval
28577
28578 # Whether we should hardcode library paths into libraries.
28579 hardcode_into_libs=$hardcode_into_libs
28580
28581 # Compile-time system search path for libraries.
28582 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28583
28584 # Run-time system search path for libraries.
28585 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
28586
28587 # Whether dlopen is supported.
28588 dlopen_support=$enable_dlopen
28589
28590 # Whether dlopen of programs is supported.
28591 dlopen_self=$enable_dlopen_self
28592
28593 # Whether dlopen of statically linked programs is supported.
28594 dlopen_self_static=$enable_dlopen_self_static
28595
28596 # Commands to strip libraries.
28597 old_striplib=$lt_old_striplib
28598 striplib=$lt_striplib
28599
28600
28601 # The linker used to build libraries.
28602 LD=$lt_LD
28603
28604 # How to create reloadable object files.
28605 reload_flag=$lt_reload_flag
28606 reload_cmds=$lt_reload_cmds
28607
28608 # Commands used to build an old-style archive.
28609 old_archive_cmds=$lt_old_archive_cmds
28610
28611 # A language specific compiler.
28612 CC=$lt_compiler
28613
28614 # Is the compiler the GNU compiler?
28615 with_gcc=$GCC
28616
28617 # Compiler flag to turn off builtin functions.
28618 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28619
28620 # How to pass a linker flag through the compiler.
28621 wl=$lt_lt_prog_compiler_wl
28622
28623 # Additional compiler flags for building library objects.
28624 pic_flag=$lt_lt_prog_compiler_pic
28625
28626 # Compiler flag to prevent dynamic linking.
28627 link_static_flag=$lt_lt_prog_compiler_static
28628
28629 # Does compiler simultaneously support -c and -o options?
28630 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28631
28632 # Whether or not to add -lc for building shared libraries.
28633 build_libtool_need_lc=$archive_cmds_need_lc
28634
28635 # Whether or not to disallow shared libs when runtime libs are static.
28636 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28637
28638 # Compiler flag to allow reflexive dlopens.
28639 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28640
28641 # Compiler flag to generate shared objects directly from archives.
28642 whole_archive_flag_spec=$lt_whole_archive_flag_spec
28643
28644 # Whether the compiler copes with passing no objects directly.
28645 compiler_needs_object=$lt_compiler_needs_object
28646
28647 # Create an old-style archive from a shared archive.
28648 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28649
28650 # Create a temporary old-style archive to link instead of a shared archive.
28651 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28652
28653 # Commands used to build a shared archive.
28654 archive_cmds=$lt_archive_cmds
28655 archive_expsym_cmds=$lt_archive_expsym_cmds
28656
28657 # Commands used to build a loadable module if different from building
28658 # a shared archive.
28659 module_cmds=$lt_module_cmds
28660 module_expsym_cmds=$lt_module_expsym_cmds
28661
28662 # Whether we are building with GNU ld or not.
28663 with_gnu_ld=$lt_with_gnu_ld
28664
28665 # Flag that allows shared libraries with undefined symbols to be built.
28666 allow_undefined_flag=$lt_allow_undefined_flag
28667
28668 # Flag that enforces no undefined symbols.
28669 no_undefined_flag=$lt_no_undefined_flag
28670
28671 # Flag to hardcode \$libdir into a binary during linking.
28672 # This must work even if \$libdir does not exist
28673 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28674
28675 # If ld is used when linking, flag to hardcode \$libdir into a binary
28676 # during linking. This must work even if \$libdir does not exist.
28677 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
28678
28679 # Whether we need a single "-rpath" flag with a separated argument.
28680 hardcode_libdir_separator=$lt_hardcode_libdir_separator
28681
28682 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28683 # DIR into the resulting binary.
28684 hardcode_direct=$hardcode_direct
28685
28686 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28687 # DIR into the resulting binary and the resulting library dependency is
28688 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28689 # library is relocated.
28690 hardcode_direct_absolute=$hardcode_direct_absolute
28691
28692 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28693 # into the resulting binary.
28694 hardcode_minus_L=$hardcode_minus_L
28695
28696 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28697 # into the resulting binary.
28698 hardcode_shlibpath_var=$hardcode_shlibpath_var
28699
28700 # Set to "yes" if building a shared library automatically hardcodes DIR
28701 # into the library and all subsequent libraries and executables linked
28702 # against it.
28703 hardcode_automatic=$hardcode_automatic
28704
28705 # Set to yes if linker adds runtime paths of dependent libraries
28706 # to runtime path list.
28707 inherit_rpath=$inherit_rpath
28708
28709 # Whether libtool must link a program against all its dependency libraries.
28710 link_all_deplibs=$link_all_deplibs
28711
28712 # Fix the shell variable \$srcfile for the compiler.
28713 fix_srcfile_path=$lt_fix_srcfile_path
28714
28715 # Set to "yes" if exported symbols are required.
28716 always_export_symbols=$always_export_symbols
28717
28718 # The commands to list exported symbols.
28719 export_symbols_cmds=$lt_export_symbols_cmds
28720
28721 # Symbols that should not be listed in the preloaded symbols.
28722 exclude_expsyms=$lt_exclude_expsyms
28723
28724 # Symbols that must always be exported.
28725 include_expsyms=$lt_include_expsyms
28726
28727 # Commands necessary for linking programs (against libraries) with templates.
28728 prelink_cmds=$lt_prelink_cmds
28729
28730 # Specify filename containing input files.
28731 file_list_spec=$lt_file_list_spec
28732
28733 # How to hardcode a shared library path into an executable.
28734 hardcode_action=$hardcode_action
28735
28736 # The directories searched by this compiler when creating a shared library.
28737 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
28738
28739 # Dependencies to place before and after the objects being linked to
28740 # create a shared library.
28741 predep_objects=$lt_predep_objects
28742 postdep_objects=$lt_postdep_objects
28743 predeps=$lt_predeps
28744 postdeps=$lt_postdeps
28745
28746 # The library search path used internally by the compiler when linking
28747 # a shared library.
28748 compiler_lib_search_path=$lt_compiler_lib_search_path
28749
28750 # ### END LIBTOOL CONFIG
28751
28752 _LT_EOF
28753
28754 case $host_os in
28755 aix3*)
28756 cat <<\_LT_EOF >> "$cfgfile"
28757 # AIX sometimes has problems with the GCC collect2 program. For some
28758 # reason, if we set the COLLECT_NAMES environment variable, the problems
28759 # vanish in a puff of smoke.
28760 if test "X${COLLECT_NAMES+set}" != Xset; then
28761 COLLECT_NAMES=
28762 export COLLECT_NAMES
28763 fi
28764 _LT_EOF
28765 ;;
28766 esac
28767
28768
28769 ltmain="$ac_aux_dir/ltmain.sh"
28770
28771
28772 # We use sed instead of cat because bash on DJGPP gets confused if
28773 # if finds mixed CR/LF and LF-only lines. Since sed operates in
28774 # text mode, it properly converts lines to CR/LF. This bash problem
28775 # is reportedly fixed, but why not run on old versions too?
28776 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
28777 || (rm -f "$cfgfile"; exit 1)
28778
28779 case $xsi_shell in
28780 yes)
28781 cat << \_LT_EOF >> "$cfgfile"
28782
28783 # func_dirname file append nondir_replacement
28784 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
28785 # otherwise set result to NONDIR_REPLACEMENT.
28786 func_dirname ()
28787 {
28788 case ${1} in
28789 */*) func_dirname_result="${1%/*}${2}" ;;
28790 * ) func_dirname_result="${3}" ;;
28791 esac
28792 }
28793
28794 # func_basename file
28795 func_basename ()
28796 {
28797 func_basename_result="${1##*/}"
28798 }
28799
28800 # func_dirname_and_basename file append nondir_replacement
28801 # perform func_basename and func_dirname in a single function
28802 # call:
28803 # dirname: Compute the dirname of FILE. If nonempty,
28804 # add APPEND to the result, otherwise set result
28805 # to NONDIR_REPLACEMENT.
28806 # value returned in "$func_dirname_result"
28807 # basename: Compute filename of FILE.
28808 # value retuned in "$func_basename_result"
28809 # Implementation must be kept synchronized with func_dirname
28810 # and func_basename. For efficiency, we do not delegate to
28811 # those functions but instead duplicate the functionality here.
28812 func_dirname_and_basename ()
28813 {
28814 case ${1} in
28815 */*) func_dirname_result="${1%/*}${2}" ;;
28816 * ) func_dirname_result="${3}" ;;
28817 esac
28818 func_basename_result="${1##*/}"
28819 }
28820
28821 # func_stripname prefix suffix name
28822 # strip PREFIX and SUFFIX off of NAME.
28823 # PREFIX and SUFFIX must not contain globbing or regex special
28824 # characters, hashes, percent signs, but SUFFIX may contain a leading
28825 # dot (in which case that matches only a dot).
28826 func_stripname ()
28827 {
28828 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
28829 # positional parameters, so assign one to ordinary parameter first.
28830 func_stripname_result=${3}
28831 func_stripname_result=${func_stripname_result#"${1}"}
28832 func_stripname_result=${func_stripname_result%"${2}"}
28833 }
28834
28835 # func_opt_split
28836 func_opt_split ()
28837 {
28838 func_opt_split_opt=${1%%=*}
28839 func_opt_split_arg=${1#*=}
28840 }
28841
28842 # func_lo2o object
28843 func_lo2o ()
28844 {
28845 case ${1} in
28846 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
28847 *) func_lo2o_result=${1} ;;
28848 esac
28849 }
28850
28851 # func_xform libobj-or-source
28852 func_xform ()
28853 {
28854 func_xform_result=${1%.*}.lo
28855 }
28856
28857 # func_arith arithmetic-term...
28858 func_arith ()
28859 {
28860 func_arith_result=$(( $* ))
28861 }
28862
28863 # func_len string
28864 # STRING may not start with a hyphen.
28865 func_len ()
28866 {
28867 func_len_result=${#1}
28868 }
28869
28870 _LT_EOF
28871 ;;
28872 *) # Bourne compatible functions.
28873 cat << \_LT_EOF >> "$cfgfile"
28874
28875 # func_dirname file append nondir_replacement
28876 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
28877 # otherwise set result to NONDIR_REPLACEMENT.
28878 func_dirname ()
28879 {
28880 # Extract subdirectory from the argument.
28881 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
28882 if test "X$func_dirname_result" = "X${1}"; then
28883 func_dirname_result="${3}"
28884 else
28885 func_dirname_result="$func_dirname_result${2}"
28886 fi
28887 }
28888
28889 # func_basename file
28890 func_basename ()
28891 {
28892 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
28893 }
28894
28895
28896 # func_stripname prefix suffix name
28897 # strip PREFIX and SUFFIX off of NAME.
28898 # PREFIX and SUFFIX must not contain globbing or regex special
28899 # characters, hashes, percent signs, but SUFFIX may contain a leading
28900 # dot (in which case that matches only a dot).
28901 # func_strip_suffix prefix name
28902 func_stripname ()
28903 {
28904 case ${2} in
28905 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
28906 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
28907 esac
28908 }
28909
28910 # sed scripts:
28911 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
28912 my_sed_long_arg='1s/^-[^=]*=//'
28913
28914 # func_opt_split
28915 func_opt_split ()
28916 {
28917 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
28918 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
28919 }
28920
28921 # func_lo2o object
28922 func_lo2o ()
28923 {
28924 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
28925 }
28926
28927 # func_xform libobj-or-source
28928 func_xform ()
28929 {
28930 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
28931 }
28932
28933 # func_arith arithmetic-term...
28934 func_arith ()
28935 {
28936 func_arith_result=`expr "$@"`
28937 }
28938
28939 # func_len string
28940 # STRING may not start with a hyphen.
28941 func_len ()
28942 {
28943 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
28944 }
28945
28946 _LT_EOF
28947 esac
28948
28949 case $lt_shell_append in
28950 yes)
28951 cat << \_LT_EOF >> "$cfgfile"
28952
28953 # func_append var value
28954 # Append VALUE to the end of shell variable VAR.
28955 func_append ()
28956 {
28957 eval "$1+=\$2"
28958 }
28959 _LT_EOF
28960 ;;
28961 *)
28962 cat << \_LT_EOF >> "$cfgfile"
28963
28964 # func_append var value
28965 # Append VALUE to the end of shell variable VAR.
28966 func_append ()
28967 {
28968 eval "$1=\$$1\$2"
28969 }
28970
28971 _LT_EOF
28972 ;;
28973 esac
28974
28975
28976 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
28977 || (rm -f "$cfgfile"; exit 1)
28978
28979 mv -f "$cfgfile" "$ofile" ||
28980 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
28981 chmod +x "$ofile"
28982
28983
28984 cat <<_LT_EOF >> "$ofile"
28985
28986 # ### BEGIN LIBTOOL TAG CONFIG: FC
28987
28988 # The linker used to build libraries.
28989 LD=$lt_LD_FC
28990
28991 # How to create reloadable object files.
28992 reload_flag=$lt_reload_flag_FC
28993 reload_cmds=$lt_reload_cmds_FC
28994
28995 # Commands used to build an old-style archive.
28996 old_archive_cmds=$lt_old_archive_cmds_FC
28997
28998 # A language specific compiler.
28999 CC=$lt_compiler_FC
29000
29001 # Is the compiler the GNU compiler?
29002 with_gcc=$GCC_FC
29003
29004 # Compiler flag to turn off builtin functions.
29005 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
29006
29007 # How to pass a linker flag through the compiler.
29008 wl=$lt_lt_prog_compiler_wl_FC
29009
29010 # Additional compiler flags for building library objects.
29011 pic_flag=$lt_lt_prog_compiler_pic_FC
29012
29013 # Compiler flag to prevent dynamic linking.
29014 link_static_flag=$lt_lt_prog_compiler_static_FC
29015
29016 # Does compiler simultaneously support -c and -o options?
29017 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
29018
29019 # Whether or not to add -lc for building shared libraries.
29020 build_libtool_need_lc=$archive_cmds_need_lc_FC
29021
29022 # Whether or not to disallow shared libs when runtime libs are static.
29023 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
29024
29025 # Compiler flag to allow reflexive dlopens.
29026 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
29027
29028 # Compiler flag to generate shared objects directly from archives.
29029 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
29030
29031 # Whether the compiler copes with passing no objects directly.
29032 compiler_needs_object=$lt_compiler_needs_object_FC
29033
29034 # Create an old-style archive from a shared archive.
29035 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
29036
29037 # Create a temporary old-style archive to link instead of a shared archive.
29038 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
29039
29040 # Commands used to build a shared archive.
29041 archive_cmds=$lt_archive_cmds_FC
29042 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
29043
29044 # Commands used to build a loadable module if different from building
29045 # a shared archive.
29046 module_cmds=$lt_module_cmds_FC
29047 module_expsym_cmds=$lt_module_expsym_cmds_FC
29048
29049 # Whether we are building with GNU ld or not.
29050 with_gnu_ld=$lt_with_gnu_ld_FC
29051
29052 # Flag that allows shared libraries with undefined symbols to be built.
29053 allow_undefined_flag=$lt_allow_undefined_flag_FC
29054
29055 # Flag that enforces no undefined symbols.
29056 no_undefined_flag=$lt_no_undefined_flag_FC
29057
29058 # Flag to hardcode \$libdir into a binary during linking.
29059 # This must work even if \$libdir does not exist
29060 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
29061
29062 # If ld is used when linking, flag to hardcode \$libdir into a binary
29063 # during linking. This must work even if \$libdir does not exist.
29064 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
29065
29066 # Whether we need a single "-rpath" flag with a separated argument.
29067 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
29068
29069 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29070 # DIR into the resulting binary.
29071 hardcode_direct=$hardcode_direct_FC
29072
29073 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29074 # DIR into the resulting binary and the resulting library dependency is
29075 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29076 # library is relocated.
29077 hardcode_direct_absolute=$hardcode_direct_absolute_FC
29078
29079 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29080 # into the resulting binary.
29081 hardcode_minus_L=$hardcode_minus_L_FC
29082
29083 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29084 # into the resulting binary.
29085 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
29086
29087 # Set to "yes" if building a shared library automatically hardcodes DIR
29088 # into the library and all subsequent libraries and executables linked
29089 # against it.
29090 hardcode_automatic=$hardcode_automatic_FC
29091
29092 # Set to yes if linker adds runtime paths of dependent libraries
29093 # to runtime path list.
29094 inherit_rpath=$inherit_rpath_FC
29095
29096 # Whether libtool must link a program against all its dependency libraries.
29097 link_all_deplibs=$link_all_deplibs_FC
29098
29099 # Fix the shell variable \$srcfile for the compiler.
29100 fix_srcfile_path=$lt_fix_srcfile_path_FC
29101
29102 # Set to "yes" if exported symbols are required.
29103 always_export_symbols=$always_export_symbols_FC
29104
29105 # The commands to list exported symbols.
29106 export_symbols_cmds=$lt_export_symbols_cmds_FC
29107
29108 # Symbols that should not be listed in the preloaded symbols.
29109 exclude_expsyms=$lt_exclude_expsyms_FC
29110
29111 # Symbols that must always be exported.
29112 include_expsyms=$lt_include_expsyms_FC
29113
29114 # Commands necessary for linking programs (against libraries) with templates.
29115 prelink_cmds=$lt_prelink_cmds_FC
29116
29117 # Specify filename containing input files.
29118 file_list_spec=$lt_file_list_spec_FC
29119
29120 # How to hardcode a shared library path into an executable.
29121 hardcode_action=$hardcode_action_FC
29122
29123 # The directories searched by this compiler when creating a shared library.
29124 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
29125
29126 # Dependencies to place before and after the objects being linked to
29127 # create a shared library.
29128 predep_objects=$lt_predep_objects_FC
29129 postdep_objects=$lt_postdep_objects_FC
29130 predeps=$lt_predeps_FC
29131 postdeps=$lt_postdeps_FC
29132
29133 # The library search path used internally by the compiler when linking
29134 # a shared library.
29135 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
29136
29137 # ### END LIBTOOL TAG CONFIG: FC
29138 _LT_EOF
29139
29140 ;;
29141 "gstdint.h":C)
29142 if test "$GCC" = yes; then
29143 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
29144 else
29145 echo "/* generated for $CC */" > tmp-stdint.h
29146 fi
29147
29148 sed 's/^ *//' >> tmp-stdint.h <<EOF
29149
29150 #ifndef GCC_GENERATED_STDINT_H
29151 #define GCC_GENERATED_STDINT_H 1
29152
29153 #include <sys/types.h>
29154 EOF
29155
29156 if test "$acx_cv_header_stdint" != stdint.h; then
29157 echo "#include <stddef.h>" >> tmp-stdint.h
29158 fi
29159 if test "$acx_cv_header_stdint" != stddef.h; then
29160 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
29161 fi
29162
29163 sed 's/^ *//' >> tmp-stdint.h <<EOF
29164 /* glibc uses these symbols as guards to prevent redefinitions. */
29165 #ifdef __int8_t_defined
29166 #define _INT8_T
29167 #define _INT16_T
29168 #define _INT32_T
29169 #endif
29170 #ifdef __uint32_t_defined
29171 #define _UINT32_T
29172 #endif
29173
29174 EOF
29175
29176 # ----------------- done header, emit basic int types -------------
29177 if test "$acx_cv_header_stdint" = stddef.h; then
29178 sed 's/^ *//' >> tmp-stdint.h <<EOF
29179
29180 #ifndef _UINT8_T
29181 #define _UINT8_T
29182 #ifndef __uint8_t_defined
29183 #define __uint8_t_defined
29184 #ifndef uint8_t
29185 typedef unsigned $acx_cv_type_int8_t uint8_t;
29186 #endif
29187 #endif
29188 #endif
29189
29190 #ifndef _UINT16_T
29191 #define _UINT16_T
29192 #ifndef __uint16_t_defined
29193 #define __uint16_t_defined
29194 #ifndef uint16_t
29195 typedef unsigned $acx_cv_type_int16_t uint16_t;
29196 #endif
29197 #endif
29198 #endif
29199
29200 #ifndef _UINT32_T
29201 #define _UINT32_T
29202 #ifndef __uint32_t_defined
29203 #define __uint32_t_defined
29204 #ifndef uint32_t
29205 typedef unsigned $acx_cv_type_int32_t uint32_t;
29206 #endif
29207 #endif
29208 #endif
29209
29210 #ifndef _INT8_T
29211 #define _INT8_T
29212 #ifndef __int8_t_defined
29213 #define __int8_t_defined
29214 #ifndef int8_t
29215 typedef $acx_cv_type_int8_t int8_t;
29216 #endif
29217 #endif
29218 #endif
29219
29220 #ifndef _INT16_T
29221 #define _INT16_T
29222 #ifndef __int16_t_defined
29223 #define __int16_t_defined
29224 #ifndef int16_t
29225 typedef $acx_cv_type_int16_t int16_t;
29226 #endif
29227 #endif
29228 #endif
29229
29230 #ifndef _INT32_T
29231 #define _INT32_T
29232 #ifndef __int32_t_defined
29233 #define __int32_t_defined
29234 #ifndef int32_t
29235 typedef $acx_cv_type_int32_t int32_t;
29236 #endif
29237 #endif
29238 #endif
29239 EOF
29240 elif test "$ac_cv_type_u_int32_t" = yes; then
29241 sed 's/^ *//' >> tmp-stdint.h <<EOF
29242
29243 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
29244 #ifndef _INT8_T
29245 #define _INT8_T
29246 #endif
29247 #ifndef _INT16_T
29248 #define _INT16_T
29249 #endif
29250 #ifndef _INT32_T
29251 #define _INT32_T
29252 #endif
29253
29254 #ifndef _UINT8_T
29255 #define _UINT8_T
29256 #ifndef __uint8_t_defined
29257 #define __uint8_t_defined
29258 #ifndef uint8_t
29259 typedef u_int8_t uint8_t;
29260 #endif
29261 #endif
29262 #endif
29263
29264 #ifndef _UINT16_T
29265 #define _UINT16_T
29266 #ifndef __uint16_t_defined
29267 #define __uint16_t_defined
29268 #ifndef uint16_t
29269 typedef u_int16_t uint16_t;
29270 #endif
29271 #endif
29272 #endif
29273
29274 #ifndef _UINT32_T
29275 #define _UINT32_T
29276 #ifndef __uint32_t_defined
29277 #define __uint32_t_defined
29278 #ifndef uint32_t
29279 typedef u_int32_t uint32_t;
29280 #endif
29281 #endif
29282 #endif
29283 EOF
29284 else
29285 sed 's/^ *//' >> tmp-stdint.h <<EOF
29286
29287 /* Some systems have guard macros to prevent redefinitions, define them. */
29288 #ifndef _INT8_T
29289 #define _INT8_T
29290 #endif
29291 #ifndef _INT16_T
29292 #define _INT16_T
29293 #endif
29294 #ifndef _INT32_T
29295 #define _INT32_T
29296 #endif
29297 #ifndef _UINT8_T
29298 #define _UINT8_T
29299 #endif
29300 #ifndef _UINT16_T
29301 #define _UINT16_T
29302 #endif
29303 #ifndef _UINT32_T
29304 #define _UINT32_T
29305 #endif
29306 EOF
29307 fi
29308
29309 # ------------- done basic int types, emit int64_t types ------------
29310 if test "$ac_cv_type_uint64_t" = yes; then
29311 sed 's/^ *//' >> tmp-stdint.h <<EOF
29312
29313 /* system headers have good uint64_t and int64_t */
29314 #ifndef _INT64_T
29315 #define _INT64_T
29316 #endif
29317 #ifndef _UINT64_T
29318 #define _UINT64_T
29319 #endif
29320 EOF
29321 elif test "$ac_cv_type_u_int64_t" = yes; then
29322 sed 's/^ *//' >> tmp-stdint.h <<EOF
29323
29324 /* system headers have an u_int64_t (and int64_t) */
29325 #ifndef _INT64_T
29326 #define _INT64_T
29327 #endif
29328 #ifndef _UINT64_T
29329 #define _UINT64_T
29330 #ifndef __uint64_t_defined
29331 #define __uint64_t_defined
29332 #ifndef uint64_t
29333 typedef u_int64_t uint64_t;
29334 #endif
29335 #endif
29336 #endif
29337 EOF
29338 elif test -n "$acx_cv_type_int64_t"; then
29339 sed 's/^ *//' >> tmp-stdint.h <<EOF
29340
29341 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
29342 #ifndef _INT64_T
29343 #define _INT64_T
29344 #ifndef int64_t
29345 typedef $acx_cv_type_int64_t int64_t;
29346 #endif
29347 #endif
29348 #ifndef _UINT64_T
29349 #define _UINT64_T
29350 #ifndef __uint64_t_defined
29351 #define __uint64_t_defined
29352 #ifndef uint64_t
29353 typedef unsigned $acx_cv_type_int64_t uint64_t;
29354 #endif
29355 #endif
29356 #endif
29357 EOF
29358 else
29359 sed 's/^ *//' >> tmp-stdint.h <<EOF
29360
29361 /* some common heuristics for int64_t, using compiler-specific tests */
29362 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
29363 #ifndef _INT64_T
29364 #define _INT64_T
29365 #ifndef __int64_t_defined
29366 #ifndef int64_t
29367 typedef long long int64_t;
29368 #endif
29369 #endif
29370 #endif
29371 #ifndef _UINT64_T
29372 #define _UINT64_T
29373 #ifndef uint64_t
29374 typedef unsigned long long uint64_t;
29375 #endif
29376 #endif
29377
29378 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
29379 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
29380 does not implement __extension__. But that compiler doesn't define
29381 __GNUC_MINOR__. */
29382 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
29383 # define __extension__
29384 # endif
29385
29386 # ifndef _INT64_T
29387 # define _INT64_T
29388 # ifndef int64_t
29389 __extension__ typedef long long int64_t;
29390 # endif
29391 # endif
29392 # ifndef _UINT64_T
29393 # define _UINT64_T
29394 # ifndef uint64_t
29395 __extension__ typedef unsigned long long uint64_t;
29396 # endif
29397 # endif
29398
29399 #elif !defined __STRICT_ANSI__
29400 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
29401
29402 # ifndef _INT64_T
29403 # define _INT64_T
29404 # ifndef int64_t
29405 typedef __int64 int64_t;
29406 # endif
29407 # endif
29408 # ifndef _UINT64_T
29409 # define _UINT64_T
29410 # ifndef uint64_t
29411 typedef unsigned __int64 uint64_t;
29412 # endif
29413 # endif
29414 # endif /* compiler */
29415
29416 #endif /* ANSI version */
29417 EOF
29418 fi
29419
29420 # ------------- done int64_t types, emit intptr types ------------
29421 if test "$ac_cv_type_uintptr_t" != yes; then
29422 sed 's/^ *//' >> tmp-stdint.h <<EOF
29423
29424 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
29425 #ifndef __uintptr_t_defined
29426 #ifndef uintptr_t
29427 typedef u$acx_cv_type_intptr_t uintptr_t;
29428 #endif
29429 #endif
29430 #ifndef __intptr_t_defined
29431 #ifndef intptr_t
29432 typedef $acx_cv_type_intptr_t intptr_t;
29433 #endif
29434 #endif
29435 EOF
29436 fi
29437
29438 # ------------- done intptr types, emit int_least types ------------
29439 if test "$ac_cv_type_int_least32_t" != yes; then
29440 sed 's/^ *//' >> tmp-stdint.h <<EOF
29441
29442 /* Define int_least types */
29443 typedef int8_t int_least8_t;
29444 typedef int16_t int_least16_t;
29445 typedef int32_t int_least32_t;
29446 #ifdef _INT64_T
29447 typedef int64_t int_least64_t;
29448 #endif
29449
29450 typedef uint8_t uint_least8_t;
29451 typedef uint16_t uint_least16_t;
29452 typedef uint32_t uint_least32_t;
29453 #ifdef _UINT64_T
29454 typedef uint64_t uint_least64_t;
29455 #endif
29456 EOF
29457 fi
29458
29459 # ------------- done intptr types, emit int_fast types ------------
29460 if test "$ac_cv_type_int_fast32_t" != yes; then
29461 sed 's/^ *//' >> tmp-stdint.h <<EOF
29462
29463 /* Define int_fast types. short is often slow */
29464 typedef int8_t int_fast8_t;
29465 typedef int int_fast16_t;
29466 typedef int32_t int_fast32_t;
29467 #ifdef _INT64_T
29468 typedef int64_t int_fast64_t;
29469 #endif
29470
29471 typedef uint8_t uint_fast8_t;
29472 typedef unsigned int uint_fast16_t;
29473 typedef uint32_t uint_fast32_t;
29474 #ifdef _UINT64_T
29475 typedef uint64_t uint_fast64_t;
29476 #endif
29477 EOF
29478 fi
29479
29480 if test "$ac_cv_type_uintmax_t" != yes; then
29481 sed 's/^ *//' >> tmp-stdint.h <<EOF
29482
29483 /* Define intmax based on what we found */
29484 #ifndef intmax_t
29485 #ifdef _INT64_T
29486 typedef int64_t intmax_t;
29487 #else
29488 typedef long intmax_t;
29489 #endif
29490 #endif
29491 #ifndef uintmax_t
29492 #ifdef _UINT64_T
29493 typedef uint64_t uintmax_t;
29494 #else
29495 typedef unsigned long uintmax_t;
29496 #endif
29497 #endif
29498 EOF
29499 fi
29500
29501 sed 's/^ *//' >> tmp-stdint.h <<EOF
29502
29503 #endif /* GCC_GENERATED_STDINT_H */
29504 EOF
29505
29506 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
29507 rm -f tmp-stdint.h
29508 else
29509 mv -f tmp-stdint.h gstdint.h
29510 fi
29511
29512 ;;
29513
29514 esac
29515 done # for ac_tag
29516
29517
29518 as_fn_exit 0
29519 _ACEOF
29520 ac_clean_files=$ac_clean_files_save
29521
29522 test $ac_write_fail = 0 ||
29523 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29524
29525
29526 # configure is writing to config.log, and then calls config.status.
29527 # config.status does its own redirection, appending to config.log.
29528 # Unfortunately, on DOS this fails, as config.log is still kept open
29529 # by configure, so config.status won't be able to write to it; its
29530 # output is simply discarded. So we exec the FD to /dev/null,
29531 # effectively closing config.log, so it can be properly (re)opened and
29532 # appended to by config.status. When coming back to configure, we
29533 # need to make the FD available again.
29534 if test "$no_create" != yes; then
29535 ac_cs_success=:
29536 ac_config_status_args=
29537 test "$silent" = yes &&
29538 ac_config_status_args="$ac_config_status_args --quiet"
29539 exec 5>/dev/null
29540 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29541 exec 5>>config.log
29542 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29543 # would make configure fail if this is the last instruction.
29544 $ac_cs_success || as_fn_exit $?
29545 fi
29546 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29548 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
29549 fi
29550