]> git.ipfire.org Git - thirdparty/gcc.git/blob - libgfortran/configure
Use vectored writes when reporting errors and warnings.
[thirdparty/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 get_gcc_base_ver
609 HAVE_AVX128_FALSE
610 HAVE_AVX128_TRUE
611 IEEE_FLAGS
612 IEEE_SUPPORT
613 IEEE_SUPPORT_FALSE
614 IEEE_SUPPORT_TRUE
615 FPU_HOST_HEADER
616 LIBGFOR_BUILD_QUAD_FALSE
617 LIBGFOR_BUILD_QUAD_TRUE
618 LIBQUADINCLUDE
619 LIBQUADLIB_DEP
620 LIBQUADLIB
621 LIBQUADSPEC
622 extra_ldflags_libgfortran
623 ac_ct_FC
624 FCFLAGS
625 FC
626 enable_static
627 enable_shared
628 lt_host_flags
629 OTOOL64
630 OTOOL
631 LIPO
632 NMEDIT
633 DSYMUTIL
634 OBJDUMP
635 LN_S
636 NM
637 ac_ct_DUMPBIN
638 DUMPBIN
639 LIBTOOL
640 RANLIB
641 AR
642 AS
643 HAVE_HWCAP_FALSE
644 HAVE_HWCAP_TRUE
645 HWCAP_LDFLAGS
646 LD
647 FGREP
648 SED
649 SECTION_FLAGS
650 LIBGFOR_MINIMAL_FALSE
651 LIBGFOR_MINIMAL_TRUE
652 LIBGFOR_USE_SYMVER_SUN_FALSE
653 LIBGFOR_USE_SYMVER_SUN_TRUE
654 LIBGFOR_USE_SYMVER_GNU_FALSE
655 LIBGFOR_USE_SYMVER_GNU_TRUE
656 LIBGFOR_USE_SYMVER_FALSE
657 LIBGFOR_USE_SYMVER_TRUE
658 AM_CFLAGS
659 AM_FCFLAGS
660 toolexeclibdir
661 toolexecdir
662 EGREP
663 GREP
664 CPP
665 am__fastdepCC_FALSE
666 am__fastdepCC_TRUE
667 CCDEPMODE
668 am__nodep
669 AMDEPBACKSLASH
670 AMDEP_FALSE
671 AMDEP_TRUE
672 am__quote
673 am__include
674 DEPDIR
675 OBJEXT
676 EXEEXT
677 ac_ct_CC
678 CPPFLAGS
679 LDFLAGS
680 CFLAGS
681 CC
682 multi_basedir
683 MAINT
684 MAINTAINER_MODE_FALSE
685 MAINTAINER_MODE_TRUE
686 am__untar
687 am__tar
688 AMTAR
689 am__leading_dot
690 SET_MAKE
691 AWK
692 mkdir_p
693 MKDIR_P
694 INSTALL_STRIP_PROGRAM
695 STRIP
696 install_sh
697 MAKEINFO
698 AUTOHEADER
699 AUTOMAKE
700 AUTOCONF
701 ACLOCAL
702 VERSION
703 PACKAGE
704 CYGPATH_W
705 am__isrc
706 INSTALL_DATA
707 INSTALL_SCRIPT
708 INSTALL_PROGRAM
709 target_noncanonical
710 target_os
711 target_vendor
712 target_cpu
713 target
714 host_os
715 host_vendor
716 host_cpu
717 host
718 onestep
719 onestep_FALSE
720 onestep_TRUE
721 target_subdir
722 host_subdir
723 build_subdir
724 build_libsubdir
725 build_os
726 build_vendor
727 build_cpu
728 build
729 target_alias
730 host_alias
731 build_alias
732 LIBS
733 ECHO_T
734 ECHO_N
735 ECHO_C
736 DEFS
737 mandir
738 localedir
739 libdir
740 psdir
741 pdfdir
742 dvidir
743 htmldir
744 infodir
745 docdir
746 oldincludedir
747 includedir
748 localstatedir
749 sharedstatedir
750 sysconfdir
751 datadir
752 datarootdir
753 libexecdir
754 sbindir
755 bindir
756 program_transform_name
757 prefix
758 exec_prefix
759 PACKAGE_URL
760 PACKAGE_BUGREPORT
761 PACKAGE_STRING
762 PACKAGE_VERSION
763 PACKAGE_TARNAME
764 PACKAGE_NAME
765 PATH_SEPARATOR
766 SHELL'
767 ac_subst_files=''
768 ac_user_opts='
769 enable_option_checking
770 with_build_libsubdir
771 enable_version_specific_runtime_libs
772 enable_intermodule
773 enable_maintainer_mode
774 enable_multilib
775 enable_dependency_tracking
776 enable_cet
777 enable_symvers
778 with_gnu_ld
779 enable_shared
780 enable_static
781 with_pic
782 enable_fast_install
783 enable_libtool_lock
784 enable_largefile
785 enable_libquadmath_support
786 with_gcc_major_version_only
787 '
788 ac_precious_vars='build_alias
789 host_alias
790 target_alias
791 CC
792 CFLAGS
793 LDFLAGS
794 LIBS
795 CPPFLAGS
796 CPP
797 FC
798 FCFLAGS'
799
800
801 # Initialize some variables set by options.
802 ac_init_help=
803 ac_init_version=false
804 ac_unrecognized_opts=
805 ac_unrecognized_sep=
806 # The variables have the same names as the options, with
807 # dashes changed to underlines.
808 cache_file=/dev/null
809 exec_prefix=NONE
810 no_create=
811 no_recursion=
812 prefix=NONE
813 program_prefix=NONE
814 program_suffix=NONE
815 program_transform_name=s,x,x,
816 silent=
817 site=
818 srcdir=
819 verbose=
820 x_includes=NONE
821 x_libraries=NONE
822
823 # Installation directory options.
824 # These are left unexpanded so users can "make install exec_prefix=/foo"
825 # and all the variables that are supposed to be based on exec_prefix
826 # by default will actually change.
827 # Use braces instead of parens because sh, perl, etc. also accept them.
828 # (The list follows the same order as the GNU Coding Standards.)
829 bindir='${exec_prefix}/bin'
830 sbindir='${exec_prefix}/sbin'
831 libexecdir='${exec_prefix}/libexec'
832 datarootdir='${prefix}/share'
833 datadir='${datarootdir}'
834 sysconfdir='${prefix}/etc'
835 sharedstatedir='${prefix}/com'
836 localstatedir='${prefix}/var'
837 includedir='${prefix}/include'
838 oldincludedir='/usr/include'
839 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
840 infodir='${datarootdir}/info'
841 htmldir='${docdir}'
842 dvidir='${docdir}'
843 pdfdir='${docdir}'
844 psdir='${docdir}'
845 libdir='${exec_prefix}/lib'
846 localedir='${datarootdir}/locale'
847 mandir='${datarootdir}/man'
848
849 ac_prev=
850 ac_dashdash=
851 for ac_option
852 do
853 # If the previous option needs an argument, assign it.
854 if test -n "$ac_prev"; then
855 eval $ac_prev=\$ac_option
856 ac_prev=
857 continue
858 fi
859
860 case $ac_option in
861 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
862 *) ac_optarg=yes ;;
863 esac
864
865 # Accept the important Cygnus configure options, so we can diagnose typos.
866
867 case $ac_dashdash$ac_option in
868 --)
869 ac_dashdash=yes ;;
870
871 -bindir | --bindir | --bindi | --bind | --bin | --bi)
872 ac_prev=bindir ;;
873 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
874 bindir=$ac_optarg ;;
875
876 -build | --build | --buil | --bui | --bu)
877 ac_prev=build_alias ;;
878 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
879 build_alias=$ac_optarg ;;
880
881 -cache-file | --cache-file | --cache-fil | --cache-fi \
882 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
883 ac_prev=cache_file ;;
884 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
885 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
886 cache_file=$ac_optarg ;;
887
888 --config-cache | -C)
889 cache_file=config.cache ;;
890
891 -datadir | --datadir | --datadi | --datad)
892 ac_prev=datadir ;;
893 -datadir=* | --datadir=* | --datadi=* | --datad=*)
894 datadir=$ac_optarg ;;
895
896 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
897 | --dataroo | --dataro | --datar)
898 ac_prev=datarootdir ;;
899 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
900 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
901 datarootdir=$ac_optarg ;;
902
903 -disable-* | --disable-*)
904 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
905 # Reject names that are not valid shell variable names.
906 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
907 as_fn_error "invalid feature name: $ac_useropt"
908 ac_useropt_orig=$ac_useropt
909 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
910 case $ac_user_opts in
911 *"
912 "enable_$ac_useropt"
913 "*) ;;
914 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
915 ac_unrecognized_sep=', ';;
916 esac
917 eval enable_$ac_useropt=no ;;
918
919 -docdir | --docdir | --docdi | --doc | --do)
920 ac_prev=docdir ;;
921 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
922 docdir=$ac_optarg ;;
923
924 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
925 ac_prev=dvidir ;;
926 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
927 dvidir=$ac_optarg ;;
928
929 -enable-* | --enable-*)
930 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
931 # Reject names that are not valid shell variable names.
932 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
933 as_fn_error "invalid feature name: $ac_useropt"
934 ac_useropt_orig=$ac_useropt
935 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
936 case $ac_user_opts in
937 *"
938 "enable_$ac_useropt"
939 "*) ;;
940 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
941 ac_unrecognized_sep=', ';;
942 esac
943 eval enable_$ac_useropt=\$ac_optarg ;;
944
945 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
946 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
947 | --exec | --exe | --ex)
948 ac_prev=exec_prefix ;;
949 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
950 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
951 | --exec=* | --exe=* | --ex=*)
952 exec_prefix=$ac_optarg ;;
953
954 -gas | --gas | --ga | --g)
955 # Obsolete; use --with-gas.
956 with_gas=yes ;;
957
958 -help | --help | --hel | --he | -h)
959 ac_init_help=long ;;
960 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
961 ac_init_help=recursive ;;
962 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
963 ac_init_help=short ;;
964
965 -host | --host | --hos | --ho)
966 ac_prev=host_alias ;;
967 -host=* | --host=* | --hos=* | --ho=*)
968 host_alias=$ac_optarg ;;
969
970 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
971 ac_prev=htmldir ;;
972 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
973 | --ht=*)
974 htmldir=$ac_optarg ;;
975
976 -includedir | --includedir | --includedi | --included | --include \
977 | --includ | --inclu | --incl | --inc)
978 ac_prev=includedir ;;
979 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
980 | --includ=* | --inclu=* | --incl=* | --inc=*)
981 includedir=$ac_optarg ;;
982
983 -infodir | --infodir | --infodi | --infod | --info | --inf)
984 ac_prev=infodir ;;
985 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
986 infodir=$ac_optarg ;;
987
988 -libdir | --libdir | --libdi | --libd)
989 ac_prev=libdir ;;
990 -libdir=* | --libdir=* | --libdi=* | --libd=*)
991 libdir=$ac_optarg ;;
992
993 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
994 | --libexe | --libex | --libe)
995 ac_prev=libexecdir ;;
996 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
997 | --libexe=* | --libex=* | --libe=*)
998 libexecdir=$ac_optarg ;;
999
1000 -localedir | --localedir | --localedi | --localed | --locale)
1001 ac_prev=localedir ;;
1002 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1003 localedir=$ac_optarg ;;
1004
1005 -localstatedir | --localstatedir | --localstatedi | --localstated \
1006 | --localstate | --localstat | --localsta | --localst | --locals)
1007 ac_prev=localstatedir ;;
1008 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1009 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1010 localstatedir=$ac_optarg ;;
1011
1012 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1013 ac_prev=mandir ;;
1014 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1015 mandir=$ac_optarg ;;
1016
1017 -nfp | --nfp | --nf)
1018 # Obsolete; use --without-fp.
1019 with_fp=no ;;
1020
1021 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1022 | --no-cr | --no-c | -n)
1023 no_create=yes ;;
1024
1025 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1026 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1027 no_recursion=yes ;;
1028
1029 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1030 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1031 | --oldin | --oldi | --old | --ol | --o)
1032 ac_prev=oldincludedir ;;
1033 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1034 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1035 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1036 oldincludedir=$ac_optarg ;;
1037
1038 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1039 ac_prev=prefix ;;
1040 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1041 prefix=$ac_optarg ;;
1042
1043 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1044 | --program-pre | --program-pr | --program-p)
1045 ac_prev=program_prefix ;;
1046 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1047 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1048 program_prefix=$ac_optarg ;;
1049
1050 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1051 | --program-suf | --program-su | --program-s)
1052 ac_prev=program_suffix ;;
1053 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1054 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1055 program_suffix=$ac_optarg ;;
1056
1057 -program-transform-name | --program-transform-name \
1058 | --program-transform-nam | --program-transform-na \
1059 | --program-transform-n | --program-transform- \
1060 | --program-transform | --program-transfor \
1061 | --program-transfo | --program-transf \
1062 | --program-trans | --program-tran \
1063 | --progr-tra | --program-tr | --program-t)
1064 ac_prev=program_transform_name ;;
1065 -program-transform-name=* | --program-transform-name=* \
1066 | --program-transform-nam=* | --program-transform-na=* \
1067 | --program-transform-n=* | --program-transform-=* \
1068 | --program-transform=* | --program-transfor=* \
1069 | --program-transfo=* | --program-transf=* \
1070 | --program-trans=* | --program-tran=* \
1071 | --progr-tra=* | --program-tr=* | --program-t=*)
1072 program_transform_name=$ac_optarg ;;
1073
1074 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1075 ac_prev=pdfdir ;;
1076 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1077 pdfdir=$ac_optarg ;;
1078
1079 -psdir | --psdir | --psdi | --psd | --ps)
1080 ac_prev=psdir ;;
1081 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1082 psdir=$ac_optarg ;;
1083
1084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085 | -silent | --silent | --silen | --sile | --sil)
1086 silent=yes ;;
1087
1088 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1089 ac_prev=sbindir ;;
1090 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1091 | --sbi=* | --sb=*)
1092 sbindir=$ac_optarg ;;
1093
1094 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1095 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1096 | --sharedst | --shareds | --shared | --share | --shar \
1097 | --sha | --sh)
1098 ac_prev=sharedstatedir ;;
1099 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1100 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1101 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1102 | --sha=* | --sh=*)
1103 sharedstatedir=$ac_optarg ;;
1104
1105 -site | --site | --sit)
1106 ac_prev=site ;;
1107 -site=* | --site=* | --sit=*)
1108 site=$ac_optarg ;;
1109
1110 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1111 ac_prev=srcdir ;;
1112 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1113 srcdir=$ac_optarg ;;
1114
1115 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1116 | --syscon | --sysco | --sysc | --sys | --sy)
1117 ac_prev=sysconfdir ;;
1118 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1119 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1120 sysconfdir=$ac_optarg ;;
1121
1122 -target | --target | --targe | --targ | --tar | --ta | --t)
1123 ac_prev=target_alias ;;
1124 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1125 target_alias=$ac_optarg ;;
1126
1127 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1128 verbose=yes ;;
1129
1130 -version | --version | --versio | --versi | --vers | -V)
1131 ac_init_version=: ;;
1132
1133 -with-* | --with-*)
1134 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1135 # Reject names that are not valid shell variable names.
1136 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1137 as_fn_error "invalid package name: $ac_useropt"
1138 ac_useropt_orig=$ac_useropt
1139 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1140 case $ac_user_opts in
1141 *"
1142 "with_$ac_useropt"
1143 "*) ;;
1144 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1145 ac_unrecognized_sep=', ';;
1146 esac
1147 eval with_$ac_useropt=\$ac_optarg ;;
1148
1149 -without-* | --without-*)
1150 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1151 # Reject names that are not valid shell variable names.
1152 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153 as_fn_error "invalid package name: $ac_useropt"
1154 ac_useropt_orig=$ac_useropt
1155 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1156 case $ac_user_opts in
1157 *"
1158 "with_$ac_useropt"
1159 "*) ;;
1160 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1161 ac_unrecognized_sep=', ';;
1162 esac
1163 eval with_$ac_useropt=no ;;
1164
1165 --x)
1166 # Obsolete; use --with-x.
1167 with_x=yes ;;
1168
1169 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1170 | --x-incl | --x-inc | --x-in | --x-i)
1171 ac_prev=x_includes ;;
1172 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1173 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1174 x_includes=$ac_optarg ;;
1175
1176 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1177 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1178 ac_prev=x_libraries ;;
1179 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1180 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1181 x_libraries=$ac_optarg ;;
1182
1183 -*) as_fn_error "unrecognized option: \`$ac_option'
1184 Try \`$0 --help' for more information."
1185 ;;
1186
1187 *=*)
1188 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1189 # Reject names that are not valid shell variable names.
1190 case $ac_envvar in #(
1191 '' | [0-9]* | *[!_$as_cr_alnum]* )
1192 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1193 esac
1194 eval $ac_envvar=\$ac_optarg
1195 export $ac_envvar ;;
1196
1197 *)
1198 # FIXME: should be removed in autoconf 3.0.
1199 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1200 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1201 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1202 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1203 ;;
1204
1205 esac
1206 done
1207
1208 if test -n "$ac_prev"; then
1209 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1210 as_fn_error "missing argument to $ac_option"
1211 fi
1212
1213 if test -n "$ac_unrecognized_opts"; then
1214 case $enable_option_checking in
1215 no) ;;
1216 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1217 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1218 esac
1219 fi
1220
1221 # Check all directory arguments for consistency.
1222 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1223 datadir sysconfdir sharedstatedir localstatedir includedir \
1224 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1225 libdir localedir mandir
1226 do
1227 eval ac_val=\$$ac_var
1228 # Remove trailing slashes.
1229 case $ac_val in
1230 */ )
1231 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1232 eval $ac_var=\$ac_val;;
1233 esac
1234 # Be sure to have absolute directory names.
1235 case $ac_val in
1236 [\\/$]* | ?:[\\/]* ) continue;;
1237 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1238 esac
1239 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1240 done
1241
1242 # There might be people who depend on the old broken behavior: `$host'
1243 # used to hold the argument of --host etc.
1244 # FIXME: To remove some day.
1245 build=$build_alias
1246 host=$host_alias
1247 target=$target_alias
1248
1249 # FIXME: To remove some day.
1250 if test "x$host_alias" != x; then
1251 if test "x$build_alias" = x; then
1252 cross_compiling=maybe
1253 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1254 If a cross compiler is detected then cross compile mode will be used." >&2
1255 elif test "x$build_alias" != "x$host_alias"; then
1256 cross_compiling=yes
1257 fi
1258 fi
1259
1260 ac_tool_prefix=
1261 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1262
1263 test "$silent" = yes && exec 6>/dev/null
1264
1265
1266 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1267 ac_ls_di=`ls -di .` &&
1268 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1269 as_fn_error "working directory cannot be determined"
1270 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1271 as_fn_error "pwd does not report name of working directory"
1272
1273
1274 # Find the source files, if location was not specified.
1275 if test -z "$srcdir"; then
1276 ac_srcdir_defaulted=yes
1277 # Try the directory containing this script, then the parent directory.
1278 ac_confdir=`$as_dirname -- "$as_myself" ||
1279 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1280 X"$as_myself" : 'X\(//\)[^/]' \| \
1281 X"$as_myself" : 'X\(//\)$' \| \
1282 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1283 $as_echo X"$as_myself" |
1284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1285 s//\1/
1286 q
1287 }
1288 /^X\(\/\/\)[^/].*/{
1289 s//\1/
1290 q
1291 }
1292 /^X\(\/\/\)$/{
1293 s//\1/
1294 q
1295 }
1296 /^X\(\/\).*/{
1297 s//\1/
1298 q
1299 }
1300 s/.*/./; q'`
1301 srcdir=$ac_confdir
1302 if test ! -r "$srcdir/$ac_unique_file"; then
1303 srcdir=..
1304 fi
1305 else
1306 ac_srcdir_defaulted=no
1307 fi
1308 if test ! -r "$srcdir/$ac_unique_file"; then
1309 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1310 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1311 fi
1312 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1313 ac_abs_confdir=`(
1314 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1315 pwd)`
1316 # When building in place, set srcdir=.
1317 if test "$ac_abs_confdir" = "$ac_pwd"; then
1318 srcdir=.
1319 fi
1320 # Remove unnecessary trailing slashes from srcdir.
1321 # Double slashes in file names in object file debugging info
1322 # mess up M-x gdb in Emacs.
1323 case $srcdir in
1324 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1325 esac
1326 for ac_var in $ac_precious_vars; do
1327 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1328 eval ac_env_${ac_var}_value=\$${ac_var}
1329 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1330 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1331 done
1332
1333 #
1334 # Report the --help message.
1335 #
1336 if test "$ac_init_help" = "long"; then
1337 # Omit some internal or obsolete options to make the list less imposing.
1338 # This message is too long to be a string in the A/UX 3.1 sh.
1339 cat <<_ACEOF
1340 \`configure' configures GNU Fortran Runtime Library 0.3 to adapt to many kinds of systems.
1341
1342 Usage: $0 [OPTION]... [VAR=VALUE]...
1343
1344 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1345 VAR=VALUE. See below for descriptions of some of the useful variables.
1346
1347 Defaults for the options are specified in brackets.
1348
1349 Configuration:
1350 -h, --help display this help and exit
1351 --help=short display options specific to this package
1352 --help=recursive display the short help of all the included packages
1353 -V, --version display version information and exit
1354 -q, --quiet, --silent do not print \`checking...' messages
1355 --cache-file=FILE cache test results in FILE [disabled]
1356 -C, --config-cache alias for \`--cache-file=config.cache'
1357 -n, --no-create do not create output files
1358 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1359
1360 Installation directories:
1361 --prefix=PREFIX install architecture-independent files in PREFIX
1362 [$ac_default_prefix]
1363 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1364 [PREFIX]
1365
1366 By default, \`make install' will install all the files in
1367 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1368 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1369 for instance \`--prefix=\$HOME'.
1370
1371 For better control, use the options below.
1372
1373 Fine tuning of the installation directories:
1374 --bindir=DIR user executables [EPREFIX/bin]
1375 --sbindir=DIR system admin executables [EPREFIX/sbin]
1376 --libexecdir=DIR program executables [EPREFIX/libexec]
1377 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1378 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1379 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1380 --libdir=DIR object code libraries [EPREFIX/lib]
1381 --includedir=DIR C header files [PREFIX/include]
1382 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1383 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1384 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1385 --infodir=DIR info documentation [DATAROOTDIR/info]
1386 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1387 --mandir=DIR man documentation [DATAROOTDIR/man]
1388 --docdir=DIR documentation root [DATAROOTDIR/doc/libgfortran]
1389 --htmldir=DIR html documentation [DOCDIR]
1390 --dvidir=DIR dvi documentation [DOCDIR]
1391 --pdfdir=DIR pdf documentation [DOCDIR]
1392 --psdir=DIR ps documentation [DOCDIR]
1393 _ACEOF
1394
1395 cat <<\_ACEOF
1396
1397 Program names:
1398 --program-prefix=PREFIX prepend PREFIX to installed program names
1399 --program-suffix=SUFFIX append SUFFIX to installed program names
1400 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1401
1402 System types:
1403 --build=BUILD configure for building on BUILD [guessed]
1404 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1405 --target=TARGET configure for building compilers for TARGET [HOST]
1406 _ACEOF
1407 fi
1408
1409 if test -n "$ac_init_help"; then
1410 case $ac_init_help in
1411 short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.3:";;
1412 esac
1413 cat <<\_ACEOF
1414
1415 Optional Features:
1416 --disable-option-checking ignore unrecognized --enable/--with options
1417 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1418 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1419 --enable-version-specific-runtime-libs
1420 specify that runtime libraries should be installed
1421 in a compiler-specific directory
1422 --enable-intermodule build the library in one step
1423 --enable-maintainer-mode enable make rules and dependencies not useful
1424 (and sometimes confusing) to the casual installer
1425 --enable-multilib build many library versions (default)
1426 --disable-dependency-tracking speeds up one-time build
1427 --enable-dependency-tracking do not reject slow dependency extractors
1428 --enable-cet enable Intel CET in target libraries [default=no]
1429 --disable-symvers disable symbol versioning for libgfortran
1430 --enable-shared[=PKGS] build shared libraries [default=yes]
1431 --enable-static[=PKGS] build static libraries [default=yes]
1432 --enable-fast-install[=PKGS]
1433 optimize for fast installation [default=yes]
1434 --disable-libtool-lock avoid locking (might break parallel builds)
1435 --disable-largefile omit support for large files
1436 --disable-libquadmath-support
1437 disable libquadmath support for Fortran
1438
1439 Optional Packages:
1440 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1441 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1442 --with-build-libsubdir=DIR Directory where to find libraries for build system
1443 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1444 --with-pic try to use only PIC/non-PIC objects [default=use
1445 both]
1446 --with-gcc-major-version-only
1447 use only GCC major number in filesystem paths
1448
1449 Some influential environment variables:
1450 CC C compiler command
1451 CFLAGS C compiler flags
1452 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1453 nonstandard directory <lib dir>
1454 LIBS libraries to pass to the linker, e.g. -l<library>
1455 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1456 you have headers in a nonstandard directory <include dir>
1457 CPP C preprocessor
1458 FC Fortran compiler command
1459 FCFLAGS Fortran compiler flags
1460
1461 Use these variables to override the choices made by `configure' or to help
1462 it to find libraries and programs with nonstandard names/locations.
1463
1464 Report bugs to the package provider.
1465 GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
1466 General help using GNU software: <http://www.gnu.org/gethelp/>.
1467 _ACEOF
1468 ac_status=$?
1469 fi
1470
1471 if test "$ac_init_help" = "recursive"; then
1472 # If there are subdirs, report their specific --help.
1473 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1474 test -d "$ac_dir" ||
1475 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1476 continue
1477 ac_builddir=.
1478
1479 case "$ac_dir" in
1480 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1481 *)
1482 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1483 # A ".." for each directory in $ac_dir_suffix.
1484 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1485 case $ac_top_builddir_sub in
1486 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1487 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1488 esac ;;
1489 esac
1490 ac_abs_top_builddir=$ac_pwd
1491 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1492 # for backward compatibility:
1493 ac_top_builddir=$ac_top_build_prefix
1494
1495 case $srcdir in
1496 .) # We are building in place.
1497 ac_srcdir=.
1498 ac_top_srcdir=$ac_top_builddir_sub
1499 ac_abs_top_srcdir=$ac_pwd ;;
1500 [\\/]* | ?:[\\/]* ) # Absolute name.
1501 ac_srcdir=$srcdir$ac_dir_suffix;
1502 ac_top_srcdir=$srcdir
1503 ac_abs_top_srcdir=$srcdir ;;
1504 *) # Relative name.
1505 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1506 ac_top_srcdir=$ac_top_build_prefix$srcdir
1507 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1508 esac
1509 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1510
1511 cd "$ac_dir" || { ac_status=$?; continue; }
1512 # Check for guested configure.
1513 if test -f "$ac_srcdir/configure.gnu"; then
1514 echo &&
1515 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1516 elif test -f "$ac_srcdir/configure"; then
1517 echo &&
1518 $SHELL "$ac_srcdir/configure" --help=recursive
1519 else
1520 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1521 fi || ac_status=$?
1522 cd "$ac_pwd" || { ac_status=$?; break; }
1523 done
1524 fi
1525
1526 test -n "$ac_init_help" && exit $ac_status
1527 if $ac_init_version; then
1528 cat <<\_ACEOF
1529 GNU Fortran Runtime Library configure 0.3
1530 generated by GNU Autoconf 2.64
1531
1532 Copyright (C) 2009 Free Software Foundation, Inc.
1533 This configure script is free software; the Free Software Foundation
1534 gives unlimited permission to copy, distribute and modify it.
1535 _ACEOF
1536 exit
1537 fi
1538
1539 ## ------------------------ ##
1540 ## Autoconf initialization. ##
1541 ## ------------------------ ##
1542
1543 # ac_fn_c_try_compile LINENO
1544 # --------------------------
1545 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1546 ac_fn_c_try_compile ()
1547 {
1548 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1549 rm -f conftest.$ac_objext
1550 if { { ac_try="$ac_compile"
1551 case "(($ac_try" in
1552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1553 *) ac_try_echo=$ac_try;;
1554 esac
1555 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1556 $as_echo "$ac_try_echo"; } >&5
1557 (eval "$ac_compile") 2>conftest.err
1558 ac_status=$?
1559 if test -s conftest.err; then
1560 grep -v '^ *+' conftest.err >conftest.er1
1561 cat conftest.er1 >&5
1562 mv -f conftest.er1 conftest.err
1563 fi
1564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1565 test $ac_status = 0; } && {
1566 test -z "$ac_c_werror_flag" ||
1567 test ! -s conftest.err
1568 } && test -s conftest.$ac_objext; then :
1569 ac_retval=0
1570 else
1571 $as_echo "$as_me: failed program was:" >&5
1572 sed 's/^/| /' conftest.$ac_ext >&5
1573
1574 ac_retval=1
1575 fi
1576 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1577 return $ac_retval
1578
1579 } # ac_fn_c_try_compile
1580
1581 # ac_fn_c_try_cpp LINENO
1582 # ----------------------
1583 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1584 ac_fn_c_try_cpp ()
1585 {
1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587 if { { ac_try="$ac_cpp conftest.$ac_ext"
1588 case "(($ac_try" in
1589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1590 *) ac_try_echo=$ac_try;;
1591 esac
1592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1593 $as_echo "$ac_try_echo"; } >&5
1594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1595 ac_status=$?
1596 if test -s conftest.err; then
1597 grep -v '^ *+' conftest.err >conftest.er1
1598 cat conftest.er1 >&5
1599 mv -f conftest.er1 conftest.err
1600 fi
1601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1602 test $ac_status = 0; } >/dev/null && {
1603 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1604 test ! -s conftest.err
1605 }; then :
1606 ac_retval=0
1607 else
1608 $as_echo "$as_me: failed program was:" >&5
1609 sed 's/^/| /' conftest.$ac_ext >&5
1610
1611 ac_retval=1
1612 fi
1613 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1614 return $ac_retval
1615
1616 } # ac_fn_c_try_cpp
1617
1618 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1619 # -------------------------------------------------------
1620 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1621 # the include files in INCLUDES and setting the cache variable VAR
1622 # accordingly.
1623 ac_fn_c_check_header_mongrel ()
1624 {
1625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1626 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1628 $as_echo_n "checking for $2... " >&6; }
1629 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1630 $as_echo_n "(cached) " >&6
1631 fi
1632 eval ac_res=\$$3
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1634 $as_echo "$ac_res" >&6; }
1635 else
1636 # Is the header compilable?
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1638 $as_echo_n "checking $2 usability... " >&6; }
1639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1640 /* end confdefs.h. */
1641 $4
1642 #include <$2>
1643 _ACEOF
1644 if ac_fn_c_try_compile "$LINENO"; then :
1645 ac_header_compiler=yes
1646 else
1647 ac_header_compiler=no
1648 fi
1649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1651 $as_echo "$ac_header_compiler" >&6; }
1652
1653 # Is the header present?
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1655 $as_echo_n "checking $2 presence... " >&6; }
1656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1657 /* end confdefs.h. */
1658 #include <$2>
1659 _ACEOF
1660 if ac_fn_c_try_cpp "$LINENO"; then :
1661 ac_header_preproc=yes
1662 else
1663 ac_header_preproc=no
1664 fi
1665 rm -f conftest.err conftest.$ac_ext
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1667 $as_echo "$ac_header_preproc" >&6; }
1668
1669 # So? What about this header?
1670 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1671 yes:no: )
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1673 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1675 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1676 ;;
1677 no:yes:* )
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1679 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1681 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1683 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1685 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1687 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1688 ;;
1689 esac
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1691 $as_echo_n "checking for $2... " >&6; }
1692 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1693 $as_echo_n "(cached) " >&6
1694 else
1695 eval "$3=\$ac_header_compiler"
1696 fi
1697 eval ac_res=\$$3
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1699 $as_echo "$ac_res" >&6; }
1700 fi
1701 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1702
1703 } # ac_fn_c_check_header_mongrel
1704
1705 # ac_fn_c_try_run LINENO
1706 # ----------------------
1707 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1708 # that executables *can* be run.
1709 ac_fn_c_try_run ()
1710 {
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 if { { ac_try="$ac_link"
1713 case "(($ac_try" in
1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715 *) ac_try_echo=$ac_try;;
1716 esac
1717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718 $as_echo "$ac_try_echo"; } >&5
1719 (eval "$ac_link") 2>&5
1720 ac_status=$?
1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1723 { { case "(($ac_try" in
1724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1725 *) ac_try_echo=$ac_try;;
1726 esac
1727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728 $as_echo "$ac_try_echo"; } >&5
1729 (eval "$ac_try") 2>&5
1730 ac_status=$?
1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732 test $ac_status = 0; }; }; then :
1733 ac_retval=0
1734 else
1735 $as_echo "$as_me: program exited with status $ac_status" >&5
1736 $as_echo "$as_me: failed program was:" >&5
1737 sed 's/^/| /' conftest.$ac_ext >&5
1738
1739 ac_retval=$ac_status
1740 fi
1741 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1742 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1743 return $ac_retval
1744
1745 } # ac_fn_c_try_run
1746
1747 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1748 # -------------------------------------------------------
1749 # Tests whether HEADER exists and can be compiled using the include files in
1750 # INCLUDES, setting the cache variable VAR accordingly.
1751 ac_fn_c_check_header_compile ()
1752 {
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1755 $as_echo_n "checking for $2... " >&6; }
1756 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1757 $as_echo_n "(cached) " >&6
1758 else
1759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1760 /* end confdefs.h. */
1761 $4
1762 #include <$2>
1763 _ACEOF
1764 if ac_fn_c_try_compile "$LINENO"; then :
1765 eval "$3=yes"
1766 else
1767 eval "$3=no"
1768 fi
1769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1770 fi
1771 eval ac_res=\$$3
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1773 $as_echo "$ac_res" >&6; }
1774 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1775
1776 } # ac_fn_c_check_header_compile
1777
1778 # ac_fn_c_try_link LINENO
1779 # -----------------------
1780 # Try to link conftest.$ac_ext, and return whether this succeeded.
1781 ac_fn_c_try_link ()
1782 {
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784 rm -f conftest.$ac_objext conftest$ac_exeext
1785 if { { ac_try="$ac_link"
1786 case "(($ac_try" in
1787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1788 *) ac_try_echo=$ac_try;;
1789 esac
1790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791 $as_echo "$ac_try_echo"; } >&5
1792 (eval "$ac_link") 2>conftest.err
1793 ac_status=$?
1794 if test -s conftest.err; then
1795 grep -v '^ *+' conftest.err >conftest.er1
1796 cat conftest.er1 >&5
1797 mv -f conftest.er1 conftest.err
1798 fi
1799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800 test $ac_status = 0; } && {
1801 test -z "$ac_c_werror_flag" ||
1802 test ! -s conftest.err
1803 } && test -s conftest$ac_exeext && {
1804 test "$cross_compiling" = yes ||
1805 $as_test_x conftest$ac_exeext
1806 }; then :
1807 ac_retval=0
1808 else
1809 $as_echo "$as_me: failed program was:" >&5
1810 sed 's/^/| /' conftest.$ac_ext >&5
1811
1812 ac_retval=1
1813 fi
1814 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1815 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1816 # interfere with the next link command; also delete a directory that is
1817 # left behind by Apple's compiler. We do this before executing the actions.
1818 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1819 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1820 return $ac_retval
1821
1822 } # ac_fn_c_try_link
1823
1824 # ac_fn_c_check_func LINENO FUNC VAR
1825 # ----------------------------------
1826 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1827 ac_fn_c_check_func ()
1828 {
1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1831 $as_echo_n "checking for $2... " >&6; }
1832 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1833 $as_echo_n "(cached) " >&6
1834 else
1835 if test x$gcc_no_link = xyes; then
1836 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1837 fi
1838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1839 /* end confdefs.h. */
1840 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1842 #define $2 innocuous_$2
1843
1844 /* System header to define __stub macros and hopefully few prototypes,
1845 which can conflict with char $2 (); below.
1846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1847 <limits.h> exists even on freestanding compilers. */
1848
1849 #ifdef __STDC__
1850 # include <limits.h>
1851 #else
1852 # include <assert.h>
1853 #endif
1854
1855 #undef $2
1856
1857 /* Override any GCC internal prototype to avoid an error.
1858 Use char because int might match the return type of a GCC
1859 builtin and then its argument prototype would still apply. */
1860 #ifdef __cplusplus
1861 extern "C"
1862 #endif
1863 char $2 ();
1864 /* The GNU C library defines this for functions which it implements
1865 to always fail with ENOSYS. Some functions are actually named
1866 something starting with __ and the normal name is an alias. */
1867 #if defined __stub_$2 || defined __stub___$2
1868 choke me
1869 #endif
1870
1871 int
1872 main ()
1873 {
1874 return $2 ();
1875 ;
1876 return 0;
1877 }
1878 _ACEOF
1879 if ac_fn_c_try_link "$LINENO"; then :
1880 eval "$3=yes"
1881 else
1882 eval "$3=no"
1883 fi
1884 rm -f core conftest.err conftest.$ac_objext \
1885 conftest$ac_exeext conftest.$ac_ext
1886 fi
1887 eval ac_res=\$$3
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889 $as_echo "$ac_res" >&6; }
1890 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1891
1892 } # ac_fn_c_check_func
1893
1894 # ac_fn_fc_try_compile LINENO
1895 # ---------------------------
1896 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1897 ac_fn_fc_try_compile ()
1898 {
1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900 rm -f conftest.$ac_objext
1901 if { { ac_try="$ac_compile"
1902 case "(($ac_try" in
1903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1904 *) ac_try_echo=$ac_try;;
1905 esac
1906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1907 $as_echo "$ac_try_echo"; } >&5
1908 (eval "$ac_compile") 2>conftest.err
1909 ac_status=$?
1910 if test -s conftest.err; then
1911 grep -v '^ *+' conftest.err >conftest.er1
1912 cat conftest.er1 >&5
1913 mv -f conftest.er1 conftest.err
1914 fi
1915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1916 test $ac_status = 0; } && {
1917 test -z "$ac_fc_werror_flag" ||
1918 test ! -s conftest.err
1919 } && test -s conftest.$ac_objext; then :
1920 ac_retval=0
1921 else
1922 $as_echo "$as_me: failed program was:" >&5
1923 sed 's/^/| /' conftest.$ac_ext >&5
1924
1925 ac_retval=1
1926 fi
1927 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1928 return $ac_retval
1929
1930 } # ac_fn_fc_try_compile
1931
1932 # ac_fn_fc_try_link LINENO
1933 # ------------------------
1934 # Try to link conftest.$ac_ext, and return whether this succeeded.
1935 ac_fn_fc_try_link ()
1936 {
1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938 rm -f conftest.$ac_objext conftest$ac_exeext
1939 if { { ac_try="$ac_link"
1940 case "(($ac_try" in
1941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1942 *) ac_try_echo=$ac_try;;
1943 esac
1944 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1945 $as_echo "$ac_try_echo"; } >&5
1946 (eval "$ac_link") 2>conftest.err
1947 ac_status=$?
1948 if test -s conftest.err; then
1949 grep -v '^ *+' conftest.err >conftest.er1
1950 cat conftest.er1 >&5
1951 mv -f conftest.er1 conftest.err
1952 fi
1953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1954 test $ac_status = 0; } && {
1955 test -z "$ac_fc_werror_flag" ||
1956 test ! -s conftest.err
1957 } && test -s conftest$ac_exeext && {
1958 test "$cross_compiling" = yes ||
1959 $as_test_x conftest$ac_exeext
1960 }; then :
1961 ac_retval=0
1962 else
1963 $as_echo "$as_me: failed program was:" >&5
1964 sed 's/^/| /' conftest.$ac_ext >&5
1965
1966 ac_retval=1
1967 fi
1968 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1969 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1970 # interfere with the next link command; also delete a directory that is
1971 # left behind by Apple's compiler. We do this before executing the actions.
1972 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1973 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1974 return $ac_retval
1975
1976 } # ac_fn_fc_try_link
1977
1978 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1979 # -------------------------------------------
1980 # Tests whether TYPE exists after having included INCLUDES, setting cache
1981 # variable VAR accordingly.
1982 ac_fn_c_check_type ()
1983 {
1984 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1986 $as_echo_n "checking for $2... " >&6; }
1987 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1988 $as_echo_n "(cached) " >&6
1989 else
1990 eval "$3=no"
1991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1992 /* end confdefs.h. */
1993 $4
1994 int
1995 main ()
1996 {
1997 if (sizeof ($2))
1998 return 0;
1999 ;
2000 return 0;
2001 }
2002 _ACEOF
2003 if ac_fn_c_try_compile "$LINENO"; then :
2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005 /* end confdefs.h. */
2006 $4
2007 int
2008 main ()
2009 {
2010 if (sizeof (($2)))
2011 return 0;
2012 ;
2013 return 0;
2014 }
2015 _ACEOF
2016 if ac_fn_c_try_compile "$LINENO"; then :
2017
2018 else
2019 eval "$3=yes"
2020 fi
2021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2022 fi
2023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2024 fi
2025 eval ac_res=\$$3
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2027 $as_echo "$ac_res" >&6; }
2028 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2029
2030 } # ac_fn_c_check_type
2031
2032 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2033 # --------------------------------------------
2034 # Tries to find the compile-time value of EXPR in a program that includes
2035 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2036 # computed
2037 ac_fn_c_compute_int ()
2038 {
2039 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2040 if test "$cross_compiling" = yes; then
2041 # Depending upon the size, compute the lo and hi bounds.
2042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2043 /* end confdefs.h. */
2044 $4
2045 int
2046 main ()
2047 {
2048 static int test_array [1 - 2 * !(($2) >= 0)];
2049 test_array [0] = 0
2050
2051 ;
2052 return 0;
2053 }
2054 _ACEOF
2055 if ac_fn_c_try_compile "$LINENO"; then :
2056 ac_lo=0 ac_mid=0
2057 while :; do
2058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2059 /* end confdefs.h. */
2060 $4
2061 int
2062 main ()
2063 {
2064 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2065 test_array [0] = 0
2066
2067 ;
2068 return 0;
2069 }
2070 _ACEOF
2071 if ac_fn_c_try_compile "$LINENO"; then :
2072 ac_hi=$ac_mid; break
2073 else
2074 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2075 if test $ac_lo -le $ac_mid; then
2076 ac_lo= ac_hi=
2077 break
2078 fi
2079 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2080 fi
2081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2082 done
2083 else
2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085 /* end confdefs.h. */
2086 $4
2087 int
2088 main ()
2089 {
2090 static int test_array [1 - 2 * !(($2) < 0)];
2091 test_array [0] = 0
2092
2093 ;
2094 return 0;
2095 }
2096 _ACEOF
2097 if ac_fn_c_try_compile "$LINENO"; then :
2098 ac_hi=-1 ac_mid=-1
2099 while :; do
2100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101 /* end confdefs.h. */
2102 $4
2103 int
2104 main ()
2105 {
2106 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2107 test_array [0] = 0
2108
2109 ;
2110 return 0;
2111 }
2112 _ACEOF
2113 if ac_fn_c_try_compile "$LINENO"; then :
2114 ac_lo=$ac_mid; break
2115 else
2116 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2117 if test $ac_mid -le $ac_hi; then
2118 ac_lo= ac_hi=
2119 break
2120 fi
2121 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2122 fi
2123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2124 done
2125 else
2126 ac_lo= ac_hi=
2127 fi
2128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2129 fi
2130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2131 # Binary search between lo and hi bounds.
2132 while test "x$ac_lo" != "x$ac_hi"; do
2133 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135 /* end confdefs.h. */
2136 $4
2137 int
2138 main ()
2139 {
2140 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2141 test_array [0] = 0
2142
2143 ;
2144 return 0;
2145 }
2146 _ACEOF
2147 if ac_fn_c_try_compile "$LINENO"; then :
2148 ac_hi=$ac_mid
2149 else
2150 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2151 fi
2152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2153 done
2154 case $ac_lo in #((
2155 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2156 '') ac_retval=1 ;;
2157 esac
2158 else
2159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2160 /* end confdefs.h. */
2161 $4
2162 static long int longval () { return $2; }
2163 static unsigned long int ulongval () { return $2; }
2164 #include <stdio.h>
2165 #include <stdlib.h>
2166 int
2167 main ()
2168 {
2169
2170 FILE *f = fopen ("conftest.val", "w");
2171 if (! f)
2172 return 1;
2173 if (($2) < 0)
2174 {
2175 long int i = longval ();
2176 if (i != ($2))
2177 return 1;
2178 fprintf (f, "%ld", i);
2179 }
2180 else
2181 {
2182 unsigned long int i = ulongval ();
2183 if (i != ($2))
2184 return 1;
2185 fprintf (f, "%lu", i);
2186 }
2187 /* Do not output a trailing newline, as this causes \r\n confusion
2188 on some platforms. */
2189 return ferror (f) || fclose (f) != 0;
2190
2191 ;
2192 return 0;
2193 }
2194 _ACEOF
2195 if ac_fn_c_try_run "$LINENO"; then :
2196 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2197 else
2198 ac_retval=1
2199 fi
2200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2201 conftest.$ac_objext conftest.beam conftest.$ac_ext
2202 rm -f conftest.val
2203
2204 fi
2205 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2206 return $ac_retval
2207
2208 } # ac_fn_c_compute_int
2209
2210 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2211 # ----------------------------------------------------
2212 # Tries to find if the field MEMBER exists in type AGGR, after including
2213 # INCLUDES, setting cache variable VAR accordingly.
2214 ac_fn_c_check_member ()
2215 {
2216 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2218 $as_echo_n "checking for $2.$3... " >&6; }
2219 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2220 $as_echo_n "(cached) " >&6
2221 else
2222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2223 /* end confdefs.h. */
2224 $5
2225 int
2226 main ()
2227 {
2228 static $2 ac_aggr;
2229 if (ac_aggr.$3)
2230 return 0;
2231 ;
2232 return 0;
2233 }
2234 _ACEOF
2235 if ac_fn_c_try_compile "$LINENO"; then :
2236 eval "$4=yes"
2237 else
2238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239 /* end confdefs.h. */
2240 $5
2241 int
2242 main ()
2243 {
2244 static $2 ac_aggr;
2245 if (sizeof ac_aggr.$3)
2246 return 0;
2247 ;
2248 return 0;
2249 }
2250 _ACEOF
2251 if ac_fn_c_try_compile "$LINENO"; then :
2252 eval "$4=yes"
2253 else
2254 eval "$4=no"
2255 fi
2256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2257 fi
2258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2259 fi
2260 eval ac_res=\$$4
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2262 $as_echo "$ac_res" >&6; }
2263 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2264
2265 } # ac_fn_c_check_member
2266 cat >config.log <<_ACEOF
2267 This file contains any messages produced by compilers while
2268 running configure, to aid debugging if configure makes a mistake.
2269
2270 It was created by GNU Fortran Runtime Library $as_me 0.3, which was
2271 generated by GNU Autoconf 2.64. Invocation command line was
2272
2273 $ $0 $@
2274
2275 _ACEOF
2276 exec 5>>config.log
2277 {
2278 cat <<_ASUNAME
2279 ## --------- ##
2280 ## Platform. ##
2281 ## --------- ##
2282
2283 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2284 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2285 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2286 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2287 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2288
2289 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2290 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2291
2292 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2293 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2294 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2295 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2296 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2297 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2298 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2299
2300 _ASUNAME
2301
2302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2303 for as_dir in $PATH
2304 do
2305 IFS=$as_save_IFS
2306 test -z "$as_dir" && as_dir=.
2307 $as_echo "PATH: $as_dir"
2308 done
2309 IFS=$as_save_IFS
2310
2311 } >&5
2312
2313 cat >&5 <<_ACEOF
2314
2315
2316 ## ----------- ##
2317 ## Core tests. ##
2318 ## ----------- ##
2319
2320 _ACEOF
2321
2322
2323 # Keep a trace of the command line.
2324 # Strip out --no-create and --no-recursion so they do not pile up.
2325 # Strip out --silent because we don't want to record it for future runs.
2326 # Also quote any args containing shell meta-characters.
2327 # Make two passes to allow for proper duplicate-argument suppression.
2328 ac_configure_args=
2329 ac_configure_args0=
2330 ac_configure_args1=
2331 ac_must_keep_next=false
2332 for ac_pass in 1 2
2333 do
2334 for ac_arg
2335 do
2336 case $ac_arg in
2337 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2338 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2339 | -silent | --silent | --silen | --sile | --sil)
2340 continue ;;
2341 *\'*)
2342 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2343 esac
2344 case $ac_pass in
2345 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2346 2)
2347 as_fn_append ac_configure_args1 " '$ac_arg'"
2348 if test $ac_must_keep_next = true; then
2349 ac_must_keep_next=false # Got value, back to normal.
2350 else
2351 case $ac_arg in
2352 *=* | --config-cache | -C | -disable-* | --disable-* \
2353 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2354 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2355 | -with-* | --with-* | -without-* | --without-* | --x)
2356 case "$ac_configure_args0 " in
2357 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2358 esac
2359 ;;
2360 -* ) ac_must_keep_next=true ;;
2361 esac
2362 fi
2363 as_fn_append ac_configure_args " '$ac_arg'"
2364 ;;
2365 esac
2366 done
2367 done
2368 { ac_configure_args0=; unset ac_configure_args0;}
2369 { ac_configure_args1=; unset ac_configure_args1;}
2370
2371 # When interrupted or exit'd, cleanup temporary files, and complete
2372 # config.log. We remove comments because anyway the quotes in there
2373 # would cause problems or look ugly.
2374 # WARNING: Use '\'' to represent an apostrophe within the trap.
2375 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2376 trap 'exit_status=$?
2377 # Save into config.log some information that might help in debugging.
2378 {
2379 echo
2380
2381 cat <<\_ASBOX
2382 ## ---------------- ##
2383 ## Cache variables. ##
2384 ## ---------------- ##
2385 _ASBOX
2386 echo
2387 # The following way of writing the cache mishandles newlines in values,
2388 (
2389 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2390 eval ac_val=\$$ac_var
2391 case $ac_val in #(
2392 *${as_nl}*)
2393 case $ac_var in #(
2394 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2395 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2396 esac
2397 case $ac_var in #(
2398 _ | IFS | as_nl) ;; #(
2399 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2400 *) { eval $ac_var=; unset $ac_var;} ;;
2401 esac ;;
2402 esac
2403 done
2404 (set) 2>&1 |
2405 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2406 *${as_nl}ac_space=\ *)
2407 sed -n \
2408 "s/'\''/'\''\\\\'\'''\''/g;
2409 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2410 ;; #(
2411 *)
2412 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2413 ;;
2414 esac |
2415 sort
2416 )
2417 echo
2418
2419 cat <<\_ASBOX
2420 ## ----------------- ##
2421 ## Output variables. ##
2422 ## ----------------- ##
2423 _ASBOX
2424 echo
2425 for ac_var in $ac_subst_vars
2426 do
2427 eval ac_val=\$$ac_var
2428 case $ac_val in
2429 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2430 esac
2431 $as_echo "$ac_var='\''$ac_val'\''"
2432 done | sort
2433 echo
2434
2435 if test -n "$ac_subst_files"; then
2436 cat <<\_ASBOX
2437 ## ------------------- ##
2438 ## File substitutions. ##
2439 ## ------------------- ##
2440 _ASBOX
2441 echo
2442 for ac_var in $ac_subst_files
2443 do
2444 eval ac_val=\$$ac_var
2445 case $ac_val in
2446 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2447 esac
2448 $as_echo "$ac_var='\''$ac_val'\''"
2449 done | sort
2450 echo
2451 fi
2452
2453 if test -s confdefs.h; then
2454 cat <<\_ASBOX
2455 ## ----------- ##
2456 ## confdefs.h. ##
2457 ## ----------- ##
2458 _ASBOX
2459 echo
2460 cat confdefs.h
2461 echo
2462 fi
2463 test "$ac_signal" != 0 &&
2464 $as_echo "$as_me: caught signal $ac_signal"
2465 $as_echo "$as_me: exit $exit_status"
2466 } >&5
2467 rm -f core *.core core.conftest.* &&
2468 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2469 exit $exit_status
2470 ' 0
2471 for ac_signal in 1 2 13 15; do
2472 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2473 done
2474 ac_signal=0
2475
2476 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2477 rm -f -r conftest* confdefs.h
2478
2479 $as_echo "/* confdefs.h */" > confdefs.h
2480
2481 # Predefined preprocessor variables.
2482
2483 cat >>confdefs.h <<_ACEOF
2484 #define PACKAGE_NAME "$PACKAGE_NAME"
2485 _ACEOF
2486
2487 cat >>confdefs.h <<_ACEOF
2488 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2489 _ACEOF
2490
2491 cat >>confdefs.h <<_ACEOF
2492 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2493 _ACEOF
2494
2495 cat >>confdefs.h <<_ACEOF
2496 #define PACKAGE_STRING "$PACKAGE_STRING"
2497 _ACEOF
2498
2499 cat >>confdefs.h <<_ACEOF
2500 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2501 _ACEOF
2502
2503 cat >>confdefs.h <<_ACEOF
2504 #define PACKAGE_URL "$PACKAGE_URL"
2505 _ACEOF
2506
2507
2508 # Let the site file select an alternate cache file if it wants to.
2509 # Prefer an explicitly selected file to automatically selected ones.
2510 ac_site_file1=NONE
2511 ac_site_file2=NONE
2512 if test -n "$CONFIG_SITE"; then
2513 ac_site_file1=$CONFIG_SITE
2514 elif test "x$prefix" != xNONE; then
2515 ac_site_file1=$prefix/share/config.site
2516 ac_site_file2=$prefix/etc/config.site
2517 else
2518 ac_site_file1=$ac_default_prefix/share/config.site
2519 ac_site_file2=$ac_default_prefix/etc/config.site
2520 fi
2521 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2522 do
2523 test "x$ac_site_file" = xNONE && continue
2524 if test -r "$ac_site_file"; then
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2526 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2527 sed 's/^/| /' "$ac_site_file" >&5
2528 . "$ac_site_file"
2529 fi
2530 done
2531
2532 if test -r "$cache_file"; then
2533 # Some versions of bash will fail to source /dev/null (special
2534 # files actually), so we avoid doing that.
2535 if test -f "$cache_file"; then
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2537 $as_echo "$as_me: loading cache $cache_file" >&6;}
2538 case $cache_file in
2539 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2540 *) . "./$cache_file";;
2541 esac
2542 fi
2543 else
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2545 $as_echo "$as_me: creating cache $cache_file" >&6;}
2546 >$cache_file
2547 fi
2548
2549 as_fn_append ac_header_list " unistd.h"
2550 as_fn_append ac_header_list " sys/random.h"
2551 as_fn_append ac_header_list " sys/time.h"
2552 as_fn_append ac_header_list " sys/times.h"
2553 as_fn_append ac_header_list " sys/resource.h"
2554 as_fn_append ac_header_list " sys/types.h"
2555 as_fn_append ac_header_list " sys/stat.h"
2556 as_fn_append ac_header_list " sys/uio.h"
2557 as_fn_append ac_header_list " sys/wait.h"
2558 as_fn_append ac_header_list " floatingpoint.h"
2559 as_fn_append ac_header_list " ieeefp.h"
2560 as_fn_append ac_header_list " fenv.h"
2561 as_fn_append ac_header_list " fptrap.h"
2562 as_fn_append ac_header_list " fpxcp.h"
2563 as_fn_append ac_header_list " pwd.h"
2564 as_fn_append ac_header_list " complex.h"
2565 as_fn_append ac_header_list " xlocale.h"
2566 as_fn_append ac_func_list " getrusage"
2567 as_fn_append ac_func_list " times"
2568 as_fn_append ac_func_list " mkstemp"
2569 as_fn_append ac_func_list " strtof"
2570 as_fn_append ac_func_list " strtold"
2571 as_fn_append ac_func_list " snprintf"
2572 as_fn_append ac_func_list " ftruncate"
2573 as_fn_append ac_func_list " chsize"
2574 as_fn_append ac_func_list " chdir"
2575 as_fn_append ac_func_list " getentropy"
2576 as_fn_append ac_func_list " getlogin"
2577 as_fn_append ac_func_list " gethostname"
2578 as_fn_append ac_func_list " kill"
2579 as_fn_append ac_func_list " link"
2580 as_fn_append ac_func_list " symlink"
2581 as_fn_append ac_func_list " sleep"
2582 as_fn_append ac_func_list " ttyname"
2583 as_fn_append ac_func_list " alarm"
2584 as_fn_append ac_func_list " access"
2585 as_fn_append ac_func_list " fork"
2586 as_fn_append ac_func_list " setmode"
2587 as_fn_append ac_func_list " fcntl"
2588 as_fn_append ac_func_list " writev"
2589 as_fn_append ac_func_list " gettimeofday"
2590 as_fn_append ac_func_list " stat"
2591 as_fn_append ac_func_list " fstat"
2592 as_fn_append ac_func_list " lstat"
2593 as_fn_append ac_func_list " getpwuid"
2594 as_fn_append ac_func_list " vsnprintf"
2595 as_fn_append ac_func_list " dup"
2596 as_fn_append ac_func_list " getcwd"
2597 as_fn_append ac_func_list " localtime_r"
2598 as_fn_append ac_func_list " gmtime_r"
2599 as_fn_append ac_func_list " getpwuid_r"
2600 as_fn_append ac_func_list " ttyname_r"
2601 as_fn_append ac_func_list " clock_gettime"
2602 as_fn_append ac_func_list " getgid"
2603 as_fn_append ac_func_list " getpid"
2604 as_fn_append ac_func_list " getuid"
2605 as_fn_append ac_func_list " geteuid"
2606 as_fn_append ac_func_list " umask"
2607 as_fn_append ac_func_list " getegid"
2608 as_fn_append ac_func_list " secure_getenv"
2609 as_fn_append ac_func_list " __secure_getenv"
2610 as_fn_append ac_func_list " mkostemp"
2611 as_fn_append ac_func_list " strnlen"
2612 as_fn_append ac_func_list " strndup"
2613 as_fn_append ac_func_list " newlocale"
2614 as_fn_append ac_func_list " freelocale"
2615 as_fn_append ac_func_list " uselocale"
2616 as_fn_append ac_func_list " strerror_l"
2617 as_fn_append ac_header_list " math.h"
2618 # Check that the precious variables saved in the cache have kept the same
2619 # value.
2620 ac_cache_corrupted=false
2621 for ac_var in $ac_precious_vars; do
2622 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2623 eval ac_new_set=\$ac_env_${ac_var}_set
2624 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2625 eval ac_new_val=\$ac_env_${ac_var}_value
2626 case $ac_old_set,$ac_new_set in
2627 set,)
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2629 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2630 ac_cache_corrupted=: ;;
2631 ,set)
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2633 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2634 ac_cache_corrupted=: ;;
2635 ,);;
2636 *)
2637 if test "x$ac_old_val" != "x$ac_new_val"; then
2638 # differences in whitespace do not lead to failure.
2639 ac_old_val_w=`echo x $ac_old_val`
2640 ac_new_val_w=`echo x $ac_new_val`
2641 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2643 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2644 ac_cache_corrupted=:
2645 else
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2647 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2648 eval $ac_var=\$ac_old_val
2649 fi
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2651 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2653 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2654 fi;;
2655 esac
2656 # Pass precious variables to config.status.
2657 if test "$ac_new_set" = set; then
2658 case $ac_new_val in
2659 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2660 *) ac_arg=$ac_var=$ac_new_val ;;
2661 esac
2662 case " $ac_configure_args " in
2663 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2664 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2665 esac
2666 fi
2667 done
2668 if $ac_cache_corrupted; then
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2672 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2673 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2674 fi
2675 ## -------------------- ##
2676 ## Main body of script. ##
2677 ## -------------------- ##
2678
2679 ac_ext=c
2680 ac_cpp='$CPP $CPPFLAGS'
2681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2684
2685
2686
2687
2688
2689 ac_config_headers="$ac_config_headers config.h"
2690
2691 ac_aux_dir=
2692 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2693 for ac_t in install-sh install.sh shtool; do
2694 if test -f "$ac_dir/$ac_t"; then
2695 ac_aux_dir=$ac_dir
2696 ac_install_sh="$ac_aux_dir/$ac_t -c"
2697 break 2
2698 fi
2699 done
2700 done
2701 if test -z "$ac_aux_dir"; then
2702 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2703 fi
2704
2705 # These three variables are undocumented and unsupported,
2706 # and are intended to be withdrawn in a future Autoconf release.
2707 # They can cause serious problems if a builder's source tree is in a directory
2708 # whose full name contains unusual characters.
2709 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2710 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2711 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2712
2713
2714 # Make sure we can run config.sub.
2715 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2716 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2717
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2719 $as_echo_n "checking build system type... " >&6; }
2720 if test "${ac_cv_build+set}" = set; then :
2721 $as_echo_n "(cached) " >&6
2722 else
2723 ac_build_alias=$build_alias
2724 test "x$ac_build_alias" = x &&
2725 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2726 test "x$ac_build_alias" = x &&
2727 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2728 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2729 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2730
2731 fi
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2733 $as_echo "$ac_cv_build" >&6; }
2734 case $ac_cv_build in
2735 *-*-*) ;;
2736 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2737 esac
2738 build=$ac_cv_build
2739 ac_save_IFS=$IFS; IFS='-'
2740 set x $ac_cv_build
2741 shift
2742 build_cpu=$1
2743 build_vendor=$2
2744 shift; shift
2745 # Remember, the first character of IFS is used to create $*,
2746 # except with old shells:
2747 build_os=$*
2748 IFS=$ac_save_IFS
2749 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2750
2751
2752 case ${build_alias} in
2753 "") build_noncanonical=${build} ;;
2754 *) build_noncanonical=${build_alias} ;;
2755 esac
2756
2757 case ${host_alias} in
2758 "") host_noncanonical=${build_noncanonical} ;;
2759 *) host_noncanonical=${host_alias} ;;
2760 esac
2761
2762 case ${target_alias} in
2763 "") target_noncanonical=${host_noncanonical} ;;
2764 *) target_noncanonical=${target_alias} ;;
2765 esac
2766
2767
2768 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2769 # have matching libraries, they should use host libraries: Makefile.tpl
2770 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2771 # However, they still use the build modules, because the corresponding
2772 # host modules (e.g. bison) are only built for the host when bootstrap
2773 # finishes. So:
2774 # - build_subdir is where we find build modules, and never changes.
2775 # - build_libsubdir is where we find build libraries, and can be overridden.
2776
2777 # Prefix 'build-' so this never conflicts with target_subdir.
2778 build_subdir="build-${build_noncanonical}"
2779
2780 # Check whether --with-build-libsubdir was given.
2781 if test "${with_build_libsubdir+set}" = set; then :
2782 withval=$with_build_libsubdir; build_libsubdir="$withval"
2783 else
2784 build_libsubdir="$build_subdir"
2785 fi
2786
2787 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2788 if ( test $srcdir = . && test -d gcc ) \
2789 || test -d $srcdir/../host-${host_noncanonical}; then
2790 host_subdir="host-${host_noncanonical}"
2791 else
2792 host_subdir=.
2793 fi
2794 # No prefix.
2795 target_subdir=${target_noncanonical}
2796
2797
2798 # -------
2799 # Options
2800 # -------
2801
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2803 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2804 # Check whether --enable-version-specific-runtime-libs was given.
2805 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2806 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2807 yes) version_specific_libs=yes ;;
2808 no) version_specific_libs=no ;;
2809 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2810 esac
2811 else
2812 version_specific_libs=no
2813 fi
2814
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2816 $as_echo "$version_specific_libs" >&6; }
2817
2818 # Build with intermodule optimisations
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-intermodule" >&5
2820 $as_echo_n "checking for --enable-intermodule... " >&6; }
2821 # Check whether --enable-intermodule was given.
2822 if test "${enable_intermodule+set}" = set; then :
2823 enableval=$enable_intermodule; case "$enable_intermodule" in
2824 yes) onestep="-onestep";;
2825 *) onestep="";;
2826 esac
2827 else
2828 onestep=""
2829 fi
2830
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_intermodule" >&5
2832 $as_echo "$enable_intermodule" >&6; }
2833 if test x$onestep = x-onestep; then
2834 onestep_TRUE=
2835 onestep_FALSE='#'
2836 else
2837 onestep_TRUE='#'
2838 onestep_FALSE=
2839 fi
2840
2841
2842
2843 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2844 #
2845 # You will slowly go insane if you do not grok the following fact: when
2846 # building this library, the top-level /target/ becomes the library's /host/.
2847 #
2848 # configure then causes --target to default to --host, exactly like any
2849 # other package using autoconf. Therefore, 'target' and 'host' will
2850 # always be the same. This makes sense both for native and cross compilers
2851 # just think about it for a little while. :-)
2852 #
2853 # Also, if this library is being configured as part of a cross compiler, the
2854 # top-level configure script will pass the "real" host as $with_cross_host.
2855 #
2856 # Do not delete or change the following two lines. For why, see
2857 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2859 $as_echo_n "checking host system type... " >&6; }
2860 if test "${ac_cv_host+set}" = set; then :
2861 $as_echo_n "(cached) " >&6
2862 else
2863 if test "x$host_alias" = x; then
2864 ac_cv_host=$ac_cv_build
2865 else
2866 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2867 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2868 fi
2869
2870 fi
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2872 $as_echo "$ac_cv_host" >&6; }
2873 case $ac_cv_host in
2874 *-*-*) ;;
2875 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2876 esac
2877 host=$ac_cv_host
2878 ac_save_IFS=$IFS; IFS='-'
2879 set x $ac_cv_host
2880 shift
2881 host_cpu=$1
2882 host_vendor=$2
2883 shift; shift
2884 # Remember, the first character of IFS is used to create $*,
2885 # except with old shells:
2886 host_os=$*
2887 IFS=$ac_save_IFS
2888 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2889
2890
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2892 $as_echo_n "checking target system type... " >&6; }
2893 if test "${ac_cv_target+set}" = set; then :
2894 $as_echo_n "(cached) " >&6
2895 else
2896 if test "x$target_alias" = x; then
2897 ac_cv_target=$ac_cv_host
2898 else
2899 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2900 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2901 fi
2902
2903 fi
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2905 $as_echo "$ac_cv_target" >&6; }
2906 case $ac_cv_target in
2907 *-*-*) ;;
2908 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2909 esac
2910 target=$ac_cv_target
2911 ac_save_IFS=$IFS; IFS='-'
2912 set x $ac_cv_target
2913 shift
2914 target_cpu=$1
2915 target_vendor=$2
2916 shift; shift
2917 # Remember, the first character of IFS is used to create $*,
2918 # except with old shells:
2919 target_os=$*
2920 IFS=$ac_save_IFS
2921 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2922
2923
2924 # The aliases save the names the user supplied, while $host etc.
2925 # will get canonicalized.
2926 test -n "$target_alias" &&
2927 test "$program_prefix$program_suffix$program_transform_name" = \
2928 NONENONEs,x,x, &&
2929 program_prefix=${target_alias}-
2930
2931
2932
2933
2934 target_alias=${target_alias-$host_alias}
2935
2936
2937 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2938 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2939 # 1.9.6: minimum required version
2940 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2941 # of other PACKAGE_* variables will, however, and there's nothing
2942 # we can do about that; they come from AC_INIT).
2943 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2944 # file in the top srcdir, etc, etc), so stop complaining.
2945 # no-dist: we don't want 'dist' and related rules.
2946 # -Wall: turns on all automake warnings...
2947 # -Wno-portability: ...except this one, since GNU make is required.
2948 am__api_version='1.11'
2949
2950 # Find a good install program. We prefer a C program (faster),
2951 # so one script is as good as another. But avoid the broken or
2952 # incompatible versions:
2953 # SysV /etc/install, /usr/sbin/install
2954 # SunOS /usr/etc/install
2955 # IRIX /sbin/install
2956 # AIX /bin/install
2957 # AmigaOS /C/install, which installs bootblocks on floppy discs
2958 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2959 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2960 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2961 # OS/2's system install, which has a completely different semantic
2962 # ./install, which can be erroneously created by make from ./install.sh.
2963 # Reject install programs that cannot install multiple files.
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2965 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2966 if test -z "$INSTALL"; then
2967 if test "${ac_cv_path_install+set}" = set; then :
2968 $as_echo_n "(cached) " >&6
2969 else
2970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2971 for as_dir in $PATH
2972 do
2973 IFS=$as_save_IFS
2974 test -z "$as_dir" && as_dir=.
2975 # Account for people who put trailing slashes in PATH elements.
2976 case $as_dir/ in #((
2977 ./ | .// | /[cC]/* | \
2978 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2979 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2980 /usr/ucb/* ) ;;
2981 *)
2982 # OSF1 and SCO ODT 3.0 have their own names for install.
2983 # Don't use installbsd from OSF since it installs stuff as root
2984 # by default.
2985 for ac_prog in ginstall scoinst install; do
2986 for ac_exec_ext in '' $ac_executable_extensions; do
2987 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2988 if test $ac_prog = install &&
2989 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2990 # AIX install. It has an incompatible calling convention.
2991 :
2992 elif test $ac_prog = install &&
2993 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2994 # program-specific install script used by HP pwplus--don't use.
2995 :
2996 else
2997 rm -rf conftest.one conftest.two conftest.dir
2998 echo one > conftest.one
2999 echo two > conftest.two
3000 mkdir conftest.dir
3001 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3002 test -s conftest.one && test -s conftest.two &&
3003 test -s conftest.dir/conftest.one &&
3004 test -s conftest.dir/conftest.two
3005 then
3006 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3007 break 3
3008 fi
3009 fi
3010 fi
3011 done
3012 done
3013 ;;
3014 esac
3015
3016 done
3017 IFS=$as_save_IFS
3018
3019 rm -rf conftest.one conftest.two conftest.dir
3020
3021 fi
3022 if test "${ac_cv_path_install+set}" = set; then
3023 INSTALL=$ac_cv_path_install
3024 else
3025 # As a last resort, use the slow shell script. Don't cache a
3026 # value for INSTALL within a source directory, because that will
3027 # break other packages using the cache if that directory is
3028 # removed, or if the value is a relative name.
3029 INSTALL=$ac_install_sh
3030 fi
3031 fi
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3033 $as_echo "$INSTALL" >&6; }
3034
3035 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3036 # It thinks the first close brace ends the variable substitution.
3037 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3038
3039 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3040
3041 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3042
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3044 $as_echo_n "checking whether build environment is sane... " >&6; }
3045 # Just in case
3046 sleep 1
3047 echo timestamp > conftest.file
3048 # Reject unsafe characters in $srcdir or the absolute working directory
3049 # name. Accept space and tab only in the latter.
3050 am_lf='
3051 '
3052 case `pwd` in
3053 *[\\\"\#\$\&\'\`$am_lf]*)
3054 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3055 esac
3056 case $srcdir in
3057 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3058 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3059 esac
3060
3061 # Do `set' in a subshell so we don't clobber the current shell's
3062 # arguments. Must try -L first in case configure is actually a
3063 # symlink; some systems play weird games with the mod time of symlinks
3064 # (eg FreeBSD returns the mod time of the symlink's containing
3065 # directory).
3066 if (
3067 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3068 if test "$*" = "X"; then
3069 # -L didn't work.
3070 set X `ls -t "$srcdir/configure" conftest.file`
3071 fi
3072 rm -f conftest.file
3073 if test "$*" != "X $srcdir/configure conftest.file" \
3074 && test "$*" != "X conftest.file $srcdir/configure"; then
3075
3076 # If neither matched, then we have a broken ls. This can happen
3077 # if, for instance, CONFIG_SHELL is bash and it inherits a
3078 # broken ls alias from the environment. This has actually
3079 # happened. Such a system could not be considered "sane".
3080 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3081 alias in your environment" "$LINENO" 5
3082 fi
3083
3084 test "$2" = conftest.file
3085 )
3086 then
3087 # Ok.
3088 :
3089 else
3090 as_fn_error "newly created file is older than distributed files!
3091 Check your system clock" "$LINENO" 5
3092 fi
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3094 $as_echo "yes" >&6; }
3095 test "$program_prefix" != NONE &&
3096 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3097 # Use a double $ so make ignores it.
3098 test "$program_suffix" != NONE &&
3099 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3100 # Double any \ or $.
3101 # By default was `s,x,x', remove it if useless.
3102 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3103 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3104
3105 # expand $ac_aux_dir to an absolute path
3106 am_aux_dir=`cd $ac_aux_dir && pwd`
3107
3108 if test x"${MISSING+set}" != xset; then
3109 case $am_aux_dir in
3110 *\ * | *\ *)
3111 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3112 *)
3113 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3114 esac
3115 fi
3116 # Use eval to expand $SHELL
3117 if eval "$MISSING --run true"; then
3118 am_missing_run="$MISSING --run "
3119 else
3120 am_missing_run=
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3122 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3123 fi
3124
3125 if test x"${install_sh}" != xset; then
3126 case $am_aux_dir in
3127 *\ * | *\ *)
3128 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3129 *)
3130 install_sh="\${SHELL} $am_aux_dir/install-sh"
3131 esac
3132 fi
3133
3134 # Installed binaries are usually stripped using `strip' when the user
3135 # run `make install-strip'. However `strip' might not be the right
3136 # tool to use in cross-compilation environments, therefore Automake
3137 # will honor the `STRIP' environment variable to overrule this program.
3138 if test "$cross_compiling" != no; then
3139 if test -n "$ac_tool_prefix"; then
3140 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3141 set dummy ${ac_tool_prefix}strip; ac_word=$2
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3143 $as_echo_n "checking for $ac_word... " >&6; }
3144 if test "${ac_cv_prog_STRIP+set}" = set; then :
3145 $as_echo_n "(cached) " >&6
3146 else
3147 if test -n "$STRIP"; then
3148 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3149 else
3150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151 for as_dir in $PATH
3152 do
3153 IFS=$as_save_IFS
3154 test -z "$as_dir" && as_dir=.
3155 for ac_exec_ext in '' $ac_executable_extensions; do
3156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3157 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3159 break 2
3160 fi
3161 done
3162 done
3163 IFS=$as_save_IFS
3164
3165 fi
3166 fi
3167 STRIP=$ac_cv_prog_STRIP
3168 if test -n "$STRIP"; then
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3170 $as_echo "$STRIP" >&6; }
3171 else
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3173 $as_echo "no" >&6; }
3174 fi
3175
3176
3177 fi
3178 if test -z "$ac_cv_prog_STRIP"; then
3179 ac_ct_STRIP=$STRIP
3180 # Extract the first word of "strip", so it can be a program name with args.
3181 set dummy strip; ac_word=$2
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3183 $as_echo_n "checking for $ac_word... " >&6; }
3184 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3185 $as_echo_n "(cached) " >&6
3186 else
3187 if test -n "$ac_ct_STRIP"; then
3188 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3189 else
3190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191 for as_dir in $PATH
3192 do
3193 IFS=$as_save_IFS
3194 test -z "$as_dir" && as_dir=.
3195 for ac_exec_ext in '' $ac_executable_extensions; do
3196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3197 ac_cv_prog_ac_ct_STRIP="strip"
3198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3199 break 2
3200 fi
3201 done
3202 done
3203 IFS=$as_save_IFS
3204
3205 fi
3206 fi
3207 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3208 if test -n "$ac_ct_STRIP"; then
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3210 $as_echo "$ac_ct_STRIP" >&6; }
3211 else
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3213 $as_echo "no" >&6; }
3214 fi
3215
3216 if test "x$ac_ct_STRIP" = x; then
3217 STRIP=":"
3218 else
3219 case $cross_compiling:$ac_tool_warned in
3220 yes:)
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3223 ac_tool_warned=yes ;;
3224 esac
3225 STRIP=$ac_ct_STRIP
3226 fi
3227 else
3228 STRIP="$ac_cv_prog_STRIP"
3229 fi
3230
3231 fi
3232 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3233
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3235 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3236 if test -z "$MKDIR_P"; then
3237 if test "${ac_cv_path_mkdir+set}" = set; then :
3238 $as_echo_n "(cached) " >&6
3239 else
3240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3241 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3242 do
3243 IFS=$as_save_IFS
3244 test -z "$as_dir" && as_dir=.
3245 for ac_prog in mkdir gmkdir; do
3246 for ac_exec_ext in '' $ac_executable_extensions; do
3247 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3248 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3249 'mkdir (GNU coreutils) '* | \
3250 'mkdir (coreutils) '* | \
3251 'mkdir (fileutils) '4.1*)
3252 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3253 break 3;;
3254 esac
3255 done
3256 done
3257 done
3258 IFS=$as_save_IFS
3259
3260 fi
3261
3262 if test "${ac_cv_path_mkdir+set}" = set; then
3263 MKDIR_P="$ac_cv_path_mkdir -p"
3264 else
3265 # As a last resort, use the slow shell script. Don't cache a
3266 # value for MKDIR_P within a source directory, because that will
3267 # break other packages using the cache if that directory is
3268 # removed, or if the value is a relative name.
3269 test -d ./--version && rmdir ./--version
3270 MKDIR_P="$ac_install_sh -d"
3271 fi
3272 fi
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3274 $as_echo "$MKDIR_P" >&6; }
3275
3276 mkdir_p="$MKDIR_P"
3277 case $mkdir_p in
3278 [\\/$]* | ?:[\\/]*) ;;
3279 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3280 esac
3281
3282 for ac_prog in gawk mawk nawk awk
3283 do
3284 # Extract the first word of "$ac_prog", so it can be a program name with args.
3285 set dummy $ac_prog; ac_word=$2
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3287 $as_echo_n "checking for $ac_word... " >&6; }
3288 if test "${ac_cv_prog_AWK+set}" = set; then :
3289 $as_echo_n "(cached) " >&6
3290 else
3291 if test -n "$AWK"; then
3292 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3293 else
3294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295 for as_dir in $PATH
3296 do
3297 IFS=$as_save_IFS
3298 test -z "$as_dir" && as_dir=.
3299 for ac_exec_ext in '' $ac_executable_extensions; do
3300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3301 ac_cv_prog_AWK="$ac_prog"
3302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3303 break 2
3304 fi
3305 done
3306 done
3307 IFS=$as_save_IFS
3308
3309 fi
3310 fi
3311 AWK=$ac_cv_prog_AWK
3312 if test -n "$AWK"; then
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3314 $as_echo "$AWK" >&6; }
3315 else
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3317 $as_echo "no" >&6; }
3318 fi
3319
3320
3321 test -n "$AWK" && break
3322 done
3323
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3325 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3326 set x ${MAKE-make}
3327 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3328 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3329 $as_echo_n "(cached) " >&6
3330 else
3331 cat >conftest.make <<\_ACEOF
3332 SHELL = /bin/sh
3333 all:
3334 @echo '@@@%%%=$(MAKE)=@@@%%%'
3335 _ACEOF
3336 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3337 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3338 *@@@%%%=?*=@@@%%%*)
3339 eval ac_cv_prog_make_${ac_make}_set=yes;;
3340 *)
3341 eval ac_cv_prog_make_${ac_make}_set=no;;
3342 esac
3343 rm -f conftest.make
3344 fi
3345 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3347 $as_echo "yes" >&6; }
3348 SET_MAKE=
3349 else
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3351 $as_echo "no" >&6; }
3352 SET_MAKE="MAKE=${MAKE-make}"
3353 fi
3354
3355 rm -rf .tst 2>/dev/null
3356 mkdir .tst 2>/dev/null
3357 if test -d .tst; then
3358 am__leading_dot=.
3359 else
3360 am__leading_dot=_
3361 fi
3362 rmdir .tst 2>/dev/null
3363
3364 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3365 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3366 # is not polluted with repeated "-I."
3367 am__isrc=' -I$(srcdir)'
3368 # test to see if srcdir already configured
3369 if test -f $srcdir/config.status; then
3370 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3371 fi
3372 fi
3373
3374 # test whether we have cygpath
3375 if test -z "$CYGPATH_W"; then
3376 if (cygpath --version) >/dev/null 2>/dev/null; then
3377 CYGPATH_W='cygpath -w'
3378 else
3379 CYGPATH_W=echo
3380 fi
3381 fi
3382
3383
3384 # Define the identity of the package.
3385 PACKAGE='libgfortran'
3386 VERSION='0.3'
3387
3388
3389 # Some tools Automake needs.
3390
3391 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3392
3393
3394 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3395
3396
3397 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3398
3399
3400 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3401
3402
3403 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3404
3405 # We need awk for the "check" target. The system "awk" is bad on
3406 # some platforms.
3407 # Always define AMTAR for backward compatibility. Yes, it's still used
3408 # in the wild :-( We should find a proper way to deprecate it ...
3409 AMTAR='$${TAR-tar}'
3410
3411 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3412
3413
3414
3415
3416
3417
3418
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3420 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3421 # Check whether --enable-maintainer-mode was given.
3422 if test "${enable_maintainer_mode+set}" = set; then :
3423 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3424 else
3425 USE_MAINTAINER_MODE=no
3426 fi
3427
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3429 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3430 if test $USE_MAINTAINER_MODE = yes; then
3431 MAINTAINER_MODE_TRUE=
3432 MAINTAINER_MODE_FALSE='#'
3433 else
3434 MAINTAINER_MODE_TRUE='#'
3435 MAINTAINER_MODE_FALSE=
3436 fi
3437
3438 MAINT=$MAINTAINER_MODE_TRUE
3439
3440
3441 # Default to --enable-multilib
3442 # Check whether --enable-multilib was given.
3443 if test "${enable_multilib+set}" = set; then :
3444 enableval=$enable_multilib; case "$enableval" in
3445 yes) multilib=yes ;;
3446 no) multilib=no ;;
3447 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3448 esac
3449 else
3450 multilib=yes
3451 fi
3452
3453
3454 # We may get other options which we leave undocumented:
3455 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3456 # See config-ml.in if you want the gory details.
3457
3458 if test "$srcdir" = "."; then
3459 if test "$with_target_subdir" != "."; then
3460 multi_basedir="$srcdir/$with_multisrctop../.."
3461 else
3462 multi_basedir="$srcdir/$with_multisrctop.."
3463 fi
3464 else
3465 multi_basedir="$srcdir/.."
3466 fi
3467
3468
3469 # Even if the default multilib is not a cross compilation,
3470 # it may be that some of the other multilibs are.
3471 if test $cross_compiling = no && test $multilib = yes \
3472 && test "x${with_multisubdir}" != x ; then
3473 cross_compiling=maybe
3474 fi
3475
3476 ac_config_commands="$ac_config_commands default-1"
3477
3478
3479 # Handy for debugging:
3480 #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
3481
3482 # Are we being configured with some form of cross compiler?
3483 # NB: We don't actually need to know this just now, but when, say, a test
3484 # suite is included, we'll have to know.
3485 if test "$build" != "$host"; then
3486 LIBGFOR_IS_NATIVE=false
3487
3488 else
3489 LIBGFOR_IS_NATIVE=true
3490 fi
3491
3492 DEPDIR="${am__leading_dot}deps"
3493
3494 ac_config_commands="$ac_config_commands depfiles"
3495
3496
3497 am_make=${MAKE-make}
3498 cat > confinc << 'END'
3499 am__doit:
3500 @echo this is the am__doit target
3501 .PHONY: am__doit
3502 END
3503 # If we don't find an include directive, just comment out the code.
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3505 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3506 am__include="#"
3507 am__quote=
3508 _am_result=none
3509 # First try GNU make style include.
3510 echo "include confinc" > confmf
3511 # Ignore all kinds of additional output from `make'.
3512 case `$am_make -s -f confmf 2> /dev/null` in #(
3513 *the\ am__doit\ target*)
3514 am__include=include
3515 am__quote=
3516 _am_result=GNU
3517 ;;
3518 esac
3519 # Now try BSD make style include.
3520 if test "$am__include" = "#"; then
3521 echo '.include "confinc"' > confmf
3522 case `$am_make -s -f confmf 2> /dev/null` in #(
3523 *the\ am__doit\ target*)
3524 am__include=.include
3525 am__quote="\""
3526 _am_result=BSD
3527 ;;
3528 esac
3529 fi
3530
3531
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3533 $as_echo "$_am_result" >&6; }
3534 rm -f confinc confmf
3535
3536 # Check whether --enable-dependency-tracking was given.
3537 if test "${enable_dependency_tracking+set}" = set; then :
3538 enableval=$enable_dependency_tracking;
3539 fi
3540
3541 if test "x$enable_dependency_tracking" != xno; then
3542 am_depcomp="$ac_aux_dir/depcomp"
3543 AMDEPBACKSLASH='\'
3544 am__nodep='_no'
3545 fi
3546 if test "x$enable_dependency_tracking" != xno; then
3547 AMDEP_TRUE=
3548 AMDEP_FALSE='#'
3549 else
3550 AMDEP_TRUE='#'
3551 AMDEP_FALSE=
3552 fi
3553
3554
3555 ac_ext=c
3556 ac_cpp='$CPP $CPPFLAGS'
3557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3560 if test -n "$ac_tool_prefix"; then
3561 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3562 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3564 $as_echo_n "checking for $ac_word... " >&6; }
3565 if test "${ac_cv_prog_CC+set}" = set; then :
3566 $as_echo_n "(cached) " >&6
3567 else
3568 if test -n "$CC"; then
3569 ac_cv_prog_CC="$CC" # Let the user override the test.
3570 else
3571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3572 for as_dir in $PATH
3573 do
3574 IFS=$as_save_IFS
3575 test -z "$as_dir" && as_dir=.
3576 for ac_exec_ext in '' $ac_executable_extensions; do
3577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3578 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3580 break 2
3581 fi
3582 done
3583 done
3584 IFS=$as_save_IFS
3585
3586 fi
3587 fi
3588 CC=$ac_cv_prog_CC
3589 if test -n "$CC"; then
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3591 $as_echo "$CC" >&6; }
3592 else
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3594 $as_echo "no" >&6; }
3595 fi
3596
3597
3598 fi
3599 if test -z "$ac_cv_prog_CC"; then
3600 ac_ct_CC=$CC
3601 # Extract the first word of "gcc", so it can be a program name with args.
3602 set dummy gcc; ac_word=$2
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3604 $as_echo_n "checking for $ac_word... " >&6; }
3605 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3606 $as_echo_n "(cached) " >&6
3607 else
3608 if test -n "$ac_ct_CC"; then
3609 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3610 else
3611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3612 for as_dir in $PATH
3613 do
3614 IFS=$as_save_IFS
3615 test -z "$as_dir" && as_dir=.
3616 for ac_exec_ext in '' $ac_executable_extensions; do
3617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3618 ac_cv_prog_ac_ct_CC="gcc"
3619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3620 break 2
3621 fi
3622 done
3623 done
3624 IFS=$as_save_IFS
3625
3626 fi
3627 fi
3628 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3629 if test -n "$ac_ct_CC"; then
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3631 $as_echo "$ac_ct_CC" >&6; }
3632 else
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3634 $as_echo "no" >&6; }
3635 fi
3636
3637 if test "x$ac_ct_CC" = x; then
3638 CC=""
3639 else
3640 case $cross_compiling:$ac_tool_warned in
3641 yes:)
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3644 ac_tool_warned=yes ;;
3645 esac
3646 CC=$ac_ct_CC
3647 fi
3648 else
3649 CC="$ac_cv_prog_CC"
3650 fi
3651
3652 if test -z "$CC"; then
3653 if test -n "$ac_tool_prefix"; then
3654 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3655 set dummy ${ac_tool_prefix}cc; ac_word=$2
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3657 $as_echo_n "checking for $ac_word... " >&6; }
3658 if test "${ac_cv_prog_CC+set}" = set; then :
3659 $as_echo_n "(cached) " >&6
3660 else
3661 if test -n "$CC"; then
3662 ac_cv_prog_CC="$CC" # Let the user override the test.
3663 else
3664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3665 for as_dir in $PATH
3666 do
3667 IFS=$as_save_IFS
3668 test -z "$as_dir" && as_dir=.
3669 for ac_exec_ext in '' $ac_executable_extensions; do
3670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3671 ac_cv_prog_CC="${ac_tool_prefix}cc"
3672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3673 break 2
3674 fi
3675 done
3676 done
3677 IFS=$as_save_IFS
3678
3679 fi
3680 fi
3681 CC=$ac_cv_prog_CC
3682 if test -n "$CC"; then
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3684 $as_echo "$CC" >&6; }
3685 else
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3687 $as_echo "no" >&6; }
3688 fi
3689
3690
3691 fi
3692 fi
3693 if test -z "$CC"; then
3694 # Extract the first word of "cc", so it can be a program name with args.
3695 set dummy cc; ac_word=$2
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3697 $as_echo_n "checking for $ac_word... " >&6; }
3698 if test "${ac_cv_prog_CC+set}" = set; then :
3699 $as_echo_n "(cached) " >&6
3700 else
3701 if test -n "$CC"; then
3702 ac_cv_prog_CC="$CC" # Let the user override the test.
3703 else
3704 ac_prog_rejected=no
3705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706 for as_dir in $PATH
3707 do
3708 IFS=$as_save_IFS
3709 test -z "$as_dir" && as_dir=.
3710 for ac_exec_ext in '' $ac_executable_extensions; do
3711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3712 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3713 ac_prog_rejected=yes
3714 continue
3715 fi
3716 ac_cv_prog_CC="cc"
3717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3718 break 2
3719 fi
3720 done
3721 done
3722 IFS=$as_save_IFS
3723
3724 if test $ac_prog_rejected = yes; then
3725 # We found a bogon in the path, so make sure we never use it.
3726 set dummy $ac_cv_prog_CC
3727 shift
3728 if test $# != 0; then
3729 # We chose a different compiler from the bogus one.
3730 # However, it has the same basename, so the bogon will be chosen
3731 # first if we set CC to just the basename; use the full file name.
3732 shift
3733 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3734 fi
3735 fi
3736 fi
3737 fi
3738 CC=$ac_cv_prog_CC
3739 if test -n "$CC"; then
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3741 $as_echo "$CC" >&6; }
3742 else
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3744 $as_echo "no" >&6; }
3745 fi
3746
3747
3748 fi
3749 if test -z "$CC"; then
3750 if test -n "$ac_tool_prefix"; then
3751 for ac_prog in cl.exe
3752 do
3753 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3754 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3756 $as_echo_n "checking for $ac_word... " >&6; }
3757 if test "${ac_cv_prog_CC+set}" = set; then :
3758 $as_echo_n "(cached) " >&6
3759 else
3760 if test -n "$CC"; then
3761 ac_cv_prog_CC="$CC" # Let the user override the test.
3762 else
3763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3764 for as_dir in $PATH
3765 do
3766 IFS=$as_save_IFS
3767 test -z "$as_dir" && as_dir=.
3768 for ac_exec_ext in '' $ac_executable_extensions; do
3769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3770 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3772 break 2
3773 fi
3774 done
3775 done
3776 IFS=$as_save_IFS
3777
3778 fi
3779 fi
3780 CC=$ac_cv_prog_CC
3781 if test -n "$CC"; then
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3783 $as_echo "$CC" >&6; }
3784 else
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3786 $as_echo "no" >&6; }
3787 fi
3788
3789
3790 test -n "$CC" && break
3791 done
3792 fi
3793 if test -z "$CC"; then
3794 ac_ct_CC=$CC
3795 for ac_prog in cl.exe
3796 do
3797 # Extract the first word of "$ac_prog", so it can be a program name with args.
3798 set dummy $ac_prog; ac_word=$2
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3800 $as_echo_n "checking for $ac_word... " >&6; }
3801 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3802 $as_echo_n "(cached) " >&6
3803 else
3804 if test -n "$ac_ct_CC"; then
3805 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3806 else
3807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808 for as_dir in $PATH
3809 do
3810 IFS=$as_save_IFS
3811 test -z "$as_dir" && as_dir=.
3812 for ac_exec_ext in '' $ac_executable_extensions; do
3813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3814 ac_cv_prog_ac_ct_CC="$ac_prog"
3815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3816 break 2
3817 fi
3818 done
3819 done
3820 IFS=$as_save_IFS
3821
3822 fi
3823 fi
3824 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3825 if test -n "$ac_ct_CC"; then
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3827 $as_echo "$ac_ct_CC" >&6; }
3828 else
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3830 $as_echo "no" >&6; }
3831 fi
3832
3833
3834 test -n "$ac_ct_CC" && break
3835 done
3836
3837 if test "x$ac_ct_CC" = x; then
3838 CC=""
3839 else
3840 case $cross_compiling:$ac_tool_warned in
3841 yes:)
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3843 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3844 ac_tool_warned=yes ;;
3845 esac
3846 CC=$ac_ct_CC
3847 fi
3848 fi
3849
3850 fi
3851
3852
3853 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3854 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3855 as_fn_error "no acceptable C compiler found in \$PATH
3856 See \`config.log' for more details." "$LINENO" 5; }
3857
3858 # Provide some information about the compiler.
3859 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3860 set X $ac_compile
3861 ac_compiler=$2
3862 for ac_option in --version -v -V -qversion; do
3863 { { ac_try="$ac_compiler $ac_option >&5"
3864 case "(($ac_try" in
3865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3866 *) ac_try_echo=$ac_try;;
3867 esac
3868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3869 $as_echo "$ac_try_echo"; } >&5
3870 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3871 ac_status=$?
3872 if test -s conftest.err; then
3873 sed '10a\
3874 ... rest of stderr output deleted ...
3875 10q' conftest.err >conftest.er1
3876 cat conftest.er1 >&5
3877 rm -f conftest.er1 conftest.err
3878 fi
3879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3880 test $ac_status = 0; }
3881 done
3882
3883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3884 /* end confdefs.h. */
3885
3886 int
3887 main ()
3888 {
3889
3890 ;
3891 return 0;
3892 }
3893 _ACEOF
3894 # FIXME: Cleanup?
3895 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3896 (eval $ac_link) 2>&5
3897 ac_status=$?
3898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3899 test $ac_status = 0; }; then :
3900 gcc_no_link=no
3901 else
3902 gcc_no_link=yes
3903 fi
3904 if test x$gcc_no_link = xyes; then
3905 # Setting cross_compile will disable run tests; it will
3906 # also disable AC_CHECK_FILE but that's generally
3907 # correct if we can't link.
3908 cross_compiling=yes
3909 EXEEXT=
3910 else
3911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3912 /* end confdefs.h. */
3913
3914 int
3915 main ()
3916 {
3917
3918 ;
3919 return 0;
3920 }
3921 _ACEOF
3922 ac_clean_files_save=$ac_clean_files
3923 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3924 # Try to create an executable without -o first, disregard a.out.
3925 # It will help us diagnose broken compilers, and finding out an intuition
3926 # of exeext.
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3928 $as_echo_n "checking for C compiler default output file name... " >&6; }
3929 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3930
3931 # The possible output files:
3932 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3933
3934 ac_rmfiles=
3935 for ac_file in $ac_files
3936 do
3937 case $ac_file in
3938 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3939 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3940 esac
3941 done
3942 rm -f $ac_rmfiles
3943
3944 if { { ac_try="$ac_link_default"
3945 case "(($ac_try" in
3946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3947 *) ac_try_echo=$ac_try;;
3948 esac
3949 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3950 $as_echo "$ac_try_echo"; } >&5
3951 (eval "$ac_link_default") 2>&5
3952 ac_status=$?
3953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3954 test $ac_status = 0; }; then :
3955 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3956 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3957 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3958 # so that the user can short-circuit this test for compilers unknown to
3959 # Autoconf.
3960 for ac_file in $ac_files ''
3961 do
3962 test -f "$ac_file" || continue
3963 case $ac_file in
3964 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3965 ;;
3966 [ab].out )
3967 # We found the default executable, but exeext='' is most
3968 # certainly right.
3969 break;;
3970 *.* )
3971 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3972 then :; else
3973 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3974 fi
3975 # We set ac_cv_exeext here because the later test for it is not
3976 # safe: cross compilers may not add the suffix if given an `-o'
3977 # argument, so we may need to know it at that point already.
3978 # Even if this section looks crufty: it has the advantage of
3979 # actually working.
3980 break;;
3981 * )
3982 break;;
3983 esac
3984 done
3985 test "$ac_cv_exeext" = no && ac_cv_exeext=
3986
3987 else
3988 ac_file=''
3989 fi
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3991 $as_echo "$ac_file" >&6; }
3992 if test -z "$ac_file"; then :
3993 $as_echo "$as_me: failed program was:" >&5
3994 sed 's/^/| /' conftest.$ac_ext >&5
3995
3996 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3997 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3998 { as_fn_set_status 77
3999 as_fn_error "C compiler cannot create executables
4000 See \`config.log' for more details." "$LINENO" 5; }; }
4001 fi
4002 ac_exeext=$ac_cv_exeext
4003
4004 # Check that the compiler produces executables we can run. If not, either
4005 # the compiler is broken, or we cross compile.
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4007 $as_echo_n "checking whether the C compiler works... " >&6; }
4008 # If not cross compiling, check that we can run a simple program.
4009 if test "$cross_compiling" != yes; then
4010 if { ac_try='./$ac_file'
4011 { { case "(($ac_try" in
4012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4013 *) ac_try_echo=$ac_try;;
4014 esac
4015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4016 $as_echo "$ac_try_echo"; } >&5
4017 (eval "$ac_try") 2>&5
4018 ac_status=$?
4019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4020 test $ac_status = 0; }; }; then
4021 cross_compiling=no
4022 else
4023 if test "$cross_compiling" = maybe; then
4024 cross_compiling=yes
4025 else
4026 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4028 as_fn_error "cannot run C compiled programs.
4029 If you meant to cross compile, use \`--host'.
4030 See \`config.log' for more details." "$LINENO" 5; }
4031 fi
4032 fi
4033 fi
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4035 $as_echo "yes" >&6; }
4036
4037 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4038 ac_clean_files=$ac_clean_files_save
4039 # Check that the compiler produces executables we can run. If not, either
4040 # the compiler is broken, or we cross compile.
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4042 $as_echo_n "checking whether we are cross compiling... " >&6; }
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4044 $as_echo "$cross_compiling" >&6; }
4045
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4047 $as_echo_n "checking for suffix of executables... " >&6; }
4048 if { { ac_try="$ac_link"
4049 case "(($ac_try" in
4050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4051 *) ac_try_echo=$ac_try;;
4052 esac
4053 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4054 $as_echo "$ac_try_echo"; } >&5
4055 (eval "$ac_link") 2>&5
4056 ac_status=$?
4057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4058 test $ac_status = 0; }; then :
4059 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4060 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4061 # work properly (i.e., refer to `conftest.exe'), while it won't with
4062 # `rm'.
4063 for ac_file in conftest.exe conftest conftest.*; do
4064 test -f "$ac_file" || continue
4065 case $ac_file in
4066 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4067 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4068 break;;
4069 * ) break;;
4070 esac
4071 done
4072 else
4073 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4074 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4075 as_fn_error "cannot compute suffix of executables: cannot compile and link
4076 See \`config.log' for more details." "$LINENO" 5; }
4077 fi
4078 rm -f conftest$ac_cv_exeext
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4080 $as_echo "$ac_cv_exeext" >&6; }
4081
4082 rm -f conftest.$ac_ext
4083 EXEEXT=$ac_cv_exeext
4084 ac_exeext=$EXEEXT
4085 fi
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4087 $as_echo_n "checking for suffix of object files... " >&6; }
4088 if test "${ac_cv_objext+set}" = set; then :
4089 $as_echo_n "(cached) " >&6
4090 else
4091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4092 /* end confdefs.h. */
4093
4094 int
4095 main ()
4096 {
4097
4098 ;
4099 return 0;
4100 }
4101 _ACEOF
4102 rm -f conftest.o conftest.obj
4103 if { { ac_try="$ac_compile"
4104 case "(($ac_try" in
4105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4106 *) ac_try_echo=$ac_try;;
4107 esac
4108 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4109 $as_echo "$ac_try_echo"; } >&5
4110 (eval "$ac_compile") 2>&5
4111 ac_status=$?
4112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4113 test $ac_status = 0; }; then :
4114 for ac_file in conftest.o conftest.obj conftest.*; do
4115 test -f "$ac_file" || continue;
4116 case $ac_file in
4117 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4118 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4119 break;;
4120 esac
4121 done
4122 else
4123 $as_echo "$as_me: failed program was:" >&5
4124 sed 's/^/| /' conftest.$ac_ext >&5
4125
4126 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4127 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4128 as_fn_error "cannot compute suffix of object files: cannot compile
4129 See \`config.log' for more details." "$LINENO" 5; }
4130 fi
4131 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4132 fi
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4134 $as_echo "$ac_cv_objext" >&6; }
4135 OBJEXT=$ac_cv_objext
4136 ac_objext=$OBJEXT
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4138 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4139 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4140 $as_echo_n "(cached) " >&6
4141 else
4142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4143 /* end confdefs.h. */
4144
4145 int
4146 main ()
4147 {
4148 #ifndef __GNUC__
4149 choke me
4150 #endif
4151
4152 ;
4153 return 0;
4154 }
4155 _ACEOF
4156 if ac_fn_c_try_compile "$LINENO"; then :
4157 ac_compiler_gnu=yes
4158 else
4159 ac_compiler_gnu=no
4160 fi
4161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4162 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4163
4164 fi
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4166 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4167 if test $ac_compiler_gnu = yes; then
4168 GCC=yes
4169 else
4170 GCC=
4171 fi
4172 ac_test_CFLAGS=${CFLAGS+set}
4173 ac_save_CFLAGS=$CFLAGS
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4175 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4176 if test "${ac_cv_prog_cc_g+set}" = set; then :
4177 $as_echo_n "(cached) " >&6
4178 else
4179 ac_save_c_werror_flag=$ac_c_werror_flag
4180 ac_c_werror_flag=yes
4181 ac_cv_prog_cc_g=no
4182 CFLAGS="-g"
4183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4184 /* end confdefs.h. */
4185
4186 int
4187 main ()
4188 {
4189
4190 ;
4191 return 0;
4192 }
4193 _ACEOF
4194 if ac_fn_c_try_compile "$LINENO"; then :
4195 ac_cv_prog_cc_g=yes
4196 else
4197 CFLAGS=""
4198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4199 /* end confdefs.h. */
4200
4201 int
4202 main ()
4203 {
4204
4205 ;
4206 return 0;
4207 }
4208 _ACEOF
4209 if ac_fn_c_try_compile "$LINENO"; then :
4210
4211 else
4212 ac_c_werror_flag=$ac_save_c_werror_flag
4213 CFLAGS="-g"
4214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4215 /* end confdefs.h. */
4216
4217 int
4218 main ()
4219 {
4220
4221 ;
4222 return 0;
4223 }
4224 _ACEOF
4225 if ac_fn_c_try_compile "$LINENO"; then :
4226 ac_cv_prog_cc_g=yes
4227 fi
4228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4229 fi
4230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4231 fi
4232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4233 ac_c_werror_flag=$ac_save_c_werror_flag
4234 fi
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4236 $as_echo "$ac_cv_prog_cc_g" >&6; }
4237 if test "$ac_test_CFLAGS" = set; then
4238 CFLAGS=$ac_save_CFLAGS
4239 elif test $ac_cv_prog_cc_g = yes; then
4240 if test "$GCC" = yes; then
4241 CFLAGS="-g -O2"
4242 else
4243 CFLAGS="-g"
4244 fi
4245 else
4246 if test "$GCC" = yes; then
4247 CFLAGS="-O2"
4248 else
4249 CFLAGS=
4250 fi
4251 fi
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4253 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4254 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4255 $as_echo_n "(cached) " >&6
4256 else
4257 ac_cv_prog_cc_c89=no
4258 ac_save_CC=$CC
4259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4260 /* end confdefs.h. */
4261 #include <stdarg.h>
4262 #include <stdio.h>
4263 #include <sys/types.h>
4264 #include <sys/stat.h>
4265 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4266 struct buf { int x; };
4267 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4268 static char *e (p, i)
4269 char **p;
4270 int i;
4271 {
4272 return p[i];
4273 }
4274 static char *f (char * (*g) (char **, int), char **p, ...)
4275 {
4276 char *s;
4277 va_list v;
4278 va_start (v,p);
4279 s = g (p, va_arg (v,int));
4280 va_end (v);
4281 return s;
4282 }
4283
4284 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4285 function prototypes and stuff, but not '\xHH' hex character constants.
4286 These don't provoke an error unfortunately, instead are silently treated
4287 as 'x'. The following induces an error, until -std is added to get
4288 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4289 array size at least. It's necessary to write '\x00'==0 to get something
4290 that's true only with -std. */
4291 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4292
4293 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4294 inside strings and character constants. */
4295 #define FOO(x) 'x'
4296 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4297
4298 int test (int i, double x);
4299 struct s1 {int (*f) (int a);};
4300 struct s2 {int (*f) (double a);};
4301 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4302 int argc;
4303 char **argv;
4304 int
4305 main ()
4306 {
4307 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4308 ;
4309 return 0;
4310 }
4311 _ACEOF
4312 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4313 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4314 do
4315 CC="$ac_save_CC $ac_arg"
4316 if ac_fn_c_try_compile "$LINENO"; then :
4317 ac_cv_prog_cc_c89=$ac_arg
4318 fi
4319 rm -f core conftest.err conftest.$ac_objext
4320 test "x$ac_cv_prog_cc_c89" != "xno" && break
4321 done
4322 rm -f conftest.$ac_ext
4323 CC=$ac_save_CC
4324
4325 fi
4326 # AC_CACHE_VAL
4327 case "x$ac_cv_prog_cc_c89" in
4328 x)
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4330 $as_echo "none needed" >&6; } ;;
4331 xno)
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4333 $as_echo "unsupported" >&6; } ;;
4334 *)
4335 CC="$CC $ac_cv_prog_cc_c89"
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4337 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4338 esac
4339 if test "x$ac_cv_prog_cc_c89" != xno; then :
4340
4341 fi
4342
4343 ac_ext=c
4344 ac_cpp='$CPP $CPPFLAGS'
4345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4348
4349 depcc="$CC" am_compiler_list=
4350
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4352 $as_echo_n "checking dependency style of $depcc... " >&6; }
4353 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4354 $as_echo_n "(cached) " >&6
4355 else
4356 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4357 # We make a subdir and do the tests there. Otherwise we can end up
4358 # making bogus files that we don't know about and never remove. For
4359 # instance it was reported that on HP-UX the gcc test will end up
4360 # making a dummy file named `D' -- because `-MD' means `put the output
4361 # in D'.
4362 rm -rf conftest.dir
4363 mkdir conftest.dir
4364 # Copy depcomp to subdir because otherwise we won't find it if we're
4365 # using a relative directory.
4366 cp "$am_depcomp" conftest.dir
4367 cd conftest.dir
4368 # We will build objects and dependencies in a subdirectory because
4369 # it helps to detect inapplicable dependency modes. For instance
4370 # both Tru64's cc and ICC support -MD to output dependencies as a
4371 # side effect of compilation, but ICC will put the dependencies in
4372 # the current directory while Tru64 will put them in the object
4373 # directory.
4374 mkdir sub
4375
4376 am_cv_CC_dependencies_compiler_type=none
4377 if test "$am_compiler_list" = ""; then
4378 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4379 fi
4380 am__universal=false
4381 case " $depcc " in #(
4382 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4383 esac
4384
4385 for depmode in $am_compiler_list; do
4386 # Setup a source with many dependencies, because some compilers
4387 # like to wrap large dependency lists on column 80 (with \), and
4388 # we should not choose a depcomp mode which is confused by this.
4389 #
4390 # We need to recreate these files for each test, as the compiler may
4391 # overwrite some of them when testing with obscure command lines.
4392 # This happens at least with the AIX C compiler.
4393 : > sub/conftest.c
4394 for i in 1 2 3 4 5 6; do
4395 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4396 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4397 # Solaris 8's {/usr,}/bin/sh.
4398 touch sub/conftst$i.h
4399 done
4400 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4401
4402 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4403 # mode. It turns out that the SunPro C++ compiler does not properly
4404 # handle `-M -o', and we need to detect this. Also, some Intel
4405 # versions had trouble with output in subdirs
4406 am__obj=sub/conftest.${OBJEXT-o}
4407 am__minus_obj="-o $am__obj"
4408 case $depmode in
4409 gcc)
4410 # This depmode causes a compiler race in universal mode.
4411 test "$am__universal" = false || continue
4412 ;;
4413 nosideeffect)
4414 # after this tag, mechanisms are not by side-effect, so they'll
4415 # only be used when explicitly requested
4416 if test "x$enable_dependency_tracking" = xyes; then
4417 continue
4418 else
4419 break
4420 fi
4421 ;;
4422 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4423 # This compiler won't grok `-c -o', but also, the minuso test has
4424 # not run yet. These depmodes are late enough in the game, and
4425 # so weak that their functioning should not be impacted.
4426 am__obj=conftest.${OBJEXT-o}
4427 am__minus_obj=
4428 ;;
4429 none) break ;;
4430 esac
4431 if depmode=$depmode \
4432 source=sub/conftest.c object=$am__obj \
4433 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4434 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4435 >/dev/null 2>conftest.err &&
4436 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4437 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4438 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4439 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4440 # icc doesn't choke on unknown options, it will just issue warnings
4441 # or remarks (even with -Werror). So we grep stderr for any message
4442 # that says an option was ignored or not supported.
4443 # When given -MP, icc 7.0 and 7.1 complain thusly:
4444 # icc: Command line warning: ignoring option '-M'; no argument required
4445 # The diagnosis changed in icc 8.0:
4446 # icc: Command line remark: option '-MP' not supported
4447 if (grep 'ignoring option' conftest.err ||
4448 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4449 am_cv_CC_dependencies_compiler_type=$depmode
4450 break
4451 fi
4452 fi
4453 done
4454
4455 cd ..
4456 rm -rf conftest.dir
4457 else
4458 am_cv_CC_dependencies_compiler_type=none
4459 fi
4460
4461 fi
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4463 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4464 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4465
4466 if
4467 test "x$enable_dependency_tracking" != xno \
4468 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4469 am__fastdepCC_TRUE=
4470 am__fastdepCC_FALSE='#'
4471 else
4472 am__fastdepCC_TRUE='#'
4473 am__fastdepCC_FALSE=
4474 fi
4475
4476
4477
4478 ac_ext=c
4479 ac_cpp='$CPP $CPPFLAGS'
4480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4484 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4485 # On Suns, sometimes $CPP names a directory.
4486 if test -n "$CPP" && test -d "$CPP"; then
4487 CPP=
4488 fi
4489 if test -z "$CPP"; then
4490 if test "${ac_cv_prog_CPP+set}" = set; then :
4491 $as_echo_n "(cached) " >&6
4492 else
4493 # Double quotes because CPP needs to be expanded
4494 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4495 do
4496 ac_preproc_ok=false
4497 for ac_c_preproc_warn_flag in '' yes
4498 do
4499 # Use a header file that comes with gcc, so configuring glibc
4500 # with a fresh cross-compiler works.
4501 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4502 # <limits.h> exists even on freestanding compilers.
4503 # On the NeXT, cc -E runs the code through the compiler's parser,
4504 # not just through cpp. "Syntax error" is here to catch this case.
4505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4506 /* end confdefs.h. */
4507 #ifdef __STDC__
4508 # include <limits.h>
4509 #else
4510 # include <assert.h>
4511 #endif
4512 Syntax error
4513 _ACEOF
4514 if ac_fn_c_try_cpp "$LINENO"; then :
4515
4516 else
4517 # Broken: fails on valid input.
4518 continue
4519 fi
4520 rm -f conftest.err conftest.$ac_ext
4521
4522 # OK, works on sane cases. Now check whether nonexistent headers
4523 # can be detected and how.
4524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525 /* end confdefs.h. */
4526 #include <ac_nonexistent.h>
4527 _ACEOF
4528 if ac_fn_c_try_cpp "$LINENO"; then :
4529 # Broken: success on invalid input.
4530 continue
4531 else
4532 # Passes both tests.
4533 ac_preproc_ok=:
4534 break
4535 fi
4536 rm -f conftest.err conftest.$ac_ext
4537
4538 done
4539 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4540 rm -f conftest.err conftest.$ac_ext
4541 if $ac_preproc_ok; then :
4542 break
4543 fi
4544
4545 done
4546 ac_cv_prog_CPP=$CPP
4547
4548 fi
4549 CPP=$ac_cv_prog_CPP
4550 else
4551 ac_cv_prog_CPP=$CPP
4552 fi
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4554 $as_echo "$CPP" >&6; }
4555 ac_preproc_ok=false
4556 for ac_c_preproc_warn_flag in '' yes
4557 do
4558 # Use a header file that comes with gcc, so configuring glibc
4559 # with a fresh cross-compiler works.
4560 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4561 # <limits.h> exists even on freestanding compilers.
4562 # On the NeXT, cc -E runs the code through the compiler's parser,
4563 # not just through cpp. "Syntax error" is here to catch this case.
4564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4565 /* end confdefs.h. */
4566 #ifdef __STDC__
4567 # include <limits.h>
4568 #else
4569 # include <assert.h>
4570 #endif
4571 Syntax error
4572 _ACEOF
4573 if ac_fn_c_try_cpp "$LINENO"; then :
4574
4575 else
4576 # Broken: fails on valid input.
4577 continue
4578 fi
4579 rm -f conftest.err conftest.$ac_ext
4580
4581 # OK, works on sane cases. Now check whether nonexistent headers
4582 # can be detected and how.
4583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4584 /* end confdefs.h. */
4585 #include <ac_nonexistent.h>
4586 _ACEOF
4587 if ac_fn_c_try_cpp "$LINENO"; then :
4588 # Broken: success on invalid input.
4589 continue
4590 else
4591 # Passes both tests.
4592 ac_preproc_ok=:
4593 break
4594 fi
4595 rm -f conftest.err conftest.$ac_ext
4596
4597 done
4598 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4599 rm -f conftest.err conftest.$ac_ext
4600 if $ac_preproc_ok; then :
4601
4602 else
4603 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4604 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4605 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4606 See \`config.log' for more details." "$LINENO" 5; }
4607 fi
4608
4609 ac_ext=c
4610 ac_cpp='$CPP $CPPFLAGS'
4611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4614
4615
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4617 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4618 if test "${ac_cv_path_GREP+set}" = set; then :
4619 $as_echo_n "(cached) " >&6
4620 else
4621 if test -z "$GREP"; then
4622 ac_path_GREP_found=false
4623 # Loop through the user's path and test for each of PROGNAME-LIST
4624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4625 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4626 do
4627 IFS=$as_save_IFS
4628 test -z "$as_dir" && as_dir=.
4629 for ac_prog in grep ggrep; do
4630 for ac_exec_ext in '' $ac_executable_extensions; do
4631 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4632 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4633 # Check for GNU ac_path_GREP and select it if it is found.
4634 # Check for GNU $ac_path_GREP
4635 case `"$ac_path_GREP" --version 2>&1` in
4636 *GNU*)
4637 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4638 *)
4639 ac_count=0
4640 $as_echo_n 0123456789 >"conftest.in"
4641 while :
4642 do
4643 cat "conftest.in" "conftest.in" >"conftest.tmp"
4644 mv "conftest.tmp" "conftest.in"
4645 cp "conftest.in" "conftest.nl"
4646 $as_echo 'GREP' >> "conftest.nl"
4647 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4648 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4649 as_fn_arith $ac_count + 1 && ac_count=$as_val
4650 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4651 # Best one so far, save it but keep looking for a better one
4652 ac_cv_path_GREP="$ac_path_GREP"
4653 ac_path_GREP_max=$ac_count
4654 fi
4655 # 10*(2^10) chars as input seems more than enough
4656 test $ac_count -gt 10 && break
4657 done
4658 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4659 esac
4660
4661 $ac_path_GREP_found && break 3
4662 done
4663 done
4664 done
4665 IFS=$as_save_IFS
4666 if test -z "$ac_cv_path_GREP"; then
4667 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4668 fi
4669 else
4670 ac_cv_path_GREP=$GREP
4671 fi
4672
4673 fi
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4675 $as_echo "$ac_cv_path_GREP" >&6; }
4676 GREP="$ac_cv_path_GREP"
4677
4678
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4680 $as_echo_n "checking for egrep... " >&6; }
4681 if test "${ac_cv_path_EGREP+set}" = set; then :
4682 $as_echo_n "(cached) " >&6
4683 else
4684 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4685 then ac_cv_path_EGREP="$GREP -E"
4686 else
4687 if test -z "$EGREP"; then
4688 ac_path_EGREP_found=false
4689 # Loop through the user's path and test for each of PROGNAME-LIST
4690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4691 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4692 do
4693 IFS=$as_save_IFS
4694 test -z "$as_dir" && as_dir=.
4695 for ac_prog in egrep; do
4696 for ac_exec_ext in '' $ac_executable_extensions; do
4697 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4698 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4699 # Check for GNU ac_path_EGREP and select it if it is found.
4700 # Check for GNU $ac_path_EGREP
4701 case `"$ac_path_EGREP" --version 2>&1` in
4702 *GNU*)
4703 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4704 *)
4705 ac_count=0
4706 $as_echo_n 0123456789 >"conftest.in"
4707 while :
4708 do
4709 cat "conftest.in" "conftest.in" >"conftest.tmp"
4710 mv "conftest.tmp" "conftest.in"
4711 cp "conftest.in" "conftest.nl"
4712 $as_echo 'EGREP' >> "conftest.nl"
4713 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4714 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4715 as_fn_arith $ac_count + 1 && ac_count=$as_val
4716 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4717 # Best one so far, save it but keep looking for a better one
4718 ac_cv_path_EGREP="$ac_path_EGREP"
4719 ac_path_EGREP_max=$ac_count
4720 fi
4721 # 10*(2^10) chars as input seems more than enough
4722 test $ac_count -gt 10 && break
4723 done
4724 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4725 esac
4726
4727 $ac_path_EGREP_found && break 3
4728 done
4729 done
4730 done
4731 IFS=$as_save_IFS
4732 if test -z "$ac_cv_path_EGREP"; then
4733 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4734 fi
4735 else
4736 ac_cv_path_EGREP=$EGREP
4737 fi
4738
4739 fi
4740 fi
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4742 $as_echo "$ac_cv_path_EGREP" >&6; }
4743 EGREP="$ac_cv_path_EGREP"
4744
4745
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4747 $as_echo_n "checking for ANSI C header files... " >&6; }
4748 if test "${ac_cv_header_stdc+set}" = set; then :
4749 $as_echo_n "(cached) " >&6
4750 else
4751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4752 /* end confdefs.h. */
4753 #include <stdlib.h>
4754 #include <stdarg.h>
4755 #include <string.h>
4756 #include <float.h>
4757
4758 int
4759 main ()
4760 {
4761
4762 ;
4763 return 0;
4764 }
4765 _ACEOF
4766 if ac_fn_c_try_compile "$LINENO"; then :
4767 ac_cv_header_stdc=yes
4768 else
4769 ac_cv_header_stdc=no
4770 fi
4771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4772
4773 if test $ac_cv_header_stdc = yes; then
4774 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4776 /* end confdefs.h. */
4777 #include <string.h>
4778
4779 _ACEOF
4780 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4781 $EGREP "memchr" >/dev/null 2>&1; then :
4782
4783 else
4784 ac_cv_header_stdc=no
4785 fi
4786 rm -f conftest*
4787
4788 fi
4789
4790 if test $ac_cv_header_stdc = yes; then
4791 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4793 /* end confdefs.h. */
4794 #include <stdlib.h>
4795
4796 _ACEOF
4797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4798 $EGREP "free" >/dev/null 2>&1; then :
4799
4800 else
4801 ac_cv_header_stdc=no
4802 fi
4803 rm -f conftest*
4804
4805 fi
4806
4807 if test $ac_cv_header_stdc = yes; then
4808 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4809 if test "$cross_compiling" = yes; then :
4810 :
4811 else
4812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4813 /* end confdefs.h. */
4814 #include <ctype.h>
4815 #include <stdlib.h>
4816 #if ((' ' & 0x0FF) == 0x020)
4817 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4818 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4819 #else
4820 # define ISLOWER(c) \
4821 (('a' <= (c) && (c) <= 'i') \
4822 || ('j' <= (c) && (c) <= 'r') \
4823 || ('s' <= (c) && (c) <= 'z'))
4824 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4825 #endif
4826
4827 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4828 int
4829 main ()
4830 {
4831 int i;
4832 for (i = 0; i < 256; i++)
4833 if (XOR (islower (i), ISLOWER (i))
4834 || toupper (i) != TOUPPER (i))
4835 return 2;
4836 return 0;
4837 }
4838 _ACEOF
4839 if ac_fn_c_try_run "$LINENO"; then :
4840
4841 else
4842 ac_cv_header_stdc=no
4843 fi
4844 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4845 conftest.$ac_objext conftest.beam conftest.$ac_ext
4846 fi
4847
4848 fi
4849 fi
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4851 $as_echo "$ac_cv_header_stdc" >&6; }
4852 if test $ac_cv_header_stdc = yes; then
4853
4854 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4855
4856 fi
4857
4858 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4859 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4860 inttypes.h stdint.h unistd.h
4861 do :
4862 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4863 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4864 "
4865 eval as_val=\$$as_ac_Header
4866 if test "x$as_val" = x""yes; then :
4867 cat >>confdefs.h <<_ACEOF
4868 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4869 _ACEOF
4870
4871 fi
4872
4873 done
4874
4875
4876
4877 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4878 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4879 MINIX=yes
4880 else
4881 MINIX=
4882 fi
4883
4884
4885 if test "$MINIX" = yes; then
4886
4887 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4888
4889
4890 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4891
4892
4893 $as_echo "#define _MINIX 1" >>confdefs.h
4894
4895 fi
4896
4897
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4899 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4900 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4901 $as_echo_n "(cached) " >&6
4902 else
4903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4904 /* end confdefs.h. */
4905
4906 # define __EXTENSIONS__ 1
4907 $ac_includes_default
4908 int
4909 main ()
4910 {
4911
4912 ;
4913 return 0;
4914 }
4915 _ACEOF
4916 if ac_fn_c_try_compile "$LINENO"; then :
4917 ac_cv_safe_to_define___extensions__=yes
4918 else
4919 ac_cv_safe_to_define___extensions__=no
4920 fi
4921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4922 fi
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4924 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4925 test $ac_cv_safe_to_define___extensions__ = yes &&
4926 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4927
4928 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4929
4930 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4931
4932 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4933
4934 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4935
4936
4937
4938 # Calculate toolexeclibdir
4939 # Also toolexecdir, though it's only used in toolexeclibdir
4940 case ${version_specific_libs} in
4941 yes)
4942 # Need the gcc compiler version to know where to install libraries
4943 # and header files if --enable-version-specific-runtime-libs option
4944 # is selected.
4945 toolexecdir='$(libdir)/gcc/$(target_alias)'
4946 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4947 ;;
4948 no)
4949 if test -n "$with_cross_host" &&
4950 test x"$with_cross_host" != x"no"; then
4951 # Install a library built with a cross compiler in tooldir, not libdir.
4952 toolexecdir='$(exec_prefix)/$(target_alias)'
4953 toolexeclibdir='$(toolexecdir)/lib'
4954 else
4955 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4956 toolexeclibdir='$(libdir)'
4957 fi
4958 multi_os_directory=`$CC -print-multi-os-directory`
4959 case $multi_os_directory in
4960 .) ;; # Avoid trailing /.
4961 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
4962 esac
4963 ;;
4964 esac
4965
4966
4967
4968 # Create a spec file, so that compile/link tests don't fail
4969 test -f libgfortran.spec || touch libgfortran.spec
4970
4971 ac_ext=c
4972 ac_cpp='$CPP $CPPFLAGS'
4973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4976
4977 # Check the compiler.
4978 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
4979 # We must force CC to /not/ be precious variables; otherwise
4980 # the wrong, non-multilib-adjusted value will be used in multilibs.
4981 # As a side effect, we have to subst CFLAGS ourselves.
4982
4983
4984
4985 ac_ext=c
4986 ac_cpp='$CPP $CPPFLAGS'
4987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4990 if test -n "$ac_tool_prefix"; then
4991 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4992 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4994 $as_echo_n "checking for $ac_word... " >&6; }
4995 if test "${ac_cv_prog_CC+set}" = set; then :
4996 $as_echo_n "(cached) " >&6
4997 else
4998 if test -n "$CC"; then
4999 ac_cv_prog_CC="$CC" # Let the user override the test.
5000 else
5001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5002 for as_dir in $PATH
5003 do
5004 IFS=$as_save_IFS
5005 test -z "$as_dir" && as_dir=.
5006 for ac_exec_ext in '' $ac_executable_extensions; do
5007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5008 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5010 break 2
5011 fi
5012 done
5013 done
5014 IFS=$as_save_IFS
5015
5016 fi
5017 fi
5018 CC=$ac_cv_prog_CC
5019 if test -n "$CC"; then
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5021 $as_echo "$CC" >&6; }
5022 else
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5024 $as_echo "no" >&6; }
5025 fi
5026
5027
5028 fi
5029 if test -z "$ac_cv_prog_CC"; then
5030 ac_ct_CC=$CC
5031 # Extract the first word of "gcc", so it can be a program name with args.
5032 set dummy gcc; ac_word=$2
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5034 $as_echo_n "checking for $ac_word... " >&6; }
5035 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5036 $as_echo_n "(cached) " >&6
5037 else
5038 if test -n "$ac_ct_CC"; then
5039 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5040 else
5041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042 for as_dir in $PATH
5043 do
5044 IFS=$as_save_IFS
5045 test -z "$as_dir" && as_dir=.
5046 for ac_exec_ext in '' $ac_executable_extensions; do
5047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5048 ac_cv_prog_ac_ct_CC="gcc"
5049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5050 break 2
5051 fi
5052 done
5053 done
5054 IFS=$as_save_IFS
5055
5056 fi
5057 fi
5058 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5059 if test -n "$ac_ct_CC"; then
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5061 $as_echo "$ac_ct_CC" >&6; }
5062 else
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5064 $as_echo "no" >&6; }
5065 fi
5066
5067 if test "x$ac_ct_CC" = x; then
5068 CC=""
5069 else
5070 case $cross_compiling:$ac_tool_warned in
5071 yes:)
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5074 ac_tool_warned=yes ;;
5075 esac
5076 CC=$ac_ct_CC
5077 fi
5078 else
5079 CC="$ac_cv_prog_CC"
5080 fi
5081
5082 if test -z "$CC"; then
5083 if test -n "$ac_tool_prefix"; then
5084 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5085 set dummy ${ac_tool_prefix}cc; ac_word=$2
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5087 $as_echo_n "checking for $ac_word... " >&6; }
5088 if test "${ac_cv_prog_CC+set}" = set; then :
5089 $as_echo_n "(cached) " >&6
5090 else
5091 if test -n "$CC"; then
5092 ac_cv_prog_CC="$CC" # Let the user override the test.
5093 else
5094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5095 for as_dir in $PATH
5096 do
5097 IFS=$as_save_IFS
5098 test -z "$as_dir" && as_dir=.
5099 for ac_exec_ext in '' $ac_executable_extensions; do
5100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5101 ac_cv_prog_CC="${ac_tool_prefix}cc"
5102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5103 break 2
5104 fi
5105 done
5106 done
5107 IFS=$as_save_IFS
5108
5109 fi
5110 fi
5111 CC=$ac_cv_prog_CC
5112 if test -n "$CC"; then
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5114 $as_echo "$CC" >&6; }
5115 else
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5117 $as_echo "no" >&6; }
5118 fi
5119
5120
5121 fi
5122 fi
5123 if test -z "$CC"; then
5124 # Extract the first word of "cc", so it can be a program name with args.
5125 set dummy cc; ac_word=$2
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5127 $as_echo_n "checking for $ac_word... " >&6; }
5128 if test "${ac_cv_prog_CC+set}" = set; then :
5129 $as_echo_n "(cached) " >&6
5130 else
5131 if test -n "$CC"; then
5132 ac_cv_prog_CC="$CC" # Let the user override the test.
5133 else
5134 ac_prog_rejected=no
5135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5136 for as_dir in $PATH
5137 do
5138 IFS=$as_save_IFS
5139 test -z "$as_dir" && as_dir=.
5140 for ac_exec_ext in '' $ac_executable_extensions; do
5141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5142 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5143 ac_prog_rejected=yes
5144 continue
5145 fi
5146 ac_cv_prog_CC="cc"
5147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5148 break 2
5149 fi
5150 done
5151 done
5152 IFS=$as_save_IFS
5153
5154 if test $ac_prog_rejected = yes; then
5155 # We found a bogon in the path, so make sure we never use it.
5156 set dummy $ac_cv_prog_CC
5157 shift
5158 if test $# != 0; then
5159 # We chose a different compiler from the bogus one.
5160 # However, it has the same basename, so the bogon will be chosen
5161 # first if we set CC to just the basename; use the full file name.
5162 shift
5163 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5164 fi
5165 fi
5166 fi
5167 fi
5168 CC=$ac_cv_prog_CC
5169 if test -n "$CC"; then
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5171 $as_echo "$CC" >&6; }
5172 else
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5174 $as_echo "no" >&6; }
5175 fi
5176
5177
5178 fi
5179 if test -z "$CC"; then
5180 if test -n "$ac_tool_prefix"; then
5181 for ac_prog in cl.exe
5182 do
5183 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5184 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5186 $as_echo_n "checking for $ac_word... " >&6; }
5187 if test "${ac_cv_prog_CC+set}" = set; then :
5188 $as_echo_n "(cached) " >&6
5189 else
5190 if test -n "$CC"; then
5191 ac_cv_prog_CC="$CC" # Let the user override the test.
5192 else
5193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194 for as_dir in $PATH
5195 do
5196 IFS=$as_save_IFS
5197 test -z "$as_dir" && as_dir=.
5198 for ac_exec_ext in '' $ac_executable_extensions; do
5199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5200 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5202 break 2
5203 fi
5204 done
5205 done
5206 IFS=$as_save_IFS
5207
5208 fi
5209 fi
5210 CC=$ac_cv_prog_CC
5211 if test -n "$CC"; then
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5213 $as_echo "$CC" >&6; }
5214 else
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5216 $as_echo "no" >&6; }
5217 fi
5218
5219
5220 test -n "$CC" && break
5221 done
5222 fi
5223 if test -z "$CC"; then
5224 ac_ct_CC=$CC
5225 for ac_prog in cl.exe
5226 do
5227 # Extract the first word of "$ac_prog", so it can be a program name with args.
5228 set dummy $ac_prog; ac_word=$2
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5230 $as_echo_n "checking for $ac_word... " >&6; }
5231 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5232 $as_echo_n "(cached) " >&6
5233 else
5234 if test -n "$ac_ct_CC"; then
5235 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5236 else
5237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5238 for as_dir in $PATH
5239 do
5240 IFS=$as_save_IFS
5241 test -z "$as_dir" && as_dir=.
5242 for ac_exec_ext in '' $ac_executable_extensions; do
5243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5244 ac_cv_prog_ac_ct_CC="$ac_prog"
5245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5246 break 2
5247 fi
5248 done
5249 done
5250 IFS=$as_save_IFS
5251
5252 fi
5253 fi
5254 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5255 if test -n "$ac_ct_CC"; then
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5257 $as_echo "$ac_ct_CC" >&6; }
5258 else
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5260 $as_echo "no" >&6; }
5261 fi
5262
5263
5264 test -n "$ac_ct_CC" && break
5265 done
5266
5267 if test "x$ac_ct_CC" = x; then
5268 CC=""
5269 else
5270 case $cross_compiling:$ac_tool_warned in
5271 yes:)
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5273 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5274 ac_tool_warned=yes ;;
5275 esac
5276 CC=$ac_ct_CC
5277 fi
5278 fi
5279
5280 fi
5281
5282
5283 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5285 as_fn_error "no acceptable C compiler found in \$PATH
5286 See \`config.log' for more details." "$LINENO" 5; }
5287
5288 # Provide some information about the compiler.
5289 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5290 set X $ac_compile
5291 ac_compiler=$2
5292 for ac_option in --version -v -V -qversion; do
5293 { { ac_try="$ac_compiler $ac_option >&5"
5294 case "(($ac_try" in
5295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5296 *) ac_try_echo=$ac_try;;
5297 esac
5298 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5299 $as_echo "$ac_try_echo"; } >&5
5300 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5301 ac_status=$?
5302 if test -s conftest.err; then
5303 sed '10a\
5304 ... rest of stderr output deleted ...
5305 10q' conftest.err >conftest.er1
5306 cat conftest.er1 >&5
5307 rm -f conftest.er1 conftest.err
5308 fi
5309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5310 test $ac_status = 0; }
5311 done
5312
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5314 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5315 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5316 $as_echo_n "(cached) " >&6
5317 else
5318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5319 /* end confdefs.h. */
5320
5321 int
5322 main ()
5323 {
5324 #ifndef __GNUC__
5325 choke me
5326 #endif
5327
5328 ;
5329 return 0;
5330 }
5331 _ACEOF
5332 if ac_fn_c_try_compile "$LINENO"; then :
5333 ac_compiler_gnu=yes
5334 else
5335 ac_compiler_gnu=no
5336 fi
5337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5338 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5339
5340 fi
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5342 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5343 if test $ac_compiler_gnu = yes; then
5344 GCC=yes
5345 else
5346 GCC=
5347 fi
5348 ac_test_CFLAGS=${CFLAGS+set}
5349 ac_save_CFLAGS=$CFLAGS
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5351 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5352 if test "${ac_cv_prog_cc_g+set}" = set; then :
5353 $as_echo_n "(cached) " >&6
5354 else
5355 ac_save_c_werror_flag=$ac_c_werror_flag
5356 ac_c_werror_flag=yes
5357 ac_cv_prog_cc_g=no
5358 CFLAGS="-g"
5359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5360 /* end confdefs.h. */
5361
5362 int
5363 main ()
5364 {
5365
5366 ;
5367 return 0;
5368 }
5369 _ACEOF
5370 if ac_fn_c_try_compile "$LINENO"; then :
5371 ac_cv_prog_cc_g=yes
5372 else
5373 CFLAGS=""
5374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5375 /* end confdefs.h. */
5376
5377 int
5378 main ()
5379 {
5380
5381 ;
5382 return 0;
5383 }
5384 _ACEOF
5385 if ac_fn_c_try_compile "$LINENO"; then :
5386
5387 else
5388 ac_c_werror_flag=$ac_save_c_werror_flag
5389 CFLAGS="-g"
5390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5391 /* end confdefs.h. */
5392
5393 int
5394 main ()
5395 {
5396
5397 ;
5398 return 0;
5399 }
5400 _ACEOF
5401 if ac_fn_c_try_compile "$LINENO"; then :
5402 ac_cv_prog_cc_g=yes
5403 fi
5404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5405 fi
5406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5407 fi
5408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5409 ac_c_werror_flag=$ac_save_c_werror_flag
5410 fi
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5412 $as_echo "$ac_cv_prog_cc_g" >&6; }
5413 if test "$ac_test_CFLAGS" = set; then
5414 CFLAGS=$ac_save_CFLAGS
5415 elif test $ac_cv_prog_cc_g = yes; then
5416 if test "$GCC" = yes; then
5417 CFLAGS="-g -O2"
5418 else
5419 CFLAGS="-g"
5420 fi
5421 else
5422 if test "$GCC" = yes; then
5423 CFLAGS="-O2"
5424 else
5425 CFLAGS=
5426 fi
5427 fi
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5429 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5430 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5431 $as_echo_n "(cached) " >&6
5432 else
5433 ac_cv_prog_cc_c89=no
5434 ac_save_CC=$CC
5435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5436 /* end confdefs.h. */
5437 #include <stdarg.h>
5438 #include <stdio.h>
5439 #include <sys/types.h>
5440 #include <sys/stat.h>
5441 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5442 struct buf { int x; };
5443 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5444 static char *e (p, i)
5445 char **p;
5446 int i;
5447 {
5448 return p[i];
5449 }
5450 static char *f (char * (*g) (char **, int), char **p, ...)
5451 {
5452 char *s;
5453 va_list v;
5454 va_start (v,p);
5455 s = g (p, va_arg (v,int));
5456 va_end (v);
5457 return s;
5458 }
5459
5460 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5461 function prototypes and stuff, but not '\xHH' hex character constants.
5462 These don't provoke an error unfortunately, instead are silently treated
5463 as 'x'. The following induces an error, until -std is added to get
5464 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5465 array size at least. It's necessary to write '\x00'==0 to get something
5466 that's true only with -std. */
5467 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5468
5469 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5470 inside strings and character constants. */
5471 #define FOO(x) 'x'
5472 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5473
5474 int test (int i, double x);
5475 struct s1 {int (*f) (int a);};
5476 struct s2 {int (*f) (double a);};
5477 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5478 int argc;
5479 char **argv;
5480 int
5481 main ()
5482 {
5483 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5484 ;
5485 return 0;
5486 }
5487 _ACEOF
5488 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5489 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5490 do
5491 CC="$ac_save_CC $ac_arg"
5492 if ac_fn_c_try_compile "$LINENO"; then :
5493 ac_cv_prog_cc_c89=$ac_arg
5494 fi
5495 rm -f core conftest.err conftest.$ac_objext
5496 test "x$ac_cv_prog_cc_c89" != "xno" && break
5497 done
5498 rm -f conftest.$ac_ext
5499 CC=$ac_save_CC
5500
5501 fi
5502 # AC_CACHE_VAL
5503 case "x$ac_cv_prog_cc_c89" in
5504 x)
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5506 $as_echo "none needed" >&6; } ;;
5507 xno)
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5509 $as_echo "unsupported" >&6; } ;;
5510 *)
5511 CC="$CC $ac_cv_prog_cc_c89"
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5513 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5514 esac
5515 if test "x$ac_cv_prog_cc_c89" != xno; then :
5516
5517 fi
5518
5519 ac_ext=c
5520 ac_cpp='$CPP $CPPFLAGS'
5521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5524
5525 depcc="$CC" am_compiler_list=
5526
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5528 $as_echo_n "checking dependency style of $depcc... " >&6; }
5529 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5530 $as_echo_n "(cached) " >&6
5531 else
5532 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5533 # We make a subdir and do the tests there. Otherwise we can end up
5534 # making bogus files that we don't know about and never remove. For
5535 # instance it was reported that on HP-UX the gcc test will end up
5536 # making a dummy file named `D' -- because `-MD' means `put the output
5537 # in D'.
5538 rm -rf conftest.dir
5539 mkdir conftest.dir
5540 # Copy depcomp to subdir because otherwise we won't find it if we're
5541 # using a relative directory.
5542 cp "$am_depcomp" conftest.dir
5543 cd conftest.dir
5544 # We will build objects and dependencies in a subdirectory because
5545 # it helps to detect inapplicable dependency modes. For instance
5546 # both Tru64's cc and ICC support -MD to output dependencies as a
5547 # side effect of compilation, but ICC will put the dependencies in
5548 # the current directory while Tru64 will put them in the object
5549 # directory.
5550 mkdir sub
5551
5552 am_cv_CC_dependencies_compiler_type=none
5553 if test "$am_compiler_list" = ""; then
5554 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5555 fi
5556 am__universal=false
5557 case " $depcc " in #(
5558 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5559 esac
5560
5561 for depmode in $am_compiler_list; do
5562 # Setup a source with many dependencies, because some compilers
5563 # like to wrap large dependency lists on column 80 (with \), and
5564 # we should not choose a depcomp mode which is confused by this.
5565 #
5566 # We need to recreate these files for each test, as the compiler may
5567 # overwrite some of them when testing with obscure command lines.
5568 # This happens at least with the AIX C compiler.
5569 : > sub/conftest.c
5570 for i in 1 2 3 4 5 6; do
5571 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5572 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5573 # Solaris 8's {/usr,}/bin/sh.
5574 touch sub/conftst$i.h
5575 done
5576 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5577
5578 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5579 # mode. It turns out that the SunPro C++ compiler does not properly
5580 # handle `-M -o', and we need to detect this. Also, some Intel
5581 # versions had trouble with output in subdirs
5582 am__obj=sub/conftest.${OBJEXT-o}
5583 am__minus_obj="-o $am__obj"
5584 case $depmode in
5585 gcc)
5586 # This depmode causes a compiler race in universal mode.
5587 test "$am__universal" = false || continue
5588 ;;
5589 nosideeffect)
5590 # after this tag, mechanisms are not by side-effect, so they'll
5591 # only be used when explicitly requested
5592 if test "x$enable_dependency_tracking" = xyes; then
5593 continue
5594 else
5595 break
5596 fi
5597 ;;
5598 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5599 # This compiler won't grok `-c -o', but also, the minuso test has
5600 # not run yet. These depmodes are late enough in the game, and
5601 # so weak that their functioning should not be impacted.
5602 am__obj=conftest.${OBJEXT-o}
5603 am__minus_obj=
5604 ;;
5605 none) break ;;
5606 esac
5607 if depmode=$depmode \
5608 source=sub/conftest.c object=$am__obj \
5609 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5610 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5611 >/dev/null 2>conftest.err &&
5612 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5613 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5614 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5615 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5616 # icc doesn't choke on unknown options, it will just issue warnings
5617 # or remarks (even with -Werror). So we grep stderr for any message
5618 # that says an option was ignored or not supported.
5619 # When given -MP, icc 7.0 and 7.1 complain thusly:
5620 # icc: Command line warning: ignoring option '-M'; no argument required
5621 # The diagnosis changed in icc 8.0:
5622 # icc: Command line remark: option '-MP' not supported
5623 if (grep 'ignoring option' conftest.err ||
5624 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5625 am_cv_CC_dependencies_compiler_type=$depmode
5626 break
5627 fi
5628 fi
5629 done
5630
5631 cd ..
5632 rm -rf conftest.dir
5633 else
5634 am_cv_CC_dependencies_compiler_type=none
5635 fi
5636
5637 fi
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5639 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5640 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5641
5642 if
5643 test "x$enable_dependency_tracking" != xno \
5644 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5645 am__fastdepCC_TRUE=
5646 am__fastdepCC_FALSE='#'
5647 else
5648 am__fastdepCC_TRUE='#'
5649 am__fastdepCC_FALSE=
5650 fi
5651
5652
5653
5654
5655
5656
5657 if test "x$CC" != xcc; then
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5659 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5660 else
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5662 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5663 fi
5664 set dummy $CC; ac_cc=`$as_echo "$2" |
5665 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5666 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5667 $as_echo_n "(cached) " >&6
5668 else
5669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5670 /* end confdefs.h. */
5671
5672 int
5673 main ()
5674 {
5675
5676 ;
5677 return 0;
5678 }
5679 _ACEOF
5680 # Make sure it works both with $CC and with simple cc.
5681 # We do the test twice because some compilers refuse to overwrite an
5682 # existing .o file with -o, though they will create one.
5683 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5684 rm -f conftest2.*
5685 if { { case "(($ac_try" in
5686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5687 *) ac_try_echo=$ac_try;;
5688 esac
5689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5690 $as_echo "$ac_try_echo"; } >&5
5691 (eval "$ac_try") 2>&5
5692 ac_status=$?
5693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5694 test $ac_status = 0; } &&
5695 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5697 *) ac_try_echo=$ac_try;;
5698 esac
5699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5700 $as_echo "$ac_try_echo"; } >&5
5701 (eval "$ac_try") 2>&5
5702 ac_status=$?
5703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5704 test $ac_status = 0; };
5705 then
5706 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5707 if test "x$CC" != xcc; then
5708 # Test first that cc exists at all.
5709 if { ac_try='cc -c conftest.$ac_ext >&5'
5710 { { case "(($ac_try" in
5711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5712 *) ac_try_echo=$ac_try;;
5713 esac
5714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5715 $as_echo "$ac_try_echo"; } >&5
5716 (eval "$ac_try") 2>&5
5717 ac_status=$?
5718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5719 test $ac_status = 0; }; }; then
5720 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5721 rm -f conftest2.*
5722 if { { case "(($ac_try" in
5723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5724 *) ac_try_echo=$ac_try;;
5725 esac
5726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5727 $as_echo "$ac_try_echo"; } >&5
5728 (eval "$ac_try") 2>&5
5729 ac_status=$?
5730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5731 test $ac_status = 0; } &&
5732 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5734 *) ac_try_echo=$ac_try;;
5735 esac
5736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5737 $as_echo "$ac_try_echo"; } >&5
5738 (eval "$ac_try") 2>&5
5739 ac_status=$?
5740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5741 test $ac_status = 0; };
5742 then
5743 # cc works too.
5744 :
5745 else
5746 # cc exists but doesn't like -o.
5747 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5748 fi
5749 fi
5750 fi
5751 else
5752 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5753 fi
5754 rm -f core conftest*
5755
5756 fi
5757 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5759 $as_echo "yes" >&6; }
5760 else
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5762 $as_echo "no" >&6; }
5763
5764 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5765
5766 fi
5767
5768 # FIXME: we rely on the cache variable name because
5769 # there is no other way.
5770 set dummy $CC
5771 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5772 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5773 if test "$am_t" != yes; then
5774 # Losing compiler, so override with the script.
5775 # FIXME: It is wrong to rewrite CC.
5776 # But if we don't then we get into trouble of one sort or another.
5777 # A longer-term fix would be to have automake use am__CC in this case,
5778 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5779 CC="$am_aux_dir/compile $CC"
5780 fi
5781
5782
5783
5784 # Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC.
5785 if test "x$GCC" = "xyes"; then
5786 AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring"
5787 ## We like to use C11 and C99 routines when available. This makes
5788 ## sure that
5789 ## __STDC_VERSION__ is set such that libc includes make them available.
5790 AM_CFLAGS="-std=gnu11 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -Werror=implicit-function-declaration -Werror=vla"
5791 ## Compile the following tests with the same system header contents
5792 ## that we'll encounter when compiling our own source files.
5793 CFLAGS="-std=gnu11 $CFLAGS"
5794 fi
5795
5796 # Add CET specific flags if CET is enabled
5797 # Check whether --enable-cet was given.
5798 if test "${enable_cet+set}" = set; then :
5799 enableval=$enable_cet;
5800 case "$enableval" in
5801 yes|no|auto) ;;
5802 *) as_fn_error "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
5803 esac
5804
5805 else
5806 enable_cet=no
5807 fi
5808
5809
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
5811 $as_echo_n "checking for CET support... " >&6; }
5812
5813 case "$host" in
5814 i[34567]86-*-linux* | x86_64-*-linux*)
5815 case "$enable_cet" in
5816 auto)
5817 # Check if target supports multi-byte NOPs
5818 # and if assembler supports CET insn.
5819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5820 /* end confdefs.h. */
5821
5822 int
5823 main ()
5824 {
5825
5826 #if !defined(__SSE2__)
5827 #error target does not support multi-byte NOPs
5828 #else
5829 asm ("setssbsy");
5830 #endif
5831
5832 ;
5833 return 0;
5834 }
5835 _ACEOF
5836 if ac_fn_c_try_compile "$LINENO"; then :
5837 enable_cet=yes
5838 else
5839 enable_cet=no
5840 fi
5841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5842 ;;
5843 yes)
5844 # Check if assembler supports CET.
5845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5846 /* end confdefs.h. */
5847
5848 int
5849 main ()
5850 {
5851 asm ("setssbsy");
5852 ;
5853 return 0;
5854 }
5855 _ACEOF
5856 if ac_fn_c_try_compile "$LINENO"; then :
5857
5858 else
5859 as_fn_error "assembler with CET support is required for --enable-cet" "$LINENO" 5
5860 fi
5861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5862 ;;
5863 esac
5864 ;;
5865 *)
5866 enable_cet=no
5867 ;;
5868 esac
5869 if test x$enable_cet = xyes; then
5870 CET_FLAGS="-fcf-protection -mshstk"
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5872 $as_echo "yes" >&6; }
5873 else
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5875 $as_echo "no" >&6; }
5876 fi
5877
5878 AM_FCFLAGS="$AM_FCFLAGS $CET_FLAGS"
5879 AM_CFLAGS="$AM_CFLAGS $CET_FLAGS"
5880 CFLAGS="$CFLAGS $CET_FLAGS"
5881
5882
5883
5884
5885
5886 # Check for symbol versioning (copied from libssp).
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
5888 $as_echo_n "checking whether symbol versioning is supported... " >&6; }
5889 # Check whether --enable-symvers was given.
5890 if test "${enable_symvers+set}" = set; then :
5891 enableval=$enable_symvers; gfortran_use_symver=$enableval
5892 else
5893 gfortran_use_symver=yes
5894 fi
5895
5896 if test "x$gfortran_use_symver" != xno; then
5897 save_LDFLAGS="$LDFLAGS"
5898 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
5899 cat > conftest.map <<EOF
5900 FOO_1.0 {
5901 global: *foo*; bar; local: *;
5902 };
5903 EOF
5904 if test x$gcc_no_link = xyes; then
5905 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5906 fi
5907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5908 /* end confdefs.h. */
5909 int foo;
5910 int
5911 main ()
5912 {
5913
5914 ;
5915 return 0;
5916 }
5917 _ACEOF
5918 if ac_fn_c_try_link "$LINENO"; then :
5919 gfortran_use_symver=gnu
5920 else
5921 gfortran_use_symver=no
5922 fi
5923 rm -f core conftest.err conftest.$ac_objext \
5924 conftest$ac_exeext conftest.$ac_ext
5925 if test x$gfortran_use_symver = xno; then
5926 case "$target_os" in
5927 solaris2*)
5928 LDFLAGS="$save_LDFLAGS"
5929 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
5930 # Sun ld cannot handle wildcards and treats all entries as undefined.
5931 cat > conftest.map <<EOF
5932 FOO_1.0 {
5933 global: foo; local: *;
5934 };
5935 EOF
5936 if test x$gcc_no_link = xyes; then
5937 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5938 fi
5939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5940 /* end confdefs.h. */
5941 int foo;
5942 int
5943 main ()
5944 {
5945
5946 ;
5947 return 0;
5948 }
5949 _ACEOF
5950 if ac_fn_c_try_link "$LINENO"; then :
5951 gfortran_use_symver=sun
5952 else
5953 gfortran_use_symver=no
5954 fi
5955 rm -f core conftest.err conftest.$ac_objext \
5956 conftest$ac_exeext conftest.$ac_ext
5957 ;;
5958 esac
5959 fi
5960 LDFLAGS="$save_LDFLAGS"
5961 fi
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gfortran_use_symver" >&5
5963 $as_echo "$gfortran_use_symver" >&6; }
5964 if test "x$gfortran_use_symver" != xno; then
5965 LIBGFOR_USE_SYMVER_TRUE=
5966 LIBGFOR_USE_SYMVER_FALSE='#'
5967 else
5968 LIBGFOR_USE_SYMVER_TRUE='#'
5969 LIBGFOR_USE_SYMVER_FALSE=
5970 fi
5971
5972 if test "x$gfortran_use_symver" = xgnu; then
5973 LIBGFOR_USE_SYMVER_GNU_TRUE=
5974 LIBGFOR_USE_SYMVER_GNU_FALSE='#'
5975 else
5976 LIBGFOR_USE_SYMVER_GNU_TRUE='#'
5977 LIBGFOR_USE_SYMVER_GNU_FALSE=
5978 fi
5979
5980 if test "x$gfortran_use_symver" = xsun; then
5981 LIBGFOR_USE_SYMVER_SUN_TRUE=
5982 LIBGFOR_USE_SYMVER_SUN_FALSE='#'
5983 else
5984 LIBGFOR_USE_SYMVER_SUN_TRUE='#'
5985 LIBGFOR_USE_SYMVER_SUN_FALSE=
5986 fi
5987
5988
5989 # For GPU offloading, not everything in libfortran can be supported.
5990 # Currently, the only target that has this problem is nvptx. The
5991 # following is a (partial) list of features that are unsupportable on
5992 # this particular target:
5993 # * Constructors
5994 # * alloca
5995 # * C library support for I/O, with printf as the one notable exception
5996 # * C library support for other features such as signal, environment
5997 # variables, time functions
5998
5999 if test "x${target_cpu}" = xnvptx; then
6000 LIBGFOR_MINIMAL_TRUE=
6001 LIBGFOR_MINIMAL_FALSE='#'
6002 else
6003 LIBGFOR_MINIMAL_TRUE='#'
6004 LIBGFOR_MINIMAL_FALSE=
6005 fi
6006
6007
6008 # Figure out whether the compiler supports "-ffunction-sections -fdata-sections",
6009 # similarly to how libstdc++ does it
6010 ac_test_CFLAGS="${CFLAGS+set}"
6011 ac_save_CFLAGS="$CFLAGS"
6012
6013 # Check for -ffunction-sections -fdata-sections
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc that supports -ffunction-sections -fdata-sections" >&5
6015 $as_echo_n "checking for gcc that supports -ffunction-sections -fdata-sections... " >&6; }
6016 CFLAGS='-Werror -ffunction-sections -fdata-sections'
6017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6018 /* end confdefs.h. */
6019
6020 int
6021 main ()
6022 {
6023 int foo;
6024 ;
6025 return 0;
6026 }
6027 _ACEOF
6028 if ac_fn_c_try_compile "$LINENO"; then :
6029 ac_fdsections=yes
6030 else
6031 ac_fdsections=no
6032 fi
6033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6034 if test "$ac_test_CFLAGS" = set; then
6035 CFLAGS="$ac_save_CFLAGS"
6036 else
6037 # this is the suspicious part
6038 CFLAGS=""
6039 fi
6040 if test x"$ac_fdsections" = x"yes"; then
6041 SECTION_FLAGS='-ffunction-sections -fdata-sections'
6042 fi
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
6044 $as_echo "$ac_fdsections" >&6; }
6045
6046
6047 # Check linker hardware capability support.
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6049 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6050 if test "${ac_cv_path_SED+set}" = set; then :
6051 $as_echo_n "(cached) " >&6
6052 else
6053 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6054 for ac_i in 1 2 3 4 5 6 7; do
6055 ac_script="$ac_script$as_nl$ac_script"
6056 done
6057 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6058 { ac_script=; unset ac_script;}
6059 if test -z "$SED"; then
6060 ac_path_SED_found=false
6061 # Loop through the user's path and test for each of PROGNAME-LIST
6062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063 for as_dir in $PATH
6064 do
6065 IFS=$as_save_IFS
6066 test -z "$as_dir" && as_dir=.
6067 for ac_prog in sed gsed; do
6068 for ac_exec_ext in '' $ac_executable_extensions; do
6069 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6070 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6071 # Check for GNU ac_path_SED and select it if it is found.
6072 # Check for GNU $ac_path_SED
6073 case `"$ac_path_SED" --version 2>&1` in
6074 *GNU*)
6075 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6076 *)
6077 ac_count=0
6078 $as_echo_n 0123456789 >"conftest.in"
6079 while :
6080 do
6081 cat "conftest.in" "conftest.in" >"conftest.tmp"
6082 mv "conftest.tmp" "conftest.in"
6083 cp "conftest.in" "conftest.nl"
6084 $as_echo '' >> "conftest.nl"
6085 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6086 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6087 as_fn_arith $ac_count + 1 && ac_count=$as_val
6088 if test $ac_count -gt ${ac_path_SED_max-0}; then
6089 # Best one so far, save it but keep looking for a better one
6090 ac_cv_path_SED="$ac_path_SED"
6091 ac_path_SED_max=$ac_count
6092 fi
6093 # 10*(2^10) chars as input seems more than enough
6094 test $ac_count -gt 10 && break
6095 done
6096 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6097 esac
6098
6099 $ac_path_SED_found && break 3
6100 done
6101 done
6102 done
6103 IFS=$as_save_IFS
6104 if test -z "$ac_cv_path_SED"; then
6105 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6106 fi
6107 else
6108 ac_cv_path_SED=$SED
6109 fi
6110
6111 fi
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6113 $as_echo "$ac_cv_path_SED" >&6; }
6114 SED="$ac_cv_path_SED"
6115 rm -f conftest.sed
6116
6117 test -z "$SED" && SED=sed
6118 Xsed="$SED -e 1s/^X//"
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6131 $as_echo_n "checking for fgrep... " >&6; }
6132 if test "${ac_cv_path_FGREP+set}" = set; then :
6133 $as_echo_n "(cached) " >&6
6134 else
6135 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6136 then ac_cv_path_FGREP="$GREP -F"
6137 else
6138 if test -z "$FGREP"; then
6139 ac_path_FGREP_found=false
6140 # Loop through the user's path and test for each of PROGNAME-LIST
6141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6142 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6143 do
6144 IFS=$as_save_IFS
6145 test -z "$as_dir" && as_dir=.
6146 for ac_prog in fgrep; do
6147 for ac_exec_ext in '' $ac_executable_extensions; do
6148 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6149 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6150 # Check for GNU ac_path_FGREP and select it if it is found.
6151 # Check for GNU $ac_path_FGREP
6152 case `"$ac_path_FGREP" --version 2>&1` in
6153 *GNU*)
6154 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6155 *)
6156 ac_count=0
6157 $as_echo_n 0123456789 >"conftest.in"
6158 while :
6159 do
6160 cat "conftest.in" "conftest.in" >"conftest.tmp"
6161 mv "conftest.tmp" "conftest.in"
6162 cp "conftest.in" "conftest.nl"
6163 $as_echo 'FGREP' >> "conftest.nl"
6164 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6165 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6166 as_fn_arith $ac_count + 1 && ac_count=$as_val
6167 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6168 # Best one so far, save it but keep looking for a better one
6169 ac_cv_path_FGREP="$ac_path_FGREP"
6170 ac_path_FGREP_max=$ac_count
6171 fi
6172 # 10*(2^10) chars as input seems more than enough
6173 test $ac_count -gt 10 && break
6174 done
6175 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6176 esac
6177
6178 $ac_path_FGREP_found && break 3
6179 done
6180 done
6181 done
6182 IFS=$as_save_IFS
6183 if test -z "$ac_cv_path_FGREP"; then
6184 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6185 fi
6186 else
6187 ac_cv_path_FGREP=$FGREP
6188 fi
6189
6190 fi
6191 fi
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6193 $as_echo "$ac_cv_path_FGREP" >&6; }
6194 FGREP="$ac_cv_path_FGREP"
6195
6196
6197 test -z "$GREP" && GREP=grep
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6216 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6217 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6218
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6220 $as_echo_n "checking how to print strings... " >&6; }
6221 # Test print first, because it will be a builtin if present.
6222 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6223 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6224 ECHO='print -r --'
6225 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6226 ECHO='printf %s\n'
6227 else
6228 # Use this function as a fallback that always works.
6229 func_fallback_echo ()
6230 {
6231 eval 'cat <<_LTECHO_EOF
6232 $1
6233 _LTECHO_EOF'
6234 }
6235 ECHO='func_fallback_echo'
6236 fi
6237
6238 # func_echo_all arg...
6239 # Invoke $ECHO with all args, space-separated.
6240 func_echo_all ()
6241 {
6242 $ECHO ""
6243 }
6244
6245 case "$ECHO" in
6246 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6247 $as_echo "printf" >&6; } ;;
6248 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6249 $as_echo "print -r" >&6; } ;;
6250 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6251 $as_echo "cat" >&6; } ;;
6252 esac
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269 # Check whether --with-gnu-ld was given.
6270 if test "${with_gnu_ld+set}" = set; then :
6271 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6272 else
6273 with_gnu_ld=no
6274 fi
6275
6276 ac_prog=ld
6277 if test "$GCC" = yes; then
6278 # Check if gcc -print-prog-name=ld gives a path.
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6280 $as_echo_n "checking for ld used by $CC... " >&6; }
6281 case $host in
6282 *-*-mingw*)
6283 # gcc leaves a trailing carriage return which upsets mingw
6284 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6285 *)
6286 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6287 esac
6288 case $ac_prog in
6289 # Accept absolute paths.
6290 [\\/]* | ?:[\\/]*)
6291 re_direlt='/[^/][^/]*/\.\./'
6292 # Canonicalize the pathname of ld
6293 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6294 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6295 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6296 done
6297 test -z "$LD" && LD="$ac_prog"
6298 ;;
6299 "")
6300 # If it fails, then pretend we aren't using GCC.
6301 ac_prog=ld
6302 ;;
6303 *)
6304 # If it is relative, then search for the first ld in PATH.
6305 with_gnu_ld=unknown
6306 ;;
6307 esac
6308 elif test "$with_gnu_ld" = yes; then
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6310 $as_echo_n "checking for GNU ld... " >&6; }
6311 else
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6313 $as_echo_n "checking for non-GNU ld... " >&6; }
6314 fi
6315 if test "${lt_cv_path_LD+set}" = set; then :
6316 $as_echo_n "(cached) " >&6
6317 else
6318 if test -z "$LD"; then
6319 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6320 for ac_dir in $PATH; do
6321 IFS="$lt_save_ifs"
6322 test -z "$ac_dir" && ac_dir=.
6323 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6324 lt_cv_path_LD="$ac_dir/$ac_prog"
6325 # Check to see if the program is GNU ld. I'd rather use --version,
6326 # but apparently some variants of GNU ld only accept -v.
6327 # Break only if it was the GNU/non-GNU ld that we prefer.
6328 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6329 *GNU* | *'with BFD'*)
6330 test "$with_gnu_ld" != no && break
6331 ;;
6332 *)
6333 test "$with_gnu_ld" != yes && break
6334 ;;
6335 esac
6336 fi
6337 done
6338 IFS="$lt_save_ifs"
6339 else
6340 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6341 fi
6342 fi
6343
6344 LD="$lt_cv_path_LD"
6345 if test -n "$LD"; then
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6347 $as_echo "$LD" >&6; }
6348 else
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6350 $as_echo "no" >&6; }
6351 fi
6352 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6354 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6355 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6356 $as_echo_n "(cached) " >&6
6357 else
6358 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6359 case `$LD -v 2>&1 </dev/null` in
6360 *GNU* | *'with BFD'*)
6361 lt_cv_prog_gnu_ld=yes
6362 ;;
6363 *)
6364 lt_cv_prog_gnu_ld=no
6365 ;;
6366 esac
6367 fi
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6369 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6370 with_gnu_ld=$lt_cv_prog_gnu_ld
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381 test -z "$HWCAP_LDFLAGS" && HWCAP_LDFLAGS=''
6382
6383
6384 ac_save_LDFLAGS="$LDFLAGS"
6385 LDFLAGS="$LFLAGS -mclear-hwcap"
6386
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -mclear-hwcap" >&5
6388 $as_echo_n "checking for -mclear-hwcap... " >&6; }
6389 if test x$gcc_no_link = xyes; then
6390 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6391 fi
6392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6393 /* end confdefs.h. */
6394
6395 int
6396 main ()
6397 {
6398 return 0;
6399 ;
6400 return 0;
6401 }
6402 _ACEOF
6403 if ac_fn_c_try_link "$LINENO"; then :
6404 ac_hwcap_ldflags=yes
6405 else
6406 ac_hwcap_ldflags=no
6407 fi
6408 rm -f core conftest.err conftest.$ac_objext \
6409 conftest$ac_exeext conftest.$ac_ext
6410 if test "$ac_hwcap_ldflags" = "yes"; then
6411 HWCAP_LDFLAGS="-mclear-hwcap $HWCAP_LDFLAGS"
6412 fi
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_ldflags" >&5
6414 $as_echo "$ac_hwcap_ldflags" >&6; }
6415
6416 LDFLAGS="$ac_save_LDFLAGS"
6417
6418
6419
6420 if test $ac_hwcap_ldflags != no; then
6421 HAVE_HWCAP_TRUE=
6422 HAVE_HWCAP_FALSE='#'
6423 else
6424 HAVE_HWCAP_TRUE='#'
6425 HAVE_HWCAP_FALSE=
6426 fi
6427
6428
6429
6430 # Find other programs we need.
6431 if test -n "$ac_tool_prefix"; then
6432 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6433 set dummy ${ac_tool_prefix}as; ac_word=$2
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6435 $as_echo_n "checking for $ac_word... " >&6; }
6436 if test "${ac_cv_prog_AS+set}" = set; then :
6437 $as_echo_n "(cached) " >&6
6438 else
6439 if test -n "$AS"; then
6440 ac_cv_prog_AS="$AS" # Let the user override the test.
6441 else
6442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6443 for as_dir in $PATH
6444 do
6445 IFS=$as_save_IFS
6446 test -z "$as_dir" && as_dir=.
6447 for ac_exec_ext in '' $ac_executable_extensions; do
6448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6449 ac_cv_prog_AS="${ac_tool_prefix}as"
6450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6451 break 2
6452 fi
6453 done
6454 done
6455 IFS=$as_save_IFS
6456
6457 fi
6458 fi
6459 AS=$ac_cv_prog_AS
6460 if test -n "$AS"; then
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
6462 $as_echo "$AS" >&6; }
6463 else
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6465 $as_echo "no" >&6; }
6466 fi
6467
6468
6469 fi
6470 if test -z "$ac_cv_prog_AS"; then
6471 ac_ct_AS=$AS
6472 # Extract the first word of "as", so it can be a program name with args.
6473 set dummy as; ac_word=$2
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6475 $as_echo_n "checking for $ac_word... " >&6; }
6476 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
6477 $as_echo_n "(cached) " >&6
6478 else
6479 if test -n "$ac_ct_AS"; then
6480 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6481 else
6482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6483 for as_dir in $PATH
6484 do
6485 IFS=$as_save_IFS
6486 test -z "$as_dir" && as_dir=.
6487 for ac_exec_ext in '' $ac_executable_extensions; do
6488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6489 ac_cv_prog_ac_ct_AS="as"
6490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6491 break 2
6492 fi
6493 done
6494 done
6495 IFS=$as_save_IFS
6496
6497 fi
6498 fi
6499 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6500 if test -n "$ac_ct_AS"; then
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
6502 $as_echo "$ac_ct_AS" >&6; }
6503 else
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6505 $as_echo "no" >&6; }
6506 fi
6507
6508 if test "x$ac_ct_AS" = x; then
6509 AS=""
6510 else
6511 case $cross_compiling:$ac_tool_warned in
6512 yes:)
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6514 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6515 ac_tool_warned=yes ;;
6516 esac
6517 AS=$ac_ct_AS
6518 fi
6519 else
6520 AS="$ac_cv_prog_AS"
6521 fi
6522
6523 if test -n "$ac_tool_prefix"; then
6524 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6525 set dummy ${ac_tool_prefix}ar; ac_word=$2
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6527 $as_echo_n "checking for $ac_word... " >&6; }
6528 if test "${ac_cv_prog_AR+set}" = set; then :
6529 $as_echo_n "(cached) " >&6
6530 else
6531 if test -n "$AR"; then
6532 ac_cv_prog_AR="$AR" # Let the user override the test.
6533 else
6534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535 for as_dir in $PATH
6536 do
6537 IFS=$as_save_IFS
6538 test -z "$as_dir" && as_dir=.
6539 for ac_exec_ext in '' $ac_executable_extensions; do
6540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6541 ac_cv_prog_AR="${ac_tool_prefix}ar"
6542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6543 break 2
6544 fi
6545 done
6546 done
6547 IFS=$as_save_IFS
6548
6549 fi
6550 fi
6551 AR=$ac_cv_prog_AR
6552 if test -n "$AR"; then
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6554 $as_echo "$AR" >&6; }
6555 else
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6557 $as_echo "no" >&6; }
6558 fi
6559
6560
6561 fi
6562 if test -z "$ac_cv_prog_AR"; then
6563 ac_ct_AR=$AR
6564 # Extract the first word of "ar", so it can be a program name with args.
6565 set dummy ar; ac_word=$2
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6567 $as_echo_n "checking for $ac_word... " >&6; }
6568 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6569 $as_echo_n "(cached) " >&6
6570 else
6571 if test -n "$ac_ct_AR"; then
6572 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6573 else
6574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575 for as_dir in $PATH
6576 do
6577 IFS=$as_save_IFS
6578 test -z "$as_dir" && as_dir=.
6579 for ac_exec_ext in '' $ac_executable_extensions; do
6580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6581 ac_cv_prog_ac_ct_AR="ar"
6582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6583 break 2
6584 fi
6585 done
6586 done
6587 IFS=$as_save_IFS
6588
6589 fi
6590 fi
6591 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6592 if test -n "$ac_ct_AR"; then
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6594 $as_echo "$ac_ct_AR" >&6; }
6595 else
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6597 $as_echo "no" >&6; }
6598 fi
6599
6600 if test "x$ac_ct_AR" = x; then
6601 AR=""
6602 else
6603 case $cross_compiling:$ac_tool_warned in
6604 yes:)
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6606 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6607 ac_tool_warned=yes ;;
6608 esac
6609 AR=$ac_ct_AR
6610 fi
6611 else
6612 AR="$ac_cv_prog_AR"
6613 fi
6614
6615 if test -n "$ac_tool_prefix"; then
6616 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6617 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6619 $as_echo_n "checking for $ac_word... " >&6; }
6620 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6621 $as_echo_n "(cached) " >&6
6622 else
6623 if test -n "$RANLIB"; then
6624 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6625 else
6626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627 for as_dir in $PATH
6628 do
6629 IFS=$as_save_IFS
6630 test -z "$as_dir" && as_dir=.
6631 for ac_exec_ext in '' $ac_executable_extensions; do
6632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6633 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6635 break 2
6636 fi
6637 done
6638 done
6639 IFS=$as_save_IFS
6640
6641 fi
6642 fi
6643 RANLIB=$ac_cv_prog_RANLIB
6644 if test -n "$RANLIB"; then
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6646 $as_echo "$RANLIB" >&6; }
6647 else
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6649 $as_echo "no" >&6; }
6650 fi
6651
6652
6653 fi
6654 if test -z "$ac_cv_prog_RANLIB"; then
6655 ac_ct_RANLIB=$RANLIB
6656 # Extract the first word of "ranlib", so it can be a program name with args.
6657 set dummy ranlib; ac_word=$2
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6659 $as_echo_n "checking for $ac_word... " >&6; }
6660 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6661 $as_echo_n "(cached) " >&6
6662 else
6663 if test -n "$ac_ct_RANLIB"; then
6664 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6665 else
6666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667 for as_dir in $PATH
6668 do
6669 IFS=$as_save_IFS
6670 test -z "$as_dir" && as_dir=.
6671 for ac_exec_ext in '' $ac_executable_extensions; do
6672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6673 ac_cv_prog_ac_ct_RANLIB="ranlib"
6674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6675 break 2
6676 fi
6677 done
6678 done
6679 IFS=$as_save_IFS
6680
6681 fi
6682 fi
6683 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6684 if test -n "$ac_ct_RANLIB"; then
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6686 $as_echo "$ac_ct_RANLIB" >&6; }
6687 else
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6689 $as_echo "no" >&6; }
6690 fi
6691
6692 if test "x$ac_ct_RANLIB" = x; then
6693 RANLIB="ranlib-not-found-in-path-error"
6694 else
6695 case $cross_compiling:$ac_tool_warned in
6696 yes:)
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6699 ac_tool_warned=yes ;;
6700 esac
6701 RANLIB=$ac_ct_RANLIB
6702 fi
6703 else
6704 RANLIB="$ac_cv_prog_RANLIB"
6705 fi
6706
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6708 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6709 set x ${MAKE-make}
6710 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6711 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6712 $as_echo_n "(cached) " >&6
6713 else
6714 cat >conftest.make <<\_ACEOF
6715 SHELL = /bin/sh
6716 all:
6717 @echo '@@@%%%=$(MAKE)=@@@%%%'
6718 _ACEOF
6719 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6720 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6721 *@@@%%%=?*=@@@%%%*)
6722 eval ac_cv_prog_make_${ac_make}_set=yes;;
6723 *)
6724 eval ac_cv_prog_make_${ac_make}_set=no;;
6725 esac
6726 rm -f conftest.make
6727 fi
6728 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6730 $as_echo "yes" >&6; }
6731 SET_MAKE=
6732 else
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6734 $as_echo "no" >&6; }
6735 SET_MAKE="MAKE=${MAKE-make}"
6736 fi
6737
6738
6739
6740 # Configure libtool
6741 #AC_MSG_NOTICE([====== Starting libtool configuration])
6742 enable_dlopen=yes
6743
6744
6745
6746 case `pwd` in
6747 *\ * | *\ *)
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6749 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6750 esac
6751
6752
6753
6754 macro_version='2.2.7a'
6755 macro_revision='1.3134'
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769 ltmain="$ac_aux_dir/ltmain.sh"
6770
6771 # Backslashify metacharacters that are still active within
6772 # double-quoted strings.
6773 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6774
6775 # Same as above, but do not quote variable references.
6776 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6777
6778 # Sed substitution to delay expansion of an escaped shell variable in a
6779 # double_quote_subst'ed string.
6780 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6781
6782 # Sed substitution to delay expansion of an escaped single quote.
6783 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6784
6785 # Sed substitution to avoid accidental globbing in evaled expressions
6786 no_glob_subst='s/\*/\\\*/g'
6787
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6789 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6790 if test "${lt_cv_path_NM+set}" = set; then :
6791 $as_echo_n "(cached) " >&6
6792 else
6793 if test -n "$NM"; then
6794 # Let the user override the test.
6795 lt_cv_path_NM="$NM"
6796 else
6797 lt_nm_to_check="${ac_tool_prefix}nm"
6798 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6799 lt_nm_to_check="$lt_nm_to_check nm"
6800 fi
6801 for lt_tmp_nm in $lt_nm_to_check; do
6802 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6803 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6804 IFS="$lt_save_ifs"
6805 test -z "$ac_dir" && ac_dir=.
6806 tmp_nm="$ac_dir/$lt_tmp_nm"
6807 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6808 # Check to see if the nm accepts a BSD-compat flag.
6809 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6810 # nm: unknown option "B" ignored
6811 # Tru64's nm complains that /dev/null is an invalid object file
6812 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6813 */dev/null* | *'Invalid file or object type'*)
6814 lt_cv_path_NM="$tmp_nm -B"
6815 break
6816 ;;
6817 *)
6818 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6819 */dev/null*)
6820 lt_cv_path_NM="$tmp_nm -p"
6821 break
6822 ;;
6823 *)
6824 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6825 continue # so that we can try to find one that supports BSD flags
6826 ;;
6827 esac
6828 ;;
6829 esac
6830 fi
6831 done
6832 IFS="$lt_save_ifs"
6833 done
6834 : ${lt_cv_path_NM=no}
6835 fi
6836 fi
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6838 $as_echo "$lt_cv_path_NM" >&6; }
6839 if test "$lt_cv_path_NM" != "no"; then
6840 NM="$lt_cv_path_NM"
6841 else
6842 # Didn't find any BSD compatible name lister, look for dumpbin.
6843 if test -n "$DUMPBIN"; then :
6844 # Let the user override the test.
6845 else
6846 if test -n "$ac_tool_prefix"; then
6847 for ac_prog in dumpbin "link -dump"
6848 do
6849 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6850 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6852 $as_echo_n "checking for $ac_word... " >&6; }
6853 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6854 $as_echo_n "(cached) " >&6
6855 else
6856 if test -n "$DUMPBIN"; then
6857 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6858 else
6859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860 for as_dir in $PATH
6861 do
6862 IFS=$as_save_IFS
6863 test -z "$as_dir" && as_dir=.
6864 for ac_exec_ext in '' $ac_executable_extensions; do
6865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6866 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6868 break 2
6869 fi
6870 done
6871 done
6872 IFS=$as_save_IFS
6873
6874 fi
6875 fi
6876 DUMPBIN=$ac_cv_prog_DUMPBIN
6877 if test -n "$DUMPBIN"; then
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6879 $as_echo "$DUMPBIN" >&6; }
6880 else
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6882 $as_echo "no" >&6; }
6883 fi
6884
6885
6886 test -n "$DUMPBIN" && break
6887 done
6888 fi
6889 if test -z "$DUMPBIN"; then
6890 ac_ct_DUMPBIN=$DUMPBIN
6891 for ac_prog in dumpbin "link -dump"
6892 do
6893 # Extract the first word of "$ac_prog", so it can be a program name with args.
6894 set dummy $ac_prog; ac_word=$2
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6896 $as_echo_n "checking for $ac_word... " >&6; }
6897 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6898 $as_echo_n "(cached) " >&6
6899 else
6900 if test -n "$ac_ct_DUMPBIN"; then
6901 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6902 else
6903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6904 for as_dir in $PATH
6905 do
6906 IFS=$as_save_IFS
6907 test -z "$as_dir" && as_dir=.
6908 for ac_exec_ext in '' $ac_executable_extensions; do
6909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6910 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6912 break 2
6913 fi
6914 done
6915 done
6916 IFS=$as_save_IFS
6917
6918 fi
6919 fi
6920 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6921 if test -n "$ac_ct_DUMPBIN"; then
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6923 $as_echo "$ac_ct_DUMPBIN" >&6; }
6924 else
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6926 $as_echo "no" >&6; }
6927 fi
6928
6929
6930 test -n "$ac_ct_DUMPBIN" && break
6931 done
6932
6933 if test "x$ac_ct_DUMPBIN" = x; then
6934 DUMPBIN=":"
6935 else
6936 case $cross_compiling:$ac_tool_warned in
6937 yes:)
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6939 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6940 ac_tool_warned=yes ;;
6941 esac
6942 DUMPBIN=$ac_ct_DUMPBIN
6943 fi
6944 fi
6945
6946 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6947 *COFF*)
6948 DUMPBIN="$DUMPBIN -symbols"
6949 ;;
6950 *)
6951 DUMPBIN=:
6952 ;;
6953 esac
6954 fi
6955
6956 if test "$DUMPBIN" != ":"; then
6957 NM="$DUMPBIN"
6958 fi
6959 fi
6960 test -z "$NM" && NM=nm
6961
6962
6963
6964
6965
6966
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6968 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6969 if test "${lt_cv_nm_interface+set}" = set; then :
6970 $as_echo_n "(cached) " >&6
6971 else
6972 lt_cv_nm_interface="BSD nm"
6973 echo "int some_variable = 0;" > conftest.$ac_ext
6974 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6975 (eval "$ac_compile" 2>conftest.err)
6976 cat conftest.err >&5
6977 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6978 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6979 cat conftest.err >&5
6980 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6981 cat conftest.out >&5
6982 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6983 lt_cv_nm_interface="MS dumpbin"
6984 fi
6985 rm -f conftest*
6986 fi
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6988 $as_echo "$lt_cv_nm_interface" >&6; }
6989
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6991 $as_echo_n "checking whether ln -s works... " >&6; }
6992 LN_S=$as_ln_s
6993 if test "$LN_S" = "ln -s"; then
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6995 $as_echo "yes" >&6; }
6996 else
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6998 $as_echo "no, using $LN_S" >&6; }
6999 fi
7000
7001 # find the maximum length of command line arguments
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7003 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7004 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
7005 $as_echo_n "(cached) " >&6
7006 else
7007 i=0
7008 teststring="ABCD"
7009
7010 case $build_os in
7011 msdosdjgpp*)
7012 # On DJGPP, this test can blow up pretty badly due to problems in libc
7013 # (any single argument exceeding 2000 bytes causes a buffer overrun
7014 # during glob expansion). Even if it were fixed, the result of this
7015 # check would be larger than it should be.
7016 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7017 ;;
7018
7019 gnu*)
7020 # Under GNU Hurd, this test is not required because there is
7021 # no limit to the length of command line arguments.
7022 # Libtool will interpret -1 as no limit whatsoever
7023 lt_cv_sys_max_cmd_len=-1;
7024 ;;
7025
7026 cygwin* | mingw* | cegcc*)
7027 # On Win9x/ME, this test blows up -- it succeeds, but takes
7028 # about 5 minutes as the teststring grows exponentially.
7029 # Worse, since 9x/ME are not pre-emptively multitasking,
7030 # you end up with a "frozen" computer, even though with patience
7031 # the test eventually succeeds (with a max line length of 256k).
7032 # Instead, let's just punt: use the minimum linelength reported by
7033 # all of the supported platforms: 8192 (on NT/2K/XP).
7034 lt_cv_sys_max_cmd_len=8192;
7035 ;;
7036
7037 mint*)
7038 # On MiNT this can take a long time and run out of memory.
7039 lt_cv_sys_max_cmd_len=8192;
7040 ;;
7041
7042 amigaos*)
7043 # On AmigaOS with pdksh, this test takes hours, literally.
7044 # So we just punt and use a minimum line length of 8192.
7045 lt_cv_sys_max_cmd_len=8192;
7046 ;;
7047
7048 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7049 # This has been around since 386BSD, at least. Likely further.
7050 if test -x /sbin/sysctl; then
7051 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7052 elif test -x /usr/sbin/sysctl; then
7053 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7054 else
7055 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7056 fi
7057 # And add a safety zone
7058 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7059 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7060 ;;
7061
7062 interix*)
7063 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7064 lt_cv_sys_max_cmd_len=196608
7065 ;;
7066
7067 osf*)
7068 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7069 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7070 # nice to cause kernel panics so lets avoid the loop below.
7071 # First set a reasonable default.
7072 lt_cv_sys_max_cmd_len=16384
7073 #
7074 if test -x /sbin/sysconfig; then
7075 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7076 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7077 esac
7078 fi
7079 ;;
7080 sco3.2v5*)
7081 lt_cv_sys_max_cmd_len=102400
7082 ;;
7083 sysv5* | sco5v6* | sysv4.2uw2*)
7084 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7085 if test -n "$kargmax"; then
7086 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7087 else
7088 lt_cv_sys_max_cmd_len=32768
7089 fi
7090 ;;
7091 *)
7092 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7093 if test -n "$lt_cv_sys_max_cmd_len"; then
7094 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7095 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7096 else
7097 # Make teststring a little bigger before we do anything with it.
7098 # a 1K string should be a reasonable start.
7099 for i in 1 2 3 4 5 6 7 8 ; do
7100 teststring=$teststring$teststring
7101 done
7102 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7103 # If test is not a shell built-in, we'll probably end up computing a
7104 # maximum length that is only half of the actual maximum length, but
7105 # we can't tell.
7106 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7107 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7108 test $i != 17 # 1/2 MB should be enough
7109 do
7110 i=`expr $i + 1`
7111 teststring=$teststring$teststring
7112 done
7113 # Only check the string length outside the loop.
7114 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7115 teststring=
7116 # Add a significant safety factor because C++ compilers can tack on
7117 # massive amounts of additional arguments before passing them to the
7118 # linker. It appears as though 1/2 is a usable value.
7119 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7120 fi
7121 ;;
7122 esac
7123
7124 fi
7125
7126 if test -n $lt_cv_sys_max_cmd_len ; then
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7128 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7129 else
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7131 $as_echo "none" >&6; }
7132 fi
7133 max_cmd_len=$lt_cv_sys_max_cmd_len
7134
7135
7136
7137
7138
7139
7140 : ${CP="cp -f"}
7141 : ${MV="mv -f"}
7142 : ${RM="rm -f"}
7143
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7145 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7146 # Try some XSI features
7147 xsi_shell=no
7148 ( _lt_dummy="a/b/c"
7149 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7150 = c,a/b,, \
7151 && eval 'test $(( 1 + 1 )) -eq 2 \
7152 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7153 && xsi_shell=yes
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7155 $as_echo "$xsi_shell" >&6; }
7156
7157
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7159 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7160 lt_shell_append=no
7161 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7162 >/dev/null 2>&1 \
7163 && lt_shell_append=yes
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7165 $as_echo "$lt_shell_append" >&6; }
7166
7167
7168 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7169 lt_unset=unset
7170 else
7171 lt_unset=false
7172 fi
7173
7174
7175
7176
7177
7178 # test EBCDIC or ASCII
7179 case `echo X|tr X '\101'` in
7180 A) # ASCII based system
7181 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7182 lt_SP2NL='tr \040 \012'
7183 lt_NL2SP='tr \015\012 \040\040'
7184 ;;
7185 *) # EBCDIC based system
7186 lt_SP2NL='tr \100 \n'
7187 lt_NL2SP='tr \r\n \100\100'
7188 ;;
7189 esac
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7200 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7201 if test "${lt_cv_ld_reload_flag+set}" = set; then :
7202 $as_echo_n "(cached) " >&6
7203 else
7204 lt_cv_ld_reload_flag='-r'
7205 fi
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7207 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7208 reload_flag=$lt_cv_ld_reload_flag
7209 case $reload_flag in
7210 "" | " "*) ;;
7211 *) reload_flag=" $reload_flag" ;;
7212 esac
7213 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7214 case $host_os in
7215 darwin*)
7216 if test "$GCC" = yes; then
7217 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7218 else
7219 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7220 fi
7221 ;;
7222 esac
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232 if test -n "$ac_tool_prefix"; then
7233 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7234 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7236 $as_echo_n "checking for $ac_word... " >&6; }
7237 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7238 $as_echo_n "(cached) " >&6
7239 else
7240 if test -n "$OBJDUMP"; then
7241 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7242 else
7243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7244 for as_dir in $PATH
7245 do
7246 IFS=$as_save_IFS
7247 test -z "$as_dir" && as_dir=.
7248 for ac_exec_ext in '' $ac_executable_extensions; do
7249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7250 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7252 break 2
7253 fi
7254 done
7255 done
7256 IFS=$as_save_IFS
7257
7258 fi
7259 fi
7260 OBJDUMP=$ac_cv_prog_OBJDUMP
7261 if test -n "$OBJDUMP"; then
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7263 $as_echo "$OBJDUMP" >&6; }
7264 else
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7266 $as_echo "no" >&6; }
7267 fi
7268
7269
7270 fi
7271 if test -z "$ac_cv_prog_OBJDUMP"; then
7272 ac_ct_OBJDUMP=$OBJDUMP
7273 # Extract the first word of "objdump", so it can be a program name with args.
7274 set dummy objdump; ac_word=$2
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7276 $as_echo_n "checking for $ac_word... " >&6; }
7277 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7278 $as_echo_n "(cached) " >&6
7279 else
7280 if test -n "$ac_ct_OBJDUMP"; then
7281 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7282 else
7283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7284 for as_dir in $PATH
7285 do
7286 IFS=$as_save_IFS
7287 test -z "$as_dir" && as_dir=.
7288 for ac_exec_ext in '' $ac_executable_extensions; do
7289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7290 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7292 break 2
7293 fi
7294 done
7295 done
7296 IFS=$as_save_IFS
7297
7298 fi
7299 fi
7300 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7301 if test -n "$ac_ct_OBJDUMP"; then
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7303 $as_echo "$ac_ct_OBJDUMP" >&6; }
7304 else
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7306 $as_echo "no" >&6; }
7307 fi
7308
7309 if test "x$ac_ct_OBJDUMP" = x; then
7310 OBJDUMP="false"
7311 else
7312 case $cross_compiling:$ac_tool_warned in
7313 yes:)
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7315 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7316 ac_tool_warned=yes ;;
7317 esac
7318 OBJDUMP=$ac_ct_OBJDUMP
7319 fi
7320 else
7321 OBJDUMP="$ac_cv_prog_OBJDUMP"
7322 fi
7323
7324 test -z "$OBJDUMP" && OBJDUMP=objdump
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7335 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7336 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7337 $as_echo_n "(cached) " >&6
7338 else
7339 lt_cv_file_magic_cmd='$MAGIC_CMD'
7340 lt_cv_file_magic_test_file=
7341 lt_cv_deplibs_check_method='unknown'
7342 # Need to set the preceding variable on all platforms that support
7343 # interlibrary dependencies.
7344 # 'none' -- dependencies not supported.
7345 # `unknown' -- same as none, but documents that we really don't know.
7346 # 'pass_all' -- all dependencies passed with no checks.
7347 # 'test_compile' -- check by making test program.
7348 # 'file_magic [[regex]]' -- check by looking for files in library path
7349 # which responds to the $file_magic_cmd with a given extended regex.
7350 # If you have `file' or equivalent on your system and you're not sure
7351 # whether `pass_all' will *always* work, you probably want this one.
7352
7353 case $host_os in
7354 aix[4-9]*)
7355 lt_cv_deplibs_check_method=pass_all
7356 ;;
7357
7358 beos*)
7359 lt_cv_deplibs_check_method=pass_all
7360 ;;
7361
7362 bsdi[45]*)
7363 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7364 lt_cv_file_magic_cmd='/usr/bin/file -L'
7365 lt_cv_file_magic_test_file=/shlib/libc.so
7366 ;;
7367
7368 cygwin*)
7369 # func_win32_libid is a shell function defined in ltmain.sh
7370 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7371 lt_cv_file_magic_cmd='func_win32_libid'
7372 ;;
7373
7374 mingw* | pw32*)
7375 # Base MSYS/MinGW do not provide the 'file' command needed by
7376 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7377 # unless we find 'file', for example because we are cross-compiling.
7378 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7379 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7380 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7381 lt_cv_file_magic_cmd='func_win32_libid'
7382 else
7383 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7384 lt_cv_file_magic_cmd='$OBJDUMP -f'
7385 fi
7386 ;;
7387
7388 cegcc*)
7389 # use the weaker test based on 'objdump'. See mingw*.
7390 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7391 lt_cv_file_magic_cmd='$OBJDUMP -f'
7392 ;;
7393
7394 darwin* | rhapsody*)
7395 lt_cv_deplibs_check_method=pass_all
7396 ;;
7397
7398 freebsd* | dragonfly*)
7399 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7400 case $host_cpu in
7401 i*86 )
7402 # Not sure whether the presence of OpenBSD here was a mistake.
7403 # Let's accept both of them until this is cleared up.
7404 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7405 lt_cv_file_magic_cmd=/usr/bin/file
7406 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7407 ;;
7408 esac
7409 else
7410 lt_cv_deplibs_check_method=pass_all
7411 fi
7412 ;;
7413
7414 gnu*)
7415 lt_cv_deplibs_check_method=pass_all
7416 ;;
7417
7418 haiku*)
7419 lt_cv_deplibs_check_method=pass_all
7420 ;;
7421
7422 hpux10.20* | hpux11*)
7423 lt_cv_file_magic_cmd=/usr/bin/file
7424 case $host_cpu in
7425 ia64*)
7426 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7427 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7428 ;;
7429 hppa*64*)
7430 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]'
7431 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7432 ;;
7433 *)
7434 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7435 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7436 ;;
7437 esac
7438 ;;
7439
7440 interix[3-9]*)
7441 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7442 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7443 ;;
7444
7445 irix5* | irix6* | nonstopux*)
7446 case $LD in
7447 *-32|*"-32 ") libmagic=32-bit;;
7448 *-n32|*"-n32 ") libmagic=N32;;
7449 *-64|*"-64 ") libmagic=64-bit;;
7450 *) libmagic=never-match;;
7451 esac
7452 lt_cv_deplibs_check_method=pass_all
7453 ;;
7454
7455 # This must be Linux ELF.
7456 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7457 lt_cv_deplibs_check_method=pass_all
7458 ;;
7459
7460 netbsd*)
7461 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7462 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7463 else
7464 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7465 fi
7466 ;;
7467
7468 newos6*)
7469 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7470 lt_cv_file_magic_cmd=/usr/bin/file
7471 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7472 ;;
7473
7474 *nto* | *qnx*)
7475 lt_cv_deplibs_check_method=pass_all
7476 ;;
7477
7478 openbsd*)
7479 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7480 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7481 else
7482 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7483 fi
7484 ;;
7485
7486 osf3* | osf4* | osf5*)
7487 lt_cv_deplibs_check_method=pass_all
7488 ;;
7489
7490 rdos*)
7491 lt_cv_deplibs_check_method=pass_all
7492 ;;
7493
7494 solaris*)
7495 lt_cv_deplibs_check_method=pass_all
7496 ;;
7497
7498 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7499 lt_cv_deplibs_check_method=pass_all
7500 ;;
7501
7502 sysv4 | sysv4.3*)
7503 case $host_vendor in
7504 motorola)
7505 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]'
7506 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7507 ;;
7508 ncr)
7509 lt_cv_deplibs_check_method=pass_all
7510 ;;
7511 sequent)
7512 lt_cv_file_magic_cmd='/bin/file'
7513 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7514 ;;
7515 sni)
7516 lt_cv_file_magic_cmd='/bin/file'
7517 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7518 lt_cv_file_magic_test_file=/lib/libc.so
7519 ;;
7520 siemens)
7521 lt_cv_deplibs_check_method=pass_all
7522 ;;
7523 pc)
7524 lt_cv_deplibs_check_method=pass_all
7525 ;;
7526 esac
7527 ;;
7528
7529 tpf*)
7530 lt_cv_deplibs_check_method=pass_all
7531 ;;
7532 esac
7533
7534 fi
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7536 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7537 file_magic_cmd=$lt_cv_file_magic_cmd
7538 deplibs_check_method=$lt_cv_deplibs_check_method
7539 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552 if test -n "$ac_tool_prefix"; then
7553 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7554 set dummy ${ac_tool_prefix}ar; ac_word=$2
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7556 $as_echo_n "checking for $ac_word... " >&6; }
7557 if test "${ac_cv_prog_AR+set}" = set; then :
7558 $as_echo_n "(cached) " >&6
7559 else
7560 if test -n "$AR"; then
7561 ac_cv_prog_AR="$AR" # Let the user override the test.
7562 else
7563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7564 for as_dir in $PATH
7565 do
7566 IFS=$as_save_IFS
7567 test -z "$as_dir" && as_dir=.
7568 for ac_exec_ext in '' $ac_executable_extensions; do
7569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7570 ac_cv_prog_AR="${ac_tool_prefix}ar"
7571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7572 break 2
7573 fi
7574 done
7575 done
7576 IFS=$as_save_IFS
7577
7578 fi
7579 fi
7580 AR=$ac_cv_prog_AR
7581 if test -n "$AR"; then
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7583 $as_echo "$AR" >&6; }
7584 else
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7586 $as_echo "no" >&6; }
7587 fi
7588
7589
7590 fi
7591 if test -z "$ac_cv_prog_AR"; then
7592 ac_ct_AR=$AR
7593 # Extract the first word of "ar", so it can be a program name with args.
7594 set dummy ar; ac_word=$2
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7596 $as_echo_n "checking for $ac_word... " >&6; }
7597 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7598 $as_echo_n "(cached) " >&6
7599 else
7600 if test -n "$ac_ct_AR"; then
7601 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7602 else
7603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7604 for as_dir in $PATH
7605 do
7606 IFS=$as_save_IFS
7607 test -z "$as_dir" && as_dir=.
7608 for ac_exec_ext in '' $ac_executable_extensions; do
7609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7610 ac_cv_prog_ac_ct_AR="ar"
7611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7612 break 2
7613 fi
7614 done
7615 done
7616 IFS=$as_save_IFS
7617
7618 fi
7619 fi
7620 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7621 if test -n "$ac_ct_AR"; then
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7623 $as_echo "$ac_ct_AR" >&6; }
7624 else
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7626 $as_echo "no" >&6; }
7627 fi
7628
7629 if test "x$ac_ct_AR" = x; then
7630 AR="false"
7631 else
7632 case $cross_compiling:$ac_tool_warned in
7633 yes:)
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7635 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7636 ac_tool_warned=yes ;;
7637 esac
7638 AR=$ac_ct_AR
7639 fi
7640 else
7641 AR="$ac_cv_prog_AR"
7642 fi
7643
7644 test -z "$AR" && AR=ar
7645 test -z "$AR_FLAGS" && AR_FLAGS=cru
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657 if test -n "$ac_tool_prefix"; then
7658 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7659 set dummy ${ac_tool_prefix}strip; ac_word=$2
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7661 $as_echo_n "checking for $ac_word... " >&6; }
7662 if test "${ac_cv_prog_STRIP+set}" = set; then :
7663 $as_echo_n "(cached) " >&6
7664 else
7665 if test -n "$STRIP"; then
7666 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7667 else
7668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7669 for as_dir in $PATH
7670 do
7671 IFS=$as_save_IFS
7672 test -z "$as_dir" && as_dir=.
7673 for ac_exec_ext in '' $ac_executable_extensions; do
7674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7675 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7677 break 2
7678 fi
7679 done
7680 done
7681 IFS=$as_save_IFS
7682
7683 fi
7684 fi
7685 STRIP=$ac_cv_prog_STRIP
7686 if test -n "$STRIP"; then
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7688 $as_echo "$STRIP" >&6; }
7689 else
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7691 $as_echo "no" >&6; }
7692 fi
7693
7694
7695 fi
7696 if test -z "$ac_cv_prog_STRIP"; then
7697 ac_ct_STRIP=$STRIP
7698 # Extract the first word of "strip", so it can be a program name with args.
7699 set dummy strip; ac_word=$2
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7701 $as_echo_n "checking for $ac_word... " >&6; }
7702 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7703 $as_echo_n "(cached) " >&6
7704 else
7705 if test -n "$ac_ct_STRIP"; then
7706 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7707 else
7708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7709 for as_dir in $PATH
7710 do
7711 IFS=$as_save_IFS
7712 test -z "$as_dir" && as_dir=.
7713 for ac_exec_ext in '' $ac_executable_extensions; do
7714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7715 ac_cv_prog_ac_ct_STRIP="strip"
7716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7717 break 2
7718 fi
7719 done
7720 done
7721 IFS=$as_save_IFS
7722
7723 fi
7724 fi
7725 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7726 if test -n "$ac_ct_STRIP"; then
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7728 $as_echo "$ac_ct_STRIP" >&6; }
7729 else
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7731 $as_echo "no" >&6; }
7732 fi
7733
7734 if test "x$ac_ct_STRIP" = x; then
7735 STRIP=":"
7736 else
7737 case $cross_compiling:$ac_tool_warned in
7738 yes:)
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7740 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7741 ac_tool_warned=yes ;;
7742 esac
7743 STRIP=$ac_ct_STRIP
7744 fi
7745 else
7746 STRIP="$ac_cv_prog_STRIP"
7747 fi
7748
7749 test -z "$STRIP" && STRIP=:
7750
7751
7752
7753
7754
7755
7756 if test -n "$ac_tool_prefix"; then
7757 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7758 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7760 $as_echo_n "checking for $ac_word... " >&6; }
7761 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7762 $as_echo_n "(cached) " >&6
7763 else
7764 if test -n "$RANLIB"; then
7765 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7766 else
7767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7768 for as_dir in $PATH
7769 do
7770 IFS=$as_save_IFS
7771 test -z "$as_dir" && as_dir=.
7772 for ac_exec_ext in '' $ac_executable_extensions; do
7773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7774 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7776 break 2
7777 fi
7778 done
7779 done
7780 IFS=$as_save_IFS
7781
7782 fi
7783 fi
7784 RANLIB=$ac_cv_prog_RANLIB
7785 if test -n "$RANLIB"; then
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7787 $as_echo "$RANLIB" >&6; }
7788 else
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7790 $as_echo "no" >&6; }
7791 fi
7792
7793
7794 fi
7795 if test -z "$ac_cv_prog_RANLIB"; then
7796 ac_ct_RANLIB=$RANLIB
7797 # Extract the first word of "ranlib", so it can be a program name with args.
7798 set dummy ranlib; ac_word=$2
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7800 $as_echo_n "checking for $ac_word... " >&6; }
7801 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7802 $as_echo_n "(cached) " >&6
7803 else
7804 if test -n "$ac_ct_RANLIB"; then
7805 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7806 else
7807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7808 for as_dir in $PATH
7809 do
7810 IFS=$as_save_IFS
7811 test -z "$as_dir" && as_dir=.
7812 for ac_exec_ext in '' $ac_executable_extensions; do
7813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7814 ac_cv_prog_ac_ct_RANLIB="ranlib"
7815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7816 break 2
7817 fi
7818 done
7819 done
7820 IFS=$as_save_IFS
7821
7822 fi
7823 fi
7824 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7825 if test -n "$ac_ct_RANLIB"; then
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7827 $as_echo "$ac_ct_RANLIB" >&6; }
7828 else
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7830 $as_echo "no" >&6; }
7831 fi
7832
7833 if test "x$ac_ct_RANLIB" = x; then
7834 RANLIB=":"
7835 else
7836 case $cross_compiling:$ac_tool_warned in
7837 yes:)
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7839 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7840 ac_tool_warned=yes ;;
7841 esac
7842 RANLIB=$ac_ct_RANLIB
7843 fi
7844 else
7845 RANLIB="$ac_cv_prog_RANLIB"
7846 fi
7847
7848 test -z "$RANLIB" && RANLIB=:
7849
7850
7851
7852
7853
7854
7855 # Determine commands to create old-style static archives.
7856 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7857 old_postinstall_cmds='chmod 644 $oldlib'
7858 old_postuninstall_cmds=
7859
7860 if test -n "$RANLIB"; then
7861 case $host_os in
7862 openbsd*)
7863 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7864 ;;
7865 *)
7866 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7867 ;;
7868 esac
7869 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7870 fi
7871
7872 case $host_os in
7873 darwin*)
7874 lock_old_archive_extraction=yes ;;
7875 *)
7876 lock_old_archive_extraction=no ;;
7877 esac
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917 # If no C compiler was specified, use CC.
7918 LTCC=${LTCC-"$CC"}
7919
7920 # If no C compiler flags were specified, use CFLAGS.
7921 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7922
7923 # Allow CC to be a program name with arguments.
7924 compiler=$CC
7925
7926
7927 # Check for command to grab the raw symbol name followed by C symbol from nm.
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7929 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7930 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7931 $as_echo_n "(cached) " >&6
7932 else
7933
7934 # These are sane defaults that work on at least a few old systems.
7935 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7936
7937 # Character class describing NM global symbol codes.
7938 symcode='[BCDEGRST]'
7939
7940 # Regexp to match symbols that can be accessed directly from C.
7941 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7942
7943 # Define system-specific variables.
7944 case $host_os in
7945 aix*)
7946 symcode='[BCDT]'
7947 ;;
7948 cygwin* | mingw* | pw32* | cegcc*)
7949 symcode='[ABCDGISTW]'
7950 ;;
7951 hpux*)
7952 if test "$host_cpu" = ia64; then
7953 symcode='[ABCDEGRST]'
7954 fi
7955 ;;
7956 irix* | nonstopux*)
7957 symcode='[BCDEGRST]'
7958 ;;
7959 osf*)
7960 symcode='[BCDEGQRST]'
7961 ;;
7962 solaris*)
7963 symcode='[BDRT]'
7964 ;;
7965 sco3.2v5*)
7966 symcode='[DT]'
7967 ;;
7968 sysv4.2uw2*)
7969 symcode='[DT]'
7970 ;;
7971 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7972 symcode='[ABDT]'
7973 ;;
7974 sysv4)
7975 symcode='[DFNSTU]'
7976 ;;
7977 esac
7978
7979 # If we're using GNU nm, then use its standard symbol codes.
7980 case `$NM -V 2>&1` in
7981 *GNU* | *'with BFD'*)
7982 symcode='[ABCDGIRSTW]' ;;
7983 esac
7984
7985 # Transform an extracted symbol line into a proper C declaration.
7986 # Some systems (esp. on ia64) link data and code symbols differently,
7987 # so use this general approach.
7988 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7989
7990 # Transform an extracted symbol line into symbol name and symbol address
7991 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7992 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'"
7993
7994 # Handle CRLF in mingw tool chain
7995 opt_cr=
7996 case $build_os in
7997 mingw*)
7998 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7999 ;;
8000 esac
8001
8002 # Try without a prefix underscore, then with it.
8003 for ac_symprfx in "" "_"; do
8004
8005 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8006 symxfrm="\\1 $ac_symprfx\\2 \\2"
8007
8008 # Write the raw and C identifiers.
8009 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8010 # Fake it for dumpbin and say T for any non-static function
8011 # and D for any global variable.
8012 # Also find C++ and __fastcall symbols from MSVC++,
8013 # which start with @ or ?.
8014 lt_cv_sys_global_symbol_pipe="$AWK '"\
8015 " {last_section=section; section=\$ 3};"\
8016 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8017 " \$ 0!~/External *\|/{next};"\
8018 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8019 " {if(hide[section]) next};"\
8020 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8021 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8022 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8023 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8024 " ' prfx=^$ac_symprfx"
8025 else
8026 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8027 fi
8028
8029 # Check to see that the pipe works correctly.
8030 pipe_works=no
8031
8032 rm -f conftest*
8033 cat > conftest.$ac_ext <<_LT_EOF
8034 #ifdef __cplusplus
8035 extern "C" {
8036 #endif
8037 char nm_test_var;
8038 void nm_test_func(void);
8039 void nm_test_func(void){}
8040 #ifdef __cplusplus
8041 }
8042 #endif
8043 int main(){nm_test_var='a';nm_test_func();return(0);}
8044 _LT_EOF
8045
8046 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8047 (eval $ac_compile) 2>&5
8048 ac_status=$?
8049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8050 test $ac_status = 0; }; then
8051 # Now try to grab the symbols.
8052 nlist=conftest.nm
8053 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8054 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8055 ac_status=$?
8056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8057 test $ac_status = 0; } && test -s "$nlist"; then
8058 # Try sorting and uniquifying the output.
8059 if sort "$nlist" | uniq > "$nlist"T; then
8060 mv -f "$nlist"T "$nlist"
8061 else
8062 rm -f "$nlist"T
8063 fi
8064
8065 # Make sure that we snagged all the symbols we need.
8066 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8067 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8068 cat <<_LT_EOF > conftest.$ac_ext
8069 #ifdef __cplusplus
8070 extern "C" {
8071 #endif
8072
8073 _LT_EOF
8074 # Now generate the symbol file.
8075 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8076
8077 cat <<_LT_EOF >> conftest.$ac_ext
8078
8079 /* The mapping between symbol names and symbols. */
8080 const struct {
8081 const char *name;
8082 void *address;
8083 }
8084 lt__PROGRAM__LTX_preloaded_symbols[] =
8085 {
8086 { "@PROGRAM@", (void *) 0 },
8087 _LT_EOF
8088 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8089 cat <<\_LT_EOF >> conftest.$ac_ext
8090 {0, (void *) 0}
8091 };
8092
8093 /* This works around a problem in FreeBSD linker */
8094 #ifdef FREEBSD_WORKAROUND
8095 static const void *lt_preloaded_setup() {
8096 return lt__PROGRAM__LTX_preloaded_symbols;
8097 }
8098 #endif
8099
8100 #ifdef __cplusplus
8101 }
8102 #endif
8103 _LT_EOF
8104 # Now try linking the two files.
8105 mv conftest.$ac_objext conftstm.$ac_objext
8106 lt_save_LIBS="$LIBS"
8107 lt_save_CFLAGS="$CFLAGS"
8108 LIBS="conftstm.$ac_objext"
8109 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8110 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8111 (eval $ac_link) 2>&5
8112 ac_status=$?
8113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8114 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8115 pipe_works=yes
8116 fi
8117 LIBS="$lt_save_LIBS"
8118 CFLAGS="$lt_save_CFLAGS"
8119 else
8120 echo "cannot find nm_test_func in $nlist" >&5
8121 fi
8122 else
8123 echo "cannot find nm_test_var in $nlist" >&5
8124 fi
8125 else
8126 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8127 fi
8128 else
8129 echo "$progname: failed program was:" >&5
8130 cat conftest.$ac_ext >&5
8131 fi
8132 rm -rf conftest* conftst*
8133
8134 # Do not use the global_symbol_pipe unless it works.
8135 if test "$pipe_works" = yes; then
8136 break
8137 else
8138 lt_cv_sys_global_symbol_pipe=
8139 fi
8140 done
8141
8142 fi
8143
8144 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8145 lt_cv_sys_global_symbol_to_cdecl=
8146 fi
8147 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8149 $as_echo "failed" >&6; }
8150 else
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8152 $as_echo "ok" >&6; }
8153 fi
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176 # Check whether --enable-libtool-lock was given.
8177 if test "${enable_libtool_lock+set}" = set; then :
8178 enableval=$enable_libtool_lock;
8179 fi
8180
8181 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8182
8183 # Some flags need to be propagated to the compiler or linker for good
8184 # libtool support.
8185 case $host in
8186 ia64-*-hpux*)
8187 # Find out which ABI we are using.
8188 echo 'int i;' > conftest.$ac_ext
8189 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8190 (eval $ac_compile) 2>&5
8191 ac_status=$?
8192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8193 test $ac_status = 0; }; then
8194 case `/usr/bin/file conftest.$ac_objext` in
8195 *ELF-32*)
8196 HPUX_IA64_MODE="32"
8197 ;;
8198 *ELF-64*)
8199 HPUX_IA64_MODE="64"
8200 ;;
8201 esac
8202 fi
8203 rm -rf conftest*
8204 ;;
8205 *-*-irix6*)
8206 # Find out which ABI we are using.
8207 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8208 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8209 (eval $ac_compile) 2>&5
8210 ac_status=$?
8211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8212 test $ac_status = 0; }; then
8213 if test "$lt_cv_prog_gnu_ld" = yes; then
8214 case `/usr/bin/file conftest.$ac_objext` in
8215 *32-bit*)
8216 LD="${LD-ld} -melf32bsmip"
8217 ;;
8218 *N32*)
8219 LD="${LD-ld} -melf32bmipn32"
8220 ;;
8221 *64-bit*)
8222 LD="${LD-ld} -melf64bmip"
8223 ;;
8224 esac
8225 else
8226 case `/usr/bin/file conftest.$ac_objext` in
8227 *32-bit*)
8228 LD="${LD-ld} -32"
8229 ;;
8230 *N32*)
8231 LD="${LD-ld} -n32"
8232 ;;
8233 *64-bit*)
8234 LD="${LD-ld} -64"
8235 ;;
8236 esac
8237 fi
8238 fi
8239 rm -rf conftest*
8240 ;;
8241
8242 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8243 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8244 # Find out which ABI we are using.
8245 echo 'int i;' > conftest.$ac_ext
8246 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8247 (eval $ac_compile) 2>&5
8248 ac_status=$?
8249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8250 test $ac_status = 0; }; then
8251 case `/usr/bin/file conftest.o` in
8252 *32-bit*)
8253 case $host in
8254 x86_64-*kfreebsd*-gnu)
8255 LD="${LD-ld} -m elf_i386_fbsd"
8256 ;;
8257 x86_64-*linux*)
8258 case `/usr/bin/file conftest.o` in
8259 *x86-64*)
8260 LD="${LD-ld} -m elf32_x86_64"
8261 ;;
8262 *)
8263 LD="${LD-ld} -m elf_i386"
8264 ;;
8265 esac
8266 ;;
8267 powerpc64le-*linux*)
8268 LD="${LD-ld} -m elf32lppclinux"
8269 ;;
8270 powerpc64-*linux*)
8271 LD="${LD-ld} -m elf32ppclinux"
8272 ;;
8273 s390x-*linux*)
8274 LD="${LD-ld} -m elf_s390"
8275 ;;
8276 sparc64-*linux*)
8277 LD="${LD-ld} -m elf32_sparc"
8278 ;;
8279 esac
8280 ;;
8281 *64-bit*)
8282 case $host in
8283 x86_64-*kfreebsd*-gnu)
8284 LD="${LD-ld} -m elf_x86_64_fbsd"
8285 ;;
8286 x86_64-*linux*)
8287 LD="${LD-ld} -m elf_x86_64"
8288 ;;
8289 powerpcle-*linux*)
8290 LD="${LD-ld} -m elf64lppc"
8291 ;;
8292 powerpc-*linux*)
8293 LD="${LD-ld} -m elf64ppc"
8294 ;;
8295 s390*-*linux*|s390*-*tpf*)
8296 LD="${LD-ld} -m elf64_s390"
8297 ;;
8298 sparc*-*linux*)
8299 LD="${LD-ld} -m elf64_sparc"
8300 ;;
8301 esac
8302 ;;
8303 esac
8304 fi
8305 rm -rf conftest*
8306 ;;
8307
8308 *-*-sco3.2v5*)
8309 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8310 SAVE_CFLAGS="$CFLAGS"
8311 CFLAGS="$CFLAGS -belf"
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8313 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8314 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8315 $as_echo_n "(cached) " >&6
8316 else
8317 ac_ext=c
8318 ac_cpp='$CPP $CPPFLAGS'
8319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8322
8323 if test x$gcc_no_link = xyes; then
8324 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8325 fi
8326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8327 /* end confdefs.h. */
8328
8329 int
8330 main ()
8331 {
8332
8333 ;
8334 return 0;
8335 }
8336 _ACEOF
8337 if ac_fn_c_try_link "$LINENO"; then :
8338 lt_cv_cc_needs_belf=yes
8339 else
8340 lt_cv_cc_needs_belf=no
8341 fi
8342 rm -f core conftest.err conftest.$ac_objext \
8343 conftest$ac_exeext conftest.$ac_ext
8344 ac_ext=c
8345 ac_cpp='$CPP $CPPFLAGS'
8346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8349
8350 fi
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8352 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8353 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8354 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8355 CFLAGS="$SAVE_CFLAGS"
8356 fi
8357 ;;
8358 sparc*-*solaris*)
8359 # Find out which ABI we are using.
8360 echo 'int i;' > conftest.$ac_ext
8361 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8362 (eval $ac_compile) 2>&5
8363 ac_status=$?
8364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8365 test $ac_status = 0; }; then
8366 case `/usr/bin/file conftest.o` in
8367 *64-bit*)
8368 case $lt_cv_prog_gnu_ld in
8369 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8370 *)
8371 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8372 LD="${LD-ld} -64"
8373 fi
8374 ;;
8375 esac
8376 ;;
8377 esac
8378 fi
8379 rm -rf conftest*
8380 ;;
8381 esac
8382
8383 need_locks="$enable_libtool_lock"
8384
8385
8386 case $host_os in
8387 rhapsody* | darwin*)
8388 if test -n "$ac_tool_prefix"; then
8389 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8390 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8392 $as_echo_n "checking for $ac_word... " >&6; }
8393 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8394 $as_echo_n "(cached) " >&6
8395 else
8396 if test -n "$DSYMUTIL"; then
8397 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8398 else
8399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8400 for as_dir in $PATH
8401 do
8402 IFS=$as_save_IFS
8403 test -z "$as_dir" && as_dir=.
8404 for ac_exec_ext in '' $ac_executable_extensions; do
8405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8406 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8408 break 2
8409 fi
8410 done
8411 done
8412 IFS=$as_save_IFS
8413
8414 fi
8415 fi
8416 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8417 if test -n "$DSYMUTIL"; then
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8419 $as_echo "$DSYMUTIL" >&6; }
8420 else
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8422 $as_echo "no" >&6; }
8423 fi
8424
8425
8426 fi
8427 if test -z "$ac_cv_prog_DSYMUTIL"; then
8428 ac_ct_DSYMUTIL=$DSYMUTIL
8429 # Extract the first word of "dsymutil", so it can be a program name with args.
8430 set dummy dsymutil; ac_word=$2
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8432 $as_echo_n "checking for $ac_word... " >&6; }
8433 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8434 $as_echo_n "(cached) " >&6
8435 else
8436 if test -n "$ac_ct_DSYMUTIL"; then
8437 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8438 else
8439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8440 for as_dir in $PATH
8441 do
8442 IFS=$as_save_IFS
8443 test -z "$as_dir" && as_dir=.
8444 for ac_exec_ext in '' $ac_executable_extensions; do
8445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8446 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8448 break 2
8449 fi
8450 done
8451 done
8452 IFS=$as_save_IFS
8453
8454 fi
8455 fi
8456 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8457 if test -n "$ac_ct_DSYMUTIL"; then
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8459 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8460 else
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8462 $as_echo "no" >&6; }
8463 fi
8464
8465 if test "x$ac_ct_DSYMUTIL" = x; then
8466 DSYMUTIL=":"
8467 else
8468 case $cross_compiling:$ac_tool_warned in
8469 yes:)
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8471 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8472 ac_tool_warned=yes ;;
8473 esac
8474 DSYMUTIL=$ac_ct_DSYMUTIL
8475 fi
8476 else
8477 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8478 fi
8479
8480 if test -n "$ac_tool_prefix"; then
8481 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8482 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8484 $as_echo_n "checking for $ac_word... " >&6; }
8485 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8486 $as_echo_n "(cached) " >&6
8487 else
8488 if test -n "$NMEDIT"; then
8489 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8490 else
8491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8492 for as_dir in $PATH
8493 do
8494 IFS=$as_save_IFS
8495 test -z "$as_dir" && as_dir=.
8496 for ac_exec_ext in '' $ac_executable_extensions; do
8497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8498 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8500 break 2
8501 fi
8502 done
8503 done
8504 IFS=$as_save_IFS
8505
8506 fi
8507 fi
8508 NMEDIT=$ac_cv_prog_NMEDIT
8509 if test -n "$NMEDIT"; then
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8511 $as_echo "$NMEDIT" >&6; }
8512 else
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8514 $as_echo "no" >&6; }
8515 fi
8516
8517
8518 fi
8519 if test -z "$ac_cv_prog_NMEDIT"; then
8520 ac_ct_NMEDIT=$NMEDIT
8521 # Extract the first word of "nmedit", so it can be a program name with args.
8522 set dummy nmedit; ac_word=$2
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8524 $as_echo_n "checking for $ac_word... " >&6; }
8525 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8526 $as_echo_n "(cached) " >&6
8527 else
8528 if test -n "$ac_ct_NMEDIT"; then
8529 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8530 else
8531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8532 for as_dir in $PATH
8533 do
8534 IFS=$as_save_IFS
8535 test -z "$as_dir" && as_dir=.
8536 for ac_exec_ext in '' $ac_executable_extensions; do
8537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8538 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8540 break 2
8541 fi
8542 done
8543 done
8544 IFS=$as_save_IFS
8545
8546 fi
8547 fi
8548 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8549 if test -n "$ac_ct_NMEDIT"; then
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8551 $as_echo "$ac_ct_NMEDIT" >&6; }
8552 else
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8554 $as_echo "no" >&6; }
8555 fi
8556
8557 if test "x$ac_ct_NMEDIT" = x; then
8558 NMEDIT=":"
8559 else
8560 case $cross_compiling:$ac_tool_warned in
8561 yes:)
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8563 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8564 ac_tool_warned=yes ;;
8565 esac
8566 NMEDIT=$ac_ct_NMEDIT
8567 fi
8568 else
8569 NMEDIT="$ac_cv_prog_NMEDIT"
8570 fi
8571
8572 if test -n "$ac_tool_prefix"; then
8573 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8574 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8576 $as_echo_n "checking for $ac_word... " >&6; }
8577 if test "${ac_cv_prog_LIPO+set}" = set; then :
8578 $as_echo_n "(cached) " >&6
8579 else
8580 if test -n "$LIPO"; then
8581 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8582 else
8583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8584 for as_dir in $PATH
8585 do
8586 IFS=$as_save_IFS
8587 test -z "$as_dir" && as_dir=.
8588 for ac_exec_ext in '' $ac_executable_extensions; do
8589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8590 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8592 break 2
8593 fi
8594 done
8595 done
8596 IFS=$as_save_IFS
8597
8598 fi
8599 fi
8600 LIPO=$ac_cv_prog_LIPO
8601 if test -n "$LIPO"; then
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8603 $as_echo "$LIPO" >&6; }
8604 else
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8606 $as_echo "no" >&6; }
8607 fi
8608
8609
8610 fi
8611 if test -z "$ac_cv_prog_LIPO"; then
8612 ac_ct_LIPO=$LIPO
8613 # Extract the first word of "lipo", so it can be a program name with args.
8614 set dummy lipo; ac_word=$2
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8616 $as_echo_n "checking for $ac_word... " >&6; }
8617 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8618 $as_echo_n "(cached) " >&6
8619 else
8620 if test -n "$ac_ct_LIPO"; then
8621 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8622 else
8623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8624 for as_dir in $PATH
8625 do
8626 IFS=$as_save_IFS
8627 test -z "$as_dir" && as_dir=.
8628 for ac_exec_ext in '' $ac_executable_extensions; do
8629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8630 ac_cv_prog_ac_ct_LIPO="lipo"
8631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8632 break 2
8633 fi
8634 done
8635 done
8636 IFS=$as_save_IFS
8637
8638 fi
8639 fi
8640 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8641 if test -n "$ac_ct_LIPO"; then
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8643 $as_echo "$ac_ct_LIPO" >&6; }
8644 else
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8646 $as_echo "no" >&6; }
8647 fi
8648
8649 if test "x$ac_ct_LIPO" = x; then
8650 LIPO=":"
8651 else
8652 case $cross_compiling:$ac_tool_warned in
8653 yes:)
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8655 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8656 ac_tool_warned=yes ;;
8657 esac
8658 LIPO=$ac_ct_LIPO
8659 fi
8660 else
8661 LIPO="$ac_cv_prog_LIPO"
8662 fi
8663
8664 if test -n "$ac_tool_prefix"; then
8665 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8666 set dummy ${ac_tool_prefix}otool; ac_word=$2
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8668 $as_echo_n "checking for $ac_word... " >&6; }
8669 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8670 $as_echo_n "(cached) " >&6
8671 else
8672 if test -n "$OTOOL"; then
8673 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8674 else
8675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8676 for as_dir in $PATH
8677 do
8678 IFS=$as_save_IFS
8679 test -z "$as_dir" && as_dir=.
8680 for ac_exec_ext in '' $ac_executable_extensions; do
8681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8682 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8684 break 2
8685 fi
8686 done
8687 done
8688 IFS=$as_save_IFS
8689
8690 fi
8691 fi
8692 OTOOL=$ac_cv_prog_OTOOL
8693 if test -n "$OTOOL"; then
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8695 $as_echo "$OTOOL" >&6; }
8696 else
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8698 $as_echo "no" >&6; }
8699 fi
8700
8701
8702 fi
8703 if test -z "$ac_cv_prog_OTOOL"; then
8704 ac_ct_OTOOL=$OTOOL
8705 # Extract the first word of "otool", so it can be a program name with args.
8706 set dummy otool; ac_word=$2
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8708 $as_echo_n "checking for $ac_word... " >&6; }
8709 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8710 $as_echo_n "(cached) " >&6
8711 else
8712 if test -n "$ac_ct_OTOOL"; then
8713 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8714 else
8715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8716 for as_dir in $PATH
8717 do
8718 IFS=$as_save_IFS
8719 test -z "$as_dir" && as_dir=.
8720 for ac_exec_ext in '' $ac_executable_extensions; do
8721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8722 ac_cv_prog_ac_ct_OTOOL="otool"
8723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8724 break 2
8725 fi
8726 done
8727 done
8728 IFS=$as_save_IFS
8729
8730 fi
8731 fi
8732 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8733 if test -n "$ac_ct_OTOOL"; then
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8735 $as_echo "$ac_ct_OTOOL" >&6; }
8736 else
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8738 $as_echo "no" >&6; }
8739 fi
8740
8741 if test "x$ac_ct_OTOOL" = x; then
8742 OTOOL=":"
8743 else
8744 case $cross_compiling:$ac_tool_warned in
8745 yes:)
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8747 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8748 ac_tool_warned=yes ;;
8749 esac
8750 OTOOL=$ac_ct_OTOOL
8751 fi
8752 else
8753 OTOOL="$ac_cv_prog_OTOOL"
8754 fi
8755
8756 if test -n "$ac_tool_prefix"; then
8757 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8758 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8760 $as_echo_n "checking for $ac_word... " >&6; }
8761 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8762 $as_echo_n "(cached) " >&6
8763 else
8764 if test -n "$OTOOL64"; then
8765 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8766 else
8767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8768 for as_dir in $PATH
8769 do
8770 IFS=$as_save_IFS
8771 test -z "$as_dir" && as_dir=.
8772 for ac_exec_ext in '' $ac_executable_extensions; do
8773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8774 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8776 break 2
8777 fi
8778 done
8779 done
8780 IFS=$as_save_IFS
8781
8782 fi
8783 fi
8784 OTOOL64=$ac_cv_prog_OTOOL64
8785 if test -n "$OTOOL64"; then
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8787 $as_echo "$OTOOL64" >&6; }
8788 else
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8790 $as_echo "no" >&6; }
8791 fi
8792
8793
8794 fi
8795 if test -z "$ac_cv_prog_OTOOL64"; then
8796 ac_ct_OTOOL64=$OTOOL64
8797 # Extract the first word of "otool64", so it can be a program name with args.
8798 set dummy otool64; ac_word=$2
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8800 $as_echo_n "checking for $ac_word... " >&6; }
8801 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8802 $as_echo_n "(cached) " >&6
8803 else
8804 if test -n "$ac_ct_OTOOL64"; then
8805 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8806 else
8807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8808 for as_dir in $PATH
8809 do
8810 IFS=$as_save_IFS
8811 test -z "$as_dir" && as_dir=.
8812 for ac_exec_ext in '' $ac_executable_extensions; do
8813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8814 ac_cv_prog_ac_ct_OTOOL64="otool64"
8815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8816 break 2
8817 fi
8818 done
8819 done
8820 IFS=$as_save_IFS
8821
8822 fi
8823 fi
8824 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8825 if test -n "$ac_ct_OTOOL64"; then
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8827 $as_echo "$ac_ct_OTOOL64" >&6; }
8828 else
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8830 $as_echo "no" >&6; }
8831 fi
8832
8833 if test "x$ac_ct_OTOOL64" = x; then
8834 OTOOL64=":"
8835 else
8836 case $cross_compiling:$ac_tool_warned in
8837 yes:)
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8839 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8840 ac_tool_warned=yes ;;
8841 esac
8842 OTOOL64=$ac_ct_OTOOL64
8843 fi
8844 else
8845 OTOOL64="$ac_cv_prog_OTOOL64"
8846 fi
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8875 $as_echo_n "checking for -single_module linker flag... " >&6; }
8876 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8877 $as_echo_n "(cached) " >&6
8878 else
8879 lt_cv_apple_cc_single_mod=no
8880 if test -z "${LT_MULTI_MODULE}"; then
8881 # By default we will add the -single_module flag. You can override
8882 # by either setting the environment variable LT_MULTI_MODULE
8883 # non-empty at configure time, or by adding -multi_module to the
8884 # link flags.
8885 rm -rf libconftest.dylib*
8886 echo "int foo(void){return 1;}" > conftest.c
8887 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8888 -dynamiclib -Wl,-single_module conftest.c" >&5
8889 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8890 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8891 _lt_result=$?
8892 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8893 lt_cv_apple_cc_single_mod=yes
8894 else
8895 cat conftest.err >&5
8896 fi
8897 rm -rf libconftest.dylib*
8898 rm -f conftest.*
8899 fi
8900 fi
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8902 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8904 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8905 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8906 $as_echo_n "(cached) " >&6
8907 else
8908 lt_cv_ld_exported_symbols_list=no
8909 save_LDFLAGS=$LDFLAGS
8910 echo "_main" > conftest.sym
8911 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8912 if test x$gcc_no_link = xyes; then
8913 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8914 fi
8915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8916 /* end confdefs.h. */
8917
8918 int
8919 main ()
8920 {
8921
8922 ;
8923 return 0;
8924 }
8925 _ACEOF
8926 if ac_fn_c_try_link "$LINENO"; then :
8927 lt_cv_ld_exported_symbols_list=yes
8928 else
8929 lt_cv_ld_exported_symbols_list=no
8930 fi
8931 rm -f core conftest.err conftest.$ac_objext \
8932 conftest$ac_exeext conftest.$ac_ext
8933 LDFLAGS="$save_LDFLAGS"
8934
8935 fi
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8937 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8939 $as_echo_n "checking for -force_load linker flag... " >&6; }
8940 if test "${lt_cv_ld_force_load+set}" = set; then :
8941 $as_echo_n "(cached) " >&6
8942 else
8943 lt_cv_ld_force_load=no
8944 cat > conftest.c << _LT_EOF
8945 int forced_loaded() { return 2;}
8946 _LT_EOF
8947 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8948 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8949 echo "$AR cru libconftest.a conftest.o" >&5
8950 $AR cru libconftest.a conftest.o 2>&5
8951 cat > conftest.c << _LT_EOF
8952 int main() { return 0;}
8953 _LT_EOF
8954 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8955 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8956 _lt_result=$?
8957 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8958 lt_cv_ld_force_load=yes
8959 else
8960 cat conftest.err >&5
8961 fi
8962 rm -f conftest.err libconftest.a conftest conftest.c
8963 rm -rf conftest.dSYM
8964
8965 fi
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8967 $as_echo "$lt_cv_ld_force_load" >&6; }
8968 case $host_os in
8969 rhapsody* | darwin1.[012])
8970 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8971 darwin1.*)
8972 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8973 darwin*) # darwin 5.x on
8974 # if running on 10.5 or later, the deployment target defaults
8975 # to the OS version, if on x86, and 10.4, the deployment
8976 # target defaults to 10.4. Don't you love it?
8977 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8978 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8979 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8980 10.[012][,.]*)
8981 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8982 10.*)
8983 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8984 esac
8985 ;;
8986 esac
8987 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8988 _lt_dar_single_mod='$single_module'
8989 fi
8990 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8991 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8992 else
8993 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8994 fi
8995 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8996 _lt_dsymutil='~$DSYMUTIL $lib || :'
8997 else
8998 _lt_dsymutil=
8999 fi
9000 ;;
9001 esac
9002
9003 for ac_header in dlfcn.h
9004 do :
9005 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9006 "
9007 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9008 cat >>confdefs.h <<_ACEOF
9009 #define HAVE_DLFCN_H 1
9010 _ACEOF
9011
9012 fi
9013
9014 done
9015
9016
9017
9018
9019
9020 # Set options
9021
9022
9023
9024
9025 enable_win32_dll=no
9026
9027
9028 # Check whether --enable-shared was given.
9029 if test "${enable_shared+set}" = set; then :
9030 enableval=$enable_shared; p=${PACKAGE-default}
9031 case $enableval in
9032 yes) enable_shared=yes ;;
9033 no) enable_shared=no ;;
9034 *)
9035 enable_shared=no
9036 # Look at the argument we got. We use all the common list separators.
9037 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9038 for pkg in $enableval; do
9039 IFS="$lt_save_ifs"
9040 if test "X$pkg" = "X$p"; then
9041 enable_shared=yes
9042 fi
9043 done
9044 IFS="$lt_save_ifs"
9045 ;;
9046 esac
9047 else
9048 enable_shared=yes
9049 fi
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059 # Check whether --enable-static was given.
9060 if test "${enable_static+set}" = set; then :
9061 enableval=$enable_static; p=${PACKAGE-default}
9062 case $enableval in
9063 yes) enable_static=yes ;;
9064 no) enable_static=no ;;
9065 *)
9066 enable_static=no
9067 # Look at the argument we got. We use all the common list separators.
9068 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9069 for pkg in $enableval; do
9070 IFS="$lt_save_ifs"
9071 if test "X$pkg" = "X$p"; then
9072 enable_static=yes
9073 fi
9074 done
9075 IFS="$lt_save_ifs"
9076 ;;
9077 esac
9078 else
9079 enable_static=yes
9080 fi
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091 # Check whether --with-pic was given.
9092 if test "${with_pic+set}" = set; then :
9093 withval=$with_pic; pic_mode="$withval"
9094 else
9095 pic_mode=default
9096 fi
9097
9098
9099 test -z "$pic_mode" && pic_mode=default
9100
9101
9102
9103
9104
9105
9106
9107 # Check whether --enable-fast-install was given.
9108 if test "${enable_fast_install+set}" = set; then :
9109 enableval=$enable_fast_install; p=${PACKAGE-default}
9110 case $enableval in
9111 yes) enable_fast_install=yes ;;
9112 no) enable_fast_install=no ;;
9113 *)
9114 enable_fast_install=no
9115 # Look at the argument we got. We use all the common list separators.
9116 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9117 for pkg in $enableval; do
9118 IFS="$lt_save_ifs"
9119 if test "X$pkg" = "X$p"; then
9120 enable_fast_install=yes
9121 fi
9122 done
9123 IFS="$lt_save_ifs"
9124 ;;
9125 esac
9126 else
9127 enable_fast_install=yes
9128 fi
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140 # This can be used to rebuild libtool when needed
9141 LIBTOOL_DEPS="$ltmain"
9142
9143 # Always use our own libtool.
9144 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171 test -z "$LN_S" && LN_S="ln -s"
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186 if test -n "${ZSH_VERSION+set}" ; then
9187 setopt NO_GLOB_SUBST
9188 fi
9189
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9191 $as_echo_n "checking for objdir... " >&6; }
9192 if test "${lt_cv_objdir+set}" = set; then :
9193 $as_echo_n "(cached) " >&6
9194 else
9195 rm -f .libs 2>/dev/null
9196 mkdir .libs 2>/dev/null
9197 if test -d .libs; then
9198 lt_cv_objdir=.libs
9199 else
9200 # MS-DOS does not allow filenames that begin with a dot.
9201 lt_cv_objdir=_libs
9202 fi
9203 rmdir .libs 2>/dev/null
9204 fi
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9206 $as_echo "$lt_cv_objdir" >&6; }
9207 objdir=$lt_cv_objdir
9208
9209
9210
9211
9212
9213 cat >>confdefs.h <<_ACEOF
9214 #define LT_OBJDIR "$lt_cv_objdir/"
9215 _ACEOF
9216
9217
9218
9219
9220 case $host_os in
9221 aix3*)
9222 # AIX sometimes has problems with the GCC collect2 program. For some
9223 # reason, if we set the COLLECT_NAMES environment variable, the problems
9224 # vanish in a puff of smoke.
9225 if test "X${COLLECT_NAMES+set}" != Xset; then
9226 COLLECT_NAMES=
9227 export COLLECT_NAMES
9228 fi
9229 ;;
9230 esac
9231
9232 # Global variables:
9233 ofile=libtool
9234 can_build_shared=yes
9235
9236 # All known linkers require a `.a' archive for static linking (except MSVC,
9237 # which needs '.lib').
9238 libext=a
9239
9240 with_gnu_ld="$lt_cv_prog_gnu_ld"
9241
9242 old_CC="$CC"
9243 old_CFLAGS="$CFLAGS"
9244
9245 # Set sane defaults for various variables
9246 test -z "$CC" && CC=cc
9247 test -z "$LTCC" && LTCC=$CC
9248 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9249 test -z "$LD" && LD=ld
9250 test -z "$ac_objext" && ac_objext=o
9251
9252 for cc_temp in $compiler""; do
9253 case $cc_temp in
9254 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9255 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9256 \-*) ;;
9257 *) break;;
9258 esac
9259 done
9260 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9261
9262
9263 # Only perform the check for file, if the check method requires it
9264 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9265 case $deplibs_check_method in
9266 file_magic*)
9267 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9269 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9270 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9271 $as_echo_n "(cached) " >&6
9272 else
9273 case $MAGIC_CMD in
9274 [\\/*] | ?:[\\/]*)
9275 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9276 ;;
9277 *)
9278 lt_save_MAGIC_CMD="$MAGIC_CMD"
9279 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9280 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9281 for ac_dir in $ac_dummy; do
9282 IFS="$lt_save_ifs"
9283 test -z "$ac_dir" && ac_dir=.
9284 if test -f $ac_dir/${ac_tool_prefix}file; then
9285 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9286 if test -n "$file_magic_test_file"; then
9287 case $deplibs_check_method in
9288 "file_magic "*)
9289 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9290 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9291 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9292 $EGREP "$file_magic_regex" > /dev/null; then
9293 :
9294 else
9295 cat <<_LT_EOF 1>&2
9296
9297 *** Warning: the command libtool uses to detect shared libraries,
9298 *** $file_magic_cmd, produces output that libtool cannot recognize.
9299 *** The result is that libtool may fail to recognize shared libraries
9300 *** as such. This will affect the creation of libtool libraries that
9301 *** depend on shared libraries, but programs linked with such libtool
9302 *** libraries will work regardless of this problem. Nevertheless, you
9303 *** may want to report the problem to your system manager and/or to
9304 *** bug-libtool@gnu.org
9305
9306 _LT_EOF
9307 fi ;;
9308 esac
9309 fi
9310 break
9311 fi
9312 done
9313 IFS="$lt_save_ifs"
9314 MAGIC_CMD="$lt_save_MAGIC_CMD"
9315 ;;
9316 esac
9317 fi
9318
9319 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9320 if test -n "$MAGIC_CMD"; then
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9322 $as_echo "$MAGIC_CMD" >&6; }
9323 else
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9325 $as_echo "no" >&6; }
9326 fi
9327
9328
9329
9330
9331
9332 if test -z "$lt_cv_path_MAGIC_CMD"; then
9333 if test -n "$ac_tool_prefix"; then
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9335 $as_echo_n "checking for file... " >&6; }
9336 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9337 $as_echo_n "(cached) " >&6
9338 else
9339 case $MAGIC_CMD in
9340 [\\/*] | ?:[\\/]*)
9341 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9342 ;;
9343 *)
9344 lt_save_MAGIC_CMD="$MAGIC_CMD"
9345 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9346 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9347 for ac_dir in $ac_dummy; do
9348 IFS="$lt_save_ifs"
9349 test -z "$ac_dir" && ac_dir=.
9350 if test -f $ac_dir/file; then
9351 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9352 if test -n "$file_magic_test_file"; then
9353 case $deplibs_check_method in
9354 "file_magic "*)
9355 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9356 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9357 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9358 $EGREP "$file_magic_regex" > /dev/null; then
9359 :
9360 else
9361 cat <<_LT_EOF 1>&2
9362
9363 *** Warning: the command libtool uses to detect shared libraries,
9364 *** $file_magic_cmd, produces output that libtool cannot recognize.
9365 *** The result is that libtool may fail to recognize shared libraries
9366 *** as such. This will affect the creation of libtool libraries that
9367 *** depend on shared libraries, but programs linked with such libtool
9368 *** libraries will work regardless of this problem. Nevertheless, you
9369 *** may want to report the problem to your system manager and/or to
9370 *** bug-libtool@gnu.org
9371
9372 _LT_EOF
9373 fi ;;
9374 esac
9375 fi
9376 break
9377 fi
9378 done
9379 IFS="$lt_save_ifs"
9380 MAGIC_CMD="$lt_save_MAGIC_CMD"
9381 ;;
9382 esac
9383 fi
9384
9385 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9386 if test -n "$MAGIC_CMD"; then
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9388 $as_echo "$MAGIC_CMD" >&6; }
9389 else
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9391 $as_echo "no" >&6; }
9392 fi
9393
9394
9395 else
9396 MAGIC_CMD=:
9397 fi
9398 fi
9399
9400 fi
9401 ;;
9402 esac
9403
9404 # Use C for the default configuration in the libtool script
9405
9406 lt_save_CC="$CC"
9407 ac_ext=c
9408 ac_cpp='$CPP $CPPFLAGS'
9409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9412
9413
9414 # Source file extension for C test sources.
9415 ac_ext=c
9416
9417 # Object file extension for compiled C test sources.
9418 objext=o
9419 objext=$objext
9420
9421 # Code to be used in simple compile tests
9422 lt_simple_compile_test_code="int some_variable = 0;"
9423
9424 # Code to be used in simple link tests
9425 lt_simple_link_test_code='int main(){return(0);}'
9426
9427
9428
9429
9430
9431
9432
9433 # If no C compiler was specified, use CC.
9434 LTCC=${LTCC-"$CC"}
9435
9436 # If no C compiler flags were specified, use CFLAGS.
9437 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9438
9439 # Allow CC to be a program name with arguments.
9440 compiler=$CC
9441
9442 # Save the default compiler, since it gets overwritten when the other
9443 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9444 compiler_DEFAULT=$CC
9445
9446 # save warnings/boilerplate of simple test code
9447 ac_outfile=conftest.$ac_objext
9448 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9449 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9450 _lt_compiler_boilerplate=`cat conftest.err`
9451 $RM conftest*
9452
9453 ac_outfile=conftest.$ac_objext
9454 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9455 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9456 _lt_linker_boilerplate=`cat conftest.err`
9457 $RM -r conftest*
9458
9459
9460 ## CAVEAT EMPTOR:
9461 ## There is no encapsulation within the following macros, do not change
9462 ## the running order or otherwise move them around unless you know exactly
9463 ## what you are doing...
9464 if test -n "$compiler"; then
9465
9466 lt_prog_compiler_no_builtin_flag=
9467
9468 if test "$GCC" = yes; then
9469 case $cc_basename in
9470 nvcc*)
9471 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9472 *)
9473 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9474 esac
9475
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9477 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9478 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9479 $as_echo_n "(cached) " >&6
9480 else
9481 lt_cv_prog_compiler_rtti_exceptions=no
9482 ac_outfile=conftest.$ac_objext
9483 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9484 lt_compiler_flag="-fno-rtti -fno-exceptions"
9485 # Insert the option either (1) after the last *FLAGS variable, or
9486 # (2) before a word containing "conftest.", or (3) at the end.
9487 # Note that $ac_compile itself does not contain backslashes and begins
9488 # with a dollar sign (not a hyphen), so the echo should work correctly.
9489 # The option is referenced via a variable to avoid confusing sed.
9490 lt_compile=`echo "$ac_compile" | $SED \
9491 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9492 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9493 -e 's:$: $lt_compiler_flag:'`
9494 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9495 (eval "$lt_compile" 2>conftest.err)
9496 ac_status=$?
9497 cat conftest.err >&5
9498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499 if (exit $ac_status) && test -s "$ac_outfile"; then
9500 # The compiler can only warn and ignore the option if not recognized
9501 # So say no if there are warnings other than the usual output.
9502 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9503 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9504 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9505 lt_cv_prog_compiler_rtti_exceptions=yes
9506 fi
9507 fi
9508 $RM conftest*
9509
9510 fi
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9512 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9513
9514 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9515 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9516 else
9517 :
9518 fi
9519
9520 fi
9521
9522
9523
9524
9525
9526
9527 lt_prog_compiler_wl=
9528 lt_prog_compiler_pic=
9529 lt_prog_compiler_static=
9530
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9532 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9533
9534 if test "$GCC" = yes; then
9535 lt_prog_compiler_wl='-Wl,'
9536 lt_prog_compiler_static='-static'
9537
9538 case $host_os in
9539 aix*)
9540 # All AIX code is PIC.
9541 if test "$host_cpu" = ia64; then
9542 # AIX 5 now supports IA64 processor
9543 lt_prog_compiler_static='-Bstatic'
9544 fi
9545 lt_prog_compiler_pic='-fPIC'
9546 ;;
9547
9548 amigaos*)
9549 case $host_cpu in
9550 powerpc)
9551 # see comment about AmigaOS4 .so support
9552 lt_prog_compiler_pic='-fPIC'
9553 ;;
9554 m68k)
9555 # FIXME: we need at least 68020 code to build shared libraries, but
9556 # adding the `-m68020' flag to GCC prevents building anything better,
9557 # like `-m68040'.
9558 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9559 ;;
9560 esac
9561 ;;
9562
9563 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9564 # PIC is the default for these OSes.
9565 ;;
9566
9567 mingw* | cygwin* | pw32* | os2* | cegcc*)
9568 # This hack is so that the source file can tell whether it is being
9569 # built for inclusion in a dll (and should export symbols for example).
9570 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9571 # (--disable-auto-import) libraries
9572 lt_prog_compiler_pic='-DDLL_EXPORT'
9573 ;;
9574
9575 darwin* | rhapsody*)
9576 # PIC is the default on this platform
9577 # Common symbols not allowed in MH_DYLIB files
9578 lt_prog_compiler_pic='-fno-common'
9579 ;;
9580
9581 haiku*)
9582 # PIC is the default for Haiku.
9583 # The "-static" flag exists, but is broken.
9584 lt_prog_compiler_static=
9585 ;;
9586
9587 hpux*)
9588 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9589 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9590 # sets the default TLS model and affects inlining.
9591 case $host_cpu in
9592 hppa*64*)
9593 # +Z the default
9594 ;;
9595 *)
9596 lt_prog_compiler_pic='-fPIC'
9597 ;;
9598 esac
9599 ;;
9600
9601 interix[3-9]*)
9602 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9603 # Instead, we relocate shared libraries at runtime.
9604 ;;
9605
9606 msdosdjgpp*)
9607 # Just because we use GCC doesn't mean we suddenly get shared libraries
9608 # on systems that don't support them.
9609 lt_prog_compiler_can_build_shared=no
9610 enable_shared=no
9611 ;;
9612
9613 *nto* | *qnx*)
9614 # QNX uses GNU C++, but need to define -shared option too, otherwise
9615 # it will coredump.
9616 lt_prog_compiler_pic='-fPIC -shared'
9617 ;;
9618
9619 sysv4*MP*)
9620 if test -d /usr/nec; then
9621 lt_prog_compiler_pic=-Kconform_pic
9622 fi
9623 ;;
9624
9625 *)
9626 lt_prog_compiler_pic='-fPIC'
9627 ;;
9628 esac
9629
9630 case $cc_basename in
9631 nvcc*) # Cuda Compiler Driver 2.2
9632 lt_prog_compiler_wl='-Xlinker '
9633 lt_prog_compiler_pic='-Xcompiler -fPIC'
9634 ;;
9635 esac
9636 else
9637 # PORTME Check for flag to pass linker flags through the system compiler.
9638 case $host_os in
9639 aix*)
9640 lt_prog_compiler_wl='-Wl,'
9641 if test "$host_cpu" = ia64; then
9642 # AIX 5 now supports IA64 processor
9643 lt_prog_compiler_static='-Bstatic'
9644 else
9645 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9646 fi
9647 ;;
9648
9649 mingw* | cygwin* | pw32* | os2* | cegcc*)
9650 # This hack is so that the source file can tell whether it is being
9651 # built for inclusion in a dll (and should export symbols for example).
9652 lt_prog_compiler_pic='-DDLL_EXPORT'
9653 ;;
9654
9655 hpux9* | hpux10* | hpux11*)
9656 lt_prog_compiler_wl='-Wl,'
9657 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9658 # not for PA HP-UX.
9659 case $host_cpu in
9660 hppa*64*|ia64*)
9661 # +Z the default
9662 ;;
9663 *)
9664 lt_prog_compiler_pic='+Z'
9665 ;;
9666 esac
9667 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9668 lt_prog_compiler_static='${wl}-a ${wl}archive'
9669 ;;
9670
9671 irix5* | irix6* | nonstopux*)
9672 lt_prog_compiler_wl='-Wl,'
9673 # PIC (with -KPIC) is the default.
9674 lt_prog_compiler_static='-non_shared'
9675 ;;
9676
9677 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9678 case $cc_basename in
9679 # old Intel for x86_64 which still supported -KPIC.
9680 ecc*)
9681 lt_prog_compiler_wl='-Wl,'
9682 lt_prog_compiler_pic='-KPIC'
9683 lt_prog_compiler_static='-static'
9684 ;;
9685 # icc used to be incompatible with GCC.
9686 # ICC 10 doesn't accept -KPIC any more.
9687 icc* | ifort*)
9688 lt_prog_compiler_wl='-Wl,'
9689 lt_prog_compiler_pic='-fPIC'
9690 lt_prog_compiler_static='-static'
9691 ;;
9692 # Lahey Fortran 8.1.
9693 lf95*)
9694 lt_prog_compiler_wl='-Wl,'
9695 lt_prog_compiler_pic='--shared'
9696 lt_prog_compiler_static='--static'
9697 ;;
9698 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9699 # Portland Group compilers (*not* the Pentium gcc compiler,
9700 # which looks to be a dead project)
9701 lt_prog_compiler_wl='-Wl,'
9702 lt_prog_compiler_pic='-fpic'
9703 lt_prog_compiler_static='-Bstatic'
9704 ;;
9705 ccc*)
9706 lt_prog_compiler_wl='-Wl,'
9707 # All Alpha code is PIC.
9708 lt_prog_compiler_static='-non_shared'
9709 ;;
9710 xl* | bgxl* | bgf* | mpixl*)
9711 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9712 lt_prog_compiler_wl='-Wl,'
9713 lt_prog_compiler_pic='-qpic'
9714 lt_prog_compiler_static='-qstaticlink'
9715 ;;
9716 *)
9717 case `$CC -V 2>&1 | sed 5q` in
9718 *Sun\ F* | *Sun*Fortran*)
9719 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9720 lt_prog_compiler_pic='-KPIC'
9721 lt_prog_compiler_static='-Bstatic'
9722 lt_prog_compiler_wl=''
9723 ;;
9724 *Sun\ C*)
9725 # Sun C 5.9
9726 lt_prog_compiler_pic='-KPIC'
9727 lt_prog_compiler_static='-Bstatic'
9728 lt_prog_compiler_wl='-Wl,'
9729 ;;
9730 esac
9731 ;;
9732 esac
9733 ;;
9734
9735 newsos6)
9736 lt_prog_compiler_pic='-KPIC'
9737 lt_prog_compiler_static='-Bstatic'
9738 ;;
9739
9740 *nto* | *qnx*)
9741 # QNX uses GNU C++, but need to define -shared option too, otherwise
9742 # it will coredump.
9743 lt_prog_compiler_pic='-fPIC -shared'
9744 ;;
9745
9746 osf3* | osf4* | osf5*)
9747 lt_prog_compiler_wl='-Wl,'
9748 # All OSF/1 code is PIC.
9749 lt_prog_compiler_static='-non_shared'
9750 ;;
9751
9752 rdos*)
9753 lt_prog_compiler_static='-non_shared'
9754 ;;
9755
9756 solaris*)
9757 lt_prog_compiler_pic='-KPIC'
9758 lt_prog_compiler_static='-Bstatic'
9759 case $cc_basename in
9760 f77* | f90* | f95*)
9761 lt_prog_compiler_wl='-Qoption ld ';;
9762 *)
9763 lt_prog_compiler_wl='-Wl,';;
9764 esac
9765 ;;
9766
9767 sunos4*)
9768 lt_prog_compiler_wl='-Qoption ld '
9769 lt_prog_compiler_pic='-PIC'
9770 lt_prog_compiler_static='-Bstatic'
9771 ;;
9772
9773 sysv4 | sysv4.2uw2* | sysv4.3*)
9774 lt_prog_compiler_wl='-Wl,'
9775 lt_prog_compiler_pic='-KPIC'
9776 lt_prog_compiler_static='-Bstatic'
9777 ;;
9778
9779 sysv4*MP*)
9780 if test -d /usr/nec ;then
9781 lt_prog_compiler_pic='-Kconform_pic'
9782 lt_prog_compiler_static='-Bstatic'
9783 fi
9784 ;;
9785
9786 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9787 lt_prog_compiler_wl='-Wl,'
9788 lt_prog_compiler_pic='-KPIC'
9789 lt_prog_compiler_static='-Bstatic'
9790 ;;
9791
9792 unicos*)
9793 lt_prog_compiler_wl='-Wl,'
9794 lt_prog_compiler_can_build_shared=no
9795 ;;
9796
9797 uts4*)
9798 lt_prog_compiler_pic='-pic'
9799 lt_prog_compiler_static='-Bstatic'
9800 ;;
9801
9802 *)
9803 lt_prog_compiler_can_build_shared=no
9804 ;;
9805 esac
9806 fi
9807
9808 case $host_os in
9809 # For platforms which do not support PIC, -DPIC is meaningless:
9810 *djgpp*)
9811 lt_prog_compiler_pic=
9812 ;;
9813 *)
9814 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9815 ;;
9816 esac
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9818 $as_echo "$lt_prog_compiler_pic" >&6; }
9819
9820
9821
9822
9823
9824
9825 #
9826 # Check to make sure the PIC flag actually works.
9827 #
9828 if test -n "$lt_prog_compiler_pic"; then
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9830 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9831 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9832 $as_echo_n "(cached) " >&6
9833 else
9834 lt_cv_prog_compiler_pic_works=no
9835 ac_outfile=conftest.$ac_objext
9836 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9837 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9838 # Insert the option either (1) after the last *FLAGS variable, or
9839 # (2) before a word containing "conftest.", or (3) at the end.
9840 # Note that $ac_compile itself does not contain backslashes and begins
9841 # with a dollar sign (not a hyphen), so the echo should work correctly.
9842 # The option is referenced via a variable to avoid confusing sed.
9843 lt_compile=`echo "$ac_compile" | $SED \
9844 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9845 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9846 -e 's:$: $lt_compiler_flag:'`
9847 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9848 (eval "$lt_compile" 2>conftest.err)
9849 ac_status=$?
9850 cat conftest.err >&5
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 if (exit $ac_status) && test -s "$ac_outfile"; then
9853 # The compiler can only warn and ignore the option if not recognized
9854 # So say no if there are warnings other than the usual output.
9855 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9856 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9857 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9858 lt_cv_prog_compiler_pic_works=yes
9859 fi
9860 fi
9861 $RM conftest*
9862
9863 fi
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9865 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9866
9867 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9868 case $lt_prog_compiler_pic in
9869 "" | " "*) ;;
9870 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9871 esac
9872 else
9873 lt_prog_compiler_pic=
9874 lt_prog_compiler_can_build_shared=no
9875 fi
9876
9877 fi
9878
9879
9880
9881
9882
9883
9884 #
9885 # Check to make sure the static flag actually works.
9886 #
9887 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9889 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9890 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9891 $as_echo_n "(cached) " >&6
9892 else
9893 lt_cv_prog_compiler_static_works=no
9894 save_LDFLAGS="$LDFLAGS"
9895 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9896 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9897 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9898 # The linker can only warn and ignore the option if not recognized
9899 # So say no if there are warnings
9900 if test -s conftest.err; then
9901 # Append any errors to the config.log.
9902 cat conftest.err 1>&5
9903 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9904 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9905 if diff conftest.exp conftest.er2 >/dev/null; then
9906 lt_cv_prog_compiler_static_works=yes
9907 fi
9908 else
9909 lt_cv_prog_compiler_static_works=yes
9910 fi
9911 fi
9912 $RM -r conftest*
9913 LDFLAGS="$save_LDFLAGS"
9914
9915 fi
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9917 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9918
9919 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9920 :
9921 else
9922 lt_prog_compiler_static=
9923 fi
9924
9925
9926
9927
9928
9929
9930
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9932 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9933 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9934 $as_echo_n "(cached) " >&6
9935 else
9936 lt_cv_prog_compiler_c_o=no
9937 $RM -r conftest 2>/dev/null
9938 mkdir conftest
9939 cd conftest
9940 mkdir out
9941 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9942
9943 lt_compiler_flag="-o out/conftest2.$ac_objext"
9944 # Insert the option either (1) after the last *FLAGS variable, or
9945 # (2) before a word containing "conftest.", or (3) at the end.
9946 # Note that $ac_compile itself does not contain backslashes and begins
9947 # with a dollar sign (not a hyphen), so the echo should work correctly.
9948 lt_compile=`echo "$ac_compile" | $SED \
9949 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9950 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9951 -e 's:$: $lt_compiler_flag:'`
9952 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9953 (eval "$lt_compile" 2>out/conftest.err)
9954 ac_status=$?
9955 cat out/conftest.err >&5
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9958 then
9959 # The compiler can only warn and ignore the option if not recognized
9960 # So say no if there are warnings
9961 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9962 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9963 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9964 lt_cv_prog_compiler_c_o=yes
9965 fi
9966 fi
9967 chmod u+w . 2>&5
9968 $RM conftest*
9969 # SGI C++ compiler will create directory out/ii_files/ for
9970 # template instantiation
9971 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9972 $RM out/* && rmdir out
9973 cd ..
9974 $RM -r conftest
9975 $RM conftest*
9976
9977 fi
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9979 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9980
9981
9982
9983
9984
9985
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9987 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9988 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9989 $as_echo_n "(cached) " >&6
9990 else
9991 lt_cv_prog_compiler_c_o=no
9992 $RM -r conftest 2>/dev/null
9993 mkdir conftest
9994 cd conftest
9995 mkdir out
9996 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9997
9998 lt_compiler_flag="-o out/conftest2.$ac_objext"
9999 # Insert the option either (1) after the last *FLAGS variable, or
10000 # (2) before a word containing "conftest.", or (3) at the end.
10001 # Note that $ac_compile itself does not contain backslashes and begins
10002 # with a dollar sign (not a hyphen), so the echo should work correctly.
10003 lt_compile=`echo "$ac_compile" | $SED \
10004 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10005 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10006 -e 's:$: $lt_compiler_flag:'`
10007 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10008 (eval "$lt_compile" 2>out/conftest.err)
10009 ac_status=$?
10010 cat out/conftest.err >&5
10011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10013 then
10014 # The compiler can only warn and ignore the option if not recognized
10015 # So say no if there are warnings
10016 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10017 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10018 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10019 lt_cv_prog_compiler_c_o=yes
10020 fi
10021 fi
10022 chmod u+w . 2>&5
10023 $RM conftest*
10024 # SGI C++ compiler will create directory out/ii_files/ for
10025 # template instantiation
10026 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10027 $RM out/* && rmdir out
10028 cd ..
10029 $RM -r conftest
10030 $RM conftest*
10031
10032 fi
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10034 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10035
10036
10037
10038
10039 hard_links="nottested"
10040 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10041 # do not overwrite the value of need_locks provided by the user
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10043 $as_echo_n "checking if we can lock with hard links... " >&6; }
10044 hard_links=yes
10045 $RM conftest*
10046 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10047 touch conftest.a
10048 ln conftest.a conftest.b 2>&5 || hard_links=no
10049 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10051 $as_echo "$hard_links" >&6; }
10052 if test "$hard_links" = no; then
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10054 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10055 need_locks=warn
10056 fi
10057 else
10058 need_locks=no
10059 fi
10060
10061
10062
10063
10064
10065
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10067 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10068
10069 runpath_var=
10070 allow_undefined_flag=
10071 always_export_symbols=no
10072 archive_cmds=
10073 archive_expsym_cmds=
10074 compiler_needs_object=no
10075 enable_shared_with_static_runtimes=no
10076 export_dynamic_flag_spec=
10077 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10078 hardcode_automatic=no
10079 hardcode_direct=no
10080 hardcode_direct_absolute=no
10081 hardcode_libdir_flag_spec=
10082 hardcode_libdir_flag_spec_ld=
10083 hardcode_libdir_separator=
10084 hardcode_minus_L=no
10085 hardcode_shlibpath_var=unsupported
10086 inherit_rpath=no
10087 link_all_deplibs=unknown
10088 module_cmds=
10089 module_expsym_cmds=
10090 old_archive_from_new_cmds=
10091 old_archive_from_expsyms_cmds=
10092 thread_safe_flag_spec=
10093 whole_archive_flag_spec=
10094 # include_expsyms should be a list of space-separated symbols to be *always*
10095 # included in the symbol list
10096 include_expsyms=
10097 # exclude_expsyms can be an extended regexp of symbols to exclude
10098 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10099 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10100 # as well as any symbol that contains `d'.
10101 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10102 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10103 # platforms (ab)use it in PIC code, but their linkers get confused if
10104 # the symbol is explicitly referenced. Since portable code cannot
10105 # rely on this symbol name, it's probably fine to never include it in
10106 # preloaded symbol tables.
10107 # Exclude shared library initialization/finalization symbols.
10108 extract_expsyms_cmds=
10109
10110 case $host_os in
10111 cygwin* | mingw* | pw32* | cegcc*)
10112 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10113 # When not using gcc, we currently assume that we are using
10114 # Microsoft Visual C++.
10115 if test "$GCC" != yes; then
10116 with_gnu_ld=no
10117 fi
10118 ;;
10119 interix*)
10120 # we just hope/assume this is gcc and not c89 (= MSVC++)
10121 with_gnu_ld=yes
10122 ;;
10123 openbsd*)
10124 with_gnu_ld=no
10125 ;;
10126 esac
10127
10128 ld_shlibs=yes
10129
10130 # On some targets, GNU ld is compatible enough with the native linker
10131 # that we're better off using the native interface for both.
10132 lt_use_gnu_ld_interface=no
10133 if test "$with_gnu_ld" = yes; then
10134 case $host_os in
10135 aix*)
10136 # The AIX port of GNU ld has always aspired to compatibility
10137 # with the native linker. However, as the warning in the GNU ld
10138 # block says, versions before 2.19.5* couldn't really create working
10139 # shared libraries, regardless of the interface used.
10140 case `$LD -v 2>&1` in
10141 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10142 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10143 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10144 *)
10145 lt_use_gnu_ld_interface=yes
10146 ;;
10147 esac
10148 ;;
10149 *)
10150 lt_use_gnu_ld_interface=yes
10151 ;;
10152 esac
10153 fi
10154
10155 if test "$lt_use_gnu_ld_interface" = yes; then
10156 # If archive_cmds runs LD, not CC, wlarc should be empty
10157 wlarc='${wl}'
10158
10159 # Set some defaults for GNU ld with shared library support. These
10160 # are reset later if shared libraries are not supported. Putting them
10161 # here allows them to be overridden if necessary.
10162 runpath_var=LD_RUN_PATH
10163 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10164 export_dynamic_flag_spec='${wl}--export-dynamic'
10165 # ancient GNU ld didn't support --whole-archive et. al.
10166 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10167 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10168 else
10169 whole_archive_flag_spec=
10170 fi
10171 supports_anon_versioning=no
10172 case `$LD -v 2>&1` in
10173 *GNU\ gold*) supports_anon_versioning=yes ;;
10174 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10175 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10176 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10177 *\ 2.11.*) ;; # other 2.11 versions
10178 *) supports_anon_versioning=yes ;;
10179 esac
10180
10181 # See if GNU ld supports shared libraries.
10182 case $host_os in
10183 aix[3-9]*)
10184 # On AIX/PPC, the GNU linker is very broken
10185 if test "$host_cpu" != ia64; then
10186 ld_shlibs=no
10187 cat <<_LT_EOF 1>&2
10188
10189 *** Warning: the GNU linker, at least up to release 2.19, is reported
10190 *** to be unable to reliably create shared libraries on AIX.
10191 *** Therefore, libtool is disabling shared libraries support. If you
10192 *** really care for shared libraries, you may want to install binutils
10193 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10194 *** You will then need to restart the configuration process.
10195
10196 _LT_EOF
10197 fi
10198 ;;
10199
10200 amigaos*)
10201 case $host_cpu in
10202 powerpc)
10203 # see comment about AmigaOS4 .so support
10204 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10205 archive_expsym_cmds=''
10206 ;;
10207 m68k)
10208 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)'
10209 hardcode_libdir_flag_spec='-L$libdir'
10210 hardcode_minus_L=yes
10211 ;;
10212 esac
10213 ;;
10214
10215 beos*)
10216 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10217 allow_undefined_flag=unsupported
10218 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10219 # support --undefined. This deserves some investigation. FIXME
10220 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10221 else
10222 ld_shlibs=no
10223 fi
10224 ;;
10225
10226 cygwin* | mingw* | pw32* | cegcc*)
10227 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10228 # as there is no search path for DLLs.
10229 hardcode_libdir_flag_spec='-L$libdir'
10230 export_dynamic_flag_spec='${wl}--export-all-symbols'
10231 allow_undefined_flag=unsupported
10232 always_export_symbols=no
10233 enable_shared_with_static_runtimes=yes
10234 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10235
10236 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10237 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10238 # If the export-symbols file already is a .def file (1st line
10239 # is EXPORTS), use it as is; otherwise, prepend...
10240 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10241 cp $export_symbols $output_objdir/$soname.def;
10242 else
10243 echo EXPORTS > $output_objdir/$soname.def;
10244 cat $export_symbols >> $output_objdir/$soname.def;
10245 fi~
10246 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10247 else
10248 ld_shlibs=no
10249 fi
10250 ;;
10251
10252 haiku*)
10253 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10254 link_all_deplibs=yes
10255 ;;
10256
10257 interix[3-9]*)
10258 hardcode_direct=no
10259 hardcode_shlibpath_var=no
10260 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10261 export_dynamic_flag_spec='${wl}-E'
10262 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10263 # Instead, shared libraries are loaded at an image base (0x10000000 by
10264 # default) and relocated if they conflict, which is a slow very memory
10265 # consuming and fragmenting process. To avoid this, we pick a random,
10266 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10267 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10268 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10269 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'
10270 ;;
10271
10272 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10273 tmp_diet=no
10274 if test "$host_os" = linux-dietlibc; then
10275 case $cc_basename in
10276 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10277 esac
10278 fi
10279 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10280 && test "$tmp_diet" = no
10281 then
10282 tmp_addflag=' $pic_flag'
10283 tmp_sharedflag='-shared'
10284 case $cc_basename,$host_cpu in
10285 pgcc*) # Portland Group C compiler
10286 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'
10287 tmp_addflag=' $pic_flag'
10288 ;;
10289 pgf77* | pgf90* | pgf95* | pgfortran*)
10290 # Portland Group f77 and f90 compilers
10291 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'
10292 tmp_addflag=' $pic_flag -Mnomain' ;;
10293 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10294 tmp_addflag=' -i_dynamic' ;;
10295 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10296 tmp_addflag=' -i_dynamic -nofor_main' ;;
10297 ifc* | ifort*) # Intel Fortran compiler
10298 tmp_addflag=' -nofor_main' ;;
10299 lf95*) # Lahey Fortran 8.1
10300 whole_archive_flag_spec=
10301 tmp_sharedflag='--shared' ;;
10302 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10303 tmp_sharedflag='-qmkshrobj'
10304 tmp_addflag= ;;
10305 nvcc*) # Cuda Compiler Driver 2.2
10306 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'
10307 compiler_needs_object=yes
10308 ;;
10309 esac
10310 case `$CC -V 2>&1 | sed 5q` in
10311 *Sun\ C*) # Sun C 5.9
10312 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'
10313 compiler_needs_object=yes
10314 tmp_sharedflag='-G' ;;
10315 *Sun\ F*) # Sun Fortran 8.3
10316 tmp_sharedflag='-G' ;;
10317 esac
10318 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10319
10320 if test "x$supports_anon_versioning" = xyes; then
10321 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10322 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10323 echo "local: *; };" >> $output_objdir/$libname.ver~
10324 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10325 fi
10326
10327 case $cc_basename in
10328 xlf* | bgf* | bgxlf* | mpixlf*)
10329 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10330 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10331 hardcode_libdir_flag_spec=
10332 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10333 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10334 if test "x$supports_anon_versioning" = xyes; then
10335 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10336 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10337 echo "local: *; };" >> $output_objdir/$libname.ver~
10338 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10339 fi
10340 ;;
10341 esac
10342 else
10343 ld_shlibs=no
10344 fi
10345 ;;
10346
10347 netbsd*)
10348 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10349 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10350 wlarc=
10351 else
10352 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10353 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10354 fi
10355 ;;
10356
10357 solaris*)
10358 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10359 ld_shlibs=no
10360 cat <<_LT_EOF 1>&2
10361
10362 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10363 *** create shared libraries on Solaris systems. Therefore, libtool
10364 *** is disabling shared libraries support. We urge you to upgrade GNU
10365 *** binutils to release 2.9.1 or newer. Another option is to modify
10366 *** your PATH or compiler configuration so that the native linker is
10367 *** used, and then restart.
10368
10369 _LT_EOF
10370 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10371 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10372 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10373 else
10374 ld_shlibs=no
10375 fi
10376 ;;
10377
10378 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10379 case `$LD -v 2>&1` in
10380 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10381 ld_shlibs=no
10382 cat <<_LT_EOF 1>&2
10383
10384 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10385 *** reliably create shared libraries on SCO systems. Therefore, libtool
10386 *** is disabling shared libraries support. We urge you to upgrade GNU
10387 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10388 *** your PATH or compiler configuration so that the native linker is
10389 *** used, and then restart.
10390
10391 _LT_EOF
10392 ;;
10393 *)
10394 # For security reasons, it is highly recommended that you always
10395 # use absolute paths for naming shared libraries, and exclude the
10396 # DT_RUNPATH tag from executables and libraries. But doing so
10397 # requires that you compile everything twice, which is a pain.
10398 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10399 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10400 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10401 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10402 else
10403 ld_shlibs=no
10404 fi
10405 ;;
10406 esac
10407 ;;
10408
10409 sunos4*)
10410 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10411 wlarc=
10412 hardcode_direct=yes
10413 hardcode_shlibpath_var=no
10414 ;;
10415
10416 *)
10417 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10418 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10419 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10420 else
10421 ld_shlibs=no
10422 fi
10423 ;;
10424 esac
10425
10426 if test "$ld_shlibs" = no; then
10427 runpath_var=
10428 hardcode_libdir_flag_spec=
10429 export_dynamic_flag_spec=
10430 whole_archive_flag_spec=
10431 fi
10432 else
10433 # PORTME fill in a description of your system's linker (not GNU ld)
10434 case $host_os in
10435 aix3*)
10436 allow_undefined_flag=unsupported
10437 always_export_symbols=yes
10438 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'
10439 # Note: this linker hardcodes the directories in LIBPATH if there
10440 # are no directories specified by -L.
10441 hardcode_minus_L=yes
10442 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10443 # Neither direct hardcoding nor static linking is supported with a
10444 # broken collect2.
10445 hardcode_direct=unsupported
10446 fi
10447 ;;
10448
10449 aix[4-9]*)
10450 if test "$host_cpu" = ia64; then
10451 # On IA64, the linker does run time linking by default, so we don't
10452 # have to do anything special.
10453 aix_use_runtimelinking=no
10454 exp_sym_flag='-Bexport'
10455 no_entry_flag=""
10456 else
10457 # If we're using GNU nm, then we don't want the "-C" option.
10458 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10459 # Also, AIX nm treats weak defined symbols like other global
10460 # defined symbols, whereas GNU nm marks them as "W".
10461 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10462 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'
10463 else
10464 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10465 fi
10466 aix_use_runtimelinking=no
10467
10468 # Test if we are trying to use run time linking or normal
10469 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10470 # need to do runtime linking.
10471 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10472 for ld_flag in $LDFLAGS; do
10473 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10474 aix_use_runtimelinking=yes
10475 break
10476 fi
10477 done
10478 ;;
10479 esac
10480
10481 exp_sym_flag='-bexport'
10482 no_entry_flag='-bnoentry'
10483 fi
10484
10485 # When large executables or shared objects are built, AIX ld can
10486 # have problems creating the table of contents. If linking a library
10487 # or program results in "error TOC overflow" add -mminimal-toc to
10488 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10489 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10490
10491 archive_cmds=''
10492 hardcode_direct=yes
10493 hardcode_direct_absolute=yes
10494 hardcode_libdir_separator=':'
10495 link_all_deplibs=yes
10496 file_list_spec='${wl}-f,'
10497
10498 if test "$GCC" = yes; then
10499 case $host_os in aix4.[012]|aix4.[012].*)
10500 # We only want to do this on AIX 4.2 and lower, the check
10501 # below for broken collect2 doesn't work under 4.3+
10502 collect2name=`${CC} -print-prog-name=collect2`
10503 if test -f "$collect2name" &&
10504 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10505 then
10506 # We have reworked collect2
10507 :
10508 else
10509 # We have old collect2
10510 hardcode_direct=unsupported
10511 # It fails to find uninstalled libraries when the uninstalled
10512 # path is not listed in the libpath. Setting hardcode_minus_L
10513 # to unsupported forces relinking
10514 hardcode_minus_L=yes
10515 hardcode_libdir_flag_spec='-L$libdir'
10516 hardcode_libdir_separator=
10517 fi
10518 ;;
10519 esac
10520 shared_flag='-shared'
10521 if test "$aix_use_runtimelinking" = yes; then
10522 shared_flag="$shared_flag "'${wl}-G'
10523 fi
10524 else
10525 # not using gcc
10526 if test "$host_cpu" = ia64; then
10527 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10528 # chokes on -Wl,-G. The following line is correct:
10529 shared_flag='-G'
10530 else
10531 if test "$aix_use_runtimelinking" = yes; then
10532 shared_flag='${wl}-G'
10533 else
10534 shared_flag='${wl}-bM:SRE'
10535 fi
10536 fi
10537 fi
10538
10539 export_dynamic_flag_spec='${wl}-bexpall'
10540 # It seems that -bexpall does not export symbols beginning with
10541 # underscore (_), so it is better to generate a list of symbols to export.
10542 always_export_symbols=yes
10543 if test "$aix_use_runtimelinking" = yes; then
10544 # Warning - without using the other runtime loading flags (-brtl),
10545 # -berok will link without error, but may produce a broken library.
10546 allow_undefined_flag='-berok'
10547 # Determine the default libpath from the value encoded in an
10548 # empty executable.
10549 if test x$gcc_no_link = xyes; then
10550 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10551 fi
10552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10553 /* end confdefs.h. */
10554
10555 int
10556 main ()
10557 {
10558
10559 ;
10560 return 0;
10561 }
10562 _ACEOF
10563 if ac_fn_c_try_link "$LINENO"; then :
10564
10565 lt_aix_libpath_sed='
10566 /Import File Strings/,/^$/ {
10567 /^0/ {
10568 s/^0 *\(.*\)$/\1/
10569 p
10570 }
10571 }'
10572 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10573 # Check for a 64-bit object if we didn't find anything.
10574 if test -z "$aix_libpath"; then
10575 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10576 fi
10577 fi
10578 rm -f core conftest.err conftest.$ac_objext \
10579 conftest$ac_exeext conftest.$ac_ext
10580 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10581
10582 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10583 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"
10584 else
10585 if test "$host_cpu" = ia64; then
10586 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10587 allow_undefined_flag="-z nodefs"
10588 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"
10589 else
10590 # Determine the default libpath from the value encoded in an
10591 # empty executable.
10592 if test x$gcc_no_link = xyes; then
10593 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10594 fi
10595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10596 /* end confdefs.h. */
10597
10598 int
10599 main ()
10600 {
10601
10602 ;
10603 return 0;
10604 }
10605 _ACEOF
10606 if ac_fn_c_try_link "$LINENO"; then :
10607
10608 lt_aix_libpath_sed='
10609 /Import File Strings/,/^$/ {
10610 /^0/ {
10611 s/^0 *\(.*\)$/\1/
10612 p
10613 }
10614 }'
10615 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10616 # Check for a 64-bit object if we didn't find anything.
10617 if test -z "$aix_libpath"; then
10618 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10619 fi
10620 fi
10621 rm -f core conftest.err conftest.$ac_objext \
10622 conftest$ac_exeext conftest.$ac_ext
10623 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10624
10625 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10626 # Warning - without using the other run time loading flags,
10627 # -berok will link without error, but may produce a broken library.
10628 no_undefined_flag=' ${wl}-bernotok'
10629 allow_undefined_flag=' ${wl}-berok'
10630 if test "$with_gnu_ld" = yes; then
10631 # We only use this code for GNU lds that support --whole-archive.
10632 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10633 else
10634 # Exported symbols can be pulled into shared objects from archives
10635 whole_archive_flag_spec='$convenience'
10636 fi
10637 archive_cmds_need_lc=yes
10638 # This is similar to how AIX traditionally builds its shared libraries.
10639 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'
10640 fi
10641 fi
10642 ;;
10643
10644 amigaos*)
10645 case $host_cpu in
10646 powerpc)
10647 # see comment about AmigaOS4 .so support
10648 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10649 archive_expsym_cmds=''
10650 ;;
10651 m68k)
10652 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)'
10653 hardcode_libdir_flag_spec='-L$libdir'
10654 hardcode_minus_L=yes
10655 ;;
10656 esac
10657 ;;
10658
10659 bsdi[45]*)
10660 export_dynamic_flag_spec=-rdynamic
10661 ;;
10662
10663 cygwin* | mingw* | pw32* | cegcc*)
10664 # When not using gcc, we currently assume that we are using
10665 # Microsoft Visual C++.
10666 # hardcode_libdir_flag_spec is actually meaningless, as there is
10667 # no search path for DLLs.
10668 hardcode_libdir_flag_spec=' '
10669 allow_undefined_flag=unsupported
10670 # Tell ltmain to make .lib files, not .a files.
10671 libext=lib
10672 # Tell ltmain to make .dll files, not .so files.
10673 shrext_cmds=".dll"
10674 # FIXME: Setting linknames here is a bad hack.
10675 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10676 # The linker will automatically build a .lib file if we build a DLL.
10677 old_archive_from_new_cmds='true'
10678 # FIXME: Should let the user specify the lib program.
10679 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10680 fix_srcfile_path='`cygpath -w "$srcfile"`'
10681 enable_shared_with_static_runtimes=yes
10682 ;;
10683
10684 darwin* | rhapsody*)
10685
10686
10687 archive_cmds_need_lc=no
10688 hardcode_direct=no
10689 hardcode_automatic=yes
10690 hardcode_shlibpath_var=unsupported
10691 if test "$lt_cv_ld_force_load" = "yes"; then
10692 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\"`'
10693 else
10694 whole_archive_flag_spec=''
10695 fi
10696 link_all_deplibs=yes
10697 allow_undefined_flag="$_lt_dar_allow_undefined"
10698 case $cc_basename in
10699 ifort*) _lt_dar_can_shared=yes ;;
10700 *) _lt_dar_can_shared=$GCC ;;
10701 esac
10702 if test "$_lt_dar_can_shared" = "yes"; then
10703 output_verbose_link_cmd=func_echo_all
10704 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10705 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10706 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}"
10707 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}"
10708
10709 else
10710 ld_shlibs=no
10711 fi
10712
10713 ;;
10714
10715 dgux*)
10716 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10717 hardcode_libdir_flag_spec='-L$libdir'
10718 hardcode_shlibpath_var=no
10719 ;;
10720
10721 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10722 # support. Future versions do this automatically, but an explicit c++rt0.o
10723 # does not break anything, and helps significantly (at the cost of a little
10724 # extra space).
10725 freebsd2.2*)
10726 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10727 hardcode_libdir_flag_spec='-R$libdir'
10728 hardcode_direct=yes
10729 hardcode_shlibpath_var=no
10730 ;;
10731
10732 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10733 freebsd2.*)
10734 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10735 hardcode_direct=yes
10736 hardcode_minus_L=yes
10737 hardcode_shlibpath_var=no
10738 ;;
10739
10740 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10741 freebsd* | dragonfly*)
10742 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10743 hardcode_libdir_flag_spec='-R$libdir'
10744 hardcode_direct=yes
10745 hardcode_shlibpath_var=no
10746 ;;
10747
10748 hpux9*)
10749 if test "$GCC" = yes; then
10750 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'
10751 else
10752 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'
10753 fi
10754 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10755 hardcode_libdir_separator=:
10756 hardcode_direct=yes
10757
10758 # hardcode_minus_L: Not really in the search PATH,
10759 # but as the default location of the library.
10760 hardcode_minus_L=yes
10761 export_dynamic_flag_spec='${wl}-E'
10762 ;;
10763
10764 hpux10*)
10765 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10766 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10767 else
10768 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10769 fi
10770 if test "$with_gnu_ld" = no; then
10771 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10772 hardcode_libdir_flag_spec_ld='+b $libdir'
10773 hardcode_libdir_separator=:
10774 hardcode_direct=yes
10775 hardcode_direct_absolute=yes
10776 export_dynamic_flag_spec='${wl}-E'
10777 # hardcode_minus_L: Not really in the search PATH,
10778 # but as the default location of the library.
10779 hardcode_minus_L=yes
10780 fi
10781 ;;
10782
10783 hpux11*)
10784 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10785 case $host_cpu in
10786 hppa*64*)
10787 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10788 ;;
10789 ia64*)
10790 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10791 ;;
10792 *)
10793 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10794 ;;
10795 esac
10796 else
10797 case $host_cpu in
10798 hppa*64*)
10799 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10800 ;;
10801 ia64*)
10802 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10803 ;;
10804 *)
10805
10806 # Older versions of the 11.00 compiler do not understand -b yet
10807 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10809 $as_echo_n "checking if $CC understands -b... " >&6; }
10810 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10811 $as_echo_n "(cached) " >&6
10812 else
10813 lt_cv_prog_compiler__b=no
10814 save_LDFLAGS="$LDFLAGS"
10815 LDFLAGS="$LDFLAGS -b"
10816 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10817 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10818 # The linker can only warn and ignore the option if not recognized
10819 # So say no if there are warnings
10820 if test -s conftest.err; then
10821 # Append any errors to the config.log.
10822 cat conftest.err 1>&5
10823 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10824 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10825 if diff conftest.exp conftest.er2 >/dev/null; then
10826 lt_cv_prog_compiler__b=yes
10827 fi
10828 else
10829 lt_cv_prog_compiler__b=yes
10830 fi
10831 fi
10832 $RM -r conftest*
10833 LDFLAGS="$save_LDFLAGS"
10834
10835 fi
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10837 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10838
10839 if test x"$lt_cv_prog_compiler__b" = xyes; then
10840 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10841 else
10842 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10843 fi
10844
10845 ;;
10846 esac
10847 fi
10848 if test "$with_gnu_ld" = no; then
10849 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10850 hardcode_libdir_separator=:
10851
10852 case $host_cpu in
10853 hppa*64*|ia64*)
10854 hardcode_direct=no
10855 hardcode_shlibpath_var=no
10856 ;;
10857 *)
10858 hardcode_direct=yes
10859 hardcode_direct_absolute=yes
10860 export_dynamic_flag_spec='${wl}-E'
10861
10862 # hardcode_minus_L: Not really in the search PATH,
10863 # but as the default location of the library.
10864 hardcode_minus_L=yes
10865 ;;
10866 esac
10867 fi
10868 ;;
10869
10870 irix5* | irix6* | nonstopux*)
10871 if test "$GCC" = yes; then
10872 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'
10873 # Try to use the -exported_symbol ld option, if it does not
10874 # work, assume that -exports_file does not work either and
10875 # implicitly export all symbols.
10876 save_LDFLAGS="$LDFLAGS"
10877 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10878 if test x$gcc_no_link = xyes; then
10879 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10880 fi
10881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10882 /* end confdefs.h. */
10883 int foo(void) {}
10884 _ACEOF
10885 if ac_fn_c_try_link "$LINENO"; then :
10886 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'
10887
10888 fi
10889 rm -f core conftest.err conftest.$ac_objext \
10890 conftest$ac_exeext conftest.$ac_ext
10891 LDFLAGS="$save_LDFLAGS"
10892 else
10893 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'
10894 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'
10895 fi
10896 archive_cmds_need_lc='no'
10897 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10898 hardcode_libdir_separator=:
10899 inherit_rpath=yes
10900 link_all_deplibs=yes
10901 ;;
10902
10903 netbsd*)
10904 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10905 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10906 else
10907 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10908 fi
10909 hardcode_libdir_flag_spec='-R$libdir'
10910 hardcode_direct=yes
10911 hardcode_shlibpath_var=no
10912 ;;
10913
10914 newsos6)
10915 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10916 hardcode_direct=yes
10917 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10918 hardcode_libdir_separator=:
10919 hardcode_shlibpath_var=no
10920 ;;
10921
10922 *nto* | *qnx*)
10923 ;;
10924
10925 openbsd*)
10926 if test -f /usr/libexec/ld.so; then
10927 hardcode_direct=yes
10928 hardcode_shlibpath_var=no
10929 hardcode_direct_absolute=yes
10930 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10931 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10932 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10933 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10934 export_dynamic_flag_spec='${wl}-E'
10935 else
10936 case $host_os in
10937 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10938 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10939 hardcode_libdir_flag_spec='-R$libdir'
10940 ;;
10941 *)
10942 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10943 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10944 ;;
10945 esac
10946 fi
10947 else
10948 ld_shlibs=no
10949 fi
10950 ;;
10951
10952 os2*)
10953 hardcode_libdir_flag_spec='-L$libdir'
10954 hardcode_minus_L=yes
10955 allow_undefined_flag=unsupported
10956 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'
10957 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10958 ;;
10959
10960 osf3*)
10961 if test "$GCC" = yes; then
10962 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10963 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'
10964 else
10965 allow_undefined_flag=' -expect_unresolved \*'
10966 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'
10967 fi
10968 archive_cmds_need_lc='no'
10969 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10970 hardcode_libdir_separator=:
10971 ;;
10972
10973 osf4* | osf5*) # as osf3* with the addition of -msym flag
10974 if test "$GCC" = yes; then
10975 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10976 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'
10977 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10978 else
10979 allow_undefined_flag=' -expect_unresolved \*'
10980 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'
10981 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~
10982 $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'
10983
10984 # Both c and cxx compiler support -rpath directly
10985 hardcode_libdir_flag_spec='-rpath $libdir'
10986 fi
10987 archive_cmds_need_lc='no'
10988 hardcode_libdir_separator=:
10989 ;;
10990
10991 solaris*)
10992 no_undefined_flag=' -z defs'
10993 if test "$GCC" = yes; then
10994 wlarc='${wl}'
10995 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10996 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10997 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10998 else
10999 case `$CC -V 2>&1` in
11000 *"Compilers 5.0"*)
11001 wlarc=''
11002 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11003 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11004 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11005 ;;
11006 *)
11007 wlarc='${wl}'
11008 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11009 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11010 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11011 ;;
11012 esac
11013 fi
11014 hardcode_libdir_flag_spec='-R$libdir'
11015 hardcode_shlibpath_var=no
11016 case $host_os in
11017 solaris2.[0-5] | solaris2.[0-5].*) ;;
11018 *)
11019 # The compiler driver will combine and reorder linker options,
11020 # but understands `-z linker_flag'. GCC discards it without `$wl',
11021 # but is careful enough not to reorder.
11022 # Supported since Solaris 2.6 (maybe 2.5.1?)
11023 if test "$GCC" = yes; then
11024 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11025 else
11026 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11027 fi
11028 ;;
11029 esac
11030 link_all_deplibs=yes
11031 ;;
11032
11033 sunos4*)
11034 if test "x$host_vendor" = xsequent; then
11035 # Use $CC to link under sequent, because it throws in some extra .o
11036 # files that make .init and .fini sections work.
11037 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11038 else
11039 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11040 fi
11041 hardcode_libdir_flag_spec='-L$libdir'
11042 hardcode_direct=yes
11043 hardcode_minus_L=yes
11044 hardcode_shlibpath_var=no
11045 ;;
11046
11047 sysv4)
11048 case $host_vendor in
11049 sni)
11050 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11051 hardcode_direct=yes # is this really true???
11052 ;;
11053 siemens)
11054 ## LD is ld it makes a PLAMLIB
11055 ## CC just makes a GrossModule.
11056 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11057 reload_cmds='$CC -r -o $output$reload_objs'
11058 hardcode_direct=no
11059 ;;
11060 motorola)
11061 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11062 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11063 ;;
11064 esac
11065 runpath_var='LD_RUN_PATH'
11066 hardcode_shlibpath_var=no
11067 ;;
11068
11069 sysv4.3*)
11070 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11071 hardcode_shlibpath_var=no
11072 export_dynamic_flag_spec='-Bexport'
11073 ;;
11074
11075 sysv4*MP*)
11076 if test -d /usr/nec; then
11077 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11078 hardcode_shlibpath_var=no
11079 runpath_var=LD_RUN_PATH
11080 hardcode_runpath_var=yes
11081 ld_shlibs=yes
11082 fi
11083 ;;
11084
11085 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11086 no_undefined_flag='${wl}-z,text'
11087 archive_cmds_need_lc=no
11088 hardcode_shlibpath_var=no
11089 runpath_var='LD_RUN_PATH'
11090
11091 if test "$GCC" = yes; then
11092 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11093 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11094 else
11095 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11096 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11097 fi
11098 ;;
11099
11100 sysv5* | sco3.2v5* | sco5v6*)
11101 # Note: We can NOT use -z defs as we might desire, because we do not
11102 # link with -lc, and that would cause any symbols used from libc to
11103 # always be unresolved, which means just about no library would
11104 # ever link correctly. If we're not using GNU ld we use -z text
11105 # though, which does catch some bad symbols but isn't as heavy-handed
11106 # as -z defs.
11107 no_undefined_flag='${wl}-z,text'
11108 allow_undefined_flag='${wl}-z,nodefs'
11109 archive_cmds_need_lc=no
11110 hardcode_shlibpath_var=no
11111 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11112 hardcode_libdir_separator=':'
11113 link_all_deplibs=yes
11114 export_dynamic_flag_spec='${wl}-Bexport'
11115 runpath_var='LD_RUN_PATH'
11116
11117 if test "$GCC" = yes; then
11118 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11119 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11120 else
11121 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11122 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11123 fi
11124 ;;
11125
11126 uts4*)
11127 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11128 hardcode_libdir_flag_spec='-L$libdir'
11129 hardcode_shlibpath_var=no
11130 ;;
11131
11132 *)
11133 ld_shlibs=no
11134 ;;
11135 esac
11136
11137 if test x$host_vendor = xsni; then
11138 case $host in
11139 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11140 export_dynamic_flag_spec='${wl}-Blargedynsym'
11141 ;;
11142 esac
11143 fi
11144 fi
11145
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11147 $as_echo "$ld_shlibs" >&6; }
11148 test "$ld_shlibs" = no && can_build_shared=no
11149
11150 with_gnu_ld=$with_gnu_ld
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166 #
11167 # Do we need to explicitly link libc?
11168 #
11169 case "x$archive_cmds_need_lc" in
11170 x|xyes)
11171 # Assume -lc should be added
11172 archive_cmds_need_lc=yes
11173
11174 if test "$enable_shared" = yes && test "$GCC" = yes; then
11175 case $archive_cmds in
11176 *'~'*)
11177 # FIXME: we may have to deal with multi-command sequences.
11178 ;;
11179 '$CC '*)
11180 # Test whether the compiler implicitly links with -lc since on some
11181 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11182 # to ld, don't add -lc before -lgcc.
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11184 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11185 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
11186 $as_echo_n "(cached) " >&6
11187 else
11188 $RM conftest*
11189 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11190
11191 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11192 (eval $ac_compile) 2>&5
11193 ac_status=$?
11194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11195 test $ac_status = 0; } 2>conftest.err; then
11196 soname=conftest
11197 lib=conftest
11198 libobjs=conftest.$ac_objext
11199 deplibs=
11200 wl=$lt_prog_compiler_wl
11201 pic_flag=$lt_prog_compiler_pic
11202 compiler_flags=-v
11203 linker_flags=-v
11204 verstring=
11205 output_objdir=.
11206 libname=conftest
11207 lt_save_allow_undefined_flag=$allow_undefined_flag
11208 allow_undefined_flag=
11209 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11210 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11211 ac_status=$?
11212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11213 test $ac_status = 0; }
11214 then
11215 lt_cv_archive_cmds_need_lc=no
11216 else
11217 lt_cv_archive_cmds_need_lc=yes
11218 fi
11219 allow_undefined_flag=$lt_save_allow_undefined_flag
11220 else
11221 cat conftest.err 1>&5
11222 fi
11223 $RM conftest*
11224
11225 fi
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11227 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11228 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11229 ;;
11230 esac
11231 fi
11232 ;;
11233 esac
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11392 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11393
11394 if test "$GCC" = yes; then
11395 case $host_os in
11396 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11397 *) lt_awk_arg="/^libraries:/" ;;
11398 esac
11399 case $host_os in
11400 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11401 *) lt_sed_strip_eq="s,=/,/,g" ;;
11402 esac
11403 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11404 case $lt_search_path_spec in
11405 *\;*)
11406 # if the path contains ";" then we assume it to be the separator
11407 # otherwise default to the standard path separator (i.e. ":") - it is
11408 # assumed that no part of a normal pathname contains ";" but that should
11409 # okay in the real world where ";" in dirpaths is itself problematic.
11410 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11411 ;;
11412 *)
11413 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11414 ;;
11415 esac
11416 # Ok, now we have the path, separated by spaces, we can step through it
11417 # and add multilib dir if necessary.
11418 lt_tmp_lt_search_path_spec=
11419 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11420 for lt_sys_path in $lt_search_path_spec; do
11421 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11422 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11423 else
11424 test -d "$lt_sys_path" && \
11425 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11426 fi
11427 done
11428 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11429 BEGIN {RS=" "; FS="/|\n";} {
11430 lt_foo="";
11431 lt_count=0;
11432 for (lt_i = NF; lt_i > 0; lt_i--) {
11433 if ($lt_i != "" && $lt_i != ".") {
11434 if ($lt_i == "..") {
11435 lt_count++;
11436 } else {
11437 if (lt_count == 0) {
11438 lt_foo="/" $lt_i lt_foo;
11439 } else {
11440 lt_count--;
11441 }
11442 }
11443 }
11444 }
11445 if (lt_foo != "") { lt_freq[lt_foo]++; }
11446 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11447 }'`
11448 # AWK program above erroneously prepends '/' to C:/dos/paths
11449 # for these hosts.
11450 case $host_os in
11451 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11452 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11453 esac
11454 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11455 else
11456 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11457 fi
11458 library_names_spec=
11459 libname_spec='lib$name'
11460 soname_spec=
11461 shrext_cmds=".so"
11462 postinstall_cmds=
11463 postuninstall_cmds=
11464 finish_cmds=
11465 finish_eval=
11466 shlibpath_var=
11467 shlibpath_overrides_runpath=unknown
11468 version_type=none
11469 dynamic_linker="$host_os ld.so"
11470 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11471 need_lib_prefix=unknown
11472 hardcode_into_libs=no
11473
11474 # when you set need_version to no, make sure it does not cause -set_version
11475 # flags to be left without arguments
11476 need_version=unknown
11477
11478 case $host_os in
11479 aix3*)
11480 version_type=linux
11481 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11482 shlibpath_var=LIBPATH
11483
11484 # AIX 3 has no versioning support, so we append a major version to the name.
11485 soname_spec='${libname}${release}${shared_ext}$major'
11486 ;;
11487
11488 aix[4-9]*)
11489 version_type=linux
11490 need_lib_prefix=no
11491 need_version=no
11492 hardcode_into_libs=yes
11493 if test "$host_cpu" = ia64; then
11494 # AIX 5 supports IA64
11495 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11496 shlibpath_var=LD_LIBRARY_PATH
11497 else
11498 # With GCC up to 2.95.x, collect2 would create an import file
11499 # for dependence libraries. The import file would start with
11500 # the line `#! .'. This would cause the generated library to
11501 # depend on `.', always an invalid library. This was fixed in
11502 # development snapshots of GCC prior to 3.0.
11503 case $host_os in
11504 aix4 | aix4.[01] | aix4.[01].*)
11505 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11506 echo ' yes '
11507 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11508 :
11509 else
11510 can_build_shared=no
11511 fi
11512 ;;
11513 esac
11514 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11515 # soname into executable. Probably we can add versioning support to
11516 # collect2, so additional links can be useful in future.
11517 if test "$aix_use_runtimelinking" = yes; then
11518 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11519 # instead of lib<name>.a to let people know that these are not
11520 # typical AIX shared libraries.
11521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11522 else
11523 # We preserve .a as extension for shared libraries through AIX4.2
11524 # and later when we are not doing run time linking.
11525 library_names_spec='${libname}${release}.a $libname.a'
11526 soname_spec='${libname}${release}${shared_ext}$major'
11527 fi
11528 shlibpath_var=LIBPATH
11529 fi
11530 ;;
11531
11532 amigaos*)
11533 case $host_cpu in
11534 powerpc)
11535 # Since July 2007 AmigaOS4 officially supports .so libraries.
11536 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11538 ;;
11539 m68k)
11540 library_names_spec='$libname.ixlibrary $libname.a'
11541 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11542 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'
11543 ;;
11544 esac
11545 ;;
11546
11547 beos*)
11548 library_names_spec='${libname}${shared_ext}'
11549 dynamic_linker="$host_os ld.so"
11550 shlibpath_var=LIBRARY_PATH
11551 ;;
11552
11553 bsdi[45]*)
11554 version_type=linux
11555 need_version=no
11556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11557 soname_spec='${libname}${release}${shared_ext}$major'
11558 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11559 shlibpath_var=LD_LIBRARY_PATH
11560 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11561 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11562 # the default ld.so.conf also contains /usr/contrib/lib and
11563 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11564 # libtool to hard-code these into programs
11565 ;;
11566
11567 cygwin* | mingw* | pw32* | cegcc*)
11568 version_type=windows
11569 shrext_cmds=".dll"
11570 need_version=no
11571 need_lib_prefix=no
11572
11573 case $GCC,$host_os in
11574 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11575 library_names_spec='$libname.dll.a'
11576 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11577 postinstall_cmds='base_file=`basename \${file}`~
11578 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11579 dldir=$destdir/`dirname \$dlpath`~
11580 test -d \$dldir || mkdir -p \$dldir~
11581 $install_prog $dir/$dlname \$dldir/$dlname~
11582 chmod a+x \$dldir/$dlname~
11583 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11584 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11585 fi'
11586 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11587 dlpath=$dir/\$dldll~
11588 $RM \$dlpath'
11589 shlibpath_overrides_runpath=yes
11590
11591 case $host_os in
11592 cygwin*)
11593 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11594 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11595
11596 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11597 ;;
11598 mingw* | cegcc*)
11599 # MinGW DLLs use traditional 'lib' prefix
11600 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11601 ;;
11602 pw32*)
11603 # pw32 DLLs use 'pw' prefix rather than 'lib'
11604 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11605 ;;
11606 esac
11607 ;;
11608
11609 *)
11610 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11611 ;;
11612 esac
11613 dynamic_linker='Win32 ld.exe'
11614 # FIXME: first we should search . and the directory the executable is in
11615 shlibpath_var=PATH
11616 ;;
11617
11618 darwin* | rhapsody*)
11619 dynamic_linker="$host_os dyld"
11620 version_type=darwin
11621 need_lib_prefix=no
11622 need_version=no
11623 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11624 soname_spec='${libname}${release}${major}$shared_ext'
11625 shlibpath_overrides_runpath=yes
11626 shlibpath_var=DYLD_LIBRARY_PATH
11627 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11628
11629 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11630 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11631 ;;
11632
11633 dgux*)
11634 version_type=linux
11635 need_lib_prefix=no
11636 need_version=no
11637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11638 soname_spec='${libname}${release}${shared_ext}$major'
11639 shlibpath_var=LD_LIBRARY_PATH
11640 ;;
11641
11642 freebsd* | dragonfly*)
11643 # DragonFly does not have aout. When/if they implement a new
11644 # versioning mechanism, adjust this.
11645 if test -x /usr/bin/objformat; then
11646 objformat=`/usr/bin/objformat`
11647 else
11648 case $host_os in
11649 freebsd[23].*) objformat=aout ;;
11650 *) objformat=elf ;;
11651 esac
11652 fi
11653 version_type=freebsd-$objformat
11654 case $version_type in
11655 freebsd-elf*)
11656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11657 need_version=no
11658 need_lib_prefix=no
11659 ;;
11660 freebsd-*)
11661 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11662 need_version=yes
11663 ;;
11664 esac
11665 shlibpath_var=LD_LIBRARY_PATH
11666 case $host_os in
11667 freebsd2.*)
11668 shlibpath_overrides_runpath=yes
11669 ;;
11670 freebsd3.[01]* | freebsdelf3.[01]*)
11671 shlibpath_overrides_runpath=yes
11672 hardcode_into_libs=yes
11673 ;;
11674 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11675 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11676 shlibpath_overrides_runpath=no
11677 hardcode_into_libs=yes
11678 ;;
11679 *) # from 4.6 on, and DragonFly
11680 shlibpath_overrides_runpath=yes
11681 hardcode_into_libs=yes
11682 ;;
11683 esac
11684 ;;
11685
11686 gnu*)
11687 version_type=linux
11688 need_lib_prefix=no
11689 need_version=no
11690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11691 soname_spec='${libname}${release}${shared_ext}$major'
11692 shlibpath_var=LD_LIBRARY_PATH
11693 hardcode_into_libs=yes
11694 ;;
11695
11696 haiku*)
11697 version_type=linux
11698 need_lib_prefix=no
11699 need_version=no
11700 dynamic_linker="$host_os runtime_loader"
11701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11702 soname_spec='${libname}${release}${shared_ext}$major'
11703 shlibpath_var=LIBRARY_PATH
11704 shlibpath_overrides_runpath=yes
11705 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11706 hardcode_into_libs=yes
11707 ;;
11708
11709 hpux9* | hpux10* | hpux11*)
11710 # Give a soname corresponding to the major version so that dld.sl refuses to
11711 # link against other versions.
11712 version_type=sunos
11713 need_lib_prefix=no
11714 need_version=no
11715 case $host_cpu in
11716 ia64*)
11717 shrext_cmds='.so'
11718 hardcode_into_libs=yes
11719 dynamic_linker="$host_os dld.so"
11720 shlibpath_var=LD_LIBRARY_PATH
11721 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11723 soname_spec='${libname}${release}${shared_ext}$major'
11724 if test "X$HPUX_IA64_MODE" = X32; then
11725 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11726 else
11727 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11728 fi
11729 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11730 ;;
11731 hppa*64*)
11732 shrext_cmds='.sl'
11733 hardcode_into_libs=yes
11734 dynamic_linker="$host_os dld.sl"
11735 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11736 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11738 soname_spec='${libname}${release}${shared_ext}$major'
11739 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11740 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11741 ;;
11742 *)
11743 shrext_cmds='.sl'
11744 dynamic_linker="$host_os dld.sl"
11745 shlibpath_var=SHLIB_PATH
11746 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11748 soname_spec='${libname}${release}${shared_ext}$major'
11749 ;;
11750 esac
11751 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11752 postinstall_cmds='chmod 555 $lib'
11753 # or fails outright, so override atomically:
11754 install_override_mode=555
11755 ;;
11756
11757 interix[3-9]*)
11758 version_type=linux
11759 need_lib_prefix=no
11760 need_version=no
11761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11762 soname_spec='${libname}${release}${shared_ext}$major'
11763 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11764 shlibpath_var=LD_LIBRARY_PATH
11765 shlibpath_overrides_runpath=no
11766 hardcode_into_libs=yes
11767 ;;
11768
11769 irix5* | irix6* | nonstopux*)
11770 case $host_os in
11771 nonstopux*) version_type=nonstopux ;;
11772 *)
11773 if test "$lt_cv_prog_gnu_ld" = yes; then
11774 version_type=linux
11775 else
11776 version_type=irix
11777 fi ;;
11778 esac
11779 need_lib_prefix=no
11780 need_version=no
11781 soname_spec='${libname}${release}${shared_ext}$major'
11782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11783 case $host_os in
11784 irix5* | nonstopux*)
11785 libsuff= shlibsuff=
11786 ;;
11787 *)
11788 case $LD in # libtool.m4 will add one of these switches to LD
11789 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11790 libsuff= shlibsuff= libmagic=32-bit;;
11791 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11792 libsuff=32 shlibsuff=N32 libmagic=N32;;
11793 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11794 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11795 *) libsuff= shlibsuff= libmagic=never-match;;
11796 esac
11797 ;;
11798 esac
11799 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11800 shlibpath_overrides_runpath=no
11801 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11802 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11803 hardcode_into_libs=yes
11804 ;;
11805
11806 # No shared lib support for Linux oldld, aout, or coff.
11807 linux*oldld* | linux*aout* | linux*coff*)
11808 dynamic_linker=no
11809 ;;
11810
11811 # This must be Linux ELF.
11812 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11813 version_type=linux
11814 need_lib_prefix=no
11815 need_version=no
11816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11817 soname_spec='${libname}${release}${shared_ext}$major'
11818 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11819 shlibpath_var=LD_LIBRARY_PATH
11820 shlibpath_overrides_runpath=no
11821
11822 # Some binutils ld are patched to set DT_RUNPATH
11823 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11824 $as_echo_n "(cached) " >&6
11825 else
11826 lt_cv_shlibpath_overrides_runpath=no
11827 save_LDFLAGS=$LDFLAGS
11828 save_libdir=$libdir
11829 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11830 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11831 if test x$gcc_no_link = xyes; then
11832 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11833 fi
11834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11835 /* end confdefs.h. */
11836
11837 int
11838 main ()
11839 {
11840
11841 ;
11842 return 0;
11843 }
11844 _ACEOF
11845 if ac_fn_c_try_link "$LINENO"; then :
11846 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11847 lt_cv_shlibpath_overrides_runpath=yes
11848 fi
11849 fi
11850 rm -f core conftest.err conftest.$ac_objext \
11851 conftest$ac_exeext conftest.$ac_ext
11852 LDFLAGS=$save_LDFLAGS
11853 libdir=$save_libdir
11854
11855 fi
11856
11857 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11858
11859 # This implies no fast_install, which is unacceptable.
11860 # Some rework will be needed to allow for fast_install
11861 # before this can be enabled.
11862 hardcode_into_libs=yes
11863
11864 # Append ld.so.conf contents to the search path
11865 if test -f /etc/ld.so.conf; then
11866 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' ' '`
11867 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11868 fi
11869
11870 # We used to test for /lib/ld.so.1 and disable shared libraries on
11871 # powerpc, because MkLinux only supported shared libraries with the
11872 # GNU dynamic linker. Since this was broken with cross compilers,
11873 # most powerpc-linux boxes support dynamic linking these days and
11874 # people can always --disable-shared, the test was removed, and we
11875 # assume the GNU/Linux dynamic linker is in use.
11876 dynamic_linker='GNU/Linux ld.so'
11877 ;;
11878
11879 netbsd*)
11880 version_type=sunos
11881 need_lib_prefix=no
11882 need_version=no
11883 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11885 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11886 dynamic_linker='NetBSD (a.out) ld.so'
11887 else
11888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11889 soname_spec='${libname}${release}${shared_ext}$major'
11890 dynamic_linker='NetBSD ld.elf_so'
11891 fi
11892 shlibpath_var=LD_LIBRARY_PATH
11893 shlibpath_overrides_runpath=yes
11894 hardcode_into_libs=yes
11895 ;;
11896
11897 newsos6)
11898 version_type=linux
11899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11900 shlibpath_var=LD_LIBRARY_PATH
11901 shlibpath_overrides_runpath=yes
11902 ;;
11903
11904 *nto* | *qnx*)
11905 version_type=qnx
11906 need_lib_prefix=no
11907 need_version=no
11908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11909 soname_spec='${libname}${release}${shared_ext}$major'
11910 shlibpath_var=LD_LIBRARY_PATH
11911 shlibpath_overrides_runpath=no
11912 hardcode_into_libs=yes
11913 dynamic_linker='ldqnx.so'
11914 ;;
11915
11916 openbsd*)
11917 version_type=sunos
11918 sys_lib_dlsearch_path_spec="/usr/lib"
11919 need_lib_prefix=no
11920 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11921 case $host_os in
11922 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11923 *) need_version=no ;;
11924 esac
11925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11926 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11927 shlibpath_var=LD_LIBRARY_PATH
11928 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11929 case $host_os in
11930 openbsd2.[89] | openbsd2.[89].*)
11931 shlibpath_overrides_runpath=no
11932 ;;
11933 *)
11934 shlibpath_overrides_runpath=yes
11935 ;;
11936 esac
11937 else
11938 shlibpath_overrides_runpath=yes
11939 fi
11940 ;;
11941
11942 os2*)
11943 libname_spec='$name'
11944 shrext_cmds=".dll"
11945 need_lib_prefix=no
11946 library_names_spec='$libname${shared_ext} $libname.a'
11947 dynamic_linker='OS/2 ld.exe'
11948 shlibpath_var=LIBPATH
11949 ;;
11950
11951 osf3* | osf4* | osf5*)
11952 version_type=osf
11953 need_lib_prefix=no
11954 need_version=no
11955 soname_spec='${libname}${release}${shared_ext}$major'
11956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11957 shlibpath_var=LD_LIBRARY_PATH
11958 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11959 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11960 ;;
11961
11962 rdos*)
11963 dynamic_linker=no
11964 ;;
11965
11966 solaris*)
11967 version_type=linux
11968 need_lib_prefix=no
11969 need_version=no
11970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11971 soname_spec='${libname}${release}${shared_ext}$major'
11972 shlibpath_var=LD_LIBRARY_PATH
11973 shlibpath_overrides_runpath=yes
11974 hardcode_into_libs=yes
11975 # ldd complains unless libraries are executable
11976 postinstall_cmds='chmod +x $lib'
11977 ;;
11978
11979 sunos4*)
11980 version_type=sunos
11981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11982 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11983 shlibpath_var=LD_LIBRARY_PATH
11984 shlibpath_overrides_runpath=yes
11985 if test "$with_gnu_ld" = yes; then
11986 need_lib_prefix=no
11987 fi
11988 need_version=yes
11989 ;;
11990
11991 sysv4 | sysv4.3*)
11992 version_type=linux
11993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11994 soname_spec='${libname}${release}${shared_ext}$major'
11995 shlibpath_var=LD_LIBRARY_PATH
11996 case $host_vendor in
11997 sni)
11998 shlibpath_overrides_runpath=no
11999 need_lib_prefix=no
12000 runpath_var=LD_RUN_PATH
12001 ;;
12002 siemens)
12003 need_lib_prefix=no
12004 ;;
12005 motorola)
12006 need_lib_prefix=no
12007 need_version=no
12008 shlibpath_overrides_runpath=no
12009 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12010 ;;
12011 esac
12012 ;;
12013
12014 sysv4*MP*)
12015 if test -d /usr/nec ;then
12016 version_type=linux
12017 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12018 soname_spec='$libname${shared_ext}.$major'
12019 shlibpath_var=LD_LIBRARY_PATH
12020 fi
12021 ;;
12022
12023 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12024 version_type=freebsd-elf
12025 need_lib_prefix=no
12026 need_version=no
12027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12028 soname_spec='${libname}${release}${shared_ext}$major'
12029 shlibpath_var=LD_LIBRARY_PATH
12030 shlibpath_overrides_runpath=yes
12031 hardcode_into_libs=yes
12032 if test "$with_gnu_ld" = yes; then
12033 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12034 else
12035 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12036 case $host_os in
12037 sco3.2v5*)
12038 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12039 ;;
12040 esac
12041 fi
12042 sys_lib_dlsearch_path_spec='/usr/lib'
12043 ;;
12044
12045 tpf*)
12046 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12047 version_type=linux
12048 need_lib_prefix=no
12049 need_version=no
12050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12051 shlibpath_var=LD_LIBRARY_PATH
12052 shlibpath_overrides_runpath=no
12053 hardcode_into_libs=yes
12054 ;;
12055
12056 uts4*)
12057 version_type=linux
12058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12059 soname_spec='${libname}${release}${shared_ext}$major'
12060 shlibpath_var=LD_LIBRARY_PATH
12061 ;;
12062
12063 *)
12064 dynamic_linker=no
12065 ;;
12066 esac
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12068 $as_echo "$dynamic_linker" >&6; }
12069 test "$dynamic_linker" = no && can_build_shared=no
12070
12071 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12072 if test "$GCC" = yes; then
12073 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12074 fi
12075
12076 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12077 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12078 fi
12079 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12080 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12081 fi
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12175 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12176 hardcode_action=
12177 if test -n "$hardcode_libdir_flag_spec" ||
12178 test -n "$runpath_var" ||
12179 test "X$hardcode_automatic" = "Xyes" ; then
12180
12181 # We can hardcode non-existent directories.
12182 if test "$hardcode_direct" != no &&
12183 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12184 # have to relink, otherwise we might link with an installed library
12185 # when we should be linking with a yet-to-be-installed one
12186 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12187 test "$hardcode_minus_L" != no; then
12188 # Linking always hardcodes the temporary library directory.
12189 hardcode_action=relink
12190 else
12191 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12192 hardcode_action=immediate
12193 fi
12194 else
12195 # We cannot hardcode anything, or else we can only hardcode existing
12196 # directories.
12197 hardcode_action=unsupported
12198 fi
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12200 $as_echo "$hardcode_action" >&6; }
12201
12202 if test "$hardcode_action" = relink ||
12203 test "$inherit_rpath" = yes; then
12204 # Fast installation is not supported
12205 enable_fast_install=no
12206 elif test "$shlibpath_overrides_runpath" = yes ||
12207 test "$enable_shared" = no; then
12208 # Fast installation is not necessary
12209 enable_fast_install=needless
12210 fi
12211
12212
12213
12214
12215
12216
12217 if test "x$enable_dlopen" != xyes; then
12218 enable_dlopen=unknown
12219 enable_dlopen_self=unknown
12220 enable_dlopen_self_static=unknown
12221 else
12222 lt_cv_dlopen=no
12223 lt_cv_dlopen_libs=
12224
12225 case $host_os in
12226 beos*)
12227 lt_cv_dlopen="load_add_on"
12228 lt_cv_dlopen_libs=
12229 lt_cv_dlopen_self=yes
12230 ;;
12231
12232 mingw* | pw32* | cegcc*)
12233 lt_cv_dlopen="LoadLibrary"
12234 lt_cv_dlopen_libs=
12235 ;;
12236
12237 cygwin*)
12238 lt_cv_dlopen="dlopen"
12239 lt_cv_dlopen_libs=
12240 ;;
12241
12242 darwin*)
12243 # if libdl is installed we need to link against it
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12245 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12246 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12247 $as_echo_n "(cached) " >&6
12248 else
12249 ac_check_lib_save_LIBS=$LIBS
12250 LIBS="-ldl $LIBS"
12251 if test x$gcc_no_link = xyes; then
12252 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12253 fi
12254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12255 /* end confdefs.h. */
12256
12257 /* Override any GCC internal prototype to avoid an error.
12258 Use char because int might match the return type of a GCC
12259 builtin and then its argument prototype would still apply. */
12260 #ifdef __cplusplus
12261 extern "C"
12262 #endif
12263 char dlopen ();
12264 int
12265 main ()
12266 {
12267 return dlopen ();
12268 ;
12269 return 0;
12270 }
12271 _ACEOF
12272 if ac_fn_c_try_link "$LINENO"; then :
12273 ac_cv_lib_dl_dlopen=yes
12274 else
12275 ac_cv_lib_dl_dlopen=no
12276 fi
12277 rm -f core conftest.err conftest.$ac_objext \
12278 conftest$ac_exeext conftest.$ac_ext
12279 LIBS=$ac_check_lib_save_LIBS
12280 fi
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12282 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12283 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12284 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12285 else
12286
12287 lt_cv_dlopen="dyld"
12288 lt_cv_dlopen_libs=
12289 lt_cv_dlopen_self=yes
12290
12291 fi
12292
12293 ;;
12294
12295 *)
12296 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12297 if test "x$ac_cv_func_shl_load" = x""yes; then :
12298 lt_cv_dlopen="shl_load"
12299 else
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12301 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12302 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12303 $as_echo_n "(cached) " >&6
12304 else
12305 ac_check_lib_save_LIBS=$LIBS
12306 LIBS="-ldld $LIBS"
12307 if test x$gcc_no_link = xyes; then
12308 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12309 fi
12310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12311 /* end confdefs.h. */
12312
12313 /* Override any GCC internal prototype to avoid an error.
12314 Use char because int might match the return type of a GCC
12315 builtin and then its argument prototype would still apply. */
12316 #ifdef __cplusplus
12317 extern "C"
12318 #endif
12319 char shl_load ();
12320 int
12321 main ()
12322 {
12323 return shl_load ();
12324 ;
12325 return 0;
12326 }
12327 _ACEOF
12328 if ac_fn_c_try_link "$LINENO"; then :
12329 ac_cv_lib_dld_shl_load=yes
12330 else
12331 ac_cv_lib_dld_shl_load=no
12332 fi
12333 rm -f core conftest.err conftest.$ac_objext \
12334 conftest$ac_exeext conftest.$ac_ext
12335 LIBS=$ac_check_lib_save_LIBS
12336 fi
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12338 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12339 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12340 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12341 else
12342 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12343 if test "x$ac_cv_func_dlopen" = x""yes; then :
12344 lt_cv_dlopen="dlopen"
12345 else
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12347 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12348 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12349 $as_echo_n "(cached) " >&6
12350 else
12351 ac_check_lib_save_LIBS=$LIBS
12352 LIBS="-ldl $LIBS"
12353 if test x$gcc_no_link = xyes; then
12354 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12355 fi
12356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12357 /* end confdefs.h. */
12358
12359 /* Override any GCC internal prototype to avoid an error.
12360 Use char because int might match the return type of a GCC
12361 builtin and then its argument prototype would still apply. */
12362 #ifdef __cplusplus
12363 extern "C"
12364 #endif
12365 char dlopen ();
12366 int
12367 main ()
12368 {
12369 return dlopen ();
12370 ;
12371 return 0;
12372 }
12373 _ACEOF
12374 if ac_fn_c_try_link "$LINENO"; then :
12375 ac_cv_lib_dl_dlopen=yes
12376 else
12377 ac_cv_lib_dl_dlopen=no
12378 fi
12379 rm -f core conftest.err conftest.$ac_objext \
12380 conftest$ac_exeext conftest.$ac_ext
12381 LIBS=$ac_check_lib_save_LIBS
12382 fi
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12384 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12385 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12386 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12387 else
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12389 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12390 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12391 $as_echo_n "(cached) " >&6
12392 else
12393 ac_check_lib_save_LIBS=$LIBS
12394 LIBS="-lsvld $LIBS"
12395 if test x$gcc_no_link = xyes; then
12396 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12397 fi
12398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12399 /* end confdefs.h. */
12400
12401 /* Override any GCC internal prototype to avoid an error.
12402 Use char because int might match the return type of a GCC
12403 builtin and then its argument prototype would still apply. */
12404 #ifdef __cplusplus
12405 extern "C"
12406 #endif
12407 char dlopen ();
12408 int
12409 main ()
12410 {
12411 return dlopen ();
12412 ;
12413 return 0;
12414 }
12415 _ACEOF
12416 if ac_fn_c_try_link "$LINENO"; then :
12417 ac_cv_lib_svld_dlopen=yes
12418 else
12419 ac_cv_lib_svld_dlopen=no
12420 fi
12421 rm -f core conftest.err conftest.$ac_objext \
12422 conftest$ac_exeext conftest.$ac_ext
12423 LIBS=$ac_check_lib_save_LIBS
12424 fi
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12426 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12427 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12428 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12429 else
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12431 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12432 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12433 $as_echo_n "(cached) " >&6
12434 else
12435 ac_check_lib_save_LIBS=$LIBS
12436 LIBS="-ldld $LIBS"
12437 if test x$gcc_no_link = xyes; then
12438 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12439 fi
12440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12441 /* end confdefs.h. */
12442
12443 /* Override any GCC internal prototype to avoid an error.
12444 Use char because int might match the return type of a GCC
12445 builtin and then its argument prototype would still apply. */
12446 #ifdef __cplusplus
12447 extern "C"
12448 #endif
12449 char dld_link ();
12450 int
12451 main ()
12452 {
12453 return dld_link ();
12454 ;
12455 return 0;
12456 }
12457 _ACEOF
12458 if ac_fn_c_try_link "$LINENO"; then :
12459 ac_cv_lib_dld_dld_link=yes
12460 else
12461 ac_cv_lib_dld_dld_link=no
12462 fi
12463 rm -f core conftest.err conftest.$ac_objext \
12464 conftest$ac_exeext conftest.$ac_ext
12465 LIBS=$ac_check_lib_save_LIBS
12466 fi
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12468 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12469 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12470 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12471 fi
12472
12473
12474 fi
12475
12476
12477 fi
12478
12479
12480 fi
12481
12482
12483 fi
12484
12485
12486 fi
12487
12488 ;;
12489 esac
12490
12491 if test "x$lt_cv_dlopen" != xno; then
12492 enable_dlopen=yes
12493 else
12494 enable_dlopen=no
12495 fi
12496
12497 case $lt_cv_dlopen in
12498 dlopen)
12499 save_CPPFLAGS="$CPPFLAGS"
12500 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12501
12502 save_LDFLAGS="$LDFLAGS"
12503 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12504
12505 save_LIBS="$LIBS"
12506 LIBS="$lt_cv_dlopen_libs $LIBS"
12507
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12509 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12510 if test "${lt_cv_dlopen_self+set}" = set; then :
12511 $as_echo_n "(cached) " >&6
12512 else
12513 if test "$cross_compiling" = yes; then :
12514 lt_cv_dlopen_self=cross
12515 else
12516 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12517 lt_status=$lt_dlunknown
12518 cat > conftest.$ac_ext <<_LT_EOF
12519 #line 12519 "configure"
12520 #include "confdefs.h"
12521
12522 #if HAVE_DLFCN_H
12523 #include <dlfcn.h>
12524 #endif
12525
12526 #include <stdio.h>
12527
12528 #ifdef RTLD_GLOBAL
12529 # define LT_DLGLOBAL RTLD_GLOBAL
12530 #else
12531 # ifdef DL_GLOBAL
12532 # define LT_DLGLOBAL DL_GLOBAL
12533 # else
12534 # define LT_DLGLOBAL 0
12535 # endif
12536 #endif
12537
12538 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12539 find out it does not work in some platform. */
12540 #ifndef LT_DLLAZY_OR_NOW
12541 # ifdef RTLD_LAZY
12542 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12543 # else
12544 # ifdef DL_LAZY
12545 # define LT_DLLAZY_OR_NOW DL_LAZY
12546 # else
12547 # ifdef RTLD_NOW
12548 # define LT_DLLAZY_OR_NOW RTLD_NOW
12549 # else
12550 # ifdef DL_NOW
12551 # define LT_DLLAZY_OR_NOW DL_NOW
12552 # else
12553 # define LT_DLLAZY_OR_NOW 0
12554 # endif
12555 # endif
12556 # endif
12557 # endif
12558 #endif
12559
12560 /* When -fvisbility=hidden is used, assume the code has been annotated
12561 correspondingly for the symbols needed. */
12562 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12563 void fnord () __attribute__((visibility("default")));
12564 #endif
12565
12566 void fnord () { int i=42; }
12567 int main ()
12568 {
12569 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12570 int status = $lt_dlunknown;
12571
12572 if (self)
12573 {
12574 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12575 else
12576 {
12577 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12578 else puts (dlerror ());
12579 }
12580 /* dlclose (self); */
12581 }
12582 else
12583 puts (dlerror ());
12584
12585 return status;
12586 }
12587 _LT_EOF
12588 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12589 (eval $ac_link) 2>&5
12590 ac_status=$?
12591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12592 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12593 (./conftest; exit; ) >&5 2>/dev/null
12594 lt_status=$?
12595 case x$lt_status in
12596 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12597 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12598 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12599 esac
12600 else :
12601 # compilation failed
12602 lt_cv_dlopen_self=no
12603 fi
12604 fi
12605 rm -fr conftest*
12606
12607
12608 fi
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12610 $as_echo "$lt_cv_dlopen_self" >&6; }
12611
12612 if test "x$lt_cv_dlopen_self" = xyes; then
12613 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12615 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12616 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12617 $as_echo_n "(cached) " >&6
12618 else
12619 if test "$cross_compiling" = yes; then :
12620 lt_cv_dlopen_self_static=cross
12621 else
12622 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12623 lt_status=$lt_dlunknown
12624 cat > conftest.$ac_ext <<_LT_EOF
12625 #line 12625 "configure"
12626 #include "confdefs.h"
12627
12628 #if HAVE_DLFCN_H
12629 #include <dlfcn.h>
12630 #endif
12631
12632 #include <stdio.h>
12633
12634 #ifdef RTLD_GLOBAL
12635 # define LT_DLGLOBAL RTLD_GLOBAL
12636 #else
12637 # ifdef DL_GLOBAL
12638 # define LT_DLGLOBAL DL_GLOBAL
12639 # else
12640 # define LT_DLGLOBAL 0
12641 # endif
12642 #endif
12643
12644 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12645 find out it does not work in some platform. */
12646 #ifndef LT_DLLAZY_OR_NOW
12647 # ifdef RTLD_LAZY
12648 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12649 # else
12650 # ifdef DL_LAZY
12651 # define LT_DLLAZY_OR_NOW DL_LAZY
12652 # else
12653 # ifdef RTLD_NOW
12654 # define LT_DLLAZY_OR_NOW RTLD_NOW
12655 # else
12656 # ifdef DL_NOW
12657 # define LT_DLLAZY_OR_NOW DL_NOW
12658 # else
12659 # define LT_DLLAZY_OR_NOW 0
12660 # endif
12661 # endif
12662 # endif
12663 # endif
12664 #endif
12665
12666 /* When -fvisbility=hidden is used, assume the code has been annotated
12667 correspondingly for the symbols needed. */
12668 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12669 void fnord () __attribute__((visibility("default")));
12670 #endif
12671
12672 void fnord () { int i=42; }
12673 int main ()
12674 {
12675 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12676 int status = $lt_dlunknown;
12677
12678 if (self)
12679 {
12680 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12681 else
12682 {
12683 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12684 else puts (dlerror ());
12685 }
12686 /* dlclose (self); */
12687 }
12688 else
12689 puts (dlerror ());
12690
12691 return status;
12692 }
12693 _LT_EOF
12694 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12695 (eval $ac_link) 2>&5
12696 ac_status=$?
12697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12698 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12699 (./conftest; exit; ) >&5 2>/dev/null
12700 lt_status=$?
12701 case x$lt_status in
12702 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12703 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12704 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12705 esac
12706 else :
12707 # compilation failed
12708 lt_cv_dlopen_self_static=no
12709 fi
12710 fi
12711 rm -fr conftest*
12712
12713
12714 fi
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12716 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12717 fi
12718
12719 CPPFLAGS="$save_CPPFLAGS"
12720 LDFLAGS="$save_LDFLAGS"
12721 LIBS="$save_LIBS"
12722 ;;
12723 esac
12724
12725 case $lt_cv_dlopen_self in
12726 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12727 *) enable_dlopen_self=unknown ;;
12728 esac
12729
12730 case $lt_cv_dlopen_self_static in
12731 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12732 *) enable_dlopen_self_static=unknown ;;
12733 esac
12734 fi
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752 striplib=
12753 old_striplib=
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12755 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12756 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12757 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12758 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12760 $as_echo "yes" >&6; }
12761 else
12762 # FIXME - insert some real tests, host_os isn't really good enough
12763 case $host_os in
12764 darwin*)
12765 if test -n "$STRIP" ; then
12766 striplib="$STRIP -x"
12767 old_striplib="$STRIP -S"
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12769 $as_echo "yes" >&6; }
12770 else
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12772 $as_echo "no" >&6; }
12773 fi
12774 ;;
12775 *)
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12777 $as_echo "no" >&6; }
12778 ;;
12779 esac
12780 fi
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793 # Report which library types will actually be built
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12795 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12797 $as_echo "$can_build_shared" >&6; }
12798
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12800 $as_echo_n "checking whether to build shared libraries... " >&6; }
12801 test "$can_build_shared" = "no" && enable_shared=no
12802
12803 # On AIX, shared libraries and static libraries use the same namespace, and
12804 # are all built from PIC.
12805 case $host_os in
12806 aix3*)
12807 test "$enable_shared" = yes && enable_static=no
12808 if test -n "$RANLIB"; then
12809 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12810 postinstall_cmds='$RANLIB $lib'
12811 fi
12812 ;;
12813
12814 aix[4-9]*)
12815 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12816 test "$enable_shared" = yes && enable_static=no
12817 fi
12818 ;;
12819 esac
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12821 $as_echo "$enable_shared" >&6; }
12822
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12824 $as_echo_n "checking whether to build static libraries... " >&6; }
12825 # Make sure either enable_shared or enable_static is yes.
12826 test "$enable_shared" = yes || enable_static=yes
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12828 $as_echo "$enable_static" >&6; }
12829
12830
12831
12832
12833 fi
12834 ac_ext=c
12835 ac_cpp='$CPP $CPPFLAGS'
12836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12839
12840 CC="$lt_save_CC"
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854 ac_config_commands="$ac_config_commands libtool"
12855
12856
12857
12858
12859 # Only expand once:
12860
12861
12862
12863
12864
12865 case $host in
12866 *-cygwin* | *-mingw*)
12867 # 'host' will be top-level target in the case of a target lib,
12868 # we must compare to with_cross_host to decide if this is a native
12869 # or cross-compiler and select where to install dlls appropriately.
12870 if test -n "$with_cross_host" &&
12871 test x"$with_cross_host" != x"no"; then
12872 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
12873 else
12874 lt_host_flags='-no-undefined -bindir "$(bindir)"';
12875 fi
12876 ;;
12877 *)
12878 lt_host_flags=
12879 ;;
12880 esac
12881
12882
12883
12884
12885
12886 #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
12887
12888 # We need gfortran to compile parts of the library
12889 #AC_PROG_FC(gfortran)
12890 FC="$GFORTRAN"
12891 ac_ext=${ac_fc_srcext-f}
12892 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12893 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
12894 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12895 if test -n "$ac_tool_prefix"; then
12896 for ac_prog in gfortran
12897 do
12898 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12899 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12901 $as_echo_n "checking for $ac_word... " >&6; }
12902 if test "${ac_cv_prog_FC+set}" = set; then :
12903 $as_echo_n "(cached) " >&6
12904 else
12905 if test -n "$FC"; then
12906 ac_cv_prog_FC="$FC" # Let the user override the test.
12907 else
12908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12909 for as_dir in $PATH
12910 do
12911 IFS=$as_save_IFS
12912 test -z "$as_dir" && as_dir=.
12913 for ac_exec_ext in '' $ac_executable_extensions; do
12914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12915 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
12916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12917 break 2
12918 fi
12919 done
12920 done
12921 IFS=$as_save_IFS
12922
12923 fi
12924 fi
12925 FC=$ac_cv_prog_FC
12926 if test -n "$FC"; then
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
12928 $as_echo "$FC" >&6; }
12929 else
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12931 $as_echo "no" >&6; }
12932 fi
12933
12934
12935 test -n "$FC" && break
12936 done
12937 fi
12938 if test -z "$FC"; then
12939 ac_ct_FC=$FC
12940 for ac_prog in gfortran
12941 do
12942 # Extract the first word of "$ac_prog", so it can be a program name with args.
12943 set dummy $ac_prog; ac_word=$2
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12945 $as_echo_n "checking for $ac_word... " >&6; }
12946 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
12947 $as_echo_n "(cached) " >&6
12948 else
12949 if test -n "$ac_ct_FC"; then
12950 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
12951 else
12952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12953 for as_dir in $PATH
12954 do
12955 IFS=$as_save_IFS
12956 test -z "$as_dir" && as_dir=.
12957 for ac_exec_ext in '' $ac_executable_extensions; do
12958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12959 ac_cv_prog_ac_ct_FC="$ac_prog"
12960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12961 break 2
12962 fi
12963 done
12964 done
12965 IFS=$as_save_IFS
12966
12967 fi
12968 fi
12969 ac_ct_FC=$ac_cv_prog_ac_ct_FC
12970 if test -n "$ac_ct_FC"; then
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
12972 $as_echo "$ac_ct_FC" >&6; }
12973 else
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12975 $as_echo "no" >&6; }
12976 fi
12977
12978
12979 test -n "$ac_ct_FC" && break
12980 done
12981
12982 if test "x$ac_ct_FC" = x; then
12983 FC=""
12984 else
12985 case $cross_compiling:$ac_tool_warned in
12986 yes:)
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12988 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12989 ac_tool_warned=yes ;;
12990 esac
12991 FC=$ac_ct_FC
12992 fi
12993 fi
12994
12995
12996 # Provide some information about the compiler.
12997 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
12998 set X $ac_compile
12999 ac_compiler=$2
13000 for ac_option in --version -v -V -qversion; do
13001 { { ac_try="$ac_compiler $ac_option >&5"
13002 case "(($ac_try" in
13003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13004 *) ac_try_echo=$ac_try;;
13005 esac
13006 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13007 $as_echo "$ac_try_echo"; } >&5
13008 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13009 ac_status=$?
13010 if test -s conftest.err; then
13011 sed '10a\
13012 ... rest of stderr output deleted ...
13013 10q' conftest.err >conftest.er1
13014 cat conftest.er1 >&5
13015 rm -f conftest.er1 conftest.err
13016 fi
13017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13018 test $ac_status = 0; }
13019 done
13020 rm -f a.out
13021
13022 # If we don't use `.F' as extension, the preprocessor is not run on the
13023 # input file. (Note that this only needs to work for GNU compilers.)
13024 ac_save_ext=$ac_ext
13025 ac_ext=F
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
13027 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
13028 if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
13029 $as_echo_n "(cached) " >&6
13030 else
13031 cat > conftest.$ac_ext <<_ACEOF
13032 program main
13033 #ifndef __GNUC__
13034 choke me
13035 #endif
13036
13037 end
13038 _ACEOF
13039 if ac_fn_fc_try_compile "$LINENO"; then :
13040 ac_compiler_gnu=yes
13041 else
13042 ac_compiler_gnu=no
13043 fi
13044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13045 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
13046
13047 fi
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
13049 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
13050 ac_ext=$ac_save_ext
13051 ac_test_FCFLAGS=${FCFLAGS+set}
13052 ac_save_FCFLAGS=$FCFLAGS
13053 FCFLAGS=
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
13055 $as_echo_n "checking whether $FC accepts -g... " >&6; }
13056 if test "${ac_cv_prog_fc_g+set}" = set; then :
13057 $as_echo_n "(cached) " >&6
13058 else
13059 FCFLAGS=-g
13060 cat > conftest.$ac_ext <<_ACEOF
13061 program main
13062
13063 end
13064 _ACEOF
13065 if ac_fn_fc_try_compile "$LINENO"; then :
13066 ac_cv_prog_fc_g=yes
13067 else
13068 ac_cv_prog_fc_g=no
13069 fi
13070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13071
13072 fi
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
13074 $as_echo "$ac_cv_prog_fc_g" >&6; }
13075 if test "$ac_test_FCFLAGS" = set; then
13076 FCFLAGS=$ac_save_FCFLAGS
13077 elif test $ac_cv_prog_fc_g = yes; then
13078 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
13079 FCFLAGS="-g -O2"
13080 else
13081 FCFLAGS="-g"
13082 fi
13083 else
13084 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
13085 FCFLAGS="-O2"
13086 else
13087 FCFLAGS=
13088 fi
13089 fi
13090
13091 ac_ext=c
13092 ac_cpp='$CPP $CPPFLAGS'
13093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13096
13097 ac_ext=${ac_fc_srcext-f}
13098 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
13099 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
13100 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
13101
13102
13103 if test -z "$FC" || test "X$FC" = "Xno"; then
13104 _lt_disable_FC=yes
13105 fi
13106
13107 archive_cmds_need_lc_FC=no
13108 allow_undefined_flag_FC=
13109 always_export_symbols_FC=no
13110 archive_expsym_cmds_FC=
13111 export_dynamic_flag_spec_FC=
13112 hardcode_direct_FC=no
13113 hardcode_direct_absolute_FC=no
13114 hardcode_libdir_flag_spec_FC=
13115 hardcode_libdir_flag_spec_ld_FC=
13116 hardcode_libdir_separator_FC=
13117 hardcode_minus_L_FC=no
13118 hardcode_automatic_FC=no
13119 inherit_rpath_FC=no
13120 module_cmds_FC=
13121 module_expsym_cmds_FC=
13122 link_all_deplibs_FC=unknown
13123 old_archive_cmds_FC=$old_archive_cmds
13124 reload_flag_FC=$reload_flag
13125 reload_cmds_FC=$reload_cmds
13126 no_undefined_flag_FC=
13127 whole_archive_flag_spec_FC=
13128 enable_shared_with_static_runtimes_FC=no
13129
13130 # Source file extension for fc test sources.
13131 ac_ext=${ac_fc_srcext-f}
13132
13133 # Object file extension for compiled fc test sources.
13134 objext=o
13135 objext_FC=$objext
13136
13137 # No sense in running all these tests if we already determined that
13138 # the FC compiler isn't working. Some variables (like enable_shared)
13139 # are currently assumed to apply to all compilers on this platform,
13140 # and will be corrupted by setting them based on a non-working compiler.
13141 if test "$_lt_disable_FC" != yes; then
13142 # Code to be used in simple compile tests
13143 lt_simple_compile_test_code="\
13144 subroutine t
13145 return
13146 end
13147 "
13148
13149 # Code to be used in simple link tests
13150 lt_simple_link_test_code="\
13151 program t
13152 end
13153 "
13154
13155 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13156
13157
13158
13159
13160
13161
13162 # If no C compiler was specified, use CC.
13163 LTCC=${LTCC-"$CC"}
13164
13165 # If no C compiler flags were specified, use CFLAGS.
13166 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13167
13168 # Allow CC to be a program name with arguments.
13169 compiler=$CC
13170
13171
13172 # save warnings/boilerplate of simple test code
13173 ac_outfile=conftest.$ac_objext
13174 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13175 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13176 _lt_compiler_boilerplate=`cat conftest.err`
13177 $RM conftest*
13178
13179 ac_outfile=conftest.$ac_objext
13180 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13181 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13182 _lt_linker_boilerplate=`cat conftest.err`
13183 $RM -r conftest*
13184
13185
13186 # Allow CC to be a program name with arguments.
13187 lt_save_CC="$CC"
13188 lt_save_GCC=$GCC
13189 CC=${FC-"f95"}
13190 compiler=$CC
13191 GCC=$ac_cv_fc_compiler_gnu
13192
13193 compiler_FC=$CC
13194 for cc_temp in $compiler""; do
13195 case $cc_temp in
13196 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13197 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13198 \-*) ;;
13199 *) break;;
13200 esac
13201 done
13202 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13203
13204
13205 if test -n "$compiler"; then
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13207 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13209 $as_echo "$can_build_shared" >&6; }
13210
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13212 $as_echo_n "checking whether to build shared libraries... " >&6; }
13213 test "$can_build_shared" = "no" && enable_shared=no
13214
13215 # On AIX, shared libraries and static libraries use the same namespace, and
13216 # are all built from PIC.
13217 case $host_os in
13218 aix3*)
13219 test "$enable_shared" = yes && enable_static=no
13220 if test -n "$RANLIB"; then
13221 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13222 postinstall_cmds='$RANLIB $lib'
13223 fi
13224 ;;
13225 aix[4-9]*)
13226 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13227 test "$enable_shared" = yes && enable_static=no
13228 fi
13229 ;;
13230 esac
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13232 $as_echo "$enable_shared" >&6; }
13233
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13235 $as_echo_n "checking whether to build static libraries... " >&6; }
13236 # Make sure either enable_shared or enable_static is yes.
13237 test "$enable_shared" = yes || enable_static=yes
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13239 $as_echo "$enable_static" >&6; }
13240
13241 GCC_FC="$ac_cv_fc_compiler_gnu"
13242 LD_FC="$LD"
13243
13244 ## CAVEAT EMPTOR:
13245 ## There is no encapsulation within the following macros, do not change
13246 ## the running order or otherwise move them around unless you know exactly
13247 ## what you are doing...
13248 # Dependencies to place before and after the object being linked:
13249 predep_objects_FC=
13250 postdep_objects_FC=
13251 predeps_FC=
13252 postdeps_FC=
13253 compiler_lib_search_path_FC=
13254
13255 cat > conftest.$ac_ext <<_LT_EOF
13256 subroutine foo
13257 implicit none
13258 integer a
13259 a=0
13260 return
13261 end
13262 _LT_EOF
13263
13264 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13265 (eval $ac_compile) 2>&5
13266 ac_status=$?
13267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13268 test $ac_status = 0; }; then
13269 # Parse the compiler output and extract the necessary
13270 # objects, libraries and library flags.
13271
13272 # Sentinel used to keep track of whether or not we are before
13273 # the conftest object file.
13274 pre_test_object_deps_done=no
13275
13276 for p in `eval "$output_verbose_link_cmd"`; do
13277 case $p in
13278
13279 -L* | -R* | -l*)
13280 # Some compilers place space between "-{L,R}" and the path.
13281 # Remove the space.
13282 if test $p = "-L" ||
13283 test $p = "-R"; then
13284 prev=$p
13285 continue
13286 else
13287 prev=
13288 fi
13289
13290 if test "$pre_test_object_deps_done" = no; then
13291 case $p in
13292 -L* | -R*)
13293 # Internal compiler library paths should come after those
13294 # provided the user. The postdeps already come after the
13295 # user supplied libs so there is no need to process them.
13296 if test -z "$compiler_lib_search_path_FC"; then
13297 compiler_lib_search_path_FC="${prev}${p}"
13298 else
13299 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
13300 fi
13301 ;;
13302 # The "-l" case would never come before the object being
13303 # linked, so don't bother handling this case.
13304 esac
13305 else
13306 if test -z "$postdeps_FC"; then
13307 postdeps_FC="${prev}${p}"
13308 else
13309 postdeps_FC="${postdeps_FC} ${prev}${p}"
13310 fi
13311 fi
13312 ;;
13313
13314 *.$objext)
13315 # This assumes that the test object file only shows up
13316 # once in the compiler output.
13317 if test "$p" = "conftest.$objext"; then
13318 pre_test_object_deps_done=yes
13319 continue
13320 fi
13321
13322 if test "$pre_test_object_deps_done" = no; then
13323 if test -z "$predep_objects_FC"; then
13324 predep_objects_FC="$p"
13325 else
13326 predep_objects_FC="$predep_objects_FC $p"
13327 fi
13328 else
13329 if test -z "$postdep_objects_FC"; then
13330 postdep_objects_FC="$p"
13331 else
13332 postdep_objects_FC="$postdep_objects_FC $p"
13333 fi
13334 fi
13335 ;;
13336
13337 *) ;; # Ignore the rest.
13338
13339 esac
13340 done
13341
13342 # Clean up.
13343 rm -f a.out a.exe
13344 else
13345 echo "libtool.m4: error: problem compiling FC test program"
13346 fi
13347
13348 $RM -f confest.$objext
13349
13350 # PORTME: override above test on systems where it is broken
13351
13352
13353 case " $postdeps_FC " in
13354 *" -lc "*) archive_cmds_need_lc_FC=no ;;
13355 esac
13356 compiler_lib_search_dirs_FC=
13357 if test -n "${compiler_lib_search_path_FC}"; then
13358 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13359 fi
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391 lt_prog_compiler_wl_FC=
13392 lt_prog_compiler_pic_FC=
13393 lt_prog_compiler_static_FC=
13394
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13396 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13397
13398 if test "$GCC" = yes; then
13399 lt_prog_compiler_wl_FC='-Wl,'
13400 lt_prog_compiler_static_FC='-static'
13401
13402 case $host_os in
13403 aix*)
13404 # All AIX code is PIC.
13405 if test "$host_cpu" = ia64; then
13406 # AIX 5 now supports IA64 processor
13407 lt_prog_compiler_static_FC='-Bstatic'
13408 fi
13409 lt_prog_compiler_pic_FC='-fPIC'
13410 ;;
13411
13412 amigaos*)
13413 case $host_cpu in
13414 powerpc)
13415 # see comment about AmigaOS4 .so support
13416 lt_prog_compiler_pic_FC='-fPIC'
13417 ;;
13418 m68k)
13419 # FIXME: we need at least 68020 code to build shared libraries, but
13420 # adding the `-m68020' flag to GCC prevents building anything better,
13421 # like `-m68040'.
13422 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
13423 ;;
13424 esac
13425 ;;
13426
13427 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13428 # PIC is the default for these OSes.
13429 ;;
13430
13431 mingw* | cygwin* | pw32* | os2* | cegcc*)
13432 # This hack is so that the source file can tell whether it is being
13433 # built for inclusion in a dll (and should export symbols for example).
13434 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13435 # (--disable-auto-import) libraries
13436 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13437 ;;
13438
13439 darwin* | rhapsody*)
13440 # PIC is the default on this platform
13441 # Common symbols not allowed in MH_DYLIB files
13442 lt_prog_compiler_pic_FC='-fno-common'
13443 ;;
13444
13445 haiku*)
13446 # PIC is the default for Haiku.
13447 # The "-static" flag exists, but is broken.
13448 lt_prog_compiler_static_FC=
13449 ;;
13450
13451 hpux*)
13452 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13453 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13454 # sets the default TLS model and affects inlining.
13455 case $host_cpu in
13456 hppa*64*)
13457 # +Z the default
13458 ;;
13459 *)
13460 lt_prog_compiler_pic_FC='-fPIC'
13461 ;;
13462 esac
13463 ;;
13464
13465 interix[3-9]*)
13466 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13467 # Instead, we relocate shared libraries at runtime.
13468 ;;
13469
13470 msdosdjgpp*)
13471 # Just because we use GCC doesn't mean we suddenly get shared libraries
13472 # on systems that don't support them.
13473 lt_prog_compiler_can_build_shared_FC=no
13474 enable_shared=no
13475 ;;
13476
13477 *nto* | *qnx*)
13478 # QNX uses GNU C++, but need to define -shared option too, otherwise
13479 # it will coredump.
13480 lt_prog_compiler_pic_FC='-fPIC -shared'
13481 ;;
13482
13483 sysv4*MP*)
13484 if test -d /usr/nec; then
13485 lt_prog_compiler_pic_FC=-Kconform_pic
13486 fi
13487 ;;
13488
13489 *)
13490 lt_prog_compiler_pic_FC='-fPIC'
13491 ;;
13492 esac
13493
13494 case $cc_basename in
13495 nvcc*) # Cuda Compiler Driver 2.2
13496 lt_prog_compiler_wl_FC='-Xlinker '
13497 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
13498 ;;
13499 esac
13500 else
13501 # PORTME Check for flag to pass linker flags through the system compiler.
13502 case $host_os in
13503 aix*)
13504 lt_prog_compiler_wl_FC='-Wl,'
13505 if test "$host_cpu" = ia64; then
13506 # AIX 5 now supports IA64 processor
13507 lt_prog_compiler_static_FC='-Bstatic'
13508 else
13509 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
13510 fi
13511 ;;
13512
13513 mingw* | cygwin* | pw32* | os2* | cegcc*)
13514 # This hack is so that the source file can tell whether it is being
13515 # built for inclusion in a dll (and should export symbols for example).
13516 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13517 ;;
13518
13519 hpux9* | hpux10* | hpux11*)
13520 lt_prog_compiler_wl_FC='-Wl,'
13521 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13522 # not for PA HP-UX.
13523 case $host_cpu in
13524 hppa*64*|ia64*)
13525 # +Z the default
13526 ;;
13527 *)
13528 lt_prog_compiler_pic_FC='+Z'
13529 ;;
13530 esac
13531 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13532 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
13533 ;;
13534
13535 irix5* | irix6* | nonstopux*)
13536 lt_prog_compiler_wl_FC='-Wl,'
13537 # PIC (with -KPIC) is the default.
13538 lt_prog_compiler_static_FC='-non_shared'
13539 ;;
13540
13541 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13542 case $cc_basename in
13543 # old Intel for x86_64 which still supported -KPIC.
13544 ecc*)
13545 lt_prog_compiler_wl_FC='-Wl,'
13546 lt_prog_compiler_pic_FC='-KPIC'
13547 lt_prog_compiler_static_FC='-static'
13548 ;;
13549 # icc used to be incompatible with GCC.
13550 # ICC 10 doesn't accept -KPIC any more.
13551 icc* | ifort*)
13552 lt_prog_compiler_wl_FC='-Wl,'
13553 lt_prog_compiler_pic_FC='-fPIC'
13554 lt_prog_compiler_static_FC='-static'
13555 ;;
13556 # Lahey Fortran 8.1.
13557 lf95*)
13558 lt_prog_compiler_wl_FC='-Wl,'
13559 lt_prog_compiler_pic_FC='--shared'
13560 lt_prog_compiler_static_FC='--static'
13561 ;;
13562 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13563 # Portland Group compilers (*not* the Pentium gcc compiler,
13564 # which looks to be a dead project)
13565 lt_prog_compiler_wl_FC='-Wl,'
13566 lt_prog_compiler_pic_FC='-fpic'
13567 lt_prog_compiler_static_FC='-Bstatic'
13568 ;;
13569 ccc*)
13570 lt_prog_compiler_wl_FC='-Wl,'
13571 # All Alpha code is PIC.
13572 lt_prog_compiler_static_FC='-non_shared'
13573 ;;
13574 xl* | bgxl* | bgf* | mpixl*)
13575 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13576 lt_prog_compiler_wl_FC='-Wl,'
13577 lt_prog_compiler_pic_FC='-qpic'
13578 lt_prog_compiler_static_FC='-qstaticlink'
13579 ;;
13580 *)
13581 case `$CC -V 2>&1 | sed 5q` in
13582 *Sun\ F* | *Sun*Fortran*)
13583 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13584 lt_prog_compiler_pic_FC='-KPIC'
13585 lt_prog_compiler_static_FC='-Bstatic'
13586 lt_prog_compiler_wl_FC=''
13587 ;;
13588 *Sun\ C*)
13589 # Sun C 5.9
13590 lt_prog_compiler_pic_FC='-KPIC'
13591 lt_prog_compiler_static_FC='-Bstatic'
13592 lt_prog_compiler_wl_FC='-Wl,'
13593 ;;
13594 esac
13595 ;;
13596 esac
13597 ;;
13598
13599 newsos6)
13600 lt_prog_compiler_pic_FC='-KPIC'
13601 lt_prog_compiler_static_FC='-Bstatic'
13602 ;;
13603
13604 *nto* | *qnx*)
13605 # QNX uses GNU C++, but need to define -shared option too, otherwise
13606 # it will coredump.
13607 lt_prog_compiler_pic_FC='-fPIC -shared'
13608 ;;
13609
13610 osf3* | osf4* | osf5*)
13611 lt_prog_compiler_wl_FC='-Wl,'
13612 # All OSF/1 code is PIC.
13613 lt_prog_compiler_static_FC='-non_shared'
13614 ;;
13615
13616 rdos*)
13617 lt_prog_compiler_static_FC='-non_shared'
13618 ;;
13619
13620 solaris*)
13621 lt_prog_compiler_pic_FC='-KPIC'
13622 lt_prog_compiler_static_FC='-Bstatic'
13623 case $cc_basename in
13624 f77* | f90* | f95*)
13625 lt_prog_compiler_wl_FC='-Qoption ld ';;
13626 *)
13627 lt_prog_compiler_wl_FC='-Wl,';;
13628 esac
13629 ;;
13630
13631 sunos4*)
13632 lt_prog_compiler_wl_FC='-Qoption ld '
13633 lt_prog_compiler_pic_FC='-PIC'
13634 lt_prog_compiler_static_FC='-Bstatic'
13635 ;;
13636
13637 sysv4 | sysv4.2uw2* | sysv4.3*)
13638 lt_prog_compiler_wl_FC='-Wl,'
13639 lt_prog_compiler_pic_FC='-KPIC'
13640 lt_prog_compiler_static_FC='-Bstatic'
13641 ;;
13642
13643 sysv4*MP*)
13644 if test -d /usr/nec ;then
13645 lt_prog_compiler_pic_FC='-Kconform_pic'
13646 lt_prog_compiler_static_FC='-Bstatic'
13647 fi
13648 ;;
13649
13650 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13651 lt_prog_compiler_wl_FC='-Wl,'
13652 lt_prog_compiler_pic_FC='-KPIC'
13653 lt_prog_compiler_static_FC='-Bstatic'
13654 ;;
13655
13656 unicos*)
13657 lt_prog_compiler_wl_FC='-Wl,'
13658 lt_prog_compiler_can_build_shared_FC=no
13659 ;;
13660
13661 uts4*)
13662 lt_prog_compiler_pic_FC='-pic'
13663 lt_prog_compiler_static_FC='-Bstatic'
13664 ;;
13665
13666 *)
13667 lt_prog_compiler_can_build_shared_FC=no
13668 ;;
13669 esac
13670 fi
13671
13672 case $host_os in
13673 # For platforms which do not support PIC, -DPIC is meaningless:
13674 *djgpp*)
13675 lt_prog_compiler_pic_FC=
13676 ;;
13677 *)
13678 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
13679 ;;
13680 esac
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
13682 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
13683
13684
13685
13686 #
13687 # Check to make sure the PIC flag actually works.
13688 #
13689 if test -n "$lt_prog_compiler_pic_FC"; then
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
13691 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
13692 if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then :
13693 $as_echo_n "(cached) " >&6
13694 else
13695 lt_cv_prog_compiler_pic_works_FC=no
13696 ac_outfile=conftest.$ac_objext
13697 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13698 lt_compiler_flag="$lt_prog_compiler_pic_FC"
13699 # Insert the option either (1) after the last *FLAGS variable, or
13700 # (2) before a word containing "conftest.", or (3) at the end.
13701 # Note that $ac_compile itself does not contain backslashes and begins
13702 # with a dollar sign (not a hyphen), so the echo should work correctly.
13703 # The option is referenced via a variable to avoid confusing sed.
13704 lt_compile=`echo "$ac_compile" | $SED \
13705 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13706 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13707 -e 's:$: $lt_compiler_flag:'`
13708 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13709 (eval "$lt_compile" 2>conftest.err)
13710 ac_status=$?
13711 cat conftest.err >&5
13712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713 if (exit $ac_status) && test -s "$ac_outfile"; then
13714 # The compiler can only warn and ignore the option if not recognized
13715 # So say no if there are warnings other than the usual output.
13716 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13717 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13718 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13719 lt_cv_prog_compiler_pic_works_FC=yes
13720 fi
13721 fi
13722 $RM conftest*
13723
13724 fi
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
13726 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
13727
13728 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
13729 case $lt_prog_compiler_pic_FC in
13730 "" | " "*) ;;
13731 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
13732 esac
13733 else
13734 lt_prog_compiler_pic_FC=
13735 lt_prog_compiler_can_build_shared_FC=no
13736 fi
13737
13738 fi
13739
13740
13741
13742 #
13743 # Check to make sure the static flag actually works.
13744 #
13745 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13747 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13748 if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then :
13749 $as_echo_n "(cached) " >&6
13750 else
13751 lt_cv_prog_compiler_static_works_FC=no
13752 save_LDFLAGS="$LDFLAGS"
13753 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13754 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13755 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13756 # The linker can only warn and ignore the option if not recognized
13757 # So say no if there are warnings
13758 if test -s conftest.err; then
13759 # Append any errors to the config.log.
13760 cat conftest.err 1>&5
13761 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13762 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13763 if diff conftest.exp conftest.er2 >/dev/null; then
13764 lt_cv_prog_compiler_static_works_FC=yes
13765 fi
13766 else
13767 lt_cv_prog_compiler_static_works_FC=yes
13768 fi
13769 fi
13770 $RM -r conftest*
13771 LDFLAGS="$save_LDFLAGS"
13772
13773 fi
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
13775 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
13776
13777 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
13778 :
13779 else
13780 lt_prog_compiler_static_FC=
13781 fi
13782
13783
13784
13785
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13787 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13788 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
13789 $as_echo_n "(cached) " >&6
13790 else
13791 lt_cv_prog_compiler_c_o_FC=no
13792 $RM -r conftest 2>/dev/null
13793 mkdir conftest
13794 cd conftest
13795 mkdir out
13796 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13797
13798 lt_compiler_flag="-o out/conftest2.$ac_objext"
13799 # Insert the option either (1) after the last *FLAGS variable, or
13800 # (2) before a word containing "conftest.", or (3) at the end.
13801 # Note that $ac_compile itself does not contain backslashes and begins
13802 # with a dollar sign (not a hyphen), so the echo should work correctly.
13803 lt_compile=`echo "$ac_compile" | $SED \
13804 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13805 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13806 -e 's:$: $lt_compiler_flag:'`
13807 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13808 (eval "$lt_compile" 2>out/conftest.err)
13809 ac_status=$?
13810 cat out/conftest.err >&5
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13813 then
13814 # The compiler can only warn and ignore the option if not recognized
13815 # So say no if there are warnings
13816 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13817 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13818 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13819 lt_cv_prog_compiler_c_o_FC=yes
13820 fi
13821 fi
13822 chmod u+w . 2>&5
13823 $RM conftest*
13824 # SGI C++ compiler will create directory out/ii_files/ for
13825 # template instantiation
13826 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13827 $RM out/* && rmdir out
13828 cd ..
13829 $RM -r conftest
13830 $RM conftest*
13831
13832 fi
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
13834 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
13835
13836
13837
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13839 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13840 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
13841 $as_echo_n "(cached) " >&6
13842 else
13843 lt_cv_prog_compiler_c_o_FC=no
13844 $RM -r conftest 2>/dev/null
13845 mkdir conftest
13846 cd conftest
13847 mkdir out
13848 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13849
13850 lt_compiler_flag="-o out/conftest2.$ac_objext"
13851 # Insert the option either (1) after the last *FLAGS variable, or
13852 # (2) before a word containing "conftest.", or (3) at the end.
13853 # Note that $ac_compile itself does not contain backslashes and begins
13854 # with a dollar sign (not a hyphen), so the echo should work correctly.
13855 lt_compile=`echo "$ac_compile" | $SED \
13856 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13857 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13858 -e 's:$: $lt_compiler_flag:'`
13859 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13860 (eval "$lt_compile" 2>out/conftest.err)
13861 ac_status=$?
13862 cat out/conftest.err >&5
13863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13865 then
13866 # The compiler can only warn and ignore the option if not recognized
13867 # So say no if there are warnings
13868 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13869 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13870 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13871 lt_cv_prog_compiler_c_o_FC=yes
13872 fi
13873 fi
13874 chmod u+w . 2>&5
13875 $RM conftest*
13876 # SGI C++ compiler will create directory out/ii_files/ for
13877 # template instantiation
13878 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13879 $RM out/* && rmdir out
13880 cd ..
13881 $RM -r conftest
13882 $RM conftest*
13883
13884 fi
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
13886 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
13887
13888
13889
13890
13891 hard_links="nottested"
13892 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
13893 # do not overwrite the value of need_locks provided by the user
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13895 $as_echo_n "checking if we can lock with hard links... " >&6; }
13896 hard_links=yes
13897 $RM conftest*
13898 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13899 touch conftest.a
13900 ln conftest.a conftest.b 2>&5 || hard_links=no
13901 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13903 $as_echo "$hard_links" >&6; }
13904 if test "$hard_links" = no; then
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13906 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13907 need_locks=warn
13908 fi
13909 else
13910 need_locks=no
13911 fi
13912
13913
13914
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13916 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13917
13918 runpath_var=
13919 allow_undefined_flag_FC=
13920 always_export_symbols_FC=no
13921 archive_cmds_FC=
13922 archive_expsym_cmds_FC=
13923 compiler_needs_object_FC=no
13924 enable_shared_with_static_runtimes_FC=no
13925 export_dynamic_flag_spec_FC=
13926 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13927 hardcode_automatic_FC=no
13928 hardcode_direct_FC=no
13929 hardcode_direct_absolute_FC=no
13930 hardcode_libdir_flag_spec_FC=
13931 hardcode_libdir_flag_spec_ld_FC=
13932 hardcode_libdir_separator_FC=
13933 hardcode_minus_L_FC=no
13934 hardcode_shlibpath_var_FC=unsupported
13935 inherit_rpath_FC=no
13936 link_all_deplibs_FC=unknown
13937 module_cmds_FC=
13938 module_expsym_cmds_FC=
13939 old_archive_from_new_cmds_FC=
13940 old_archive_from_expsyms_cmds_FC=
13941 thread_safe_flag_spec_FC=
13942 whole_archive_flag_spec_FC=
13943 # include_expsyms should be a list of space-separated symbols to be *always*
13944 # included in the symbol list
13945 include_expsyms_FC=
13946 # exclude_expsyms can be an extended regexp of symbols to exclude
13947 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13948 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13949 # as well as any symbol that contains `d'.
13950 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13951 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13952 # platforms (ab)use it in PIC code, but their linkers get confused if
13953 # the symbol is explicitly referenced. Since portable code cannot
13954 # rely on this symbol name, it's probably fine to never include it in
13955 # preloaded symbol tables.
13956 # Exclude shared library initialization/finalization symbols.
13957 extract_expsyms_cmds=
13958
13959 case $host_os in
13960 cygwin* | mingw* | pw32* | cegcc*)
13961 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13962 # When not using gcc, we currently assume that we are using
13963 # Microsoft Visual C++.
13964 if test "$GCC" != yes; then
13965 with_gnu_ld=no
13966 fi
13967 ;;
13968 interix*)
13969 # we just hope/assume this is gcc and not c89 (= MSVC++)
13970 with_gnu_ld=yes
13971 ;;
13972 openbsd*)
13973 with_gnu_ld=no
13974 ;;
13975 esac
13976
13977 ld_shlibs_FC=yes
13978
13979 # On some targets, GNU ld is compatible enough with the native linker
13980 # that we're better off using the native interface for both.
13981 lt_use_gnu_ld_interface=no
13982 if test "$with_gnu_ld" = yes; then
13983 case $host_os in
13984 aix*)
13985 # The AIX port of GNU ld has always aspired to compatibility
13986 # with the native linker. However, as the warning in the GNU ld
13987 # block says, versions before 2.19.5* couldn't really create working
13988 # shared libraries, regardless of the interface used.
13989 case `$LD -v 2>&1` in
13990 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13991 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13992 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13993 *)
13994 lt_use_gnu_ld_interface=yes
13995 ;;
13996 esac
13997 ;;
13998 *)
13999 lt_use_gnu_ld_interface=yes
14000 ;;
14001 esac
14002 fi
14003
14004 if test "$lt_use_gnu_ld_interface" = yes; then
14005 # If archive_cmds runs LD, not CC, wlarc should be empty
14006 wlarc='${wl}'
14007
14008 # Set some defaults for GNU ld with shared library support. These
14009 # are reset later if shared libraries are not supported. Putting them
14010 # here allows them to be overridden if necessary.
14011 runpath_var=LD_RUN_PATH
14012 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14013 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
14014 # ancient GNU ld didn't support --whole-archive et. al.
14015 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14016 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14017 else
14018 whole_archive_flag_spec_FC=
14019 fi
14020 supports_anon_versioning=no
14021 case `$LD -v 2>&1` in
14022 *GNU\ gold*) supports_anon_versioning=yes ;;
14023 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14024 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14025 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14026 *\ 2.11.*) ;; # other 2.11 versions
14027 *) supports_anon_versioning=yes ;;
14028 esac
14029
14030 # See if GNU ld supports shared libraries.
14031 case $host_os in
14032 aix[3-9]*)
14033 # On AIX/PPC, the GNU linker is very broken
14034 if test "$host_cpu" != ia64; then
14035 ld_shlibs_FC=no
14036 cat <<_LT_EOF 1>&2
14037
14038 *** Warning: the GNU linker, at least up to release 2.19, is reported
14039 *** to be unable to reliably create shared libraries on AIX.
14040 *** Therefore, libtool is disabling shared libraries support. If you
14041 *** really care for shared libraries, you may want to install binutils
14042 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14043 *** You will then need to restart the configuration process.
14044
14045 _LT_EOF
14046 fi
14047 ;;
14048
14049 amigaos*)
14050 case $host_cpu in
14051 powerpc)
14052 # see comment about AmigaOS4 .so support
14053 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14054 archive_expsym_cmds_FC=''
14055 ;;
14056 m68k)
14057 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)'
14058 hardcode_libdir_flag_spec_FC='-L$libdir'
14059 hardcode_minus_L_FC=yes
14060 ;;
14061 esac
14062 ;;
14063
14064 beos*)
14065 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14066 allow_undefined_flag_FC=unsupported
14067 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14068 # support --undefined. This deserves some investigation. FIXME
14069 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14070 else
14071 ld_shlibs_FC=no
14072 fi
14073 ;;
14074
14075 cygwin* | mingw* | pw32* | cegcc*)
14076 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
14077 # as there is no search path for DLLs.
14078 hardcode_libdir_flag_spec_FC='-L$libdir'
14079 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
14080 allow_undefined_flag_FC=unsupported
14081 always_export_symbols_FC=no
14082 enable_shared_with_static_runtimes_FC=yes
14083 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14084
14085 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14086 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14087 # If the export-symbols file already is a .def file (1st line
14088 # is EXPORTS), use it as is; otherwise, prepend...
14089 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14090 cp $export_symbols $output_objdir/$soname.def;
14091 else
14092 echo EXPORTS > $output_objdir/$soname.def;
14093 cat $export_symbols >> $output_objdir/$soname.def;
14094 fi~
14095 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14096 else
14097 ld_shlibs_FC=no
14098 fi
14099 ;;
14100
14101 haiku*)
14102 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14103 link_all_deplibs_FC=yes
14104 ;;
14105
14106 interix[3-9]*)
14107 hardcode_direct_FC=no
14108 hardcode_shlibpath_var_FC=no
14109 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14110 export_dynamic_flag_spec_FC='${wl}-E'
14111 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14112 # Instead, shared libraries are loaded at an image base (0x10000000 by
14113 # default) and relocated if they conflict, which is a slow very memory
14114 # consuming and fragmenting process. To avoid this, we pick a random,
14115 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14116 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14117 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'
14118 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'
14119 ;;
14120
14121 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
14122 tmp_diet=no
14123 if test "$host_os" = linux-dietlibc; then
14124 case $cc_basename in
14125 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14126 esac
14127 fi
14128 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14129 && test "$tmp_diet" = no
14130 then
14131 tmp_addflag=' $pic_flag'
14132 tmp_sharedflag='-shared'
14133 case $cc_basename,$host_cpu in
14134 pgcc*) # Portland Group C compiler
14135 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'
14136 tmp_addflag=' $pic_flag'
14137 ;;
14138 pgf77* | pgf90* | pgf95* | pgfortran*)
14139 # Portland Group f77 and f90 compilers
14140 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'
14141 tmp_addflag=' $pic_flag -Mnomain' ;;
14142 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14143 tmp_addflag=' -i_dynamic' ;;
14144 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14145 tmp_addflag=' -i_dynamic -nofor_main' ;;
14146 ifc* | ifort*) # Intel Fortran compiler
14147 tmp_addflag=' -nofor_main' ;;
14148 lf95*) # Lahey Fortran 8.1
14149 whole_archive_flag_spec_FC=
14150 tmp_sharedflag='--shared' ;;
14151 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14152 tmp_sharedflag='-qmkshrobj'
14153 tmp_addflag= ;;
14154 nvcc*) # Cuda Compiler Driver 2.2
14155 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'
14156 compiler_needs_object_FC=yes
14157 ;;
14158 esac
14159 case `$CC -V 2>&1 | sed 5q` in
14160 *Sun\ C*) # Sun C 5.9
14161 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'
14162 compiler_needs_object_FC=yes
14163 tmp_sharedflag='-G' ;;
14164 *Sun\ F*) # Sun Fortran 8.3
14165 tmp_sharedflag='-G' ;;
14166 esac
14167 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14168
14169 if test "x$supports_anon_versioning" = xyes; then
14170 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14171 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14172 echo "local: *; };" >> $output_objdir/$libname.ver~
14173 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14174 fi
14175
14176 case $cc_basename in
14177 xlf* | bgf* | bgxlf* | mpixlf*)
14178 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14179 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
14180 hardcode_libdir_flag_spec_FC=
14181 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
14182 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
14183 if test "x$supports_anon_versioning" = xyes; then
14184 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14185 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14186 echo "local: *; };" >> $output_objdir/$libname.ver~
14187 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14188 fi
14189 ;;
14190 esac
14191 else
14192 ld_shlibs_FC=no
14193 fi
14194 ;;
14195
14196 netbsd*)
14197 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14198 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14199 wlarc=
14200 else
14201 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14202 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14203 fi
14204 ;;
14205
14206 solaris*)
14207 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14208 ld_shlibs_FC=no
14209 cat <<_LT_EOF 1>&2
14210
14211 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14212 *** create shared libraries on Solaris systems. Therefore, libtool
14213 *** is disabling shared libraries support. We urge you to upgrade GNU
14214 *** binutils to release 2.9.1 or newer. Another option is to modify
14215 *** your PATH or compiler configuration so that the native linker is
14216 *** used, and then restart.
14217
14218 _LT_EOF
14219 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14220 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14221 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14222 else
14223 ld_shlibs_FC=no
14224 fi
14225 ;;
14226
14227 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14228 case `$LD -v 2>&1` in
14229 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14230 ld_shlibs_FC=no
14231 cat <<_LT_EOF 1>&2
14232
14233 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14234 *** reliably create shared libraries on SCO systems. Therefore, libtool
14235 *** is disabling shared libraries support. We urge you to upgrade GNU
14236 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14237 *** your PATH or compiler configuration so that the native linker is
14238 *** used, and then restart.
14239
14240 _LT_EOF
14241 ;;
14242 *)
14243 # For security reasons, it is highly recommended that you always
14244 # use absolute paths for naming shared libraries, and exclude the
14245 # DT_RUNPATH tag from executables and libraries. But doing so
14246 # requires that you compile everything twice, which is a pain.
14247 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14248 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14249 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14250 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14251 else
14252 ld_shlibs_FC=no
14253 fi
14254 ;;
14255 esac
14256 ;;
14257
14258 sunos4*)
14259 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14260 wlarc=
14261 hardcode_direct_FC=yes
14262 hardcode_shlibpath_var_FC=no
14263 ;;
14264
14265 *)
14266 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14267 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14268 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14269 else
14270 ld_shlibs_FC=no
14271 fi
14272 ;;
14273 esac
14274
14275 if test "$ld_shlibs_FC" = no; then
14276 runpath_var=
14277 hardcode_libdir_flag_spec_FC=
14278 export_dynamic_flag_spec_FC=
14279 whole_archive_flag_spec_FC=
14280 fi
14281 else
14282 # PORTME fill in a description of your system's linker (not GNU ld)
14283 case $host_os in
14284 aix3*)
14285 allow_undefined_flag_FC=unsupported
14286 always_export_symbols_FC=yes
14287 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'
14288 # Note: this linker hardcodes the directories in LIBPATH if there
14289 # are no directories specified by -L.
14290 hardcode_minus_L_FC=yes
14291 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14292 # Neither direct hardcoding nor static linking is supported with a
14293 # broken collect2.
14294 hardcode_direct_FC=unsupported
14295 fi
14296 ;;
14297
14298 aix[4-9]*)
14299 if test "$host_cpu" = ia64; then
14300 # On IA64, the linker does run time linking by default, so we don't
14301 # have to do anything special.
14302 aix_use_runtimelinking=no
14303 exp_sym_flag='-Bexport'
14304 no_entry_flag=""
14305 else
14306 # If we're using GNU nm, then we don't want the "-C" option.
14307 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14308 # Also, AIX nm treats weak defined symbols like other global
14309 # defined symbols, whereas GNU nm marks them as "W".
14310 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14311 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'
14312 else
14313 export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14314 fi
14315 aix_use_runtimelinking=no
14316
14317 # Test if we are trying to use run time linking or normal
14318 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14319 # need to do runtime linking.
14320 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14321 for ld_flag in $LDFLAGS; do
14322 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14323 aix_use_runtimelinking=yes
14324 break
14325 fi
14326 done
14327 ;;
14328 esac
14329
14330 exp_sym_flag='-bexport'
14331 no_entry_flag='-bnoentry'
14332 fi
14333
14334 # When large executables or shared objects are built, AIX ld can
14335 # have problems creating the table of contents. If linking a library
14336 # or program results in "error TOC overflow" add -mminimal-toc to
14337 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14338 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14339
14340 archive_cmds_FC=''
14341 hardcode_direct_FC=yes
14342 hardcode_direct_absolute_FC=yes
14343 hardcode_libdir_separator_FC=':'
14344 link_all_deplibs_FC=yes
14345 file_list_spec_FC='${wl}-f,'
14346
14347 if test "$GCC" = yes; then
14348 case $host_os in aix4.[012]|aix4.[012].*)
14349 # We only want to do this on AIX 4.2 and lower, the check
14350 # below for broken collect2 doesn't work under 4.3+
14351 collect2name=`${CC} -print-prog-name=collect2`
14352 if test -f "$collect2name" &&
14353 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14354 then
14355 # We have reworked collect2
14356 :
14357 else
14358 # We have old collect2
14359 hardcode_direct_FC=unsupported
14360 # It fails to find uninstalled libraries when the uninstalled
14361 # path is not listed in the libpath. Setting hardcode_minus_L
14362 # to unsupported forces relinking
14363 hardcode_minus_L_FC=yes
14364 hardcode_libdir_flag_spec_FC='-L$libdir'
14365 hardcode_libdir_separator_FC=
14366 fi
14367 ;;
14368 esac
14369 shared_flag='-shared'
14370 if test "$aix_use_runtimelinking" = yes; then
14371 shared_flag="$shared_flag "'${wl}-G'
14372 fi
14373 else
14374 # not using gcc
14375 if test "$host_cpu" = ia64; then
14376 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14377 # chokes on -Wl,-G. The following line is correct:
14378 shared_flag='-G'
14379 else
14380 if test "$aix_use_runtimelinking" = yes; then
14381 shared_flag='${wl}-G'
14382 else
14383 shared_flag='${wl}-bM:SRE'
14384 fi
14385 fi
14386 fi
14387
14388 export_dynamic_flag_spec_FC='${wl}-bexpall'
14389 # It seems that -bexpall does not export symbols beginning with
14390 # underscore (_), so it is better to generate a list of symbols to export.
14391 always_export_symbols_FC=yes
14392 if test "$aix_use_runtimelinking" = yes; then
14393 # Warning - without using the other runtime loading flags (-brtl),
14394 # -berok will link without error, but may produce a broken library.
14395 allow_undefined_flag_FC='-berok'
14396 # Determine the default libpath from the value encoded in an
14397 # empty executable.
14398 if test x$gcc_no_link = xyes; then
14399 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14400 fi
14401 cat > conftest.$ac_ext <<_ACEOF
14402 program main
14403
14404 end
14405 _ACEOF
14406 if ac_fn_fc_try_link "$LINENO"; then :
14407
14408 lt_aix_libpath_sed='
14409 /Import File Strings/,/^$/ {
14410 /^0/ {
14411 s/^0 *\(.*\)$/\1/
14412 p
14413 }
14414 }'
14415 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14416 # Check for a 64-bit object if we didn't find anything.
14417 if test -z "$aix_libpath"; then
14418 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14419 fi
14420 fi
14421 rm -f core conftest.err conftest.$ac_objext \
14422 conftest$ac_exeext conftest.$ac_ext
14423 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14424
14425 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14426 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"
14427 else
14428 if test "$host_cpu" = ia64; then
14429 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
14430 allow_undefined_flag_FC="-z nodefs"
14431 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"
14432 else
14433 # Determine the default libpath from the value encoded in an
14434 # empty executable.
14435 if test x$gcc_no_link = xyes; then
14436 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14437 fi
14438 cat > conftest.$ac_ext <<_ACEOF
14439 program main
14440
14441 end
14442 _ACEOF
14443 if ac_fn_fc_try_link "$LINENO"; then :
14444
14445 lt_aix_libpath_sed='
14446 /Import File Strings/,/^$/ {
14447 /^0/ {
14448 s/^0 *\(.*\)$/\1/
14449 p
14450 }
14451 }'
14452 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14453 # Check for a 64-bit object if we didn't find anything.
14454 if test -z "$aix_libpath"; then
14455 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14456 fi
14457 fi
14458 rm -f core conftest.err conftest.$ac_objext \
14459 conftest$ac_exeext conftest.$ac_ext
14460 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14461
14462 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14463 # Warning - without using the other run time loading flags,
14464 # -berok will link without error, but may produce a broken library.
14465 no_undefined_flag_FC=' ${wl}-bernotok'
14466 allow_undefined_flag_FC=' ${wl}-berok'
14467 if test "$with_gnu_ld" = yes; then
14468 # We only use this code for GNU lds that support --whole-archive.
14469 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14470 else
14471 # Exported symbols can be pulled into shared objects from archives
14472 whole_archive_flag_spec_FC='$convenience'
14473 fi
14474 archive_cmds_need_lc_FC=yes
14475 # This is similar to how AIX traditionally builds its shared libraries.
14476 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'
14477 fi
14478 fi
14479 ;;
14480
14481 amigaos*)
14482 case $host_cpu in
14483 powerpc)
14484 # see comment about AmigaOS4 .so support
14485 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14486 archive_expsym_cmds_FC=''
14487 ;;
14488 m68k)
14489 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)'
14490 hardcode_libdir_flag_spec_FC='-L$libdir'
14491 hardcode_minus_L_FC=yes
14492 ;;
14493 esac
14494 ;;
14495
14496 bsdi[45]*)
14497 export_dynamic_flag_spec_FC=-rdynamic
14498 ;;
14499
14500 cygwin* | mingw* | pw32* | cegcc*)
14501 # When not using gcc, we currently assume that we are using
14502 # Microsoft Visual C++.
14503 # hardcode_libdir_flag_spec is actually meaningless, as there is
14504 # no search path for DLLs.
14505 hardcode_libdir_flag_spec_FC=' '
14506 allow_undefined_flag_FC=unsupported
14507 # Tell ltmain to make .lib files, not .a files.
14508 libext=lib
14509 # Tell ltmain to make .dll files, not .so files.
14510 shrext_cmds=".dll"
14511 # FIXME: Setting linknames here is a bad hack.
14512 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14513 # The linker will automatically build a .lib file if we build a DLL.
14514 old_archive_from_new_cmds_FC='true'
14515 # FIXME: Should let the user specify the lib program.
14516 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
14517 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
14518 enable_shared_with_static_runtimes_FC=yes
14519 ;;
14520
14521 darwin* | rhapsody*)
14522
14523
14524 archive_cmds_need_lc_FC=no
14525 hardcode_direct_FC=no
14526 hardcode_automatic_FC=yes
14527 hardcode_shlibpath_var_FC=unsupported
14528 if test "$lt_cv_ld_force_load" = "yes"; then
14529 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\"`'
14530 else
14531 whole_archive_flag_spec_FC=''
14532 fi
14533 link_all_deplibs_FC=yes
14534 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
14535 case $cc_basename in
14536 ifort*) _lt_dar_can_shared=yes ;;
14537 *) _lt_dar_can_shared=$GCC ;;
14538 esac
14539 if test "$_lt_dar_can_shared" = "yes"; then
14540 output_verbose_link_cmd=func_echo_all
14541 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}"
14542 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14543 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}"
14544 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}"
14545
14546 else
14547 ld_shlibs_FC=no
14548 fi
14549
14550 ;;
14551
14552 dgux*)
14553 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14554 hardcode_libdir_flag_spec_FC='-L$libdir'
14555 hardcode_shlibpath_var_FC=no
14556 ;;
14557
14558 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14559 # support. Future versions do this automatically, but an explicit c++rt0.o
14560 # does not break anything, and helps significantly (at the cost of a little
14561 # extra space).
14562 freebsd2.2*)
14563 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14564 hardcode_libdir_flag_spec_FC='-R$libdir'
14565 hardcode_direct_FC=yes
14566 hardcode_shlibpath_var_FC=no
14567 ;;
14568
14569 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14570 freebsd2.*)
14571 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14572 hardcode_direct_FC=yes
14573 hardcode_minus_L_FC=yes
14574 hardcode_shlibpath_var_FC=no
14575 ;;
14576
14577 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14578 freebsd* | dragonfly*)
14579 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14580 hardcode_libdir_flag_spec_FC='-R$libdir'
14581 hardcode_direct_FC=yes
14582 hardcode_shlibpath_var_FC=no
14583 ;;
14584
14585 hpux9*)
14586 if test "$GCC" = yes; then
14587 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'
14588 else
14589 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'
14590 fi
14591 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14592 hardcode_libdir_separator_FC=:
14593 hardcode_direct_FC=yes
14594
14595 # hardcode_minus_L: Not really in the search PATH,
14596 # but as the default location of the library.
14597 hardcode_minus_L_FC=yes
14598 export_dynamic_flag_spec_FC='${wl}-E'
14599 ;;
14600
14601 hpux10*)
14602 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14603 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14604 else
14605 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14606 fi
14607 if test "$with_gnu_ld" = no; then
14608 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14609 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
14610 hardcode_libdir_separator_FC=:
14611 hardcode_direct_FC=yes
14612 hardcode_direct_absolute_FC=yes
14613 export_dynamic_flag_spec_FC='${wl}-E'
14614 # hardcode_minus_L: Not really in the search PATH,
14615 # but as the default location of the library.
14616 hardcode_minus_L_FC=yes
14617 fi
14618 ;;
14619
14620 hpux11*)
14621 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14622 case $host_cpu in
14623 hppa*64*)
14624 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14625 ;;
14626 ia64*)
14627 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14628 ;;
14629 *)
14630 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14631 ;;
14632 esac
14633 else
14634 case $host_cpu in
14635 hppa*64*)
14636 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14637 ;;
14638 ia64*)
14639 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14640 ;;
14641 *)
14642 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14643 ;;
14644 esac
14645 fi
14646 if test "$with_gnu_ld" = no; then
14647 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14648 hardcode_libdir_separator_FC=:
14649
14650 case $host_cpu in
14651 hppa*64*|ia64*)
14652 hardcode_direct_FC=no
14653 hardcode_shlibpath_var_FC=no
14654 ;;
14655 *)
14656 hardcode_direct_FC=yes
14657 hardcode_direct_absolute_FC=yes
14658 export_dynamic_flag_spec_FC='${wl}-E'
14659
14660 # hardcode_minus_L: Not really in the search PATH,
14661 # but as the default location of the library.
14662 hardcode_minus_L_FC=yes
14663 ;;
14664 esac
14665 fi
14666 ;;
14667
14668 irix5* | irix6* | nonstopux*)
14669 if test "$GCC" = yes; then
14670 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'
14671 # Try to use the -exported_symbol ld option, if it does not
14672 # work, assume that -exports_file does not work either and
14673 # implicitly export all symbols.
14674 save_LDFLAGS="$LDFLAGS"
14675 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14676 if test x$gcc_no_link = xyes; then
14677 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14678 fi
14679 cat > conftest.$ac_ext <<_ACEOF
14680 int foo(void) {}
14681 _ACEOF
14682 if ac_fn_fc_try_link "$LINENO"; then :
14683 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'
14684
14685 fi
14686 rm -f core conftest.err conftest.$ac_objext \
14687 conftest$ac_exeext conftest.$ac_ext
14688 LDFLAGS="$save_LDFLAGS"
14689 else
14690 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'
14691 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'
14692 fi
14693 archive_cmds_need_lc_FC='no'
14694 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14695 hardcode_libdir_separator_FC=:
14696 inherit_rpath_FC=yes
14697 link_all_deplibs_FC=yes
14698 ;;
14699
14700 netbsd*)
14701 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14702 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14703 else
14704 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14705 fi
14706 hardcode_libdir_flag_spec_FC='-R$libdir'
14707 hardcode_direct_FC=yes
14708 hardcode_shlibpath_var_FC=no
14709 ;;
14710
14711 newsos6)
14712 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14713 hardcode_direct_FC=yes
14714 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14715 hardcode_libdir_separator_FC=:
14716 hardcode_shlibpath_var_FC=no
14717 ;;
14718
14719 *nto* | *qnx*)
14720 ;;
14721
14722 openbsd*)
14723 if test -f /usr/libexec/ld.so; then
14724 hardcode_direct_FC=yes
14725 hardcode_shlibpath_var_FC=no
14726 hardcode_direct_absolute_FC=yes
14727 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14728 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14729 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14730 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14731 export_dynamic_flag_spec_FC='${wl}-E'
14732 else
14733 case $host_os in
14734 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14735 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14736 hardcode_libdir_flag_spec_FC='-R$libdir'
14737 ;;
14738 *)
14739 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14740 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14741 ;;
14742 esac
14743 fi
14744 else
14745 ld_shlibs_FC=no
14746 fi
14747 ;;
14748
14749 os2*)
14750 hardcode_libdir_flag_spec_FC='-L$libdir'
14751 hardcode_minus_L_FC=yes
14752 allow_undefined_flag_FC=unsupported
14753 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'
14754 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14755 ;;
14756
14757 osf3*)
14758 if test "$GCC" = yes; then
14759 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
14760 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'
14761 else
14762 allow_undefined_flag_FC=' -expect_unresolved \*'
14763 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'
14764 fi
14765 archive_cmds_need_lc_FC='no'
14766 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14767 hardcode_libdir_separator_FC=:
14768 ;;
14769
14770 osf4* | osf5*) # as osf3* with the addition of -msym flag
14771 if test "$GCC" = yes; then
14772 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
14773 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'
14774 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14775 else
14776 allow_undefined_flag_FC=' -expect_unresolved \*'
14777 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'
14778 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~
14779 $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'
14780
14781 # Both c and cxx compiler support -rpath directly
14782 hardcode_libdir_flag_spec_FC='-rpath $libdir'
14783 fi
14784 archive_cmds_need_lc_FC='no'
14785 hardcode_libdir_separator_FC=:
14786 ;;
14787
14788 solaris*)
14789 no_undefined_flag_FC=' -z defs'
14790 if test "$GCC" = yes; then
14791 wlarc='${wl}'
14792 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14793 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14794 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14795 else
14796 case `$CC -V 2>&1` in
14797 *"Compilers 5.0"*)
14798 wlarc=''
14799 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14800 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14801 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14802 ;;
14803 *)
14804 wlarc='${wl}'
14805 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14806 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14807 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14808 ;;
14809 esac
14810 fi
14811 hardcode_libdir_flag_spec_FC='-R$libdir'
14812 hardcode_shlibpath_var_FC=no
14813 case $host_os in
14814 solaris2.[0-5] | solaris2.[0-5].*) ;;
14815 *)
14816 # The compiler driver will combine and reorder linker options,
14817 # but understands `-z linker_flag'. GCC discards it without `$wl',
14818 # but is careful enough not to reorder.
14819 # Supported since Solaris 2.6 (maybe 2.5.1?)
14820 if test "$GCC" = yes; then
14821 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14822 else
14823 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
14824 fi
14825 ;;
14826 esac
14827 link_all_deplibs_FC=yes
14828 ;;
14829
14830 sunos4*)
14831 if test "x$host_vendor" = xsequent; then
14832 # Use $CC to link under sequent, because it throws in some extra .o
14833 # files that make .init and .fini sections work.
14834 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14835 else
14836 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14837 fi
14838 hardcode_libdir_flag_spec_FC='-L$libdir'
14839 hardcode_direct_FC=yes
14840 hardcode_minus_L_FC=yes
14841 hardcode_shlibpath_var_FC=no
14842 ;;
14843
14844 sysv4)
14845 case $host_vendor in
14846 sni)
14847 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14848 hardcode_direct_FC=yes # is this really true???
14849 ;;
14850 siemens)
14851 ## LD is ld it makes a PLAMLIB
14852 ## CC just makes a GrossModule.
14853 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14854 reload_cmds_FC='$CC -r -o $output$reload_objs'
14855 hardcode_direct_FC=no
14856 ;;
14857 motorola)
14858 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14859 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
14860 ;;
14861 esac
14862 runpath_var='LD_RUN_PATH'
14863 hardcode_shlibpath_var_FC=no
14864 ;;
14865
14866 sysv4.3*)
14867 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14868 hardcode_shlibpath_var_FC=no
14869 export_dynamic_flag_spec_FC='-Bexport'
14870 ;;
14871
14872 sysv4*MP*)
14873 if test -d /usr/nec; then
14874 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14875 hardcode_shlibpath_var_FC=no
14876 runpath_var=LD_RUN_PATH
14877 hardcode_runpath_var=yes
14878 ld_shlibs_FC=yes
14879 fi
14880 ;;
14881
14882 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14883 no_undefined_flag_FC='${wl}-z,text'
14884 archive_cmds_need_lc_FC=no
14885 hardcode_shlibpath_var_FC=no
14886 runpath_var='LD_RUN_PATH'
14887
14888 if test "$GCC" = yes; then
14889 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14890 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14891 else
14892 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14893 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14894 fi
14895 ;;
14896
14897 sysv5* | sco3.2v5* | sco5v6*)
14898 # Note: We can NOT use -z defs as we might desire, because we do not
14899 # link with -lc, and that would cause any symbols used from libc to
14900 # always be unresolved, which means just about no library would
14901 # ever link correctly. If we're not using GNU ld we use -z text
14902 # though, which does catch some bad symbols but isn't as heavy-handed
14903 # as -z defs.
14904 no_undefined_flag_FC='${wl}-z,text'
14905 allow_undefined_flag_FC='${wl}-z,nodefs'
14906 archive_cmds_need_lc_FC=no
14907 hardcode_shlibpath_var_FC=no
14908 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
14909 hardcode_libdir_separator_FC=':'
14910 link_all_deplibs_FC=yes
14911 export_dynamic_flag_spec_FC='${wl}-Bexport'
14912 runpath_var='LD_RUN_PATH'
14913
14914 if test "$GCC" = yes; then
14915 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14916 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14917 else
14918 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14919 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14920 fi
14921 ;;
14922
14923 uts4*)
14924 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14925 hardcode_libdir_flag_spec_FC='-L$libdir'
14926 hardcode_shlibpath_var_FC=no
14927 ;;
14928
14929 *)
14930 ld_shlibs_FC=no
14931 ;;
14932 esac
14933
14934 if test x$host_vendor = xsni; then
14935 case $host in
14936 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14937 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
14938 ;;
14939 esac
14940 fi
14941 fi
14942
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
14944 $as_echo "$ld_shlibs_FC" >&6; }
14945 test "$ld_shlibs_FC" = no && can_build_shared=no
14946
14947 with_gnu_ld_FC=$with_gnu_ld
14948
14949
14950
14951
14952
14953
14954 #
14955 # Do we need to explicitly link libc?
14956 #
14957 case "x$archive_cmds_need_lc_FC" in
14958 x|xyes)
14959 # Assume -lc should be added
14960 archive_cmds_need_lc_FC=yes
14961
14962 if test "$enable_shared" = yes && test "$GCC" = yes; then
14963 case $archive_cmds_FC in
14964 *'~'*)
14965 # FIXME: we may have to deal with multi-command sequences.
14966 ;;
14967 '$CC '*)
14968 # Test whether the compiler implicitly links with -lc since on some
14969 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14970 # to ld, don't add -lc before -lgcc.
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14972 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14973 if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then :
14974 $as_echo_n "(cached) " >&6
14975 else
14976 $RM conftest*
14977 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14978
14979 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14980 (eval $ac_compile) 2>&5
14981 ac_status=$?
14982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14983 test $ac_status = 0; } 2>conftest.err; then
14984 soname=conftest
14985 lib=conftest
14986 libobjs=conftest.$ac_objext
14987 deplibs=
14988 wl=$lt_prog_compiler_wl_FC
14989 pic_flag=$lt_prog_compiler_pic_FC
14990 compiler_flags=-v
14991 linker_flags=-v
14992 verstring=
14993 output_objdir=.
14994 libname=conftest
14995 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
14996 allow_undefined_flag_FC=
14997 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14998 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14999 ac_status=$?
15000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15001 test $ac_status = 0; }
15002 then
15003 lt_cv_archive_cmds_need_lc_FC=no
15004 else
15005 lt_cv_archive_cmds_need_lc_FC=yes
15006 fi
15007 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
15008 else
15009 cat conftest.err 1>&5
15010 fi
15011 $RM conftest*
15012
15013 fi
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
15015 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
15016 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
15017 ;;
15018 esac
15019 fi
15020 ;;
15021 esac
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15087 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15088
15089 library_names_spec=
15090 libname_spec='lib$name'
15091 soname_spec=
15092 shrext_cmds=".so"
15093 postinstall_cmds=
15094 postuninstall_cmds=
15095 finish_cmds=
15096 finish_eval=
15097 shlibpath_var=
15098 shlibpath_overrides_runpath=unknown
15099 version_type=none
15100 dynamic_linker="$host_os ld.so"
15101 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15102 need_lib_prefix=unknown
15103 hardcode_into_libs=no
15104
15105 # when you set need_version to no, make sure it does not cause -set_version
15106 # flags to be left without arguments
15107 need_version=unknown
15108
15109 case $host_os in
15110 aix3*)
15111 version_type=linux
15112 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15113 shlibpath_var=LIBPATH
15114
15115 # AIX 3 has no versioning support, so we append a major version to the name.
15116 soname_spec='${libname}${release}${shared_ext}$major'
15117 ;;
15118
15119 aix[4-9]*)
15120 version_type=linux
15121 need_lib_prefix=no
15122 need_version=no
15123 hardcode_into_libs=yes
15124 if test "$host_cpu" = ia64; then
15125 # AIX 5 supports IA64
15126 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15127 shlibpath_var=LD_LIBRARY_PATH
15128 else
15129 # With GCC up to 2.95.x, collect2 would create an import file
15130 # for dependence libraries. The import file would start with
15131 # the line `#! .'. This would cause the generated library to
15132 # depend on `.', always an invalid library. This was fixed in
15133 # development snapshots of GCC prior to 3.0.
15134 case $host_os in
15135 aix4 | aix4.[01] | aix4.[01].*)
15136 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15137 echo ' yes '
15138 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15139 :
15140 else
15141 can_build_shared=no
15142 fi
15143 ;;
15144 esac
15145 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15146 # soname into executable. Probably we can add versioning support to
15147 # collect2, so additional links can be useful in future.
15148 if test "$aix_use_runtimelinking" = yes; then
15149 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15150 # instead of lib<name>.a to let people know that these are not
15151 # typical AIX shared libraries.
15152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15153 else
15154 # We preserve .a as extension for shared libraries through AIX4.2
15155 # and later when we are not doing run time linking.
15156 library_names_spec='${libname}${release}.a $libname.a'
15157 soname_spec='${libname}${release}${shared_ext}$major'
15158 fi
15159 shlibpath_var=LIBPATH
15160 fi
15161 ;;
15162
15163 amigaos*)
15164 case $host_cpu in
15165 powerpc)
15166 # Since July 2007 AmigaOS4 officially supports .so libraries.
15167 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15169 ;;
15170 m68k)
15171 library_names_spec='$libname.ixlibrary $libname.a'
15172 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15173 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'
15174 ;;
15175 esac
15176 ;;
15177
15178 beos*)
15179 library_names_spec='${libname}${shared_ext}'
15180 dynamic_linker="$host_os ld.so"
15181 shlibpath_var=LIBRARY_PATH
15182 ;;
15183
15184 bsdi[45]*)
15185 version_type=linux
15186 need_version=no
15187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15188 soname_spec='${libname}${release}${shared_ext}$major'
15189 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15190 shlibpath_var=LD_LIBRARY_PATH
15191 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15192 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15193 # the default ld.so.conf also contains /usr/contrib/lib and
15194 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15195 # libtool to hard-code these into programs
15196 ;;
15197
15198 cygwin* | mingw* | pw32* | cegcc*)
15199 version_type=windows
15200 shrext_cmds=".dll"
15201 need_version=no
15202 need_lib_prefix=no
15203
15204 case $GCC,$host_os in
15205 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15206 library_names_spec='$libname.dll.a'
15207 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15208 postinstall_cmds='base_file=`basename \${file}`~
15209 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15210 dldir=$destdir/`dirname \$dlpath`~
15211 test -d \$dldir || mkdir -p \$dldir~
15212 $install_prog $dir/$dlname \$dldir/$dlname~
15213 chmod a+x \$dldir/$dlname~
15214 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15215 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15216 fi'
15217 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15218 dlpath=$dir/\$dldll~
15219 $RM \$dlpath'
15220 shlibpath_overrides_runpath=yes
15221
15222 case $host_os in
15223 cygwin*)
15224 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15225 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15226
15227 ;;
15228 mingw* | cegcc*)
15229 # MinGW DLLs use traditional 'lib' prefix
15230 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15231 ;;
15232 pw32*)
15233 # pw32 DLLs use 'pw' prefix rather than 'lib'
15234 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15235 ;;
15236 esac
15237 ;;
15238
15239 *)
15240 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15241 ;;
15242 esac
15243 dynamic_linker='Win32 ld.exe'
15244 # FIXME: first we should search . and the directory the executable is in
15245 shlibpath_var=PATH
15246 ;;
15247
15248 darwin* | rhapsody*)
15249 dynamic_linker="$host_os dyld"
15250 version_type=darwin
15251 need_lib_prefix=no
15252 need_version=no
15253 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15254 soname_spec='${libname}${release}${major}$shared_ext'
15255 shlibpath_overrides_runpath=yes
15256 shlibpath_var=DYLD_LIBRARY_PATH
15257 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15258
15259 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15260 ;;
15261
15262 dgux*)
15263 version_type=linux
15264 need_lib_prefix=no
15265 need_version=no
15266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15267 soname_spec='${libname}${release}${shared_ext}$major'
15268 shlibpath_var=LD_LIBRARY_PATH
15269 ;;
15270
15271 freebsd* | dragonfly*)
15272 # DragonFly does not have aout. When/if they implement a new
15273 # versioning mechanism, adjust this.
15274 if test -x /usr/bin/objformat; then
15275 objformat=`/usr/bin/objformat`
15276 else
15277 case $host_os in
15278 freebsd[23].*) objformat=aout ;;
15279 *) objformat=elf ;;
15280 esac
15281 fi
15282 version_type=freebsd-$objformat
15283 case $version_type in
15284 freebsd-elf*)
15285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15286 need_version=no
15287 need_lib_prefix=no
15288 ;;
15289 freebsd-*)
15290 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15291 need_version=yes
15292 ;;
15293 esac
15294 shlibpath_var=LD_LIBRARY_PATH
15295 case $host_os in
15296 freebsd2.*)
15297 shlibpath_overrides_runpath=yes
15298 ;;
15299 freebsd3.[01]* | freebsdelf3.[01]*)
15300 shlibpath_overrides_runpath=yes
15301 hardcode_into_libs=yes
15302 ;;
15303 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15304 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15305 shlibpath_overrides_runpath=no
15306 hardcode_into_libs=yes
15307 ;;
15308 *) # from 4.6 on, and DragonFly
15309 shlibpath_overrides_runpath=yes
15310 hardcode_into_libs=yes
15311 ;;
15312 esac
15313 ;;
15314
15315 gnu*)
15316 version_type=linux
15317 need_lib_prefix=no
15318 need_version=no
15319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15320 soname_spec='${libname}${release}${shared_ext}$major'
15321 shlibpath_var=LD_LIBRARY_PATH
15322 hardcode_into_libs=yes
15323 ;;
15324
15325 haiku*)
15326 version_type=linux
15327 need_lib_prefix=no
15328 need_version=no
15329 dynamic_linker="$host_os runtime_loader"
15330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15331 soname_spec='${libname}${release}${shared_ext}$major'
15332 shlibpath_var=LIBRARY_PATH
15333 shlibpath_overrides_runpath=yes
15334 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
15335 hardcode_into_libs=yes
15336 ;;
15337
15338 hpux9* | hpux10* | hpux11*)
15339 # Give a soname corresponding to the major version so that dld.sl refuses to
15340 # link against other versions.
15341 version_type=sunos
15342 need_lib_prefix=no
15343 need_version=no
15344 case $host_cpu in
15345 ia64*)
15346 shrext_cmds='.so'
15347 hardcode_into_libs=yes
15348 dynamic_linker="$host_os dld.so"
15349 shlibpath_var=LD_LIBRARY_PATH
15350 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15352 soname_spec='${libname}${release}${shared_ext}$major'
15353 if test "X$HPUX_IA64_MODE" = X32; then
15354 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15355 else
15356 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15357 fi
15358 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15359 ;;
15360 hppa*64*)
15361 shrext_cmds='.sl'
15362 hardcode_into_libs=yes
15363 dynamic_linker="$host_os dld.sl"
15364 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15365 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15367 soname_spec='${libname}${release}${shared_ext}$major'
15368 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15369 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15370 ;;
15371 *)
15372 shrext_cmds='.sl'
15373 dynamic_linker="$host_os dld.sl"
15374 shlibpath_var=SHLIB_PATH
15375 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15377 soname_spec='${libname}${release}${shared_ext}$major'
15378 ;;
15379 esac
15380 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15381 postinstall_cmds='chmod 555 $lib'
15382 # or fails outright, so override atomically:
15383 install_override_mode=555
15384 ;;
15385
15386 interix[3-9]*)
15387 version_type=linux
15388 need_lib_prefix=no
15389 need_version=no
15390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15391 soname_spec='${libname}${release}${shared_ext}$major'
15392 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15393 shlibpath_var=LD_LIBRARY_PATH
15394 shlibpath_overrides_runpath=no
15395 hardcode_into_libs=yes
15396 ;;
15397
15398 irix5* | irix6* | nonstopux*)
15399 case $host_os in
15400 nonstopux*) version_type=nonstopux ;;
15401 *)
15402 if test "$lt_cv_prog_gnu_ld" = yes; then
15403 version_type=linux
15404 else
15405 version_type=irix
15406 fi ;;
15407 esac
15408 need_lib_prefix=no
15409 need_version=no
15410 soname_spec='${libname}${release}${shared_ext}$major'
15411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15412 case $host_os in
15413 irix5* | nonstopux*)
15414 libsuff= shlibsuff=
15415 ;;
15416 *)
15417 case $LD in # libtool.m4 will add one of these switches to LD
15418 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15419 libsuff= shlibsuff= libmagic=32-bit;;
15420 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15421 libsuff=32 shlibsuff=N32 libmagic=N32;;
15422 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15423 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15424 *) libsuff= shlibsuff= libmagic=never-match;;
15425 esac
15426 ;;
15427 esac
15428 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15429 shlibpath_overrides_runpath=no
15430 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15431 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15432 hardcode_into_libs=yes
15433 ;;
15434
15435 # No shared lib support for Linux oldld, aout, or coff.
15436 linux*oldld* | linux*aout* | linux*coff*)
15437 dynamic_linker=no
15438 ;;
15439
15440 # This must be Linux ELF.
15441 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15442 version_type=linux
15443 need_lib_prefix=no
15444 need_version=no
15445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15446 soname_spec='${libname}${release}${shared_ext}$major'
15447 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15448 shlibpath_var=LD_LIBRARY_PATH
15449 shlibpath_overrides_runpath=no
15450
15451 # Some binutils ld are patched to set DT_RUNPATH
15452 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
15453 $as_echo_n "(cached) " >&6
15454 else
15455 lt_cv_shlibpath_overrides_runpath=no
15456 save_LDFLAGS=$LDFLAGS
15457 save_libdir=$libdir
15458 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
15459 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
15460 if test x$gcc_no_link = xyes; then
15461 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
15462 fi
15463 cat > conftest.$ac_ext <<_ACEOF
15464 program main
15465
15466 end
15467 _ACEOF
15468 if ac_fn_fc_try_link "$LINENO"; then :
15469 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15470 lt_cv_shlibpath_overrides_runpath=yes
15471 fi
15472 fi
15473 rm -f core conftest.err conftest.$ac_objext \
15474 conftest$ac_exeext conftest.$ac_ext
15475 LDFLAGS=$save_LDFLAGS
15476 libdir=$save_libdir
15477
15478 fi
15479
15480 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15481
15482 # This implies no fast_install, which is unacceptable.
15483 # Some rework will be needed to allow for fast_install
15484 # before this can be enabled.
15485 hardcode_into_libs=yes
15486
15487 # Append ld.so.conf contents to the search path
15488 if test -f /etc/ld.so.conf; then
15489 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' ' '`
15490 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15491 fi
15492
15493 # We used to test for /lib/ld.so.1 and disable shared libraries on
15494 # powerpc, because MkLinux only supported shared libraries with the
15495 # GNU dynamic linker. Since this was broken with cross compilers,
15496 # most powerpc-linux boxes support dynamic linking these days and
15497 # people can always --disable-shared, the test was removed, and we
15498 # assume the GNU/Linux dynamic linker is in use.
15499 dynamic_linker='GNU/Linux ld.so'
15500 ;;
15501
15502 netbsd*)
15503 version_type=sunos
15504 need_lib_prefix=no
15505 need_version=no
15506 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15508 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15509 dynamic_linker='NetBSD (a.out) ld.so'
15510 else
15511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15512 soname_spec='${libname}${release}${shared_ext}$major'
15513 dynamic_linker='NetBSD ld.elf_so'
15514 fi
15515 shlibpath_var=LD_LIBRARY_PATH
15516 shlibpath_overrides_runpath=yes
15517 hardcode_into_libs=yes
15518 ;;
15519
15520 newsos6)
15521 version_type=linux
15522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15523 shlibpath_var=LD_LIBRARY_PATH
15524 shlibpath_overrides_runpath=yes
15525 ;;
15526
15527 *nto* | *qnx*)
15528 version_type=qnx
15529 need_lib_prefix=no
15530 need_version=no
15531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15532 soname_spec='${libname}${release}${shared_ext}$major'
15533 shlibpath_var=LD_LIBRARY_PATH
15534 shlibpath_overrides_runpath=no
15535 hardcode_into_libs=yes
15536 dynamic_linker='ldqnx.so'
15537 ;;
15538
15539 openbsd*)
15540 version_type=sunos
15541 sys_lib_dlsearch_path_spec="/usr/lib"
15542 need_lib_prefix=no
15543 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15544 case $host_os in
15545 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15546 *) need_version=no ;;
15547 esac
15548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15549 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15550 shlibpath_var=LD_LIBRARY_PATH
15551 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15552 case $host_os in
15553 openbsd2.[89] | openbsd2.[89].*)
15554 shlibpath_overrides_runpath=no
15555 ;;
15556 *)
15557 shlibpath_overrides_runpath=yes
15558 ;;
15559 esac
15560 else
15561 shlibpath_overrides_runpath=yes
15562 fi
15563 ;;
15564
15565 os2*)
15566 libname_spec='$name'
15567 shrext_cmds=".dll"
15568 need_lib_prefix=no
15569 library_names_spec='$libname${shared_ext} $libname.a'
15570 dynamic_linker='OS/2 ld.exe'
15571 shlibpath_var=LIBPATH
15572 ;;
15573
15574 osf3* | osf4* | osf5*)
15575 version_type=osf
15576 need_lib_prefix=no
15577 need_version=no
15578 soname_spec='${libname}${release}${shared_ext}$major'
15579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15580 shlibpath_var=LD_LIBRARY_PATH
15581 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15582 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15583 ;;
15584
15585 rdos*)
15586 dynamic_linker=no
15587 ;;
15588
15589 solaris*)
15590 version_type=linux
15591 need_lib_prefix=no
15592 need_version=no
15593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15594 soname_spec='${libname}${release}${shared_ext}$major'
15595 shlibpath_var=LD_LIBRARY_PATH
15596 shlibpath_overrides_runpath=yes
15597 hardcode_into_libs=yes
15598 # ldd complains unless libraries are executable
15599 postinstall_cmds='chmod +x $lib'
15600 ;;
15601
15602 sunos4*)
15603 version_type=sunos
15604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15605 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15606 shlibpath_var=LD_LIBRARY_PATH
15607 shlibpath_overrides_runpath=yes
15608 if test "$with_gnu_ld" = yes; then
15609 need_lib_prefix=no
15610 fi
15611 need_version=yes
15612 ;;
15613
15614 sysv4 | sysv4.3*)
15615 version_type=linux
15616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15617 soname_spec='${libname}${release}${shared_ext}$major'
15618 shlibpath_var=LD_LIBRARY_PATH
15619 case $host_vendor in
15620 sni)
15621 shlibpath_overrides_runpath=no
15622 need_lib_prefix=no
15623 runpath_var=LD_RUN_PATH
15624 ;;
15625 siemens)
15626 need_lib_prefix=no
15627 ;;
15628 motorola)
15629 need_lib_prefix=no
15630 need_version=no
15631 shlibpath_overrides_runpath=no
15632 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15633 ;;
15634 esac
15635 ;;
15636
15637 sysv4*MP*)
15638 if test -d /usr/nec ;then
15639 version_type=linux
15640 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15641 soname_spec='$libname${shared_ext}.$major'
15642 shlibpath_var=LD_LIBRARY_PATH
15643 fi
15644 ;;
15645
15646 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15647 version_type=freebsd-elf
15648 need_lib_prefix=no
15649 need_version=no
15650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15651 soname_spec='${libname}${release}${shared_ext}$major'
15652 shlibpath_var=LD_LIBRARY_PATH
15653 shlibpath_overrides_runpath=yes
15654 hardcode_into_libs=yes
15655 if test "$with_gnu_ld" = yes; then
15656 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15657 else
15658 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15659 case $host_os in
15660 sco3.2v5*)
15661 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15662 ;;
15663 esac
15664 fi
15665 sys_lib_dlsearch_path_spec='/usr/lib'
15666 ;;
15667
15668 tpf*)
15669 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15670 version_type=linux
15671 need_lib_prefix=no
15672 need_version=no
15673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15674 shlibpath_var=LD_LIBRARY_PATH
15675 shlibpath_overrides_runpath=no
15676 hardcode_into_libs=yes
15677 ;;
15678
15679 uts4*)
15680 version_type=linux
15681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15682 soname_spec='${libname}${release}${shared_ext}$major'
15683 shlibpath_var=LD_LIBRARY_PATH
15684 ;;
15685
15686 *)
15687 dynamic_linker=no
15688 ;;
15689 esac
15690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15691 $as_echo "$dynamic_linker" >&6; }
15692 test "$dynamic_linker" = no && can_build_shared=no
15693
15694 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15695 if test "$GCC" = yes; then
15696 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15697 fi
15698
15699 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15700 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15701 fi
15702 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15703 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15704 fi
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15744 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15745 hardcode_action_FC=
15746 if test -n "$hardcode_libdir_flag_spec_FC" ||
15747 test -n "$runpath_var_FC" ||
15748 test "X$hardcode_automatic_FC" = "Xyes" ; then
15749
15750 # We can hardcode non-existent directories.
15751 if test "$hardcode_direct_FC" != no &&
15752 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15753 # have to relink, otherwise we might link with an installed library
15754 # when we should be linking with a yet-to-be-installed one
15755 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
15756 test "$hardcode_minus_L_FC" != no; then
15757 # Linking always hardcodes the temporary library directory.
15758 hardcode_action_FC=relink
15759 else
15760 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15761 hardcode_action_FC=immediate
15762 fi
15763 else
15764 # We cannot hardcode anything, or else we can only hardcode existing
15765 # directories.
15766 hardcode_action_FC=unsupported
15767 fi
15768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
15769 $as_echo "$hardcode_action_FC" >&6; }
15770
15771 if test "$hardcode_action_FC" = relink ||
15772 test "$inherit_rpath_FC" = yes; then
15773 # Fast installation is not supported
15774 enable_fast_install=no
15775 elif test "$shlibpath_overrides_runpath" = yes ||
15776 test "$enable_shared" = no; then
15777 # Fast installation is not necessary
15778 enable_fast_install=needless
15779 fi
15780
15781
15782
15783
15784
15785
15786
15787 fi # test -n "$compiler"
15788
15789 GCC=$lt_save_GCC
15790 CC="$lt_save_CC"
15791 fi # test "$_lt_disable_FC" != yes
15792
15793 ac_ext=c
15794 ac_cpp='$CPP $CPPFLAGS'
15795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15798
15799
15800
15801 # extra LD Flags which are required for targets
15802 case "${host}" in
15803 *-darwin*)
15804 # Darwin needs -single_module when linking libgfortran
15805 extra_ldflags_libgfortran=-Wl,-single_module
15806 ;;
15807 esac
15808
15809
15810 # We need a working compiler at that point, otherwise give a clear
15811 # error message and bail out.
15812
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GNU Fortran compiler is working" >&5
15814 $as_echo_n "checking whether the GNU Fortran compiler is working... " >&6; }
15815 ac_ext=${ac_fc_srcext-f}
15816 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
15817 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
15818 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
15819
15820 cat > conftest.$ac_ext <<_ACEOF
15821
15822 program foo
15823 real, parameter :: bar = sin (12.34 / 2.5)
15824 end program foo
15825 _ACEOF
15826 if ac_fn_fc_try_compile "$LINENO"; then :
15827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15828 $as_echo "yes" >&6; }
15829 else
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15831 $as_echo "no" >&6; }
15832 as_fn_error "GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla, attaching $PWD/config.log" "$LINENO" 5
15833
15834 fi
15835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15836 ac_ext=c
15837 ac_cpp='$CPP $CPPFLAGS'
15838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15841
15842
15843
15844 # Check whether --enable-largefile was given.
15845 if test "${enable_largefile+set}" = set; then :
15846 enableval=$enable_largefile;
15847 fi
15848
15849 if test "$enable_largefile" != no; then
15850
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15852 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15853 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
15854 $as_echo_n "(cached) " >&6
15855 else
15856 ac_cv_sys_largefile_CC=no
15857 if test "$GCC" != yes; then
15858 ac_save_CC=$CC
15859 while :; do
15860 # IRIX 6.2 and later do not support large files by default,
15861 # so use the C compiler's -n32 option if that helps.
15862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15863 /* end confdefs.h. */
15864 #include <sys/types.h>
15865 /* Check that off_t can represent 2**63 - 1 correctly.
15866 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15867 since some C++ compilers masquerading as C compilers
15868 incorrectly reject 9223372036854775807. */
15869 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15870 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15871 && LARGE_OFF_T % 2147483647 == 1)
15872 ? 1 : -1];
15873 int
15874 main ()
15875 {
15876
15877 ;
15878 return 0;
15879 }
15880 _ACEOF
15881 if ac_fn_c_try_compile "$LINENO"; then :
15882 break
15883 fi
15884 rm -f core conftest.err conftest.$ac_objext
15885 CC="$CC -n32"
15886 if ac_fn_c_try_compile "$LINENO"; then :
15887 ac_cv_sys_largefile_CC=' -n32'; break
15888 fi
15889 rm -f core conftest.err conftest.$ac_objext
15890 break
15891 done
15892 CC=$ac_save_CC
15893 rm -f conftest.$ac_ext
15894 fi
15895 fi
15896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15897 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15898 if test "$ac_cv_sys_largefile_CC" != no; then
15899 CC=$CC$ac_cv_sys_largefile_CC
15900 fi
15901
15902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15903 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15904 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
15905 $as_echo_n "(cached) " >&6
15906 else
15907 while :; do
15908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15909 /* end confdefs.h. */
15910 #include <sys/types.h>
15911 /* Check that off_t can represent 2**63 - 1 correctly.
15912 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15913 since some C++ compilers masquerading as C compilers
15914 incorrectly reject 9223372036854775807. */
15915 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15916 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15917 && LARGE_OFF_T % 2147483647 == 1)
15918 ? 1 : -1];
15919 int
15920 main ()
15921 {
15922
15923 ;
15924 return 0;
15925 }
15926 _ACEOF
15927 if ac_fn_c_try_compile "$LINENO"; then :
15928 ac_cv_sys_file_offset_bits=no; break
15929 fi
15930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15932 /* end confdefs.h. */
15933 #define _FILE_OFFSET_BITS 64
15934 #include <sys/types.h>
15935 /* Check that off_t can represent 2**63 - 1 correctly.
15936 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15937 since some C++ compilers masquerading as C compilers
15938 incorrectly reject 9223372036854775807. */
15939 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15940 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15941 && LARGE_OFF_T % 2147483647 == 1)
15942 ? 1 : -1];
15943 int
15944 main ()
15945 {
15946
15947 ;
15948 return 0;
15949 }
15950 _ACEOF
15951 if ac_fn_c_try_compile "$LINENO"; then :
15952 ac_cv_sys_file_offset_bits=64; break
15953 fi
15954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15955 ac_cv_sys_file_offset_bits=unknown
15956 break
15957 done
15958 fi
15959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15960 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15961 case $ac_cv_sys_file_offset_bits in #(
15962 no | unknown) ;;
15963 *)
15964 cat >>confdefs.h <<_ACEOF
15965 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15966 _ACEOF
15967 ;;
15968 esac
15969 rm -rf conftest*
15970 if test $ac_cv_sys_file_offset_bits = unknown; then
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15972 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15973 if test "${ac_cv_sys_large_files+set}" = set; then :
15974 $as_echo_n "(cached) " >&6
15975 else
15976 while :; do
15977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15978 /* end confdefs.h. */
15979 #include <sys/types.h>
15980 /* Check that off_t can represent 2**63 - 1 correctly.
15981 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15982 since some C++ compilers masquerading as C compilers
15983 incorrectly reject 9223372036854775807. */
15984 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15985 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15986 && LARGE_OFF_T % 2147483647 == 1)
15987 ? 1 : -1];
15988 int
15989 main ()
15990 {
15991
15992 ;
15993 return 0;
15994 }
15995 _ACEOF
15996 if ac_fn_c_try_compile "$LINENO"; then :
15997 ac_cv_sys_large_files=no; break
15998 fi
15999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16001 /* end confdefs.h. */
16002 #define _LARGE_FILES 1
16003 #include <sys/types.h>
16004 /* Check that off_t can represent 2**63 - 1 correctly.
16005 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16006 since some C++ compilers masquerading as C compilers
16007 incorrectly reject 9223372036854775807. */
16008 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16009 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16010 && LARGE_OFF_T % 2147483647 == 1)
16011 ? 1 : -1];
16012 int
16013 main ()
16014 {
16015
16016 ;
16017 return 0;
16018 }
16019 _ACEOF
16020 if ac_fn_c_try_compile "$LINENO"; then :
16021 ac_cv_sys_large_files=1; break
16022 fi
16023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16024 ac_cv_sys_large_files=unknown
16025 break
16026 done
16027 fi
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
16029 $as_echo "$ac_cv_sys_large_files" >&6; }
16030 case $ac_cv_sys_large_files in #(
16031 no | unknown) ;;
16032 *)
16033 cat >>confdefs.h <<_ACEOF
16034 #define _LARGE_FILES $ac_cv_sys_large_files
16035 _ACEOF
16036 ;;
16037 esac
16038 rm -rf conftest*
16039 fi
16040 fi
16041
16042
16043 # Types
16044 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
16045 if test "x$ac_cv_type_off_t" = x""yes; then :
16046
16047 else
16048
16049 cat >>confdefs.h <<_ACEOF
16050 #define off_t long int
16051 _ACEOF
16052
16053 fi
16054
16055
16056 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
16057 if test "x$ac_cv_type_intptr_t" = x""yes; then :
16058
16059 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
16060
16061 else
16062 for ac_type in 'int' 'long int' 'long long int'; do
16063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16064 /* end confdefs.h. */
16065 $ac_includes_default
16066 int
16067 main ()
16068 {
16069 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16070 test_array [0] = 0
16071
16072 ;
16073 return 0;
16074 }
16075 _ACEOF
16076 if ac_fn_c_try_compile "$LINENO"; then :
16077
16078 cat >>confdefs.h <<_ACEOF
16079 #define intptr_t $ac_type
16080 _ACEOF
16081
16082 ac_type=
16083 fi
16084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16085 test -z "$ac_type" && break
16086 done
16087 fi
16088
16089
16090
16091 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
16092 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
16093
16094 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
16095
16096 else
16097 for ac_type in 'unsigned int' 'unsigned long int' \
16098 'unsigned long long int'; do
16099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16100 /* end confdefs.h. */
16101 $ac_includes_default
16102 int
16103 main ()
16104 {
16105 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16106 test_array [0] = 0
16107
16108 ;
16109 return 0;
16110 }
16111 _ACEOF
16112 if ac_fn_c_try_compile "$LINENO"; then :
16113
16114 cat >>confdefs.h <<_ACEOF
16115 #define uintptr_t $ac_type
16116 _ACEOF
16117
16118 ac_type=
16119 fi
16120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16121 test -z "$ac_type" && break
16122 done
16123 fi
16124
16125
16126 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
16127 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
16128
16129 cat >>confdefs.h <<_ACEOF
16130 #define HAVE_PTRDIFF_T 1
16131 _ACEOF
16132
16133
16134 fi
16135
16136
16137 # check header files (we assume C89 is available, so don't check for that)
16138
16139
16140
16141 for ac_header in $ac_header_list
16142 do :
16143 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16144 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16145 "
16146 eval as_val=\$$as_ac_Header
16147 if test "x$as_val" = x""yes; then :
16148 cat >>confdefs.h <<_ACEOF
16149 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16150 _ACEOF
16151
16152 fi
16153
16154 done
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
16195
16196 acx_cv_header_stdint=stddef.h
16197 acx_cv_header_stdint_kind="(already complete)"
16198 for i in stdint.h $inttype_headers; do
16199 unset ac_cv_type_uintptr_t
16200 unset ac_cv_type_uintmax_t
16201 unset ac_cv_type_int_least32_t
16202 unset ac_cv_type_int_fast32_t
16203 unset ac_cv_type_uint64_t
16204 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
16205 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
16206 #include <$i>
16207 "
16208 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
16209 acx_cv_header_stdint=$i
16210 else
16211 continue
16212 fi
16213
16214 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16215 #include <$i>
16216 "
16217 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
16218
16219 else
16220 acx_cv_header_stdint_kind="(mostly complete)"
16221 fi
16222
16223 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
16224 #include <$i>
16225 "
16226 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
16227
16228 else
16229 acx_cv_header_stdint_kind="(mostly complete)"
16230 fi
16231
16232 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
16233 #include <$i>
16234 "
16235 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
16236
16237 else
16238 acx_cv_header_stdint_kind="(mostly complete)"
16239 fi
16240
16241 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16242 #include <$i>
16243 "
16244 if test "x$ac_cv_type_uint64_t" = x""yes; then :
16245
16246 else
16247 acx_cv_header_stdint_kind="(lacks uint64_t)"
16248 fi
16249
16250 break
16251 done
16252 if test "$acx_cv_header_stdint" = stddef.h; then
16253 acx_cv_header_stdint_kind="(lacks uintmax_t)"
16254 for i in stdint.h $inttype_headers; do
16255 unset ac_cv_type_uintptr_t
16256 unset ac_cv_type_uint32_t
16257 unset ac_cv_type_uint64_t
16258 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
16259 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
16260 #include <$i>
16261 "
16262 if test "x$ac_cv_type_uint32_t" = x""yes; then :
16263 acx_cv_header_stdint=$i
16264 else
16265 continue
16266 fi
16267
16268 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16269 #include <$i>
16270 "
16271 if test "x$ac_cv_type_uint64_t" = x""yes; then :
16272
16273 fi
16274
16275 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16276 #include <$i>
16277 "
16278 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
16279
16280 fi
16281
16282 break
16283 done
16284 fi
16285 if test "$acx_cv_header_stdint" = stddef.h; then
16286 acx_cv_header_stdint_kind="(u_intXX_t style)"
16287 for i in sys/types.h $inttype_headers; do
16288 unset ac_cv_type_u_int32_t
16289 unset ac_cv_type_u_int64_t
16290 $as_echo_n "looking for u_intXX_t types in $i, " >&6
16291 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
16292 #include <$i>
16293 "
16294 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
16295 acx_cv_header_stdint=$i
16296 else
16297 continue
16298 fi
16299
16300 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
16301 #include <$i>
16302 "
16303 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
16304
16305 fi
16306
16307 break
16308 done
16309 fi
16310 if test "$acx_cv_header_stdint" = stddef.h; then
16311 acx_cv_header_stdint_kind="(using manual detection)"
16312 fi
16313
16314 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
16315 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
16316 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
16317 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
16318 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
16319
16320 # ----------------- Summarize what we found so far
16321
16322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
16323 $as_echo_n "checking what to include in gstdint.h... " >&6; }
16324
16325 case `$as_basename -- gstdint.h ||
16326 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
16327 Xgstdint.h : 'X\(//\)$' \| \
16328 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
16329 $as_echo X/gstdint.h |
16330 sed '/^.*\/\([^/][^/]*\)\/*$/{
16331 s//\1/
16332 q
16333 }
16334 /^X\/\(\/\/\)$/{
16335 s//\1/
16336 q
16337 }
16338 /^X\/\(\/\).*/{
16339 s//\1/
16340 q
16341 }
16342 s/.*/./; q'` in
16343 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16344 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16345 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16346 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16347 *) ;;
16348 esac
16349
16350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
16351 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
16352
16353 # ----------------- done included file, check C basic types --------
16354
16355 # Lacking an uintptr_t? Test size of void *
16356 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
16357 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
16358 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16359 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16360 # This bug is HP SR number 8606223364.
16361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16362 $as_echo_n "checking size of void *... " >&6; }
16363 if test "${ac_cv_sizeof_void_p+set}" = set; then :
16364 $as_echo_n "(cached) " >&6
16365 else
16366 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
16367
16368 else
16369 if test "$ac_cv_type_void_p" = yes; then
16370 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16372 { as_fn_set_status 77
16373 as_fn_error "cannot compute sizeof (void *)
16374 See \`config.log' for more details." "$LINENO" 5; }; }
16375 else
16376 ac_cv_sizeof_void_p=0
16377 fi
16378 fi
16379
16380 fi
16381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16382 $as_echo "$ac_cv_sizeof_void_p" >&6; }
16383
16384
16385
16386 cat >>confdefs.h <<_ACEOF
16387 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16388 _ACEOF
16389
16390 ;;
16391 esac
16392
16393 # Lacking an uint64_t? Test size of long
16394 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
16395 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
16396 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16397 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16398 # This bug is HP SR number 8606223364.
16399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16400 $as_echo_n "checking size of long... " >&6; }
16401 if test "${ac_cv_sizeof_long+set}" = set; then :
16402 $as_echo_n "(cached) " >&6
16403 else
16404 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16405
16406 else
16407 if test "$ac_cv_type_long" = yes; then
16408 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16409 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16410 { as_fn_set_status 77
16411 as_fn_error "cannot compute sizeof (long)
16412 See \`config.log' for more details." "$LINENO" 5; }; }
16413 else
16414 ac_cv_sizeof_long=0
16415 fi
16416 fi
16417
16418 fi
16419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16420 $as_echo "$ac_cv_sizeof_long" >&6; }
16421
16422
16423
16424 cat >>confdefs.h <<_ACEOF
16425 #define SIZEOF_LONG $ac_cv_sizeof_long
16426 _ACEOF
16427
16428 ;;
16429 esac
16430
16431 if test $acx_cv_header_stdint = stddef.h; then
16432 # Lacking a good header? Test size of everything and deduce all types.
16433 # The cast to long int works around a bug in the HP C Compiler
16434 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16435 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16436 # This bug is HP SR number 8606223364.
16437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16438 $as_echo_n "checking size of int... " >&6; }
16439 if test "${ac_cv_sizeof_int+set}" = set; then :
16440 $as_echo_n "(cached) " >&6
16441 else
16442 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
16443
16444 else
16445 if test "$ac_cv_type_int" = yes; then
16446 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16447 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16448 { as_fn_set_status 77
16449 as_fn_error "cannot compute sizeof (int)
16450 See \`config.log' for more details." "$LINENO" 5; }; }
16451 else
16452 ac_cv_sizeof_int=0
16453 fi
16454 fi
16455
16456 fi
16457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16458 $as_echo "$ac_cv_sizeof_int" >&6; }
16459
16460
16461
16462 cat >>confdefs.h <<_ACEOF
16463 #define SIZEOF_INT $ac_cv_sizeof_int
16464 _ACEOF
16465
16466
16467 # The cast to long int works around a bug in the HP C Compiler
16468 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16469 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16470 # This bug is HP SR number 8606223364.
16471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16472 $as_echo_n "checking size of short... " >&6; }
16473 if test "${ac_cv_sizeof_short+set}" = set; then :
16474 $as_echo_n "(cached) " >&6
16475 else
16476 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
16477
16478 else
16479 if test "$ac_cv_type_short" = yes; then
16480 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16481 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16482 { as_fn_set_status 77
16483 as_fn_error "cannot compute sizeof (short)
16484 See \`config.log' for more details." "$LINENO" 5; }; }
16485 else
16486 ac_cv_sizeof_short=0
16487 fi
16488 fi
16489
16490 fi
16491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16492 $as_echo "$ac_cv_sizeof_short" >&6; }
16493
16494
16495
16496 cat >>confdefs.h <<_ACEOF
16497 #define SIZEOF_SHORT $ac_cv_sizeof_short
16498 _ACEOF
16499
16500
16501 # The cast to long int works around a bug in the HP C Compiler
16502 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16503 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16504 # This bug is HP SR number 8606223364.
16505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16506 $as_echo_n "checking size of char... " >&6; }
16507 if test "${ac_cv_sizeof_char+set}" = set; then :
16508 $as_echo_n "(cached) " >&6
16509 else
16510 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
16511
16512 else
16513 if test "$ac_cv_type_char" = yes; then
16514 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16516 { as_fn_set_status 77
16517 as_fn_error "cannot compute sizeof (char)
16518 See \`config.log' for more details." "$LINENO" 5; }; }
16519 else
16520 ac_cv_sizeof_char=0
16521 fi
16522 fi
16523
16524 fi
16525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16526 $as_echo "$ac_cv_sizeof_char" >&6; }
16527
16528
16529
16530 cat >>confdefs.h <<_ACEOF
16531 #define SIZEOF_CHAR $ac_cv_sizeof_char
16532 _ACEOF
16533
16534
16535
16536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
16537 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
16538 case "$ac_cv_sizeof_char" in
16539 1) acx_cv_type_int8_t=char ;;
16540 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
16541 esac
16542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
16543 $as_echo "$acx_cv_type_int8_t" >&6; }
16544
16545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
16546 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
16547 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16548 2:*) acx_cv_type_int16_t=int ;;
16549 *:2) acx_cv_type_int16_t=short ;;
16550 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
16551 esac
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16553 $as_echo "$acx_cv_type_int16_t" >&6; }
16554
16555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16556 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
16557 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16558 4:*) acx_cv_type_int32_t=int ;;
16559 *:4) acx_cv_type_int32_t=long ;;
16560 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
16561 esac
16562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16563 $as_echo "$acx_cv_type_int32_t" >&6; }
16564 fi
16565
16566 # These tests are here to make the output prettier
16567
16568 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16569 case "$ac_cv_sizeof_long" in
16570 8) acx_cv_type_int64_t=long ;;
16571 esac
16572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16573 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
16574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16575 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16576 fi
16577
16578 # Now we can use the above types
16579
16580 if test "$ac_cv_type_uintptr_t" != yes; then
16581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16582 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16583 case $ac_cv_sizeof_void_p in
16584 2) acx_cv_type_intptr_t=int16_t ;;
16585 4) acx_cv_type_intptr_t=int32_t ;;
16586 8) acx_cv_type_intptr_t=int64_t ;;
16587 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
16588 esac
16589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16590 $as_echo "$acx_cv_type_intptr_t" >&6; }
16591 fi
16592
16593 # ----------------- done all checks, emit header -------------
16594 ac_config_commands="$ac_config_commands gstdint.h"
16595
16596
16597
16598
16599 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
16600 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
16601
16602 cat >>confdefs.h <<_ACEOF
16603 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
16604 _ACEOF
16605
16606
16607 fi
16608 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
16609 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
16610
16611 cat >>confdefs.h <<_ACEOF
16612 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
16613 _ACEOF
16614
16615
16616 fi
16617 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
16618 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
16619
16620 cat >>confdefs.h <<_ACEOF
16621 #define HAVE_STRUCT_STAT_ST_RDEV 1
16622 _ACEOF
16623
16624
16625 fi
16626
16627
16628 case "${host}--x${with_newlib}" in
16629 mips*--xyes)
16630 hardwire_newlib=1;;
16631 nvptx*--xyes)
16632 hardwire_newlib=1;;
16633 esac
16634
16635 # Check for library functions.
16636 if test "${hardwire_newlib:-0}" -eq 1; then
16637 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
16638 # may not work correctly, because the compiler may not be able to
16639 # link executables.
16640
16641 $as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
16642
16643
16644 $as_echo "#define HAVE_STRTOF 1" >>confdefs.h
16645
16646
16647 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
16648
16649
16650 $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
16651
16652
16653 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
16654
16655
16656 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
16657
16658
16659 $as_echo "#define HAVE_STRNLEN 1" >>confdefs.h
16660
16661
16662 $as_echo "#define HAVE_STRNDUP 1" >>confdefs.h
16663
16664
16665 # At some point, we should differentiate between architectures
16666 # like x86, which have long double versions, and alpha/powerpc/etc.,
16667 # which don't. For the time being, punt.
16668 if test x"long_double_math_on_this_cpu" = x"yes"; then
16669
16670 $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
16671
16672 fi
16673 else
16674
16675
16676
16677 for ac_func in $ac_func_list
16678 do :
16679 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16680 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16681 eval as_val=\$$as_ac_var
16682 if test "x$as_val" = x""yes; then :
16683 cat >>confdefs.h <<_ACEOF
16684 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16685 _ACEOF
16686
16687 fi
16688 done
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793 fi
16794
16795 # Check strerror_r, cannot be above as versions with two and three arguments exist
16796
16797 ac_save_CFLAGS="$CFLAGS"
16798 CFLAGS="-Wimplicit-function-declaration -Werror"
16799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16800 /* end confdefs.h. */
16801 #define _GNU_SOURCE 1
16802 #include <string.h>
16803 #include <locale.h>
16804 int
16805 main ()
16806 {
16807 char s[128]; strerror_r(5, s, 128);
16808 ;
16809 return 0;
16810 }
16811 _ACEOF
16812 if ac_fn_c_try_compile "$LINENO"; then :
16813
16814 $as_echo "#define HAVE_STRERROR_R 1" >>confdefs.h
16815
16816 fi
16817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16818 CFLAGS="$ac_save_CFLAGS"
16819
16820 ac_save_CFLAGS="$CFLAGS"
16821 CFLAGS="-Wimplicit-function-declaration -Werror"
16822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16823 /* end confdefs.h. */
16824 #define _GNU_SOURCE 1
16825 #include <string.h>
16826 #include <locale.h>
16827 int
16828 main ()
16829 {
16830 char s[128]; strerror_r(5, s);
16831 ;
16832 return 0;
16833 }
16834 _ACEOF
16835 if ac_fn_c_try_compile "$LINENO"; then :
16836
16837 $as_echo "#define HAVE_STRERROR_R_2ARGS 1" >>confdefs.h
16838
16839 fi
16840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16841 CFLAGS="$ac_save_CFLAGS"
16842
16843
16844 # Check for C99 (and other IEEE) math functions
16845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
16846 $as_echo_n "checking for sin in -lm... " >&6; }
16847 if test "${ac_cv_lib_m_sin+set}" = set; then :
16848 $as_echo_n "(cached) " >&6
16849 else
16850 ac_check_lib_save_LIBS=$LIBS
16851 LIBS="-lm $LIBS"
16852 if test x$gcc_no_link = xyes; then
16853 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16854 fi
16855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16856 /* end confdefs.h. */
16857
16858 /* Override any GCC internal prototype to avoid an error.
16859 Use char because int might match the return type of a GCC
16860 builtin and then its argument prototype would still apply. */
16861 #ifdef __cplusplus
16862 extern "C"
16863 #endif
16864 char sin ();
16865 int
16866 main ()
16867 {
16868 return sin ();
16869 ;
16870 return 0;
16871 }
16872 _ACEOF
16873 if ac_fn_c_try_link "$LINENO"; then :
16874 ac_cv_lib_m_sin=yes
16875 else
16876 ac_cv_lib_m_sin=no
16877 fi
16878 rm -f core conftest.err conftest.$ac_objext \
16879 conftest$ac_exeext conftest.$ac_ext
16880 LIBS=$ac_check_lib_save_LIBS
16881 fi
16882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
16883 $as_echo "$ac_cv_lib_m_sin" >&6; }
16884 if test "x$ac_cv_lib_m_sin" = x""yes; then :
16885 cat >>confdefs.h <<_ACEOF
16886 #define HAVE_LIBM 1
16887 _ACEOF
16888
16889 LIBS="-lm $LIBS"
16890
16891 fi
16892
16893
16894
16895
16896
16897
16898
16899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosf" >&5
16900 $as_echo_n "checking for acosf... " >&6; }
16901 if test "${gcc_cv_math_func_acosf+set}" = set; then :
16902 $as_echo_n "(cached) " >&6
16903 else
16904 if test x$gcc_no_link = xyes; then
16905 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16906 fi
16907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16908 /* end confdefs.h. */
16909
16910 #ifdef HAVE_COMPLEX_H
16911 #include <complex.h>
16912 #endif
16913 #ifdef HAVE_MATH_H
16914 #include <math.h>
16915 #endif
16916
16917 int (*ptr)() = (int (*)())acosf;
16918
16919 int
16920 main ()
16921 {
16922 return 0;
16923 }
16924
16925 _ACEOF
16926 if ac_fn_c_try_link "$LINENO"; then :
16927 gcc_cv_math_func_acosf=yes
16928 else
16929 gcc_cv_math_func_acosf=no
16930 fi
16931 rm -f core conftest.err conftest.$ac_objext \
16932 conftest$ac_exeext conftest.$ac_ext
16933 fi
16934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosf" >&5
16935 $as_echo "$gcc_cv_math_func_acosf" >&6; }
16936 if test $gcc_cv_math_func_acosf = yes; then
16937
16938 cat >>confdefs.h <<_ACEOF
16939 #define HAVE_ACOSF 1
16940 _ACEOF
16941
16942 fi
16943
16944
16945
16946
16947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acos" >&5
16948 $as_echo_n "checking for acos... " >&6; }
16949 if test "${gcc_cv_math_func_acos+set}" = set; then :
16950 $as_echo_n "(cached) " >&6
16951 else
16952 if test x$gcc_no_link = xyes; then
16953 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16954 fi
16955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16956 /* end confdefs.h. */
16957
16958 #ifdef HAVE_COMPLEX_H
16959 #include <complex.h>
16960 #endif
16961 #ifdef HAVE_MATH_H
16962 #include <math.h>
16963 #endif
16964
16965 int (*ptr)() = (int (*)())acos;
16966
16967 int
16968 main ()
16969 {
16970 return 0;
16971 }
16972
16973 _ACEOF
16974 if ac_fn_c_try_link "$LINENO"; then :
16975 gcc_cv_math_func_acos=yes
16976 else
16977 gcc_cv_math_func_acos=no
16978 fi
16979 rm -f core conftest.err conftest.$ac_objext \
16980 conftest$ac_exeext conftest.$ac_ext
16981 fi
16982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acos" >&5
16983 $as_echo "$gcc_cv_math_func_acos" >&6; }
16984 if test $gcc_cv_math_func_acos = yes; then
16985
16986 cat >>confdefs.h <<_ACEOF
16987 #define HAVE_ACOS 1
16988 _ACEOF
16989
16990 fi
16991
16992
16993
16994
16995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosl" >&5
16996 $as_echo_n "checking for acosl... " >&6; }
16997 if test "${gcc_cv_math_func_acosl+set}" = set; then :
16998 $as_echo_n "(cached) " >&6
16999 else
17000 if test x$gcc_no_link = xyes; then
17001 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17002 fi
17003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17004 /* end confdefs.h. */
17005
17006 #ifdef HAVE_COMPLEX_H
17007 #include <complex.h>
17008 #endif
17009 #ifdef HAVE_MATH_H
17010 #include <math.h>
17011 #endif
17012
17013 int (*ptr)() = (int (*)())acosl;
17014
17015 int
17016 main ()
17017 {
17018 return 0;
17019 }
17020
17021 _ACEOF
17022 if ac_fn_c_try_link "$LINENO"; then :
17023 gcc_cv_math_func_acosl=yes
17024 else
17025 gcc_cv_math_func_acosl=no
17026 fi
17027 rm -f core conftest.err conftest.$ac_objext \
17028 conftest$ac_exeext conftest.$ac_ext
17029 fi
17030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosl" >&5
17031 $as_echo "$gcc_cv_math_func_acosl" >&6; }
17032 if test $gcc_cv_math_func_acosl = yes; then
17033
17034 cat >>confdefs.h <<_ACEOF
17035 #define HAVE_ACOSL 1
17036 _ACEOF
17037
17038 fi
17039
17040
17041
17042
17043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshf" >&5
17044 $as_echo_n "checking for acoshf... " >&6; }
17045 if test "${gcc_cv_math_func_acoshf+set}" = set; then :
17046 $as_echo_n "(cached) " >&6
17047 else
17048 if test x$gcc_no_link = xyes; then
17049 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17050 fi
17051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17052 /* end confdefs.h. */
17053
17054 #ifdef HAVE_COMPLEX_H
17055 #include <complex.h>
17056 #endif
17057 #ifdef HAVE_MATH_H
17058 #include <math.h>
17059 #endif
17060
17061 int (*ptr)() = (int (*)())acoshf;
17062
17063 int
17064 main ()
17065 {
17066 return 0;
17067 }
17068
17069 _ACEOF
17070 if ac_fn_c_try_link "$LINENO"; then :
17071 gcc_cv_math_func_acoshf=yes
17072 else
17073 gcc_cv_math_func_acoshf=no
17074 fi
17075 rm -f core conftest.err conftest.$ac_objext \
17076 conftest$ac_exeext conftest.$ac_ext
17077 fi
17078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshf" >&5
17079 $as_echo "$gcc_cv_math_func_acoshf" >&6; }
17080 if test $gcc_cv_math_func_acoshf = yes; then
17081
17082 cat >>confdefs.h <<_ACEOF
17083 #define HAVE_ACOSHF 1
17084 _ACEOF
17085
17086 fi
17087
17088
17089
17090
17091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosh" >&5
17092 $as_echo_n "checking for acosh... " >&6; }
17093 if test "${gcc_cv_math_func_acosh+set}" = set; then :
17094 $as_echo_n "(cached) " >&6
17095 else
17096 if test x$gcc_no_link = xyes; then
17097 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17098 fi
17099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17100 /* end confdefs.h. */
17101
17102 #ifdef HAVE_COMPLEX_H
17103 #include <complex.h>
17104 #endif
17105 #ifdef HAVE_MATH_H
17106 #include <math.h>
17107 #endif
17108
17109 int (*ptr)() = (int (*)())acosh;
17110
17111 int
17112 main ()
17113 {
17114 return 0;
17115 }
17116
17117 _ACEOF
17118 if ac_fn_c_try_link "$LINENO"; then :
17119 gcc_cv_math_func_acosh=yes
17120 else
17121 gcc_cv_math_func_acosh=no
17122 fi
17123 rm -f core conftest.err conftest.$ac_objext \
17124 conftest$ac_exeext conftest.$ac_ext
17125 fi
17126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosh" >&5
17127 $as_echo "$gcc_cv_math_func_acosh" >&6; }
17128 if test $gcc_cv_math_func_acosh = yes; then
17129
17130 cat >>confdefs.h <<_ACEOF
17131 #define HAVE_ACOSH 1
17132 _ACEOF
17133
17134 fi
17135
17136
17137
17138
17139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshl" >&5
17140 $as_echo_n "checking for acoshl... " >&6; }
17141 if test "${gcc_cv_math_func_acoshl+set}" = set; then :
17142 $as_echo_n "(cached) " >&6
17143 else
17144 if test x$gcc_no_link = xyes; then
17145 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17146 fi
17147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17148 /* end confdefs.h. */
17149
17150 #ifdef HAVE_COMPLEX_H
17151 #include <complex.h>
17152 #endif
17153 #ifdef HAVE_MATH_H
17154 #include <math.h>
17155 #endif
17156
17157 int (*ptr)() = (int (*)())acoshl;
17158
17159 int
17160 main ()
17161 {
17162 return 0;
17163 }
17164
17165 _ACEOF
17166 if ac_fn_c_try_link "$LINENO"; then :
17167 gcc_cv_math_func_acoshl=yes
17168 else
17169 gcc_cv_math_func_acoshl=no
17170 fi
17171 rm -f core conftest.err conftest.$ac_objext \
17172 conftest$ac_exeext conftest.$ac_ext
17173 fi
17174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshl" >&5
17175 $as_echo "$gcc_cv_math_func_acoshl" >&6; }
17176 if test $gcc_cv_math_func_acoshl = yes; then
17177
17178 cat >>confdefs.h <<_ACEOF
17179 #define HAVE_ACOSHL 1
17180 _ACEOF
17181
17182 fi
17183
17184
17185
17186
17187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinf" >&5
17188 $as_echo_n "checking for asinf... " >&6; }
17189 if test "${gcc_cv_math_func_asinf+set}" = set; then :
17190 $as_echo_n "(cached) " >&6
17191 else
17192 if test x$gcc_no_link = xyes; then
17193 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17194 fi
17195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17196 /* end confdefs.h. */
17197
17198 #ifdef HAVE_COMPLEX_H
17199 #include <complex.h>
17200 #endif
17201 #ifdef HAVE_MATH_H
17202 #include <math.h>
17203 #endif
17204
17205 int (*ptr)() = (int (*)())asinf;
17206
17207 int
17208 main ()
17209 {
17210 return 0;
17211 }
17212
17213 _ACEOF
17214 if ac_fn_c_try_link "$LINENO"; then :
17215 gcc_cv_math_func_asinf=yes
17216 else
17217 gcc_cv_math_func_asinf=no
17218 fi
17219 rm -f core conftest.err conftest.$ac_objext \
17220 conftest$ac_exeext conftest.$ac_ext
17221 fi
17222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinf" >&5
17223 $as_echo "$gcc_cv_math_func_asinf" >&6; }
17224 if test $gcc_cv_math_func_asinf = yes; then
17225
17226 cat >>confdefs.h <<_ACEOF
17227 #define HAVE_ASINF 1
17228 _ACEOF
17229
17230 fi
17231
17232
17233
17234
17235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin" >&5
17236 $as_echo_n "checking for asin... " >&6; }
17237 if test "${gcc_cv_math_func_asin+set}" = set; then :
17238 $as_echo_n "(cached) " >&6
17239 else
17240 if test x$gcc_no_link = xyes; then
17241 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17242 fi
17243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17244 /* end confdefs.h. */
17245
17246 #ifdef HAVE_COMPLEX_H
17247 #include <complex.h>
17248 #endif
17249 #ifdef HAVE_MATH_H
17250 #include <math.h>
17251 #endif
17252
17253 int (*ptr)() = (int (*)())asin;
17254
17255 int
17256 main ()
17257 {
17258 return 0;
17259 }
17260
17261 _ACEOF
17262 if ac_fn_c_try_link "$LINENO"; then :
17263 gcc_cv_math_func_asin=yes
17264 else
17265 gcc_cv_math_func_asin=no
17266 fi
17267 rm -f core conftest.err conftest.$ac_objext \
17268 conftest$ac_exeext conftest.$ac_ext
17269 fi
17270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asin" >&5
17271 $as_echo "$gcc_cv_math_func_asin" >&6; }
17272 if test $gcc_cv_math_func_asin = yes; then
17273
17274 cat >>confdefs.h <<_ACEOF
17275 #define HAVE_ASIN 1
17276 _ACEOF
17277
17278 fi
17279
17280
17281
17282
17283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinl" >&5
17284 $as_echo_n "checking for asinl... " >&6; }
17285 if test "${gcc_cv_math_func_asinl+set}" = set; then :
17286 $as_echo_n "(cached) " >&6
17287 else
17288 if test x$gcc_no_link = xyes; then
17289 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17290 fi
17291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17292 /* end confdefs.h. */
17293
17294 #ifdef HAVE_COMPLEX_H
17295 #include <complex.h>
17296 #endif
17297 #ifdef HAVE_MATH_H
17298 #include <math.h>
17299 #endif
17300
17301 int (*ptr)() = (int (*)())asinl;
17302
17303 int
17304 main ()
17305 {
17306 return 0;
17307 }
17308
17309 _ACEOF
17310 if ac_fn_c_try_link "$LINENO"; then :
17311 gcc_cv_math_func_asinl=yes
17312 else
17313 gcc_cv_math_func_asinl=no
17314 fi
17315 rm -f core conftest.err conftest.$ac_objext \
17316 conftest$ac_exeext conftest.$ac_ext
17317 fi
17318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinl" >&5
17319 $as_echo "$gcc_cv_math_func_asinl" >&6; }
17320 if test $gcc_cv_math_func_asinl = yes; then
17321
17322 cat >>confdefs.h <<_ACEOF
17323 #define HAVE_ASINL 1
17324 _ACEOF
17325
17326 fi
17327
17328
17329
17330
17331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhf" >&5
17332 $as_echo_n "checking for asinhf... " >&6; }
17333 if test "${gcc_cv_math_func_asinhf+set}" = set; then :
17334 $as_echo_n "(cached) " >&6
17335 else
17336 if test x$gcc_no_link = xyes; then
17337 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17338 fi
17339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17340 /* end confdefs.h. */
17341
17342 #ifdef HAVE_COMPLEX_H
17343 #include <complex.h>
17344 #endif
17345 #ifdef HAVE_MATH_H
17346 #include <math.h>
17347 #endif
17348
17349 int (*ptr)() = (int (*)())asinhf;
17350
17351 int
17352 main ()
17353 {
17354 return 0;
17355 }
17356
17357 _ACEOF
17358 if ac_fn_c_try_link "$LINENO"; then :
17359 gcc_cv_math_func_asinhf=yes
17360 else
17361 gcc_cv_math_func_asinhf=no
17362 fi
17363 rm -f core conftest.err conftest.$ac_objext \
17364 conftest$ac_exeext conftest.$ac_ext
17365 fi
17366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhf" >&5
17367 $as_echo "$gcc_cv_math_func_asinhf" >&6; }
17368 if test $gcc_cv_math_func_asinhf = yes; then
17369
17370 cat >>confdefs.h <<_ACEOF
17371 #define HAVE_ASINHF 1
17372 _ACEOF
17373
17374 fi
17375
17376
17377
17378
17379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinh" >&5
17380 $as_echo_n "checking for asinh... " >&6; }
17381 if test "${gcc_cv_math_func_asinh+set}" = set; then :
17382 $as_echo_n "(cached) " >&6
17383 else
17384 if test x$gcc_no_link = xyes; then
17385 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17386 fi
17387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17388 /* end confdefs.h. */
17389
17390 #ifdef HAVE_COMPLEX_H
17391 #include <complex.h>
17392 #endif
17393 #ifdef HAVE_MATH_H
17394 #include <math.h>
17395 #endif
17396
17397 int (*ptr)() = (int (*)())asinh;
17398
17399 int
17400 main ()
17401 {
17402 return 0;
17403 }
17404
17405 _ACEOF
17406 if ac_fn_c_try_link "$LINENO"; then :
17407 gcc_cv_math_func_asinh=yes
17408 else
17409 gcc_cv_math_func_asinh=no
17410 fi
17411 rm -f core conftest.err conftest.$ac_objext \
17412 conftest$ac_exeext conftest.$ac_ext
17413 fi
17414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinh" >&5
17415 $as_echo "$gcc_cv_math_func_asinh" >&6; }
17416 if test $gcc_cv_math_func_asinh = yes; then
17417
17418 cat >>confdefs.h <<_ACEOF
17419 #define HAVE_ASINH 1
17420 _ACEOF
17421
17422 fi
17423
17424
17425
17426
17427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhl" >&5
17428 $as_echo_n "checking for asinhl... " >&6; }
17429 if test "${gcc_cv_math_func_asinhl+set}" = set; then :
17430 $as_echo_n "(cached) " >&6
17431 else
17432 if test x$gcc_no_link = xyes; then
17433 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17434 fi
17435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17436 /* end confdefs.h. */
17437
17438 #ifdef HAVE_COMPLEX_H
17439 #include <complex.h>
17440 #endif
17441 #ifdef HAVE_MATH_H
17442 #include <math.h>
17443 #endif
17444
17445 int (*ptr)() = (int (*)())asinhl;
17446
17447 int
17448 main ()
17449 {
17450 return 0;
17451 }
17452
17453 _ACEOF
17454 if ac_fn_c_try_link "$LINENO"; then :
17455 gcc_cv_math_func_asinhl=yes
17456 else
17457 gcc_cv_math_func_asinhl=no
17458 fi
17459 rm -f core conftest.err conftest.$ac_objext \
17460 conftest$ac_exeext conftest.$ac_ext
17461 fi
17462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhl" >&5
17463 $as_echo "$gcc_cv_math_func_asinhl" >&6; }
17464 if test $gcc_cv_math_func_asinhl = yes; then
17465
17466 cat >>confdefs.h <<_ACEOF
17467 #define HAVE_ASINHL 1
17468 _ACEOF
17469
17470 fi
17471
17472
17473
17474
17475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f" >&5
17476 $as_echo_n "checking for atan2f... " >&6; }
17477 if test "${gcc_cv_math_func_atan2f+set}" = set; then :
17478 $as_echo_n "(cached) " >&6
17479 else
17480 if test x$gcc_no_link = xyes; then
17481 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17482 fi
17483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17484 /* end confdefs.h. */
17485
17486 #ifdef HAVE_COMPLEX_H
17487 #include <complex.h>
17488 #endif
17489 #ifdef HAVE_MATH_H
17490 #include <math.h>
17491 #endif
17492
17493 int (*ptr)() = (int (*)())atan2f;
17494
17495 int
17496 main ()
17497 {
17498 return 0;
17499 }
17500
17501 _ACEOF
17502 if ac_fn_c_try_link "$LINENO"; then :
17503 gcc_cv_math_func_atan2f=yes
17504 else
17505 gcc_cv_math_func_atan2f=no
17506 fi
17507 rm -f core conftest.err conftest.$ac_objext \
17508 conftest$ac_exeext conftest.$ac_ext
17509 fi
17510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2f" >&5
17511 $as_echo "$gcc_cv_math_func_atan2f" >&6; }
17512 if test $gcc_cv_math_func_atan2f = yes; then
17513
17514 cat >>confdefs.h <<_ACEOF
17515 #define HAVE_ATAN2F 1
17516 _ACEOF
17517
17518 fi
17519
17520
17521
17522
17523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2" >&5
17524 $as_echo_n "checking for atan2... " >&6; }
17525 if test "${gcc_cv_math_func_atan2+set}" = set; then :
17526 $as_echo_n "(cached) " >&6
17527 else
17528 if test x$gcc_no_link = xyes; then
17529 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17530 fi
17531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17532 /* end confdefs.h. */
17533
17534 #ifdef HAVE_COMPLEX_H
17535 #include <complex.h>
17536 #endif
17537 #ifdef HAVE_MATH_H
17538 #include <math.h>
17539 #endif
17540
17541 int (*ptr)() = (int (*)())atan2;
17542
17543 int
17544 main ()
17545 {
17546 return 0;
17547 }
17548
17549 _ACEOF
17550 if ac_fn_c_try_link "$LINENO"; then :
17551 gcc_cv_math_func_atan2=yes
17552 else
17553 gcc_cv_math_func_atan2=no
17554 fi
17555 rm -f core conftest.err conftest.$ac_objext \
17556 conftest$ac_exeext conftest.$ac_ext
17557 fi
17558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2" >&5
17559 $as_echo "$gcc_cv_math_func_atan2" >&6; }
17560 if test $gcc_cv_math_func_atan2 = yes; then
17561
17562 cat >>confdefs.h <<_ACEOF
17563 #define HAVE_ATAN2 1
17564 _ACEOF
17565
17566 fi
17567
17568
17569
17570
17571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l" >&5
17572 $as_echo_n "checking for atan2l... " >&6; }
17573 if test "${gcc_cv_math_func_atan2l+set}" = set; then :
17574 $as_echo_n "(cached) " >&6
17575 else
17576 if test x$gcc_no_link = xyes; then
17577 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17578 fi
17579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17580 /* end confdefs.h. */
17581
17582 #ifdef HAVE_COMPLEX_H
17583 #include <complex.h>
17584 #endif
17585 #ifdef HAVE_MATH_H
17586 #include <math.h>
17587 #endif
17588
17589 int (*ptr)() = (int (*)())atan2l;
17590
17591 int
17592 main ()
17593 {
17594 return 0;
17595 }
17596
17597 _ACEOF
17598 if ac_fn_c_try_link "$LINENO"; then :
17599 gcc_cv_math_func_atan2l=yes
17600 else
17601 gcc_cv_math_func_atan2l=no
17602 fi
17603 rm -f core conftest.err conftest.$ac_objext \
17604 conftest$ac_exeext conftest.$ac_ext
17605 fi
17606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2l" >&5
17607 $as_echo "$gcc_cv_math_func_atan2l" >&6; }
17608 if test $gcc_cv_math_func_atan2l = yes; then
17609
17610 cat >>confdefs.h <<_ACEOF
17611 #define HAVE_ATAN2L 1
17612 _ACEOF
17613
17614 fi
17615
17616
17617
17618
17619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanf" >&5
17620 $as_echo_n "checking for atanf... " >&6; }
17621 if test "${gcc_cv_math_func_atanf+set}" = set; then :
17622 $as_echo_n "(cached) " >&6
17623 else
17624 if test x$gcc_no_link = xyes; then
17625 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17626 fi
17627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17628 /* end confdefs.h. */
17629
17630 #ifdef HAVE_COMPLEX_H
17631 #include <complex.h>
17632 #endif
17633 #ifdef HAVE_MATH_H
17634 #include <math.h>
17635 #endif
17636
17637 int (*ptr)() = (int (*)())atanf;
17638
17639 int
17640 main ()
17641 {
17642 return 0;
17643 }
17644
17645 _ACEOF
17646 if ac_fn_c_try_link "$LINENO"; then :
17647 gcc_cv_math_func_atanf=yes
17648 else
17649 gcc_cv_math_func_atanf=no
17650 fi
17651 rm -f core conftest.err conftest.$ac_objext \
17652 conftest$ac_exeext conftest.$ac_ext
17653 fi
17654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanf" >&5
17655 $as_echo "$gcc_cv_math_func_atanf" >&6; }
17656 if test $gcc_cv_math_func_atanf = yes; then
17657
17658 cat >>confdefs.h <<_ACEOF
17659 #define HAVE_ATANF 1
17660 _ACEOF
17661
17662 fi
17663
17664
17665
17666
17667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan" >&5
17668 $as_echo_n "checking for atan... " >&6; }
17669 if test "${gcc_cv_math_func_atan+set}" = set; then :
17670 $as_echo_n "(cached) " >&6
17671 else
17672 if test x$gcc_no_link = xyes; then
17673 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17674 fi
17675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17676 /* end confdefs.h. */
17677
17678 #ifdef HAVE_COMPLEX_H
17679 #include <complex.h>
17680 #endif
17681 #ifdef HAVE_MATH_H
17682 #include <math.h>
17683 #endif
17684
17685 int (*ptr)() = (int (*)())atan;
17686
17687 int
17688 main ()
17689 {
17690 return 0;
17691 }
17692
17693 _ACEOF
17694 if ac_fn_c_try_link "$LINENO"; then :
17695 gcc_cv_math_func_atan=yes
17696 else
17697 gcc_cv_math_func_atan=no
17698 fi
17699 rm -f core conftest.err conftest.$ac_objext \
17700 conftest$ac_exeext conftest.$ac_ext
17701 fi
17702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan" >&5
17703 $as_echo "$gcc_cv_math_func_atan" >&6; }
17704 if test $gcc_cv_math_func_atan = yes; then
17705
17706 cat >>confdefs.h <<_ACEOF
17707 #define HAVE_ATAN 1
17708 _ACEOF
17709
17710 fi
17711
17712
17713
17714
17715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanl" >&5
17716 $as_echo_n "checking for atanl... " >&6; }
17717 if test "${gcc_cv_math_func_atanl+set}" = set; then :
17718 $as_echo_n "(cached) " >&6
17719 else
17720 if test x$gcc_no_link = xyes; then
17721 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17722 fi
17723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17724 /* end confdefs.h. */
17725
17726 #ifdef HAVE_COMPLEX_H
17727 #include <complex.h>
17728 #endif
17729 #ifdef HAVE_MATH_H
17730 #include <math.h>
17731 #endif
17732
17733 int (*ptr)() = (int (*)())atanl;
17734
17735 int
17736 main ()
17737 {
17738 return 0;
17739 }
17740
17741 _ACEOF
17742 if ac_fn_c_try_link "$LINENO"; then :
17743 gcc_cv_math_func_atanl=yes
17744 else
17745 gcc_cv_math_func_atanl=no
17746 fi
17747 rm -f core conftest.err conftest.$ac_objext \
17748 conftest$ac_exeext conftest.$ac_ext
17749 fi
17750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanl" >&5
17751 $as_echo "$gcc_cv_math_func_atanl" >&6; }
17752 if test $gcc_cv_math_func_atanl = yes; then
17753
17754 cat >>confdefs.h <<_ACEOF
17755 #define HAVE_ATANL 1
17756 _ACEOF
17757
17758 fi
17759
17760
17761
17762
17763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhf" >&5
17764 $as_echo_n "checking for atanhf... " >&6; }
17765 if test "${gcc_cv_math_func_atanhf+set}" = set; then :
17766 $as_echo_n "(cached) " >&6
17767 else
17768 if test x$gcc_no_link = xyes; then
17769 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17770 fi
17771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17772 /* end confdefs.h. */
17773
17774 #ifdef HAVE_COMPLEX_H
17775 #include <complex.h>
17776 #endif
17777 #ifdef HAVE_MATH_H
17778 #include <math.h>
17779 #endif
17780
17781 int (*ptr)() = (int (*)())atanhf;
17782
17783 int
17784 main ()
17785 {
17786 return 0;
17787 }
17788
17789 _ACEOF
17790 if ac_fn_c_try_link "$LINENO"; then :
17791 gcc_cv_math_func_atanhf=yes
17792 else
17793 gcc_cv_math_func_atanhf=no
17794 fi
17795 rm -f core conftest.err conftest.$ac_objext \
17796 conftest$ac_exeext conftest.$ac_ext
17797 fi
17798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhf" >&5
17799 $as_echo "$gcc_cv_math_func_atanhf" >&6; }
17800 if test $gcc_cv_math_func_atanhf = yes; then
17801
17802 cat >>confdefs.h <<_ACEOF
17803 #define HAVE_ATANHF 1
17804 _ACEOF
17805
17806 fi
17807
17808
17809
17810
17811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanh" >&5
17812 $as_echo_n "checking for atanh... " >&6; }
17813 if test "${gcc_cv_math_func_atanh+set}" = set; then :
17814 $as_echo_n "(cached) " >&6
17815 else
17816 if test x$gcc_no_link = xyes; then
17817 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17818 fi
17819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17820 /* end confdefs.h. */
17821
17822 #ifdef HAVE_COMPLEX_H
17823 #include <complex.h>
17824 #endif
17825 #ifdef HAVE_MATH_H
17826 #include <math.h>
17827 #endif
17828
17829 int (*ptr)() = (int (*)())atanh;
17830
17831 int
17832 main ()
17833 {
17834 return 0;
17835 }
17836
17837 _ACEOF
17838 if ac_fn_c_try_link "$LINENO"; then :
17839 gcc_cv_math_func_atanh=yes
17840 else
17841 gcc_cv_math_func_atanh=no
17842 fi
17843 rm -f core conftest.err conftest.$ac_objext \
17844 conftest$ac_exeext conftest.$ac_ext
17845 fi
17846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanh" >&5
17847 $as_echo "$gcc_cv_math_func_atanh" >&6; }
17848 if test $gcc_cv_math_func_atanh = yes; then
17849
17850 cat >>confdefs.h <<_ACEOF
17851 #define HAVE_ATANH 1
17852 _ACEOF
17853
17854 fi
17855
17856
17857
17858
17859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhl" >&5
17860 $as_echo_n "checking for atanhl... " >&6; }
17861 if test "${gcc_cv_math_func_atanhl+set}" = set; then :
17862 $as_echo_n "(cached) " >&6
17863 else
17864 if test x$gcc_no_link = xyes; then
17865 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17866 fi
17867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17868 /* end confdefs.h. */
17869
17870 #ifdef HAVE_COMPLEX_H
17871 #include <complex.h>
17872 #endif
17873 #ifdef HAVE_MATH_H
17874 #include <math.h>
17875 #endif
17876
17877 int (*ptr)() = (int (*)())atanhl;
17878
17879 int
17880 main ()
17881 {
17882 return 0;
17883 }
17884
17885 _ACEOF
17886 if ac_fn_c_try_link "$LINENO"; then :
17887 gcc_cv_math_func_atanhl=yes
17888 else
17889 gcc_cv_math_func_atanhl=no
17890 fi
17891 rm -f core conftest.err conftest.$ac_objext \
17892 conftest$ac_exeext conftest.$ac_ext
17893 fi
17894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhl" >&5
17895 $as_echo "$gcc_cv_math_func_atanhl" >&6; }
17896 if test $gcc_cv_math_func_atanhl = yes; then
17897
17898 cat >>confdefs.h <<_ACEOF
17899 #define HAVE_ATANHL 1
17900 _ACEOF
17901
17902 fi
17903
17904
17905
17906
17907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargf" >&5
17908 $as_echo_n "checking for cargf... " >&6; }
17909 if test "${gcc_cv_math_func_cargf+set}" = set; then :
17910 $as_echo_n "(cached) " >&6
17911 else
17912 if test x$gcc_no_link = xyes; then
17913 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17914 fi
17915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17916 /* end confdefs.h. */
17917
17918 #ifdef HAVE_COMPLEX_H
17919 #include <complex.h>
17920 #endif
17921 #ifdef HAVE_MATH_H
17922 #include <math.h>
17923 #endif
17924
17925 int (*ptr)() = (int (*)())cargf;
17926
17927 int
17928 main ()
17929 {
17930 return 0;
17931 }
17932
17933 _ACEOF
17934 if ac_fn_c_try_link "$LINENO"; then :
17935 gcc_cv_math_func_cargf=yes
17936 else
17937 gcc_cv_math_func_cargf=no
17938 fi
17939 rm -f core conftest.err conftest.$ac_objext \
17940 conftest$ac_exeext conftest.$ac_ext
17941 fi
17942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargf" >&5
17943 $as_echo "$gcc_cv_math_func_cargf" >&6; }
17944 if test $gcc_cv_math_func_cargf = yes; then
17945
17946 cat >>confdefs.h <<_ACEOF
17947 #define HAVE_CARGF 1
17948 _ACEOF
17949
17950 fi
17951
17952
17953
17954
17955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for carg" >&5
17956 $as_echo_n "checking for carg... " >&6; }
17957 if test "${gcc_cv_math_func_carg+set}" = set; then :
17958 $as_echo_n "(cached) " >&6
17959 else
17960 if test x$gcc_no_link = xyes; then
17961 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17962 fi
17963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17964 /* end confdefs.h. */
17965
17966 #ifdef HAVE_COMPLEX_H
17967 #include <complex.h>
17968 #endif
17969 #ifdef HAVE_MATH_H
17970 #include <math.h>
17971 #endif
17972
17973 int (*ptr)() = (int (*)())carg;
17974
17975 int
17976 main ()
17977 {
17978 return 0;
17979 }
17980
17981 _ACEOF
17982 if ac_fn_c_try_link "$LINENO"; then :
17983 gcc_cv_math_func_carg=yes
17984 else
17985 gcc_cv_math_func_carg=no
17986 fi
17987 rm -f core conftest.err conftest.$ac_objext \
17988 conftest$ac_exeext conftest.$ac_ext
17989 fi
17990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_carg" >&5
17991 $as_echo "$gcc_cv_math_func_carg" >&6; }
17992 if test $gcc_cv_math_func_carg = yes; then
17993
17994 cat >>confdefs.h <<_ACEOF
17995 #define HAVE_CARG 1
17996 _ACEOF
17997
17998 fi
17999
18000
18001
18002
18003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargl" >&5
18004 $as_echo_n "checking for cargl... " >&6; }
18005 if test "${gcc_cv_math_func_cargl+set}" = set; then :
18006 $as_echo_n "(cached) " >&6
18007 else
18008 if test x$gcc_no_link = xyes; then
18009 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18010 fi
18011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18012 /* end confdefs.h. */
18013
18014 #ifdef HAVE_COMPLEX_H
18015 #include <complex.h>
18016 #endif
18017 #ifdef HAVE_MATH_H
18018 #include <math.h>
18019 #endif
18020
18021 int (*ptr)() = (int (*)())cargl;
18022
18023 int
18024 main ()
18025 {
18026 return 0;
18027 }
18028
18029 _ACEOF
18030 if ac_fn_c_try_link "$LINENO"; then :
18031 gcc_cv_math_func_cargl=yes
18032 else
18033 gcc_cv_math_func_cargl=no
18034 fi
18035 rm -f core conftest.err conftest.$ac_objext \
18036 conftest$ac_exeext conftest.$ac_ext
18037 fi
18038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargl" >&5
18039 $as_echo "$gcc_cv_math_func_cargl" >&6; }
18040 if test $gcc_cv_math_func_cargl = yes; then
18041
18042 cat >>confdefs.h <<_ACEOF
18043 #define HAVE_CARGL 1
18044 _ACEOF
18045
18046 fi
18047
18048
18049
18050
18051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceilf" >&5
18052 $as_echo_n "checking for ceilf... " >&6; }
18053 if test "${gcc_cv_math_func_ceilf+set}" = set; then :
18054 $as_echo_n "(cached) " >&6
18055 else
18056 if test x$gcc_no_link = xyes; then
18057 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18058 fi
18059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18060 /* end confdefs.h. */
18061
18062 #ifdef HAVE_COMPLEX_H
18063 #include <complex.h>
18064 #endif
18065 #ifdef HAVE_MATH_H
18066 #include <math.h>
18067 #endif
18068
18069 int (*ptr)() = (int (*)())ceilf;
18070
18071 int
18072 main ()
18073 {
18074 return 0;
18075 }
18076
18077 _ACEOF
18078 if ac_fn_c_try_link "$LINENO"; then :
18079 gcc_cv_math_func_ceilf=yes
18080 else
18081 gcc_cv_math_func_ceilf=no
18082 fi
18083 rm -f core conftest.err conftest.$ac_objext \
18084 conftest$ac_exeext conftest.$ac_ext
18085 fi
18086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceilf" >&5
18087 $as_echo "$gcc_cv_math_func_ceilf" >&6; }
18088 if test $gcc_cv_math_func_ceilf = yes; then
18089
18090 cat >>confdefs.h <<_ACEOF
18091 #define HAVE_CEILF 1
18092 _ACEOF
18093
18094 fi
18095
18096
18097
18098
18099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil" >&5
18100 $as_echo_n "checking for ceil... " >&6; }
18101 if test "${gcc_cv_math_func_ceil+set}" = set; then :
18102 $as_echo_n "(cached) " >&6
18103 else
18104 if test x$gcc_no_link = xyes; then
18105 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18106 fi
18107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18108 /* end confdefs.h. */
18109
18110 #ifdef HAVE_COMPLEX_H
18111 #include <complex.h>
18112 #endif
18113 #ifdef HAVE_MATH_H
18114 #include <math.h>
18115 #endif
18116
18117 int (*ptr)() = (int (*)())ceil;
18118
18119 int
18120 main ()
18121 {
18122 return 0;
18123 }
18124
18125 _ACEOF
18126 if ac_fn_c_try_link "$LINENO"; then :
18127 gcc_cv_math_func_ceil=yes
18128 else
18129 gcc_cv_math_func_ceil=no
18130 fi
18131 rm -f core conftest.err conftest.$ac_objext \
18132 conftest$ac_exeext conftest.$ac_ext
18133 fi
18134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceil" >&5
18135 $as_echo "$gcc_cv_math_func_ceil" >&6; }
18136 if test $gcc_cv_math_func_ceil = yes; then
18137
18138 cat >>confdefs.h <<_ACEOF
18139 #define HAVE_CEIL 1
18140 _ACEOF
18141
18142 fi
18143
18144
18145
18146
18147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceill" >&5
18148 $as_echo_n "checking for ceill... " >&6; }
18149 if test "${gcc_cv_math_func_ceill+set}" = set; then :
18150 $as_echo_n "(cached) " >&6
18151 else
18152 if test x$gcc_no_link = xyes; then
18153 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18154 fi
18155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18156 /* end confdefs.h. */
18157
18158 #ifdef HAVE_COMPLEX_H
18159 #include <complex.h>
18160 #endif
18161 #ifdef HAVE_MATH_H
18162 #include <math.h>
18163 #endif
18164
18165 int (*ptr)() = (int (*)())ceill;
18166
18167 int
18168 main ()
18169 {
18170 return 0;
18171 }
18172
18173 _ACEOF
18174 if ac_fn_c_try_link "$LINENO"; then :
18175 gcc_cv_math_func_ceill=yes
18176 else
18177 gcc_cv_math_func_ceill=no
18178 fi
18179 rm -f core conftest.err conftest.$ac_objext \
18180 conftest$ac_exeext conftest.$ac_ext
18181 fi
18182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceill" >&5
18183 $as_echo "$gcc_cv_math_func_ceill" >&6; }
18184 if test $gcc_cv_math_func_ceill = yes; then
18185
18186 cat >>confdefs.h <<_ACEOF
18187 #define HAVE_CEILL 1
18188 _ACEOF
18189
18190 fi
18191
18192
18193
18194
18195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignf" >&5
18196 $as_echo_n "checking for copysignf... " >&6; }
18197 if test "${gcc_cv_math_func_copysignf+set}" = set; then :
18198 $as_echo_n "(cached) " >&6
18199 else
18200 if test x$gcc_no_link = xyes; then
18201 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18202 fi
18203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18204 /* end confdefs.h. */
18205
18206 #ifdef HAVE_COMPLEX_H
18207 #include <complex.h>
18208 #endif
18209 #ifdef HAVE_MATH_H
18210 #include <math.h>
18211 #endif
18212
18213 int (*ptr)() = (int (*)())copysignf;
18214
18215 int
18216 main ()
18217 {
18218 return 0;
18219 }
18220
18221 _ACEOF
18222 if ac_fn_c_try_link "$LINENO"; then :
18223 gcc_cv_math_func_copysignf=yes
18224 else
18225 gcc_cv_math_func_copysignf=no
18226 fi
18227 rm -f core conftest.err conftest.$ac_objext \
18228 conftest$ac_exeext conftest.$ac_ext
18229 fi
18230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignf" >&5
18231 $as_echo "$gcc_cv_math_func_copysignf" >&6; }
18232 if test $gcc_cv_math_func_copysignf = yes; then
18233
18234 cat >>confdefs.h <<_ACEOF
18235 #define HAVE_COPYSIGNF 1
18236 _ACEOF
18237
18238 fi
18239
18240
18241
18242
18243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysign" >&5
18244 $as_echo_n "checking for copysign... " >&6; }
18245 if test "${gcc_cv_math_func_copysign+set}" = set; then :
18246 $as_echo_n "(cached) " >&6
18247 else
18248 if test x$gcc_no_link = xyes; then
18249 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18250 fi
18251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18252 /* end confdefs.h. */
18253
18254 #ifdef HAVE_COMPLEX_H
18255 #include <complex.h>
18256 #endif
18257 #ifdef HAVE_MATH_H
18258 #include <math.h>
18259 #endif
18260
18261 int (*ptr)() = (int (*)())copysign;
18262
18263 int
18264 main ()
18265 {
18266 return 0;
18267 }
18268
18269 _ACEOF
18270 if ac_fn_c_try_link "$LINENO"; then :
18271 gcc_cv_math_func_copysign=yes
18272 else
18273 gcc_cv_math_func_copysign=no
18274 fi
18275 rm -f core conftest.err conftest.$ac_objext \
18276 conftest$ac_exeext conftest.$ac_ext
18277 fi
18278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysign" >&5
18279 $as_echo "$gcc_cv_math_func_copysign" >&6; }
18280 if test $gcc_cv_math_func_copysign = yes; then
18281
18282 cat >>confdefs.h <<_ACEOF
18283 #define HAVE_COPYSIGN 1
18284 _ACEOF
18285
18286 fi
18287
18288
18289
18290
18291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignl" >&5
18292 $as_echo_n "checking for copysignl... " >&6; }
18293 if test "${gcc_cv_math_func_copysignl+set}" = set; then :
18294 $as_echo_n "(cached) " >&6
18295 else
18296 if test x$gcc_no_link = xyes; then
18297 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18298 fi
18299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18300 /* end confdefs.h. */
18301
18302 #ifdef HAVE_COMPLEX_H
18303 #include <complex.h>
18304 #endif
18305 #ifdef HAVE_MATH_H
18306 #include <math.h>
18307 #endif
18308
18309 int (*ptr)() = (int (*)())copysignl;
18310
18311 int
18312 main ()
18313 {
18314 return 0;
18315 }
18316
18317 _ACEOF
18318 if ac_fn_c_try_link "$LINENO"; then :
18319 gcc_cv_math_func_copysignl=yes
18320 else
18321 gcc_cv_math_func_copysignl=no
18322 fi
18323 rm -f core conftest.err conftest.$ac_objext \
18324 conftest$ac_exeext conftest.$ac_ext
18325 fi
18326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignl" >&5
18327 $as_echo "$gcc_cv_math_func_copysignl" >&6; }
18328 if test $gcc_cv_math_func_copysignl = yes; then
18329
18330 cat >>confdefs.h <<_ACEOF
18331 #define HAVE_COPYSIGNL 1
18332 _ACEOF
18333
18334 fi
18335
18336
18337
18338
18339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosf" >&5
18340 $as_echo_n "checking for cosf... " >&6; }
18341 if test "${gcc_cv_math_func_cosf+set}" = set; then :
18342 $as_echo_n "(cached) " >&6
18343 else
18344 if test x$gcc_no_link = xyes; then
18345 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18346 fi
18347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18348 /* end confdefs.h. */
18349
18350 #ifdef HAVE_COMPLEX_H
18351 #include <complex.h>
18352 #endif
18353 #ifdef HAVE_MATH_H
18354 #include <math.h>
18355 #endif
18356
18357 int (*ptr)() = (int (*)())cosf;
18358
18359 int
18360 main ()
18361 {
18362 return 0;
18363 }
18364
18365 _ACEOF
18366 if ac_fn_c_try_link "$LINENO"; then :
18367 gcc_cv_math_func_cosf=yes
18368 else
18369 gcc_cv_math_func_cosf=no
18370 fi
18371 rm -f core conftest.err conftest.$ac_objext \
18372 conftest$ac_exeext conftest.$ac_ext
18373 fi
18374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosf" >&5
18375 $as_echo "$gcc_cv_math_func_cosf" >&6; }
18376 if test $gcc_cv_math_func_cosf = yes; then
18377
18378 cat >>confdefs.h <<_ACEOF
18379 #define HAVE_COSF 1
18380 _ACEOF
18381
18382 fi
18383
18384
18385
18386
18387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos" >&5
18388 $as_echo_n "checking for cos... " >&6; }
18389 if test "${gcc_cv_math_func_cos+set}" = set; then :
18390 $as_echo_n "(cached) " >&6
18391 else
18392 if test x$gcc_no_link = xyes; then
18393 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18394 fi
18395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18396 /* end confdefs.h. */
18397
18398 #ifdef HAVE_COMPLEX_H
18399 #include <complex.h>
18400 #endif
18401 #ifdef HAVE_MATH_H
18402 #include <math.h>
18403 #endif
18404
18405 int (*ptr)() = (int (*)())cos;
18406
18407 int
18408 main ()
18409 {
18410 return 0;
18411 }
18412
18413 _ACEOF
18414 if ac_fn_c_try_link "$LINENO"; then :
18415 gcc_cv_math_func_cos=yes
18416 else
18417 gcc_cv_math_func_cos=no
18418 fi
18419 rm -f core conftest.err conftest.$ac_objext \
18420 conftest$ac_exeext conftest.$ac_ext
18421 fi
18422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cos" >&5
18423 $as_echo "$gcc_cv_math_func_cos" >&6; }
18424 if test $gcc_cv_math_func_cos = yes; then
18425
18426 cat >>confdefs.h <<_ACEOF
18427 #define HAVE_COS 1
18428 _ACEOF
18429
18430 fi
18431
18432
18433
18434
18435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosl" >&5
18436 $as_echo_n "checking for cosl... " >&6; }
18437 if test "${gcc_cv_math_func_cosl+set}" = set; then :
18438 $as_echo_n "(cached) " >&6
18439 else
18440 if test x$gcc_no_link = xyes; then
18441 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18442 fi
18443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18444 /* end confdefs.h. */
18445
18446 #ifdef HAVE_COMPLEX_H
18447 #include <complex.h>
18448 #endif
18449 #ifdef HAVE_MATH_H
18450 #include <math.h>
18451 #endif
18452
18453 int (*ptr)() = (int (*)())cosl;
18454
18455 int
18456 main ()
18457 {
18458 return 0;
18459 }
18460
18461 _ACEOF
18462 if ac_fn_c_try_link "$LINENO"; then :
18463 gcc_cv_math_func_cosl=yes
18464 else
18465 gcc_cv_math_func_cosl=no
18466 fi
18467 rm -f core conftest.err conftest.$ac_objext \
18468 conftest$ac_exeext conftest.$ac_ext
18469 fi
18470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosl" >&5
18471 $as_echo "$gcc_cv_math_func_cosl" >&6; }
18472 if test $gcc_cv_math_func_cosl = yes; then
18473
18474 cat >>confdefs.h <<_ACEOF
18475 #define HAVE_COSL 1
18476 _ACEOF
18477
18478 fi
18479
18480
18481
18482
18483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosf" >&5
18484 $as_echo_n "checking for ccosf... " >&6; }
18485 if test "${gcc_cv_math_func_ccosf+set}" = set; then :
18486 $as_echo_n "(cached) " >&6
18487 else
18488 if test x$gcc_no_link = xyes; then
18489 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18490 fi
18491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18492 /* end confdefs.h. */
18493
18494 #ifdef HAVE_COMPLEX_H
18495 #include <complex.h>
18496 #endif
18497 #ifdef HAVE_MATH_H
18498 #include <math.h>
18499 #endif
18500
18501 int (*ptr)() = (int (*)())ccosf;
18502
18503 int
18504 main ()
18505 {
18506 return 0;
18507 }
18508
18509 _ACEOF
18510 if ac_fn_c_try_link "$LINENO"; then :
18511 gcc_cv_math_func_ccosf=yes
18512 else
18513 gcc_cv_math_func_ccosf=no
18514 fi
18515 rm -f core conftest.err conftest.$ac_objext \
18516 conftest$ac_exeext conftest.$ac_ext
18517 fi
18518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosf" >&5
18519 $as_echo "$gcc_cv_math_func_ccosf" >&6; }
18520 if test $gcc_cv_math_func_ccosf = yes; then
18521
18522 cat >>confdefs.h <<_ACEOF
18523 #define HAVE_CCOSF 1
18524 _ACEOF
18525
18526 fi
18527
18528
18529
18530
18531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccos" >&5
18532 $as_echo_n "checking for ccos... " >&6; }
18533 if test "${gcc_cv_math_func_ccos+set}" = set; then :
18534 $as_echo_n "(cached) " >&6
18535 else
18536 if test x$gcc_no_link = xyes; then
18537 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18538 fi
18539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18540 /* end confdefs.h. */
18541
18542 #ifdef HAVE_COMPLEX_H
18543 #include <complex.h>
18544 #endif
18545 #ifdef HAVE_MATH_H
18546 #include <math.h>
18547 #endif
18548
18549 int (*ptr)() = (int (*)())ccos;
18550
18551 int
18552 main ()
18553 {
18554 return 0;
18555 }
18556
18557 _ACEOF
18558 if ac_fn_c_try_link "$LINENO"; then :
18559 gcc_cv_math_func_ccos=yes
18560 else
18561 gcc_cv_math_func_ccos=no
18562 fi
18563 rm -f core conftest.err conftest.$ac_objext \
18564 conftest$ac_exeext conftest.$ac_ext
18565 fi
18566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccos" >&5
18567 $as_echo "$gcc_cv_math_func_ccos" >&6; }
18568 if test $gcc_cv_math_func_ccos = yes; then
18569
18570 cat >>confdefs.h <<_ACEOF
18571 #define HAVE_CCOS 1
18572 _ACEOF
18573
18574 fi
18575
18576
18577
18578
18579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosl" >&5
18580 $as_echo_n "checking for ccosl... " >&6; }
18581 if test "${gcc_cv_math_func_ccosl+set}" = set; then :
18582 $as_echo_n "(cached) " >&6
18583 else
18584 if test x$gcc_no_link = xyes; then
18585 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18586 fi
18587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18588 /* end confdefs.h. */
18589
18590 #ifdef HAVE_COMPLEX_H
18591 #include <complex.h>
18592 #endif
18593 #ifdef HAVE_MATH_H
18594 #include <math.h>
18595 #endif
18596
18597 int (*ptr)() = (int (*)())ccosl;
18598
18599 int
18600 main ()
18601 {
18602 return 0;
18603 }
18604
18605 _ACEOF
18606 if ac_fn_c_try_link "$LINENO"; then :
18607 gcc_cv_math_func_ccosl=yes
18608 else
18609 gcc_cv_math_func_ccosl=no
18610 fi
18611 rm -f core conftest.err conftest.$ac_objext \
18612 conftest$ac_exeext conftest.$ac_ext
18613 fi
18614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosl" >&5
18615 $as_echo "$gcc_cv_math_func_ccosl" >&6; }
18616 if test $gcc_cv_math_func_ccosl = yes; then
18617
18618 cat >>confdefs.h <<_ACEOF
18619 #define HAVE_CCOSL 1
18620 _ACEOF
18621
18622 fi
18623
18624
18625
18626
18627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshf" >&5
18628 $as_echo_n "checking for coshf... " >&6; }
18629 if test "${gcc_cv_math_func_coshf+set}" = set; then :
18630 $as_echo_n "(cached) " >&6
18631 else
18632 if test x$gcc_no_link = xyes; then
18633 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18634 fi
18635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18636 /* end confdefs.h. */
18637
18638 #ifdef HAVE_COMPLEX_H
18639 #include <complex.h>
18640 #endif
18641 #ifdef HAVE_MATH_H
18642 #include <math.h>
18643 #endif
18644
18645 int (*ptr)() = (int (*)())coshf;
18646
18647 int
18648 main ()
18649 {
18650 return 0;
18651 }
18652
18653 _ACEOF
18654 if ac_fn_c_try_link "$LINENO"; then :
18655 gcc_cv_math_func_coshf=yes
18656 else
18657 gcc_cv_math_func_coshf=no
18658 fi
18659 rm -f core conftest.err conftest.$ac_objext \
18660 conftest$ac_exeext conftest.$ac_ext
18661 fi
18662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshf" >&5
18663 $as_echo "$gcc_cv_math_func_coshf" >&6; }
18664 if test $gcc_cv_math_func_coshf = yes; then
18665
18666 cat >>confdefs.h <<_ACEOF
18667 #define HAVE_COSHF 1
18668 _ACEOF
18669
18670 fi
18671
18672
18673
18674
18675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosh" >&5
18676 $as_echo_n "checking for cosh... " >&6; }
18677 if test "${gcc_cv_math_func_cosh+set}" = set; then :
18678 $as_echo_n "(cached) " >&6
18679 else
18680 if test x$gcc_no_link = xyes; then
18681 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18682 fi
18683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18684 /* end confdefs.h. */
18685
18686 #ifdef HAVE_COMPLEX_H
18687 #include <complex.h>
18688 #endif
18689 #ifdef HAVE_MATH_H
18690 #include <math.h>
18691 #endif
18692
18693 int (*ptr)() = (int (*)())cosh;
18694
18695 int
18696 main ()
18697 {
18698 return 0;
18699 }
18700
18701 _ACEOF
18702 if ac_fn_c_try_link "$LINENO"; then :
18703 gcc_cv_math_func_cosh=yes
18704 else
18705 gcc_cv_math_func_cosh=no
18706 fi
18707 rm -f core conftest.err conftest.$ac_objext \
18708 conftest$ac_exeext conftest.$ac_ext
18709 fi
18710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosh" >&5
18711 $as_echo "$gcc_cv_math_func_cosh" >&6; }
18712 if test $gcc_cv_math_func_cosh = yes; then
18713
18714 cat >>confdefs.h <<_ACEOF
18715 #define HAVE_COSH 1
18716 _ACEOF
18717
18718 fi
18719
18720
18721
18722
18723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshl" >&5
18724 $as_echo_n "checking for coshl... " >&6; }
18725 if test "${gcc_cv_math_func_coshl+set}" = set; then :
18726 $as_echo_n "(cached) " >&6
18727 else
18728 if test x$gcc_no_link = xyes; then
18729 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18730 fi
18731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18732 /* end confdefs.h. */
18733
18734 #ifdef HAVE_COMPLEX_H
18735 #include <complex.h>
18736 #endif
18737 #ifdef HAVE_MATH_H
18738 #include <math.h>
18739 #endif
18740
18741 int (*ptr)() = (int (*)())coshl;
18742
18743 int
18744 main ()
18745 {
18746 return 0;
18747 }
18748
18749 _ACEOF
18750 if ac_fn_c_try_link "$LINENO"; then :
18751 gcc_cv_math_func_coshl=yes
18752 else
18753 gcc_cv_math_func_coshl=no
18754 fi
18755 rm -f core conftest.err conftest.$ac_objext \
18756 conftest$ac_exeext conftest.$ac_ext
18757 fi
18758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshl" >&5
18759 $as_echo "$gcc_cv_math_func_coshl" >&6; }
18760 if test $gcc_cv_math_func_coshl = yes; then
18761
18762 cat >>confdefs.h <<_ACEOF
18763 #define HAVE_COSHL 1
18764 _ACEOF
18765
18766 fi
18767
18768
18769
18770
18771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshf" >&5
18772 $as_echo_n "checking for ccoshf... " >&6; }
18773 if test "${gcc_cv_math_func_ccoshf+set}" = set; then :
18774 $as_echo_n "(cached) " >&6
18775 else
18776 if test x$gcc_no_link = xyes; then
18777 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18778 fi
18779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18780 /* end confdefs.h. */
18781
18782 #ifdef HAVE_COMPLEX_H
18783 #include <complex.h>
18784 #endif
18785 #ifdef HAVE_MATH_H
18786 #include <math.h>
18787 #endif
18788
18789 int (*ptr)() = (int (*)())ccoshf;
18790
18791 int
18792 main ()
18793 {
18794 return 0;
18795 }
18796
18797 _ACEOF
18798 if ac_fn_c_try_link "$LINENO"; then :
18799 gcc_cv_math_func_ccoshf=yes
18800 else
18801 gcc_cv_math_func_ccoshf=no
18802 fi
18803 rm -f core conftest.err conftest.$ac_objext \
18804 conftest$ac_exeext conftest.$ac_ext
18805 fi
18806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshf" >&5
18807 $as_echo "$gcc_cv_math_func_ccoshf" >&6; }
18808 if test $gcc_cv_math_func_ccoshf = yes; then
18809
18810 cat >>confdefs.h <<_ACEOF
18811 #define HAVE_CCOSHF 1
18812 _ACEOF
18813
18814 fi
18815
18816
18817
18818
18819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosh" >&5
18820 $as_echo_n "checking for ccosh... " >&6; }
18821 if test "${gcc_cv_math_func_ccosh+set}" = set; then :
18822 $as_echo_n "(cached) " >&6
18823 else
18824 if test x$gcc_no_link = xyes; then
18825 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18826 fi
18827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18828 /* end confdefs.h. */
18829
18830 #ifdef HAVE_COMPLEX_H
18831 #include <complex.h>
18832 #endif
18833 #ifdef HAVE_MATH_H
18834 #include <math.h>
18835 #endif
18836
18837 int (*ptr)() = (int (*)())ccosh;
18838
18839 int
18840 main ()
18841 {
18842 return 0;
18843 }
18844
18845 _ACEOF
18846 if ac_fn_c_try_link "$LINENO"; then :
18847 gcc_cv_math_func_ccosh=yes
18848 else
18849 gcc_cv_math_func_ccosh=no
18850 fi
18851 rm -f core conftest.err conftest.$ac_objext \
18852 conftest$ac_exeext conftest.$ac_ext
18853 fi
18854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosh" >&5
18855 $as_echo "$gcc_cv_math_func_ccosh" >&6; }
18856 if test $gcc_cv_math_func_ccosh = yes; then
18857
18858 cat >>confdefs.h <<_ACEOF
18859 #define HAVE_CCOSH 1
18860 _ACEOF
18861
18862 fi
18863
18864
18865
18866
18867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshl" >&5
18868 $as_echo_n "checking for ccoshl... " >&6; }
18869 if test "${gcc_cv_math_func_ccoshl+set}" = set; then :
18870 $as_echo_n "(cached) " >&6
18871 else
18872 if test x$gcc_no_link = xyes; then
18873 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18874 fi
18875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18876 /* end confdefs.h. */
18877
18878 #ifdef HAVE_COMPLEX_H
18879 #include <complex.h>
18880 #endif
18881 #ifdef HAVE_MATH_H
18882 #include <math.h>
18883 #endif
18884
18885 int (*ptr)() = (int (*)())ccoshl;
18886
18887 int
18888 main ()
18889 {
18890 return 0;
18891 }
18892
18893 _ACEOF
18894 if ac_fn_c_try_link "$LINENO"; then :
18895 gcc_cv_math_func_ccoshl=yes
18896 else
18897 gcc_cv_math_func_ccoshl=no
18898 fi
18899 rm -f core conftest.err conftest.$ac_objext \
18900 conftest$ac_exeext conftest.$ac_ext
18901 fi
18902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshl" >&5
18903 $as_echo "$gcc_cv_math_func_ccoshl" >&6; }
18904 if test $gcc_cv_math_func_ccoshl = yes; then
18905
18906 cat >>confdefs.h <<_ACEOF
18907 #define HAVE_CCOSHL 1
18908 _ACEOF
18909
18910 fi
18911
18912
18913
18914
18915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf" >&5
18916 $as_echo_n "checking for expf... " >&6; }
18917 if test "${gcc_cv_math_func_expf+set}" = set; then :
18918 $as_echo_n "(cached) " >&6
18919 else
18920 if test x$gcc_no_link = xyes; then
18921 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18922 fi
18923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18924 /* end confdefs.h. */
18925
18926 #ifdef HAVE_COMPLEX_H
18927 #include <complex.h>
18928 #endif
18929 #ifdef HAVE_MATH_H
18930 #include <math.h>
18931 #endif
18932
18933 int (*ptr)() = (int (*)())expf;
18934
18935 int
18936 main ()
18937 {
18938 return 0;
18939 }
18940
18941 _ACEOF
18942 if ac_fn_c_try_link "$LINENO"; then :
18943 gcc_cv_math_func_expf=yes
18944 else
18945 gcc_cv_math_func_expf=no
18946 fi
18947 rm -f core conftest.err conftest.$ac_objext \
18948 conftest$ac_exeext conftest.$ac_ext
18949 fi
18950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expf" >&5
18951 $as_echo "$gcc_cv_math_func_expf" >&6; }
18952 if test $gcc_cv_math_func_expf = yes; then
18953
18954 cat >>confdefs.h <<_ACEOF
18955 #define HAVE_EXPF 1
18956 _ACEOF
18957
18958 fi
18959
18960
18961
18962
18963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp" >&5
18964 $as_echo_n "checking for exp... " >&6; }
18965 if test "${gcc_cv_math_func_exp+set}" = set; then :
18966 $as_echo_n "(cached) " >&6
18967 else
18968 if test x$gcc_no_link = xyes; then
18969 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18970 fi
18971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18972 /* end confdefs.h. */
18973
18974 #ifdef HAVE_COMPLEX_H
18975 #include <complex.h>
18976 #endif
18977 #ifdef HAVE_MATH_H
18978 #include <math.h>
18979 #endif
18980
18981 int (*ptr)() = (int (*)())exp;
18982
18983 int
18984 main ()
18985 {
18986 return 0;
18987 }
18988
18989 _ACEOF
18990 if ac_fn_c_try_link "$LINENO"; then :
18991 gcc_cv_math_func_exp=yes
18992 else
18993 gcc_cv_math_func_exp=no
18994 fi
18995 rm -f core conftest.err conftest.$ac_objext \
18996 conftest$ac_exeext conftest.$ac_ext
18997 fi
18998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_exp" >&5
18999 $as_echo "$gcc_cv_math_func_exp" >&6; }
19000 if test $gcc_cv_math_func_exp = yes; then
19001
19002 cat >>confdefs.h <<_ACEOF
19003 #define HAVE_EXP 1
19004 _ACEOF
19005
19006 fi
19007
19008
19009
19010
19011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl" >&5
19012 $as_echo_n "checking for expl... " >&6; }
19013 if test "${gcc_cv_math_func_expl+set}" = set; then :
19014 $as_echo_n "(cached) " >&6
19015 else
19016 if test x$gcc_no_link = xyes; then
19017 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19018 fi
19019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19020 /* end confdefs.h. */
19021
19022 #ifdef HAVE_COMPLEX_H
19023 #include <complex.h>
19024 #endif
19025 #ifdef HAVE_MATH_H
19026 #include <math.h>
19027 #endif
19028
19029 int (*ptr)() = (int (*)())expl;
19030
19031 int
19032 main ()
19033 {
19034 return 0;
19035 }
19036
19037 _ACEOF
19038 if ac_fn_c_try_link "$LINENO"; then :
19039 gcc_cv_math_func_expl=yes
19040 else
19041 gcc_cv_math_func_expl=no
19042 fi
19043 rm -f core conftest.err conftest.$ac_objext \
19044 conftest$ac_exeext conftest.$ac_ext
19045 fi
19046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expl" >&5
19047 $as_echo "$gcc_cv_math_func_expl" >&6; }
19048 if test $gcc_cv_math_func_expl = yes; then
19049
19050 cat >>confdefs.h <<_ACEOF
19051 #define HAVE_EXPL 1
19052 _ACEOF
19053
19054 fi
19055
19056
19057
19058
19059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpf" >&5
19060 $as_echo_n "checking for cexpf... " >&6; }
19061 if test "${gcc_cv_math_func_cexpf+set}" = set; then :
19062 $as_echo_n "(cached) " >&6
19063 else
19064 if test x$gcc_no_link = xyes; then
19065 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19066 fi
19067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19068 /* end confdefs.h. */
19069
19070 #ifdef HAVE_COMPLEX_H
19071 #include <complex.h>
19072 #endif
19073 #ifdef HAVE_MATH_H
19074 #include <math.h>
19075 #endif
19076
19077 int (*ptr)() = (int (*)())cexpf;
19078
19079 int
19080 main ()
19081 {
19082 return 0;
19083 }
19084
19085 _ACEOF
19086 if ac_fn_c_try_link "$LINENO"; then :
19087 gcc_cv_math_func_cexpf=yes
19088 else
19089 gcc_cv_math_func_cexpf=no
19090 fi
19091 rm -f core conftest.err conftest.$ac_objext \
19092 conftest$ac_exeext conftest.$ac_ext
19093 fi
19094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpf" >&5
19095 $as_echo "$gcc_cv_math_func_cexpf" >&6; }
19096 if test $gcc_cv_math_func_cexpf = yes; then
19097
19098 cat >>confdefs.h <<_ACEOF
19099 #define HAVE_CEXPF 1
19100 _ACEOF
19101
19102 fi
19103
19104
19105
19106
19107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexp" >&5
19108 $as_echo_n "checking for cexp... " >&6; }
19109 if test "${gcc_cv_math_func_cexp+set}" = set; then :
19110 $as_echo_n "(cached) " >&6
19111 else
19112 if test x$gcc_no_link = xyes; then
19113 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19114 fi
19115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19116 /* end confdefs.h. */
19117
19118 #ifdef HAVE_COMPLEX_H
19119 #include <complex.h>
19120 #endif
19121 #ifdef HAVE_MATH_H
19122 #include <math.h>
19123 #endif
19124
19125 int (*ptr)() = (int (*)())cexp;
19126
19127 int
19128 main ()
19129 {
19130 return 0;
19131 }
19132
19133 _ACEOF
19134 if ac_fn_c_try_link "$LINENO"; then :
19135 gcc_cv_math_func_cexp=yes
19136 else
19137 gcc_cv_math_func_cexp=no
19138 fi
19139 rm -f core conftest.err conftest.$ac_objext \
19140 conftest$ac_exeext conftest.$ac_ext
19141 fi
19142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexp" >&5
19143 $as_echo "$gcc_cv_math_func_cexp" >&6; }
19144 if test $gcc_cv_math_func_cexp = yes; then
19145
19146 cat >>confdefs.h <<_ACEOF
19147 #define HAVE_CEXP 1
19148 _ACEOF
19149
19150 fi
19151
19152
19153
19154
19155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpl" >&5
19156 $as_echo_n "checking for cexpl... " >&6; }
19157 if test "${gcc_cv_math_func_cexpl+set}" = set; then :
19158 $as_echo_n "(cached) " >&6
19159 else
19160 if test x$gcc_no_link = xyes; then
19161 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19162 fi
19163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19164 /* end confdefs.h. */
19165
19166 #ifdef HAVE_COMPLEX_H
19167 #include <complex.h>
19168 #endif
19169 #ifdef HAVE_MATH_H
19170 #include <math.h>
19171 #endif
19172
19173 int (*ptr)() = (int (*)())cexpl;
19174
19175 int
19176 main ()
19177 {
19178 return 0;
19179 }
19180
19181 _ACEOF
19182 if ac_fn_c_try_link "$LINENO"; then :
19183 gcc_cv_math_func_cexpl=yes
19184 else
19185 gcc_cv_math_func_cexpl=no
19186 fi
19187 rm -f core conftest.err conftest.$ac_objext \
19188 conftest$ac_exeext conftest.$ac_ext
19189 fi
19190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpl" >&5
19191 $as_echo "$gcc_cv_math_func_cexpl" >&6; }
19192 if test $gcc_cv_math_func_cexpl = yes; then
19193
19194 cat >>confdefs.h <<_ACEOF
19195 #define HAVE_CEXPL 1
19196 _ACEOF
19197
19198 fi
19199
19200
19201
19202
19203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf" >&5
19204 $as_echo_n "checking for fabsf... " >&6; }
19205 if test "${gcc_cv_math_func_fabsf+set}" = set; then :
19206 $as_echo_n "(cached) " >&6
19207 else
19208 if test x$gcc_no_link = xyes; then
19209 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19210 fi
19211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19212 /* end confdefs.h. */
19213
19214 #ifdef HAVE_COMPLEX_H
19215 #include <complex.h>
19216 #endif
19217 #ifdef HAVE_MATH_H
19218 #include <math.h>
19219 #endif
19220
19221 int (*ptr)() = (int (*)())fabsf;
19222
19223 int
19224 main ()
19225 {
19226 return 0;
19227 }
19228
19229 _ACEOF
19230 if ac_fn_c_try_link "$LINENO"; then :
19231 gcc_cv_math_func_fabsf=yes
19232 else
19233 gcc_cv_math_func_fabsf=no
19234 fi
19235 rm -f core conftest.err conftest.$ac_objext \
19236 conftest$ac_exeext conftest.$ac_ext
19237 fi
19238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsf" >&5
19239 $as_echo "$gcc_cv_math_func_fabsf" >&6; }
19240 if test $gcc_cv_math_func_fabsf = yes; then
19241
19242 cat >>confdefs.h <<_ACEOF
19243 #define HAVE_FABSF 1
19244 _ACEOF
19245
19246 fi
19247
19248
19249
19250
19251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs" >&5
19252 $as_echo_n "checking for fabs... " >&6; }
19253 if test "${gcc_cv_math_func_fabs+set}" = set; then :
19254 $as_echo_n "(cached) " >&6
19255 else
19256 if test x$gcc_no_link = xyes; then
19257 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19258 fi
19259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19260 /* end confdefs.h. */
19261
19262 #ifdef HAVE_COMPLEX_H
19263 #include <complex.h>
19264 #endif
19265 #ifdef HAVE_MATH_H
19266 #include <math.h>
19267 #endif
19268
19269 int (*ptr)() = (int (*)())fabs;
19270
19271 int
19272 main ()
19273 {
19274 return 0;
19275 }
19276
19277 _ACEOF
19278 if ac_fn_c_try_link "$LINENO"; then :
19279 gcc_cv_math_func_fabs=yes
19280 else
19281 gcc_cv_math_func_fabs=no
19282 fi
19283 rm -f core conftest.err conftest.$ac_objext \
19284 conftest$ac_exeext conftest.$ac_ext
19285 fi
19286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabs" >&5
19287 $as_echo "$gcc_cv_math_func_fabs" >&6; }
19288 if test $gcc_cv_math_func_fabs = yes; then
19289
19290 cat >>confdefs.h <<_ACEOF
19291 #define HAVE_FABS 1
19292 _ACEOF
19293
19294 fi
19295
19296
19297
19298
19299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl" >&5
19300 $as_echo_n "checking for fabsl... " >&6; }
19301 if test "${gcc_cv_math_func_fabsl+set}" = set; then :
19302 $as_echo_n "(cached) " >&6
19303 else
19304 if test x$gcc_no_link = xyes; then
19305 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19306 fi
19307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19308 /* end confdefs.h. */
19309
19310 #ifdef HAVE_COMPLEX_H
19311 #include <complex.h>
19312 #endif
19313 #ifdef HAVE_MATH_H
19314 #include <math.h>
19315 #endif
19316
19317 int (*ptr)() = (int (*)())fabsl;
19318
19319 int
19320 main ()
19321 {
19322 return 0;
19323 }
19324
19325 _ACEOF
19326 if ac_fn_c_try_link "$LINENO"; then :
19327 gcc_cv_math_func_fabsl=yes
19328 else
19329 gcc_cv_math_func_fabsl=no
19330 fi
19331 rm -f core conftest.err conftest.$ac_objext \
19332 conftest$ac_exeext conftest.$ac_ext
19333 fi
19334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsl" >&5
19335 $as_echo "$gcc_cv_math_func_fabsl" >&6; }
19336 if test $gcc_cv_math_func_fabsl = yes; then
19337
19338 cat >>confdefs.h <<_ACEOF
19339 #define HAVE_FABSL 1
19340 _ACEOF
19341
19342 fi
19343
19344
19345
19346
19347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsf" >&5
19348 $as_echo_n "checking for cabsf... " >&6; }
19349 if test "${gcc_cv_math_func_cabsf+set}" = set; then :
19350 $as_echo_n "(cached) " >&6
19351 else
19352 if test x$gcc_no_link = xyes; then
19353 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19354 fi
19355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19356 /* end confdefs.h. */
19357
19358 #ifdef HAVE_COMPLEX_H
19359 #include <complex.h>
19360 #endif
19361 #ifdef HAVE_MATH_H
19362 #include <math.h>
19363 #endif
19364
19365 int (*ptr)() = (int (*)())cabsf;
19366
19367 int
19368 main ()
19369 {
19370 return 0;
19371 }
19372
19373 _ACEOF
19374 if ac_fn_c_try_link "$LINENO"; then :
19375 gcc_cv_math_func_cabsf=yes
19376 else
19377 gcc_cv_math_func_cabsf=no
19378 fi
19379 rm -f core conftest.err conftest.$ac_objext \
19380 conftest$ac_exeext conftest.$ac_ext
19381 fi
19382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsf" >&5
19383 $as_echo "$gcc_cv_math_func_cabsf" >&6; }
19384 if test $gcc_cv_math_func_cabsf = yes; then
19385
19386 cat >>confdefs.h <<_ACEOF
19387 #define HAVE_CABSF 1
19388 _ACEOF
19389
19390 fi
19391
19392
19393
19394
19395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabs" >&5
19396 $as_echo_n "checking for cabs... " >&6; }
19397 if test "${gcc_cv_math_func_cabs+set}" = set; then :
19398 $as_echo_n "(cached) " >&6
19399 else
19400 if test x$gcc_no_link = xyes; then
19401 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19402 fi
19403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19404 /* end confdefs.h. */
19405
19406 #ifdef HAVE_COMPLEX_H
19407 #include <complex.h>
19408 #endif
19409 #ifdef HAVE_MATH_H
19410 #include <math.h>
19411 #endif
19412
19413 int (*ptr)() = (int (*)())cabs;
19414
19415 int
19416 main ()
19417 {
19418 return 0;
19419 }
19420
19421 _ACEOF
19422 if ac_fn_c_try_link "$LINENO"; then :
19423 gcc_cv_math_func_cabs=yes
19424 else
19425 gcc_cv_math_func_cabs=no
19426 fi
19427 rm -f core conftest.err conftest.$ac_objext \
19428 conftest$ac_exeext conftest.$ac_ext
19429 fi
19430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabs" >&5
19431 $as_echo "$gcc_cv_math_func_cabs" >&6; }
19432 if test $gcc_cv_math_func_cabs = yes; then
19433
19434 cat >>confdefs.h <<_ACEOF
19435 #define HAVE_CABS 1
19436 _ACEOF
19437
19438 fi
19439
19440
19441
19442
19443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsl" >&5
19444 $as_echo_n "checking for cabsl... " >&6; }
19445 if test "${gcc_cv_math_func_cabsl+set}" = set; then :
19446 $as_echo_n "(cached) " >&6
19447 else
19448 if test x$gcc_no_link = xyes; then
19449 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19450 fi
19451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19452 /* end confdefs.h. */
19453
19454 #ifdef HAVE_COMPLEX_H
19455 #include <complex.h>
19456 #endif
19457 #ifdef HAVE_MATH_H
19458 #include <math.h>
19459 #endif
19460
19461 int (*ptr)() = (int (*)())cabsl;
19462
19463 int
19464 main ()
19465 {
19466 return 0;
19467 }
19468
19469 _ACEOF
19470 if ac_fn_c_try_link "$LINENO"; then :
19471 gcc_cv_math_func_cabsl=yes
19472 else
19473 gcc_cv_math_func_cabsl=no
19474 fi
19475 rm -f core conftest.err conftest.$ac_objext \
19476 conftest$ac_exeext conftest.$ac_ext
19477 fi
19478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsl" >&5
19479 $as_echo "$gcc_cv_math_func_cabsl" >&6; }
19480 if test $gcc_cv_math_func_cabsl = yes; then
19481
19482 cat >>confdefs.h <<_ACEOF
19483 #define HAVE_CABSL 1
19484 _ACEOF
19485
19486 fi
19487
19488
19489
19490
19491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorf" >&5
19492 $as_echo_n "checking for floorf... " >&6; }
19493 if test "${gcc_cv_math_func_floorf+set}" = set; then :
19494 $as_echo_n "(cached) " >&6
19495 else
19496 if test x$gcc_no_link = xyes; then
19497 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19498 fi
19499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19500 /* end confdefs.h. */
19501
19502 #ifdef HAVE_COMPLEX_H
19503 #include <complex.h>
19504 #endif
19505 #ifdef HAVE_MATH_H
19506 #include <math.h>
19507 #endif
19508
19509 int (*ptr)() = (int (*)())floorf;
19510
19511 int
19512 main ()
19513 {
19514 return 0;
19515 }
19516
19517 _ACEOF
19518 if ac_fn_c_try_link "$LINENO"; then :
19519 gcc_cv_math_func_floorf=yes
19520 else
19521 gcc_cv_math_func_floorf=no
19522 fi
19523 rm -f core conftest.err conftest.$ac_objext \
19524 conftest$ac_exeext conftest.$ac_ext
19525 fi
19526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorf" >&5
19527 $as_echo "$gcc_cv_math_func_floorf" >&6; }
19528 if test $gcc_cv_math_func_floorf = yes; then
19529
19530 cat >>confdefs.h <<_ACEOF
19531 #define HAVE_FLOORF 1
19532 _ACEOF
19533
19534 fi
19535
19536
19537
19538
19539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor" >&5
19540 $as_echo_n "checking for floor... " >&6; }
19541 if test "${gcc_cv_math_func_floor+set}" = set; then :
19542 $as_echo_n "(cached) " >&6
19543 else
19544 if test x$gcc_no_link = xyes; then
19545 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19546 fi
19547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19548 /* end confdefs.h. */
19549
19550 #ifdef HAVE_COMPLEX_H
19551 #include <complex.h>
19552 #endif
19553 #ifdef HAVE_MATH_H
19554 #include <math.h>
19555 #endif
19556
19557 int (*ptr)() = (int (*)())floor;
19558
19559 int
19560 main ()
19561 {
19562 return 0;
19563 }
19564
19565 _ACEOF
19566 if ac_fn_c_try_link "$LINENO"; then :
19567 gcc_cv_math_func_floor=yes
19568 else
19569 gcc_cv_math_func_floor=no
19570 fi
19571 rm -f core conftest.err conftest.$ac_objext \
19572 conftest$ac_exeext conftest.$ac_ext
19573 fi
19574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floor" >&5
19575 $as_echo "$gcc_cv_math_func_floor" >&6; }
19576 if test $gcc_cv_math_func_floor = yes; then
19577
19578 cat >>confdefs.h <<_ACEOF
19579 #define HAVE_FLOOR 1
19580 _ACEOF
19581
19582 fi
19583
19584
19585
19586
19587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorl" >&5
19588 $as_echo_n "checking for floorl... " >&6; }
19589 if test "${gcc_cv_math_func_floorl+set}" = set; then :
19590 $as_echo_n "(cached) " >&6
19591 else
19592 if test x$gcc_no_link = xyes; then
19593 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19594 fi
19595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19596 /* end confdefs.h. */
19597
19598 #ifdef HAVE_COMPLEX_H
19599 #include <complex.h>
19600 #endif
19601 #ifdef HAVE_MATH_H
19602 #include <math.h>
19603 #endif
19604
19605 int (*ptr)() = (int (*)())floorl;
19606
19607 int
19608 main ()
19609 {
19610 return 0;
19611 }
19612
19613 _ACEOF
19614 if ac_fn_c_try_link "$LINENO"; then :
19615 gcc_cv_math_func_floorl=yes
19616 else
19617 gcc_cv_math_func_floorl=no
19618 fi
19619 rm -f core conftest.err conftest.$ac_objext \
19620 conftest$ac_exeext conftest.$ac_ext
19621 fi
19622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorl" >&5
19623 $as_echo "$gcc_cv_math_func_floorl" >&6; }
19624 if test $gcc_cv_math_func_floorl = yes; then
19625
19626 cat >>confdefs.h <<_ACEOF
19627 #define HAVE_FLOORL 1
19628 _ACEOF
19629
19630 fi
19631
19632
19633
19634
19635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf" >&5
19636 $as_echo_n "checking for fmodf... " >&6; }
19637 if test "${gcc_cv_math_func_fmodf+set}" = set; then :
19638 $as_echo_n "(cached) " >&6
19639 else
19640 if test x$gcc_no_link = xyes; then
19641 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19642 fi
19643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19644 /* end confdefs.h. */
19645
19646 #ifdef HAVE_COMPLEX_H
19647 #include <complex.h>
19648 #endif
19649 #ifdef HAVE_MATH_H
19650 #include <math.h>
19651 #endif
19652
19653 int (*ptr)() = (int (*)())fmodf;
19654
19655 int
19656 main ()
19657 {
19658 return 0;
19659 }
19660
19661 _ACEOF
19662 if ac_fn_c_try_link "$LINENO"; then :
19663 gcc_cv_math_func_fmodf=yes
19664 else
19665 gcc_cv_math_func_fmodf=no
19666 fi
19667 rm -f core conftest.err conftest.$ac_objext \
19668 conftest$ac_exeext conftest.$ac_ext
19669 fi
19670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodf" >&5
19671 $as_echo "$gcc_cv_math_func_fmodf" >&6; }
19672 if test $gcc_cv_math_func_fmodf = yes; then
19673
19674 cat >>confdefs.h <<_ACEOF
19675 #define HAVE_FMODF 1
19676 _ACEOF
19677
19678 fi
19679
19680
19681
19682
19683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod" >&5
19684 $as_echo_n "checking for fmod... " >&6; }
19685 if test "${gcc_cv_math_func_fmod+set}" = set; then :
19686 $as_echo_n "(cached) " >&6
19687 else
19688 if test x$gcc_no_link = xyes; then
19689 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19690 fi
19691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19692 /* end confdefs.h. */
19693
19694 #ifdef HAVE_COMPLEX_H
19695 #include <complex.h>
19696 #endif
19697 #ifdef HAVE_MATH_H
19698 #include <math.h>
19699 #endif
19700
19701 int (*ptr)() = (int (*)())fmod;
19702
19703 int
19704 main ()
19705 {
19706 return 0;
19707 }
19708
19709 _ACEOF
19710 if ac_fn_c_try_link "$LINENO"; then :
19711 gcc_cv_math_func_fmod=yes
19712 else
19713 gcc_cv_math_func_fmod=no
19714 fi
19715 rm -f core conftest.err conftest.$ac_objext \
19716 conftest$ac_exeext conftest.$ac_ext
19717 fi
19718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmod" >&5
19719 $as_echo "$gcc_cv_math_func_fmod" >&6; }
19720 if test $gcc_cv_math_func_fmod = yes; then
19721
19722 cat >>confdefs.h <<_ACEOF
19723 #define HAVE_FMOD 1
19724 _ACEOF
19725
19726 fi
19727
19728
19729
19730
19731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl" >&5
19732 $as_echo_n "checking for fmodl... " >&6; }
19733 if test "${gcc_cv_math_func_fmodl+set}" = set; then :
19734 $as_echo_n "(cached) " >&6
19735 else
19736 if test x$gcc_no_link = xyes; then
19737 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19738 fi
19739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19740 /* end confdefs.h. */
19741
19742 #ifdef HAVE_COMPLEX_H
19743 #include <complex.h>
19744 #endif
19745 #ifdef HAVE_MATH_H
19746 #include <math.h>
19747 #endif
19748
19749 int (*ptr)() = (int (*)())fmodl;
19750
19751 int
19752 main ()
19753 {
19754 return 0;
19755 }
19756
19757 _ACEOF
19758 if ac_fn_c_try_link "$LINENO"; then :
19759 gcc_cv_math_func_fmodl=yes
19760 else
19761 gcc_cv_math_func_fmodl=no
19762 fi
19763 rm -f core conftest.err conftest.$ac_objext \
19764 conftest$ac_exeext conftest.$ac_ext
19765 fi
19766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodl" >&5
19767 $as_echo "$gcc_cv_math_func_fmodl" >&6; }
19768 if test $gcc_cv_math_func_fmodl = yes; then
19769
19770 cat >>confdefs.h <<_ACEOF
19771 #define HAVE_FMODL 1
19772 _ACEOF
19773
19774 fi
19775
19776
19777
19778
19779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf" >&5
19780 $as_echo_n "checking for frexpf... " >&6; }
19781 if test "${gcc_cv_math_func_frexpf+set}" = set; then :
19782 $as_echo_n "(cached) " >&6
19783 else
19784 if test x$gcc_no_link = xyes; then
19785 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19786 fi
19787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19788 /* end confdefs.h. */
19789
19790 #ifdef HAVE_COMPLEX_H
19791 #include <complex.h>
19792 #endif
19793 #ifdef HAVE_MATH_H
19794 #include <math.h>
19795 #endif
19796
19797 int (*ptr)() = (int (*)())frexpf;
19798
19799 int
19800 main ()
19801 {
19802 return 0;
19803 }
19804
19805 _ACEOF
19806 if ac_fn_c_try_link "$LINENO"; then :
19807 gcc_cv_math_func_frexpf=yes
19808 else
19809 gcc_cv_math_func_frexpf=no
19810 fi
19811 rm -f core conftest.err conftest.$ac_objext \
19812 conftest$ac_exeext conftest.$ac_ext
19813 fi
19814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpf" >&5
19815 $as_echo "$gcc_cv_math_func_frexpf" >&6; }
19816 if test $gcc_cv_math_func_frexpf = yes; then
19817
19818 cat >>confdefs.h <<_ACEOF
19819 #define HAVE_FREXPF 1
19820 _ACEOF
19821
19822 fi
19823
19824
19825
19826
19827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexp" >&5
19828 $as_echo_n "checking for frexp... " >&6; }
19829 if test "${gcc_cv_math_func_frexp+set}" = set; then :
19830 $as_echo_n "(cached) " >&6
19831 else
19832 if test x$gcc_no_link = xyes; then
19833 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19834 fi
19835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19836 /* end confdefs.h. */
19837
19838 #ifdef HAVE_COMPLEX_H
19839 #include <complex.h>
19840 #endif
19841 #ifdef HAVE_MATH_H
19842 #include <math.h>
19843 #endif
19844
19845 int (*ptr)() = (int (*)())frexp;
19846
19847 int
19848 main ()
19849 {
19850 return 0;
19851 }
19852
19853 _ACEOF
19854 if ac_fn_c_try_link "$LINENO"; then :
19855 gcc_cv_math_func_frexp=yes
19856 else
19857 gcc_cv_math_func_frexp=no
19858 fi
19859 rm -f core conftest.err conftest.$ac_objext \
19860 conftest$ac_exeext conftest.$ac_ext
19861 fi
19862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexp" >&5
19863 $as_echo "$gcc_cv_math_func_frexp" >&6; }
19864 if test $gcc_cv_math_func_frexp = yes; then
19865
19866 cat >>confdefs.h <<_ACEOF
19867 #define HAVE_FREXP 1
19868 _ACEOF
19869
19870 fi
19871
19872
19873
19874
19875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl" >&5
19876 $as_echo_n "checking for frexpl... " >&6; }
19877 if test "${gcc_cv_math_func_frexpl+set}" = set; then :
19878 $as_echo_n "(cached) " >&6
19879 else
19880 if test x$gcc_no_link = xyes; then
19881 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19882 fi
19883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19884 /* end confdefs.h. */
19885
19886 #ifdef HAVE_COMPLEX_H
19887 #include <complex.h>
19888 #endif
19889 #ifdef HAVE_MATH_H
19890 #include <math.h>
19891 #endif
19892
19893 int (*ptr)() = (int (*)())frexpl;
19894
19895 int
19896 main ()
19897 {
19898 return 0;
19899 }
19900
19901 _ACEOF
19902 if ac_fn_c_try_link "$LINENO"; then :
19903 gcc_cv_math_func_frexpl=yes
19904 else
19905 gcc_cv_math_func_frexpl=no
19906 fi
19907 rm -f core conftest.err conftest.$ac_objext \
19908 conftest$ac_exeext conftest.$ac_ext
19909 fi
19910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpl" >&5
19911 $as_echo "$gcc_cv_math_func_frexpl" >&6; }
19912 if test $gcc_cv_math_func_frexpl = yes; then
19913
19914 cat >>confdefs.h <<_ACEOF
19915 #define HAVE_FREXPL 1
19916 _ACEOF
19917
19918 fi
19919
19920
19921
19922
19923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf" >&5
19924 $as_echo_n "checking for hypotf... " >&6; }
19925 if test "${gcc_cv_math_func_hypotf+set}" = set; then :
19926 $as_echo_n "(cached) " >&6
19927 else
19928 if test x$gcc_no_link = xyes; then
19929 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19930 fi
19931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19932 /* end confdefs.h. */
19933
19934 #ifdef HAVE_COMPLEX_H
19935 #include <complex.h>
19936 #endif
19937 #ifdef HAVE_MATH_H
19938 #include <math.h>
19939 #endif
19940
19941 int (*ptr)() = (int (*)())hypotf;
19942
19943 int
19944 main ()
19945 {
19946 return 0;
19947 }
19948
19949 _ACEOF
19950 if ac_fn_c_try_link "$LINENO"; then :
19951 gcc_cv_math_func_hypotf=yes
19952 else
19953 gcc_cv_math_func_hypotf=no
19954 fi
19955 rm -f core conftest.err conftest.$ac_objext \
19956 conftest$ac_exeext conftest.$ac_ext
19957 fi
19958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotf" >&5
19959 $as_echo "$gcc_cv_math_func_hypotf" >&6; }
19960 if test $gcc_cv_math_func_hypotf = yes; then
19961
19962 cat >>confdefs.h <<_ACEOF
19963 #define HAVE_HYPOTF 1
19964 _ACEOF
19965
19966 fi
19967
19968
19969
19970
19971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot" >&5
19972 $as_echo_n "checking for hypot... " >&6; }
19973 if test "${gcc_cv_math_func_hypot+set}" = set; then :
19974 $as_echo_n "(cached) " >&6
19975 else
19976 if test x$gcc_no_link = xyes; then
19977 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19978 fi
19979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19980 /* end confdefs.h. */
19981
19982 #ifdef HAVE_COMPLEX_H
19983 #include <complex.h>
19984 #endif
19985 #ifdef HAVE_MATH_H
19986 #include <math.h>
19987 #endif
19988
19989 int (*ptr)() = (int (*)())hypot;
19990
19991 int
19992 main ()
19993 {
19994 return 0;
19995 }
19996
19997 _ACEOF
19998 if ac_fn_c_try_link "$LINENO"; then :
19999 gcc_cv_math_func_hypot=yes
20000 else
20001 gcc_cv_math_func_hypot=no
20002 fi
20003 rm -f core conftest.err conftest.$ac_objext \
20004 conftest$ac_exeext conftest.$ac_ext
20005 fi
20006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypot" >&5
20007 $as_echo "$gcc_cv_math_func_hypot" >&6; }
20008 if test $gcc_cv_math_func_hypot = yes; then
20009
20010 cat >>confdefs.h <<_ACEOF
20011 #define HAVE_HYPOT 1
20012 _ACEOF
20013
20014 fi
20015
20016
20017
20018
20019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl" >&5
20020 $as_echo_n "checking for hypotl... " >&6; }
20021 if test "${gcc_cv_math_func_hypotl+set}" = set; then :
20022 $as_echo_n "(cached) " >&6
20023 else
20024 if test x$gcc_no_link = xyes; then
20025 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20026 fi
20027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20028 /* end confdefs.h. */
20029
20030 #ifdef HAVE_COMPLEX_H
20031 #include <complex.h>
20032 #endif
20033 #ifdef HAVE_MATH_H
20034 #include <math.h>
20035 #endif
20036
20037 int (*ptr)() = (int (*)())hypotl;
20038
20039 int
20040 main ()
20041 {
20042 return 0;
20043 }
20044
20045 _ACEOF
20046 if ac_fn_c_try_link "$LINENO"; then :
20047 gcc_cv_math_func_hypotl=yes
20048 else
20049 gcc_cv_math_func_hypotl=no
20050 fi
20051 rm -f core conftest.err conftest.$ac_objext \
20052 conftest$ac_exeext conftest.$ac_ext
20053 fi
20054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotl" >&5
20055 $as_echo "$gcc_cv_math_func_hypotl" >&6; }
20056 if test $gcc_cv_math_func_hypotl = yes; then
20057
20058 cat >>confdefs.h <<_ACEOF
20059 #define HAVE_HYPOTL 1
20060 _ACEOF
20061
20062 fi
20063
20064
20065
20066
20067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf" >&5
20068 $as_echo_n "checking for ldexpf... " >&6; }
20069 if test "${gcc_cv_math_func_ldexpf+set}" = set; then :
20070 $as_echo_n "(cached) " >&6
20071 else
20072 if test x$gcc_no_link = xyes; then
20073 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20074 fi
20075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20076 /* end confdefs.h. */
20077
20078 #ifdef HAVE_COMPLEX_H
20079 #include <complex.h>
20080 #endif
20081 #ifdef HAVE_MATH_H
20082 #include <math.h>
20083 #endif
20084
20085 int (*ptr)() = (int (*)())ldexpf;
20086
20087 int
20088 main ()
20089 {
20090 return 0;
20091 }
20092
20093 _ACEOF
20094 if ac_fn_c_try_link "$LINENO"; then :
20095 gcc_cv_math_func_ldexpf=yes
20096 else
20097 gcc_cv_math_func_ldexpf=no
20098 fi
20099 rm -f core conftest.err conftest.$ac_objext \
20100 conftest$ac_exeext conftest.$ac_ext
20101 fi
20102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpf" >&5
20103 $as_echo "$gcc_cv_math_func_ldexpf" >&6; }
20104 if test $gcc_cv_math_func_ldexpf = yes; then
20105
20106 cat >>confdefs.h <<_ACEOF
20107 #define HAVE_LDEXPF 1
20108 _ACEOF
20109
20110 fi
20111
20112
20113
20114
20115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexp" >&5
20116 $as_echo_n "checking for ldexp... " >&6; }
20117 if test "${gcc_cv_math_func_ldexp+set}" = set; then :
20118 $as_echo_n "(cached) " >&6
20119 else
20120 if test x$gcc_no_link = xyes; then
20121 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20122 fi
20123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20124 /* end confdefs.h. */
20125
20126 #ifdef HAVE_COMPLEX_H
20127 #include <complex.h>
20128 #endif
20129 #ifdef HAVE_MATH_H
20130 #include <math.h>
20131 #endif
20132
20133 int (*ptr)() = (int (*)())ldexp;
20134
20135 int
20136 main ()
20137 {
20138 return 0;
20139 }
20140
20141 _ACEOF
20142 if ac_fn_c_try_link "$LINENO"; then :
20143 gcc_cv_math_func_ldexp=yes
20144 else
20145 gcc_cv_math_func_ldexp=no
20146 fi
20147 rm -f core conftest.err conftest.$ac_objext \
20148 conftest$ac_exeext conftest.$ac_ext
20149 fi
20150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexp" >&5
20151 $as_echo "$gcc_cv_math_func_ldexp" >&6; }
20152 if test $gcc_cv_math_func_ldexp = yes; then
20153
20154 cat >>confdefs.h <<_ACEOF
20155 #define HAVE_LDEXP 1
20156 _ACEOF
20157
20158 fi
20159
20160
20161
20162
20163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl" >&5
20164 $as_echo_n "checking for ldexpl... " >&6; }
20165 if test "${gcc_cv_math_func_ldexpl+set}" = set; then :
20166 $as_echo_n "(cached) " >&6
20167 else
20168 if test x$gcc_no_link = xyes; then
20169 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20170 fi
20171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20172 /* end confdefs.h. */
20173
20174 #ifdef HAVE_COMPLEX_H
20175 #include <complex.h>
20176 #endif
20177 #ifdef HAVE_MATH_H
20178 #include <math.h>
20179 #endif
20180
20181 int (*ptr)() = (int (*)())ldexpl;
20182
20183 int
20184 main ()
20185 {
20186 return 0;
20187 }
20188
20189 _ACEOF
20190 if ac_fn_c_try_link "$LINENO"; then :
20191 gcc_cv_math_func_ldexpl=yes
20192 else
20193 gcc_cv_math_func_ldexpl=no
20194 fi
20195 rm -f core conftest.err conftest.$ac_objext \
20196 conftest$ac_exeext conftest.$ac_ext
20197 fi
20198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpl" >&5
20199 $as_echo "$gcc_cv_math_func_ldexpl" >&6; }
20200 if test $gcc_cv_math_func_ldexpl = yes; then
20201
20202 cat >>confdefs.h <<_ACEOF
20203 #define HAVE_LDEXPL 1
20204 _ACEOF
20205
20206 fi
20207
20208
20209
20210
20211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf" >&5
20212 $as_echo_n "checking for logf... " >&6; }
20213 if test "${gcc_cv_math_func_logf+set}" = set; then :
20214 $as_echo_n "(cached) " >&6
20215 else
20216 if test x$gcc_no_link = xyes; then
20217 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20218 fi
20219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20220 /* end confdefs.h. */
20221
20222 #ifdef HAVE_COMPLEX_H
20223 #include <complex.h>
20224 #endif
20225 #ifdef HAVE_MATH_H
20226 #include <math.h>
20227 #endif
20228
20229 int (*ptr)() = (int (*)())logf;
20230
20231 int
20232 main ()
20233 {
20234 return 0;
20235 }
20236
20237 _ACEOF
20238 if ac_fn_c_try_link "$LINENO"; then :
20239 gcc_cv_math_func_logf=yes
20240 else
20241 gcc_cv_math_func_logf=no
20242 fi
20243 rm -f core conftest.err conftest.$ac_objext \
20244 conftest$ac_exeext conftest.$ac_ext
20245 fi
20246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logf" >&5
20247 $as_echo "$gcc_cv_math_func_logf" >&6; }
20248 if test $gcc_cv_math_func_logf = yes; then
20249
20250 cat >>confdefs.h <<_ACEOF
20251 #define HAVE_LOGF 1
20252 _ACEOF
20253
20254 fi
20255
20256
20257
20258
20259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log" >&5
20260 $as_echo_n "checking for log... " >&6; }
20261 if test "${gcc_cv_math_func_log+set}" = set; then :
20262 $as_echo_n "(cached) " >&6
20263 else
20264 if test x$gcc_no_link = xyes; then
20265 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20266 fi
20267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20268 /* end confdefs.h. */
20269
20270 #ifdef HAVE_COMPLEX_H
20271 #include <complex.h>
20272 #endif
20273 #ifdef HAVE_MATH_H
20274 #include <math.h>
20275 #endif
20276
20277 int (*ptr)() = (int (*)())log;
20278
20279 int
20280 main ()
20281 {
20282 return 0;
20283 }
20284
20285 _ACEOF
20286 if ac_fn_c_try_link "$LINENO"; then :
20287 gcc_cv_math_func_log=yes
20288 else
20289 gcc_cv_math_func_log=no
20290 fi
20291 rm -f core conftest.err conftest.$ac_objext \
20292 conftest$ac_exeext conftest.$ac_ext
20293 fi
20294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log" >&5
20295 $as_echo "$gcc_cv_math_func_log" >&6; }
20296 if test $gcc_cv_math_func_log = yes; then
20297
20298 cat >>confdefs.h <<_ACEOF
20299 #define HAVE_LOG 1
20300 _ACEOF
20301
20302 fi
20303
20304
20305
20306
20307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl" >&5
20308 $as_echo_n "checking for logl... " >&6; }
20309 if test "${gcc_cv_math_func_logl+set}" = set; then :
20310 $as_echo_n "(cached) " >&6
20311 else
20312 if test x$gcc_no_link = xyes; then
20313 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20314 fi
20315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20316 /* end confdefs.h. */
20317
20318 #ifdef HAVE_COMPLEX_H
20319 #include <complex.h>
20320 #endif
20321 #ifdef HAVE_MATH_H
20322 #include <math.h>
20323 #endif
20324
20325 int (*ptr)() = (int (*)())logl;
20326
20327 int
20328 main ()
20329 {
20330 return 0;
20331 }
20332
20333 _ACEOF
20334 if ac_fn_c_try_link "$LINENO"; then :
20335 gcc_cv_math_func_logl=yes
20336 else
20337 gcc_cv_math_func_logl=no
20338 fi
20339 rm -f core conftest.err conftest.$ac_objext \
20340 conftest$ac_exeext conftest.$ac_ext
20341 fi
20342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logl" >&5
20343 $as_echo "$gcc_cv_math_func_logl" >&6; }
20344 if test $gcc_cv_math_func_logl = yes; then
20345
20346 cat >>confdefs.h <<_ACEOF
20347 #define HAVE_LOGL 1
20348 _ACEOF
20349
20350 fi
20351
20352
20353
20354
20355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogf" >&5
20356 $as_echo_n "checking for clogf... " >&6; }
20357 if test "${gcc_cv_math_func_clogf+set}" = set; then :
20358 $as_echo_n "(cached) " >&6
20359 else
20360 if test x$gcc_no_link = xyes; then
20361 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20362 fi
20363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20364 /* end confdefs.h. */
20365
20366 #ifdef HAVE_COMPLEX_H
20367 #include <complex.h>
20368 #endif
20369 #ifdef HAVE_MATH_H
20370 #include <math.h>
20371 #endif
20372
20373 int (*ptr)() = (int (*)())clogf;
20374
20375 int
20376 main ()
20377 {
20378 return 0;
20379 }
20380
20381 _ACEOF
20382 if ac_fn_c_try_link "$LINENO"; then :
20383 gcc_cv_math_func_clogf=yes
20384 else
20385 gcc_cv_math_func_clogf=no
20386 fi
20387 rm -f core conftest.err conftest.$ac_objext \
20388 conftest$ac_exeext conftest.$ac_ext
20389 fi
20390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogf" >&5
20391 $as_echo "$gcc_cv_math_func_clogf" >&6; }
20392 if test $gcc_cv_math_func_clogf = yes; then
20393
20394 cat >>confdefs.h <<_ACEOF
20395 #define HAVE_CLOGF 1
20396 _ACEOF
20397
20398 fi
20399
20400
20401
20402
20403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog" >&5
20404 $as_echo_n "checking for clog... " >&6; }
20405 if test "${gcc_cv_math_func_clog+set}" = set; then :
20406 $as_echo_n "(cached) " >&6
20407 else
20408 if test x$gcc_no_link = xyes; then
20409 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20410 fi
20411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20412 /* end confdefs.h. */
20413
20414 #ifdef HAVE_COMPLEX_H
20415 #include <complex.h>
20416 #endif
20417 #ifdef HAVE_MATH_H
20418 #include <math.h>
20419 #endif
20420
20421 int (*ptr)() = (int (*)())clog;
20422
20423 int
20424 main ()
20425 {
20426 return 0;
20427 }
20428
20429 _ACEOF
20430 if ac_fn_c_try_link "$LINENO"; then :
20431 gcc_cv_math_func_clog=yes
20432 else
20433 gcc_cv_math_func_clog=no
20434 fi
20435 rm -f core conftest.err conftest.$ac_objext \
20436 conftest$ac_exeext conftest.$ac_ext
20437 fi
20438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog" >&5
20439 $as_echo "$gcc_cv_math_func_clog" >&6; }
20440 if test $gcc_cv_math_func_clog = yes; then
20441
20442 cat >>confdefs.h <<_ACEOF
20443 #define HAVE_CLOG 1
20444 _ACEOF
20445
20446 fi
20447
20448
20449
20450
20451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogl" >&5
20452 $as_echo_n "checking for clogl... " >&6; }
20453 if test "${gcc_cv_math_func_clogl+set}" = set; then :
20454 $as_echo_n "(cached) " >&6
20455 else
20456 if test x$gcc_no_link = xyes; then
20457 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20458 fi
20459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20460 /* end confdefs.h. */
20461
20462 #ifdef HAVE_COMPLEX_H
20463 #include <complex.h>
20464 #endif
20465 #ifdef HAVE_MATH_H
20466 #include <math.h>
20467 #endif
20468
20469 int (*ptr)() = (int (*)())clogl;
20470
20471 int
20472 main ()
20473 {
20474 return 0;
20475 }
20476
20477 _ACEOF
20478 if ac_fn_c_try_link "$LINENO"; then :
20479 gcc_cv_math_func_clogl=yes
20480 else
20481 gcc_cv_math_func_clogl=no
20482 fi
20483 rm -f core conftest.err conftest.$ac_objext \
20484 conftest$ac_exeext conftest.$ac_ext
20485 fi
20486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogl" >&5
20487 $as_echo "$gcc_cv_math_func_clogl" >&6; }
20488 if test $gcc_cv_math_func_clogl = yes; then
20489
20490 cat >>confdefs.h <<_ACEOF
20491 #define HAVE_CLOGL 1
20492 _ACEOF
20493
20494 fi
20495
20496
20497
20498
20499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f" >&5
20500 $as_echo_n "checking for log10f... " >&6; }
20501 if test "${gcc_cv_math_func_log10f+set}" = set; then :
20502 $as_echo_n "(cached) " >&6
20503 else
20504 if test x$gcc_no_link = xyes; then
20505 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20506 fi
20507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20508 /* end confdefs.h. */
20509
20510 #ifdef HAVE_COMPLEX_H
20511 #include <complex.h>
20512 #endif
20513 #ifdef HAVE_MATH_H
20514 #include <math.h>
20515 #endif
20516
20517 int (*ptr)() = (int (*)())log10f;
20518
20519 int
20520 main ()
20521 {
20522 return 0;
20523 }
20524
20525 _ACEOF
20526 if ac_fn_c_try_link "$LINENO"; then :
20527 gcc_cv_math_func_log10f=yes
20528 else
20529 gcc_cv_math_func_log10f=no
20530 fi
20531 rm -f core conftest.err conftest.$ac_objext \
20532 conftest$ac_exeext conftest.$ac_ext
20533 fi
20534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10f" >&5
20535 $as_echo "$gcc_cv_math_func_log10f" >&6; }
20536 if test $gcc_cv_math_func_log10f = yes; then
20537
20538 cat >>confdefs.h <<_ACEOF
20539 #define HAVE_LOG10F 1
20540 _ACEOF
20541
20542 fi
20543
20544
20545
20546
20547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10" >&5
20548 $as_echo_n "checking for log10... " >&6; }
20549 if test "${gcc_cv_math_func_log10+set}" = set; then :
20550 $as_echo_n "(cached) " >&6
20551 else
20552 if test x$gcc_no_link = xyes; then
20553 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20554 fi
20555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20556 /* end confdefs.h. */
20557
20558 #ifdef HAVE_COMPLEX_H
20559 #include <complex.h>
20560 #endif
20561 #ifdef HAVE_MATH_H
20562 #include <math.h>
20563 #endif
20564
20565 int (*ptr)() = (int (*)())log10;
20566
20567 int
20568 main ()
20569 {
20570 return 0;
20571 }
20572
20573 _ACEOF
20574 if ac_fn_c_try_link "$LINENO"; then :
20575 gcc_cv_math_func_log10=yes
20576 else
20577 gcc_cv_math_func_log10=no
20578 fi
20579 rm -f core conftest.err conftest.$ac_objext \
20580 conftest$ac_exeext conftest.$ac_ext
20581 fi
20582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10" >&5
20583 $as_echo "$gcc_cv_math_func_log10" >&6; }
20584 if test $gcc_cv_math_func_log10 = yes; then
20585
20586 cat >>confdefs.h <<_ACEOF
20587 #define HAVE_LOG10 1
20588 _ACEOF
20589
20590 fi
20591
20592
20593
20594
20595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l" >&5
20596 $as_echo_n "checking for log10l... " >&6; }
20597 if test "${gcc_cv_math_func_log10l+set}" = set; then :
20598 $as_echo_n "(cached) " >&6
20599 else
20600 if test x$gcc_no_link = xyes; then
20601 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20602 fi
20603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20604 /* end confdefs.h. */
20605
20606 #ifdef HAVE_COMPLEX_H
20607 #include <complex.h>
20608 #endif
20609 #ifdef HAVE_MATH_H
20610 #include <math.h>
20611 #endif
20612
20613 int (*ptr)() = (int (*)())log10l;
20614
20615 int
20616 main ()
20617 {
20618 return 0;
20619 }
20620
20621 _ACEOF
20622 if ac_fn_c_try_link "$LINENO"; then :
20623 gcc_cv_math_func_log10l=yes
20624 else
20625 gcc_cv_math_func_log10l=no
20626 fi
20627 rm -f core conftest.err conftest.$ac_objext \
20628 conftest$ac_exeext conftest.$ac_ext
20629 fi
20630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10l" >&5
20631 $as_echo "$gcc_cv_math_func_log10l" >&6; }
20632 if test $gcc_cv_math_func_log10l = yes; then
20633
20634 cat >>confdefs.h <<_ACEOF
20635 #define HAVE_LOG10L 1
20636 _ACEOF
20637
20638 fi
20639
20640
20641
20642
20643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10f" >&5
20644 $as_echo_n "checking for clog10f... " >&6; }
20645 if test "${gcc_cv_math_func_clog10f+set}" = set; then :
20646 $as_echo_n "(cached) " >&6
20647 else
20648 if test x$gcc_no_link = xyes; then
20649 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20650 fi
20651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20652 /* end confdefs.h. */
20653
20654 #ifdef HAVE_COMPLEX_H
20655 #include <complex.h>
20656 #endif
20657 #ifdef HAVE_MATH_H
20658 #include <math.h>
20659 #endif
20660
20661 int (*ptr)() = (int (*)())clog10f;
20662
20663 int
20664 main ()
20665 {
20666 return 0;
20667 }
20668
20669 _ACEOF
20670 if ac_fn_c_try_link "$LINENO"; then :
20671 gcc_cv_math_func_clog10f=yes
20672 else
20673 gcc_cv_math_func_clog10f=no
20674 fi
20675 rm -f core conftest.err conftest.$ac_objext \
20676 conftest$ac_exeext conftest.$ac_ext
20677 fi
20678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10f" >&5
20679 $as_echo "$gcc_cv_math_func_clog10f" >&6; }
20680 if test $gcc_cv_math_func_clog10f = yes; then
20681
20682 cat >>confdefs.h <<_ACEOF
20683 #define HAVE_CLOG10F 1
20684 _ACEOF
20685
20686 fi
20687
20688
20689
20690
20691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10" >&5
20692 $as_echo_n "checking for clog10... " >&6; }
20693 if test "${gcc_cv_math_func_clog10+set}" = set; then :
20694 $as_echo_n "(cached) " >&6
20695 else
20696 if test x$gcc_no_link = xyes; then
20697 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20698 fi
20699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20700 /* end confdefs.h. */
20701
20702 #ifdef HAVE_COMPLEX_H
20703 #include <complex.h>
20704 #endif
20705 #ifdef HAVE_MATH_H
20706 #include <math.h>
20707 #endif
20708
20709 int (*ptr)() = (int (*)())clog10;
20710
20711 int
20712 main ()
20713 {
20714 return 0;
20715 }
20716
20717 _ACEOF
20718 if ac_fn_c_try_link "$LINENO"; then :
20719 gcc_cv_math_func_clog10=yes
20720 else
20721 gcc_cv_math_func_clog10=no
20722 fi
20723 rm -f core conftest.err conftest.$ac_objext \
20724 conftest$ac_exeext conftest.$ac_ext
20725 fi
20726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10" >&5
20727 $as_echo "$gcc_cv_math_func_clog10" >&6; }
20728 if test $gcc_cv_math_func_clog10 = yes; then
20729
20730 cat >>confdefs.h <<_ACEOF
20731 #define HAVE_CLOG10 1
20732 _ACEOF
20733
20734 fi
20735
20736
20737
20738
20739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10l" >&5
20740 $as_echo_n "checking for clog10l... " >&6; }
20741 if test "${gcc_cv_math_func_clog10l+set}" = set; then :
20742 $as_echo_n "(cached) " >&6
20743 else
20744 if test x$gcc_no_link = xyes; then
20745 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20746 fi
20747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20748 /* end confdefs.h. */
20749
20750 #ifdef HAVE_COMPLEX_H
20751 #include <complex.h>
20752 #endif
20753 #ifdef HAVE_MATH_H
20754 #include <math.h>
20755 #endif
20756
20757 int (*ptr)() = (int (*)())clog10l;
20758
20759 int
20760 main ()
20761 {
20762 return 0;
20763 }
20764
20765 _ACEOF
20766 if ac_fn_c_try_link "$LINENO"; then :
20767 gcc_cv_math_func_clog10l=yes
20768 else
20769 gcc_cv_math_func_clog10l=no
20770 fi
20771 rm -f core conftest.err conftest.$ac_objext \
20772 conftest$ac_exeext conftest.$ac_ext
20773 fi
20774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10l" >&5
20775 $as_echo "$gcc_cv_math_func_clog10l" >&6; }
20776 if test $gcc_cv_math_func_clog10l = yes; then
20777
20778 cat >>confdefs.h <<_ACEOF
20779 #define HAVE_CLOG10L 1
20780 _ACEOF
20781
20782 fi
20783
20784
20785
20786
20787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterf" >&5
20788 $as_echo_n "checking for nextafterf... " >&6; }
20789 if test "${gcc_cv_math_func_nextafterf+set}" = set; then :
20790 $as_echo_n "(cached) " >&6
20791 else
20792 if test x$gcc_no_link = xyes; then
20793 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20794 fi
20795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20796 /* end confdefs.h. */
20797
20798 #ifdef HAVE_COMPLEX_H
20799 #include <complex.h>
20800 #endif
20801 #ifdef HAVE_MATH_H
20802 #include <math.h>
20803 #endif
20804
20805 int (*ptr)() = (int (*)())nextafterf;
20806
20807 int
20808 main ()
20809 {
20810 return 0;
20811 }
20812
20813 _ACEOF
20814 if ac_fn_c_try_link "$LINENO"; then :
20815 gcc_cv_math_func_nextafterf=yes
20816 else
20817 gcc_cv_math_func_nextafterf=no
20818 fi
20819 rm -f core conftest.err conftest.$ac_objext \
20820 conftest$ac_exeext conftest.$ac_ext
20821 fi
20822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterf" >&5
20823 $as_echo "$gcc_cv_math_func_nextafterf" >&6; }
20824 if test $gcc_cv_math_func_nextafterf = yes; then
20825
20826 cat >>confdefs.h <<_ACEOF
20827 #define HAVE_NEXTAFTERF 1
20828 _ACEOF
20829
20830 fi
20831
20832
20833
20834
20835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafter" >&5
20836 $as_echo_n "checking for nextafter... " >&6; }
20837 if test "${gcc_cv_math_func_nextafter+set}" = set; then :
20838 $as_echo_n "(cached) " >&6
20839 else
20840 if test x$gcc_no_link = xyes; then
20841 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20842 fi
20843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20844 /* end confdefs.h. */
20845
20846 #ifdef HAVE_COMPLEX_H
20847 #include <complex.h>
20848 #endif
20849 #ifdef HAVE_MATH_H
20850 #include <math.h>
20851 #endif
20852
20853 int (*ptr)() = (int (*)())nextafter;
20854
20855 int
20856 main ()
20857 {
20858 return 0;
20859 }
20860
20861 _ACEOF
20862 if ac_fn_c_try_link "$LINENO"; then :
20863 gcc_cv_math_func_nextafter=yes
20864 else
20865 gcc_cv_math_func_nextafter=no
20866 fi
20867 rm -f core conftest.err conftest.$ac_objext \
20868 conftest$ac_exeext conftest.$ac_ext
20869 fi
20870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafter" >&5
20871 $as_echo "$gcc_cv_math_func_nextafter" >&6; }
20872 if test $gcc_cv_math_func_nextafter = yes; then
20873
20874 cat >>confdefs.h <<_ACEOF
20875 #define HAVE_NEXTAFTER 1
20876 _ACEOF
20877
20878 fi
20879
20880
20881
20882
20883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterl" >&5
20884 $as_echo_n "checking for nextafterl... " >&6; }
20885 if test "${gcc_cv_math_func_nextafterl+set}" = set; then :
20886 $as_echo_n "(cached) " >&6
20887 else
20888 if test x$gcc_no_link = xyes; then
20889 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20890 fi
20891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20892 /* end confdefs.h. */
20893
20894 #ifdef HAVE_COMPLEX_H
20895 #include <complex.h>
20896 #endif
20897 #ifdef HAVE_MATH_H
20898 #include <math.h>
20899 #endif
20900
20901 int (*ptr)() = (int (*)())nextafterl;
20902
20903 int
20904 main ()
20905 {
20906 return 0;
20907 }
20908
20909 _ACEOF
20910 if ac_fn_c_try_link "$LINENO"; then :
20911 gcc_cv_math_func_nextafterl=yes
20912 else
20913 gcc_cv_math_func_nextafterl=no
20914 fi
20915 rm -f core conftest.err conftest.$ac_objext \
20916 conftest$ac_exeext conftest.$ac_ext
20917 fi
20918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterl" >&5
20919 $as_echo "$gcc_cv_math_func_nextafterl" >&6; }
20920 if test $gcc_cv_math_func_nextafterl = yes; then
20921
20922 cat >>confdefs.h <<_ACEOF
20923 #define HAVE_NEXTAFTERL 1
20924 _ACEOF
20925
20926 fi
20927
20928
20929
20930
20931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf" >&5
20932 $as_echo_n "checking for powf... " >&6; }
20933 if test "${gcc_cv_math_func_powf+set}" = set; then :
20934 $as_echo_n "(cached) " >&6
20935 else
20936 if test x$gcc_no_link = xyes; then
20937 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20938 fi
20939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20940 /* end confdefs.h. */
20941
20942 #ifdef HAVE_COMPLEX_H
20943 #include <complex.h>
20944 #endif
20945 #ifdef HAVE_MATH_H
20946 #include <math.h>
20947 #endif
20948
20949 int (*ptr)() = (int (*)())powf;
20950
20951 int
20952 main ()
20953 {
20954 return 0;
20955 }
20956
20957 _ACEOF
20958 if ac_fn_c_try_link "$LINENO"; then :
20959 gcc_cv_math_func_powf=yes
20960 else
20961 gcc_cv_math_func_powf=no
20962 fi
20963 rm -f core conftest.err conftest.$ac_objext \
20964 conftest$ac_exeext conftest.$ac_ext
20965 fi
20966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powf" >&5
20967 $as_echo "$gcc_cv_math_func_powf" >&6; }
20968 if test $gcc_cv_math_func_powf = yes; then
20969
20970 cat >>confdefs.h <<_ACEOF
20971 #define HAVE_POWF 1
20972 _ACEOF
20973
20974 fi
20975
20976
20977
20978
20979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow" >&5
20980 $as_echo_n "checking for pow... " >&6; }
20981 if test "${gcc_cv_math_func_pow+set}" = set; then :
20982 $as_echo_n "(cached) " >&6
20983 else
20984 if test x$gcc_no_link = xyes; then
20985 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20986 fi
20987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20988 /* end confdefs.h. */
20989
20990 #ifdef HAVE_COMPLEX_H
20991 #include <complex.h>
20992 #endif
20993 #ifdef HAVE_MATH_H
20994 #include <math.h>
20995 #endif
20996
20997 int (*ptr)() = (int (*)())pow;
20998
20999 int
21000 main ()
21001 {
21002 return 0;
21003 }
21004
21005 _ACEOF
21006 if ac_fn_c_try_link "$LINENO"; then :
21007 gcc_cv_math_func_pow=yes
21008 else
21009 gcc_cv_math_func_pow=no
21010 fi
21011 rm -f core conftest.err conftest.$ac_objext \
21012 conftest$ac_exeext conftest.$ac_ext
21013 fi
21014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_pow" >&5
21015 $as_echo "$gcc_cv_math_func_pow" >&6; }
21016 if test $gcc_cv_math_func_pow = yes; then
21017
21018 cat >>confdefs.h <<_ACEOF
21019 #define HAVE_POW 1
21020 _ACEOF
21021
21022 fi
21023
21024
21025
21026
21027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowf" >&5
21028 $as_echo_n "checking for cpowf... " >&6; }
21029 if test "${gcc_cv_math_func_cpowf+set}" = set; then :
21030 $as_echo_n "(cached) " >&6
21031 else
21032 if test x$gcc_no_link = xyes; then
21033 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21034 fi
21035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21036 /* end confdefs.h. */
21037
21038 #ifdef HAVE_COMPLEX_H
21039 #include <complex.h>
21040 #endif
21041 #ifdef HAVE_MATH_H
21042 #include <math.h>
21043 #endif
21044
21045 int (*ptr)() = (int (*)())cpowf;
21046
21047 int
21048 main ()
21049 {
21050 return 0;
21051 }
21052
21053 _ACEOF
21054 if ac_fn_c_try_link "$LINENO"; then :
21055 gcc_cv_math_func_cpowf=yes
21056 else
21057 gcc_cv_math_func_cpowf=no
21058 fi
21059 rm -f core conftest.err conftest.$ac_objext \
21060 conftest$ac_exeext conftest.$ac_ext
21061 fi
21062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowf" >&5
21063 $as_echo "$gcc_cv_math_func_cpowf" >&6; }
21064 if test $gcc_cv_math_func_cpowf = yes; then
21065
21066 cat >>confdefs.h <<_ACEOF
21067 #define HAVE_CPOWF 1
21068 _ACEOF
21069
21070 fi
21071
21072
21073
21074
21075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpow" >&5
21076 $as_echo_n "checking for cpow... " >&6; }
21077 if test "${gcc_cv_math_func_cpow+set}" = set; then :
21078 $as_echo_n "(cached) " >&6
21079 else
21080 if test x$gcc_no_link = xyes; then
21081 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21082 fi
21083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21084 /* end confdefs.h. */
21085
21086 #ifdef HAVE_COMPLEX_H
21087 #include <complex.h>
21088 #endif
21089 #ifdef HAVE_MATH_H
21090 #include <math.h>
21091 #endif
21092
21093 int (*ptr)() = (int (*)())cpow;
21094
21095 int
21096 main ()
21097 {
21098 return 0;
21099 }
21100
21101 _ACEOF
21102 if ac_fn_c_try_link "$LINENO"; then :
21103 gcc_cv_math_func_cpow=yes
21104 else
21105 gcc_cv_math_func_cpow=no
21106 fi
21107 rm -f core conftest.err conftest.$ac_objext \
21108 conftest$ac_exeext conftest.$ac_ext
21109 fi
21110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpow" >&5
21111 $as_echo "$gcc_cv_math_func_cpow" >&6; }
21112 if test $gcc_cv_math_func_cpow = yes; then
21113
21114 cat >>confdefs.h <<_ACEOF
21115 #define HAVE_CPOW 1
21116 _ACEOF
21117
21118 fi
21119
21120
21121
21122
21123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowl" >&5
21124 $as_echo_n "checking for cpowl... " >&6; }
21125 if test "${gcc_cv_math_func_cpowl+set}" = set; then :
21126 $as_echo_n "(cached) " >&6
21127 else
21128 if test x$gcc_no_link = xyes; then
21129 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21130 fi
21131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21132 /* end confdefs.h. */
21133
21134 #ifdef HAVE_COMPLEX_H
21135 #include <complex.h>
21136 #endif
21137 #ifdef HAVE_MATH_H
21138 #include <math.h>
21139 #endif
21140
21141 int (*ptr)() = (int (*)())cpowl;
21142
21143 int
21144 main ()
21145 {
21146 return 0;
21147 }
21148
21149 _ACEOF
21150 if ac_fn_c_try_link "$LINENO"; then :
21151 gcc_cv_math_func_cpowl=yes
21152 else
21153 gcc_cv_math_func_cpowl=no
21154 fi
21155 rm -f core conftest.err conftest.$ac_objext \
21156 conftest$ac_exeext conftest.$ac_ext
21157 fi
21158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowl" >&5
21159 $as_echo "$gcc_cv_math_func_cpowl" >&6; }
21160 if test $gcc_cv_math_func_cpowl = yes; then
21161
21162 cat >>confdefs.h <<_ACEOF
21163 #define HAVE_CPOWL 1
21164 _ACEOF
21165
21166 fi
21167
21168
21169
21170
21171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundf" >&5
21172 $as_echo_n "checking for roundf... " >&6; }
21173 if test "${gcc_cv_math_func_roundf+set}" = set; then :
21174 $as_echo_n "(cached) " >&6
21175 else
21176 if test x$gcc_no_link = xyes; then
21177 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21178 fi
21179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21180 /* end confdefs.h. */
21181
21182 #ifdef HAVE_COMPLEX_H
21183 #include <complex.h>
21184 #endif
21185 #ifdef HAVE_MATH_H
21186 #include <math.h>
21187 #endif
21188
21189 int (*ptr)() = (int (*)())roundf;
21190
21191 int
21192 main ()
21193 {
21194 return 0;
21195 }
21196
21197 _ACEOF
21198 if ac_fn_c_try_link "$LINENO"; then :
21199 gcc_cv_math_func_roundf=yes
21200 else
21201 gcc_cv_math_func_roundf=no
21202 fi
21203 rm -f core conftest.err conftest.$ac_objext \
21204 conftest$ac_exeext conftest.$ac_ext
21205 fi
21206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundf" >&5
21207 $as_echo "$gcc_cv_math_func_roundf" >&6; }
21208 if test $gcc_cv_math_func_roundf = yes; then
21209
21210 cat >>confdefs.h <<_ACEOF
21211 #define HAVE_ROUNDF 1
21212 _ACEOF
21213
21214 fi
21215
21216
21217
21218
21219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for round" >&5
21220 $as_echo_n "checking for round... " >&6; }
21221 if test "${gcc_cv_math_func_round+set}" = set; then :
21222 $as_echo_n "(cached) " >&6
21223 else
21224 if test x$gcc_no_link = xyes; then
21225 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21226 fi
21227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21228 /* end confdefs.h. */
21229
21230 #ifdef HAVE_COMPLEX_H
21231 #include <complex.h>
21232 #endif
21233 #ifdef HAVE_MATH_H
21234 #include <math.h>
21235 #endif
21236
21237 int (*ptr)() = (int (*)())round;
21238
21239 int
21240 main ()
21241 {
21242 return 0;
21243 }
21244
21245 _ACEOF
21246 if ac_fn_c_try_link "$LINENO"; then :
21247 gcc_cv_math_func_round=yes
21248 else
21249 gcc_cv_math_func_round=no
21250 fi
21251 rm -f core conftest.err conftest.$ac_objext \
21252 conftest$ac_exeext conftest.$ac_ext
21253 fi
21254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_round" >&5
21255 $as_echo "$gcc_cv_math_func_round" >&6; }
21256 if test $gcc_cv_math_func_round = yes; then
21257
21258 cat >>confdefs.h <<_ACEOF
21259 #define HAVE_ROUND 1
21260 _ACEOF
21261
21262 fi
21263
21264
21265
21266
21267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundl" >&5
21268 $as_echo_n "checking for roundl... " >&6; }
21269 if test "${gcc_cv_math_func_roundl+set}" = set; then :
21270 $as_echo_n "(cached) " >&6
21271 else
21272 if test x$gcc_no_link = xyes; then
21273 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21274 fi
21275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21276 /* end confdefs.h. */
21277
21278 #ifdef HAVE_COMPLEX_H
21279 #include <complex.h>
21280 #endif
21281 #ifdef HAVE_MATH_H
21282 #include <math.h>
21283 #endif
21284
21285 int (*ptr)() = (int (*)())roundl;
21286
21287 int
21288 main ()
21289 {
21290 return 0;
21291 }
21292
21293 _ACEOF
21294 if ac_fn_c_try_link "$LINENO"; then :
21295 gcc_cv_math_func_roundl=yes
21296 else
21297 gcc_cv_math_func_roundl=no
21298 fi
21299 rm -f core conftest.err conftest.$ac_objext \
21300 conftest$ac_exeext conftest.$ac_ext
21301 fi
21302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundl" >&5
21303 $as_echo "$gcc_cv_math_func_roundl" >&6; }
21304 if test $gcc_cv_math_func_roundl = yes; then
21305
21306 cat >>confdefs.h <<_ACEOF
21307 #define HAVE_ROUNDL 1
21308 _ACEOF
21309
21310 fi
21311
21312
21313
21314
21315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundf" >&5
21316 $as_echo_n "checking for lroundf... " >&6; }
21317 if test "${gcc_cv_math_func_lroundf+set}" = set; then :
21318 $as_echo_n "(cached) " >&6
21319 else
21320 if test x$gcc_no_link = xyes; then
21321 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21322 fi
21323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21324 /* end confdefs.h. */
21325
21326 #ifdef HAVE_COMPLEX_H
21327 #include <complex.h>
21328 #endif
21329 #ifdef HAVE_MATH_H
21330 #include <math.h>
21331 #endif
21332
21333 int (*ptr)() = (int (*)())lroundf;
21334
21335 int
21336 main ()
21337 {
21338 return 0;
21339 }
21340
21341 _ACEOF
21342 if ac_fn_c_try_link "$LINENO"; then :
21343 gcc_cv_math_func_lroundf=yes
21344 else
21345 gcc_cv_math_func_lroundf=no
21346 fi
21347 rm -f core conftest.err conftest.$ac_objext \
21348 conftest$ac_exeext conftest.$ac_ext
21349 fi
21350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundf" >&5
21351 $as_echo "$gcc_cv_math_func_lroundf" >&6; }
21352 if test $gcc_cv_math_func_lroundf = yes; then
21353
21354 cat >>confdefs.h <<_ACEOF
21355 #define HAVE_LROUNDF 1
21356 _ACEOF
21357
21358 fi
21359
21360
21361
21362
21363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lround" >&5
21364 $as_echo_n "checking for lround... " >&6; }
21365 if test "${gcc_cv_math_func_lround+set}" = set; then :
21366 $as_echo_n "(cached) " >&6
21367 else
21368 if test x$gcc_no_link = xyes; then
21369 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21370 fi
21371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21372 /* end confdefs.h. */
21373
21374 #ifdef HAVE_COMPLEX_H
21375 #include <complex.h>
21376 #endif
21377 #ifdef HAVE_MATH_H
21378 #include <math.h>
21379 #endif
21380
21381 int (*ptr)() = (int (*)())lround;
21382
21383 int
21384 main ()
21385 {
21386 return 0;
21387 }
21388
21389 _ACEOF
21390 if ac_fn_c_try_link "$LINENO"; then :
21391 gcc_cv_math_func_lround=yes
21392 else
21393 gcc_cv_math_func_lround=no
21394 fi
21395 rm -f core conftest.err conftest.$ac_objext \
21396 conftest$ac_exeext conftest.$ac_ext
21397 fi
21398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lround" >&5
21399 $as_echo "$gcc_cv_math_func_lround" >&6; }
21400 if test $gcc_cv_math_func_lround = yes; then
21401
21402 cat >>confdefs.h <<_ACEOF
21403 #define HAVE_LROUND 1
21404 _ACEOF
21405
21406 fi
21407
21408
21409
21410
21411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundl" >&5
21412 $as_echo_n "checking for lroundl... " >&6; }
21413 if test "${gcc_cv_math_func_lroundl+set}" = set; then :
21414 $as_echo_n "(cached) " >&6
21415 else
21416 if test x$gcc_no_link = xyes; then
21417 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21418 fi
21419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21420 /* end confdefs.h. */
21421
21422 #ifdef HAVE_COMPLEX_H
21423 #include <complex.h>
21424 #endif
21425 #ifdef HAVE_MATH_H
21426 #include <math.h>
21427 #endif
21428
21429 int (*ptr)() = (int (*)())lroundl;
21430
21431 int
21432 main ()
21433 {
21434 return 0;
21435 }
21436
21437 _ACEOF
21438 if ac_fn_c_try_link "$LINENO"; then :
21439 gcc_cv_math_func_lroundl=yes
21440 else
21441 gcc_cv_math_func_lroundl=no
21442 fi
21443 rm -f core conftest.err conftest.$ac_objext \
21444 conftest$ac_exeext conftest.$ac_ext
21445 fi
21446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundl" >&5
21447 $as_echo "$gcc_cv_math_func_lroundl" >&6; }
21448 if test $gcc_cv_math_func_lroundl = yes; then
21449
21450 cat >>confdefs.h <<_ACEOF
21451 #define HAVE_LROUNDL 1
21452 _ACEOF
21453
21454 fi
21455
21456
21457
21458
21459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundf" >&5
21460 $as_echo_n "checking for llroundf... " >&6; }
21461 if test "${gcc_cv_math_func_llroundf+set}" = set; then :
21462 $as_echo_n "(cached) " >&6
21463 else
21464 if test x$gcc_no_link = xyes; then
21465 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21466 fi
21467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21468 /* end confdefs.h. */
21469
21470 #ifdef HAVE_COMPLEX_H
21471 #include <complex.h>
21472 #endif
21473 #ifdef HAVE_MATH_H
21474 #include <math.h>
21475 #endif
21476
21477 int (*ptr)() = (int (*)())llroundf;
21478
21479 int
21480 main ()
21481 {
21482 return 0;
21483 }
21484
21485 _ACEOF
21486 if ac_fn_c_try_link "$LINENO"; then :
21487 gcc_cv_math_func_llroundf=yes
21488 else
21489 gcc_cv_math_func_llroundf=no
21490 fi
21491 rm -f core conftest.err conftest.$ac_objext \
21492 conftest$ac_exeext conftest.$ac_ext
21493 fi
21494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundf" >&5
21495 $as_echo "$gcc_cv_math_func_llroundf" >&6; }
21496 if test $gcc_cv_math_func_llroundf = yes; then
21497
21498 cat >>confdefs.h <<_ACEOF
21499 #define HAVE_LLROUNDF 1
21500 _ACEOF
21501
21502 fi
21503
21504
21505
21506
21507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llround" >&5
21508 $as_echo_n "checking for llround... " >&6; }
21509 if test "${gcc_cv_math_func_llround+set}" = set; then :
21510 $as_echo_n "(cached) " >&6
21511 else
21512 if test x$gcc_no_link = xyes; then
21513 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21514 fi
21515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21516 /* end confdefs.h. */
21517
21518 #ifdef HAVE_COMPLEX_H
21519 #include <complex.h>
21520 #endif
21521 #ifdef HAVE_MATH_H
21522 #include <math.h>
21523 #endif
21524
21525 int (*ptr)() = (int (*)())llround;
21526
21527 int
21528 main ()
21529 {
21530 return 0;
21531 }
21532
21533 _ACEOF
21534 if ac_fn_c_try_link "$LINENO"; then :
21535 gcc_cv_math_func_llround=yes
21536 else
21537 gcc_cv_math_func_llround=no
21538 fi
21539 rm -f core conftest.err conftest.$ac_objext \
21540 conftest$ac_exeext conftest.$ac_ext
21541 fi
21542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llround" >&5
21543 $as_echo "$gcc_cv_math_func_llround" >&6; }
21544 if test $gcc_cv_math_func_llround = yes; then
21545
21546 cat >>confdefs.h <<_ACEOF
21547 #define HAVE_LLROUND 1
21548 _ACEOF
21549
21550 fi
21551
21552
21553
21554
21555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundl" >&5
21556 $as_echo_n "checking for llroundl... " >&6; }
21557 if test "${gcc_cv_math_func_llroundl+set}" = set; then :
21558 $as_echo_n "(cached) " >&6
21559 else
21560 if test x$gcc_no_link = xyes; then
21561 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21562 fi
21563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21564 /* end confdefs.h. */
21565
21566 #ifdef HAVE_COMPLEX_H
21567 #include <complex.h>
21568 #endif
21569 #ifdef HAVE_MATH_H
21570 #include <math.h>
21571 #endif
21572
21573 int (*ptr)() = (int (*)())llroundl;
21574
21575 int
21576 main ()
21577 {
21578 return 0;
21579 }
21580
21581 _ACEOF
21582 if ac_fn_c_try_link "$LINENO"; then :
21583 gcc_cv_math_func_llroundl=yes
21584 else
21585 gcc_cv_math_func_llroundl=no
21586 fi
21587 rm -f core conftest.err conftest.$ac_objext \
21588 conftest$ac_exeext conftest.$ac_ext
21589 fi
21590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundl" >&5
21591 $as_echo "$gcc_cv_math_func_llroundl" >&6; }
21592 if test $gcc_cv_math_func_llroundl = yes; then
21593
21594 cat >>confdefs.h <<_ACEOF
21595 #define HAVE_LLROUNDL 1
21596 _ACEOF
21597
21598 fi
21599
21600
21601
21602
21603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnf" >&5
21604 $as_echo_n "checking for scalbnf... " >&6; }
21605 if test "${gcc_cv_math_func_scalbnf+set}" = set; then :
21606 $as_echo_n "(cached) " >&6
21607 else
21608 if test x$gcc_no_link = xyes; then
21609 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21610 fi
21611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21612 /* end confdefs.h. */
21613
21614 #ifdef HAVE_COMPLEX_H
21615 #include <complex.h>
21616 #endif
21617 #ifdef HAVE_MATH_H
21618 #include <math.h>
21619 #endif
21620
21621 int (*ptr)() = (int (*)())scalbnf;
21622
21623 int
21624 main ()
21625 {
21626 return 0;
21627 }
21628
21629 _ACEOF
21630 if ac_fn_c_try_link "$LINENO"; then :
21631 gcc_cv_math_func_scalbnf=yes
21632 else
21633 gcc_cv_math_func_scalbnf=no
21634 fi
21635 rm -f core conftest.err conftest.$ac_objext \
21636 conftest$ac_exeext conftest.$ac_ext
21637 fi
21638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnf" >&5
21639 $as_echo "$gcc_cv_math_func_scalbnf" >&6; }
21640 if test $gcc_cv_math_func_scalbnf = yes; then
21641
21642 cat >>confdefs.h <<_ACEOF
21643 #define HAVE_SCALBNF 1
21644 _ACEOF
21645
21646 fi
21647
21648
21649
21650
21651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbn" >&5
21652 $as_echo_n "checking for scalbn... " >&6; }
21653 if test "${gcc_cv_math_func_scalbn+set}" = set; then :
21654 $as_echo_n "(cached) " >&6
21655 else
21656 if test x$gcc_no_link = xyes; then
21657 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21658 fi
21659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21660 /* end confdefs.h. */
21661
21662 #ifdef HAVE_COMPLEX_H
21663 #include <complex.h>
21664 #endif
21665 #ifdef HAVE_MATH_H
21666 #include <math.h>
21667 #endif
21668
21669 int (*ptr)() = (int (*)())scalbn;
21670
21671 int
21672 main ()
21673 {
21674 return 0;
21675 }
21676
21677 _ACEOF
21678 if ac_fn_c_try_link "$LINENO"; then :
21679 gcc_cv_math_func_scalbn=yes
21680 else
21681 gcc_cv_math_func_scalbn=no
21682 fi
21683 rm -f core conftest.err conftest.$ac_objext \
21684 conftest$ac_exeext conftest.$ac_ext
21685 fi
21686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbn" >&5
21687 $as_echo "$gcc_cv_math_func_scalbn" >&6; }
21688 if test $gcc_cv_math_func_scalbn = yes; then
21689
21690 cat >>confdefs.h <<_ACEOF
21691 #define HAVE_SCALBN 1
21692 _ACEOF
21693
21694 fi
21695
21696
21697
21698
21699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnl" >&5
21700 $as_echo_n "checking for scalbnl... " >&6; }
21701 if test "${gcc_cv_math_func_scalbnl+set}" = set; then :
21702 $as_echo_n "(cached) " >&6
21703 else
21704 if test x$gcc_no_link = xyes; then
21705 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21706 fi
21707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21708 /* end confdefs.h. */
21709
21710 #ifdef HAVE_COMPLEX_H
21711 #include <complex.h>
21712 #endif
21713 #ifdef HAVE_MATH_H
21714 #include <math.h>
21715 #endif
21716
21717 int (*ptr)() = (int (*)())scalbnl;
21718
21719 int
21720 main ()
21721 {
21722 return 0;
21723 }
21724
21725 _ACEOF
21726 if ac_fn_c_try_link "$LINENO"; then :
21727 gcc_cv_math_func_scalbnl=yes
21728 else
21729 gcc_cv_math_func_scalbnl=no
21730 fi
21731 rm -f core conftest.err conftest.$ac_objext \
21732 conftest$ac_exeext conftest.$ac_ext
21733 fi
21734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnl" >&5
21735 $as_echo "$gcc_cv_math_func_scalbnl" >&6; }
21736 if test $gcc_cv_math_func_scalbnl = yes; then
21737
21738 cat >>confdefs.h <<_ACEOF
21739 #define HAVE_SCALBNL 1
21740 _ACEOF
21741
21742 fi
21743
21744
21745
21746
21747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinf" >&5
21748 $as_echo_n "checking for sinf... " >&6; }
21749 if test "${gcc_cv_math_func_sinf+set}" = set; then :
21750 $as_echo_n "(cached) " >&6
21751 else
21752 if test x$gcc_no_link = xyes; then
21753 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21754 fi
21755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21756 /* end confdefs.h. */
21757
21758 #ifdef HAVE_COMPLEX_H
21759 #include <complex.h>
21760 #endif
21761 #ifdef HAVE_MATH_H
21762 #include <math.h>
21763 #endif
21764
21765 int (*ptr)() = (int (*)())sinf;
21766
21767 int
21768 main ()
21769 {
21770 return 0;
21771 }
21772
21773 _ACEOF
21774 if ac_fn_c_try_link "$LINENO"; then :
21775 gcc_cv_math_func_sinf=yes
21776 else
21777 gcc_cv_math_func_sinf=no
21778 fi
21779 rm -f core conftest.err conftest.$ac_objext \
21780 conftest$ac_exeext conftest.$ac_ext
21781 fi
21782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinf" >&5
21783 $as_echo "$gcc_cv_math_func_sinf" >&6; }
21784 if test $gcc_cv_math_func_sinf = yes; then
21785
21786 cat >>confdefs.h <<_ACEOF
21787 #define HAVE_SINF 1
21788 _ACEOF
21789
21790 fi
21791
21792
21793
21794
21795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin" >&5
21796 $as_echo_n "checking for sin... " >&6; }
21797 if test "${gcc_cv_math_func_sin+set}" = set; then :
21798 $as_echo_n "(cached) " >&6
21799 else
21800 if test x$gcc_no_link = xyes; then
21801 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21802 fi
21803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21804 /* end confdefs.h. */
21805
21806 #ifdef HAVE_COMPLEX_H
21807 #include <complex.h>
21808 #endif
21809 #ifdef HAVE_MATH_H
21810 #include <math.h>
21811 #endif
21812
21813 int (*ptr)() = (int (*)())sin;
21814
21815 int
21816 main ()
21817 {
21818 return 0;
21819 }
21820
21821 _ACEOF
21822 if ac_fn_c_try_link "$LINENO"; then :
21823 gcc_cv_math_func_sin=yes
21824 else
21825 gcc_cv_math_func_sin=no
21826 fi
21827 rm -f core conftest.err conftest.$ac_objext \
21828 conftest$ac_exeext conftest.$ac_ext
21829 fi
21830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sin" >&5
21831 $as_echo "$gcc_cv_math_func_sin" >&6; }
21832 if test $gcc_cv_math_func_sin = yes; then
21833
21834 cat >>confdefs.h <<_ACEOF
21835 #define HAVE_SIN 1
21836 _ACEOF
21837
21838 fi
21839
21840
21841
21842
21843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinl" >&5
21844 $as_echo_n "checking for sinl... " >&6; }
21845 if test "${gcc_cv_math_func_sinl+set}" = set; then :
21846 $as_echo_n "(cached) " >&6
21847 else
21848 if test x$gcc_no_link = xyes; then
21849 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21850 fi
21851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21852 /* end confdefs.h. */
21853
21854 #ifdef HAVE_COMPLEX_H
21855 #include <complex.h>
21856 #endif
21857 #ifdef HAVE_MATH_H
21858 #include <math.h>
21859 #endif
21860
21861 int (*ptr)() = (int (*)())sinl;
21862
21863 int
21864 main ()
21865 {
21866 return 0;
21867 }
21868
21869 _ACEOF
21870 if ac_fn_c_try_link "$LINENO"; then :
21871 gcc_cv_math_func_sinl=yes
21872 else
21873 gcc_cv_math_func_sinl=no
21874 fi
21875 rm -f core conftest.err conftest.$ac_objext \
21876 conftest$ac_exeext conftest.$ac_ext
21877 fi
21878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinl" >&5
21879 $as_echo "$gcc_cv_math_func_sinl" >&6; }
21880 if test $gcc_cv_math_func_sinl = yes; then
21881
21882 cat >>confdefs.h <<_ACEOF
21883 #define HAVE_SINL 1
21884 _ACEOF
21885
21886 fi
21887
21888
21889
21890
21891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinf" >&5
21892 $as_echo_n "checking for csinf... " >&6; }
21893 if test "${gcc_cv_math_func_csinf+set}" = set; then :
21894 $as_echo_n "(cached) " >&6
21895 else
21896 if test x$gcc_no_link = xyes; then
21897 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21898 fi
21899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21900 /* end confdefs.h. */
21901
21902 #ifdef HAVE_COMPLEX_H
21903 #include <complex.h>
21904 #endif
21905 #ifdef HAVE_MATH_H
21906 #include <math.h>
21907 #endif
21908
21909 int (*ptr)() = (int (*)())csinf;
21910
21911 int
21912 main ()
21913 {
21914 return 0;
21915 }
21916
21917 _ACEOF
21918 if ac_fn_c_try_link "$LINENO"; then :
21919 gcc_cv_math_func_csinf=yes
21920 else
21921 gcc_cv_math_func_csinf=no
21922 fi
21923 rm -f core conftest.err conftest.$ac_objext \
21924 conftest$ac_exeext conftest.$ac_ext
21925 fi
21926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinf" >&5
21927 $as_echo "$gcc_cv_math_func_csinf" >&6; }
21928 if test $gcc_cv_math_func_csinf = yes; then
21929
21930 cat >>confdefs.h <<_ACEOF
21931 #define HAVE_CSINF 1
21932 _ACEOF
21933
21934 fi
21935
21936
21937
21938
21939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csin" >&5
21940 $as_echo_n "checking for csin... " >&6; }
21941 if test "${gcc_cv_math_func_csin+set}" = set; then :
21942 $as_echo_n "(cached) " >&6
21943 else
21944 if test x$gcc_no_link = xyes; then
21945 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21946 fi
21947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21948 /* end confdefs.h. */
21949
21950 #ifdef HAVE_COMPLEX_H
21951 #include <complex.h>
21952 #endif
21953 #ifdef HAVE_MATH_H
21954 #include <math.h>
21955 #endif
21956
21957 int (*ptr)() = (int (*)())csin;
21958
21959 int
21960 main ()
21961 {
21962 return 0;
21963 }
21964
21965 _ACEOF
21966 if ac_fn_c_try_link "$LINENO"; then :
21967 gcc_cv_math_func_csin=yes
21968 else
21969 gcc_cv_math_func_csin=no
21970 fi
21971 rm -f core conftest.err conftest.$ac_objext \
21972 conftest$ac_exeext conftest.$ac_ext
21973 fi
21974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csin" >&5
21975 $as_echo "$gcc_cv_math_func_csin" >&6; }
21976 if test $gcc_cv_math_func_csin = yes; then
21977
21978 cat >>confdefs.h <<_ACEOF
21979 #define HAVE_CSIN 1
21980 _ACEOF
21981
21982 fi
21983
21984
21985
21986
21987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinl" >&5
21988 $as_echo_n "checking for csinl... " >&6; }
21989 if test "${gcc_cv_math_func_csinl+set}" = set; then :
21990 $as_echo_n "(cached) " >&6
21991 else
21992 if test x$gcc_no_link = xyes; then
21993 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21994 fi
21995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21996 /* end confdefs.h. */
21997
21998 #ifdef HAVE_COMPLEX_H
21999 #include <complex.h>
22000 #endif
22001 #ifdef HAVE_MATH_H
22002 #include <math.h>
22003 #endif
22004
22005 int (*ptr)() = (int (*)())csinl;
22006
22007 int
22008 main ()
22009 {
22010 return 0;
22011 }
22012
22013 _ACEOF
22014 if ac_fn_c_try_link "$LINENO"; then :
22015 gcc_cv_math_func_csinl=yes
22016 else
22017 gcc_cv_math_func_csinl=no
22018 fi
22019 rm -f core conftest.err conftest.$ac_objext \
22020 conftest$ac_exeext conftest.$ac_ext
22021 fi
22022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinl" >&5
22023 $as_echo "$gcc_cv_math_func_csinl" >&6; }
22024 if test $gcc_cv_math_func_csinl = yes; then
22025
22026 cat >>confdefs.h <<_ACEOF
22027 #define HAVE_CSINL 1
22028 _ACEOF
22029
22030 fi
22031
22032
22033
22034
22035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhf" >&5
22036 $as_echo_n "checking for sinhf... " >&6; }
22037 if test "${gcc_cv_math_func_sinhf+set}" = set; then :
22038 $as_echo_n "(cached) " >&6
22039 else
22040 if test x$gcc_no_link = xyes; then
22041 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22042 fi
22043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22044 /* end confdefs.h. */
22045
22046 #ifdef HAVE_COMPLEX_H
22047 #include <complex.h>
22048 #endif
22049 #ifdef HAVE_MATH_H
22050 #include <math.h>
22051 #endif
22052
22053 int (*ptr)() = (int (*)())sinhf;
22054
22055 int
22056 main ()
22057 {
22058 return 0;
22059 }
22060
22061 _ACEOF
22062 if ac_fn_c_try_link "$LINENO"; then :
22063 gcc_cv_math_func_sinhf=yes
22064 else
22065 gcc_cv_math_func_sinhf=no
22066 fi
22067 rm -f core conftest.err conftest.$ac_objext \
22068 conftest$ac_exeext conftest.$ac_ext
22069 fi
22070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhf" >&5
22071 $as_echo "$gcc_cv_math_func_sinhf" >&6; }
22072 if test $gcc_cv_math_func_sinhf = yes; then
22073
22074 cat >>confdefs.h <<_ACEOF
22075 #define HAVE_SINHF 1
22076 _ACEOF
22077
22078 fi
22079
22080
22081
22082
22083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinh" >&5
22084 $as_echo_n "checking for sinh... " >&6; }
22085 if test "${gcc_cv_math_func_sinh+set}" = set; then :
22086 $as_echo_n "(cached) " >&6
22087 else
22088 if test x$gcc_no_link = xyes; then
22089 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22090 fi
22091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22092 /* end confdefs.h. */
22093
22094 #ifdef HAVE_COMPLEX_H
22095 #include <complex.h>
22096 #endif
22097 #ifdef HAVE_MATH_H
22098 #include <math.h>
22099 #endif
22100
22101 int (*ptr)() = (int (*)())sinh;
22102
22103 int
22104 main ()
22105 {
22106 return 0;
22107 }
22108
22109 _ACEOF
22110 if ac_fn_c_try_link "$LINENO"; then :
22111 gcc_cv_math_func_sinh=yes
22112 else
22113 gcc_cv_math_func_sinh=no
22114 fi
22115 rm -f core conftest.err conftest.$ac_objext \
22116 conftest$ac_exeext conftest.$ac_ext
22117 fi
22118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinh" >&5
22119 $as_echo "$gcc_cv_math_func_sinh" >&6; }
22120 if test $gcc_cv_math_func_sinh = yes; then
22121
22122 cat >>confdefs.h <<_ACEOF
22123 #define HAVE_SINH 1
22124 _ACEOF
22125
22126 fi
22127
22128
22129
22130
22131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhl" >&5
22132 $as_echo_n "checking for sinhl... " >&6; }
22133 if test "${gcc_cv_math_func_sinhl+set}" = set; then :
22134 $as_echo_n "(cached) " >&6
22135 else
22136 if test x$gcc_no_link = xyes; then
22137 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22138 fi
22139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22140 /* end confdefs.h. */
22141
22142 #ifdef HAVE_COMPLEX_H
22143 #include <complex.h>
22144 #endif
22145 #ifdef HAVE_MATH_H
22146 #include <math.h>
22147 #endif
22148
22149 int (*ptr)() = (int (*)())sinhl;
22150
22151 int
22152 main ()
22153 {
22154 return 0;
22155 }
22156
22157 _ACEOF
22158 if ac_fn_c_try_link "$LINENO"; then :
22159 gcc_cv_math_func_sinhl=yes
22160 else
22161 gcc_cv_math_func_sinhl=no
22162 fi
22163 rm -f core conftest.err conftest.$ac_objext \
22164 conftest$ac_exeext conftest.$ac_ext
22165 fi
22166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhl" >&5
22167 $as_echo "$gcc_cv_math_func_sinhl" >&6; }
22168 if test $gcc_cv_math_func_sinhl = yes; then
22169
22170 cat >>confdefs.h <<_ACEOF
22171 #define HAVE_SINHL 1
22172 _ACEOF
22173
22174 fi
22175
22176
22177
22178
22179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhf" >&5
22180 $as_echo_n "checking for csinhf... " >&6; }
22181 if test "${gcc_cv_math_func_csinhf+set}" = set; then :
22182 $as_echo_n "(cached) " >&6
22183 else
22184 if test x$gcc_no_link = xyes; then
22185 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22186 fi
22187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22188 /* end confdefs.h. */
22189
22190 #ifdef HAVE_COMPLEX_H
22191 #include <complex.h>
22192 #endif
22193 #ifdef HAVE_MATH_H
22194 #include <math.h>
22195 #endif
22196
22197 int (*ptr)() = (int (*)())csinhf;
22198
22199 int
22200 main ()
22201 {
22202 return 0;
22203 }
22204
22205 _ACEOF
22206 if ac_fn_c_try_link "$LINENO"; then :
22207 gcc_cv_math_func_csinhf=yes
22208 else
22209 gcc_cv_math_func_csinhf=no
22210 fi
22211 rm -f core conftest.err conftest.$ac_objext \
22212 conftest$ac_exeext conftest.$ac_ext
22213 fi
22214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhf" >&5
22215 $as_echo "$gcc_cv_math_func_csinhf" >&6; }
22216 if test $gcc_cv_math_func_csinhf = yes; then
22217
22218 cat >>confdefs.h <<_ACEOF
22219 #define HAVE_CSINHF 1
22220 _ACEOF
22221
22222 fi
22223
22224
22225
22226
22227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinh" >&5
22228 $as_echo_n "checking for csinh... " >&6; }
22229 if test "${gcc_cv_math_func_csinh+set}" = set; then :
22230 $as_echo_n "(cached) " >&6
22231 else
22232 if test x$gcc_no_link = xyes; then
22233 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22234 fi
22235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22236 /* end confdefs.h. */
22237
22238 #ifdef HAVE_COMPLEX_H
22239 #include <complex.h>
22240 #endif
22241 #ifdef HAVE_MATH_H
22242 #include <math.h>
22243 #endif
22244
22245 int (*ptr)() = (int (*)())csinh;
22246
22247 int
22248 main ()
22249 {
22250 return 0;
22251 }
22252
22253 _ACEOF
22254 if ac_fn_c_try_link "$LINENO"; then :
22255 gcc_cv_math_func_csinh=yes
22256 else
22257 gcc_cv_math_func_csinh=no
22258 fi
22259 rm -f core conftest.err conftest.$ac_objext \
22260 conftest$ac_exeext conftest.$ac_ext
22261 fi
22262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinh" >&5
22263 $as_echo "$gcc_cv_math_func_csinh" >&6; }
22264 if test $gcc_cv_math_func_csinh = yes; then
22265
22266 cat >>confdefs.h <<_ACEOF
22267 #define HAVE_CSINH 1
22268 _ACEOF
22269
22270 fi
22271
22272
22273
22274
22275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhl" >&5
22276 $as_echo_n "checking for csinhl... " >&6; }
22277 if test "${gcc_cv_math_func_csinhl+set}" = set; then :
22278 $as_echo_n "(cached) " >&6
22279 else
22280 if test x$gcc_no_link = xyes; then
22281 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22282 fi
22283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22284 /* end confdefs.h. */
22285
22286 #ifdef HAVE_COMPLEX_H
22287 #include <complex.h>
22288 #endif
22289 #ifdef HAVE_MATH_H
22290 #include <math.h>
22291 #endif
22292
22293 int (*ptr)() = (int (*)())csinhl;
22294
22295 int
22296 main ()
22297 {
22298 return 0;
22299 }
22300
22301 _ACEOF
22302 if ac_fn_c_try_link "$LINENO"; then :
22303 gcc_cv_math_func_csinhl=yes
22304 else
22305 gcc_cv_math_func_csinhl=no
22306 fi
22307 rm -f core conftest.err conftest.$ac_objext \
22308 conftest$ac_exeext conftest.$ac_ext
22309 fi
22310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhl" >&5
22311 $as_echo "$gcc_cv_math_func_csinhl" >&6; }
22312 if test $gcc_cv_math_func_csinhl = yes; then
22313
22314 cat >>confdefs.h <<_ACEOF
22315 #define HAVE_CSINHL 1
22316 _ACEOF
22317
22318 fi
22319
22320
22321
22322
22323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf" >&5
22324 $as_echo_n "checking for sqrtf... " >&6; }
22325 if test "${gcc_cv_math_func_sqrtf+set}" = set; then :
22326 $as_echo_n "(cached) " >&6
22327 else
22328 if test x$gcc_no_link = xyes; then
22329 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22330 fi
22331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22332 /* end confdefs.h. */
22333
22334 #ifdef HAVE_COMPLEX_H
22335 #include <complex.h>
22336 #endif
22337 #ifdef HAVE_MATH_H
22338 #include <math.h>
22339 #endif
22340
22341 int (*ptr)() = (int (*)())sqrtf;
22342
22343 int
22344 main ()
22345 {
22346 return 0;
22347 }
22348
22349 _ACEOF
22350 if ac_fn_c_try_link "$LINENO"; then :
22351 gcc_cv_math_func_sqrtf=yes
22352 else
22353 gcc_cv_math_func_sqrtf=no
22354 fi
22355 rm -f core conftest.err conftest.$ac_objext \
22356 conftest$ac_exeext conftest.$ac_ext
22357 fi
22358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtf" >&5
22359 $as_echo "$gcc_cv_math_func_sqrtf" >&6; }
22360 if test $gcc_cv_math_func_sqrtf = yes; then
22361
22362 cat >>confdefs.h <<_ACEOF
22363 #define HAVE_SQRTF 1
22364 _ACEOF
22365
22366 fi
22367
22368
22369
22370
22371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt" >&5
22372 $as_echo_n "checking for sqrt... " >&6; }
22373 if test "${gcc_cv_math_func_sqrt+set}" = set; then :
22374 $as_echo_n "(cached) " >&6
22375 else
22376 if test x$gcc_no_link = xyes; then
22377 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22378 fi
22379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22380 /* end confdefs.h. */
22381
22382 #ifdef HAVE_COMPLEX_H
22383 #include <complex.h>
22384 #endif
22385 #ifdef HAVE_MATH_H
22386 #include <math.h>
22387 #endif
22388
22389 int (*ptr)() = (int (*)())sqrt;
22390
22391 int
22392 main ()
22393 {
22394 return 0;
22395 }
22396
22397 _ACEOF
22398 if ac_fn_c_try_link "$LINENO"; then :
22399 gcc_cv_math_func_sqrt=yes
22400 else
22401 gcc_cv_math_func_sqrt=no
22402 fi
22403 rm -f core conftest.err conftest.$ac_objext \
22404 conftest$ac_exeext conftest.$ac_ext
22405 fi
22406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrt" >&5
22407 $as_echo "$gcc_cv_math_func_sqrt" >&6; }
22408 if test $gcc_cv_math_func_sqrt = yes; then
22409
22410 cat >>confdefs.h <<_ACEOF
22411 #define HAVE_SQRT 1
22412 _ACEOF
22413
22414 fi
22415
22416
22417
22418
22419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl" >&5
22420 $as_echo_n "checking for sqrtl... " >&6; }
22421 if test "${gcc_cv_math_func_sqrtl+set}" = set; then :
22422 $as_echo_n "(cached) " >&6
22423 else
22424 if test x$gcc_no_link = xyes; then
22425 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22426 fi
22427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22428 /* end confdefs.h. */
22429
22430 #ifdef HAVE_COMPLEX_H
22431 #include <complex.h>
22432 #endif
22433 #ifdef HAVE_MATH_H
22434 #include <math.h>
22435 #endif
22436
22437 int (*ptr)() = (int (*)())sqrtl;
22438
22439 int
22440 main ()
22441 {
22442 return 0;
22443 }
22444
22445 _ACEOF
22446 if ac_fn_c_try_link "$LINENO"; then :
22447 gcc_cv_math_func_sqrtl=yes
22448 else
22449 gcc_cv_math_func_sqrtl=no
22450 fi
22451 rm -f core conftest.err conftest.$ac_objext \
22452 conftest$ac_exeext conftest.$ac_ext
22453 fi
22454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtl" >&5
22455 $as_echo "$gcc_cv_math_func_sqrtl" >&6; }
22456 if test $gcc_cv_math_func_sqrtl = yes; then
22457
22458 cat >>confdefs.h <<_ACEOF
22459 #define HAVE_SQRTL 1
22460 _ACEOF
22461
22462 fi
22463
22464
22465
22466
22467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtf" >&5
22468 $as_echo_n "checking for csqrtf... " >&6; }
22469 if test "${gcc_cv_math_func_csqrtf+set}" = set; then :
22470 $as_echo_n "(cached) " >&6
22471 else
22472 if test x$gcc_no_link = xyes; then
22473 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22474 fi
22475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22476 /* end confdefs.h. */
22477
22478 #ifdef HAVE_COMPLEX_H
22479 #include <complex.h>
22480 #endif
22481 #ifdef HAVE_MATH_H
22482 #include <math.h>
22483 #endif
22484
22485 int (*ptr)() = (int (*)())csqrtf;
22486
22487 int
22488 main ()
22489 {
22490 return 0;
22491 }
22492
22493 _ACEOF
22494 if ac_fn_c_try_link "$LINENO"; then :
22495 gcc_cv_math_func_csqrtf=yes
22496 else
22497 gcc_cv_math_func_csqrtf=no
22498 fi
22499 rm -f core conftest.err conftest.$ac_objext \
22500 conftest$ac_exeext conftest.$ac_ext
22501 fi
22502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtf" >&5
22503 $as_echo "$gcc_cv_math_func_csqrtf" >&6; }
22504 if test $gcc_cv_math_func_csqrtf = yes; then
22505
22506 cat >>confdefs.h <<_ACEOF
22507 #define HAVE_CSQRTF 1
22508 _ACEOF
22509
22510 fi
22511
22512
22513
22514
22515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrt" >&5
22516 $as_echo_n "checking for csqrt... " >&6; }
22517 if test "${gcc_cv_math_func_csqrt+set}" = set; then :
22518 $as_echo_n "(cached) " >&6
22519 else
22520 if test x$gcc_no_link = xyes; then
22521 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22522 fi
22523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22524 /* end confdefs.h. */
22525
22526 #ifdef HAVE_COMPLEX_H
22527 #include <complex.h>
22528 #endif
22529 #ifdef HAVE_MATH_H
22530 #include <math.h>
22531 #endif
22532
22533 int (*ptr)() = (int (*)())csqrt;
22534
22535 int
22536 main ()
22537 {
22538 return 0;
22539 }
22540
22541 _ACEOF
22542 if ac_fn_c_try_link "$LINENO"; then :
22543 gcc_cv_math_func_csqrt=yes
22544 else
22545 gcc_cv_math_func_csqrt=no
22546 fi
22547 rm -f core conftest.err conftest.$ac_objext \
22548 conftest$ac_exeext conftest.$ac_ext
22549 fi
22550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrt" >&5
22551 $as_echo "$gcc_cv_math_func_csqrt" >&6; }
22552 if test $gcc_cv_math_func_csqrt = yes; then
22553
22554 cat >>confdefs.h <<_ACEOF
22555 #define HAVE_CSQRT 1
22556 _ACEOF
22557
22558 fi
22559
22560
22561
22562
22563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtl" >&5
22564 $as_echo_n "checking for csqrtl... " >&6; }
22565 if test "${gcc_cv_math_func_csqrtl+set}" = set; then :
22566 $as_echo_n "(cached) " >&6
22567 else
22568 if test x$gcc_no_link = xyes; then
22569 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22570 fi
22571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22572 /* end confdefs.h. */
22573
22574 #ifdef HAVE_COMPLEX_H
22575 #include <complex.h>
22576 #endif
22577 #ifdef HAVE_MATH_H
22578 #include <math.h>
22579 #endif
22580
22581 int (*ptr)() = (int (*)())csqrtl;
22582
22583 int
22584 main ()
22585 {
22586 return 0;
22587 }
22588
22589 _ACEOF
22590 if ac_fn_c_try_link "$LINENO"; then :
22591 gcc_cv_math_func_csqrtl=yes
22592 else
22593 gcc_cv_math_func_csqrtl=no
22594 fi
22595 rm -f core conftest.err conftest.$ac_objext \
22596 conftest$ac_exeext conftest.$ac_ext
22597 fi
22598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtl" >&5
22599 $as_echo "$gcc_cv_math_func_csqrtl" >&6; }
22600 if test $gcc_cv_math_func_csqrtl = yes; then
22601
22602 cat >>confdefs.h <<_ACEOF
22603 #define HAVE_CSQRTL 1
22604 _ACEOF
22605
22606 fi
22607
22608
22609
22610
22611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanf" >&5
22612 $as_echo_n "checking for tanf... " >&6; }
22613 if test "${gcc_cv_math_func_tanf+set}" = set; then :
22614 $as_echo_n "(cached) " >&6
22615 else
22616 if test x$gcc_no_link = xyes; then
22617 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22618 fi
22619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22620 /* end confdefs.h. */
22621
22622 #ifdef HAVE_COMPLEX_H
22623 #include <complex.h>
22624 #endif
22625 #ifdef HAVE_MATH_H
22626 #include <math.h>
22627 #endif
22628
22629 int (*ptr)() = (int (*)())tanf;
22630
22631 int
22632 main ()
22633 {
22634 return 0;
22635 }
22636
22637 _ACEOF
22638 if ac_fn_c_try_link "$LINENO"; then :
22639 gcc_cv_math_func_tanf=yes
22640 else
22641 gcc_cv_math_func_tanf=no
22642 fi
22643 rm -f core conftest.err conftest.$ac_objext \
22644 conftest$ac_exeext conftest.$ac_ext
22645 fi
22646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanf" >&5
22647 $as_echo "$gcc_cv_math_func_tanf" >&6; }
22648 if test $gcc_cv_math_func_tanf = yes; then
22649
22650 cat >>confdefs.h <<_ACEOF
22651 #define HAVE_TANF 1
22652 _ACEOF
22653
22654 fi
22655
22656
22657
22658
22659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tan" >&5
22660 $as_echo_n "checking for tan... " >&6; }
22661 if test "${gcc_cv_math_func_tan+set}" = set; then :
22662 $as_echo_n "(cached) " >&6
22663 else
22664 if test x$gcc_no_link = xyes; then
22665 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22666 fi
22667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22668 /* end confdefs.h. */
22669
22670 #ifdef HAVE_COMPLEX_H
22671 #include <complex.h>
22672 #endif
22673 #ifdef HAVE_MATH_H
22674 #include <math.h>
22675 #endif
22676
22677 int (*ptr)() = (int (*)())tan;
22678
22679 int
22680 main ()
22681 {
22682 return 0;
22683 }
22684
22685 _ACEOF
22686 if ac_fn_c_try_link "$LINENO"; then :
22687 gcc_cv_math_func_tan=yes
22688 else
22689 gcc_cv_math_func_tan=no
22690 fi
22691 rm -f core conftest.err conftest.$ac_objext \
22692 conftest$ac_exeext conftest.$ac_ext
22693 fi
22694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tan" >&5
22695 $as_echo "$gcc_cv_math_func_tan" >&6; }
22696 if test $gcc_cv_math_func_tan = yes; then
22697
22698 cat >>confdefs.h <<_ACEOF
22699 #define HAVE_TAN 1
22700 _ACEOF
22701
22702 fi
22703
22704
22705
22706
22707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanl" >&5
22708 $as_echo_n "checking for tanl... " >&6; }
22709 if test "${gcc_cv_math_func_tanl+set}" = set; then :
22710 $as_echo_n "(cached) " >&6
22711 else
22712 if test x$gcc_no_link = xyes; then
22713 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22714 fi
22715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22716 /* end confdefs.h. */
22717
22718 #ifdef HAVE_COMPLEX_H
22719 #include <complex.h>
22720 #endif
22721 #ifdef HAVE_MATH_H
22722 #include <math.h>
22723 #endif
22724
22725 int (*ptr)() = (int (*)())tanl;
22726
22727 int
22728 main ()
22729 {
22730 return 0;
22731 }
22732
22733 _ACEOF
22734 if ac_fn_c_try_link "$LINENO"; then :
22735 gcc_cv_math_func_tanl=yes
22736 else
22737 gcc_cv_math_func_tanl=no
22738 fi
22739 rm -f core conftest.err conftest.$ac_objext \
22740 conftest$ac_exeext conftest.$ac_ext
22741 fi
22742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanl" >&5
22743 $as_echo "$gcc_cv_math_func_tanl" >&6; }
22744 if test $gcc_cv_math_func_tanl = yes; then
22745
22746 cat >>confdefs.h <<_ACEOF
22747 #define HAVE_TANL 1
22748 _ACEOF
22749
22750 fi
22751
22752
22753
22754
22755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanf" >&5
22756 $as_echo_n "checking for ctanf... " >&6; }
22757 if test "${gcc_cv_math_func_ctanf+set}" = set; then :
22758 $as_echo_n "(cached) " >&6
22759 else
22760 if test x$gcc_no_link = xyes; then
22761 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22762 fi
22763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22764 /* end confdefs.h. */
22765
22766 #ifdef HAVE_COMPLEX_H
22767 #include <complex.h>
22768 #endif
22769 #ifdef HAVE_MATH_H
22770 #include <math.h>
22771 #endif
22772
22773 int (*ptr)() = (int (*)())ctanf;
22774
22775 int
22776 main ()
22777 {
22778 return 0;
22779 }
22780
22781 _ACEOF
22782 if ac_fn_c_try_link "$LINENO"; then :
22783 gcc_cv_math_func_ctanf=yes
22784 else
22785 gcc_cv_math_func_ctanf=no
22786 fi
22787 rm -f core conftest.err conftest.$ac_objext \
22788 conftest$ac_exeext conftest.$ac_ext
22789 fi
22790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanf" >&5
22791 $as_echo "$gcc_cv_math_func_ctanf" >&6; }
22792 if test $gcc_cv_math_func_ctanf = yes; then
22793
22794 cat >>confdefs.h <<_ACEOF
22795 #define HAVE_CTANF 1
22796 _ACEOF
22797
22798 fi
22799
22800
22801
22802
22803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctan" >&5
22804 $as_echo_n "checking for ctan... " >&6; }
22805 if test "${gcc_cv_math_func_ctan+set}" = set; then :
22806 $as_echo_n "(cached) " >&6
22807 else
22808 if test x$gcc_no_link = xyes; then
22809 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22810 fi
22811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22812 /* end confdefs.h. */
22813
22814 #ifdef HAVE_COMPLEX_H
22815 #include <complex.h>
22816 #endif
22817 #ifdef HAVE_MATH_H
22818 #include <math.h>
22819 #endif
22820
22821 int (*ptr)() = (int (*)())ctan;
22822
22823 int
22824 main ()
22825 {
22826 return 0;
22827 }
22828
22829 _ACEOF
22830 if ac_fn_c_try_link "$LINENO"; then :
22831 gcc_cv_math_func_ctan=yes
22832 else
22833 gcc_cv_math_func_ctan=no
22834 fi
22835 rm -f core conftest.err conftest.$ac_objext \
22836 conftest$ac_exeext conftest.$ac_ext
22837 fi
22838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctan" >&5
22839 $as_echo "$gcc_cv_math_func_ctan" >&6; }
22840 if test $gcc_cv_math_func_ctan = yes; then
22841
22842 cat >>confdefs.h <<_ACEOF
22843 #define HAVE_CTAN 1
22844 _ACEOF
22845
22846 fi
22847
22848
22849
22850
22851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanl" >&5
22852 $as_echo_n "checking for ctanl... " >&6; }
22853 if test "${gcc_cv_math_func_ctanl+set}" = set; then :
22854 $as_echo_n "(cached) " >&6
22855 else
22856 if test x$gcc_no_link = xyes; then
22857 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22858 fi
22859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22860 /* end confdefs.h. */
22861
22862 #ifdef HAVE_COMPLEX_H
22863 #include <complex.h>
22864 #endif
22865 #ifdef HAVE_MATH_H
22866 #include <math.h>
22867 #endif
22868
22869 int (*ptr)() = (int (*)())ctanl;
22870
22871 int
22872 main ()
22873 {
22874 return 0;
22875 }
22876
22877 _ACEOF
22878 if ac_fn_c_try_link "$LINENO"; then :
22879 gcc_cv_math_func_ctanl=yes
22880 else
22881 gcc_cv_math_func_ctanl=no
22882 fi
22883 rm -f core conftest.err conftest.$ac_objext \
22884 conftest$ac_exeext conftest.$ac_ext
22885 fi
22886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanl" >&5
22887 $as_echo "$gcc_cv_math_func_ctanl" >&6; }
22888 if test $gcc_cv_math_func_ctanl = yes; then
22889
22890 cat >>confdefs.h <<_ACEOF
22891 #define HAVE_CTANL 1
22892 _ACEOF
22893
22894 fi
22895
22896
22897
22898
22899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhf" >&5
22900 $as_echo_n "checking for tanhf... " >&6; }
22901 if test "${gcc_cv_math_func_tanhf+set}" = set; then :
22902 $as_echo_n "(cached) " >&6
22903 else
22904 if test x$gcc_no_link = xyes; then
22905 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22906 fi
22907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22908 /* end confdefs.h. */
22909
22910 #ifdef HAVE_COMPLEX_H
22911 #include <complex.h>
22912 #endif
22913 #ifdef HAVE_MATH_H
22914 #include <math.h>
22915 #endif
22916
22917 int (*ptr)() = (int (*)())tanhf;
22918
22919 int
22920 main ()
22921 {
22922 return 0;
22923 }
22924
22925 _ACEOF
22926 if ac_fn_c_try_link "$LINENO"; then :
22927 gcc_cv_math_func_tanhf=yes
22928 else
22929 gcc_cv_math_func_tanhf=no
22930 fi
22931 rm -f core conftest.err conftest.$ac_objext \
22932 conftest$ac_exeext conftest.$ac_ext
22933 fi
22934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhf" >&5
22935 $as_echo "$gcc_cv_math_func_tanhf" >&6; }
22936 if test $gcc_cv_math_func_tanhf = yes; then
22937
22938 cat >>confdefs.h <<_ACEOF
22939 #define HAVE_TANHF 1
22940 _ACEOF
22941
22942 fi
22943
22944
22945
22946
22947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanh" >&5
22948 $as_echo_n "checking for tanh... " >&6; }
22949 if test "${gcc_cv_math_func_tanh+set}" = set; then :
22950 $as_echo_n "(cached) " >&6
22951 else
22952 if test x$gcc_no_link = xyes; then
22953 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22954 fi
22955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22956 /* end confdefs.h. */
22957
22958 #ifdef HAVE_COMPLEX_H
22959 #include <complex.h>
22960 #endif
22961 #ifdef HAVE_MATH_H
22962 #include <math.h>
22963 #endif
22964
22965 int (*ptr)() = (int (*)())tanh;
22966
22967 int
22968 main ()
22969 {
22970 return 0;
22971 }
22972
22973 _ACEOF
22974 if ac_fn_c_try_link "$LINENO"; then :
22975 gcc_cv_math_func_tanh=yes
22976 else
22977 gcc_cv_math_func_tanh=no
22978 fi
22979 rm -f core conftest.err conftest.$ac_objext \
22980 conftest$ac_exeext conftest.$ac_ext
22981 fi
22982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanh" >&5
22983 $as_echo "$gcc_cv_math_func_tanh" >&6; }
22984 if test $gcc_cv_math_func_tanh = yes; then
22985
22986 cat >>confdefs.h <<_ACEOF
22987 #define HAVE_TANH 1
22988 _ACEOF
22989
22990 fi
22991
22992
22993
22994
22995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhl" >&5
22996 $as_echo_n "checking for tanhl... " >&6; }
22997 if test "${gcc_cv_math_func_tanhl+set}" = set; then :
22998 $as_echo_n "(cached) " >&6
22999 else
23000 if test x$gcc_no_link = xyes; then
23001 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23002 fi
23003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23004 /* end confdefs.h. */
23005
23006 #ifdef HAVE_COMPLEX_H
23007 #include <complex.h>
23008 #endif
23009 #ifdef HAVE_MATH_H
23010 #include <math.h>
23011 #endif
23012
23013 int (*ptr)() = (int (*)())tanhl;
23014
23015 int
23016 main ()
23017 {
23018 return 0;
23019 }
23020
23021 _ACEOF
23022 if ac_fn_c_try_link "$LINENO"; then :
23023 gcc_cv_math_func_tanhl=yes
23024 else
23025 gcc_cv_math_func_tanhl=no
23026 fi
23027 rm -f core conftest.err conftest.$ac_objext \
23028 conftest$ac_exeext conftest.$ac_ext
23029 fi
23030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhl" >&5
23031 $as_echo "$gcc_cv_math_func_tanhl" >&6; }
23032 if test $gcc_cv_math_func_tanhl = yes; then
23033
23034 cat >>confdefs.h <<_ACEOF
23035 #define HAVE_TANHL 1
23036 _ACEOF
23037
23038 fi
23039
23040
23041
23042
23043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhf" >&5
23044 $as_echo_n "checking for ctanhf... " >&6; }
23045 if test "${gcc_cv_math_func_ctanhf+set}" = set; then :
23046 $as_echo_n "(cached) " >&6
23047 else
23048 if test x$gcc_no_link = xyes; then
23049 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23050 fi
23051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23052 /* end confdefs.h. */
23053
23054 #ifdef HAVE_COMPLEX_H
23055 #include <complex.h>
23056 #endif
23057 #ifdef HAVE_MATH_H
23058 #include <math.h>
23059 #endif
23060
23061 int (*ptr)() = (int (*)())ctanhf;
23062
23063 int
23064 main ()
23065 {
23066 return 0;
23067 }
23068
23069 _ACEOF
23070 if ac_fn_c_try_link "$LINENO"; then :
23071 gcc_cv_math_func_ctanhf=yes
23072 else
23073 gcc_cv_math_func_ctanhf=no
23074 fi
23075 rm -f core conftest.err conftest.$ac_objext \
23076 conftest$ac_exeext conftest.$ac_ext
23077 fi
23078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhf" >&5
23079 $as_echo "$gcc_cv_math_func_ctanhf" >&6; }
23080 if test $gcc_cv_math_func_ctanhf = yes; then
23081
23082 cat >>confdefs.h <<_ACEOF
23083 #define HAVE_CTANHF 1
23084 _ACEOF
23085
23086 fi
23087
23088
23089
23090
23091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanh" >&5
23092 $as_echo_n "checking for ctanh... " >&6; }
23093 if test "${gcc_cv_math_func_ctanh+set}" = set; then :
23094 $as_echo_n "(cached) " >&6
23095 else
23096 if test x$gcc_no_link = xyes; then
23097 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23098 fi
23099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23100 /* end confdefs.h. */
23101
23102 #ifdef HAVE_COMPLEX_H
23103 #include <complex.h>
23104 #endif
23105 #ifdef HAVE_MATH_H
23106 #include <math.h>
23107 #endif
23108
23109 int (*ptr)() = (int (*)())ctanh;
23110
23111 int
23112 main ()
23113 {
23114 return 0;
23115 }
23116
23117 _ACEOF
23118 if ac_fn_c_try_link "$LINENO"; then :
23119 gcc_cv_math_func_ctanh=yes
23120 else
23121 gcc_cv_math_func_ctanh=no
23122 fi
23123 rm -f core conftest.err conftest.$ac_objext \
23124 conftest$ac_exeext conftest.$ac_ext
23125 fi
23126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanh" >&5
23127 $as_echo "$gcc_cv_math_func_ctanh" >&6; }
23128 if test $gcc_cv_math_func_ctanh = yes; then
23129
23130 cat >>confdefs.h <<_ACEOF
23131 #define HAVE_CTANH 1
23132 _ACEOF
23133
23134 fi
23135
23136
23137
23138
23139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhl" >&5
23140 $as_echo_n "checking for ctanhl... " >&6; }
23141 if test "${gcc_cv_math_func_ctanhl+set}" = set; then :
23142 $as_echo_n "(cached) " >&6
23143 else
23144 if test x$gcc_no_link = xyes; then
23145 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23146 fi
23147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23148 /* end confdefs.h. */
23149
23150 #ifdef HAVE_COMPLEX_H
23151 #include <complex.h>
23152 #endif
23153 #ifdef HAVE_MATH_H
23154 #include <math.h>
23155 #endif
23156
23157 int (*ptr)() = (int (*)())ctanhl;
23158
23159 int
23160 main ()
23161 {
23162 return 0;
23163 }
23164
23165 _ACEOF
23166 if ac_fn_c_try_link "$LINENO"; then :
23167 gcc_cv_math_func_ctanhl=yes
23168 else
23169 gcc_cv_math_func_ctanhl=no
23170 fi
23171 rm -f core conftest.err conftest.$ac_objext \
23172 conftest$ac_exeext conftest.$ac_ext
23173 fi
23174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhl" >&5
23175 $as_echo "$gcc_cv_math_func_ctanhl" >&6; }
23176 if test $gcc_cv_math_func_ctanhl = yes; then
23177
23178 cat >>confdefs.h <<_ACEOF
23179 #define HAVE_CTANHL 1
23180 _ACEOF
23181
23182 fi
23183
23184
23185
23186
23187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncf" >&5
23188 $as_echo_n "checking for truncf... " >&6; }
23189 if test "${gcc_cv_math_func_truncf+set}" = set; then :
23190 $as_echo_n "(cached) " >&6
23191 else
23192 if test x$gcc_no_link = xyes; then
23193 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23194 fi
23195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23196 /* end confdefs.h. */
23197
23198 #ifdef HAVE_COMPLEX_H
23199 #include <complex.h>
23200 #endif
23201 #ifdef HAVE_MATH_H
23202 #include <math.h>
23203 #endif
23204
23205 int (*ptr)() = (int (*)())truncf;
23206
23207 int
23208 main ()
23209 {
23210 return 0;
23211 }
23212
23213 _ACEOF
23214 if ac_fn_c_try_link "$LINENO"; then :
23215 gcc_cv_math_func_truncf=yes
23216 else
23217 gcc_cv_math_func_truncf=no
23218 fi
23219 rm -f core conftest.err conftest.$ac_objext \
23220 conftest$ac_exeext conftest.$ac_ext
23221 fi
23222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncf" >&5
23223 $as_echo "$gcc_cv_math_func_truncf" >&6; }
23224 if test $gcc_cv_math_func_truncf = yes; then
23225
23226 cat >>confdefs.h <<_ACEOF
23227 #define HAVE_TRUNCF 1
23228 _ACEOF
23229
23230 fi
23231
23232
23233
23234
23235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for trunc" >&5
23236 $as_echo_n "checking for trunc... " >&6; }
23237 if test "${gcc_cv_math_func_trunc+set}" = set; then :
23238 $as_echo_n "(cached) " >&6
23239 else
23240 if test x$gcc_no_link = xyes; then
23241 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23242 fi
23243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23244 /* end confdefs.h. */
23245
23246 #ifdef HAVE_COMPLEX_H
23247 #include <complex.h>
23248 #endif
23249 #ifdef HAVE_MATH_H
23250 #include <math.h>
23251 #endif
23252
23253 int (*ptr)() = (int (*)())trunc;
23254
23255 int
23256 main ()
23257 {
23258 return 0;
23259 }
23260
23261 _ACEOF
23262 if ac_fn_c_try_link "$LINENO"; then :
23263 gcc_cv_math_func_trunc=yes
23264 else
23265 gcc_cv_math_func_trunc=no
23266 fi
23267 rm -f core conftest.err conftest.$ac_objext \
23268 conftest$ac_exeext conftest.$ac_ext
23269 fi
23270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_trunc" >&5
23271 $as_echo "$gcc_cv_math_func_trunc" >&6; }
23272 if test $gcc_cv_math_func_trunc = yes; then
23273
23274 cat >>confdefs.h <<_ACEOF
23275 #define HAVE_TRUNC 1
23276 _ACEOF
23277
23278 fi
23279
23280
23281
23282
23283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncl" >&5
23284 $as_echo_n "checking for truncl... " >&6; }
23285 if test "${gcc_cv_math_func_truncl+set}" = set; then :
23286 $as_echo_n "(cached) " >&6
23287 else
23288 if test x$gcc_no_link = xyes; then
23289 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23290 fi
23291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23292 /* end confdefs.h. */
23293
23294 #ifdef HAVE_COMPLEX_H
23295 #include <complex.h>
23296 #endif
23297 #ifdef HAVE_MATH_H
23298 #include <math.h>
23299 #endif
23300
23301 int (*ptr)() = (int (*)())truncl;
23302
23303 int
23304 main ()
23305 {
23306 return 0;
23307 }
23308
23309 _ACEOF
23310 if ac_fn_c_try_link "$LINENO"; then :
23311 gcc_cv_math_func_truncl=yes
23312 else
23313 gcc_cv_math_func_truncl=no
23314 fi
23315 rm -f core conftest.err conftest.$ac_objext \
23316 conftest$ac_exeext conftest.$ac_ext
23317 fi
23318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncl" >&5
23319 $as_echo "$gcc_cv_math_func_truncl" >&6; }
23320 if test $gcc_cv_math_func_truncl = yes; then
23321
23322 cat >>confdefs.h <<_ACEOF
23323 #define HAVE_TRUNCL 1
23324 _ACEOF
23325
23326 fi
23327
23328
23329
23330
23331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erff" >&5
23332 $as_echo_n "checking for erff... " >&6; }
23333 if test "${gcc_cv_math_func_erff+set}" = set; then :
23334 $as_echo_n "(cached) " >&6
23335 else
23336 if test x$gcc_no_link = xyes; then
23337 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23338 fi
23339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23340 /* end confdefs.h. */
23341
23342 #ifdef HAVE_COMPLEX_H
23343 #include <complex.h>
23344 #endif
23345 #ifdef HAVE_MATH_H
23346 #include <math.h>
23347 #endif
23348
23349 int (*ptr)() = (int (*)())erff;
23350
23351 int
23352 main ()
23353 {
23354 return 0;
23355 }
23356
23357 _ACEOF
23358 if ac_fn_c_try_link "$LINENO"; then :
23359 gcc_cv_math_func_erff=yes
23360 else
23361 gcc_cv_math_func_erff=no
23362 fi
23363 rm -f core conftest.err conftest.$ac_objext \
23364 conftest$ac_exeext conftest.$ac_ext
23365 fi
23366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erff" >&5
23367 $as_echo "$gcc_cv_math_func_erff" >&6; }
23368 if test $gcc_cv_math_func_erff = yes; then
23369
23370 cat >>confdefs.h <<_ACEOF
23371 #define HAVE_ERFF 1
23372 _ACEOF
23373
23374 fi
23375
23376
23377
23378
23379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erf" >&5
23380 $as_echo_n "checking for erf... " >&6; }
23381 if test "${gcc_cv_math_func_erf+set}" = set; then :
23382 $as_echo_n "(cached) " >&6
23383 else
23384 if test x$gcc_no_link = xyes; then
23385 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23386 fi
23387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23388 /* end confdefs.h. */
23389
23390 #ifdef HAVE_COMPLEX_H
23391 #include <complex.h>
23392 #endif
23393 #ifdef HAVE_MATH_H
23394 #include <math.h>
23395 #endif
23396
23397 int (*ptr)() = (int (*)())erf;
23398
23399 int
23400 main ()
23401 {
23402 return 0;
23403 }
23404
23405 _ACEOF
23406 if ac_fn_c_try_link "$LINENO"; then :
23407 gcc_cv_math_func_erf=yes
23408 else
23409 gcc_cv_math_func_erf=no
23410 fi
23411 rm -f core conftest.err conftest.$ac_objext \
23412 conftest$ac_exeext conftest.$ac_ext
23413 fi
23414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erf" >&5
23415 $as_echo "$gcc_cv_math_func_erf" >&6; }
23416 if test $gcc_cv_math_func_erf = yes; then
23417
23418 cat >>confdefs.h <<_ACEOF
23419 #define HAVE_ERF 1
23420 _ACEOF
23421
23422 fi
23423
23424
23425
23426
23427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcf" >&5
23428 $as_echo_n "checking for erfcf... " >&6; }
23429 if test "${gcc_cv_math_func_erfcf+set}" = set; then :
23430 $as_echo_n "(cached) " >&6
23431 else
23432 if test x$gcc_no_link = xyes; then
23433 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23434 fi
23435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23436 /* end confdefs.h. */
23437
23438 #ifdef HAVE_COMPLEX_H
23439 #include <complex.h>
23440 #endif
23441 #ifdef HAVE_MATH_H
23442 #include <math.h>
23443 #endif
23444
23445 int (*ptr)() = (int (*)())erfcf;
23446
23447 int
23448 main ()
23449 {
23450 return 0;
23451 }
23452
23453 _ACEOF
23454 if ac_fn_c_try_link "$LINENO"; then :
23455 gcc_cv_math_func_erfcf=yes
23456 else
23457 gcc_cv_math_func_erfcf=no
23458 fi
23459 rm -f core conftest.err conftest.$ac_objext \
23460 conftest$ac_exeext conftest.$ac_ext
23461 fi
23462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcf" >&5
23463 $as_echo "$gcc_cv_math_func_erfcf" >&6; }
23464 if test $gcc_cv_math_func_erfcf = yes; then
23465
23466 cat >>confdefs.h <<_ACEOF
23467 #define HAVE_ERFCF 1
23468 _ACEOF
23469
23470 fi
23471
23472
23473
23474
23475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfc" >&5
23476 $as_echo_n "checking for erfc... " >&6; }
23477 if test "${gcc_cv_math_func_erfc+set}" = set; then :
23478 $as_echo_n "(cached) " >&6
23479 else
23480 if test x$gcc_no_link = xyes; then
23481 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23482 fi
23483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23484 /* end confdefs.h. */
23485
23486 #ifdef HAVE_COMPLEX_H
23487 #include <complex.h>
23488 #endif
23489 #ifdef HAVE_MATH_H
23490 #include <math.h>
23491 #endif
23492
23493 int (*ptr)() = (int (*)())erfc;
23494
23495 int
23496 main ()
23497 {
23498 return 0;
23499 }
23500
23501 _ACEOF
23502 if ac_fn_c_try_link "$LINENO"; then :
23503 gcc_cv_math_func_erfc=yes
23504 else
23505 gcc_cv_math_func_erfc=no
23506 fi
23507 rm -f core conftest.err conftest.$ac_objext \
23508 conftest$ac_exeext conftest.$ac_ext
23509 fi
23510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfc" >&5
23511 $as_echo "$gcc_cv_math_func_erfc" >&6; }
23512 if test $gcc_cv_math_func_erfc = yes; then
23513
23514 cat >>confdefs.h <<_ACEOF
23515 #define HAVE_ERFC 1
23516 _ACEOF
23517
23518 fi
23519
23520
23521
23522
23523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcl" >&5
23524 $as_echo_n "checking for erfcl... " >&6; }
23525 if test "${gcc_cv_math_func_erfcl+set}" = set; then :
23526 $as_echo_n "(cached) " >&6
23527 else
23528 if test x$gcc_no_link = xyes; then
23529 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23530 fi
23531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23532 /* end confdefs.h. */
23533
23534 #ifdef HAVE_COMPLEX_H
23535 #include <complex.h>
23536 #endif
23537 #ifdef HAVE_MATH_H
23538 #include <math.h>
23539 #endif
23540
23541 int (*ptr)() = (int (*)())erfcl;
23542
23543 int
23544 main ()
23545 {
23546 return 0;
23547 }
23548
23549 _ACEOF
23550 if ac_fn_c_try_link "$LINENO"; then :
23551 gcc_cv_math_func_erfcl=yes
23552 else
23553 gcc_cv_math_func_erfcl=no
23554 fi
23555 rm -f core conftest.err conftest.$ac_objext \
23556 conftest$ac_exeext conftest.$ac_ext
23557 fi
23558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcl" >&5
23559 $as_echo "$gcc_cv_math_func_erfcl" >&6; }
23560 if test $gcc_cv_math_func_erfcl = yes; then
23561
23562 cat >>confdefs.h <<_ACEOF
23563 #define HAVE_ERFCL 1
23564 _ACEOF
23565
23566 fi
23567
23568
23569
23570
23571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0f" >&5
23572 $as_echo_n "checking for j0f... " >&6; }
23573 if test "${gcc_cv_math_func_j0f+set}" = set; then :
23574 $as_echo_n "(cached) " >&6
23575 else
23576 if test x$gcc_no_link = xyes; then
23577 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23578 fi
23579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23580 /* end confdefs.h. */
23581
23582 #ifdef HAVE_COMPLEX_H
23583 #include <complex.h>
23584 #endif
23585 #ifdef HAVE_MATH_H
23586 #include <math.h>
23587 #endif
23588
23589 int (*ptr)() = (int (*)())j0f;
23590
23591 int
23592 main ()
23593 {
23594 return 0;
23595 }
23596
23597 _ACEOF
23598 if ac_fn_c_try_link "$LINENO"; then :
23599 gcc_cv_math_func_j0f=yes
23600 else
23601 gcc_cv_math_func_j0f=no
23602 fi
23603 rm -f core conftest.err conftest.$ac_objext \
23604 conftest$ac_exeext conftest.$ac_ext
23605 fi
23606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0f" >&5
23607 $as_echo "$gcc_cv_math_func_j0f" >&6; }
23608 if test $gcc_cv_math_func_j0f = yes; then
23609
23610 cat >>confdefs.h <<_ACEOF
23611 #define HAVE_J0F 1
23612 _ACEOF
23613
23614 fi
23615
23616
23617
23618
23619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0" >&5
23620 $as_echo_n "checking for j0... " >&6; }
23621 if test "${gcc_cv_math_func_j0+set}" = set; then :
23622 $as_echo_n "(cached) " >&6
23623 else
23624 if test x$gcc_no_link = xyes; then
23625 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23626 fi
23627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23628 /* end confdefs.h. */
23629
23630 #ifdef HAVE_COMPLEX_H
23631 #include <complex.h>
23632 #endif
23633 #ifdef HAVE_MATH_H
23634 #include <math.h>
23635 #endif
23636
23637 int (*ptr)() = (int (*)())j0;
23638
23639 int
23640 main ()
23641 {
23642 return 0;
23643 }
23644
23645 _ACEOF
23646 if ac_fn_c_try_link "$LINENO"; then :
23647 gcc_cv_math_func_j0=yes
23648 else
23649 gcc_cv_math_func_j0=no
23650 fi
23651 rm -f core conftest.err conftest.$ac_objext \
23652 conftest$ac_exeext conftest.$ac_ext
23653 fi
23654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0" >&5
23655 $as_echo "$gcc_cv_math_func_j0" >&6; }
23656 if test $gcc_cv_math_func_j0 = yes; then
23657
23658 cat >>confdefs.h <<_ACEOF
23659 #define HAVE_J0 1
23660 _ACEOF
23661
23662 fi
23663
23664
23665
23666
23667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1f" >&5
23668 $as_echo_n "checking for j1f... " >&6; }
23669 if test "${gcc_cv_math_func_j1f+set}" = set; then :
23670 $as_echo_n "(cached) " >&6
23671 else
23672 if test x$gcc_no_link = xyes; then
23673 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23674 fi
23675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23676 /* end confdefs.h. */
23677
23678 #ifdef HAVE_COMPLEX_H
23679 #include <complex.h>
23680 #endif
23681 #ifdef HAVE_MATH_H
23682 #include <math.h>
23683 #endif
23684
23685 int (*ptr)() = (int (*)())j1f;
23686
23687 int
23688 main ()
23689 {
23690 return 0;
23691 }
23692
23693 _ACEOF
23694 if ac_fn_c_try_link "$LINENO"; then :
23695 gcc_cv_math_func_j1f=yes
23696 else
23697 gcc_cv_math_func_j1f=no
23698 fi
23699 rm -f core conftest.err conftest.$ac_objext \
23700 conftest$ac_exeext conftest.$ac_ext
23701 fi
23702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1f" >&5
23703 $as_echo "$gcc_cv_math_func_j1f" >&6; }
23704 if test $gcc_cv_math_func_j1f = yes; then
23705
23706 cat >>confdefs.h <<_ACEOF
23707 #define HAVE_J1F 1
23708 _ACEOF
23709
23710 fi
23711
23712
23713
23714
23715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1" >&5
23716 $as_echo_n "checking for j1... " >&6; }
23717 if test "${gcc_cv_math_func_j1+set}" = set; then :
23718 $as_echo_n "(cached) " >&6
23719 else
23720 if test x$gcc_no_link = xyes; then
23721 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23722 fi
23723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23724 /* end confdefs.h. */
23725
23726 #ifdef HAVE_COMPLEX_H
23727 #include <complex.h>
23728 #endif
23729 #ifdef HAVE_MATH_H
23730 #include <math.h>
23731 #endif
23732
23733 int (*ptr)() = (int (*)())j1;
23734
23735 int
23736 main ()
23737 {
23738 return 0;
23739 }
23740
23741 _ACEOF
23742 if ac_fn_c_try_link "$LINENO"; then :
23743 gcc_cv_math_func_j1=yes
23744 else
23745 gcc_cv_math_func_j1=no
23746 fi
23747 rm -f core conftest.err conftest.$ac_objext \
23748 conftest$ac_exeext conftest.$ac_ext
23749 fi
23750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1" >&5
23751 $as_echo "$gcc_cv_math_func_j1" >&6; }
23752 if test $gcc_cv_math_func_j1 = yes; then
23753
23754 cat >>confdefs.h <<_ACEOF
23755 #define HAVE_J1 1
23756 _ACEOF
23757
23758 fi
23759
23760
23761
23762
23763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnf" >&5
23764 $as_echo_n "checking for jnf... " >&6; }
23765 if test "${gcc_cv_math_func_jnf+set}" = set; then :
23766 $as_echo_n "(cached) " >&6
23767 else
23768 if test x$gcc_no_link = xyes; then
23769 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23770 fi
23771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23772 /* end confdefs.h. */
23773
23774 #ifdef HAVE_COMPLEX_H
23775 #include <complex.h>
23776 #endif
23777 #ifdef HAVE_MATH_H
23778 #include <math.h>
23779 #endif
23780
23781 int (*ptr)() = (int (*)())jnf;
23782
23783 int
23784 main ()
23785 {
23786 return 0;
23787 }
23788
23789 _ACEOF
23790 if ac_fn_c_try_link "$LINENO"; then :
23791 gcc_cv_math_func_jnf=yes
23792 else
23793 gcc_cv_math_func_jnf=no
23794 fi
23795 rm -f core conftest.err conftest.$ac_objext \
23796 conftest$ac_exeext conftest.$ac_ext
23797 fi
23798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnf" >&5
23799 $as_echo "$gcc_cv_math_func_jnf" >&6; }
23800 if test $gcc_cv_math_func_jnf = yes; then
23801
23802 cat >>confdefs.h <<_ACEOF
23803 #define HAVE_JNF 1
23804 _ACEOF
23805
23806 fi
23807
23808
23809
23810
23811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jn" >&5
23812 $as_echo_n "checking for jn... " >&6; }
23813 if test "${gcc_cv_math_func_jn+set}" = set; then :
23814 $as_echo_n "(cached) " >&6
23815 else
23816 if test x$gcc_no_link = xyes; then
23817 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23818 fi
23819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23820 /* end confdefs.h. */
23821
23822 #ifdef HAVE_COMPLEX_H
23823 #include <complex.h>
23824 #endif
23825 #ifdef HAVE_MATH_H
23826 #include <math.h>
23827 #endif
23828
23829 int (*ptr)() = (int (*)())jn;
23830
23831 int
23832 main ()
23833 {
23834 return 0;
23835 }
23836
23837 _ACEOF
23838 if ac_fn_c_try_link "$LINENO"; then :
23839 gcc_cv_math_func_jn=yes
23840 else
23841 gcc_cv_math_func_jn=no
23842 fi
23843 rm -f core conftest.err conftest.$ac_objext \
23844 conftest$ac_exeext conftest.$ac_ext
23845 fi
23846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jn" >&5
23847 $as_echo "$gcc_cv_math_func_jn" >&6; }
23848 if test $gcc_cv_math_func_jn = yes; then
23849
23850 cat >>confdefs.h <<_ACEOF
23851 #define HAVE_JN 1
23852 _ACEOF
23853
23854 fi
23855
23856
23857
23858
23859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnl" >&5
23860 $as_echo_n "checking for jnl... " >&6; }
23861 if test "${gcc_cv_math_func_jnl+set}" = set; then :
23862 $as_echo_n "(cached) " >&6
23863 else
23864 if test x$gcc_no_link = xyes; then
23865 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23866 fi
23867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23868 /* end confdefs.h. */
23869
23870 #ifdef HAVE_COMPLEX_H
23871 #include <complex.h>
23872 #endif
23873 #ifdef HAVE_MATH_H
23874 #include <math.h>
23875 #endif
23876
23877 int (*ptr)() = (int (*)())jnl;
23878
23879 int
23880 main ()
23881 {
23882 return 0;
23883 }
23884
23885 _ACEOF
23886 if ac_fn_c_try_link "$LINENO"; then :
23887 gcc_cv_math_func_jnl=yes
23888 else
23889 gcc_cv_math_func_jnl=no
23890 fi
23891 rm -f core conftest.err conftest.$ac_objext \
23892 conftest$ac_exeext conftest.$ac_ext
23893 fi
23894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnl" >&5
23895 $as_echo "$gcc_cv_math_func_jnl" >&6; }
23896 if test $gcc_cv_math_func_jnl = yes; then
23897
23898 cat >>confdefs.h <<_ACEOF
23899 #define HAVE_JNL 1
23900 _ACEOF
23901
23902 fi
23903
23904
23905
23906
23907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0f" >&5
23908 $as_echo_n "checking for y0f... " >&6; }
23909 if test "${gcc_cv_math_func_y0f+set}" = set; then :
23910 $as_echo_n "(cached) " >&6
23911 else
23912 if test x$gcc_no_link = xyes; then
23913 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23914 fi
23915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23916 /* end confdefs.h. */
23917
23918 #ifdef HAVE_COMPLEX_H
23919 #include <complex.h>
23920 #endif
23921 #ifdef HAVE_MATH_H
23922 #include <math.h>
23923 #endif
23924
23925 int (*ptr)() = (int (*)())y0f;
23926
23927 int
23928 main ()
23929 {
23930 return 0;
23931 }
23932
23933 _ACEOF
23934 if ac_fn_c_try_link "$LINENO"; then :
23935 gcc_cv_math_func_y0f=yes
23936 else
23937 gcc_cv_math_func_y0f=no
23938 fi
23939 rm -f core conftest.err conftest.$ac_objext \
23940 conftest$ac_exeext conftest.$ac_ext
23941 fi
23942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0f" >&5
23943 $as_echo "$gcc_cv_math_func_y0f" >&6; }
23944 if test $gcc_cv_math_func_y0f = yes; then
23945
23946 cat >>confdefs.h <<_ACEOF
23947 #define HAVE_Y0F 1
23948 _ACEOF
23949
23950 fi
23951
23952
23953
23954
23955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0" >&5
23956 $as_echo_n "checking for y0... " >&6; }
23957 if test "${gcc_cv_math_func_y0+set}" = set; then :
23958 $as_echo_n "(cached) " >&6
23959 else
23960 if test x$gcc_no_link = xyes; then
23961 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23962 fi
23963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23964 /* end confdefs.h. */
23965
23966 #ifdef HAVE_COMPLEX_H
23967 #include <complex.h>
23968 #endif
23969 #ifdef HAVE_MATH_H
23970 #include <math.h>
23971 #endif
23972
23973 int (*ptr)() = (int (*)())y0;
23974
23975 int
23976 main ()
23977 {
23978 return 0;
23979 }
23980
23981 _ACEOF
23982 if ac_fn_c_try_link "$LINENO"; then :
23983 gcc_cv_math_func_y0=yes
23984 else
23985 gcc_cv_math_func_y0=no
23986 fi
23987 rm -f core conftest.err conftest.$ac_objext \
23988 conftest$ac_exeext conftest.$ac_ext
23989 fi
23990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0" >&5
23991 $as_echo "$gcc_cv_math_func_y0" >&6; }
23992 if test $gcc_cv_math_func_y0 = yes; then
23993
23994 cat >>confdefs.h <<_ACEOF
23995 #define HAVE_Y0 1
23996 _ACEOF
23997
23998 fi
23999
24000
24001
24002
24003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1f" >&5
24004 $as_echo_n "checking for y1f... " >&6; }
24005 if test "${gcc_cv_math_func_y1f+set}" = set; then :
24006 $as_echo_n "(cached) " >&6
24007 else
24008 if test x$gcc_no_link = xyes; then
24009 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24010 fi
24011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24012 /* end confdefs.h. */
24013
24014 #ifdef HAVE_COMPLEX_H
24015 #include <complex.h>
24016 #endif
24017 #ifdef HAVE_MATH_H
24018 #include <math.h>
24019 #endif
24020
24021 int (*ptr)() = (int (*)())y1f;
24022
24023 int
24024 main ()
24025 {
24026 return 0;
24027 }
24028
24029 _ACEOF
24030 if ac_fn_c_try_link "$LINENO"; then :
24031 gcc_cv_math_func_y1f=yes
24032 else
24033 gcc_cv_math_func_y1f=no
24034 fi
24035 rm -f core conftest.err conftest.$ac_objext \
24036 conftest$ac_exeext conftest.$ac_ext
24037 fi
24038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1f" >&5
24039 $as_echo "$gcc_cv_math_func_y1f" >&6; }
24040 if test $gcc_cv_math_func_y1f = yes; then
24041
24042 cat >>confdefs.h <<_ACEOF
24043 #define HAVE_Y1F 1
24044 _ACEOF
24045
24046 fi
24047
24048
24049
24050
24051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1" >&5
24052 $as_echo_n "checking for y1... " >&6; }
24053 if test "${gcc_cv_math_func_y1+set}" = set; then :
24054 $as_echo_n "(cached) " >&6
24055 else
24056 if test x$gcc_no_link = xyes; then
24057 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24058 fi
24059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24060 /* end confdefs.h. */
24061
24062 #ifdef HAVE_COMPLEX_H
24063 #include <complex.h>
24064 #endif
24065 #ifdef HAVE_MATH_H
24066 #include <math.h>
24067 #endif
24068
24069 int (*ptr)() = (int (*)())y1;
24070
24071 int
24072 main ()
24073 {
24074 return 0;
24075 }
24076
24077 _ACEOF
24078 if ac_fn_c_try_link "$LINENO"; then :
24079 gcc_cv_math_func_y1=yes
24080 else
24081 gcc_cv_math_func_y1=no
24082 fi
24083 rm -f core conftest.err conftest.$ac_objext \
24084 conftest$ac_exeext conftest.$ac_ext
24085 fi
24086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1" >&5
24087 $as_echo "$gcc_cv_math_func_y1" >&6; }
24088 if test $gcc_cv_math_func_y1 = yes; then
24089
24090 cat >>confdefs.h <<_ACEOF
24091 #define HAVE_Y1 1
24092 _ACEOF
24093
24094 fi
24095
24096
24097
24098
24099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynf" >&5
24100 $as_echo_n "checking for ynf... " >&6; }
24101 if test "${gcc_cv_math_func_ynf+set}" = set; then :
24102 $as_echo_n "(cached) " >&6
24103 else
24104 if test x$gcc_no_link = xyes; then
24105 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24106 fi
24107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24108 /* end confdefs.h. */
24109
24110 #ifdef HAVE_COMPLEX_H
24111 #include <complex.h>
24112 #endif
24113 #ifdef HAVE_MATH_H
24114 #include <math.h>
24115 #endif
24116
24117 int (*ptr)() = (int (*)())ynf;
24118
24119 int
24120 main ()
24121 {
24122 return 0;
24123 }
24124
24125 _ACEOF
24126 if ac_fn_c_try_link "$LINENO"; then :
24127 gcc_cv_math_func_ynf=yes
24128 else
24129 gcc_cv_math_func_ynf=no
24130 fi
24131 rm -f core conftest.err conftest.$ac_objext \
24132 conftest$ac_exeext conftest.$ac_ext
24133 fi
24134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynf" >&5
24135 $as_echo "$gcc_cv_math_func_ynf" >&6; }
24136 if test $gcc_cv_math_func_ynf = yes; then
24137
24138 cat >>confdefs.h <<_ACEOF
24139 #define HAVE_YNF 1
24140 _ACEOF
24141
24142 fi
24143
24144
24145
24146
24147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yn" >&5
24148 $as_echo_n "checking for yn... " >&6; }
24149 if test "${gcc_cv_math_func_yn+set}" = set; then :
24150 $as_echo_n "(cached) " >&6
24151 else
24152 if test x$gcc_no_link = xyes; then
24153 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24154 fi
24155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24156 /* end confdefs.h. */
24157
24158 #ifdef HAVE_COMPLEX_H
24159 #include <complex.h>
24160 #endif
24161 #ifdef HAVE_MATH_H
24162 #include <math.h>
24163 #endif
24164
24165 int (*ptr)() = (int (*)())yn;
24166
24167 int
24168 main ()
24169 {
24170 return 0;
24171 }
24172
24173 _ACEOF
24174 if ac_fn_c_try_link "$LINENO"; then :
24175 gcc_cv_math_func_yn=yes
24176 else
24177 gcc_cv_math_func_yn=no
24178 fi
24179 rm -f core conftest.err conftest.$ac_objext \
24180 conftest$ac_exeext conftest.$ac_ext
24181 fi
24182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_yn" >&5
24183 $as_echo "$gcc_cv_math_func_yn" >&6; }
24184 if test $gcc_cv_math_func_yn = yes; then
24185
24186 cat >>confdefs.h <<_ACEOF
24187 #define HAVE_YN 1
24188 _ACEOF
24189
24190 fi
24191
24192
24193
24194
24195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynl" >&5
24196 $as_echo_n "checking for ynl... " >&6; }
24197 if test "${gcc_cv_math_func_ynl+set}" = set; then :
24198 $as_echo_n "(cached) " >&6
24199 else
24200 if test x$gcc_no_link = xyes; then
24201 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24202 fi
24203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24204 /* end confdefs.h. */
24205
24206 #ifdef HAVE_COMPLEX_H
24207 #include <complex.h>
24208 #endif
24209 #ifdef HAVE_MATH_H
24210 #include <math.h>
24211 #endif
24212
24213 int (*ptr)() = (int (*)())ynl;
24214
24215 int
24216 main ()
24217 {
24218 return 0;
24219 }
24220
24221 _ACEOF
24222 if ac_fn_c_try_link "$LINENO"; then :
24223 gcc_cv_math_func_ynl=yes
24224 else
24225 gcc_cv_math_func_ynl=no
24226 fi
24227 rm -f core conftest.err conftest.$ac_objext \
24228 conftest$ac_exeext conftest.$ac_ext
24229 fi
24230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynl" >&5
24231 $as_echo "$gcc_cv_math_func_ynl" >&6; }
24232 if test $gcc_cv_math_func_ynl = yes; then
24233
24234 cat >>confdefs.h <<_ACEOF
24235 #define HAVE_YNL 1
24236 _ACEOF
24237
24238 fi
24239
24240
24241
24242
24243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgamma" >&5
24244 $as_echo_n "checking for tgamma... " >&6; }
24245 if test "${gcc_cv_math_func_tgamma+set}" = set; then :
24246 $as_echo_n "(cached) " >&6
24247 else
24248 if test x$gcc_no_link = xyes; then
24249 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24250 fi
24251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24252 /* end confdefs.h. */
24253
24254 #ifdef HAVE_COMPLEX_H
24255 #include <complex.h>
24256 #endif
24257 #ifdef HAVE_MATH_H
24258 #include <math.h>
24259 #endif
24260
24261 int (*ptr)() = (int (*)())tgamma;
24262
24263 int
24264 main ()
24265 {
24266 return 0;
24267 }
24268
24269 _ACEOF
24270 if ac_fn_c_try_link "$LINENO"; then :
24271 gcc_cv_math_func_tgamma=yes
24272 else
24273 gcc_cv_math_func_tgamma=no
24274 fi
24275 rm -f core conftest.err conftest.$ac_objext \
24276 conftest$ac_exeext conftest.$ac_ext
24277 fi
24278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgamma" >&5
24279 $as_echo "$gcc_cv_math_func_tgamma" >&6; }
24280 if test $gcc_cv_math_func_tgamma = yes; then
24281
24282 cat >>confdefs.h <<_ACEOF
24283 #define HAVE_TGAMMA 1
24284 _ACEOF
24285
24286 fi
24287
24288
24289
24290
24291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammaf" >&5
24292 $as_echo_n "checking for tgammaf... " >&6; }
24293 if test "${gcc_cv_math_func_tgammaf+set}" = set; then :
24294 $as_echo_n "(cached) " >&6
24295 else
24296 if test x$gcc_no_link = xyes; then
24297 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24298 fi
24299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24300 /* end confdefs.h. */
24301
24302 #ifdef HAVE_COMPLEX_H
24303 #include <complex.h>
24304 #endif
24305 #ifdef HAVE_MATH_H
24306 #include <math.h>
24307 #endif
24308
24309 int (*ptr)() = (int (*)())tgammaf;
24310
24311 int
24312 main ()
24313 {
24314 return 0;
24315 }
24316
24317 _ACEOF
24318 if ac_fn_c_try_link "$LINENO"; then :
24319 gcc_cv_math_func_tgammaf=yes
24320 else
24321 gcc_cv_math_func_tgammaf=no
24322 fi
24323 rm -f core conftest.err conftest.$ac_objext \
24324 conftest$ac_exeext conftest.$ac_ext
24325 fi
24326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammaf" >&5
24327 $as_echo "$gcc_cv_math_func_tgammaf" >&6; }
24328 if test $gcc_cv_math_func_tgammaf = yes; then
24329
24330 cat >>confdefs.h <<_ACEOF
24331 #define HAVE_TGAMMAF 1
24332 _ACEOF
24333
24334 fi
24335
24336
24337
24338
24339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgamma" >&5
24340 $as_echo_n "checking for lgamma... " >&6; }
24341 if test "${gcc_cv_math_func_lgamma+set}" = set; then :
24342 $as_echo_n "(cached) " >&6
24343 else
24344 if test x$gcc_no_link = xyes; then
24345 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24346 fi
24347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24348 /* end confdefs.h. */
24349
24350 #ifdef HAVE_COMPLEX_H
24351 #include <complex.h>
24352 #endif
24353 #ifdef HAVE_MATH_H
24354 #include <math.h>
24355 #endif
24356
24357 int (*ptr)() = (int (*)())lgamma;
24358
24359 int
24360 main ()
24361 {
24362 return 0;
24363 }
24364
24365 _ACEOF
24366 if ac_fn_c_try_link "$LINENO"; then :
24367 gcc_cv_math_func_lgamma=yes
24368 else
24369 gcc_cv_math_func_lgamma=no
24370 fi
24371 rm -f core conftest.err conftest.$ac_objext \
24372 conftest$ac_exeext conftest.$ac_ext
24373 fi
24374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgamma" >&5
24375 $as_echo "$gcc_cv_math_func_lgamma" >&6; }
24376 if test $gcc_cv_math_func_lgamma = yes; then
24377
24378 cat >>confdefs.h <<_ACEOF
24379 #define HAVE_LGAMMA 1
24380 _ACEOF
24381
24382 fi
24383
24384
24385
24386
24387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammaf" >&5
24388 $as_echo_n "checking for lgammaf... " >&6; }
24389 if test "${gcc_cv_math_func_lgammaf+set}" = set; then :
24390 $as_echo_n "(cached) " >&6
24391 else
24392 if test x$gcc_no_link = xyes; then
24393 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24394 fi
24395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24396 /* end confdefs.h. */
24397
24398 #ifdef HAVE_COMPLEX_H
24399 #include <complex.h>
24400 #endif
24401 #ifdef HAVE_MATH_H
24402 #include <math.h>
24403 #endif
24404
24405 int (*ptr)() = (int (*)())lgammaf;
24406
24407 int
24408 main ()
24409 {
24410 return 0;
24411 }
24412
24413 _ACEOF
24414 if ac_fn_c_try_link "$LINENO"; then :
24415 gcc_cv_math_func_lgammaf=yes
24416 else
24417 gcc_cv_math_func_lgammaf=no
24418 fi
24419 rm -f core conftest.err conftest.$ac_objext \
24420 conftest$ac_exeext conftest.$ac_ext
24421 fi
24422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammaf" >&5
24423 $as_echo "$gcc_cv_math_func_lgammaf" >&6; }
24424 if test $gcc_cv_math_func_lgammaf = yes; then
24425
24426 cat >>confdefs.h <<_ACEOF
24427 #define HAVE_LGAMMAF 1
24428 _ACEOF
24429
24430 fi
24431
24432
24433 # Check for GFORTRAN_C99_1.1 funcs
24434
24435
24436
24437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacos" >&5
24438 $as_echo_n "checking for cacos... " >&6; }
24439 if test "${gcc_cv_math_func_cacos+set}" = set; then :
24440 $as_echo_n "(cached) " >&6
24441 else
24442 if test x$gcc_no_link = xyes; then
24443 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24444 fi
24445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24446 /* end confdefs.h. */
24447
24448 #ifdef HAVE_COMPLEX_H
24449 #include <complex.h>
24450 #endif
24451 #ifdef HAVE_MATH_H
24452 #include <math.h>
24453 #endif
24454
24455 int (*ptr)() = (int (*)())cacos;
24456
24457 int
24458 main ()
24459 {
24460 return 0;
24461 }
24462
24463 _ACEOF
24464 if ac_fn_c_try_link "$LINENO"; then :
24465 gcc_cv_math_func_cacos=yes
24466 else
24467 gcc_cv_math_func_cacos=no
24468 fi
24469 rm -f core conftest.err conftest.$ac_objext \
24470 conftest$ac_exeext conftest.$ac_ext
24471 fi
24472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacos" >&5
24473 $as_echo "$gcc_cv_math_func_cacos" >&6; }
24474 if test $gcc_cv_math_func_cacos = yes; then
24475
24476 cat >>confdefs.h <<_ACEOF
24477 #define HAVE_CACOS 1
24478 _ACEOF
24479
24480 fi
24481
24482
24483
24484
24485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosf" >&5
24486 $as_echo_n "checking for cacosf... " >&6; }
24487 if test "${gcc_cv_math_func_cacosf+set}" = set; then :
24488 $as_echo_n "(cached) " >&6
24489 else
24490 if test x$gcc_no_link = xyes; then
24491 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24492 fi
24493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24494 /* end confdefs.h. */
24495
24496 #ifdef HAVE_COMPLEX_H
24497 #include <complex.h>
24498 #endif
24499 #ifdef HAVE_MATH_H
24500 #include <math.h>
24501 #endif
24502
24503 int (*ptr)() = (int (*)())cacosf;
24504
24505 int
24506 main ()
24507 {
24508 return 0;
24509 }
24510
24511 _ACEOF
24512 if ac_fn_c_try_link "$LINENO"; then :
24513 gcc_cv_math_func_cacosf=yes
24514 else
24515 gcc_cv_math_func_cacosf=no
24516 fi
24517 rm -f core conftest.err conftest.$ac_objext \
24518 conftest$ac_exeext conftest.$ac_ext
24519 fi
24520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosf" >&5
24521 $as_echo "$gcc_cv_math_func_cacosf" >&6; }
24522 if test $gcc_cv_math_func_cacosf = yes; then
24523
24524 cat >>confdefs.h <<_ACEOF
24525 #define HAVE_CACOSF 1
24526 _ACEOF
24527
24528 fi
24529
24530
24531
24532
24533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosh" >&5
24534 $as_echo_n "checking for cacosh... " >&6; }
24535 if test "${gcc_cv_math_func_cacosh+set}" = set; then :
24536 $as_echo_n "(cached) " >&6
24537 else
24538 if test x$gcc_no_link = xyes; then
24539 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24540 fi
24541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24542 /* end confdefs.h. */
24543
24544 #ifdef HAVE_COMPLEX_H
24545 #include <complex.h>
24546 #endif
24547 #ifdef HAVE_MATH_H
24548 #include <math.h>
24549 #endif
24550
24551 int (*ptr)() = (int (*)())cacosh;
24552
24553 int
24554 main ()
24555 {
24556 return 0;
24557 }
24558
24559 _ACEOF
24560 if ac_fn_c_try_link "$LINENO"; then :
24561 gcc_cv_math_func_cacosh=yes
24562 else
24563 gcc_cv_math_func_cacosh=no
24564 fi
24565 rm -f core conftest.err conftest.$ac_objext \
24566 conftest$ac_exeext conftest.$ac_ext
24567 fi
24568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosh" >&5
24569 $as_echo "$gcc_cv_math_func_cacosh" >&6; }
24570 if test $gcc_cv_math_func_cacosh = yes; then
24571
24572 cat >>confdefs.h <<_ACEOF
24573 #define HAVE_CACOSH 1
24574 _ACEOF
24575
24576 fi
24577
24578
24579
24580
24581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshf" >&5
24582 $as_echo_n "checking for cacoshf... " >&6; }
24583 if test "${gcc_cv_math_func_cacoshf+set}" = set; then :
24584 $as_echo_n "(cached) " >&6
24585 else
24586 if test x$gcc_no_link = xyes; then
24587 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24588 fi
24589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24590 /* end confdefs.h. */
24591
24592 #ifdef HAVE_COMPLEX_H
24593 #include <complex.h>
24594 #endif
24595 #ifdef HAVE_MATH_H
24596 #include <math.h>
24597 #endif
24598
24599 int (*ptr)() = (int (*)())cacoshf;
24600
24601 int
24602 main ()
24603 {
24604 return 0;
24605 }
24606
24607 _ACEOF
24608 if ac_fn_c_try_link "$LINENO"; then :
24609 gcc_cv_math_func_cacoshf=yes
24610 else
24611 gcc_cv_math_func_cacoshf=no
24612 fi
24613 rm -f core conftest.err conftest.$ac_objext \
24614 conftest$ac_exeext conftest.$ac_ext
24615 fi
24616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshf" >&5
24617 $as_echo "$gcc_cv_math_func_cacoshf" >&6; }
24618 if test $gcc_cv_math_func_cacoshf = yes; then
24619
24620 cat >>confdefs.h <<_ACEOF
24621 #define HAVE_CACOSHF 1
24622 _ACEOF
24623
24624 fi
24625
24626
24627
24628
24629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshl" >&5
24630 $as_echo_n "checking for cacoshl... " >&6; }
24631 if test "${gcc_cv_math_func_cacoshl+set}" = set; then :
24632 $as_echo_n "(cached) " >&6
24633 else
24634 if test x$gcc_no_link = xyes; then
24635 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24636 fi
24637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24638 /* end confdefs.h. */
24639
24640 #ifdef HAVE_COMPLEX_H
24641 #include <complex.h>
24642 #endif
24643 #ifdef HAVE_MATH_H
24644 #include <math.h>
24645 #endif
24646
24647 int (*ptr)() = (int (*)())cacoshl;
24648
24649 int
24650 main ()
24651 {
24652 return 0;
24653 }
24654
24655 _ACEOF
24656 if ac_fn_c_try_link "$LINENO"; then :
24657 gcc_cv_math_func_cacoshl=yes
24658 else
24659 gcc_cv_math_func_cacoshl=no
24660 fi
24661 rm -f core conftest.err conftest.$ac_objext \
24662 conftest$ac_exeext conftest.$ac_ext
24663 fi
24664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshl" >&5
24665 $as_echo "$gcc_cv_math_func_cacoshl" >&6; }
24666 if test $gcc_cv_math_func_cacoshl = yes; then
24667
24668 cat >>confdefs.h <<_ACEOF
24669 #define HAVE_CACOSHL 1
24670 _ACEOF
24671
24672 fi
24673
24674
24675
24676
24677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosl" >&5
24678 $as_echo_n "checking for cacosl... " >&6; }
24679 if test "${gcc_cv_math_func_cacosl+set}" = set; then :
24680 $as_echo_n "(cached) " >&6
24681 else
24682 if test x$gcc_no_link = xyes; then
24683 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24684 fi
24685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24686 /* end confdefs.h. */
24687
24688 #ifdef HAVE_COMPLEX_H
24689 #include <complex.h>
24690 #endif
24691 #ifdef HAVE_MATH_H
24692 #include <math.h>
24693 #endif
24694
24695 int (*ptr)() = (int (*)())cacosl;
24696
24697 int
24698 main ()
24699 {
24700 return 0;
24701 }
24702
24703 _ACEOF
24704 if ac_fn_c_try_link "$LINENO"; then :
24705 gcc_cv_math_func_cacosl=yes
24706 else
24707 gcc_cv_math_func_cacosl=no
24708 fi
24709 rm -f core conftest.err conftest.$ac_objext \
24710 conftest$ac_exeext conftest.$ac_ext
24711 fi
24712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosl" >&5
24713 $as_echo "$gcc_cv_math_func_cacosl" >&6; }
24714 if test $gcc_cv_math_func_cacosl = yes; then
24715
24716 cat >>confdefs.h <<_ACEOF
24717 #define HAVE_CACOSL 1
24718 _ACEOF
24719
24720 fi
24721
24722
24723
24724
24725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casin" >&5
24726 $as_echo_n "checking for casin... " >&6; }
24727 if test "${gcc_cv_math_func_casin+set}" = set; then :
24728 $as_echo_n "(cached) " >&6
24729 else
24730 if test x$gcc_no_link = xyes; then
24731 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24732 fi
24733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24734 /* end confdefs.h. */
24735
24736 #ifdef HAVE_COMPLEX_H
24737 #include <complex.h>
24738 #endif
24739 #ifdef HAVE_MATH_H
24740 #include <math.h>
24741 #endif
24742
24743 int (*ptr)() = (int (*)())casin;
24744
24745 int
24746 main ()
24747 {
24748 return 0;
24749 }
24750
24751 _ACEOF
24752 if ac_fn_c_try_link "$LINENO"; then :
24753 gcc_cv_math_func_casin=yes
24754 else
24755 gcc_cv_math_func_casin=no
24756 fi
24757 rm -f core conftest.err conftest.$ac_objext \
24758 conftest$ac_exeext conftest.$ac_ext
24759 fi
24760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casin" >&5
24761 $as_echo "$gcc_cv_math_func_casin" >&6; }
24762 if test $gcc_cv_math_func_casin = yes; then
24763
24764 cat >>confdefs.h <<_ACEOF
24765 #define HAVE_CASIN 1
24766 _ACEOF
24767
24768 fi
24769
24770
24771
24772
24773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinf" >&5
24774 $as_echo_n "checking for casinf... " >&6; }
24775 if test "${gcc_cv_math_func_casinf+set}" = set; then :
24776 $as_echo_n "(cached) " >&6
24777 else
24778 if test x$gcc_no_link = xyes; then
24779 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24780 fi
24781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24782 /* end confdefs.h. */
24783
24784 #ifdef HAVE_COMPLEX_H
24785 #include <complex.h>
24786 #endif
24787 #ifdef HAVE_MATH_H
24788 #include <math.h>
24789 #endif
24790
24791 int (*ptr)() = (int (*)())casinf;
24792
24793 int
24794 main ()
24795 {
24796 return 0;
24797 }
24798
24799 _ACEOF
24800 if ac_fn_c_try_link "$LINENO"; then :
24801 gcc_cv_math_func_casinf=yes
24802 else
24803 gcc_cv_math_func_casinf=no
24804 fi
24805 rm -f core conftest.err conftest.$ac_objext \
24806 conftest$ac_exeext conftest.$ac_ext
24807 fi
24808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinf" >&5
24809 $as_echo "$gcc_cv_math_func_casinf" >&6; }
24810 if test $gcc_cv_math_func_casinf = yes; then
24811
24812 cat >>confdefs.h <<_ACEOF
24813 #define HAVE_CASINF 1
24814 _ACEOF
24815
24816 fi
24817
24818
24819
24820
24821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinh" >&5
24822 $as_echo_n "checking for casinh... " >&6; }
24823 if test "${gcc_cv_math_func_casinh+set}" = set; then :
24824 $as_echo_n "(cached) " >&6
24825 else
24826 if test x$gcc_no_link = xyes; then
24827 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24828 fi
24829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24830 /* end confdefs.h. */
24831
24832 #ifdef HAVE_COMPLEX_H
24833 #include <complex.h>
24834 #endif
24835 #ifdef HAVE_MATH_H
24836 #include <math.h>
24837 #endif
24838
24839 int (*ptr)() = (int (*)())casinh;
24840
24841 int
24842 main ()
24843 {
24844 return 0;
24845 }
24846
24847 _ACEOF
24848 if ac_fn_c_try_link "$LINENO"; then :
24849 gcc_cv_math_func_casinh=yes
24850 else
24851 gcc_cv_math_func_casinh=no
24852 fi
24853 rm -f core conftest.err conftest.$ac_objext \
24854 conftest$ac_exeext conftest.$ac_ext
24855 fi
24856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinh" >&5
24857 $as_echo "$gcc_cv_math_func_casinh" >&6; }
24858 if test $gcc_cv_math_func_casinh = yes; then
24859
24860 cat >>confdefs.h <<_ACEOF
24861 #define HAVE_CASINH 1
24862 _ACEOF
24863
24864 fi
24865
24866
24867
24868
24869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhf" >&5
24870 $as_echo_n "checking for casinhf... " >&6; }
24871 if test "${gcc_cv_math_func_casinhf+set}" = set; then :
24872 $as_echo_n "(cached) " >&6
24873 else
24874 if test x$gcc_no_link = xyes; then
24875 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24876 fi
24877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24878 /* end confdefs.h. */
24879
24880 #ifdef HAVE_COMPLEX_H
24881 #include <complex.h>
24882 #endif
24883 #ifdef HAVE_MATH_H
24884 #include <math.h>
24885 #endif
24886
24887 int (*ptr)() = (int (*)())casinhf;
24888
24889 int
24890 main ()
24891 {
24892 return 0;
24893 }
24894
24895 _ACEOF
24896 if ac_fn_c_try_link "$LINENO"; then :
24897 gcc_cv_math_func_casinhf=yes
24898 else
24899 gcc_cv_math_func_casinhf=no
24900 fi
24901 rm -f core conftest.err conftest.$ac_objext \
24902 conftest$ac_exeext conftest.$ac_ext
24903 fi
24904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhf" >&5
24905 $as_echo "$gcc_cv_math_func_casinhf" >&6; }
24906 if test $gcc_cv_math_func_casinhf = yes; then
24907
24908 cat >>confdefs.h <<_ACEOF
24909 #define HAVE_CASINHF 1
24910 _ACEOF
24911
24912 fi
24913
24914
24915
24916
24917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhl" >&5
24918 $as_echo_n "checking for casinhl... " >&6; }
24919 if test "${gcc_cv_math_func_casinhl+set}" = set; then :
24920 $as_echo_n "(cached) " >&6
24921 else
24922 if test x$gcc_no_link = xyes; then
24923 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24924 fi
24925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24926 /* end confdefs.h. */
24927
24928 #ifdef HAVE_COMPLEX_H
24929 #include <complex.h>
24930 #endif
24931 #ifdef HAVE_MATH_H
24932 #include <math.h>
24933 #endif
24934
24935 int (*ptr)() = (int (*)())casinhl;
24936
24937 int
24938 main ()
24939 {
24940 return 0;
24941 }
24942
24943 _ACEOF
24944 if ac_fn_c_try_link "$LINENO"; then :
24945 gcc_cv_math_func_casinhl=yes
24946 else
24947 gcc_cv_math_func_casinhl=no
24948 fi
24949 rm -f core conftest.err conftest.$ac_objext \
24950 conftest$ac_exeext conftest.$ac_ext
24951 fi
24952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhl" >&5
24953 $as_echo "$gcc_cv_math_func_casinhl" >&6; }
24954 if test $gcc_cv_math_func_casinhl = yes; then
24955
24956 cat >>confdefs.h <<_ACEOF
24957 #define HAVE_CASINHL 1
24958 _ACEOF
24959
24960 fi
24961
24962
24963
24964
24965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinl" >&5
24966 $as_echo_n "checking for casinl... " >&6; }
24967 if test "${gcc_cv_math_func_casinl+set}" = set; then :
24968 $as_echo_n "(cached) " >&6
24969 else
24970 if test x$gcc_no_link = xyes; then
24971 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24972 fi
24973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24974 /* end confdefs.h. */
24975
24976 #ifdef HAVE_COMPLEX_H
24977 #include <complex.h>
24978 #endif
24979 #ifdef HAVE_MATH_H
24980 #include <math.h>
24981 #endif
24982
24983 int (*ptr)() = (int (*)())casinl;
24984
24985 int
24986 main ()
24987 {
24988 return 0;
24989 }
24990
24991 _ACEOF
24992 if ac_fn_c_try_link "$LINENO"; then :
24993 gcc_cv_math_func_casinl=yes
24994 else
24995 gcc_cv_math_func_casinl=no
24996 fi
24997 rm -f core conftest.err conftest.$ac_objext \
24998 conftest$ac_exeext conftest.$ac_ext
24999 fi
25000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinl" >&5
25001 $as_echo "$gcc_cv_math_func_casinl" >&6; }
25002 if test $gcc_cv_math_func_casinl = yes; then
25003
25004 cat >>confdefs.h <<_ACEOF
25005 #define HAVE_CASINL 1
25006 _ACEOF
25007
25008 fi
25009
25010
25011
25012
25013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catan" >&5
25014 $as_echo_n "checking for catan... " >&6; }
25015 if test "${gcc_cv_math_func_catan+set}" = set; then :
25016 $as_echo_n "(cached) " >&6
25017 else
25018 if test x$gcc_no_link = xyes; then
25019 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25020 fi
25021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25022 /* end confdefs.h. */
25023
25024 #ifdef HAVE_COMPLEX_H
25025 #include <complex.h>
25026 #endif
25027 #ifdef HAVE_MATH_H
25028 #include <math.h>
25029 #endif
25030
25031 int (*ptr)() = (int (*)())catan;
25032
25033 int
25034 main ()
25035 {
25036 return 0;
25037 }
25038
25039 _ACEOF
25040 if ac_fn_c_try_link "$LINENO"; then :
25041 gcc_cv_math_func_catan=yes
25042 else
25043 gcc_cv_math_func_catan=no
25044 fi
25045 rm -f core conftest.err conftest.$ac_objext \
25046 conftest$ac_exeext conftest.$ac_ext
25047 fi
25048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catan" >&5
25049 $as_echo "$gcc_cv_math_func_catan" >&6; }
25050 if test $gcc_cv_math_func_catan = yes; then
25051
25052 cat >>confdefs.h <<_ACEOF
25053 #define HAVE_CATAN 1
25054 _ACEOF
25055
25056 fi
25057
25058
25059
25060
25061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanf" >&5
25062 $as_echo_n "checking for catanf... " >&6; }
25063 if test "${gcc_cv_math_func_catanf+set}" = set; then :
25064 $as_echo_n "(cached) " >&6
25065 else
25066 if test x$gcc_no_link = xyes; then
25067 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25068 fi
25069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25070 /* end confdefs.h. */
25071
25072 #ifdef HAVE_COMPLEX_H
25073 #include <complex.h>
25074 #endif
25075 #ifdef HAVE_MATH_H
25076 #include <math.h>
25077 #endif
25078
25079 int (*ptr)() = (int (*)())catanf;
25080
25081 int
25082 main ()
25083 {
25084 return 0;
25085 }
25086
25087 _ACEOF
25088 if ac_fn_c_try_link "$LINENO"; then :
25089 gcc_cv_math_func_catanf=yes
25090 else
25091 gcc_cv_math_func_catanf=no
25092 fi
25093 rm -f core conftest.err conftest.$ac_objext \
25094 conftest$ac_exeext conftest.$ac_ext
25095 fi
25096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanf" >&5
25097 $as_echo "$gcc_cv_math_func_catanf" >&6; }
25098 if test $gcc_cv_math_func_catanf = yes; then
25099
25100 cat >>confdefs.h <<_ACEOF
25101 #define HAVE_CATANF 1
25102 _ACEOF
25103
25104 fi
25105
25106
25107
25108
25109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanh" >&5
25110 $as_echo_n "checking for catanh... " >&6; }
25111 if test "${gcc_cv_math_func_catanh+set}" = set; then :
25112 $as_echo_n "(cached) " >&6
25113 else
25114 if test x$gcc_no_link = xyes; then
25115 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25116 fi
25117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25118 /* end confdefs.h. */
25119
25120 #ifdef HAVE_COMPLEX_H
25121 #include <complex.h>
25122 #endif
25123 #ifdef HAVE_MATH_H
25124 #include <math.h>
25125 #endif
25126
25127 int (*ptr)() = (int (*)())catanh;
25128
25129 int
25130 main ()
25131 {
25132 return 0;
25133 }
25134
25135 _ACEOF
25136 if ac_fn_c_try_link "$LINENO"; then :
25137 gcc_cv_math_func_catanh=yes
25138 else
25139 gcc_cv_math_func_catanh=no
25140 fi
25141 rm -f core conftest.err conftest.$ac_objext \
25142 conftest$ac_exeext conftest.$ac_ext
25143 fi
25144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanh" >&5
25145 $as_echo "$gcc_cv_math_func_catanh" >&6; }
25146 if test $gcc_cv_math_func_catanh = yes; then
25147
25148 cat >>confdefs.h <<_ACEOF
25149 #define HAVE_CATANH 1
25150 _ACEOF
25151
25152 fi
25153
25154
25155
25156
25157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhf" >&5
25158 $as_echo_n "checking for catanhf... " >&6; }
25159 if test "${gcc_cv_math_func_catanhf+set}" = set; then :
25160 $as_echo_n "(cached) " >&6
25161 else
25162 if test x$gcc_no_link = xyes; then
25163 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25164 fi
25165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25166 /* end confdefs.h. */
25167
25168 #ifdef HAVE_COMPLEX_H
25169 #include <complex.h>
25170 #endif
25171 #ifdef HAVE_MATH_H
25172 #include <math.h>
25173 #endif
25174
25175 int (*ptr)() = (int (*)())catanhf;
25176
25177 int
25178 main ()
25179 {
25180 return 0;
25181 }
25182
25183 _ACEOF
25184 if ac_fn_c_try_link "$LINENO"; then :
25185 gcc_cv_math_func_catanhf=yes
25186 else
25187 gcc_cv_math_func_catanhf=no
25188 fi
25189 rm -f core conftest.err conftest.$ac_objext \
25190 conftest$ac_exeext conftest.$ac_ext
25191 fi
25192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhf" >&5
25193 $as_echo "$gcc_cv_math_func_catanhf" >&6; }
25194 if test $gcc_cv_math_func_catanhf = yes; then
25195
25196 cat >>confdefs.h <<_ACEOF
25197 #define HAVE_CATANHF 1
25198 _ACEOF
25199
25200 fi
25201
25202
25203
25204
25205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhl" >&5
25206 $as_echo_n "checking for catanhl... " >&6; }
25207 if test "${gcc_cv_math_func_catanhl+set}" = set; then :
25208 $as_echo_n "(cached) " >&6
25209 else
25210 if test x$gcc_no_link = xyes; then
25211 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25212 fi
25213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25214 /* end confdefs.h. */
25215
25216 #ifdef HAVE_COMPLEX_H
25217 #include <complex.h>
25218 #endif
25219 #ifdef HAVE_MATH_H
25220 #include <math.h>
25221 #endif
25222
25223 int (*ptr)() = (int (*)())catanhl;
25224
25225 int
25226 main ()
25227 {
25228 return 0;
25229 }
25230
25231 _ACEOF
25232 if ac_fn_c_try_link "$LINENO"; then :
25233 gcc_cv_math_func_catanhl=yes
25234 else
25235 gcc_cv_math_func_catanhl=no
25236 fi
25237 rm -f core conftest.err conftest.$ac_objext \
25238 conftest$ac_exeext conftest.$ac_ext
25239 fi
25240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhl" >&5
25241 $as_echo "$gcc_cv_math_func_catanhl" >&6; }
25242 if test $gcc_cv_math_func_catanhl = yes; then
25243
25244 cat >>confdefs.h <<_ACEOF
25245 #define HAVE_CATANHL 1
25246 _ACEOF
25247
25248 fi
25249
25250
25251
25252
25253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanl" >&5
25254 $as_echo_n "checking for catanl... " >&6; }
25255 if test "${gcc_cv_math_func_catanl+set}" = set; then :
25256 $as_echo_n "(cached) " >&6
25257 else
25258 if test x$gcc_no_link = xyes; then
25259 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25260 fi
25261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25262 /* end confdefs.h. */
25263
25264 #ifdef HAVE_COMPLEX_H
25265 #include <complex.h>
25266 #endif
25267 #ifdef HAVE_MATH_H
25268 #include <math.h>
25269 #endif
25270
25271 int (*ptr)() = (int (*)())catanl;
25272
25273 int
25274 main ()
25275 {
25276 return 0;
25277 }
25278
25279 _ACEOF
25280 if ac_fn_c_try_link "$LINENO"; then :
25281 gcc_cv_math_func_catanl=yes
25282 else
25283 gcc_cv_math_func_catanl=no
25284 fi
25285 rm -f core conftest.err conftest.$ac_objext \
25286 conftest$ac_exeext conftest.$ac_ext
25287 fi
25288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanl" >&5
25289 $as_echo "$gcc_cv_math_func_catanl" >&6; }
25290 if test $gcc_cv_math_func_catanl = yes; then
25291
25292 cat >>confdefs.h <<_ACEOF
25293 #define HAVE_CATANL 1
25294 _ACEOF
25295
25296 fi
25297
25298
25299 # On AIX, clog is present in libm as __clog
25300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __clog in -lm" >&5
25301 $as_echo_n "checking for __clog in -lm... " >&6; }
25302 if test "${ac_cv_lib_m___clog+set}" = set; then :
25303 $as_echo_n "(cached) " >&6
25304 else
25305 ac_check_lib_save_LIBS=$LIBS
25306 LIBS="-lm $LIBS"
25307 if test x$gcc_no_link = xyes; then
25308 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25309 fi
25310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25311 /* end confdefs.h. */
25312
25313 /* Override any GCC internal prototype to avoid an error.
25314 Use char because int might match the return type of a GCC
25315 builtin and then its argument prototype would still apply. */
25316 #ifdef __cplusplus
25317 extern "C"
25318 #endif
25319 char __clog ();
25320 int
25321 main ()
25322 {
25323 return __clog ();
25324 ;
25325 return 0;
25326 }
25327 _ACEOF
25328 if ac_fn_c_try_link "$LINENO"; then :
25329 ac_cv_lib_m___clog=yes
25330 else
25331 ac_cv_lib_m___clog=no
25332 fi
25333 rm -f core conftest.err conftest.$ac_objext \
25334 conftest$ac_exeext conftest.$ac_ext
25335 LIBS=$ac_check_lib_save_LIBS
25336 fi
25337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m___clog" >&5
25338 $as_echo "$ac_cv_lib_m___clog" >&6; }
25339 if test "x$ac_cv_lib_m___clog" = x""yes; then :
25340
25341 $as_echo "#define HAVE_CLOG 1" >>confdefs.h
25342
25343 fi
25344
25345
25346 # Check whether the system has a working stat()
25347
25348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target stat is reliable" >&5
25349 $as_echo_n "checking whether the target stat is reliable... " >&6; }
25350 if test "${libgfor_cv_have_working_stat+set}" = set; then :
25351 $as_echo_n "(cached) " >&6
25352 else
25353
25354 if test "$cross_compiling" = yes; then :
25355
25356 case "${target}" in
25357 *mingw*) libgfor_cv_have_working_stat=no ;;
25358 *) libgfor_cv_have_working_stat=yes;;
25359 esac
25360 else
25361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25362 /* end confdefs.h. */
25363
25364 #include <stdio.h>
25365 #include <sys/types.h>
25366 #include <sys/stat.h>
25367 #include <unistd.h>
25368
25369 int main ()
25370 {
25371 FILE *f, *g;
25372 struct stat st1, st2;
25373
25374 f = fopen ("foo", "w");
25375 g = fopen ("bar", "w");
25376 if (stat ("foo", &st1) != 0 || stat ("bar", &st2))
25377 return 1;
25378 if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino)
25379 return 1;
25380 fclose(f);
25381 fclose(g);
25382 return 0;
25383 }
25384 _ACEOF
25385 if ac_fn_c_try_run "$LINENO"; then :
25386 libgfor_cv_have_working_stat=yes
25387 else
25388 libgfor_cv_have_working_stat=no
25389 fi
25390 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25391 conftest.$ac_objext conftest.beam conftest.$ac_ext
25392 fi
25393
25394 fi
25395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_working_stat" >&5
25396 $as_echo "$libgfor_cv_have_working_stat" >&6; }
25397 if test x"$libgfor_cv_have_working_stat" = xyes; then
25398
25399 $as_echo "#define HAVE_WORKING_STAT 1" >>confdefs.h
25400
25401 fi
25402
25403 # Check whether __mingw_snprintf() is present
25404
25405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __mingw_snprintf is present" >&5
25406 $as_echo_n "checking whether __mingw_snprintf is present... " >&6; }
25407 if test "${libgfor_cv_have_mingw_snprintf+set}" = set; then :
25408 $as_echo_n "(cached) " >&6
25409 else
25410
25411 if test x$gcc_no_link = xyes; then
25412 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25413 fi
25414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25415 /* end confdefs.h. */
25416
25417 #include <stdio.h>
25418 extern int __mingw_snprintf (char *, size_t, const char *, ...);
25419
25420 int
25421 main ()
25422 {
25423
25424 __mingw_snprintf (NULL, 0, "%d\n", 1);
25425
25426 ;
25427 return 0;
25428 }
25429 _ACEOF
25430 if ac_fn_c_try_link "$LINENO"; then :
25431 eval "libgfor_cv_have_mingw_snprintf=yes"
25432 else
25433 eval "libgfor_cv_have_mingw_snprintf=no"
25434 fi
25435 rm -f core conftest.err conftest.$ac_objext \
25436 conftest$ac_exeext conftest.$ac_ext
25437
25438 fi
25439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_mingw_snprintf" >&5
25440 $as_echo "$libgfor_cv_have_mingw_snprintf" >&6; }
25441 if test x"$libgfor_cv_have_mingw_snprintf" = xyes; then
25442
25443 $as_echo "#define HAVE_MINGW_SNPRINTF 1" >>confdefs.h
25444
25445 fi
25446
25447
25448 # Check whether libquadmath should be used
25449 # Check whether --enable-libquadmath-support was given.
25450 if test "${enable_libquadmath_support+set}" = set; then :
25451 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
25452 else
25453 ENABLE_LIBQUADMATH_SUPPORT=yes
25454 fi
25455
25456 enable_libquadmath_support=
25457 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
25458 enable_libquadmath_support=no
25459 fi
25460
25461 # Check whether we have a __float128 type, depends on enable_libquadmath_support
25462
25463 LIBQUADSPEC=
25464
25465 if test "x$enable_libquadmath_support" != xno; then
25466
25467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a usable __float128 type" >&5
25468 $as_echo_n "checking whether we have a usable __float128 type... " >&6; }
25469 if test "${libgfor_cv_have_float128+set}" = set; then :
25470 $as_echo_n "(cached) " >&6
25471 else
25472
25473 if test x$gcc_no_link = xyes; then
25474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25475 /* end confdefs.h. */
25476
25477 typedef _Complex float __attribute__((mode(TC))) __complex128;
25478
25479 __float128 foo (__float128 x)
25480 {
25481
25482 __complex128 z1, z2;
25483
25484 z1 = x;
25485 z2 = x / 7.Q;
25486 z2 /= z1;
25487
25488 return (__float128) z2;
25489 }
25490
25491 __float128 bar (__float128 x)
25492 {
25493 return x * __builtin_huge_valq ();
25494 }
25495
25496 int
25497 main ()
25498 {
25499
25500 foo (1.2Q);
25501 bar (1.2Q);
25502
25503 ;
25504 return 0;
25505 }
25506 _ACEOF
25507 if ac_fn_c_try_compile "$LINENO"; then :
25508
25509 libgfor_cv_have_float128=yes
25510
25511 else
25512
25513 libgfor_cv_have_float128=no
25514
25515 fi
25516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25517 else
25518 if test x$gcc_no_link = xyes; then
25519 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25520 fi
25521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25522 /* end confdefs.h. */
25523
25524 typedef _Complex float __attribute__((mode(TC))) __complex128;
25525
25526 __float128 foo (__float128 x)
25527 {
25528
25529 __complex128 z1, z2;
25530
25531 z1 = x;
25532 z2 = x / 7.Q;
25533 z2 /= z1;
25534
25535 return (__float128) z2;
25536 }
25537
25538 __float128 bar (__float128 x)
25539 {
25540 return x * __builtin_huge_valq ();
25541 }
25542
25543 int
25544 main ()
25545 {
25546
25547 foo (1.2Q);
25548 bar (1.2Q);
25549
25550 ;
25551 return 0;
25552 }
25553 _ACEOF
25554 if ac_fn_c_try_link "$LINENO"; then :
25555
25556 libgfor_cv_have_float128=yes
25557
25558 else
25559
25560 libgfor_cv_have_float128=no
25561
25562 fi
25563 rm -f core conftest.err conftest.$ac_objext \
25564 conftest$ac_exeext conftest.$ac_ext
25565 fi
25566 fi
25567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_float128" >&5
25568 $as_echo "$libgfor_cv_have_float128" >&6; }
25569
25570 if test "x$libgfor_cv_have_float128" = xyes; then
25571
25572 $as_echo "#define HAVE_FLOAT128 1" >>confdefs.h
25573
25574
25575 ac_xsave_c_werror_flag=$ac_c_werror_flag
25576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --as-needed/-z ignore works" >&5
25577 $as_echo_n "checking whether --as-needed/-z ignore works... " >&6; }
25578 if test "${libgfor_cv_have_as_needed+set}" = set; then :
25579 $as_echo_n "(cached) " >&6
25580 else
25581
25582 # Test for native Solaris options first.
25583 # No whitespace after -z to pass it through -Wl.
25584 libgfor_cv_as_needed_option="-zignore"
25585 libgfor_cv_no_as_needed_option="-zrecord"
25586 save_LDFLAGS="$LDFLAGS"
25587 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
25588 libgfor_cv_have_as_needed=no
25589
25590 ac_c_werror_flag=yes
25591 if test x$gcc_no_link = xyes; then
25592 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25593 fi
25594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25595 /* end confdefs.h. */
25596
25597 int
25598 main ()
25599 {
25600
25601 ;
25602 return 0;
25603 }
25604 _ACEOF
25605 if ac_fn_c_try_link "$LINENO"; then :
25606 libgfor_cv_have_as_needed=yes
25607 else
25608 libgfor_cv_have_as_needed=no
25609 fi
25610 rm -f core conftest.err conftest.$ac_objext \
25611 conftest$ac_exeext conftest.$ac_ext
25612 LDFLAGS="$save_LDFLAGS"
25613 if test "x$libgfor_cv_have_as_needed" = xno; then
25614 libgfor_cv_as_needed_option="--as-needed"
25615 libgfor_cv_no_as_needed_option="--no-as-needed"
25616 save_LDFLAGS="$LDFLAGS"
25617 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
25618 libgfor_cv_have_as_needed=no
25619
25620 ac_c_werror_flag=yes
25621 if test x$gcc_no_link = xyes; then
25622 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25623 fi
25624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25625 /* end confdefs.h. */
25626
25627 int
25628 main ()
25629 {
25630
25631 ;
25632 return 0;
25633 }
25634 _ACEOF
25635 if ac_fn_c_try_link "$LINENO"; then :
25636 libgfor_cv_have_as_needed=yes
25637 else
25638 libgfor_cv_have_as_needed=no
25639 fi
25640 rm -f core conftest.err conftest.$ac_objext \
25641 conftest$ac_exeext conftest.$ac_ext
25642 LDFLAGS="$save_LDFLAGS"
25643 fi
25644 ac_c_werror_flag=$ac_xsave_c_werror_flag
25645
25646 fi
25647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_as_needed" >&5
25648 $as_echo "$libgfor_cv_have_as_needed" >&6; }
25649
25650 if test "x$libgfor_cv_have_as_needed" = xyes; then
25651 LIBQUADSPEC="%{static-libgfortran:$libgfor_cv_as_needed_option} -lquadmath %{static-libgfortran:$libgfor_cv_no_as_needed_option}"
25652 else
25653 LIBQUADSPEC="-lquadmath"
25654 fi
25655 if test -f ../libquadmath/libquadmath.la; then
25656 LIBQUADLIB=../libquadmath/libquadmath.la
25657 LIBQUADLIB_DEP=../libquadmath/libquadmath.la
25658 LIBQUADINCLUDE='-I$(srcdir)/../libquadmath'
25659 else
25660 LIBQUADLIB="-lquadmath"
25661 LIBQUADLIB_DEP=
25662 LIBQUADINCLUDE=
25663 fi
25664 fi
25665 else
25666 # for --disable-quadmath
25667 LIBQUADLIB=
25668 LIBQUADLIB_DEP=
25669 LIBQUADINCLUDE=
25670 fi
25671
25672
25673
25674
25675
25676
25677 if test "x$libgfor_cv_have_float128" = xyes; then
25678 LIBGFOR_BUILD_QUAD_TRUE=
25679 LIBGFOR_BUILD_QUAD_FALSE='#'
25680 else
25681 LIBGFOR_BUILD_QUAD_TRUE='#'
25682 LIBGFOR_BUILD_QUAD_FALSE=
25683 fi
25684
25685
25686
25687 # Check for GNU libc feenableexcept
25688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5
25689 $as_echo_n "checking for feenableexcept in -lm... " >&6; }
25690 if test "${ac_cv_lib_m_feenableexcept+set}" = set; then :
25691 $as_echo_n "(cached) " >&6
25692 else
25693 ac_check_lib_save_LIBS=$LIBS
25694 LIBS="-lm $LIBS"
25695 if test x$gcc_no_link = xyes; then
25696 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25697 fi
25698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25699 /* end confdefs.h. */
25700
25701 /* Override any GCC internal prototype to avoid an error.
25702 Use char because int might match the return type of a GCC
25703 builtin and then its argument prototype would still apply. */
25704 #ifdef __cplusplus
25705 extern "C"
25706 #endif
25707 char feenableexcept ();
25708 int
25709 main ()
25710 {
25711 return feenableexcept ();
25712 ;
25713 return 0;
25714 }
25715 _ACEOF
25716 if ac_fn_c_try_link "$LINENO"; then :
25717 ac_cv_lib_m_feenableexcept=yes
25718 else
25719 ac_cv_lib_m_feenableexcept=no
25720 fi
25721 rm -f core conftest.err conftest.$ac_objext \
25722 conftest$ac_exeext conftest.$ac_ext
25723 LIBS=$ac_check_lib_save_LIBS
25724 fi
25725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5
25726 $as_echo "$ac_cv_lib_m_feenableexcept" >&6; }
25727 if test "x$ac_cv_lib_m_feenableexcept" = x""yes; then :
25728 have_feenableexcept=yes
25729 $as_echo "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h
25730
25731 fi
25732
25733
25734 # At least for glibc, clock_gettime is in librt. But don't
25735 # pull that in if it still doesn't give us the function we want. This
25736 # test is copied from libgomp, and modified to not link in -lrt as
25737 # libgfortran calls clock_gettime via a weak reference if it's found
25738 # in librt.
25739 if test "$ac_cv_func_clock_gettime" = no; then
25740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
25741 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
25742 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
25743 $as_echo_n "(cached) " >&6
25744 else
25745 ac_check_lib_save_LIBS=$LIBS
25746 LIBS="-lrt $LIBS"
25747 if test x$gcc_no_link = xyes; then
25748 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25749 fi
25750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25751 /* end confdefs.h. */
25752
25753 /* Override any GCC internal prototype to avoid an error.
25754 Use char because int might match the return type of a GCC
25755 builtin and then its argument prototype would still apply. */
25756 #ifdef __cplusplus
25757 extern "C"
25758 #endif
25759 char clock_gettime ();
25760 int
25761 main ()
25762 {
25763 return clock_gettime ();
25764 ;
25765 return 0;
25766 }
25767 _ACEOF
25768 if ac_fn_c_try_link "$LINENO"; then :
25769 ac_cv_lib_rt_clock_gettime=yes
25770 else
25771 ac_cv_lib_rt_clock_gettime=no
25772 fi
25773 rm -f core conftest.err conftest.$ac_objext \
25774 conftest$ac_exeext conftest.$ac_ext
25775 LIBS=$ac_check_lib_save_LIBS
25776 fi
25777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
25778 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
25779 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
25780
25781 $as_echo "#define HAVE_CLOCK_GETTIME_LIBRT 1" >>confdefs.h
25782
25783 fi
25784
25785 fi
25786
25787 # Check for SysV fpsetmask
25788
25789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fpsetmask is present" >&5
25790 $as_echo_n "checking whether fpsetmask is present... " >&6; }
25791 if test "${libgfor_cv_have_fpsetmask+set}" = set; then :
25792 $as_echo_n "(cached) " >&6
25793 else
25794
25795 if test x$gcc_no_link = xyes; then
25796 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25797 fi
25798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25799 /* end confdefs.h. */
25800
25801 #if HAVE_FLOATINGPOINT_H
25802 # include <floatingpoint.h>
25803 #endif /* HAVE_FLOATINGPOINT_H */
25804 #if HAVE_IEEEFP_H
25805 # include <ieeefp.h>
25806 #endif /* HAVE_IEEEFP_H */
25807 int
25808 main ()
25809 {
25810 fpsetmask(0);
25811 ;
25812 return 0;
25813 }
25814 _ACEOF
25815 if ac_fn_c_try_link "$LINENO"; then :
25816 eval "libgfor_cv_have_fpsetmask=yes"
25817 else
25818 eval "libgfor_cv_have_fpsetmask=no"
25819 fi
25820 rm -f core conftest.err conftest.$ac_objext \
25821 conftest$ac_exeext conftest.$ac_ext
25822
25823 fi
25824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_fpsetmask" >&5
25825 $as_echo "$libgfor_cv_have_fpsetmask" >&6; }
25826 if test x"$libgfor_cv_have_fpsetmask" = xyes; then
25827 have_fpsetmask=yes
25828
25829 $as_echo "#define HAVE_FPSETMASK 1" >>confdefs.h
25830
25831 fi
25832
25833 ac_fn_c_check_type "$LINENO" "fp_except" "ac_cv_type_fp_except" "
25834 #ifdef HAVE_IEEEFP_H
25835 #include <ieeefp.h>
25836 #endif
25837 #include <math.h>
25838
25839 "
25840 if test "x$ac_cv_type_fp_except" = x""yes; then :
25841
25842 cat >>confdefs.h <<_ACEOF
25843 #define HAVE_FP_EXCEPT 1
25844 _ACEOF
25845
25846
25847 fi
25848 ac_fn_c_check_type "$LINENO" "fp_except_t" "ac_cv_type_fp_except_t" "
25849 #ifdef HAVE_IEEEFP_H
25850 #include <ieeefp.h>
25851 #endif
25852 #include <math.h>
25853
25854 "
25855 if test "x$ac_cv_type_fp_except_t" = x""yes; then :
25856
25857 cat >>confdefs.h <<_ACEOF
25858 #define HAVE_FP_EXCEPT_T 1
25859 _ACEOF
25860
25861
25862 fi
25863
25864 ac_fn_c_check_type "$LINENO" "fp_rnd" "ac_cv_type_fp_rnd" "
25865 #ifdef HAVE_IEEEFP_H
25866 #include <ieeefp.h>
25867 #endif
25868 #include <math.h>
25869
25870 "
25871 if test "x$ac_cv_type_fp_rnd" = x""yes; then :
25872
25873 cat >>confdefs.h <<_ACEOF
25874 #define HAVE_FP_RND 1
25875 _ACEOF
25876
25877
25878 fi
25879 ac_fn_c_check_type "$LINENO" "fp_rnd_t" "ac_cv_type_fp_rnd_t" "
25880 #ifdef HAVE_IEEEFP_H
25881 #include <ieeefp.h>
25882 #endif
25883 #include <math.h>
25884
25885 "
25886 if test "x$ac_cv_type_fp_rnd_t" = x""yes; then :
25887
25888 cat >>confdefs.h <<_ACEOF
25889 #define HAVE_FP_RND_T 1
25890 _ACEOF
25891
25892
25893 fi
25894
25895
25896 # Check whether we have fpsetsticky or fpresetsticky
25897 ac_fn_c_check_func "$LINENO" "fpsetsticky" "ac_cv_func_fpsetsticky"
25898 if test "x$ac_cv_func_fpsetsticky" = x""yes; then :
25899 have_fpsetsticky=yes
25900 $as_echo "#define HAVE_FPSETSTICKY 1" >>confdefs.h
25901
25902 fi
25903
25904 ac_fn_c_check_func "$LINENO" "fpresetsticky" "ac_cv_func_fpresetsticky"
25905 if test "x$ac_cv_func_fpresetsticky" = x""yes; then :
25906 have_fpresetsticky=yes
25907 $as_echo "#define HAVE_FPRESETSTICKY 1" >>confdefs.h
25908
25909 fi
25910
25911
25912 # Check for AIX fp_trap and fp_enable
25913 ac_fn_c_check_func "$LINENO" "fp_trap" "ac_cv_func_fp_trap"
25914 if test "x$ac_cv_func_fp_trap" = x""yes; then :
25915 have_fp_trap=yes
25916 $as_echo "#define HAVE_FP_TRAP 1" >>confdefs.h
25917
25918 fi
25919
25920 ac_fn_c_check_func "$LINENO" "fp_enable" "ac_cv_func_fp_enable"
25921 if test "x$ac_cv_func_fp_enable" = x""yes; then :
25922 have_fp_enable=yes
25923 $as_echo "#define HAVE_FP_ENABLE 1" >>confdefs.h
25924
25925 fi
25926
25927
25928 # Check if _SOFT_FLOAT is defined
25929
25930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _SOFT_FLOAT defined" >&5
25931 $as_echo_n "checking for _SOFT_FLOAT defined... " >&6; }
25932 if test "${ac_cv_defined__SOFT_FLOAT+set}" = set; then :
25933 $as_echo_n "(cached) " >&6
25934 else
25935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25936 /* end confdefs.h. */
25937
25938 int
25939 main ()
25940 {
25941
25942 #ifdef _SOFT_FLOAT
25943 int ok;
25944 #else
25945 choke me
25946 #endif
25947
25948 ;
25949 return 0;
25950 }
25951 _ACEOF
25952 if ac_fn_c_try_compile "$LINENO"; then :
25953 ac_cv_defined__SOFT_FLOAT=yes
25954 else
25955 ac_cv_defined__SOFT_FLOAT=no
25956 fi
25957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25958 fi
25959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined__SOFT_FLOAT" >&5
25960 $as_echo "$ac_cv_defined__SOFT_FLOAT" >&6; }
25961 if test $ac_cv_defined__SOFT_FLOAT != "no"; then :
25962 have_soft_float=yes
25963 fi
25964
25965 # Runs configure.host to set up necessary host-dependent shell variables.
25966 # We then display a message about it, and propagate them through the
25967 # build chain.
25968 . ${srcdir}/configure.host
25969 { $as_echo "$as_me:${as_lineno-$LINENO}: FPU dependent file will be ${fpu_host}.h" >&5
25970 $as_echo "$as_me: FPU dependent file will be ${fpu_host}.h" >&6;}
25971 { $as_echo "$as_me:${as_lineno-$LINENO}: Support for IEEE modules: ${ieee_support}" >&5
25972 $as_echo "$as_me: Support for IEEE modules: ${ieee_support}" >&6;}
25973 FPU_HOST_HEADER=config/${fpu_host}.h
25974
25975
25976 # Whether we will build the IEEE modules
25977 if test x${ieee_support} = xyes; then
25978 IEEE_SUPPORT_TRUE=
25979 IEEE_SUPPORT_FALSE='#'
25980 else
25981 IEEE_SUPPORT_TRUE='#'
25982 IEEE_SUPPORT_FALSE=
25983 fi
25984
25985
25986
25987 # Some targets require additional compiler options for IEEE compatibility.
25988 IEEE_FLAGS="${ieee_flags}"
25989
25990
25991
25992 # Check for POSIX getpwuid_r
25993 #
25994 # There are two versions of getpwuid_r, the POSIX one with 5
25995 # arguments, and another one with 4 arguments used by at least HP-UX
25996 # 10.2.
25997 if test "$ac_cv_func_getpwuid_r" = "yes"; then
25998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX version of getpwuid_r with 5 arguments" >&5
25999 $as_echo_n "checking POSIX version of getpwuid_r with 5 arguments... " >&6; }
26000 if test "${libgfor_cv_posix_getpwuid_r+set}" = set; then :
26001 $as_echo_n "(cached) " >&6
26002 else
26003
26004 if test x$gcc_no_link = xyes; then
26005 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26006 fi
26007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26008 /* end confdefs.h. */
26009
26010 #include <stdio.h>
26011 #include <sys/types.h>
26012 #include <pwd.h>
26013 int
26014 main ()
26015 {
26016
26017 getpwuid_r(0, NULL, NULL, 0, NULL);
26018
26019 ;
26020 return 0;
26021 }
26022 _ACEOF
26023 if ac_fn_c_try_link "$LINENO"; then :
26024 libgfor_cv_posix_getpwuid_r="yes"
26025 else
26026 libgfor_cv_posix_getpwuid_r="no"
26027 fi
26028 rm -f core conftest.err conftest.$ac_objext \
26029 conftest$ac_exeext conftest.$ac_ext
26030 fi
26031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_posix_getpwuid_r" >&5
26032 $as_echo "$libgfor_cv_posix_getpwuid_r" >&6; }
26033 fi
26034 if test "$libgfor_cv_posix_getpwuid_r" = "yes"; then
26035
26036 $as_echo "#define HAVE_POSIX_GETPWUID_R 1" >>confdefs.h
26037
26038 fi
26039
26040
26041 # Check out attribute support.
26042
26043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
26044 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
26045 if test "${libgfor_cv_have_attribute_visibility+set}" = set; then :
26046 $as_echo_n "(cached) " >&6
26047 else
26048
26049 save_CFLAGS="$CFLAGS"
26050 CFLAGS="$CFLAGS -Werror"
26051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26052 /* end confdefs.h. */
26053 void __attribute__((visibility("hidden"))) foo(void) { }
26054 int
26055 main ()
26056 {
26057
26058 ;
26059 return 0;
26060 }
26061 _ACEOF
26062 if ac_fn_c_try_compile "$LINENO"; then :
26063 libgfor_cv_have_attribute_visibility=yes
26064 else
26065 libgfor_cv_have_attribute_visibility=no
26066 fi
26067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26068 CFLAGS="$save_CFLAGS"
26069 fi
26070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_visibility" >&5
26071 $as_echo "$libgfor_cv_have_attribute_visibility" >&6; }
26072 if test $libgfor_cv_have_attribute_visibility = yes; then
26073
26074 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
26075
26076 fi
26077
26078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
26079 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
26080 if test "${libgfor_cv_have_attribute_alias+set}" = set; then :
26081 $as_echo_n "(cached) " >&6
26082 else
26083
26084 if test x$gcc_no_link = xyes; then
26085 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26086 fi
26087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26088 /* end confdefs.h. */
26089
26090 void foo(void) { }
26091 extern void bar(void) __attribute__((alias("foo")));
26092 int
26093 main ()
26094 {
26095 bar();
26096 ;
26097 return 0;
26098 }
26099 _ACEOF
26100 if ac_fn_c_try_link "$LINENO"; then :
26101 libgfor_cv_have_attribute_alias=yes
26102 else
26103 libgfor_cv_have_attribute_alias=no
26104 fi
26105 rm -f core conftest.err conftest.$ac_objext \
26106 conftest$ac_exeext conftest.$ac_ext
26107 fi
26108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_alias" >&5
26109 $as_echo "$libgfor_cv_have_attribute_alias" >&6; }
26110 if test $libgfor_cv_have_attribute_alias = yes; then
26111
26112 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
26113
26114 fi
26115
26116 # Check out sync builtins support.
26117
26118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_fetch_and_add" >&5
26119 $as_echo_n "checking whether the target supports __sync_fetch_and_add... " >&6; }
26120 if test "${libgfor_cv_have_sync_fetch_and_add+set}" = set; then :
26121 $as_echo_n "(cached) " >&6
26122 else
26123
26124 if test x$gcc_no_link = xyes; then
26125 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26126 fi
26127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26128 /* end confdefs.h. */
26129 int foovar = 0;
26130 int
26131 main ()
26132 {
26133
26134 if (foovar <= 0) return __sync_fetch_and_add (&foovar, 1);
26135 if (foovar > 10) return __sync_add_and_fetch (&foovar, -1);
26136 ;
26137 return 0;
26138 }
26139 _ACEOF
26140 if ac_fn_c_try_link "$LINENO"; then :
26141 libgfor_cv_have_sync_fetch_and_add=yes
26142 else
26143 libgfor_cv_have_sync_fetch_and_add=no
26144 fi
26145 rm -f core conftest.err conftest.$ac_objext \
26146 conftest$ac_exeext conftest.$ac_ext
26147 fi
26148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_sync_fetch_and_add" >&5
26149 $as_echo "$libgfor_cv_have_sync_fetch_and_add" >&6; }
26150 if test $libgfor_cv_have_sync_fetch_and_add = yes; then
26151
26152 $as_echo "#define HAVE_SYNC_FETCH_AND_ADD 1" >>confdefs.h
26153
26154 fi
26155
26156 # Check out #pragma weak.
26157
26158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pragma weak works" >&5
26159 $as_echo_n "checking whether pragma weak works... " >&6; }
26160 if test "${libgfor_cv_have_pragma_weak+set}" = set; then :
26161 $as_echo_n "(cached) " >&6
26162 else
26163
26164 gfor_save_CFLAGS="$CFLAGS"
26165 CFLAGS="$CFLAGS -Wunknown-pragmas"
26166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26167 /* end confdefs.h. */
26168
26169 void foo (void);
26170 #pragma weak foo
26171
26172 int
26173 main ()
26174 {
26175 if (foo) foo ();
26176 ;
26177 return 0;
26178 }
26179 _ACEOF
26180 if ac_fn_c_try_compile "$LINENO"; then :
26181 libgfor_cv_have_pragma_weak=yes
26182 else
26183 libgfor_cv_have_pragma_weak=no
26184 fi
26185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26186 fi
26187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_pragma_weak" >&5
26188 $as_echo "$libgfor_cv_have_pragma_weak" >&6; }
26189 if test $libgfor_cv_have_pragma_weak = yes; then
26190
26191 $as_echo "#define SUPPORTS_WEAK 1" >>confdefs.h
26192
26193 fi
26194 case "$host" in
26195 *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* | *-*-musl* )
26196
26197 $as_echo "#define GTHREAD_USE_WEAK 0" >>confdefs.h
26198
26199 ;;
26200 esac
26201
26202 # Check out weakref support.
26203
26204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports weakref" >&5
26205 $as_echo_n "checking whether the target supports weakref... " >&6; }
26206 if test "${libgfor_cv_have_weakref+set}" = set; then :
26207 $as_echo_n "(cached) " >&6
26208 else
26209
26210 save_CFLAGS="$CFLAGS"
26211 CFLAGS="$CFLAGS -Wunknown-pragmas -Werror"
26212 if test x$gcc_no_link = xyes; then
26213 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26214 fi
26215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26216 /* end confdefs.h. */
26217
26218 static int mytoto (int) __attribute__((__weakref__("toto")));
26219
26220 int
26221 main ()
26222 {
26223 return (mytoto != 0);
26224 ;
26225 return 0;
26226 }
26227 _ACEOF
26228 if ac_fn_c_try_link "$LINENO"; then :
26229 libgfor_cv_have_weakref=yes
26230 else
26231 libgfor_cv_have_weakref=no
26232 fi
26233 rm -f core conftest.err conftest.$ac_objext \
26234 conftest$ac_exeext conftest.$ac_ext
26235 CFLAGS="$save_CFLAGS"
26236 fi
26237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_weakref" >&5
26238 $as_echo "$libgfor_cv_have_weakref" >&6; }
26239 if test $libgfor_cv_have_weakref = yes; then
26240
26241 $as_echo "#define SUPPORTS_WEAKREF 1" >>confdefs.h
26242
26243 fi
26244
26245 # Various other checks on target
26246
26247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target can unlink an open file" >&5
26248 $as_echo_n "checking whether the target can unlink an open file... " >&6; }
26249 if test "${libgfor_cv_have_unlink_open_file+set}" = set; then :
26250 $as_echo_n "(cached) " >&6
26251 else
26252
26253 if test "$cross_compiling" = yes; then :
26254
26255 case "${target}" in
26256 *mingw*) libgfor_cv_have_unlink_open_file=no ;;
26257 *) libgfor_cv_have_unlink_open_file=yes;;
26258 esac
26259 else
26260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26261 /* end confdefs.h. */
26262
26263 #include <errno.h>
26264 #include <fcntl.h>
26265 #include <unistd.h>
26266 #include <sys/stat.h>
26267
26268 int main ()
26269 {
26270 int fd;
26271
26272 fd = open ("testfile", O_RDWR | O_CREAT, S_IWUSR | S_IRUSR);
26273 if (fd <= 0)
26274 return 0;
26275 if (unlink ("testfile") == -1)
26276 return 1;
26277 write (fd, "This is a test\n", 15);
26278 close (fd);
26279
26280 if (open ("testfile", O_RDONLY) == -1 && errno == ENOENT)
26281 return 0;
26282 else
26283 return 1;
26284 }
26285 _ACEOF
26286 if ac_fn_c_try_run "$LINENO"; then :
26287 libgfor_cv_have_unlink_open_file=yes
26288 else
26289 libgfor_cv_have_unlink_open_file=no
26290 fi
26291 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26292 conftest.$ac_objext conftest.beam conftest.$ac_ext
26293 fi
26294
26295 fi
26296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_unlink_open_file" >&5
26297 $as_echo "$libgfor_cv_have_unlink_open_file" >&6; }
26298 if test x"$libgfor_cv_have_unlink_open_file" = xyes; then
26299
26300 $as_echo "#define HAVE_UNLINK_OPEN_FILE 1" >>confdefs.h
26301
26302 fi
26303
26304 # Check whether line terminator is LF or CRLF
26305
26306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target has CRLF as line terminator" >&5
26307 $as_echo_n "checking whether the target has CRLF as line terminator... " >&6; }
26308 if test "${libgfor_cv_have_crlf+set}" = set; then :
26309 $as_echo_n "(cached) " >&6
26310 else
26311
26312 if test "$cross_compiling" = yes; then :
26313
26314 case "${target}" in
26315 *mingw*) libgfor_cv_have_crlf=yes ;;
26316 *) libgfor_cv_have_crlf=no;;
26317 esac
26318 else
26319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26320 /* end confdefs.h. */
26321
26322 /* This test program should exit with status 0 if system uses a CRLF as
26323 line terminator, and status 1 otherwise.
26324 Since it is used to check for mingw systems, and should return 0 in any
26325 other case, in case of a failure we will not use CRLF. */
26326 #include <sys/stat.h>
26327 #include <stdlib.h>
26328 #include <fcntl.h>
26329 #include <stdio.h>
26330
26331 int main ()
26332 {
26333 #ifndef O_BINARY
26334 exit(1);
26335 #else
26336 int fd, bytes;
26337 char buff[5];
26338
26339 fd = open ("foo", O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU);
26340 if (fd < 0)
26341 exit(1);
26342 if (write (fd, "\n", 1) < 0)
26343 perror ("write");
26344
26345 close (fd);
26346
26347 if ((fd = open ("foo", O_RDONLY | O_BINARY, S_IRWXU)) < 0)
26348 exit(1);
26349 bytes = read (fd, buff, 5);
26350 if (bytes == 2 && buff[0] == '\r' && buff[1] == '\n')
26351 exit(0);
26352 else
26353 exit(1);
26354 #endif
26355 }
26356 _ACEOF
26357 if ac_fn_c_try_run "$LINENO"; then :
26358 libgfor_cv_have_crlf=yes
26359 else
26360 libgfor_cv_have_crlf=no
26361 fi
26362 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26363 conftest.$ac_objext conftest.beam conftest.$ac_ext
26364 fi
26365
26366 fi
26367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_crlf" >&5
26368 $as_echo "$libgfor_cv_have_crlf" >&6; }
26369 if test x"$libgfor_cv_have_crlf" = xyes; then
26370
26371 $as_echo "#define HAVE_CRLF 1" >>confdefs.h
26372
26373 fi
26374
26375 # Check whether we support AVX extensions
26376
26377 ac_save_CFLAGS="$CFLAGS"
26378 CFLAGS="-O2 -mavx"
26379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26380 /* end confdefs.h. */
26381
26382 void _mm256_zeroall (void)
26383 {
26384 __builtin_ia32_vzeroall ();
26385 }
26386 int
26387 main ()
26388 {
26389
26390 ;
26391 return 0;
26392 }
26393 _ACEOF
26394 if ac_fn_c_try_compile "$LINENO"; then :
26395
26396 $as_echo "#define HAVE_AVX 1" >>confdefs.h
26397
26398 fi
26399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26400 CFLAGS="$ac_save_CFLAGS"
26401
26402
26403 # Check wether we support AVX2 extensions
26404
26405 ac_save_CFLAGS="$CFLAGS"
26406 CFLAGS="-O2 -mavx2"
26407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26408 /* end confdefs.h. */
26409
26410 typedef long long __v4di __attribute__ ((__vector_size__ (32)));
26411 __v4di
26412 mm256_is32_andnotsi256 (__v4di __X, __v4di __Y)
26413 {
26414 return __builtin_ia32_andnotsi256 (__X, __Y);
26415 }
26416 int
26417 main ()
26418 {
26419
26420 ;
26421 return 0;
26422 }
26423 _ACEOF
26424 if ac_fn_c_try_compile "$LINENO"; then :
26425
26426 $as_echo "#define HAVE_AVX2 1" >>confdefs.h
26427
26428 fi
26429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26430 CFLAGS="$ac_save_CFLAGS"
26431
26432
26433 # Check wether we support AVX512f extensions
26434
26435 ac_save_CFLAGS="$CFLAGS"
26436 CFLAGS="-O2 -mavx512f"
26437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26438 /* end confdefs.h. */
26439
26440 typedef double __m512d __attribute__ ((__vector_size__ (64)));
26441 __m512d _mm512_add (__m512d a)
26442 {
26443 __m512d b = __builtin_ia32_addpd512_mask (a, a, a, 1, 4);
26444 /* For -m64/-mx32 also verify that code will work even if
26445 the target uses call saved zmm16+ and needs to emit
26446 unwind info for them (e.g. on mingw). See PR79127. */
26447 #ifdef __x86_64__
26448 asm volatile ("" : : : "zmm16", "zmm17", "zmm18", "zmm19");
26449 #endif
26450 return b;
26451 }
26452 int
26453 main ()
26454 {
26455
26456 ;
26457 return 0;
26458 }
26459 _ACEOF
26460 if ac_fn_c_try_compile "$LINENO"; then :
26461
26462 $as_echo "#define HAVE_AVX512F 1" >>confdefs.h
26463
26464 fi
26465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26466 CFLAGS="$ac_save_CFLAGS"
26467
26468
26469 # Check for FMA3 extensions
26470
26471 ac_save_CFLAGS="$CFLAGS"
26472 CFLAGS="-O2 -mfma -mno-fma4"
26473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26474 /* end confdefs.h. */
26475
26476 typedef float __m128 __attribute__ ((__vector_size__ (16)));
26477 typedef float __v4sf __attribute__ ((__vector_size__ (16)));
26478 __m128 _mm_macc_ps(__m128 __A, __m128 __B, __m128 __C)
26479 {
26480 return (__m128) __builtin_ia32_vfmaddps ((__v4sf)__A,
26481 (__v4sf)__B,
26482 (__v4sf)__C);
26483 }
26484 int
26485 main ()
26486 {
26487
26488 ;
26489 return 0;
26490 }
26491 _ACEOF
26492 if ac_fn_c_try_compile "$LINENO"; then :
26493
26494 $as_echo "#define HAVE_FMA3 1" >>confdefs.h
26495
26496 fi
26497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26498 CFLAGS="$ac_save_CFLAGS"
26499
26500
26501 # Check for FMA4 extensions
26502
26503 ac_save_CFLAGS="$CFLAGS"
26504 CFLAGS="-O2 -mfma4 -mno-fma"
26505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26506 /* end confdefs.h. */
26507
26508 typedef float __m128 __attribute__ ((__vector_size__ (16)));
26509 typedef float __v4sf __attribute__ ((__vector_size__ (16)));
26510 __m128 _mm_macc_ps(__m128 __A, __m128 __B, __m128 __C)
26511 {
26512 return (__m128) __builtin_ia32_vfmaddps ((__v4sf)__A,
26513 (__v4sf)__B,
26514 (__v4sf)__C);
26515 }
26516 int
26517 main ()
26518 {
26519
26520 ;
26521 return 0;
26522 }
26523 _ACEOF
26524 if ac_fn_c_try_compile "$LINENO"; then :
26525
26526 $as_echo "#define HAVE_FMA4 1" >>confdefs.h
26527
26528 fi
26529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26530 CFLAGS="$ac_save_CFLAGS"
26531
26532
26533 # Check if AVX128 works
26534
26535 ac_save_CFLAGS="$CFLAGS"
26536 CFLAGS="-O2 -mavx -mprefer-avx128"
26537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26538 /* end confdefs.h. */
26539
26540 void foo()
26541 {
26542 }
26543 int
26544 main ()
26545 {
26546
26547 ;
26548 return 0;
26549 }
26550 _ACEOF
26551 if ac_fn_c_try_compile "$LINENO"; then :
26552
26553 $as_echo "#define HAVE_AVX128 1" >>confdefs.h
26554
26555 if true; then
26556 HAVE_AVX128_TRUE=
26557 HAVE_AVX128_FALSE='#'
26558 else
26559 HAVE_AVX128_TRUE='#'
26560 HAVE_AVX128_FALSE=
26561 fi
26562
26563 else
26564 if false; then
26565 HAVE_AVX128_TRUE=
26566 HAVE_AVX128_FALSE='#'
26567 else
26568 HAVE_AVX128_TRUE='#'
26569 HAVE_AVX128_FALSE=
26570 fi
26571
26572 fi
26573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26574 CFLAGS="$ac_save_CFLAGS"
26575
26576
26577 # Determine what GCC version number to use in filesystem paths.
26578
26579 get_gcc_base_ver="cat"
26580
26581 # Check whether --with-gcc-major-version-only was given.
26582 if test "${with_gcc_major_version_only+set}" = set; then :
26583 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
26584 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
26585 fi
26586
26587 fi
26588
26589
26590
26591
26592 cat >confcache <<\_ACEOF
26593 # This file is a shell script that caches the results of configure
26594 # tests run on this system so they can be shared between configure
26595 # scripts and configure runs, see configure's option --config-cache.
26596 # It is not useful on other systems. If it contains results you don't
26597 # want to keep, you may remove or edit it.
26598 #
26599 # config.status only pays attention to the cache file if you give it
26600 # the --recheck option to rerun configure.
26601 #
26602 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26603 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26604 # following values.
26605
26606 _ACEOF
26607
26608 # The following way of writing the cache mishandles newlines in values,
26609 # but we know of no workaround that is simple, portable, and efficient.
26610 # So, we kill variables containing newlines.
26611 # Ultrix sh set writes to stderr and can't be redirected directly,
26612 # and sets the high bit in the cache file unless we assign to the vars.
26613 (
26614 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26615 eval ac_val=\$$ac_var
26616 case $ac_val in #(
26617 *${as_nl}*)
26618 case $ac_var in #(
26619 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26620 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26621 esac
26622 case $ac_var in #(
26623 _ | IFS | as_nl) ;; #(
26624 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26625 *) { eval $ac_var=; unset $ac_var;} ;;
26626 esac ;;
26627 esac
26628 done
26629
26630 (set) 2>&1 |
26631 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26632 *${as_nl}ac_space=\ *)
26633 # `set' does not quote correctly, so add quotes: double-quote
26634 # substitution turns \\\\ into \\, and sed turns \\ into \.
26635 sed -n \
26636 "s/'/'\\\\''/g;
26637 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26638 ;; #(
26639 *)
26640 # `set' quotes correctly as required by POSIX, so do not add quotes.
26641 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26642 ;;
26643 esac |
26644 sort
26645 ) |
26646 sed '
26647 /^ac_cv_env_/b end
26648 t clear
26649 :clear
26650 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26651 t end
26652 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26653 :end' >>confcache
26654 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26655 if test -w "$cache_file"; then
26656 test "x$cache_file" != "x/dev/null" &&
26657 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26658 $as_echo "$as_me: updating cache $cache_file" >&6;}
26659 cat confcache >$cache_file
26660 else
26661 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26662 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26663 fi
26664 fi
26665 rm -f confcache
26666
26667 if test ${multilib} = yes; then
26668 multilib_arg="--enable-multilib"
26669 else
26670 multilib_arg=
26671 fi
26672
26673 # Write our Makefile and spec file.
26674 ac_config_files="$ac_config_files Makefile libgfortran.spec"
26675
26676 cat >confcache <<\_ACEOF
26677 # This file is a shell script that caches the results of configure
26678 # tests run on this system so they can be shared between configure
26679 # scripts and configure runs, see configure's option --config-cache.
26680 # It is not useful on other systems. If it contains results you don't
26681 # want to keep, you may remove or edit it.
26682 #
26683 # config.status only pays attention to the cache file if you give it
26684 # the --recheck option to rerun configure.
26685 #
26686 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26687 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26688 # following values.
26689
26690 _ACEOF
26691
26692 # The following way of writing the cache mishandles newlines in values,
26693 # but we know of no workaround that is simple, portable, and efficient.
26694 # So, we kill variables containing newlines.
26695 # Ultrix sh set writes to stderr and can't be redirected directly,
26696 # and sets the high bit in the cache file unless we assign to the vars.
26697 (
26698 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26699 eval ac_val=\$$ac_var
26700 case $ac_val in #(
26701 *${as_nl}*)
26702 case $ac_var in #(
26703 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26704 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26705 esac
26706 case $ac_var in #(
26707 _ | IFS | as_nl) ;; #(
26708 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26709 *) { eval $ac_var=; unset $ac_var;} ;;
26710 esac ;;
26711 esac
26712 done
26713
26714 (set) 2>&1 |
26715 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26716 *${as_nl}ac_space=\ *)
26717 # `set' does not quote correctly, so add quotes: double-quote
26718 # substitution turns \\\\ into \\, and sed turns \\ into \.
26719 sed -n \
26720 "s/'/'\\\\''/g;
26721 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26722 ;; #(
26723 *)
26724 # `set' quotes correctly as required by POSIX, so do not add quotes.
26725 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26726 ;;
26727 esac |
26728 sort
26729 ) |
26730 sed '
26731 /^ac_cv_env_/b end
26732 t clear
26733 :clear
26734 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26735 t end
26736 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26737 :end' >>confcache
26738 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26739 if test -w "$cache_file"; then
26740 test "x$cache_file" != "x/dev/null" &&
26741 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26742 $as_echo "$as_me: updating cache $cache_file" >&6;}
26743 cat confcache >$cache_file
26744 else
26745 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26746 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26747 fi
26748 fi
26749 rm -f confcache
26750
26751 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26752 # Let make expand exec_prefix.
26753 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26754
26755 DEFS=-DHAVE_CONFIG_H
26756
26757 ac_libobjs=
26758 ac_ltlibobjs=
26759 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26760 # 1. Remove the extension, and $U if already installed.
26761 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26762 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26763 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26764 # will be set to the directory where LIBOBJS objects are built.
26765 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26766 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26767 done
26768 LIBOBJS=$ac_libobjs
26769
26770 LTLIBOBJS=$ac_ltlibobjs
26771
26772
26773 if test -z "${onestep_TRUE}" && test -z "${onestep_FALSE}"; then
26774 as_fn_error "conditional \"onestep\" was never defined.
26775 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26776 fi
26777 if test -n "$EXEEXT"; then
26778 am__EXEEXT_TRUE=
26779 am__EXEEXT_FALSE='#'
26780 else
26781 am__EXEEXT_TRUE='#'
26782 am__EXEEXT_FALSE=
26783 fi
26784
26785 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26786 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
26787 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26788 fi
26789 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26790 as_fn_error "conditional \"AMDEP\" was never defined.
26791 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26792 fi
26793 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26794 as_fn_error "conditional \"am__fastdepCC\" was never defined.
26795 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26796 fi
26797 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26798 as_fn_error "conditional \"am__fastdepCC\" was never defined.
26799 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26800 fi
26801 if test -z "${LIBGFOR_USE_SYMVER_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_FALSE}"; then
26802 as_fn_error "conditional \"LIBGFOR_USE_SYMVER\" was never defined.
26803 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26804 fi
26805 if test -z "${LIBGFOR_USE_SYMVER_GNU_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_GNU_FALSE}"; then
26806 as_fn_error "conditional \"LIBGFOR_USE_SYMVER_GNU\" was never defined.
26807 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26808 fi
26809 if test -z "${LIBGFOR_USE_SYMVER_SUN_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_SUN_FALSE}"; then
26810 as_fn_error "conditional \"LIBGFOR_USE_SYMVER_SUN\" was never defined.
26811 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26812 fi
26813 if test -z "${LIBGFOR_MINIMAL_TRUE}" && test -z "${LIBGFOR_MINIMAL_FALSE}"; then
26814 as_fn_error "conditional \"LIBGFOR_MINIMAL\" was never defined.
26815 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26816 fi
26817 if test -z "${HAVE_HWCAP_TRUE}" && test -z "${HAVE_HWCAP_FALSE}"; then
26818 as_fn_error "conditional \"HAVE_HWCAP\" was never defined.
26819 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26820 fi
26821 if test -z "${LIBGFOR_BUILD_QUAD_TRUE}" && test -z "${LIBGFOR_BUILD_QUAD_FALSE}"; then
26822 as_fn_error "conditional \"LIBGFOR_BUILD_QUAD\" was never defined.
26823 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26824 fi
26825 if test -z "${IEEE_SUPPORT_TRUE}" && test -z "${IEEE_SUPPORT_FALSE}"; then
26826 as_fn_error "conditional \"IEEE_SUPPORT\" was never defined.
26827 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26828 fi
26829 if test -z "${HAVE_AVX128_TRUE}" && test -z "${HAVE_AVX128_FALSE}"; then
26830 as_fn_error "conditional \"HAVE_AVX128\" was never defined.
26831 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26832 fi
26833 if test -z "${HAVE_AVX128_TRUE}" && test -z "${HAVE_AVX128_FALSE}"; then
26834 as_fn_error "conditional \"HAVE_AVX128\" was never defined.
26835 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26836 fi
26837
26838 : ${CONFIG_STATUS=./config.status}
26839 ac_write_fail=0
26840 ac_clean_files_save=$ac_clean_files
26841 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26842 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26843 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26844 as_write_fail=0
26845 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26846 #! $SHELL
26847 # Generated by $as_me.
26848 # Run this file to recreate the current configuration.
26849 # Compiler output produced by configure, useful for debugging
26850 # configure, is in config.log if it exists.
26851
26852 debug=false
26853 ac_cs_recheck=false
26854 ac_cs_silent=false
26855
26856 SHELL=\${CONFIG_SHELL-$SHELL}
26857 export SHELL
26858 _ASEOF
26859 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26860 ## -------------------- ##
26861 ## M4sh Initialization. ##
26862 ## -------------------- ##
26863
26864 # Be more Bourne compatible
26865 DUALCASE=1; export DUALCASE # for MKS sh
26866 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26867 emulate sh
26868 NULLCMD=:
26869 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26870 # is contrary to our usage. Disable this feature.
26871 alias -g '${1+"$@"}'='"$@"'
26872 setopt NO_GLOB_SUBST
26873 else
26874 case `(set -o) 2>/dev/null` in #(
26875 *posix*) :
26876 set -o posix ;; #(
26877 *) :
26878 ;;
26879 esac
26880 fi
26881
26882
26883 as_nl='
26884 '
26885 export as_nl
26886 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26887 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26888 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26889 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26890 # Prefer a ksh shell builtin over an external printf program on Solaris,
26891 # but without wasting forks for bash or zsh.
26892 if test -z "$BASH_VERSION$ZSH_VERSION" \
26893 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26894 as_echo='print -r --'
26895 as_echo_n='print -rn --'
26896 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26897 as_echo='printf %s\n'
26898 as_echo_n='printf %s'
26899 else
26900 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26901 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26902 as_echo_n='/usr/ucb/echo -n'
26903 else
26904 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26905 as_echo_n_body='eval
26906 arg=$1;
26907 case $arg in #(
26908 *"$as_nl"*)
26909 expr "X$arg" : "X\\(.*\\)$as_nl";
26910 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26911 esac;
26912 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26913 '
26914 export as_echo_n_body
26915 as_echo_n='sh -c $as_echo_n_body as_echo'
26916 fi
26917 export as_echo_body
26918 as_echo='sh -c $as_echo_body as_echo'
26919 fi
26920
26921 # The user is always right.
26922 if test "${PATH_SEPARATOR+set}" != set; then
26923 PATH_SEPARATOR=:
26924 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26925 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26926 PATH_SEPARATOR=';'
26927 }
26928 fi
26929
26930
26931 # IFS
26932 # We need space, tab and new line, in precisely that order. Quoting is
26933 # there to prevent editors from complaining about space-tab.
26934 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26935 # splitting by setting IFS to empty value.)
26936 IFS=" "" $as_nl"
26937
26938 # Find who we are. Look in the path if we contain no directory separator.
26939 case $0 in #((
26940 *[\\/]* ) as_myself=$0 ;;
26941 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26942 for as_dir in $PATH
26943 do
26944 IFS=$as_save_IFS
26945 test -z "$as_dir" && as_dir=.
26946 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26947 done
26948 IFS=$as_save_IFS
26949
26950 ;;
26951 esac
26952 # We did not find ourselves, most probably we were run as `sh COMMAND'
26953 # in which case we are not to be found in the path.
26954 if test "x$as_myself" = x; then
26955 as_myself=$0
26956 fi
26957 if test ! -f "$as_myself"; then
26958 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26959 exit 1
26960 fi
26961
26962 # Unset variables that we do not need and which cause bugs (e.g. in
26963 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26964 # suppresses any "Segmentation fault" message there. '((' could
26965 # trigger a bug in pdksh 5.2.14.
26966 for as_var in BASH_ENV ENV MAIL MAILPATH
26967 do eval test x\${$as_var+set} = xset \
26968 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26969 done
26970 PS1='$ '
26971 PS2='> '
26972 PS4='+ '
26973
26974 # NLS nuisances.
26975 LC_ALL=C
26976 export LC_ALL
26977 LANGUAGE=C
26978 export LANGUAGE
26979
26980 # CDPATH.
26981 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26982
26983
26984 # as_fn_error ERROR [LINENO LOG_FD]
26985 # ---------------------------------
26986 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26987 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26988 # script with status $?, using 1 if that was 0.
26989 as_fn_error ()
26990 {
26991 as_status=$?; test $as_status -eq 0 && as_status=1
26992 if test "$3"; then
26993 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26994 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26995 fi
26996 $as_echo "$as_me: error: $1" >&2
26997 as_fn_exit $as_status
26998 } # as_fn_error
26999
27000
27001 # as_fn_set_status STATUS
27002 # -----------------------
27003 # Set $? to STATUS, without forking.
27004 as_fn_set_status ()
27005 {
27006 return $1
27007 } # as_fn_set_status
27008
27009 # as_fn_exit STATUS
27010 # -----------------
27011 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27012 as_fn_exit ()
27013 {
27014 set +e
27015 as_fn_set_status $1
27016 exit $1
27017 } # as_fn_exit
27018
27019 # as_fn_unset VAR
27020 # ---------------
27021 # Portably unset VAR.
27022 as_fn_unset ()
27023 {
27024 { eval $1=; unset $1;}
27025 }
27026 as_unset=as_fn_unset
27027 # as_fn_append VAR VALUE
27028 # ----------------------
27029 # Append the text in VALUE to the end of the definition contained in VAR. Take
27030 # advantage of any shell optimizations that allow amortized linear growth over
27031 # repeated appends, instead of the typical quadratic growth present in naive
27032 # implementations.
27033 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27034 eval 'as_fn_append ()
27035 {
27036 eval $1+=\$2
27037 }'
27038 else
27039 as_fn_append ()
27040 {
27041 eval $1=\$$1\$2
27042 }
27043 fi # as_fn_append
27044
27045 # as_fn_arith ARG...
27046 # ------------------
27047 # Perform arithmetic evaluation on the ARGs, and store the result in the
27048 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27049 # must be portable across $(()) and expr.
27050 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27051 eval 'as_fn_arith ()
27052 {
27053 as_val=$(( $* ))
27054 }'
27055 else
27056 as_fn_arith ()
27057 {
27058 as_val=`expr "$@" || test $? -eq 1`
27059 }
27060 fi # as_fn_arith
27061
27062
27063 if expr a : '\(a\)' >/dev/null 2>&1 &&
27064 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27065 as_expr=expr
27066 else
27067 as_expr=false
27068 fi
27069
27070 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27071 as_basename=basename
27072 else
27073 as_basename=false
27074 fi
27075
27076 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27077 as_dirname=dirname
27078 else
27079 as_dirname=false
27080 fi
27081
27082 as_me=`$as_basename -- "$0" ||
27083 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27084 X"$0" : 'X\(//\)$' \| \
27085 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27086 $as_echo X/"$0" |
27087 sed '/^.*\/\([^/][^/]*\)\/*$/{
27088 s//\1/
27089 q
27090 }
27091 /^X\/\(\/\/\)$/{
27092 s//\1/
27093 q
27094 }
27095 /^X\/\(\/\).*/{
27096 s//\1/
27097 q
27098 }
27099 s/.*/./; q'`
27100
27101 # Avoid depending upon Character Ranges.
27102 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27103 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27104 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27105 as_cr_digits='0123456789'
27106 as_cr_alnum=$as_cr_Letters$as_cr_digits
27107
27108 ECHO_C= ECHO_N= ECHO_T=
27109 case `echo -n x` in #(((((
27110 -n*)
27111 case `echo 'xy\c'` in
27112 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27113 xy) ECHO_C='\c';;
27114 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27115 ECHO_T=' ';;
27116 esac;;
27117 *)
27118 ECHO_N='-n';;
27119 esac
27120
27121 rm -f conf$$ conf$$.exe conf$$.file
27122 if test -d conf$$.dir; then
27123 rm -f conf$$.dir/conf$$.file
27124 else
27125 rm -f conf$$.dir
27126 mkdir conf$$.dir 2>/dev/null
27127 fi
27128 if (echo >conf$$.file) 2>/dev/null; then
27129 if ln -s conf$$.file conf$$ 2>/dev/null; then
27130 as_ln_s='ln -s'
27131 # ... but there are two gotchas:
27132 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27133 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27134 # In both cases, we have to default to `cp -p'.
27135 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27136 as_ln_s='cp -p'
27137 elif ln conf$$.file conf$$ 2>/dev/null; then
27138 as_ln_s=ln
27139 else
27140 as_ln_s='cp -p'
27141 fi
27142 else
27143 as_ln_s='cp -p'
27144 fi
27145 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27146 rmdir conf$$.dir 2>/dev/null
27147
27148
27149 # as_fn_mkdir_p
27150 # -------------
27151 # Create "$as_dir" as a directory, including parents if necessary.
27152 as_fn_mkdir_p ()
27153 {
27154
27155 case $as_dir in #(
27156 -*) as_dir=./$as_dir;;
27157 esac
27158 test -d "$as_dir" || eval $as_mkdir_p || {
27159 as_dirs=
27160 while :; do
27161 case $as_dir in #(
27162 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27163 *) as_qdir=$as_dir;;
27164 esac
27165 as_dirs="'$as_qdir' $as_dirs"
27166 as_dir=`$as_dirname -- "$as_dir" ||
27167 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27168 X"$as_dir" : 'X\(//\)[^/]' \| \
27169 X"$as_dir" : 'X\(//\)$' \| \
27170 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27171 $as_echo X"$as_dir" |
27172 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27173 s//\1/
27174 q
27175 }
27176 /^X\(\/\/\)[^/].*/{
27177 s//\1/
27178 q
27179 }
27180 /^X\(\/\/\)$/{
27181 s//\1/
27182 q
27183 }
27184 /^X\(\/\).*/{
27185 s//\1/
27186 q
27187 }
27188 s/.*/./; q'`
27189 test -d "$as_dir" && break
27190 done
27191 test -z "$as_dirs" || eval "mkdir $as_dirs"
27192 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27193
27194
27195 } # as_fn_mkdir_p
27196 if mkdir -p . 2>/dev/null; then
27197 as_mkdir_p='mkdir -p "$as_dir"'
27198 else
27199 test -d ./-p && rmdir ./-p
27200 as_mkdir_p=false
27201 fi
27202
27203 if test -x / >/dev/null 2>&1; then
27204 as_test_x='test -x'
27205 else
27206 if ls -dL / >/dev/null 2>&1; then
27207 as_ls_L_option=L
27208 else
27209 as_ls_L_option=
27210 fi
27211 as_test_x='
27212 eval sh -c '\''
27213 if test -d "$1"; then
27214 test -d "$1/.";
27215 else
27216 case $1 in #(
27217 -*)set "./$1";;
27218 esac;
27219 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27220 ???[sx]*):;;*)false;;esac;fi
27221 '\'' sh
27222 '
27223 fi
27224 as_executable_p=$as_test_x
27225
27226 # Sed expression to map a string onto a valid CPP name.
27227 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27228
27229 # Sed expression to map a string onto a valid variable name.
27230 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27231
27232
27233 exec 6>&1
27234 ## ----------------------------------- ##
27235 ## Main body of $CONFIG_STATUS script. ##
27236 ## ----------------------------------- ##
27237 _ASEOF
27238 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27239
27240 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27241 # Save the log message, to keep $0 and so on meaningful, and to
27242 # report actual input values of CONFIG_FILES etc. instead of their
27243 # values after options handling.
27244 ac_log="
27245 This file was extended by GNU Fortran Runtime Library $as_me 0.3, which was
27246 generated by GNU Autoconf 2.64. Invocation command line was
27247
27248 CONFIG_FILES = $CONFIG_FILES
27249 CONFIG_HEADERS = $CONFIG_HEADERS
27250 CONFIG_LINKS = $CONFIG_LINKS
27251 CONFIG_COMMANDS = $CONFIG_COMMANDS
27252 $ $0 $@
27253
27254 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27255 "
27256
27257 _ACEOF
27258
27259 case $ac_config_files in *"
27260 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27261 esac
27262
27263 case $ac_config_headers in *"
27264 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27265 esac
27266
27267
27268 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27269 # Files that config.status was made for.
27270 config_files="$ac_config_files"
27271 config_headers="$ac_config_headers"
27272 config_commands="$ac_config_commands"
27273
27274 _ACEOF
27275
27276 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27277 ac_cs_usage="\
27278 \`$as_me' instantiates files and other configuration actions
27279 from templates according to the current configuration. Unless the files
27280 and actions are specified as TAGs, all are instantiated by default.
27281
27282 Usage: $0 [OPTION]... [TAG]...
27283
27284 -h, --help print this help, then exit
27285 -V, --version print version number and configuration settings, then exit
27286 -q, --quiet, --silent
27287 do not print progress messages
27288 -d, --debug don't remove temporary files
27289 --recheck update $as_me by reconfiguring in the same conditions
27290 --file=FILE[:TEMPLATE]
27291 instantiate the configuration file FILE
27292 --header=FILE[:TEMPLATE]
27293 instantiate the configuration header FILE
27294
27295 Configuration files:
27296 $config_files
27297
27298 Configuration headers:
27299 $config_headers
27300
27301 Configuration commands:
27302 $config_commands
27303
27304 Report bugs to the package provider.
27305 GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
27306 General help using GNU software: <http://www.gnu.org/gethelp/>."
27307
27308 _ACEOF
27309 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27310 ac_cs_version="\\
27311 GNU Fortran Runtime Library config.status 0.3
27312 configured by $0, generated by GNU Autoconf 2.64,
27313 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27314
27315 Copyright (C) 2009 Free Software Foundation, Inc.
27316 This config.status script is free software; the Free Software Foundation
27317 gives unlimited permission to copy, distribute and modify it."
27318
27319 ac_pwd='$ac_pwd'
27320 srcdir='$srcdir'
27321 INSTALL='$INSTALL'
27322 MKDIR_P='$MKDIR_P'
27323 AWK='$AWK'
27324 test -n "\$AWK" || AWK=awk
27325 _ACEOF
27326
27327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27328 # The default lists apply if the user does not specify any file.
27329 ac_need_defaults=:
27330 while test $# != 0
27331 do
27332 case $1 in
27333 --*=*)
27334 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27335 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27336 ac_shift=:
27337 ;;
27338 *)
27339 ac_option=$1
27340 ac_optarg=$2
27341 ac_shift=shift
27342 ;;
27343 esac
27344
27345 case $ac_option in
27346 # Handling of the options.
27347 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27348 ac_cs_recheck=: ;;
27349 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27350 $as_echo "$ac_cs_version"; exit ;;
27351 --debug | --debu | --deb | --de | --d | -d )
27352 debug=: ;;
27353 --file | --fil | --fi | --f )
27354 $ac_shift
27355 case $ac_optarg in
27356 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27357 esac
27358 as_fn_append CONFIG_FILES " '$ac_optarg'"
27359 ac_need_defaults=false;;
27360 --header | --heade | --head | --hea )
27361 $ac_shift
27362 case $ac_optarg in
27363 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27364 esac
27365 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27366 ac_need_defaults=false;;
27367 --he | --h)
27368 # Conflict between --help and --header
27369 as_fn_error "ambiguous option: \`$1'
27370 Try \`$0 --help' for more information.";;
27371 --help | --hel | -h )
27372 $as_echo "$ac_cs_usage"; exit ;;
27373 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27374 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27375 ac_cs_silent=: ;;
27376
27377 # This is an error.
27378 -*) as_fn_error "unrecognized option: \`$1'
27379 Try \`$0 --help' for more information." ;;
27380
27381 *) as_fn_append ac_config_targets " $1"
27382 ac_need_defaults=false ;;
27383
27384 esac
27385 shift
27386 done
27387
27388 ac_configure_extra_args=
27389
27390 if $ac_cs_silent; then
27391 exec 6>/dev/null
27392 ac_configure_extra_args="$ac_configure_extra_args --silent"
27393 fi
27394
27395 _ACEOF
27396 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27397 if \$ac_cs_recheck; then
27398 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27399 shift
27400 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27401 CONFIG_SHELL='$SHELL'
27402 export CONFIG_SHELL
27403 exec "\$@"
27404 fi
27405
27406 _ACEOF
27407 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27408 exec 5>>config.log
27409 {
27410 echo
27411 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27412 ## Running $as_me. ##
27413 _ASBOX
27414 $as_echo "$ac_log"
27415 } >&5
27416
27417 _ACEOF
27418 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27419 #
27420 # INIT-COMMANDS
27421 #
27422
27423 srcdir="$srcdir"
27424 host="$host"
27425 target="$target"
27426 with_multisubdir="$with_multisubdir"
27427 with_multisrctop="$with_multisrctop"
27428 with_target_subdir="$with_target_subdir"
27429 ac_configure_args="${multilib_arg} ${ac_configure_args}"
27430 multi_basedir="$multi_basedir"
27431 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
27432 CC="$CC"
27433 CXX="$CXX"
27434 GFORTRAN="$GFORTRAN"
27435 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27436
27437
27438 # The HP-UX ksh and POSIX shell print the target directory to stdout
27439 # if CDPATH is set.
27440 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27441
27442 sed_quote_subst='$sed_quote_subst'
27443 double_quote_subst='$double_quote_subst'
27444 delay_variable_subst='$delay_variable_subst'
27445 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
27446 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
27447 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
27448 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
27449 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
27450 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27451 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27452 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
27453 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
27454 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
27455 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
27456 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27457 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27458 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
27459 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27460 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27461 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
27462 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
27463 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
27464 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
27465 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27466 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27467 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27468 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27469 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27470 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27471 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27472 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27473 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27474 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27475 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
27476 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27477 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27478 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27479 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27480 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27481 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27482 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27483 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27484 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27485 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27486 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27487 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27488 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27489 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27490 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27491 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27492 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27493 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"`'
27494 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27495 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27496 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27497 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27498 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27499 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27500 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27501 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27502 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27503 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27504 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27505 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27506 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27507 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27508 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27509 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27510 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27511 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27512 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27513 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27514 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27515 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
27516 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27517 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27518 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27519 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27520 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27521 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27522 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27523 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27524 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27525 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
27526 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27527 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27528 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27529 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27530 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27531 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27532 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27533 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27534 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
27535 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27536 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27537 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27538 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27539 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27540 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27541 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27542 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27543 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27544 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27545 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27546 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27547 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27548 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27549 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27550 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27551 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27552 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27553 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27554 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27555 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27556 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27557 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27558 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
27559 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27560 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27561 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27562 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27563 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27564 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27565 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
27566 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
27567 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
27568 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
27569 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
27570 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
27571 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
27572 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
27573 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
27574 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
27575 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
27576 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
27577 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
27578 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
27579 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
27580 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
27581 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
27582 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
27583 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
27584 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27585 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27586 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
27587 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
27588 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
27589 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
27590 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
27591 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
27592 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
27593 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
27594 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
27595 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
27596 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27597 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
27598 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
27599 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
27600 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
27601 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
27602 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
27603 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
27604 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
27605 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
27606 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
27607 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
27608 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
27609 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
27610 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
27611 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
27612 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
27613 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
27614 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
27615 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
27616 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
27617 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
27618 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
27619 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
27620
27621 LTCC='$LTCC'
27622 LTCFLAGS='$LTCFLAGS'
27623 compiler='$compiler_DEFAULT'
27624
27625 # A function that is used when there is no print builtin or printf.
27626 func_fallback_echo ()
27627 {
27628 eval 'cat <<_LTECHO_EOF
27629 \$1
27630 _LTECHO_EOF'
27631 }
27632
27633 # Quote evaled strings.
27634 for var in SED \
27635 GREP \
27636 EGREP \
27637 FGREP \
27638 SHELL \
27639 ECHO \
27640 LD \
27641 NM \
27642 LN_S \
27643 lt_SP2NL \
27644 lt_NL2SP \
27645 reload_flag \
27646 OBJDUMP \
27647 deplibs_check_method \
27648 file_magic_cmd \
27649 AR \
27650 AR_FLAGS \
27651 STRIP \
27652 RANLIB \
27653 CC \
27654 CFLAGS \
27655 compiler \
27656 lt_cv_sys_global_symbol_pipe \
27657 lt_cv_sys_global_symbol_to_cdecl \
27658 lt_cv_sys_global_symbol_to_c_name_address \
27659 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27660 lt_prog_compiler_no_builtin_flag \
27661 lt_prog_compiler_wl \
27662 lt_prog_compiler_pic \
27663 lt_prog_compiler_static \
27664 lt_cv_prog_compiler_c_o \
27665 need_locks \
27666 DSYMUTIL \
27667 NMEDIT \
27668 LIPO \
27669 OTOOL \
27670 OTOOL64 \
27671 shrext_cmds \
27672 export_dynamic_flag_spec \
27673 whole_archive_flag_spec \
27674 compiler_needs_object \
27675 with_gnu_ld \
27676 allow_undefined_flag \
27677 no_undefined_flag \
27678 hardcode_libdir_flag_spec \
27679 hardcode_libdir_flag_spec_ld \
27680 hardcode_libdir_separator \
27681 fix_srcfile_path \
27682 exclude_expsyms \
27683 include_expsyms \
27684 file_list_spec \
27685 variables_saved_for_relink \
27686 libname_spec \
27687 library_names_spec \
27688 soname_spec \
27689 install_override_mode \
27690 finish_eval \
27691 old_striplib \
27692 striplib \
27693 compiler_lib_search_dirs \
27694 predep_objects \
27695 postdep_objects \
27696 predeps \
27697 postdeps \
27698 compiler_lib_search_path \
27699 LD_FC \
27700 reload_flag_FC \
27701 compiler_FC \
27702 lt_prog_compiler_no_builtin_flag_FC \
27703 lt_prog_compiler_wl_FC \
27704 lt_prog_compiler_pic_FC \
27705 lt_prog_compiler_static_FC \
27706 lt_cv_prog_compiler_c_o_FC \
27707 export_dynamic_flag_spec_FC \
27708 whole_archive_flag_spec_FC \
27709 compiler_needs_object_FC \
27710 with_gnu_ld_FC \
27711 allow_undefined_flag_FC \
27712 no_undefined_flag_FC \
27713 hardcode_libdir_flag_spec_FC \
27714 hardcode_libdir_flag_spec_ld_FC \
27715 hardcode_libdir_separator_FC \
27716 fix_srcfile_path_FC \
27717 exclude_expsyms_FC \
27718 include_expsyms_FC \
27719 file_list_spec_FC \
27720 compiler_lib_search_dirs_FC \
27721 predep_objects_FC \
27722 postdep_objects_FC \
27723 predeps_FC \
27724 postdeps_FC \
27725 compiler_lib_search_path_FC; do
27726 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27727 *[\\\\\\\`\\"\\\$]*)
27728 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
27729 ;;
27730 *)
27731 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27732 ;;
27733 esac
27734 done
27735
27736 # Double-quote double-evaled strings.
27737 for var in reload_cmds \
27738 old_postinstall_cmds \
27739 old_postuninstall_cmds \
27740 old_archive_cmds \
27741 extract_expsyms_cmds \
27742 old_archive_from_new_cmds \
27743 old_archive_from_expsyms_cmds \
27744 archive_cmds \
27745 archive_expsym_cmds \
27746 module_cmds \
27747 module_expsym_cmds \
27748 export_symbols_cmds \
27749 prelink_cmds \
27750 postinstall_cmds \
27751 postuninstall_cmds \
27752 finish_cmds \
27753 sys_lib_search_path_spec \
27754 sys_lib_dlsearch_path_spec \
27755 reload_cmds_FC \
27756 old_archive_cmds_FC \
27757 old_archive_from_new_cmds_FC \
27758 old_archive_from_expsyms_cmds_FC \
27759 archive_cmds_FC \
27760 archive_expsym_cmds_FC \
27761 module_cmds_FC \
27762 module_expsym_cmds_FC \
27763 export_symbols_cmds_FC \
27764 prelink_cmds_FC; do
27765 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27766 *[\\\\\\\`\\"\\\$]*)
27767 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
27768 ;;
27769 *)
27770 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27771 ;;
27772 esac
27773 done
27774
27775 ac_aux_dir='$ac_aux_dir'
27776 xsi_shell='$xsi_shell'
27777 lt_shell_append='$lt_shell_append'
27778
27779 # See if we are running on zsh, and set the options which allow our
27780 # commands through without removal of \ escapes INIT.
27781 if test -n "\${ZSH_VERSION+set}" ; then
27782 setopt NO_GLOB_SUBST
27783 fi
27784
27785
27786 PACKAGE='$PACKAGE'
27787 VERSION='$VERSION'
27788 TIMESTAMP='$TIMESTAMP'
27789 RM='$RM'
27790 ofile='$ofile'
27791
27792
27793
27794
27795
27796
27797 GCC="$GCC"
27798 CC="$CC"
27799 acx_cv_header_stdint="$acx_cv_header_stdint"
27800 acx_cv_type_int8_t="$acx_cv_type_int8_t"
27801 acx_cv_type_int16_t="$acx_cv_type_int16_t"
27802 acx_cv_type_int32_t="$acx_cv_type_int32_t"
27803 acx_cv_type_int64_t="$acx_cv_type_int64_t"
27804 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
27805 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
27806 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
27807 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
27808 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
27809 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
27810 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
27811 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
27812 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
27813
27814
27815 _ACEOF
27816
27817 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27818
27819 # Handling of arguments.
27820 for ac_config_target in $ac_config_targets
27821 do
27822 case $ac_config_target in
27823 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27824 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
27825 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27826 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27827 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
27828 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27829 "libgfortran.spec") CONFIG_FILES="$CONFIG_FILES libgfortran.spec" ;;
27830
27831 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27832 esac
27833 done
27834
27835
27836 # If the user did not use the arguments to specify the items to instantiate,
27837 # then the envvar interface is used. Set only those that are not.
27838 # We use the long form for the default assignment because of an extremely
27839 # bizarre bug on SunOS 4.1.3.
27840 if $ac_need_defaults; then
27841 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27842 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27843 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27844 fi
27845
27846 # Have a temporary directory for convenience. Make it in the build tree
27847 # simply because there is no reason against having it here, and in addition,
27848 # creating and moving files from /tmp can sometimes cause problems.
27849 # Hook for its removal unless debugging.
27850 # Note that there is a small window in which the directory will not be cleaned:
27851 # after its creation but before its name has been assigned to `$tmp'.
27852 $debug ||
27853 {
27854 tmp=
27855 trap 'exit_status=$?
27856 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27857 ' 0
27858 trap 'as_fn_exit 1' 1 2 13 15
27859 }
27860 # Create a (secure) tmp directory for tmp files.
27861
27862 {
27863 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27864 test -n "$tmp" && test -d "$tmp"
27865 } ||
27866 {
27867 tmp=./conf$$-$RANDOM
27868 (umask 077 && mkdir "$tmp")
27869 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
27870
27871 # Set up the scripts for CONFIG_FILES section.
27872 # No need to generate them if there are no CONFIG_FILES.
27873 # This happens for instance with `./config.status config.h'.
27874 if test -n "$CONFIG_FILES"; then
27875
27876
27877 ac_cr=`echo X | tr X '\015'`
27878 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27879 # But we know of no other shell where ac_cr would be empty at this
27880 # point, so we can use a bashism as a fallback.
27881 if test "x$ac_cr" = x; then
27882 eval ac_cr=\$\'\\r\'
27883 fi
27884 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27885 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27886 ac_cs_awk_cr='\r'
27887 else
27888 ac_cs_awk_cr=$ac_cr
27889 fi
27890
27891 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27892 _ACEOF
27893
27894
27895 {
27896 echo "cat >conf$$subs.awk <<_ACEOF" &&
27897 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27898 echo "_ACEOF"
27899 } >conf$$subs.sh ||
27900 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27901 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27902 ac_delim='%!_!# '
27903 for ac_last_try in false false false false false :; do
27904 . ./conf$$subs.sh ||
27905 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27906
27907 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27908 if test $ac_delim_n = $ac_delim_num; then
27909 break
27910 elif $ac_last_try; then
27911 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27912 else
27913 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27914 fi
27915 done
27916 rm -f conf$$subs.sh
27917
27918 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27919 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27920 _ACEOF
27921 sed -n '
27922 h
27923 s/^/S["/; s/!.*/"]=/
27924 p
27925 g
27926 s/^[^!]*!//
27927 :repl
27928 t repl
27929 s/'"$ac_delim"'$//
27930 t delim
27931 :nl
27932 h
27933 s/\(.\{148\}\).*/\1/
27934 t more1
27935 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27936 p
27937 n
27938 b repl
27939 :more1
27940 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27941 p
27942 g
27943 s/.\{148\}//
27944 t nl
27945 :delim
27946 h
27947 s/\(.\{148\}\).*/\1/
27948 t more2
27949 s/["\\]/\\&/g; s/^/"/; s/$/"/
27950 p
27951 b
27952 :more2
27953 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27954 p
27955 g
27956 s/.\{148\}//
27957 t delim
27958 ' <conf$$subs.awk | sed '
27959 /^[^""]/{
27960 N
27961 s/\n//
27962 }
27963 ' >>$CONFIG_STATUS || ac_write_fail=1
27964 rm -f conf$$subs.awk
27965 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27966 _ACAWK
27967 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27968 for (key in S) S_is_set[key] = 1
27969 FS = "\a"
27970
27971 }
27972 {
27973 line = $ 0
27974 nfields = split(line, field, "@")
27975 substed = 0
27976 len = length(field[1])
27977 for (i = 2; i < nfields; i++) {
27978 key = field[i]
27979 keylen = length(key)
27980 if (S_is_set[key]) {
27981 value = S[key]
27982 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27983 len += length(value) + length(field[++i])
27984 substed = 1
27985 } else
27986 len += 1 + keylen
27987 }
27988
27989 print line
27990 }
27991
27992 _ACAWK
27993 _ACEOF
27994 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27995 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27996 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27997 else
27998 cat
27999 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28000 || as_fn_error "could not setup config files machinery" "$LINENO" 5
28001 _ACEOF
28002
28003 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28004 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28005 # trailing colons and then remove the whole line if VPATH becomes empty
28006 # (actually we leave an empty line to preserve line numbers).
28007 if test "x$srcdir" = x.; then
28008 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28009 s/:*\$(srcdir):*/:/
28010 s/:*\${srcdir}:*/:/
28011 s/:*@srcdir@:*/:/
28012 s/^\([^=]*=[ ]*\):*/\1/
28013 s/:*$//
28014 s/^[^=]*=[ ]*$//
28015 }'
28016 fi
28017
28018 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28019 fi # test -n "$CONFIG_FILES"
28020
28021 # Set up the scripts for CONFIG_HEADERS section.
28022 # No need to generate them if there are no CONFIG_HEADERS.
28023 # This happens for instance with `./config.status Makefile'.
28024 if test -n "$CONFIG_HEADERS"; then
28025 cat >"$tmp/defines.awk" <<\_ACAWK ||
28026 BEGIN {
28027 _ACEOF
28028
28029 # Transform confdefs.h into an awk script `defines.awk', embedded as
28030 # here-document in config.status, that substitutes the proper values into
28031 # config.h.in to produce config.h.
28032
28033 # Create a delimiter string that does not exist in confdefs.h, to ease
28034 # handling of long lines.
28035 ac_delim='%!_!# '
28036 for ac_last_try in false false :; do
28037 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28038 if test -z "$ac_t"; then
28039 break
28040 elif $ac_last_try; then
28041 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28042 else
28043 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28044 fi
28045 done
28046
28047 # For the awk script, D is an array of macro values keyed by name,
28048 # likewise P contains macro parameters if any. Preserve backslash
28049 # newline sequences.
28050
28051 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28052 sed -n '
28053 s/.\{148\}/&'"$ac_delim"'/g
28054 t rset
28055 :rset
28056 s/^[ ]*#[ ]*define[ ][ ]*/ /
28057 t def
28058 d
28059 :def
28060 s/\\$//
28061 t bsnl
28062 s/["\\]/\\&/g
28063 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28064 D["\1"]=" \3"/p
28065 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28066 d
28067 :bsnl
28068 s/["\\]/\\&/g
28069 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28070 D["\1"]=" \3\\\\\\n"\\/p
28071 t cont
28072 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28073 t cont
28074 d
28075 :cont
28076 n
28077 s/.\{148\}/&'"$ac_delim"'/g
28078 t clear
28079 :clear
28080 s/\\$//
28081 t bsnlc
28082 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28083 d
28084 :bsnlc
28085 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28086 b cont
28087 ' <confdefs.h | sed '
28088 s/'"$ac_delim"'/"\\\
28089 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28090
28091 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28092 for (key in D) D_is_set[key] = 1
28093 FS = "\a"
28094 }
28095 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28096 line = \$ 0
28097 split(line, arg, " ")
28098 if (arg[1] == "#") {
28099 defundef = arg[2]
28100 mac1 = arg[3]
28101 } else {
28102 defundef = substr(arg[1], 2)
28103 mac1 = arg[2]
28104 }
28105 split(mac1, mac2, "(") #)
28106 macro = mac2[1]
28107 prefix = substr(line, 1, index(line, defundef) - 1)
28108 if (D_is_set[macro]) {
28109 # Preserve the white space surrounding the "#".
28110 print prefix "define", macro P[macro] D[macro]
28111 next
28112 } else {
28113 # Replace #undef with comments. This is necessary, for example,
28114 # in the case of _POSIX_SOURCE, which is predefined and required
28115 # on some systems where configure will not decide to define it.
28116 if (defundef == "undef") {
28117 print "/*", prefix defundef, macro, "*/"
28118 next
28119 }
28120 }
28121 }
28122 { print }
28123 _ACAWK
28124 _ACEOF
28125 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28126 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28127 fi # test -n "$CONFIG_HEADERS"
28128
28129
28130 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28131 shift
28132 for ac_tag
28133 do
28134 case $ac_tag in
28135 :[FHLC]) ac_mode=$ac_tag; continue;;
28136 esac
28137 case $ac_mode$ac_tag in
28138 :[FHL]*:*);;
28139 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28140 :[FH]-) ac_tag=-:-;;
28141 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28142 esac
28143 ac_save_IFS=$IFS
28144 IFS=:
28145 set x $ac_tag
28146 IFS=$ac_save_IFS
28147 shift
28148 ac_file=$1
28149 shift
28150
28151 case $ac_mode in
28152 :L) ac_source=$1;;
28153 :[FH])
28154 ac_file_inputs=
28155 for ac_f
28156 do
28157 case $ac_f in
28158 -) ac_f="$tmp/stdin";;
28159 *) # Look for the file first in the build tree, then in the source tree
28160 # (if the path is not absolute). The absolute path cannot be DOS-style,
28161 # because $ac_f cannot contain `:'.
28162 test -f "$ac_f" ||
28163 case $ac_f in
28164 [\\/$]*) false;;
28165 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28166 esac ||
28167 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28168 esac
28169 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28170 as_fn_append ac_file_inputs " '$ac_f'"
28171 done
28172
28173 # Let's still pretend it is `configure' which instantiates (i.e., don't
28174 # use $as_me), people would be surprised to read:
28175 # /* config.h. Generated by config.status. */
28176 configure_input='Generated from '`
28177 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28178 `' by configure.'
28179 if test x"$ac_file" != x-; then
28180 configure_input="$ac_file. $configure_input"
28181 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28182 $as_echo "$as_me: creating $ac_file" >&6;}
28183 fi
28184 # Neutralize special characters interpreted by sed in replacement strings.
28185 case $configure_input in #(
28186 *\&* | *\|* | *\\* )
28187 ac_sed_conf_input=`$as_echo "$configure_input" |
28188 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28189 *) ac_sed_conf_input=$configure_input;;
28190 esac
28191
28192 case $ac_tag in
28193 *:-:* | *:-) cat >"$tmp/stdin" \
28194 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28195 esac
28196 ;;
28197 esac
28198
28199 ac_dir=`$as_dirname -- "$ac_file" ||
28200 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28201 X"$ac_file" : 'X\(//\)[^/]' \| \
28202 X"$ac_file" : 'X\(//\)$' \| \
28203 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28204 $as_echo X"$ac_file" |
28205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28206 s//\1/
28207 q
28208 }
28209 /^X\(\/\/\)[^/].*/{
28210 s//\1/
28211 q
28212 }
28213 /^X\(\/\/\)$/{
28214 s//\1/
28215 q
28216 }
28217 /^X\(\/\).*/{
28218 s//\1/
28219 q
28220 }
28221 s/.*/./; q'`
28222 as_dir="$ac_dir"; as_fn_mkdir_p
28223 ac_builddir=.
28224
28225 case "$ac_dir" in
28226 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28227 *)
28228 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28229 # A ".." for each directory in $ac_dir_suffix.
28230 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28231 case $ac_top_builddir_sub in
28232 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28233 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28234 esac ;;
28235 esac
28236 ac_abs_top_builddir=$ac_pwd
28237 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28238 # for backward compatibility:
28239 ac_top_builddir=$ac_top_build_prefix
28240
28241 case $srcdir in
28242 .) # We are building in place.
28243 ac_srcdir=.
28244 ac_top_srcdir=$ac_top_builddir_sub
28245 ac_abs_top_srcdir=$ac_pwd ;;
28246 [\\/]* | ?:[\\/]* ) # Absolute name.
28247 ac_srcdir=$srcdir$ac_dir_suffix;
28248 ac_top_srcdir=$srcdir
28249 ac_abs_top_srcdir=$srcdir ;;
28250 *) # Relative name.
28251 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28252 ac_top_srcdir=$ac_top_build_prefix$srcdir
28253 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28254 esac
28255 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28256
28257
28258 case $ac_mode in
28259 :F)
28260 #
28261 # CONFIG_FILE
28262 #
28263
28264 case $INSTALL in
28265 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28266 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28267 esac
28268 ac_MKDIR_P=$MKDIR_P
28269 case $MKDIR_P in
28270 [\\/$]* | ?:[\\/]* ) ;;
28271 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28272 esac
28273 _ACEOF
28274
28275 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28276 # If the template does not know about datarootdir, expand it.
28277 # FIXME: This hack should be removed a few years after 2.60.
28278 ac_datarootdir_hack=; ac_datarootdir_seen=
28279 ac_sed_dataroot='
28280 /datarootdir/ {
28281 p
28282 q
28283 }
28284 /@datadir@/p
28285 /@docdir@/p
28286 /@infodir@/p
28287 /@localedir@/p
28288 /@mandir@/p'
28289 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28290 *datarootdir*) ac_datarootdir_seen=yes;;
28291 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28293 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28294 _ACEOF
28295 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28296 ac_datarootdir_hack='
28297 s&@datadir@&$datadir&g
28298 s&@docdir@&$docdir&g
28299 s&@infodir@&$infodir&g
28300 s&@localedir@&$localedir&g
28301 s&@mandir@&$mandir&g
28302 s&\\\${datarootdir}&$datarootdir&g' ;;
28303 esac
28304 _ACEOF
28305
28306 # Neutralize VPATH when `$srcdir' = `.'.
28307 # Shell code in configure.ac might set extrasub.
28308 # FIXME: do we really want to maintain this feature?
28309 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28310 ac_sed_extra="$ac_vpsub
28311 $extrasub
28312 _ACEOF
28313 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28314 :t
28315 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28316 s|@configure_input@|$ac_sed_conf_input|;t t
28317 s&@top_builddir@&$ac_top_builddir_sub&;t t
28318 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28319 s&@srcdir@&$ac_srcdir&;t t
28320 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28321 s&@top_srcdir@&$ac_top_srcdir&;t t
28322 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28323 s&@builddir@&$ac_builddir&;t t
28324 s&@abs_builddir@&$ac_abs_builddir&;t t
28325 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28326 s&@INSTALL@&$ac_INSTALL&;t t
28327 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28328 $ac_datarootdir_hack
28329 "
28330 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
28331 || as_fn_error "could not create $ac_file" "$LINENO" 5
28332
28333 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28334 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28335 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28337 which seems to be undefined. Please make sure it is defined." >&5
28338 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28339 which seems to be undefined. Please make sure it is defined." >&2;}
28340
28341 rm -f "$tmp/stdin"
28342 case $ac_file in
28343 -) cat "$tmp/out" && rm -f "$tmp/out";;
28344 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28345 esac \
28346 || as_fn_error "could not create $ac_file" "$LINENO" 5
28347 ;;
28348 :H)
28349 #
28350 # CONFIG_HEADER
28351 #
28352 if test x"$ac_file" != x-; then
28353 {
28354 $as_echo "/* $configure_input */" \
28355 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28356 } >"$tmp/config.h" \
28357 || as_fn_error "could not create $ac_file" "$LINENO" 5
28358 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28359 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28360 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28361 else
28362 rm -f "$ac_file"
28363 mv "$tmp/config.h" "$ac_file" \
28364 || as_fn_error "could not create $ac_file" "$LINENO" 5
28365 fi
28366 else
28367 $as_echo "/* $configure_input */" \
28368 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28369 || as_fn_error "could not create -" "$LINENO" 5
28370 fi
28371 # Compute "$ac_file"'s index in $config_headers.
28372 _am_arg="$ac_file"
28373 _am_stamp_count=1
28374 for _am_header in $config_headers :; do
28375 case $_am_header in
28376 $_am_arg | $_am_arg:* )
28377 break ;;
28378 * )
28379 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28380 esac
28381 done
28382 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28383 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28384 X"$_am_arg" : 'X\(//\)[^/]' \| \
28385 X"$_am_arg" : 'X\(//\)$' \| \
28386 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28387 $as_echo X"$_am_arg" |
28388 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28389 s//\1/
28390 q
28391 }
28392 /^X\(\/\/\)[^/].*/{
28393 s//\1/
28394 q
28395 }
28396 /^X\(\/\/\)$/{
28397 s//\1/
28398 q
28399 }
28400 /^X\(\/\).*/{
28401 s//\1/
28402 q
28403 }
28404 s/.*/./; q'`/stamp-h$_am_stamp_count
28405 ;;
28406
28407 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28408 $as_echo "$as_me: executing $ac_file commands" >&6;}
28409 ;;
28410 esac
28411
28412
28413 case $ac_file$ac_mode in
28414 "default-1":C)
28415 # Only add multilib support code if we just rebuilt the top-level
28416 # Makefile.
28417 case " $CONFIG_FILES " in
28418 *" Makefile "*)
28419 ac_file=Makefile . ${multi_basedir}/config-ml.in
28420 ;;
28421 esac ;;
28422 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28423 # Autoconf 2.62 quotes --file arguments for eval, but not when files
28424 # are listed without --file. Let's play safe and only enable the eval
28425 # if we detect the quoting.
28426 case $CONFIG_FILES in
28427 *\'*) eval set x "$CONFIG_FILES" ;;
28428 *) set x $CONFIG_FILES ;;
28429 esac
28430 shift
28431 for mf
28432 do
28433 # Strip MF so we end up with the name of the file.
28434 mf=`echo "$mf" | sed -e 's/:.*$//'`
28435 # Check whether this is an Automake generated Makefile or not.
28436 # We used to match only the files named `Makefile.in', but
28437 # some people rename them; so instead we look at the file content.
28438 # Grep'ing the first line is not enough: some people post-process
28439 # each Makefile.in and add a new line on top of each file to say so.
28440 # Grep'ing the whole file is not good either: AIX grep has a line
28441 # limit of 2048, but all sed's we know have understand at least 4000.
28442 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
28443 dirpart=`$as_dirname -- "$mf" ||
28444 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28445 X"$mf" : 'X\(//\)[^/]' \| \
28446 X"$mf" : 'X\(//\)$' \| \
28447 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28448 $as_echo X"$mf" |
28449 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28450 s//\1/
28451 q
28452 }
28453 /^X\(\/\/\)[^/].*/{
28454 s//\1/
28455 q
28456 }
28457 /^X\(\/\/\)$/{
28458 s//\1/
28459 q
28460 }
28461 /^X\(\/\).*/{
28462 s//\1/
28463 q
28464 }
28465 s/.*/./; q'`
28466 else
28467 continue
28468 fi
28469 # Extract the definition of DEPDIR, am__include, and am__quote
28470 # from the Makefile without running `make'.
28471 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28472 test -z "$DEPDIR" && continue
28473 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28474 test -z "am__include" && continue
28475 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28476 # When using ansi2knr, U may be empty or an underscore; expand it
28477 U=`sed -n 's/^U = //p' < "$mf"`
28478 # Find all dependency output files, they are included files with
28479 # $(DEPDIR) in their names. We invoke sed twice because it is the
28480 # simplest approach to changing $(DEPDIR) to its actual value in the
28481 # expansion.
28482 for file in `sed -n "
28483 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28484 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28485 # Make sure the directory exists.
28486 test -f "$dirpart/$file" && continue
28487 fdir=`$as_dirname -- "$file" ||
28488 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28489 X"$file" : 'X\(//\)[^/]' \| \
28490 X"$file" : 'X\(//\)$' \| \
28491 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28492 $as_echo X"$file" |
28493 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28494 s//\1/
28495 q
28496 }
28497 /^X\(\/\/\)[^/].*/{
28498 s//\1/
28499 q
28500 }
28501 /^X\(\/\/\)$/{
28502 s//\1/
28503 q
28504 }
28505 /^X\(\/\).*/{
28506 s//\1/
28507 q
28508 }
28509 s/.*/./; q'`
28510 as_dir=$dirpart/$fdir; as_fn_mkdir_p
28511 # echo "creating $dirpart/$file"
28512 echo '# dummy' > "$dirpart/$file"
28513 done
28514 done
28515 }
28516 ;;
28517 "libtool":C)
28518
28519 # See if we are running on zsh, and set the options which allow our
28520 # commands through without removal of \ escapes.
28521 if test -n "${ZSH_VERSION+set}" ; then
28522 setopt NO_GLOB_SUBST
28523 fi
28524
28525 cfgfile="${ofile}T"
28526 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28527 $RM "$cfgfile"
28528
28529 cat <<_LT_EOF >> "$cfgfile"
28530 #! $SHELL
28531
28532 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
28533 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
28534 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
28535 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
28536 #
28537 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
28538 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
28539 # Written by Gordon Matzigkeit, 1996
28540 #
28541 # This file is part of GNU Libtool.
28542 #
28543 # GNU Libtool is free software; you can redistribute it and/or
28544 # modify it under the terms of the GNU General Public License as
28545 # published by the Free Software Foundation; either version 2 of
28546 # the License, or (at your option) any later version.
28547 #
28548 # As a special exception to the GNU General Public License,
28549 # if you distribute this file as part of a program or library that
28550 # is built using GNU Libtool, you may include this file under the
28551 # same distribution terms that you use for the rest of that program.
28552 #
28553 # GNU Libtool is distributed in the hope that it will be useful,
28554 # but WITHOUT ANY WARRANTY; without even the implied warranty of
28555 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28556 # GNU General Public License for more details.
28557 #
28558 # You should have received a copy of the GNU General Public License
28559 # along with GNU Libtool; see the file COPYING. If not, a copy
28560 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
28561 # obtained by writing to the Free Software Foundation, Inc.,
28562 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
28563
28564
28565 # The names of the tagged configurations supported by this script.
28566 available_tags="FC "
28567
28568 # ### BEGIN LIBTOOL CONFIG
28569
28570 # A sed program that does not truncate output.
28571 SED=$lt_SED
28572
28573 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
28574 Xsed="\$SED -e 1s/^X//"
28575
28576 # A grep program that handles long lines.
28577 GREP=$lt_GREP
28578
28579 # An ERE matcher.
28580 EGREP=$lt_EGREP
28581
28582 # A literal string matcher.
28583 FGREP=$lt_FGREP
28584
28585 # Shell to use when invoking shell scripts.
28586 SHELL=$lt_SHELL
28587
28588 # An echo program that protects backslashes.
28589 ECHO=$lt_ECHO
28590
28591 # Which release of libtool.m4 was used?
28592 macro_version=$macro_version
28593 macro_revision=$macro_revision
28594
28595 # Whether or not to build shared libraries.
28596 build_libtool_libs=$enable_shared
28597
28598 # Whether or not to build static libraries.
28599 build_old_libs=$enable_static
28600
28601 # What type of objects to build.
28602 pic_mode=$pic_mode
28603
28604 # Whether or not to optimize for fast installation.
28605 fast_install=$enable_fast_install
28606
28607 # The host system.
28608 host_alias=$host_alias
28609 host=$host
28610 host_os=$host_os
28611
28612 # The build system.
28613 build_alias=$build_alias
28614 build=$build
28615 build_os=$build_os
28616
28617 # A BSD- or MS-compatible name lister.
28618 NM=$lt_NM
28619
28620 # Whether we need soft or hard links.
28621 LN_S=$lt_LN_S
28622
28623 # What is the maximum length of a command?
28624 max_cmd_len=$max_cmd_len
28625
28626 # Object file suffix (normally "o").
28627 objext=$ac_objext
28628
28629 # Executable file suffix (normally "").
28630 exeext=$exeext
28631
28632 # whether the shell understands "unset".
28633 lt_unset=$lt_unset
28634
28635 # turn spaces into newlines.
28636 SP2NL=$lt_lt_SP2NL
28637
28638 # turn newlines into spaces.
28639 NL2SP=$lt_lt_NL2SP
28640
28641 # An object symbol dumper.
28642 OBJDUMP=$lt_OBJDUMP
28643
28644 # Method to check whether dependent libraries are shared objects.
28645 deplibs_check_method=$lt_deplibs_check_method
28646
28647 # Command to use when deplibs_check_method == "file_magic".
28648 file_magic_cmd=$lt_file_magic_cmd
28649
28650 # The archiver.
28651 AR=$lt_AR
28652 AR_FLAGS=$lt_AR_FLAGS
28653
28654 # A symbol stripping program.
28655 STRIP=$lt_STRIP
28656
28657 # Commands used to install an old-style archive.
28658 RANLIB=$lt_RANLIB
28659 old_postinstall_cmds=$lt_old_postinstall_cmds
28660 old_postuninstall_cmds=$lt_old_postuninstall_cmds
28661
28662 # Whether to use a lock for old archive extraction.
28663 lock_old_archive_extraction=$lock_old_archive_extraction
28664
28665 # A C compiler.
28666 LTCC=$lt_CC
28667
28668 # LTCC compiler flags.
28669 LTCFLAGS=$lt_CFLAGS
28670
28671 # Take the output of nm and produce a listing of raw symbols and C names.
28672 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28673
28674 # Transform the output of nm in a proper C declaration.
28675 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28676
28677 # Transform the output of nm in a C name address pair.
28678 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28679
28680 # Transform the output of nm in a C name address pair when lib prefix is needed.
28681 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28682
28683 # The name of the directory that contains temporary libtool files.
28684 objdir=$objdir
28685
28686 # Used to examine libraries when file_magic_cmd begins with "file".
28687 MAGIC_CMD=$MAGIC_CMD
28688
28689 # Must we lock files when doing compilation?
28690 need_locks=$lt_need_locks
28691
28692 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28693 DSYMUTIL=$lt_DSYMUTIL
28694
28695 # Tool to change global to local symbols on Mac OS X.
28696 NMEDIT=$lt_NMEDIT
28697
28698 # Tool to manipulate fat objects and archives on Mac OS X.
28699 LIPO=$lt_LIPO
28700
28701 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
28702 OTOOL=$lt_OTOOL
28703
28704 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28705 OTOOL64=$lt_OTOOL64
28706
28707 # Old archive suffix (normally "a").
28708 libext=$libext
28709
28710 # Shared library suffix (normally ".so").
28711 shrext_cmds=$lt_shrext_cmds
28712
28713 # The commands to extract the exported symbol list from a shared archive.
28714 extract_expsyms_cmds=$lt_extract_expsyms_cmds
28715
28716 # Variables whose values should be saved in libtool wrapper scripts and
28717 # restored at link time.
28718 variables_saved_for_relink=$lt_variables_saved_for_relink
28719
28720 # Do we need the "lib" prefix for modules?
28721 need_lib_prefix=$need_lib_prefix
28722
28723 # Do we need a version for libraries?
28724 need_version=$need_version
28725
28726 # Library versioning type.
28727 version_type=$version_type
28728
28729 # Shared library runtime path variable.
28730 runpath_var=$runpath_var
28731
28732 # Shared library path variable.
28733 shlibpath_var=$shlibpath_var
28734
28735 # Is shlibpath searched before the hard-coded library search path?
28736 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28737
28738 # Format of library name prefix.
28739 libname_spec=$lt_libname_spec
28740
28741 # List of archive names. First name is the real one, the rest are links.
28742 # The last name is the one that the linker finds with -lNAME
28743 library_names_spec=$lt_library_names_spec
28744
28745 # The coded name of the library, if different from the real name.
28746 soname_spec=$lt_soname_spec
28747
28748 # Permission mode override for installation of shared libraries.
28749 install_override_mode=$lt_install_override_mode
28750
28751 # Command to use after installation of a shared archive.
28752 postinstall_cmds=$lt_postinstall_cmds
28753
28754 # Command to use after uninstallation of a shared archive.
28755 postuninstall_cmds=$lt_postuninstall_cmds
28756
28757 # Commands used to finish a libtool library installation in a directory.
28758 finish_cmds=$lt_finish_cmds
28759
28760 # As "finish_cmds", except a single script fragment to be evaled but
28761 # not shown.
28762 finish_eval=$lt_finish_eval
28763
28764 # Whether we should hardcode library paths into libraries.
28765 hardcode_into_libs=$hardcode_into_libs
28766
28767 # Compile-time system search path for libraries.
28768 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28769
28770 # Run-time system search path for libraries.
28771 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
28772
28773 # Whether dlopen is supported.
28774 dlopen_support=$enable_dlopen
28775
28776 # Whether dlopen of programs is supported.
28777 dlopen_self=$enable_dlopen_self
28778
28779 # Whether dlopen of statically linked programs is supported.
28780 dlopen_self_static=$enable_dlopen_self_static
28781
28782 # Commands to strip libraries.
28783 old_striplib=$lt_old_striplib
28784 striplib=$lt_striplib
28785
28786
28787 # The linker used to build libraries.
28788 LD=$lt_LD
28789
28790 # How to create reloadable object files.
28791 reload_flag=$lt_reload_flag
28792 reload_cmds=$lt_reload_cmds
28793
28794 # Commands used to build an old-style archive.
28795 old_archive_cmds=$lt_old_archive_cmds
28796
28797 # A language specific compiler.
28798 CC=$lt_compiler
28799
28800 # Is the compiler the GNU compiler?
28801 with_gcc=$GCC
28802
28803 # Compiler flag to turn off builtin functions.
28804 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28805
28806 # How to pass a linker flag through the compiler.
28807 wl=$lt_lt_prog_compiler_wl
28808
28809 # Additional compiler flags for building library objects.
28810 pic_flag=$lt_lt_prog_compiler_pic
28811
28812 # Compiler flag to prevent dynamic linking.
28813 link_static_flag=$lt_lt_prog_compiler_static
28814
28815 # Does compiler simultaneously support -c and -o options?
28816 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28817
28818 # Whether or not to add -lc for building shared libraries.
28819 build_libtool_need_lc=$archive_cmds_need_lc
28820
28821 # Whether or not to disallow shared libs when runtime libs are static.
28822 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28823
28824 # Compiler flag to allow reflexive dlopens.
28825 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28826
28827 # Compiler flag to generate shared objects directly from archives.
28828 whole_archive_flag_spec=$lt_whole_archive_flag_spec
28829
28830 # Whether the compiler copes with passing no objects directly.
28831 compiler_needs_object=$lt_compiler_needs_object
28832
28833 # Create an old-style archive from a shared archive.
28834 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28835
28836 # Create a temporary old-style archive to link instead of a shared archive.
28837 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28838
28839 # Commands used to build a shared archive.
28840 archive_cmds=$lt_archive_cmds
28841 archive_expsym_cmds=$lt_archive_expsym_cmds
28842
28843 # Commands used to build a loadable module if different from building
28844 # a shared archive.
28845 module_cmds=$lt_module_cmds
28846 module_expsym_cmds=$lt_module_expsym_cmds
28847
28848 # Whether we are building with GNU ld or not.
28849 with_gnu_ld=$lt_with_gnu_ld
28850
28851 # Flag that allows shared libraries with undefined symbols to be built.
28852 allow_undefined_flag=$lt_allow_undefined_flag
28853
28854 # Flag that enforces no undefined symbols.
28855 no_undefined_flag=$lt_no_undefined_flag
28856
28857 # Flag to hardcode \$libdir into a binary during linking.
28858 # This must work even if \$libdir does not exist
28859 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28860
28861 # If ld is used when linking, flag to hardcode \$libdir into a binary
28862 # during linking. This must work even if \$libdir does not exist.
28863 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
28864
28865 # Whether we need a single "-rpath" flag with a separated argument.
28866 hardcode_libdir_separator=$lt_hardcode_libdir_separator
28867
28868 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28869 # DIR into the resulting binary.
28870 hardcode_direct=$hardcode_direct
28871
28872 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28873 # DIR into the resulting binary and the resulting library dependency is
28874 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28875 # library is relocated.
28876 hardcode_direct_absolute=$hardcode_direct_absolute
28877
28878 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28879 # into the resulting binary.
28880 hardcode_minus_L=$hardcode_minus_L
28881
28882 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28883 # into the resulting binary.
28884 hardcode_shlibpath_var=$hardcode_shlibpath_var
28885
28886 # Set to "yes" if building a shared library automatically hardcodes DIR
28887 # into the library and all subsequent libraries and executables linked
28888 # against it.
28889 hardcode_automatic=$hardcode_automatic
28890
28891 # Set to yes if linker adds runtime paths of dependent libraries
28892 # to runtime path list.
28893 inherit_rpath=$inherit_rpath
28894
28895 # Whether libtool must link a program against all its dependency libraries.
28896 link_all_deplibs=$link_all_deplibs
28897
28898 # Fix the shell variable \$srcfile for the compiler.
28899 fix_srcfile_path=$lt_fix_srcfile_path
28900
28901 # Set to "yes" if exported symbols are required.
28902 always_export_symbols=$always_export_symbols
28903
28904 # The commands to list exported symbols.
28905 export_symbols_cmds=$lt_export_symbols_cmds
28906
28907 # Symbols that should not be listed in the preloaded symbols.
28908 exclude_expsyms=$lt_exclude_expsyms
28909
28910 # Symbols that must always be exported.
28911 include_expsyms=$lt_include_expsyms
28912
28913 # Commands necessary for linking programs (against libraries) with templates.
28914 prelink_cmds=$lt_prelink_cmds
28915
28916 # Specify filename containing input files.
28917 file_list_spec=$lt_file_list_spec
28918
28919 # How to hardcode a shared library path into an executable.
28920 hardcode_action=$hardcode_action
28921
28922 # The directories searched by this compiler when creating a shared library.
28923 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
28924
28925 # Dependencies to place before and after the objects being linked to
28926 # create a shared library.
28927 predep_objects=$lt_predep_objects
28928 postdep_objects=$lt_postdep_objects
28929 predeps=$lt_predeps
28930 postdeps=$lt_postdeps
28931
28932 # The library search path used internally by the compiler when linking
28933 # a shared library.
28934 compiler_lib_search_path=$lt_compiler_lib_search_path
28935
28936 # ### END LIBTOOL CONFIG
28937
28938 _LT_EOF
28939
28940 case $host_os in
28941 aix3*)
28942 cat <<\_LT_EOF >> "$cfgfile"
28943 # AIX sometimes has problems with the GCC collect2 program. For some
28944 # reason, if we set the COLLECT_NAMES environment variable, the problems
28945 # vanish in a puff of smoke.
28946 if test "X${COLLECT_NAMES+set}" != Xset; then
28947 COLLECT_NAMES=
28948 export COLLECT_NAMES
28949 fi
28950 _LT_EOF
28951 ;;
28952 esac
28953
28954
28955 ltmain="$ac_aux_dir/ltmain.sh"
28956
28957
28958 # We use sed instead of cat because bash on DJGPP gets confused if
28959 # if finds mixed CR/LF and LF-only lines. Since sed operates in
28960 # text mode, it properly converts lines to CR/LF. This bash problem
28961 # is reportedly fixed, but why not run on old versions too?
28962 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
28963 || (rm -f "$cfgfile"; exit 1)
28964
28965 case $xsi_shell in
28966 yes)
28967 cat << \_LT_EOF >> "$cfgfile"
28968
28969 # func_dirname file append nondir_replacement
28970 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
28971 # otherwise set result to NONDIR_REPLACEMENT.
28972 func_dirname ()
28973 {
28974 case ${1} in
28975 */*) func_dirname_result="${1%/*}${2}" ;;
28976 * ) func_dirname_result="${3}" ;;
28977 esac
28978 }
28979
28980 # func_basename file
28981 func_basename ()
28982 {
28983 func_basename_result="${1##*/}"
28984 }
28985
28986 # func_dirname_and_basename file append nondir_replacement
28987 # perform func_basename and func_dirname in a single function
28988 # call:
28989 # dirname: Compute the dirname of FILE. If nonempty,
28990 # add APPEND to the result, otherwise set result
28991 # to NONDIR_REPLACEMENT.
28992 # value returned in "$func_dirname_result"
28993 # basename: Compute filename of FILE.
28994 # value retuned in "$func_basename_result"
28995 # Implementation must be kept synchronized with func_dirname
28996 # and func_basename. For efficiency, we do not delegate to
28997 # those functions but instead duplicate the functionality here.
28998 func_dirname_and_basename ()
28999 {
29000 case ${1} in
29001 */*) func_dirname_result="${1%/*}${2}" ;;
29002 * ) func_dirname_result="${3}" ;;
29003 esac
29004 func_basename_result="${1##*/}"
29005 }
29006
29007 # func_stripname prefix suffix name
29008 # strip PREFIX and SUFFIX off of NAME.
29009 # PREFIX and SUFFIX must not contain globbing or regex special
29010 # characters, hashes, percent signs, but SUFFIX may contain a leading
29011 # dot (in which case that matches only a dot).
29012 func_stripname ()
29013 {
29014 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
29015 # positional parameters, so assign one to ordinary parameter first.
29016 func_stripname_result=${3}
29017 func_stripname_result=${func_stripname_result#"${1}"}
29018 func_stripname_result=${func_stripname_result%"${2}"}
29019 }
29020
29021 # func_opt_split
29022 func_opt_split ()
29023 {
29024 func_opt_split_opt=${1%%=*}
29025 func_opt_split_arg=${1#*=}
29026 }
29027
29028 # func_lo2o object
29029 func_lo2o ()
29030 {
29031 case ${1} in
29032 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
29033 *) func_lo2o_result=${1} ;;
29034 esac
29035 }
29036
29037 # func_xform libobj-or-source
29038 func_xform ()
29039 {
29040 func_xform_result=${1%.*}.lo
29041 }
29042
29043 # func_arith arithmetic-term...
29044 func_arith ()
29045 {
29046 func_arith_result=$(( $* ))
29047 }
29048
29049 # func_len string
29050 # STRING may not start with a hyphen.
29051 func_len ()
29052 {
29053 func_len_result=${#1}
29054 }
29055
29056 _LT_EOF
29057 ;;
29058 *) # Bourne compatible functions.
29059 cat << \_LT_EOF >> "$cfgfile"
29060
29061 # func_dirname file append nondir_replacement
29062 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
29063 # otherwise set result to NONDIR_REPLACEMENT.
29064 func_dirname ()
29065 {
29066 # Extract subdirectory from the argument.
29067 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
29068 if test "X$func_dirname_result" = "X${1}"; then
29069 func_dirname_result="${3}"
29070 else
29071 func_dirname_result="$func_dirname_result${2}"
29072 fi
29073 }
29074
29075 # func_basename file
29076 func_basename ()
29077 {
29078 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
29079 }
29080
29081
29082 # func_stripname prefix suffix name
29083 # strip PREFIX and SUFFIX off of NAME.
29084 # PREFIX and SUFFIX must not contain globbing or regex special
29085 # characters, hashes, percent signs, but SUFFIX may contain a leading
29086 # dot (in which case that matches only a dot).
29087 # func_strip_suffix prefix name
29088 func_stripname ()
29089 {
29090 case ${2} in
29091 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
29092 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
29093 esac
29094 }
29095
29096 # sed scripts:
29097 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
29098 my_sed_long_arg='1s/^-[^=]*=//'
29099
29100 # func_opt_split
29101 func_opt_split ()
29102 {
29103 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
29104 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
29105 }
29106
29107 # func_lo2o object
29108 func_lo2o ()
29109 {
29110 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
29111 }
29112
29113 # func_xform libobj-or-source
29114 func_xform ()
29115 {
29116 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
29117 }
29118
29119 # func_arith arithmetic-term...
29120 func_arith ()
29121 {
29122 func_arith_result=`expr "$@"`
29123 }
29124
29125 # func_len string
29126 # STRING may not start with a hyphen.
29127 func_len ()
29128 {
29129 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
29130 }
29131
29132 _LT_EOF
29133 esac
29134
29135 case $lt_shell_append in
29136 yes)
29137 cat << \_LT_EOF >> "$cfgfile"
29138
29139 # func_append var value
29140 # Append VALUE to the end of shell variable VAR.
29141 func_append ()
29142 {
29143 eval "$1+=\$2"
29144 }
29145 _LT_EOF
29146 ;;
29147 *)
29148 cat << \_LT_EOF >> "$cfgfile"
29149
29150 # func_append var value
29151 # Append VALUE to the end of shell variable VAR.
29152 func_append ()
29153 {
29154 eval "$1=\$$1\$2"
29155 }
29156
29157 _LT_EOF
29158 ;;
29159 esac
29160
29161
29162 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
29163 || (rm -f "$cfgfile"; exit 1)
29164
29165 mv -f "$cfgfile" "$ofile" ||
29166 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
29167 chmod +x "$ofile"
29168
29169
29170 cat <<_LT_EOF >> "$ofile"
29171
29172 # ### BEGIN LIBTOOL TAG CONFIG: FC
29173
29174 # The linker used to build libraries.
29175 LD=$lt_LD_FC
29176
29177 # How to create reloadable object files.
29178 reload_flag=$lt_reload_flag_FC
29179 reload_cmds=$lt_reload_cmds_FC
29180
29181 # Commands used to build an old-style archive.
29182 old_archive_cmds=$lt_old_archive_cmds_FC
29183
29184 # A language specific compiler.
29185 CC=$lt_compiler_FC
29186
29187 # Is the compiler the GNU compiler?
29188 with_gcc=$GCC_FC
29189
29190 # Compiler flag to turn off builtin functions.
29191 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
29192
29193 # How to pass a linker flag through the compiler.
29194 wl=$lt_lt_prog_compiler_wl_FC
29195
29196 # Additional compiler flags for building library objects.
29197 pic_flag=$lt_lt_prog_compiler_pic_FC
29198
29199 # Compiler flag to prevent dynamic linking.
29200 link_static_flag=$lt_lt_prog_compiler_static_FC
29201
29202 # Does compiler simultaneously support -c and -o options?
29203 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
29204
29205 # Whether or not to add -lc for building shared libraries.
29206 build_libtool_need_lc=$archive_cmds_need_lc_FC
29207
29208 # Whether or not to disallow shared libs when runtime libs are static.
29209 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
29210
29211 # Compiler flag to allow reflexive dlopens.
29212 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
29213
29214 # Compiler flag to generate shared objects directly from archives.
29215 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
29216
29217 # Whether the compiler copes with passing no objects directly.
29218 compiler_needs_object=$lt_compiler_needs_object_FC
29219
29220 # Create an old-style archive from a shared archive.
29221 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
29222
29223 # Create a temporary old-style archive to link instead of a shared archive.
29224 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
29225
29226 # Commands used to build a shared archive.
29227 archive_cmds=$lt_archive_cmds_FC
29228 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
29229
29230 # Commands used to build a loadable module if different from building
29231 # a shared archive.
29232 module_cmds=$lt_module_cmds_FC
29233 module_expsym_cmds=$lt_module_expsym_cmds_FC
29234
29235 # Whether we are building with GNU ld or not.
29236 with_gnu_ld=$lt_with_gnu_ld_FC
29237
29238 # Flag that allows shared libraries with undefined symbols to be built.
29239 allow_undefined_flag=$lt_allow_undefined_flag_FC
29240
29241 # Flag that enforces no undefined symbols.
29242 no_undefined_flag=$lt_no_undefined_flag_FC
29243
29244 # Flag to hardcode \$libdir into a binary during linking.
29245 # This must work even if \$libdir does not exist
29246 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
29247
29248 # If ld is used when linking, flag to hardcode \$libdir into a binary
29249 # during linking. This must work even if \$libdir does not exist.
29250 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
29251
29252 # Whether we need a single "-rpath" flag with a separated argument.
29253 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
29254
29255 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29256 # DIR into the resulting binary.
29257 hardcode_direct=$hardcode_direct_FC
29258
29259 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29260 # DIR into the resulting binary and the resulting library dependency is
29261 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29262 # library is relocated.
29263 hardcode_direct_absolute=$hardcode_direct_absolute_FC
29264
29265 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29266 # into the resulting binary.
29267 hardcode_minus_L=$hardcode_minus_L_FC
29268
29269 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29270 # into the resulting binary.
29271 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
29272
29273 # Set to "yes" if building a shared library automatically hardcodes DIR
29274 # into the library and all subsequent libraries and executables linked
29275 # against it.
29276 hardcode_automatic=$hardcode_automatic_FC
29277
29278 # Set to yes if linker adds runtime paths of dependent libraries
29279 # to runtime path list.
29280 inherit_rpath=$inherit_rpath_FC
29281
29282 # Whether libtool must link a program against all its dependency libraries.
29283 link_all_deplibs=$link_all_deplibs_FC
29284
29285 # Fix the shell variable \$srcfile for the compiler.
29286 fix_srcfile_path=$lt_fix_srcfile_path_FC
29287
29288 # Set to "yes" if exported symbols are required.
29289 always_export_symbols=$always_export_symbols_FC
29290
29291 # The commands to list exported symbols.
29292 export_symbols_cmds=$lt_export_symbols_cmds_FC
29293
29294 # Symbols that should not be listed in the preloaded symbols.
29295 exclude_expsyms=$lt_exclude_expsyms_FC
29296
29297 # Symbols that must always be exported.
29298 include_expsyms=$lt_include_expsyms_FC
29299
29300 # Commands necessary for linking programs (against libraries) with templates.
29301 prelink_cmds=$lt_prelink_cmds_FC
29302
29303 # Specify filename containing input files.
29304 file_list_spec=$lt_file_list_spec_FC
29305
29306 # How to hardcode a shared library path into an executable.
29307 hardcode_action=$hardcode_action_FC
29308
29309 # The directories searched by this compiler when creating a shared library.
29310 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
29311
29312 # Dependencies to place before and after the objects being linked to
29313 # create a shared library.
29314 predep_objects=$lt_predep_objects_FC
29315 postdep_objects=$lt_postdep_objects_FC
29316 predeps=$lt_predeps_FC
29317 postdeps=$lt_postdeps_FC
29318
29319 # The library search path used internally by the compiler when linking
29320 # a shared library.
29321 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
29322
29323 # ### END LIBTOOL TAG CONFIG: FC
29324 _LT_EOF
29325
29326 ;;
29327 "gstdint.h":C)
29328 if test "$GCC" = yes; then
29329 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
29330 else
29331 echo "/* generated for $CC */" > tmp-stdint.h
29332 fi
29333
29334 sed 's/^ *//' >> tmp-stdint.h <<EOF
29335
29336 #ifndef GCC_GENERATED_STDINT_H
29337 #define GCC_GENERATED_STDINT_H 1
29338
29339 #include <sys/types.h>
29340 EOF
29341
29342 if test "$acx_cv_header_stdint" != stdint.h; then
29343 echo "#include <stddef.h>" >> tmp-stdint.h
29344 fi
29345 if test "$acx_cv_header_stdint" != stddef.h; then
29346 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
29347 fi
29348
29349 sed 's/^ *//' >> tmp-stdint.h <<EOF
29350 /* glibc uses these symbols as guards to prevent redefinitions. */
29351 #ifdef __int8_t_defined
29352 #define _INT8_T
29353 #define _INT16_T
29354 #define _INT32_T
29355 #endif
29356 #ifdef __uint32_t_defined
29357 #define _UINT32_T
29358 #endif
29359
29360 EOF
29361
29362 # ----------------- done header, emit basic int types -------------
29363 if test "$acx_cv_header_stdint" = stddef.h; then
29364 sed 's/^ *//' >> tmp-stdint.h <<EOF
29365
29366 #ifndef _UINT8_T
29367 #define _UINT8_T
29368 #ifndef __uint8_t_defined
29369 #define __uint8_t_defined
29370 #ifndef uint8_t
29371 typedef unsigned $acx_cv_type_int8_t uint8_t;
29372 #endif
29373 #endif
29374 #endif
29375
29376 #ifndef _UINT16_T
29377 #define _UINT16_T
29378 #ifndef __uint16_t_defined
29379 #define __uint16_t_defined
29380 #ifndef uint16_t
29381 typedef unsigned $acx_cv_type_int16_t uint16_t;
29382 #endif
29383 #endif
29384 #endif
29385
29386 #ifndef _UINT32_T
29387 #define _UINT32_T
29388 #ifndef __uint32_t_defined
29389 #define __uint32_t_defined
29390 #ifndef uint32_t
29391 typedef unsigned $acx_cv_type_int32_t uint32_t;
29392 #endif
29393 #endif
29394 #endif
29395
29396 #ifndef _INT8_T
29397 #define _INT8_T
29398 #ifndef __int8_t_defined
29399 #define __int8_t_defined
29400 #ifndef int8_t
29401 typedef $acx_cv_type_int8_t int8_t;
29402 #endif
29403 #endif
29404 #endif
29405
29406 #ifndef _INT16_T
29407 #define _INT16_T
29408 #ifndef __int16_t_defined
29409 #define __int16_t_defined
29410 #ifndef int16_t
29411 typedef $acx_cv_type_int16_t int16_t;
29412 #endif
29413 #endif
29414 #endif
29415
29416 #ifndef _INT32_T
29417 #define _INT32_T
29418 #ifndef __int32_t_defined
29419 #define __int32_t_defined
29420 #ifndef int32_t
29421 typedef $acx_cv_type_int32_t int32_t;
29422 #endif
29423 #endif
29424 #endif
29425 EOF
29426 elif test "$ac_cv_type_u_int32_t" = yes; then
29427 sed 's/^ *//' >> tmp-stdint.h <<EOF
29428
29429 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
29430 #ifndef _INT8_T
29431 #define _INT8_T
29432 #endif
29433 #ifndef _INT16_T
29434 #define _INT16_T
29435 #endif
29436 #ifndef _INT32_T
29437 #define _INT32_T
29438 #endif
29439
29440 #ifndef _UINT8_T
29441 #define _UINT8_T
29442 #ifndef __uint8_t_defined
29443 #define __uint8_t_defined
29444 #ifndef uint8_t
29445 typedef u_int8_t uint8_t;
29446 #endif
29447 #endif
29448 #endif
29449
29450 #ifndef _UINT16_T
29451 #define _UINT16_T
29452 #ifndef __uint16_t_defined
29453 #define __uint16_t_defined
29454 #ifndef uint16_t
29455 typedef u_int16_t uint16_t;
29456 #endif
29457 #endif
29458 #endif
29459
29460 #ifndef _UINT32_T
29461 #define _UINT32_T
29462 #ifndef __uint32_t_defined
29463 #define __uint32_t_defined
29464 #ifndef uint32_t
29465 typedef u_int32_t uint32_t;
29466 #endif
29467 #endif
29468 #endif
29469 EOF
29470 else
29471 sed 's/^ *//' >> tmp-stdint.h <<EOF
29472
29473 /* Some systems have guard macros to prevent redefinitions, define them. */
29474 #ifndef _INT8_T
29475 #define _INT8_T
29476 #endif
29477 #ifndef _INT16_T
29478 #define _INT16_T
29479 #endif
29480 #ifndef _INT32_T
29481 #define _INT32_T
29482 #endif
29483 #ifndef _UINT8_T
29484 #define _UINT8_T
29485 #endif
29486 #ifndef _UINT16_T
29487 #define _UINT16_T
29488 #endif
29489 #ifndef _UINT32_T
29490 #define _UINT32_T
29491 #endif
29492 EOF
29493 fi
29494
29495 # ------------- done basic int types, emit int64_t types ------------
29496 if test "$ac_cv_type_uint64_t" = yes; then
29497 sed 's/^ *//' >> tmp-stdint.h <<EOF
29498
29499 /* system headers have good uint64_t and int64_t */
29500 #ifndef _INT64_T
29501 #define _INT64_T
29502 #endif
29503 #ifndef _UINT64_T
29504 #define _UINT64_T
29505 #endif
29506 EOF
29507 elif test "$ac_cv_type_u_int64_t" = yes; then
29508 sed 's/^ *//' >> tmp-stdint.h <<EOF
29509
29510 /* system headers have an u_int64_t (and int64_t) */
29511 #ifndef _INT64_T
29512 #define _INT64_T
29513 #endif
29514 #ifndef _UINT64_T
29515 #define _UINT64_T
29516 #ifndef __uint64_t_defined
29517 #define __uint64_t_defined
29518 #ifndef uint64_t
29519 typedef u_int64_t uint64_t;
29520 #endif
29521 #endif
29522 #endif
29523 EOF
29524 elif test -n "$acx_cv_type_int64_t"; then
29525 sed 's/^ *//' >> tmp-stdint.h <<EOF
29526
29527 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
29528 #ifndef _INT64_T
29529 #define _INT64_T
29530 #ifndef int64_t
29531 typedef $acx_cv_type_int64_t int64_t;
29532 #endif
29533 #endif
29534 #ifndef _UINT64_T
29535 #define _UINT64_T
29536 #ifndef __uint64_t_defined
29537 #define __uint64_t_defined
29538 #ifndef uint64_t
29539 typedef unsigned $acx_cv_type_int64_t uint64_t;
29540 #endif
29541 #endif
29542 #endif
29543 EOF
29544 else
29545 sed 's/^ *//' >> tmp-stdint.h <<EOF
29546
29547 /* some common heuristics for int64_t, using compiler-specific tests */
29548 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
29549 #ifndef _INT64_T
29550 #define _INT64_T
29551 #ifndef __int64_t_defined
29552 #ifndef int64_t
29553 typedef long long int64_t;
29554 #endif
29555 #endif
29556 #endif
29557 #ifndef _UINT64_T
29558 #define _UINT64_T
29559 #ifndef uint64_t
29560 typedef unsigned long long uint64_t;
29561 #endif
29562 #endif
29563
29564 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
29565 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
29566 does not implement __extension__. But that compiler doesn't define
29567 __GNUC_MINOR__. */
29568 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
29569 # define __extension__
29570 # endif
29571
29572 # ifndef _INT64_T
29573 # define _INT64_T
29574 # ifndef int64_t
29575 __extension__ typedef long long int64_t;
29576 # endif
29577 # endif
29578 # ifndef _UINT64_T
29579 # define _UINT64_T
29580 # ifndef uint64_t
29581 __extension__ typedef unsigned long long uint64_t;
29582 # endif
29583 # endif
29584
29585 #elif !defined __STRICT_ANSI__
29586 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
29587
29588 # ifndef _INT64_T
29589 # define _INT64_T
29590 # ifndef int64_t
29591 typedef __int64 int64_t;
29592 # endif
29593 # endif
29594 # ifndef _UINT64_T
29595 # define _UINT64_T
29596 # ifndef uint64_t
29597 typedef unsigned __int64 uint64_t;
29598 # endif
29599 # endif
29600 # endif /* compiler */
29601
29602 #endif /* ANSI version */
29603 EOF
29604 fi
29605
29606 # ------------- done int64_t types, emit intptr types ------------
29607 if test "$ac_cv_type_uintptr_t" != yes; then
29608 sed 's/^ *//' >> tmp-stdint.h <<EOF
29609
29610 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
29611 #ifndef __uintptr_t_defined
29612 #ifndef uintptr_t
29613 typedef u$acx_cv_type_intptr_t uintptr_t;
29614 #endif
29615 #endif
29616 #ifndef __intptr_t_defined
29617 #ifndef intptr_t
29618 typedef $acx_cv_type_intptr_t intptr_t;
29619 #endif
29620 #endif
29621 EOF
29622 fi
29623
29624 # ------------- done intptr types, emit int_least types ------------
29625 if test "$ac_cv_type_int_least32_t" != yes; then
29626 sed 's/^ *//' >> tmp-stdint.h <<EOF
29627
29628 /* Define int_least types */
29629 typedef int8_t int_least8_t;
29630 typedef int16_t int_least16_t;
29631 typedef int32_t int_least32_t;
29632 #ifdef _INT64_T
29633 typedef int64_t int_least64_t;
29634 #endif
29635
29636 typedef uint8_t uint_least8_t;
29637 typedef uint16_t uint_least16_t;
29638 typedef uint32_t uint_least32_t;
29639 #ifdef _UINT64_T
29640 typedef uint64_t uint_least64_t;
29641 #endif
29642 EOF
29643 fi
29644
29645 # ------------- done intptr types, emit int_fast types ------------
29646 if test "$ac_cv_type_int_fast32_t" != yes; then
29647 sed 's/^ *//' >> tmp-stdint.h <<EOF
29648
29649 /* Define int_fast types. short is often slow */
29650 typedef int8_t int_fast8_t;
29651 typedef int int_fast16_t;
29652 typedef int32_t int_fast32_t;
29653 #ifdef _INT64_T
29654 typedef int64_t int_fast64_t;
29655 #endif
29656
29657 typedef uint8_t uint_fast8_t;
29658 typedef unsigned int uint_fast16_t;
29659 typedef uint32_t uint_fast32_t;
29660 #ifdef _UINT64_T
29661 typedef uint64_t uint_fast64_t;
29662 #endif
29663 EOF
29664 fi
29665
29666 if test "$ac_cv_type_uintmax_t" != yes; then
29667 sed 's/^ *//' >> tmp-stdint.h <<EOF
29668
29669 /* Define intmax based on what we found */
29670 #ifndef intmax_t
29671 #ifdef _INT64_T
29672 typedef int64_t intmax_t;
29673 #else
29674 typedef long intmax_t;
29675 #endif
29676 #endif
29677 #ifndef uintmax_t
29678 #ifdef _UINT64_T
29679 typedef uint64_t uintmax_t;
29680 #else
29681 typedef unsigned long uintmax_t;
29682 #endif
29683 #endif
29684 EOF
29685 fi
29686
29687 sed 's/^ *//' >> tmp-stdint.h <<EOF
29688
29689 #endif /* GCC_GENERATED_STDINT_H */
29690 EOF
29691
29692 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
29693 rm -f tmp-stdint.h
29694 else
29695 mv -f tmp-stdint.h gstdint.h
29696 fi
29697
29698 ;;
29699
29700 esac
29701 done # for ac_tag
29702
29703
29704 as_fn_exit 0
29705 _ACEOF
29706 ac_clean_files=$ac_clean_files_save
29707
29708 test $ac_write_fail = 0 ||
29709 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29710
29711
29712 # configure is writing to config.log, and then calls config.status.
29713 # config.status does its own redirection, appending to config.log.
29714 # Unfortunately, on DOS this fails, as config.log is still kept open
29715 # by configure, so config.status won't be able to write to it; its
29716 # output is simply discarded. So we exec the FD to /dev/null,
29717 # effectively closing config.log, so it can be properly (re)opened and
29718 # appended to by config.status. When coming back to configure, we
29719 # need to make the FD available again.
29720 if test "$no_create" != yes; then
29721 ac_cs_success=:
29722 ac_config_status_args=
29723 test "$silent" = yes &&
29724 ac_config_status_args="$ac_config_status_args --quiet"
29725 exec 5>/dev/null
29726 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29727 exec 5>>config.log
29728 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29729 # would make configure fail if this is the last instruction.
29730 $ac_cs_success || as_fn_exit $?
29731 fi
29732 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29734 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
29735 fi
29736