]> gcc.gnu.org Git - gcc.git/blob - libgfortran/configure
Regenerate `configure' scripts for `uclinuxfdpiceabi' libtool.m4 update
[gcc.git] / libgfortran / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GNU Fortran Runtime Library 0.3.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
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 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='GNU Fortran Runtime Library'
589 PACKAGE_TARNAME='libgfortran'
590 PACKAGE_VERSION='0.3'
591 PACKAGE_STRING='GNU Fortran Runtime Library 0.3'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL='http://www.gnu.org/software/libgfortran/'
594
595 # Factoring default headers for most tests.
596 ac_includes_default="\
597 #include <stdio.h>
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
600 #endif
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
603 #endif
604 #ifdef STDC_HEADERS
605 # include <stdlib.h>
606 # include <stddef.h>
607 #else
608 # ifdef HAVE_STDLIB_H
609 # include <stdlib.h>
610 # endif
611 #endif
612 #ifdef HAVE_STRING_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614 # include <memory.h>
615 # endif
616 # include <string.h>
617 #endif
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_UNISTD_H
628 # include <unistd.h>
629 #endif"
630
631 ac_header_list=
632 ac_func_list=
633 ac_c_werror_flag=
634 ac_c_werror_flag=
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 get_gcc_base_ver
640 HAVE_AVX128_FALSE
641 HAVE_AVX128_TRUE
642 IEEE_FLAGS
643 IEEE_SUPPORT
644 IEEE_SUPPORT_FALSE
645 IEEE_SUPPORT_TRUE
646 FPU_HOST_HEADER
647 LIBGFOR_BUILD_QUAD_FALSE
648 LIBGFOR_BUILD_QUAD_TRUE
649 LIBQUADINCLUDE
650 LIBQUADLIB_DEP
651 LIBQUADLIB
652 LIBQUADSPEC
653 extra_ldflags_libgfortran
654 ac_ct_FC
655 FCFLAGS
656 FC
657 enable_static
658 enable_shared
659 lt_host_flags
660 OTOOL64
661 OTOOL
662 LIPO
663 NMEDIT
664 DSYMUTIL
665 OBJDUMP
666 LN_S
667 NM
668 ac_ct_DUMPBIN
669 DUMPBIN
670 LIBTOOL
671 RANLIB
672 AR
673 AS
674 HAVE_HWCAP_FALSE
675 HAVE_HWCAP_TRUE
676 HWCAP_LDFLAGS
677 LD
678 FGREP
679 SED
680 SECTION_FLAGS
681 LIBGFOR_MINIMAL_FALSE
682 LIBGFOR_MINIMAL_TRUE
683 LIBGFOR_USE_SYMVER_SUN_FALSE
684 LIBGFOR_USE_SYMVER_SUN_TRUE
685 LIBGFOR_USE_SYMVER_GNU_FALSE
686 LIBGFOR_USE_SYMVER_GNU_TRUE
687 LIBGFOR_USE_SYMVER_FALSE
688 LIBGFOR_USE_SYMVER_TRUE
689 AM_CFLAGS
690 AM_FCFLAGS
691 toolexeclibdir
692 toolexecdir
693 EGREP
694 GREP
695 CPP
696 am__fastdepCC_FALSE
697 am__fastdepCC_TRUE
698 CCDEPMODE
699 am__nodep
700 AMDEPBACKSLASH
701 AMDEP_FALSE
702 AMDEP_TRUE
703 am__quote
704 am__include
705 DEPDIR
706 OBJEXT
707 EXEEXT
708 ac_ct_CC
709 CPPFLAGS
710 LDFLAGS
711 CFLAGS
712 CC
713 multi_basedir
714 MAINT
715 MAINTAINER_MODE_FALSE
716 MAINTAINER_MODE_TRUE
717 AM_BACKSLASH
718 AM_DEFAULT_VERBOSITY
719 AM_DEFAULT_V
720 AM_V
721 am__untar
722 am__tar
723 AMTAR
724 am__leading_dot
725 SET_MAKE
726 AWK
727 mkdir_p
728 MKDIR_P
729 INSTALL_STRIP_PROGRAM
730 STRIP
731 install_sh
732 MAKEINFO
733 AUTOHEADER
734 AUTOMAKE
735 AUTOCONF
736 ACLOCAL
737 VERSION
738 PACKAGE
739 CYGPATH_W
740 am__isrc
741 INSTALL_DATA
742 INSTALL_SCRIPT
743 INSTALL_PROGRAM
744 target_noncanonical
745 target_os
746 target_vendor
747 target_cpu
748 target
749 host_os
750 host_vendor
751 host_cpu
752 host
753 onestep
754 onestep_FALSE
755 onestep_TRUE
756 target_subdir
757 host_subdir
758 build_subdir
759 build_libsubdir
760 build_os
761 build_vendor
762 build_cpu
763 build
764 target_alias
765 host_alias
766 build_alias
767 LIBS
768 ECHO_T
769 ECHO_N
770 ECHO_C
771 DEFS
772 mandir
773 localedir
774 libdir
775 psdir
776 pdfdir
777 dvidir
778 htmldir
779 infodir
780 docdir
781 oldincludedir
782 includedir
783 localstatedir
784 sharedstatedir
785 sysconfdir
786 datadir
787 datarootdir
788 libexecdir
789 sbindir
790 bindir
791 program_transform_name
792 prefix
793 exec_prefix
794 PACKAGE_URL
795 PACKAGE_BUGREPORT
796 PACKAGE_STRING
797 PACKAGE_VERSION
798 PACKAGE_TARNAME
799 PACKAGE_NAME
800 PATH_SEPARATOR
801 SHELL'
802 ac_subst_files=''
803 ac_user_opts='
804 enable_option_checking
805 with_build_libsubdir
806 enable_version_specific_runtime_libs
807 enable_intermodule
808 enable_silent_rules
809 enable_maintainer_mode
810 enable_multilib
811 enable_dependency_tracking
812 enable_cet
813 enable_symvers
814 with_gnu_ld
815 enable_shared
816 enable_static
817 with_pic
818 enable_fast_install
819 enable_libtool_lock
820 enable_largefile
821 enable_libquadmath_support
822 with_gcc_major_version_only
823 '
824 ac_precious_vars='build_alias
825 host_alias
826 target_alias
827 CC
828 CFLAGS
829 LDFLAGS
830 LIBS
831 CPPFLAGS
832 CPP
833 FC
834 FCFLAGS'
835
836
837 # Initialize some variables set by options.
838 ac_init_help=
839 ac_init_version=false
840 ac_unrecognized_opts=
841 ac_unrecognized_sep=
842 # The variables have the same names as the options, with
843 # dashes changed to underlines.
844 cache_file=/dev/null
845 exec_prefix=NONE
846 no_create=
847 no_recursion=
848 prefix=NONE
849 program_prefix=NONE
850 program_suffix=NONE
851 program_transform_name=s,x,x,
852 silent=
853 site=
854 srcdir=
855 verbose=
856 x_includes=NONE
857 x_libraries=NONE
858
859 # Installation directory options.
860 # These are left unexpanded so users can "make install exec_prefix=/foo"
861 # and all the variables that are supposed to be based on exec_prefix
862 # by default will actually change.
863 # Use braces instead of parens because sh, perl, etc. also accept them.
864 # (The list follows the same order as the GNU Coding Standards.)
865 bindir='${exec_prefix}/bin'
866 sbindir='${exec_prefix}/sbin'
867 libexecdir='${exec_prefix}/libexec'
868 datarootdir='${prefix}/share'
869 datadir='${datarootdir}'
870 sysconfdir='${prefix}/etc'
871 sharedstatedir='${prefix}/com'
872 localstatedir='${prefix}/var'
873 includedir='${prefix}/include'
874 oldincludedir='/usr/include'
875 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
876 infodir='${datarootdir}/info'
877 htmldir='${docdir}'
878 dvidir='${docdir}'
879 pdfdir='${docdir}'
880 psdir='${docdir}'
881 libdir='${exec_prefix}/lib'
882 localedir='${datarootdir}/locale'
883 mandir='${datarootdir}/man'
884
885 ac_prev=
886 ac_dashdash=
887 for ac_option
888 do
889 # If the previous option needs an argument, assign it.
890 if test -n "$ac_prev"; then
891 eval $ac_prev=\$ac_option
892 ac_prev=
893 continue
894 fi
895
896 case $ac_option in
897 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
898 *=) ac_optarg= ;;
899 *) ac_optarg=yes ;;
900 esac
901
902 # Accept the important Cygnus configure options, so we can diagnose typos.
903
904 case $ac_dashdash$ac_option in
905 --)
906 ac_dashdash=yes ;;
907
908 -bindir | --bindir | --bindi | --bind | --bin | --bi)
909 ac_prev=bindir ;;
910 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
911 bindir=$ac_optarg ;;
912
913 -build | --build | --buil | --bui | --bu)
914 ac_prev=build_alias ;;
915 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
916 build_alias=$ac_optarg ;;
917
918 -cache-file | --cache-file | --cache-fil | --cache-fi \
919 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
920 ac_prev=cache_file ;;
921 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
922 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
923 cache_file=$ac_optarg ;;
924
925 --config-cache | -C)
926 cache_file=config.cache ;;
927
928 -datadir | --datadir | --datadi | --datad)
929 ac_prev=datadir ;;
930 -datadir=* | --datadir=* | --datadi=* | --datad=*)
931 datadir=$ac_optarg ;;
932
933 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
934 | --dataroo | --dataro | --datar)
935 ac_prev=datarootdir ;;
936 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
937 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
938 datarootdir=$ac_optarg ;;
939
940 -disable-* | --disable-*)
941 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
942 # Reject names that are not valid shell variable names.
943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
944 as_fn_error $? "invalid feature name: $ac_useropt"
945 ac_useropt_orig=$ac_useropt
946 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
947 case $ac_user_opts in
948 *"
949 "enable_$ac_useropt"
950 "*) ;;
951 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
952 ac_unrecognized_sep=', ';;
953 esac
954 eval enable_$ac_useropt=no ;;
955
956 -docdir | --docdir | --docdi | --doc | --do)
957 ac_prev=docdir ;;
958 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
959 docdir=$ac_optarg ;;
960
961 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
962 ac_prev=dvidir ;;
963 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
964 dvidir=$ac_optarg ;;
965
966 -enable-* | --enable-*)
967 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
968 # Reject names that are not valid shell variable names.
969 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
970 as_fn_error $? "invalid feature name: $ac_useropt"
971 ac_useropt_orig=$ac_useropt
972 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973 case $ac_user_opts in
974 *"
975 "enable_$ac_useropt"
976 "*) ;;
977 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
978 ac_unrecognized_sep=', ';;
979 esac
980 eval enable_$ac_useropt=\$ac_optarg ;;
981
982 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
983 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
984 | --exec | --exe | --ex)
985 ac_prev=exec_prefix ;;
986 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
987 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
988 | --exec=* | --exe=* | --ex=*)
989 exec_prefix=$ac_optarg ;;
990
991 -gas | --gas | --ga | --g)
992 # Obsolete; use --with-gas.
993 with_gas=yes ;;
994
995 -help | --help | --hel | --he | -h)
996 ac_init_help=long ;;
997 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
998 ac_init_help=recursive ;;
999 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1000 ac_init_help=short ;;
1001
1002 -host | --host | --hos | --ho)
1003 ac_prev=host_alias ;;
1004 -host=* | --host=* | --hos=* | --ho=*)
1005 host_alias=$ac_optarg ;;
1006
1007 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1008 ac_prev=htmldir ;;
1009 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1010 | --ht=*)
1011 htmldir=$ac_optarg ;;
1012
1013 -includedir | --includedir | --includedi | --included | --include \
1014 | --includ | --inclu | --incl | --inc)
1015 ac_prev=includedir ;;
1016 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1017 | --includ=* | --inclu=* | --incl=* | --inc=*)
1018 includedir=$ac_optarg ;;
1019
1020 -infodir | --infodir | --infodi | --infod | --info | --inf)
1021 ac_prev=infodir ;;
1022 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1023 infodir=$ac_optarg ;;
1024
1025 -libdir | --libdir | --libdi | --libd)
1026 ac_prev=libdir ;;
1027 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1028 libdir=$ac_optarg ;;
1029
1030 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1031 | --libexe | --libex | --libe)
1032 ac_prev=libexecdir ;;
1033 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1034 | --libexe=* | --libex=* | --libe=*)
1035 libexecdir=$ac_optarg ;;
1036
1037 -localedir | --localedir | --localedi | --localed | --locale)
1038 ac_prev=localedir ;;
1039 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1040 localedir=$ac_optarg ;;
1041
1042 -localstatedir | --localstatedir | --localstatedi | --localstated \
1043 | --localstate | --localstat | --localsta | --localst | --locals)
1044 ac_prev=localstatedir ;;
1045 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1046 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1047 localstatedir=$ac_optarg ;;
1048
1049 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1050 ac_prev=mandir ;;
1051 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1052 mandir=$ac_optarg ;;
1053
1054 -nfp | --nfp | --nf)
1055 # Obsolete; use --without-fp.
1056 with_fp=no ;;
1057
1058 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1059 | --no-cr | --no-c | -n)
1060 no_create=yes ;;
1061
1062 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1063 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1064 no_recursion=yes ;;
1065
1066 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1067 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1068 | --oldin | --oldi | --old | --ol | --o)
1069 ac_prev=oldincludedir ;;
1070 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1071 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1072 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1073 oldincludedir=$ac_optarg ;;
1074
1075 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1076 ac_prev=prefix ;;
1077 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1078 prefix=$ac_optarg ;;
1079
1080 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1081 | --program-pre | --program-pr | --program-p)
1082 ac_prev=program_prefix ;;
1083 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1084 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1085 program_prefix=$ac_optarg ;;
1086
1087 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1088 | --program-suf | --program-su | --program-s)
1089 ac_prev=program_suffix ;;
1090 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1091 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1092 program_suffix=$ac_optarg ;;
1093
1094 -program-transform-name | --program-transform-name \
1095 | --program-transform-nam | --program-transform-na \
1096 | --program-transform-n | --program-transform- \
1097 | --program-transform | --program-transfor \
1098 | --program-transfo | --program-transf \
1099 | --program-trans | --program-tran \
1100 | --progr-tra | --program-tr | --program-t)
1101 ac_prev=program_transform_name ;;
1102 -program-transform-name=* | --program-transform-name=* \
1103 | --program-transform-nam=* | --program-transform-na=* \
1104 | --program-transform-n=* | --program-transform-=* \
1105 | --program-transform=* | --program-transfor=* \
1106 | --program-transfo=* | --program-transf=* \
1107 | --program-trans=* | --program-tran=* \
1108 | --progr-tra=* | --program-tr=* | --program-t=*)
1109 program_transform_name=$ac_optarg ;;
1110
1111 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1112 ac_prev=pdfdir ;;
1113 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1114 pdfdir=$ac_optarg ;;
1115
1116 -psdir | --psdir | --psdi | --psd | --ps)
1117 ac_prev=psdir ;;
1118 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1119 psdir=$ac_optarg ;;
1120
1121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122 | -silent | --silent | --silen | --sile | --sil)
1123 silent=yes ;;
1124
1125 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1126 ac_prev=sbindir ;;
1127 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1128 | --sbi=* | --sb=*)
1129 sbindir=$ac_optarg ;;
1130
1131 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1132 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1133 | --sharedst | --shareds | --shared | --share | --shar \
1134 | --sha | --sh)
1135 ac_prev=sharedstatedir ;;
1136 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1137 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1138 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1139 | --sha=* | --sh=*)
1140 sharedstatedir=$ac_optarg ;;
1141
1142 -site | --site | --sit)
1143 ac_prev=site ;;
1144 -site=* | --site=* | --sit=*)
1145 site=$ac_optarg ;;
1146
1147 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1148 ac_prev=srcdir ;;
1149 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1150 srcdir=$ac_optarg ;;
1151
1152 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1153 | --syscon | --sysco | --sysc | --sys | --sy)
1154 ac_prev=sysconfdir ;;
1155 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1156 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1157 sysconfdir=$ac_optarg ;;
1158
1159 -target | --target | --targe | --targ | --tar | --ta | --t)
1160 ac_prev=target_alias ;;
1161 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1162 target_alias=$ac_optarg ;;
1163
1164 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1165 verbose=yes ;;
1166
1167 -version | --version | --versio | --versi | --vers | -V)
1168 ac_init_version=: ;;
1169
1170 -with-* | --with-*)
1171 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174 as_fn_error $? "invalid package name: $ac_useropt"
1175 ac_useropt_orig=$ac_useropt
1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177 case $ac_user_opts in
1178 *"
1179 "with_$ac_useropt"
1180 "*) ;;
1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1182 ac_unrecognized_sep=', ';;
1183 esac
1184 eval with_$ac_useropt=\$ac_optarg ;;
1185
1186 -without-* | --without-*)
1187 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1188 # Reject names that are not valid shell variable names.
1189 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1190 as_fn_error $? "invalid package name: $ac_useropt"
1191 ac_useropt_orig=$ac_useropt
1192 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1193 case $ac_user_opts in
1194 *"
1195 "with_$ac_useropt"
1196 "*) ;;
1197 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1198 ac_unrecognized_sep=', ';;
1199 esac
1200 eval with_$ac_useropt=no ;;
1201
1202 --x)
1203 # Obsolete; use --with-x.
1204 with_x=yes ;;
1205
1206 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1207 | --x-incl | --x-inc | --x-in | --x-i)
1208 ac_prev=x_includes ;;
1209 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1210 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1211 x_includes=$ac_optarg ;;
1212
1213 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1214 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1215 ac_prev=x_libraries ;;
1216 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1217 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1218 x_libraries=$ac_optarg ;;
1219
1220 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1221 Try \`$0 --help' for more information"
1222 ;;
1223
1224 *=*)
1225 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1226 # Reject names that are not valid shell variable names.
1227 case $ac_envvar in #(
1228 '' | [0-9]* | *[!_$as_cr_alnum]* )
1229 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1230 esac
1231 eval $ac_envvar=\$ac_optarg
1232 export $ac_envvar ;;
1233
1234 *)
1235 # FIXME: should be removed in autoconf 3.0.
1236 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1237 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1238 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1239 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1240 ;;
1241
1242 esac
1243 done
1244
1245 if test -n "$ac_prev"; then
1246 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1247 as_fn_error $? "missing argument to $ac_option"
1248 fi
1249
1250 if test -n "$ac_unrecognized_opts"; then
1251 case $enable_option_checking in
1252 no) ;;
1253 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1254 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1255 esac
1256 fi
1257
1258 # Check all directory arguments for consistency.
1259 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1260 datadir sysconfdir sharedstatedir localstatedir includedir \
1261 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1262 libdir localedir mandir
1263 do
1264 eval ac_val=\$$ac_var
1265 # Remove trailing slashes.
1266 case $ac_val in
1267 */ )
1268 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1269 eval $ac_var=\$ac_val;;
1270 esac
1271 # Be sure to have absolute directory names.
1272 case $ac_val in
1273 [\\/$]* | ?:[\\/]* ) continue;;
1274 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1275 esac
1276 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1277 done
1278
1279 # There might be people who depend on the old broken behavior: `$host'
1280 # used to hold the argument of --host etc.
1281 # FIXME: To remove some day.
1282 build=$build_alias
1283 host=$host_alias
1284 target=$target_alias
1285
1286 # FIXME: To remove some day.
1287 if test "x$host_alias" != x; then
1288 if test "x$build_alias" = x; then
1289 cross_compiling=maybe
1290 elif test "x$build_alias" != "x$host_alias"; then
1291 cross_compiling=yes
1292 fi
1293 fi
1294
1295 ac_tool_prefix=
1296 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1297
1298 test "$silent" = yes && exec 6>/dev/null
1299
1300
1301 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1302 ac_ls_di=`ls -di .` &&
1303 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1304 as_fn_error $? "working directory cannot be determined"
1305 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1306 as_fn_error $? "pwd does not report name of working directory"
1307
1308
1309 # Find the source files, if location was not specified.
1310 if test -z "$srcdir"; then
1311 ac_srcdir_defaulted=yes
1312 # Try the directory containing this script, then the parent directory.
1313 ac_confdir=`$as_dirname -- "$as_myself" ||
1314 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1315 X"$as_myself" : 'X\(//\)[^/]' \| \
1316 X"$as_myself" : 'X\(//\)$' \| \
1317 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1318 $as_echo X"$as_myself" |
1319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1320 s//\1/
1321 q
1322 }
1323 /^X\(\/\/\)[^/].*/{
1324 s//\1/
1325 q
1326 }
1327 /^X\(\/\/\)$/{
1328 s//\1/
1329 q
1330 }
1331 /^X\(\/\).*/{
1332 s//\1/
1333 q
1334 }
1335 s/.*/./; q'`
1336 srcdir=$ac_confdir
1337 if test ! -r "$srcdir/$ac_unique_file"; then
1338 srcdir=..
1339 fi
1340 else
1341 ac_srcdir_defaulted=no
1342 fi
1343 if test ! -r "$srcdir/$ac_unique_file"; then
1344 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1345 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1346 fi
1347 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1348 ac_abs_confdir=`(
1349 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1350 pwd)`
1351 # When building in place, set srcdir=.
1352 if test "$ac_abs_confdir" = "$ac_pwd"; then
1353 srcdir=.
1354 fi
1355 # Remove unnecessary trailing slashes from srcdir.
1356 # Double slashes in file names in object file debugging info
1357 # mess up M-x gdb in Emacs.
1358 case $srcdir in
1359 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1360 esac
1361 for ac_var in $ac_precious_vars; do
1362 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1363 eval ac_env_${ac_var}_value=\$${ac_var}
1364 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1365 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1366 done
1367
1368 #
1369 # Report the --help message.
1370 #
1371 if test "$ac_init_help" = "long"; then
1372 # Omit some internal or obsolete options to make the list less imposing.
1373 # This message is too long to be a string in the A/UX 3.1 sh.
1374 cat <<_ACEOF
1375 \`configure' configures GNU Fortran Runtime Library 0.3 to adapt to many kinds of systems.
1376
1377 Usage: $0 [OPTION]... [VAR=VALUE]...
1378
1379 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1380 VAR=VALUE. See below for descriptions of some of the useful variables.
1381
1382 Defaults for the options are specified in brackets.
1383
1384 Configuration:
1385 -h, --help display this help and exit
1386 --help=short display options specific to this package
1387 --help=recursive display the short help of all the included packages
1388 -V, --version display version information and exit
1389 -q, --quiet, --silent do not print \`checking ...' messages
1390 --cache-file=FILE cache test results in FILE [disabled]
1391 -C, --config-cache alias for \`--cache-file=config.cache'
1392 -n, --no-create do not create output files
1393 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1394
1395 Installation directories:
1396 --prefix=PREFIX install architecture-independent files in PREFIX
1397 [$ac_default_prefix]
1398 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1399 [PREFIX]
1400
1401 By default, \`make install' will install all the files in
1402 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1403 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1404 for instance \`--prefix=\$HOME'.
1405
1406 For better control, use the options below.
1407
1408 Fine tuning of the installation directories:
1409 --bindir=DIR user executables [EPREFIX/bin]
1410 --sbindir=DIR system admin executables [EPREFIX/sbin]
1411 --libexecdir=DIR program executables [EPREFIX/libexec]
1412 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1413 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1414 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1415 --libdir=DIR object code libraries [EPREFIX/lib]
1416 --includedir=DIR C header files [PREFIX/include]
1417 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1418 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1419 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1420 --infodir=DIR info documentation [DATAROOTDIR/info]
1421 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1422 --mandir=DIR man documentation [DATAROOTDIR/man]
1423 --docdir=DIR documentation root [DATAROOTDIR/doc/libgfortran]
1424 --htmldir=DIR html documentation [DOCDIR]
1425 --dvidir=DIR dvi documentation [DOCDIR]
1426 --pdfdir=DIR pdf documentation [DOCDIR]
1427 --psdir=DIR ps documentation [DOCDIR]
1428 _ACEOF
1429
1430 cat <<\_ACEOF
1431
1432 Program names:
1433 --program-prefix=PREFIX prepend PREFIX to installed program names
1434 --program-suffix=SUFFIX append SUFFIX to installed program names
1435 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1436
1437 System types:
1438 --build=BUILD configure for building on BUILD [guessed]
1439 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1440 --target=TARGET configure for building compilers for TARGET [HOST]
1441 _ACEOF
1442 fi
1443
1444 if test -n "$ac_init_help"; then
1445 case $ac_init_help in
1446 short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.3:";;
1447 esac
1448 cat <<\_ACEOF
1449
1450 Optional Features:
1451 --disable-option-checking ignore unrecognized --enable/--with options
1452 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1453 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1454 --enable-version-specific-runtime-libs
1455 specify that runtime libraries should be installed
1456 in a compiler-specific directory
1457 --enable-intermodule build the library in one step
1458 --enable-silent-rules less verbose build output (undo: "make V=1")
1459 --disable-silent-rules verbose build output (undo: "make V=0")
1460 --enable-maintainer-mode
1461 enable make rules and dependencies not useful (and
1462 sometimes confusing) to the casual installer
1463 --enable-multilib build many library versions (default)
1464 --enable-dependency-tracking
1465 do not reject slow dependency extractors
1466 --disable-dependency-tracking
1467 speeds up one-time build
1468 --enable-cet enable Intel CET in target libraries [default=no]
1469 --disable-symvers disable symbol versioning for libgfortran
1470 --enable-shared[=PKGS] build shared libraries [default=yes]
1471 --enable-static[=PKGS] build static libraries [default=yes]
1472 --enable-fast-install[=PKGS]
1473 optimize for fast installation [default=yes]
1474 --disable-libtool-lock avoid locking (might break parallel builds)
1475 --disable-largefile omit support for large files
1476 --disable-libquadmath-support
1477 disable libquadmath support for Fortran
1478
1479 Optional Packages:
1480 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1481 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1482 --with-build-libsubdir=DIR Directory where to find libraries for build system
1483 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1484 --with-pic try to use only PIC/non-PIC objects [default=use
1485 both]
1486 --with-gcc-major-version-only
1487 use only GCC major number in filesystem paths
1488
1489 Some influential environment variables:
1490 CC C compiler command
1491 CFLAGS C compiler flags
1492 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1493 nonstandard directory <lib dir>
1494 LIBS libraries to pass to the linker, e.g. -l<library>
1495 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1496 you have headers in a nonstandard directory <include dir>
1497 CPP C preprocessor
1498 FC Fortran compiler command
1499 FCFLAGS Fortran compiler flags
1500
1501 Use these variables to override the choices made by `configure' or to help
1502 it to find libraries and programs with nonstandard names/locations.
1503
1504 Report bugs to the package provider.
1505 GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
1506 General help using GNU software: <http://www.gnu.org/gethelp/>.
1507 _ACEOF
1508 ac_status=$?
1509 fi
1510
1511 if test "$ac_init_help" = "recursive"; then
1512 # If there are subdirs, report their specific --help.
1513 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1514 test -d "$ac_dir" ||
1515 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1516 continue
1517 ac_builddir=.
1518
1519 case "$ac_dir" in
1520 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1521 *)
1522 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1523 # A ".." for each directory in $ac_dir_suffix.
1524 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1525 case $ac_top_builddir_sub in
1526 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1527 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1528 esac ;;
1529 esac
1530 ac_abs_top_builddir=$ac_pwd
1531 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1532 # for backward compatibility:
1533 ac_top_builddir=$ac_top_build_prefix
1534
1535 case $srcdir in
1536 .) # We are building in place.
1537 ac_srcdir=.
1538 ac_top_srcdir=$ac_top_builddir_sub
1539 ac_abs_top_srcdir=$ac_pwd ;;
1540 [\\/]* | ?:[\\/]* ) # Absolute name.
1541 ac_srcdir=$srcdir$ac_dir_suffix;
1542 ac_top_srcdir=$srcdir
1543 ac_abs_top_srcdir=$srcdir ;;
1544 *) # Relative name.
1545 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1546 ac_top_srcdir=$ac_top_build_prefix$srcdir
1547 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1548 esac
1549 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1550
1551 cd "$ac_dir" || { ac_status=$?; continue; }
1552 # Check for guested configure.
1553 if test -f "$ac_srcdir/configure.gnu"; then
1554 echo &&
1555 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1556 elif test -f "$ac_srcdir/configure"; then
1557 echo &&
1558 $SHELL "$ac_srcdir/configure" --help=recursive
1559 else
1560 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1561 fi || ac_status=$?
1562 cd "$ac_pwd" || { ac_status=$?; break; }
1563 done
1564 fi
1565
1566 test -n "$ac_init_help" && exit $ac_status
1567 if $ac_init_version; then
1568 cat <<\_ACEOF
1569 GNU Fortran Runtime Library configure 0.3
1570 generated by GNU Autoconf 2.69
1571
1572 Copyright (C) 2012 Free Software Foundation, Inc.
1573 This configure script is free software; the Free Software Foundation
1574 gives unlimited permission to copy, distribute and modify it.
1575 _ACEOF
1576 exit
1577 fi
1578
1579 ## ------------------------ ##
1580 ## Autoconf initialization. ##
1581 ## ------------------------ ##
1582
1583 # ac_fn_c_try_compile LINENO
1584 # --------------------------
1585 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1586 ac_fn_c_try_compile ()
1587 {
1588 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1589 rm -f conftest.$ac_objext
1590 if { { ac_try="$ac_compile"
1591 case "(($ac_try" in
1592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1593 *) ac_try_echo=$ac_try;;
1594 esac
1595 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1596 $as_echo "$ac_try_echo"; } >&5
1597 (eval "$ac_compile") 2>conftest.err
1598 ac_status=$?
1599 if test -s conftest.err; then
1600 grep -v '^ *+' conftest.err >conftest.er1
1601 cat conftest.er1 >&5
1602 mv -f conftest.er1 conftest.err
1603 fi
1604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1605 test $ac_status = 0; } && {
1606 test -z "$ac_c_werror_flag" ||
1607 test ! -s conftest.err
1608 } && test -s conftest.$ac_objext; then :
1609 ac_retval=0
1610 else
1611 $as_echo "$as_me: failed program was:" >&5
1612 sed 's/^/| /' conftest.$ac_ext >&5
1613
1614 ac_retval=1
1615 fi
1616 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1617 as_fn_set_status $ac_retval
1618
1619 } # ac_fn_c_try_compile
1620
1621 # ac_fn_c_try_cpp LINENO
1622 # ----------------------
1623 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1624 ac_fn_c_try_cpp ()
1625 {
1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627 if { { ac_try="$ac_cpp conftest.$ac_ext"
1628 case "(($ac_try" in
1629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1630 *) ac_try_echo=$ac_try;;
1631 esac
1632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633 $as_echo "$ac_try_echo"; } >&5
1634 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1635 ac_status=$?
1636 if test -s conftest.err; then
1637 grep -v '^ *+' conftest.err >conftest.er1
1638 cat conftest.er1 >&5
1639 mv -f conftest.er1 conftest.err
1640 fi
1641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642 test $ac_status = 0; } > conftest.i && {
1643 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1644 test ! -s conftest.err
1645 }; then :
1646 ac_retval=0
1647 else
1648 $as_echo "$as_me: failed program was:" >&5
1649 sed 's/^/| /' conftest.$ac_ext >&5
1650
1651 ac_retval=1
1652 fi
1653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1654 as_fn_set_status $ac_retval
1655
1656 } # ac_fn_c_try_cpp
1657
1658 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1659 # -------------------------------------------------------
1660 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1661 # the include files in INCLUDES and setting the cache variable VAR
1662 # accordingly.
1663 ac_fn_c_check_header_mongrel ()
1664 {
1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666 if eval \${$3+:} false; then :
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1668 $as_echo_n "checking for $2... " >&6; }
1669 if eval \${$3+:} false; then :
1670 $as_echo_n "(cached) " >&6
1671 fi
1672 eval ac_res=\$$3
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1674 $as_echo "$ac_res" >&6; }
1675 else
1676 # Is the header compilable?
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1678 $as_echo_n "checking $2 usability... " >&6; }
1679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1680 /* end confdefs.h. */
1681 $4
1682 #include <$2>
1683 _ACEOF
1684 if ac_fn_c_try_compile "$LINENO"; then :
1685 ac_header_compiler=yes
1686 else
1687 ac_header_compiler=no
1688 fi
1689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1691 $as_echo "$ac_header_compiler" >&6; }
1692
1693 # Is the header present?
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1695 $as_echo_n "checking $2 presence... " >&6; }
1696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1697 /* end confdefs.h. */
1698 #include <$2>
1699 _ACEOF
1700 if ac_fn_c_try_cpp "$LINENO"; then :
1701 ac_header_preproc=yes
1702 else
1703 ac_header_preproc=no
1704 fi
1705 rm -f conftest.err conftest.i conftest.$ac_ext
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1707 $as_echo "$ac_header_preproc" >&6; }
1708
1709 # So? What about this header?
1710 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1711 yes:no: )
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1713 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1715 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1716 ;;
1717 no:yes:* )
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1719 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1721 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1723 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1725 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1727 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1728 ;;
1729 esac
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1731 $as_echo_n "checking for $2... " >&6; }
1732 if eval \${$3+:} false; then :
1733 $as_echo_n "(cached) " >&6
1734 else
1735 eval "$3=\$ac_header_compiler"
1736 fi
1737 eval ac_res=\$$3
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1739 $as_echo "$ac_res" >&6; }
1740 fi
1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742
1743 } # ac_fn_c_check_header_mongrel
1744
1745 # ac_fn_c_try_run LINENO
1746 # ----------------------
1747 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1748 # that executables *can* be run.
1749 ac_fn_c_try_run ()
1750 {
1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752 if { { ac_try="$ac_link"
1753 case "(($ac_try" in
1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755 *) ac_try_echo=$ac_try;;
1756 esac
1757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758 $as_echo "$ac_try_echo"; } >&5
1759 (eval "$ac_link") 2>&5
1760 ac_status=$?
1761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1763 { { case "(($ac_try" in
1764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1765 *) ac_try_echo=$ac_try;;
1766 esac
1767 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1768 $as_echo "$ac_try_echo"; } >&5
1769 (eval "$ac_try") 2>&5
1770 ac_status=$?
1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772 test $ac_status = 0; }; }; then :
1773 ac_retval=0
1774 else
1775 $as_echo "$as_me: program exited with status $ac_status" >&5
1776 $as_echo "$as_me: failed program was:" >&5
1777 sed 's/^/| /' conftest.$ac_ext >&5
1778
1779 ac_retval=$ac_status
1780 fi
1781 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783 as_fn_set_status $ac_retval
1784
1785 } # ac_fn_c_try_run
1786
1787 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1788 # -------------------------------------------------------
1789 # Tests whether HEADER exists and can be compiled using the include files in
1790 # INCLUDES, setting the cache variable VAR accordingly.
1791 ac_fn_c_check_header_compile ()
1792 {
1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1795 $as_echo_n "checking for $2... " >&6; }
1796 if eval \${$3+:} false; then :
1797 $as_echo_n "(cached) " >&6
1798 else
1799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800 /* end confdefs.h. */
1801 $4
1802 #include <$2>
1803 _ACEOF
1804 if ac_fn_c_try_compile "$LINENO"; then :
1805 eval "$3=yes"
1806 else
1807 eval "$3=no"
1808 fi
1809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1810 fi
1811 eval ac_res=\$$3
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1813 $as_echo "$ac_res" >&6; }
1814 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1815
1816 } # ac_fn_c_check_header_compile
1817
1818 # ac_fn_c_try_link LINENO
1819 # -----------------------
1820 # Try to link conftest.$ac_ext, and return whether this succeeded.
1821 ac_fn_c_try_link ()
1822 {
1823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824 rm -f conftest.$ac_objext conftest$ac_exeext
1825 if { { ac_try="$ac_link"
1826 case "(($ac_try" in
1827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1828 *) ac_try_echo=$ac_try;;
1829 esac
1830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1831 $as_echo "$ac_try_echo"; } >&5
1832 (eval "$ac_link") 2>conftest.err
1833 ac_status=$?
1834 if test -s conftest.err; then
1835 grep -v '^ *+' conftest.err >conftest.er1
1836 cat conftest.er1 >&5
1837 mv -f conftest.er1 conftest.err
1838 fi
1839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1840 test $ac_status = 0; } && {
1841 test -z "$ac_c_werror_flag" ||
1842 test ! -s conftest.err
1843 } && test -s conftest$ac_exeext && {
1844 test "$cross_compiling" = yes ||
1845 test -x conftest$ac_exeext
1846 }; then :
1847 ac_retval=0
1848 else
1849 $as_echo "$as_me: failed program was:" >&5
1850 sed 's/^/| /' conftest.$ac_ext >&5
1851
1852 ac_retval=1
1853 fi
1854 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1855 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1856 # interfere with the next link command; also delete a directory that is
1857 # left behind by Apple's compiler. We do this before executing the actions.
1858 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1859 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860 as_fn_set_status $ac_retval
1861
1862 } # ac_fn_c_try_link
1863
1864 # ac_fn_c_check_func LINENO FUNC VAR
1865 # ----------------------------------
1866 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1867 ac_fn_c_check_func ()
1868 {
1869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1871 $as_echo_n "checking for $2... " >&6; }
1872 if eval \${$3+:} false; then :
1873 $as_echo_n "(cached) " >&6
1874 else
1875 if test x$gcc_no_link = xyes; then
1876 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1877 fi
1878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1879 /* end confdefs.h. */
1880 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1881 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1882 #define $2 innocuous_$2
1883
1884 /* System header to define __stub macros and hopefully few prototypes,
1885 which can conflict with char $2 (); below.
1886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1887 <limits.h> exists even on freestanding compilers. */
1888
1889 #ifdef __STDC__
1890 # include <limits.h>
1891 #else
1892 # include <assert.h>
1893 #endif
1894
1895 #undef $2
1896
1897 /* Override any GCC internal prototype to avoid an error.
1898 Use char because int might match the return type of a GCC
1899 builtin and then its argument prototype would still apply. */
1900 #ifdef __cplusplus
1901 extern "C"
1902 #endif
1903 char $2 ();
1904 /* The GNU C library defines this for functions which it implements
1905 to always fail with ENOSYS. Some functions are actually named
1906 something starting with __ and the normal name is an alias. */
1907 #if defined __stub_$2 || defined __stub___$2
1908 choke me
1909 #endif
1910
1911 int
1912 main ()
1913 {
1914 return $2 ();
1915 ;
1916 return 0;
1917 }
1918 _ACEOF
1919 if ac_fn_c_try_link "$LINENO"; then :
1920 eval "$3=yes"
1921 else
1922 eval "$3=no"
1923 fi
1924 rm -f core conftest.err conftest.$ac_objext \
1925 conftest$ac_exeext conftest.$ac_ext
1926 fi
1927 eval ac_res=\$$3
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1929 $as_echo "$ac_res" >&6; }
1930 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1931
1932 } # ac_fn_c_check_func
1933
1934 # ac_fn_fc_try_compile LINENO
1935 # ---------------------------
1936 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1937 ac_fn_fc_try_compile ()
1938 {
1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940 rm -f conftest.$ac_objext
1941 if { { ac_try="$ac_compile"
1942 case "(($ac_try" in
1943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1944 *) ac_try_echo=$ac_try;;
1945 esac
1946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1947 $as_echo "$ac_try_echo"; } >&5
1948 (eval "$ac_compile") 2>conftest.err
1949 ac_status=$?
1950 if test -s conftest.err; then
1951 grep -v '^ *+' conftest.err >conftest.er1
1952 cat conftest.er1 >&5
1953 mv -f conftest.er1 conftest.err
1954 fi
1955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1956 test $ac_status = 0; } && {
1957 test -z "$ac_fc_werror_flag" ||
1958 test ! -s conftest.err
1959 } && test -s conftest.$ac_objext; then :
1960 ac_retval=0
1961 else
1962 $as_echo "$as_me: failed program was:" >&5
1963 sed 's/^/| /' conftest.$ac_ext >&5
1964
1965 ac_retval=1
1966 fi
1967 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1968 as_fn_set_status $ac_retval
1969
1970 } # ac_fn_fc_try_compile
1971
1972 # ac_fn_fc_try_link LINENO
1973 # ------------------------
1974 # Try to link conftest.$ac_ext, and return whether this succeeded.
1975 ac_fn_fc_try_link ()
1976 {
1977 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1978 rm -f conftest.$ac_objext conftest$ac_exeext
1979 if { { ac_try="$ac_link"
1980 case "(($ac_try" in
1981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1982 *) ac_try_echo=$ac_try;;
1983 esac
1984 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1985 $as_echo "$ac_try_echo"; } >&5
1986 (eval "$ac_link") 2>conftest.err
1987 ac_status=$?
1988 if test -s conftest.err; then
1989 grep -v '^ *+' conftest.err >conftest.er1
1990 cat conftest.er1 >&5
1991 mv -f conftest.er1 conftest.err
1992 fi
1993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1994 test $ac_status = 0; } && {
1995 test -z "$ac_fc_werror_flag" ||
1996 test ! -s conftest.err
1997 } && test -s conftest$ac_exeext && {
1998 test "$cross_compiling" = yes ||
1999 test -x conftest$ac_exeext
2000 }; then :
2001 ac_retval=0
2002 else
2003 $as_echo "$as_me: failed program was:" >&5
2004 sed 's/^/| /' conftest.$ac_ext >&5
2005
2006 ac_retval=1
2007 fi
2008 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2009 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2010 # interfere with the next link command; also delete a directory that is
2011 # left behind by Apple's compiler. We do this before executing the actions.
2012 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2013 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2014 as_fn_set_status $ac_retval
2015
2016 } # ac_fn_fc_try_link
2017
2018 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2019 # -------------------------------------------
2020 # Tests whether TYPE exists after having included INCLUDES, setting cache
2021 # variable VAR accordingly.
2022 ac_fn_c_check_type ()
2023 {
2024 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2026 $as_echo_n "checking for $2... " >&6; }
2027 if eval \${$3+:} false; then :
2028 $as_echo_n "(cached) " >&6
2029 else
2030 eval "$3=no"
2031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032 /* end confdefs.h. */
2033 $4
2034 int
2035 main ()
2036 {
2037 if (sizeof ($2))
2038 return 0;
2039 ;
2040 return 0;
2041 }
2042 _ACEOF
2043 if ac_fn_c_try_compile "$LINENO"; then :
2044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045 /* end confdefs.h. */
2046 $4
2047 int
2048 main ()
2049 {
2050 if (sizeof (($2)))
2051 return 0;
2052 ;
2053 return 0;
2054 }
2055 _ACEOF
2056 if ac_fn_c_try_compile "$LINENO"; then :
2057
2058 else
2059 eval "$3=yes"
2060 fi
2061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2062 fi
2063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2064 fi
2065 eval ac_res=\$$3
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2067 $as_echo "$ac_res" >&6; }
2068 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2069
2070 } # ac_fn_c_check_type
2071
2072 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2073 # --------------------------------------------
2074 # Tries to find the compile-time value of EXPR in a program that includes
2075 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2076 # computed
2077 ac_fn_c_compute_int ()
2078 {
2079 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2080 if test "$cross_compiling" = yes; then
2081 # Depending upon the size, compute the lo and hi bounds.
2082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083 /* end confdefs.h. */
2084 $4
2085 int
2086 main ()
2087 {
2088 static int test_array [1 - 2 * !(($2) >= 0)];
2089 test_array [0] = 0;
2090 return test_array [0];
2091
2092 ;
2093 return 0;
2094 }
2095 _ACEOF
2096 if ac_fn_c_try_compile "$LINENO"; then :
2097 ac_lo=0 ac_mid=0
2098 while :; do
2099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2100 /* end confdefs.h. */
2101 $4
2102 int
2103 main ()
2104 {
2105 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2106 test_array [0] = 0;
2107 return test_array [0];
2108
2109 ;
2110 return 0;
2111 }
2112 _ACEOF
2113 if ac_fn_c_try_compile "$LINENO"; then :
2114 ac_hi=$ac_mid; break
2115 else
2116 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2117 if test $ac_lo -le $ac_mid; then
2118 ac_lo= ac_hi=
2119 break
2120 fi
2121 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2122 fi
2123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2124 done
2125 else
2126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2127 /* end confdefs.h. */
2128 $4
2129 int
2130 main ()
2131 {
2132 static int test_array [1 - 2 * !(($2) < 0)];
2133 test_array [0] = 0;
2134 return test_array [0];
2135
2136 ;
2137 return 0;
2138 }
2139 _ACEOF
2140 if ac_fn_c_try_compile "$LINENO"; then :
2141 ac_hi=-1 ac_mid=-1
2142 while :; do
2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144 /* end confdefs.h. */
2145 $4
2146 int
2147 main ()
2148 {
2149 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2150 test_array [0] = 0;
2151 return test_array [0];
2152
2153 ;
2154 return 0;
2155 }
2156 _ACEOF
2157 if ac_fn_c_try_compile "$LINENO"; then :
2158 ac_lo=$ac_mid; break
2159 else
2160 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2161 if test $ac_mid -le $ac_hi; then
2162 ac_lo= ac_hi=
2163 break
2164 fi
2165 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2166 fi
2167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2168 done
2169 else
2170 ac_lo= ac_hi=
2171 fi
2172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2173 fi
2174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2175 # Binary search between lo and hi bounds.
2176 while test "x$ac_lo" != "x$ac_hi"; do
2177 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2179 /* end confdefs.h. */
2180 $4
2181 int
2182 main ()
2183 {
2184 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2185 test_array [0] = 0;
2186 return test_array [0];
2187
2188 ;
2189 return 0;
2190 }
2191 _ACEOF
2192 if ac_fn_c_try_compile "$LINENO"; then :
2193 ac_hi=$ac_mid
2194 else
2195 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2196 fi
2197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2198 done
2199 case $ac_lo in #((
2200 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2201 '') ac_retval=1 ;;
2202 esac
2203 else
2204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2205 /* end confdefs.h. */
2206 $4
2207 static long int longval () { return $2; }
2208 static unsigned long int ulongval () { return $2; }
2209 #include <stdio.h>
2210 #include <stdlib.h>
2211 int
2212 main ()
2213 {
2214
2215 FILE *f = fopen ("conftest.val", "w");
2216 if (! f)
2217 return 1;
2218 if (($2) < 0)
2219 {
2220 long int i = longval ();
2221 if (i != ($2))
2222 return 1;
2223 fprintf (f, "%ld", i);
2224 }
2225 else
2226 {
2227 unsigned long int i = ulongval ();
2228 if (i != ($2))
2229 return 1;
2230 fprintf (f, "%lu", i);
2231 }
2232 /* Do not output a trailing newline, as this causes \r\n confusion
2233 on some platforms. */
2234 return ferror (f) || fclose (f) != 0;
2235
2236 ;
2237 return 0;
2238 }
2239 _ACEOF
2240 if ac_fn_c_try_run "$LINENO"; then :
2241 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2242 else
2243 ac_retval=1
2244 fi
2245 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2246 conftest.$ac_objext conftest.beam conftest.$ac_ext
2247 rm -f conftest.val
2248
2249 fi
2250 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2251 as_fn_set_status $ac_retval
2252
2253 } # ac_fn_c_compute_int
2254
2255 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2256 # ----------------------------------------------------
2257 # Tries to find if the field MEMBER exists in type AGGR, after including
2258 # INCLUDES, setting cache variable VAR accordingly.
2259 ac_fn_c_check_member ()
2260 {
2261 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2263 $as_echo_n "checking for $2.$3... " >&6; }
2264 if eval \${$4+:} false; then :
2265 $as_echo_n "(cached) " >&6
2266 else
2267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2268 /* end confdefs.h. */
2269 $5
2270 int
2271 main ()
2272 {
2273 static $2 ac_aggr;
2274 if (ac_aggr.$3)
2275 return 0;
2276 ;
2277 return 0;
2278 }
2279 _ACEOF
2280 if ac_fn_c_try_compile "$LINENO"; then :
2281 eval "$4=yes"
2282 else
2283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2284 /* end confdefs.h. */
2285 $5
2286 int
2287 main ()
2288 {
2289 static $2 ac_aggr;
2290 if (sizeof ac_aggr.$3)
2291 return 0;
2292 ;
2293 return 0;
2294 }
2295 _ACEOF
2296 if ac_fn_c_try_compile "$LINENO"; then :
2297 eval "$4=yes"
2298 else
2299 eval "$4=no"
2300 fi
2301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2302 fi
2303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2304 fi
2305 eval ac_res=\$$4
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2307 $as_echo "$ac_res" >&6; }
2308 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2309
2310 } # ac_fn_c_check_member
2311 cat >config.log <<_ACEOF
2312 This file contains any messages produced by compilers while
2313 running configure, to aid debugging if configure makes a mistake.
2314
2315 It was created by GNU Fortran Runtime Library $as_me 0.3, which was
2316 generated by GNU Autoconf 2.69. Invocation command line was
2317
2318 $ $0 $@
2319
2320 _ACEOF
2321 exec 5>>config.log
2322 {
2323 cat <<_ASUNAME
2324 ## --------- ##
2325 ## Platform. ##
2326 ## --------- ##
2327
2328 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2329 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2330 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2331 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2332 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2333
2334 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2335 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2336
2337 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2338 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2339 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2340 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2341 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2342 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2343 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2344
2345 _ASUNAME
2346
2347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2348 for as_dir in $PATH
2349 do
2350 IFS=$as_save_IFS
2351 test -z "$as_dir" && as_dir=.
2352 $as_echo "PATH: $as_dir"
2353 done
2354 IFS=$as_save_IFS
2355
2356 } >&5
2357
2358 cat >&5 <<_ACEOF
2359
2360
2361 ## ----------- ##
2362 ## Core tests. ##
2363 ## ----------- ##
2364
2365 _ACEOF
2366
2367
2368 # Keep a trace of the command line.
2369 # Strip out --no-create and --no-recursion so they do not pile up.
2370 # Strip out --silent because we don't want to record it for future runs.
2371 # Also quote any args containing shell meta-characters.
2372 # Make two passes to allow for proper duplicate-argument suppression.
2373 ac_configure_args=
2374 ac_configure_args0=
2375 ac_configure_args1=
2376 ac_must_keep_next=false
2377 for ac_pass in 1 2
2378 do
2379 for ac_arg
2380 do
2381 case $ac_arg in
2382 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2383 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2384 | -silent | --silent | --silen | --sile | --sil)
2385 continue ;;
2386 *\'*)
2387 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2388 esac
2389 case $ac_pass in
2390 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2391 2)
2392 as_fn_append ac_configure_args1 " '$ac_arg'"
2393 if test $ac_must_keep_next = true; then
2394 ac_must_keep_next=false # Got value, back to normal.
2395 else
2396 case $ac_arg in
2397 *=* | --config-cache | -C | -disable-* | --disable-* \
2398 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2399 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2400 | -with-* | --with-* | -without-* | --without-* | --x)
2401 case "$ac_configure_args0 " in
2402 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2403 esac
2404 ;;
2405 -* ) ac_must_keep_next=true ;;
2406 esac
2407 fi
2408 as_fn_append ac_configure_args " '$ac_arg'"
2409 ;;
2410 esac
2411 done
2412 done
2413 { ac_configure_args0=; unset ac_configure_args0;}
2414 { ac_configure_args1=; unset ac_configure_args1;}
2415
2416 # When interrupted or exit'd, cleanup temporary files, and complete
2417 # config.log. We remove comments because anyway the quotes in there
2418 # would cause problems or look ugly.
2419 # WARNING: Use '\'' to represent an apostrophe within the trap.
2420 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2421 trap 'exit_status=$?
2422 # Save into config.log some information that might help in debugging.
2423 {
2424 echo
2425
2426 $as_echo "## ---------------- ##
2427 ## Cache variables. ##
2428 ## ---------------- ##"
2429 echo
2430 # The following way of writing the cache mishandles newlines in values,
2431 (
2432 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2433 eval ac_val=\$$ac_var
2434 case $ac_val in #(
2435 *${as_nl}*)
2436 case $ac_var in #(
2437 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2438 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2439 esac
2440 case $ac_var in #(
2441 _ | IFS | as_nl) ;; #(
2442 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2443 *) { eval $ac_var=; unset $ac_var;} ;;
2444 esac ;;
2445 esac
2446 done
2447 (set) 2>&1 |
2448 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2449 *${as_nl}ac_space=\ *)
2450 sed -n \
2451 "s/'\''/'\''\\\\'\'''\''/g;
2452 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2453 ;; #(
2454 *)
2455 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2456 ;;
2457 esac |
2458 sort
2459 )
2460 echo
2461
2462 $as_echo "## ----------------- ##
2463 ## Output variables. ##
2464 ## ----------------- ##"
2465 echo
2466 for ac_var in $ac_subst_vars
2467 do
2468 eval ac_val=\$$ac_var
2469 case $ac_val in
2470 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2471 esac
2472 $as_echo "$ac_var='\''$ac_val'\''"
2473 done | sort
2474 echo
2475
2476 if test -n "$ac_subst_files"; then
2477 $as_echo "## ------------------- ##
2478 ## File substitutions. ##
2479 ## ------------------- ##"
2480 echo
2481 for ac_var in $ac_subst_files
2482 do
2483 eval ac_val=\$$ac_var
2484 case $ac_val in
2485 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2486 esac
2487 $as_echo "$ac_var='\''$ac_val'\''"
2488 done | sort
2489 echo
2490 fi
2491
2492 if test -s confdefs.h; then
2493 $as_echo "## ----------- ##
2494 ## confdefs.h. ##
2495 ## ----------- ##"
2496 echo
2497 cat confdefs.h
2498 echo
2499 fi
2500 test "$ac_signal" != 0 &&
2501 $as_echo "$as_me: caught signal $ac_signal"
2502 $as_echo "$as_me: exit $exit_status"
2503 } >&5
2504 rm -f core *.core core.conftest.* &&
2505 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2506 exit $exit_status
2507 ' 0
2508 for ac_signal in 1 2 13 15; do
2509 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2510 done
2511 ac_signal=0
2512
2513 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2514 rm -f -r conftest* confdefs.h
2515
2516 $as_echo "/* confdefs.h */" > confdefs.h
2517
2518 # Predefined preprocessor variables.
2519
2520 cat >>confdefs.h <<_ACEOF
2521 #define PACKAGE_NAME "$PACKAGE_NAME"
2522 _ACEOF
2523
2524 cat >>confdefs.h <<_ACEOF
2525 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2526 _ACEOF
2527
2528 cat >>confdefs.h <<_ACEOF
2529 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2530 _ACEOF
2531
2532 cat >>confdefs.h <<_ACEOF
2533 #define PACKAGE_STRING "$PACKAGE_STRING"
2534 _ACEOF
2535
2536 cat >>confdefs.h <<_ACEOF
2537 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2538 _ACEOF
2539
2540 cat >>confdefs.h <<_ACEOF
2541 #define PACKAGE_URL "$PACKAGE_URL"
2542 _ACEOF
2543
2544
2545 # Let the site file select an alternate cache file if it wants to.
2546 # Prefer an explicitly selected file to automatically selected ones.
2547 ac_site_file1=NONE
2548 ac_site_file2=NONE
2549 if test -n "$CONFIG_SITE"; then
2550 # We do not want a PATH search for config.site.
2551 case $CONFIG_SITE in #((
2552 -*) ac_site_file1=./$CONFIG_SITE;;
2553 */*) ac_site_file1=$CONFIG_SITE;;
2554 *) ac_site_file1=./$CONFIG_SITE;;
2555 esac
2556 elif test "x$prefix" != xNONE; then
2557 ac_site_file1=$prefix/share/config.site
2558 ac_site_file2=$prefix/etc/config.site
2559 else
2560 ac_site_file1=$ac_default_prefix/share/config.site
2561 ac_site_file2=$ac_default_prefix/etc/config.site
2562 fi
2563 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2564 do
2565 test "x$ac_site_file" = xNONE && continue
2566 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2568 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2569 sed 's/^/| /' "$ac_site_file" >&5
2570 . "$ac_site_file" \
2571 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2572 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2573 as_fn_error $? "failed to load site script $ac_site_file
2574 See \`config.log' for more details" "$LINENO" 5; }
2575 fi
2576 done
2577
2578 if test -r "$cache_file"; then
2579 # Some versions of bash will fail to source /dev/null (special files
2580 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2581 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2583 $as_echo "$as_me: loading cache $cache_file" >&6;}
2584 case $cache_file in
2585 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2586 *) . "./$cache_file";;
2587 esac
2588 fi
2589 else
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2591 $as_echo "$as_me: creating cache $cache_file" >&6;}
2592 >$cache_file
2593 fi
2594
2595 as_fn_append ac_header_list " unistd.h"
2596 as_fn_append ac_header_list " sys/random.h"
2597 as_fn_append ac_header_list " sys/time.h"
2598 as_fn_append ac_header_list " sys/times.h"
2599 as_fn_append ac_header_list " sys/resource.h"
2600 as_fn_append ac_header_list " sys/types.h"
2601 as_fn_append ac_header_list " sys/stat.h"
2602 as_fn_append ac_header_list " sys/uio.h"
2603 as_fn_append ac_header_list " sys/wait.h"
2604 as_fn_append ac_header_list " floatingpoint.h"
2605 as_fn_append ac_header_list " ieeefp.h"
2606 as_fn_append ac_header_list " fenv.h"
2607 as_fn_append ac_header_list " fptrap.h"
2608 as_fn_append ac_header_list " fpxcp.h"
2609 as_fn_append ac_header_list " pwd.h"
2610 as_fn_append ac_header_list " complex.h"
2611 as_fn_append ac_header_list " xlocale.h"
2612 as_fn_append ac_func_list " getrusage"
2613 as_fn_append ac_func_list " times"
2614 as_fn_append ac_func_list " mkstemp"
2615 as_fn_append ac_func_list " strtof"
2616 as_fn_append ac_func_list " strtold"
2617 as_fn_append ac_func_list " snprintf"
2618 as_fn_append ac_func_list " ftruncate"
2619 as_fn_append ac_func_list " chsize"
2620 as_fn_append ac_func_list " chdir"
2621 as_fn_append ac_func_list " getentropy"
2622 as_fn_append ac_func_list " getlogin"
2623 as_fn_append ac_func_list " gethostname"
2624 as_fn_append ac_func_list " kill"
2625 as_fn_append ac_func_list " link"
2626 as_fn_append ac_func_list " symlink"
2627 as_fn_append ac_func_list " sleep"
2628 as_fn_append ac_func_list " ttyname"
2629 as_fn_append ac_func_list " sigaction"
2630 as_fn_append ac_func_list " waitpid"
2631 as_fn_append ac_func_list " alarm"
2632 as_fn_append ac_func_list " access"
2633 as_fn_append ac_func_list " fork"
2634 as_fn_append ac_func_list " posix_spawn"
2635 as_fn_append ac_func_list " setmode"
2636 as_fn_append ac_func_list " fcntl"
2637 as_fn_append ac_func_list " writev"
2638 as_fn_append ac_func_list " gettimeofday"
2639 as_fn_append ac_func_list " stat"
2640 as_fn_append ac_func_list " fstat"
2641 as_fn_append ac_func_list " lstat"
2642 as_fn_append ac_func_list " getpwuid"
2643 as_fn_append ac_func_list " vsnprintf"
2644 as_fn_append ac_func_list " dup"
2645 as_fn_append ac_func_list " getcwd"
2646 as_fn_append ac_func_list " localtime_r"
2647 as_fn_append ac_func_list " gmtime_r"
2648 as_fn_append ac_func_list " getpwuid_r"
2649 as_fn_append ac_func_list " ttyname_r"
2650 as_fn_append ac_func_list " clock_gettime"
2651 as_fn_append ac_func_list " getgid"
2652 as_fn_append ac_func_list " getpid"
2653 as_fn_append ac_func_list " getuid"
2654 as_fn_append ac_func_list " geteuid"
2655 as_fn_append ac_func_list " umask"
2656 as_fn_append ac_func_list " getegid"
2657 as_fn_append ac_func_list " secure_getenv"
2658 as_fn_append ac_func_list " __secure_getenv"
2659 as_fn_append ac_func_list " mkostemp"
2660 as_fn_append ac_func_list " strnlen"
2661 as_fn_append ac_func_list " strndup"
2662 as_fn_append ac_func_list " newlocale"
2663 as_fn_append ac_func_list " freelocale"
2664 as_fn_append ac_func_list " uselocale"
2665 as_fn_append ac_func_list " strerror_l"
2666 as_fn_append ac_header_list " math.h"
2667 # Check that the precious variables saved in the cache have kept the same
2668 # value.
2669 ac_cache_corrupted=false
2670 for ac_var in $ac_precious_vars; do
2671 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2672 eval ac_new_set=\$ac_env_${ac_var}_set
2673 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2674 eval ac_new_val=\$ac_env_${ac_var}_value
2675 case $ac_old_set,$ac_new_set in
2676 set,)
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2678 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2679 ac_cache_corrupted=: ;;
2680 ,set)
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2682 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2683 ac_cache_corrupted=: ;;
2684 ,);;
2685 *)
2686 if test "x$ac_old_val" != "x$ac_new_val"; then
2687 # differences in whitespace do not lead to failure.
2688 ac_old_val_w=`echo x $ac_old_val`
2689 ac_new_val_w=`echo x $ac_new_val`
2690 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2692 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2693 ac_cache_corrupted=:
2694 else
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2696 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2697 eval $ac_var=\$ac_old_val
2698 fi
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2700 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2702 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2703 fi;;
2704 esac
2705 # Pass precious variables to config.status.
2706 if test "$ac_new_set" = set; then
2707 case $ac_new_val in
2708 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2709 *) ac_arg=$ac_var=$ac_new_val ;;
2710 esac
2711 case " $ac_configure_args " in
2712 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2713 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2714 esac
2715 fi
2716 done
2717 if $ac_cache_corrupted; then
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2719 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2721 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2722 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2723 fi
2724 ## -------------------- ##
2725 ## Main body of script. ##
2726 ## -------------------- ##
2727
2728 ac_ext=c
2729 ac_cpp='$CPP $CPPFLAGS'
2730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2733
2734
2735
2736
2737
2738 ac_config_headers="$ac_config_headers config.h"
2739
2740 ac_aux_dir=
2741 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2742 if test -f "$ac_dir/install-sh"; then
2743 ac_aux_dir=$ac_dir
2744 ac_install_sh="$ac_aux_dir/install-sh -c"
2745 break
2746 elif test -f "$ac_dir/install.sh"; then
2747 ac_aux_dir=$ac_dir
2748 ac_install_sh="$ac_aux_dir/install.sh -c"
2749 break
2750 elif test -f "$ac_dir/shtool"; then
2751 ac_aux_dir=$ac_dir
2752 ac_install_sh="$ac_aux_dir/shtool install -c"
2753 break
2754 fi
2755 done
2756 if test -z "$ac_aux_dir"; then
2757 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2758 fi
2759
2760 # These three variables are undocumented and unsupported,
2761 # and are intended to be withdrawn in a future Autoconf release.
2762 # They can cause serious problems if a builder's source tree is in a directory
2763 # whose full name contains unusual characters.
2764 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2765 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2766 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2767
2768
2769 # Make sure we can run config.sub.
2770 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2771 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2772
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2774 $as_echo_n "checking build system type... " >&6; }
2775 if ${ac_cv_build+:} false; then :
2776 $as_echo_n "(cached) " >&6
2777 else
2778 ac_build_alias=$build_alias
2779 test "x$ac_build_alias" = x &&
2780 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2781 test "x$ac_build_alias" = x &&
2782 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2783 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2784 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2785
2786 fi
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2788 $as_echo "$ac_cv_build" >&6; }
2789 case $ac_cv_build in
2790 *-*-*) ;;
2791 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2792 esac
2793 build=$ac_cv_build
2794 ac_save_IFS=$IFS; IFS='-'
2795 set x $ac_cv_build
2796 shift
2797 build_cpu=$1
2798 build_vendor=$2
2799 shift; shift
2800 # Remember, the first character of IFS is used to create $*,
2801 # except with old shells:
2802 build_os=$*
2803 IFS=$ac_save_IFS
2804 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2805
2806
2807 case ${build_alias} in
2808 "") build_noncanonical=${build} ;;
2809 *) build_noncanonical=${build_alias} ;;
2810 esac
2811
2812 case ${host_alias} in
2813 "") host_noncanonical=${build_noncanonical} ;;
2814 *) host_noncanonical=${host_alias} ;;
2815 esac
2816
2817 case ${target_alias} in
2818 "") target_noncanonical=${host_noncanonical} ;;
2819 *) target_noncanonical=${target_alias} ;;
2820 esac
2821
2822
2823 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2824 # have matching libraries, they should use host libraries: Makefile.tpl
2825 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2826 # However, they still use the build modules, because the corresponding
2827 # host modules (e.g. bison) are only built for the host when bootstrap
2828 # finishes. So:
2829 # - build_subdir is where we find build modules, and never changes.
2830 # - build_libsubdir is where we find build libraries, and can be overridden.
2831
2832 # Prefix 'build-' so this never conflicts with target_subdir.
2833 build_subdir="build-${build_noncanonical}"
2834
2835 # Check whether --with-build-libsubdir was given.
2836 if test "${with_build_libsubdir+set}" = set; then :
2837 withval=$with_build_libsubdir; build_libsubdir="$withval"
2838 else
2839 build_libsubdir="$build_subdir"
2840 fi
2841
2842 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2843 if ( test $srcdir = . && test -d gcc ) \
2844 || test -d $srcdir/../host-${host_noncanonical}; then
2845 host_subdir="host-${host_noncanonical}"
2846 else
2847 host_subdir=.
2848 fi
2849 # No prefix.
2850 target_subdir=${target_noncanonical}
2851
2852
2853 # -------
2854 # Options
2855 # -------
2856
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2858 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2859 # Check whether --enable-version-specific-runtime-libs was given.
2860 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2861 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2862 yes) version_specific_libs=yes ;;
2863 no) version_specific_libs=no ;;
2864 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2865 esac
2866 else
2867 version_specific_libs=no
2868 fi
2869
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2871 $as_echo "$version_specific_libs" >&6; }
2872
2873 # Build with intermodule optimisations
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-intermodule" >&5
2875 $as_echo_n "checking for --enable-intermodule... " >&6; }
2876 # Check whether --enable-intermodule was given.
2877 if test "${enable_intermodule+set}" = set; then :
2878 enableval=$enable_intermodule; case "$enable_intermodule" in
2879 yes) onestep="-onestep";;
2880 *) onestep="";;
2881 esac
2882 else
2883 onestep=""
2884 fi
2885
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_intermodule" >&5
2887 $as_echo "$enable_intermodule" >&6; }
2888 if test x$onestep = x-onestep; then
2889 onestep_TRUE=
2890 onestep_FALSE='#'
2891 else
2892 onestep_TRUE='#'
2893 onestep_FALSE=
2894 fi
2895
2896
2897
2898 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2899 #
2900 # You will slowly go insane if you do not grok the following fact: when
2901 # building this library, the top-level /target/ becomes the library's /host/.
2902 #
2903 # configure then causes --target to default to --host, exactly like any
2904 # other package using autoconf. Therefore, 'target' and 'host' will
2905 # always be the same. This makes sense both for native and cross compilers
2906 # just think about it for a little while. :-)
2907 #
2908 # Also, if this library is being configured as part of a cross compiler, the
2909 # top-level configure script will pass the "real" host as $with_cross_host.
2910 #
2911 # Do not delete or change the following two lines. For why, see
2912 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2914 $as_echo_n "checking host system type... " >&6; }
2915 if ${ac_cv_host+:} false; then :
2916 $as_echo_n "(cached) " >&6
2917 else
2918 if test "x$host_alias" = x; then
2919 ac_cv_host=$ac_cv_build
2920 else
2921 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2922 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2923 fi
2924
2925 fi
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2927 $as_echo "$ac_cv_host" >&6; }
2928 case $ac_cv_host in
2929 *-*-*) ;;
2930 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2931 esac
2932 host=$ac_cv_host
2933 ac_save_IFS=$IFS; IFS='-'
2934 set x $ac_cv_host
2935 shift
2936 host_cpu=$1
2937 host_vendor=$2
2938 shift; shift
2939 # Remember, the first character of IFS is used to create $*,
2940 # except with old shells:
2941 host_os=$*
2942 IFS=$ac_save_IFS
2943 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2944
2945
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2947 $as_echo_n "checking target system type... " >&6; }
2948 if ${ac_cv_target+:} false; then :
2949 $as_echo_n "(cached) " >&6
2950 else
2951 if test "x$target_alias" = x; then
2952 ac_cv_target=$ac_cv_host
2953 else
2954 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2955 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2956 fi
2957
2958 fi
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2960 $as_echo "$ac_cv_target" >&6; }
2961 case $ac_cv_target in
2962 *-*-*) ;;
2963 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2964 esac
2965 target=$ac_cv_target
2966 ac_save_IFS=$IFS; IFS='-'
2967 set x $ac_cv_target
2968 shift
2969 target_cpu=$1
2970 target_vendor=$2
2971 shift; shift
2972 # Remember, the first character of IFS is used to create $*,
2973 # except with old shells:
2974 target_os=$*
2975 IFS=$ac_save_IFS
2976 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2977
2978
2979 # The aliases save the names the user supplied, while $host etc.
2980 # will get canonicalized.
2981 test -n "$target_alias" &&
2982 test "$program_prefix$program_suffix$program_transform_name" = \
2983 NONENONEs,x,x, &&
2984 program_prefix=${target_alias}-
2985
2986
2987
2988
2989 target_alias=${target_alias-$host_alias}
2990
2991
2992 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2993 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2994 # 1.9.6: minimum required version
2995 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2996 # of other PACKAGE_* variables will, however, and there's nothing
2997 # we can do about that; they come from AC_INIT).
2998 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2999 # file in the top srcdir, etc, etc), so stop complaining.
3000 # no-dist: we don't want 'dist' and related rules.
3001 # -Wall: turns on all automake warnings...
3002 # -Wno-portability: ...except this one, since GNU make is required.
3003 am__api_version='1.15'
3004
3005 # Find a good install program. We prefer a C program (faster),
3006 # so one script is as good as another. But avoid the broken or
3007 # incompatible versions:
3008 # SysV /etc/install, /usr/sbin/install
3009 # SunOS /usr/etc/install
3010 # IRIX /sbin/install
3011 # AIX /bin/install
3012 # AmigaOS /C/install, which installs bootblocks on floppy discs
3013 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3014 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3015 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3016 # OS/2's system install, which has a completely different semantic
3017 # ./install, which can be erroneously created by make from ./install.sh.
3018 # Reject install programs that cannot install multiple files.
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3020 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3021 if test -z "$INSTALL"; then
3022 if ${ac_cv_path_install+:} false; then :
3023 $as_echo_n "(cached) " >&6
3024 else
3025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3026 for as_dir in $PATH
3027 do
3028 IFS=$as_save_IFS
3029 test -z "$as_dir" && as_dir=.
3030 # Account for people who put trailing slashes in PATH elements.
3031 case $as_dir/ in #((
3032 ./ | .// | /[cC]/* | \
3033 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3034 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3035 /usr/ucb/* ) ;;
3036 *)
3037 # OSF1 and SCO ODT 3.0 have their own names for install.
3038 # Don't use installbsd from OSF since it installs stuff as root
3039 # by default.
3040 for ac_prog in ginstall scoinst install; do
3041 for ac_exec_ext in '' $ac_executable_extensions; do
3042 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3043 if test $ac_prog = install &&
3044 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3045 # AIX install. It has an incompatible calling convention.
3046 :
3047 elif test $ac_prog = install &&
3048 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3049 # program-specific install script used by HP pwplus--don't use.
3050 :
3051 else
3052 rm -rf conftest.one conftest.two conftest.dir
3053 echo one > conftest.one
3054 echo two > conftest.two
3055 mkdir conftest.dir
3056 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3057 test -s conftest.one && test -s conftest.two &&
3058 test -s conftest.dir/conftest.one &&
3059 test -s conftest.dir/conftest.two
3060 then
3061 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3062 break 3
3063 fi
3064 fi
3065 fi
3066 done
3067 done
3068 ;;
3069 esac
3070
3071 done
3072 IFS=$as_save_IFS
3073
3074 rm -rf conftest.one conftest.two conftest.dir
3075
3076 fi
3077 if test "${ac_cv_path_install+set}" = set; then
3078 INSTALL=$ac_cv_path_install
3079 else
3080 # As a last resort, use the slow shell script. Don't cache a
3081 # value for INSTALL within a source directory, because that will
3082 # break other packages using the cache if that directory is
3083 # removed, or if the value is a relative name.
3084 INSTALL=$ac_install_sh
3085 fi
3086 fi
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3088 $as_echo "$INSTALL" >&6; }
3089
3090 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3091 # It thinks the first close brace ends the variable substitution.
3092 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3093
3094 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3095
3096 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3097
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3099 $as_echo_n "checking whether build environment is sane... " >&6; }
3100 # Reject unsafe characters in $srcdir or the absolute working directory
3101 # name. Accept space and tab only in the latter.
3102 am_lf='
3103 '
3104 case `pwd` in
3105 *[\\\"\#\$\&\'\`$am_lf]*)
3106 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3107 esac
3108 case $srcdir in
3109 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3110 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3111 esac
3112
3113 # Do 'set' in a subshell so we don't clobber the current shell's
3114 # arguments. Must try -L first in case configure is actually a
3115 # symlink; some systems play weird games with the mod time of symlinks
3116 # (eg FreeBSD returns the mod time of the symlink's containing
3117 # directory).
3118 if (
3119 am_has_slept=no
3120 for am_try in 1 2; do
3121 echo "timestamp, slept: $am_has_slept" > conftest.file
3122 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3123 if test "$*" = "X"; then
3124 # -L didn't work.
3125 set X `ls -t "$srcdir/configure" conftest.file`
3126 fi
3127 if test "$*" != "X $srcdir/configure conftest.file" \
3128 && test "$*" != "X conftest.file $srcdir/configure"; then
3129
3130 # If neither matched, then we have a broken ls. This can happen
3131 # if, for instance, CONFIG_SHELL is bash and it inherits a
3132 # broken ls alias from the environment. This has actually
3133 # happened. Such a system could not be considered "sane".
3134 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3135 alias in your environment" "$LINENO" 5
3136 fi
3137 if test "$2" = conftest.file || test $am_try -eq 2; then
3138 break
3139 fi
3140 # Just in case.
3141 sleep 1
3142 am_has_slept=yes
3143 done
3144 test "$2" = conftest.file
3145 )
3146 then
3147 # Ok.
3148 :
3149 else
3150 as_fn_error $? "newly created file is older than distributed files!
3151 Check your system clock" "$LINENO" 5
3152 fi
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3154 $as_echo "yes" >&6; }
3155 # If we didn't sleep, we still need to ensure time stamps of config.status and
3156 # generated files are strictly newer.
3157 am_sleep_pid=
3158 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3159 ( sleep 1 ) &
3160 am_sleep_pid=$!
3161 fi
3162
3163 rm -f conftest.file
3164
3165 test "$program_prefix" != NONE &&
3166 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3167 # Use a double $ so make ignores it.
3168 test "$program_suffix" != NONE &&
3169 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3170 # Double any \ or $.
3171 # By default was `s,x,x', remove it if useless.
3172 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3173 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3174
3175 # Expand $ac_aux_dir to an absolute path.
3176 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3177
3178 if test x"${MISSING+set}" != xset; then
3179 case $am_aux_dir in
3180 *\ * | *\ *)
3181 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3182 *)
3183 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3184 esac
3185 fi
3186 # Use eval to expand $SHELL
3187 if eval "$MISSING --is-lightweight"; then
3188 am_missing_run="$MISSING "
3189 else
3190 am_missing_run=
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3192 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3193 fi
3194
3195 if test x"${install_sh+set}" != xset; then
3196 case $am_aux_dir in
3197 *\ * | *\ *)
3198 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3199 *)
3200 install_sh="\${SHELL} $am_aux_dir/install-sh"
3201 esac
3202 fi
3203
3204 # Installed binaries are usually stripped using 'strip' when the user
3205 # run "make install-strip". However 'strip' might not be the right
3206 # tool to use in cross-compilation environments, therefore Automake
3207 # will honor the 'STRIP' environment variable to overrule this program.
3208 if test "$cross_compiling" != no; then
3209 if test -n "$ac_tool_prefix"; then
3210 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3211 set dummy ${ac_tool_prefix}strip; ac_word=$2
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3213 $as_echo_n "checking for $ac_word... " >&6; }
3214 if ${ac_cv_prog_STRIP+:} false; then :
3215 $as_echo_n "(cached) " >&6
3216 else
3217 if test -n "$STRIP"; then
3218 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3219 else
3220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3221 for as_dir in $PATH
3222 do
3223 IFS=$as_save_IFS
3224 test -z "$as_dir" && as_dir=.
3225 for ac_exec_ext in '' $ac_executable_extensions; do
3226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3227 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3229 break 2
3230 fi
3231 done
3232 done
3233 IFS=$as_save_IFS
3234
3235 fi
3236 fi
3237 STRIP=$ac_cv_prog_STRIP
3238 if test -n "$STRIP"; then
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3240 $as_echo "$STRIP" >&6; }
3241 else
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3243 $as_echo "no" >&6; }
3244 fi
3245
3246
3247 fi
3248 if test -z "$ac_cv_prog_STRIP"; then
3249 ac_ct_STRIP=$STRIP
3250 # Extract the first word of "strip", so it can be a program name with args.
3251 set dummy strip; ac_word=$2
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3253 $as_echo_n "checking for $ac_word... " >&6; }
3254 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3255 $as_echo_n "(cached) " >&6
3256 else
3257 if test -n "$ac_ct_STRIP"; then
3258 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3259 else
3260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3261 for as_dir in $PATH
3262 do
3263 IFS=$as_save_IFS
3264 test -z "$as_dir" && as_dir=.
3265 for ac_exec_ext in '' $ac_executable_extensions; do
3266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3267 ac_cv_prog_ac_ct_STRIP="strip"
3268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3269 break 2
3270 fi
3271 done
3272 done
3273 IFS=$as_save_IFS
3274
3275 fi
3276 fi
3277 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3278 if test -n "$ac_ct_STRIP"; then
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3280 $as_echo "$ac_ct_STRIP" >&6; }
3281 else
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3283 $as_echo "no" >&6; }
3284 fi
3285
3286 if test "x$ac_ct_STRIP" = x; then
3287 STRIP=":"
3288 else
3289 case $cross_compiling:$ac_tool_warned in
3290 yes:)
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3292 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3293 ac_tool_warned=yes ;;
3294 esac
3295 STRIP=$ac_ct_STRIP
3296 fi
3297 else
3298 STRIP="$ac_cv_prog_STRIP"
3299 fi
3300
3301 fi
3302 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3303
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3305 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3306 if test -z "$MKDIR_P"; then
3307 if ${ac_cv_path_mkdir+:} false; then :
3308 $as_echo_n "(cached) " >&6
3309 else
3310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3312 do
3313 IFS=$as_save_IFS
3314 test -z "$as_dir" && as_dir=.
3315 for ac_prog in mkdir gmkdir; do
3316 for ac_exec_ext in '' $ac_executable_extensions; do
3317 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3318 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3319 'mkdir (GNU coreutils) '* | \
3320 'mkdir (coreutils) '* | \
3321 'mkdir (fileutils) '4.1*)
3322 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3323 break 3;;
3324 esac
3325 done
3326 done
3327 done
3328 IFS=$as_save_IFS
3329
3330 fi
3331
3332 test -d ./--version && rmdir ./--version
3333 if test "${ac_cv_path_mkdir+set}" = set; then
3334 MKDIR_P="$ac_cv_path_mkdir -p"
3335 else
3336 # As a last resort, use the slow shell script. Don't cache a
3337 # value for MKDIR_P within a source directory, because that will
3338 # break other packages using the cache if that directory is
3339 # removed, or if the value is a relative name.
3340 MKDIR_P="$ac_install_sh -d"
3341 fi
3342 fi
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3344 $as_echo "$MKDIR_P" >&6; }
3345
3346 for ac_prog in gawk mawk nawk awk
3347 do
3348 # Extract the first word of "$ac_prog", so it can be a program name with args.
3349 set dummy $ac_prog; ac_word=$2
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3351 $as_echo_n "checking for $ac_word... " >&6; }
3352 if ${ac_cv_prog_AWK+:} false; then :
3353 $as_echo_n "(cached) " >&6
3354 else
3355 if test -n "$AWK"; then
3356 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3357 else
3358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3359 for as_dir in $PATH
3360 do
3361 IFS=$as_save_IFS
3362 test -z "$as_dir" && as_dir=.
3363 for ac_exec_ext in '' $ac_executable_extensions; do
3364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3365 ac_cv_prog_AWK="$ac_prog"
3366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3367 break 2
3368 fi
3369 done
3370 done
3371 IFS=$as_save_IFS
3372
3373 fi
3374 fi
3375 AWK=$ac_cv_prog_AWK
3376 if test -n "$AWK"; then
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3378 $as_echo "$AWK" >&6; }
3379 else
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3381 $as_echo "no" >&6; }
3382 fi
3383
3384
3385 test -n "$AWK" && break
3386 done
3387
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3389 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3390 set x ${MAKE-make}
3391 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3392 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3393 $as_echo_n "(cached) " >&6
3394 else
3395 cat >conftest.make <<\_ACEOF
3396 SHELL = /bin/sh
3397 all:
3398 @echo '@@@%%%=$(MAKE)=@@@%%%'
3399 _ACEOF
3400 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3401 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3402 *@@@%%%=?*=@@@%%%*)
3403 eval ac_cv_prog_make_${ac_make}_set=yes;;
3404 *)
3405 eval ac_cv_prog_make_${ac_make}_set=no;;
3406 esac
3407 rm -f conftest.make
3408 fi
3409 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3411 $as_echo "yes" >&6; }
3412 SET_MAKE=
3413 else
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3415 $as_echo "no" >&6; }
3416 SET_MAKE="MAKE=${MAKE-make}"
3417 fi
3418
3419 rm -rf .tst 2>/dev/null
3420 mkdir .tst 2>/dev/null
3421 if test -d .tst; then
3422 am__leading_dot=.
3423 else
3424 am__leading_dot=_
3425 fi
3426 rmdir .tst 2>/dev/null
3427
3428 # Check whether --enable-silent-rules was given.
3429 if test "${enable_silent_rules+set}" = set; then :
3430 enableval=$enable_silent_rules;
3431 fi
3432
3433 case $enable_silent_rules in # (((
3434 yes) AM_DEFAULT_VERBOSITY=0;;
3435 no) AM_DEFAULT_VERBOSITY=1;;
3436 *) AM_DEFAULT_VERBOSITY=1;;
3437 esac
3438 am_make=${MAKE-make}
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3440 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3441 if ${am_cv_make_support_nested_variables+:} false; then :
3442 $as_echo_n "(cached) " >&6
3443 else
3444 if $as_echo 'TRUE=$(BAR$(V))
3445 BAR0=false
3446 BAR1=true
3447 V=1
3448 am__doit:
3449 @$(TRUE)
3450 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3451 am_cv_make_support_nested_variables=yes
3452 else
3453 am_cv_make_support_nested_variables=no
3454 fi
3455 fi
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3457 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3458 if test $am_cv_make_support_nested_variables = yes; then
3459 AM_V='$(V)'
3460 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3461 else
3462 AM_V=$AM_DEFAULT_VERBOSITY
3463 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3464 fi
3465 AM_BACKSLASH='\'
3466
3467 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3468 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3469 # is not polluted with repeated "-I."
3470 am__isrc=' -I$(srcdir)'
3471 # test to see if srcdir already configured
3472 if test -f $srcdir/config.status; then
3473 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3474 fi
3475 fi
3476
3477 # test whether we have cygpath
3478 if test -z "$CYGPATH_W"; then
3479 if (cygpath --version) >/dev/null 2>/dev/null; then
3480 CYGPATH_W='cygpath -w'
3481 else
3482 CYGPATH_W=echo
3483 fi
3484 fi
3485
3486
3487 # Define the identity of the package.
3488 PACKAGE='libgfortran'
3489 VERSION='0.3'
3490
3491
3492 # Some tools Automake needs.
3493
3494 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3495
3496
3497 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3498
3499
3500 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3501
3502
3503 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3504
3505
3506 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3507
3508 # For better backward compatibility. To be removed once Automake 1.9.x
3509 # dies out for good. For more background, see:
3510 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3511 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3512 mkdir_p='$(MKDIR_P)'
3513
3514 # We need awk for the "check" target (and possibly the TAP driver). The
3515 # system "awk" is bad on some platforms.
3516 # Always define AMTAR for backward compatibility. Yes, it's still used
3517 # in the wild :-( We should find a proper way to deprecate it ...
3518 AMTAR='$${TAR-tar}'
3519
3520
3521 # We'll loop over all known methods to create a tar archive until one works.
3522 _am_tools='gnutar pax cpio none'
3523
3524 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3525
3526
3527
3528
3529
3530
3531 # POSIX will say in a future version that running "rm -f" with no argument
3532 # is OK; and we want to be able to make that assumption in our Makefile
3533 # recipes. So use an aggressive probe to check that the usage we want is
3534 # actually supported "in the wild" to an acceptable degree.
3535 # See automake bug#10828.
3536 # To make any issue more visible, cause the running configure to be aborted
3537 # by default if the 'rm' program in use doesn't match our expectations; the
3538 # user can still override this though.
3539 if rm -f && rm -fr && rm -rf; then : OK; else
3540 cat >&2 <<'END'
3541 Oops!
3542
3543 Your 'rm' program seems unable to run without file operands specified
3544 on the command line, even when the '-f' option is present. This is contrary
3545 to the behaviour of most rm programs out there, and not conforming with
3546 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3547
3548 Please tell bug-automake@gnu.org about your system, including the value
3549 of your $PATH and any error possibly output before this message. This
3550 can help us improve future automake versions.
3551
3552 END
3553 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3554 echo 'Configuration will proceed anyway, since you have set the' >&2
3555 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3556 echo >&2
3557 else
3558 cat >&2 <<'END'
3559 Aborting the configuration process, to ensure you take notice of the issue.
3560
3561 You can download and install GNU coreutils to get an 'rm' implementation
3562 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3563
3564 If you want to complete the configuration process using your problematic
3565 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3566 to "yes", and re-run configure.
3567
3568 END
3569 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3570 fi
3571 fi
3572
3573
3574
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3576 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3577 # Check whether --enable-maintainer-mode was given.
3578 if test "${enable_maintainer_mode+set}" = set; then :
3579 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3580 else
3581 USE_MAINTAINER_MODE=no
3582 fi
3583
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3585 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3586 if test $USE_MAINTAINER_MODE = yes; then
3587 MAINTAINER_MODE_TRUE=
3588 MAINTAINER_MODE_FALSE='#'
3589 else
3590 MAINTAINER_MODE_TRUE='#'
3591 MAINTAINER_MODE_FALSE=
3592 fi
3593
3594 MAINT=$MAINTAINER_MODE_TRUE
3595
3596
3597 # Default to --enable-multilib
3598 # Check whether --enable-multilib was given.
3599 if test "${enable_multilib+set}" = set; then :
3600 enableval=$enable_multilib; case "$enableval" in
3601 yes) multilib=yes ;;
3602 no) multilib=no ;;
3603 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
3604 esac
3605 else
3606 multilib=yes
3607 fi
3608
3609
3610 # We may get other options which we leave undocumented:
3611 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3612 # See config-ml.in if you want the gory details.
3613
3614 if test "$srcdir" = "."; then
3615 if test "$with_target_subdir" != "."; then
3616 multi_basedir="$srcdir/$with_multisrctop../.."
3617 else
3618 multi_basedir="$srcdir/$with_multisrctop.."
3619 fi
3620 else
3621 multi_basedir="$srcdir/.."
3622 fi
3623
3624
3625 # Even if the default multilib is not a cross compilation,
3626 # it may be that some of the other multilibs are.
3627 if test $cross_compiling = no && test $multilib = yes \
3628 && test "x${with_multisubdir}" != x ; then
3629 cross_compiling=maybe
3630 fi
3631
3632 ac_config_commands="$ac_config_commands default-1"
3633
3634
3635 # Handy for debugging:
3636 #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
3637
3638 # Are we being configured with some form of cross compiler?
3639 # NB: We don't actually need to know this just now, but when, say, a test
3640 # suite is included, we'll have to know.
3641 if test "$build" != "$host"; then
3642 LIBGFOR_IS_NATIVE=false
3643
3644 else
3645 LIBGFOR_IS_NATIVE=true
3646 fi
3647
3648 DEPDIR="${am__leading_dot}deps"
3649
3650 ac_config_commands="$ac_config_commands depfiles"
3651
3652
3653 am_make=${MAKE-make}
3654 cat > confinc << 'END'
3655 am__doit:
3656 @echo this is the am__doit target
3657 .PHONY: am__doit
3658 END
3659 # If we don't find an include directive, just comment out the code.
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3661 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3662 am__include="#"
3663 am__quote=
3664 _am_result=none
3665 # First try GNU make style include.
3666 echo "include confinc" > confmf
3667 # Ignore all kinds of additional output from 'make'.
3668 case `$am_make -s -f confmf 2> /dev/null` in #(
3669 *the\ am__doit\ target*)
3670 am__include=include
3671 am__quote=
3672 _am_result=GNU
3673 ;;
3674 esac
3675 # Now try BSD make style include.
3676 if test "$am__include" = "#"; then
3677 echo '.include "confinc"' > confmf
3678 case `$am_make -s -f confmf 2> /dev/null` in #(
3679 *the\ am__doit\ target*)
3680 am__include=.include
3681 am__quote="\""
3682 _am_result=BSD
3683 ;;
3684 esac
3685 fi
3686
3687
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3689 $as_echo "$_am_result" >&6; }
3690 rm -f confinc confmf
3691
3692 # Check whether --enable-dependency-tracking was given.
3693 if test "${enable_dependency_tracking+set}" = set; then :
3694 enableval=$enable_dependency_tracking;
3695 fi
3696
3697 if test "x$enable_dependency_tracking" != xno; then
3698 am_depcomp="$ac_aux_dir/depcomp"
3699 AMDEPBACKSLASH='\'
3700 am__nodep='_no'
3701 fi
3702 if test "x$enable_dependency_tracking" != xno; then
3703 AMDEP_TRUE=
3704 AMDEP_FALSE='#'
3705 else
3706 AMDEP_TRUE='#'
3707 AMDEP_FALSE=
3708 fi
3709
3710
3711 ac_ext=c
3712 ac_cpp='$CPP $CPPFLAGS'
3713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3716 if test -n "$ac_tool_prefix"; then
3717 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3718 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3720 $as_echo_n "checking for $ac_word... " >&6; }
3721 if ${ac_cv_prog_CC+:} false; then :
3722 $as_echo_n "(cached) " >&6
3723 else
3724 if test -n "$CC"; then
3725 ac_cv_prog_CC="$CC" # Let the user override the test.
3726 else
3727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3728 for as_dir in $PATH
3729 do
3730 IFS=$as_save_IFS
3731 test -z "$as_dir" && as_dir=.
3732 for ac_exec_ext in '' $ac_executable_extensions; do
3733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3734 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3736 break 2
3737 fi
3738 done
3739 done
3740 IFS=$as_save_IFS
3741
3742 fi
3743 fi
3744 CC=$ac_cv_prog_CC
3745 if test -n "$CC"; then
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3747 $as_echo "$CC" >&6; }
3748 else
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3750 $as_echo "no" >&6; }
3751 fi
3752
3753
3754 fi
3755 if test -z "$ac_cv_prog_CC"; then
3756 ac_ct_CC=$CC
3757 # Extract the first word of "gcc", so it can be a program name with args.
3758 set dummy gcc; ac_word=$2
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3760 $as_echo_n "checking for $ac_word... " >&6; }
3761 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3762 $as_echo_n "(cached) " >&6
3763 else
3764 if test -n "$ac_ct_CC"; then
3765 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3766 else
3767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768 for as_dir in $PATH
3769 do
3770 IFS=$as_save_IFS
3771 test -z "$as_dir" && as_dir=.
3772 for ac_exec_ext in '' $ac_executable_extensions; do
3773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3774 ac_cv_prog_ac_ct_CC="gcc"
3775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3776 break 2
3777 fi
3778 done
3779 done
3780 IFS=$as_save_IFS
3781
3782 fi
3783 fi
3784 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3785 if test -n "$ac_ct_CC"; then
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3787 $as_echo "$ac_ct_CC" >&6; }
3788 else
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3790 $as_echo "no" >&6; }
3791 fi
3792
3793 if test "x$ac_ct_CC" = x; then
3794 CC=""
3795 else
3796 case $cross_compiling:$ac_tool_warned in
3797 yes:)
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3799 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3800 ac_tool_warned=yes ;;
3801 esac
3802 CC=$ac_ct_CC
3803 fi
3804 else
3805 CC="$ac_cv_prog_CC"
3806 fi
3807
3808 if test -z "$CC"; then
3809 if test -n "$ac_tool_prefix"; then
3810 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3811 set dummy ${ac_tool_prefix}cc; ac_word=$2
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3813 $as_echo_n "checking for $ac_word... " >&6; }
3814 if ${ac_cv_prog_CC+:} false; then :
3815 $as_echo_n "(cached) " >&6
3816 else
3817 if test -n "$CC"; then
3818 ac_cv_prog_CC="$CC" # Let the user override the test.
3819 else
3820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3821 for as_dir in $PATH
3822 do
3823 IFS=$as_save_IFS
3824 test -z "$as_dir" && as_dir=.
3825 for ac_exec_ext in '' $ac_executable_extensions; do
3826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3827 ac_cv_prog_CC="${ac_tool_prefix}cc"
3828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3829 break 2
3830 fi
3831 done
3832 done
3833 IFS=$as_save_IFS
3834
3835 fi
3836 fi
3837 CC=$ac_cv_prog_CC
3838 if test -n "$CC"; then
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3840 $as_echo "$CC" >&6; }
3841 else
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3843 $as_echo "no" >&6; }
3844 fi
3845
3846
3847 fi
3848 fi
3849 if test -z "$CC"; then
3850 # Extract the first word of "cc", so it can be a program name with args.
3851 set dummy cc; ac_word=$2
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3853 $as_echo_n "checking for $ac_word... " >&6; }
3854 if ${ac_cv_prog_CC+:} false; then :
3855 $as_echo_n "(cached) " >&6
3856 else
3857 if test -n "$CC"; then
3858 ac_cv_prog_CC="$CC" # Let the user override the test.
3859 else
3860 ac_prog_rejected=no
3861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3862 for as_dir in $PATH
3863 do
3864 IFS=$as_save_IFS
3865 test -z "$as_dir" && as_dir=.
3866 for ac_exec_ext in '' $ac_executable_extensions; do
3867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3868 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3869 ac_prog_rejected=yes
3870 continue
3871 fi
3872 ac_cv_prog_CC="cc"
3873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3874 break 2
3875 fi
3876 done
3877 done
3878 IFS=$as_save_IFS
3879
3880 if test $ac_prog_rejected = yes; then
3881 # We found a bogon in the path, so make sure we never use it.
3882 set dummy $ac_cv_prog_CC
3883 shift
3884 if test $# != 0; then
3885 # We chose a different compiler from the bogus one.
3886 # However, it has the same basename, so the bogon will be chosen
3887 # first if we set CC to just the basename; use the full file name.
3888 shift
3889 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3890 fi
3891 fi
3892 fi
3893 fi
3894 CC=$ac_cv_prog_CC
3895 if test -n "$CC"; then
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3897 $as_echo "$CC" >&6; }
3898 else
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3900 $as_echo "no" >&6; }
3901 fi
3902
3903
3904 fi
3905 if test -z "$CC"; then
3906 if test -n "$ac_tool_prefix"; then
3907 for ac_prog in cl.exe
3908 do
3909 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3910 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3912 $as_echo_n "checking for $ac_word... " >&6; }
3913 if ${ac_cv_prog_CC+:} false; then :
3914 $as_echo_n "(cached) " >&6
3915 else
3916 if test -n "$CC"; then
3917 ac_cv_prog_CC="$CC" # Let the user override the test.
3918 else
3919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3920 for as_dir in $PATH
3921 do
3922 IFS=$as_save_IFS
3923 test -z "$as_dir" && as_dir=.
3924 for ac_exec_ext in '' $ac_executable_extensions; do
3925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3926 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3928 break 2
3929 fi
3930 done
3931 done
3932 IFS=$as_save_IFS
3933
3934 fi
3935 fi
3936 CC=$ac_cv_prog_CC
3937 if test -n "$CC"; then
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3939 $as_echo "$CC" >&6; }
3940 else
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3942 $as_echo "no" >&6; }
3943 fi
3944
3945
3946 test -n "$CC" && break
3947 done
3948 fi
3949 if test -z "$CC"; then
3950 ac_ct_CC=$CC
3951 for ac_prog in cl.exe
3952 do
3953 # Extract the first word of "$ac_prog", so it can be a program name with args.
3954 set dummy $ac_prog; ac_word=$2
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3956 $as_echo_n "checking for $ac_word... " >&6; }
3957 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3958 $as_echo_n "(cached) " >&6
3959 else
3960 if test -n "$ac_ct_CC"; then
3961 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3962 else
3963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3964 for as_dir in $PATH
3965 do
3966 IFS=$as_save_IFS
3967 test -z "$as_dir" && as_dir=.
3968 for ac_exec_ext in '' $ac_executable_extensions; do
3969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3970 ac_cv_prog_ac_ct_CC="$ac_prog"
3971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3972 break 2
3973 fi
3974 done
3975 done
3976 IFS=$as_save_IFS
3977
3978 fi
3979 fi
3980 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3981 if test -n "$ac_ct_CC"; then
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3983 $as_echo "$ac_ct_CC" >&6; }
3984 else
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3986 $as_echo "no" >&6; }
3987 fi
3988
3989
3990 test -n "$ac_ct_CC" && break
3991 done
3992
3993 if test "x$ac_ct_CC" = x; then
3994 CC=""
3995 else
3996 case $cross_compiling:$ac_tool_warned in
3997 yes:)
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3999 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4000 ac_tool_warned=yes ;;
4001 esac
4002 CC=$ac_ct_CC
4003 fi
4004 fi
4005
4006 fi
4007
4008
4009 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4010 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4011 as_fn_error $? "no acceptable C compiler found in \$PATH
4012 See \`config.log' for more details" "$LINENO" 5; }
4013
4014 # Provide some information about the compiler.
4015 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4016 set X $ac_compile
4017 ac_compiler=$2
4018 for ac_option in --version -v -V -qversion; do
4019 { { ac_try="$ac_compiler $ac_option >&5"
4020 case "(($ac_try" in
4021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4022 *) ac_try_echo=$ac_try;;
4023 esac
4024 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4025 $as_echo "$ac_try_echo"; } >&5
4026 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4027 ac_status=$?
4028 if test -s conftest.err; then
4029 sed '10a\
4030 ... rest of stderr output deleted ...
4031 10q' conftest.err >conftest.er1
4032 cat conftest.er1 >&5
4033 fi
4034 rm -f conftest.er1 conftest.err
4035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4036 test $ac_status = 0; }
4037 done
4038
4039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4040 /* end confdefs.h. */
4041
4042 int
4043 main ()
4044 {
4045
4046 ;
4047 return 0;
4048 }
4049 _ACEOF
4050 # FIXME: Cleanup?
4051 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
4052 (eval $ac_link) 2>&5
4053 ac_status=$?
4054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4055 test $ac_status = 0; }; then :
4056 gcc_no_link=no
4057 else
4058 gcc_no_link=yes
4059 fi
4060 if test x$gcc_no_link = xyes; then
4061 # Setting cross_compile will disable run tests; it will
4062 # also disable AC_CHECK_FILE but that's generally
4063 # correct if we can't link.
4064 cross_compiling=yes
4065 EXEEXT=
4066 else
4067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4068 /* end confdefs.h. */
4069
4070 int
4071 main ()
4072 {
4073
4074 ;
4075 return 0;
4076 }
4077 _ACEOF
4078 ac_clean_files_save=$ac_clean_files
4079 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4080 # Try to create an executable without -o first, disregard a.out.
4081 # It will help us diagnose broken compilers, and finding out an intuition
4082 # of exeext.
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4084 $as_echo_n "checking whether the C compiler works... " >&6; }
4085 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4086
4087 # The possible output files:
4088 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4089
4090 ac_rmfiles=
4091 for ac_file in $ac_files
4092 do
4093 case $ac_file in
4094 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4095 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4096 esac
4097 done
4098 rm -f $ac_rmfiles
4099
4100 if { { ac_try="$ac_link_default"
4101 case "(($ac_try" in
4102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103 *) ac_try_echo=$ac_try;;
4104 esac
4105 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4106 $as_echo "$ac_try_echo"; } >&5
4107 (eval "$ac_link_default") 2>&5
4108 ac_status=$?
4109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4110 test $ac_status = 0; }; then :
4111 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4112 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4113 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4114 # so that the user can short-circuit this test for compilers unknown to
4115 # Autoconf.
4116 for ac_file in $ac_files ''
4117 do
4118 test -f "$ac_file" || continue
4119 case $ac_file in
4120 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4121 ;;
4122 [ab].out )
4123 # We found the default executable, but exeext='' is most
4124 # certainly right.
4125 break;;
4126 *.* )
4127 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4128 then :; else
4129 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4130 fi
4131 # We set ac_cv_exeext here because the later test for it is not
4132 # safe: cross compilers may not add the suffix if given an `-o'
4133 # argument, so we may need to know it at that point already.
4134 # Even if this section looks crufty: it has the advantage of
4135 # actually working.
4136 break;;
4137 * )
4138 break;;
4139 esac
4140 done
4141 test "$ac_cv_exeext" = no && ac_cv_exeext=
4142
4143 else
4144 ac_file=''
4145 fi
4146 if test -z "$ac_file"; then :
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4148 $as_echo "no" >&6; }
4149 $as_echo "$as_me: failed program was:" >&5
4150 sed 's/^/| /' conftest.$ac_ext >&5
4151
4152 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4154 as_fn_error 77 "C compiler cannot create executables
4155 See \`config.log' for more details" "$LINENO" 5; }
4156 else
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4158 $as_echo "yes" >&6; }
4159 fi
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4161 $as_echo_n "checking for C compiler default output file name... " >&6; }
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4163 $as_echo "$ac_file" >&6; }
4164 ac_exeext=$ac_cv_exeext
4165
4166 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4167 ac_clean_files=$ac_clean_files_save
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4169 $as_echo_n "checking for suffix of executables... " >&6; }
4170 if { { ac_try="$ac_link"
4171 case "(($ac_try" in
4172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4173 *) ac_try_echo=$ac_try;;
4174 esac
4175 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4176 $as_echo "$ac_try_echo"; } >&5
4177 (eval "$ac_link") 2>&5
4178 ac_status=$?
4179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4180 test $ac_status = 0; }; then :
4181 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4182 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4183 # work properly (i.e., refer to `conftest.exe'), while it won't with
4184 # `rm'.
4185 for ac_file in conftest.exe conftest conftest.*; do
4186 test -f "$ac_file" || continue
4187 case $ac_file in
4188 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4189 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4190 break;;
4191 * ) break;;
4192 esac
4193 done
4194 else
4195 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4196 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4197 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4198 See \`config.log' for more details" "$LINENO" 5; }
4199 fi
4200 rm -f conftest conftest$ac_cv_exeext
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4202 $as_echo "$ac_cv_exeext" >&6; }
4203
4204 rm -f conftest.$ac_ext
4205 EXEEXT=$ac_cv_exeext
4206 ac_exeext=$EXEEXT
4207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208 /* end confdefs.h. */
4209 #include <stdio.h>
4210 int
4211 main ()
4212 {
4213 FILE *f = fopen ("conftest.out", "w");
4214 return ferror (f) || fclose (f) != 0;
4215
4216 ;
4217 return 0;
4218 }
4219 _ACEOF
4220 ac_clean_files="$ac_clean_files conftest.out"
4221 # Check that the compiler produces executables we can run. If not, either
4222 # the compiler is broken, or we cross compile.
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4224 $as_echo_n "checking whether we are cross compiling... " >&6; }
4225 if test "$cross_compiling" != yes; then
4226 { { ac_try="$ac_link"
4227 case "(($ac_try" in
4228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229 *) ac_try_echo=$ac_try;;
4230 esac
4231 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4232 $as_echo "$ac_try_echo"; } >&5
4233 (eval "$ac_link") 2>&5
4234 ac_status=$?
4235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4236 test $ac_status = 0; }
4237 if { ac_try='./conftest$ac_cv_exeext'
4238 { { case "(($ac_try" in
4239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4240 *) ac_try_echo=$ac_try;;
4241 esac
4242 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4243 $as_echo "$ac_try_echo"; } >&5
4244 (eval "$ac_try") 2>&5
4245 ac_status=$?
4246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4247 test $ac_status = 0; }; }; then
4248 cross_compiling=no
4249 else
4250 if test "$cross_compiling" = maybe; then
4251 cross_compiling=yes
4252 else
4253 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4254 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4255 as_fn_error $? "cannot run C compiled programs.
4256 If you meant to cross compile, use \`--host'.
4257 See \`config.log' for more details" "$LINENO" 5; }
4258 fi
4259 fi
4260 fi
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4262 $as_echo "$cross_compiling" >&6; }
4263
4264 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4265 ac_clean_files=$ac_clean_files_save
4266 fi
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4268 $as_echo_n "checking for suffix of object files... " >&6; }
4269 if ${ac_cv_objext+:} false; then :
4270 $as_echo_n "(cached) " >&6
4271 else
4272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4273 /* end confdefs.h. */
4274
4275 int
4276 main ()
4277 {
4278
4279 ;
4280 return 0;
4281 }
4282 _ACEOF
4283 rm -f conftest.o conftest.obj
4284 if { { ac_try="$ac_compile"
4285 case "(($ac_try" in
4286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4287 *) ac_try_echo=$ac_try;;
4288 esac
4289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4290 $as_echo "$ac_try_echo"; } >&5
4291 (eval "$ac_compile") 2>&5
4292 ac_status=$?
4293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4294 test $ac_status = 0; }; then :
4295 for ac_file in conftest.o conftest.obj conftest.*; do
4296 test -f "$ac_file" || continue;
4297 case $ac_file in
4298 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4299 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4300 break;;
4301 esac
4302 done
4303 else
4304 $as_echo "$as_me: failed program was:" >&5
4305 sed 's/^/| /' conftest.$ac_ext >&5
4306
4307 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4309 as_fn_error $? "cannot compute suffix of object files: cannot compile
4310 See \`config.log' for more details" "$LINENO" 5; }
4311 fi
4312 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4313 fi
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4315 $as_echo "$ac_cv_objext" >&6; }
4316 OBJEXT=$ac_cv_objext
4317 ac_objext=$OBJEXT
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4319 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4320 if ${ac_cv_c_compiler_gnu+:} false; then :
4321 $as_echo_n "(cached) " >&6
4322 else
4323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4324 /* end confdefs.h. */
4325
4326 int
4327 main ()
4328 {
4329 #ifndef __GNUC__
4330 choke me
4331 #endif
4332
4333 ;
4334 return 0;
4335 }
4336 _ACEOF
4337 if ac_fn_c_try_compile "$LINENO"; then :
4338 ac_compiler_gnu=yes
4339 else
4340 ac_compiler_gnu=no
4341 fi
4342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4343 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4344
4345 fi
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4347 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4348 if test $ac_compiler_gnu = yes; then
4349 GCC=yes
4350 else
4351 GCC=
4352 fi
4353 ac_test_CFLAGS=${CFLAGS+set}
4354 ac_save_CFLAGS=$CFLAGS
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4356 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4357 if ${ac_cv_prog_cc_g+:} false; then :
4358 $as_echo_n "(cached) " >&6
4359 else
4360 ac_save_c_werror_flag=$ac_c_werror_flag
4361 ac_c_werror_flag=yes
4362 ac_cv_prog_cc_g=no
4363 CFLAGS="-g"
4364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4365 /* end confdefs.h. */
4366
4367 int
4368 main ()
4369 {
4370
4371 ;
4372 return 0;
4373 }
4374 _ACEOF
4375 if ac_fn_c_try_compile "$LINENO"; then :
4376 ac_cv_prog_cc_g=yes
4377 else
4378 CFLAGS=""
4379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4380 /* end confdefs.h. */
4381
4382 int
4383 main ()
4384 {
4385
4386 ;
4387 return 0;
4388 }
4389 _ACEOF
4390 if ac_fn_c_try_compile "$LINENO"; then :
4391
4392 else
4393 ac_c_werror_flag=$ac_save_c_werror_flag
4394 CFLAGS="-g"
4395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4396 /* end confdefs.h. */
4397
4398 int
4399 main ()
4400 {
4401
4402 ;
4403 return 0;
4404 }
4405 _ACEOF
4406 if ac_fn_c_try_compile "$LINENO"; then :
4407 ac_cv_prog_cc_g=yes
4408 fi
4409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4410 fi
4411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4412 fi
4413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4414 ac_c_werror_flag=$ac_save_c_werror_flag
4415 fi
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4417 $as_echo "$ac_cv_prog_cc_g" >&6; }
4418 if test "$ac_test_CFLAGS" = set; then
4419 CFLAGS=$ac_save_CFLAGS
4420 elif test $ac_cv_prog_cc_g = yes; then
4421 if test "$GCC" = yes; then
4422 CFLAGS="-g -O2"
4423 else
4424 CFLAGS="-g"
4425 fi
4426 else
4427 if test "$GCC" = yes; then
4428 CFLAGS="-O2"
4429 else
4430 CFLAGS=
4431 fi
4432 fi
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4434 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4435 if ${ac_cv_prog_cc_c89+:} false; then :
4436 $as_echo_n "(cached) " >&6
4437 else
4438 ac_cv_prog_cc_c89=no
4439 ac_save_CC=$CC
4440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4441 /* end confdefs.h. */
4442 #include <stdarg.h>
4443 #include <stdio.h>
4444 struct stat;
4445 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4446 struct buf { int x; };
4447 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4448 static char *e (p, i)
4449 char **p;
4450 int i;
4451 {
4452 return p[i];
4453 }
4454 static char *f (char * (*g) (char **, int), char **p, ...)
4455 {
4456 char *s;
4457 va_list v;
4458 va_start (v,p);
4459 s = g (p, va_arg (v,int));
4460 va_end (v);
4461 return s;
4462 }
4463
4464 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4465 function prototypes and stuff, but not '\xHH' hex character constants.
4466 These don't provoke an error unfortunately, instead are silently treated
4467 as 'x'. The following induces an error, until -std is added to get
4468 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4469 array size at least. It's necessary to write '\x00'==0 to get something
4470 that's true only with -std. */
4471 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4472
4473 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4474 inside strings and character constants. */
4475 #define FOO(x) 'x'
4476 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4477
4478 int test (int i, double x);
4479 struct s1 {int (*f) (int a);};
4480 struct s2 {int (*f) (double a);};
4481 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4482 int argc;
4483 char **argv;
4484 int
4485 main ()
4486 {
4487 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4488 ;
4489 return 0;
4490 }
4491 _ACEOF
4492 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4493 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4494 do
4495 CC="$ac_save_CC $ac_arg"
4496 if ac_fn_c_try_compile "$LINENO"; then :
4497 ac_cv_prog_cc_c89=$ac_arg
4498 fi
4499 rm -f core conftest.err conftest.$ac_objext
4500 test "x$ac_cv_prog_cc_c89" != "xno" && break
4501 done
4502 rm -f conftest.$ac_ext
4503 CC=$ac_save_CC
4504
4505 fi
4506 # AC_CACHE_VAL
4507 case "x$ac_cv_prog_cc_c89" in
4508 x)
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4510 $as_echo "none needed" >&6; } ;;
4511 xno)
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4513 $as_echo "unsupported" >&6; } ;;
4514 *)
4515 CC="$CC $ac_cv_prog_cc_c89"
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4517 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4518 esac
4519 if test "x$ac_cv_prog_cc_c89" != xno; then :
4520
4521 fi
4522
4523 ac_ext=c
4524 ac_cpp='$CPP $CPPFLAGS'
4525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4528
4529 ac_ext=c
4530 ac_cpp='$CPP $CPPFLAGS'
4531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4535 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4536 if ${am_cv_prog_cc_c_o+:} false; then :
4537 $as_echo_n "(cached) " >&6
4538 else
4539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4540 /* end confdefs.h. */
4541
4542 int
4543 main ()
4544 {
4545
4546 ;
4547 return 0;
4548 }
4549 _ACEOF
4550 # Make sure it works both with $CC and with simple cc.
4551 # Following AC_PROG_CC_C_O, we do the test twice because some
4552 # compilers refuse to overwrite an existing .o file with -o,
4553 # though they will create one.
4554 am_cv_prog_cc_c_o=yes
4555 for am_i in 1 2; do
4556 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4557 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4558 ac_status=$?
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); } \
4561 && test -f conftest2.$ac_objext; then
4562 : OK
4563 else
4564 am_cv_prog_cc_c_o=no
4565 break
4566 fi
4567 done
4568 rm -f core conftest*
4569 unset am_i
4570 fi
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4572 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4573 if test "$am_cv_prog_cc_c_o" != yes; then
4574 # Losing compiler, so override with the script.
4575 # FIXME: It is wrong to rewrite CC.
4576 # But if we don't then we get into trouble of one sort or another.
4577 # A longer-term fix would be to have automake use am__CC in this case,
4578 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4579 CC="$am_aux_dir/compile $CC"
4580 fi
4581 ac_ext=c
4582 ac_cpp='$CPP $CPPFLAGS'
4583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4586
4587
4588 depcc="$CC" am_compiler_list=
4589
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4591 $as_echo_n "checking dependency style of $depcc... " >&6; }
4592 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4593 $as_echo_n "(cached) " >&6
4594 else
4595 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4596 # We make a subdir and do the tests there. Otherwise we can end up
4597 # making bogus files that we don't know about and never remove. For
4598 # instance it was reported that on HP-UX the gcc test will end up
4599 # making a dummy file named 'D' -- because '-MD' means "put the output
4600 # in D".
4601 rm -rf conftest.dir
4602 mkdir conftest.dir
4603 # Copy depcomp to subdir because otherwise we won't find it if we're
4604 # using a relative directory.
4605 cp "$am_depcomp" conftest.dir
4606 cd conftest.dir
4607 # We will build objects and dependencies in a subdirectory because
4608 # it helps to detect inapplicable dependency modes. For instance
4609 # both Tru64's cc and ICC support -MD to output dependencies as a
4610 # side effect of compilation, but ICC will put the dependencies in
4611 # the current directory while Tru64 will put them in the object
4612 # directory.
4613 mkdir sub
4614
4615 am_cv_CC_dependencies_compiler_type=none
4616 if test "$am_compiler_list" = ""; then
4617 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4618 fi
4619 am__universal=false
4620 case " $depcc " in #(
4621 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4622 esac
4623
4624 for depmode in $am_compiler_list; do
4625 # Setup a source with many dependencies, because some compilers
4626 # like to wrap large dependency lists on column 80 (with \), and
4627 # we should not choose a depcomp mode which is confused by this.
4628 #
4629 # We need to recreate these files for each test, as the compiler may
4630 # overwrite some of them when testing with obscure command lines.
4631 # This happens at least with the AIX C compiler.
4632 : > sub/conftest.c
4633 for i in 1 2 3 4 5 6; do
4634 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4635 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4636 # Solaris 10 /bin/sh.
4637 echo '/* dummy */' > sub/conftst$i.h
4638 done
4639 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4640
4641 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4642 # mode. It turns out that the SunPro C++ compiler does not properly
4643 # handle '-M -o', and we need to detect this. Also, some Intel
4644 # versions had trouble with output in subdirs.
4645 am__obj=sub/conftest.${OBJEXT-o}
4646 am__minus_obj="-o $am__obj"
4647 case $depmode in
4648 gcc)
4649 # This depmode causes a compiler race in universal mode.
4650 test "$am__universal" = false || continue
4651 ;;
4652 nosideeffect)
4653 # After this tag, mechanisms are not by side-effect, so they'll
4654 # only be used when explicitly requested.
4655 if test "x$enable_dependency_tracking" = xyes; then
4656 continue
4657 else
4658 break
4659 fi
4660 ;;
4661 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4662 # This compiler won't grok '-c -o', but also, the minuso test has
4663 # not run yet. These depmodes are late enough in the game, and
4664 # so weak that their functioning should not be impacted.
4665 am__obj=conftest.${OBJEXT-o}
4666 am__minus_obj=
4667 ;;
4668 none) break ;;
4669 esac
4670 if depmode=$depmode \
4671 source=sub/conftest.c object=$am__obj \
4672 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4673 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4674 >/dev/null 2>conftest.err &&
4675 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4676 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4677 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4678 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4679 # icc doesn't choke on unknown options, it will just issue warnings
4680 # or remarks (even with -Werror). So we grep stderr for any message
4681 # that says an option was ignored or not supported.
4682 # When given -MP, icc 7.0 and 7.1 complain thusly:
4683 # icc: Command line warning: ignoring option '-M'; no argument required
4684 # The diagnosis changed in icc 8.0:
4685 # icc: Command line remark: option '-MP' not supported
4686 if (grep 'ignoring option' conftest.err ||
4687 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4688 am_cv_CC_dependencies_compiler_type=$depmode
4689 break
4690 fi
4691 fi
4692 done
4693
4694 cd ..
4695 rm -rf conftest.dir
4696 else
4697 am_cv_CC_dependencies_compiler_type=none
4698 fi
4699
4700 fi
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4702 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4703 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4704
4705 if
4706 test "x$enable_dependency_tracking" != xno \
4707 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4708 am__fastdepCC_TRUE=
4709 am__fastdepCC_FALSE='#'
4710 else
4711 am__fastdepCC_TRUE='#'
4712 am__fastdepCC_FALSE=
4713 fi
4714
4715
4716
4717 ac_ext=c
4718 ac_cpp='$CPP $CPPFLAGS'
4719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4723 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4724 # On Suns, sometimes $CPP names a directory.
4725 if test -n "$CPP" && test -d "$CPP"; then
4726 CPP=
4727 fi
4728 if test -z "$CPP"; then
4729 if ${ac_cv_prog_CPP+:} false; then :
4730 $as_echo_n "(cached) " >&6
4731 else
4732 # Double quotes because CPP needs to be expanded
4733 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4734 do
4735 ac_preproc_ok=false
4736 for ac_c_preproc_warn_flag in '' yes
4737 do
4738 # Use a header file that comes with gcc, so configuring glibc
4739 # with a fresh cross-compiler works.
4740 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4741 # <limits.h> exists even on freestanding compilers.
4742 # On the NeXT, cc -E runs the code through the compiler's parser,
4743 # not just through cpp. "Syntax error" is here to catch this case.
4744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4745 /* end confdefs.h. */
4746 #ifdef __STDC__
4747 # include <limits.h>
4748 #else
4749 # include <assert.h>
4750 #endif
4751 Syntax error
4752 _ACEOF
4753 if ac_fn_c_try_cpp "$LINENO"; then :
4754
4755 else
4756 # Broken: fails on valid input.
4757 continue
4758 fi
4759 rm -f conftest.err conftest.i conftest.$ac_ext
4760
4761 # OK, works on sane cases. Now check whether nonexistent headers
4762 # can be detected and how.
4763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4764 /* end confdefs.h. */
4765 #include <ac_nonexistent.h>
4766 _ACEOF
4767 if ac_fn_c_try_cpp "$LINENO"; then :
4768 # Broken: success on invalid input.
4769 continue
4770 else
4771 # Passes both tests.
4772 ac_preproc_ok=:
4773 break
4774 fi
4775 rm -f conftest.err conftest.i conftest.$ac_ext
4776
4777 done
4778 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4779 rm -f conftest.i conftest.err conftest.$ac_ext
4780 if $ac_preproc_ok; then :
4781 break
4782 fi
4783
4784 done
4785 ac_cv_prog_CPP=$CPP
4786
4787 fi
4788 CPP=$ac_cv_prog_CPP
4789 else
4790 ac_cv_prog_CPP=$CPP
4791 fi
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4793 $as_echo "$CPP" >&6; }
4794 ac_preproc_ok=false
4795 for ac_c_preproc_warn_flag in '' yes
4796 do
4797 # Use a header file that comes with gcc, so configuring glibc
4798 # with a fresh cross-compiler works.
4799 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4800 # <limits.h> exists even on freestanding compilers.
4801 # On the NeXT, cc -E runs the code through the compiler's parser,
4802 # not just through cpp. "Syntax error" is here to catch this case.
4803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4804 /* end confdefs.h. */
4805 #ifdef __STDC__
4806 # include <limits.h>
4807 #else
4808 # include <assert.h>
4809 #endif
4810 Syntax error
4811 _ACEOF
4812 if ac_fn_c_try_cpp "$LINENO"; then :
4813
4814 else
4815 # Broken: fails on valid input.
4816 continue
4817 fi
4818 rm -f conftest.err conftest.i conftest.$ac_ext
4819
4820 # OK, works on sane cases. Now check whether nonexistent headers
4821 # can be detected and how.
4822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4823 /* end confdefs.h. */
4824 #include <ac_nonexistent.h>
4825 _ACEOF
4826 if ac_fn_c_try_cpp "$LINENO"; then :
4827 # Broken: success on invalid input.
4828 continue
4829 else
4830 # Passes both tests.
4831 ac_preproc_ok=:
4832 break
4833 fi
4834 rm -f conftest.err conftest.i conftest.$ac_ext
4835
4836 done
4837 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4838 rm -f conftest.i conftest.err conftest.$ac_ext
4839 if $ac_preproc_ok; then :
4840
4841 else
4842 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4843 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4844 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4845 See \`config.log' for more details" "$LINENO" 5; }
4846 fi
4847
4848 ac_ext=c
4849 ac_cpp='$CPP $CPPFLAGS'
4850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4853
4854
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4856 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4857 if ${ac_cv_path_GREP+:} false; then :
4858 $as_echo_n "(cached) " >&6
4859 else
4860 if test -z "$GREP"; then
4861 ac_path_GREP_found=false
4862 # Loop through the user's path and test for each of PROGNAME-LIST
4863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4865 do
4866 IFS=$as_save_IFS
4867 test -z "$as_dir" && as_dir=.
4868 for ac_prog in grep ggrep; do
4869 for ac_exec_ext in '' $ac_executable_extensions; do
4870 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4871 as_fn_executable_p "$ac_path_GREP" || continue
4872 # Check for GNU ac_path_GREP and select it if it is found.
4873 # Check for GNU $ac_path_GREP
4874 case `"$ac_path_GREP" --version 2>&1` in
4875 *GNU*)
4876 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4877 *)
4878 ac_count=0
4879 $as_echo_n 0123456789 >"conftest.in"
4880 while :
4881 do
4882 cat "conftest.in" "conftest.in" >"conftest.tmp"
4883 mv "conftest.tmp" "conftest.in"
4884 cp "conftest.in" "conftest.nl"
4885 $as_echo 'GREP' >> "conftest.nl"
4886 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4887 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4888 as_fn_arith $ac_count + 1 && ac_count=$as_val
4889 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4890 # Best one so far, save it but keep looking for a better one
4891 ac_cv_path_GREP="$ac_path_GREP"
4892 ac_path_GREP_max=$ac_count
4893 fi
4894 # 10*(2^10) chars as input seems more than enough
4895 test $ac_count -gt 10 && break
4896 done
4897 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4898 esac
4899
4900 $ac_path_GREP_found && break 3
4901 done
4902 done
4903 done
4904 IFS=$as_save_IFS
4905 if test -z "$ac_cv_path_GREP"; then
4906 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4907 fi
4908 else
4909 ac_cv_path_GREP=$GREP
4910 fi
4911
4912 fi
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4914 $as_echo "$ac_cv_path_GREP" >&6; }
4915 GREP="$ac_cv_path_GREP"
4916
4917
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4919 $as_echo_n "checking for egrep... " >&6; }
4920 if ${ac_cv_path_EGREP+:} false; then :
4921 $as_echo_n "(cached) " >&6
4922 else
4923 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4924 then ac_cv_path_EGREP="$GREP -E"
4925 else
4926 if test -z "$EGREP"; then
4927 ac_path_EGREP_found=false
4928 # Loop through the user's path and test for each of PROGNAME-LIST
4929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4931 do
4932 IFS=$as_save_IFS
4933 test -z "$as_dir" && as_dir=.
4934 for ac_prog in egrep; do
4935 for ac_exec_ext in '' $ac_executable_extensions; do
4936 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4937 as_fn_executable_p "$ac_path_EGREP" || continue
4938 # Check for GNU ac_path_EGREP and select it if it is found.
4939 # Check for GNU $ac_path_EGREP
4940 case `"$ac_path_EGREP" --version 2>&1` in
4941 *GNU*)
4942 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4943 *)
4944 ac_count=0
4945 $as_echo_n 0123456789 >"conftest.in"
4946 while :
4947 do
4948 cat "conftest.in" "conftest.in" >"conftest.tmp"
4949 mv "conftest.tmp" "conftest.in"
4950 cp "conftest.in" "conftest.nl"
4951 $as_echo 'EGREP' >> "conftest.nl"
4952 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4953 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4954 as_fn_arith $ac_count + 1 && ac_count=$as_val
4955 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4956 # Best one so far, save it but keep looking for a better one
4957 ac_cv_path_EGREP="$ac_path_EGREP"
4958 ac_path_EGREP_max=$ac_count
4959 fi
4960 # 10*(2^10) chars as input seems more than enough
4961 test $ac_count -gt 10 && break
4962 done
4963 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4964 esac
4965
4966 $ac_path_EGREP_found && break 3
4967 done
4968 done
4969 done
4970 IFS=$as_save_IFS
4971 if test -z "$ac_cv_path_EGREP"; then
4972 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4973 fi
4974 else
4975 ac_cv_path_EGREP=$EGREP
4976 fi
4977
4978 fi
4979 fi
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4981 $as_echo "$ac_cv_path_EGREP" >&6; }
4982 EGREP="$ac_cv_path_EGREP"
4983
4984
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4986 $as_echo_n "checking for ANSI C header files... " >&6; }
4987 if ${ac_cv_header_stdc+:} false; then :
4988 $as_echo_n "(cached) " >&6
4989 else
4990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4991 /* end confdefs.h. */
4992 #include <stdlib.h>
4993 #include <stdarg.h>
4994 #include <string.h>
4995 #include <float.h>
4996
4997 int
4998 main ()
4999 {
5000
5001 ;
5002 return 0;
5003 }
5004 _ACEOF
5005 if ac_fn_c_try_compile "$LINENO"; then :
5006 ac_cv_header_stdc=yes
5007 else
5008 ac_cv_header_stdc=no
5009 fi
5010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5011
5012 if test $ac_cv_header_stdc = yes; then
5013 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5015 /* end confdefs.h. */
5016 #include <string.h>
5017
5018 _ACEOF
5019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5020 $EGREP "memchr" >/dev/null 2>&1; then :
5021
5022 else
5023 ac_cv_header_stdc=no
5024 fi
5025 rm -f conftest*
5026
5027 fi
5028
5029 if test $ac_cv_header_stdc = yes; then
5030 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5032 /* end confdefs.h. */
5033 #include <stdlib.h>
5034
5035 _ACEOF
5036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5037 $EGREP "free" >/dev/null 2>&1; then :
5038
5039 else
5040 ac_cv_header_stdc=no
5041 fi
5042 rm -f conftest*
5043
5044 fi
5045
5046 if test $ac_cv_header_stdc = yes; then
5047 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5048 if test "$cross_compiling" = yes; then :
5049 :
5050 else
5051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5052 /* end confdefs.h. */
5053 #include <ctype.h>
5054 #include <stdlib.h>
5055 #if ((' ' & 0x0FF) == 0x020)
5056 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5057 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5058 #else
5059 # define ISLOWER(c) \
5060 (('a' <= (c) && (c) <= 'i') \
5061 || ('j' <= (c) && (c) <= 'r') \
5062 || ('s' <= (c) && (c) <= 'z'))
5063 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5064 #endif
5065
5066 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5067 int
5068 main ()
5069 {
5070 int i;
5071 for (i = 0; i < 256; i++)
5072 if (XOR (islower (i), ISLOWER (i))
5073 || toupper (i) != TOUPPER (i))
5074 return 2;
5075 return 0;
5076 }
5077 _ACEOF
5078 if ac_fn_c_try_run "$LINENO"; then :
5079
5080 else
5081 ac_cv_header_stdc=no
5082 fi
5083 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5084 conftest.$ac_objext conftest.beam conftest.$ac_ext
5085 fi
5086
5087 fi
5088 fi
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5090 $as_echo "$ac_cv_header_stdc" >&6; }
5091 if test $ac_cv_header_stdc = yes; then
5092
5093 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5094
5095 fi
5096
5097 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5098 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5099 inttypes.h stdint.h unistd.h
5100 do :
5101 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5102 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5103 "
5104 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5105 cat >>confdefs.h <<_ACEOF
5106 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5107 _ACEOF
5108
5109 fi
5110
5111 done
5112
5113
5114
5115 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5116 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5117 MINIX=yes
5118 else
5119 MINIX=
5120 fi
5121
5122
5123 if test "$MINIX" = yes; then
5124
5125 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5126
5127
5128 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5129
5130
5131 $as_echo "#define _MINIX 1" >>confdefs.h
5132
5133 fi
5134
5135
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5137 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5138 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5139 $as_echo_n "(cached) " >&6
5140 else
5141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5142 /* end confdefs.h. */
5143
5144 # define __EXTENSIONS__ 1
5145 $ac_includes_default
5146 int
5147 main ()
5148 {
5149
5150 ;
5151 return 0;
5152 }
5153 _ACEOF
5154 if ac_fn_c_try_compile "$LINENO"; then :
5155 ac_cv_safe_to_define___extensions__=yes
5156 else
5157 ac_cv_safe_to_define___extensions__=no
5158 fi
5159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5160 fi
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5162 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5163 test $ac_cv_safe_to_define___extensions__ = yes &&
5164 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5165
5166 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5167
5168 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5169
5170 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5171
5172 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5173
5174
5175
5176 # Calculate toolexeclibdir
5177 # Also toolexecdir, though it's only used in toolexeclibdir
5178 case ${version_specific_libs} in
5179 yes)
5180 # Need the gcc compiler version to know where to install libraries
5181 # and header files if --enable-version-specific-runtime-libs option
5182 # is selected.
5183 toolexecdir='$(libdir)/gcc/$(target_alias)'
5184 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
5185 ;;
5186 no)
5187 if test -n "$with_cross_host" &&
5188 test x"$with_cross_host" != x"no"; then
5189 # Install a library built with a cross compiler in tooldir, not libdir.
5190 toolexecdir='$(exec_prefix)/$(target_alias)'
5191 toolexeclibdir='$(toolexecdir)/lib'
5192 else
5193 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
5194 toolexeclibdir='$(libdir)'
5195 fi
5196 multi_os_directory=`$CC -print-multi-os-directory`
5197 case $multi_os_directory in
5198 .) ;; # Avoid trailing /.
5199 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
5200 esac
5201 ;;
5202 esac
5203
5204
5205
5206 # Create a spec file, so that compile/link tests don't fail
5207 test -f libgfortran.spec || touch libgfortran.spec
5208
5209 ac_ext=c
5210 ac_cpp='$CPP $CPPFLAGS'
5211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5214
5215 # Check the compiler.
5216 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
5217 # We must force CC to /not/ be precious variables; otherwise
5218 # the wrong, non-multilib-adjusted value will be used in multilibs.
5219 # As a side effect, we have to subst CFLAGS ourselves.
5220
5221
5222
5223 ac_ext=c
5224 ac_cpp='$CPP $CPPFLAGS'
5225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5228 if test -n "$ac_tool_prefix"; then
5229 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5230 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5232 $as_echo_n "checking for $ac_word... " >&6; }
5233 if ${ac_cv_prog_CC+:} false; then :
5234 $as_echo_n "(cached) " >&6
5235 else
5236 if test -n "$CC"; then
5237 ac_cv_prog_CC="$CC" # Let the user override the test.
5238 else
5239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5240 for as_dir in $PATH
5241 do
5242 IFS=$as_save_IFS
5243 test -z "$as_dir" && as_dir=.
5244 for ac_exec_ext in '' $ac_executable_extensions; do
5245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5246 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5248 break 2
5249 fi
5250 done
5251 done
5252 IFS=$as_save_IFS
5253
5254 fi
5255 fi
5256 CC=$ac_cv_prog_CC
5257 if test -n "$CC"; then
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5259 $as_echo "$CC" >&6; }
5260 else
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5262 $as_echo "no" >&6; }
5263 fi
5264
5265
5266 fi
5267 if test -z "$ac_cv_prog_CC"; then
5268 ac_ct_CC=$CC
5269 # Extract the first word of "gcc", so it can be a program name with args.
5270 set dummy gcc; ac_word=$2
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5272 $as_echo_n "checking for $ac_word... " >&6; }
5273 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5274 $as_echo_n "(cached) " >&6
5275 else
5276 if test -n "$ac_ct_CC"; then
5277 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5278 else
5279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5280 for as_dir in $PATH
5281 do
5282 IFS=$as_save_IFS
5283 test -z "$as_dir" && as_dir=.
5284 for ac_exec_ext in '' $ac_executable_extensions; do
5285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5286 ac_cv_prog_ac_ct_CC="gcc"
5287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5288 break 2
5289 fi
5290 done
5291 done
5292 IFS=$as_save_IFS
5293
5294 fi
5295 fi
5296 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5297 if test -n "$ac_ct_CC"; then
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5299 $as_echo "$ac_ct_CC" >&6; }
5300 else
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5302 $as_echo "no" >&6; }
5303 fi
5304
5305 if test "x$ac_ct_CC" = x; then
5306 CC=""
5307 else
5308 case $cross_compiling:$ac_tool_warned in
5309 yes:)
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5311 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5312 ac_tool_warned=yes ;;
5313 esac
5314 CC=$ac_ct_CC
5315 fi
5316 else
5317 CC="$ac_cv_prog_CC"
5318 fi
5319
5320 if test -z "$CC"; then
5321 if test -n "$ac_tool_prefix"; then
5322 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5323 set dummy ${ac_tool_prefix}cc; ac_word=$2
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5325 $as_echo_n "checking for $ac_word... " >&6; }
5326 if ${ac_cv_prog_CC+:} false; then :
5327 $as_echo_n "(cached) " >&6
5328 else
5329 if test -n "$CC"; then
5330 ac_cv_prog_CC="$CC" # Let the user override the test.
5331 else
5332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5333 for as_dir in $PATH
5334 do
5335 IFS=$as_save_IFS
5336 test -z "$as_dir" && as_dir=.
5337 for ac_exec_ext in '' $ac_executable_extensions; do
5338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5339 ac_cv_prog_CC="${ac_tool_prefix}cc"
5340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5341 break 2
5342 fi
5343 done
5344 done
5345 IFS=$as_save_IFS
5346
5347 fi
5348 fi
5349 CC=$ac_cv_prog_CC
5350 if test -n "$CC"; then
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5352 $as_echo "$CC" >&6; }
5353 else
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5355 $as_echo "no" >&6; }
5356 fi
5357
5358
5359 fi
5360 fi
5361 if test -z "$CC"; then
5362 # Extract the first word of "cc", so it can be a program name with args.
5363 set dummy cc; ac_word=$2
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5365 $as_echo_n "checking for $ac_word... " >&6; }
5366 if ${ac_cv_prog_CC+:} false; then :
5367 $as_echo_n "(cached) " >&6
5368 else
5369 if test -n "$CC"; then
5370 ac_cv_prog_CC="$CC" # Let the user override the test.
5371 else
5372 ac_prog_rejected=no
5373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5374 for as_dir in $PATH
5375 do
5376 IFS=$as_save_IFS
5377 test -z "$as_dir" && as_dir=.
5378 for ac_exec_ext in '' $ac_executable_extensions; do
5379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5380 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5381 ac_prog_rejected=yes
5382 continue
5383 fi
5384 ac_cv_prog_CC="cc"
5385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5386 break 2
5387 fi
5388 done
5389 done
5390 IFS=$as_save_IFS
5391
5392 if test $ac_prog_rejected = yes; then
5393 # We found a bogon in the path, so make sure we never use it.
5394 set dummy $ac_cv_prog_CC
5395 shift
5396 if test $# != 0; then
5397 # We chose a different compiler from the bogus one.
5398 # However, it has the same basename, so the bogon will be chosen
5399 # first if we set CC to just the basename; use the full file name.
5400 shift
5401 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5402 fi
5403 fi
5404 fi
5405 fi
5406 CC=$ac_cv_prog_CC
5407 if test -n "$CC"; then
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5409 $as_echo "$CC" >&6; }
5410 else
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5412 $as_echo "no" >&6; }
5413 fi
5414
5415
5416 fi
5417 if test -z "$CC"; then
5418 if test -n "$ac_tool_prefix"; then
5419 for ac_prog in cl.exe
5420 do
5421 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5422 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5424 $as_echo_n "checking for $ac_word... " >&6; }
5425 if ${ac_cv_prog_CC+:} false; then :
5426 $as_echo_n "(cached) " >&6
5427 else
5428 if test -n "$CC"; then
5429 ac_cv_prog_CC="$CC" # Let the user override the test.
5430 else
5431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5432 for as_dir in $PATH
5433 do
5434 IFS=$as_save_IFS
5435 test -z "$as_dir" && as_dir=.
5436 for ac_exec_ext in '' $ac_executable_extensions; do
5437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5438 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5440 break 2
5441 fi
5442 done
5443 done
5444 IFS=$as_save_IFS
5445
5446 fi
5447 fi
5448 CC=$ac_cv_prog_CC
5449 if test -n "$CC"; then
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5451 $as_echo "$CC" >&6; }
5452 else
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5454 $as_echo "no" >&6; }
5455 fi
5456
5457
5458 test -n "$CC" && break
5459 done
5460 fi
5461 if test -z "$CC"; then
5462 ac_ct_CC=$CC
5463 for ac_prog in cl.exe
5464 do
5465 # Extract the first word of "$ac_prog", so it can be a program name with args.
5466 set dummy $ac_prog; ac_word=$2
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5468 $as_echo_n "checking for $ac_word... " >&6; }
5469 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5470 $as_echo_n "(cached) " >&6
5471 else
5472 if test -n "$ac_ct_CC"; then
5473 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5474 else
5475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5476 for as_dir in $PATH
5477 do
5478 IFS=$as_save_IFS
5479 test -z "$as_dir" && as_dir=.
5480 for ac_exec_ext in '' $ac_executable_extensions; do
5481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5482 ac_cv_prog_ac_ct_CC="$ac_prog"
5483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5484 break 2
5485 fi
5486 done
5487 done
5488 IFS=$as_save_IFS
5489
5490 fi
5491 fi
5492 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5493 if test -n "$ac_ct_CC"; then
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5495 $as_echo "$ac_ct_CC" >&6; }
5496 else
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5498 $as_echo "no" >&6; }
5499 fi
5500
5501
5502 test -n "$ac_ct_CC" && break
5503 done
5504
5505 if test "x$ac_ct_CC" = x; then
5506 CC=""
5507 else
5508 case $cross_compiling:$ac_tool_warned in
5509 yes:)
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5511 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5512 ac_tool_warned=yes ;;
5513 esac
5514 CC=$ac_ct_CC
5515 fi
5516 fi
5517
5518 fi
5519
5520
5521 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5522 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5523 as_fn_error $? "no acceptable C compiler found in \$PATH
5524 See \`config.log' for more details" "$LINENO" 5; }
5525
5526 # Provide some information about the compiler.
5527 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5528 set X $ac_compile
5529 ac_compiler=$2
5530 for ac_option in --version -v -V -qversion; do
5531 { { ac_try="$ac_compiler $ac_option >&5"
5532 case "(($ac_try" in
5533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5534 *) ac_try_echo=$ac_try;;
5535 esac
5536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5537 $as_echo "$ac_try_echo"; } >&5
5538 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5539 ac_status=$?
5540 if test -s conftest.err; then
5541 sed '10a\
5542 ... rest of stderr output deleted ...
5543 10q' conftest.err >conftest.er1
5544 cat conftest.er1 >&5
5545 fi
5546 rm -f conftest.er1 conftest.err
5547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5548 test $ac_status = 0; }
5549 done
5550
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5552 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5553 if ${ac_cv_c_compiler_gnu+:} false; then :
5554 $as_echo_n "(cached) " >&6
5555 else
5556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5557 /* end confdefs.h. */
5558
5559 int
5560 main ()
5561 {
5562 #ifndef __GNUC__
5563 choke me
5564 #endif
5565
5566 ;
5567 return 0;
5568 }
5569 _ACEOF
5570 if ac_fn_c_try_compile "$LINENO"; then :
5571 ac_compiler_gnu=yes
5572 else
5573 ac_compiler_gnu=no
5574 fi
5575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5576 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5577
5578 fi
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5580 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5581 if test $ac_compiler_gnu = yes; then
5582 GCC=yes
5583 else
5584 GCC=
5585 fi
5586 ac_test_CFLAGS=${CFLAGS+set}
5587 ac_save_CFLAGS=$CFLAGS
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5589 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5590 if ${ac_cv_prog_cc_g+:} false; then :
5591 $as_echo_n "(cached) " >&6
5592 else
5593 ac_save_c_werror_flag=$ac_c_werror_flag
5594 ac_c_werror_flag=yes
5595 ac_cv_prog_cc_g=no
5596 CFLAGS="-g"
5597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5598 /* end confdefs.h. */
5599
5600 int
5601 main ()
5602 {
5603
5604 ;
5605 return 0;
5606 }
5607 _ACEOF
5608 if ac_fn_c_try_compile "$LINENO"; then :
5609 ac_cv_prog_cc_g=yes
5610 else
5611 CFLAGS=""
5612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5613 /* end confdefs.h. */
5614
5615 int
5616 main ()
5617 {
5618
5619 ;
5620 return 0;
5621 }
5622 _ACEOF
5623 if ac_fn_c_try_compile "$LINENO"; then :
5624
5625 else
5626 ac_c_werror_flag=$ac_save_c_werror_flag
5627 CFLAGS="-g"
5628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5629 /* end confdefs.h. */
5630
5631 int
5632 main ()
5633 {
5634
5635 ;
5636 return 0;
5637 }
5638 _ACEOF
5639 if ac_fn_c_try_compile "$LINENO"; then :
5640 ac_cv_prog_cc_g=yes
5641 fi
5642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5643 fi
5644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5645 fi
5646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5647 ac_c_werror_flag=$ac_save_c_werror_flag
5648 fi
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5650 $as_echo "$ac_cv_prog_cc_g" >&6; }
5651 if test "$ac_test_CFLAGS" = set; then
5652 CFLAGS=$ac_save_CFLAGS
5653 elif test $ac_cv_prog_cc_g = yes; then
5654 if test "$GCC" = yes; then
5655 CFLAGS="-g -O2"
5656 else
5657 CFLAGS="-g"
5658 fi
5659 else
5660 if test "$GCC" = yes; then
5661 CFLAGS="-O2"
5662 else
5663 CFLAGS=
5664 fi
5665 fi
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5667 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5668 if ${ac_cv_prog_cc_c89+:} false; then :
5669 $as_echo_n "(cached) " >&6
5670 else
5671 ac_cv_prog_cc_c89=no
5672 ac_save_CC=$CC
5673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5674 /* end confdefs.h. */
5675 #include <stdarg.h>
5676 #include <stdio.h>
5677 struct stat;
5678 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5679 struct buf { int x; };
5680 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5681 static char *e (p, i)
5682 char **p;
5683 int i;
5684 {
5685 return p[i];
5686 }
5687 static char *f (char * (*g) (char **, int), char **p, ...)
5688 {
5689 char *s;
5690 va_list v;
5691 va_start (v,p);
5692 s = g (p, va_arg (v,int));
5693 va_end (v);
5694 return s;
5695 }
5696
5697 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5698 function prototypes and stuff, but not '\xHH' hex character constants.
5699 These don't provoke an error unfortunately, instead are silently treated
5700 as 'x'. The following induces an error, until -std is added to get
5701 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5702 array size at least. It's necessary to write '\x00'==0 to get something
5703 that's true only with -std. */
5704 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5705
5706 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5707 inside strings and character constants. */
5708 #define FOO(x) 'x'
5709 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5710
5711 int test (int i, double x);
5712 struct s1 {int (*f) (int a);};
5713 struct s2 {int (*f) (double a);};
5714 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5715 int argc;
5716 char **argv;
5717 int
5718 main ()
5719 {
5720 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5721 ;
5722 return 0;
5723 }
5724 _ACEOF
5725 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5726 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5727 do
5728 CC="$ac_save_CC $ac_arg"
5729 if ac_fn_c_try_compile "$LINENO"; then :
5730 ac_cv_prog_cc_c89=$ac_arg
5731 fi
5732 rm -f core conftest.err conftest.$ac_objext
5733 test "x$ac_cv_prog_cc_c89" != "xno" && break
5734 done
5735 rm -f conftest.$ac_ext
5736 CC=$ac_save_CC
5737
5738 fi
5739 # AC_CACHE_VAL
5740 case "x$ac_cv_prog_cc_c89" in
5741 x)
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5743 $as_echo "none needed" >&6; } ;;
5744 xno)
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5746 $as_echo "unsupported" >&6; } ;;
5747 *)
5748 CC="$CC $ac_cv_prog_cc_c89"
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5750 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5751 esac
5752 if test "x$ac_cv_prog_cc_c89" != xno; then :
5753
5754 fi
5755
5756 ac_ext=c
5757 ac_cpp='$CPP $CPPFLAGS'
5758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5761
5762 ac_ext=c
5763 ac_cpp='$CPP $CPPFLAGS'
5764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5768 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5769 if ${am_cv_prog_cc_c_o+:} false; then :
5770 $as_echo_n "(cached) " >&6
5771 else
5772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5773 /* end confdefs.h. */
5774
5775 int
5776 main ()
5777 {
5778
5779 ;
5780 return 0;
5781 }
5782 _ACEOF
5783 # Make sure it works both with $CC and with simple cc.
5784 # Following AC_PROG_CC_C_O, we do the test twice because some
5785 # compilers refuse to overwrite an existing .o file with -o,
5786 # though they will create one.
5787 am_cv_prog_cc_c_o=yes
5788 for am_i in 1 2; do
5789 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5790 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5791 ac_status=$?
5792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 (exit $ac_status); } \
5794 && test -f conftest2.$ac_objext; then
5795 : OK
5796 else
5797 am_cv_prog_cc_c_o=no
5798 break
5799 fi
5800 done
5801 rm -f core conftest*
5802 unset am_i
5803 fi
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5805 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5806 if test "$am_cv_prog_cc_c_o" != yes; then
5807 # Losing compiler, so override with the script.
5808 # FIXME: It is wrong to rewrite CC.
5809 # But if we don't then we get into trouble of one sort or another.
5810 # A longer-term fix would be to have automake use am__CC in this case,
5811 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5812 CC="$am_aux_dir/compile $CC"
5813 fi
5814 ac_ext=c
5815 ac_cpp='$CPP $CPPFLAGS'
5816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5819
5820
5821 depcc="$CC" am_compiler_list=
5822
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5824 $as_echo_n "checking dependency style of $depcc... " >&6; }
5825 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5826 $as_echo_n "(cached) " >&6
5827 else
5828 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5829 # We make a subdir and do the tests there. Otherwise we can end up
5830 # making bogus files that we don't know about and never remove. For
5831 # instance it was reported that on HP-UX the gcc test will end up
5832 # making a dummy file named 'D' -- because '-MD' means "put the output
5833 # in D".
5834 rm -rf conftest.dir
5835 mkdir conftest.dir
5836 # Copy depcomp to subdir because otherwise we won't find it if we're
5837 # using a relative directory.
5838 cp "$am_depcomp" conftest.dir
5839 cd conftest.dir
5840 # We will build objects and dependencies in a subdirectory because
5841 # it helps to detect inapplicable dependency modes. For instance
5842 # both Tru64's cc and ICC support -MD to output dependencies as a
5843 # side effect of compilation, but ICC will put the dependencies in
5844 # the current directory while Tru64 will put them in the object
5845 # directory.
5846 mkdir sub
5847
5848 am_cv_CC_dependencies_compiler_type=none
5849 if test "$am_compiler_list" = ""; then
5850 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5851 fi
5852 am__universal=false
5853 case " $depcc " in #(
5854 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5855 esac
5856
5857 for depmode in $am_compiler_list; do
5858 # Setup a source with many dependencies, because some compilers
5859 # like to wrap large dependency lists on column 80 (with \), and
5860 # we should not choose a depcomp mode which is confused by this.
5861 #
5862 # We need to recreate these files for each test, as the compiler may
5863 # overwrite some of them when testing with obscure command lines.
5864 # This happens at least with the AIX C compiler.
5865 : > sub/conftest.c
5866 for i in 1 2 3 4 5 6; do
5867 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5868 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5869 # Solaris 10 /bin/sh.
5870 echo '/* dummy */' > sub/conftst$i.h
5871 done
5872 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5873
5874 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5875 # mode. It turns out that the SunPro C++ compiler does not properly
5876 # handle '-M -o', and we need to detect this. Also, some Intel
5877 # versions had trouble with output in subdirs.
5878 am__obj=sub/conftest.${OBJEXT-o}
5879 am__minus_obj="-o $am__obj"
5880 case $depmode in
5881 gcc)
5882 # This depmode causes a compiler race in universal mode.
5883 test "$am__universal" = false || continue
5884 ;;
5885 nosideeffect)
5886 # After this tag, mechanisms are not by side-effect, so they'll
5887 # only be used when explicitly requested.
5888 if test "x$enable_dependency_tracking" = xyes; then
5889 continue
5890 else
5891 break
5892 fi
5893 ;;
5894 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5895 # This compiler won't grok '-c -o', but also, the minuso test has
5896 # not run yet. These depmodes are late enough in the game, and
5897 # so weak that their functioning should not be impacted.
5898 am__obj=conftest.${OBJEXT-o}
5899 am__minus_obj=
5900 ;;
5901 none) break ;;
5902 esac
5903 if depmode=$depmode \
5904 source=sub/conftest.c object=$am__obj \
5905 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5906 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5907 >/dev/null 2>conftest.err &&
5908 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5909 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5910 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5911 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5912 # icc doesn't choke on unknown options, it will just issue warnings
5913 # or remarks (even with -Werror). So we grep stderr for any message
5914 # that says an option was ignored or not supported.
5915 # When given -MP, icc 7.0 and 7.1 complain thusly:
5916 # icc: Command line warning: ignoring option '-M'; no argument required
5917 # The diagnosis changed in icc 8.0:
5918 # icc: Command line remark: option '-MP' not supported
5919 if (grep 'ignoring option' conftest.err ||
5920 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5921 am_cv_CC_dependencies_compiler_type=$depmode
5922 break
5923 fi
5924 fi
5925 done
5926
5927 cd ..
5928 rm -rf conftest.dir
5929 else
5930 am_cv_CC_dependencies_compiler_type=none
5931 fi
5932
5933 fi
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5935 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5936 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5937
5938 if
5939 test "x$enable_dependency_tracking" != xno \
5940 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5941 am__fastdepCC_TRUE=
5942 am__fastdepCC_FALSE='#'
5943 else
5944 am__fastdepCC_TRUE='#'
5945 am__fastdepCC_FALSE=
5946 fi
5947
5948
5949
5950
5951
5952
5953
5954
5955 # Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC.
5956 if test "x$GCC" = "xyes"; then
5957 AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring"
5958 ## We like to use C11 and C99 routines when available. This makes
5959 ## sure that
5960 ## __STDC_VERSION__ is set such that libc includes make them available.
5961 AM_CFLAGS="-std=gnu11 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -Werror=implicit-function-declaration -Werror=vla"
5962 ## Compile the following tests with the same system header contents
5963 ## that we'll encounter when compiling our own source files.
5964 CFLAGS="-std=gnu11 $CFLAGS"
5965 fi
5966
5967 # Add CET specific flags if CET is enabled
5968 # Check whether --enable-cet was given.
5969 if test "${enable_cet+set}" = set; then :
5970 enableval=$enable_cet;
5971 case "$enableval" in
5972 yes|no|auto) ;;
5973 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
5974 esac
5975
5976 else
5977 enable_cet=no
5978 fi
5979
5980
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
5982 $as_echo_n "checking for CET support... " >&6; }
5983
5984 case "$host" in
5985 i[34567]86-*-linux* | x86_64-*-linux*)
5986 case "$enable_cet" in
5987 auto)
5988 # Check if target supports multi-byte NOPs
5989 # and if assembler supports CET insn.
5990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5991 /* end confdefs.h. */
5992
5993 int
5994 main ()
5995 {
5996
5997 #if !defined(__SSE2__)
5998 #error target does not support multi-byte NOPs
5999 #else
6000 asm ("setssbsy");
6001 #endif
6002
6003 ;
6004 return 0;
6005 }
6006 _ACEOF
6007 if ac_fn_c_try_compile "$LINENO"; then :
6008 enable_cet=yes
6009 else
6010 enable_cet=no
6011 fi
6012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6013 ;;
6014 yes)
6015 # Check if assembler supports CET.
6016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6017 /* end confdefs.h. */
6018
6019 int
6020 main ()
6021 {
6022 asm ("setssbsy");
6023 ;
6024 return 0;
6025 }
6026 _ACEOF
6027 if ac_fn_c_try_compile "$LINENO"; then :
6028
6029 else
6030 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
6031 fi
6032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6033 ;;
6034 esac
6035 ;;
6036 *)
6037 enable_cet=no
6038 ;;
6039 esac
6040 if test x$enable_cet = xyes; then
6041 CET_FLAGS="-fcf-protection -mshstk"
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6043 $as_echo "yes" >&6; }
6044 else
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6046 $as_echo "no" >&6; }
6047 fi
6048
6049 AM_FCFLAGS="$AM_FCFLAGS $CET_FLAGS"
6050 AM_CFLAGS="$AM_CFLAGS $CET_FLAGS"
6051 CFLAGS="$CFLAGS $CET_FLAGS"
6052
6053
6054
6055
6056
6057 # Check for symbol versioning (copied from libssp).
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
6059 $as_echo_n "checking whether symbol versioning is supported... " >&6; }
6060 # Check whether --enable-symvers was given.
6061 if test "${enable_symvers+set}" = set; then :
6062 enableval=$enable_symvers; gfortran_use_symver=$enableval
6063 else
6064 gfortran_use_symver=yes
6065 fi
6066
6067 if test "x$gfortran_use_symver" != xno; then
6068 save_LDFLAGS="$LDFLAGS"
6069 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
6070 cat > conftest.map <<EOF
6071 FOO_1.0 {
6072 global: *foo*; bar; local: *;
6073 };
6074 EOF
6075 if test x$gcc_no_link = xyes; then
6076 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6077 fi
6078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6079 /* end confdefs.h. */
6080 int foo;
6081 int
6082 main ()
6083 {
6084
6085 ;
6086 return 0;
6087 }
6088 _ACEOF
6089 if ac_fn_c_try_link "$LINENO"; then :
6090 gfortran_use_symver=gnu
6091 else
6092 gfortran_use_symver=no
6093 fi
6094 rm -f core conftest.err conftest.$ac_objext \
6095 conftest$ac_exeext conftest.$ac_ext
6096 if test x$gfortran_use_symver = xno; then
6097 case "$target_os" in
6098 solaris2*)
6099 LDFLAGS="$save_LDFLAGS"
6100 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
6101 # Sun ld cannot handle wildcards and treats all entries as undefined.
6102 cat > conftest.map <<EOF
6103 FOO_1.0 {
6104 global: foo; local: *;
6105 };
6106 EOF
6107 if test x$gcc_no_link = xyes; then
6108 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6109 fi
6110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6111 /* end confdefs.h. */
6112 int foo;
6113 int
6114 main ()
6115 {
6116
6117 ;
6118 return 0;
6119 }
6120 _ACEOF
6121 if ac_fn_c_try_link "$LINENO"; then :
6122 gfortran_use_symver=sun
6123 else
6124 gfortran_use_symver=no
6125 fi
6126 rm -f core conftest.err conftest.$ac_objext \
6127 conftest$ac_exeext conftest.$ac_ext
6128 ;;
6129 esac
6130 fi
6131 LDFLAGS="$save_LDFLAGS"
6132 fi
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gfortran_use_symver" >&5
6134 $as_echo "$gfortran_use_symver" >&6; }
6135 if test "x$gfortran_use_symver" != xno; then
6136 LIBGFOR_USE_SYMVER_TRUE=
6137 LIBGFOR_USE_SYMVER_FALSE='#'
6138 else
6139 LIBGFOR_USE_SYMVER_TRUE='#'
6140 LIBGFOR_USE_SYMVER_FALSE=
6141 fi
6142
6143 if test "x$gfortran_use_symver" = xgnu; then
6144 LIBGFOR_USE_SYMVER_GNU_TRUE=
6145 LIBGFOR_USE_SYMVER_GNU_FALSE='#'
6146 else
6147 LIBGFOR_USE_SYMVER_GNU_TRUE='#'
6148 LIBGFOR_USE_SYMVER_GNU_FALSE=
6149 fi
6150
6151 if test "x$gfortran_use_symver" = xsun; then
6152 LIBGFOR_USE_SYMVER_SUN_TRUE=
6153 LIBGFOR_USE_SYMVER_SUN_FALSE='#'
6154 else
6155 LIBGFOR_USE_SYMVER_SUN_TRUE='#'
6156 LIBGFOR_USE_SYMVER_SUN_FALSE=
6157 fi
6158
6159
6160 # For GPU offloading, not everything in libfortran can be supported.
6161 # Currently, the only target that has this problem is nvptx. The
6162 # following is a (partial) list of features that are unsupportable on
6163 # this particular target:
6164 # * Constructors
6165 # * alloca
6166 # * C library support for I/O, with printf as the one notable exception
6167 # * C library support for other features such as signal, environment
6168 # variables, time functions
6169
6170 if test "x${target_cpu}" = xnvptx; then
6171 LIBGFOR_MINIMAL_TRUE=
6172 LIBGFOR_MINIMAL_FALSE='#'
6173 else
6174 LIBGFOR_MINIMAL_TRUE='#'
6175 LIBGFOR_MINIMAL_FALSE=
6176 fi
6177
6178
6179 # Figure out whether the compiler supports "-ffunction-sections -fdata-sections",
6180 # similarly to how libstdc++ does it
6181 ac_test_CFLAGS="${CFLAGS+set}"
6182 ac_save_CFLAGS="$CFLAGS"
6183
6184 # Check for -ffunction-sections -fdata-sections
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc that supports -ffunction-sections -fdata-sections" >&5
6186 $as_echo_n "checking for gcc that supports -ffunction-sections -fdata-sections... " >&6; }
6187 CFLAGS='-Werror -ffunction-sections -fdata-sections'
6188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6189 /* end confdefs.h. */
6190
6191 int
6192 main ()
6193 {
6194 int foo;
6195 ;
6196 return 0;
6197 }
6198 _ACEOF
6199 if ac_fn_c_try_compile "$LINENO"; then :
6200 ac_fdsections=yes
6201 else
6202 ac_fdsections=no
6203 fi
6204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6205 if test "$ac_test_CFLAGS" = set; then
6206 CFLAGS="$ac_save_CFLAGS"
6207 else
6208 # this is the suspicious part
6209 CFLAGS=""
6210 fi
6211 if test x"$ac_fdsections" = x"yes"; then
6212 SECTION_FLAGS='-ffunction-sections -fdata-sections'
6213 fi
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
6215 $as_echo "$ac_fdsections" >&6; }
6216
6217
6218 # Check linker hardware capability support.
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6220 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6221 if ${ac_cv_path_SED+:} false; then :
6222 $as_echo_n "(cached) " >&6
6223 else
6224 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6225 for ac_i in 1 2 3 4 5 6 7; do
6226 ac_script="$ac_script$as_nl$ac_script"
6227 done
6228 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6229 { ac_script=; unset ac_script;}
6230 if test -z "$SED"; then
6231 ac_path_SED_found=false
6232 # Loop through the user's path and test for each of PROGNAME-LIST
6233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6234 for as_dir in $PATH
6235 do
6236 IFS=$as_save_IFS
6237 test -z "$as_dir" && as_dir=.
6238 for ac_prog in sed gsed; do
6239 for ac_exec_ext in '' $ac_executable_extensions; do
6240 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6241 as_fn_executable_p "$ac_path_SED" || continue
6242 # Check for GNU ac_path_SED and select it if it is found.
6243 # Check for GNU $ac_path_SED
6244 case `"$ac_path_SED" --version 2>&1` in
6245 *GNU*)
6246 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6247 *)
6248 ac_count=0
6249 $as_echo_n 0123456789 >"conftest.in"
6250 while :
6251 do
6252 cat "conftest.in" "conftest.in" >"conftest.tmp"
6253 mv "conftest.tmp" "conftest.in"
6254 cp "conftest.in" "conftest.nl"
6255 $as_echo '' >> "conftest.nl"
6256 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6257 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6258 as_fn_arith $ac_count + 1 && ac_count=$as_val
6259 if test $ac_count -gt ${ac_path_SED_max-0}; then
6260 # Best one so far, save it but keep looking for a better one
6261 ac_cv_path_SED="$ac_path_SED"
6262 ac_path_SED_max=$ac_count
6263 fi
6264 # 10*(2^10) chars as input seems more than enough
6265 test $ac_count -gt 10 && break
6266 done
6267 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6268 esac
6269
6270 $ac_path_SED_found && break 3
6271 done
6272 done
6273 done
6274 IFS=$as_save_IFS
6275 if test -z "$ac_cv_path_SED"; then
6276 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6277 fi
6278 else
6279 ac_cv_path_SED=$SED
6280 fi
6281
6282 fi
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6284 $as_echo "$ac_cv_path_SED" >&6; }
6285 SED="$ac_cv_path_SED"
6286 rm -f conftest.sed
6287
6288 test -z "$SED" && SED=sed
6289 Xsed="$SED -e 1s/^X//"
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6302 $as_echo_n "checking for fgrep... " >&6; }
6303 if ${ac_cv_path_FGREP+:} false; then :
6304 $as_echo_n "(cached) " >&6
6305 else
6306 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6307 then ac_cv_path_FGREP="$GREP -F"
6308 else
6309 if test -z "$FGREP"; then
6310 ac_path_FGREP_found=false
6311 # Loop through the user's path and test for each of PROGNAME-LIST
6312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6313 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6314 do
6315 IFS=$as_save_IFS
6316 test -z "$as_dir" && as_dir=.
6317 for ac_prog in fgrep; do
6318 for ac_exec_ext in '' $ac_executable_extensions; do
6319 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6320 as_fn_executable_p "$ac_path_FGREP" || continue
6321 # Check for GNU ac_path_FGREP and select it if it is found.
6322 # Check for GNU $ac_path_FGREP
6323 case `"$ac_path_FGREP" --version 2>&1` in
6324 *GNU*)
6325 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6326 *)
6327 ac_count=0
6328 $as_echo_n 0123456789 >"conftest.in"
6329 while :
6330 do
6331 cat "conftest.in" "conftest.in" >"conftest.tmp"
6332 mv "conftest.tmp" "conftest.in"
6333 cp "conftest.in" "conftest.nl"
6334 $as_echo 'FGREP' >> "conftest.nl"
6335 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6336 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6337 as_fn_arith $ac_count + 1 && ac_count=$as_val
6338 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6339 # Best one so far, save it but keep looking for a better one
6340 ac_cv_path_FGREP="$ac_path_FGREP"
6341 ac_path_FGREP_max=$ac_count
6342 fi
6343 # 10*(2^10) chars as input seems more than enough
6344 test $ac_count -gt 10 && break
6345 done
6346 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6347 esac
6348
6349 $ac_path_FGREP_found && break 3
6350 done
6351 done
6352 done
6353 IFS=$as_save_IFS
6354 if test -z "$ac_cv_path_FGREP"; then
6355 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6356 fi
6357 else
6358 ac_cv_path_FGREP=$FGREP
6359 fi
6360
6361 fi
6362 fi
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6364 $as_echo "$ac_cv_path_FGREP" >&6; }
6365 FGREP="$ac_cv_path_FGREP"
6366
6367
6368 test -z "$GREP" && GREP=grep
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6387 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6388 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6389
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6391 $as_echo_n "checking how to print strings... " >&6; }
6392 # Test print first, because it will be a builtin if present.
6393 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6394 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6395 ECHO='print -r --'
6396 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6397 ECHO='printf %s\n'
6398 else
6399 # Use this function as a fallback that always works.
6400 func_fallback_echo ()
6401 {
6402 eval 'cat <<_LTECHO_EOF
6403 $1
6404 _LTECHO_EOF'
6405 }
6406 ECHO='func_fallback_echo'
6407 fi
6408
6409 # func_echo_all arg...
6410 # Invoke $ECHO with all args, space-separated.
6411 func_echo_all ()
6412 {
6413 $ECHO ""
6414 }
6415
6416 case "$ECHO" in
6417 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6418 $as_echo "printf" >&6; } ;;
6419 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6420 $as_echo "print -r" >&6; } ;;
6421 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6422 $as_echo "cat" >&6; } ;;
6423 esac
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440 # Check whether --with-gnu-ld was given.
6441 if test "${with_gnu_ld+set}" = set; then :
6442 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6443 else
6444 with_gnu_ld=no
6445 fi
6446
6447 ac_prog=ld
6448 if test "$GCC" = yes; then
6449 # Check if gcc -print-prog-name=ld gives a path.
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6451 $as_echo_n "checking for ld used by $CC... " >&6; }
6452 case $host in
6453 *-*-mingw*)
6454 # gcc leaves a trailing carriage return which upsets mingw
6455 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6456 *)
6457 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6458 esac
6459 case $ac_prog in
6460 # Accept absolute paths.
6461 [\\/]* | ?:[\\/]*)
6462 re_direlt='/[^/][^/]*/\.\./'
6463 # Canonicalize the pathname of ld
6464 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6465 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6466 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6467 done
6468 test -z "$LD" && LD="$ac_prog"
6469 ;;
6470 "")
6471 # If it fails, then pretend we aren't using GCC.
6472 ac_prog=ld
6473 ;;
6474 *)
6475 # If it is relative, then search for the first ld in PATH.
6476 with_gnu_ld=unknown
6477 ;;
6478 esac
6479 elif test "$with_gnu_ld" = yes; then
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6481 $as_echo_n "checking for GNU ld... " >&6; }
6482 else
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6484 $as_echo_n "checking for non-GNU ld... " >&6; }
6485 fi
6486 if ${lt_cv_path_LD+:} false; then :
6487 $as_echo_n "(cached) " >&6
6488 else
6489 if test -z "$LD"; then
6490 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6491 for ac_dir in $PATH; do
6492 IFS="$lt_save_ifs"
6493 test -z "$ac_dir" && ac_dir=.
6494 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6495 lt_cv_path_LD="$ac_dir/$ac_prog"
6496 # Check to see if the program is GNU ld. I'd rather use --version,
6497 # but apparently some variants of GNU ld only accept -v.
6498 # Break only if it was the GNU/non-GNU ld that we prefer.
6499 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6500 *GNU* | *'with BFD'*)
6501 test "$with_gnu_ld" != no && break
6502 ;;
6503 *)
6504 test "$with_gnu_ld" != yes && break
6505 ;;
6506 esac
6507 fi
6508 done
6509 IFS="$lt_save_ifs"
6510 else
6511 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6512 fi
6513 fi
6514
6515 LD="$lt_cv_path_LD"
6516 if test -n "$LD"; then
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6518 $as_echo "$LD" >&6; }
6519 else
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6521 $as_echo "no" >&6; }
6522 fi
6523 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6525 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6526 if ${lt_cv_prog_gnu_ld+:} false; then :
6527 $as_echo_n "(cached) " >&6
6528 else
6529 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6530 case `$LD -v 2>&1 </dev/null` in
6531 *GNU* | *'with BFD'*)
6532 lt_cv_prog_gnu_ld=yes
6533 ;;
6534 *)
6535 lt_cv_prog_gnu_ld=no
6536 ;;
6537 esac
6538 fi
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6540 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6541 with_gnu_ld=$lt_cv_prog_gnu_ld
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552 test -z "$HWCAP_LDFLAGS" && HWCAP_LDFLAGS=''
6553
6554
6555 ac_save_LDFLAGS="$LDFLAGS"
6556 LDFLAGS="$LFLAGS -mclear-hwcap"
6557
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -mclear-hwcap" >&5
6559 $as_echo_n "checking for -mclear-hwcap... " >&6; }
6560 if test x$gcc_no_link = xyes; then
6561 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6562 fi
6563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6564 /* end confdefs.h. */
6565
6566 int
6567 main ()
6568 {
6569 return 0;
6570 ;
6571 return 0;
6572 }
6573 _ACEOF
6574 if ac_fn_c_try_link "$LINENO"; then :
6575 ac_hwcap_ldflags=yes
6576 else
6577 ac_hwcap_ldflags=no
6578 fi
6579 rm -f core conftest.err conftest.$ac_objext \
6580 conftest$ac_exeext conftest.$ac_ext
6581 if test "$ac_hwcap_ldflags" = "yes"; then
6582 HWCAP_LDFLAGS="-mclear-hwcap $HWCAP_LDFLAGS"
6583 fi
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_ldflags" >&5
6585 $as_echo "$ac_hwcap_ldflags" >&6; }
6586
6587 LDFLAGS="$ac_save_LDFLAGS"
6588
6589
6590
6591 if test $ac_hwcap_ldflags != no; then
6592 HAVE_HWCAP_TRUE=
6593 HAVE_HWCAP_FALSE='#'
6594 else
6595 HAVE_HWCAP_TRUE='#'
6596 HAVE_HWCAP_FALSE=
6597 fi
6598
6599
6600
6601 # Find other programs we need.
6602 if test -n "$ac_tool_prefix"; then
6603 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6604 set dummy ${ac_tool_prefix}as; ac_word=$2
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6606 $as_echo_n "checking for $ac_word... " >&6; }
6607 if ${ac_cv_prog_AS+:} false; then :
6608 $as_echo_n "(cached) " >&6
6609 else
6610 if test -n "$AS"; then
6611 ac_cv_prog_AS="$AS" # Let the user override the test.
6612 else
6613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6614 for as_dir in $PATH
6615 do
6616 IFS=$as_save_IFS
6617 test -z "$as_dir" && as_dir=.
6618 for ac_exec_ext in '' $ac_executable_extensions; do
6619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6620 ac_cv_prog_AS="${ac_tool_prefix}as"
6621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6622 break 2
6623 fi
6624 done
6625 done
6626 IFS=$as_save_IFS
6627
6628 fi
6629 fi
6630 AS=$ac_cv_prog_AS
6631 if test -n "$AS"; then
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
6633 $as_echo "$AS" >&6; }
6634 else
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6636 $as_echo "no" >&6; }
6637 fi
6638
6639
6640 fi
6641 if test -z "$ac_cv_prog_AS"; then
6642 ac_ct_AS=$AS
6643 # Extract the first word of "as", so it can be a program name with args.
6644 set dummy as; ac_word=$2
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6646 $as_echo_n "checking for $ac_word... " >&6; }
6647 if ${ac_cv_prog_ac_ct_AS+:} false; then :
6648 $as_echo_n "(cached) " >&6
6649 else
6650 if test -n "$ac_ct_AS"; then
6651 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6652 else
6653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6654 for as_dir in $PATH
6655 do
6656 IFS=$as_save_IFS
6657 test -z "$as_dir" && as_dir=.
6658 for ac_exec_ext in '' $ac_executable_extensions; do
6659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6660 ac_cv_prog_ac_ct_AS="as"
6661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6662 break 2
6663 fi
6664 done
6665 done
6666 IFS=$as_save_IFS
6667
6668 fi
6669 fi
6670 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6671 if test -n "$ac_ct_AS"; then
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
6673 $as_echo "$ac_ct_AS" >&6; }
6674 else
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6676 $as_echo "no" >&6; }
6677 fi
6678
6679 if test "x$ac_ct_AS" = x; then
6680 AS=""
6681 else
6682 case $cross_compiling:$ac_tool_warned in
6683 yes:)
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6686 ac_tool_warned=yes ;;
6687 esac
6688 AS=$ac_ct_AS
6689 fi
6690 else
6691 AS="$ac_cv_prog_AS"
6692 fi
6693
6694 if test -n "$ac_tool_prefix"; then
6695 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6696 set dummy ${ac_tool_prefix}ar; ac_word=$2
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6698 $as_echo_n "checking for $ac_word... " >&6; }
6699 if ${ac_cv_prog_AR+:} false; then :
6700 $as_echo_n "(cached) " >&6
6701 else
6702 if test -n "$AR"; then
6703 ac_cv_prog_AR="$AR" # Let the user override the test.
6704 else
6705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6706 for as_dir in $PATH
6707 do
6708 IFS=$as_save_IFS
6709 test -z "$as_dir" && as_dir=.
6710 for ac_exec_ext in '' $ac_executable_extensions; do
6711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6712 ac_cv_prog_AR="${ac_tool_prefix}ar"
6713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6714 break 2
6715 fi
6716 done
6717 done
6718 IFS=$as_save_IFS
6719
6720 fi
6721 fi
6722 AR=$ac_cv_prog_AR
6723 if test -n "$AR"; then
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6725 $as_echo "$AR" >&6; }
6726 else
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6728 $as_echo "no" >&6; }
6729 fi
6730
6731
6732 fi
6733 if test -z "$ac_cv_prog_AR"; then
6734 ac_ct_AR=$AR
6735 # Extract the first word of "ar", so it can be a program name with args.
6736 set dummy ar; ac_word=$2
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6738 $as_echo_n "checking for $ac_word... " >&6; }
6739 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6740 $as_echo_n "(cached) " >&6
6741 else
6742 if test -n "$ac_ct_AR"; then
6743 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6744 else
6745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6746 for as_dir in $PATH
6747 do
6748 IFS=$as_save_IFS
6749 test -z "$as_dir" && as_dir=.
6750 for ac_exec_ext in '' $ac_executable_extensions; do
6751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6752 ac_cv_prog_ac_ct_AR="ar"
6753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6754 break 2
6755 fi
6756 done
6757 done
6758 IFS=$as_save_IFS
6759
6760 fi
6761 fi
6762 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6763 if test -n "$ac_ct_AR"; then
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6765 $as_echo "$ac_ct_AR" >&6; }
6766 else
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6768 $as_echo "no" >&6; }
6769 fi
6770
6771 if test "x$ac_ct_AR" = x; then
6772 AR=""
6773 else
6774 case $cross_compiling:$ac_tool_warned in
6775 yes:)
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6778 ac_tool_warned=yes ;;
6779 esac
6780 AR=$ac_ct_AR
6781 fi
6782 else
6783 AR="$ac_cv_prog_AR"
6784 fi
6785
6786 if test -n "$ac_tool_prefix"; then
6787 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6788 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6790 $as_echo_n "checking for $ac_word... " >&6; }
6791 if ${ac_cv_prog_RANLIB+:} false; then :
6792 $as_echo_n "(cached) " >&6
6793 else
6794 if test -n "$RANLIB"; then
6795 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6796 else
6797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798 for as_dir in $PATH
6799 do
6800 IFS=$as_save_IFS
6801 test -z "$as_dir" && as_dir=.
6802 for ac_exec_ext in '' $ac_executable_extensions; do
6803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6804 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6806 break 2
6807 fi
6808 done
6809 done
6810 IFS=$as_save_IFS
6811
6812 fi
6813 fi
6814 RANLIB=$ac_cv_prog_RANLIB
6815 if test -n "$RANLIB"; then
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6817 $as_echo "$RANLIB" >&6; }
6818 else
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6820 $as_echo "no" >&6; }
6821 fi
6822
6823
6824 fi
6825 if test -z "$ac_cv_prog_RANLIB"; then
6826 ac_ct_RANLIB=$RANLIB
6827 # Extract the first word of "ranlib", so it can be a program name with args.
6828 set dummy ranlib; ac_word=$2
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6830 $as_echo_n "checking for $ac_word... " >&6; }
6831 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6832 $as_echo_n "(cached) " >&6
6833 else
6834 if test -n "$ac_ct_RANLIB"; then
6835 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6836 else
6837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6838 for as_dir in $PATH
6839 do
6840 IFS=$as_save_IFS
6841 test -z "$as_dir" && as_dir=.
6842 for ac_exec_ext in '' $ac_executable_extensions; do
6843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6844 ac_cv_prog_ac_ct_RANLIB="ranlib"
6845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6846 break 2
6847 fi
6848 done
6849 done
6850 IFS=$as_save_IFS
6851
6852 fi
6853 fi
6854 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6855 if test -n "$ac_ct_RANLIB"; then
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6857 $as_echo "$ac_ct_RANLIB" >&6; }
6858 else
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6860 $as_echo "no" >&6; }
6861 fi
6862
6863 if test "x$ac_ct_RANLIB" = x; then
6864 RANLIB="ranlib-not-found-in-path-error"
6865 else
6866 case $cross_compiling:$ac_tool_warned in
6867 yes:)
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6869 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6870 ac_tool_warned=yes ;;
6871 esac
6872 RANLIB=$ac_ct_RANLIB
6873 fi
6874 else
6875 RANLIB="$ac_cv_prog_RANLIB"
6876 fi
6877
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6879 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6880 set x ${MAKE-make}
6881 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6882 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6883 $as_echo_n "(cached) " >&6
6884 else
6885 cat >conftest.make <<\_ACEOF
6886 SHELL = /bin/sh
6887 all:
6888 @echo '@@@%%%=$(MAKE)=@@@%%%'
6889 _ACEOF
6890 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6891 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6892 *@@@%%%=?*=@@@%%%*)
6893 eval ac_cv_prog_make_${ac_make}_set=yes;;
6894 *)
6895 eval ac_cv_prog_make_${ac_make}_set=no;;
6896 esac
6897 rm -f conftest.make
6898 fi
6899 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6901 $as_echo "yes" >&6; }
6902 SET_MAKE=
6903 else
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6905 $as_echo "no" >&6; }
6906 SET_MAKE="MAKE=${MAKE-make}"
6907 fi
6908
6909
6910
6911 # Configure libtool
6912 #AC_MSG_NOTICE([====== Starting libtool configuration])
6913 enable_dlopen=yes
6914
6915
6916
6917 case `pwd` in
6918 *\ * | *\ *)
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6920 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6921 esac
6922
6923
6924
6925 macro_version='2.2.7a'
6926 macro_revision='1.3134'
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940 ltmain="$ac_aux_dir/ltmain.sh"
6941
6942 # Backslashify metacharacters that are still active within
6943 # double-quoted strings.
6944 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6945
6946 # Same as above, but do not quote variable references.
6947 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6948
6949 # Sed substitution to delay expansion of an escaped shell variable in a
6950 # double_quote_subst'ed string.
6951 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6952
6953 # Sed substitution to delay expansion of an escaped single quote.
6954 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6955
6956 # Sed substitution to avoid accidental globbing in evaled expressions
6957 no_glob_subst='s/\*/\\\*/g'
6958
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6960 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6961 if ${lt_cv_path_NM+:} false; then :
6962 $as_echo_n "(cached) " >&6
6963 else
6964 if test -n "$NM"; then
6965 # Let the user override the test.
6966 lt_cv_path_NM="$NM"
6967 else
6968 lt_nm_to_check="${ac_tool_prefix}nm"
6969 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6970 lt_nm_to_check="$lt_nm_to_check nm"
6971 fi
6972 for lt_tmp_nm in $lt_nm_to_check; do
6973 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6974 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6975 IFS="$lt_save_ifs"
6976 test -z "$ac_dir" && ac_dir=.
6977 tmp_nm="$ac_dir/$lt_tmp_nm"
6978 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6979 # Check to see if the nm accepts a BSD-compat flag.
6980 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6981 # nm: unknown option "B" ignored
6982 # Tru64's nm complains that /dev/null is an invalid object file
6983 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6984 */dev/null* | *'Invalid file or object type'*)
6985 lt_cv_path_NM="$tmp_nm -B"
6986 break
6987 ;;
6988 *)
6989 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6990 */dev/null*)
6991 lt_cv_path_NM="$tmp_nm -p"
6992 break
6993 ;;
6994 *)
6995 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6996 continue # so that we can try to find one that supports BSD flags
6997 ;;
6998 esac
6999 ;;
7000 esac
7001 fi
7002 done
7003 IFS="$lt_save_ifs"
7004 done
7005 : ${lt_cv_path_NM=no}
7006 fi
7007 fi
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7009 $as_echo "$lt_cv_path_NM" >&6; }
7010 if test "$lt_cv_path_NM" != "no"; then
7011 NM="$lt_cv_path_NM"
7012 else
7013 # Didn't find any BSD compatible name lister, look for dumpbin.
7014 if test -n "$DUMPBIN"; then :
7015 # Let the user override the test.
7016 else
7017 if test -n "$ac_tool_prefix"; then
7018 for ac_prog in dumpbin "link -dump"
7019 do
7020 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7021 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7023 $as_echo_n "checking for $ac_word... " >&6; }
7024 if ${ac_cv_prog_DUMPBIN+:} false; then :
7025 $as_echo_n "(cached) " >&6
7026 else
7027 if test -n "$DUMPBIN"; then
7028 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7029 else
7030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7031 for as_dir in $PATH
7032 do
7033 IFS=$as_save_IFS
7034 test -z "$as_dir" && as_dir=.
7035 for ac_exec_ext in '' $ac_executable_extensions; do
7036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7037 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7039 break 2
7040 fi
7041 done
7042 done
7043 IFS=$as_save_IFS
7044
7045 fi
7046 fi
7047 DUMPBIN=$ac_cv_prog_DUMPBIN
7048 if test -n "$DUMPBIN"; then
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7050 $as_echo "$DUMPBIN" >&6; }
7051 else
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7053 $as_echo "no" >&6; }
7054 fi
7055
7056
7057 test -n "$DUMPBIN" && break
7058 done
7059 fi
7060 if test -z "$DUMPBIN"; then
7061 ac_ct_DUMPBIN=$DUMPBIN
7062 for ac_prog in dumpbin "link -dump"
7063 do
7064 # Extract the first word of "$ac_prog", so it can be a program name with args.
7065 set dummy $ac_prog; ac_word=$2
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7067 $as_echo_n "checking for $ac_word... " >&6; }
7068 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7069 $as_echo_n "(cached) " >&6
7070 else
7071 if test -n "$ac_ct_DUMPBIN"; then
7072 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7073 else
7074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075 for as_dir in $PATH
7076 do
7077 IFS=$as_save_IFS
7078 test -z "$as_dir" && as_dir=.
7079 for ac_exec_ext in '' $ac_executable_extensions; do
7080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7081 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7083 break 2
7084 fi
7085 done
7086 done
7087 IFS=$as_save_IFS
7088
7089 fi
7090 fi
7091 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7092 if test -n "$ac_ct_DUMPBIN"; then
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7094 $as_echo "$ac_ct_DUMPBIN" >&6; }
7095 else
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7097 $as_echo "no" >&6; }
7098 fi
7099
7100
7101 test -n "$ac_ct_DUMPBIN" && break
7102 done
7103
7104 if test "x$ac_ct_DUMPBIN" = x; then
7105 DUMPBIN=":"
7106 else
7107 case $cross_compiling:$ac_tool_warned in
7108 yes:)
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7110 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7111 ac_tool_warned=yes ;;
7112 esac
7113 DUMPBIN=$ac_ct_DUMPBIN
7114 fi
7115 fi
7116
7117 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7118 *COFF*)
7119 DUMPBIN="$DUMPBIN -symbols"
7120 ;;
7121 *)
7122 DUMPBIN=:
7123 ;;
7124 esac
7125 fi
7126
7127 if test "$DUMPBIN" != ":"; then
7128 NM="$DUMPBIN"
7129 fi
7130 fi
7131 test -z "$NM" && NM=nm
7132
7133
7134
7135
7136
7137
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7139 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7140 if ${lt_cv_nm_interface+:} false; then :
7141 $as_echo_n "(cached) " >&6
7142 else
7143 lt_cv_nm_interface="BSD nm"
7144 echo "int some_variable = 0;" > conftest.$ac_ext
7145 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7146 (eval "$ac_compile" 2>conftest.err)
7147 cat conftest.err >&5
7148 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7149 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7150 cat conftest.err >&5
7151 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7152 cat conftest.out >&5
7153 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7154 lt_cv_nm_interface="MS dumpbin"
7155 fi
7156 rm -f conftest*
7157 fi
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7159 $as_echo "$lt_cv_nm_interface" >&6; }
7160
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7162 $as_echo_n "checking whether ln -s works... " >&6; }
7163 LN_S=$as_ln_s
7164 if test "$LN_S" = "ln -s"; then
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7166 $as_echo "yes" >&6; }
7167 else
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7169 $as_echo "no, using $LN_S" >&6; }
7170 fi
7171
7172 # find the maximum length of command line arguments
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7174 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7175 if ${lt_cv_sys_max_cmd_len+:} false; then :
7176 $as_echo_n "(cached) " >&6
7177 else
7178 i=0
7179 teststring="ABCD"
7180
7181 case $build_os in
7182 msdosdjgpp*)
7183 # On DJGPP, this test can blow up pretty badly due to problems in libc
7184 # (any single argument exceeding 2000 bytes causes a buffer overrun
7185 # during glob expansion). Even if it were fixed, the result of this
7186 # check would be larger than it should be.
7187 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7188 ;;
7189
7190 gnu*)
7191 # Under GNU Hurd, this test is not required because there is
7192 # no limit to the length of command line arguments.
7193 # Libtool will interpret -1 as no limit whatsoever
7194 lt_cv_sys_max_cmd_len=-1;
7195 ;;
7196
7197 cygwin* | mingw* | cegcc*)
7198 # On Win9x/ME, this test blows up -- it succeeds, but takes
7199 # about 5 minutes as the teststring grows exponentially.
7200 # Worse, since 9x/ME are not pre-emptively multitasking,
7201 # you end up with a "frozen" computer, even though with patience
7202 # the test eventually succeeds (with a max line length of 256k).
7203 # Instead, let's just punt: use the minimum linelength reported by
7204 # all of the supported platforms: 8192 (on NT/2K/XP).
7205 lt_cv_sys_max_cmd_len=8192;
7206 ;;
7207
7208 mint*)
7209 # On MiNT this can take a long time and run out of memory.
7210 lt_cv_sys_max_cmd_len=8192;
7211 ;;
7212
7213 amigaos*)
7214 # On AmigaOS with pdksh, this test takes hours, literally.
7215 # So we just punt and use a minimum line length of 8192.
7216 lt_cv_sys_max_cmd_len=8192;
7217 ;;
7218
7219 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7220 # This has been around since 386BSD, at least. Likely further.
7221 if test -x /sbin/sysctl; then
7222 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7223 elif test -x /usr/sbin/sysctl; then
7224 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7225 else
7226 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7227 fi
7228 # And add a safety zone
7229 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7230 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7231 ;;
7232
7233 interix*)
7234 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7235 lt_cv_sys_max_cmd_len=196608
7236 ;;
7237
7238 osf*)
7239 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7240 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7241 # nice to cause kernel panics so lets avoid the loop below.
7242 # First set a reasonable default.
7243 lt_cv_sys_max_cmd_len=16384
7244 #
7245 if test -x /sbin/sysconfig; then
7246 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7247 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7248 esac
7249 fi
7250 ;;
7251 sco3.2v5*)
7252 lt_cv_sys_max_cmd_len=102400
7253 ;;
7254 sysv5* | sco5v6* | sysv4.2uw2*)
7255 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7256 if test -n "$kargmax"; then
7257 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7258 else
7259 lt_cv_sys_max_cmd_len=32768
7260 fi
7261 ;;
7262 *)
7263 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7264 if test -n "$lt_cv_sys_max_cmd_len"; then
7265 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7266 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7267 else
7268 # Make teststring a little bigger before we do anything with it.
7269 # a 1K string should be a reasonable start.
7270 for i in 1 2 3 4 5 6 7 8 ; do
7271 teststring=$teststring$teststring
7272 done
7273 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7274 # If test is not a shell built-in, we'll probably end up computing a
7275 # maximum length that is only half of the actual maximum length, but
7276 # we can't tell.
7277 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7278 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7279 test $i != 17 # 1/2 MB should be enough
7280 do
7281 i=`expr $i + 1`
7282 teststring=$teststring$teststring
7283 done
7284 # Only check the string length outside the loop.
7285 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7286 teststring=
7287 # Add a significant safety factor because C++ compilers can tack on
7288 # massive amounts of additional arguments before passing them to the
7289 # linker. It appears as though 1/2 is a usable value.
7290 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7291 fi
7292 ;;
7293 esac
7294
7295 fi
7296
7297 if test -n $lt_cv_sys_max_cmd_len ; then
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7299 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7300 else
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7302 $as_echo "none" >&6; }
7303 fi
7304 max_cmd_len=$lt_cv_sys_max_cmd_len
7305
7306
7307
7308
7309
7310
7311 : ${CP="cp -f"}
7312 : ${MV="mv -f"}
7313 : ${RM="rm -f"}
7314
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7316 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7317 # Try some XSI features
7318 xsi_shell=no
7319 ( _lt_dummy="a/b/c"
7320 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7321 = c,a/b,, \
7322 && eval 'test $(( 1 + 1 )) -eq 2 \
7323 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7324 && xsi_shell=yes
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7326 $as_echo "$xsi_shell" >&6; }
7327
7328
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7330 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7331 lt_shell_append=no
7332 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7333 >/dev/null 2>&1 \
7334 && lt_shell_append=yes
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7336 $as_echo "$lt_shell_append" >&6; }
7337
7338
7339 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7340 lt_unset=unset
7341 else
7342 lt_unset=false
7343 fi
7344
7345
7346
7347
7348
7349 # test EBCDIC or ASCII
7350 case `echo X|tr X '\101'` in
7351 A) # ASCII based system
7352 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7353 lt_SP2NL='tr \040 \012'
7354 lt_NL2SP='tr \015\012 \040\040'
7355 ;;
7356 *) # EBCDIC based system
7357 lt_SP2NL='tr \100 \n'
7358 lt_NL2SP='tr \r\n \100\100'
7359 ;;
7360 esac
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7371 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7372 if ${lt_cv_ld_reload_flag+:} false; then :
7373 $as_echo_n "(cached) " >&6
7374 else
7375 lt_cv_ld_reload_flag='-r'
7376 fi
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7378 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7379 reload_flag=$lt_cv_ld_reload_flag
7380 case $reload_flag in
7381 "" | " "*) ;;
7382 *) reload_flag=" $reload_flag" ;;
7383 esac
7384 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7385 case $host_os in
7386 darwin*)
7387 if test "$GCC" = yes; then
7388 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7389 else
7390 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7391 fi
7392 ;;
7393 esac
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403 if test -n "$ac_tool_prefix"; then
7404 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7405 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7407 $as_echo_n "checking for $ac_word... " >&6; }
7408 if ${ac_cv_prog_OBJDUMP+:} false; then :
7409 $as_echo_n "(cached) " >&6
7410 else
7411 if test -n "$OBJDUMP"; then
7412 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7413 else
7414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415 for as_dir in $PATH
7416 do
7417 IFS=$as_save_IFS
7418 test -z "$as_dir" && as_dir=.
7419 for ac_exec_ext in '' $ac_executable_extensions; do
7420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7421 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7423 break 2
7424 fi
7425 done
7426 done
7427 IFS=$as_save_IFS
7428
7429 fi
7430 fi
7431 OBJDUMP=$ac_cv_prog_OBJDUMP
7432 if test -n "$OBJDUMP"; then
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7434 $as_echo "$OBJDUMP" >&6; }
7435 else
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7437 $as_echo "no" >&6; }
7438 fi
7439
7440
7441 fi
7442 if test -z "$ac_cv_prog_OBJDUMP"; then
7443 ac_ct_OBJDUMP=$OBJDUMP
7444 # Extract the first word of "objdump", so it can be a program name with args.
7445 set dummy objdump; ac_word=$2
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7447 $as_echo_n "checking for $ac_word... " >&6; }
7448 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7449 $as_echo_n "(cached) " >&6
7450 else
7451 if test -n "$ac_ct_OBJDUMP"; then
7452 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7453 else
7454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7455 for as_dir in $PATH
7456 do
7457 IFS=$as_save_IFS
7458 test -z "$as_dir" && as_dir=.
7459 for ac_exec_ext in '' $ac_executable_extensions; do
7460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7461 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7463 break 2
7464 fi
7465 done
7466 done
7467 IFS=$as_save_IFS
7468
7469 fi
7470 fi
7471 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7472 if test -n "$ac_ct_OBJDUMP"; then
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7474 $as_echo "$ac_ct_OBJDUMP" >&6; }
7475 else
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7477 $as_echo "no" >&6; }
7478 fi
7479
7480 if test "x$ac_ct_OBJDUMP" = x; then
7481 OBJDUMP="false"
7482 else
7483 case $cross_compiling:$ac_tool_warned in
7484 yes:)
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7486 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7487 ac_tool_warned=yes ;;
7488 esac
7489 OBJDUMP=$ac_ct_OBJDUMP
7490 fi
7491 else
7492 OBJDUMP="$ac_cv_prog_OBJDUMP"
7493 fi
7494
7495 test -z "$OBJDUMP" && OBJDUMP=objdump
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7506 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7507 if ${lt_cv_deplibs_check_method+:} false; then :
7508 $as_echo_n "(cached) " >&6
7509 else
7510 lt_cv_file_magic_cmd='$MAGIC_CMD'
7511 lt_cv_file_magic_test_file=
7512 lt_cv_deplibs_check_method='unknown'
7513 # Need to set the preceding variable on all platforms that support
7514 # interlibrary dependencies.
7515 # 'none' -- dependencies not supported.
7516 # `unknown' -- same as none, but documents that we really don't know.
7517 # 'pass_all' -- all dependencies passed with no checks.
7518 # 'test_compile' -- check by making test program.
7519 # 'file_magic [[regex]]' -- check by looking for files in library path
7520 # which responds to the $file_magic_cmd with a given extended regex.
7521 # If you have `file' or equivalent on your system and you're not sure
7522 # whether `pass_all' will *always* work, you probably want this one.
7523
7524 case $host_os in
7525 aix[4-9]*)
7526 lt_cv_deplibs_check_method=pass_all
7527 ;;
7528
7529 beos*)
7530 lt_cv_deplibs_check_method=pass_all
7531 ;;
7532
7533 bsdi[45]*)
7534 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7535 lt_cv_file_magic_cmd='/usr/bin/file -L'
7536 lt_cv_file_magic_test_file=/shlib/libc.so
7537 ;;
7538
7539 cygwin*)
7540 # func_win32_libid is a shell function defined in ltmain.sh
7541 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7542 lt_cv_file_magic_cmd='func_win32_libid'
7543 ;;
7544
7545 mingw* | pw32*)
7546 # Base MSYS/MinGW do not provide the 'file' command needed by
7547 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7548 # unless we find 'file', for example because we are cross-compiling.
7549 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7550 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7551 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7552 lt_cv_file_magic_cmd='func_win32_libid'
7553 else
7554 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7555 lt_cv_file_magic_cmd='$OBJDUMP -f'
7556 fi
7557 ;;
7558
7559 cegcc*)
7560 # use the weaker test based on 'objdump'. See mingw*.
7561 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7562 lt_cv_file_magic_cmd='$OBJDUMP -f'
7563 ;;
7564
7565 darwin* | rhapsody*)
7566 lt_cv_deplibs_check_method=pass_all
7567 ;;
7568
7569 freebsd* | dragonfly*)
7570 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7571 case $host_cpu in
7572 i*86 )
7573 # Not sure whether the presence of OpenBSD here was a mistake.
7574 # Let's accept both of them until this is cleared up.
7575 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7576 lt_cv_file_magic_cmd=/usr/bin/file
7577 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7578 ;;
7579 esac
7580 else
7581 lt_cv_deplibs_check_method=pass_all
7582 fi
7583 ;;
7584
7585 gnu*)
7586 lt_cv_deplibs_check_method=pass_all
7587 ;;
7588
7589 haiku*)
7590 lt_cv_deplibs_check_method=pass_all
7591 ;;
7592
7593 hpux10.20* | hpux11*)
7594 lt_cv_file_magic_cmd=/usr/bin/file
7595 case $host_cpu in
7596 ia64*)
7597 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7598 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7599 ;;
7600 hppa*64*)
7601 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]'
7602 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7603 ;;
7604 *)
7605 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7606 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7607 ;;
7608 esac
7609 ;;
7610
7611 interix[3-9]*)
7612 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7613 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7614 ;;
7615
7616 irix5* | irix6* | nonstopux*)
7617 case $LD in
7618 *-32|*"-32 ") libmagic=32-bit;;
7619 *-n32|*"-n32 ") libmagic=N32;;
7620 *-64|*"-64 ") libmagic=64-bit;;
7621 *) libmagic=never-match;;
7622 esac
7623 lt_cv_deplibs_check_method=pass_all
7624 ;;
7625
7626 # This must be Linux ELF.
7627 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
7628 lt_cv_deplibs_check_method=pass_all
7629 ;;
7630
7631 netbsd*)
7632 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7633 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7634 else
7635 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7636 fi
7637 ;;
7638
7639 newos6*)
7640 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7641 lt_cv_file_magic_cmd=/usr/bin/file
7642 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7643 ;;
7644
7645 *nto* | *qnx*)
7646 lt_cv_deplibs_check_method=pass_all
7647 ;;
7648
7649 openbsd*)
7650 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7651 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7652 else
7653 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7654 fi
7655 ;;
7656
7657 osf3* | osf4* | osf5*)
7658 lt_cv_deplibs_check_method=pass_all
7659 ;;
7660
7661 rdos*)
7662 lt_cv_deplibs_check_method=pass_all
7663 ;;
7664
7665 solaris*)
7666 lt_cv_deplibs_check_method=pass_all
7667 ;;
7668
7669 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7670 lt_cv_deplibs_check_method=pass_all
7671 ;;
7672
7673 sysv4 | sysv4.3*)
7674 case $host_vendor in
7675 motorola)
7676 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]'
7677 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7678 ;;
7679 ncr)
7680 lt_cv_deplibs_check_method=pass_all
7681 ;;
7682 sequent)
7683 lt_cv_file_magic_cmd='/bin/file'
7684 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7685 ;;
7686 sni)
7687 lt_cv_file_magic_cmd='/bin/file'
7688 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7689 lt_cv_file_magic_test_file=/lib/libc.so
7690 ;;
7691 siemens)
7692 lt_cv_deplibs_check_method=pass_all
7693 ;;
7694 pc)
7695 lt_cv_deplibs_check_method=pass_all
7696 ;;
7697 esac
7698 ;;
7699
7700 tpf*)
7701 lt_cv_deplibs_check_method=pass_all
7702 ;;
7703 esac
7704
7705 fi
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7707 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7708 file_magic_cmd=$lt_cv_file_magic_cmd
7709 deplibs_check_method=$lt_cv_deplibs_check_method
7710 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723 if test -n "$ac_tool_prefix"; then
7724 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7725 set dummy ${ac_tool_prefix}ar; ac_word=$2
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7727 $as_echo_n "checking for $ac_word... " >&6; }
7728 if ${ac_cv_prog_AR+:} false; then :
7729 $as_echo_n "(cached) " >&6
7730 else
7731 if test -n "$AR"; then
7732 ac_cv_prog_AR="$AR" # Let the user override the test.
7733 else
7734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7735 for as_dir in $PATH
7736 do
7737 IFS=$as_save_IFS
7738 test -z "$as_dir" && as_dir=.
7739 for ac_exec_ext in '' $ac_executable_extensions; do
7740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7741 ac_cv_prog_AR="${ac_tool_prefix}ar"
7742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7743 break 2
7744 fi
7745 done
7746 done
7747 IFS=$as_save_IFS
7748
7749 fi
7750 fi
7751 AR=$ac_cv_prog_AR
7752 if test -n "$AR"; then
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7754 $as_echo "$AR" >&6; }
7755 else
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7757 $as_echo "no" >&6; }
7758 fi
7759
7760
7761 fi
7762 if test -z "$ac_cv_prog_AR"; then
7763 ac_ct_AR=$AR
7764 # Extract the first word of "ar", so it can be a program name with args.
7765 set dummy ar; ac_word=$2
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7767 $as_echo_n "checking for $ac_word... " >&6; }
7768 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7769 $as_echo_n "(cached) " >&6
7770 else
7771 if test -n "$ac_ct_AR"; then
7772 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7773 else
7774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7775 for as_dir in $PATH
7776 do
7777 IFS=$as_save_IFS
7778 test -z "$as_dir" && as_dir=.
7779 for ac_exec_ext in '' $ac_executable_extensions; do
7780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7781 ac_cv_prog_ac_ct_AR="ar"
7782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7783 break 2
7784 fi
7785 done
7786 done
7787 IFS=$as_save_IFS
7788
7789 fi
7790 fi
7791 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7792 if test -n "$ac_ct_AR"; then
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7794 $as_echo "$ac_ct_AR" >&6; }
7795 else
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7797 $as_echo "no" >&6; }
7798 fi
7799
7800 if test "x$ac_ct_AR" = x; then
7801 AR="false"
7802 else
7803 case $cross_compiling:$ac_tool_warned in
7804 yes:)
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7807 ac_tool_warned=yes ;;
7808 esac
7809 AR=$ac_ct_AR
7810 fi
7811 else
7812 AR="$ac_cv_prog_AR"
7813 fi
7814
7815 test -z "$AR" && AR=ar
7816 test -z "$AR_FLAGS" && AR_FLAGS=cru
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828 if test -n "$ac_tool_prefix"; then
7829 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7830 set dummy ${ac_tool_prefix}strip; ac_word=$2
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7832 $as_echo_n "checking for $ac_word... " >&6; }
7833 if ${ac_cv_prog_STRIP+:} false; then :
7834 $as_echo_n "(cached) " >&6
7835 else
7836 if test -n "$STRIP"; then
7837 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7838 else
7839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7840 for as_dir in $PATH
7841 do
7842 IFS=$as_save_IFS
7843 test -z "$as_dir" && as_dir=.
7844 for ac_exec_ext in '' $ac_executable_extensions; do
7845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7846 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7848 break 2
7849 fi
7850 done
7851 done
7852 IFS=$as_save_IFS
7853
7854 fi
7855 fi
7856 STRIP=$ac_cv_prog_STRIP
7857 if test -n "$STRIP"; then
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7859 $as_echo "$STRIP" >&6; }
7860 else
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7862 $as_echo "no" >&6; }
7863 fi
7864
7865
7866 fi
7867 if test -z "$ac_cv_prog_STRIP"; then
7868 ac_ct_STRIP=$STRIP
7869 # Extract the first word of "strip", so it can be a program name with args.
7870 set dummy strip; ac_word=$2
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7872 $as_echo_n "checking for $ac_word... " >&6; }
7873 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7874 $as_echo_n "(cached) " >&6
7875 else
7876 if test -n "$ac_ct_STRIP"; then
7877 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7878 else
7879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7880 for as_dir in $PATH
7881 do
7882 IFS=$as_save_IFS
7883 test -z "$as_dir" && as_dir=.
7884 for ac_exec_ext in '' $ac_executable_extensions; do
7885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7886 ac_cv_prog_ac_ct_STRIP="strip"
7887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7888 break 2
7889 fi
7890 done
7891 done
7892 IFS=$as_save_IFS
7893
7894 fi
7895 fi
7896 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7897 if test -n "$ac_ct_STRIP"; then
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7899 $as_echo "$ac_ct_STRIP" >&6; }
7900 else
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7902 $as_echo "no" >&6; }
7903 fi
7904
7905 if test "x$ac_ct_STRIP" = x; then
7906 STRIP=":"
7907 else
7908 case $cross_compiling:$ac_tool_warned in
7909 yes:)
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7911 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7912 ac_tool_warned=yes ;;
7913 esac
7914 STRIP=$ac_ct_STRIP
7915 fi
7916 else
7917 STRIP="$ac_cv_prog_STRIP"
7918 fi
7919
7920 test -z "$STRIP" && STRIP=:
7921
7922
7923
7924
7925
7926
7927 if test -n "$ac_tool_prefix"; then
7928 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7929 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7931 $as_echo_n "checking for $ac_word... " >&6; }
7932 if ${ac_cv_prog_RANLIB+:} false; then :
7933 $as_echo_n "(cached) " >&6
7934 else
7935 if test -n "$RANLIB"; then
7936 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7937 else
7938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7939 for as_dir in $PATH
7940 do
7941 IFS=$as_save_IFS
7942 test -z "$as_dir" && as_dir=.
7943 for ac_exec_ext in '' $ac_executable_extensions; do
7944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7945 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7947 break 2
7948 fi
7949 done
7950 done
7951 IFS=$as_save_IFS
7952
7953 fi
7954 fi
7955 RANLIB=$ac_cv_prog_RANLIB
7956 if test -n "$RANLIB"; then
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7958 $as_echo "$RANLIB" >&6; }
7959 else
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7961 $as_echo "no" >&6; }
7962 fi
7963
7964
7965 fi
7966 if test -z "$ac_cv_prog_RANLIB"; then
7967 ac_ct_RANLIB=$RANLIB
7968 # Extract the first word of "ranlib", so it can be a program name with args.
7969 set dummy ranlib; ac_word=$2
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7971 $as_echo_n "checking for $ac_word... " >&6; }
7972 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7973 $as_echo_n "(cached) " >&6
7974 else
7975 if test -n "$ac_ct_RANLIB"; then
7976 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7977 else
7978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7979 for as_dir in $PATH
7980 do
7981 IFS=$as_save_IFS
7982 test -z "$as_dir" && as_dir=.
7983 for ac_exec_ext in '' $ac_executable_extensions; do
7984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7985 ac_cv_prog_ac_ct_RANLIB="ranlib"
7986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7987 break 2
7988 fi
7989 done
7990 done
7991 IFS=$as_save_IFS
7992
7993 fi
7994 fi
7995 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7996 if test -n "$ac_ct_RANLIB"; then
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7998 $as_echo "$ac_ct_RANLIB" >&6; }
7999 else
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8001 $as_echo "no" >&6; }
8002 fi
8003
8004 if test "x$ac_ct_RANLIB" = x; then
8005 RANLIB=":"
8006 else
8007 case $cross_compiling:$ac_tool_warned in
8008 yes:)
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8010 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8011 ac_tool_warned=yes ;;
8012 esac
8013 RANLIB=$ac_ct_RANLIB
8014 fi
8015 else
8016 RANLIB="$ac_cv_prog_RANLIB"
8017 fi
8018
8019 test -z "$RANLIB" && RANLIB=:
8020
8021
8022
8023
8024
8025
8026 # Determine commands to create old-style static archives.
8027 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8028 old_postinstall_cmds='chmod 644 $oldlib'
8029 old_postuninstall_cmds=
8030
8031 if test -n "$RANLIB"; then
8032 case $host_os in
8033 openbsd*)
8034 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8035 ;;
8036 *)
8037 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8038 ;;
8039 esac
8040 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8041 fi
8042
8043 case $host_os in
8044 darwin*)
8045 lock_old_archive_extraction=yes ;;
8046 *)
8047 lock_old_archive_extraction=no ;;
8048 esac
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088 # If no C compiler was specified, use CC.
8089 LTCC=${LTCC-"$CC"}
8090
8091 # If no C compiler flags were specified, use CFLAGS.
8092 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8093
8094 # Allow CC to be a program name with arguments.
8095 compiler=$CC
8096
8097
8098 # Check for command to grab the raw symbol name followed by C symbol from nm.
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8100 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8101 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8102 $as_echo_n "(cached) " >&6
8103 else
8104
8105 # These are sane defaults that work on at least a few old systems.
8106 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8107
8108 # Character class describing NM global symbol codes.
8109 symcode='[BCDEGRST]'
8110
8111 # Regexp to match symbols that can be accessed directly from C.
8112 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8113
8114 # Define system-specific variables.
8115 case $host_os in
8116 aix*)
8117 symcode='[BCDT]'
8118 ;;
8119 cygwin* | mingw* | pw32* | cegcc*)
8120 symcode='[ABCDGISTW]'
8121 ;;
8122 hpux*)
8123 if test "$host_cpu" = ia64; then
8124 symcode='[ABCDEGRST]'
8125 fi
8126 ;;
8127 irix* | nonstopux*)
8128 symcode='[BCDEGRST]'
8129 ;;
8130 osf*)
8131 symcode='[BCDEGQRST]'
8132 ;;
8133 solaris*)
8134 symcode='[BDRT]'
8135 ;;
8136 sco3.2v5*)
8137 symcode='[DT]'
8138 ;;
8139 sysv4.2uw2*)
8140 symcode='[DT]'
8141 ;;
8142 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8143 symcode='[ABDT]'
8144 ;;
8145 sysv4)
8146 symcode='[DFNSTU]'
8147 ;;
8148 esac
8149
8150 # If we're using GNU nm, then use its standard symbol codes.
8151 case `$NM -V 2>&1` in
8152 *GNU* | *'with BFD'*)
8153 symcode='[ABCDGIRSTW]' ;;
8154 esac
8155
8156 # Transform an extracted symbol line into a proper C declaration.
8157 # Some systems (esp. on ia64) link data and code symbols differently,
8158 # so use this general approach.
8159 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8160
8161 # Transform an extracted symbol line into symbol name and symbol address
8162 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8163 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'"
8164
8165 # Handle CRLF in mingw tool chain
8166 opt_cr=
8167 case $build_os in
8168 mingw*)
8169 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8170 ;;
8171 esac
8172
8173 # Try without a prefix underscore, then with it.
8174 for ac_symprfx in "" "_"; do
8175
8176 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8177 symxfrm="\\1 $ac_symprfx\\2 \\2"
8178
8179 # Write the raw and C identifiers.
8180 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8181 # Fake it for dumpbin and say T for any non-static function
8182 # and D for any global variable.
8183 # Also find C++ and __fastcall symbols from MSVC++,
8184 # which start with @ or ?.
8185 lt_cv_sys_global_symbol_pipe="$AWK '"\
8186 " {last_section=section; section=\$ 3};"\
8187 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8188 " \$ 0!~/External *\|/{next};"\
8189 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8190 " {if(hide[section]) next};"\
8191 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8192 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8193 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8194 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8195 " ' prfx=^$ac_symprfx"
8196 else
8197 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8198 fi
8199
8200 # Check to see that the pipe works correctly.
8201 pipe_works=no
8202
8203 rm -f conftest*
8204 cat > conftest.$ac_ext <<_LT_EOF
8205 #ifdef __cplusplus
8206 extern "C" {
8207 #endif
8208 char nm_test_var;
8209 void nm_test_func(void);
8210 void nm_test_func(void){}
8211 #ifdef __cplusplus
8212 }
8213 #endif
8214 int main(){nm_test_var='a';nm_test_func();return(0);}
8215 _LT_EOF
8216
8217 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8218 (eval $ac_compile) 2>&5
8219 ac_status=$?
8220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8221 test $ac_status = 0; }; then
8222 # Now try to grab the symbols.
8223 nlist=conftest.nm
8224 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8225 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8226 ac_status=$?
8227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8228 test $ac_status = 0; } && test -s "$nlist"; then
8229 # Try sorting and uniquifying the output.
8230 if sort "$nlist" | uniq > "$nlist"T; then
8231 mv -f "$nlist"T "$nlist"
8232 else
8233 rm -f "$nlist"T
8234 fi
8235
8236 # Make sure that we snagged all the symbols we need.
8237 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8238 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8239 cat <<_LT_EOF > conftest.$ac_ext
8240 #ifdef __cplusplus
8241 extern "C" {
8242 #endif
8243
8244 _LT_EOF
8245 # Now generate the symbol file.
8246 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8247
8248 cat <<_LT_EOF >> conftest.$ac_ext
8249
8250 /* The mapping between symbol names and symbols. */
8251 const struct {
8252 const char *name;
8253 void *address;
8254 }
8255 lt__PROGRAM__LTX_preloaded_symbols[] =
8256 {
8257 { "@PROGRAM@", (void *) 0 },
8258 _LT_EOF
8259 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8260 cat <<\_LT_EOF >> conftest.$ac_ext
8261 {0, (void *) 0}
8262 };
8263
8264 /* This works around a problem in FreeBSD linker */
8265 #ifdef FREEBSD_WORKAROUND
8266 static const void *lt_preloaded_setup() {
8267 return lt__PROGRAM__LTX_preloaded_symbols;
8268 }
8269 #endif
8270
8271 #ifdef __cplusplus
8272 }
8273 #endif
8274 _LT_EOF
8275 # Now try linking the two files.
8276 mv conftest.$ac_objext conftstm.$ac_objext
8277 lt_save_LIBS="$LIBS"
8278 lt_save_CFLAGS="$CFLAGS"
8279 LIBS="conftstm.$ac_objext"
8280 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8281 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8282 (eval $ac_link) 2>&5
8283 ac_status=$?
8284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8285 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8286 pipe_works=yes
8287 fi
8288 LIBS="$lt_save_LIBS"
8289 CFLAGS="$lt_save_CFLAGS"
8290 else
8291 echo "cannot find nm_test_func in $nlist" >&5
8292 fi
8293 else
8294 echo "cannot find nm_test_var in $nlist" >&5
8295 fi
8296 else
8297 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8298 fi
8299 else
8300 echo "$progname: failed program was:" >&5
8301 cat conftest.$ac_ext >&5
8302 fi
8303 rm -rf conftest* conftst*
8304
8305 # Do not use the global_symbol_pipe unless it works.
8306 if test "$pipe_works" = yes; then
8307 break
8308 else
8309 lt_cv_sys_global_symbol_pipe=
8310 fi
8311 done
8312
8313 fi
8314
8315 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8316 lt_cv_sys_global_symbol_to_cdecl=
8317 fi
8318 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8320 $as_echo "failed" >&6; }
8321 else
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8323 $as_echo "ok" >&6; }
8324 fi
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347 # Check whether --enable-libtool-lock was given.
8348 if test "${enable_libtool_lock+set}" = set; then :
8349 enableval=$enable_libtool_lock;
8350 fi
8351
8352 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8353
8354 # Some flags need to be propagated to the compiler or linker for good
8355 # libtool support.
8356 case $host in
8357 ia64-*-hpux*)
8358 # Find out which ABI we are using.
8359 echo 'int i;' > conftest.$ac_ext
8360 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8361 (eval $ac_compile) 2>&5
8362 ac_status=$?
8363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8364 test $ac_status = 0; }; then
8365 case `/usr/bin/file conftest.$ac_objext` in
8366 *ELF-32*)
8367 HPUX_IA64_MODE="32"
8368 ;;
8369 *ELF-64*)
8370 HPUX_IA64_MODE="64"
8371 ;;
8372 esac
8373 fi
8374 rm -rf conftest*
8375 ;;
8376 *-*-irix6*)
8377 # Find out which ABI we are using.
8378 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8379 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8380 (eval $ac_compile) 2>&5
8381 ac_status=$?
8382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8383 test $ac_status = 0; }; then
8384 if test "$lt_cv_prog_gnu_ld" = yes; then
8385 case `/usr/bin/file conftest.$ac_objext` in
8386 *32-bit*)
8387 LD="${LD-ld} -melf32bsmip"
8388 ;;
8389 *N32*)
8390 LD="${LD-ld} -melf32bmipn32"
8391 ;;
8392 *64-bit*)
8393 LD="${LD-ld} -melf64bmip"
8394 ;;
8395 esac
8396 else
8397 case `/usr/bin/file conftest.$ac_objext` in
8398 *32-bit*)
8399 LD="${LD-ld} -32"
8400 ;;
8401 *N32*)
8402 LD="${LD-ld} -n32"
8403 ;;
8404 *64-bit*)
8405 LD="${LD-ld} -64"
8406 ;;
8407 esac
8408 fi
8409 fi
8410 rm -rf conftest*
8411 ;;
8412
8413 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8414 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8415 # Find out which ABI we are using.
8416 echo 'int i;' > conftest.$ac_ext
8417 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8418 (eval $ac_compile) 2>&5
8419 ac_status=$?
8420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8421 test $ac_status = 0; }; then
8422 case `/usr/bin/file conftest.o` in
8423 *32-bit*)
8424 case $host in
8425 x86_64-*kfreebsd*-gnu)
8426 LD="${LD-ld} -m elf_i386_fbsd"
8427 ;;
8428 x86_64-*linux*)
8429 case `/usr/bin/file conftest.o` in
8430 *x86-64*)
8431 LD="${LD-ld} -m elf32_x86_64"
8432 ;;
8433 *)
8434 LD="${LD-ld} -m elf_i386"
8435 ;;
8436 esac
8437 ;;
8438 powerpc64le-*linux*)
8439 LD="${LD-ld} -m elf32lppclinux"
8440 ;;
8441 powerpc64-*linux*)
8442 LD="${LD-ld} -m elf32ppclinux"
8443 ;;
8444 s390x-*linux*)
8445 LD="${LD-ld} -m elf_s390"
8446 ;;
8447 sparc64-*linux*)
8448 LD="${LD-ld} -m elf32_sparc"
8449 ;;
8450 esac
8451 ;;
8452 *64-bit*)
8453 case $host in
8454 x86_64-*kfreebsd*-gnu)
8455 LD="${LD-ld} -m elf_x86_64_fbsd"
8456 ;;
8457 x86_64-*linux*)
8458 LD="${LD-ld} -m elf_x86_64"
8459 ;;
8460 powerpcle-*linux*)
8461 LD="${LD-ld} -m elf64lppc"
8462 ;;
8463 powerpc-*linux*)
8464 LD="${LD-ld} -m elf64ppc"
8465 ;;
8466 s390*-*linux*|s390*-*tpf*)
8467 LD="${LD-ld} -m elf64_s390"
8468 ;;
8469 sparc*-*linux*)
8470 LD="${LD-ld} -m elf64_sparc"
8471 ;;
8472 esac
8473 ;;
8474 esac
8475 fi
8476 rm -rf conftest*
8477 ;;
8478
8479 *-*-sco3.2v5*)
8480 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8481 SAVE_CFLAGS="$CFLAGS"
8482 CFLAGS="$CFLAGS -belf"
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8484 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8485 if ${lt_cv_cc_needs_belf+:} false; then :
8486 $as_echo_n "(cached) " >&6
8487 else
8488 ac_ext=c
8489 ac_cpp='$CPP $CPPFLAGS'
8490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8493
8494 if test x$gcc_no_link = xyes; then
8495 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8496 fi
8497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8498 /* end confdefs.h. */
8499
8500 int
8501 main ()
8502 {
8503
8504 ;
8505 return 0;
8506 }
8507 _ACEOF
8508 if ac_fn_c_try_link "$LINENO"; then :
8509 lt_cv_cc_needs_belf=yes
8510 else
8511 lt_cv_cc_needs_belf=no
8512 fi
8513 rm -f core conftest.err conftest.$ac_objext \
8514 conftest$ac_exeext conftest.$ac_ext
8515 ac_ext=c
8516 ac_cpp='$CPP $CPPFLAGS'
8517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8520
8521 fi
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8523 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8524 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8525 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8526 CFLAGS="$SAVE_CFLAGS"
8527 fi
8528 ;;
8529 sparc*-*solaris*)
8530 # Find out which ABI we are using.
8531 echo 'int i;' > conftest.$ac_ext
8532 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8533 (eval $ac_compile) 2>&5
8534 ac_status=$?
8535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8536 test $ac_status = 0; }; then
8537 case `/usr/bin/file conftest.o` in
8538 *64-bit*)
8539 case $lt_cv_prog_gnu_ld in
8540 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8541 *)
8542 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8543 LD="${LD-ld} -64"
8544 fi
8545 ;;
8546 esac
8547 ;;
8548 esac
8549 fi
8550 rm -rf conftest*
8551 ;;
8552 esac
8553
8554 need_locks="$enable_libtool_lock"
8555
8556
8557 case $host_os in
8558 rhapsody* | darwin*)
8559 if test -n "$ac_tool_prefix"; then
8560 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8561 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8563 $as_echo_n "checking for $ac_word... " >&6; }
8564 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8565 $as_echo_n "(cached) " >&6
8566 else
8567 if test -n "$DSYMUTIL"; then
8568 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8569 else
8570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8571 for as_dir in $PATH
8572 do
8573 IFS=$as_save_IFS
8574 test -z "$as_dir" && as_dir=.
8575 for ac_exec_ext in '' $ac_executable_extensions; do
8576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8577 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8579 break 2
8580 fi
8581 done
8582 done
8583 IFS=$as_save_IFS
8584
8585 fi
8586 fi
8587 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8588 if test -n "$DSYMUTIL"; then
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8590 $as_echo "$DSYMUTIL" >&6; }
8591 else
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8593 $as_echo "no" >&6; }
8594 fi
8595
8596
8597 fi
8598 if test -z "$ac_cv_prog_DSYMUTIL"; then
8599 ac_ct_DSYMUTIL=$DSYMUTIL
8600 # Extract the first word of "dsymutil", so it can be a program name with args.
8601 set dummy dsymutil; ac_word=$2
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8603 $as_echo_n "checking for $ac_word... " >&6; }
8604 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8605 $as_echo_n "(cached) " >&6
8606 else
8607 if test -n "$ac_ct_DSYMUTIL"; then
8608 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8609 else
8610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8611 for as_dir in $PATH
8612 do
8613 IFS=$as_save_IFS
8614 test -z "$as_dir" && as_dir=.
8615 for ac_exec_ext in '' $ac_executable_extensions; do
8616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8617 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8619 break 2
8620 fi
8621 done
8622 done
8623 IFS=$as_save_IFS
8624
8625 fi
8626 fi
8627 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8628 if test -n "$ac_ct_DSYMUTIL"; then
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8630 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8631 else
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8633 $as_echo "no" >&6; }
8634 fi
8635
8636 if test "x$ac_ct_DSYMUTIL" = x; then
8637 DSYMUTIL=":"
8638 else
8639 case $cross_compiling:$ac_tool_warned in
8640 yes:)
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8642 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8643 ac_tool_warned=yes ;;
8644 esac
8645 DSYMUTIL=$ac_ct_DSYMUTIL
8646 fi
8647 else
8648 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8649 fi
8650
8651 if test -n "$ac_tool_prefix"; then
8652 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8653 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8655 $as_echo_n "checking for $ac_word... " >&6; }
8656 if ${ac_cv_prog_NMEDIT+:} false; then :
8657 $as_echo_n "(cached) " >&6
8658 else
8659 if test -n "$NMEDIT"; then
8660 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8661 else
8662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8663 for as_dir in $PATH
8664 do
8665 IFS=$as_save_IFS
8666 test -z "$as_dir" && as_dir=.
8667 for ac_exec_ext in '' $ac_executable_extensions; do
8668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8669 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8671 break 2
8672 fi
8673 done
8674 done
8675 IFS=$as_save_IFS
8676
8677 fi
8678 fi
8679 NMEDIT=$ac_cv_prog_NMEDIT
8680 if test -n "$NMEDIT"; then
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8682 $as_echo "$NMEDIT" >&6; }
8683 else
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8685 $as_echo "no" >&6; }
8686 fi
8687
8688
8689 fi
8690 if test -z "$ac_cv_prog_NMEDIT"; then
8691 ac_ct_NMEDIT=$NMEDIT
8692 # Extract the first word of "nmedit", so it can be a program name with args.
8693 set dummy nmedit; ac_word=$2
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8695 $as_echo_n "checking for $ac_word... " >&6; }
8696 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8697 $as_echo_n "(cached) " >&6
8698 else
8699 if test -n "$ac_ct_NMEDIT"; then
8700 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8701 else
8702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8703 for as_dir in $PATH
8704 do
8705 IFS=$as_save_IFS
8706 test -z "$as_dir" && as_dir=.
8707 for ac_exec_ext in '' $ac_executable_extensions; do
8708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8709 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8711 break 2
8712 fi
8713 done
8714 done
8715 IFS=$as_save_IFS
8716
8717 fi
8718 fi
8719 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8720 if test -n "$ac_ct_NMEDIT"; then
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8722 $as_echo "$ac_ct_NMEDIT" >&6; }
8723 else
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8725 $as_echo "no" >&6; }
8726 fi
8727
8728 if test "x$ac_ct_NMEDIT" = x; then
8729 NMEDIT=":"
8730 else
8731 case $cross_compiling:$ac_tool_warned in
8732 yes:)
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8734 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8735 ac_tool_warned=yes ;;
8736 esac
8737 NMEDIT=$ac_ct_NMEDIT
8738 fi
8739 else
8740 NMEDIT="$ac_cv_prog_NMEDIT"
8741 fi
8742
8743 if test -n "$ac_tool_prefix"; then
8744 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8745 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8747 $as_echo_n "checking for $ac_word... " >&6; }
8748 if ${ac_cv_prog_LIPO+:} false; then :
8749 $as_echo_n "(cached) " >&6
8750 else
8751 if test -n "$LIPO"; then
8752 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8753 else
8754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8755 for as_dir in $PATH
8756 do
8757 IFS=$as_save_IFS
8758 test -z "$as_dir" && as_dir=.
8759 for ac_exec_ext in '' $ac_executable_extensions; do
8760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8761 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8763 break 2
8764 fi
8765 done
8766 done
8767 IFS=$as_save_IFS
8768
8769 fi
8770 fi
8771 LIPO=$ac_cv_prog_LIPO
8772 if test -n "$LIPO"; then
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8774 $as_echo "$LIPO" >&6; }
8775 else
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8777 $as_echo "no" >&6; }
8778 fi
8779
8780
8781 fi
8782 if test -z "$ac_cv_prog_LIPO"; then
8783 ac_ct_LIPO=$LIPO
8784 # Extract the first word of "lipo", so it can be a program name with args.
8785 set dummy lipo; ac_word=$2
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8787 $as_echo_n "checking for $ac_word... " >&6; }
8788 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8789 $as_echo_n "(cached) " >&6
8790 else
8791 if test -n "$ac_ct_LIPO"; then
8792 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8793 else
8794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8795 for as_dir in $PATH
8796 do
8797 IFS=$as_save_IFS
8798 test -z "$as_dir" && as_dir=.
8799 for ac_exec_ext in '' $ac_executable_extensions; do
8800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8801 ac_cv_prog_ac_ct_LIPO="lipo"
8802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8803 break 2
8804 fi
8805 done
8806 done
8807 IFS=$as_save_IFS
8808
8809 fi
8810 fi
8811 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8812 if test -n "$ac_ct_LIPO"; then
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8814 $as_echo "$ac_ct_LIPO" >&6; }
8815 else
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8817 $as_echo "no" >&6; }
8818 fi
8819
8820 if test "x$ac_ct_LIPO" = x; then
8821 LIPO=":"
8822 else
8823 case $cross_compiling:$ac_tool_warned in
8824 yes:)
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8826 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8827 ac_tool_warned=yes ;;
8828 esac
8829 LIPO=$ac_ct_LIPO
8830 fi
8831 else
8832 LIPO="$ac_cv_prog_LIPO"
8833 fi
8834
8835 if test -n "$ac_tool_prefix"; then
8836 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8837 set dummy ${ac_tool_prefix}otool; ac_word=$2
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8839 $as_echo_n "checking for $ac_word... " >&6; }
8840 if ${ac_cv_prog_OTOOL+:} false; then :
8841 $as_echo_n "(cached) " >&6
8842 else
8843 if test -n "$OTOOL"; then
8844 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8845 else
8846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8847 for as_dir in $PATH
8848 do
8849 IFS=$as_save_IFS
8850 test -z "$as_dir" && as_dir=.
8851 for ac_exec_ext in '' $ac_executable_extensions; do
8852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8853 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8855 break 2
8856 fi
8857 done
8858 done
8859 IFS=$as_save_IFS
8860
8861 fi
8862 fi
8863 OTOOL=$ac_cv_prog_OTOOL
8864 if test -n "$OTOOL"; then
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8866 $as_echo "$OTOOL" >&6; }
8867 else
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8869 $as_echo "no" >&6; }
8870 fi
8871
8872
8873 fi
8874 if test -z "$ac_cv_prog_OTOOL"; then
8875 ac_ct_OTOOL=$OTOOL
8876 # Extract the first word of "otool", so it can be a program name with args.
8877 set dummy otool; ac_word=$2
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8879 $as_echo_n "checking for $ac_word... " >&6; }
8880 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8881 $as_echo_n "(cached) " >&6
8882 else
8883 if test -n "$ac_ct_OTOOL"; then
8884 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8885 else
8886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8887 for as_dir in $PATH
8888 do
8889 IFS=$as_save_IFS
8890 test -z "$as_dir" && as_dir=.
8891 for ac_exec_ext in '' $ac_executable_extensions; do
8892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8893 ac_cv_prog_ac_ct_OTOOL="otool"
8894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8895 break 2
8896 fi
8897 done
8898 done
8899 IFS=$as_save_IFS
8900
8901 fi
8902 fi
8903 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8904 if test -n "$ac_ct_OTOOL"; then
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8906 $as_echo "$ac_ct_OTOOL" >&6; }
8907 else
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8909 $as_echo "no" >&6; }
8910 fi
8911
8912 if test "x$ac_ct_OTOOL" = x; then
8913 OTOOL=":"
8914 else
8915 case $cross_compiling:$ac_tool_warned in
8916 yes:)
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8918 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8919 ac_tool_warned=yes ;;
8920 esac
8921 OTOOL=$ac_ct_OTOOL
8922 fi
8923 else
8924 OTOOL="$ac_cv_prog_OTOOL"
8925 fi
8926
8927 if test -n "$ac_tool_prefix"; then
8928 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8929 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8931 $as_echo_n "checking for $ac_word... " >&6; }
8932 if ${ac_cv_prog_OTOOL64+:} false; then :
8933 $as_echo_n "(cached) " >&6
8934 else
8935 if test -n "$OTOOL64"; then
8936 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8937 else
8938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8939 for as_dir in $PATH
8940 do
8941 IFS=$as_save_IFS
8942 test -z "$as_dir" && as_dir=.
8943 for ac_exec_ext in '' $ac_executable_extensions; do
8944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8945 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8947 break 2
8948 fi
8949 done
8950 done
8951 IFS=$as_save_IFS
8952
8953 fi
8954 fi
8955 OTOOL64=$ac_cv_prog_OTOOL64
8956 if test -n "$OTOOL64"; then
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8958 $as_echo "$OTOOL64" >&6; }
8959 else
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8961 $as_echo "no" >&6; }
8962 fi
8963
8964
8965 fi
8966 if test -z "$ac_cv_prog_OTOOL64"; then
8967 ac_ct_OTOOL64=$OTOOL64
8968 # Extract the first word of "otool64", so it can be a program name with args.
8969 set dummy otool64; ac_word=$2
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8971 $as_echo_n "checking for $ac_word... " >&6; }
8972 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8973 $as_echo_n "(cached) " >&6
8974 else
8975 if test -n "$ac_ct_OTOOL64"; then
8976 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8977 else
8978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8979 for as_dir in $PATH
8980 do
8981 IFS=$as_save_IFS
8982 test -z "$as_dir" && as_dir=.
8983 for ac_exec_ext in '' $ac_executable_extensions; do
8984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8985 ac_cv_prog_ac_ct_OTOOL64="otool64"
8986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8987 break 2
8988 fi
8989 done
8990 done
8991 IFS=$as_save_IFS
8992
8993 fi
8994 fi
8995 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8996 if test -n "$ac_ct_OTOOL64"; then
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8998 $as_echo "$ac_ct_OTOOL64" >&6; }
8999 else
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9001 $as_echo "no" >&6; }
9002 fi
9003
9004 if test "x$ac_ct_OTOOL64" = x; then
9005 OTOOL64=":"
9006 else
9007 case $cross_compiling:$ac_tool_warned in
9008 yes:)
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9010 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9011 ac_tool_warned=yes ;;
9012 esac
9013 OTOOL64=$ac_ct_OTOOL64
9014 fi
9015 else
9016 OTOOL64="$ac_cv_prog_OTOOL64"
9017 fi
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9046 $as_echo_n "checking for -single_module linker flag... " >&6; }
9047 if ${lt_cv_apple_cc_single_mod+:} false; then :
9048 $as_echo_n "(cached) " >&6
9049 else
9050 lt_cv_apple_cc_single_mod=no
9051 if test -z "${LT_MULTI_MODULE}"; then
9052 # By default we will add the -single_module flag. You can override
9053 # by either setting the environment variable LT_MULTI_MODULE
9054 # non-empty at configure time, or by adding -multi_module to the
9055 # link flags.
9056 rm -rf libconftest.dylib*
9057 echo "int foo(void){return 1;}" > conftest.c
9058 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9059 -dynamiclib -Wl,-single_module conftest.c" >&5
9060 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9061 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9062 _lt_result=$?
9063 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9064 lt_cv_apple_cc_single_mod=yes
9065 else
9066 cat conftest.err >&5
9067 fi
9068 rm -rf libconftest.dylib*
9069 rm -f conftest.*
9070 fi
9071 fi
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9073 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9075 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9076 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9077 $as_echo_n "(cached) " >&6
9078 else
9079 lt_cv_ld_exported_symbols_list=no
9080 save_LDFLAGS=$LDFLAGS
9081 echo "_main" > conftest.sym
9082 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9083 if test x$gcc_no_link = xyes; then
9084 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9085 fi
9086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9087 /* end confdefs.h. */
9088
9089 int
9090 main ()
9091 {
9092
9093 ;
9094 return 0;
9095 }
9096 _ACEOF
9097 if ac_fn_c_try_link "$LINENO"; then :
9098 lt_cv_ld_exported_symbols_list=yes
9099 else
9100 lt_cv_ld_exported_symbols_list=no
9101 fi
9102 rm -f core conftest.err conftest.$ac_objext \
9103 conftest$ac_exeext conftest.$ac_ext
9104 LDFLAGS="$save_LDFLAGS"
9105
9106 fi
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9108 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9110 $as_echo_n "checking for -force_load linker flag... " >&6; }
9111 if ${lt_cv_ld_force_load+:} false; then :
9112 $as_echo_n "(cached) " >&6
9113 else
9114 lt_cv_ld_force_load=no
9115 cat > conftest.c << _LT_EOF
9116 int forced_loaded() { return 2;}
9117 _LT_EOF
9118 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9119 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9120 echo "$AR cru libconftest.a conftest.o" >&5
9121 $AR cru libconftest.a conftest.o 2>&5
9122 cat > conftest.c << _LT_EOF
9123 int main() { return 0;}
9124 _LT_EOF
9125 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9126 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9127 _lt_result=$?
9128 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9129 lt_cv_ld_force_load=yes
9130 else
9131 cat conftest.err >&5
9132 fi
9133 rm -f conftest.err libconftest.a conftest conftest.c
9134 rm -rf conftest.dSYM
9135
9136 fi
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9138 $as_echo "$lt_cv_ld_force_load" >&6; }
9139 case $host_os in
9140 rhapsody* | darwin1.[012])
9141 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9142 darwin1.*)
9143 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9144 darwin*) # darwin 5.x on
9145 # if running on 10.5 or later, the deployment target defaults
9146 # to the OS version, if on x86, and 10.4, the deployment
9147 # target defaults to 10.4. Don't you love it?
9148 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9149 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9150 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9151 10.[012][,.]*)
9152 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9153 10.*)
9154 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9155 esac
9156 ;;
9157 esac
9158 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9159 _lt_dar_single_mod='$single_module'
9160 fi
9161 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9162 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9163 else
9164 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9165 fi
9166 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9167 _lt_dsymutil='~$DSYMUTIL $lib || :'
9168 else
9169 _lt_dsymutil=
9170 fi
9171 ;;
9172 esac
9173
9174 for ac_header in dlfcn.h
9175 do :
9176 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9177 "
9178 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9179 cat >>confdefs.h <<_ACEOF
9180 #define HAVE_DLFCN_H 1
9181 _ACEOF
9182
9183 fi
9184
9185 done
9186
9187
9188
9189
9190
9191 # Set options
9192
9193
9194
9195
9196 enable_win32_dll=no
9197
9198
9199 # Check whether --enable-shared was given.
9200 if test "${enable_shared+set}" = set; then :
9201 enableval=$enable_shared; p=${PACKAGE-default}
9202 case $enableval in
9203 yes) enable_shared=yes ;;
9204 no) enable_shared=no ;;
9205 *)
9206 enable_shared=no
9207 # Look at the argument we got. We use all the common list separators.
9208 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9209 for pkg in $enableval; do
9210 IFS="$lt_save_ifs"
9211 if test "X$pkg" = "X$p"; then
9212 enable_shared=yes
9213 fi
9214 done
9215 IFS="$lt_save_ifs"
9216 ;;
9217 esac
9218 else
9219 enable_shared=yes
9220 fi
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230 # Check whether --enable-static was given.
9231 if test "${enable_static+set}" = set; then :
9232 enableval=$enable_static; p=${PACKAGE-default}
9233 case $enableval in
9234 yes) enable_static=yes ;;
9235 no) enable_static=no ;;
9236 *)
9237 enable_static=no
9238 # Look at the argument we got. We use all the common list separators.
9239 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9240 for pkg in $enableval; do
9241 IFS="$lt_save_ifs"
9242 if test "X$pkg" = "X$p"; then
9243 enable_static=yes
9244 fi
9245 done
9246 IFS="$lt_save_ifs"
9247 ;;
9248 esac
9249 else
9250 enable_static=yes
9251 fi
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262 # Check whether --with-pic was given.
9263 if test "${with_pic+set}" = set; then :
9264 withval=$with_pic; pic_mode="$withval"
9265 else
9266 pic_mode=default
9267 fi
9268
9269
9270 test -z "$pic_mode" && pic_mode=default
9271
9272
9273
9274
9275
9276
9277
9278 # Check whether --enable-fast-install was given.
9279 if test "${enable_fast_install+set}" = set; then :
9280 enableval=$enable_fast_install; p=${PACKAGE-default}
9281 case $enableval in
9282 yes) enable_fast_install=yes ;;
9283 no) enable_fast_install=no ;;
9284 *)
9285 enable_fast_install=no
9286 # Look at the argument we got. We use all the common list separators.
9287 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9288 for pkg in $enableval; do
9289 IFS="$lt_save_ifs"
9290 if test "X$pkg" = "X$p"; then
9291 enable_fast_install=yes
9292 fi
9293 done
9294 IFS="$lt_save_ifs"
9295 ;;
9296 esac
9297 else
9298 enable_fast_install=yes
9299 fi
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311 # This can be used to rebuild libtool when needed
9312 LIBTOOL_DEPS="$ltmain"
9313
9314 # Always use our own libtool.
9315 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342 test -z "$LN_S" && LN_S="ln -s"
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357 if test -n "${ZSH_VERSION+set}" ; then
9358 setopt NO_GLOB_SUBST
9359 fi
9360
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9362 $as_echo_n "checking for objdir... " >&6; }
9363 if ${lt_cv_objdir+:} false; then :
9364 $as_echo_n "(cached) " >&6
9365 else
9366 rm -f .libs 2>/dev/null
9367 mkdir .libs 2>/dev/null
9368 if test -d .libs; then
9369 lt_cv_objdir=.libs
9370 else
9371 # MS-DOS does not allow filenames that begin with a dot.
9372 lt_cv_objdir=_libs
9373 fi
9374 rmdir .libs 2>/dev/null
9375 fi
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9377 $as_echo "$lt_cv_objdir" >&6; }
9378 objdir=$lt_cv_objdir
9379
9380
9381
9382
9383
9384 cat >>confdefs.h <<_ACEOF
9385 #define LT_OBJDIR "$lt_cv_objdir/"
9386 _ACEOF
9387
9388
9389
9390
9391 case $host_os in
9392 aix3*)
9393 # AIX sometimes has problems with the GCC collect2 program. For some
9394 # reason, if we set the COLLECT_NAMES environment variable, the problems
9395 # vanish in a puff of smoke.
9396 if test "X${COLLECT_NAMES+set}" != Xset; then
9397 COLLECT_NAMES=
9398 export COLLECT_NAMES
9399 fi
9400 ;;
9401 esac
9402
9403 # Global variables:
9404 ofile=libtool
9405 can_build_shared=yes
9406
9407 # All known linkers require a `.a' archive for static linking (except MSVC,
9408 # which needs '.lib').
9409 libext=a
9410
9411 with_gnu_ld="$lt_cv_prog_gnu_ld"
9412
9413 old_CC="$CC"
9414 old_CFLAGS="$CFLAGS"
9415
9416 # Set sane defaults for various variables
9417 test -z "$CC" && CC=cc
9418 test -z "$LTCC" && LTCC=$CC
9419 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9420 test -z "$LD" && LD=ld
9421 test -z "$ac_objext" && ac_objext=o
9422
9423 for cc_temp in $compiler""; do
9424 case $cc_temp in
9425 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9426 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9427 \-*) ;;
9428 *) break;;
9429 esac
9430 done
9431 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9432
9433
9434 # Only perform the check for file, if the check method requires it
9435 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9436 case $deplibs_check_method in
9437 file_magic*)
9438 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9440 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9441 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9442 $as_echo_n "(cached) " >&6
9443 else
9444 case $MAGIC_CMD in
9445 [\\/*] | ?:[\\/]*)
9446 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9447 ;;
9448 *)
9449 lt_save_MAGIC_CMD="$MAGIC_CMD"
9450 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9451 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9452 for ac_dir in $ac_dummy; do
9453 IFS="$lt_save_ifs"
9454 test -z "$ac_dir" && ac_dir=.
9455 if test -f $ac_dir/${ac_tool_prefix}file; then
9456 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9457 if test -n "$file_magic_test_file"; then
9458 case $deplibs_check_method in
9459 "file_magic "*)
9460 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9461 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9462 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9463 $EGREP "$file_magic_regex" > /dev/null; then
9464 :
9465 else
9466 cat <<_LT_EOF 1>&2
9467
9468 *** Warning: the command libtool uses to detect shared libraries,
9469 *** $file_magic_cmd, produces output that libtool cannot recognize.
9470 *** The result is that libtool may fail to recognize shared libraries
9471 *** as such. This will affect the creation of libtool libraries that
9472 *** depend on shared libraries, but programs linked with such libtool
9473 *** libraries will work regardless of this problem. Nevertheless, you
9474 *** may want to report the problem to your system manager and/or to
9475 *** bug-libtool@gnu.org
9476
9477 _LT_EOF
9478 fi ;;
9479 esac
9480 fi
9481 break
9482 fi
9483 done
9484 IFS="$lt_save_ifs"
9485 MAGIC_CMD="$lt_save_MAGIC_CMD"
9486 ;;
9487 esac
9488 fi
9489
9490 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9491 if test -n "$MAGIC_CMD"; then
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9493 $as_echo "$MAGIC_CMD" >&6; }
9494 else
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9496 $as_echo "no" >&6; }
9497 fi
9498
9499
9500
9501
9502
9503 if test -z "$lt_cv_path_MAGIC_CMD"; then
9504 if test -n "$ac_tool_prefix"; then
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9506 $as_echo_n "checking for file... " >&6; }
9507 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9508 $as_echo_n "(cached) " >&6
9509 else
9510 case $MAGIC_CMD in
9511 [\\/*] | ?:[\\/]*)
9512 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9513 ;;
9514 *)
9515 lt_save_MAGIC_CMD="$MAGIC_CMD"
9516 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9517 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9518 for ac_dir in $ac_dummy; do
9519 IFS="$lt_save_ifs"
9520 test -z "$ac_dir" && ac_dir=.
9521 if test -f $ac_dir/file; then
9522 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9523 if test -n "$file_magic_test_file"; then
9524 case $deplibs_check_method in
9525 "file_magic "*)
9526 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9527 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9528 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9529 $EGREP "$file_magic_regex" > /dev/null; then
9530 :
9531 else
9532 cat <<_LT_EOF 1>&2
9533
9534 *** Warning: the command libtool uses to detect shared libraries,
9535 *** $file_magic_cmd, produces output that libtool cannot recognize.
9536 *** The result is that libtool may fail to recognize shared libraries
9537 *** as such. This will affect the creation of libtool libraries that
9538 *** depend on shared libraries, but programs linked with such libtool
9539 *** libraries will work regardless of this problem. Nevertheless, you
9540 *** may want to report the problem to your system manager and/or to
9541 *** bug-libtool@gnu.org
9542
9543 _LT_EOF
9544 fi ;;
9545 esac
9546 fi
9547 break
9548 fi
9549 done
9550 IFS="$lt_save_ifs"
9551 MAGIC_CMD="$lt_save_MAGIC_CMD"
9552 ;;
9553 esac
9554 fi
9555
9556 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9557 if test -n "$MAGIC_CMD"; then
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9559 $as_echo "$MAGIC_CMD" >&6; }
9560 else
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9562 $as_echo "no" >&6; }
9563 fi
9564
9565
9566 else
9567 MAGIC_CMD=:
9568 fi
9569 fi
9570
9571 fi
9572 ;;
9573 esac
9574
9575 # Use C for the default configuration in the libtool script
9576
9577 lt_save_CC="$CC"
9578 ac_ext=c
9579 ac_cpp='$CPP $CPPFLAGS'
9580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9583
9584
9585 # Source file extension for C test sources.
9586 ac_ext=c
9587
9588 # Object file extension for compiled C test sources.
9589 objext=o
9590 objext=$objext
9591
9592 # Code to be used in simple compile tests
9593 lt_simple_compile_test_code="int some_variable = 0;"
9594
9595 # Code to be used in simple link tests
9596 lt_simple_link_test_code='int main(){return(0);}'
9597
9598
9599
9600
9601
9602
9603
9604 # If no C compiler was specified, use CC.
9605 LTCC=${LTCC-"$CC"}
9606
9607 # If no C compiler flags were specified, use CFLAGS.
9608 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9609
9610 # Allow CC to be a program name with arguments.
9611 compiler=$CC
9612
9613 # Save the default compiler, since it gets overwritten when the other
9614 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9615 compiler_DEFAULT=$CC
9616
9617 # save warnings/boilerplate of simple test code
9618 ac_outfile=conftest.$ac_objext
9619 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9620 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9621 _lt_compiler_boilerplate=`cat conftest.err`
9622 $RM conftest*
9623
9624 ac_outfile=conftest.$ac_objext
9625 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9626 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9627 _lt_linker_boilerplate=`cat conftest.err`
9628 $RM -r conftest*
9629
9630
9631 ## CAVEAT EMPTOR:
9632 ## There is no encapsulation within the following macros, do not change
9633 ## the running order or otherwise move them around unless you know exactly
9634 ## what you are doing...
9635 if test -n "$compiler"; then
9636
9637 lt_prog_compiler_no_builtin_flag=
9638
9639 if test "$GCC" = yes; then
9640 case $cc_basename in
9641 nvcc*)
9642 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9643 *)
9644 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9645 esac
9646
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9648 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9649 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9650 $as_echo_n "(cached) " >&6
9651 else
9652 lt_cv_prog_compiler_rtti_exceptions=no
9653 ac_outfile=conftest.$ac_objext
9654 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9655 lt_compiler_flag="-fno-rtti -fno-exceptions"
9656 # Insert the option either (1) after the last *FLAGS variable, or
9657 # (2) before a word containing "conftest.", or (3) at the end.
9658 # Note that $ac_compile itself does not contain backslashes and begins
9659 # with a dollar sign (not a hyphen), so the echo should work correctly.
9660 # The option is referenced via a variable to avoid confusing sed.
9661 lt_compile=`echo "$ac_compile" | $SED \
9662 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9663 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9664 -e 's:$: $lt_compiler_flag:'`
9665 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9666 (eval "$lt_compile" 2>conftest.err)
9667 ac_status=$?
9668 cat conftest.err >&5
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670 if (exit $ac_status) && test -s "$ac_outfile"; then
9671 # The compiler can only warn and ignore the option if not recognized
9672 # So say no if there are warnings other than the usual output.
9673 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9674 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9675 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9676 lt_cv_prog_compiler_rtti_exceptions=yes
9677 fi
9678 fi
9679 $RM conftest*
9680
9681 fi
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9683 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9684
9685 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9686 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9687 else
9688 :
9689 fi
9690
9691 fi
9692
9693
9694
9695
9696
9697
9698 lt_prog_compiler_wl=
9699 lt_prog_compiler_pic=
9700 lt_prog_compiler_static=
9701
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9703 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9704
9705 if test "$GCC" = yes; then
9706 lt_prog_compiler_wl='-Wl,'
9707 lt_prog_compiler_static='-static'
9708
9709 case $host_os in
9710 aix*)
9711 # All AIX code is PIC.
9712 if test "$host_cpu" = ia64; then
9713 # AIX 5 now supports IA64 processor
9714 lt_prog_compiler_static='-Bstatic'
9715 fi
9716 lt_prog_compiler_pic='-fPIC'
9717 ;;
9718
9719 amigaos*)
9720 case $host_cpu in
9721 powerpc)
9722 # see comment about AmigaOS4 .so support
9723 lt_prog_compiler_pic='-fPIC'
9724 ;;
9725 m68k)
9726 # FIXME: we need at least 68020 code to build shared libraries, but
9727 # adding the `-m68020' flag to GCC prevents building anything better,
9728 # like `-m68040'.
9729 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9730 ;;
9731 esac
9732 ;;
9733
9734 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9735 # PIC is the default for these OSes.
9736 ;;
9737
9738 mingw* | cygwin* | pw32* | os2* | cegcc*)
9739 # This hack is so that the source file can tell whether it is being
9740 # built for inclusion in a dll (and should export symbols for example).
9741 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9742 # (--disable-auto-import) libraries
9743 lt_prog_compiler_pic='-DDLL_EXPORT'
9744 ;;
9745
9746 darwin* | rhapsody*)
9747 # PIC is the default on this platform
9748 # Common symbols not allowed in MH_DYLIB files
9749 lt_prog_compiler_pic='-fno-common'
9750 ;;
9751
9752 haiku*)
9753 # PIC is the default for Haiku.
9754 # The "-static" flag exists, but is broken.
9755 lt_prog_compiler_static=
9756 ;;
9757
9758 hpux*)
9759 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9760 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9761 # sets the default TLS model and affects inlining.
9762 case $host_cpu in
9763 hppa*64*)
9764 # +Z the default
9765 ;;
9766 *)
9767 lt_prog_compiler_pic='-fPIC'
9768 ;;
9769 esac
9770 ;;
9771
9772 interix[3-9]*)
9773 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9774 # Instead, we relocate shared libraries at runtime.
9775 ;;
9776
9777 msdosdjgpp*)
9778 # Just because we use GCC doesn't mean we suddenly get shared libraries
9779 # on systems that don't support them.
9780 lt_prog_compiler_can_build_shared=no
9781 enable_shared=no
9782 ;;
9783
9784 *nto* | *qnx*)
9785 # QNX uses GNU C++, but need to define -shared option too, otherwise
9786 # it will coredump.
9787 lt_prog_compiler_pic='-fPIC -shared'
9788 ;;
9789
9790 sysv4*MP*)
9791 if test -d /usr/nec; then
9792 lt_prog_compiler_pic=-Kconform_pic
9793 fi
9794 ;;
9795
9796 *)
9797 lt_prog_compiler_pic='-fPIC'
9798 ;;
9799 esac
9800
9801 case $cc_basename in
9802 nvcc*) # Cuda Compiler Driver 2.2
9803 lt_prog_compiler_wl='-Xlinker '
9804 lt_prog_compiler_pic='-Xcompiler -fPIC'
9805 ;;
9806 esac
9807 else
9808 # PORTME Check for flag to pass linker flags through the system compiler.
9809 case $host_os in
9810 aix*)
9811 lt_prog_compiler_wl='-Wl,'
9812 if test "$host_cpu" = ia64; then
9813 # AIX 5 now supports IA64 processor
9814 lt_prog_compiler_static='-Bstatic'
9815 else
9816 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9817 fi
9818 ;;
9819
9820 mingw* | cygwin* | pw32* | os2* | cegcc*)
9821 # This hack is so that the source file can tell whether it is being
9822 # built for inclusion in a dll (and should export symbols for example).
9823 lt_prog_compiler_pic='-DDLL_EXPORT'
9824 ;;
9825
9826 hpux9* | hpux10* | hpux11*)
9827 lt_prog_compiler_wl='-Wl,'
9828 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9829 # not for PA HP-UX.
9830 case $host_cpu in
9831 hppa*64*|ia64*)
9832 # +Z the default
9833 ;;
9834 *)
9835 lt_prog_compiler_pic='+Z'
9836 ;;
9837 esac
9838 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9839 lt_prog_compiler_static='${wl}-a ${wl}archive'
9840 ;;
9841
9842 irix5* | irix6* | nonstopux*)
9843 lt_prog_compiler_wl='-Wl,'
9844 # PIC (with -KPIC) is the default.
9845 lt_prog_compiler_static='-non_shared'
9846 ;;
9847
9848 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9849 case $cc_basename in
9850 # old Intel for x86_64 which still supported -KPIC.
9851 ecc*)
9852 lt_prog_compiler_wl='-Wl,'
9853 lt_prog_compiler_pic='-KPIC'
9854 lt_prog_compiler_static='-static'
9855 ;;
9856 # icc used to be incompatible with GCC.
9857 # ICC 10 doesn't accept -KPIC any more.
9858 icc* | ifort*)
9859 lt_prog_compiler_wl='-Wl,'
9860 lt_prog_compiler_pic='-fPIC'
9861 lt_prog_compiler_static='-static'
9862 ;;
9863 # Lahey Fortran 8.1.
9864 lf95*)
9865 lt_prog_compiler_wl='-Wl,'
9866 lt_prog_compiler_pic='--shared'
9867 lt_prog_compiler_static='--static'
9868 ;;
9869 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9870 # Portland Group compilers (*not* the Pentium gcc compiler,
9871 # which looks to be a dead project)
9872 lt_prog_compiler_wl='-Wl,'
9873 lt_prog_compiler_pic='-fpic'
9874 lt_prog_compiler_static='-Bstatic'
9875 ;;
9876 ccc*)
9877 lt_prog_compiler_wl='-Wl,'
9878 # All Alpha code is PIC.
9879 lt_prog_compiler_static='-non_shared'
9880 ;;
9881 xl* | bgxl* | bgf* | mpixl*)
9882 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9883 lt_prog_compiler_wl='-Wl,'
9884 lt_prog_compiler_pic='-qpic'
9885 lt_prog_compiler_static='-qstaticlink'
9886 ;;
9887 *)
9888 case `$CC -V 2>&1 | sed 5q` in
9889 *Sun\ F* | *Sun*Fortran*)
9890 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9891 lt_prog_compiler_pic='-KPIC'
9892 lt_prog_compiler_static='-Bstatic'
9893 lt_prog_compiler_wl=''
9894 ;;
9895 *Sun\ C*)
9896 # Sun C 5.9
9897 lt_prog_compiler_pic='-KPIC'
9898 lt_prog_compiler_static='-Bstatic'
9899 lt_prog_compiler_wl='-Wl,'
9900 ;;
9901 esac
9902 ;;
9903 esac
9904 ;;
9905
9906 newsos6)
9907 lt_prog_compiler_pic='-KPIC'
9908 lt_prog_compiler_static='-Bstatic'
9909 ;;
9910
9911 *nto* | *qnx*)
9912 # QNX uses GNU C++, but need to define -shared option too, otherwise
9913 # it will coredump.
9914 lt_prog_compiler_pic='-fPIC -shared'
9915 ;;
9916
9917 osf3* | osf4* | osf5*)
9918 lt_prog_compiler_wl='-Wl,'
9919 # All OSF/1 code is PIC.
9920 lt_prog_compiler_static='-non_shared'
9921 ;;
9922
9923 rdos*)
9924 lt_prog_compiler_static='-non_shared'
9925 ;;
9926
9927 solaris*)
9928 lt_prog_compiler_pic='-KPIC'
9929 lt_prog_compiler_static='-Bstatic'
9930 case $cc_basename in
9931 f77* | f90* | f95*)
9932 lt_prog_compiler_wl='-Qoption ld ';;
9933 *)
9934 lt_prog_compiler_wl='-Wl,';;
9935 esac
9936 ;;
9937
9938 sunos4*)
9939 lt_prog_compiler_wl='-Qoption ld '
9940 lt_prog_compiler_pic='-PIC'
9941 lt_prog_compiler_static='-Bstatic'
9942 ;;
9943
9944 sysv4 | sysv4.2uw2* | sysv4.3*)
9945 lt_prog_compiler_wl='-Wl,'
9946 lt_prog_compiler_pic='-KPIC'
9947 lt_prog_compiler_static='-Bstatic'
9948 ;;
9949
9950 sysv4*MP*)
9951 if test -d /usr/nec ;then
9952 lt_prog_compiler_pic='-Kconform_pic'
9953 lt_prog_compiler_static='-Bstatic'
9954 fi
9955 ;;
9956
9957 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9958 lt_prog_compiler_wl='-Wl,'
9959 lt_prog_compiler_pic='-KPIC'
9960 lt_prog_compiler_static='-Bstatic'
9961 ;;
9962
9963 unicos*)
9964 lt_prog_compiler_wl='-Wl,'
9965 lt_prog_compiler_can_build_shared=no
9966 ;;
9967
9968 uts4*)
9969 lt_prog_compiler_pic='-pic'
9970 lt_prog_compiler_static='-Bstatic'
9971 ;;
9972
9973 *)
9974 lt_prog_compiler_can_build_shared=no
9975 ;;
9976 esac
9977 fi
9978
9979 case $host_os in
9980 # For platforms which do not support PIC, -DPIC is meaningless:
9981 *djgpp*)
9982 lt_prog_compiler_pic=
9983 ;;
9984 *)
9985 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9986 ;;
9987 esac
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9989 $as_echo "$lt_prog_compiler_pic" >&6; }
9990
9991
9992
9993
9994
9995
9996 #
9997 # Check to make sure the PIC flag actually works.
9998 #
9999 if test -n "$lt_prog_compiler_pic"; then
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10001 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10002 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10003 $as_echo_n "(cached) " >&6
10004 else
10005 lt_cv_prog_compiler_pic_works=no
10006 ac_outfile=conftest.$ac_objext
10007 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10008 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10009 # Insert the option either (1) after the last *FLAGS variable, or
10010 # (2) before a word containing "conftest.", or (3) at the end.
10011 # Note that $ac_compile itself does not contain backslashes and begins
10012 # with a dollar sign (not a hyphen), so the echo should work correctly.
10013 # The option is referenced via a variable to avoid confusing sed.
10014 lt_compile=`echo "$ac_compile" | $SED \
10015 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10016 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10017 -e 's:$: $lt_compiler_flag:'`
10018 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10019 (eval "$lt_compile" 2>conftest.err)
10020 ac_status=$?
10021 cat conftest.err >&5
10022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023 if (exit $ac_status) && test -s "$ac_outfile"; then
10024 # The compiler can only warn and ignore the option if not recognized
10025 # So say no if there are warnings other than the usual output.
10026 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10027 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10028 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10029 lt_cv_prog_compiler_pic_works=yes
10030 fi
10031 fi
10032 $RM conftest*
10033
10034 fi
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10036 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10037
10038 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10039 case $lt_prog_compiler_pic in
10040 "" | " "*) ;;
10041 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10042 esac
10043 else
10044 lt_prog_compiler_pic=
10045 lt_prog_compiler_can_build_shared=no
10046 fi
10047
10048 fi
10049
10050
10051
10052
10053
10054
10055 #
10056 # Check to make sure the static flag actually works.
10057 #
10058 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10060 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10061 if ${lt_cv_prog_compiler_static_works+:} false; then :
10062 $as_echo_n "(cached) " >&6
10063 else
10064 lt_cv_prog_compiler_static_works=no
10065 save_LDFLAGS="$LDFLAGS"
10066 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10067 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10068 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10069 # The linker can only warn and ignore the option if not recognized
10070 # So say no if there are warnings
10071 if test -s conftest.err; then
10072 # Append any errors to the config.log.
10073 cat conftest.err 1>&5
10074 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10075 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10076 if diff conftest.exp conftest.er2 >/dev/null; then
10077 lt_cv_prog_compiler_static_works=yes
10078 fi
10079 else
10080 lt_cv_prog_compiler_static_works=yes
10081 fi
10082 fi
10083 $RM -r conftest*
10084 LDFLAGS="$save_LDFLAGS"
10085
10086 fi
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10088 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10089
10090 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10091 :
10092 else
10093 lt_prog_compiler_static=
10094 fi
10095
10096
10097
10098
10099
10100
10101
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10103 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10104 if ${lt_cv_prog_compiler_c_o+:} false; then :
10105 $as_echo_n "(cached) " >&6
10106 else
10107 lt_cv_prog_compiler_c_o=no
10108 $RM -r conftest 2>/dev/null
10109 mkdir conftest
10110 cd conftest
10111 mkdir out
10112 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10113
10114 lt_compiler_flag="-o out/conftest2.$ac_objext"
10115 # Insert the option either (1) after the last *FLAGS variable, or
10116 # (2) before a word containing "conftest.", or (3) at the end.
10117 # Note that $ac_compile itself does not contain backslashes and begins
10118 # with a dollar sign (not a hyphen), so the echo should work correctly.
10119 lt_compile=`echo "$ac_compile" | $SED \
10120 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10121 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10122 -e 's:$: $lt_compiler_flag:'`
10123 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10124 (eval "$lt_compile" 2>out/conftest.err)
10125 ac_status=$?
10126 cat out/conftest.err >&5
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10129 then
10130 # The compiler can only warn and ignore the option if not recognized
10131 # So say no if there are warnings
10132 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10133 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10134 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10135 lt_cv_prog_compiler_c_o=yes
10136 fi
10137 fi
10138 chmod u+w . 2>&5
10139 $RM conftest*
10140 # SGI C++ compiler will create directory out/ii_files/ for
10141 # template instantiation
10142 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10143 $RM out/* && rmdir out
10144 cd ..
10145 $RM -r conftest
10146 $RM conftest*
10147
10148 fi
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10150 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10151
10152
10153
10154
10155
10156
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10158 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10159 if ${lt_cv_prog_compiler_c_o+:} false; then :
10160 $as_echo_n "(cached) " >&6
10161 else
10162 lt_cv_prog_compiler_c_o=no
10163 $RM -r conftest 2>/dev/null
10164 mkdir conftest
10165 cd conftest
10166 mkdir out
10167 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10168
10169 lt_compiler_flag="-o out/conftest2.$ac_objext"
10170 # Insert the option either (1) after the last *FLAGS variable, or
10171 # (2) before a word containing "conftest.", or (3) at the end.
10172 # Note that $ac_compile itself does not contain backslashes and begins
10173 # with a dollar sign (not a hyphen), so the echo should work correctly.
10174 lt_compile=`echo "$ac_compile" | $SED \
10175 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10176 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10177 -e 's:$: $lt_compiler_flag:'`
10178 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10179 (eval "$lt_compile" 2>out/conftest.err)
10180 ac_status=$?
10181 cat out/conftest.err >&5
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10184 then
10185 # The compiler can only warn and ignore the option if not recognized
10186 # So say no if there are warnings
10187 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10188 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10189 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10190 lt_cv_prog_compiler_c_o=yes
10191 fi
10192 fi
10193 chmod u+w . 2>&5
10194 $RM conftest*
10195 # SGI C++ compiler will create directory out/ii_files/ for
10196 # template instantiation
10197 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10198 $RM out/* && rmdir out
10199 cd ..
10200 $RM -r conftest
10201 $RM conftest*
10202
10203 fi
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10205 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10206
10207
10208
10209
10210 hard_links="nottested"
10211 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10212 # do not overwrite the value of need_locks provided by the user
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10214 $as_echo_n "checking if we can lock with hard links... " >&6; }
10215 hard_links=yes
10216 $RM conftest*
10217 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10218 touch conftest.a
10219 ln conftest.a conftest.b 2>&5 || hard_links=no
10220 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10222 $as_echo "$hard_links" >&6; }
10223 if test "$hard_links" = no; then
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10225 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10226 need_locks=warn
10227 fi
10228 else
10229 need_locks=no
10230 fi
10231
10232
10233
10234
10235
10236
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10238 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10239
10240 runpath_var=
10241 allow_undefined_flag=
10242 always_export_symbols=no
10243 archive_cmds=
10244 archive_expsym_cmds=
10245 compiler_needs_object=no
10246 enable_shared_with_static_runtimes=no
10247 export_dynamic_flag_spec=
10248 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10249 hardcode_automatic=no
10250 hardcode_direct=no
10251 hardcode_direct_absolute=no
10252 hardcode_libdir_flag_spec=
10253 hardcode_libdir_flag_spec_ld=
10254 hardcode_libdir_separator=
10255 hardcode_minus_L=no
10256 hardcode_shlibpath_var=unsupported
10257 inherit_rpath=no
10258 link_all_deplibs=unknown
10259 module_cmds=
10260 module_expsym_cmds=
10261 old_archive_from_new_cmds=
10262 old_archive_from_expsyms_cmds=
10263 thread_safe_flag_spec=
10264 whole_archive_flag_spec=
10265 # include_expsyms should be a list of space-separated symbols to be *always*
10266 # included in the symbol list
10267 include_expsyms=
10268 # exclude_expsyms can be an extended regexp of symbols to exclude
10269 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10270 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10271 # as well as any symbol that contains `d'.
10272 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10273 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10274 # platforms (ab)use it in PIC code, but their linkers get confused if
10275 # the symbol is explicitly referenced. Since portable code cannot
10276 # rely on this symbol name, it's probably fine to never include it in
10277 # preloaded symbol tables.
10278 # Exclude shared library initialization/finalization symbols.
10279 extract_expsyms_cmds=
10280
10281 case $host_os in
10282 cygwin* | mingw* | pw32* | cegcc*)
10283 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10284 # When not using gcc, we currently assume that we are using
10285 # Microsoft Visual C++.
10286 if test "$GCC" != yes; then
10287 with_gnu_ld=no
10288 fi
10289 ;;
10290 interix*)
10291 # we just hope/assume this is gcc and not c89 (= MSVC++)
10292 with_gnu_ld=yes
10293 ;;
10294 openbsd*)
10295 with_gnu_ld=no
10296 ;;
10297 esac
10298
10299 ld_shlibs=yes
10300
10301 # On some targets, GNU ld is compatible enough with the native linker
10302 # that we're better off using the native interface for both.
10303 lt_use_gnu_ld_interface=no
10304 if test "$with_gnu_ld" = yes; then
10305 case $host_os in
10306 aix*)
10307 # The AIX port of GNU ld has always aspired to compatibility
10308 # with the native linker. However, as the warning in the GNU ld
10309 # block says, versions before 2.19.5* couldn't really create working
10310 # shared libraries, regardless of the interface used.
10311 case `$LD -v 2>&1` in
10312 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10313 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10314 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10315 *)
10316 lt_use_gnu_ld_interface=yes
10317 ;;
10318 esac
10319 ;;
10320 *)
10321 lt_use_gnu_ld_interface=yes
10322 ;;
10323 esac
10324 fi
10325
10326 if test "$lt_use_gnu_ld_interface" = yes; then
10327 # If archive_cmds runs LD, not CC, wlarc should be empty
10328 wlarc='${wl}'
10329
10330 # Set some defaults for GNU ld with shared library support. These
10331 # are reset later if shared libraries are not supported. Putting them
10332 # here allows them to be overridden if necessary.
10333 runpath_var=LD_RUN_PATH
10334 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10335 export_dynamic_flag_spec='${wl}--export-dynamic'
10336 # ancient GNU ld didn't support --whole-archive et. al.
10337 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10338 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10339 else
10340 whole_archive_flag_spec=
10341 fi
10342 supports_anon_versioning=no
10343 case `$LD -v 2>&1` in
10344 *GNU\ gold*) supports_anon_versioning=yes ;;
10345 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10346 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10347 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10348 *\ 2.11.*) ;; # other 2.11 versions
10349 *) supports_anon_versioning=yes ;;
10350 esac
10351
10352 # See if GNU ld supports shared libraries.
10353 case $host_os in
10354 aix[3-9]*)
10355 # On AIX/PPC, the GNU linker is very broken
10356 if test "$host_cpu" != ia64; then
10357 ld_shlibs=no
10358 cat <<_LT_EOF 1>&2
10359
10360 *** Warning: the GNU linker, at least up to release 2.19, is reported
10361 *** to be unable to reliably create shared libraries on AIX.
10362 *** Therefore, libtool is disabling shared libraries support. If you
10363 *** really care for shared libraries, you may want to install binutils
10364 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10365 *** You will then need to restart the configuration process.
10366
10367 _LT_EOF
10368 fi
10369 ;;
10370
10371 amigaos*)
10372 case $host_cpu in
10373 powerpc)
10374 # see comment about AmigaOS4 .so support
10375 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10376 archive_expsym_cmds=''
10377 ;;
10378 m68k)
10379 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)'
10380 hardcode_libdir_flag_spec='-L$libdir'
10381 hardcode_minus_L=yes
10382 ;;
10383 esac
10384 ;;
10385
10386 beos*)
10387 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10388 allow_undefined_flag=unsupported
10389 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10390 # support --undefined. This deserves some investigation. FIXME
10391 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10392 else
10393 ld_shlibs=no
10394 fi
10395 ;;
10396
10397 cygwin* | mingw* | pw32* | cegcc*)
10398 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10399 # as there is no search path for DLLs.
10400 hardcode_libdir_flag_spec='-L$libdir'
10401 export_dynamic_flag_spec='${wl}--export-all-symbols'
10402 allow_undefined_flag=unsupported
10403 always_export_symbols=no
10404 enable_shared_with_static_runtimes=yes
10405 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10406
10407 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10408 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10409 # If the export-symbols file already is a .def file (1st line
10410 # is EXPORTS), use it as is; otherwise, prepend...
10411 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10412 cp $export_symbols $output_objdir/$soname.def;
10413 else
10414 echo EXPORTS > $output_objdir/$soname.def;
10415 cat $export_symbols >> $output_objdir/$soname.def;
10416 fi~
10417 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10418 else
10419 ld_shlibs=no
10420 fi
10421 ;;
10422
10423 haiku*)
10424 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10425 link_all_deplibs=yes
10426 ;;
10427
10428 interix[3-9]*)
10429 hardcode_direct=no
10430 hardcode_shlibpath_var=no
10431 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10432 export_dynamic_flag_spec='${wl}-E'
10433 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10434 # Instead, shared libraries are loaded at an image base (0x10000000 by
10435 # default) and relocated if they conflict, which is a slow very memory
10436 # consuming and fragmenting process. To avoid this, we pick a random,
10437 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10438 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10439 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10440 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'
10441 ;;
10442
10443 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
10444 tmp_diet=no
10445 if test "$host_os" = linux-dietlibc; then
10446 case $cc_basename in
10447 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10448 esac
10449 fi
10450 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10451 && test "$tmp_diet" = no
10452 then
10453 tmp_addflag=' $pic_flag'
10454 tmp_sharedflag='-shared'
10455 case $cc_basename,$host_cpu in
10456 pgcc*) # Portland Group C compiler
10457 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'
10458 tmp_addflag=' $pic_flag'
10459 ;;
10460 pgf77* | pgf90* | pgf95* | pgfortran*)
10461 # Portland Group f77 and f90 compilers
10462 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'
10463 tmp_addflag=' $pic_flag -Mnomain' ;;
10464 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10465 tmp_addflag=' -i_dynamic' ;;
10466 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10467 tmp_addflag=' -i_dynamic -nofor_main' ;;
10468 ifc* | ifort*) # Intel Fortran compiler
10469 tmp_addflag=' -nofor_main' ;;
10470 lf95*) # Lahey Fortran 8.1
10471 whole_archive_flag_spec=
10472 tmp_sharedflag='--shared' ;;
10473 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10474 tmp_sharedflag='-qmkshrobj'
10475 tmp_addflag= ;;
10476 nvcc*) # Cuda Compiler Driver 2.2
10477 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'
10478 compiler_needs_object=yes
10479 ;;
10480 esac
10481 case `$CC -V 2>&1 | sed 5q` in
10482 *Sun\ C*) # Sun C 5.9
10483 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'
10484 compiler_needs_object=yes
10485 tmp_sharedflag='-G' ;;
10486 *Sun\ F*) # Sun Fortran 8.3
10487 tmp_sharedflag='-G' ;;
10488 esac
10489 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10490
10491 if test "x$supports_anon_versioning" = xyes; then
10492 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10493 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10494 echo "local: *; };" >> $output_objdir/$libname.ver~
10495 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10496 fi
10497
10498 case $cc_basename in
10499 xlf* | bgf* | bgxlf* | mpixlf*)
10500 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10501 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10502 hardcode_libdir_flag_spec=
10503 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10504 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10505 if test "x$supports_anon_versioning" = xyes; then
10506 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10507 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10508 echo "local: *; };" >> $output_objdir/$libname.ver~
10509 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10510 fi
10511 ;;
10512 esac
10513 else
10514 ld_shlibs=no
10515 fi
10516 ;;
10517
10518 netbsd*)
10519 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10520 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10521 wlarc=
10522 else
10523 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10524 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10525 fi
10526 ;;
10527
10528 solaris*)
10529 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10530 ld_shlibs=no
10531 cat <<_LT_EOF 1>&2
10532
10533 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10534 *** create shared libraries on Solaris systems. Therefore, libtool
10535 *** is disabling shared libraries support. We urge you to upgrade GNU
10536 *** binutils to release 2.9.1 or newer. Another option is to modify
10537 *** your PATH or compiler configuration so that the native linker is
10538 *** used, and then restart.
10539
10540 _LT_EOF
10541 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10542 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10543 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10544 else
10545 ld_shlibs=no
10546 fi
10547 ;;
10548
10549 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10550 case `$LD -v 2>&1` in
10551 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10552 ld_shlibs=no
10553 cat <<_LT_EOF 1>&2
10554
10555 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10556 *** reliably create shared libraries on SCO systems. Therefore, libtool
10557 *** is disabling shared libraries support. We urge you to upgrade GNU
10558 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10559 *** your PATH or compiler configuration so that the native linker is
10560 *** used, and then restart.
10561
10562 _LT_EOF
10563 ;;
10564 *)
10565 # For security reasons, it is highly recommended that you always
10566 # use absolute paths for naming shared libraries, and exclude the
10567 # DT_RUNPATH tag from executables and libraries. But doing so
10568 # requires that you compile everything twice, which is a pain.
10569 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10570 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10571 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10572 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10573 else
10574 ld_shlibs=no
10575 fi
10576 ;;
10577 esac
10578 ;;
10579
10580 sunos4*)
10581 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10582 wlarc=
10583 hardcode_direct=yes
10584 hardcode_shlibpath_var=no
10585 ;;
10586
10587 *)
10588 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10589 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10590 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10591 else
10592 ld_shlibs=no
10593 fi
10594 ;;
10595 esac
10596
10597 if test "$ld_shlibs" = no; then
10598 runpath_var=
10599 hardcode_libdir_flag_spec=
10600 export_dynamic_flag_spec=
10601 whole_archive_flag_spec=
10602 fi
10603 else
10604 # PORTME fill in a description of your system's linker (not GNU ld)
10605 case $host_os in
10606 aix3*)
10607 allow_undefined_flag=unsupported
10608 always_export_symbols=yes
10609 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'
10610 # Note: this linker hardcodes the directories in LIBPATH if there
10611 # are no directories specified by -L.
10612 hardcode_minus_L=yes
10613 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10614 # Neither direct hardcoding nor static linking is supported with a
10615 # broken collect2.
10616 hardcode_direct=unsupported
10617 fi
10618 ;;
10619
10620 aix[4-9]*)
10621 if test "$host_cpu" = ia64; then
10622 # On IA64, the linker does run time linking by default, so we don't
10623 # have to do anything special.
10624 aix_use_runtimelinking=no
10625 exp_sym_flag='-Bexport'
10626 no_entry_flag=""
10627 else
10628 # If we're using GNU nm, then we don't want the "-C" option.
10629 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10630 # Also, AIX nm treats weak defined symbols like other global
10631 # defined symbols, whereas GNU nm marks them as "W".
10632 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10633 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'
10634 else
10635 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'
10636 fi
10637 aix_use_runtimelinking=no
10638
10639 # Test if we are trying to use run time linking or normal
10640 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10641 # need to do runtime linking.
10642 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10643 for ld_flag in $LDFLAGS; do
10644 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10645 aix_use_runtimelinking=yes
10646 break
10647 fi
10648 done
10649 ;;
10650 esac
10651
10652 exp_sym_flag='-bexport'
10653 no_entry_flag='-bnoentry'
10654 fi
10655
10656 # When large executables or shared objects are built, AIX ld can
10657 # have problems creating the table of contents. If linking a library
10658 # or program results in "error TOC overflow" add -mminimal-toc to
10659 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10660 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10661
10662 archive_cmds=''
10663 hardcode_direct=yes
10664 hardcode_direct_absolute=yes
10665 hardcode_libdir_separator=':'
10666 link_all_deplibs=yes
10667 file_list_spec='${wl}-f,'
10668
10669 if test "$GCC" = yes; then
10670 case $host_os in aix4.[012]|aix4.[012].*)
10671 # We only want to do this on AIX 4.2 and lower, the check
10672 # below for broken collect2 doesn't work under 4.3+
10673 collect2name=`${CC} -print-prog-name=collect2`
10674 if test -f "$collect2name" &&
10675 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10676 then
10677 # We have reworked collect2
10678 :
10679 else
10680 # We have old collect2
10681 hardcode_direct=unsupported
10682 # It fails to find uninstalled libraries when the uninstalled
10683 # path is not listed in the libpath. Setting hardcode_minus_L
10684 # to unsupported forces relinking
10685 hardcode_minus_L=yes
10686 hardcode_libdir_flag_spec='-L$libdir'
10687 hardcode_libdir_separator=
10688 fi
10689 ;;
10690 esac
10691 shared_flag='-shared'
10692 if test "$aix_use_runtimelinking" = yes; then
10693 shared_flag="$shared_flag "'${wl}-G'
10694 fi
10695 else
10696 # not using gcc
10697 if test "$host_cpu" = ia64; then
10698 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10699 # chokes on -Wl,-G. The following line is correct:
10700 shared_flag='-G'
10701 else
10702 if test "$aix_use_runtimelinking" = yes; then
10703 shared_flag='${wl}-G'
10704 else
10705 shared_flag='${wl}-bM:SRE'
10706 fi
10707 fi
10708 fi
10709
10710 export_dynamic_flag_spec='${wl}-bexpall'
10711 # It seems that -bexpall does not export symbols beginning with
10712 # underscore (_), so it is better to generate a list of symbols to export.
10713 always_export_symbols=yes
10714 if test "$aix_use_runtimelinking" = yes; then
10715 # Warning - without using the other runtime loading flags (-brtl),
10716 # -berok will link without error, but may produce a broken library.
10717 allow_undefined_flag='-berok'
10718 # Determine the default libpath from the value encoded in an
10719 # empty executable.
10720 if test x$gcc_no_link = xyes; then
10721 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10722 fi
10723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10724 /* end confdefs.h. */
10725
10726 int
10727 main ()
10728 {
10729
10730 ;
10731 return 0;
10732 }
10733 _ACEOF
10734 if ac_fn_c_try_link "$LINENO"; then :
10735
10736 lt_aix_libpath_sed='
10737 /Import File Strings/,/^$/ {
10738 /^0/ {
10739 s/^0 *\(.*\)$/\1/
10740 p
10741 }
10742 }'
10743 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10744 # Check for a 64-bit object if we didn't find anything.
10745 if test -z "$aix_libpath"; then
10746 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10747 fi
10748 fi
10749 rm -f core conftest.err conftest.$ac_objext \
10750 conftest$ac_exeext conftest.$ac_ext
10751 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10752
10753 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10754 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"
10755 else
10756 if test "$host_cpu" = ia64; then
10757 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10758 allow_undefined_flag="-z nodefs"
10759 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"
10760 else
10761 # Determine the default libpath from the value encoded in an
10762 # empty executable.
10763 if test x$gcc_no_link = xyes; then
10764 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10765 fi
10766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10767 /* end confdefs.h. */
10768
10769 int
10770 main ()
10771 {
10772
10773 ;
10774 return 0;
10775 }
10776 _ACEOF
10777 if ac_fn_c_try_link "$LINENO"; then :
10778
10779 lt_aix_libpath_sed='
10780 /Import File Strings/,/^$/ {
10781 /^0/ {
10782 s/^0 *\(.*\)$/\1/
10783 p
10784 }
10785 }'
10786 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10787 # Check for a 64-bit object if we didn't find anything.
10788 if test -z "$aix_libpath"; then
10789 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10790 fi
10791 fi
10792 rm -f core conftest.err conftest.$ac_objext \
10793 conftest$ac_exeext conftest.$ac_ext
10794 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10795
10796 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10797 # Warning - without using the other run time loading flags,
10798 # -berok will link without error, but may produce a broken library.
10799 no_undefined_flag=' ${wl}-bernotok'
10800 allow_undefined_flag=' ${wl}-berok'
10801 if test "$with_gnu_ld" = yes; then
10802 # We only use this code for GNU lds that support --whole-archive.
10803 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10804 else
10805 # Exported symbols can be pulled into shared objects from archives
10806 whole_archive_flag_spec='$convenience'
10807 fi
10808 archive_cmds_need_lc=yes
10809 # This is similar to how AIX traditionally builds its shared libraries.
10810 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'
10811 fi
10812 fi
10813 ;;
10814
10815 amigaos*)
10816 case $host_cpu in
10817 powerpc)
10818 # see comment about AmigaOS4 .so support
10819 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10820 archive_expsym_cmds=''
10821 ;;
10822 m68k)
10823 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)'
10824 hardcode_libdir_flag_spec='-L$libdir'
10825 hardcode_minus_L=yes
10826 ;;
10827 esac
10828 ;;
10829
10830 bsdi[45]*)
10831 export_dynamic_flag_spec=-rdynamic
10832 ;;
10833
10834 cygwin* | mingw* | pw32* | cegcc*)
10835 # When not using gcc, we currently assume that we are using
10836 # Microsoft Visual C++.
10837 # hardcode_libdir_flag_spec is actually meaningless, as there is
10838 # no search path for DLLs.
10839 hardcode_libdir_flag_spec=' '
10840 allow_undefined_flag=unsupported
10841 # Tell ltmain to make .lib files, not .a files.
10842 libext=lib
10843 # Tell ltmain to make .dll files, not .so files.
10844 shrext_cmds=".dll"
10845 # FIXME: Setting linknames here is a bad hack.
10846 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10847 # The linker will automatically build a .lib file if we build a DLL.
10848 old_archive_from_new_cmds='true'
10849 # FIXME: Should let the user specify the lib program.
10850 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10851 fix_srcfile_path='`cygpath -w "$srcfile"`'
10852 enable_shared_with_static_runtimes=yes
10853 ;;
10854
10855 darwin* | rhapsody*)
10856
10857
10858 archive_cmds_need_lc=no
10859 hardcode_direct=no
10860 hardcode_automatic=yes
10861 hardcode_shlibpath_var=unsupported
10862 if test "$lt_cv_ld_force_load" = "yes"; then
10863 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\"`'
10864 else
10865 whole_archive_flag_spec=''
10866 fi
10867 link_all_deplibs=yes
10868 allow_undefined_flag="$_lt_dar_allow_undefined"
10869 case $cc_basename in
10870 ifort*) _lt_dar_can_shared=yes ;;
10871 *) _lt_dar_can_shared=$GCC ;;
10872 esac
10873 if test "$_lt_dar_can_shared" = "yes"; then
10874 output_verbose_link_cmd=func_echo_all
10875 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10876 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10877 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}"
10878 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}"
10879
10880 else
10881 ld_shlibs=no
10882 fi
10883
10884 ;;
10885
10886 dgux*)
10887 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10888 hardcode_libdir_flag_spec='-L$libdir'
10889 hardcode_shlibpath_var=no
10890 ;;
10891
10892 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10893 # support. Future versions do this automatically, but an explicit c++rt0.o
10894 # does not break anything, and helps significantly (at the cost of a little
10895 # extra space).
10896 freebsd2.2*)
10897 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10898 hardcode_libdir_flag_spec='-R$libdir'
10899 hardcode_direct=yes
10900 hardcode_shlibpath_var=no
10901 ;;
10902
10903 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10904 freebsd2.*)
10905 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10906 hardcode_direct=yes
10907 hardcode_minus_L=yes
10908 hardcode_shlibpath_var=no
10909 ;;
10910
10911 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10912 freebsd* | dragonfly*)
10913 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10914 hardcode_libdir_flag_spec='-R$libdir'
10915 hardcode_direct=yes
10916 hardcode_shlibpath_var=no
10917 ;;
10918
10919 hpux9*)
10920 if test "$GCC" = yes; then
10921 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'
10922 else
10923 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'
10924 fi
10925 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10926 hardcode_libdir_separator=:
10927 hardcode_direct=yes
10928
10929 # hardcode_minus_L: Not really in the search PATH,
10930 # but as the default location of the library.
10931 hardcode_minus_L=yes
10932 export_dynamic_flag_spec='${wl}-E'
10933 ;;
10934
10935 hpux10*)
10936 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10937 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10938 else
10939 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10940 fi
10941 if test "$with_gnu_ld" = no; then
10942 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10943 hardcode_libdir_flag_spec_ld='+b $libdir'
10944 hardcode_libdir_separator=:
10945 hardcode_direct=yes
10946 hardcode_direct_absolute=yes
10947 export_dynamic_flag_spec='${wl}-E'
10948 # hardcode_minus_L: Not really in the search PATH,
10949 # but as the default location of the library.
10950 hardcode_minus_L=yes
10951 fi
10952 ;;
10953
10954 hpux11*)
10955 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10956 case $host_cpu in
10957 hppa*64*)
10958 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10959 ;;
10960 ia64*)
10961 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10962 ;;
10963 *)
10964 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10965 ;;
10966 esac
10967 else
10968 case $host_cpu in
10969 hppa*64*)
10970 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10971 ;;
10972 ia64*)
10973 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10974 ;;
10975 *)
10976
10977 # Older versions of the 11.00 compiler do not understand -b yet
10978 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10980 $as_echo_n "checking if $CC understands -b... " >&6; }
10981 if ${lt_cv_prog_compiler__b+:} false; then :
10982 $as_echo_n "(cached) " >&6
10983 else
10984 lt_cv_prog_compiler__b=no
10985 save_LDFLAGS="$LDFLAGS"
10986 LDFLAGS="$LDFLAGS -b"
10987 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10988 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10989 # The linker can only warn and ignore the option if not recognized
10990 # So say no if there are warnings
10991 if test -s conftest.err; then
10992 # Append any errors to the config.log.
10993 cat conftest.err 1>&5
10994 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10995 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10996 if diff conftest.exp conftest.er2 >/dev/null; then
10997 lt_cv_prog_compiler__b=yes
10998 fi
10999 else
11000 lt_cv_prog_compiler__b=yes
11001 fi
11002 fi
11003 $RM -r conftest*
11004 LDFLAGS="$save_LDFLAGS"
11005
11006 fi
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11008 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11009
11010 if test x"$lt_cv_prog_compiler__b" = xyes; then
11011 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11012 else
11013 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11014 fi
11015
11016 ;;
11017 esac
11018 fi
11019 if test "$with_gnu_ld" = no; then
11020 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11021 hardcode_libdir_separator=:
11022
11023 case $host_cpu in
11024 hppa*64*|ia64*)
11025 hardcode_direct=no
11026 hardcode_shlibpath_var=no
11027 ;;
11028 *)
11029 hardcode_direct=yes
11030 hardcode_direct_absolute=yes
11031 export_dynamic_flag_spec='${wl}-E'
11032
11033 # hardcode_minus_L: Not really in the search PATH,
11034 # but as the default location of the library.
11035 hardcode_minus_L=yes
11036 ;;
11037 esac
11038 fi
11039 ;;
11040
11041 irix5* | irix6* | nonstopux*)
11042 if test "$GCC" = yes; then
11043 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'
11044 # Try to use the -exported_symbol ld option, if it does not
11045 # work, assume that -exports_file does not work either and
11046 # implicitly export all symbols.
11047 save_LDFLAGS="$LDFLAGS"
11048 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11049 if test x$gcc_no_link = xyes; then
11050 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11051 fi
11052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11053 /* end confdefs.h. */
11054 int foo(void) {}
11055 _ACEOF
11056 if ac_fn_c_try_link "$LINENO"; then :
11057 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'
11058
11059 fi
11060 rm -f core conftest.err conftest.$ac_objext \
11061 conftest$ac_exeext conftest.$ac_ext
11062 LDFLAGS="$save_LDFLAGS"
11063 else
11064 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'
11065 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'
11066 fi
11067 archive_cmds_need_lc='no'
11068 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11069 hardcode_libdir_separator=:
11070 inherit_rpath=yes
11071 link_all_deplibs=yes
11072 ;;
11073
11074 netbsd*)
11075 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11076 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11077 else
11078 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11079 fi
11080 hardcode_libdir_flag_spec='-R$libdir'
11081 hardcode_direct=yes
11082 hardcode_shlibpath_var=no
11083 ;;
11084
11085 newsos6)
11086 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11087 hardcode_direct=yes
11088 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11089 hardcode_libdir_separator=:
11090 hardcode_shlibpath_var=no
11091 ;;
11092
11093 *nto* | *qnx*)
11094 ;;
11095
11096 openbsd*)
11097 if test -f /usr/libexec/ld.so; then
11098 hardcode_direct=yes
11099 hardcode_shlibpath_var=no
11100 hardcode_direct_absolute=yes
11101 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11102 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11103 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11104 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11105 export_dynamic_flag_spec='${wl}-E'
11106 else
11107 case $host_os in
11108 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11109 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11110 hardcode_libdir_flag_spec='-R$libdir'
11111 ;;
11112 *)
11113 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11114 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11115 ;;
11116 esac
11117 fi
11118 else
11119 ld_shlibs=no
11120 fi
11121 ;;
11122
11123 os2*)
11124 hardcode_libdir_flag_spec='-L$libdir'
11125 hardcode_minus_L=yes
11126 allow_undefined_flag=unsupported
11127 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'
11128 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11129 ;;
11130
11131 osf3*)
11132 if test "$GCC" = yes; then
11133 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11134 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'
11135 else
11136 allow_undefined_flag=' -expect_unresolved \*'
11137 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'
11138 fi
11139 archive_cmds_need_lc='no'
11140 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11141 hardcode_libdir_separator=:
11142 ;;
11143
11144 osf4* | osf5*) # as osf3* with the addition of -msym flag
11145 if test "$GCC" = yes; then
11146 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11147 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'
11148 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11149 else
11150 allow_undefined_flag=' -expect_unresolved \*'
11151 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'
11152 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~
11153 $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'
11154
11155 # Both c and cxx compiler support -rpath directly
11156 hardcode_libdir_flag_spec='-rpath $libdir'
11157 fi
11158 archive_cmds_need_lc='no'
11159 hardcode_libdir_separator=:
11160 ;;
11161
11162 solaris*)
11163 no_undefined_flag=' -z defs'
11164 if test "$GCC" = yes; then
11165 wlarc='${wl}'
11166 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11167 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11168 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11169 else
11170 case `$CC -V 2>&1` in
11171 *"Compilers 5.0"*)
11172 wlarc=''
11173 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11174 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11175 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11176 ;;
11177 *)
11178 wlarc='${wl}'
11179 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11180 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11181 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11182 ;;
11183 esac
11184 fi
11185 hardcode_libdir_flag_spec='-R$libdir'
11186 hardcode_shlibpath_var=no
11187 case $host_os in
11188 solaris2.[0-5] | solaris2.[0-5].*) ;;
11189 *)
11190 # The compiler driver will combine and reorder linker options,
11191 # but understands `-z linker_flag'. GCC discards it without `$wl',
11192 # but is careful enough not to reorder.
11193 # Supported since Solaris 2.6 (maybe 2.5.1?)
11194 if test "$GCC" = yes; then
11195 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11196 else
11197 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11198 fi
11199 ;;
11200 esac
11201 link_all_deplibs=yes
11202 ;;
11203
11204 sunos4*)
11205 if test "x$host_vendor" = xsequent; then
11206 # Use $CC to link under sequent, because it throws in some extra .o
11207 # files that make .init and .fini sections work.
11208 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11209 else
11210 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11211 fi
11212 hardcode_libdir_flag_spec='-L$libdir'
11213 hardcode_direct=yes
11214 hardcode_minus_L=yes
11215 hardcode_shlibpath_var=no
11216 ;;
11217
11218 sysv4)
11219 case $host_vendor in
11220 sni)
11221 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11222 hardcode_direct=yes # is this really true???
11223 ;;
11224 siemens)
11225 ## LD is ld it makes a PLAMLIB
11226 ## CC just makes a GrossModule.
11227 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11228 reload_cmds='$CC -r -o $output$reload_objs'
11229 hardcode_direct=no
11230 ;;
11231 motorola)
11232 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11233 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11234 ;;
11235 esac
11236 runpath_var='LD_RUN_PATH'
11237 hardcode_shlibpath_var=no
11238 ;;
11239
11240 sysv4.3*)
11241 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11242 hardcode_shlibpath_var=no
11243 export_dynamic_flag_spec='-Bexport'
11244 ;;
11245
11246 sysv4*MP*)
11247 if test -d /usr/nec; then
11248 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11249 hardcode_shlibpath_var=no
11250 runpath_var=LD_RUN_PATH
11251 hardcode_runpath_var=yes
11252 ld_shlibs=yes
11253 fi
11254 ;;
11255
11256 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11257 no_undefined_flag='${wl}-z,text'
11258 archive_cmds_need_lc=no
11259 hardcode_shlibpath_var=no
11260 runpath_var='LD_RUN_PATH'
11261
11262 if test "$GCC" = yes; then
11263 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11264 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11265 else
11266 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11267 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11268 fi
11269 ;;
11270
11271 sysv5* | sco3.2v5* | sco5v6*)
11272 # Note: We can NOT use -z defs as we might desire, because we do not
11273 # link with -lc, and that would cause any symbols used from libc to
11274 # always be unresolved, which means just about no library would
11275 # ever link correctly. If we're not using GNU ld we use -z text
11276 # though, which does catch some bad symbols but isn't as heavy-handed
11277 # as -z defs.
11278 no_undefined_flag='${wl}-z,text'
11279 allow_undefined_flag='${wl}-z,nodefs'
11280 archive_cmds_need_lc=no
11281 hardcode_shlibpath_var=no
11282 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11283 hardcode_libdir_separator=':'
11284 link_all_deplibs=yes
11285 export_dynamic_flag_spec='${wl}-Bexport'
11286 runpath_var='LD_RUN_PATH'
11287
11288 if test "$GCC" = yes; then
11289 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11290 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11291 else
11292 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11293 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11294 fi
11295 ;;
11296
11297 uts4*)
11298 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11299 hardcode_libdir_flag_spec='-L$libdir'
11300 hardcode_shlibpath_var=no
11301 ;;
11302
11303 *)
11304 ld_shlibs=no
11305 ;;
11306 esac
11307
11308 if test x$host_vendor = xsni; then
11309 case $host in
11310 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11311 export_dynamic_flag_spec='${wl}-Blargedynsym'
11312 ;;
11313 esac
11314 fi
11315 fi
11316
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11318 $as_echo "$ld_shlibs" >&6; }
11319 test "$ld_shlibs" = no && can_build_shared=no
11320
11321 with_gnu_ld=$with_gnu_ld
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337 #
11338 # Do we need to explicitly link libc?
11339 #
11340 case "x$archive_cmds_need_lc" in
11341 x|xyes)
11342 # Assume -lc should be added
11343 archive_cmds_need_lc=yes
11344
11345 if test "$enable_shared" = yes && test "$GCC" = yes; then
11346 case $archive_cmds in
11347 *'~'*)
11348 # FIXME: we may have to deal with multi-command sequences.
11349 ;;
11350 '$CC '*)
11351 # Test whether the compiler implicitly links with -lc since on some
11352 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11353 # to ld, don't add -lc before -lgcc.
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11355 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11356 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11357 $as_echo_n "(cached) " >&6
11358 else
11359 $RM conftest*
11360 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11361
11362 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11363 (eval $ac_compile) 2>&5
11364 ac_status=$?
11365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11366 test $ac_status = 0; } 2>conftest.err; then
11367 soname=conftest
11368 lib=conftest
11369 libobjs=conftest.$ac_objext
11370 deplibs=
11371 wl=$lt_prog_compiler_wl
11372 pic_flag=$lt_prog_compiler_pic
11373 compiler_flags=-v
11374 linker_flags=-v
11375 verstring=
11376 output_objdir=.
11377 libname=conftest
11378 lt_save_allow_undefined_flag=$allow_undefined_flag
11379 allow_undefined_flag=
11380 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11381 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11382 ac_status=$?
11383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11384 test $ac_status = 0; }
11385 then
11386 lt_cv_archive_cmds_need_lc=no
11387 else
11388 lt_cv_archive_cmds_need_lc=yes
11389 fi
11390 allow_undefined_flag=$lt_save_allow_undefined_flag
11391 else
11392 cat conftest.err 1>&5
11393 fi
11394 $RM conftest*
11395
11396 fi
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11398 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11399 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11400 ;;
11401 esac
11402 fi
11403 ;;
11404 esac
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11563 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11564
11565 if test "$GCC" = yes; then
11566 case $host_os in
11567 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11568 *) lt_awk_arg="/^libraries:/" ;;
11569 esac
11570 case $host_os in
11571 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11572 *) lt_sed_strip_eq="s,=/,/,g" ;;
11573 esac
11574 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11575 case $lt_search_path_spec in
11576 *\;*)
11577 # if the path contains ";" then we assume it to be the separator
11578 # otherwise default to the standard path separator (i.e. ":") - it is
11579 # assumed that no part of a normal pathname contains ";" but that should
11580 # okay in the real world where ";" in dirpaths is itself problematic.
11581 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11582 ;;
11583 *)
11584 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11585 ;;
11586 esac
11587 # Ok, now we have the path, separated by spaces, we can step through it
11588 # and add multilib dir if necessary.
11589 lt_tmp_lt_search_path_spec=
11590 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11591 for lt_sys_path in $lt_search_path_spec; do
11592 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11593 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11594 else
11595 test -d "$lt_sys_path" && \
11596 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11597 fi
11598 done
11599 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11600 BEGIN {RS=" "; FS="/|\n";} {
11601 lt_foo="";
11602 lt_count=0;
11603 for (lt_i = NF; lt_i > 0; lt_i--) {
11604 if ($lt_i != "" && $lt_i != ".") {
11605 if ($lt_i == "..") {
11606 lt_count++;
11607 } else {
11608 if (lt_count == 0) {
11609 lt_foo="/" $lt_i lt_foo;
11610 } else {
11611 lt_count--;
11612 }
11613 }
11614 }
11615 }
11616 if (lt_foo != "") { lt_freq[lt_foo]++; }
11617 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11618 }'`
11619 # AWK program above erroneously prepends '/' to C:/dos/paths
11620 # for these hosts.
11621 case $host_os in
11622 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11623 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11624 esac
11625 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11626 else
11627 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11628 fi
11629 library_names_spec=
11630 libname_spec='lib$name'
11631 soname_spec=
11632 shrext_cmds=".so"
11633 postinstall_cmds=
11634 postuninstall_cmds=
11635 finish_cmds=
11636 finish_eval=
11637 shlibpath_var=
11638 shlibpath_overrides_runpath=unknown
11639 version_type=none
11640 dynamic_linker="$host_os ld.so"
11641 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11642 need_lib_prefix=unknown
11643 hardcode_into_libs=no
11644
11645 # when you set need_version to no, make sure it does not cause -set_version
11646 # flags to be left without arguments
11647 need_version=unknown
11648
11649 case $host_os in
11650 aix3*)
11651 version_type=linux
11652 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11653 shlibpath_var=LIBPATH
11654
11655 # AIX 3 has no versioning support, so we append a major version to the name.
11656 soname_spec='${libname}${release}${shared_ext}$major'
11657 ;;
11658
11659 aix[4-9]*)
11660 version_type=linux
11661 need_lib_prefix=no
11662 need_version=no
11663 hardcode_into_libs=yes
11664 if test "$host_cpu" = ia64; then
11665 # AIX 5 supports IA64
11666 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11667 shlibpath_var=LD_LIBRARY_PATH
11668 else
11669 # With GCC up to 2.95.x, collect2 would create an import file
11670 # for dependence libraries. The import file would start with
11671 # the line `#! .'. This would cause the generated library to
11672 # depend on `.', always an invalid library. This was fixed in
11673 # development snapshots of GCC prior to 3.0.
11674 case $host_os in
11675 aix4 | aix4.[01] | aix4.[01].*)
11676 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11677 echo ' yes '
11678 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11679 :
11680 else
11681 can_build_shared=no
11682 fi
11683 ;;
11684 esac
11685 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11686 # soname into executable. Probably we can add versioning support to
11687 # collect2, so additional links can be useful in future.
11688 if test "$aix_use_runtimelinking" = yes; then
11689 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11690 # instead of lib<name>.a to let people know that these are not
11691 # typical AIX shared libraries.
11692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11693 else
11694 # We preserve .a as extension for shared libraries through AIX4.2
11695 # and later when we are not doing run time linking.
11696 library_names_spec='${libname}${release}.a $libname.a'
11697 soname_spec='${libname}${release}${shared_ext}$major'
11698 fi
11699 shlibpath_var=LIBPATH
11700 fi
11701 ;;
11702
11703 amigaos*)
11704 case $host_cpu in
11705 powerpc)
11706 # Since July 2007 AmigaOS4 officially supports .so libraries.
11707 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11709 ;;
11710 m68k)
11711 library_names_spec='$libname.ixlibrary $libname.a'
11712 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11713 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'
11714 ;;
11715 esac
11716 ;;
11717
11718 beos*)
11719 library_names_spec='${libname}${shared_ext}'
11720 dynamic_linker="$host_os ld.so"
11721 shlibpath_var=LIBRARY_PATH
11722 ;;
11723
11724 bsdi[45]*)
11725 version_type=linux
11726 need_version=no
11727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11728 soname_spec='${libname}${release}${shared_ext}$major'
11729 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11730 shlibpath_var=LD_LIBRARY_PATH
11731 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11732 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11733 # the default ld.so.conf also contains /usr/contrib/lib and
11734 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11735 # libtool to hard-code these into programs
11736 ;;
11737
11738 cygwin* | mingw* | pw32* | cegcc*)
11739 version_type=windows
11740 shrext_cmds=".dll"
11741 need_version=no
11742 need_lib_prefix=no
11743
11744 case $GCC,$host_os in
11745 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11746 library_names_spec='$libname.dll.a'
11747 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11748 postinstall_cmds='base_file=`basename \${file}`~
11749 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11750 dldir=$destdir/`dirname \$dlpath`~
11751 test -d \$dldir || mkdir -p \$dldir~
11752 $install_prog $dir/$dlname \$dldir/$dlname~
11753 chmod a+x \$dldir/$dlname~
11754 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11755 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11756 fi'
11757 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11758 dlpath=$dir/\$dldll~
11759 $RM \$dlpath'
11760 shlibpath_overrides_runpath=yes
11761
11762 case $host_os in
11763 cygwin*)
11764 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11765 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11766
11767 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11768 ;;
11769 mingw* | cegcc*)
11770 # MinGW DLLs use traditional 'lib' prefix
11771 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11772 ;;
11773 pw32*)
11774 # pw32 DLLs use 'pw' prefix rather than 'lib'
11775 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11776 ;;
11777 esac
11778 ;;
11779
11780 *)
11781 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11782 ;;
11783 esac
11784 dynamic_linker='Win32 ld.exe'
11785 # FIXME: first we should search . and the directory the executable is in
11786 shlibpath_var=PATH
11787 ;;
11788
11789 darwin* | rhapsody*)
11790 dynamic_linker="$host_os dyld"
11791 version_type=darwin
11792 need_lib_prefix=no
11793 need_version=no
11794 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11795 soname_spec='${libname}${release}${major}$shared_ext'
11796 shlibpath_overrides_runpath=yes
11797 shlibpath_var=DYLD_LIBRARY_PATH
11798 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11799
11800 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11801 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11802 ;;
11803
11804 dgux*)
11805 version_type=linux
11806 need_lib_prefix=no
11807 need_version=no
11808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11809 soname_spec='${libname}${release}${shared_ext}$major'
11810 shlibpath_var=LD_LIBRARY_PATH
11811 ;;
11812
11813 freebsd* | dragonfly*)
11814 # DragonFly does not have aout. When/if they implement a new
11815 # versioning mechanism, adjust this.
11816 if test -x /usr/bin/objformat; then
11817 objformat=`/usr/bin/objformat`
11818 else
11819 case $host_os in
11820 freebsd[23].*) objformat=aout ;;
11821 *) objformat=elf ;;
11822 esac
11823 fi
11824 version_type=freebsd-$objformat
11825 case $version_type in
11826 freebsd-elf*)
11827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11828 need_version=no
11829 need_lib_prefix=no
11830 ;;
11831 freebsd-*)
11832 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11833 need_version=yes
11834 ;;
11835 esac
11836 shlibpath_var=LD_LIBRARY_PATH
11837 case $host_os in
11838 freebsd2.*)
11839 shlibpath_overrides_runpath=yes
11840 ;;
11841 freebsd3.[01]* | freebsdelf3.[01]*)
11842 shlibpath_overrides_runpath=yes
11843 hardcode_into_libs=yes
11844 ;;
11845 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11846 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11847 shlibpath_overrides_runpath=no
11848 hardcode_into_libs=yes
11849 ;;
11850 *) # from 4.6 on, and DragonFly
11851 shlibpath_overrides_runpath=yes
11852 hardcode_into_libs=yes
11853 ;;
11854 esac
11855 ;;
11856
11857 gnu*)
11858 version_type=linux
11859 need_lib_prefix=no
11860 need_version=no
11861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11862 soname_spec='${libname}${release}${shared_ext}$major'
11863 shlibpath_var=LD_LIBRARY_PATH
11864 hardcode_into_libs=yes
11865 ;;
11866
11867 haiku*)
11868 version_type=linux
11869 need_lib_prefix=no
11870 need_version=no
11871 dynamic_linker="$host_os runtime_loader"
11872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11873 soname_spec='${libname}${release}${shared_ext}$major'
11874 shlibpath_var=LIBRARY_PATH
11875 shlibpath_overrides_runpath=yes
11876 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11877 hardcode_into_libs=yes
11878 ;;
11879
11880 hpux9* | hpux10* | hpux11*)
11881 # Give a soname corresponding to the major version so that dld.sl refuses to
11882 # link against other versions.
11883 version_type=sunos
11884 need_lib_prefix=no
11885 need_version=no
11886 case $host_cpu in
11887 ia64*)
11888 shrext_cmds='.so'
11889 hardcode_into_libs=yes
11890 dynamic_linker="$host_os dld.so"
11891 shlibpath_var=LD_LIBRARY_PATH
11892 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11894 soname_spec='${libname}${release}${shared_ext}$major'
11895 if test "X$HPUX_IA64_MODE" = X32; then
11896 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11897 else
11898 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11899 fi
11900 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11901 ;;
11902 hppa*64*)
11903 shrext_cmds='.sl'
11904 hardcode_into_libs=yes
11905 dynamic_linker="$host_os dld.sl"
11906 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11907 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11911 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11912 ;;
11913 *)
11914 shrext_cmds='.sl'
11915 dynamic_linker="$host_os dld.sl"
11916 shlibpath_var=SHLIB_PATH
11917 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11919 soname_spec='${libname}${release}${shared_ext}$major'
11920 ;;
11921 esac
11922 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11923 postinstall_cmds='chmod 555 $lib'
11924 # or fails outright, so override atomically:
11925 install_override_mode=555
11926 ;;
11927
11928 interix[3-9]*)
11929 version_type=linux
11930 need_lib_prefix=no
11931 need_version=no
11932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11933 soname_spec='${libname}${release}${shared_ext}$major'
11934 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11935 shlibpath_var=LD_LIBRARY_PATH
11936 shlibpath_overrides_runpath=no
11937 hardcode_into_libs=yes
11938 ;;
11939
11940 irix5* | irix6* | nonstopux*)
11941 case $host_os in
11942 nonstopux*) version_type=nonstopux ;;
11943 *)
11944 if test "$lt_cv_prog_gnu_ld" = yes; then
11945 version_type=linux
11946 else
11947 version_type=irix
11948 fi ;;
11949 esac
11950 need_lib_prefix=no
11951 need_version=no
11952 soname_spec='${libname}${release}${shared_ext}$major'
11953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11954 case $host_os in
11955 irix5* | nonstopux*)
11956 libsuff= shlibsuff=
11957 ;;
11958 *)
11959 case $LD in # libtool.m4 will add one of these switches to LD
11960 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11961 libsuff= shlibsuff= libmagic=32-bit;;
11962 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11963 libsuff=32 shlibsuff=N32 libmagic=N32;;
11964 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11965 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11966 *) libsuff= shlibsuff= libmagic=never-match;;
11967 esac
11968 ;;
11969 esac
11970 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11971 shlibpath_overrides_runpath=no
11972 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11973 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11974 hardcode_into_libs=yes
11975 ;;
11976
11977 # No shared lib support for Linux oldld, aout, or coff.
11978 linux*oldld* | linux*aout* | linux*coff*)
11979 dynamic_linker=no
11980 ;;
11981
11982 # This must be Linux ELF.
11983
11984 # uclinux* changes (here and below) have been submitted to the libtool
11985 # project, but have not yet been accepted: they are GCC-local changes
11986 # for the time being. (See
11987 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
11988 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
11989 version_type=linux
11990 need_lib_prefix=no
11991 need_version=no
11992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11993 soname_spec='${libname}${release}${shared_ext}$major'
11994 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11995 shlibpath_var=LD_LIBRARY_PATH
11996 shlibpath_overrides_runpath=no
11997
11998 # Some binutils ld are patched to set DT_RUNPATH
11999 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12000 $as_echo_n "(cached) " >&6
12001 else
12002 lt_cv_shlibpath_overrides_runpath=no
12003 save_LDFLAGS=$LDFLAGS
12004 save_libdir=$libdir
12005 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12006 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12007 if test x$gcc_no_link = xyes; then
12008 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12009 fi
12010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12011 /* end confdefs.h. */
12012
12013 int
12014 main ()
12015 {
12016
12017 ;
12018 return 0;
12019 }
12020 _ACEOF
12021 if ac_fn_c_try_link "$LINENO"; then :
12022 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12023 lt_cv_shlibpath_overrides_runpath=yes
12024 fi
12025 fi
12026 rm -f core conftest.err conftest.$ac_objext \
12027 conftest$ac_exeext conftest.$ac_ext
12028 LDFLAGS=$save_LDFLAGS
12029 libdir=$save_libdir
12030
12031 fi
12032
12033 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12034
12035 # This implies no fast_install, which is unacceptable.
12036 # Some rework will be needed to allow for fast_install
12037 # before this can be enabled.
12038 hardcode_into_libs=yes
12039
12040 # Append ld.so.conf contents to the search path
12041 if test -f /etc/ld.so.conf; then
12042 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' ' '`
12043 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12044 fi
12045
12046 # We used to test for /lib/ld.so.1 and disable shared libraries on
12047 # powerpc, because MkLinux only supported shared libraries with the
12048 # GNU dynamic linker. Since this was broken with cross compilers,
12049 # most powerpc-linux boxes support dynamic linking these days and
12050 # people can always --disable-shared, the test was removed, and we
12051 # assume the GNU/Linux dynamic linker is in use.
12052 dynamic_linker='GNU/Linux ld.so'
12053 ;;
12054
12055 netbsd*)
12056 version_type=sunos
12057 need_lib_prefix=no
12058 need_version=no
12059 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12061 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12062 dynamic_linker='NetBSD (a.out) ld.so'
12063 else
12064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12065 soname_spec='${libname}${release}${shared_ext}$major'
12066 dynamic_linker='NetBSD ld.elf_so'
12067 fi
12068 shlibpath_var=LD_LIBRARY_PATH
12069 shlibpath_overrides_runpath=yes
12070 hardcode_into_libs=yes
12071 ;;
12072
12073 newsos6)
12074 version_type=linux
12075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12076 shlibpath_var=LD_LIBRARY_PATH
12077 shlibpath_overrides_runpath=yes
12078 ;;
12079
12080 *nto* | *qnx*)
12081 version_type=qnx
12082 need_lib_prefix=no
12083 need_version=no
12084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12085 soname_spec='${libname}${release}${shared_ext}$major'
12086 shlibpath_var=LD_LIBRARY_PATH
12087 shlibpath_overrides_runpath=no
12088 hardcode_into_libs=yes
12089 dynamic_linker='ldqnx.so'
12090 ;;
12091
12092 openbsd*)
12093 version_type=sunos
12094 sys_lib_dlsearch_path_spec="/usr/lib"
12095 need_lib_prefix=no
12096 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12097 case $host_os in
12098 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12099 *) need_version=no ;;
12100 esac
12101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12102 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12103 shlibpath_var=LD_LIBRARY_PATH
12104 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12105 case $host_os in
12106 openbsd2.[89] | openbsd2.[89].*)
12107 shlibpath_overrides_runpath=no
12108 ;;
12109 *)
12110 shlibpath_overrides_runpath=yes
12111 ;;
12112 esac
12113 else
12114 shlibpath_overrides_runpath=yes
12115 fi
12116 ;;
12117
12118 os2*)
12119 libname_spec='$name'
12120 shrext_cmds=".dll"
12121 need_lib_prefix=no
12122 library_names_spec='$libname${shared_ext} $libname.a'
12123 dynamic_linker='OS/2 ld.exe'
12124 shlibpath_var=LIBPATH
12125 ;;
12126
12127 osf3* | osf4* | osf5*)
12128 version_type=osf
12129 need_lib_prefix=no
12130 need_version=no
12131 soname_spec='${libname}${release}${shared_ext}$major'
12132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12133 shlibpath_var=LD_LIBRARY_PATH
12134 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12135 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12136 ;;
12137
12138 rdos*)
12139 dynamic_linker=no
12140 ;;
12141
12142 solaris*)
12143 version_type=linux
12144 need_lib_prefix=no
12145 need_version=no
12146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12147 soname_spec='${libname}${release}${shared_ext}$major'
12148 shlibpath_var=LD_LIBRARY_PATH
12149 shlibpath_overrides_runpath=yes
12150 hardcode_into_libs=yes
12151 # ldd complains unless libraries are executable
12152 postinstall_cmds='chmod +x $lib'
12153 ;;
12154
12155 sunos4*)
12156 version_type=sunos
12157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12158 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12159 shlibpath_var=LD_LIBRARY_PATH
12160 shlibpath_overrides_runpath=yes
12161 if test "$with_gnu_ld" = yes; then
12162 need_lib_prefix=no
12163 fi
12164 need_version=yes
12165 ;;
12166
12167 sysv4 | sysv4.3*)
12168 version_type=linux
12169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12170 soname_spec='${libname}${release}${shared_ext}$major'
12171 shlibpath_var=LD_LIBRARY_PATH
12172 case $host_vendor in
12173 sni)
12174 shlibpath_overrides_runpath=no
12175 need_lib_prefix=no
12176 runpath_var=LD_RUN_PATH
12177 ;;
12178 siemens)
12179 need_lib_prefix=no
12180 ;;
12181 motorola)
12182 need_lib_prefix=no
12183 need_version=no
12184 shlibpath_overrides_runpath=no
12185 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12186 ;;
12187 esac
12188 ;;
12189
12190 sysv4*MP*)
12191 if test -d /usr/nec ;then
12192 version_type=linux
12193 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12194 soname_spec='$libname${shared_ext}.$major'
12195 shlibpath_var=LD_LIBRARY_PATH
12196 fi
12197 ;;
12198
12199 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12200 version_type=freebsd-elf
12201 need_lib_prefix=no
12202 need_version=no
12203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12204 soname_spec='${libname}${release}${shared_ext}$major'
12205 shlibpath_var=LD_LIBRARY_PATH
12206 shlibpath_overrides_runpath=yes
12207 hardcode_into_libs=yes
12208 if test "$with_gnu_ld" = yes; then
12209 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12210 else
12211 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12212 case $host_os in
12213 sco3.2v5*)
12214 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12215 ;;
12216 esac
12217 fi
12218 sys_lib_dlsearch_path_spec='/usr/lib'
12219 ;;
12220
12221 tpf*)
12222 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12223 version_type=linux
12224 need_lib_prefix=no
12225 need_version=no
12226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12227 shlibpath_var=LD_LIBRARY_PATH
12228 shlibpath_overrides_runpath=no
12229 hardcode_into_libs=yes
12230 ;;
12231
12232 uts4*)
12233 version_type=linux
12234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12235 soname_spec='${libname}${release}${shared_ext}$major'
12236 shlibpath_var=LD_LIBRARY_PATH
12237 ;;
12238
12239 *)
12240 dynamic_linker=no
12241 ;;
12242 esac
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12244 $as_echo "$dynamic_linker" >&6; }
12245 test "$dynamic_linker" = no && can_build_shared=no
12246
12247 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12248 if test "$GCC" = yes; then
12249 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12250 fi
12251
12252 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12253 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12254 fi
12255 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12256 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12257 fi
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12351 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12352 hardcode_action=
12353 if test -n "$hardcode_libdir_flag_spec" ||
12354 test -n "$runpath_var" ||
12355 test "X$hardcode_automatic" = "Xyes" ; then
12356
12357 # We can hardcode non-existent directories.
12358 if test "$hardcode_direct" != no &&
12359 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12360 # have to relink, otherwise we might link with an installed library
12361 # when we should be linking with a yet-to-be-installed one
12362 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12363 test "$hardcode_minus_L" != no; then
12364 # Linking always hardcodes the temporary library directory.
12365 hardcode_action=relink
12366 else
12367 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12368 hardcode_action=immediate
12369 fi
12370 else
12371 # We cannot hardcode anything, or else we can only hardcode existing
12372 # directories.
12373 hardcode_action=unsupported
12374 fi
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12376 $as_echo "$hardcode_action" >&6; }
12377
12378 if test "$hardcode_action" = relink ||
12379 test "$inherit_rpath" = yes; then
12380 # Fast installation is not supported
12381 enable_fast_install=no
12382 elif test "$shlibpath_overrides_runpath" = yes ||
12383 test "$enable_shared" = no; then
12384 # Fast installation is not necessary
12385 enable_fast_install=needless
12386 fi
12387
12388
12389
12390
12391
12392
12393 if test "x$enable_dlopen" != xyes; then
12394 enable_dlopen=unknown
12395 enable_dlopen_self=unknown
12396 enable_dlopen_self_static=unknown
12397 else
12398 lt_cv_dlopen=no
12399 lt_cv_dlopen_libs=
12400
12401 case $host_os in
12402 beos*)
12403 lt_cv_dlopen="load_add_on"
12404 lt_cv_dlopen_libs=
12405 lt_cv_dlopen_self=yes
12406 ;;
12407
12408 mingw* | pw32* | cegcc*)
12409 lt_cv_dlopen="LoadLibrary"
12410 lt_cv_dlopen_libs=
12411 ;;
12412
12413 cygwin*)
12414 lt_cv_dlopen="dlopen"
12415 lt_cv_dlopen_libs=
12416 ;;
12417
12418 darwin*)
12419 # if libdl is installed we need to link against it
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12421 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12422 if ${ac_cv_lib_dl_dlopen+:} false; then :
12423 $as_echo_n "(cached) " >&6
12424 else
12425 ac_check_lib_save_LIBS=$LIBS
12426 LIBS="-ldl $LIBS"
12427 if test x$gcc_no_link = xyes; then
12428 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12429 fi
12430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12431 /* end confdefs.h. */
12432
12433 /* Override any GCC internal prototype to avoid an error.
12434 Use char because int might match the return type of a GCC
12435 builtin and then its argument prototype would still apply. */
12436 #ifdef __cplusplus
12437 extern "C"
12438 #endif
12439 char dlopen ();
12440 int
12441 main ()
12442 {
12443 return dlopen ();
12444 ;
12445 return 0;
12446 }
12447 _ACEOF
12448 if ac_fn_c_try_link "$LINENO"; then :
12449 ac_cv_lib_dl_dlopen=yes
12450 else
12451 ac_cv_lib_dl_dlopen=no
12452 fi
12453 rm -f core conftest.err conftest.$ac_objext \
12454 conftest$ac_exeext conftest.$ac_ext
12455 LIBS=$ac_check_lib_save_LIBS
12456 fi
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12458 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12459 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12460 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12461 else
12462
12463 lt_cv_dlopen="dyld"
12464 lt_cv_dlopen_libs=
12465 lt_cv_dlopen_self=yes
12466
12467 fi
12468
12469 ;;
12470
12471 *)
12472 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12473 if test "x$ac_cv_func_shl_load" = xyes; then :
12474 lt_cv_dlopen="shl_load"
12475 else
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12477 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12478 if ${ac_cv_lib_dld_shl_load+:} false; then :
12479 $as_echo_n "(cached) " >&6
12480 else
12481 ac_check_lib_save_LIBS=$LIBS
12482 LIBS="-ldld $LIBS"
12483 if test x$gcc_no_link = xyes; then
12484 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12485 fi
12486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12487 /* end confdefs.h. */
12488
12489 /* Override any GCC internal prototype to avoid an error.
12490 Use char because int might match the return type of a GCC
12491 builtin and then its argument prototype would still apply. */
12492 #ifdef __cplusplus
12493 extern "C"
12494 #endif
12495 char shl_load ();
12496 int
12497 main ()
12498 {
12499 return shl_load ();
12500 ;
12501 return 0;
12502 }
12503 _ACEOF
12504 if ac_fn_c_try_link "$LINENO"; then :
12505 ac_cv_lib_dld_shl_load=yes
12506 else
12507 ac_cv_lib_dld_shl_load=no
12508 fi
12509 rm -f core conftest.err conftest.$ac_objext \
12510 conftest$ac_exeext conftest.$ac_ext
12511 LIBS=$ac_check_lib_save_LIBS
12512 fi
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12514 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12515 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12516 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12517 else
12518 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12519 if test "x$ac_cv_func_dlopen" = xyes; then :
12520 lt_cv_dlopen="dlopen"
12521 else
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12523 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12524 if ${ac_cv_lib_dl_dlopen+:} false; then :
12525 $as_echo_n "(cached) " >&6
12526 else
12527 ac_check_lib_save_LIBS=$LIBS
12528 LIBS="-ldl $LIBS"
12529 if test x$gcc_no_link = xyes; then
12530 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12531 fi
12532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12533 /* end confdefs.h. */
12534
12535 /* Override any GCC internal prototype to avoid an error.
12536 Use char because int might match the return type of a GCC
12537 builtin and then its argument prototype would still apply. */
12538 #ifdef __cplusplus
12539 extern "C"
12540 #endif
12541 char dlopen ();
12542 int
12543 main ()
12544 {
12545 return dlopen ();
12546 ;
12547 return 0;
12548 }
12549 _ACEOF
12550 if ac_fn_c_try_link "$LINENO"; then :
12551 ac_cv_lib_dl_dlopen=yes
12552 else
12553 ac_cv_lib_dl_dlopen=no
12554 fi
12555 rm -f core conftest.err conftest.$ac_objext \
12556 conftest$ac_exeext conftest.$ac_ext
12557 LIBS=$ac_check_lib_save_LIBS
12558 fi
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12560 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12561 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12562 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12563 else
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12565 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12566 if ${ac_cv_lib_svld_dlopen+:} false; then :
12567 $as_echo_n "(cached) " >&6
12568 else
12569 ac_check_lib_save_LIBS=$LIBS
12570 LIBS="-lsvld $LIBS"
12571 if test x$gcc_no_link = xyes; then
12572 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12573 fi
12574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12575 /* end confdefs.h. */
12576
12577 /* Override any GCC internal prototype to avoid an error.
12578 Use char because int might match the return type of a GCC
12579 builtin and then its argument prototype would still apply. */
12580 #ifdef __cplusplus
12581 extern "C"
12582 #endif
12583 char dlopen ();
12584 int
12585 main ()
12586 {
12587 return dlopen ();
12588 ;
12589 return 0;
12590 }
12591 _ACEOF
12592 if ac_fn_c_try_link "$LINENO"; then :
12593 ac_cv_lib_svld_dlopen=yes
12594 else
12595 ac_cv_lib_svld_dlopen=no
12596 fi
12597 rm -f core conftest.err conftest.$ac_objext \
12598 conftest$ac_exeext conftest.$ac_ext
12599 LIBS=$ac_check_lib_save_LIBS
12600 fi
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12602 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12603 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12604 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12605 else
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12607 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12608 if ${ac_cv_lib_dld_dld_link+:} false; then :
12609 $as_echo_n "(cached) " >&6
12610 else
12611 ac_check_lib_save_LIBS=$LIBS
12612 LIBS="-ldld $LIBS"
12613 if test x$gcc_no_link = xyes; then
12614 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12615 fi
12616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12617 /* end confdefs.h. */
12618
12619 /* Override any GCC internal prototype to avoid an error.
12620 Use char because int might match the return type of a GCC
12621 builtin and then its argument prototype would still apply. */
12622 #ifdef __cplusplus
12623 extern "C"
12624 #endif
12625 char dld_link ();
12626 int
12627 main ()
12628 {
12629 return dld_link ();
12630 ;
12631 return 0;
12632 }
12633 _ACEOF
12634 if ac_fn_c_try_link "$LINENO"; then :
12635 ac_cv_lib_dld_dld_link=yes
12636 else
12637 ac_cv_lib_dld_dld_link=no
12638 fi
12639 rm -f core conftest.err conftest.$ac_objext \
12640 conftest$ac_exeext conftest.$ac_ext
12641 LIBS=$ac_check_lib_save_LIBS
12642 fi
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12644 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12645 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12646 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12647 fi
12648
12649
12650 fi
12651
12652
12653 fi
12654
12655
12656 fi
12657
12658
12659 fi
12660
12661
12662 fi
12663
12664 ;;
12665 esac
12666
12667 if test "x$lt_cv_dlopen" != xno; then
12668 enable_dlopen=yes
12669 else
12670 enable_dlopen=no
12671 fi
12672
12673 case $lt_cv_dlopen in
12674 dlopen)
12675 save_CPPFLAGS="$CPPFLAGS"
12676 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12677
12678 save_LDFLAGS="$LDFLAGS"
12679 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12680
12681 save_LIBS="$LIBS"
12682 LIBS="$lt_cv_dlopen_libs $LIBS"
12683
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12685 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12686 if ${lt_cv_dlopen_self+:} false; then :
12687 $as_echo_n "(cached) " >&6
12688 else
12689 if test "$cross_compiling" = yes; then :
12690 lt_cv_dlopen_self=cross
12691 else
12692 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12693 lt_status=$lt_dlunknown
12694 cat > conftest.$ac_ext <<_LT_EOF
12695 #line 12695 "configure"
12696 #include "confdefs.h"
12697
12698 #if HAVE_DLFCN_H
12699 #include <dlfcn.h>
12700 #endif
12701
12702 #include <stdio.h>
12703
12704 #ifdef RTLD_GLOBAL
12705 # define LT_DLGLOBAL RTLD_GLOBAL
12706 #else
12707 # ifdef DL_GLOBAL
12708 # define LT_DLGLOBAL DL_GLOBAL
12709 # else
12710 # define LT_DLGLOBAL 0
12711 # endif
12712 #endif
12713
12714 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12715 find out it does not work in some platform. */
12716 #ifndef LT_DLLAZY_OR_NOW
12717 # ifdef RTLD_LAZY
12718 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12719 # else
12720 # ifdef DL_LAZY
12721 # define LT_DLLAZY_OR_NOW DL_LAZY
12722 # else
12723 # ifdef RTLD_NOW
12724 # define LT_DLLAZY_OR_NOW RTLD_NOW
12725 # else
12726 # ifdef DL_NOW
12727 # define LT_DLLAZY_OR_NOW DL_NOW
12728 # else
12729 # define LT_DLLAZY_OR_NOW 0
12730 # endif
12731 # endif
12732 # endif
12733 # endif
12734 #endif
12735
12736 /* When -fvisbility=hidden is used, assume the code has been annotated
12737 correspondingly for the symbols needed. */
12738 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12739 void fnord () __attribute__((visibility("default")));
12740 #endif
12741
12742 void fnord () { int i=42; }
12743 int main ()
12744 {
12745 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12746 int status = $lt_dlunknown;
12747
12748 if (self)
12749 {
12750 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12751 else
12752 {
12753 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12754 else puts (dlerror ());
12755 }
12756 /* dlclose (self); */
12757 }
12758 else
12759 puts (dlerror ());
12760
12761 return status;
12762 }
12763 _LT_EOF
12764 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12765 (eval $ac_link) 2>&5
12766 ac_status=$?
12767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12768 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12769 (./conftest; exit; ) >&5 2>/dev/null
12770 lt_status=$?
12771 case x$lt_status in
12772 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12773 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12774 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12775 esac
12776 else :
12777 # compilation failed
12778 lt_cv_dlopen_self=no
12779 fi
12780 fi
12781 rm -fr conftest*
12782
12783
12784 fi
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12786 $as_echo "$lt_cv_dlopen_self" >&6; }
12787
12788 if test "x$lt_cv_dlopen_self" = xyes; then
12789 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12791 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12792 if ${lt_cv_dlopen_self_static+:} false; then :
12793 $as_echo_n "(cached) " >&6
12794 else
12795 if test "$cross_compiling" = yes; then :
12796 lt_cv_dlopen_self_static=cross
12797 else
12798 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12799 lt_status=$lt_dlunknown
12800 cat > conftest.$ac_ext <<_LT_EOF
12801 #line 12801 "configure"
12802 #include "confdefs.h"
12803
12804 #if HAVE_DLFCN_H
12805 #include <dlfcn.h>
12806 #endif
12807
12808 #include <stdio.h>
12809
12810 #ifdef RTLD_GLOBAL
12811 # define LT_DLGLOBAL RTLD_GLOBAL
12812 #else
12813 # ifdef DL_GLOBAL
12814 # define LT_DLGLOBAL DL_GLOBAL
12815 # else
12816 # define LT_DLGLOBAL 0
12817 # endif
12818 #endif
12819
12820 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12821 find out it does not work in some platform. */
12822 #ifndef LT_DLLAZY_OR_NOW
12823 # ifdef RTLD_LAZY
12824 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12825 # else
12826 # ifdef DL_LAZY
12827 # define LT_DLLAZY_OR_NOW DL_LAZY
12828 # else
12829 # ifdef RTLD_NOW
12830 # define LT_DLLAZY_OR_NOW RTLD_NOW
12831 # else
12832 # ifdef DL_NOW
12833 # define LT_DLLAZY_OR_NOW DL_NOW
12834 # else
12835 # define LT_DLLAZY_OR_NOW 0
12836 # endif
12837 # endif
12838 # endif
12839 # endif
12840 #endif
12841
12842 /* When -fvisbility=hidden is used, assume the code has been annotated
12843 correspondingly for the symbols needed. */
12844 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12845 void fnord () __attribute__((visibility("default")));
12846 #endif
12847
12848 void fnord () { int i=42; }
12849 int main ()
12850 {
12851 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12852 int status = $lt_dlunknown;
12853
12854 if (self)
12855 {
12856 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12857 else
12858 {
12859 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12860 else puts (dlerror ());
12861 }
12862 /* dlclose (self); */
12863 }
12864 else
12865 puts (dlerror ());
12866
12867 return status;
12868 }
12869 _LT_EOF
12870 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12871 (eval $ac_link) 2>&5
12872 ac_status=$?
12873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12874 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12875 (./conftest; exit; ) >&5 2>/dev/null
12876 lt_status=$?
12877 case x$lt_status in
12878 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12879 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12880 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12881 esac
12882 else :
12883 # compilation failed
12884 lt_cv_dlopen_self_static=no
12885 fi
12886 fi
12887 rm -fr conftest*
12888
12889
12890 fi
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12892 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12893 fi
12894
12895 CPPFLAGS="$save_CPPFLAGS"
12896 LDFLAGS="$save_LDFLAGS"
12897 LIBS="$save_LIBS"
12898 ;;
12899 esac
12900
12901 case $lt_cv_dlopen_self in
12902 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12903 *) enable_dlopen_self=unknown ;;
12904 esac
12905
12906 case $lt_cv_dlopen_self_static in
12907 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12908 *) enable_dlopen_self_static=unknown ;;
12909 esac
12910 fi
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928 striplib=
12929 old_striplib=
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12931 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12932 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12933 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12934 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12936 $as_echo "yes" >&6; }
12937 else
12938 # FIXME - insert some real tests, host_os isn't really good enough
12939 case $host_os in
12940 darwin*)
12941 if test -n "$STRIP" ; then
12942 striplib="$STRIP -x"
12943 old_striplib="$STRIP -S"
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12945 $as_echo "yes" >&6; }
12946 else
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12948 $as_echo "no" >&6; }
12949 fi
12950 ;;
12951 *)
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12953 $as_echo "no" >&6; }
12954 ;;
12955 esac
12956 fi
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969 # Report which library types will actually be built
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12971 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12973 $as_echo "$can_build_shared" >&6; }
12974
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12976 $as_echo_n "checking whether to build shared libraries... " >&6; }
12977 test "$can_build_shared" = "no" && enable_shared=no
12978
12979 # On AIX, shared libraries and static libraries use the same namespace, and
12980 # are all built from PIC.
12981 case $host_os in
12982 aix3*)
12983 test "$enable_shared" = yes && enable_static=no
12984 if test -n "$RANLIB"; then
12985 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12986 postinstall_cmds='$RANLIB $lib'
12987 fi
12988 ;;
12989
12990 aix[4-9]*)
12991 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12992 test "$enable_shared" = yes && enable_static=no
12993 fi
12994 ;;
12995 esac
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12997 $as_echo "$enable_shared" >&6; }
12998
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13000 $as_echo_n "checking whether to build static libraries... " >&6; }
13001 # Make sure either enable_shared or enable_static is yes.
13002 test "$enable_shared" = yes || enable_static=yes
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13004 $as_echo "$enable_static" >&6; }
13005
13006
13007
13008
13009 fi
13010 ac_ext=c
13011 ac_cpp='$CPP $CPPFLAGS'
13012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13015
13016 CC="$lt_save_CC"
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030 ac_config_commands="$ac_config_commands libtool"
13031
13032
13033
13034
13035 # Only expand once:
13036
13037
13038
13039
13040
13041 case $host in
13042 *-cygwin* | *-mingw*)
13043 # 'host' will be top-level target in the case of a target lib,
13044 # we must compare to with_cross_host to decide if this is a native
13045 # or cross-compiler and select where to install dlls appropriately.
13046 if test -n "$with_cross_host" &&
13047 test x"$with_cross_host" != x"no"; then
13048 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
13049 else
13050 lt_host_flags='-no-undefined -bindir "$(bindir)"';
13051 fi
13052 ;;
13053 *)
13054 lt_host_flags=
13055 ;;
13056 esac
13057
13058
13059
13060
13061
13062 #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
13063
13064 # We need gfortran to compile parts of the library
13065 #AC_PROG_FC(gfortran)
13066 FC="$GFORTRAN"
13067 ac_ext=${ac_fc_srcext-f}
13068 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
13069 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
13070 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
13071 if test -n "$ac_tool_prefix"; then
13072 for ac_prog in gfortran
13073 do
13074 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13075 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13077 $as_echo_n "checking for $ac_word... " >&6; }
13078 if ${ac_cv_prog_FC+:} false; then :
13079 $as_echo_n "(cached) " >&6
13080 else
13081 if test -n "$FC"; then
13082 ac_cv_prog_FC="$FC" # Let the user override the test.
13083 else
13084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13085 for as_dir in $PATH
13086 do
13087 IFS=$as_save_IFS
13088 test -z "$as_dir" && as_dir=.
13089 for ac_exec_ext in '' $ac_executable_extensions; do
13090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13091 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
13092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13093 break 2
13094 fi
13095 done
13096 done
13097 IFS=$as_save_IFS
13098
13099 fi
13100 fi
13101 FC=$ac_cv_prog_FC
13102 if test -n "$FC"; then
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
13104 $as_echo "$FC" >&6; }
13105 else
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13107 $as_echo "no" >&6; }
13108 fi
13109
13110
13111 test -n "$FC" && break
13112 done
13113 fi
13114 if test -z "$FC"; then
13115 ac_ct_FC=$FC
13116 for ac_prog in gfortran
13117 do
13118 # Extract the first word of "$ac_prog", so it can be a program name with args.
13119 set dummy $ac_prog; ac_word=$2
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13121 $as_echo_n "checking for $ac_word... " >&6; }
13122 if ${ac_cv_prog_ac_ct_FC+:} false; then :
13123 $as_echo_n "(cached) " >&6
13124 else
13125 if test -n "$ac_ct_FC"; then
13126 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
13127 else
13128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13129 for as_dir in $PATH
13130 do
13131 IFS=$as_save_IFS
13132 test -z "$as_dir" && as_dir=.
13133 for ac_exec_ext in '' $ac_executable_extensions; do
13134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13135 ac_cv_prog_ac_ct_FC="$ac_prog"
13136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13137 break 2
13138 fi
13139 done
13140 done
13141 IFS=$as_save_IFS
13142
13143 fi
13144 fi
13145 ac_ct_FC=$ac_cv_prog_ac_ct_FC
13146 if test -n "$ac_ct_FC"; then
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
13148 $as_echo "$ac_ct_FC" >&6; }
13149 else
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13151 $as_echo "no" >&6; }
13152 fi
13153
13154
13155 test -n "$ac_ct_FC" && break
13156 done
13157
13158 if test "x$ac_ct_FC" = x; then
13159 FC=""
13160 else
13161 case $cross_compiling:$ac_tool_warned in
13162 yes:)
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13164 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13165 ac_tool_warned=yes ;;
13166 esac
13167 FC=$ac_ct_FC
13168 fi
13169 fi
13170
13171
13172 # Provide some information about the compiler.
13173 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
13174 set X $ac_compile
13175 ac_compiler=$2
13176 for ac_option in --version -v -V -qversion; do
13177 { { ac_try="$ac_compiler $ac_option >&5"
13178 case "(($ac_try" in
13179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13180 *) ac_try_echo=$ac_try;;
13181 esac
13182 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13183 $as_echo "$ac_try_echo"; } >&5
13184 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13185 ac_status=$?
13186 if test -s conftest.err; then
13187 sed '10a\
13188 ... rest of stderr output deleted ...
13189 10q' conftest.err >conftest.er1
13190 cat conftest.er1 >&5
13191 fi
13192 rm -f conftest.er1 conftest.err
13193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13194 test $ac_status = 0; }
13195 done
13196 rm -f a.out
13197
13198 # If we don't use `.F' as extension, the preprocessor is not run on the
13199 # input file. (Note that this only needs to work for GNU compilers.)
13200 ac_save_ext=$ac_ext
13201 ac_ext=F
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
13203 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
13204 if ${ac_cv_fc_compiler_gnu+:} false; then :
13205 $as_echo_n "(cached) " >&6
13206 else
13207 cat > conftest.$ac_ext <<_ACEOF
13208 program main
13209 #ifndef __GNUC__
13210 choke me
13211 #endif
13212
13213 end
13214 _ACEOF
13215 if ac_fn_fc_try_compile "$LINENO"; then :
13216 ac_compiler_gnu=yes
13217 else
13218 ac_compiler_gnu=no
13219 fi
13220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13221 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
13222
13223 fi
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
13225 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
13226 ac_ext=$ac_save_ext
13227 ac_test_FCFLAGS=${FCFLAGS+set}
13228 ac_save_FCFLAGS=$FCFLAGS
13229 FCFLAGS=
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
13231 $as_echo_n "checking whether $FC accepts -g... " >&6; }
13232 if ${ac_cv_prog_fc_g+:} false; then :
13233 $as_echo_n "(cached) " >&6
13234 else
13235 FCFLAGS=-g
13236 cat > conftest.$ac_ext <<_ACEOF
13237 program main
13238
13239 end
13240 _ACEOF
13241 if ac_fn_fc_try_compile "$LINENO"; then :
13242 ac_cv_prog_fc_g=yes
13243 else
13244 ac_cv_prog_fc_g=no
13245 fi
13246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13247
13248 fi
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
13250 $as_echo "$ac_cv_prog_fc_g" >&6; }
13251 if test "$ac_test_FCFLAGS" = set; then
13252 FCFLAGS=$ac_save_FCFLAGS
13253 elif test $ac_cv_prog_fc_g = yes; then
13254 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
13255 FCFLAGS="-g -O2"
13256 else
13257 FCFLAGS="-g"
13258 fi
13259 else
13260 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
13261 FCFLAGS="-O2"
13262 else
13263 FCFLAGS=
13264 fi
13265 fi
13266
13267 if test $ac_compiler_gnu = yes; then
13268 GFC=yes
13269 else
13270 GFC=
13271 fi
13272 ac_ext=c
13273 ac_cpp='$CPP $CPPFLAGS'
13274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13277
13278 ac_ext=${ac_fc_srcext-f}
13279 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
13280 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
13281 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
13282
13283
13284 if test -z "$FC" || test "X$FC" = "Xno"; then
13285 _lt_disable_FC=yes
13286 fi
13287
13288 archive_cmds_need_lc_FC=no
13289 allow_undefined_flag_FC=
13290 always_export_symbols_FC=no
13291 archive_expsym_cmds_FC=
13292 export_dynamic_flag_spec_FC=
13293 hardcode_direct_FC=no
13294 hardcode_direct_absolute_FC=no
13295 hardcode_libdir_flag_spec_FC=
13296 hardcode_libdir_flag_spec_ld_FC=
13297 hardcode_libdir_separator_FC=
13298 hardcode_minus_L_FC=no
13299 hardcode_automatic_FC=no
13300 inherit_rpath_FC=no
13301 module_cmds_FC=
13302 module_expsym_cmds_FC=
13303 link_all_deplibs_FC=unknown
13304 old_archive_cmds_FC=$old_archive_cmds
13305 reload_flag_FC=$reload_flag
13306 reload_cmds_FC=$reload_cmds
13307 no_undefined_flag_FC=
13308 whole_archive_flag_spec_FC=
13309 enable_shared_with_static_runtimes_FC=no
13310
13311 # Source file extension for fc test sources.
13312 ac_ext=${ac_fc_srcext-f}
13313
13314 # Object file extension for compiled fc test sources.
13315 objext=o
13316 objext_FC=$objext
13317
13318 # No sense in running all these tests if we already determined that
13319 # the FC compiler isn't working. Some variables (like enable_shared)
13320 # are currently assumed to apply to all compilers on this platform,
13321 # and will be corrupted by setting them based on a non-working compiler.
13322 if test "$_lt_disable_FC" != yes; then
13323 # Code to be used in simple compile tests
13324 lt_simple_compile_test_code="\
13325 subroutine t
13326 return
13327 end
13328 "
13329
13330 # Code to be used in simple link tests
13331 lt_simple_link_test_code="\
13332 program t
13333 end
13334 "
13335
13336 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13337
13338
13339
13340
13341
13342
13343 # If no C compiler was specified, use CC.
13344 LTCC=${LTCC-"$CC"}
13345
13346 # If no C compiler flags were specified, use CFLAGS.
13347 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13348
13349 # Allow CC to be a program name with arguments.
13350 compiler=$CC
13351
13352
13353 # save warnings/boilerplate of simple test code
13354 ac_outfile=conftest.$ac_objext
13355 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13356 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13357 _lt_compiler_boilerplate=`cat conftest.err`
13358 $RM conftest*
13359
13360 ac_outfile=conftest.$ac_objext
13361 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13362 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13363 _lt_linker_boilerplate=`cat conftest.err`
13364 $RM -r conftest*
13365
13366
13367 # Allow CC to be a program name with arguments.
13368 lt_save_CC="$CC"
13369 lt_save_GCC=$GCC
13370 CC=${FC-"f95"}
13371 compiler=$CC
13372 GCC=$ac_cv_fc_compiler_gnu
13373
13374 compiler_FC=$CC
13375 for cc_temp in $compiler""; do
13376 case $cc_temp in
13377 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13378 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13379 \-*) ;;
13380 *) break;;
13381 esac
13382 done
13383 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13384
13385
13386 if test -n "$compiler"; then
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13388 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13390 $as_echo "$can_build_shared" >&6; }
13391
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13393 $as_echo_n "checking whether to build shared libraries... " >&6; }
13394 test "$can_build_shared" = "no" && enable_shared=no
13395
13396 # On AIX, shared libraries and static libraries use the same namespace, and
13397 # are all built from PIC.
13398 case $host_os in
13399 aix3*)
13400 test "$enable_shared" = yes && enable_static=no
13401 if test -n "$RANLIB"; then
13402 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13403 postinstall_cmds='$RANLIB $lib'
13404 fi
13405 ;;
13406 aix[4-9]*)
13407 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13408 test "$enable_shared" = yes && enable_static=no
13409 fi
13410 ;;
13411 esac
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13413 $as_echo "$enable_shared" >&6; }
13414
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13416 $as_echo_n "checking whether to build static libraries... " >&6; }
13417 # Make sure either enable_shared or enable_static is yes.
13418 test "$enable_shared" = yes || enable_static=yes
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13420 $as_echo "$enable_static" >&6; }
13421
13422 GCC_FC="$ac_cv_fc_compiler_gnu"
13423 LD_FC="$LD"
13424
13425 ## CAVEAT EMPTOR:
13426 ## There is no encapsulation within the following macros, do not change
13427 ## the running order or otherwise move them around unless you know exactly
13428 ## what you are doing...
13429 # Dependencies to place before and after the object being linked:
13430 predep_objects_FC=
13431 postdep_objects_FC=
13432 predeps_FC=
13433 postdeps_FC=
13434 compiler_lib_search_path_FC=
13435
13436 cat > conftest.$ac_ext <<_LT_EOF
13437 subroutine foo
13438 implicit none
13439 integer a
13440 a=0
13441 return
13442 end
13443 _LT_EOF
13444
13445 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13446 (eval $ac_compile) 2>&5
13447 ac_status=$?
13448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13449 test $ac_status = 0; }; then
13450 # Parse the compiler output and extract the necessary
13451 # objects, libraries and library flags.
13452
13453 # Sentinel used to keep track of whether or not we are before
13454 # the conftest object file.
13455 pre_test_object_deps_done=no
13456
13457 for p in `eval "$output_verbose_link_cmd"`; do
13458 case $p in
13459
13460 -L* | -R* | -l*)
13461 # Some compilers place space between "-{L,R}" and the path.
13462 # Remove the space.
13463 if test $p = "-L" ||
13464 test $p = "-R"; then
13465 prev=$p
13466 continue
13467 else
13468 prev=
13469 fi
13470
13471 if test "$pre_test_object_deps_done" = no; then
13472 case $p in
13473 -L* | -R*)
13474 # Internal compiler library paths should come after those
13475 # provided the user. The postdeps already come after the
13476 # user supplied libs so there is no need to process them.
13477 if test -z "$compiler_lib_search_path_FC"; then
13478 compiler_lib_search_path_FC="${prev}${p}"
13479 else
13480 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
13481 fi
13482 ;;
13483 # The "-l" case would never come before the object being
13484 # linked, so don't bother handling this case.
13485 esac
13486 else
13487 if test -z "$postdeps_FC"; then
13488 postdeps_FC="${prev}${p}"
13489 else
13490 postdeps_FC="${postdeps_FC} ${prev}${p}"
13491 fi
13492 fi
13493 ;;
13494
13495 *.$objext)
13496 # This assumes that the test object file only shows up
13497 # once in the compiler output.
13498 if test "$p" = "conftest.$objext"; then
13499 pre_test_object_deps_done=yes
13500 continue
13501 fi
13502
13503 if test "$pre_test_object_deps_done" = no; then
13504 if test -z "$predep_objects_FC"; then
13505 predep_objects_FC="$p"
13506 else
13507 predep_objects_FC="$predep_objects_FC $p"
13508 fi
13509 else
13510 if test -z "$postdep_objects_FC"; then
13511 postdep_objects_FC="$p"
13512 else
13513 postdep_objects_FC="$postdep_objects_FC $p"
13514 fi
13515 fi
13516 ;;
13517
13518 *) ;; # Ignore the rest.
13519
13520 esac
13521 done
13522
13523 # Clean up.
13524 rm -f a.out a.exe
13525 else
13526 echo "libtool.m4: error: problem compiling FC test program"
13527 fi
13528
13529 $RM -f confest.$objext
13530
13531 # PORTME: override above test on systems where it is broken
13532
13533
13534 case " $postdeps_FC " in
13535 *" -lc "*) archive_cmds_need_lc_FC=no ;;
13536 esac
13537 compiler_lib_search_dirs_FC=
13538 if test -n "${compiler_lib_search_path_FC}"; then
13539 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13540 fi
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572 lt_prog_compiler_wl_FC=
13573 lt_prog_compiler_pic_FC=
13574 lt_prog_compiler_static_FC=
13575
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13577 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13578
13579 if test "$GCC" = yes; then
13580 lt_prog_compiler_wl_FC='-Wl,'
13581 lt_prog_compiler_static_FC='-static'
13582
13583 case $host_os in
13584 aix*)
13585 # All AIX code is PIC.
13586 if test "$host_cpu" = ia64; then
13587 # AIX 5 now supports IA64 processor
13588 lt_prog_compiler_static_FC='-Bstatic'
13589 fi
13590 lt_prog_compiler_pic_FC='-fPIC'
13591 ;;
13592
13593 amigaos*)
13594 case $host_cpu in
13595 powerpc)
13596 # see comment about AmigaOS4 .so support
13597 lt_prog_compiler_pic_FC='-fPIC'
13598 ;;
13599 m68k)
13600 # FIXME: we need at least 68020 code to build shared libraries, but
13601 # adding the `-m68020' flag to GCC prevents building anything better,
13602 # like `-m68040'.
13603 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
13604 ;;
13605 esac
13606 ;;
13607
13608 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13609 # PIC is the default for these OSes.
13610 ;;
13611
13612 mingw* | cygwin* | pw32* | os2* | cegcc*)
13613 # This hack is so that the source file can tell whether it is being
13614 # built for inclusion in a dll (and should export symbols for example).
13615 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13616 # (--disable-auto-import) libraries
13617 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13618 ;;
13619
13620 darwin* | rhapsody*)
13621 # PIC is the default on this platform
13622 # Common symbols not allowed in MH_DYLIB files
13623 lt_prog_compiler_pic_FC='-fno-common'
13624 ;;
13625
13626 haiku*)
13627 # PIC is the default for Haiku.
13628 # The "-static" flag exists, but is broken.
13629 lt_prog_compiler_static_FC=
13630 ;;
13631
13632 hpux*)
13633 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13634 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13635 # sets the default TLS model and affects inlining.
13636 case $host_cpu in
13637 hppa*64*)
13638 # +Z the default
13639 ;;
13640 *)
13641 lt_prog_compiler_pic_FC='-fPIC'
13642 ;;
13643 esac
13644 ;;
13645
13646 interix[3-9]*)
13647 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13648 # Instead, we relocate shared libraries at runtime.
13649 ;;
13650
13651 msdosdjgpp*)
13652 # Just because we use GCC doesn't mean we suddenly get shared libraries
13653 # on systems that don't support them.
13654 lt_prog_compiler_can_build_shared_FC=no
13655 enable_shared=no
13656 ;;
13657
13658 *nto* | *qnx*)
13659 # QNX uses GNU C++, but need to define -shared option too, otherwise
13660 # it will coredump.
13661 lt_prog_compiler_pic_FC='-fPIC -shared'
13662 ;;
13663
13664 sysv4*MP*)
13665 if test -d /usr/nec; then
13666 lt_prog_compiler_pic_FC=-Kconform_pic
13667 fi
13668 ;;
13669
13670 *)
13671 lt_prog_compiler_pic_FC='-fPIC'
13672 ;;
13673 esac
13674
13675 case $cc_basename in
13676 nvcc*) # Cuda Compiler Driver 2.2
13677 lt_prog_compiler_wl_FC='-Xlinker '
13678 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
13679 ;;
13680 esac
13681 else
13682 # PORTME Check for flag to pass linker flags through the system compiler.
13683 case $host_os in
13684 aix*)
13685 lt_prog_compiler_wl_FC='-Wl,'
13686 if test "$host_cpu" = ia64; then
13687 # AIX 5 now supports IA64 processor
13688 lt_prog_compiler_static_FC='-Bstatic'
13689 else
13690 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
13691 fi
13692 ;;
13693
13694 mingw* | cygwin* | pw32* | os2* | cegcc*)
13695 # This hack is so that the source file can tell whether it is being
13696 # built for inclusion in a dll (and should export symbols for example).
13697 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13698 ;;
13699
13700 hpux9* | hpux10* | hpux11*)
13701 lt_prog_compiler_wl_FC='-Wl,'
13702 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13703 # not for PA HP-UX.
13704 case $host_cpu in
13705 hppa*64*|ia64*)
13706 # +Z the default
13707 ;;
13708 *)
13709 lt_prog_compiler_pic_FC='+Z'
13710 ;;
13711 esac
13712 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13713 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
13714 ;;
13715
13716 irix5* | irix6* | nonstopux*)
13717 lt_prog_compiler_wl_FC='-Wl,'
13718 # PIC (with -KPIC) is the default.
13719 lt_prog_compiler_static_FC='-non_shared'
13720 ;;
13721
13722 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13723 case $cc_basename in
13724 # old Intel for x86_64 which still supported -KPIC.
13725 ecc*)
13726 lt_prog_compiler_wl_FC='-Wl,'
13727 lt_prog_compiler_pic_FC='-KPIC'
13728 lt_prog_compiler_static_FC='-static'
13729 ;;
13730 # icc used to be incompatible with GCC.
13731 # ICC 10 doesn't accept -KPIC any more.
13732 icc* | ifort*)
13733 lt_prog_compiler_wl_FC='-Wl,'
13734 lt_prog_compiler_pic_FC='-fPIC'
13735 lt_prog_compiler_static_FC='-static'
13736 ;;
13737 # Lahey Fortran 8.1.
13738 lf95*)
13739 lt_prog_compiler_wl_FC='-Wl,'
13740 lt_prog_compiler_pic_FC='--shared'
13741 lt_prog_compiler_static_FC='--static'
13742 ;;
13743 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13744 # Portland Group compilers (*not* the Pentium gcc compiler,
13745 # which looks to be a dead project)
13746 lt_prog_compiler_wl_FC='-Wl,'
13747 lt_prog_compiler_pic_FC='-fpic'
13748 lt_prog_compiler_static_FC='-Bstatic'
13749 ;;
13750 ccc*)
13751 lt_prog_compiler_wl_FC='-Wl,'
13752 # All Alpha code is PIC.
13753 lt_prog_compiler_static_FC='-non_shared'
13754 ;;
13755 xl* | bgxl* | bgf* | mpixl*)
13756 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13757 lt_prog_compiler_wl_FC='-Wl,'
13758 lt_prog_compiler_pic_FC='-qpic'
13759 lt_prog_compiler_static_FC='-qstaticlink'
13760 ;;
13761 *)
13762 case `$CC -V 2>&1 | sed 5q` in
13763 *Sun\ F* | *Sun*Fortran*)
13764 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13765 lt_prog_compiler_pic_FC='-KPIC'
13766 lt_prog_compiler_static_FC='-Bstatic'
13767 lt_prog_compiler_wl_FC=''
13768 ;;
13769 *Sun\ C*)
13770 # Sun C 5.9
13771 lt_prog_compiler_pic_FC='-KPIC'
13772 lt_prog_compiler_static_FC='-Bstatic'
13773 lt_prog_compiler_wl_FC='-Wl,'
13774 ;;
13775 esac
13776 ;;
13777 esac
13778 ;;
13779
13780 newsos6)
13781 lt_prog_compiler_pic_FC='-KPIC'
13782 lt_prog_compiler_static_FC='-Bstatic'
13783 ;;
13784
13785 *nto* | *qnx*)
13786 # QNX uses GNU C++, but need to define -shared option too, otherwise
13787 # it will coredump.
13788 lt_prog_compiler_pic_FC='-fPIC -shared'
13789 ;;
13790
13791 osf3* | osf4* | osf5*)
13792 lt_prog_compiler_wl_FC='-Wl,'
13793 # All OSF/1 code is PIC.
13794 lt_prog_compiler_static_FC='-non_shared'
13795 ;;
13796
13797 rdos*)
13798 lt_prog_compiler_static_FC='-non_shared'
13799 ;;
13800
13801 solaris*)
13802 lt_prog_compiler_pic_FC='-KPIC'
13803 lt_prog_compiler_static_FC='-Bstatic'
13804 case $cc_basename in
13805 f77* | f90* | f95*)
13806 lt_prog_compiler_wl_FC='-Qoption ld ';;
13807 *)
13808 lt_prog_compiler_wl_FC='-Wl,';;
13809 esac
13810 ;;
13811
13812 sunos4*)
13813 lt_prog_compiler_wl_FC='-Qoption ld '
13814 lt_prog_compiler_pic_FC='-PIC'
13815 lt_prog_compiler_static_FC='-Bstatic'
13816 ;;
13817
13818 sysv4 | sysv4.2uw2* | sysv4.3*)
13819 lt_prog_compiler_wl_FC='-Wl,'
13820 lt_prog_compiler_pic_FC='-KPIC'
13821 lt_prog_compiler_static_FC='-Bstatic'
13822 ;;
13823
13824 sysv4*MP*)
13825 if test -d /usr/nec ;then
13826 lt_prog_compiler_pic_FC='-Kconform_pic'
13827 lt_prog_compiler_static_FC='-Bstatic'
13828 fi
13829 ;;
13830
13831 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13832 lt_prog_compiler_wl_FC='-Wl,'
13833 lt_prog_compiler_pic_FC='-KPIC'
13834 lt_prog_compiler_static_FC='-Bstatic'
13835 ;;
13836
13837 unicos*)
13838 lt_prog_compiler_wl_FC='-Wl,'
13839 lt_prog_compiler_can_build_shared_FC=no
13840 ;;
13841
13842 uts4*)
13843 lt_prog_compiler_pic_FC='-pic'
13844 lt_prog_compiler_static_FC='-Bstatic'
13845 ;;
13846
13847 *)
13848 lt_prog_compiler_can_build_shared_FC=no
13849 ;;
13850 esac
13851 fi
13852
13853 case $host_os in
13854 # For platforms which do not support PIC, -DPIC is meaningless:
13855 *djgpp*)
13856 lt_prog_compiler_pic_FC=
13857 ;;
13858 *)
13859 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
13860 ;;
13861 esac
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
13863 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
13864
13865
13866
13867 #
13868 # Check to make sure the PIC flag actually works.
13869 #
13870 if test -n "$lt_prog_compiler_pic_FC"; then
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
13872 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
13873 if ${lt_cv_prog_compiler_pic_works_FC+:} false; then :
13874 $as_echo_n "(cached) " >&6
13875 else
13876 lt_cv_prog_compiler_pic_works_FC=no
13877 ac_outfile=conftest.$ac_objext
13878 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13879 lt_compiler_flag="$lt_prog_compiler_pic_FC"
13880 # Insert the option either (1) after the last *FLAGS variable, or
13881 # (2) before a word containing "conftest.", or (3) at the end.
13882 # Note that $ac_compile itself does not contain backslashes and begins
13883 # with a dollar sign (not a hyphen), so the echo should work correctly.
13884 # The option is referenced via a variable to avoid confusing sed.
13885 lt_compile=`echo "$ac_compile" | $SED \
13886 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13887 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13888 -e 's:$: $lt_compiler_flag:'`
13889 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13890 (eval "$lt_compile" 2>conftest.err)
13891 ac_status=$?
13892 cat conftest.err >&5
13893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894 if (exit $ac_status) && test -s "$ac_outfile"; then
13895 # The compiler can only warn and ignore the option if not recognized
13896 # So say no if there are warnings other than the usual output.
13897 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13898 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13899 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13900 lt_cv_prog_compiler_pic_works_FC=yes
13901 fi
13902 fi
13903 $RM conftest*
13904
13905 fi
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
13907 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
13908
13909 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
13910 case $lt_prog_compiler_pic_FC in
13911 "" | " "*) ;;
13912 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
13913 esac
13914 else
13915 lt_prog_compiler_pic_FC=
13916 lt_prog_compiler_can_build_shared_FC=no
13917 fi
13918
13919 fi
13920
13921
13922
13923 #
13924 # Check to make sure the static flag actually works.
13925 #
13926 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13928 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13929 if ${lt_cv_prog_compiler_static_works_FC+:} false; then :
13930 $as_echo_n "(cached) " >&6
13931 else
13932 lt_cv_prog_compiler_static_works_FC=no
13933 save_LDFLAGS="$LDFLAGS"
13934 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13935 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13936 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13937 # The linker can only warn and ignore the option if not recognized
13938 # So say no if there are warnings
13939 if test -s conftest.err; then
13940 # Append any errors to the config.log.
13941 cat conftest.err 1>&5
13942 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13943 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13944 if diff conftest.exp conftest.er2 >/dev/null; then
13945 lt_cv_prog_compiler_static_works_FC=yes
13946 fi
13947 else
13948 lt_cv_prog_compiler_static_works_FC=yes
13949 fi
13950 fi
13951 $RM -r conftest*
13952 LDFLAGS="$save_LDFLAGS"
13953
13954 fi
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
13956 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
13957
13958 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
13959 :
13960 else
13961 lt_prog_compiler_static_FC=
13962 fi
13963
13964
13965
13966
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13968 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13969 if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
13970 $as_echo_n "(cached) " >&6
13971 else
13972 lt_cv_prog_compiler_c_o_FC=no
13973 $RM -r conftest 2>/dev/null
13974 mkdir conftest
13975 cd conftest
13976 mkdir out
13977 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13978
13979 lt_compiler_flag="-o out/conftest2.$ac_objext"
13980 # Insert the option either (1) after the last *FLAGS variable, or
13981 # (2) before a word containing "conftest.", or (3) at the end.
13982 # Note that $ac_compile itself does not contain backslashes and begins
13983 # with a dollar sign (not a hyphen), so the echo should work correctly.
13984 lt_compile=`echo "$ac_compile" | $SED \
13985 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13986 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13987 -e 's:$: $lt_compiler_flag:'`
13988 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13989 (eval "$lt_compile" 2>out/conftest.err)
13990 ac_status=$?
13991 cat out/conftest.err >&5
13992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13994 then
13995 # The compiler can only warn and ignore the option if not recognized
13996 # So say no if there are warnings
13997 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13998 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13999 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14000 lt_cv_prog_compiler_c_o_FC=yes
14001 fi
14002 fi
14003 chmod u+w . 2>&5
14004 $RM conftest*
14005 # SGI C++ compiler will create directory out/ii_files/ for
14006 # template instantiation
14007 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14008 $RM out/* && rmdir out
14009 cd ..
14010 $RM -r conftest
14011 $RM conftest*
14012
14013 fi
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
14015 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
14016
14017
14018
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14020 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14021 if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
14022 $as_echo_n "(cached) " >&6
14023 else
14024 lt_cv_prog_compiler_c_o_FC=no
14025 $RM -r conftest 2>/dev/null
14026 mkdir conftest
14027 cd conftest
14028 mkdir out
14029 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14030
14031 lt_compiler_flag="-o out/conftest2.$ac_objext"
14032 # Insert the option either (1) after the last *FLAGS variable, or
14033 # (2) before a word containing "conftest.", or (3) at the end.
14034 # Note that $ac_compile itself does not contain backslashes and begins
14035 # with a dollar sign (not a hyphen), so the echo should work correctly.
14036 lt_compile=`echo "$ac_compile" | $SED \
14037 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14038 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14039 -e 's:$: $lt_compiler_flag:'`
14040 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14041 (eval "$lt_compile" 2>out/conftest.err)
14042 ac_status=$?
14043 cat out/conftest.err >&5
14044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14046 then
14047 # The compiler can only warn and ignore the option if not recognized
14048 # So say no if there are warnings
14049 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14050 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14051 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14052 lt_cv_prog_compiler_c_o_FC=yes
14053 fi
14054 fi
14055 chmod u+w . 2>&5
14056 $RM conftest*
14057 # SGI C++ compiler will create directory out/ii_files/ for
14058 # template instantiation
14059 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14060 $RM out/* && rmdir out
14061 cd ..
14062 $RM -r conftest
14063 $RM conftest*
14064
14065 fi
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
14067 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
14068
14069
14070
14071
14072 hard_links="nottested"
14073 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
14074 # do not overwrite the value of need_locks provided by the user
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14076 $as_echo_n "checking if we can lock with hard links... " >&6; }
14077 hard_links=yes
14078 $RM conftest*
14079 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14080 touch conftest.a
14081 ln conftest.a conftest.b 2>&5 || hard_links=no
14082 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14084 $as_echo "$hard_links" >&6; }
14085 if test "$hard_links" = no; then
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14087 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14088 need_locks=warn
14089 fi
14090 else
14091 need_locks=no
14092 fi
14093
14094
14095
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14097 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14098
14099 runpath_var=
14100 allow_undefined_flag_FC=
14101 always_export_symbols_FC=no
14102 archive_cmds_FC=
14103 archive_expsym_cmds_FC=
14104 compiler_needs_object_FC=no
14105 enable_shared_with_static_runtimes_FC=no
14106 export_dynamic_flag_spec_FC=
14107 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14108 hardcode_automatic_FC=no
14109 hardcode_direct_FC=no
14110 hardcode_direct_absolute_FC=no
14111 hardcode_libdir_flag_spec_FC=
14112 hardcode_libdir_flag_spec_ld_FC=
14113 hardcode_libdir_separator_FC=
14114 hardcode_minus_L_FC=no
14115 hardcode_shlibpath_var_FC=unsupported
14116 inherit_rpath_FC=no
14117 link_all_deplibs_FC=unknown
14118 module_cmds_FC=
14119 module_expsym_cmds_FC=
14120 old_archive_from_new_cmds_FC=
14121 old_archive_from_expsyms_cmds_FC=
14122 thread_safe_flag_spec_FC=
14123 whole_archive_flag_spec_FC=
14124 # include_expsyms should be a list of space-separated symbols to be *always*
14125 # included in the symbol list
14126 include_expsyms_FC=
14127 # exclude_expsyms can be an extended regexp of symbols to exclude
14128 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14129 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14130 # as well as any symbol that contains `d'.
14131 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14132 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14133 # platforms (ab)use it in PIC code, but their linkers get confused if
14134 # the symbol is explicitly referenced. Since portable code cannot
14135 # rely on this symbol name, it's probably fine to never include it in
14136 # preloaded symbol tables.
14137 # Exclude shared library initialization/finalization symbols.
14138 extract_expsyms_cmds=
14139
14140 case $host_os in
14141 cygwin* | mingw* | pw32* | cegcc*)
14142 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14143 # When not using gcc, we currently assume that we are using
14144 # Microsoft Visual C++.
14145 if test "$GCC" != yes; then
14146 with_gnu_ld=no
14147 fi
14148 ;;
14149 interix*)
14150 # we just hope/assume this is gcc and not c89 (= MSVC++)
14151 with_gnu_ld=yes
14152 ;;
14153 openbsd*)
14154 with_gnu_ld=no
14155 ;;
14156 esac
14157
14158 ld_shlibs_FC=yes
14159
14160 # On some targets, GNU ld is compatible enough with the native linker
14161 # that we're better off using the native interface for both.
14162 lt_use_gnu_ld_interface=no
14163 if test "$with_gnu_ld" = yes; then
14164 case $host_os in
14165 aix*)
14166 # The AIX port of GNU ld has always aspired to compatibility
14167 # with the native linker. However, as the warning in the GNU ld
14168 # block says, versions before 2.19.5* couldn't really create working
14169 # shared libraries, regardless of the interface used.
14170 case `$LD -v 2>&1` in
14171 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14172 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14173 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14174 *)
14175 lt_use_gnu_ld_interface=yes
14176 ;;
14177 esac
14178 ;;
14179 *)
14180 lt_use_gnu_ld_interface=yes
14181 ;;
14182 esac
14183 fi
14184
14185 if test "$lt_use_gnu_ld_interface" = yes; then
14186 # If archive_cmds runs LD, not CC, wlarc should be empty
14187 wlarc='${wl}'
14188
14189 # Set some defaults for GNU ld with shared library support. These
14190 # are reset later if shared libraries are not supported. Putting them
14191 # here allows them to be overridden if necessary.
14192 runpath_var=LD_RUN_PATH
14193 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14194 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
14195 # ancient GNU ld didn't support --whole-archive et. al.
14196 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14197 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14198 else
14199 whole_archive_flag_spec_FC=
14200 fi
14201 supports_anon_versioning=no
14202 case `$LD -v 2>&1` in
14203 *GNU\ gold*) supports_anon_versioning=yes ;;
14204 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14205 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14206 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14207 *\ 2.11.*) ;; # other 2.11 versions
14208 *) supports_anon_versioning=yes ;;
14209 esac
14210
14211 # See if GNU ld supports shared libraries.
14212 case $host_os in
14213 aix[3-9]*)
14214 # On AIX/PPC, the GNU linker is very broken
14215 if test "$host_cpu" != ia64; then
14216 ld_shlibs_FC=no
14217 cat <<_LT_EOF 1>&2
14218
14219 *** Warning: the GNU linker, at least up to release 2.19, is reported
14220 *** to be unable to reliably create shared libraries on AIX.
14221 *** Therefore, libtool is disabling shared libraries support. If you
14222 *** really care for shared libraries, you may want to install binutils
14223 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14224 *** You will then need to restart the configuration process.
14225
14226 _LT_EOF
14227 fi
14228 ;;
14229
14230 amigaos*)
14231 case $host_cpu in
14232 powerpc)
14233 # see comment about AmigaOS4 .so support
14234 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14235 archive_expsym_cmds_FC=''
14236 ;;
14237 m68k)
14238 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)'
14239 hardcode_libdir_flag_spec_FC='-L$libdir'
14240 hardcode_minus_L_FC=yes
14241 ;;
14242 esac
14243 ;;
14244
14245 beos*)
14246 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14247 allow_undefined_flag_FC=unsupported
14248 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14249 # support --undefined. This deserves some investigation. FIXME
14250 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14251 else
14252 ld_shlibs_FC=no
14253 fi
14254 ;;
14255
14256 cygwin* | mingw* | pw32* | cegcc*)
14257 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
14258 # as there is no search path for DLLs.
14259 hardcode_libdir_flag_spec_FC='-L$libdir'
14260 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
14261 allow_undefined_flag_FC=unsupported
14262 always_export_symbols_FC=no
14263 enable_shared_with_static_runtimes_FC=yes
14264 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14265
14266 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14267 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14268 # If the export-symbols file already is a .def file (1st line
14269 # is EXPORTS), use it as is; otherwise, prepend...
14270 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14271 cp $export_symbols $output_objdir/$soname.def;
14272 else
14273 echo EXPORTS > $output_objdir/$soname.def;
14274 cat $export_symbols >> $output_objdir/$soname.def;
14275 fi~
14276 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14277 else
14278 ld_shlibs_FC=no
14279 fi
14280 ;;
14281
14282 haiku*)
14283 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14284 link_all_deplibs_FC=yes
14285 ;;
14286
14287 interix[3-9]*)
14288 hardcode_direct_FC=no
14289 hardcode_shlibpath_var_FC=no
14290 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14291 export_dynamic_flag_spec_FC='${wl}-E'
14292 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14293 # Instead, shared libraries are loaded at an image base (0x10000000 by
14294 # default) and relocated if they conflict, which is a slow very memory
14295 # consuming and fragmenting process. To avoid this, we pick a random,
14296 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14297 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14298 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'
14299 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'
14300 ;;
14301
14302 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
14303 tmp_diet=no
14304 if test "$host_os" = linux-dietlibc; then
14305 case $cc_basename in
14306 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14307 esac
14308 fi
14309 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14310 && test "$tmp_diet" = no
14311 then
14312 tmp_addflag=' $pic_flag'
14313 tmp_sharedflag='-shared'
14314 case $cc_basename,$host_cpu in
14315 pgcc*) # Portland Group C compiler
14316 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'
14317 tmp_addflag=' $pic_flag'
14318 ;;
14319 pgf77* | pgf90* | pgf95* | pgfortran*)
14320 # Portland Group f77 and f90 compilers
14321 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'
14322 tmp_addflag=' $pic_flag -Mnomain' ;;
14323 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14324 tmp_addflag=' -i_dynamic' ;;
14325 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14326 tmp_addflag=' -i_dynamic -nofor_main' ;;
14327 ifc* | ifort*) # Intel Fortran compiler
14328 tmp_addflag=' -nofor_main' ;;
14329 lf95*) # Lahey Fortran 8.1
14330 whole_archive_flag_spec_FC=
14331 tmp_sharedflag='--shared' ;;
14332 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14333 tmp_sharedflag='-qmkshrobj'
14334 tmp_addflag= ;;
14335 nvcc*) # Cuda Compiler Driver 2.2
14336 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'
14337 compiler_needs_object_FC=yes
14338 ;;
14339 esac
14340 case `$CC -V 2>&1 | sed 5q` in
14341 *Sun\ C*) # Sun C 5.9
14342 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'
14343 compiler_needs_object_FC=yes
14344 tmp_sharedflag='-G' ;;
14345 *Sun\ F*) # Sun Fortran 8.3
14346 tmp_sharedflag='-G' ;;
14347 esac
14348 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14349
14350 if test "x$supports_anon_versioning" = xyes; then
14351 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14352 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14353 echo "local: *; };" >> $output_objdir/$libname.ver~
14354 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14355 fi
14356
14357 case $cc_basename in
14358 xlf* | bgf* | bgxlf* | mpixlf*)
14359 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14360 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
14361 hardcode_libdir_flag_spec_FC=
14362 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
14363 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
14364 if test "x$supports_anon_versioning" = xyes; then
14365 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14366 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14367 echo "local: *; };" >> $output_objdir/$libname.ver~
14368 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14369 fi
14370 ;;
14371 esac
14372 else
14373 ld_shlibs_FC=no
14374 fi
14375 ;;
14376
14377 netbsd*)
14378 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14379 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14380 wlarc=
14381 else
14382 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14383 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14384 fi
14385 ;;
14386
14387 solaris*)
14388 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14389 ld_shlibs_FC=no
14390 cat <<_LT_EOF 1>&2
14391
14392 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14393 *** create shared libraries on Solaris systems. Therefore, libtool
14394 *** is disabling shared libraries support. We urge you to upgrade GNU
14395 *** binutils to release 2.9.1 or newer. Another option is to modify
14396 *** your PATH or compiler configuration so that the native linker is
14397 *** used, and then restart.
14398
14399 _LT_EOF
14400 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14401 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14402 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14403 else
14404 ld_shlibs_FC=no
14405 fi
14406 ;;
14407
14408 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14409 case `$LD -v 2>&1` in
14410 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14411 ld_shlibs_FC=no
14412 cat <<_LT_EOF 1>&2
14413
14414 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14415 *** reliably create shared libraries on SCO systems. Therefore, libtool
14416 *** is disabling shared libraries support. We urge you to upgrade GNU
14417 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14418 *** your PATH or compiler configuration so that the native linker is
14419 *** used, and then restart.
14420
14421 _LT_EOF
14422 ;;
14423 *)
14424 # For security reasons, it is highly recommended that you always
14425 # use absolute paths for naming shared libraries, and exclude the
14426 # DT_RUNPATH tag from executables and libraries. But doing so
14427 # requires that you compile everything twice, which is a pain.
14428 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14429 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14430 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14431 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14432 else
14433 ld_shlibs_FC=no
14434 fi
14435 ;;
14436 esac
14437 ;;
14438
14439 sunos4*)
14440 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14441 wlarc=
14442 hardcode_direct_FC=yes
14443 hardcode_shlibpath_var_FC=no
14444 ;;
14445
14446 *)
14447 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14448 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14449 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14450 else
14451 ld_shlibs_FC=no
14452 fi
14453 ;;
14454 esac
14455
14456 if test "$ld_shlibs_FC" = no; then
14457 runpath_var=
14458 hardcode_libdir_flag_spec_FC=
14459 export_dynamic_flag_spec_FC=
14460 whole_archive_flag_spec_FC=
14461 fi
14462 else
14463 # PORTME fill in a description of your system's linker (not GNU ld)
14464 case $host_os in
14465 aix3*)
14466 allow_undefined_flag_FC=unsupported
14467 always_export_symbols_FC=yes
14468 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'
14469 # Note: this linker hardcodes the directories in LIBPATH if there
14470 # are no directories specified by -L.
14471 hardcode_minus_L_FC=yes
14472 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14473 # Neither direct hardcoding nor static linking is supported with a
14474 # broken collect2.
14475 hardcode_direct_FC=unsupported
14476 fi
14477 ;;
14478
14479 aix[4-9]*)
14480 if test "$host_cpu" = ia64; then
14481 # On IA64, the linker does run time linking by default, so we don't
14482 # have to do anything special.
14483 aix_use_runtimelinking=no
14484 exp_sym_flag='-Bexport'
14485 no_entry_flag=""
14486 else
14487 # If we're using GNU nm, then we don't want the "-C" option.
14488 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14489 # Also, AIX nm treats weak defined symbols like other global
14490 # defined symbols, whereas GNU nm marks them as "W".
14491 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14492 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'
14493 else
14494 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'
14495 fi
14496 aix_use_runtimelinking=no
14497
14498 # Test if we are trying to use run time linking or normal
14499 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14500 # need to do runtime linking.
14501 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14502 for ld_flag in $LDFLAGS; do
14503 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14504 aix_use_runtimelinking=yes
14505 break
14506 fi
14507 done
14508 ;;
14509 esac
14510
14511 exp_sym_flag='-bexport'
14512 no_entry_flag='-bnoentry'
14513 fi
14514
14515 # When large executables or shared objects are built, AIX ld can
14516 # have problems creating the table of contents. If linking a library
14517 # or program results in "error TOC overflow" add -mminimal-toc to
14518 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14519 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14520
14521 archive_cmds_FC=''
14522 hardcode_direct_FC=yes
14523 hardcode_direct_absolute_FC=yes
14524 hardcode_libdir_separator_FC=':'
14525 link_all_deplibs_FC=yes
14526 file_list_spec_FC='${wl}-f,'
14527
14528 if test "$GCC" = yes; then
14529 case $host_os in aix4.[012]|aix4.[012].*)
14530 # We only want to do this on AIX 4.2 and lower, the check
14531 # below for broken collect2 doesn't work under 4.3+
14532 collect2name=`${CC} -print-prog-name=collect2`
14533 if test -f "$collect2name" &&
14534 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14535 then
14536 # We have reworked collect2
14537 :
14538 else
14539 # We have old collect2
14540 hardcode_direct_FC=unsupported
14541 # It fails to find uninstalled libraries when the uninstalled
14542 # path is not listed in the libpath. Setting hardcode_minus_L
14543 # to unsupported forces relinking
14544 hardcode_minus_L_FC=yes
14545 hardcode_libdir_flag_spec_FC='-L$libdir'
14546 hardcode_libdir_separator_FC=
14547 fi
14548 ;;
14549 esac
14550 shared_flag='-shared'
14551 if test "$aix_use_runtimelinking" = yes; then
14552 shared_flag="$shared_flag "'${wl}-G'
14553 fi
14554 else
14555 # not using gcc
14556 if test "$host_cpu" = ia64; then
14557 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14558 # chokes on -Wl,-G. The following line is correct:
14559 shared_flag='-G'
14560 else
14561 if test "$aix_use_runtimelinking" = yes; then
14562 shared_flag='${wl}-G'
14563 else
14564 shared_flag='${wl}-bM:SRE'
14565 fi
14566 fi
14567 fi
14568
14569 export_dynamic_flag_spec_FC='${wl}-bexpall'
14570 # It seems that -bexpall does not export symbols beginning with
14571 # underscore (_), so it is better to generate a list of symbols to export.
14572 always_export_symbols_FC=yes
14573 if test "$aix_use_runtimelinking" = yes; then
14574 # Warning - without using the other runtime loading flags (-brtl),
14575 # -berok will link without error, but may produce a broken library.
14576 allow_undefined_flag_FC='-berok'
14577 # Determine the default libpath from the value encoded in an
14578 # empty executable.
14579 if test x$gcc_no_link = xyes; then
14580 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14581 fi
14582 cat > conftest.$ac_ext <<_ACEOF
14583 program main
14584
14585 end
14586 _ACEOF
14587 if ac_fn_fc_try_link "$LINENO"; then :
14588
14589 lt_aix_libpath_sed='
14590 /Import File Strings/,/^$/ {
14591 /^0/ {
14592 s/^0 *\(.*\)$/\1/
14593 p
14594 }
14595 }'
14596 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14597 # Check for a 64-bit object if we didn't find anything.
14598 if test -z "$aix_libpath"; then
14599 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14600 fi
14601 fi
14602 rm -f core conftest.err conftest.$ac_objext \
14603 conftest$ac_exeext conftest.$ac_ext
14604 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14605
14606 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14607 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"
14608 else
14609 if test "$host_cpu" = ia64; then
14610 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
14611 allow_undefined_flag_FC="-z nodefs"
14612 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"
14613 else
14614 # Determine the default libpath from the value encoded in an
14615 # empty executable.
14616 if test x$gcc_no_link = xyes; then
14617 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14618 fi
14619 cat > conftest.$ac_ext <<_ACEOF
14620 program main
14621
14622 end
14623 _ACEOF
14624 if ac_fn_fc_try_link "$LINENO"; then :
14625
14626 lt_aix_libpath_sed='
14627 /Import File Strings/,/^$/ {
14628 /^0/ {
14629 s/^0 *\(.*\)$/\1/
14630 p
14631 }
14632 }'
14633 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14634 # Check for a 64-bit object if we didn't find anything.
14635 if test -z "$aix_libpath"; then
14636 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14637 fi
14638 fi
14639 rm -f core conftest.err conftest.$ac_objext \
14640 conftest$ac_exeext conftest.$ac_ext
14641 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14642
14643 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14644 # Warning - without using the other run time loading flags,
14645 # -berok will link without error, but may produce a broken library.
14646 no_undefined_flag_FC=' ${wl}-bernotok'
14647 allow_undefined_flag_FC=' ${wl}-berok'
14648 if test "$with_gnu_ld" = yes; then
14649 # We only use this code for GNU lds that support --whole-archive.
14650 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14651 else
14652 # Exported symbols can be pulled into shared objects from archives
14653 whole_archive_flag_spec_FC='$convenience'
14654 fi
14655 archive_cmds_need_lc_FC=yes
14656 # This is similar to how AIX traditionally builds its shared libraries.
14657 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'
14658 fi
14659 fi
14660 ;;
14661
14662 amigaos*)
14663 case $host_cpu in
14664 powerpc)
14665 # see comment about AmigaOS4 .so support
14666 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14667 archive_expsym_cmds_FC=''
14668 ;;
14669 m68k)
14670 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)'
14671 hardcode_libdir_flag_spec_FC='-L$libdir'
14672 hardcode_minus_L_FC=yes
14673 ;;
14674 esac
14675 ;;
14676
14677 bsdi[45]*)
14678 export_dynamic_flag_spec_FC=-rdynamic
14679 ;;
14680
14681 cygwin* | mingw* | pw32* | cegcc*)
14682 # When not using gcc, we currently assume that we are using
14683 # Microsoft Visual C++.
14684 # hardcode_libdir_flag_spec is actually meaningless, as there is
14685 # no search path for DLLs.
14686 hardcode_libdir_flag_spec_FC=' '
14687 allow_undefined_flag_FC=unsupported
14688 # Tell ltmain to make .lib files, not .a files.
14689 libext=lib
14690 # Tell ltmain to make .dll files, not .so files.
14691 shrext_cmds=".dll"
14692 # FIXME: Setting linknames here is a bad hack.
14693 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14694 # The linker will automatically build a .lib file if we build a DLL.
14695 old_archive_from_new_cmds_FC='true'
14696 # FIXME: Should let the user specify the lib program.
14697 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
14698 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
14699 enable_shared_with_static_runtimes_FC=yes
14700 ;;
14701
14702 darwin* | rhapsody*)
14703
14704
14705 archive_cmds_need_lc_FC=no
14706 hardcode_direct_FC=no
14707 hardcode_automatic_FC=yes
14708 hardcode_shlibpath_var_FC=unsupported
14709 if test "$lt_cv_ld_force_load" = "yes"; then
14710 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\"`'
14711 else
14712 whole_archive_flag_spec_FC=''
14713 fi
14714 link_all_deplibs_FC=yes
14715 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
14716 case $cc_basename in
14717 ifort*) _lt_dar_can_shared=yes ;;
14718 *) _lt_dar_can_shared=$GCC ;;
14719 esac
14720 if test "$_lt_dar_can_shared" = "yes"; then
14721 output_verbose_link_cmd=func_echo_all
14722 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}"
14723 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14724 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}"
14725 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}"
14726
14727 else
14728 ld_shlibs_FC=no
14729 fi
14730
14731 ;;
14732
14733 dgux*)
14734 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14735 hardcode_libdir_flag_spec_FC='-L$libdir'
14736 hardcode_shlibpath_var_FC=no
14737 ;;
14738
14739 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14740 # support. Future versions do this automatically, but an explicit c++rt0.o
14741 # does not break anything, and helps significantly (at the cost of a little
14742 # extra space).
14743 freebsd2.2*)
14744 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14745 hardcode_libdir_flag_spec_FC='-R$libdir'
14746 hardcode_direct_FC=yes
14747 hardcode_shlibpath_var_FC=no
14748 ;;
14749
14750 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14751 freebsd2.*)
14752 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14753 hardcode_direct_FC=yes
14754 hardcode_minus_L_FC=yes
14755 hardcode_shlibpath_var_FC=no
14756 ;;
14757
14758 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14759 freebsd* | dragonfly*)
14760 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14761 hardcode_libdir_flag_spec_FC='-R$libdir'
14762 hardcode_direct_FC=yes
14763 hardcode_shlibpath_var_FC=no
14764 ;;
14765
14766 hpux9*)
14767 if test "$GCC" = yes; then
14768 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'
14769 else
14770 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'
14771 fi
14772 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14773 hardcode_libdir_separator_FC=:
14774 hardcode_direct_FC=yes
14775
14776 # hardcode_minus_L: Not really in the search PATH,
14777 # but as the default location of the library.
14778 hardcode_minus_L_FC=yes
14779 export_dynamic_flag_spec_FC='${wl}-E'
14780 ;;
14781
14782 hpux10*)
14783 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14784 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14785 else
14786 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14787 fi
14788 if test "$with_gnu_ld" = no; then
14789 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14790 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
14791 hardcode_libdir_separator_FC=:
14792 hardcode_direct_FC=yes
14793 hardcode_direct_absolute_FC=yes
14794 export_dynamic_flag_spec_FC='${wl}-E'
14795 # hardcode_minus_L: Not really in the search PATH,
14796 # but as the default location of the library.
14797 hardcode_minus_L_FC=yes
14798 fi
14799 ;;
14800
14801 hpux11*)
14802 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14803 case $host_cpu in
14804 hppa*64*)
14805 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14806 ;;
14807 ia64*)
14808 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14809 ;;
14810 *)
14811 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14812 ;;
14813 esac
14814 else
14815 case $host_cpu in
14816 hppa*64*)
14817 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14818 ;;
14819 ia64*)
14820 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14821 ;;
14822 *)
14823 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14824 ;;
14825 esac
14826 fi
14827 if test "$with_gnu_ld" = no; then
14828 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14829 hardcode_libdir_separator_FC=:
14830
14831 case $host_cpu in
14832 hppa*64*|ia64*)
14833 hardcode_direct_FC=no
14834 hardcode_shlibpath_var_FC=no
14835 ;;
14836 *)
14837 hardcode_direct_FC=yes
14838 hardcode_direct_absolute_FC=yes
14839 export_dynamic_flag_spec_FC='${wl}-E'
14840
14841 # hardcode_minus_L: Not really in the search PATH,
14842 # but as the default location of the library.
14843 hardcode_minus_L_FC=yes
14844 ;;
14845 esac
14846 fi
14847 ;;
14848
14849 irix5* | irix6* | nonstopux*)
14850 if test "$GCC" = yes; then
14851 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'
14852 # Try to use the -exported_symbol ld option, if it does not
14853 # work, assume that -exports_file does not work either and
14854 # implicitly export all symbols.
14855 save_LDFLAGS="$LDFLAGS"
14856 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14857 if test x$gcc_no_link = xyes; then
14858 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14859 fi
14860 cat > conftest.$ac_ext <<_ACEOF
14861 int foo(void) {}
14862 _ACEOF
14863 if ac_fn_fc_try_link "$LINENO"; then :
14864 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'
14865
14866 fi
14867 rm -f core conftest.err conftest.$ac_objext \
14868 conftest$ac_exeext conftest.$ac_ext
14869 LDFLAGS="$save_LDFLAGS"
14870 else
14871 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'
14872 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'
14873 fi
14874 archive_cmds_need_lc_FC='no'
14875 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14876 hardcode_libdir_separator_FC=:
14877 inherit_rpath_FC=yes
14878 link_all_deplibs_FC=yes
14879 ;;
14880
14881 netbsd*)
14882 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14883 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14884 else
14885 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14886 fi
14887 hardcode_libdir_flag_spec_FC='-R$libdir'
14888 hardcode_direct_FC=yes
14889 hardcode_shlibpath_var_FC=no
14890 ;;
14891
14892 newsos6)
14893 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14894 hardcode_direct_FC=yes
14895 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14896 hardcode_libdir_separator_FC=:
14897 hardcode_shlibpath_var_FC=no
14898 ;;
14899
14900 *nto* | *qnx*)
14901 ;;
14902
14903 openbsd*)
14904 if test -f /usr/libexec/ld.so; then
14905 hardcode_direct_FC=yes
14906 hardcode_shlibpath_var_FC=no
14907 hardcode_direct_absolute_FC=yes
14908 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14909 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14910 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14911 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14912 export_dynamic_flag_spec_FC='${wl}-E'
14913 else
14914 case $host_os in
14915 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14916 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14917 hardcode_libdir_flag_spec_FC='-R$libdir'
14918 ;;
14919 *)
14920 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14921 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14922 ;;
14923 esac
14924 fi
14925 else
14926 ld_shlibs_FC=no
14927 fi
14928 ;;
14929
14930 os2*)
14931 hardcode_libdir_flag_spec_FC='-L$libdir'
14932 hardcode_minus_L_FC=yes
14933 allow_undefined_flag_FC=unsupported
14934 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'
14935 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14936 ;;
14937
14938 osf3*)
14939 if test "$GCC" = yes; then
14940 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
14941 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'
14942 else
14943 allow_undefined_flag_FC=' -expect_unresolved \*'
14944 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'
14945 fi
14946 archive_cmds_need_lc_FC='no'
14947 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14948 hardcode_libdir_separator_FC=:
14949 ;;
14950
14951 osf4* | osf5*) # as osf3* with the addition of -msym flag
14952 if test "$GCC" = yes; then
14953 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
14954 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'
14955 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14956 else
14957 allow_undefined_flag_FC=' -expect_unresolved \*'
14958 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'
14959 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~
14960 $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'
14961
14962 # Both c and cxx compiler support -rpath directly
14963 hardcode_libdir_flag_spec_FC='-rpath $libdir'
14964 fi
14965 archive_cmds_need_lc_FC='no'
14966 hardcode_libdir_separator_FC=:
14967 ;;
14968
14969 solaris*)
14970 no_undefined_flag_FC=' -z defs'
14971 if test "$GCC" = yes; then
14972 wlarc='${wl}'
14973 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14974 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14975 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14976 else
14977 case `$CC -V 2>&1` in
14978 *"Compilers 5.0"*)
14979 wlarc=''
14980 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14981 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14982 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14983 ;;
14984 *)
14985 wlarc='${wl}'
14986 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14987 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14988 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14989 ;;
14990 esac
14991 fi
14992 hardcode_libdir_flag_spec_FC='-R$libdir'
14993 hardcode_shlibpath_var_FC=no
14994 case $host_os in
14995 solaris2.[0-5] | solaris2.[0-5].*) ;;
14996 *)
14997 # The compiler driver will combine and reorder linker options,
14998 # but understands `-z linker_flag'. GCC discards it without `$wl',
14999 # but is careful enough not to reorder.
15000 # Supported since Solaris 2.6 (maybe 2.5.1?)
15001 if test "$GCC" = yes; then
15002 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15003 else
15004 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
15005 fi
15006 ;;
15007 esac
15008 link_all_deplibs_FC=yes
15009 ;;
15010
15011 sunos4*)
15012 if test "x$host_vendor" = xsequent; then
15013 # Use $CC to link under sequent, because it throws in some extra .o
15014 # files that make .init and .fini sections work.
15015 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15016 else
15017 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15018 fi
15019 hardcode_libdir_flag_spec_FC='-L$libdir'
15020 hardcode_direct_FC=yes
15021 hardcode_minus_L_FC=yes
15022 hardcode_shlibpath_var_FC=no
15023 ;;
15024
15025 sysv4)
15026 case $host_vendor in
15027 sni)
15028 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15029 hardcode_direct_FC=yes # is this really true???
15030 ;;
15031 siemens)
15032 ## LD is ld it makes a PLAMLIB
15033 ## CC just makes a GrossModule.
15034 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15035 reload_cmds_FC='$CC -r -o $output$reload_objs'
15036 hardcode_direct_FC=no
15037 ;;
15038 motorola)
15039 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15040 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
15041 ;;
15042 esac
15043 runpath_var='LD_RUN_PATH'
15044 hardcode_shlibpath_var_FC=no
15045 ;;
15046
15047 sysv4.3*)
15048 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15049 hardcode_shlibpath_var_FC=no
15050 export_dynamic_flag_spec_FC='-Bexport'
15051 ;;
15052
15053 sysv4*MP*)
15054 if test -d /usr/nec; then
15055 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15056 hardcode_shlibpath_var_FC=no
15057 runpath_var=LD_RUN_PATH
15058 hardcode_runpath_var=yes
15059 ld_shlibs_FC=yes
15060 fi
15061 ;;
15062
15063 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15064 no_undefined_flag_FC='${wl}-z,text'
15065 archive_cmds_need_lc_FC=no
15066 hardcode_shlibpath_var_FC=no
15067 runpath_var='LD_RUN_PATH'
15068
15069 if test "$GCC" = yes; then
15070 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15071 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15072 else
15073 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15074 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15075 fi
15076 ;;
15077
15078 sysv5* | sco3.2v5* | sco5v6*)
15079 # Note: We can NOT use -z defs as we might desire, because we do not
15080 # link with -lc, and that would cause any symbols used from libc to
15081 # always be unresolved, which means just about no library would
15082 # ever link correctly. If we're not using GNU ld we use -z text
15083 # though, which does catch some bad symbols but isn't as heavy-handed
15084 # as -z defs.
15085 no_undefined_flag_FC='${wl}-z,text'
15086 allow_undefined_flag_FC='${wl}-z,nodefs'
15087 archive_cmds_need_lc_FC=no
15088 hardcode_shlibpath_var_FC=no
15089 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
15090 hardcode_libdir_separator_FC=':'
15091 link_all_deplibs_FC=yes
15092 export_dynamic_flag_spec_FC='${wl}-Bexport'
15093 runpath_var='LD_RUN_PATH'
15094
15095 if test "$GCC" = yes; then
15096 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15097 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15098 else
15099 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15100 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15101 fi
15102 ;;
15103
15104 uts4*)
15105 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15106 hardcode_libdir_flag_spec_FC='-L$libdir'
15107 hardcode_shlibpath_var_FC=no
15108 ;;
15109
15110 *)
15111 ld_shlibs_FC=no
15112 ;;
15113 esac
15114
15115 if test x$host_vendor = xsni; then
15116 case $host in
15117 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15118 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
15119 ;;
15120 esac
15121 fi
15122 fi
15123
15124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
15125 $as_echo "$ld_shlibs_FC" >&6; }
15126 test "$ld_shlibs_FC" = no && can_build_shared=no
15127
15128 with_gnu_ld_FC=$with_gnu_ld
15129
15130
15131
15132
15133
15134
15135 #
15136 # Do we need to explicitly link libc?
15137 #
15138 case "x$archive_cmds_need_lc_FC" in
15139 x|xyes)
15140 # Assume -lc should be added
15141 archive_cmds_need_lc_FC=yes
15142
15143 if test "$enable_shared" = yes && test "$GCC" = yes; then
15144 case $archive_cmds_FC in
15145 *'~'*)
15146 # FIXME: we may have to deal with multi-command sequences.
15147 ;;
15148 '$CC '*)
15149 # Test whether the compiler implicitly links with -lc since on some
15150 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15151 # to ld, don't add -lc before -lgcc.
15152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15153 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15154 if ${lt_cv_archive_cmds_need_lc_FC+:} false; then :
15155 $as_echo_n "(cached) " >&6
15156 else
15157 $RM conftest*
15158 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15159
15160 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15161 (eval $ac_compile) 2>&5
15162 ac_status=$?
15163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15164 test $ac_status = 0; } 2>conftest.err; then
15165 soname=conftest
15166 lib=conftest
15167 libobjs=conftest.$ac_objext
15168 deplibs=
15169 wl=$lt_prog_compiler_wl_FC
15170 pic_flag=$lt_prog_compiler_pic_FC
15171 compiler_flags=-v
15172 linker_flags=-v
15173 verstring=
15174 output_objdir=.
15175 libname=conftest
15176 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
15177 allow_undefined_flag_FC=
15178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15179 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15180 ac_status=$?
15181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15182 test $ac_status = 0; }
15183 then
15184 lt_cv_archive_cmds_need_lc_FC=no
15185 else
15186 lt_cv_archive_cmds_need_lc_FC=yes
15187 fi
15188 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
15189 else
15190 cat conftest.err 1>&5
15191 fi
15192 $RM conftest*
15193
15194 fi
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
15196 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
15197 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
15198 ;;
15199 esac
15200 fi
15201 ;;
15202 esac
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15268 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15269
15270 library_names_spec=
15271 libname_spec='lib$name'
15272 soname_spec=
15273 shrext_cmds=".so"
15274 postinstall_cmds=
15275 postuninstall_cmds=
15276 finish_cmds=
15277 finish_eval=
15278 shlibpath_var=
15279 shlibpath_overrides_runpath=unknown
15280 version_type=none
15281 dynamic_linker="$host_os ld.so"
15282 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15283 need_lib_prefix=unknown
15284 hardcode_into_libs=no
15285
15286 # when you set need_version to no, make sure it does not cause -set_version
15287 # flags to be left without arguments
15288 need_version=unknown
15289
15290 case $host_os in
15291 aix3*)
15292 version_type=linux
15293 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15294 shlibpath_var=LIBPATH
15295
15296 # AIX 3 has no versioning support, so we append a major version to the name.
15297 soname_spec='${libname}${release}${shared_ext}$major'
15298 ;;
15299
15300 aix[4-9]*)
15301 version_type=linux
15302 need_lib_prefix=no
15303 need_version=no
15304 hardcode_into_libs=yes
15305 if test "$host_cpu" = ia64; then
15306 # AIX 5 supports IA64
15307 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15308 shlibpath_var=LD_LIBRARY_PATH
15309 else
15310 # With GCC up to 2.95.x, collect2 would create an import file
15311 # for dependence libraries. The import file would start with
15312 # the line `#! .'. This would cause the generated library to
15313 # depend on `.', always an invalid library. This was fixed in
15314 # development snapshots of GCC prior to 3.0.
15315 case $host_os in
15316 aix4 | aix4.[01] | aix4.[01].*)
15317 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15318 echo ' yes '
15319 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15320 :
15321 else
15322 can_build_shared=no
15323 fi
15324 ;;
15325 esac
15326 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15327 # soname into executable. Probably we can add versioning support to
15328 # collect2, so additional links can be useful in future.
15329 if test "$aix_use_runtimelinking" = yes; then
15330 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15331 # instead of lib<name>.a to let people know that these are not
15332 # typical AIX shared libraries.
15333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15334 else
15335 # We preserve .a as extension for shared libraries through AIX4.2
15336 # and later when we are not doing run time linking.
15337 library_names_spec='${libname}${release}.a $libname.a'
15338 soname_spec='${libname}${release}${shared_ext}$major'
15339 fi
15340 shlibpath_var=LIBPATH
15341 fi
15342 ;;
15343
15344 amigaos*)
15345 case $host_cpu in
15346 powerpc)
15347 # Since July 2007 AmigaOS4 officially supports .so libraries.
15348 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15350 ;;
15351 m68k)
15352 library_names_spec='$libname.ixlibrary $libname.a'
15353 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15354 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'
15355 ;;
15356 esac
15357 ;;
15358
15359 beos*)
15360 library_names_spec='${libname}${shared_ext}'
15361 dynamic_linker="$host_os ld.so"
15362 shlibpath_var=LIBRARY_PATH
15363 ;;
15364
15365 bsdi[45]*)
15366 version_type=linux
15367 need_version=no
15368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15369 soname_spec='${libname}${release}${shared_ext}$major'
15370 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15371 shlibpath_var=LD_LIBRARY_PATH
15372 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15373 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15374 # the default ld.so.conf also contains /usr/contrib/lib and
15375 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15376 # libtool to hard-code these into programs
15377 ;;
15378
15379 cygwin* | mingw* | pw32* | cegcc*)
15380 version_type=windows
15381 shrext_cmds=".dll"
15382 need_version=no
15383 need_lib_prefix=no
15384
15385 case $GCC,$host_os in
15386 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15387 library_names_spec='$libname.dll.a'
15388 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15389 postinstall_cmds='base_file=`basename \${file}`~
15390 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15391 dldir=$destdir/`dirname \$dlpath`~
15392 test -d \$dldir || mkdir -p \$dldir~
15393 $install_prog $dir/$dlname \$dldir/$dlname~
15394 chmod a+x \$dldir/$dlname~
15395 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15396 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15397 fi'
15398 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15399 dlpath=$dir/\$dldll~
15400 $RM \$dlpath'
15401 shlibpath_overrides_runpath=yes
15402
15403 case $host_os in
15404 cygwin*)
15405 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15406 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15407
15408 ;;
15409 mingw* | cegcc*)
15410 # MinGW DLLs use traditional 'lib' prefix
15411 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15412 ;;
15413 pw32*)
15414 # pw32 DLLs use 'pw' prefix rather than 'lib'
15415 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15416 ;;
15417 esac
15418 ;;
15419
15420 *)
15421 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15422 ;;
15423 esac
15424 dynamic_linker='Win32 ld.exe'
15425 # FIXME: first we should search . and the directory the executable is in
15426 shlibpath_var=PATH
15427 ;;
15428
15429 darwin* | rhapsody*)
15430 dynamic_linker="$host_os dyld"
15431 version_type=darwin
15432 need_lib_prefix=no
15433 need_version=no
15434 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15435 soname_spec='${libname}${release}${major}$shared_ext'
15436 shlibpath_overrides_runpath=yes
15437 shlibpath_var=DYLD_LIBRARY_PATH
15438 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15439
15440 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15441 ;;
15442
15443 dgux*)
15444 version_type=linux
15445 need_lib_prefix=no
15446 need_version=no
15447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15448 soname_spec='${libname}${release}${shared_ext}$major'
15449 shlibpath_var=LD_LIBRARY_PATH
15450 ;;
15451
15452 freebsd* | dragonfly*)
15453 # DragonFly does not have aout. When/if they implement a new
15454 # versioning mechanism, adjust this.
15455 if test -x /usr/bin/objformat; then
15456 objformat=`/usr/bin/objformat`
15457 else
15458 case $host_os in
15459 freebsd[23].*) objformat=aout ;;
15460 *) objformat=elf ;;
15461 esac
15462 fi
15463 version_type=freebsd-$objformat
15464 case $version_type in
15465 freebsd-elf*)
15466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15467 need_version=no
15468 need_lib_prefix=no
15469 ;;
15470 freebsd-*)
15471 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15472 need_version=yes
15473 ;;
15474 esac
15475 shlibpath_var=LD_LIBRARY_PATH
15476 case $host_os in
15477 freebsd2.*)
15478 shlibpath_overrides_runpath=yes
15479 ;;
15480 freebsd3.[01]* | freebsdelf3.[01]*)
15481 shlibpath_overrides_runpath=yes
15482 hardcode_into_libs=yes
15483 ;;
15484 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15485 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15486 shlibpath_overrides_runpath=no
15487 hardcode_into_libs=yes
15488 ;;
15489 *) # from 4.6 on, and DragonFly
15490 shlibpath_overrides_runpath=yes
15491 hardcode_into_libs=yes
15492 ;;
15493 esac
15494 ;;
15495
15496 gnu*)
15497 version_type=linux
15498 need_lib_prefix=no
15499 need_version=no
15500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15501 soname_spec='${libname}${release}${shared_ext}$major'
15502 shlibpath_var=LD_LIBRARY_PATH
15503 hardcode_into_libs=yes
15504 ;;
15505
15506 haiku*)
15507 version_type=linux
15508 need_lib_prefix=no
15509 need_version=no
15510 dynamic_linker="$host_os runtime_loader"
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 shlibpath_var=LIBRARY_PATH
15514 shlibpath_overrides_runpath=yes
15515 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
15516 hardcode_into_libs=yes
15517 ;;
15518
15519 hpux9* | hpux10* | hpux11*)
15520 # Give a soname corresponding to the major version so that dld.sl refuses to
15521 # link against other versions.
15522 version_type=sunos
15523 need_lib_prefix=no
15524 need_version=no
15525 case $host_cpu in
15526 ia64*)
15527 shrext_cmds='.so'
15528 hardcode_into_libs=yes
15529 dynamic_linker="$host_os dld.so"
15530 shlibpath_var=LD_LIBRARY_PATH
15531 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15533 soname_spec='${libname}${release}${shared_ext}$major'
15534 if test "X$HPUX_IA64_MODE" = X32; then
15535 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15536 else
15537 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15538 fi
15539 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15540 ;;
15541 hppa*64*)
15542 shrext_cmds='.sl'
15543 hardcode_into_libs=yes
15544 dynamic_linker="$host_os dld.sl"
15545 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15546 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15548 soname_spec='${libname}${release}${shared_ext}$major'
15549 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15550 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15551 ;;
15552 *)
15553 shrext_cmds='.sl'
15554 dynamic_linker="$host_os dld.sl"
15555 shlibpath_var=SHLIB_PATH
15556 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15558 soname_spec='${libname}${release}${shared_ext}$major'
15559 ;;
15560 esac
15561 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15562 postinstall_cmds='chmod 555 $lib'
15563 # or fails outright, so override atomically:
15564 install_override_mode=555
15565 ;;
15566
15567 interix[3-9]*)
15568 version_type=linux
15569 need_lib_prefix=no
15570 need_version=no
15571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15572 soname_spec='${libname}${release}${shared_ext}$major'
15573 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15574 shlibpath_var=LD_LIBRARY_PATH
15575 shlibpath_overrides_runpath=no
15576 hardcode_into_libs=yes
15577 ;;
15578
15579 irix5* | irix6* | nonstopux*)
15580 case $host_os in
15581 nonstopux*) version_type=nonstopux ;;
15582 *)
15583 if test "$lt_cv_prog_gnu_ld" = yes; then
15584 version_type=linux
15585 else
15586 version_type=irix
15587 fi ;;
15588 esac
15589 need_lib_prefix=no
15590 need_version=no
15591 soname_spec='${libname}${release}${shared_ext}$major'
15592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15593 case $host_os in
15594 irix5* | nonstopux*)
15595 libsuff= shlibsuff=
15596 ;;
15597 *)
15598 case $LD in # libtool.m4 will add one of these switches to LD
15599 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15600 libsuff= shlibsuff= libmagic=32-bit;;
15601 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15602 libsuff=32 shlibsuff=N32 libmagic=N32;;
15603 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15604 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15605 *) libsuff= shlibsuff= libmagic=never-match;;
15606 esac
15607 ;;
15608 esac
15609 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15610 shlibpath_overrides_runpath=no
15611 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15612 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15613 hardcode_into_libs=yes
15614 ;;
15615
15616 # No shared lib support for Linux oldld, aout, or coff.
15617 linux*oldld* | linux*aout* | linux*coff*)
15618 dynamic_linker=no
15619 ;;
15620
15621 # This must be Linux ELF.
15622
15623 # uclinux* changes (here and below) have been submitted to the libtool
15624 # project, but have not yet been accepted: they are GCC-local changes
15625 # for the time being. (See
15626 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
15627 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
15628 version_type=linux
15629 need_lib_prefix=no
15630 need_version=no
15631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15632 soname_spec='${libname}${release}${shared_ext}$major'
15633 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15634 shlibpath_var=LD_LIBRARY_PATH
15635 shlibpath_overrides_runpath=no
15636
15637 # Some binutils ld are patched to set DT_RUNPATH
15638 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15639 $as_echo_n "(cached) " >&6
15640 else
15641 lt_cv_shlibpath_overrides_runpath=no
15642 save_LDFLAGS=$LDFLAGS
15643 save_libdir=$libdir
15644 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
15645 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
15646 if test x$gcc_no_link = xyes; then
15647 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
15648 fi
15649 cat > conftest.$ac_ext <<_ACEOF
15650 program main
15651
15652 end
15653 _ACEOF
15654 if ac_fn_fc_try_link "$LINENO"; then :
15655 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15656 lt_cv_shlibpath_overrides_runpath=yes
15657 fi
15658 fi
15659 rm -f core conftest.err conftest.$ac_objext \
15660 conftest$ac_exeext conftest.$ac_ext
15661 LDFLAGS=$save_LDFLAGS
15662 libdir=$save_libdir
15663
15664 fi
15665
15666 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15667
15668 # This implies no fast_install, which is unacceptable.
15669 # Some rework will be needed to allow for fast_install
15670 # before this can be enabled.
15671 hardcode_into_libs=yes
15672
15673 # Append ld.so.conf contents to the search path
15674 if test -f /etc/ld.so.conf; then
15675 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' ' '`
15676 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15677 fi
15678
15679 # We used to test for /lib/ld.so.1 and disable shared libraries on
15680 # powerpc, because MkLinux only supported shared libraries with the
15681 # GNU dynamic linker. Since this was broken with cross compilers,
15682 # most powerpc-linux boxes support dynamic linking these days and
15683 # people can always --disable-shared, the test was removed, and we
15684 # assume the GNU/Linux dynamic linker is in use.
15685 dynamic_linker='GNU/Linux ld.so'
15686 ;;
15687
15688 netbsd*)
15689 version_type=sunos
15690 need_lib_prefix=no
15691 need_version=no
15692 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15694 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15695 dynamic_linker='NetBSD (a.out) ld.so'
15696 else
15697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15698 soname_spec='${libname}${release}${shared_ext}$major'
15699 dynamic_linker='NetBSD ld.elf_so'
15700 fi
15701 shlibpath_var=LD_LIBRARY_PATH
15702 shlibpath_overrides_runpath=yes
15703 hardcode_into_libs=yes
15704 ;;
15705
15706 newsos6)
15707 version_type=linux
15708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15709 shlibpath_var=LD_LIBRARY_PATH
15710 shlibpath_overrides_runpath=yes
15711 ;;
15712
15713 *nto* | *qnx*)
15714 version_type=qnx
15715 need_lib_prefix=no
15716 need_version=no
15717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15718 soname_spec='${libname}${release}${shared_ext}$major'
15719 shlibpath_var=LD_LIBRARY_PATH
15720 shlibpath_overrides_runpath=no
15721 hardcode_into_libs=yes
15722 dynamic_linker='ldqnx.so'
15723 ;;
15724
15725 openbsd*)
15726 version_type=sunos
15727 sys_lib_dlsearch_path_spec="/usr/lib"
15728 need_lib_prefix=no
15729 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15730 case $host_os in
15731 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15732 *) need_version=no ;;
15733 esac
15734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15735 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15736 shlibpath_var=LD_LIBRARY_PATH
15737 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15738 case $host_os in
15739 openbsd2.[89] | openbsd2.[89].*)
15740 shlibpath_overrides_runpath=no
15741 ;;
15742 *)
15743 shlibpath_overrides_runpath=yes
15744 ;;
15745 esac
15746 else
15747 shlibpath_overrides_runpath=yes
15748 fi
15749 ;;
15750
15751 os2*)
15752 libname_spec='$name'
15753 shrext_cmds=".dll"
15754 need_lib_prefix=no
15755 library_names_spec='$libname${shared_ext} $libname.a'
15756 dynamic_linker='OS/2 ld.exe'
15757 shlibpath_var=LIBPATH
15758 ;;
15759
15760 osf3* | osf4* | osf5*)
15761 version_type=osf
15762 need_lib_prefix=no
15763 need_version=no
15764 soname_spec='${libname}${release}${shared_ext}$major'
15765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15766 shlibpath_var=LD_LIBRARY_PATH
15767 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15768 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15769 ;;
15770
15771 rdos*)
15772 dynamic_linker=no
15773 ;;
15774
15775 solaris*)
15776 version_type=linux
15777 need_lib_prefix=no
15778 need_version=no
15779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15780 soname_spec='${libname}${release}${shared_ext}$major'
15781 shlibpath_var=LD_LIBRARY_PATH
15782 shlibpath_overrides_runpath=yes
15783 hardcode_into_libs=yes
15784 # ldd complains unless libraries are executable
15785 postinstall_cmds='chmod +x $lib'
15786 ;;
15787
15788 sunos4*)
15789 version_type=sunos
15790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15791 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15792 shlibpath_var=LD_LIBRARY_PATH
15793 shlibpath_overrides_runpath=yes
15794 if test "$with_gnu_ld" = yes; then
15795 need_lib_prefix=no
15796 fi
15797 need_version=yes
15798 ;;
15799
15800 sysv4 | sysv4.3*)
15801 version_type=linux
15802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15803 soname_spec='${libname}${release}${shared_ext}$major'
15804 shlibpath_var=LD_LIBRARY_PATH
15805 case $host_vendor in
15806 sni)
15807 shlibpath_overrides_runpath=no
15808 need_lib_prefix=no
15809 runpath_var=LD_RUN_PATH
15810 ;;
15811 siemens)
15812 need_lib_prefix=no
15813 ;;
15814 motorola)
15815 need_lib_prefix=no
15816 need_version=no
15817 shlibpath_overrides_runpath=no
15818 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15819 ;;
15820 esac
15821 ;;
15822
15823 sysv4*MP*)
15824 if test -d /usr/nec ;then
15825 version_type=linux
15826 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15827 soname_spec='$libname${shared_ext}.$major'
15828 shlibpath_var=LD_LIBRARY_PATH
15829 fi
15830 ;;
15831
15832 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15833 version_type=freebsd-elf
15834 need_lib_prefix=no
15835 need_version=no
15836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15837 soname_spec='${libname}${release}${shared_ext}$major'
15838 shlibpath_var=LD_LIBRARY_PATH
15839 shlibpath_overrides_runpath=yes
15840 hardcode_into_libs=yes
15841 if test "$with_gnu_ld" = yes; then
15842 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15843 else
15844 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15845 case $host_os in
15846 sco3.2v5*)
15847 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15848 ;;
15849 esac
15850 fi
15851 sys_lib_dlsearch_path_spec='/usr/lib'
15852 ;;
15853
15854 tpf*)
15855 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15856 version_type=linux
15857 need_lib_prefix=no
15858 need_version=no
15859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15860 shlibpath_var=LD_LIBRARY_PATH
15861 shlibpath_overrides_runpath=no
15862 hardcode_into_libs=yes
15863 ;;
15864
15865 uts4*)
15866 version_type=linux
15867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15868 soname_spec='${libname}${release}${shared_ext}$major'
15869 shlibpath_var=LD_LIBRARY_PATH
15870 ;;
15871
15872 *)
15873 dynamic_linker=no
15874 ;;
15875 esac
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15877 $as_echo "$dynamic_linker" >&6; }
15878 test "$dynamic_linker" = no && can_build_shared=no
15879
15880 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15881 if test "$GCC" = yes; then
15882 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15883 fi
15884
15885 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15886 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15887 fi
15888 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15889 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15890 fi
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15930 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15931 hardcode_action_FC=
15932 if test -n "$hardcode_libdir_flag_spec_FC" ||
15933 test -n "$runpath_var_FC" ||
15934 test "X$hardcode_automatic_FC" = "Xyes" ; then
15935
15936 # We can hardcode non-existent directories.
15937 if test "$hardcode_direct_FC" != no &&
15938 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15939 # have to relink, otherwise we might link with an installed library
15940 # when we should be linking with a yet-to-be-installed one
15941 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
15942 test "$hardcode_minus_L_FC" != no; then
15943 # Linking always hardcodes the temporary library directory.
15944 hardcode_action_FC=relink
15945 else
15946 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15947 hardcode_action_FC=immediate
15948 fi
15949 else
15950 # We cannot hardcode anything, or else we can only hardcode existing
15951 # directories.
15952 hardcode_action_FC=unsupported
15953 fi
15954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
15955 $as_echo "$hardcode_action_FC" >&6; }
15956
15957 if test "$hardcode_action_FC" = relink ||
15958 test "$inherit_rpath_FC" = yes; then
15959 # Fast installation is not supported
15960 enable_fast_install=no
15961 elif test "$shlibpath_overrides_runpath" = yes ||
15962 test "$enable_shared" = no; then
15963 # Fast installation is not necessary
15964 enable_fast_install=needless
15965 fi
15966
15967
15968
15969
15970
15971
15972
15973 fi # test -n "$compiler"
15974
15975 GCC=$lt_save_GCC
15976 CC="$lt_save_CC"
15977 fi # test "$_lt_disable_FC" != yes
15978
15979 ac_ext=c
15980 ac_cpp='$CPP $CPPFLAGS'
15981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15984
15985
15986
15987 # extra LD Flags which are required for targets
15988 case "${host}" in
15989 *-darwin*)
15990 # Darwin needs -single_module when linking libgfortran
15991 extra_ldflags_libgfortran=-Wl,-single_module
15992 ;;
15993 esac
15994
15995
15996 # We need a working compiler at that point, otherwise give a clear
15997 # error message and bail out.
15998
15999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GNU Fortran compiler is working" >&5
16000 $as_echo_n "checking whether the GNU Fortran compiler is working... " >&6; }
16001 ac_ext=${ac_fc_srcext-f}
16002 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
16003 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
16004 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
16005
16006 cat > conftest.$ac_ext <<_ACEOF
16007
16008 program foo
16009 real, parameter :: bar = sin (12.34 / 2.5)
16010 end program foo
16011 _ACEOF
16012 if ac_fn_fc_try_compile "$LINENO"; then :
16013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16014 $as_echo "yes" >&6; }
16015 else
16016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16017 $as_echo "no" >&6; }
16018 as_fn_error $? "GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla, attaching $PWD/config.log" "$LINENO" 5
16019
16020 fi
16021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16022 ac_ext=c
16023 ac_cpp='$CPP $CPPFLAGS'
16024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16027
16028
16029
16030 # Check whether --enable-largefile was given.
16031 if test "${enable_largefile+set}" = set; then :
16032 enableval=$enable_largefile;
16033 fi
16034
16035 if test "$enable_largefile" != no; then
16036
16037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
16038 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
16039 if ${ac_cv_sys_largefile_CC+:} false; then :
16040 $as_echo_n "(cached) " >&6
16041 else
16042 ac_cv_sys_largefile_CC=no
16043 if test "$GCC" != yes; then
16044 ac_save_CC=$CC
16045 while :; do
16046 # IRIX 6.2 and later do not support large files by default,
16047 # so use the C compiler's -n32 option if that helps.
16048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16049 /* end confdefs.h. */
16050 #include <sys/types.h>
16051 /* Check that off_t can represent 2**63 - 1 correctly.
16052 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16053 since some C++ compilers masquerading as C compilers
16054 incorrectly reject 9223372036854775807. */
16055 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16056 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16057 && LARGE_OFF_T % 2147483647 == 1)
16058 ? 1 : -1];
16059 int
16060 main ()
16061 {
16062
16063 ;
16064 return 0;
16065 }
16066 _ACEOF
16067 if ac_fn_c_try_compile "$LINENO"; then :
16068 break
16069 fi
16070 rm -f core conftest.err conftest.$ac_objext
16071 CC="$CC -n32"
16072 if ac_fn_c_try_compile "$LINENO"; then :
16073 ac_cv_sys_largefile_CC=' -n32'; break
16074 fi
16075 rm -f core conftest.err conftest.$ac_objext
16076 break
16077 done
16078 CC=$ac_save_CC
16079 rm -f conftest.$ac_ext
16080 fi
16081 fi
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
16083 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
16084 if test "$ac_cv_sys_largefile_CC" != no; then
16085 CC=$CC$ac_cv_sys_largefile_CC
16086 fi
16087
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16089 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
16090 if ${ac_cv_sys_file_offset_bits+:} false; then :
16091 $as_echo_n "(cached) " >&6
16092 else
16093 while :; do
16094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16095 /* end confdefs.h. */
16096 #include <sys/types.h>
16097 /* Check that off_t can represent 2**63 - 1 correctly.
16098 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16099 since some C++ compilers masquerading as C compilers
16100 incorrectly reject 9223372036854775807. */
16101 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16102 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16103 && LARGE_OFF_T % 2147483647 == 1)
16104 ? 1 : -1];
16105 int
16106 main ()
16107 {
16108
16109 ;
16110 return 0;
16111 }
16112 _ACEOF
16113 if ac_fn_c_try_compile "$LINENO"; then :
16114 ac_cv_sys_file_offset_bits=no; break
16115 fi
16116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16118 /* end confdefs.h. */
16119 #define _FILE_OFFSET_BITS 64
16120 #include <sys/types.h>
16121 /* Check that off_t can represent 2**63 - 1 correctly.
16122 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16123 since some C++ compilers masquerading as C compilers
16124 incorrectly reject 9223372036854775807. */
16125 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16126 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16127 && LARGE_OFF_T % 2147483647 == 1)
16128 ? 1 : -1];
16129 int
16130 main ()
16131 {
16132
16133 ;
16134 return 0;
16135 }
16136 _ACEOF
16137 if ac_fn_c_try_compile "$LINENO"; then :
16138 ac_cv_sys_file_offset_bits=64; break
16139 fi
16140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16141 ac_cv_sys_file_offset_bits=unknown
16142 break
16143 done
16144 fi
16145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
16146 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
16147 case $ac_cv_sys_file_offset_bits in #(
16148 no | unknown) ;;
16149 *)
16150 cat >>confdefs.h <<_ACEOF
16151 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
16152 _ACEOF
16153 ;;
16154 esac
16155 rm -rf conftest*
16156 if test $ac_cv_sys_file_offset_bits = unknown; then
16157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
16158 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
16159 if ${ac_cv_sys_large_files+:} false; then :
16160 $as_echo_n "(cached) " >&6
16161 else
16162 while :; do
16163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16164 /* end confdefs.h. */
16165 #include <sys/types.h>
16166 /* Check that off_t can represent 2**63 - 1 correctly.
16167 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16168 since some C++ compilers masquerading as C compilers
16169 incorrectly reject 9223372036854775807. */
16170 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16171 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16172 && LARGE_OFF_T % 2147483647 == 1)
16173 ? 1 : -1];
16174 int
16175 main ()
16176 {
16177
16178 ;
16179 return 0;
16180 }
16181 _ACEOF
16182 if ac_fn_c_try_compile "$LINENO"; then :
16183 ac_cv_sys_large_files=no; break
16184 fi
16185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16187 /* end confdefs.h. */
16188 #define _LARGE_FILES 1
16189 #include <sys/types.h>
16190 /* Check that off_t can represent 2**63 - 1 correctly.
16191 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16192 since some C++ compilers masquerading as C compilers
16193 incorrectly reject 9223372036854775807. */
16194 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16195 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16196 && LARGE_OFF_T % 2147483647 == 1)
16197 ? 1 : -1];
16198 int
16199 main ()
16200 {
16201
16202 ;
16203 return 0;
16204 }
16205 _ACEOF
16206 if ac_fn_c_try_compile "$LINENO"; then :
16207 ac_cv_sys_large_files=1; break
16208 fi
16209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16210 ac_cv_sys_large_files=unknown
16211 break
16212 done
16213 fi
16214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
16215 $as_echo "$ac_cv_sys_large_files" >&6; }
16216 case $ac_cv_sys_large_files in #(
16217 no | unknown) ;;
16218 *)
16219 cat >>confdefs.h <<_ACEOF
16220 #define _LARGE_FILES $ac_cv_sys_large_files
16221 _ACEOF
16222 ;;
16223 esac
16224 rm -rf conftest*
16225 fi
16226
16227
16228 fi
16229
16230
16231 # Types
16232 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
16233 if test "x$ac_cv_type_off_t" = xyes; then :
16234
16235 else
16236
16237 cat >>confdefs.h <<_ACEOF
16238 #define off_t long int
16239 _ACEOF
16240
16241 fi
16242
16243
16244 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
16245 if test "x$ac_cv_type_intptr_t" = xyes; then :
16246
16247 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
16248
16249 else
16250 for ac_type in 'int' 'long int' 'long long int'; do
16251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16252 /* end confdefs.h. */
16253 $ac_includes_default
16254 int
16255 main ()
16256 {
16257 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16258 test_array [0] = 0;
16259 return test_array [0];
16260
16261 ;
16262 return 0;
16263 }
16264 _ACEOF
16265 if ac_fn_c_try_compile "$LINENO"; then :
16266
16267 cat >>confdefs.h <<_ACEOF
16268 #define intptr_t $ac_type
16269 _ACEOF
16270
16271 ac_type=
16272 fi
16273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16274 test -z "$ac_type" && break
16275 done
16276 fi
16277
16278
16279
16280 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
16281 if test "x$ac_cv_type_uintptr_t" = xyes; then :
16282
16283 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
16284
16285 else
16286 for ac_type in 'unsigned int' 'unsigned long int' \
16287 'unsigned long long int'; do
16288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16289 /* end confdefs.h. */
16290 $ac_includes_default
16291 int
16292 main ()
16293 {
16294 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16295 test_array [0] = 0;
16296 return test_array [0];
16297
16298 ;
16299 return 0;
16300 }
16301 _ACEOF
16302 if ac_fn_c_try_compile "$LINENO"; then :
16303
16304 cat >>confdefs.h <<_ACEOF
16305 #define uintptr_t $ac_type
16306 _ACEOF
16307
16308 ac_type=
16309 fi
16310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16311 test -z "$ac_type" && break
16312 done
16313 fi
16314
16315
16316 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
16317 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
16318
16319 cat >>confdefs.h <<_ACEOF
16320 #define HAVE_PTRDIFF_T 1
16321 _ACEOF
16322
16323
16324 fi
16325
16326
16327 # check header files (we assume C89 is available, so don't check for that)
16328
16329
16330
16331 for ac_header in $ac_header_list
16332 do :
16333 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16334 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16335 "
16336 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16337 cat >>confdefs.h <<_ACEOF
16338 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16339 _ACEOF
16340
16341 fi
16342
16343 done
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
16384
16385 acx_cv_header_stdint=stddef.h
16386 acx_cv_header_stdint_kind="(already complete)"
16387 for i in stdint.h $inttype_headers; do
16388 unset ac_cv_type_uintptr_t
16389 unset ac_cv_type_uintmax_t
16390 unset ac_cv_type_int_least32_t
16391 unset ac_cv_type_int_fast32_t
16392 unset ac_cv_type_uint64_t
16393 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
16394 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
16395 #include <$i>
16396 "
16397 if test "x$ac_cv_type_uintmax_t" = xyes; then :
16398 acx_cv_header_stdint=$i
16399 else
16400 continue
16401 fi
16402
16403 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16404 #include <$i>
16405 "
16406 if test "x$ac_cv_type_uintptr_t" = xyes; then :
16407
16408 else
16409 acx_cv_header_stdint_kind="(mostly complete)"
16410 fi
16411
16412 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
16413 #include <$i>
16414 "
16415 if test "x$ac_cv_type_int_least32_t" = xyes; then :
16416
16417 else
16418 acx_cv_header_stdint_kind="(mostly complete)"
16419 fi
16420
16421 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
16422 #include <$i>
16423 "
16424 if test "x$ac_cv_type_int_fast32_t" = xyes; then :
16425
16426 else
16427 acx_cv_header_stdint_kind="(mostly complete)"
16428 fi
16429
16430 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16431 #include <$i>
16432 "
16433 if test "x$ac_cv_type_uint64_t" = xyes; then :
16434
16435 else
16436 acx_cv_header_stdint_kind="(lacks uint64_t)"
16437 fi
16438
16439 break
16440 done
16441 if test "$acx_cv_header_stdint" = stddef.h; then
16442 acx_cv_header_stdint_kind="(lacks uintmax_t)"
16443 for i in stdint.h $inttype_headers; do
16444 unset ac_cv_type_uintptr_t
16445 unset ac_cv_type_uint32_t
16446 unset ac_cv_type_uint64_t
16447 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
16448 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
16449 #include <$i>
16450 "
16451 if test "x$ac_cv_type_uint32_t" = xyes; then :
16452 acx_cv_header_stdint=$i
16453 else
16454 continue
16455 fi
16456
16457 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16458 #include <$i>
16459 "
16460 if test "x$ac_cv_type_uint64_t" = xyes; then :
16461
16462 fi
16463
16464 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16465 #include <$i>
16466 "
16467 if test "x$ac_cv_type_uintptr_t" = xyes; then :
16468
16469 fi
16470
16471 break
16472 done
16473 fi
16474 if test "$acx_cv_header_stdint" = stddef.h; then
16475 acx_cv_header_stdint_kind="(u_intXX_t style)"
16476 for i in sys/types.h $inttype_headers; do
16477 unset ac_cv_type_u_int32_t
16478 unset ac_cv_type_u_int64_t
16479 $as_echo_n "looking for u_intXX_t types in $i, " >&6
16480 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
16481 #include <$i>
16482 "
16483 if test "x$ac_cv_type_u_int32_t" = xyes; then :
16484 acx_cv_header_stdint=$i
16485 else
16486 continue
16487 fi
16488
16489 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
16490 #include <$i>
16491 "
16492 if test "x$ac_cv_type_u_int64_t" = xyes; then :
16493
16494 fi
16495
16496 break
16497 done
16498 fi
16499 if test "$acx_cv_header_stdint" = stddef.h; then
16500 acx_cv_header_stdint_kind="(using manual detection)"
16501 fi
16502
16503 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
16504 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
16505 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
16506 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
16507 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
16508
16509 # ----------------- Summarize what we found so far
16510
16511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
16512 $as_echo_n "checking what to include in gstdint.h... " >&6; }
16513
16514 case `$as_basename -- gstdint.h ||
16515 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
16516 Xgstdint.h : 'X\(//\)$' \| \
16517 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
16518 $as_echo X/gstdint.h |
16519 sed '/^.*\/\([^/][^/]*\)\/*$/{
16520 s//\1/
16521 q
16522 }
16523 /^X\/\(\/\/\)$/{
16524 s//\1/
16525 q
16526 }
16527 /^X\/\(\/\).*/{
16528 s//\1/
16529 q
16530 }
16531 s/.*/./; q'` in
16532 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16533 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16534 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16535 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16536 *) ;;
16537 esac
16538
16539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
16540 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
16541
16542 # ----------------- done included file, check C basic types --------
16543
16544 # Lacking an uintptr_t? Test size of void *
16545 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
16546 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
16547 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16548 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16549 # This bug is HP SR number 8606223364.
16550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16551 $as_echo_n "checking size of void *... " >&6; }
16552 if ${ac_cv_sizeof_void_p+:} false; then :
16553 $as_echo_n "(cached) " >&6
16554 else
16555 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
16556
16557 else
16558 if test "$ac_cv_type_void_p" = yes; then
16559 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16560 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16561 as_fn_error 77 "cannot compute sizeof (void *)
16562 See \`config.log' for more details" "$LINENO" 5; }
16563 else
16564 ac_cv_sizeof_void_p=0
16565 fi
16566 fi
16567
16568 fi
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16570 $as_echo "$ac_cv_sizeof_void_p" >&6; }
16571
16572
16573
16574 cat >>confdefs.h <<_ACEOF
16575 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16576 _ACEOF
16577
16578 ;;
16579 esac
16580
16581 # Lacking an uint64_t? Test size of long
16582 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
16583 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
16584 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16585 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16586 # This bug is HP SR number 8606223364.
16587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16588 $as_echo_n "checking size of long... " >&6; }
16589 if ${ac_cv_sizeof_long+:} false; then :
16590 $as_echo_n "(cached) " >&6
16591 else
16592 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16593
16594 else
16595 if test "$ac_cv_type_long" = yes; then
16596 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16597 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16598 as_fn_error 77 "cannot compute sizeof (long)
16599 See \`config.log' for more details" "$LINENO" 5; }
16600 else
16601 ac_cv_sizeof_long=0
16602 fi
16603 fi
16604
16605 fi
16606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16607 $as_echo "$ac_cv_sizeof_long" >&6; }
16608
16609
16610
16611 cat >>confdefs.h <<_ACEOF
16612 #define SIZEOF_LONG $ac_cv_sizeof_long
16613 _ACEOF
16614
16615 ;;
16616 esac
16617
16618 if test $acx_cv_header_stdint = stddef.h; then
16619 # Lacking a good header? Test size of everything and deduce all types.
16620 # The cast to long int works around a bug in the HP C Compiler
16621 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16622 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16623 # This bug is HP SR number 8606223364.
16624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16625 $as_echo_n "checking size of int... " >&6; }
16626 if ${ac_cv_sizeof_int+:} false; then :
16627 $as_echo_n "(cached) " >&6
16628 else
16629 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
16630
16631 else
16632 if test "$ac_cv_type_int" = yes; then
16633 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16634 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16635 as_fn_error 77 "cannot compute sizeof (int)
16636 See \`config.log' for more details" "$LINENO" 5; }
16637 else
16638 ac_cv_sizeof_int=0
16639 fi
16640 fi
16641
16642 fi
16643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16644 $as_echo "$ac_cv_sizeof_int" >&6; }
16645
16646
16647
16648 cat >>confdefs.h <<_ACEOF
16649 #define SIZEOF_INT $ac_cv_sizeof_int
16650 _ACEOF
16651
16652
16653 # The cast to long int works around a bug in the HP C Compiler
16654 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16655 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16656 # This bug is HP SR number 8606223364.
16657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16658 $as_echo_n "checking size of short... " >&6; }
16659 if ${ac_cv_sizeof_short+:} false; then :
16660 $as_echo_n "(cached) " >&6
16661 else
16662 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
16663
16664 else
16665 if test "$ac_cv_type_short" = yes; then
16666 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16667 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16668 as_fn_error 77 "cannot compute sizeof (short)
16669 See \`config.log' for more details" "$LINENO" 5; }
16670 else
16671 ac_cv_sizeof_short=0
16672 fi
16673 fi
16674
16675 fi
16676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16677 $as_echo "$ac_cv_sizeof_short" >&6; }
16678
16679
16680
16681 cat >>confdefs.h <<_ACEOF
16682 #define SIZEOF_SHORT $ac_cv_sizeof_short
16683 _ACEOF
16684
16685
16686 # The cast to long int works around a bug in the HP C Compiler
16687 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16688 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16689 # This bug is HP SR number 8606223364.
16690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16691 $as_echo_n "checking size of char... " >&6; }
16692 if ${ac_cv_sizeof_char+:} false; then :
16693 $as_echo_n "(cached) " >&6
16694 else
16695 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
16696
16697 else
16698 if test "$ac_cv_type_char" = yes; then
16699 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16701 as_fn_error 77 "cannot compute sizeof (char)
16702 See \`config.log' for more details" "$LINENO" 5; }
16703 else
16704 ac_cv_sizeof_char=0
16705 fi
16706 fi
16707
16708 fi
16709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16710 $as_echo "$ac_cv_sizeof_char" >&6; }
16711
16712
16713
16714 cat >>confdefs.h <<_ACEOF
16715 #define SIZEOF_CHAR $ac_cv_sizeof_char
16716 _ACEOF
16717
16718
16719
16720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
16721 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
16722 case "$ac_cv_sizeof_char" in
16723 1) acx_cv_type_int8_t=char ;;
16724 *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5
16725 esac
16726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
16727 $as_echo "$acx_cv_type_int8_t" >&6; }
16728
16729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
16730 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
16731 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16732 2:*) acx_cv_type_int16_t=int ;;
16733 *:2) acx_cv_type_int16_t=short ;;
16734 *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5
16735 esac
16736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16737 $as_echo "$acx_cv_type_int16_t" >&6; }
16738
16739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16740 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
16741 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16742 4:*) acx_cv_type_int32_t=int ;;
16743 *:4) acx_cv_type_int32_t=long ;;
16744 *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5
16745 esac
16746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16747 $as_echo "$acx_cv_type_int32_t" >&6; }
16748 fi
16749
16750 # These tests are here to make the output prettier
16751
16752 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16753 case "$ac_cv_sizeof_long" in
16754 8) acx_cv_type_int64_t=long ;;
16755 esac
16756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16757 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
16758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16759 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16760 fi
16761
16762 # Now we can use the above types
16763
16764 if test "$ac_cv_type_uintptr_t" != yes; then
16765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16766 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16767 case $ac_cv_sizeof_void_p in
16768 2) acx_cv_type_intptr_t=int16_t ;;
16769 4) acx_cv_type_intptr_t=int32_t ;;
16770 8) acx_cv_type_intptr_t=int64_t ;;
16771 *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5
16772 esac
16773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16774 $as_echo "$acx_cv_type_intptr_t" >&6; }
16775 fi
16776
16777 # ----------------- done all checks, emit header -------------
16778 ac_config_commands="$ac_config_commands gstdint.h"
16779
16780
16781
16782
16783 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
16784 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
16785
16786 cat >>confdefs.h <<_ACEOF
16787 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
16788 _ACEOF
16789
16790
16791 fi
16792 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
16793 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
16794
16795 cat >>confdefs.h <<_ACEOF
16796 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
16797 _ACEOF
16798
16799
16800 fi
16801 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
16802 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
16803
16804 cat >>confdefs.h <<_ACEOF
16805 #define HAVE_STRUCT_STAT_ST_RDEV 1
16806 _ACEOF
16807
16808
16809 fi
16810
16811
16812 case "${host}--x${with_newlib}" in
16813 mips*--xyes)
16814 hardwire_newlib=1;;
16815 nvptx*--xyes)
16816 hardwire_newlib=1;;
16817 esac
16818
16819 # Check for library functions.
16820 if test "${hardwire_newlib:-0}" -eq 1; then
16821 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
16822 # may not work correctly, because the compiler may not be able to
16823 # link executables.
16824
16825 $as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
16826
16827
16828 $as_echo "#define HAVE_STRTOF 1" >>confdefs.h
16829
16830
16831 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
16832
16833
16834 $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
16835
16836
16837 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
16838
16839
16840 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
16841
16842
16843 $as_echo "#define HAVE_STRNLEN 1" >>confdefs.h
16844
16845
16846 $as_echo "#define HAVE_STRNDUP 1" >>confdefs.h
16847
16848
16849 # At some point, we should differentiate between architectures
16850 # like x86, which have long double versions, and alpha/powerpc/etc.,
16851 # which don't. For the time being, punt.
16852 if test x"long_double_math_on_this_cpu" = x"yes"; then
16853
16854 $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
16855
16856 fi
16857 else
16858
16859
16860
16861 for ac_func in $ac_func_list
16862 do :
16863 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16864 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16865 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16866 cat >>confdefs.h <<_ACEOF
16867 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16868 _ACEOF
16869
16870 fi
16871 done
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982 fi
16983
16984 # Check strerror_r, cannot be above as versions with two and three arguments exist
16985
16986 ac_save_CFLAGS="$CFLAGS"
16987 CFLAGS="-Wimplicit-function-declaration -Werror"
16988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16989 /* end confdefs.h. */
16990 #define _GNU_SOURCE 1
16991 #include <string.h>
16992 #include <locale.h>
16993 int
16994 main ()
16995 {
16996 char s[128]; strerror_r(5, s, 128);
16997 ;
16998 return 0;
16999 }
17000 _ACEOF
17001 if ac_fn_c_try_compile "$LINENO"; then :
17002
17003 $as_echo "#define HAVE_STRERROR_R 1" >>confdefs.h
17004
17005 fi
17006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17007 CFLAGS="$ac_save_CFLAGS"
17008
17009 ac_save_CFLAGS="$CFLAGS"
17010 CFLAGS="-Wimplicit-function-declaration -Werror"
17011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17012 /* end confdefs.h. */
17013 #define _GNU_SOURCE 1
17014 #include <string.h>
17015 #include <locale.h>
17016 int
17017 main ()
17018 {
17019 char s[128]; strerror_r(5, s);
17020 ;
17021 return 0;
17022 }
17023 _ACEOF
17024 if ac_fn_c_try_compile "$LINENO"; then :
17025
17026 $as_echo "#define HAVE_STRERROR_R_2ARGS 1" >>confdefs.h
17027
17028 fi
17029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17030 CFLAGS="$ac_save_CFLAGS"
17031
17032
17033 # Check for C99 (and other IEEE) math functions
17034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
17035 $as_echo_n "checking for sin in -lm... " >&6; }
17036 if ${ac_cv_lib_m_sin+:} false; then :
17037 $as_echo_n "(cached) " >&6
17038 else
17039 ac_check_lib_save_LIBS=$LIBS
17040 LIBS="-lm $LIBS"
17041 if test x$gcc_no_link = xyes; then
17042 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17043 fi
17044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17045 /* end confdefs.h. */
17046
17047 /* Override any GCC internal prototype to avoid an error.
17048 Use char because int might match the return type of a GCC
17049 builtin and then its argument prototype would still apply. */
17050 #ifdef __cplusplus
17051 extern "C"
17052 #endif
17053 char sin ();
17054 int
17055 main ()
17056 {
17057 return sin ();
17058 ;
17059 return 0;
17060 }
17061 _ACEOF
17062 if ac_fn_c_try_link "$LINENO"; then :
17063 ac_cv_lib_m_sin=yes
17064 else
17065 ac_cv_lib_m_sin=no
17066 fi
17067 rm -f core conftest.err conftest.$ac_objext \
17068 conftest$ac_exeext conftest.$ac_ext
17069 LIBS=$ac_check_lib_save_LIBS
17070 fi
17071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
17072 $as_echo "$ac_cv_lib_m_sin" >&6; }
17073 if test "x$ac_cv_lib_m_sin" = xyes; then :
17074 cat >>confdefs.h <<_ACEOF
17075 #define HAVE_LIBM 1
17076 _ACEOF
17077
17078 LIBS="-lm $LIBS"
17079
17080 fi
17081
17082
17083
17084
17085
17086
17087
17088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosf" >&5
17089 $as_echo_n "checking for acosf... " >&6; }
17090 if ${gcc_cv_math_func_acosf+:} false; then :
17091 $as_echo_n "(cached) " >&6
17092 else
17093 if test x$gcc_no_link = xyes; then
17094 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17095 fi
17096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17097 /* end confdefs.h. */
17098
17099 #ifdef HAVE_COMPLEX_H
17100 #include <complex.h>
17101 #endif
17102 #ifdef HAVE_MATH_H
17103 #include <math.h>
17104 #endif
17105
17106 int (*ptr)() = (int (*)())acosf;
17107
17108 int
17109 main ()
17110 {
17111 return 0;
17112 }
17113
17114 _ACEOF
17115 if ac_fn_c_try_link "$LINENO"; then :
17116 gcc_cv_math_func_acosf=yes
17117 else
17118 gcc_cv_math_func_acosf=no
17119 fi
17120 rm -f core conftest.err conftest.$ac_objext \
17121 conftest$ac_exeext conftest.$ac_ext
17122 fi
17123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosf" >&5
17124 $as_echo "$gcc_cv_math_func_acosf" >&6; }
17125 if test $gcc_cv_math_func_acosf = yes; then
17126
17127 cat >>confdefs.h <<_ACEOF
17128 #define HAVE_ACOSF 1
17129 _ACEOF
17130
17131 fi
17132
17133
17134
17135
17136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acos" >&5
17137 $as_echo_n "checking for acos... " >&6; }
17138 if ${gcc_cv_math_func_acos+:} false; then :
17139 $as_echo_n "(cached) " >&6
17140 else
17141 if test x$gcc_no_link = xyes; then
17142 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17143 fi
17144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17145 /* end confdefs.h. */
17146
17147 #ifdef HAVE_COMPLEX_H
17148 #include <complex.h>
17149 #endif
17150 #ifdef HAVE_MATH_H
17151 #include <math.h>
17152 #endif
17153
17154 int (*ptr)() = (int (*)())acos;
17155
17156 int
17157 main ()
17158 {
17159 return 0;
17160 }
17161
17162 _ACEOF
17163 if ac_fn_c_try_link "$LINENO"; then :
17164 gcc_cv_math_func_acos=yes
17165 else
17166 gcc_cv_math_func_acos=no
17167 fi
17168 rm -f core conftest.err conftest.$ac_objext \
17169 conftest$ac_exeext conftest.$ac_ext
17170 fi
17171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acos" >&5
17172 $as_echo "$gcc_cv_math_func_acos" >&6; }
17173 if test $gcc_cv_math_func_acos = yes; then
17174
17175 cat >>confdefs.h <<_ACEOF
17176 #define HAVE_ACOS 1
17177 _ACEOF
17178
17179 fi
17180
17181
17182
17183
17184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosl" >&5
17185 $as_echo_n "checking for acosl... " >&6; }
17186 if ${gcc_cv_math_func_acosl+:} false; then :
17187 $as_echo_n "(cached) " >&6
17188 else
17189 if test x$gcc_no_link = xyes; then
17190 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17191 fi
17192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17193 /* end confdefs.h. */
17194
17195 #ifdef HAVE_COMPLEX_H
17196 #include <complex.h>
17197 #endif
17198 #ifdef HAVE_MATH_H
17199 #include <math.h>
17200 #endif
17201
17202 int (*ptr)() = (int (*)())acosl;
17203
17204 int
17205 main ()
17206 {
17207 return 0;
17208 }
17209
17210 _ACEOF
17211 if ac_fn_c_try_link "$LINENO"; then :
17212 gcc_cv_math_func_acosl=yes
17213 else
17214 gcc_cv_math_func_acosl=no
17215 fi
17216 rm -f core conftest.err conftest.$ac_objext \
17217 conftest$ac_exeext conftest.$ac_ext
17218 fi
17219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosl" >&5
17220 $as_echo "$gcc_cv_math_func_acosl" >&6; }
17221 if test $gcc_cv_math_func_acosl = yes; then
17222
17223 cat >>confdefs.h <<_ACEOF
17224 #define HAVE_ACOSL 1
17225 _ACEOF
17226
17227 fi
17228
17229
17230
17231
17232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshf" >&5
17233 $as_echo_n "checking for acoshf... " >&6; }
17234 if ${gcc_cv_math_func_acoshf+:} false; then :
17235 $as_echo_n "(cached) " >&6
17236 else
17237 if test x$gcc_no_link = xyes; then
17238 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17239 fi
17240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17241 /* end confdefs.h. */
17242
17243 #ifdef HAVE_COMPLEX_H
17244 #include <complex.h>
17245 #endif
17246 #ifdef HAVE_MATH_H
17247 #include <math.h>
17248 #endif
17249
17250 int (*ptr)() = (int (*)())acoshf;
17251
17252 int
17253 main ()
17254 {
17255 return 0;
17256 }
17257
17258 _ACEOF
17259 if ac_fn_c_try_link "$LINENO"; then :
17260 gcc_cv_math_func_acoshf=yes
17261 else
17262 gcc_cv_math_func_acoshf=no
17263 fi
17264 rm -f core conftest.err conftest.$ac_objext \
17265 conftest$ac_exeext conftest.$ac_ext
17266 fi
17267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshf" >&5
17268 $as_echo "$gcc_cv_math_func_acoshf" >&6; }
17269 if test $gcc_cv_math_func_acoshf = yes; then
17270
17271 cat >>confdefs.h <<_ACEOF
17272 #define HAVE_ACOSHF 1
17273 _ACEOF
17274
17275 fi
17276
17277
17278
17279
17280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosh" >&5
17281 $as_echo_n "checking for acosh... " >&6; }
17282 if ${gcc_cv_math_func_acosh+:} false; then :
17283 $as_echo_n "(cached) " >&6
17284 else
17285 if test x$gcc_no_link = xyes; then
17286 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17287 fi
17288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17289 /* end confdefs.h. */
17290
17291 #ifdef HAVE_COMPLEX_H
17292 #include <complex.h>
17293 #endif
17294 #ifdef HAVE_MATH_H
17295 #include <math.h>
17296 #endif
17297
17298 int (*ptr)() = (int (*)())acosh;
17299
17300 int
17301 main ()
17302 {
17303 return 0;
17304 }
17305
17306 _ACEOF
17307 if ac_fn_c_try_link "$LINENO"; then :
17308 gcc_cv_math_func_acosh=yes
17309 else
17310 gcc_cv_math_func_acosh=no
17311 fi
17312 rm -f core conftest.err conftest.$ac_objext \
17313 conftest$ac_exeext conftest.$ac_ext
17314 fi
17315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosh" >&5
17316 $as_echo "$gcc_cv_math_func_acosh" >&6; }
17317 if test $gcc_cv_math_func_acosh = yes; then
17318
17319 cat >>confdefs.h <<_ACEOF
17320 #define HAVE_ACOSH 1
17321 _ACEOF
17322
17323 fi
17324
17325
17326
17327
17328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshl" >&5
17329 $as_echo_n "checking for acoshl... " >&6; }
17330 if ${gcc_cv_math_func_acoshl+:} false; then :
17331 $as_echo_n "(cached) " >&6
17332 else
17333 if test x$gcc_no_link = xyes; then
17334 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17335 fi
17336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17337 /* end confdefs.h. */
17338
17339 #ifdef HAVE_COMPLEX_H
17340 #include <complex.h>
17341 #endif
17342 #ifdef HAVE_MATH_H
17343 #include <math.h>
17344 #endif
17345
17346 int (*ptr)() = (int (*)())acoshl;
17347
17348 int
17349 main ()
17350 {
17351 return 0;
17352 }
17353
17354 _ACEOF
17355 if ac_fn_c_try_link "$LINENO"; then :
17356 gcc_cv_math_func_acoshl=yes
17357 else
17358 gcc_cv_math_func_acoshl=no
17359 fi
17360 rm -f core conftest.err conftest.$ac_objext \
17361 conftest$ac_exeext conftest.$ac_ext
17362 fi
17363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshl" >&5
17364 $as_echo "$gcc_cv_math_func_acoshl" >&6; }
17365 if test $gcc_cv_math_func_acoshl = yes; then
17366
17367 cat >>confdefs.h <<_ACEOF
17368 #define HAVE_ACOSHL 1
17369 _ACEOF
17370
17371 fi
17372
17373
17374
17375
17376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinf" >&5
17377 $as_echo_n "checking for asinf... " >&6; }
17378 if ${gcc_cv_math_func_asinf+:} false; then :
17379 $as_echo_n "(cached) " >&6
17380 else
17381 if test x$gcc_no_link = xyes; then
17382 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17383 fi
17384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17385 /* end confdefs.h. */
17386
17387 #ifdef HAVE_COMPLEX_H
17388 #include <complex.h>
17389 #endif
17390 #ifdef HAVE_MATH_H
17391 #include <math.h>
17392 #endif
17393
17394 int (*ptr)() = (int (*)())asinf;
17395
17396 int
17397 main ()
17398 {
17399 return 0;
17400 }
17401
17402 _ACEOF
17403 if ac_fn_c_try_link "$LINENO"; then :
17404 gcc_cv_math_func_asinf=yes
17405 else
17406 gcc_cv_math_func_asinf=no
17407 fi
17408 rm -f core conftest.err conftest.$ac_objext \
17409 conftest$ac_exeext conftest.$ac_ext
17410 fi
17411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinf" >&5
17412 $as_echo "$gcc_cv_math_func_asinf" >&6; }
17413 if test $gcc_cv_math_func_asinf = yes; then
17414
17415 cat >>confdefs.h <<_ACEOF
17416 #define HAVE_ASINF 1
17417 _ACEOF
17418
17419 fi
17420
17421
17422
17423
17424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin" >&5
17425 $as_echo_n "checking for asin... " >&6; }
17426 if ${gcc_cv_math_func_asin+:} false; then :
17427 $as_echo_n "(cached) " >&6
17428 else
17429 if test x$gcc_no_link = xyes; then
17430 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17431 fi
17432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17433 /* end confdefs.h. */
17434
17435 #ifdef HAVE_COMPLEX_H
17436 #include <complex.h>
17437 #endif
17438 #ifdef HAVE_MATH_H
17439 #include <math.h>
17440 #endif
17441
17442 int (*ptr)() = (int (*)())asin;
17443
17444 int
17445 main ()
17446 {
17447 return 0;
17448 }
17449
17450 _ACEOF
17451 if ac_fn_c_try_link "$LINENO"; then :
17452 gcc_cv_math_func_asin=yes
17453 else
17454 gcc_cv_math_func_asin=no
17455 fi
17456 rm -f core conftest.err conftest.$ac_objext \
17457 conftest$ac_exeext conftest.$ac_ext
17458 fi
17459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asin" >&5
17460 $as_echo "$gcc_cv_math_func_asin" >&6; }
17461 if test $gcc_cv_math_func_asin = yes; then
17462
17463 cat >>confdefs.h <<_ACEOF
17464 #define HAVE_ASIN 1
17465 _ACEOF
17466
17467 fi
17468
17469
17470
17471
17472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinl" >&5
17473 $as_echo_n "checking for asinl... " >&6; }
17474 if ${gcc_cv_math_func_asinl+:} false; then :
17475 $as_echo_n "(cached) " >&6
17476 else
17477 if test x$gcc_no_link = xyes; then
17478 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17479 fi
17480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17481 /* end confdefs.h. */
17482
17483 #ifdef HAVE_COMPLEX_H
17484 #include <complex.h>
17485 #endif
17486 #ifdef HAVE_MATH_H
17487 #include <math.h>
17488 #endif
17489
17490 int (*ptr)() = (int (*)())asinl;
17491
17492 int
17493 main ()
17494 {
17495 return 0;
17496 }
17497
17498 _ACEOF
17499 if ac_fn_c_try_link "$LINENO"; then :
17500 gcc_cv_math_func_asinl=yes
17501 else
17502 gcc_cv_math_func_asinl=no
17503 fi
17504 rm -f core conftest.err conftest.$ac_objext \
17505 conftest$ac_exeext conftest.$ac_ext
17506 fi
17507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinl" >&5
17508 $as_echo "$gcc_cv_math_func_asinl" >&6; }
17509 if test $gcc_cv_math_func_asinl = yes; then
17510
17511 cat >>confdefs.h <<_ACEOF
17512 #define HAVE_ASINL 1
17513 _ACEOF
17514
17515 fi
17516
17517
17518
17519
17520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhf" >&5
17521 $as_echo_n "checking for asinhf... " >&6; }
17522 if ${gcc_cv_math_func_asinhf+:} false; then :
17523 $as_echo_n "(cached) " >&6
17524 else
17525 if test x$gcc_no_link = xyes; then
17526 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17527 fi
17528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17529 /* end confdefs.h. */
17530
17531 #ifdef HAVE_COMPLEX_H
17532 #include <complex.h>
17533 #endif
17534 #ifdef HAVE_MATH_H
17535 #include <math.h>
17536 #endif
17537
17538 int (*ptr)() = (int (*)())asinhf;
17539
17540 int
17541 main ()
17542 {
17543 return 0;
17544 }
17545
17546 _ACEOF
17547 if ac_fn_c_try_link "$LINENO"; then :
17548 gcc_cv_math_func_asinhf=yes
17549 else
17550 gcc_cv_math_func_asinhf=no
17551 fi
17552 rm -f core conftest.err conftest.$ac_objext \
17553 conftest$ac_exeext conftest.$ac_ext
17554 fi
17555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhf" >&5
17556 $as_echo "$gcc_cv_math_func_asinhf" >&6; }
17557 if test $gcc_cv_math_func_asinhf = yes; then
17558
17559 cat >>confdefs.h <<_ACEOF
17560 #define HAVE_ASINHF 1
17561 _ACEOF
17562
17563 fi
17564
17565
17566
17567
17568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinh" >&5
17569 $as_echo_n "checking for asinh... " >&6; }
17570 if ${gcc_cv_math_func_asinh+:} false; then :
17571 $as_echo_n "(cached) " >&6
17572 else
17573 if test x$gcc_no_link = xyes; then
17574 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17575 fi
17576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17577 /* end confdefs.h. */
17578
17579 #ifdef HAVE_COMPLEX_H
17580 #include <complex.h>
17581 #endif
17582 #ifdef HAVE_MATH_H
17583 #include <math.h>
17584 #endif
17585
17586 int (*ptr)() = (int (*)())asinh;
17587
17588 int
17589 main ()
17590 {
17591 return 0;
17592 }
17593
17594 _ACEOF
17595 if ac_fn_c_try_link "$LINENO"; then :
17596 gcc_cv_math_func_asinh=yes
17597 else
17598 gcc_cv_math_func_asinh=no
17599 fi
17600 rm -f core conftest.err conftest.$ac_objext \
17601 conftest$ac_exeext conftest.$ac_ext
17602 fi
17603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinh" >&5
17604 $as_echo "$gcc_cv_math_func_asinh" >&6; }
17605 if test $gcc_cv_math_func_asinh = yes; then
17606
17607 cat >>confdefs.h <<_ACEOF
17608 #define HAVE_ASINH 1
17609 _ACEOF
17610
17611 fi
17612
17613
17614
17615
17616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhl" >&5
17617 $as_echo_n "checking for asinhl... " >&6; }
17618 if ${gcc_cv_math_func_asinhl+:} false; then :
17619 $as_echo_n "(cached) " >&6
17620 else
17621 if test x$gcc_no_link = xyes; then
17622 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17623 fi
17624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17625 /* end confdefs.h. */
17626
17627 #ifdef HAVE_COMPLEX_H
17628 #include <complex.h>
17629 #endif
17630 #ifdef HAVE_MATH_H
17631 #include <math.h>
17632 #endif
17633
17634 int (*ptr)() = (int (*)())asinhl;
17635
17636 int
17637 main ()
17638 {
17639 return 0;
17640 }
17641
17642 _ACEOF
17643 if ac_fn_c_try_link "$LINENO"; then :
17644 gcc_cv_math_func_asinhl=yes
17645 else
17646 gcc_cv_math_func_asinhl=no
17647 fi
17648 rm -f core conftest.err conftest.$ac_objext \
17649 conftest$ac_exeext conftest.$ac_ext
17650 fi
17651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhl" >&5
17652 $as_echo "$gcc_cv_math_func_asinhl" >&6; }
17653 if test $gcc_cv_math_func_asinhl = yes; then
17654
17655 cat >>confdefs.h <<_ACEOF
17656 #define HAVE_ASINHL 1
17657 _ACEOF
17658
17659 fi
17660
17661
17662
17663
17664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f" >&5
17665 $as_echo_n "checking for atan2f... " >&6; }
17666 if ${gcc_cv_math_func_atan2f+:} false; then :
17667 $as_echo_n "(cached) " >&6
17668 else
17669 if test x$gcc_no_link = xyes; then
17670 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17671 fi
17672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17673 /* end confdefs.h. */
17674
17675 #ifdef HAVE_COMPLEX_H
17676 #include <complex.h>
17677 #endif
17678 #ifdef HAVE_MATH_H
17679 #include <math.h>
17680 #endif
17681
17682 int (*ptr)() = (int (*)())atan2f;
17683
17684 int
17685 main ()
17686 {
17687 return 0;
17688 }
17689
17690 _ACEOF
17691 if ac_fn_c_try_link "$LINENO"; then :
17692 gcc_cv_math_func_atan2f=yes
17693 else
17694 gcc_cv_math_func_atan2f=no
17695 fi
17696 rm -f core conftest.err conftest.$ac_objext \
17697 conftest$ac_exeext conftest.$ac_ext
17698 fi
17699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2f" >&5
17700 $as_echo "$gcc_cv_math_func_atan2f" >&6; }
17701 if test $gcc_cv_math_func_atan2f = yes; then
17702
17703 cat >>confdefs.h <<_ACEOF
17704 #define HAVE_ATAN2F 1
17705 _ACEOF
17706
17707 fi
17708
17709
17710
17711
17712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2" >&5
17713 $as_echo_n "checking for atan2... " >&6; }
17714 if ${gcc_cv_math_func_atan2+:} false; then :
17715 $as_echo_n "(cached) " >&6
17716 else
17717 if test x$gcc_no_link = xyes; then
17718 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17719 fi
17720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17721 /* end confdefs.h. */
17722
17723 #ifdef HAVE_COMPLEX_H
17724 #include <complex.h>
17725 #endif
17726 #ifdef HAVE_MATH_H
17727 #include <math.h>
17728 #endif
17729
17730 int (*ptr)() = (int (*)())atan2;
17731
17732 int
17733 main ()
17734 {
17735 return 0;
17736 }
17737
17738 _ACEOF
17739 if ac_fn_c_try_link "$LINENO"; then :
17740 gcc_cv_math_func_atan2=yes
17741 else
17742 gcc_cv_math_func_atan2=no
17743 fi
17744 rm -f core conftest.err conftest.$ac_objext \
17745 conftest$ac_exeext conftest.$ac_ext
17746 fi
17747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2" >&5
17748 $as_echo "$gcc_cv_math_func_atan2" >&6; }
17749 if test $gcc_cv_math_func_atan2 = yes; then
17750
17751 cat >>confdefs.h <<_ACEOF
17752 #define HAVE_ATAN2 1
17753 _ACEOF
17754
17755 fi
17756
17757
17758
17759
17760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l" >&5
17761 $as_echo_n "checking for atan2l... " >&6; }
17762 if ${gcc_cv_math_func_atan2l+:} false; then :
17763 $as_echo_n "(cached) " >&6
17764 else
17765 if test x$gcc_no_link = xyes; then
17766 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17767 fi
17768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17769 /* end confdefs.h. */
17770
17771 #ifdef HAVE_COMPLEX_H
17772 #include <complex.h>
17773 #endif
17774 #ifdef HAVE_MATH_H
17775 #include <math.h>
17776 #endif
17777
17778 int (*ptr)() = (int (*)())atan2l;
17779
17780 int
17781 main ()
17782 {
17783 return 0;
17784 }
17785
17786 _ACEOF
17787 if ac_fn_c_try_link "$LINENO"; then :
17788 gcc_cv_math_func_atan2l=yes
17789 else
17790 gcc_cv_math_func_atan2l=no
17791 fi
17792 rm -f core conftest.err conftest.$ac_objext \
17793 conftest$ac_exeext conftest.$ac_ext
17794 fi
17795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2l" >&5
17796 $as_echo "$gcc_cv_math_func_atan2l" >&6; }
17797 if test $gcc_cv_math_func_atan2l = yes; then
17798
17799 cat >>confdefs.h <<_ACEOF
17800 #define HAVE_ATAN2L 1
17801 _ACEOF
17802
17803 fi
17804
17805
17806
17807
17808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanf" >&5
17809 $as_echo_n "checking for atanf... " >&6; }
17810 if ${gcc_cv_math_func_atanf+:} false; then :
17811 $as_echo_n "(cached) " >&6
17812 else
17813 if test x$gcc_no_link = xyes; then
17814 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17815 fi
17816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17817 /* end confdefs.h. */
17818
17819 #ifdef HAVE_COMPLEX_H
17820 #include <complex.h>
17821 #endif
17822 #ifdef HAVE_MATH_H
17823 #include <math.h>
17824 #endif
17825
17826 int (*ptr)() = (int (*)())atanf;
17827
17828 int
17829 main ()
17830 {
17831 return 0;
17832 }
17833
17834 _ACEOF
17835 if ac_fn_c_try_link "$LINENO"; then :
17836 gcc_cv_math_func_atanf=yes
17837 else
17838 gcc_cv_math_func_atanf=no
17839 fi
17840 rm -f core conftest.err conftest.$ac_objext \
17841 conftest$ac_exeext conftest.$ac_ext
17842 fi
17843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanf" >&5
17844 $as_echo "$gcc_cv_math_func_atanf" >&6; }
17845 if test $gcc_cv_math_func_atanf = yes; then
17846
17847 cat >>confdefs.h <<_ACEOF
17848 #define HAVE_ATANF 1
17849 _ACEOF
17850
17851 fi
17852
17853
17854
17855
17856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan" >&5
17857 $as_echo_n "checking for atan... " >&6; }
17858 if ${gcc_cv_math_func_atan+:} false; then :
17859 $as_echo_n "(cached) " >&6
17860 else
17861 if test x$gcc_no_link = xyes; then
17862 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17863 fi
17864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17865 /* end confdefs.h. */
17866
17867 #ifdef HAVE_COMPLEX_H
17868 #include <complex.h>
17869 #endif
17870 #ifdef HAVE_MATH_H
17871 #include <math.h>
17872 #endif
17873
17874 int (*ptr)() = (int (*)())atan;
17875
17876 int
17877 main ()
17878 {
17879 return 0;
17880 }
17881
17882 _ACEOF
17883 if ac_fn_c_try_link "$LINENO"; then :
17884 gcc_cv_math_func_atan=yes
17885 else
17886 gcc_cv_math_func_atan=no
17887 fi
17888 rm -f core conftest.err conftest.$ac_objext \
17889 conftest$ac_exeext conftest.$ac_ext
17890 fi
17891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan" >&5
17892 $as_echo "$gcc_cv_math_func_atan" >&6; }
17893 if test $gcc_cv_math_func_atan = yes; then
17894
17895 cat >>confdefs.h <<_ACEOF
17896 #define HAVE_ATAN 1
17897 _ACEOF
17898
17899 fi
17900
17901
17902
17903
17904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanl" >&5
17905 $as_echo_n "checking for atanl... " >&6; }
17906 if ${gcc_cv_math_func_atanl+:} false; then :
17907 $as_echo_n "(cached) " >&6
17908 else
17909 if test x$gcc_no_link = xyes; then
17910 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17911 fi
17912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17913 /* end confdefs.h. */
17914
17915 #ifdef HAVE_COMPLEX_H
17916 #include <complex.h>
17917 #endif
17918 #ifdef HAVE_MATH_H
17919 #include <math.h>
17920 #endif
17921
17922 int (*ptr)() = (int (*)())atanl;
17923
17924 int
17925 main ()
17926 {
17927 return 0;
17928 }
17929
17930 _ACEOF
17931 if ac_fn_c_try_link "$LINENO"; then :
17932 gcc_cv_math_func_atanl=yes
17933 else
17934 gcc_cv_math_func_atanl=no
17935 fi
17936 rm -f core conftest.err conftest.$ac_objext \
17937 conftest$ac_exeext conftest.$ac_ext
17938 fi
17939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanl" >&5
17940 $as_echo "$gcc_cv_math_func_atanl" >&6; }
17941 if test $gcc_cv_math_func_atanl = yes; then
17942
17943 cat >>confdefs.h <<_ACEOF
17944 #define HAVE_ATANL 1
17945 _ACEOF
17946
17947 fi
17948
17949
17950
17951
17952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhf" >&5
17953 $as_echo_n "checking for atanhf... " >&6; }
17954 if ${gcc_cv_math_func_atanhf+:} false; then :
17955 $as_echo_n "(cached) " >&6
17956 else
17957 if test x$gcc_no_link = xyes; then
17958 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17959 fi
17960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17961 /* end confdefs.h. */
17962
17963 #ifdef HAVE_COMPLEX_H
17964 #include <complex.h>
17965 #endif
17966 #ifdef HAVE_MATH_H
17967 #include <math.h>
17968 #endif
17969
17970 int (*ptr)() = (int (*)())atanhf;
17971
17972 int
17973 main ()
17974 {
17975 return 0;
17976 }
17977
17978 _ACEOF
17979 if ac_fn_c_try_link "$LINENO"; then :
17980 gcc_cv_math_func_atanhf=yes
17981 else
17982 gcc_cv_math_func_atanhf=no
17983 fi
17984 rm -f core conftest.err conftest.$ac_objext \
17985 conftest$ac_exeext conftest.$ac_ext
17986 fi
17987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhf" >&5
17988 $as_echo "$gcc_cv_math_func_atanhf" >&6; }
17989 if test $gcc_cv_math_func_atanhf = yes; then
17990
17991 cat >>confdefs.h <<_ACEOF
17992 #define HAVE_ATANHF 1
17993 _ACEOF
17994
17995 fi
17996
17997
17998
17999
18000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanh" >&5
18001 $as_echo_n "checking for atanh... " >&6; }
18002 if ${gcc_cv_math_func_atanh+:} false; then :
18003 $as_echo_n "(cached) " >&6
18004 else
18005 if test x$gcc_no_link = xyes; then
18006 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18007 fi
18008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18009 /* end confdefs.h. */
18010
18011 #ifdef HAVE_COMPLEX_H
18012 #include <complex.h>
18013 #endif
18014 #ifdef HAVE_MATH_H
18015 #include <math.h>
18016 #endif
18017
18018 int (*ptr)() = (int (*)())atanh;
18019
18020 int
18021 main ()
18022 {
18023 return 0;
18024 }
18025
18026 _ACEOF
18027 if ac_fn_c_try_link "$LINENO"; then :
18028 gcc_cv_math_func_atanh=yes
18029 else
18030 gcc_cv_math_func_atanh=no
18031 fi
18032 rm -f core conftest.err conftest.$ac_objext \
18033 conftest$ac_exeext conftest.$ac_ext
18034 fi
18035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanh" >&5
18036 $as_echo "$gcc_cv_math_func_atanh" >&6; }
18037 if test $gcc_cv_math_func_atanh = yes; then
18038
18039 cat >>confdefs.h <<_ACEOF
18040 #define HAVE_ATANH 1
18041 _ACEOF
18042
18043 fi
18044
18045
18046
18047
18048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhl" >&5
18049 $as_echo_n "checking for atanhl... " >&6; }
18050 if ${gcc_cv_math_func_atanhl+:} false; then :
18051 $as_echo_n "(cached) " >&6
18052 else
18053 if test x$gcc_no_link = xyes; then
18054 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18055 fi
18056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18057 /* end confdefs.h. */
18058
18059 #ifdef HAVE_COMPLEX_H
18060 #include <complex.h>
18061 #endif
18062 #ifdef HAVE_MATH_H
18063 #include <math.h>
18064 #endif
18065
18066 int (*ptr)() = (int (*)())atanhl;
18067
18068 int
18069 main ()
18070 {
18071 return 0;
18072 }
18073
18074 _ACEOF
18075 if ac_fn_c_try_link "$LINENO"; then :
18076 gcc_cv_math_func_atanhl=yes
18077 else
18078 gcc_cv_math_func_atanhl=no
18079 fi
18080 rm -f core conftest.err conftest.$ac_objext \
18081 conftest$ac_exeext conftest.$ac_ext
18082 fi
18083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhl" >&5
18084 $as_echo "$gcc_cv_math_func_atanhl" >&6; }
18085 if test $gcc_cv_math_func_atanhl = yes; then
18086
18087 cat >>confdefs.h <<_ACEOF
18088 #define HAVE_ATANHL 1
18089 _ACEOF
18090
18091 fi
18092
18093
18094
18095
18096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargf" >&5
18097 $as_echo_n "checking for cargf... " >&6; }
18098 if ${gcc_cv_math_func_cargf+:} false; then :
18099 $as_echo_n "(cached) " >&6
18100 else
18101 if test x$gcc_no_link = xyes; then
18102 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18103 fi
18104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18105 /* end confdefs.h. */
18106
18107 #ifdef HAVE_COMPLEX_H
18108 #include <complex.h>
18109 #endif
18110 #ifdef HAVE_MATH_H
18111 #include <math.h>
18112 #endif
18113
18114 int (*ptr)() = (int (*)())cargf;
18115
18116 int
18117 main ()
18118 {
18119 return 0;
18120 }
18121
18122 _ACEOF
18123 if ac_fn_c_try_link "$LINENO"; then :
18124 gcc_cv_math_func_cargf=yes
18125 else
18126 gcc_cv_math_func_cargf=no
18127 fi
18128 rm -f core conftest.err conftest.$ac_objext \
18129 conftest$ac_exeext conftest.$ac_ext
18130 fi
18131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargf" >&5
18132 $as_echo "$gcc_cv_math_func_cargf" >&6; }
18133 if test $gcc_cv_math_func_cargf = yes; then
18134
18135 cat >>confdefs.h <<_ACEOF
18136 #define HAVE_CARGF 1
18137 _ACEOF
18138
18139 fi
18140
18141
18142
18143
18144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for carg" >&5
18145 $as_echo_n "checking for carg... " >&6; }
18146 if ${gcc_cv_math_func_carg+:} false; then :
18147 $as_echo_n "(cached) " >&6
18148 else
18149 if test x$gcc_no_link = xyes; then
18150 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18151 fi
18152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18153 /* end confdefs.h. */
18154
18155 #ifdef HAVE_COMPLEX_H
18156 #include <complex.h>
18157 #endif
18158 #ifdef HAVE_MATH_H
18159 #include <math.h>
18160 #endif
18161
18162 int (*ptr)() = (int (*)())carg;
18163
18164 int
18165 main ()
18166 {
18167 return 0;
18168 }
18169
18170 _ACEOF
18171 if ac_fn_c_try_link "$LINENO"; then :
18172 gcc_cv_math_func_carg=yes
18173 else
18174 gcc_cv_math_func_carg=no
18175 fi
18176 rm -f core conftest.err conftest.$ac_objext \
18177 conftest$ac_exeext conftest.$ac_ext
18178 fi
18179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_carg" >&5
18180 $as_echo "$gcc_cv_math_func_carg" >&6; }
18181 if test $gcc_cv_math_func_carg = yes; then
18182
18183 cat >>confdefs.h <<_ACEOF
18184 #define HAVE_CARG 1
18185 _ACEOF
18186
18187 fi
18188
18189
18190
18191
18192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargl" >&5
18193 $as_echo_n "checking for cargl... " >&6; }
18194 if ${gcc_cv_math_func_cargl+:} false; then :
18195 $as_echo_n "(cached) " >&6
18196 else
18197 if test x$gcc_no_link = xyes; then
18198 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18199 fi
18200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18201 /* end confdefs.h. */
18202
18203 #ifdef HAVE_COMPLEX_H
18204 #include <complex.h>
18205 #endif
18206 #ifdef HAVE_MATH_H
18207 #include <math.h>
18208 #endif
18209
18210 int (*ptr)() = (int (*)())cargl;
18211
18212 int
18213 main ()
18214 {
18215 return 0;
18216 }
18217
18218 _ACEOF
18219 if ac_fn_c_try_link "$LINENO"; then :
18220 gcc_cv_math_func_cargl=yes
18221 else
18222 gcc_cv_math_func_cargl=no
18223 fi
18224 rm -f core conftest.err conftest.$ac_objext \
18225 conftest$ac_exeext conftest.$ac_ext
18226 fi
18227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargl" >&5
18228 $as_echo "$gcc_cv_math_func_cargl" >&6; }
18229 if test $gcc_cv_math_func_cargl = yes; then
18230
18231 cat >>confdefs.h <<_ACEOF
18232 #define HAVE_CARGL 1
18233 _ACEOF
18234
18235 fi
18236
18237
18238
18239
18240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceilf" >&5
18241 $as_echo_n "checking for ceilf... " >&6; }
18242 if ${gcc_cv_math_func_ceilf+:} false; then :
18243 $as_echo_n "(cached) " >&6
18244 else
18245 if test x$gcc_no_link = xyes; then
18246 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18247 fi
18248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18249 /* end confdefs.h. */
18250
18251 #ifdef HAVE_COMPLEX_H
18252 #include <complex.h>
18253 #endif
18254 #ifdef HAVE_MATH_H
18255 #include <math.h>
18256 #endif
18257
18258 int (*ptr)() = (int (*)())ceilf;
18259
18260 int
18261 main ()
18262 {
18263 return 0;
18264 }
18265
18266 _ACEOF
18267 if ac_fn_c_try_link "$LINENO"; then :
18268 gcc_cv_math_func_ceilf=yes
18269 else
18270 gcc_cv_math_func_ceilf=no
18271 fi
18272 rm -f core conftest.err conftest.$ac_objext \
18273 conftest$ac_exeext conftest.$ac_ext
18274 fi
18275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceilf" >&5
18276 $as_echo "$gcc_cv_math_func_ceilf" >&6; }
18277 if test $gcc_cv_math_func_ceilf = yes; then
18278
18279 cat >>confdefs.h <<_ACEOF
18280 #define HAVE_CEILF 1
18281 _ACEOF
18282
18283 fi
18284
18285
18286
18287
18288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil" >&5
18289 $as_echo_n "checking for ceil... " >&6; }
18290 if ${gcc_cv_math_func_ceil+:} false; then :
18291 $as_echo_n "(cached) " >&6
18292 else
18293 if test x$gcc_no_link = xyes; then
18294 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18295 fi
18296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18297 /* end confdefs.h. */
18298
18299 #ifdef HAVE_COMPLEX_H
18300 #include <complex.h>
18301 #endif
18302 #ifdef HAVE_MATH_H
18303 #include <math.h>
18304 #endif
18305
18306 int (*ptr)() = (int (*)())ceil;
18307
18308 int
18309 main ()
18310 {
18311 return 0;
18312 }
18313
18314 _ACEOF
18315 if ac_fn_c_try_link "$LINENO"; then :
18316 gcc_cv_math_func_ceil=yes
18317 else
18318 gcc_cv_math_func_ceil=no
18319 fi
18320 rm -f core conftest.err conftest.$ac_objext \
18321 conftest$ac_exeext conftest.$ac_ext
18322 fi
18323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceil" >&5
18324 $as_echo "$gcc_cv_math_func_ceil" >&6; }
18325 if test $gcc_cv_math_func_ceil = yes; then
18326
18327 cat >>confdefs.h <<_ACEOF
18328 #define HAVE_CEIL 1
18329 _ACEOF
18330
18331 fi
18332
18333
18334
18335
18336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceill" >&5
18337 $as_echo_n "checking for ceill... " >&6; }
18338 if ${gcc_cv_math_func_ceill+:} false; then :
18339 $as_echo_n "(cached) " >&6
18340 else
18341 if test x$gcc_no_link = xyes; then
18342 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18343 fi
18344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18345 /* end confdefs.h. */
18346
18347 #ifdef HAVE_COMPLEX_H
18348 #include <complex.h>
18349 #endif
18350 #ifdef HAVE_MATH_H
18351 #include <math.h>
18352 #endif
18353
18354 int (*ptr)() = (int (*)())ceill;
18355
18356 int
18357 main ()
18358 {
18359 return 0;
18360 }
18361
18362 _ACEOF
18363 if ac_fn_c_try_link "$LINENO"; then :
18364 gcc_cv_math_func_ceill=yes
18365 else
18366 gcc_cv_math_func_ceill=no
18367 fi
18368 rm -f core conftest.err conftest.$ac_objext \
18369 conftest$ac_exeext conftest.$ac_ext
18370 fi
18371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceill" >&5
18372 $as_echo "$gcc_cv_math_func_ceill" >&6; }
18373 if test $gcc_cv_math_func_ceill = yes; then
18374
18375 cat >>confdefs.h <<_ACEOF
18376 #define HAVE_CEILL 1
18377 _ACEOF
18378
18379 fi
18380
18381
18382
18383
18384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignf" >&5
18385 $as_echo_n "checking for copysignf... " >&6; }
18386 if ${gcc_cv_math_func_copysignf+:} false; then :
18387 $as_echo_n "(cached) " >&6
18388 else
18389 if test x$gcc_no_link = xyes; then
18390 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18391 fi
18392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18393 /* end confdefs.h. */
18394
18395 #ifdef HAVE_COMPLEX_H
18396 #include <complex.h>
18397 #endif
18398 #ifdef HAVE_MATH_H
18399 #include <math.h>
18400 #endif
18401
18402 int (*ptr)() = (int (*)())copysignf;
18403
18404 int
18405 main ()
18406 {
18407 return 0;
18408 }
18409
18410 _ACEOF
18411 if ac_fn_c_try_link "$LINENO"; then :
18412 gcc_cv_math_func_copysignf=yes
18413 else
18414 gcc_cv_math_func_copysignf=no
18415 fi
18416 rm -f core conftest.err conftest.$ac_objext \
18417 conftest$ac_exeext conftest.$ac_ext
18418 fi
18419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignf" >&5
18420 $as_echo "$gcc_cv_math_func_copysignf" >&6; }
18421 if test $gcc_cv_math_func_copysignf = yes; then
18422
18423 cat >>confdefs.h <<_ACEOF
18424 #define HAVE_COPYSIGNF 1
18425 _ACEOF
18426
18427 fi
18428
18429
18430
18431
18432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysign" >&5
18433 $as_echo_n "checking for copysign... " >&6; }
18434 if ${gcc_cv_math_func_copysign+:} false; then :
18435 $as_echo_n "(cached) " >&6
18436 else
18437 if test x$gcc_no_link = xyes; then
18438 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18439 fi
18440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18441 /* end confdefs.h. */
18442
18443 #ifdef HAVE_COMPLEX_H
18444 #include <complex.h>
18445 #endif
18446 #ifdef HAVE_MATH_H
18447 #include <math.h>
18448 #endif
18449
18450 int (*ptr)() = (int (*)())copysign;
18451
18452 int
18453 main ()
18454 {
18455 return 0;
18456 }
18457
18458 _ACEOF
18459 if ac_fn_c_try_link "$LINENO"; then :
18460 gcc_cv_math_func_copysign=yes
18461 else
18462 gcc_cv_math_func_copysign=no
18463 fi
18464 rm -f core conftest.err conftest.$ac_objext \
18465 conftest$ac_exeext conftest.$ac_ext
18466 fi
18467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysign" >&5
18468 $as_echo "$gcc_cv_math_func_copysign" >&6; }
18469 if test $gcc_cv_math_func_copysign = yes; then
18470
18471 cat >>confdefs.h <<_ACEOF
18472 #define HAVE_COPYSIGN 1
18473 _ACEOF
18474
18475 fi
18476
18477
18478
18479
18480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignl" >&5
18481 $as_echo_n "checking for copysignl... " >&6; }
18482 if ${gcc_cv_math_func_copysignl+:} false; then :
18483 $as_echo_n "(cached) " >&6
18484 else
18485 if test x$gcc_no_link = xyes; then
18486 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18487 fi
18488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18489 /* end confdefs.h. */
18490
18491 #ifdef HAVE_COMPLEX_H
18492 #include <complex.h>
18493 #endif
18494 #ifdef HAVE_MATH_H
18495 #include <math.h>
18496 #endif
18497
18498 int (*ptr)() = (int (*)())copysignl;
18499
18500 int
18501 main ()
18502 {
18503 return 0;
18504 }
18505
18506 _ACEOF
18507 if ac_fn_c_try_link "$LINENO"; then :
18508 gcc_cv_math_func_copysignl=yes
18509 else
18510 gcc_cv_math_func_copysignl=no
18511 fi
18512 rm -f core conftest.err conftest.$ac_objext \
18513 conftest$ac_exeext conftest.$ac_ext
18514 fi
18515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignl" >&5
18516 $as_echo "$gcc_cv_math_func_copysignl" >&6; }
18517 if test $gcc_cv_math_func_copysignl = yes; then
18518
18519 cat >>confdefs.h <<_ACEOF
18520 #define HAVE_COPYSIGNL 1
18521 _ACEOF
18522
18523 fi
18524
18525
18526
18527
18528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosf" >&5
18529 $as_echo_n "checking for cosf... " >&6; }
18530 if ${gcc_cv_math_func_cosf+:} false; then :
18531 $as_echo_n "(cached) " >&6
18532 else
18533 if test x$gcc_no_link = xyes; then
18534 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18535 fi
18536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18537 /* end confdefs.h. */
18538
18539 #ifdef HAVE_COMPLEX_H
18540 #include <complex.h>
18541 #endif
18542 #ifdef HAVE_MATH_H
18543 #include <math.h>
18544 #endif
18545
18546 int (*ptr)() = (int (*)())cosf;
18547
18548 int
18549 main ()
18550 {
18551 return 0;
18552 }
18553
18554 _ACEOF
18555 if ac_fn_c_try_link "$LINENO"; then :
18556 gcc_cv_math_func_cosf=yes
18557 else
18558 gcc_cv_math_func_cosf=no
18559 fi
18560 rm -f core conftest.err conftest.$ac_objext \
18561 conftest$ac_exeext conftest.$ac_ext
18562 fi
18563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosf" >&5
18564 $as_echo "$gcc_cv_math_func_cosf" >&6; }
18565 if test $gcc_cv_math_func_cosf = yes; then
18566
18567 cat >>confdefs.h <<_ACEOF
18568 #define HAVE_COSF 1
18569 _ACEOF
18570
18571 fi
18572
18573
18574
18575
18576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos" >&5
18577 $as_echo_n "checking for cos... " >&6; }
18578 if ${gcc_cv_math_func_cos+:} false; then :
18579 $as_echo_n "(cached) " >&6
18580 else
18581 if test x$gcc_no_link = xyes; then
18582 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18583 fi
18584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18585 /* end confdefs.h. */
18586
18587 #ifdef HAVE_COMPLEX_H
18588 #include <complex.h>
18589 #endif
18590 #ifdef HAVE_MATH_H
18591 #include <math.h>
18592 #endif
18593
18594 int (*ptr)() = (int (*)())cos;
18595
18596 int
18597 main ()
18598 {
18599 return 0;
18600 }
18601
18602 _ACEOF
18603 if ac_fn_c_try_link "$LINENO"; then :
18604 gcc_cv_math_func_cos=yes
18605 else
18606 gcc_cv_math_func_cos=no
18607 fi
18608 rm -f core conftest.err conftest.$ac_objext \
18609 conftest$ac_exeext conftest.$ac_ext
18610 fi
18611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cos" >&5
18612 $as_echo "$gcc_cv_math_func_cos" >&6; }
18613 if test $gcc_cv_math_func_cos = yes; then
18614
18615 cat >>confdefs.h <<_ACEOF
18616 #define HAVE_COS 1
18617 _ACEOF
18618
18619 fi
18620
18621
18622
18623
18624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosl" >&5
18625 $as_echo_n "checking for cosl... " >&6; }
18626 if ${gcc_cv_math_func_cosl+:} false; then :
18627 $as_echo_n "(cached) " >&6
18628 else
18629 if test x$gcc_no_link = xyes; then
18630 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18631 fi
18632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18633 /* end confdefs.h. */
18634
18635 #ifdef HAVE_COMPLEX_H
18636 #include <complex.h>
18637 #endif
18638 #ifdef HAVE_MATH_H
18639 #include <math.h>
18640 #endif
18641
18642 int (*ptr)() = (int (*)())cosl;
18643
18644 int
18645 main ()
18646 {
18647 return 0;
18648 }
18649
18650 _ACEOF
18651 if ac_fn_c_try_link "$LINENO"; then :
18652 gcc_cv_math_func_cosl=yes
18653 else
18654 gcc_cv_math_func_cosl=no
18655 fi
18656 rm -f core conftest.err conftest.$ac_objext \
18657 conftest$ac_exeext conftest.$ac_ext
18658 fi
18659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosl" >&5
18660 $as_echo "$gcc_cv_math_func_cosl" >&6; }
18661 if test $gcc_cv_math_func_cosl = yes; then
18662
18663 cat >>confdefs.h <<_ACEOF
18664 #define HAVE_COSL 1
18665 _ACEOF
18666
18667 fi
18668
18669
18670
18671
18672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosf" >&5
18673 $as_echo_n "checking for ccosf... " >&6; }
18674 if ${gcc_cv_math_func_ccosf+:} false; then :
18675 $as_echo_n "(cached) " >&6
18676 else
18677 if test x$gcc_no_link = xyes; then
18678 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18679 fi
18680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18681 /* end confdefs.h. */
18682
18683 #ifdef HAVE_COMPLEX_H
18684 #include <complex.h>
18685 #endif
18686 #ifdef HAVE_MATH_H
18687 #include <math.h>
18688 #endif
18689
18690 int (*ptr)() = (int (*)())ccosf;
18691
18692 int
18693 main ()
18694 {
18695 return 0;
18696 }
18697
18698 _ACEOF
18699 if ac_fn_c_try_link "$LINENO"; then :
18700 gcc_cv_math_func_ccosf=yes
18701 else
18702 gcc_cv_math_func_ccosf=no
18703 fi
18704 rm -f core conftest.err conftest.$ac_objext \
18705 conftest$ac_exeext conftest.$ac_ext
18706 fi
18707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosf" >&5
18708 $as_echo "$gcc_cv_math_func_ccosf" >&6; }
18709 if test $gcc_cv_math_func_ccosf = yes; then
18710
18711 cat >>confdefs.h <<_ACEOF
18712 #define HAVE_CCOSF 1
18713 _ACEOF
18714
18715 fi
18716
18717
18718
18719
18720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccos" >&5
18721 $as_echo_n "checking for ccos... " >&6; }
18722 if ${gcc_cv_math_func_ccos+:} false; then :
18723 $as_echo_n "(cached) " >&6
18724 else
18725 if test x$gcc_no_link = xyes; then
18726 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18727 fi
18728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18729 /* end confdefs.h. */
18730
18731 #ifdef HAVE_COMPLEX_H
18732 #include <complex.h>
18733 #endif
18734 #ifdef HAVE_MATH_H
18735 #include <math.h>
18736 #endif
18737
18738 int (*ptr)() = (int (*)())ccos;
18739
18740 int
18741 main ()
18742 {
18743 return 0;
18744 }
18745
18746 _ACEOF
18747 if ac_fn_c_try_link "$LINENO"; then :
18748 gcc_cv_math_func_ccos=yes
18749 else
18750 gcc_cv_math_func_ccos=no
18751 fi
18752 rm -f core conftest.err conftest.$ac_objext \
18753 conftest$ac_exeext conftest.$ac_ext
18754 fi
18755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccos" >&5
18756 $as_echo "$gcc_cv_math_func_ccos" >&6; }
18757 if test $gcc_cv_math_func_ccos = yes; then
18758
18759 cat >>confdefs.h <<_ACEOF
18760 #define HAVE_CCOS 1
18761 _ACEOF
18762
18763 fi
18764
18765
18766
18767
18768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosl" >&5
18769 $as_echo_n "checking for ccosl... " >&6; }
18770 if ${gcc_cv_math_func_ccosl+:} false; then :
18771 $as_echo_n "(cached) " >&6
18772 else
18773 if test x$gcc_no_link = xyes; then
18774 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18775 fi
18776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18777 /* end confdefs.h. */
18778
18779 #ifdef HAVE_COMPLEX_H
18780 #include <complex.h>
18781 #endif
18782 #ifdef HAVE_MATH_H
18783 #include <math.h>
18784 #endif
18785
18786 int (*ptr)() = (int (*)())ccosl;
18787
18788 int
18789 main ()
18790 {
18791 return 0;
18792 }
18793
18794 _ACEOF
18795 if ac_fn_c_try_link "$LINENO"; then :
18796 gcc_cv_math_func_ccosl=yes
18797 else
18798 gcc_cv_math_func_ccosl=no
18799 fi
18800 rm -f core conftest.err conftest.$ac_objext \
18801 conftest$ac_exeext conftest.$ac_ext
18802 fi
18803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosl" >&5
18804 $as_echo "$gcc_cv_math_func_ccosl" >&6; }
18805 if test $gcc_cv_math_func_ccosl = yes; then
18806
18807 cat >>confdefs.h <<_ACEOF
18808 #define HAVE_CCOSL 1
18809 _ACEOF
18810
18811 fi
18812
18813
18814
18815
18816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshf" >&5
18817 $as_echo_n "checking for coshf... " >&6; }
18818 if ${gcc_cv_math_func_coshf+:} false; then :
18819 $as_echo_n "(cached) " >&6
18820 else
18821 if test x$gcc_no_link = xyes; then
18822 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18823 fi
18824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18825 /* end confdefs.h. */
18826
18827 #ifdef HAVE_COMPLEX_H
18828 #include <complex.h>
18829 #endif
18830 #ifdef HAVE_MATH_H
18831 #include <math.h>
18832 #endif
18833
18834 int (*ptr)() = (int (*)())coshf;
18835
18836 int
18837 main ()
18838 {
18839 return 0;
18840 }
18841
18842 _ACEOF
18843 if ac_fn_c_try_link "$LINENO"; then :
18844 gcc_cv_math_func_coshf=yes
18845 else
18846 gcc_cv_math_func_coshf=no
18847 fi
18848 rm -f core conftest.err conftest.$ac_objext \
18849 conftest$ac_exeext conftest.$ac_ext
18850 fi
18851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshf" >&5
18852 $as_echo "$gcc_cv_math_func_coshf" >&6; }
18853 if test $gcc_cv_math_func_coshf = yes; then
18854
18855 cat >>confdefs.h <<_ACEOF
18856 #define HAVE_COSHF 1
18857 _ACEOF
18858
18859 fi
18860
18861
18862
18863
18864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosh" >&5
18865 $as_echo_n "checking for cosh... " >&6; }
18866 if ${gcc_cv_math_func_cosh+:} false; then :
18867 $as_echo_n "(cached) " >&6
18868 else
18869 if test x$gcc_no_link = xyes; then
18870 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18871 fi
18872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18873 /* end confdefs.h. */
18874
18875 #ifdef HAVE_COMPLEX_H
18876 #include <complex.h>
18877 #endif
18878 #ifdef HAVE_MATH_H
18879 #include <math.h>
18880 #endif
18881
18882 int (*ptr)() = (int (*)())cosh;
18883
18884 int
18885 main ()
18886 {
18887 return 0;
18888 }
18889
18890 _ACEOF
18891 if ac_fn_c_try_link "$LINENO"; then :
18892 gcc_cv_math_func_cosh=yes
18893 else
18894 gcc_cv_math_func_cosh=no
18895 fi
18896 rm -f core conftest.err conftest.$ac_objext \
18897 conftest$ac_exeext conftest.$ac_ext
18898 fi
18899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosh" >&5
18900 $as_echo "$gcc_cv_math_func_cosh" >&6; }
18901 if test $gcc_cv_math_func_cosh = yes; then
18902
18903 cat >>confdefs.h <<_ACEOF
18904 #define HAVE_COSH 1
18905 _ACEOF
18906
18907 fi
18908
18909
18910
18911
18912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshl" >&5
18913 $as_echo_n "checking for coshl... " >&6; }
18914 if ${gcc_cv_math_func_coshl+:} false; then :
18915 $as_echo_n "(cached) " >&6
18916 else
18917 if test x$gcc_no_link = xyes; then
18918 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18919 fi
18920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18921 /* end confdefs.h. */
18922
18923 #ifdef HAVE_COMPLEX_H
18924 #include <complex.h>
18925 #endif
18926 #ifdef HAVE_MATH_H
18927 #include <math.h>
18928 #endif
18929
18930 int (*ptr)() = (int (*)())coshl;
18931
18932 int
18933 main ()
18934 {
18935 return 0;
18936 }
18937
18938 _ACEOF
18939 if ac_fn_c_try_link "$LINENO"; then :
18940 gcc_cv_math_func_coshl=yes
18941 else
18942 gcc_cv_math_func_coshl=no
18943 fi
18944 rm -f core conftest.err conftest.$ac_objext \
18945 conftest$ac_exeext conftest.$ac_ext
18946 fi
18947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshl" >&5
18948 $as_echo "$gcc_cv_math_func_coshl" >&6; }
18949 if test $gcc_cv_math_func_coshl = yes; then
18950
18951 cat >>confdefs.h <<_ACEOF
18952 #define HAVE_COSHL 1
18953 _ACEOF
18954
18955 fi
18956
18957
18958
18959
18960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshf" >&5
18961 $as_echo_n "checking for ccoshf... " >&6; }
18962 if ${gcc_cv_math_func_ccoshf+:} false; then :
18963 $as_echo_n "(cached) " >&6
18964 else
18965 if test x$gcc_no_link = xyes; then
18966 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18967 fi
18968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18969 /* end confdefs.h. */
18970
18971 #ifdef HAVE_COMPLEX_H
18972 #include <complex.h>
18973 #endif
18974 #ifdef HAVE_MATH_H
18975 #include <math.h>
18976 #endif
18977
18978 int (*ptr)() = (int (*)())ccoshf;
18979
18980 int
18981 main ()
18982 {
18983 return 0;
18984 }
18985
18986 _ACEOF
18987 if ac_fn_c_try_link "$LINENO"; then :
18988 gcc_cv_math_func_ccoshf=yes
18989 else
18990 gcc_cv_math_func_ccoshf=no
18991 fi
18992 rm -f core conftest.err conftest.$ac_objext \
18993 conftest$ac_exeext conftest.$ac_ext
18994 fi
18995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshf" >&5
18996 $as_echo "$gcc_cv_math_func_ccoshf" >&6; }
18997 if test $gcc_cv_math_func_ccoshf = yes; then
18998
18999 cat >>confdefs.h <<_ACEOF
19000 #define HAVE_CCOSHF 1
19001 _ACEOF
19002
19003 fi
19004
19005
19006
19007
19008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosh" >&5
19009 $as_echo_n "checking for ccosh... " >&6; }
19010 if ${gcc_cv_math_func_ccosh+:} false; then :
19011 $as_echo_n "(cached) " >&6
19012 else
19013 if test x$gcc_no_link = xyes; then
19014 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19015 fi
19016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19017 /* end confdefs.h. */
19018
19019 #ifdef HAVE_COMPLEX_H
19020 #include <complex.h>
19021 #endif
19022 #ifdef HAVE_MATH_H
19023 #include <math.h>
19024 #endif
19025
19026 int (*ptr)() = (int (*)())ccosh;
19027
19028 int
19029 main ()
19030 {
19031 return 0;
19032 }
19033
19034 _ACEOF
19035 if ac_fn_c_try_link "$LINENO"; then :
19036 gcc_cv_math_func_ccosh=yes
19037 else
19038 gcc_cv_math_func_ccosh=no
19039 fi
19040 rm -f core conftest.err conftest.$ac_objext \
19041 conftest$ac_exeext conftest.$ac_ext
19042 fi
19043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosh" >&5
19044 $as_echo "$gcc_cv_math_func_ccosh" >&6; }
19045 if test $gcc_cv_math_func_ccosh = yes; then
19046
19047 cat >>confdefs.h <<_ACEOF
19048 #define HAVE_CCOSH 1
19049 _ACEOF
19050
19051 fi
19052
19053
19054
19055
19056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshl" >&5
19057 $as_echo_n "checking for ccoshl... " >&6; }
19058 if ${gcc_cv_math_func_ccoshl+:} false; then :
19059 $as_echo_n "(cached) " >&6
19060 else
19061 if test x$gcc_no_link = xyes; then
19062 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19063 fi
19064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19065 /* end confdefs.h. */
19066
19067 #ifdef HAVE_COMPLEX_H
19068 #include <complex.h>
19069 #endif
19070 #ifdef HAVE_MATH_H
19071 #include <math.h>
19072 #endif
19073
19074 int (*ptr)() = (int (*)())ccoshl;
19075
19076 int
19077 main ()
19078 {
19079 return 0;
19080 }
19081
19082 _ACEOF
19083 if ac_fn_c_try_link "$LINENO"; then :
19084 gcc_cv_math_func_ccoshl=yes
19085 else
19086 gcc_cv_math_func_ccoshl=no
19087 fi
19088 rm -f core conftest.err conftest.$ac_objext \
19089 conftest$ac_exeext conftest.$ac_ext
19090 fi
19091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshl" >&5
19092 $as_echo "$gcc_cv_math_func_ccoshl" >&6; }
19093 if test $gcc_cv_math_func_ccoshl = yes; then
19094
19095 cat >>confdefs.h <<_ACEOF
19096 #define HAVE_CCOSHL 1
19097 _ACEOF
19098
19099 fi
19100
19101
19102
19103
19104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf" >&5
19105 $as_echo_n "checking for expf... " >&6; }
19106 if ${gcc_cv_math_func_expf+:} false; then :
19107 $as_echo_n "(cached) " >&6
19108 else
19109 if test x$gcc_no_link = xyes; then
19110 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19111 fi
19112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19113 /* end confdefs.h. */
19114
19115 #ifdef HAVE_COMPLEX_H
19116 #include <complex.h>
19117 #endif
19118 #ifdef HAVE_MATH_H
19119 #include <math.h>
19120 #endif
19121
19122 int (*ptr)() = (int (*)())expf;
19123
19124 int
19125 main ()
19126 {
19127 return 0;
19128 }
19129
19130 _ACEOF
19131 if ac_fn_c_try_link "$LINENO"; then :
19132 gcc_cv_math_func_expf=yes
19133 else
19134 gcc_cv_math_func_expf=no
19135 fi
19136 rm -f core conftest.err conftest.$ac_objext \
19137 conftest$ac_exeext conftest.$ac_ext
19138 fi
19139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expf" >&5
19140 $as_echo "$gcc_cv_math_func_expf" >&6; }
19141 if test $gcc_cv_math_func_expf = yes; then
19142
19143 cat >>confdefs.h <<_ACEOF
19144 #define HAVE_EXPF 1
19145 _ACEOF
19146
19147 fi
19148
19149
19150
19151
19152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp" >&5
19153 $as_echo_n "checking for exp... " >&6; }
19154 if ${gcc_cv_math_func_exp+:} false; then :
19155 $as_echo_n "(cached) " >&6
19156 else
19157 if test x$gcc_no_link = xyes; then
19158 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19159 fi
19160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19161 /* end confdefs.h. */
19162
19163 #ifdef HAVE_COMPLEX_H
19164 #include <complex.h>
19165 #endif
19166 #ifdef HAVE_MATH_H
19167 #include <math.h>
19168 #endif
19169
19170 int (*ptr)() = (int (*)())exp;
19171
19172 int
19173 main ()
19174 {
19175 return 0;
19176 }
19177
19178 _ACEOF
19179 if ac_fn_c_try_link "$LINENO"; then :
19180 gcc_cv_math_func_exp=yes
19181 else
19182 gcc_cv_math_func_exp=no
19183 fi
19184 rm -f core conftest.err conftest.$ac_objext \
19185 conftest$ac_exeext conftest.$ac_ext
19186 fi
19187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_exp" >&5
19188 $as_echo "$gcc_cv_math_func_exp" >&6; }
19189 if test $gcc_cv_math_func_exp = yes; then
19190
19191 cat >>confdefs.h <<_ACEOF
19192 #define HAVE_EXP 1
19193 _ACEOF
19194
19195 fi
19196
19197
19198
19199
19200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl" >&5
19201 $as_echo_n "checking for expl... " >&6; }
19202 if ${gcc_cv_math_func_expl+:} false; then :
19203 $as_echo_n "(cached) " >&6
19204 else
19205 if test x$gcc_no_link = xyes; then
19206 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19207 fi
19208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19209 /* end confdefs.h. */
19210
19211 #ifdef HAVE_COMPLEX_H
19212 #include <complex.h>
19213 #endif
19214 #ifdef HAVE_MATH_H
19215 #include <math.h>
19216 #endif
19217
19218 int (*ptr)() = (int (*)())expl;
19219
19220 int
19221 main ()
19222 {
19223 return 0;
19224 }
19225
19226 _ACEOF
19227 if ac_fn_c_try_link "$LINENO"; then :
19228 gcc_cv_math_func_expl=yes
19229 else
19230 gcc_cv_math_func_expl=no
19231 fi
19232 rm -f core conftest.err conftest.$ac_objext \
19233 conftest$ac_exeext conftest.$ac_ext
19234 fi
19235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expl" >&5
19236 $as_echo "$gcc_cv_math_func_expl" >&6; }
19237 if test $gcc_cv_math_func_expl = yes; then
19238
19239 cat >>confdefs.h <<_ACEOF
19240 #define HAVE_EXPL 1
19241 _ACEOF
19242
19243 fi
19244
19245
19246
19247
19248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpf" >&5
19249 $as_echo_n "checking for cexpf... " >&6; }
19250 if ${gcc_cv_math_func_cexpf+:} false; then :
19251 $as_echo_n "(cached) " >&6
19252 else
19253 if test x$gcc_no_link = xyes; then
19254 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19255 fi
19256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19257 /* end confdefs.h. */
19258
19259 #ifdef HAVE_COMPLEX_H
19260 #include <complex.h>
19261 #endif
19262 #ifdef HAVE_MATH_H
19263 #include <math.h>
19264 #endif
19265
19266 int (*ptr)() = (int (*)())cexpf;
19267
19268 int
19269 main ()
19270 {
19271 return 0;
19272 }
19273
19274 _ACEOF
19275 if ac_fn_c_try_link "$LINENO"; then :
19276 gcc_cv_math_func_cexpf=yes
19277 else
19278 gcc_cv_math_func_cexpf=no
19279 fi
19280 rm -f core conftest.err conftest.$ac_objext \
19281 conftest$ac_exeext conftest.$ac_ext
19282 fi
19283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpf" >&5
19284 $as_echo "$gcc_cv_math_func_cexpf" >&6; }
19285 if test $gcc_cv_math_func_cexpf = yes; then
19286
19287 cat >>confdefs.h <<_ACEOF
19288 #define HAVE_CEXPF 1
19289 _ACEOF
19290
19291 fi
19292
19293
19294
19295
19296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexp" >&5
19297 $as_echo_n "checking for cexp... " >&6; }
19298 if ${gcc_cv_math_func_cexp+:} false; then :
19299 $as_echo_n "(cached) " >&6
19300 else
19301 if test x$gcc_no_link = xyes; then
19302 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19303 fi
19304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19305 /* end confdefs.h. */
19306
19307 #ifdef HAVE_COMPLEX_H
19308 #include <complex.h>
19309 #endif
19310 #ifdef HAVE_MATH_H
19311 #include <math.h>
19312 #endif
19313
19314 int (*ptr)() = (int (*)())cexp;
19315
19316 int
19317 main ()
19318 {
19319 return 0;
19320 }
19321
19322 _ACEOF
19323 if ac_fn_c_try_link "$LINENO"; then :
19324 gcc_cv_math_func_cexp=yes
19325 else
19326 gcc_cv_math_func_cexp=no
19327 fi
19328 rm -f core conftest.err conftest.$ac_objext \
19329 conftest$ac_exeext conftest.$ac_ext
19330 fi
19331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexp" >&5
19332 $as_echo "$gcc_cv_math_func_cexp" >&6; }
19333 if test $gcc_cv_math_func_cexp = yes; then
19334
19335 cat >>confdefs.h <<_ACEOF
19336 #define HAVE_CEXP 1
19337 _ACEOF
19338
19339 fi
19340
19341
19342
19343
19344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpl" >&5
19345 $as_echo_n "checking for cexpl... " >&6; }
19346 if ${gcc_cv_math_func_cexpl+:} false; then :
19347 $as_echo_n "(cached) " >&6
19348 else
19349 if test x$gcc_no_link = xyes; then
19350 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19351 fi
19352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19353 /* end confdefs.h. */
19354
19355 #ifdef HAVE_COMPLEX_H
19356 #include <complex.h>
19357 #endif
19358 #ifdef HAVE_MATH_H
19359 #include <math.h>
19360 #endif
19361
19362 int (*ptr)() = (int (*)())cexpl;
19363
19364 int
19365 main ()
19366 {
19367 return 0;
19368 }
19369
19370 _ACEOF
19371 if ac_fn_c_try_link "$LINENO"; then :
19372 gcc_cv_math_func_cexpl=yes
19373 else
19374 gcc_cv_math_func_cexpl=no
19375 fi
19376 rm -f core conftest.err conftest.$ac_objext \
19377 conftest$ac_exeext conftest.$ac_ext
19378 fi
19379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpl" >&5
19380 $as_echo "$gcc_cv_math_func_cexpl" >&6; }
19381 if test $gcc_cv_math_func_cexpl = yes; then
19382
19383 cat >>confdefs.h <<_ACEOF
19384 #define HAVE_CEXPL 1
19385 _ACEOF
19386
19387 fi
19388
19389
19390
19391
19392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf" >&5
19393 $as_echo_n "checking for fabsf... " >&6; }
19394 if ${gcc_cv_math_func_fabsf+:} false; then :
19395 $as_echo_n "(cached) " >&6
19396 else
19397 if test x$gcc_no_link = xyes; then
19398 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19399 fi
19400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19401 /* end confdefs.h. */
19402
19403 #ifdef HAVE_COMPLEX_H
19404 #include <complex.h>
19405 #endif
19406 #ifdef HAVE_MATH_H
19407 #include <math.h>
19408 #endif
19409
19410 int (*ptr)() = (int (*)())fabsf;
19411
19412 int
19413 main ()
19414 {
19415 return 0;
19416 }
19417
19418 _ACEOF
19419 if ac_fn_c_try_link "$LINENO"; then :
19420 gcc_cv_math_func_fabsf=yes
19421 else
19422 gcc_cv_math_func_fabsf=no
19423 fi
19424 rm -f core conftest.err conftest.$ac_objext \
19425 conftest$ac_exeext conftest.$ac_ext
19426 fi
19427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsf" >&5
19428 $as_echo "$gcc_cv_math_func_fabsf" >&6; }
19429 if test $gcc_cv_math_func_fabsf = yes; then
19430
19431 cat >>confdefs.h <<_ACEOF
19432 #define HAVE_FABSF 1
19433 _ACEOF
19434
19435 fi
19436
19437
19438
19439
19440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs" >&5
19441 $as_echo_n "checking for fabs... " >&6; }
19442 if ${gcc_cv_math_func_fabs+:} false; then :
19443 $as_echo_n "(cached) " >&6
19444 else
19445 if test x$gcc_no_link = xyes; then
19446 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19447 fi
19448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19449 /* end confdefs.h. */
19450
19451 #ifdef HAVE_COMPLEX_H
19452 #include <complex.h>
19453 #endif
19454 #ifdef HAVE_MATH_H
19455 #include <math.h>
19456 #endif
19457
19458 int (*ptr)() = (int (*)())fabs;
19459
19460 int
19461 main ()
19462 {
19463 return 0;
19464 }
19465
19466 _ACEOF
19467 if ac_fn_c_try_link "$LINENO"; then :
19468 gcc_cv_math_func_fabs=yes
19469 else
19470 gcc_cv_math_func_fabs=no
19471 fi
19472 rm -f core conftest.err conftest.$ac_objext \
19473 conftest$ac_exeext conftest.$ac_ext
19474 fi
19475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabs" >&5
19476 $as_echo "$gcc_cv_math_func_fabs" >&6; }
19477 if test $gcc_cv_math_func_fabs = yes; then
19478
19479 cat >>confdefs.h <<_ACEOF
19480 #define HAVE_FABS 1
19481 _ACEOF
19482
19483 fi
19484
19485
19486
19487
19488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl" >&5
19489 $as_echo_n "checking for fabsl... " >&6; }
19490 if ${gcc_cv_math_func_fabsl+:} false; then :
19491 $as_echo_n "(cached) " >&6
19492 else
19493 if test x$gcc_no_link = xyes; then
19494 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19495 fi
19496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19497 /* end confdefs.h. */
19498
19499 #ifdef HAVE_COMPLEX_H
19500 #include <complex.h>
19501 #endif
19502 #ifdef HAVE_MATH_H
19503 #include <math.h>
19504 #endif
19505
19506 int (*ptr)() = (int (*)())fabsl;
19507
19508 int
19509 main ()
19510 {
19511 return 0;
19512 }
19513
19514 _ACEOF
19515 if ac_fn_c_try_link "$LINENO"; then :
19516 gcc_cv_math_func_fabsl=yes
19517 else
19518 gcc_cv_math_func_fabsl=no
19519 fi
19520 rm -f core conftest.err conftest.$ac_objext \
19521 conftest$ac_exeext conftest.$ac_ext
19522 fi
19523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsl" >&5
19524 $as_echo "$gcc_cv_math_func_fabsl" >&6; }
19525 if test $gcc_cv_math_func_fabsl = yes; then
19526
19527 cat >>confdefs.h <<_ACEOF
19528 #define HAVE_FABSL 1
19529 _ACEOF
19530
19531 fi
19532
19533
19534
19535
19536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsf" >&5
19537 $as_echo_n "checking for cabsf... " >&6; }
19538 if ${gcc_cv_math_func_cabsf+:} false; then :
19539 $as_echo_n "(cached) " >&6
19540 else
19541 if test x$gcc_no_link = xyes; then
19542 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19543 fi
19544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19545 /* end confdefs.h. */
19546
19547 #ifdef HAVE_COMPLEX_H
19548 #include <complex.h>
19549 #endif
19550 #ifdef HAVE_MATH_H
19551 #include <math.h>
19552 #endif
19553
19554 int (*ptr)() = (int (*)())cabsf;
19555
19556 int
19557 main ()
19558 {
19559 return 0;
19560 }
19561
19562 _ACEOF
19563 if ac_fn_c_try_link "$LINENO"; then :
19564 gcc_cv_math_func_cabsf=yes
19565 else
19566 gcc_cv_math_func_cabsf=no
19567 fi
19568 rm -f core conftest.err conftest.$ac_objext \
19569 conftest$ac_exeext conftest.$ac_ext
19570 fi
19571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsf" >&5
19572 $as_echo "$gcc_cv_math_func_cabsf" >&6; }
19573 if test $gcc_cv_math_func_cabsf = yes; then
19574
19575 cat >>confdefs.h <<_ACEOF
19576 #define HAVE_CABSF 1
19577 _ACEOF
19578
19579 fi
19580
19581
19582
19583
19584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabs" >&5
19585 $as_echo_n "checking for cabs... " >&6; }
19586 if ${gcc_cv_math_func_cabs+:} false; then :
19587 $as_echo_n "(cached) " >&6
19588 else
19589 if test x$gcc_no_link = xyes; then
19590 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19591 fi
19592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19593 /* end confdefs.h. */
19594
19595 #ifdef HAVE_COMPLEX_H
19596 #include <complex.h>
19597 #endif
19598 #ifdef HAVE_MATH_H
19599 #include <math.h>
19600 #endif
19601
19602 int (*ptr)() = (int (*)())cabs;
19603
19604 int
19605 main ()
19606 {
19607 return 0;
19608 }
19609
19610 _ACEOF
19611 if ac_fn_c_try_link "$LINENO"; then :
19612 gcc_cv_math_func_cabs=yes
19613 else
19614 gcc_cv_math_func_cabs=no
19615 fi
19616 rm -f core conftest.err conftest.$ac_objext \
19617 conftest$ac_exeext conftest.$ac_ext
19618 fi
19619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabs" >&5
19620 $as_echo "$gcc_cv_math_func_cabs" >&6; }
19621 if test $gcc_cv_math_func_cabs = yes; then
19622
19623 cat >>confdefs.h <<_ACEOF
19624 #define HAVE_CABS 1
19625 _ACEOF
19626
19627 fi
19628
19629
19630
19631
19632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsl" >&5
19633 $as_echo_n "checking for cabsl... " >&6; }
19634 if ${gcc_cv_math_func_cabsl+:} false; then :
19635 $as_echo_n "(cached) " >&6
19636 else
19637 if test x$gcc_no_link = xyes; then
19638 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19639 fi
19640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19641 /* end confdefs.h. */
19642
19643 #ifdef HAVE_COMPLEX_H
19644 #include <complex.h>
19645 #endif
19646 #ifdef HAVE_MATH_H
19647 #include <math.h>
19648 #endif
19649
19650 int (*ptr)() = (int (*)())cabsl;
19651
19652 int
19653 main ()
19654 {
19655 return 0;
19656 }
19657
19658 _ACEOF
19659 if ac_fn_c_try_link "$LINENO"; then :
19660 gcc_cv_math_func_cabsl=yes
19661 else
19662 gcc_cv_math_func_cabsl=no
19663 fi
19664 rm -f core conftest.err conftest.$ac_objext \
19665 conftest$ac_exeext conftest.$ac_ext
19666 fi
19667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsl" >&5
19668 $as_echo "$gcc_cv_math_func_cabsl" >&6; }
19669 if test $gcc_cv_math_func_cabsl = yes; then
19670
19671 cat >>confdefs.h <<_ACEOF
19672 #define HAVE_CABSL 1
19673 _ACEOF
19674
19675 fi
19676
19677
19678
19679
19680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorf" >&5
19681 $as_echo_n "checking for floorf... " >&6; }
19682 if ${gcc_cv_math_func_floorf+:} false; then :
19683 $as_echo_n "(cached) " >&6
19684 else
19685 if test x$gcc_no_link = xyes; then
19686 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19687 fi
19688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19689 /* end confdefs.h. */
19690
19691 #ifdef HAVE_COMPLEX_H
19692 #include <complex.h>
19693 #endif
19694 #ifdef HAVE_MATH_H
19695 #include <math.h>
19696 #endif
19697
19698 int (*ptr)() = (int (*)())floorf;
19699
19700 int
19701 main ()
19702 {
19703 return 0;
19704 }
19705
19706 _ACEOF
19707 if ac_fn_c_try_link "$LINENO"; then :
19708 gcc_cv_math_func_floorf=yes
19709 else
19710 gcc_cv_math_func_floorf=no
19711 fi
19712 rm -f core conftest.err conftest.$ac_objext \
19713 conftest$ac_exeext conftest.$ac_ext
19714 fi
19715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorf" >&5
19716 $as_echo "$gcc_cv_math_func_floorf" >&6; }
19717 if test $gcc_cv_math_func_floorf = yes; then
19718
19719 cat >>confdefs.h <<_ACEOF
19720 #define HAVE_FLOORF 1
19721 _ACEOF
19722
19723 fi
19724
19725
19726
19727
19728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor" >&5
19729 $as_echo_n "checking for floor... " >&6; }
19730 if ${gcc_cv_math_func_floor+:} false; then :
19731 $as_echo_n "(cached) " >&6
19732 else
19733 if test x$gcc_no_link = xyes; then
19734 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19735 fi
19736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19737 /* end confdefs.h. */
19738
19739 #ifdef HAVE_COMPLEX_H
19740 #include <complex.h>
19741 #endif
19742 #ifdef HAVE_MATH_H
19743 #include <math.h>
19744 #endif
19745
19746 int (*ptr)() = (int (*)())floor;
19747
19748 int
19749 main ()
19750 {
19751 return 0;
19752 }
19753
19754 _ACEOF
19755 if ac_fn_c_try_link "$LINENO"; then :
19756 gcc_cv_math_func_floor=yes
19757 else
19758 gcc_cv_math_func_floor=no
19759 fi
19760 rm -f core conftest.err conftest.$ac_objext \
19761 conftest$ac_exeext conftest.$ac_ext
19762 fi
19763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floor" >&5
19764 $as_echo "$gcc_cv_math_func_floor" >&6; }
19765 if test $gcc_cv_math_func_floor = yes; then
19766
19767 cat >>confdefs.h <<_ACEOF
19768 #define HAVE_FLOOR 1
19769 _ACEOF
19770
19771 fi
19772
19773
19774
19775
19776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorl" >&5
19777 $as_echo_n "checking for floorl... " >&6; }
19778 if ${gcc_cv_math_func_floorl+:} false; then :
19779 $as_echo_n "(cached) " >&6
19780 else
19781 if test x$gcc_no_link = xyes; then
19782 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19783 fi
19784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19785 /* end confdefs.h. */
19786
19787 #ifdef HAVE_COMPLEX_H
19788 #include <complex.h>
19789 #endif
19790 #ifdef HAVE_MATH_H
19791 #include <math.h>
19792 #endif
19793
19794 int (*ptr)() = (int (*)())floorl;
19795
19796 int
19797 main ()
19798 {
19799 return 0;
19800 }
19801
19802 _ACEOF
19803 if ac_fn_c_try_link "$LINENO"; then :
19804 gcc_cv_math_func_floorl=yes
19805 else
19806 gcc_cv_math_func_floorl=no
19807 fi
19808 rm -f core conftest.err conftest.$ac_objext \
19809 conftest$ac_exeext conftest.$ac_ext
19810 fi
19811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorl" >&5
19812 $as_echo "$gcc_cv_math_func_floorl" >&6; }
19813 if test $gcc_cv_math_func_floorl = yes; then
19814
19815 cat >>confdefs.h <<_ACEOF
19816 #define HAVE_FLOORL 1
19817 _ACEOF
19818
19819 fi
19820
19821
19822
19823
19824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf" >&5
19825 $as_echo_n "checking for fmodf... " >&6; }
19826 if ${gcc_cv_math_func_fmodf+:} false; then :
19827 $as_echo_n "(cached) " >&6
19828 else
19829 if test x$gcc_no_link = xyes; then
19830 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19831 fi
19832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19833 /* end confdefs.h. */
19834
19835 #ifdef HAVE_COMPLEX_H
19836 #include <complex.h>
19837 #endif
19838 #ifdef HAVE_MATH_H
19839 #include <math.h>
19840 #endif
19841
19842 int (*ptr)() = (int (*)())fmodf;
19843
19844 int
19845 main ()
19846 {
19847 return 0;
19848 }
19849
19850 _ACEOF
19851 if ac_fn_c_try_link "$LINENO"; then :
19852 gcc_cv_math_func_fmodf=yes
19853 else
19854 gcc_cv_math_func_fmodf=no
19855 fi
19856 rm -f core conftest.err conftest.$ac_objext \
19857 conftest$ac_exeext conftest.$ac_ext
19858 fi
19859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodf" >&5
19860 $as_echo "$gcc_cv_math_func_fmodf" >&6; }
19861 if test $gcc_cv_math_func_fmodf = yes; then
19862
19863 cat >>confdefs.h <<_ACEOF
19864 #define HAVE_FMODF 1
19865 _ACEOF
19866
19867 fi
19868
19869
19870
19871
19872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod" >&5
19873 $as_echo_n "checking for fmod... " >&6; }
19874 if ${gcc_cv_math_func_fmod+:} false; then :
19875 $as_echo_n "(cached) " >&6
19876 else
19877 if test x$gcc_no_link = xyes; then
19878 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19879 fi
19880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19881 /* end confdefs.h. */
19882
19883 #ifdef HAVE_COMPLEX_H
19884 #include <complex.h>
19885 #endif
19886 #ifdef HAVE_MATH_H
19887 #include <math.h>
19888 #endif
19889
19890 int (*ptr)() = (int (*)())fmod;
19891
19892 int
19893 main ()
19894 {
19895 return 0;
19896 }
19897
19898 _ACEOF
19899 if ac_fn_c_try_link "$LINENO"; then :
19900 gcc_cv_math_func_fmod=yes
19901 else
19902 gcc_cv_math_func_fmod=no
19903 fi
19904 rm -f core conftest.err conftest.$ac_objext \
19905 conftest$ac_exeext conftest.$ac_ext
19906 fi
19907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmod" >&5
19908 $as_echo "$gcc_cv_math_func_fmod" >&6; }
19909 if test $gcc_cv_math_func_fmod = yes; then
19910
19911 cat >>confdefs.h <<_ACEOF
19912 #define HAVE_FMOD 1
19913 _ACEOF
19914
19915 fi
19916
19917
19918
19919
19920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl" >&5
19921 $as_echo_n "checking for fmodl... " >&6; }
19922 if ${gcc_cv_math_func_fmodl+:} false; then :
19923 $as_echo_n "(cached) " >&6
19924 else
19925 if test x$gcc_no_link = xyes; then
19926 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19927 fi
19928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19929 /* end confdefs.h. */
19930
19931 #ifdef HAVE_COMPLEX_H
19932 #include <complex.h>
19933 #endif
19934 #ifdef HAVE_MATH_H
19935 #include <math.h>
19936 #endif
19937
19938 int (*ptr)() = (int (*)())fmodl;
19939
19940 int
19941 main ()
19942 {
19943 return 0;
19944 }
19945
19946 _ACEOF
19947 if ac_fn_c_try_link "$LINENO"; then :
19948 gcc_cv_math_func_fmodl=yes
19949 else
19950 gcc_cv_math_func_fmodl=no
19951 fi
19952 rm -f core conftest.err conftest.$ac_objext \
19953 conftest$ac_exeext conftest.$ac_ext
19954 fi
19955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodl" >&5
19956 $as_echo "$gcc_cv_math_func_fmodl" >&6; }
19957 if test $gcc_cv_math_func_fmodl = yes; then
19958
19959 cat >>confdefs.h <<_ACEOF
19960 #define HAVE_FMODL 1
19961 _ACEOF
19962
19963 fi
19964
19965
19966
19967
19968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf" >&5
19969 $as_echo_n "checking for frexpf... " >&6; }
19970 if ${gcc_cv_math_func_frexpf+:} false; then :
19971 $as_echo_n "(cached) " >&6
19972 else
19973 if test x$gcc_no_link = xyes; then
19974 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19975 fi
19976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19977 /* end confdefs.h. */
19978
19979 #ifdef HAVE_COMPLEX_H
19980 #include <complex.h>
19981 #endif
19982 #ifdef HAVE_MATH_H
19983 #include <math.h>
19984 #endif
19985
19986 int (*ptr)() = (int (*)())frexpf;
19987
19988 int
19989 main ()
19990 {
19991 return 0;
19992 }
19993
19994 _ACEOF
19995 if ac_fn_c_try_link "$LINENO"; then :
19996 gcc_cv_math_func_frexpf=yes
19997 else
19998 gcc_cv_math_func_frexpf=no
19999 fi
20000 rm -f core conftest.err conftest.$ac_objext \
20001 conftest$ac_exeext conftest.$ac_ext
20002 fi
20003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpf" >&5
20004 $as_echo "$gcc_cv_math_func_frexpf" >&6; }
20005 if test $gcc_cv_math_func_frexpf = yes; then
20006
20007 cat >>confdefs.h <<_ACEOF
20008 #define HAVE_FREXPF 1
20009 _ACEOF
20010
20011 fi
20012
20013
20014
20015
20016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexp" >&5
20017 $as_echo_n "checking for frexp... " >&6; }
20018 if ${gcc_cv_math_func_frexp+:} false; then :
20019 $as_echo_n "(cached) " >&6
20020 else
20021 if test x$gcc_no_link = xyes; then
20022 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20023 fi
20024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20025 /* end confdefs.h. */
20026
20027 #ifdef HAVE_COMPLEX_H
20028 #include <complex.h>
20029 #endif
20030 #ifdef HAVE_MATH_H
20031 #include <math.h>
20032 #endif
20033
20034 int (*ptr)() = (int (*)())frexp;
20035
20036 int
20037 main ()
20038 {
20039 return 0;
20040 }
20041
20042 _ACEOF
20043 if ac_fn_c_try_link "$LINENO"; then :
20044 gcc_cv_math_func_frexp=yes
20045 else
20046 gcc_cv_math_func_frexp=no
20047 fi
20048 rm -f core conftest.err conftest.$ac_objext \
20049 conftest$ac_exeext conftest.$ac_ext
20050 fi
20051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexp" >&5
20052 $as_echo "$gcc_cv_math_func_frexp" >&6; }
20053 if test $gcc_cv_math_func_frexp = yes; then
20054
20055 cat >>confdefs.h <<_ACEOF
20056 #define HAVE_FREXP 1
20057 _ACEOF
20058
20059 fi
20060
20061
20062
20063
20064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl" >&5
20065 $as_echo_n "checking for frexpl... " >&6; }
20066 if ${gcc_cv_math_func_frexpl+:} false; then :
20067 $as_echo_n "(cached) " >&6
20068 else
20069 if test x$gcc_no_link = xyes; then
20070 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20071 fi
20072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20073 /* end confdefs.h. */
20074
20075 #ifdef HAVE_COMPLEX_H
20076 #include <complex.h>
20077 #endif
20078 #ifdef HAVE_MATH_H
20079 #include <math.h>
20080 #endif
20081
20082 int (*ptr)() = (int (*)())frexpl;
20083
20084 int
20085 main ()
20086 {
20087 return 0;
20088 }
20089
20090 _ACEOF
20091 if ac_fn_c_try_link "$LINENO"; then :
20092 gcc_cv_math_func_frexpl=yes
20093 else
20094 gcc_cv_math_func_frexpl=no
20095 fi
20096 rm -f core conftest.err conftest.$ac_objext \
20097 conftest$ac_exeext conftest.$ac_ext
20098 fi
20099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpl" >&5
20100 $as_echo "$gcc_cv_math_func_frexpl" >&6; }
20101 if test $gcc_cv_math_func_frexpl = yes; then
20102
20103 cat >>confdefs.h <<_ACEOF
20104 #define HAVE_FREXPL 1
20105 _ACEOF
20106
20107 fi
20108
20109
20110
20111
20112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf" >&5
20113 $as_echo_n "checking for hypotf... " >&6; }
20114 if ${gcc_cv_math_func_hypotf+:} false; then :
20115 $as_echo_n "(cached) " >&6
20116 else
20117 if test x$gcc_no_link = xyes; then
20118 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20119 fi
20120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20121 /* end confdefs.h. */
20122
20123 #ifdef HAVE_COMPLEX_H
20124 #include <complex.h>
20125 #endif
20126 #ifdef HAVE_MATH_H
20127 #include <math.h>
20128 #endif
20129
20130 int (*ptr)() = (int (*)())hypotf;
20131
20132 int
20133 main ()
20134 {
20135 return 0;
20136 }
20137
20138 _ACEOF
20139 if ac_fn_c_try_link "$LINENO"; then :
20140 gcc_cv_math_func_hypotf=yes
20141 else
20142 gcc_cv_math_func_hypotf=no
20143 fi
20144 rm -f core conftest.err conftest.$ac_objext \
20145 conftest$ac_exeext conftest.$ac_ext
20146 fi
20147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotf" >&5
20148 $as_echo "$gcc_cv_math_func_hypotf" >&6; }
20149 if test $gcc_cv_math_func_hypotf = yes; then
20150
20151 cat >>confdefs.h <<_ACEOF
20152 #define HAVE_HYPOTF 1
20153 _ACEOF
20154
20155 fi
20156
20157
20158
20159
20160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot" >&5
20161 $as_echo_n "checking for hypot... " >&6; }
20162 if ${gcc_cv_math_func_hypot+:} false; then :
20163 $as_echo_n "(cached) " >&6
20164 else
20165 if test x$gcc_no_link = xyes; then
20166 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20167 fi
20168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20169 /* end confdefs.h. */
20170
20171 #ifdef HAVE_COMPLEX_H
20172 #include <complex.h>
20173 #endif
20174 #ifdef HAVE_MATH_H
20175 #include <math.h>
20176 #endif
20177
20178 int (*ptr)() = (int (*)())hypot;
20179
20180 int
20181 main ()
20182 {
20183 return 0;
20184 }
20185
20186 _ACEOF
20187 if ac_fn_c_try_link "$LINENO"; then :
20188 gcc_cv_math_func_hypot=yes
20189 else
20190 gcc_cv_math_func_hypot=no
20191 fi
20192 rm -f core conftest.err conftest.$ac_objext \
20193 conftest$ac_exeext conftest.$ac_ext
20194 fi
20195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypot" >&5
20196 $as_echo "$gcc_cv_math_func_hypot" >&6; }
20197 if test $gcc_cv_math_func_hypot = yes; then
20198
20199 cat >>confdefs.h <<_ACEOF
20200 #define HAVE_HYPOT 1
20201 _ACEOF
20202
20203 fi
20204
20205
20206
20207
20208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl" >&5
20209 $as_echo_n "checking for hypotl... " >&6; }
20210 if ${gcc_cv_math_func_hypotl+:} false; then :
20211 $as_echo_n "(cached) " >&6
20212 else
20213 if test x$gcc_no_link = xyes; then
20214 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20215 fi
20216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20217 /* end confdefs.h. */
20218
20219 #ifdef HAVE_COMPLEX_H
20220 #include <complex.h>
20221 #endif
20222 #ifdef HAVE_MATH_H
20223 #include <math.h>
20224 #endif
20225
20226 int (*ptr)() = (int (*)())hypotl;
20227
20228 int
20229 main ()
20230 {
20231 return 0;
20232 }
20233
20234 _ACEOF
20235 if ac_fn_c_try_link "$LINENO"; then :
20236 gcc_cv_math_func_hypotl=yes
20237 else
20238 gcc_cv_math_func_hypotl=no
20239 fi
20240 rm -f core conftest.err conftest.$ac_objext \
20241 conftest$ac_exeext conftest.$ac_ext
20242 fi
20243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotl" >&5
20244 $as_echo "$gcc_cv_math_func_hypotl" >&6; }
20245 if test $gcc_cv_math_func_hypotl = yes; then
20246
20247 cat >>confdefs.h <<_ACEOF
20248 #define HAVE_HYPOTL 1
20249 _ACEOF
20250
20251 fi
20252
20253
20254
20255
20256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf" >&5
20257 $as_echo_n "checking for ldexpf... " >&6; }
20258 if ${gcc_cv_math_func_ldexpf+:} false; then :
20259 $as_echo_n "(cached) " >&6
20260 else
20261 if test x$gcc_no_link = xyes; then
20262 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20263 fi
20264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20265 /* end confdefs.h. */
20266
20267 #ifdef HAVE_COMPLEX_H
20268 #include <complex.h>
20269 #endif
20270 #ifdef HAVE_MATH_H
20271 #include <math.h>
20272 #endif
20273
20274 int (*ptr)() = (int (*)())ldexpf;
20275
20276 int
20277 main ()
20278 {
20279 return 0;
20280 }
20281
20282 _ACEOF
20283 if ac_fn_c_try_link "$LINENO"; then :
20284 gcc_cv_math_func_ldexpf=yes
20285 else
20286 gcc_cv_math_func_ldexpf=no
20287 fi
20288 rm -f core conftest.err conftest.$ac_objext \
20289 conftest$ac_exeext conftest.$ac_ext
20290 fi
20291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpf" >&5
20292 $as_echo "$gcc_cv_math_func_ldexpf" >&6; }
20293 if test $gcc_cv_math_func_ldexpf = yes; then
20294
20295 cat >>confdefs.h <<_ACEOF
20296 #define HAVE_LDEXPF 1
20297 _ACEOF
20298
20299 fi
20300
20301
20302
20303
20304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexp" >&5
20305 $as_echo_n "checking for ldexp... " >&6; }
20306 if ${gcc_cv_math_func_ldexp+:} false; then :
20307 $as_echo_n "(cached) " >&6
20308 else
20309 if test x$gcc_no_link = xyes; then
20310 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20311 fi
20312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20313 /* end confdefs.h. */
20314
20315 #ifdef HAVE_COMPLEX_H
20316 #include <complex.h>
20317 #endif
20318 #ifdef HAVE_MATH_H
20319 #include <math.h>
20320 #endif
20321
20322 int (*ptr)() = (int (*)())ldexp;
20323
20324 int
20325 main ()
20326 {
20327 return 0;
20328 }
20329
20330 _ACEOF
20331 if ac_fn_c_try_link "$LINENO"; then :
20332 gcc_cv_math_func_ldexp=yes
20333 else
20334 gcc_cv_math_func_ldexp=no
20335 fi
20336 rm -f core conftest.err conftest.$ac_objext \
20337 conftest$ac_exeext conftest.$ac_ext
20338 fi
20339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexp" >&5
20340 $as_echo "$gcc_cv_math_func_ldexp" >&6; }
20341 if test $gcc_cv_math_func_ldexp = yes; then
20342
20343 cat >>confdefs.h <<_ACEOF
20344 #define HAVE_LDEXP 1
20345 _ACEOF
20346
20347 fi
20348
20349
20350
20351
20352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl" >&5
20353 $as_echo_n "checking for ldexpl... " >&6; }
20354 if ${gcc_cv_math_func_ldexpl+:} false; then :
20355 $as_echo_n "(cached) " >&6
20356 else
20357 if test x$gcc_no_link = xyes; then
20358 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20359 fi
20360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20361 /* end confdefs.h. */
20362
20363 #ifdef HAVE_COMPLEX_H
20364 #include <complex.h>
20365 #endif
20366 #ifdef HAVE_MATH_H
20367 #include <math.h>
20368 #endif
20369
20370 int (*ptr)() = (int (*)())ldexpl;
20371
20372 int
20373 main ()
20374 {
20375 return 0;
20376 }
20377
20378 _ACEOF
20379 if ac_fn_c_try_link "$LINENO"; then :
20380 gcc_cv_math_func_ldexpl=yes
20381 else
20382 gcc_cv_math_func_ldexpl=no
20383 fi
20384 rm -f core conftest.err conftest.$ac_objext \
20385 conftest$ac_exeext conftest.$ac_ext
20386 fi
20387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpl" >&5
20388 $as_echo "$gcc_cv_math_func_ldexpl" >&6; }
20389 if test $gcc_cv_math_func_ldexpl = yes; then
20390
20391 cat >>confdefs.h <<_ACEOF
20392 #define HAVE_LDEXPL 1
20393 _ACEOF
20394
20395 fi
20396
20397
20398
20399
20400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf" >&5
20401 $as_echo_n "checking for logf... " >&6; }
20402 if ${gcc_cv_math_func_logf+:} false; then :
20403 $as_echo_n "(cached) " >&6
20404 else
20405 if test x$gcc_no_link = xyes; then
20406 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20407 fi
20408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20409 /* end confdefs.h. */
20410
20411 #ifdef HAVE_COMPLEX_H
20412 #include <complex.h>
20413 #endif
20414 #ifdef HAVE_MATH_H
20415 #include <math.h>
20416 #endif
20417
20418 int (*ptr)() = (int (*)())logf;
20419
20420 int
20421 main ()
20422 {
20423 return 0;
20424 }
20425
20426 _ACEOF
20427 if ac_fn_c_try_link "$LINENO"; then :
20428 gcc_cv_math_func_logf=yes
20429 else
20430 gcc_cv_math_func_logf=no
20431 fi
20432 rm -f core conftest.err conftest.$ac_objext \
20433 conftest$ac_exeext conftest.$ac_ext
20434 fi
20435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logf" >&5
20436 $as_echo "$gcc_cv_math_func_logf" >&6; }
20437 if test $gcc_cv_math_func_logf = yes; then
20438
20439 cat >>confdefs.h <<_ACEOF
20440 #define HAVE_LOGF 1
20441 _ACEOF
20442
20443 fi
20444
20445
20446
20447
20448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log" >&5
20449 $as_echo_n "checking for log... " >&6; }
20450 if ${gcc_cv_math_func_log+:} false; then :
20451 $as_echo_n "(cached) " >&6
20452 else
20453 if test x$gcc_no_link = xyes; then
20454 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20455 fi
20456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20457 /* end confdefs.h. */
20458
20459 #ifdef HAVE_COMPLEX_H
20460 #include <complex.h>
20461 #endif
20462 #ifdef HAVE_MATH_H
20463 #include <math.h>
20464 #endif
20465
20466 int (*ptr)() = (int (*)())log;
20467
20468 int
20469 main ()
20470 {
20471 return 0;
20472 }
20473
20474 _ACEOF
20475 if ac_fn_c_try_link "$LINENO"; then :
20476 gcc_cv_math_func_log=yes
20477 else
20478 gcc_cv_math_func_log=no
20479 fi
20480 rm -f core conftest.err conftest.$ac_objext \
20481 conftest$ac_exeext conftest.$ac_ext
20482 fi
20483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log" >&5
20484 $as_echo "$gcc_cv_math_func_log" >&6; }
20485 if test $gcc_cv_math_func_log = yes; then
20486
20487 cat >>confdefs.h <<_ACEOF
20488 #define HAVE_LOG 1
20489 _ACEOF
20490
20491 fi
20492
20493
20494
20495
20496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl" >&5
20497 $as_echo_n "checking for logl... " >&6; }
20498 if ${gcc_cv_math_func_logl+:} false; then :
20499 $as_echo_n "(cached) " >&6
20500 else
20501 if test x$gcc_no_link = xyes; then
20502 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20503 fi
20504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20505 /* end confdefs.h. */
20506
20507 #ifdef HAVE_COMPLEX_H
20508 #include <complex.h>
20509 #endif
20510 #ifdef HAVE_MATH_H
20511 #include <math.h>
20512 #endif
20513
20514 int (*ptr)() = (int (*)())logl;
20515
20516 int
20517 main ()
20518 {
20519 return 0;
20520 }
20521
20522 _ACEOF
20523 if ac_fn_c_try_link "$LINENO"; then :
20524 gcc_cv_math_func_logl=yes
20525 else
20526 gcc_cv_math_func_logl=no
20527 fi
20528 rm -f core conftest.err conftest.$ac_objext \
20529 conftest$ac_exeext conftest.$ac_ext
20530 fi
20531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logl" >&5
20532 $as_echo "$gcc_cv_math_func_logl" >&6; }
20533 if test $gcc_cv_math_func_logl = yes; then
20534
20535 cat >>confdefs.h <<_ACEOF
20536 #define HAVE_LOGL 1
20537 _ACEOF
20538
20539 fi
20540
20541
20542
20543
20544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogf" >&5
20545 $as_echo_n "checking for clogf... " >&6; }
20546 if ${gcc_cv_math_func_clogf+:} false; then :
20547 $as_echo_n "(cached) " >&6
20548 else
20549 if test x$gcc_no_link = xyes; then
20550 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20551 fi
20552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20553 /* end confdefs.h. */
20554
20555 #ifdef HAVE_COMPLEX_H
20556 #include <complex.h>
20557 #endif
20558 #ifdef HAVE_MATH_H
20559 #include <math.h>
20560 #endif
20561
20562 int (*ptr)() = (int (*)())clogf;
20563
20564 int
20565 main ()
20566 {
20567 return 0;
20568 }
20569
20570 _ACEOF
20571 if ac_fn_c_try_link "$LINENO"; then :
20572 gcc_cv_math_func_clogf=yes
20573 else
20574 gcc_cv_math_func_clogf=no
20575 fi
20576 rm -f core conftest.err conftest.$ac_objext \
20577 conftest$ac_exeext conftest.$ac_ext
20578 fi
20579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogf" >&5
20580 $as_echo "$gcc_cv_math_func_clogf" >&6; }
20581 if test $gcc_cv_math_func_clogf = yes; then
20582
20583 cat >>confdefs.h <<_ACEOF
20584 #define HAVE_CLOGF 1
20585 _ACEOF
20586
20587 fi
20588
20589
20590
20591
20592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog" >&5
20593 $as_echo_n "checking for clog... " >&6; }
20594 if ${gcc_cv_math_func_clog+:} false; then :
20595 $as_echo_n "(cached) " >&6
20596 else
20597 if test x$gcc_no_link = xyes; then
20598 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20599 fi
20600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20601 /* end confdefs.h. */
20602
20603 #ifdef HAVE_COMPLEX_H
20604 #include <complex.h>
20605 #endif
20606 #ifdef HAVE_MATH_H
20607 #include <math.h>
20608 #endif
20609
20610 int (*ptr)() = (int (*)())clog;
20611
20612 int
20613 main ()
20614 {
20615 return 0;
20616 }
20617
20618 _ACEOF
20619 if ac_fn_c_try_link "$LINENO"; then :
20620 gcc_cv_math_func_clog=yes
20621 else
20622 gcc_cv_math_func_clog=no
20623 fi
20624 rm -f core conftest.err conftest.$ac_objext \
20625 conftest$ac_exeext conftest.$ac_ext
20626 fi
20627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog" >&5
20628 $as_echo "$gcc_cv_math_func_clog" >&6; }
20629 if test $gcc_cv_math_func_clog = yes; then
20630
20631 cat >>confdefs.h <<_ACEOF
20632 #define HAVE_CLOG 1
20633 _ACEOF
20634
20635 fi
20636
20637
20638
20639
20640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogl" >&5
20641 $as_echo_n "checking for clogl... " >&6; }
20642 if ${gcc_cv_math_func_clogl+:} false; then :
20643 $as_echo_n "(cached) " >&6
20644 else
20645 if test x$gcc_no_link = xyes; then
20646 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20647 fi
20648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20649 /* end confdefs.h. */
20650
20651 #ifdef HAVE_COMPLEX_H
20652 #include <complex.h>
20653 #endif
20654 #ifdef HAVE_MATH_H
20655 #include <math.h>
20656 #endif
20657
20658 int (*ptr)() = (int (*)())clogl;
20659
20660 int
20661 main ()
20662 {
20663 return 0;
20664 }
20665
20666 _ACEOF
20667 if ac_fn_c_try_link "$LINENO"; then :
20668 gcc_cv_math_func_clogl=yes
20669 else
20670 gcc_cv_math_func_clogl=no
20671 fi
20672 rm -f core conftest.err conftest.$ac_objext \
20673 conftest$ac_exeext conftest.$ac_ext
20674 fi
20675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogl" >&5
20676 $as_echo "$gcc_cv_math_func_clogl" >&6; }
20677 if test $gcc_cv_math_func_clogl = yes; then
20678
20679 cat >>confdefs.h <<_ACEOF
20680 #define HAVE_CLOGL 1
20681 _ACEOF
20682
20683 fi
20684
20685
20686
20687
20688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f" >&5
20689 $as_echo_n "checking for log10f... " >&6; }
20690 if ${gcc_cv_math_func_log10f+:} false; then :
20691 $as_echo_n "(cached) " >&6
20692 else
20693 if test x$gcc_no_link = xyes; then
20694 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20695 fi
20696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20697 /* end confdefs.h. */
20698
20699 #ifdef HAVE_COMPLEX_H
20700 #include <complex.h>
20701 #endif
20702 #ifdef HAVE_MATH_H
20703 #include <math.h>
20704 #endif
20705
20706 int (*ptr)() = (int (*)())log10f;
20707
20708 int
20709 main ()
20710 {
20711 return 0;
20712 }
20713
20714 _ACEOF
20715 if ac_fn_c_try_link "$LINENO"; then :
20716 gcc_cv_math_func_log10f=yes
20717 else
20718 gcc_cv_math_func_log10f=no
20719 fi
20720 rm -f core conftest.err conftest.$ac_objext \
20721 conftest$ac_exeext conftest.$ac_ext
20722 fi
20723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10f" >&5
20724 $as_echo "$gcc_cv_math_func_log10f" >&6; }
20725 if test $gcc_cv_math_func_log10f = yes; then
20726
20727 cat >>confdefs.h <<_ACEOF
20728 #define HAVE_LOG10F 1
20729 _ACEOF
20730
20731 fi
20732
20733
20734
20735
20736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10" >&5
20737 $as_echo_n "checking for log10... " >&6; }
20738 if ${gcc_cv_math_func_log10+:} false; then :
20739 $as_echo_n "(cached) " >&6
20740 else
20741 if test x$gcc_no_link = xyes; then
20742 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20743 fi
20744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20745 /* end confdefs.h. */
20746
20747 #ifdef HAVE_COMPLEX_H
20748 #include <complex.h>
20749 #endif
20750 #ifdef HAVE_MATH_H
20751 #include <math.h>
20752 #endif
20753
20754 int (*ptr)() = (int (*)())log10;
20755
20756 int
20757 main ()
20758 {
20759 return 0;
20760 }
20761
20762 _ACEOF
20763 if ac_fn_c_try_link "$LINENO"; then :
20764 gcc_cv_math_func_log10=yes
20765 else
20766 gcc_cv_math_func_log10=no
20767 fi
20768 rm -f core conftest.err conftest.$ac_objext \
20769 conftest$ac_exeext conftest.$ac_ext
20770 fi
20771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10" >&5
20772 $as_echo "$gcc_cv_math_func_log10" >&6; }
20773 if test $gcc_cv_math_func_log10 = yes; then
20774
20775 cat >>confdefs.h <<_ACEOF
20776 #define HAVE_LOG10 1
20777 _ACEOF
20778
20779 fi
20780
20781
20782
20783
20784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l" >&5
20785 $as_echo_n "checking for log10l... " >&6; }
20786 if ${gcc_cv_math_func_log10l+:} false; then :
20787 $as_echo_n "(cached) " >&6
20788 else
20789 if test x$gcc_no_link = xyes; then
20790 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20791 fi
20792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20793 /* end confdefs.h. */
20794
20795 #ifdef HAVE_COMPLEX_H
20796 #include <complex.h>
20797 #endif
20798 #ifdef HAVE_MATH_H
20799 #include <math.h>
20800 #endif
20801
20802 int (*ptr)() = (int (*)())log10l;
20803
20804 int
20805 main ()
20806 {
20807 return 0;
20808 }
20809
20810 _ACEOF
20811 if ac_fn_c_try_link "$LINENO"; then :
20812 gcc_cv_math_func_log10l=yes
20813 else
20814 gcc_cv_math_func_log10l=no
20815 fi
20816 rm -f core conftest.err conftest.$ac_objext \
20817 conftest$ac_exeext conftest.$ac_ext
20818 fi
20819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10l" >&5
20820 $as_echo "$gcc_cv_math_func_log10l" >&6; }
20821 if test $gcc_cv_math_func_log10l = yes; then
20822
20823 cat >>confdefs.h <<_ACEOF
20824 #define HAVE_LOG10L 1
20825 _ACEOF
20826
20827 fi
20828
20829
20830
20831
20832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10f" >&5
20833 $as_echo_n "checking for clog10f... " >&6; }
20834 if ${gcc_cv_math_func_clog10f+:} false; then :
20835 $as_echo_n "(cached) " >&6
20836 else
20837 if test x$gcc_no_link = xyes; then
20838 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20839 fi
20840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20841 /* end confdefs.h. */
20842
20843 #ifdef HAVE_COMPLEX_H
20844 #include <complex.h>
20845 #endif
20846 #ifdef HAVE_MATH_H
20847 #include <math.h>
20848 #endif
20849
20850 int (*ptr)() = (int (*)())clog10f;
20851
20852 int
20853 main ()
20854 {
20855 return 0;
20856 }
20857
20858 _ACEOF
20859 if ac_fn_c_try_link "$LINENO"; then :
20860 gcc_cv_math_func_clog10f=yes
20861 else
20862 gcc_cv_math_func_clog10f=no
20863 fi
20864 rm -f core conftest.err conftest.$ac_objext \
20865 conftest$ac_exeext conftest.$ac_ext
20866 fi
20867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10f" >&5
20868 $as_echo "$gcc_cv_math_func_clog10f" >&6; }
20869 if test $gcc_cv_math_func_clog10f = yes; then
20870
20871 cat >>confdefs.h <<_ACEOF
20872 #define HAVE_CLOG10F 1
20873 _ACEOF
20874
20875 fi
20876
20877
20878
20879
20880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10" >&5
20881 $as_echo_n "checking for clog10... " >&6; }
20882 if ${gcc_cv_math_func_clog10+:} false; then :
20883 $as_echo_n "(cached) " >&6
20884 else
20885 if test x$gcc_no_link = xyes; then
20886 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20887 fi
20888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20889 /* end confdefs.h. */
20890
20891 #ifdef HAVE_COMPLEX_H
20892 #include <complex.h>
20893 #endif
20894 #ifdef HAVE_MATH_H
20895 #include <math.h>
20896 #endif
20897
20898 int (*ptr)() = (int (*)())clog10;
20899
20900 int
20901 main ()
20902 {
20903 return 0;
20904 }
20905
20906 _ACEOF
20907 if ac_fn_c_try_link "$LINENO"; then :
20908 gcc_cv_math_func_clog10=yes
20909 else
20910 gcc_cv_math_func_clog10=no
20911 fi
20912 rm -f core conftest.err conftest.$ac_objext \
20913 conftest$ac_exeext conftest.$ac_ext
20914 fi
20915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10" >&5
20916 $as_echo "$gcc_cv_math_func_clog10" >&6; }
20917 if test $gcc_cv_math_func_clog10 = yes; then
20918
20919 cat >>confdefs.h <<_ACEOF
20920 #define HAVE_CLOG10 1
20921 _ACEOF
20922
20923 fi
20924
20925
20926
20927
20928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10l" >&5
20929 $as_echo_n "checking for clog10l... " >&6; }
20930 if ${gcc_cv_math_func_clog10l+:} false; then :
20931 $as_echo_n "(cached) " >&6
20932 else
20933 if test x$gcc_no_link = xyes; then
20934 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20935 fi
20936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20937 /* end confdefs.h. */
20938
20939 #ifdef HAVE_COMPLEX_H
20940 #include <complex.h>
20941 #endif
20942 #ifdef HAVE_MATH_H
20943 #include <math.h>
20944 #endif
20945
20946 int (*ptr)() = (int (*)())clog10l;
20947
20948 int
20949 main ()
20950 {
20951 return 0;
20952 }
20953
20954 _ACEOF
20955 if ac_fn_c_try_link "$LINENO"; then :
20956 gcc_cv_math_func_clog10l=yes
20957 else
20958 gcc_cv_math_func_clog10l=no
20959 fi
20960 rm -f core conftest.err conftest.$ac_objext \
20961 conftest$ac_exeext conftest.$ac_ext
20962 fi
20963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10l" >&5
20964 $as_echo "$gcc_cv_math_func_clog10l" >&6; }
20965 if test $gcc_cv_math_func_clog10l = yes; then
20966
20967 cat >>confdefs.h <<_ACEOF
20968 #define HAVE_CLOG10L 1
20969 _ACEOF
20970
20971 fi
20972
20973
20974
20975
20976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterf" >&5
20977 $as_echo_n "checking for nextafterf... " >&6; }
20978 if ${gcc_cv_math_func_nextafterf+:} false; then :
20979 $as_echo_n "(cached) " >&6
20980 else
20981 if test x$gcc_no_link = xyes; then
20982 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20983 fi
20984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20985 /* end confdefs.h. */
20986
20987 #ifdef HAVE_COMPLEX_H
20988 #include <complex.h>
20989 #endif
20990 #ifdef HAVE_MATH_H
20991 #include <math.h>
20992 #endif
20993
20994 int (*ptr)() = (int (*)())nextafterf;
20995
20996 int
20997 main ()
20998 {
20999 return 0;
21000 }
21001
21002 _ACEOF
21003 if ac_fn_c_try_link "$LINENO"; then :
21004 gcc_cv_math_func_nextafterf=yes
21005 else
21006 gcc_cv_math_func_nextafterf=no
21007 fi
21008 rm -f core conftest.err conftest.$ac_objext \
21009 conftest$ac_exeext conftest.$ac_ext
21010 fi
21011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterf" >&5
21012 $as_echo "$gcc_cv_math_func_nextafterf" >&6; }
21013 if test $gcc_cv_math_func_nextafterf = yes; then
21014
21015 cat >>confdefs.h <<_ACEOF
21016 #define HAVE_NEXTAFTERF 1
21017 _ACEOF
21018
21019 fi
21020
21021
21022
21023
21024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafter" >&5
21025 $as_echo_n "checking for nextafter... " >&6; }
21026 if ${gcc_cv_math_func_nextafter+:} false; then :
21027 $as_echo_n "(cached) " >&6
21028 else
21029 if test x$gcc_no_link = xyes; then
21030 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21031 fi
21032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21033 /* end confdefs.h. */
21034
21035 #ifdef HAVE_COMPLEX_H
21036 #include <complex.h>
21037 #endif
21038 #ifdef HAVE_MATH_H
21039 #include <math.h>
21040 #endif
21041
21042 int (*ptr)() = (int (*)())nextafter;
21043
21044 int
21045 main ()
21046 {
21047 return 0;
21048 }
21049
21050 _ACEOF
21051 if ac_fn_c_try_link "$LINENO"; then :
21052 gcc_cv_math_func_nextafter=yes
21053 else
21054 gcc_cv_math_func_nextafter=no
21055 fi
21056 rm -f core conftest.err conftest.$ac_objext \
21057 conftest$ac_exeext conftest.$ac_ext
21058 fi
21059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafter" >&5
21060 $as_echo "$gcc_cv_math_func_nextafter" >&6; }
21061 if test $gcc_cv_math_func_nextafter = yes; then
21062
21063 cat >>confdefs.h <<_ACEOF
21064 #define HAVE_NEXTAFTER 1
21065 _ACEOF
21066
21067 fi
21068
21069
21070
21071
21072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterl" >&5
21073 $as_echo_n "checking for nextafterl... " >&6; }
21074 if ${gcc_cv_math_func_nextafterl+:} false; then :
21075 $as_echo_n "(cached) " >&6
21076 else
21077 if test x$gcc_no_link = xyes; then
21078 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21079 fi
21080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21081 /* end confdefs.h. */
21082
21083 #ifdef HAVE_COMPLEX_H
21084 #include <complex.h>
21085 #endif
21086 #ifdef HAVE_MATH_H
21087 #include <math.h>
21088 #endif
21089
21090 int (*ptr)() = (int (*)())nextafterl;
21091
21092 int
21093 main ()
21094 {
21095 return 0;
21096 }
21097
21098 _ACEOF
21099 if ac_fn_c_try_link "$LINENO"; then :
21100 gcc_cv_math_func_nextafterl=yes
21101 else
21102 gcc_cv_math_func_nextafterl=no
21103 fi
21104 rm -f core conftest.err conftest.$ac_objext \
21105 conftest$ac_exeext conftest.$ac_ext
21106 fi
21107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterl" >&5
21108 $as_echo "$gcc_cv_math_func_nextafterl" >&6; }
21109 if test $gcc_cv_math_func_nextafterl = yes; then
21110
21111 cat >>confdefs.h <<_ACEOF
21112 #define HAVE_NEXTAFTERL 1
21113 _ACEOF
21114
21115 fi
21116
21117
21118
21119
21120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf" >&5
21121 $as_echo_n "checking for powf... " >&6; }
21122 if ${gcc_cv_math_func_powf+:} false; then :
21123 $as_echo_n "(cached) " >&6
21124 else
21125 if test x$gcc_no_link = xyes; then
21126 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21127 fi
21128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21129 /* end confdefs.h. */
21130
21131 #ifdef HAVE_COMPLEX_H
21132 #include <complex.h>
21133 #endif
21134 #ifdef HAVE_MATH_H
21135 #include <math.h>
21136 #endif
21137
21138 int (*ptr)() = (int (*)())powf;
21139
21140 int
21141 main ()
21142 {
21143 return 0;
21144 }
21145
21146 _ACEOF
21147 if ac_fn_c_try_link "$LINENO"; then :
21148 gcc_cv_math_func_powf=yes
21149 else
21150 gcc_cv_math_func_powf=no
21151 fi
21152 rm -f core conftest.err conftest.$ac_objext \
21153 conftest$ac_exeext conftest.$ac_ext
21154 fi
21155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powf" >&5
21156 $as_echo "$gcc_cv_math_func_powf" >&6; }
21157 if test $gcc_cv_math_func_powf = yes; then
21158
21159 cat >>confdefs.h <<_ACEOF
21160 #define HAVE_POWF 1
21161 _ACEOF
21162
21163 fi
21164
21165
21166
21167
21168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow" >&5
21169 $as_echo_n "checking for pow... " >&6; }
21170 if ${gcc_cv_math_func_pow+:} false; then :
21171 $as_echo_n "(cached) " >&6
21172 else
21173 if test x$gcc_no_link = xyes; then
21174 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21175 fi
21176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21177 /* end confdefs.h. */
21178
21179 #ifdef HAVE_COMPLEX_H
21180 #include <complex.h>
21181 #endif
21182 #ifdef HAVE_MATH_H
21183 #include <math.h>
21184 #endif
21185
21186 int (*ptr)() = (int (*)())pow;
21187
21188 int
21189 main ()
21190 {
21191 return 0;
21192 }
21193
21194 _ACEOF
21195 if ac_fn_c_try_link "$LINENO"; then :
21196 gcc_cv_math_func_pow=yes
21197 else
21198 gcc_cv_math_func_pow=no
21199 fi
21200 rm -f core conftest.err conftest.$ac_objext \
21201 conftest$ac_exeext conftest.$ac_ext
21202 fi
21203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_pow" >&5
21204 $as_echo "$gcc_cv_math_func_pow" >&6; }
21205 if test $gcc_cv_math_func_pow = yes; then
21206
21207 cat >>confdefs.h <<_ACEOF
21208 #define HAVE_POW 1
21209 _ACEOF
21210
21211 fi
21212
21213
21214
21215
21216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowf" >&5
21217 $as_echo_n "checking for cpowf... " >&6; }
21218 if ${gcc_cv_math_func_cpowf+:} false; then :
21219 $as_echo_n "(cached) " >&6
21220 else
21221 if test x$gcc_no_link = xyes; then
21222 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21223 fi
21224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21225 /* end confdefs.h. */
21226
21227 #ifdef HAVE_COMPLEX_H
21228 #include <complex.h>
21229 #endif
21230 #ifdef HAVE_MATH_H
21231 #include <math.h>
21232 #endif
21233
21234 int (*ptr)() = (int (*)())cpowf;
21235
21236 int
21237 main ()
21238 {
21239 return 0;
21240 }
21241
21242 _ACEOF
21243 if ac_fn_c_try_link "$LINENO"; then :
21244 gcc_cv_math_func_cpowf=yes
21245 else
21246 gcc_cv_math_func_cpowf=no
21247 fi
21248 rm -f core conftest.err conftest.$ac_objext \
21249 conftest$ac_exeext conftest.$ac_ext
21250 fi
21251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowf" >&5
21252 $as_echo "$gcc_cv_math_func_cpowf" >&6; }
21253 if test $gcc_cv_math_func_cpowf = yes; then
21254
21255 cat >>confdefs.h <<_ACEOF
21256 #define HAVE_CPOWF 1
21257 _ACEOF
21258
21259 fi
21260
21261
21262
21263
21264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpow" >&5
21265 $as_echo_n "checking for cpow... " >&6; }
21266 if ${gcc_cv_math_func_cpow+:} false; then :
21267 $as_echo_n "(cached) " >&6
21268 else
21269 if test x$gcc_no_link = xyes; then
21270 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21271 fi
21272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21273 /* end confdefs.h. */
21274
21275 #ifdef HAVE_COMPLEX_H
21276 #include <complex.h>
21277 #endif
21278 #ifdef HAVE_MATH_H
21279 #include <math.h>
21280 #endif
21281
21282 int (*ptr)() = (int (*)())cpow;
21283
21284 int
21285 main ()
21286 {
21287 return 0;
21288 }
21289
21290 _ACEOF
21291 if ac_fn_c_try_link "$LINENO"; then :
21292 gcc_cv_math_func_cpow=yes
21293 else
21294 gcc_cv_math_func_cpow=no
21295 fi
21296 rm -f core conftest.err conftest.$ac_objext \
21297 conftest$ac_exeext conftest.$ac_ext
21298 fi
21299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpow" >&5
21300 $as_echo "$gcc_cv_math_func_cpow" >&6; }
21301 if test $gcc_cv_math_func_cpow = yes; then
21302
21303 cat >>confdefs.h <<_ACEOF
21304 #define HAVE_CPOW 1
21305 _ACEOF
21306
21307 fi
21308
21309
21310
21311
21312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowl" >&5
21313 $as_echo_n "checking for cpowl... " >&6; }
21314 if ${gcc_cv_math_func_cpowl+:} false; then :
21315 $as_echo_n "(cached) " >&6
21316 else
21317 if test x$gcc_no_link = xyes; then
21318 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21319 fi
21320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21321 /* end confdefs.h. */
21322
21323 #ifdef HAVE_COMPLEX_H
21324 #include <complex.h>
21325 #endif
21326 #ifdef HAVE_MATH_H
21327 #include <math.h>
21328 #endif
21329
21330 int (*ptr)() = (int (*)())cpowl;
21331
21332 int
21333 main ()
21334 {
21335 return 0;
21336 }
21337
21338 _ACEOF
21339 if ac_fn_c_try_link "$LINENO"; then :
21340 gcc_cv_math_func_cpowl=yes
21341 else
21342 gcc_cv_math_func_cpowl=no
21343 fi
21344 rm -f core conftest.err conftest.$ac_objext \
21345 conftest$ac_exeext conftest.$ac_ext
21346 fi
21347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowl" >&5
21348 $as_echo "$gcc_cv_math_func_cpowl" >&6; }
21349 if test $gcc_cv_math_func_cpowl = yes; then
21350
21351 cat >>confdefs.h <<_ACEOF
21352 #define HAVE_CPOWL 1
21353 _ACEOF
21354
21355 fi
21356
21357
21358
21359
21360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundf" >&5
21361 $as_echo_n "checking for roundf... " >&6; }
21362 if ${gcc_cv_math_func_roundf+:} false; then :
21363 $as_echo_n "(cached) " >&6
21364 else
21365 if test x$gcc_no_link = xyes; then
21366 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21367 fi
21368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21369 /* end confdefs.h. */
21370
21371 #ifdef HAVE_COMPLEX_H
21372 #include <complex.h>
21373 #endif
21374 #ifdef HAVE_MATH_H
21375 #include <math.h>
21376 #endif
21377
21378 int (*ptr)() = (int (*)())roundf;
21379
21380 int
21381 main ()
21382 {
21383 return 0;
21384 }
21385
21386 _ACEOF
21387 if ac_fn_c_try_link "$LINENO"; then :
21388 gcc_cv_math_func_roundf=yes
21389 else
21390 gcc_cv_math_func_roundf=no
21391 fi
21392 rm -f core conftest.err conftest.$ac_objext \
21393 conftest$ac_exeext conftest.$ac_ext
21394 fi
21395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundf" >&5
21396 $as_echo "$gcc_cv_math_func_roundf" >&6; }
21397 if test $gcc_cv_math_func_roundf = yes; then
21398
21399 cat >>confdefs.h <<_ACEOF
21400 #define HAVE_ROUNDF 1
21401 _ACEOF
21402
21403 fi
21404
21405
21406
21407
21408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for round" >&5
21409 $as_echo_n "checking for round... " >&6; }
21410 if ${gcc_cv_math_func_round+:} false; then :
21411 $as_echo_n "(cached) " >&6
21412 else
21413 if test x$gcc_no_link = xyes; then
21414 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21415 fi
21416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21417 /* end confdefs.h. */
21418
21419 #ifdef HAVE_COMPLEX_H
21420 #include <complex.h>
21421 #endif
21422 #ifdef HAVE_MATH_H
21423 #include <math.h>
21424 #endif
21425
21426 int (*ptr)() = (int (*)())round;
21427
21428 int
21429 main ()
21430 {
21431 return 0;
21432 }
21433
21434 _ACEOF
21435 if ac_fn_c_try_link "$LINENO"; then :
21436 gcc_cv_math_func_round=yes
21437 else
21438 gcc_cv_math_func_round=no
21439 fi
21440 rm -f core conftest.err conftest.$ac_objext \
21441 conftest$ac_exeext conftest.$ac_ext
21442 fi
21443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_round" >&5
21444 $as_echo "$gcc_cv_math_func_round" >&6; }
21445 if test $gcc_cv_math_func_round = yes; then
21446
21447 cat >>confdefs.h <<_ACEOF
21448 #define HAVE_ROUND 1
21449 _ACEOF
21450
21451 fi
21452
21453
21454
21455
21456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundl" >&5
21457 $as_echo_n "checking for roundl... " >&6; }
21458 if ${gcc_cv_math_func_roundl+:} false; then :
21459 $as_echo_n "(cached) " >&6
21460 else
21461 if test x$gcc_no_link = xyes; then
21462 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21463 fi
21464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21465 /* end confdefs.h. */
21466
21467 #ifdef HAVE_COMPLEX_H
21468 #include <complex.h>
21469 #endif
21470 #ifdef HAVE_MATH_H
21471 #include <math.h>
21472 #endif
21473
21474 int (*ptr)() = (int (*)())roundl;
21475
21476 int
21477 main ()
21478 {
21479 return 0;
21480 }
21481
21482 _ACEOF
21483 if ac_fn_c_try_link "$LINENO"; then :
21484 gcc_cv_math_func_roundl=yes
21485 else
21486 gcc_cv_math_func_roundl=no
21487 fi
21488 rm -f core conftest.err conftest.$ac_objext \
21489 conftest$ac_exeext conftest.$ac_ext
21490 fi
21491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundl" >&5
21492 $as_echo "$gcc_cv_math_func_roundl" >&6; }
21493 if test $gcc_cv_math_func_roundl = yes; then
21494
21495 cat >>confdefs.h <<_ACEOF
21496 #define HAVE_ROUNDL 1
21497 _ACEOF
21498
21499 fi
21500
21501
21502
21503
21504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundf" >&5
21505 $as_echo_n "checking for lroundf... " >&6; }
21506 if ${gcc_cv_math_func_lroundf+:} false; then :
21507 $as_echo_n "(cached) " >&6
21508 else
21509 if test x$gcc_no_link = xyes; then
21510 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21511 fi
21512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21513 /* end confdefs.h. */
21514
21515 #ifdef HAVE_COMPLEX_H
21516 #include <complex.h>
21517 #endif
21518 #ifdef HAVE_MATH_H
21519 #include <math.h>
21520 #endif
21521
21522 int (*ptr)() = (int (*)())lroundf;
21523
21524 int
21525 main ()
21526 {
21527 return 0;
21528 }
21529
21530 _ACEOF
21531 if ac_fn_c_try_link "$LINENO"; then :
21532 gcc_cv_math_func_lroundf=yes
21533 else
21534 gcc_cv_math_func_lroundf=no
21535 fi
21536 rm -f core conftest.err conftest.$ac_objext \
21537 conftest$ac_exeext conftest.$ac_ext
21538 fi
21539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundf" >&5
21540 $as_echo "$gcc_cv_math_func_lroundf" >&6; }
21541 if test $gcc_cv_math_func_lroundf = yes; then
21542
21543 cat >>confdefs.h <<_ACEOF
21544 #define HAVE_LROUNDF 1
21545 _ACEOF
21546
21547 fi
21548
21549
21550
21551
21552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lround" >&5
21553 $as_echo_n "checking for lround... " >&6; }
21554 if ${gcc_cv_math_func_lround+:} false; then :
21555 $as_echo_n "(cached) " >&6
21556 else
21557 if test x$gcc_no_link = xyes; then
21558 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21559 fi
21560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21561 /* end confdefs.h. */
21562
21563 #ifdef HAVE_COMPLEX_H
21564 #include <complex.h>
21565 #endif
21566 #ifdef HAVE_MATH_H
21567 #include <math.h>
21568 #endif
21569
21570 int (*ptr)() = (int (*)())lround;
21571
21572 int
21573 main ()
21574 {
21575 return 0;
21576 }
21577
21578 _ACEOF
21579 if ac_fn_c_try_link "$LINENO"; then :
21580 gcc_cv_math_func_lround=yes
21581 else
21582 gcc_cv_math_func_lround=no
21583 fi
21584 rm -f core conftest.err conftest.$ac_objext \
21585 conftest$ac_exeext conftest.$ac_ext
21586 fi
21587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lround" >&5
21588 $as_echo "$gcc_cv_math_func_lround" >&6; }
21589 if test $gcc_cv_math_func_lround = yes; then
21590
21591 cat >>confdefs.h <<_ACEOF
21592 #define HAVE_LROUND 1
21593 _ACEOF
21594
21595 fi
21596
21597
21598
21599
21600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundl" >&5
21601 $as_echo_n "checking for lroundl... " >&6; }
21602 if ${gcc_cv_math_func_lroundl+:} false; then :
21603 $as_echo_n "(cached) " >&6
21604 else
21605 if test x$gcc_no_link = xyes; then
21606 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21607 fi
21608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21609 /* end confdefs.h. */
21610
21611 #ifdef HAVE_COMPLEX_H
21612 #include <complex.h>
21613 #endif
21614 #ifdef HAVE_MATH_H
21615 #include <math.h>
21616 #endif
21617
21618 int (*ptr)() = (int (*)())lroundl;
21619
21620 int
21621 main ()
21622 {
21623 return 0;
21624 }
21625
21626 _ACEOF
21627 if ac_fn_c_try_link "$LINENO"; then :
21628 gcc_cv_math_func_lroundl=yes
21629 else
21630 gcc_cv_math_func_lroundl=no
21631 fi
21632 rm -f core conftest.err conftest.$ac_objext \
21633 conftest$ac_exeext conftest.$ac_ext
21634 fi
21635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundl" >&5
21636 $as_echo "$gcc_cv_math_func_lroundl" >&6; }
21637 if test $gcc_cv_math_func_lroundl = yes; then
21638
21639 cat >>confdefs.h <<_ACEOF
21640 #define HAVE_LROUNDL 1
21641 _ACEOF
21642
21643 fi
21644
21645
21646
21647
21648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundf" >&5
21649 $as_echo_n "checking for llroundf... " >&6; }
21650 if ${gcc_cv_math_func_llroundf+:} false; then :
21651 $as_echo_n "(cached) " >&6
21652 else
21653 if test x$gcc_no_link = xyes; then
21654 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21655 fi
21656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21657 /* end confdefs.h. */
21658
21659 #ifdef HAVE_COMPLEX_H
21660 #include <complex.h>
21661 #endif
21662 #ifdef HAVE_MATH_H
21663 #include <math.h>
21664 #endif
21665
21666 int (*ptr)() = (int (*)())llroundf;
21667
21668 int
21669 main ()
21670 {
21671 return 0;
21672 }
21673
21674 _ACEOF
21675 if ac_fn_c_try_link "$LINENO"; then :
21676 gcc_cv_math_func_llroundf=yes
21677 else
21678 gcc_cv_math_func_llroundf=no
21679 fi
21680 rm -f core conftest.err conftest.$ac_objext \
21681 conftest$ac_exeext conftest.$ac_ext
21682 fi
21683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundf" >&5
21684 $as_echo "$gcc_cv_math_func_llroundf" >&6; }
21685 if test $gcc_cv_math_func_llroundf = yes; then
21686
21687 cat >>confdefs.h <<_ACEOF
21688 #define HAVE_LLROUNDF 1
21689 _ACEOF
21690
21691 fi
21692
21693
21694
21695
21696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llround" >&5
21697 $as_echo_n "checking for llround... " >&6; }
21698 if ${gcc_cv_math_func_llround+:} false; then :
21699 $as_echo_n "(cached) " >&6
21700 else
21701 if test x$gcc_no_link = xyes; then
21702 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21703 fi
21704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21705 /* end confdefs.h. */
21706
21707 #ifdef HAVE_COMPLEX_H
21708 #include <complex.h>
21709 #endif
21710 #ifdef HAVE_MATH_H
21711 #include <math.h>
21712 #endif
21713
21714 int (*ptr)() = (int (*)())llround;
21715
21716 int
21717 main ()
21718 {
21719 return 0;
21720 }
21721
21722 _ACEOF
21723 if ac_fn_c_try_link "$LINENO"; then :
21724 gcc_cv_math_func_llround=yes
21725 else
21726 gcc_cv_math_func_llround=no
21727 fi
21728 rm -f core conftest.err conftest.$ac_objext \
21729 conftest$ac_exeext conftest.$ac_ext
21730 fi
21731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llround" >&5
21732 $as_echo "$gcc_cv_math_func_llround" >&6; }
21733 if test $gcc_cv_math_func_llround = yes; then
21734
21735 cat >>confdefs.h <<_ACEOF
21736 #define HAVE_LLROUND 1
21737 _ACEOF
21738
21739 fi
21740
21741
21742
21743
21744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundl" >&5
21745 $as_echo_n "checking for llroundl... " >&6; }
21746 if ${gcc_cv_math_func_llroundl+:} false; then :
21747 $as_echo_n "(cached) " >&6
21748 else
21749 if test x$gcc_no_link = xyes; then
21750 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21751 fi
21752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21753 /* end confdefs.h. */
21754
21755 #ifdef HAVE_COMPLEX_H
21756 #include <complex.h>
21757 #endif
21758 #ifdef HAVE_MATH_H
21759 #include <math.h>
21760 #endif
21761
21762 int (*ptr)() = (int (*)())llroundl;
21763
21764 int
21765 main ()
21766 {
21767 return 0;
21768 }
21769
21770 _ACEOF
21771 if ac_fn_c_try_link "$LINENO"; then :
21772 gcc_cv_math_func_llroundl=yes
21773 else
21774 gcc_cv_math_func_llroundl=no
21775 fi
21776 rm -f core conftest.err conftest.$ac_objext \
21777 conftest$ac_exeext conftest.$ac_ext
21778 fi
21779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundl" >&5
21780 $as_echo "$gcc_cv_math_func_llroundl" >&6; }
21781 if test $gcc_cv_math_func_llroundl = yes; then
21782
21783 cat >>confdefs.h <<_ACEOF
21784 #define HAVE_LLROUNDL 1
21785 _ACEOF
21786
21787 fi
21788
21789
21790
21791
21792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnf" >&5
21793 $as_echo_n "checking for scalbnf... " >&6; }
21794 if ${gcc_cv_math_func_scalbnf+:} false; then :
21795 $as_echo_n "(cached) " >&6
21796 else
21797 if test x$gcc_no_link = xyes; then
21798 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21799 fi
21800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21801 /* end confdefs.h. */
21802
21803 #ifdef HAVE_COMPLEX_H
21804 #include <complex.h>
21805 #endif
21806 #ifdef HAVE_MATH_H
21807 #include <math.h>
21808 #endif
21809
21810 int (*ptr)() = (int (*)())scalbnf;
21811
21812 int
21813 main ()
21814 {
21815 return 0;
21816 }
21817
21818 _ACEOF
21819 if ac_fn_c_try_link "$LINENO"; then :
21820 gcc_cv_math_func_scalbnf=yes
21821 else
21822 gcc_cv_math_func_scalbnf=no
21823 fi
21824 rm -f core conftest.err conftest.$ac_objext \
21825 conftest$ac_exeext conftest.$ac_ext
21826 fi
21827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnf" >&5
21828 $as_echo "$gcc_cv_math_func_scalbnf" >&6; }
21829 if test $gcc_cv_math_func_scalbnf = yes; then
21830
21831 cat >>confdefs.h <<_ACEOF
21832 #define HAVE_SCALBNF 1
21833 _ACEOF
21834
21835 fi
21836
21837
21838
21839
21840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbn" >&5
21841 $as_echo_n "checking for scalbn... " >&6; }
21842 if ${gcc_cv_math_func_scalbn+:} false; then :
21843 $as_echo_n "(cached) " >&6
21844 else
21845 if test x$gcc_no_link = xyes; then
21846 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21847 fi
21848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21849 /* end confdefs.h. */
21850
21851 #ifdef HAVE_COMPLEX_H
21852 #include <complex.h>
21853 #endif
21854 #ifdef HAVE_MATH_H
21855 #include <math.h>
21856 #endif
21857
21858 int (*ptr)() = (int (*)())scalbn;
21859
21860 int
21861 main ()
21862 {
21863 return 0;
21864 }
21865
21866 _ACEOF
21867 if ac_fn_c_try_link "$LINENO"; then :
21868 gcc_cv_math_func_scalbn=yes
21869 else
21870 gcc_cv_math_func_scalbn=no
21871 fi
21872 rm -f core conftest.err conftest.$ac_objext \
21873 conftest$ac_exeext conftest.$ac_ext
21874 fi
21875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbn" >&5
21876 $as_echo "$gcc_cv_math_func_scalbn" >&6; }
21877 if test $gcc_cv_math_func_scalbn = yes; then
21878
21879 cat >>confdefs.h <<_ACEOF
21880 #define HAVE_SCALBN 1
21881 _ACEOF
21882
21883 fi
21884
21885
21886
21887
21888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnl" >&5
21889 $as_echo_n "checking for scalbnl... " >&6; }
21890 if ${gcc_cv_math_func_scalbnl+:} false; then :
21891 $as_echo_n "(cached) " >&6
21892 else
21893 if test x$gcc_no_link = xyes; then
21894 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21895 fi
21896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21897 /* end confdefs.h. */
21898
21899 #ifdef HAVE_COMPLEX_H
21900 #include <complex.h>
21901 #endif
21902 #ifdef HAVE_MATH_H
21903 #include <math.h>
21904 #endif
21905
21906 int (*ptr)() = (int (*)())scalbnl;
21907
21908 int
21909 main ()
21910 {
21911 return 0;
21912 }
21913
21914 _ACEOF
21915 if ac_fn_c_try_link "$LINENO"; then :
21916 gcc_cv_math_func_scalbnl=yes
21917 else
21918 gcc_cv_math_func_scalbnl=no
21919 fi
21920 rm -f core conftest.err conftest.$ac_objext \
21921 conftest$ac_exeext conftest.$ac_ext
21922 fi
21923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnl" >&5
21924 $as_echo "$gcc_cv_math_func_scalbnl" >&6; }
21925 if test $gcc_cv_math_func_scalbnl = yes; then
21926
21927 cat >>confdefs.h <<_ACEOF
21928 #define HAVE_SCALBNL 1
21929 _ACEOF
21930
21931 fi
21932
21933
21934
21935
21936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinf" >&5
21937 $as_echo_n "checking for sinf... " >&6; }
21938 if ${gcc_cv_math_func_sinf+:} false; then :
21939 $as_echo_n "(cached) " >&6
21940 else
21941 if test x$gcc_no_link = xyes; then
21942 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21943 fi
21944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21945 /* end confdefs.h. */
21946
21947 #ifdef HAVE_COMPLEX_H
21948 #include <complex.h>
21949 #endif
21950 #ifdef HAVE_MATH_H
21951 #include <math.h>
21952 #endif
21953
21954 int (*ptr)() = (int (*)())sinf;
21955
21956 int
21957 main ()
21958 {
21959 return 0;
21960 }
21961
21962 _ACEOF
21963 if ac_fn_c_try_link "$LINENO"; then :
21964 gcc_cv_math_func_sinf=yes
21965 else
21966 gcc_cv_math_func_sinf=no
21967 fi
21968 rm -f core conftest.err conftest.$ac_objext \
21969 conftest$ac_exeext conftest.$ac_ext
21970 fi
21971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinf" >&5
21972 $as_echo "$gcc_cv_math_func_sinf" >&6; }
21973 if test $gcc_cv_math_func_sinf = yes; then
21974
21975 cat >>confdefs.h <<_ACEOF
21976 #define HAVE_SINF 1
21977 _ACEOF
21978
21979 fi
21980
21981
21982
21983
21984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin" >&5
21985 $as_echo_n "checking for sin... " >&6; }
21986 if ${gcc_cv_math_func_sin+:} false; then :
21987 $as_echo_n "(cached) " >&6
21988 else
21989 if test x$gcc_no_link = xyes; then
21990 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21991 fi
21992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21993 /* end confdefs.h. */
21994
21995 #ifdef HAVE_COMPLEX_H
21996 #include <complex.h>
21997 #endif
21998 #ifdef HAVE_MATH_H
21999 #include <math.h>
22000 #endif
22001
22002 int (*ptr)() = (int (*)())sin;
22003
22004 int
22005 main ()
22006 {
22007 return 0;
22008 }
22009
22010 _ACEOF
22011 if ac_fn_c_try_link "$LINENO"; then :
22012 gcc_cv_math_func_sin=yes
22013 else
22014 gcc_cv_math_func_sin=no
22015 fi
22016 rm -f core conftest.err conftest.$ac_objext \
22017 conftest$ac_exeext conftest.$ac_ext
22018 fi
22019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sin" >&5
22020 $as_echo "$gcc_cv_math_func_sin" >&6; }
22021 if test $gcc_cv_math_func_sin = yes; then
22022
22023 cat >>confdefs.h <<_ACEOF
22024 #define HAVE_SIN 1
22025 _ACEOF
22026
22027 fi
22028
22029
22030
22031
22032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinl" >&5
22033 $as_echo_n "checking for sinl... " >&6; }
22034 if ${gcc_cv_math_func_sinl+:} false; then :
22035 $as_echo_n "(cached) " >&6
22036 else
22037 if test x$gcc_no_link = xyes; then
22038 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22039 fi
22040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22041 /* end confdefs.h. */
22042
22043 #ifdef HAVE_COMPLEX_H
22044 #include <complex.h>
22045 #endif
22046 #ifdef HAVE_MATH_H
22047 #include <math.h>
22048 #endif
22049
22050 int (*ptr)() = (int (*)())sinl;
22051
22052 int
22053 main ()
22054 {
22055 return 0;
22056 }
22057
22058 _ACEOF
22059 if ac_fn_c_try_link "$LINENO"; then :
22060 gcc_cv_math_func_sinl=yes
22061 else
22062 gcc_cv_math_func_sinl=no
22063 fi
22064 rm -f core conftest.err conftest.$ac_objext \
22065 conftest$ac_exeext conftest.$ac_ext
22066 fi
22067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinl" >&5
22068 $as_echo "$gcc_cv_math_func_sinl" >&6; }
22069 if test $gcc_cv_math_func_sinl = yes; then
22070
22071 cat >>confdefs.h <<_ACEOF
22072 #define HAVE_SINL 1
22073 _ACEOF
22074
22075 fi
22076
22077
22078
22079
22080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinf" >&5
22081 $as_echo_n "checking for csinf... " >&6; }
22082 if ${gcc_cv_math_func_csinf+:} false; then :
22083 $as_echo_n "(cached) " >&6
22084 else
22085 if test x$gcc_no_link = xyes; then
22086 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22087 fi
22088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22089 /* end confdefs.h. */
22090
22091 #ifdef HAVE_COMPLEX_H
22092 #include <complex.h>
22093 #endif
22094 #ifdef HAVE_MATH_H
22095 #include <math.h>
22096 #endif
22097
22098 int (*ptr)() = (int (*)())csinf;
22099
22100 int
22101 main ()
22102 {
22103 return 0;
22104 }
22105
22106 _ACEOF
22107 if ac_fn_c_try_link "$LINENO"; then :
22108 gcc_cv_math_func_csinf=yes
22109 else
22110 gcc_cv_math_func_csinf=no
22111 fi
22112 rm -f core conftest.err conftest.$ac_objext \
22113 conftest$ac_exeext conftest.$ac_ext
22114 fi
22115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinf" >&5
22116 $as_echo "$gcc_cv_math_func_csinf" >&6; }
22117 if test $gcc_cv_math_func_csinf = yes; then
22118
22119 cat >>confdefs.h <<_ACEOF
22120 #define HAVE_CSINF 1
22121 _ACEOF
22122
22123 fi
22124
22125
22126
22127
22128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csin" >&5
22129 $as_echo_n "checking for csin... " >&6; }
22130 if ${gcc_cv_math_func_csin+:} false; then :
22131 $as_echo_n "(cached) " >&6
22132 else
22133 if test x$gcc_no_link = xyes; then
22134 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22135 fi
22136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22137 /* end confdefs.h. */
22138
22139 #ifdef HAVE_COMPLEX_H
22140 #include <complex.h>
22141 #endif
22142 #ifdef HAVE_MATH_H
22143 #include <math.h>
22144 #endif
22145
22146 int (*ptr)() = (int (*)())csin;
22147
22148 int
22149 main ()
22150 {
22151 return 0;
22152 }
22153
22154 _ACEOF
22155 if ac_fn_c_try_link "$LINENO"; then :
22156 gcc_cv_math_func_csin=yes
22157 else
22158 gcc_cv_math_func_csin=no
22159 fi
22160 rm -f core conftest.err conftest.$ac_objext \
22161 conftest$ac_exeext conftest.$ac_ext
22162 fi
22163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csin" >&5
22164 $as_echo "$gcc_cv_math_func_csin" >&6; }
22165 if test $gcc_cv_math_func_csin = yes; then
22166
22167 cat >>confdefs.h <<_ACEOF
22168 #define HAVE_CSIN 1
22169 _ACEOF
22170
22171 fi
22172
22173
22174
22175
22176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinl" >&5
22177 $as_echo_n "checking for csinl... " >&6; }
22178 if ${gcc_cv_math_func_csinl+:} false; then :
22179 $as_echo_n "(cached) " >&6
22180 else
22181 if test x$gcc_no_link = xyes; then
22182 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22183 fi
22184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22185 /* end confdefs.h. */
22186
22187 #ifdef HAVE_COMPLEX_H
22188 #include <complex.h>
22189 #endif
22190 #ifdef HAVE_MATH_H
22191 #include <math.h>
22192 #endif
22193
22194 int (*ptr)() = (int (*)())csinl;
22195
22196 int
22197 main ()
22198 {
22199 return 0;
22200 }
22201
22202 _ACEOF
22203 if ac_fn_c_try_link "$LINENO"; then :
22204 gcc_cv_math_func_csinl=yes
22205 else
22206 gcc_cv_math_func_csinl=no
22207 fi
22208 rm -f core conftest.err conftest.$ac_objext \
22209 conftest$ac_exeext conftest.$ac_ext
22210 fi
22211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinl" >&5
22212 $as_echo "$gcc_cv_math_func_csinl" >&6; }
22213 if test $gcc_cv_math_func_csinl = yes; then
22214
22215 cat >>confdefs.h <<_ACEOF
22216 #define HAVE_CSINL 1
22217 _ACEOF
22218
22219 fi
22220
22221
22222
22223
22224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhf" >&5
22225 $as_echo_n "checking for sinhf... " >&6; }
22226 if ${gcc_cv_math_func_sinhf+:} false; then :
22227 $as_echo_n "(cached) " >&6
22228 else
22229 if test x$gcc_no_link = xyes; then
22230 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22231 fi
22232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22233 /* end confdefs.h. */
22234
22235 #ifdef HAVE_COMPLEX_H
22236 #include <complex.h>
22237 #endif
22238 #ifdef HAVE_MATH_H
22239 #include <math.h>
22240 #endif
22241
22242 int (*ptr)() = (int (*)())sinhf;
22243
22244 int
22245 main ()
22246 {
22247 return 0;
22248 }
22249
22250 _ACEOF
22251 if ac_fn_c_try_link "$LINENO"; then :
22252 gcc_cv_math_func_sinhf=yes
22253 else
22254 gcc_cv_math_func_sinhf=no
22255 fi
22256 rm -f core conftest.err conftest.$ac_objext \
22257 conftest$ac_exeext conftest.$ac_ext
22258 fi
22259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhf" >&5
22260 $as_echo "$gcc_cv_math_func_sinhf" >&6; }
22261 if test $gcc_cv_math_func_sinhf = yes; then
22262
22263 cat >>confdefs.h <<_ACEOF
22264 #define HAVE_SINHF 1
22265 _ACEOF
22266
22267 fi
22268
22269
22270
22271
22272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinh" >&5
22273 $as_echo_n "checking for sinh... " >&6; }
22274 if ${gcc_cv_math_func_sinh+:} false; then :
22275 $as_echo_n "(cached) " >&6
22276 else
22277 if test x$gcc_no_link = xyes; then
22278 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22279 fi
22280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22281 /* end confdefs.h. */
22282
22283 #ifdef HAVE_COMPLEX_H
22284 #include <complex.h>
22285 #endif
22286 #ifdef HAVE_MATH_H
22287 #include <math.h>
22288 #endif
22289
22290 int (*ptr)() = (int (*)())sinh;
22291
22292 int
22293 main ()
22294 {
22295 return 0;
22296 }
22297
22298 _ACEOF
22299 if ac_fn_c_try_link "$LINENO"; then :
22300 gcc_cv_math_func_sinh=yes
22301 else
22302 gcc_cv_math_func_sinh=no
22303 fi
22304 rm -f core conftest.err conftest.$ac_objext \
22305 conftest$ac_exeext conftest.$ac_ext
22306 fi
22307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinh" >&5
22308 $as_echo "$gcc_cv_math_func_sinh" >&6; }
22309 if test $gcc_cv_math_func_sinh = yes; then
22310
22311 cat >>confdefs.h <<_ACEOF
22312 #define HAVE_SINH 1
22313 _ACEOF
22314
22315 fi
22316
22317
22318
22319
22320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhl" >&5
22321 $as_echo_n "checking for sinhl... " >&6; }
22322 if ${gcc_cv_math_func_sinhl+:} false; then :
22323 $as_echo_n "(cached) " >&6
22324 else
22325 if test x$gcc_no_link = xyes; then
22326 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22327 fi
22328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22329 /* end confdefs.h. */
22330
22331 #ifdef HAVE_COMPLEX_H
22332 #include <complex.h>
22333 #endif
22334 #ifdef HAVE_MATH_H
22335 #include <math.h>
22336 #endif
22337
22338 int (*ptr)() = (int (*)())sinhl;
22339
22340 int
22341 main ()
22342 {
22343 return 0;
22344 }
22345
22346 _ACEOF
22347 if ac_fn_c_try_link "$LINENO"; then :
22348 gcc_cv_math_func_sinhl=yes
22349 else
22350 gcc_cv_math_func_sinhl=no
22351 fi
22352 rm -f core conftest.err conftest.$ac_objext \
22353 conftest$ac_exeext conftest.$ac_ext
22354 fi
22355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhl" >&5
22356 $as_echo "$gcc_cv_math_func_sinhl" >&6; }
22357 if test $gcc_cv_math_func_sinhl = yes; then
22358
22359 cat >>confdefs.h <<_ACEOF
22360 #define HAVE_SINHL 1
22361 _ACEOF
22362
22363 fi
22364
22365
22366
22367
22368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhf" >&5
22369 $as_echo_n "checking for csinhf... " >&6; }
22370 if ${gcc_cv_math_func_csinhf+:} false; then :
22371 $as_echo_n "(cached) " >&6
22372 else
22373 if test x$gcc_no_link = xyes; then
22374 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22375 fi
22376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22377 /* end confdefs.h. */
22378
22379 #ifdef HAVE_COMPLEX_H
22380 #include <complex.h>
22381 #endif
22382 #ifdef HAVE_MATH_H
22383 #include <math.h>
22384 #endif
22385
22386 int (*ptr)() = (int (*)())csinhf;
22387
22388 int
22389 main ()
22390 {
22391 return 0;
22392 }
22393
22394 _ACEOF
22395 if ac_fn_c_try_link "$LINENO"; then :
22396 gcc_cv_math_func_csinhf=yes
22397 else
22398 gcc_cv_math_func_csinhf=no
22399 fi
22400 rm -f core conftest.err conftest.$ac_objext \
22401 conftest$ac_exeext conftest.$ac_ext
22402 fi
22403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhf" >&5
22404 $as_echo "$gcc_cv_math_func_csinhf" >&6; }
22405 if test $gcc_cv_math_func_csinhf = yes; then
22406
22407 cat >>confdefs.h <<_ACEOF
22408 #define HAVE_CSINHF 1
22409 _ACEOF
22410
22411 fi
22412
22413
22414
22415
22416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinh" >&5
22417 $as_echo_n "checking for csinh... " >&6; }
22418 if ${gcc_cv_math_func_csinh+:} false; then :
22419 $as_echo_n "(cached) " >&6
22420 else
22421 if test x$gcc_no_link = xyes; then
22422 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22423 fi
22424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22425 /* end confdefs.h. */
22426
22427 #ifdef HAVE_COMPLEX_H
22428 #include <complex.h>
22429 #endif
22430 #ifdef HAVE_MATH_H
22431 #include <math.h>
22432 #endif
22433
22434 int (*ptr)() = (int (*)())csinh;
22435
22436 int
22437 main ()
22438 {
22439 return 0;
22440 }
22441
22442 _ACEOF
22443 if ac_fn_c_try_link "$LINENO"; then :
22444 gcc_cv_math_func_csinh=yes
22445 else
22446 gcc_cv_math_func_csinh=no
22447 fi
22448 rm -f core conftest.err conftest.$ac_objext \
22449 conftest$ac_exeext conftest.$ac_ext
22450 fi
22451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinh" >&5
22452 $as_echo "$gcc_cv_math_func_csinh" >&6; }
22453 if test $gcc_cv_math_func_csinh = yes; then
22454
22455 cat >>confdefs.h <<_ACEOF
22456 #define HAVE_CSINH 1
22457 _ACEOF
22458
22459 fi
22460
22461
22462
22463
22464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhl" >&5
22465 $as_echo_n "checking for csinhl... " >&6; }
22466 if ${gcc_cv_math_func_csinhl+:} false; then :
22467 $as_echo_n "(cached) " >&6
22468 else
22469 if test x$gcc_no_link = xyes; then
22470 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22471 fi
22472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22473 /* end confdefs.h. */
22474
22475 #ifdef HAVE_COMPLEX_H
22476 #include <complex.h>
22477 #endif
22478 #ifdef HAVE_MATH_H
22479 #include <math.h>
22480 #endif
22481
22482 int (*ptr)() = (int (*)())csinhl;
22483
22484 int
22485 main ()
22486 {
22487 return 0;
22488 }
22489
22490 _ACEOF
22491 if ac_fn_c_try_link "$LINENO"; then :
22492 gcc_cv_math_func_csinhl=yes
22493 else
22494 gcc_cv_math_func_csinhl=no
22495 fi
22496 rm -f core conftest.err conftest.$ac_objext \
22497 conftest$ac_exeext conftest.$ac_ext
22498 fi
22499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhl" >&5
22500 $as_echo "$gcc_cv_math_func_csinhl" >&6; }
22501 if test $gcc_cv_math_func_csinhl = yes; then
22502
22503 cat >>confdefs.h <<_ACEOF
22504 #define HAVE_CSINHL 1
22505 _ACEOF
22506
22507 fi
22508
22509
22510
22511
22512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf" >&5
22513 $as_echo_n "checking for sqrtf... " >&6; }
22514 if ${gcc_cv_math_func_sqrtf+:} false; then :
22515 $as_echo_n "(cached) " >&6
22516 else
22517 if test x$gcc_no_link = xyes; then
22518 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22519 fi
22520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22521 /* end confdefs.h. */
22522
22523 #ifdef HAVE_COMPLEX_H
22524 #include <complex.h>
22525 #endif
22526 #ifdef HAVE_MATH_H
22527 #include <math.h>
22528 #endif
22529
22530 int (*ptr)() = (int (*)())sqrtf;
22531
22532 int
22533 main ()
22534 {
22535 return 0;
22536 }
22537
22538 _ACEOF
22539 if ac_fn_c_try_link "$LINENO"; then :
22540 gcc_cv_math_func_sqrtf=yes
22541 else
22542 gcc_cv_math_func_sqrtf=no
22543 fi
22544 rm -f core conftest.err conftest.$ac_objext \
22545 conftest$ac_exeext conftest.$ac_ext
22546 fi
22547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtf" >&5
22548 $as_echo "$gcc_cv_math_func_sqrtf" >&6; }
22549 if test $gcc_cv_math_func_sqrtf = yes; then
22550
22551 cat >>confdefs.h <<_ACEOF
22552 #define HAVE_SQRTF 1
22553 _ACEOF
22554
22555 fi
22556
22557
22558
22559
22560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt" >&5
22561 $as_echo_n "checking for sqrt... " >&6; }
22562 if ${gcc_cv_math_func_sqrt+:} false; then :
22563 $as_echo_n "(cached) " >&6
22564 else
22565 if test x$gcc_no_link = xyes; then
22566 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22567 fi
22568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22569 /* end confdefs.h. */
22570
22571 #ifdef HAVE_COMPLEX_H
22572 #include <complex.h>
22573 #endif
22574 #ifdef HAVE_MATH_H
22575 #include <math.h>
22576 #endif
22577
22578 int (*ptr)() = (int (*)())sqrt;
22579
22580 int
22581 main ()
22582 {
22583 return 0;
22584 }
22585
22586 _ACEOF
22587 if ac_fn_c_try_link "$LINENO"; then :
22588 gcc_cv_math_func_sqrt=yes
22589 else
22590 gcc_cv_math_func_sqrt=no
22591 fi
22592 rm -f core conftest.err conftest.$ac_objext \
22593 conftest$ac_exeext conftest.$ac_ext
22594 fi
22595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrt" >&5
22596 $as_echo "$gcc_cv_math_func_sqrt" >&6; }
22597 if test $gcc_cv_math_func_sqrt = yes; then
22598
22599 cat >>confdefs.h <<_ACEOF
22600 #define HAVE_SQRT 1
22601 _ACEOF
22602
22603 fi
22604
22605
22606
22607
22608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl" >&5
22609 $as_echo_n "checking for sqrtl... " >&6; }
22610 if ${gcc_cv_math_func_sqrtl+:} false; then :
22611 $as_echo_n "(cached) " >&6
22612 else
22613 if test x$gcc_no_link = xyes; then
22614 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22615 fi
22616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22617 /* end confdefs.h. */
22618
22619 #ifdef HAVE_COMPLEX_H
22620 #include <complex.h>
22621 #endif
22622 #ifdef HAVE_MATH_H
22623 #include <math.h>
22624 #endif
22625
22626 int (*ptr)() = (int (*)())sqrtl;
22627
22628 int
22629 main ()
22630 {
22631 return 0;
22632 }
22633
22634 _ACEOF
22635 if ac_fn_c_try_link "$LINENO"; then :
22636 gcc_cv_math_func_sqrtl=yes
22637 else
22638 gcc_cv_math_func_sqrtl=no
22639 fi
22640 rm -f core conftest.err conftest.$ac_objext \
22641 conftest$ac_exeext conftest.$ac_ext
22642 fi
22643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtl" >&5
22644 $as_echo "$gcc_cv_math_func_sqrtl" >&6; }
22645 if test $gcc_cv_math_func_sqrtl = yes; then
22646
22647 cat >>confdefs.h <<_ACEOF
22648 #define HAVE_SQRTL 1
22649 _ACEOF
22650
22651 fi
22652
22653
22654
22655
22656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtf" >&5
22657 $as_echo_n "checking for csqrtf... " >&6; }
22658 if ${gcc_cv_math_func_csqrtf+:} false; then :
22659 $as_echo_n "(cached) " >&6
22660 else
22661 if test x$gcc_no_link = xyes; then
22662 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22663 fi
22664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22665 /* end confdefs.h. */
22666
22667 #ifdef HAVE_COMPLEX_H
22668 #include <complex.h>
22669 #endif
22670 #ifdef HAVE_MATH_H
22671 #include <math.h>
22672 #endif
22673
22674 int (*ptr)() = (int (*)())csqrtf;
22675
22676 int
22677 main ()
22678 {
22679 return 0;
22680 }
22681
22682 _ACEOF
22683 if ac_fn_c_try_link "$LINENO"; then :
22684 gcc_cv_math_func_csqrtf=yes
22685 else
22686 gcc_cv_math_func_csqrtf=no
22687 fi
22688 rm -f core conftest.err conftest.$ac_objext \
22689 conftest$ac_exeext conftest.$ac_ext
22690 fi
22691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtf" >&5
22692 $as_echo "$gcc_cv_math_func_csqrtf" >&6; }
22693 if test $gcc_cv_math_func_csqrtf = yes; then
22694
22695 cat >>confdefs.h <<_ACEOF
22696 #define HAVE_CSQRTF 1
22697 _ACEOF
22698
22699 fi
22700
22701
22702
22703
22704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrt" >&5
22705 $as_echo_n "checking for csqrt... " >&6; }
22706 if ${gcc_cv_math_func_csqrt+:} false; then :
22707 $as_echo_n "(cached) " >&6
22708 else
22709 if test x$gcc_no_link = xyes; then
22710 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22711 fi
22712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22713 /* end confdefs.h. */
22714
22715 #ifdef HAVE_COMPLEX_H
22716 #include <complex.h>
22717 #endif
22718 #ifdef HAVE_MATH_H
22719 #include <math.h>
22720 #endif
22721
22722 int (*ptr)() = (int (*)())csqrt;
22723
22724 int
22725 main ()
22726 {
22727 return 0;
22728 }
22729
22730 _ACEOF
22731 if ac_fn_c_try_link "$LINENO"; then :
22732 gcc_cv_math_func_csqrt=yes
22733 else
22734 gcc_cv_math_func_csqrt=no
22735 fi
22736 rm -f core conftest.err conftest.$ac_objext \
22737 conftest$ac_exeext conftest.$ac_ext
22738 fi
22739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrt" >&5
22740 $as_echo "$gcc_cv_math_func_csqrt" >&6; }
22741 if test $gcc_cv_math_func_csqrt = yes; then
22742
22743 cat >>confdefs.h <<_ACEOF
22744 #define HAVE_CSQRT 1
22745 _ACEOF
22746
22747 fi
22748
22749
22750
22751
22752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtl" >&5
22753 $as_echo_n "checking for csqrtl... " >&6; }
22754 if ${gcc_cv_math_func_csqrtl+:} false; then :
22755 $as_echo_n "(cached) " >&6
22756 else
22757 if test x$gcc_no_link = xyes; then
22758 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22759 fi
22760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22761 /* end confdefs.h. */
22762
22763 #ifdef HAVE_COMPLEX_H
22764 #include <complex.h>
22765 #endif
22766 #ifdef HAVE_MATH_H
22767 #include <math.h>
22768 #endif
22769
22770 int (*ptr)() = (int (*)())csqrtl;
22771
22772 int
22773 main ()
22774 {
22775 return 0;
22776 }
22777
22778 _ACEOF
22779 if ac_fn_c_try_link "$LINENO"; then :
22780 gcc_cv_math_func_csqrtl=yes
22781 else
22782 gcc_cv_math_func_csqrtl=no
22783 fi
22784 rm -f core conftest.err conftest.$ac_objext \
22785 conftest$ac_exeext conftest.$ac_ext
22786 fi
22787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtl" >&5
22788 $as_echo "$gcc_cv_math_func_csqrtl" >&6; }
22789 if test $gcc_cv_math_func_csqrtl = yes; then
22790
22791 cat >>confdefs.h <<_ACEOF
22792 #define HAVE_CSQRTL 1
22793 _ACEOF
22794
22795 fi
22796
22797
22798
22799
22800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanf" >&5
22801 $as_echo_n "checking for tanf... " >&6; }
22802 if ${gcc_cv_math_func_tanf+:} false; then :
22803 $as_echo_n "(cached) " >&6
22804 else
22805 if test x$gcc_no_link = xyes; then
22806 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22807 fi
22808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22809 /* end confdefs.h. */
22810
22811 #ifdef HAVE_COMPLEX_H
22812 #include <complex.h>
22813 #endif
22814 #ifdef HAVE_MATH_H
22815 #include <math.h>
22816 #endif
22817
22818 int (*ptr)() = (int (*)())tanf;
22819
22820 int
22821 main ()
22822 {
22823 return 0;
22824 }
22825
22826 _ACEOF
22827 if ac_fn_c_try_link "$LINENO"; then :
22828 gcc_cv_math_func_tanf=yes
22829 else
22830 gcc_cv_math_func_tanf=no
22831 fi
22832 rm -f core conftest.err conftest.$ac_objext \
22833 conftest$ac_exeext conftest.$ac_ext
22834 fi
22835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanf" >&5
22836 $as_echo "$gcc_cv_math_func_tanf" >&6; }
22837 if test $gcc_cv_math_func_tanf = yes; then
22838
22839 cat >>confdefs.h <<_ACEOF
22840 #define HAVE_TANF 1
22841 _ACEOF
22842
22843 fi
22844
22845
22846
22847
22848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tan" >&5
22849 $as_echo_n "checking for tan... " >&6; }
22850 if ${gcc_cv_math_func_tan+:} false; then :
22851 $as_echo_n "(cached) " >&6
22852 else
22853 if test x$gcc_no_link = xyes; then
22854 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22855 fi
22856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22857 /* end confdefs.h. */
22858
22859 #ifdef HAVE_COMPLEX_H
22860 #include <complex.h>
22861 #endif
22862 #ifdef HAVE_MATH_H
22863 #include <math.h>
22864 #endif
22865
22866 int (*ptr)() = (int (*)())tan;
22867
22868 int
22869 main ()
22870 {
22871 return 0;
22872 }
22873
22874 _ACEOF
22875 if ac_fn_c_try_link "$LINENO"; then :
22876 gcc_cv_math_func_tan=yes
22877 else
22878 gcc_cv_math_func_tan=no
22879 fi
22880 rm -f core conftest.err conftest.$ac_objext \
22881 conftest$ac_exeext conftest.$ac_ext
22882 fi
22883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tan" >&5
22884 $as_echo "$gcc_cv_math_func_tan" >&6; }
22885 if test $gcc_cv_math_func_tan = yes; then
22886
22887 cat >>confdefs.h <<_ACEOF
22888 #define HAVE_TAN 1
22889 _ACEOF
22890
22891 fi
22892
22893
22894
22895
22896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanl" >&5
22897 $as_echo_n "checking for tanl... " >&6; }
22898 if ${gcc_cv_math_func_tanl+:} false; then :
22899 $as_echo_n "(cached) " >&6
22900 else
22901 if test x$gcc_no_link = xyes; then
22902 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22903 fi
22904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22905 /* end confdefs.h. */
22906
22907 #ifdef HAVE_COMPLEX_H
22908 #include <complex.h>
22909 #endif
22910 #ifdef HAVE_MATH_H
22911 #include <math.h>
22912 #endif
22913
22914 int (*ptr)() = (int (*)())tanl;
22915
22916 int
22917 main ()
22918 {
22919 return 0;
22920 }
22921
22922 _ACEOF
22923 if ac_fn_c_try_link "$LINENO"; then :
22924 gcc_cv_math_func_tanl=yes
22925 else
22926 gcc_cv_math_func_tanl=no
22927 fi
22928 rm -f core conftest.err conftest.$ac_objext \
22929 conftest$ac_exeext conftest.$ac_ext
22930 fi
22931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanl" >&5
22932 $as_echo "$gcc_cv_math_func_tanl" >&6; }
22933 if test $gcc_cv_math_func_tanl = yes; then
22934
22935 cat >>confdefs.h <<_ACEOF
22936 #define HAVE_TANL 1
22937 _ACEOF
22938
22939 fi
22940
22941
22942
22943
22944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanf" >&5
22945 $as_echo_n "checking for ctanf... " >&6; }
22946 if ${gcc_cv_math_func_ctanf+:} false; then :
22947 $as_echo_n "(cached) " >&6
22948 else
22949 if test x$gcc_no_link = xyes; then
22950 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22951 fi
22952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22953 /* end confdefs.h. */
22954
22955 #ifdef HAVE_COMPLEX_H
22956 #include <complex.h>
22957 #endif
22958 #ifdef HAVE_MATH_H
22959 #include <math.h>
22960 #endif
22961
22962 int (*ptr)() = (int (*)())ctanf;
22963
22964 int
22965 main ()
22966 {
22967 return 0;
22968 }
22969
22970 _ACEOF
22971 if ac_fn_c_try_link "$LINENO"; then :
22972 gcc_cv_math_func_ctanf=yes
22973 else
22974 gcc_cv_math_func_ctanf=no
22975 fi
22976 rm -f core conftest.err conftest.$ac_objext \
22977 conftest$ac_exeext conftest.$ac_ext
22978 fi
22979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanf" >&5
22980 $as_echo "$gcc_cv_math_func_ctanf" >&6; }
22981 if test $gcc_cv_math_func_ctanf = yes; then
22982
22983 cat >>confdefs.h <<_ACEOF
22984 #define HAVE_CTANF 1
22985 _ACEOF
22986
22987 fi
22988
22989
22990
22991
22992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctan" >&5
22993 $as_echo_n "checking for ctan... " >&6; }
22994 if ${gcc_cv_math_func_ctan+:} false; then :
22995 $as_echo_n "(cached) " >&6
22996 else
22997 if test x$gcc_no_link = xyes; then
22998 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22999 fi
23000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23001 /* end confdefs.h. */
23002
23003 #ifdef HAVE_COMPLEX_H
23004 #include <complex.h>
23005 #endif
23006 #ifdef HAVE_MATH_H
23007 #include <math.h>
23008 #endif
23009
23010 int (*ptr)() = (int (*)())ctan;
23011
23012 int
23013 main ()
23014 {
23015 return 0;
23016 }
23017
23018 _ACEOF
23019 if ac_fn_c_try_link "$LINENO"; then :
23020 gcc_cv_math_func_ctan=yes
23021 else
23022 gcc_cv_math_func_ctan=no
23023 fi
23024 rm -f core conftest.err conftest.$ac_objext \
23025 conftest$ac_exeext conftest.$ac_ext
23026 fi
23027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctan" >&5
23028 $as_echo "$gcc_cv_math_func_ctan" >&6; }
23029 if test $gcc_cv_math_func_ctan = yes; then
23030
23031 cat >>confdefs.h <<_ACEOF
23032 #define HAVE_CTAN 1
23033 _ACEOF
23034
23035 fi
23036
23037
23038
23039
23040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanl" >&5
23041 $as_echo_n "checking for ctanl... " >&6; }
23042 if ${gcc_cv_math_func_ctanl+:} false; then :
23043 $as_echo_n "(cached) " >&6
23044 else
23045 if test x$gcc_no_link = xyes; then
23046 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23047 fi
23048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23049 /* end confdefs.h. */
23050
23051 #ifdef HAVE_COMPLEX_H
23052 #include <complex.h>
23053 #endif
23054 #ifdef HAVE_MATH_H
23055 #include <math.h>
23056 #endif
23057
23058 int (*ptr)() = (int (*)())ctanl;
23059
23060 int
23061 main ()
23062 {
23063 return 0;
23064 }
23065
23066 _ACEOF
23067 if ac_fn_c_try_link "$LINENO"; then :
23068 gcc_cv_math_func_ctanl=yes
23069 else
23070 gcc_cv_math_func_ctanl=no
23071 fi
23072 rm -f core conftest.err conftest.$ac_objext \
23073 conftest$ac_exeext conftest.$ac_ext
23074 fi
23075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanl" >&5
23076 $as_echo "$gcc_cv_math_func_ctanl" >&6; }
23077 if test $gcc_cv_math_func_ctanl = yes; then
23078
23079 cat >>confdefs.h <<_ACEOF
23080 #define HAVE_CTANL 1
23081 _ACEOF
23082
23083 fi
23084
23085
23086
23087
23088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhf" >&5
23089 $as_echo_n "checking for tanhf... " >&6; }
23090 if ${gcc_cv_math_func_tanhf+:} false; then :
23091 $as_echo_n "(cached) " >&6
23092 else
23093 if test x$gcc_no_link = xyes; then
23094 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23095 fi
23096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23097 /* end confdefs.h. */
23098
23099 #ifdef HAVE_COMPLEX_H
23100 #include <complex.h>
23101 #endif
23102 #ifdef HAVE_MATH_H
23103 #include <math.h>
23104 #endif
23105
23106 int (*ptr)() = (int (*)())tanhf;
23107
23108 int
23109 main ()
23110 {
23111 return 0;
23112 }
23113
23114 _ACEOF
23115 if ac_fn_c_try_link "$LINENO"; then :
23116 gcc_cv_math_func_tanhf=yes
23117 else
23118 gcc_cv_math_func_tanhf=no
23119 fi
23120 rm -f core conftest.err conftest.$ac_objext \
23121 conftest$ac_exeext conftest.$ac_ext
23122 fi
23123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhf" >&5
23124 $as_echo "$gcc_cv_math_func_tanhf" >&6; }
23125 if test $gcc_cv_math_func_tanhf = yes; then
23126
23127 cat >>confdefs.h <<_ACEOF
23128 #define HAVE_TANHF 1
23129 _ACEOF
23130
23131 fi
23132
23133
23134
23135
23136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanh" >&5
23137 $as_echo_n "checking for tanh... " >&6; }
23138 if ${gcc_cv_math_func_tanh+:} false; then :
23139 $as_echo_n "(cached) " >&6
23140 else
23141 if test x$gcc_no_link = xyes; then
23142 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23143 fi
23144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23145 /* end confdefs.h. */
23146
23147 #ifdef HAVE_COMPLEX_H
23148 #include <complex.h>
23149 #endif
23150 #ifdef HAVE_MATH_H
23151 #include <math.h>
23152 #endif
23153
23154 int (*ptr)() = (int (*)())tanh;
23155
23156 int
23157 main ()
23158 {
23159 return 0;
23160 }
23161
23162 _ACEOF
23163 if ac_fn_c_try_link "$LINENO"; then :
23164 gcc_cv_math_func_tanh=yes
23165 else
23166 gcc_cv_math_func_tanh=no
23167 fi
23168 rm -f core conftest.err conftest.$ac_objext \
23169 conftest$ac_exeext conftest.$ac_ext
23170 fi
23171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanh" >&5
23172 $as_echo "$gcc_cv_math_func_tanh" >&6; }
23173 if test $gcc_cv_math_func_tanh = yes; then
23174
23175 cat >>confdefs.h <<_ACEOF
23176 #define HAVE_TANH 1
23177 _ACEOF
23178
23179 fi
23180
23181
23182
23183
23184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhl" >&5
23185 $as_echo_n "checking for tanhl... " >&6; }
23186 if ${gcc_cv_math_func_tanhl+:} false; then :
23187 $as_echo_n "(cached) " >&6
23188 else
23189 if test x$gcc_no_link = xyes; then
23190 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23191 fi
23192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23193 /* end confdefs.h. */
23194
23195 #ifdef HAVE_COMPLEX_H
23196 #include <complex.h>
23197 #endif
23198 #ifdef HAVE_MATH_H
23199 #include <math.h>
23200 #endif
23201
23202 int (*ptr)() = (int (*)())tanhl;
23203
23204 int
23205 main ()
23206 {
23207 return 0;
23208 }
23209
23210 _ACEOF
23211 if ac_fn_c_try_link "$LINENO"; then :
23212 gcc_cv_math_func_tanhl=yes
23213 else
23214 gcc_cv_math_func_tanhl=no
23215 fi
23216 rm -f core conftest.err conftest.$ac_objext \
23217 conftest$ac_exeext conftest.$ac_ext
23218 fi
23219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhl" >&5
23220 $as_echo "$gcc_cv_math_func_tanhl" >&6; }
23221 if test $gcc_cv_math_func_tanhl = yes; then
23222
23223 cat >>confdefs.h <<_ACEOF
23224 #define HAVE_TANHL 1
23225 _ACEOF
23226
23227 fi
23228
23229
23230
23231
23232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhf" >&5
23233 $as_echo_n "checking for ctanhf... " >&6; }
23234 if ${gcc_cv_math_func_ctanhf+:} false; then :
23235 $as_echo_n "(cached) " >&6
23236 else
23237 if test x$gcc_no_link = xyes; then
23238 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23239 fi
23240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23241 /* end confdefs.h. */
23242
23243 #ifdef HAVE_COMPLEX_H
23244 #include <complex.h>
23245 #endif
23246 #ifdef HAVE_MATH_H
23247 #include <math.h>
23248 #endif
23249
23250 int (*ptr)() = (int (*)())ctanhf;
23251
23252 int
23253 main ()
23254 {
23255 return 0;
23256 }
23257
23258 _ACEOF
23259 if ac_fn_c_try_link "$LINENO"; then :
23260 gcc_cv_math_func_ctanhf=yes
23261 else
23262 gcc_cv_math_func_ctanhf=no
23263 fi
23264 rm -f core conftest.err conftest.$ac_objext \
23265 conftest$ac_exeext conftest.$ac_ext
23266 fi
23267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhf" >&5
23268 $as_echo "$gcc_cv_math_func_ctanhf" >&6; }
23269 if test $gcc_cv_math_func_ctanhf = yes; then
23270
23271 cat >>confdefs.h <<_ACEOF
23272 #define HAVE_CTANHF 1
23273 _ACEOF
23274
23275 fi
23276
23277
23278
23279
23280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanh" >&5
23281 $as_echo_n "checking for ctanh... " >&6; }
23282 if ${gcc_cv_math_func_ctanh+:} false; then :
23283 $as_echo_n "(cached) " >&6
23284 else
23285 if test x$gcc_no_link = xyes; then
23286 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23287 fi
23288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23289 /* end confdefs.h. */
23290
23291 #ifdef HAVE_COMPLEX_H
23292 #include <complex.h>
23293 #endif
23294 #ifdef HAVE_MATH_H
23295 #include <math.h>
23296 #endif
23297
23298 int (*ptr)() = (int (*)())ctanh;
23299
23300 int
23301 main ()
23302 {
23303 return 0;
23304 }
23305
23306 _ACEOF
23307 if ac_fn_c_try_link "$LINENO"; then :
23308 gcc_cv_math_func_ctanh=yes
23309 else
23310 gcc_cv_math_func_ctanh=no
23311 fi
23312 rm -f core conftest.err conftest.$ac_objext \
23313 conftest$ac_exeext conftest.$ac_ext
23314 fi
23315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanh" >&5
23316 $as_echo "$gcc_cv_math_func_ctanh" >&6; }
23317 if test $gcc_cv_math_func_ctanh = yes; then
23318
23319 cat >>confdefs.h <<_ACEOF
23320 #define HAVE_CTANH 1
23321 _ACEOF
23322
23323 fi
23324
23325
23326
23327
23328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhl" >&5
23329 $as_echo_n "checking for ctanhl... " >&6; }
23330 if ${gcc_cv_math_func_ctanhl+:} false; then :
23331 $as_echo_n "(cached) " >&6
23332 else
23333 if test x$gcc_no_link = xyes; then
23334 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23335 fi
23336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23337 /* end confdefs.h. */
23338
23339 #ifdef HAVE_COMPLEX_H
23340 #include <complex.h>
23341 #endif
23342 #ifdef HAVE_MATH_H
23343 #include <math.h>
23344 #endif
23345
23346 int (*ptr)() = (int (*)())ctanhl;
23347
23348 int
23349 main ()
23350 {
23351 return 0;
23352 }
23353
23354 _ACEOF
23355 if ac_fn_c_try_link "$LINENO"; then :
23356 gcc_cv_math_func_ctanhl=yes
23357 else
23358 gcc_cv_math_func_ctanhl=no
23359 fi
23360 rm -f core conftest.err conftest.$ac_objext \
23361 conftest$ac_exeext conftest.$ac_ext
23362 fi
23363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhl" >&5
23364 $as_echo "$gcc_cv_math_func_ctanhl" >&6; }
23365 if test $gcc_cv_math_func_ctanhl = yes; then
23366
23367 cat >>confdefs.h <<_ACEOF
23368 #define HAVE_CTANHL 1
23369 _ACEOF
23370
23371 fi
23372
23373
23374
23375
23376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncf" >&5
23377 $as_echo_n "checking for truncf... " >&6; }
23378 if ${gcc_cv_math_func_truncf+:} false; then :
23379 $as_echo_n "(cached) " >&6
23380 else
23381 if test x$gcc_no_link = xyes; then
23382 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23383 fi
23384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23385 /* end confdefs.h. */
23386
23387 #ifdef HAVE_COMPLEX_H
23388 #include <complex.h>
23389 #endif
23390 #ifdef HAVE_MATH_H
23391 #include <math.h>
23392 #endif
23393
23394 int (*ptr)() = (int (*)())truncf;
23395
23396 int
23397 main ()
23398 {
23399 return 0;
23400 }
23401
23402 _ACEOF
23403 if ac_fn_c_try_link "$LINENO"; then :
23404 gcc_cv_math_func_truncf=yes
23405 else
23406 gcc_cv_math_func_truncf=no
23407 fi
23408 rm -f core conftest.err conftest.$ac_objext \
23409 conftest$ac_exeext conftest.$ac_ext
23410 fi
23411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncf" >&5
23412 $as_echo "$gcc_cv_math_func_truncf" >&6; }
23413 if test $gcc_cv_math_func_truncf = yes; then
23414
23415 cat >>confdefs.h <<_ACEOF
23416 #define HAVE_TRUNCF 1
23417 _ACEOF
23418
23419 fi
23420
23421
23422
23423
23424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for trunc" >&5
23425 $as_echo_n "checking for trunc... " >&6; }
23426 if ${gcc_cv_math_func_trunc+:} false; then :
23427 $as_echo_n "(cached) " >&6
23428 else
23429 if test x$gcc_no_link = xyes; then
23430 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23431 fi
23432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23433 /* end confdefs.h. */
23434
23435 #ifdef HAVE_COMPLEX_H
23436 #include <complex.h>
23437 #endif
23438 #ifdef HAVE_MATH_H
23439 #include <math.h>
23440 #endif
23441
23442 int (*ptr)() = (int (*)())trunc;
23443
23444 int
23445 main ()
23446 {
23447 return 0;
23448 }
23449
23450 _ACEOF
23451 if ac_fn_c_try_link "$LINENO"; then :
23452 gcc_cv_math_func_trunc=yes
23453 else
23454 gcc_cv_math_func_trunc=no
23455 fi
23456 rm -f core conftest.err conftest.$ac_objext \
23457 conftest$ac_exeext conftest.$ac_ext
23458 fi
23459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_trunc" >&5
23460 $as_echo "$gcc_cv_math_func_trunc" >&6; }
23461 if test $gcc_cv_math_func_trunc = yes; then
23462
23463 cat >>confdefs.h <<_ACEOF
23464 #define HAVE_TRUNC 1
23465 _ACEOF
23466
23467 fi
23468
23469
23470
23471
23472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncl" >&5
23473 $as_echo_n "checking for truncl... " >&6; }
23474 if ${gcc_cv_math_func_truncl+:} false; then :
23475 $as_echo_n "(cached) " >&6
23476 else
23477 if test x$gcc_no_link = xyes; then
23478 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23479 fi
23480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23481 /* end confdefs.h. */
23482
23483 #ifdef HAVE_COMPLEX_H
23484 #include <complex.h>
23485 #endif
23486 #ifdef HAVE_MATH_H
23487 #include <math.h>
23488 #endif
23489
23490 int (*ptr)() = (int (*)())truncl;
23491
23492 int
23493 main ()
23494 {
23495 return 0;
23496 }
23497
23498 _ACEOF
23499 if ac_fn_c_try_link "$LINENO"; then :
23500 gcc_cv_math_func_truncl=yes
23501 else
23502 gcc_cv_math_func_truncl=no
23503 fi
23504 rm -f core conftest.err conftest.$ac_objext \
23505 conftest$ac_exeext conftest.$ac_ext
23506 fi
23507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncl" >&5
23508 $as_echo "$gcc_cv_math_func_truncl" >&6; }
23509 if test $gcc_cv_math_func_truncl = yes; then
23510
23511 cat >>confdefs.h <<_ACEOF
23512 #define HAVE_TRUNCL 1
23513 _ACEOF
23514
23515 fi
23516
23517
23518
23519
23520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erff" >&5
23521 $as_echo_n "checking for erff... " >&6; }
23522 if ${gcc_cv_math_func_erff+:} false; then :
23523 $as_echo_n "(cached) " >&6
23524 else
23525 if test x$gcc_no_link = xyes; then
23526 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23527 fi
23528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23529 /* end confdefs.h. */
23530
23531 #ifdef HAVE_COMPLEX_H
23532 #include <complex.h>
23533 #endif
23534 #ifdef HAVE_MATH_H
23535 #include <math.h>
23536 #endif
23537
23538 int (*ptr)() = (int (*)())erff;
23539
23540 int
23541 main ()
23542 {
23543 return 0;
23544 }
23545
23546 _ACEOF
23547 if ac_fn_c_try_link "$LINENO"; then :
23548 gcc_cv_math_func_erff=yes
23549 else
23550 gcc_cv_math_func_erff=no
23551 fi
23552 rm -f core conftest.err conftest.$ac_objext \
23553 conftest$ac_exeext conftest.$ac_ext
23554 fi
23555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erff" >&5
23556 $as_echo "$gcc_cv_math_func_erff" >&6; }
23557 if test $gcc_cv_math_func_erff = yes; then
23558
23559 cat >>confdefs.h <<_ACEOF
23560 #define HAVE_ERFF 1
23561 _ACEOF
23562
23563 fi
23564
23565
23566
23567
23568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erf" >&5
23569 $as_echo_n "checking for erf... " >&6; }
23570 if ${gcc_cv_math_func_erf+:} false; then :
23571 $as_echo_n "(cached) " >&6
23572 else
23573 if test x$gcc_no_link = xyes; then
23574 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23575 fi
23576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23577 /* end confdefs.h. */
23578
23579 #ifdef HAVE_COMPLEX_H
23580 #include <complex.h>
23581 #endif
23582 #ifdef HAVE_MATH_H
23583 #include <math.h>
23584 #endif
23585
23586 int (*ptr)() = (int (*)())erf;
23587
23588 int
23589 main ()
23590 {
23591 return 0;
23592 }
23593
23594 _ACEOF
23595 if ac_fn_c_try_link "$LINENO"; then :
23596 gcc_cv_math_func_erf=yes
23597 else
23598 gcc_cv_math_func_erf=no
23599 fi
23600 rm -f core conftest.err conftest.$ac_objext \
23601 conftest$ac_exeext conftest.$ac_ext
23602 fi
23603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erf" >&5
23604 $as_echo "$gcc_cv_math_func_erf" >&6; }
23605 if test $gcc_cv_math_func_erf = yes; then
23606
23607 cat >>confdefs.h <<_ACEOF
23608 #define HAVE_ERF 1
23609 _ACEOF
23610
23611 fi
23612
23613
23614
23615
23616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcf" >&5
23617 $as_echo_n "checking for erfcf... " >&6; }
23618 if ${gcc_cv_math_func_erfcf+:} false; then :
23619 $as_echo_n "(cached) " >&6
23620 else
23621 if test x$gcc_no_link = xyes; then
23622 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23623 fi
23624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23625 /* end confdefs.h. */
23626
23627 #ifdef HAVE_COMPLEX_H
23628 #include <complex.h>
23629 #endif
23630 #ifdef HAVE_MATH_H
23631 #include <math.h>
23632 #endif
23633
23634 int (*ptr)() = (int (*)())erfcf;
23635
23636 int
23637 main ()
23638 {
23639 return 0;
23640 }
23641
23642 _ACEOF
23643 if ac_fn_c_try_link "$LINENO"; then :
23644 gcc_cv_math_func_erfcf=yes
23645 else
23646 gcc_cv_math_func_erfcf=no
23647 fi
23648 rm -f core conftest.err conftest.$ac_objext \
23649 conftest$ac_exeext conftest.$ac_ext
23650 fi
23651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcf" >&5
23652 $as_echo "$gcc_cv_math_func_erfcf" >&6; }
23653 if test $gcc_cv_math_func_erfcf = yes; then
23654
23655 cat >>confdefs.h <<_ACEOF
23656 #define HAVE_ERFCF 1
23657 _ACEOF
23658
23659 fi
23660
23661
23662
23663
23664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfc" >&5
23665 $as_echo_n "checking for erfc... " >&6; }
23666 if ${gcc_cv_math_func_erfc+:} false; then :
23667 $as_echo_n "(cached) " >&6
23668 else
23669 if test x$gcc_no_link = xyes; then
23670 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23671 fi
23672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23673 /* end confdefs.h. */
23674
23675 #ifdef HAVE_COMPLEX_H
23676 #include <complex.h>
23677 #endif
23678 #ifdef HAVE_MATH_H
23679 #include <math.h>
23680 #endif
23681
23682 int (*ptr)() = (int (*)())erfc;
23683
23684 int
23685 main ()
23686 {
23687 return 0;
23688 }
23689
23690 _ACEOF
23691 if ac_fn_c_try_link "$LINENO"; then :
23692 gcc_cv_math_func_erfc=yes
23693 else
23694 gcc_cv_math_func_erfc=no
23695 fi
23696 rm -f core conftest.err conftest.$ac_objext \
23697 conftest$ac_exeext conftest.$ac_ext
23698 fi
23699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfc" >&5
23700 $as_echo "$gcc_cv_math_func_erfc" >&6; }
23701 if test $gcc_cv_math_func_erfc = yes; then
23702
23703 cat >>confdefs.h <<_ACEOF
23704 #define HAVE_ERFC 1
23705 _ACEOF
23706
23707 fi
23708
23709
23710
23711
23712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcl" >&5
23713 $as_echo_n "checking for erfcl... " >&6; }
23714 if ${gcc_cv_math_func_erfcl+:} false; then :
23715 $as_echo_n "(cached) " >&6
23716 else
23717 if test x$gcc_no_link = xyes; then
23718 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23719 fi
23720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23721 /* end confdefs.h. */
23722
23723 #ifdef HAVE_COMPLEX_H
23724 #include <complex.h>
23725 #endif
23726 #ifdef HAVE_MATH_H
23727 #include <math.h>
23728 #endif
23729
23730 int (*ptr)() = (int (*)())erfcl;
23731
23732 int
23733 main ()
23734 {
23735 return 0;
23736 }
23737
23738 _ACEOF
23739 if ac_fn_c_try_link "$LINENO"; then :
23740 gcc_cv_math_func_erfcl=yes
23741 else
23742 gcc_cv_math_func_erfcl=no
23743 fi
23744 rm -f core conftest.err conftest.$ac_objext \
23745 conftest$ac_exeext conftest.$ac_ext
23746 fi
23747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcl" >&5
23748 $as_echo "$gcc_cv_math_func_erfcl" >&6; }
23749 if test $gcc_cv_math_func_erfcl = yes; then
23750
23751 cat >>confdefs.h <<_ACEOF
23752 #define HAVE_ERFCL 1
23753 _ACEOF
23754
23755 fi
23756
23757
23758
23759
23760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0f" >&5
23761 $as_echo_n "checking for j0f... " >&6; }
23762 if ${gcc_cv_math_func_j0f+:} false; then :
23763 $as_echo_n "(cached) " >&6
23764 else
23765 if test x$gcc_no_link = xyes; then
23766 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23767 fi
23768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23769 /* end confdefs.h. */
23770
23771 #ifdef HAVE_COMPLEX_H
23772 #include <complex.h>
23773 #endif
23774 #ifdef HAVE_MATH_H
23775 #include <math.h>
23776 #endif
23777
23778 int (*ptr)() = (int (*)())j0f;
23779
23780 int
23781 main ()
23782 {
23783 return 0;
23784 }
23785
23786 _ACEOF
23787 if ac_fn_c_try_link "$LINENO"; then :
23788 gcc_cv_math_func_j0f=yes
23789 else
23790 gcc_cv_math_func_j0f=no
23791 fi
23792 rm -f core conftest.err conftest.$ac_objext \
23793 conftest$ac_exeext conftest.$ac_ext
23794 fi
23795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0f" >&5
23796 $as_echo "$gcc_cv_math_func_j0f" >&6; }
23797 if test $gcc_cv_math_func_j0f = yes; then
23798
23799 cat >>confdefs.h <<_ACEOF
23800 #define HAVE_J0F 1
23801 _ACEOF
23802
23803 fi
23804
23805
23806
23807
23808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0" >&5
23809 $as_echo_n "checking for j0... " >&6; }
23810 if ${gcc_cv_math_func_j0+:} false; then :
23811 $as_echo_n "(cached) " >&6
23812 else
23813 if test x$gcc_no_link = xyes; then
23814 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23815 fi
23816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23817 /* end confdefs.h. */
23818
23819 #ifdef HAVE_COMPLEX_H
23820 #include <complex.h>
23821 #endif
23822 #ifdef HAVE_MATH_H
23823 #include <math.h>
23824 #endif
23825
23826 int (*ptr)() = (int (*)())j0;
23827
23828 int
23829 main ()
23830 {
23831 return 0;
23832 }
23833
23834 _ACEOF
23835 if ac_fn_c_try_link "$LINENO"; then :
23836 gcc_cv_math_func_j0=yes
23837 else
23838 gcc_cv_math_func_j0=no
23839 fi
23840 rm -f core conftest.err conftest.$ac_objext \
23841 conftest$ac_exeext conftest.$ac_ext
23842 fi
23843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0" >&5
23844 $as_echo "$gcc_cv_math_func_j0" >&6; }
23845 if test $gcc_cv_math_func_j0 = yes; then
23846
23847 cat >>confdefs.h <<_ACEOF
23848 #define HAVE_J0 1
23849 _ACEOF
23850
23851 fi
23852
23853
23854
23855
23856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1f" >&5
23857 $as_echo_n "checking for j1f... " >&6; }
23858 if ${gcc_cv_math_func_j1f+:} false; then :
23859 $as_echo_n "(cached) " >&6
23860 else
23861 if test x$gcc_no_link = xyes; then
23862 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23863 fi
23864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23865 /* end confdefs.h. */
23866
23867 #ifdef HAVE_COMPLEX_H
23868 #include <complex.h>
23869 #endif
23870 #ifdef HAVE_MATH_H
23871 #include <math.h>
23872 #endif
23873
23874 int (*ptr)() = (int (*)())j1f;
23875
23876 int
23877 main ()
23878 {
23879 return 0;
23880 }
23881
23882 _ACEOF
23883 if ac_fn_c_try_link "$LINENO"; then :
23884 gcc_cv_math_func_j1f=yes
23885 else
23886 gcc_cv_math_func_j1f=no
23887 fi
23888 rm -f core conftest.err conftest.$ac_objext \
23889 conftest$ac_exeext conftest.$ac_ext
23890 fi
23891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1f" >&5
23892 $as_echo "$gcc_cv_math_func_j1f" >&6; }
23893 if test $gcc_cv_math_func_j1f = yes; then
23894
23895 cat >>confdefs.h <<_ACEOF
23896 #define HAVE_J1F 1
23897 _ACEOF
23898
23899 fi
23900
23901
23902
23903
23904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1" >&5
23905 $as_echo_n "checking for j1... " >&6; }
23906 if ${gcc_cv_math_func_j1+:} false; then :
23907 $as_echo_n "(cached) " >&6
23908 else
23909 if test x$gcc_no_link = xyes; then
23910 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23911 fi
23912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23913 /* end confdefs.h. */
23914
23915 #ifdef HAVE_COMPLEX_H
23916 #include <complex.h>
23917 #endif
23918 #ifdef HAVE_MATH_H
23919 #include <math.h>
23920 #endif
23921
23922 int (*ptr)() = (int (*)())j1;
23923
23924 int
23925 main ()
23926 {
23927 return 0;
23928 }
23929
23930 _ACEOF
23931 if ac_fn_c_try_link "$LINENO"; then :
23932 gcc_cv_math_func_j1=yes
23933 else
23934 gcc_cv_math_func_j1=no
23935 fi
23936 rm -f core conftest.err conftest.$ac_objext \
23937 conftest$ac_exeext conftest.$ac_ext
23938 fi
23939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1" >&5
23940 $as_echo "$gcc_cv_math_func_j1" >&6; }
23941 if test $gcc_cv_math_func_j1 = yes; then
23942
23943 cat >>confdefs.h <<_ACEOF
23944 #define HAVE_J1 1
23945 _ACEOF
23946
23947 fi
23948
23949
23950
23951
23952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnf" >&5
23953 $as_echo_n "checking for jnf... " >&6; }
23954 if ${gcc_cv_math_func_jnf+:} false; then :
23955 $as_echo_n "(cached) " >&6
23956 else
23957 if test x$gcc_no_link = xyes; then
23958 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23959 fi
23960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23961 /* end confdefs.h. */
23962
23963 #ifdef HAVE_COMPLEX_H
23964 #include <complex.h>
23965 #endif
23966 #ifdef HAVE_MATH_H
23967 #include <math.h>
23968 #endif
23969
23970 int (*ptr)() = (int (*)())jnf;
23971
23972 int
23973 main ()
23974 {
23975 return 0;
23976 }
23977
23978 _ACEOF
23979 if ac_fn_c_try_link "$LINENO"; then :
23980 gcc_cv_math_func_jnf=yes
23981 else
23982 gcc_cv_math_func_jnf=no
23983 fi
23984 rm -f core conftest.err conftest.$ac_objext \
23985 conftest$ac_exeext conftest.$ac_ext
23986 fi
23987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnf" >&5
23988 $as_echo "$gcc_cv_math_func_jnf" >&6; }
23989 if test $gcc_cv_math_func_jnf = yes; then
23990
23991 cat >>confdefs.h <<_ACEOF
23992 #define HAVE_JNF 1
23993 _ACEOF
23994
23995 fi
23996
23997
23998
23999
24000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jn" >&5
24001 $as_echo_n "checking for jn... " >&6; }
24002 if ${gcc_cv_math_func_jn+:} false; then :
24003 $as_echo_n "(cached) " >&6
24004 else
24005 if test x$gcc_no_link = xyes; then
24006 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24007 fi
24008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24009 /* end confdefs.h. */
24010
24011 #ifdef HAVE_COMPLEX_H
24012 #include <complex.h>
24013 #endif
24014 #ifdef HAVE_MATH_H
24015 #include <math.h>
24016 #endif
24017
24018 int (*ptr)() = (int (*)())jn;
24019
24020 int
24021 main ()
24022 {
24023 return 0;
24024 }
24025
24026 _ACEOF
24027 if ac_fn_c_try_link "$LINENO"; then :
24028 gcc_cv_math_func_jn=yes
24029 else
24030 gcc_cv_math_func_jn=no
24031 fi
24032 rm -f core conftest.err conftest.$ac_objext \
24033 conftest$ac_exeext conftest.$ac_ext
24034 fi
24035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jn" >&5
24036 $as_echo "$gcc_cv_math_func_jn" >&6; }
24037 if test $gcc_cv_math_func_jn = yes; then
24038
24039 cat >>confdefs.h <<_ACEOF
24040 #define HAVE_JN 1
24041 _ACEOF
24042
24043 fi
24044
24045
24046
24047
24048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnl" >&5
24049 $as_echo_n "checking for jnl... " >&6; }
24050 if ${gcc_cv_math_func_jnl+:} false; then :
24051 $as_echo_n "(cached) " >&6
24052 else
24053 if test x$gcc_no_link = xyes; then
24054 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24055 fi
24056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24057 /* end confdefs.h. */
24058
24059 #ifdef HAVE_COMPLEX_H
24060 #include <complex.h>
24061 #endif
24062 #ifdef HAVE_MATH_H
24063 #include <math.h>
24064 #endif
24065
24066 int (*ptr)() = (int (*)())jnl;
24067
24068 int
24069 main ()
24070 {
24071 return 0;
24072 }
24073
24074 _ACEOF
24075 if ac_fn_c_try_link "$LINENO"; then :
24076 gcc_cv_math_func_jnl=yes
24077 else
24078 gcc_cv_math_func_jnl=no
24079 fi
24080 rm -f core conftest.err conftest.$ac_objext \
24081 conftest$ac_exeext conftest.$ac_ext
24082 fi
24083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnl" >&5
24084 $as_echo "$gcc_cv_math_func_jnl" >&6; }
24085 if test $gcc_cv_math_func_jnl = yes; then
24086
24087 cat >>confdefs.h <<_ACEOF
24088 #define HAVE_JNL 1
24089 _ACEOF
24090
24091 fi
24092
24093
24094
24095
24096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0f" >&5
24097 $as_echo_n "checking for y0f... " >&6; }
24098 if ${gcc_cv_math_func_y0f+:} false; then :
24099 $as_echo_n "(cached) " >&6
24100 else
24101 if test x$gcc_no_link = xyes; then
24102 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24103 fi
24104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24105 /* end confdefs.h. */
24106
24107 #ifdef HAVE_COMPLEX_H
24108 #include <complex.h>
24109 #endif
24110 #ifdef HAVE_MATH_H
24111 #include <math.h>
24112 #endif
24113
24114 int (*ptr)() = (int (*)())y0f;
24115
24116 int
24117 main ()
24118 {
24119 return 0;
24120 }
24121
24122 _ACEOF
24123 if ac_fn_c_try_link "$LINENO"; then :
24124 gcc_cv_math_func_y0f=yes
24125 else
24126 gcc_cv_math_func_y0f=no
24127 fi
24128 rm -f core conftest.err conftest.$ac_objext \
24129 conftest$ac_exeext conftest.$ac_ext
24130 fi
24131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0f" >&5
24132 $as_echo "$gcc_cv_math_func_y0f" >&6; }
24133 if test $gcc_cv_math_func_y0f = yes; then
24134
24135 cat >>confdefs.h <<_ACEOF
24136 #define HAVE_Y0F 1
24137 _ACEOF
24138
24139 fi
24140
24141
24142
24143
24144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0" >&5
24145 $as_echo_n "checking for y0... " >&6; }
24146 if ${gcc_cv_math_func_y0+:} false; then :
24147 $as_echo_n "(cached) " >&6
24148 else
24149 if test x$gcc_no_link = xyes; then
24150 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24151 fi
24152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24153 /* end confdefs.h. */
24154
24155 #ifdef HAVE_COMPLEX_H
24156 #include <complex.h>
24157 #endif
24158 #ifdef HAVE_MATH_H
24159 #include <math.h>
24160 #endif
24161
24162 int (*ptr)() = (int (*)())y0;
24163
24164 int
24165 main ()
24166 {
24167 return 0;
24168 }
24169
24170 _ACEOF
24171 if ac_fn_c_try_link "$LINENO"; then :
24172 gcc_cv_math_func_y0=yes
24173 else
24174 gcc_cv_math_func_y0=no
24175 fi
24176 rm -f core conftest.err conftest.$ac_objext \
24177 conftest$ac_exeext conftest.$ac_ext
24178 fi
24179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0" >&5
24180 $as_echo "$gcc_cv_math_func_y0" >&6; }
24181 if test $gcc_cv_math_func_y0 = yes; then
24182
24183 cat >>confdefs.h <<_ACEOF
24184 #define HAVE_Y0 1
24185 _ACEOF
24186
24187 fi
24188
24189
24190
24191
24192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1f" >&5
24193 $as_echo_n "checking for y1f... " >&6; }
24194 if ${gcc_cv_math_func_y1f+:} false; then :
24195 $as_echo_n "(cached) " >&6
24196 else
24197 if test x$gcc_no_link = xyes; then
24198 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24199 fi
24200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24201 /* end confdefs.h. */
24202
24203 #ifdef HAVE_COMPLEX_H
24204 #include <complex.h>
24205 #endif
24206 #ifdef HAVE_MATH_H
24207 #include <math.h>
24208 #endif
24209
24210 int (*ptr)() = (int (*)())y1f;
24211
24212 int
24213 main ()
24214 {
24215 return 0;
24216 }
24217
24218 _ACEOF
24219 if ac_fn_c_try_link "$LINENO"; then :
24220 gcc_cv_math_func_y1f=yes
24221 else
24222 gcc_cv_math_func_y1f=no
24223 fi
24224 rm -f core conftest.err conftest.$ac_objext \
24225 conftest$ac_exeext conftest.$ac_ext
24226 fi
24227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1f" >&5
24228 $as_echo "$gcc_cv_math_func_y1f" >&6; }
24229 if test $gcc_cv_math_func_y1f = yes; then
24230
24231 cat >>confdefs.h <<_ACEOF
24232 #define HAVE_Y1F 1
24233 _ACEOF
24234
24235 fi
24236
24237
24238
24239
24240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1" >&5
24241 $as_echo_n "checking for y1... " >&6; }
24242 if ${gcc_cv_math_func_y1+:} false; then :
24243 $as_echo_n "(cached) " >&6
24244 else
24245 if test x$gcc_no_link = xyes; then
24246 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24247 fi
24248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24249 /* end confdefs.h. */
24250
24251 #ifdef HAVE_COMPLEX_H
24252 #include <complex.h>
24253 #endif
24254 #ifdef HAVE_MATH_H
24255 #include <math.h>
24256 #endif
24257
24258 int (*ptr)() = (int (*)())y1;
24259
24260 int
24261 main ()
24262 {
24263 return 0;
24264 }
24265
24266 _ACEOF
24267 if ac_fn_c_try_link "$LINENO"; then :
24268 gcc_cv_math_func_y1=yes
24269 else
24270 gcc_cv_math_func_y1=no
24271 fi
24272 rm -f core conftest.err conftest.$ac_objext \
24273 conftest$ac_exeext conftest.$ac_ext
24274 fi
24275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1" >&5
24276 $as_echo "$gcc_cv_math_func_y1" >&6; }
24277 if test $gcc_cv_math_func_y1 = yes; then
24278
24279 cat >>confdefs.h <<_ACEOF
24280 #define HAVE_Y1 1
24281 _ACEOF
24282
24283 fi
24284
24285
24286
24287
24288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynf" >&5
24289 $as_echo_n "checking for ynf... " >&6; }
24290 if ${gcc_cv_math_func_ynf+:} false; then :
24291 $as_echo_n "(cached) " >&6
24292 else
24293 if test x$gcc_no_link = xyes; then
24294 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24295 fi
24296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24297 /* end confdefs.h. */
24298
24299 #ifdef HAVE_COMPLEX_H
24300 #include <complex.h>
24301 #endif
24302 #ifdef HAVE_MATH_H
24303 #include <math.h>
24304 #endif
24305
24306 int (*ptr)() = (int (*)())ynf;
24307
24308 int
24309 main ()
24310 {
24311 return 0;
24312 }
24313
24314 _ACEOF
24315 if ac_fn_c_try_link "$LINENO"; then :
24316 gcc_cv_math_func_ynf=yes
24317 else
24318 gcc_cv_math_func_ynf=no
24319 fi
24320 rm -f core conftest.err conftest.$ac_objext \
24321 conftest$ac_exeext conftest.$ac_ext
24322 fi
24323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynf" >&5
24324 $as_echo "$gcc_cv_math_func_ynf" >&6; }
24325 if test $gcc_cv_math_func_ynf = yes; then
24326
24327 cat >>confdefs.h <<_ACEOF
24328 #define HAVE_YNF 1
24329 _ACEOF
24330
24331 fi
24332
24333
24334
24335
24336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yn" >&5
24337 $as_echo_n "checking for yn... " >&6; }
24338 if ${gcc_cv_math_func_yn+:} false; then :
24339 $as_echo_n "(cached) " >&6
24340 else
24341 if test x$gcc_no_link = xyes; then
24342 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24343 fi
24344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24345 /* end confdefs.h. */
24346
24347 #ifdef HAVE_COMPLEX_H
24348 #include <complex.h>
24349 #endif
24350 #ifdef HAVE_MATH_H
24351 #include <math.h>
24352 #endif
24353
24354 int (*ptr)() = (int (*)())yn;
24355
24356 int
24357 main ()
24358 {
24359 return 0;
24360 }
24361
24362 _ACEOF
24363 if ac_fn_c_try_link "$LINENO"; then :
24364 gcc_cv_math_func_yn=yes
24365 else
24366 gcc_cv_math_func_yn=no
24367 fi
24368 rm -f core conftest.err conftest.$ac_objext \
24369 conftest$ac_exeext conftest.$ac_ext
24370 fi
24371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_yn" >&5
24372 $as_echo "$gcc_cv_math_func_yn" >&6; }
24373 if test $gcc_cv_math_func_yn = yes; then
24374
24375 cat >>confdefs.h <<_ACEOF
24376 #define HAVE_YN 1
24377 _ACEOF
24378
24379 fi
24380
24381
24382
24383
24384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynl" >&5
24385 $as_echo_n "checking for ynl... " >&6; }
24386 if ${gcc_cv_math_func_ynl+:} false; then :
24387 $as_echo_n "(cached) " >&6
24388 else
24389 if test x$gcc_no_link = xyes; then
24390 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24391 fi
24392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24393 /* end confdefs.h. */
24394
24395 #ifdef HAVE_COMPLEX_H
24396 #include <complex.h>
24397 #endif
24398 #ifdef HAVE_MATH_H
24399 #include <math.h>
24400 #endif
24401
24402 int (*ptr)() = (int (*)())ynl;
24403
24404 int
24405 main ()
24406 {
24407 return 0;
24408 }
24409
24410 _ACEOF
24411 if ac_fn_c_try_link "$LINENO"; then :
24412 gcc_cv_math_func_ynl=yes
24413 else
24414 gcc_cv_math_func_ynl=no
24415 fi
24416 rm -f core conftest.err conftest.$ac_objext \
24417 conftest$ac_exeext conftest.$ac_ext
24418 fi
24419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynl" >&5
24420 $as_echo "$gcc_cv_math_func_ynl" >&6; }
24421 if test $gcc_cv_math_func_ynl = yes; then
24422
24423 cat >>confdefs.h <<_ACEOF
24424 #define HAVE_YNL 1
24425 _ACEOF
24426
24427 fi
24428
24429
24430
24431
24432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgamma" >&5
24433 $as_echo_n "checking for tgamma... " >&6; }
24434 if ${gcc_cv_math_func_tgamma+:} false; then :
24435 $as_echo_n "(cached) " >&6
24436 else
24437 if test x$gcc_no_link = xyes; then
24438 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24439 fi
24440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24441 /* end confdefs.h. */
24442
24443 #ifdef HAVE_COMPLEX_H
24444 #include <complex.h>
24445 #endif
24446 #ifdef HAVE_MATH_H
24447 #include <math.h>
24448 #endif
24449
24450 int (*ptr)() = (int (*)())tgamma;
24451
24452 int
24453 main ()
24454 {
24455 return 0;
24456 }
24457
24458 _ACEOF
24459 if ac_fn_c_try_link "$LINENO"; then :
24460 gcc_cv_math_func_tgamma=yes
24461 else
24462 gcc_cv_math_func_tgamma=no
24463 fi
24464 rm -f core conftest.err conftest.$ac_objext \
24465 conftest$ac_exeext conftest.$ac_ext
24466 fi
24467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgamma" >&5
24468 $as_echo "$gcc_cv_math_func_tgamma" >&6; }
24469 if test $gcc_cv_math_func_tgamma = yes; then
24470
24471 cat >>confdefs.h <<_ACEOF
24472 #define HAVE_TGAMMA 1
24473 _ACEOF
24474
24475 fi
24476
24477
24478
24479
24480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammaf" >&5
24481 $as_echo_n "checking for tgammaf... " >&6; }
24482 if ${gcc_cv_math_func_tgammaf+:} false; then :
24483 $as_echo_n "(cached) " >&6
24484 else
24485 if test x$gcc_no_link = xyes; then
24486 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24487 fi
24488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24489 /* end confdefs.h. */
24490
24491 #ifdef HAVE_COMPLEX_H
24492 #include <complex.h>
24493 #endif
24494 #ifdef HAVE_MATH_H
24495 #include <math.h>
24496 #endif
24497
24498 int (*ptr)() = (int (*)())tgammaf;
24499
24500 int
24501 main ()
24502 {
24503 return 0;
24504 }
24505
24506 _ACEOF
24507 if ac_fn_c_try_link "$LINENO"; then :
24508 gcc_cv_math_func_tgammaf=yes
24509 else
24510 gcc_cv_math_func_tgammaf=no
24511 fi
24512 rm -f core conftest.err conftest.$ac_objext \
24513 conftest$ac_exeext conftest.$ac_ext
24514 fi
24515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammaf" >&5
24516 $as_echo "$gcc_cv_math_func_tgammaf" >&6; }
24517 if test $gcc_cv_math_func_tgammaf = yes; then
24518
24519 cat >>confdefs.h <<_ACEOF
24520 #define HAVE_TGAMMAF 1
24521 _ACEOF
24522
24523 fi
24524
24525
24526
24527
24528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgamma" >&5
24529 $as_echo_n "checking for lgamma... " >&6; }
24530 if ${gcc_cv_math_func_lgamma+:} false; then :
24531 $as_echo_n "(cached) " >&6
24532 else
24533 if test x$gcc_no_link = xyes; then
24534 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24535 fi
24536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24537 /* end confdefs.h. */
24538
24539 #ifdef HAVE_COMPLEX_H
24540 #include <complex.h>
24541 #endif
24542 #ifdef HAVE_MATH_H
24543 #include <math.h>
24544 #endif
24545
24546 int (*ptr)() = (int (*)())lgamma;
24547
24548 int
24549 main ()
24550 {
24551 return 0;
24552 }
24553
24554 _ACEOF
24555 if ac_fn_c_try_link "$LINENO"; then :
24556 gcc_cv_math_func_lgamma=yes
24557 else
24558 gcc_cv_math_func_lgamma=no
24559 fi
24560 rm -f core conftest.err conftest.$ac_objext \
24561 conftest$ac_exeext conftest.$ac_ext
24562 fi
24563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgamma" >&5
24564 $as_echo "$gcc_cv_math_func_lgamma" >&6; }
24565 if test $gcc_cv_math_func_lgamma = yes; then
24566
24567 cat >>confdefs.h <<_ACEOF
24568 #define HAVE_LGAMMA 1
24569 _ACEOF
24570
24571 fi
24572
24573
24574
24575
24576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammaf" >&5
24577 $as_echo_n "checking for lgammaf... " >&6; }
24578 if ${gcc_cv_math_func_lgammaf+:} false; then :
24579 $as_echo_n "(cached) " >&6
24580 else
24581 if test x$gcc_no_link = xyes; then
24582 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24583 fi
24584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24585 /* end confdefs.h. */
24586
24587 #ifdef HAVE_COMPLEX_H
24588 #include <complex.h>
24589 #endif
24590 #ifdef HAVE_MATH_H
24591 #include <math.h>
24592 #endif
24593
24594 int (*ptr)() = (int (*)())lgammaf;
24595
24596 int
24597 main ()
24598 {
24599 return 0;
24600 }
24601
24602 _ACEOF
24603 if ac_fn_c_try_link "$LINENO"; then :
24604 gcc_cv_math_func_lgammaf=yes
24605 else
24606 gcc_cv_math_func_lgammaf=no
24607 fi
24608 rm -f core conftest.err conftest.$ac_objext \
24609 conftest$ac_exeext conftest.$ac_ext
24610 fi
24611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammaf" >&5
24612 $as_echo "$gcc_cv_math_func_lgammaf" >&6; }
24613 if test $gcc_cv_math_func_lgammaf = yes; then
24614
24615 cat >>confdefs.h <<_ACEOF
24616 #define HAVE_LGAMMAF 1
24617 _ACEOF
24618
24619 fi
24620
24621
24622 # Check for GFORTRAN_C99_1.1 funcs
24623
24624
24625
24626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacos" >&5
24627 $as_echo_n "checking for cacos... " >&6; }
24628 if ${gcc_cv_math_func_cacos+:} false; then :
24629 $as_echo_n "(cached) " >&6
24630 else
24631 if test x$gcc_no_link = xyes; then
24632 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24633 fi
24634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24635 /* end confdefs.h. */
24636
24637 #ifdef HAVE_COMPLEX_H
24638 #include <complex.h>
24639 #endif
24640 #ifdef HAVE_MATH_H
24641 #include <math.h>
24642 #endif
24643
24644 int (*ptr)() = (int (*)())cacos;
24645
24646 int
24647 main ()
24648 {
24649 return 0;
24650 }
24651
24652 _ACEOF
24653 if ac_fn_c_try_link "$LINENO"; then :
24654 gcc_cv_math_func_cacos=yes
24655 else
24656 gcc_cv_math_func_cacos=no
24657 fi
24658 rm -f core conftest.err conftest.$ac_objext \
24659 conftest$ac_exeext conftest.$ac_ext
24660 fi
24661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacos" >&5
24662 $as_echo "$gcc_cv_math_func_cacos" >&6; }
24663 if test $gcc_cv_math_func_cacos = yes; then
24664
24665 cat >>confdefs.h <<_ACEOF
24666 #define HAVE_CACOS 1
24667 _ACEOF
24668
24669 fi
24670
24671
24672
24673
24674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosf" >&5
24675 $as_echo_n "checking for cacosf... " >&6; }
24676 if ${gcc_cv_math_func_cacosf+:} false; then :
24677 $as_echo_n "(cached) " >&6
24678 else
24679 if test x$gcc_no_link = xyes; then
24680 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24681 fi
24682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24683 /* end confdefs.h. */
24684
24685 #ifdef HAVE_COMPLEX_H
24686 #include <complex.h>
24687 #endif
24688 #ifdef HAVE_MATH_H
24689 #include <math.h>
24690 #endif
24691
24692 int (*ptr)() = (int (*)())cacosf;
24693
24694 int
24695 main ()
24696 {
24697 return 0;
24698 }
24699
24700 _ACEOF
24701 if ac_fn_c_try_link "$LINENO"; then :
24702 gcc_cv_math_func_cacosf=yes
24703 else
24704 gcc_cv_math_func_cacosf=no
24705 fi
24706 rm -f core conftest.err conftest.$ac_objext \
24707 conftest$ac_exeext conftest.$ac_ext
24708 fi
24709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosf" >&5
24710 $as_echo "$gcc_cv_math_func_cacosf" >&6; }
24711 if test $gcc_cv_math_func_cacosf = yes; then
24712
24713 cat >>confdefs.h <<_ACEOF
24714 #define HAVE_CACOSF 1
24715 _ACEOF
24716
24717 fi
24718
24719
24720
24721
24722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosh" >&5
24723 $as_echo_n "checking for cacosh... " >&6; }
24724 if ${gcc_cv_math_func_cacosh+:} false; then :
24725 $as_echo_n "(cached) " >&6
24726 else
24727 if test x$gcc_no_link = xyes; then
24728 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24729 fi
24730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24731 /* end confdefs.h. */
24732
24733 #ifdef HAVE_COMPLEX_H
24734 #include <complex.h>
24735 #endif
24736 #ifdef HAVE_MATH_H
24737 #include <math.h>
24738 #endif
24739
24740 int (*ptr)() = (int (*)())cacosh;
24741
24742 int
24743 main ()
24744 {
24745 return 0;
24746 }
24747
24748 _ACEOF
24749 if ac_fn_c_try_link "$LINENO"; then :
24750 gcc_cv_math_func_cacosh=yes
24751 else
24752 gcc_cv_math_func_cacosh=no
24753 fi
24754 rm -f core conftest.err conftest.$ac_objext \
24755 conftest$ac_exeext conftest.$ac_ext
24756 fi
24757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosh" >&5
24758 $as_echo "$gcc_cv_math_func_cacosh" >&6; }
24759 if test $gcc_cv_math_func_cacosh = yes; then
24760
24761 cat >>confdefs.h <<_ACEOF
24762 #define HAVE_CACOSH 1
24763 _ACEOF
24764
24765 fi
24766
24767
24768
24769
24770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshf" >&5
24771 $as_echo_n "checking for cacoshf... " >&6; }
24772 if ${gcc_cv_math_func_cacoshf+:} false; then :
24773 $as_echo_n "(cached) " >&6
24774 else
24775 if test x$gcc_no_link = xyes; then
24776 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24777 fi
24778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24779 /* end confdefs.h. */
24780
24781 #ifdef HAVE_COMPLEX_H
24782 #include <complex.h>
24783 #endif
24784 #ifdef HAVE_MATH_H
24785 #include <math.h>
24786 #endif
24787
24788 int (*ptr)() = (int (*)())cacoshf;
24789
24790 int
24791 main ()
24792 {
24793 return 0;
24794 }
24795
24796 _ACEOF
24797 if ac_fn_c_try_link "$LINENO"; then :
24798 gcc_cv_math_func_cacoshf=yes
24799 else
24800 gcc_cv_math_func_cacoshf=no
24801 fi
24802 rm -f core conftest.err conftest.$ac_objext \
24803 conftest$ac_exeext conftest.$ac_ext
24804 fi
24805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshf" >&5
24806 $as_echo "$gcc_cv_math_func_cacoshf" >&6; }
24807 if test $gcc_cv_math_func_cacoshf = yes; then
24808
24809 cat >>confdefs.h <<_ACEOF
24810 #define HAVE_CACOSHF 1
24811 _ACEOF
24812
24813 fi
24814
24815
24816
24817
24818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshl" >&5
24819 $as_echo_n "checking for cacoshl... " >&6; }
24820 if ${gcc_cv_math_func_cacoshl+:} false; then :
24821 $as_echo_n "(cached) " >&6
24822 else
24823 if test x$gcc_no_link = xyes; then
24824 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24825 fi
24826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24827 /* end confdefs.h. */
24828
24829 #ifdef HAVE_COMPLEX_H
24830 #include <complex.h>
24831 #endif
24832 #ifdef HAVE_MATH_H
24833 #include <math.h>
24834 #endif
24835
24836 int (*ptr)() = (int (*)())cacoshl;
24837
24838 int
24839 main ()
24840 {
24841 return 0;
24842 }
24843
24844 _ACEOF
24845 if ac_fn_c_try_link "$LINENO"; then :
24846 gcc_cv_math_func_cacoshl=yes
24847 else
24848 gcc_cv_math_func_cacoshl=no
24849 fi
24850 rm -f core conftest.err conftest.$ac_objext \
24851 conftest$ac_exeext conftest.$ac_ext
24852 fi
24853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshl" >&5
24854 $as_echo "$gcc_cv_math_func_cacoshl" >&6; }
24855 if test $gcc_cv_math_func_cacoshl = yes; then
24856
24857 cat >>confdefs.h <<_ACEOF
24858 #define HAVE_CACOSHL 1
24859 _ACEOF
24860
24861 fi
24862
24863
24864
24865
24866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosl" >&5
24867 $as_echo_n "checking for cacosl... " >&6; }
24868 if ${gcc_cv_math_func_cacosl+:} false; then :
24869 $as_echo_n "(cached) " >&6
24870 else
24871 if test x$gcc_no_link = xyes; then
24872 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24873 fi
24874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24875 /* end confdefs.h. */
24876
24877 #ifdef HAVE_COMPLEX_H
24878 #include <complex.h>
24879 #endif
24880 #ifdef HAVE_MATH_H
24881 #include <math.h>
24882 #endif
24883
24884 int (*ptr)() = (int (*)())cacosl;
24885
24886 int
24887 main ()
24888 {
24889 return 0;
24890 }
24891
24892 _ACEOF
24893 if ac_fn_c_try_link "$LINENO"; then :
24894 gcc_cv_math_func_cacosl=yes
24895 else
24896 gcc_cv_math_func_cacosl=no
24897 fi
24898 rm -f core conftest.err conftest.$ac_objext \
24899 conftest$ac_exeext conftest.$ac_ext
24900 fi
24901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosl" >&5
24902 $as_echo "$gcc_cv_math_func_cacosl" >&6; }
24903 if test $gcc_cv_math_func_cacosl = yes; then
24904
24905 cat >>confdefs.h <<_ACEOF
24906 #define HAVE_CACOSL 1
24907 _ACEOF
24908
24909 fi
24910
24911
24912
24913
24914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casin" >&5
24915 $as_echo_n "checking for casin... " >&6; }
24916 if ${gcc_cv_math_func_casin+:} false; then :
24917 $as_echo_n "(cached) " >&6
24918 else
24919 if test x$gcc_no_link = xyes; then
24920 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24921 fi
24922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24923 /* end confdefs.h. */
24924
24925 #ifdef HAVE_COMPLEX_H
24926 #include <complex.h>
24927 #endif
24928 #ifdef HAVE_MATH_H
24929 #include <math.h>
24930 #endif
24931
24932 int (*ptr)() = (int (*)())casin;
24933
24934 int
24935 main ()
24936 {
24937 return 0;
24938 }
24939
24940 _ACEOF
24941 if ac_fn_c_try_link "$LINENO"; then :
24942 gcc_cv_math_func_casin=yes
24943 else
24944 gcc_cv_math_func_casin=no
24945 fi
24946 rm -f core conftest.err conftest.$ac_objext \
24947 conftest$ac_exeext conftest.$ac_ext
24948 fi
24949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casin" >&5
24950 $as_echo "$gcc_cv_math_func_casin" >&6; }
24951 if test $gcc_cv_math_func_casin = yes; then
24952
24953 cat >>confdefs.h <<_ACEOF
24954 #define HAVE_CASIN 1
24955 _ACEOF
24956
24957 fi
24958
24959
24960
24961
24962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinf" >&5
24963 $as_echo_n "checking for casinf... " >&6; }
24964 if ${gcc_cv_math_func_casinf+:} false; then :
24965 $as_echo_n "(cached) " >&6
24966 else
24967 if test x$gcc_no_link = xyes; then
24968 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24969 fi
24970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24971 /* end confdefs.h. */
24972
24973 #ifdef HAVE_COMPLEX_H
24974 #include <complex.h>
24975 #endif
24976 #ifdef HAVE_MATH_H
24977 #include <math.h>
24978 #endif
24979
24980 int (*ptr)() = (int (*)())casinf;
24981
24982 int
24983 main ()
24984 {
24985 return 0;
24986 }
24987
24988 _ACEOF
24989 if ac_fn_c_try_link "$LINENO"; then :
24990 gcc_cv_math_func_casinf=yes
24991 else
24992 gcc_cv_math_func_casinf=no
24993 fi
24994 rm -f core conftest.err conftest.$ac_objext \
24995 conftest$ac_exeext conftest.$ac_ext
24996 fi
24997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinf" >&5
24998 $as_echo "$gcc_cv_math_func_casinf" >&6; }
24999 if test $gcc_cv_math_func_casinf = yes; then
25000
25001 cat >>confdefs.h <<_ACEOF
25002 #define HAVE_CASINF 1
25003 _ACEOF
25004
25005 fi
25006
25007
25008
25009
25010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinh" >&5
25011 $as_echo_n "checking for casinh... " >&6; }
25012 if ${gcc_cv_math_func_casinh+:} false; then :
25013 $as_echo_n "(cached) " >&6
25014 else
25015 if test x$gcc_no_link = xyes; then
25016 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25017 fi
25018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25019 /* end confdefs.h. */
25020
25021 #ifdef HAVE_COMPLEX_H
25022 #include <complex.h>
25023 #endif
25024 #ifdef HAVE_MATH_H
25025 #include <math.h>
25026 #endif
25027
25028 int (*ptr)() = (int (*)())casinh;
25029
25030 int
25031 main ()
25032 {
25033 return 0;
25034 }
25035
25036 _ACEOF
25037 if ac_fn_c_try_link "$LINENO"; then :
25038 gcc_cv_math_func_casinh=yes
25039 else
25040 gcc_cv_math_func_casinh=no
25041 fi
25042 rm -f core conftest.err conftest.$ac_objext \
25043 conftest$ac_exeext conftest.$ac_ext
25044 fi
25045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinh" >&5
25046 $as_echo "$gcc_cv_math_func_casinh" >&6; }
25047 if test $gcc_cv_math_func_casinh = yes; then
25048
25049 cat >>confdefs.h <<_ACEOF
25050 #define HAVE_CASINH 1
25051 _ACEOF
25052
25053 fi
25054
25055
25056
25057
25058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhf" >&5
25059 $as_echo_n "checking for casinhf... " >&6; }
25060 if ${gcc_cv_math_func_casinhf+:} false; then :
25061 $as_echo_n "(cached) " >&6
25062 else
25063 if test x$gcc_no_link = xyes; then
25064 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25065 fi
25066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25067 /* end confdefs.h. */
25068
25069 #ifdef HAVE_COMPLEX_H
25070 #include <complex.h>
25071 #endif
25072 #ifdef HAVE_MATH_H
25073 #include <math.h>
25074 #endif
25075
25076 int (*ptr)() = (int (*)())casinhf;
25077
25078 int
25079 main ()
25080 {
25081 return 0;
25082 }
25083
25084 _ACEOF
25085 if ac_fn_c_try_link "$LINENO"; then :
25086 gcc_cv_math_func_casinhf=yes
25087 else
25088 gcc_cv_math_func_casinhf=no
25089 fi
25090 rm -f core conftest.err conftest.$ac_objext \
25091 conftest$ac_exeext conftest.$ac_ext
25092 fi
25093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhf" >&5
25094 $as_echo "$gcc_cv_math_func_casinhf" >&6; }
25095 if test $gcc_cv_math_func_casinhf = yes; then
25096
25097 cat >>confdefs.h <<_ACEOF
25098 #define HAVE_CASINHF 1
25099 _ACEOF
25100
25101 fi
25102
25103
25104
25105
25106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhl" >&5
25107 $as_echo_n "checking for casinhl... " >&6; }
25108 if ${gcc_cv_math_func_casinhl+:} false; then :
25109 $as_echo_n "(cached) " >&6
25110 else
25111 if test x$gcc_no_link = xyes; then
25112 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25113 fi
25114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25115 /* end confdefs.h. */
25116
25117 #ifdef HAVE_COMPLEX_H
25118 #include <complex.h>
25119 #endif
25120 #ifdef HAVE_MATH_H
25121 #include <math.h>
25122 #endif
25123
25124 int (*ptr)() = (int (*)())casinhl;
25125
25126 int
25127 main ()
25128 {
25129 return 0;
25130 }
25131
25132 _ACEOF
25133 if ac_fn_c_try_link "$LINENO"; then :
25134 gcc_cv_math_func_casinhl=yes
25135 else
25136 gcc_cv_math_func_casinhl=no
25137 fi
25138 rm -f core conftest.err conftest.$ac_objext \
25139 conftest$ac_exeext conftest.$ac_ext
25140 fi
25141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhl" >&5
25142 $as_echo "$gcc_cv_math_func_casinhl" >&6; }
25143 if test $gcc_cv_math_func_casinhl = yes; then
25144
25145 cat >>confdefs.h <<_ACEOF
25146 #define HAVE_CASINHL 1
25147 _ACEOF
25148
25149 fi
25150
25151
25152
25153
25154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinl" >&5
25155 $as_echo_n "checking for casinl... " >&6; }
25156 if ${gcc_cv_math_func_casinl+:} false; then :
25157 $as_echo_n "(cached) " >&6
25158 else
25159 if test x$gcc_no_link = xyes; then
25160 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25161 fi
25162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25163 /* end confdefs.h. */
25164
25165 #ifdef HAVE_COMPLEX_H
25166 #include <complex.h>
25167 #endif
25168 #ifdef HAVE_MATH_H
25169 #include <math.h>
25170 #endif
25171
25172 int (*ptr)() = (int (*)())casinl;
25173
25174 int
25175 main ()
25176 {
25177 return 0;
25178 }
25179
25180 _ACEOF
25181 if ac_fn_c_try_link "$LINENO"; then :
25182 gcc_cv_math_func_casinl=yes
25183 else
25184 gcc_cv_math_func_casinl=no
25185 fi
25186 rm -f core conftest.err conftest.$ac_objext \
25187 conftest$ac_exeext conftest.$ac_ext
25188 fi
25189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinl" >&5
25190 $as_echo "$gcc_cv_math_func_casinl" >&6; }
25191 if test $gcc_cv_math_func_casinl = yes; then
25192
25193 cat >>confdefs.h <<_ACEOF
25194 #define HAVE_CASINL 1
25195 _ACEOF
25196
25197 fi
25198
25199
25200
25201
25202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catan" >&5
25203 $as_echo_n "checking for catan... " >&6; }
25204 if ${gcc_cv_math_func_catan+:} false; then :
25205 $as_echo_n "(cached) " >&6
25206 else
25207 if test x$gcc_no_link = xyes; then
25208 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25209 fi
25210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25211 /* end confdefs.h. */
25212
25213 #ifdef HAVE_COMPLEX_H
25214 #include <complex.h>
25215 #endif
25216 #ifdef HAVE_MATH_H
25217 #include <math.h>
25218 #endif
25219
25220 int (*ptr)() = (int (*)())catan;
25221
25222 int
25223 main ()
25224 {
25225 return 0;
25226 }
25227
25228 _ACEOF
25229 if ac_fn_c_try_link "$LINENO"; then :
25230 gcc_cv_math_func_catan=yes
25231 else
25232 gcc_cv_math_func_catan=no
25233 fi
25234 rm -f core conftest.err conftest.$ac_objext \
25235 conftest$ac_exeext conftest.$ac_ext
25236 fi
25237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catan" >&5
25238 $as_echo "$gcc_cv_math_func_catan" >&6; }
25239 if test $gcc_cv_math_func_catan = yes; then
25240
25241 cat >>confdefs.h <<_ACEOF
25242 #define HAVE_CATAN 1
25243 _ACEOF
25244
25245 fi
25246
25247
25248
25249
25250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanf" >&5
25251 $as_echo_n "checking for catanf... " >&6; }
25252 if ${gcc_cv_math_func_catanf+:} false; then :
25253 $as_echo_n "(cached) " >&6
25254 else
25255 if test x$gcc_no_link = xyes; then
25256 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25257 fi
25258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25259 /* end confdefs.h. */
25260
25261 #ifdef HAVE_COMPLEX_H
25262 #include <complex.h>
25263 #endif
25264 #ifdef HAVE_MATH_H
25265 #include <math.h>
25266 #endif
25267
25268 int (*ptr)() = (int (*)())catanf;
25269
25270 int
25271 main ()
25272 {
25273 return 0;
25274 }
25275
25276 _ACEOF
25277 if ac_fn_c_try_link "$LINENO"; then :
25278 gcc_cv_math_func_catanf=yes
25279 else
25280 gcc_cv_math_func_catanf=no
25281 fi
25282 rm -f core conftest.err conftest.$ac_objext \
25283 conftest$ac_exeext conftest.$ac_ext
25284 fi
25285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanf" >&5
25286 $as_echo "$gcc_cv_math_func_catanf" >&6; }
25287 if test $gcc_cv_math_func_catanf = yes; then
25288
25289 cat >>confdefs.h <<_ACEOF
25290 #define HAVE_CATANF 1
25291 _ACEOF
25292
25293 fi
25294
25295
25296
25297
25298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanh" >&5
25299 $as_echo_n "checking for catanh... " >&6; }
25300 if ${gcc_cv_math_func_catanh+:} false; then :
25301 $as_echo_n "(cached) " >&6
25302 else
25303 if test x$gcc_no_link = xyes; then
25304 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25305 fi
25306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25307 /* end confdefs.h. */
25308
25309 #ifdef HAVE_COMPLEX_H
25310 #include <complex.h>
25311 #endif
25312 #ifdef HAVE_MATH_H
25313 #include <math.h>
25314 #endif
25315
25316 int (*ptr)() = (int (*)())catanh;
25317
25318 int
25319 main ()
25320 {
25321 return 0;
25322 }
25323
25324 _ACEOF
25325 if ac_fn_c_try_link "$LINENO"; then :
25326 gcc_cv_math_func_catanh=yes
25327 else
25328 gcc_cv_math_func_catanh=no
25329 fi
25330 rm -f core conftest.err conftest.$ac_objext \
25331 conftest$ac_exeext conftest.$ac_ext
25332 fi
25333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanh" >&5
25334 $as_echo "$gcc_cv_math_func_catanh" >&6; }
25335 if test $gcc_cv_math_func_catanh = yes; then
25336
25337 cat >>confdefs.h <<_ACEOF
25338 #define HAVE_CATANH 1
25339 _ACEOF
25340
25341 fi
25342
25343
25344
25345
25346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhf" >&5
25347 $as_echo_n "checking for catanhf... " >&6; }
25348 if ${gcc_cv_math_func_catanhf+:} false; then :
25349 $as_echo_n "(cached) " >&6
25350 else
25351 if test x$gcc_no_link = xyes; then
25352 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25353 fi
25354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25355 /* end confdefs.h. */
25356
25357 #ifdef HAVE_COMPLEX_H
25358 #include <complex.h>
25359 #endif
25360 #ifdef HAVE_MATH_H
25361 #include <math.h>
25362 #endif
25363
25364 int (*ptr)() = (int (*)())catanhf;
25365
25366 int
25367 main ()
25368 {
25369 return 0;
25370 }
25371
25372 _ACEOF
25373 if ac_fn_c_try_link "$LINENO"; then :
25374 gcc_cv_math_func_catanhf=yes
25375 else
25376 gcc_cv_math_func_catanhf=no
25377 fi
25378 rm -f core conftest.err conftest.$ac_objext \
25379 conftest$ac_exeext conftest.$ac_ext
25380 fi
25381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhf" >&5
25382 $as_echo "$gcc_cv_math_func_catanhf" >&6; }
25383 if test $gcc_cv_math_func_catanhf = yes; then
25384
25385 cat >>confdefs.h <<_ACEOF
25386 #define HAVE_CATANHF 1
25387 _ACEOF
25388
25389 fi
25390
25391
25392
25393
25394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhl" >&5
25395 $as_echo_n "checking for catanhl... " >&6; }
25396 if ${gcc_cv_math_func_catanhl+:} false; then :
25397 $as_echo_n "(cached) " >&6
25398 else
25399 if test x$gcc_no_link = xyes; then
25400 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25401 fi
25402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25403 /* end confdefs.h. */
25404
25405 #ifdef HAVE_COMPLEX_H
25406 #include <complex.h>
25407 #endif
25408 #ifdef HAVE_MATH_H
25409 #include <math.h>
25410 #endif
25411
25412 int (*ptr)() = (int (*)())catanhl;
25413
25414 int
25415 main ()
25416 {
25417 return 0;
25418 }
25419
25420 _ACEOF
25421 if ac_fn_c_try_link "$LINENO"; then :
25422 gcc_cv_math_func_catanhl=yes
25423 else
25424 gcc_cv_math_func_catanhl=no
25425 fi
25426 rm -f core conftest.err conftest.$ac_objext \
25427 conftest$ac_exeext conftest.$ac_ext
25428 fi
25429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhl" >&5
25430 $as_echo "$gcc_cv_math_func_catanhl" >&6; }
25431 if test $gcc_cv_math_func_catanhl = yes; then
25432
25433 cat >>confdefs.h <<_ACEOF
25434 #define HAVE_CATANHL 1
25435 _ACEOF
25436
25437 fi
25438
25439
25440
25441
25442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanl" >&5
25443 $as_echo_n "checking for catanl... " >&6; }
25444 if ${gcc_cv_math_func_catanl+:} false; then :
25445 $as_echo_n "(cached) " >&6
25446 else
25447 if test x$gcc_no_link = xyes; then
25448 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25449 fi
25450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25451 /* end confdefs.h. */
25452
25453 #ifdef HAVE_COMPLEX_H
25454 #include <complex.h>
25455 #endif
25456 #ifdef HAVE_MATH_H
25457 #include <math.h>
25458 #endif
25459
25460 int (*ptr)() = (int (*)())catanl;
25461
25462 int
25463 main ()
25464 {
25465 return 0;
25466 }
25467
25468 _ACEOF
25469 if ac_fn_c_try_link "$LINENO"; then :
25470 gcc_cv_math_func_catanl=yes
25471 else
25472 gcc_cv_math_func_catanl=no
25473 fi
25474 rm -f core conftest.err conftest.$ac_objext \
25475 conftest$ac_exeext conftest.$ac_ext
25476 fi
25477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanl" >&5
25478 $as_echo "$gcc_cv_math_func_catanl" >&6; }
25479 if test $gcc_cv_math_func_catanl = yes; then
25480
25481 cat >>confdefs.h <<_ACEOF
25482 #define HAVE_CATANL 1
25483 _ACEOF
25484
25485 fi
25486
25487
25488 # On AIX, clog is present in libm as __clog
25489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __clog in -lm" >&5
25490 $as_echo_n "checking for __clog in -lm... " >&6; }
25491 if ${ac_cv_lib_m___clog+:} false; then :
25492 $as_echo_n "(cached) " >&6
25493 else
25494 ac_check_lib_save_LIBS=$LIBS
25495 LIBS="-lm $LIBS"
25496 if test x$gcc_no_link = xyes; then
25497 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25498 fi
25499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25500 /* end confdefs.h. */
25501
25502 /* Override any GCC internal prototype to avoid an error.
25503 Use char because int might match the return type of a GCC
25504 builtin and then its argument prototype would still apply. */
25505 #ifdef __cplusplus
25506 extern "C"
25507 #endif
25508 char __clog ();
25509 int
25510 main ()
25511 {
25512 return __clog ();
25513 ;
25514 return 0;
25515 }
25516 _ACEOF
25517 if ac_fn_c_try_link "$LINENO"; then :
25518 ac_cv_lib_m___clog=yes
25519 else
25520 ac_cv_lib_m___clog=no
25521 fi
25522 rm -f core conftest.err conftest.$ac_objext \
25523 conftest$ac_exeext conftest.$ac_ext
25524 LIBS=$ac_check_lib_save_LIBS
25525 fi
25526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m___clog" >&5
25527 $as_echo "$ac_cv_lib_m___clog" >&6; }
25528 if test "x$ac_cv_lib_m___clog" = xyes; then :
25529
25530 $as_echo "#define HAVE_CLOG 1" >>confdefs.h
25531
25532 fi
25533
25534
25535 # Check whether the system has a working stat()
25536
25537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target stat is reliable" >&5
25538 $as_echo_n "checking whether the target stat is reliable... " >&6; }
25539 if ${libgfor_cv_have_working_stat+:} false; then :
25540 $as_echo_n "(cached) " >&6
25541 else
25542
25543 if test "$cross_compiling" = yes; then :
25544
25545 case "${target}" in
25546 *mingw*) libgfor_cv_have_working_stat=no ;;
25547 *) libgfor_cv_have_working_stat=yes;;
25548 esac
25549 else
25550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25551 /* end confdefs.h. */
25552
25553 #include <stdio.h>
25554 #include <sys/types.h>
25555 #include <sys/stat.h>
25556 #include <unistd.h>
25557
25558 int main ()
25559 {
25560 FILE *f, *g;
25561 struct stat st1, st2;
25562
25563 f = fopen ("foo", "w");
25564 g = fopen ("bar", "w");
25565 if (stat ("foo", &st1) != 0 || stat ("bar", &st2))
25566 return 1;
25567 if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino)
25568 return 1;
25569 fclose(f);
25570 fclose(g);
25571 return 0;
25572 }
25573 _ACEOF
25574 if ac_fn_c_try_run "$LINENO"; then :
25575 libgfor_cv_have_working_stat=yes
25576 else
25577 libgfor_cv_have_working_stat=no
25578 fi
25579 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25580 conftest.$ac_objext conftest.beam conftest.$ac_ext
25581 fi
25582
25583 fi
25584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_working_stat" >&5
25585 $as_echo "$libgfor_cv_have_working_stat" >&6; }
25586 if test x"$libgfor_cv_have_working_stat" = xyes; then
25587
25588 $as_echo "#define HAVE_WORKING_STAT 1" >>confdefs.h
25589
25590 fi
25591
25592 # Check whether __mingw_snprintf() is present
25593
25594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __mingw_snprintf is present" >&5
25595 $as_echo_n "checking whether __mingw_snprintf is present... " >&6; }
25596 if ${libgfor_cv_have_mingw_snprintf+:} false; then :
25597 $as_echo_n "(cached) " >&6
25598 else
25599
25600 if test x$gcc_no_link = xyes; then
25601 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25602 fi
25603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25604 /* end confdefs.h. */
25605
25606 #include <stdio.h>
25607 extern int __mingw_snprintf (char *, size_t, const char *, ...);
25608
25609 int
25610 main ()
25611 {
25612
25613 __mingw_snprintf (NULL, 0, "%d\n", 1);
25614
25615 ;
25616 return 0;
25617 }
25618 _ACEOF
25619 if ac_fn_c_try_link "$LINENO"; then :
25620 eval "libgfor_cv_have_mingw_snprintf=yes"
25621 else
25622 eval "libgfor_cv_have_mingw_snprintf=no"
25623 fi
25624 rm -f core conftest.err conftest.$ac_objext \
25625 conftest$ac_exeext conftest.$ac_ext
25626
25627 fi
25628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_mingw_snprintf" >&5
25629 $as_echo "$libgfor_cv_have_mingw_snprintf" >&6; }
25630 if test x"$libgfor_cv_have_mingw_snprintf" = xyes; then
25631
25632 $as_echo "#define HAVE_MINGW_SNPRINTF 1" >>confdefs.h
25633
25634 fi
25635
25636
25637 # Check whether libquadmath should be used
25638 # Check whether --enable-libquadmath-support was given.
25639 if test "${enable_libquadmath_support+set}" = set; then :
25640 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
25641 else
25642 ENABLE_LIBQUADMATH_SUPPORT=yes
25643 fi
25644
25645 enable_libquadmath_support=
25646 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
25647 enable_libquadmath_support=no
25648 fi
25649
25650 # Check whether we have a __float128 type, depends on enable_libquadmath_support
25651
25652 LIBQUADSPEC=
25653
25654 if test "x$enable_libquadmath_support" != xno; then
25655
25656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a usable __float128 type" >&5
25657 $as_echo_n "checking whether we have a usable __float128 type... " >&6; }
25658 if ${libgfor_cv_have_float128+:} false; then :
25659 $as_echo_n "(cached) " >&6
25660 else
25661
25662 if test x$gcc_no_link = xyes; then
25663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25664 /* end confdefs.h. */
25665
25666 typedef _Complex float __attribute__((mode(TC))) __complex128;
25667
25668 __float128 foo (__float128 x)
25669 {
25670
25671 __complex128 z1, z2;
25672
25673 z1 = x;
25674 z2 = x / 7.Q;
25675 z2 /= z1;
25676
25677 return (__float128) z2;
25678 }
25679
25680 __float128 bar (__float128 x)
25681 {
25682 return x * __builtin_huge_valq ();
25683 }
25684
25685 int
25686 main ()
25687 {
25688
25689 foo (1.2Q);
25690 bar (1.2Q);
25691
25692 ;
25693 return 0;
25694 }
25695 _ACEOF
25696 if ac_fn_c_try_compile "$LINENO"; then :
25697
25698 libgfor_cv_have_float128=yes
25699
25700 else
25701
25702 libgfor_cv_have_float128=no
25703
25704 fi
25705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25706 else
25707 if test x$gcc_no_link = xyes; then
25708 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25709 fi
25710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25711 /* end confdefs.h. */
25712
25713 typedef _Complex float __attribute__((mode(TC))) __complex128;
25714
25715 __float128 foo (__float128 x)
25716 {
25717
25718 __complex128 z1, z2;
25719
25720 z1 = x;
25721 z2 = x / 7.Q;
25722 z2 /= z1;
25723
25724 return (__float128) z2;
25725 }
25726
25727 __float128 bar (__float128 x)
25728 {
25729 return x * __builtin_huge_valq ();
25730 }
25731
25732 int
25733 main ()
25734 {
25735
25736 foo (1.2Q);
25737 bar (1.2Q);
25738
25739 ;
25740 return 0;
25741 }
25742 _ACEOF
25743 if ac_fn_c_try_link "$LINENO"; then :
25744
25745 libgfor_cv_have_float128=yes
25746
25747 else
25748
25749 libgfor_cv_have_float128=no
25750
25751 fi
25752 rm -f core conftest.err conftest.$ac_objext \
25753 conftest$ac_exeext conftest.$ac_ext
25754 fi
25755 fi
25756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_float128" >&5
25757 $as_echo "$libgfor_cv_have_float128" >&6; }
25758
25759 if test "x$libgfor_cv_have_float128" = xyes; then
25760
25761 $as_echo "#define HAVE_FLOAT128 1" >>confdefs.h
25762
25763
25764 ac_xsave_c_werror_flag=$ac_c_werror_flag
25765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --as-needed/-z ignore works" >&5
25766 $as_echo_n "checking whether --as-needed/-z ignore works... " >&6; }
25767 if ${libgfor_cv_have_as_needed+:} false; then :
25768 $as_echo_n "(cached) " >&6
25769 else
25770
25771 # Test for native Solaris options first.
25772 # No whitespace after -z to pass it through -Wl.
25773 libgfor_cv_as_needed_option="-zignore"
25774 libgfor_cv_no_as_needed_option="-zrecord"
25775 save_LDFLAGS="$LDFLAGS"
25776 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
25777 libgfor_cv_have_as_needed=no
25778
25779 ac_c_werror_flag=yes
25780 if test x$gcc_no_link = xyes; then
25781 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25782 fi
25783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25784 /* end confdefs.h. */
25785
25786 int
25787 main ()
25788 {
25789
25790 ;
25791 return 0;
25792 }
25793 _ACEOF
25794 if ac_fn_c_try_link "$LINENO"; then :
25795 libgfor_cv_have_as_needed=yes
25796 else
25797 libgfor_cv_have_as_needed=no
25798 fi
25799 rm -f core conftest.err conftest.$ac_objext \
25800 conftest$ac_exeext conftest.$ac_ext
25801 LDFLAGS="$save_LDFLAGS"
25802 if test "x$libgfor_cv_have_as_needed" = xno; then
25803 libgfor_cv_as_needed_option="--as-needed"
25804 libgfor_cv_no_as_needed_option="--no-as-needed"
25805 save_LDFLAGS="$LDFLAGS"
25806 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
25807 libgfor_cv_have_as_needed=no
25808
25809 ac_c_werror_flag=yes
25810 if test x$gcc_no_link = xyes; then
25811 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25812 fi
25813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25814 /* end confdefs.h. */
25815
25816 int
25817 main ()
25818 {
25819
25820 ;
25821 return 0;
25822 }
25823 _ACEOF
25824 if ac_fn_c_try_link "$LINENO"; then :
25825 libgfor_cv_have_as_needed=yes
25826 else
25827 libgfor_cv_have_as_needed=no
25828 fi
25829 rm -f core conftest.err conftest.$ac_objext \
25830 conftest$ac_exeext conftest.$ac_ext
25831 LDFLAGS="$save_LDFLAGS"
25832 fi
25833 ac_c_werror_flag=$ac_xsave_c_werror_flag
25834
25835 fi
25836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_as_needed" >&5
25837 $as_echo "$libgfor_cv_have_as_needed" >&6; }
25838
25839 if test "x$libgfor_cv_have_as_needed" = xyes; then
25840 LIBQUADSPEC="%{static-libgfortran:$libgfor_cv_as_needed_option} -lquadmath %{static-libgfortran:$libgfor_cv_no_as_needed_option}"
25841 else
25842 LIBQUADSPEC="-lquadmath"
25843 fi
25844 if test -f ../libquadmath/libquadmath.la; then
25845 LIBQUADLIB=../libquadmath/libquadmath.la
25846 LIBQUADLIB_DEP=../libquadmath/libquadmath.la
25847 LIBQUADINCLUDE='-I$(srcdir)/../libquadmath'
25848 else
25849 LIBQUADLIB="-lquadmath"
25850 LIBQUADLIB_DEP=
25851 LIBQUADINCLUDE=
25852 fi
25853 fi
25854 else
25855 # for --disable-quadmath
25856 LIBQUADLIB=
25857 LIBQUADLIB_DEP=
25858 LIBQUADINCLUDE=
25859 fi
25860
25861
25862
25863
25864
25865
25866 if test "x$libgfor_cv_have_float128" = xyes; then
25867 LIBGFOR_BUILD_QUAD_TRUE=
25868 LIBGFOR_BUILD_QUAD_FALSE='#'
25869 else
25870 LIBGFOR_BUILD_QUAD_TRUE='#'
25871 LIBGFOR_BUILD_QUAD_FALSE=
25872 fi
25873
25874
25875
25876 # Check for GNU libc feenableexcept
25877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5
25878 $as_echo_n "checking for feenableexcept in -lm... " >&6; }
25879 if ${ac_cv_lib_m_feenableexcept+:} false; then :
25880 $as_echo_n "(cached) " >&6
25881 else
25882 ac_check_lib_save_LIBS=$LIBS
25883 LIBS="-lm $LIBS"
25884 if test x$gcc_no_link = xyes; then
25885 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25886 fi
25887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25888 /* end confdefs.h. */
25889
25890 /* Override any GCC internal prototype to avoid an error.
25891 Use char because int might match the return type of a GCC
25892 builtin and then its argument prototype would still apply. */
25893 #ifdef __cplusplus
25894 extern "C"
25895 #endif
25896 char feenableexcept ();
25897 int
25898 main ()
25899 {
25900 return feenableexcept ();
25901 ;
25902 return 0;
25903 }
25904 _ACEOF
25905 if ac_fn_c_try_link "$LINENO"; then :
25906 ac_cv_lib_m_feenableexcept=yes
25907 else
25908 ac_cv_lib_m_feenableexcept=no
25909 fi
25910 rm -f core conftest.err conftest.$ac_objext \
25911 conftest$ac_exeext conftest.$ac_ext
25912 LIBS=$ac_check_lib_save_LIBS
25913 fi
25914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5
25915 $as_echo "$ac_cv_lib_m_feenableexcept" >&6; }
25916 if test "x$ac_cv_lib_m_feenableexcept" = xyes; then :
25917 have_feenableexcept=yes
25918 $as_echo "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h
25919
25920 fi
25921
25922
25923 # At least for glibc, clock_gettime is in librt. But don't
25924 # pull that in if it still doesn't give us the function we want. This
25925 # test is copied from libgomp, and modified to not link in -lrt as
25926 # libgfortran calls clock_gettime via a weak reference if it's found
25927 # in librt.
25928 if test "$ac_cv_func_clock_gettime" = no; then
25929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
25930 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
25931 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
25932 $as_echo_n "(cached) " >&6
25933 else
25934 ac_check_lib_save_LIBS=$LIBS
25935 LIBS="-lrt $LIBS"
25936 if test x$gcc_no_link = xyes; then
25937 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25938 fi
25939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25940 /* end confdefs.h. */
25941
25942 /* Override any GCC internal prototype to avoid an error.
25943 Use char because int might match the return type of a GCC
25944 builtin and then its argument prototype would still apply. */
25945 #ifdef __cplusplus
25946 extern "C"
25947 #endif
25948 char clock_gettime ();
25949 int
25950 main ()
25951 {
25952 return clock_gettime ();
25953 ;
25954 return 0;
25955 }
25956 _ACEOF
25957 if ac_fn_c_try_link "$LINENO"; then :
25958 ac_cv_lib_rt_clock_gettime=yes
25959 else
25960 ac_cv_lib_rt_clock_gettime=no
25961 fi
25962 rm -f core conftest.err conftest.$ac_objext \
25963 conftest$ac_exeext conftest.$ac_ext
25964 LIBS=$ac_check_lib_save_LIBS
25965 fi
25966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
25967 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
25968 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
25969
25970 $as_echo "#define HAVE_CLOCK_GETTIME_LIBRT 1" >>confdefs.h
25971
25972 fi
25973
25974 fi
25975
25976 # Check for SysV fpsetmask
25977
25978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fpsetmask is present" >&5
25979 $as_echo_n "checking whether fpsetmask is present... " >&6; }
25980 if ${libgfor_cv_have_fpsetmask+:} false; then :
25981 $as_echo_n "(cached) " >&6
25982 else
25983
25984 if test x$gcc_no_link = xyes; then
25985 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25986 fi
25987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25988 /* end confdefs.h. */
25989
25990 #if HAVE_FLOATINGPOINT_H
25991 # include <floatingpoint.h>
25992 #endif /* HAVE_FLOATINGPOINT_H */
25993 #if HAVE_IEEEFP_H
25994 # include <ieeefp.h>
25995 #endif /* HAVE_IEEEFP_H */
25996 int
25997 main ()
25998 {
25999 fpsetmask(0);
26000 ;
26001 return 0;
26002 }
26003 _ACEOF
26004 if ac_fn_c_try_link "$LINENO"; then :
26005 eval "libgfor_cv_have_fpsetmask=yes"
26006 else
26007 eval "libgfor_cv_have_fpsetmask=no"
26008 fi
26009 rm -f core conftest.err conftest.$ac_objext \
26010 conftest$ac_exeext conftest.$ac_ext
26011
26012 fi
26013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_fpsetmask" >&5
26014 $as_echo "$libgfor_cv_have_fpsetmask" >&6; }
26015 if test x"$libgfor_cv_have_fpsetmask" = xyes; then
26016 have_fpsetmask=yes
26017
26018 $as_echo "#define HAVE_FPSETMASK 1" >>confdefs.h
26019
26020 fi
26021
26022 ac_fn_c_check_type "$LINENO" "fp_except" "ac_cv_type_fp_except" "
26023 #ifdef HAVE_IEEEFP_H
26024 #include <ieeefp.h>
26025 #endif
26026 #include <math.h>
26027
26028 "
26029 if test "x$ac_cv_type_fp_except" = xyes; then :
26030
26031 cat >>confdefs.h <<_ACEOF
26032 #define HAVE_FP_EXCEPT 1
26033 _ACEOF
26034
26035
26036 fi
26037 ac_fn_c_check_type "$LINENO" "fp_except_t" "ac_cv_type_fp_except_t" "
26038 #ifdef HAVE_IEEEFP_H
26039 #include <ieeefp.h>
26040 #endif
26041 #include <math.h>
26042
26043 "
26044 if test "x$ac_cv_type_fp_except_t" = xyes; then :
26045
26046 cat >>confdefs.h <<_ACEOF
26047 #define HAVE_FP_EXCEPT_T 1
26048 _ACEOF
26049
26050
26051 fi
26052
26053 ac_fn_c_check_type "$LINENO" "fp_rnd" "ac_cv_type_fp_rnd" "
26054 #ifdef HAVE_IEEEFP_H
26055 #include <ieeefp.h>
26056 #endif
26057 #include <math.h>
26058
26059 "
26060 if test "x$ac_cv_type_fp_rnd" = xyes; then :
26061
26062 cat >>confdefs.h <<_ACEOF
26063 #define HAVE_FP_RND 1
26064 _ACEOF
26065
26066
26067 fi
26068 ac_fn_c_check_type "$LINENO" "fp_rnd_t" "ac_cv_type_fp_rnd_t" "
26069 #ifdef HAVE_IEEEFP_H
26070 #include <ieeefp.h>
26071 #endif
26072 #include <math.h>
26073
26074 "
26075 if test "x$ac_cv_type_fp_rnd_t" = xyes; then :
26076
26077 cat >>confdefs.h <<_ACEOF
26078 #define HAVE_FP_RND_T 1
26079 _ACEOF
26080
26081
26082 fi
26083
26084
26085 # Check whether we have fpsetsticky or fpresetsticky
26086 ac_fn_c_check_func "$LINENO" "fpsetsticky" "ac_cv_func_fpsetsticky"
26087 if test "x$ac_cv_func_fpsetsticky" = xyes; then :
26088 have_fpsetsticky=yes
26089 $as_echo "#define HAVE_FPSETSTICKY 1" >>confdefs.h
26090
26091 fi
26092
26093 ac_fn_c_check_func "$LINENO" "fpresetsticky" "ac_cv_func_fpresetsticky"
26094 if test "x$ac_cv_func_fpresetsticky" = xyes; then :
26095 have_fpresetsticky=yes
26096 $as_echo "#define HAVE_FPRESETSTICKY 1" >>confdefs.h
26097
26098 fi
26099
26100
26101 # Check for AIX fp_trap and fp_enable
26102 ac_fn_c_check_func "$LINENO" "fp_trap" "ac_cv_func_fp_trap"
26103 if test "x$ac_cv_func_fp_trap" = xyes; then :
26104 have_fp_trap=yes
26105 $as_echo "#define HAVE_FP_TRAP 1" >>confdefs.h
26106
26107 fi
26108
26109 ac_fn_c_check_func "$LINENO" "fp_enable" "ac_cv_func_fp_enable"
26110 if test "x$ac_cv_func_fp_enable" = xyes; then :
26111 have_fp_enable=yes
26112 $as_echo "#define HAVE_FP_ENABLE 1" >>confdefs.h
26113
26114 fi
26115
26116
26117 # Check if _SOFT_FLOAT is defined
26118
26119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _SOFT_FLOAT defined" >&5
26120 $as_echo_n "checking for _SOFT_FLOAT defined... " >&6; }
26121 if ${ac_cv_defined__SOFT_FLOAT+:} false; then :
26122 $as_echo_n "(cached) " >&6
26123 else
26124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26125 /* end confdefs.h. */
26126
26127 int
26128 main ()
26129 {
26130
26131 #ifdef _SOFT_FLOAT
26132 int ok;
26133 #else
26134 choke me
26135 #endif
26136
26137 ;
26138 return 0;
26139 }
26140 _ACEOF
26141 if ac_fn_c_try_compile "$LINENO"; then :
26142 ac_cv_defined__SOFT_FLOAT=yes
26143 else
26144 ac_cv_defined__SOFT_FLOAT=no
26145 fi
26146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26147 fi
26148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined__SOFT_FLOAT" >&5
26149 $as_echo "$ac_cv_defined__SOFT_FLOAT" >&6; }
26150 if test $ac_cv_defined__SOFT_FLOAT != "no"; then :
26151 have_soft_float=yes
26152 fi
26153
26154 # Runs configure.host to set up necessary host-dependent shell variables.
26155 # We then display a message about it, and propagate them through the
26156 # build chain.
26157 . ${srcdir}/configure.host
26158 { $as_echo "$as_me:${as_lineno-$LINENO}: FPU dependent file will be ${fpu_host}.h" >&5
26159 $as_echo "$as_me: FPU dependent file will be ${fpu_host}.h" >&6;}
26160 { $as_echo "$as_me:${as_lineno-$LINENO}: Support for IEEE modules: ${ieee_support}" >&5
26161 $as_echo "$as_me: Support for IEEE modules: ${ieee_support}" >&6;}
26162 FPU_HOST_HEADER=config/${fpu_host}.h
26163
26164
26165 # Whether we will build the IEEE modules
26166 if test x${ieee_support} = xyes; then
26167 IEEE_SUPPORT_TRUE=
26168 IEEE_SUPPORT_FALSE='#'
26169 else
26170 IEEE_SUPPORT_TRUE='#'
26171 IEEE_SUPPORT_FALSE=
26172 fi
26173
26174
26175
26176 # Some targets require additional compiler options for IEEE compatibility.
26177 IEEE_FLAGS="${ieee_flags}"
26178
26179
26180
26181 # Check for POSIX getpwuid_r
26182 #
26183 # There are two versions of getpwuid_r, the POSIX one with 5
26184 # arguments, and another one with 4 arguments used by at least HP-UX
26185 # 10.2.
26186 if test "$ac_cv_func_getpwuid_r" = "yes"; then
26187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX version of getpwuid_r with 5 arguments" >&5
26188 $as_echo_n "checking POSIX version of getpwuid_r with 5 arguments... " >&6; }
26189 if ${libgfor_cv_posix_getpwuid_r+:} false; then :
26190 $as_echo_n "(cached) " >&6
26191 else
26192
26193 if test x$gcc_no_link = xyes; then
26194 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26195 fi
26196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26197 /* end confdefs.h. */
26198
26199 #include <stdio.h>
26200 #include <sys/types.h>
26201 #include <pwd.h>
26202 int
26203 main ()
26204 {
26205
26206 getpwuid_r(0, NULL, NULL, 0, NULL);
26207
26208 ;
26209 return 0;
26210 }
26211 _ACEOF
26212 if ac_fn_c_try_link "$LINENO"; then :
26213 libgfor_cv_posix_getpwuid_r="yes"
26214 else
26215 libgfor_cv_posix_getpwuid_r="no"
26216 fi
26217 rm -f core conftest.err conftest.$ac_objext \
26218 conftest$ac_exeext conftest.$ac_ext
26219 fi
26220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_posix_getpwuid_r" >&5
26221 $as_echo "$libgfor_cv_posix_getpwuid_r" >&6; }
26222 fi
26223 if test "$libgfor_cv_posix_getpwuid_r" = "yes"; then
26224
26225 $as_echo "#define HAVE_POSIX_GETPWUID_R 1" >>confdefs.h
26226
26227 fi
26228
26229
26230 # Check out attribute support.
26231
26232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
26233 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
26234 if ${libgfor_cv_have_attribute_visibility+:} false; then :
26235 $as_echo_n "(cached) " >&6
26236 else
26237
26238 save_CFLAGS="$CFLAGS"
26239 CFLAGS="$CFLAGS -Werror"
26240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26241 /* end confdefs.h. */
26242 void __attribute__((visibility("hidden"))) foo(void) { }
26243 int
26244 main ()
26245 {
26246
26247 ;
26248 return 0;
26249 }
26250 _ACEOF
26251 if ac_fn_c_try_compile "$LINENO"; then :
26252 libgfor_cv_have_attribute_visibility=yes
26253 else
26254 libgfor_cv_have_attribute_visibility=no
26255 fi
26256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26257 CFLAGS="$save_CFLAGS"
26258 fi
26259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_visibility" >&5
26260 $as_echo "$libgfor_cv_have_attribute_visibility" >&6; }
26261 if test $libgfor_cv_have_attribute_visibility = yes; then
26262
26263 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
26264
26265 fi
26266
26267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
26268 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
26269 if ${libgfor_cv_have_attribute_alias+:} false; then :
26270 $as_echo_n "(cached) " >&6
26271 else
26272
26273 if test x$gcc_no_link = xyes; then
26274 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26275 fi
26276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26277 /* end confdefs.h. */
26278
26279 void foo(void) { }
26280 extern void bar(void) __attribute__((alias("foo")));
26281 int
26282 main ()
26283 {
26284 bar();
26285 ;
26286 return 0;
26287 }
26288 _ACEOF
26289 if ac_fn_c_try_link "$LINENO"; then :
26290 libgfor_cv_have_attribute_alias=yes
26291 else
26292 libgfor_cv_have_attribute_alias=no
26293 fi
26294 rm -f core conftest.err conftest.$ac_objext \
26295 conftest$ac_exeext conftest.$ac_ext
26296 fi
26297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_alias" >&5
26298 $as_echo "$libgfor_cv_have_attribute_alias" >&6; }
26299 if test $libgfor_cv_have_attribute_alias = yes; then
26300
26301 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
26302
26303 fi
26304
26305 # Check out atomic builtins support.
26306
26307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __atomic_fetch_add" >&5
26308 $as_echo_n "checking whether the target supports __atomic_fetch_add... " >&6; }
26309 if ${libgfor_cv_have_atomic_fetch_add+:} false; then :
26310 $as_echo_n "(cached) " >&6
26311 else
26312
26313 if test x$gcc_no_link = xyes; then
26314 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26315 fi
26316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26317 /* end confdefs.h. */
26318 int foovar = 0;
26319 int
26320 main ()
26321 {
26322
26323 if (foovar <= 0) return __atomic_fetch_add (&foovar, 1, __ATOMIC_ACQ_REL);
26324 if (foovar > 10) return __atomic_add_fetch (&foovar, -1, __ATOMIC_ACQ_REL);
26325 ;
26326 return 0;
26327 }
26328 _ACEOF
26329 if ac_fn_c_try_link "$LINENO"; then :
26330 libgfor_cv_have_atomic_fetch_add=yes
26331 else
26332 libgfor_cv_have_atomic_fetch_add=no
26333 fi
26334 rm -f core conftest.err conftest.$ac_objext \
26335 conftest$ac_exeext conftest.$ac_ext
26336 fi
26337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_atomic_fetch_add" >&5
26338 $as_echo "$libgfor_cv_have_atomic_fetch_add" >&6; }
26339 if test $libgfor_cv_have_atomic_fetch_add = yes; then
26340
26341 $as_echo "#define HAVE_ATOMIC_FETCH_ADD 1" >>confdefs.h
26342
26343 fi
26344
26345 # Check out #pragma weak.
26346
26347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pragma weak works" >&5
26348 $as_echo_n "checking whether pragma weak works... " >&6; }
26349 if ${libgfor_cv_have_pragma_weak+:} false; then :
26350 $as_echo_n "(cached) " >&6
26351 else
26352
26353 gfor_save_CFLAGS="$CFLAGS"
26354 CFLAGS="$CFLAGS -Wunknown-pragmas"
26355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26356 /* end confdefs.h. */
26357
26358 void foo (void);
26359 #pragma weak foo
26360
26361 int
26362 main ()
26363 {
26364 if (foo) foo ();
26365 ;
26366 return 0;
26367 }
26368 _ACEOF
26369 if ac_fn_c_try_compile "$LINENO"; then :
26370 libgfor_cv_have_pragma_weak=yes
26371 else
26372 libgfor_cv_have_pragma_weak=no
26373 fi
26374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26375 fi
26376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_pragma_weak" >&5
26377 $as_echo "$libgfor_cv_have_pragma_weak" >&6; }
26378 if test $libgfor_cv_have_pragma_weak = yes; then
26379
26380 $as_echo "#define SUPPORTS_WEAK 1" >>confdefs.h
26381
26382 fi
26383 case "$host" in
26384 *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* | *-*-musl* )
26385
26386 $as_echo "#define GTHREAD_USE_WEAK 0" >>confdefs.h
26387
26388 ;;
26389 esac
26390
26391 # Check out weakref support.
26392
26393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports weakref" >&5
26394 $as_echo_n "checking whether the target supports weakref... " >&6; }
26395 if ${libgfor_cv_have_weakref+:} false; then :
26396 $as_echo_n "(cached) " >&6
26397 else
26398
26399 save_CFLAGS="$CFLAGS"
26400 CFLAGS="$CFLAGS -Wunknown-pragmas -Werror"
26401 if test x$gcc_no_link = xyes; then
26402 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26403 fi
26404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26405 /* end confdefs.h. */
26406
26407 static int mytoto (int) __attribute__((__weakref__("toto")));
26408
26409 int
26410 main ()
26411 {
26412 return (mytoto != 0);
26413 ;
26414 return 0;
26415 }
26416 _ACEOF
26417 if ac_fn_c_try_link "$LINENO"; then :
26418 libgfor_cv_have_weakref=yes
26419 else
26420 libgfor_cv_have_weakref=no
26421 fi
26422 rm -f core conftest.err conftest.$ac_objext \
26423 conftest$ac_exeext conftest.$ac_ext
26424 CFLAGS="$save_CFLAGS"
26425 fi
26426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_weakref" >&5
26427 $as_echo "$libgfor_cv_have_weakref" >&6; }
26428 if test $libgfor_cv_have_weakref = yes; then
26429
26430 $as_echo "#define SUPPORTS_WEAKREF 1" >>confdefs.h
26431
26432 fi
26433
26434 # Various other checks on target
26435
26436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target can unlink an open file" >&5
26437 $as_echo_n "checking whether the target can unlink an open file... " >&6; }
26438 if ${libgfor_cv_have_unlink_open_file+:} false; then :
26439 $as_echo_n "(cached) " >&6
26440 else
26441
26442 if test "$cross_compiling" = yes; then :
26443
26444 case "${target}" in
26445 *mingw*) libgfor_cv_have_unlink_open_file=no ;;
26446 *) libgfor_cv_have_unlink_open_file=yes;;
26447 esac
26448 else
26449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26450 /* end confdefs.h. */
26451
26452 #include <errno.h>
26453 #include <fcntl.h>
26454 #include <unistd.h>
26455 #include <sys/stat.h>
26456
26457 int main ()
26458 {
26459 int fd;
26460
26461 fd = open ("testfile", O_RDWR | O_CREAT, S_IWUSR | S_IRUSR);
26462 if (fd <= 0)
26463 return 0;
26464 if (unlink ("testfile") == -1)
26465 return 1;
26466 write (fd, "This is a test\n", 15);
26467 close (fd);
26468
26469 if (open ("testfile", O_RDONLY) == -1 && errno == ENOENT)
26470 return 0;
26471 else
26472 return 1;
26473 }
26474 _ACEOF
26475 if ac_fn_c_try_run "$LINENO"; then :
26476 libgfor_cv_have_unlink_open_file=yes
26477 else
26478 libgfor_cv_have_unlink_open_file=no
26479 fi
26480 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26481 conftest.$ac_objext conftest.beam conftest.$ac_ext
26482 fi
26483
26484 fi
26485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_unlink_open_file" >&5
26486 $as_echo "$libgfor_cv_have_unlink_open_file" >&6; }
26487 if test x"$libgfor_cv_have_unlink_open_file" = xyes; then
26488
26489 $as_echo "#define HAVE_UNLINK_OPEN_FILE 1" >>confdefs.h
26490
26491 fi
26492
26493 # Check whether line terminator is LF or CRLF
26494
26495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target has CRLF as line terminator" >&5
26496 $as_echo_n "checking whether the target has CRLF as line terminator... " >&6; }
26497 if ${libgfor_cv_have_crlf+:} false; then :
26498 $as_echo_n "(cached) " >&6
26499 else
26500
26501 if test "$cross_compiling" = yes; then :
26502
26503 case "${target}" in
26504 *mingw*) libgfor_cv_have_crlf=yes ;;
26505 *) libgfor_cv_have_crlf=no;;
26506 esac
26507 else
26508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26509 /* end confdefs.h. */
26510
26511 /* This test program should exit with status 0 if system uses a CRLF as
26512 line terminator, and status 1 otherwise.
26513 Since it is used to check for mingw systems, and should return 0 in any
26514 other case, in case of a failure we will not use CRLF. */
26515 #include <sys/stat.h>
26516 #include <stdlib.h>
26517 #include <fcntl.h>
26518 #include <stdio.h>
26519
26520 int main ()
26521 {
26522 #ifndef O_BINARY
26523 exit(1);
26524 #else
26525 int fd, bytes;
26526 char buff[5];
26527
26528 fd = open ("foo", O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU);
26529 if (fd < 0)
26530 exit(1);
26531 if (write (fd, "\n", 1) < 0)
26532 perror ("write");
26533
26534 close (fd);
26535
26536 if ((fd = open ("foo", O_RDONLY | O_BINARY, S_IRWXU)) < 0)
26537 exit(1);
26538 bytes = read (fd, buff, 5);
26539 if (bytes == 2 && buff[0] == '\r' && buff[1] == '\n')
26540 exit(0);
26541 else
26542 exit(1);
26543 #endif
26544 }
26545 _ACEOF
26546 if ac_fn_c_try_run "$LINENO"; then :
26547 libgfor_cv_have_crlf=yes
26548 else
26549 libgfor_cv_have_crlf=no
26550 fi
26551 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26552 conftest.$ac_objext conftest.beam conftest.$ac_ext
26553 fi
26554
26555 fi
26556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_crlf" >&5
26557 $as_echo "$libgfor_cv_have_crlf" >&6; }
26558 if test x"$libgfor_cv_have_crlf" = xyes; then
26559
26560 $as_echo "#define HAVE_CRLF 1" >>confdefs.h
26561
26562 fi
26563
26564 # Check whether we support AVX extensions
26565
26566 ac_save_CFLAGS="$CFLAGS"
26567 CFLAGS="-O2 -mavx"
26568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26569 /* end confdefs.h. */
26570
26571 void _mm256_zeroall (void)
26572 {
26573 __builtin_ia32_vzeroall ();
26574 }
26575 int
26576 main ()
26577 {
26578
26579 ;
26580 return 0;
26581 }
26582 _ACEOF
26583 if ac_fn_c_try_compile "$LINENO"; then :
26584
26585 $as_echo "#define HAVE_AVX 1" >>confdefs.h
26586
26587 fi
26588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26589 CFLAGS="$ac_save_CFLAGS"
26590
26591
26592 # Check wether we support AVX2 extensions
26593
26594 ac_save_CFLAGS="$CFLAGS"
26595 CFLAGS="-O2 -mavx2"
26596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26597 /* end confdefs.h. */
26598
26599 typedef long long __v4di __attribute__ ((__vector_size__ (32)));
26600 __v4di
26601 mm256_is32_andnotsi256 (__v4di __X, __v4di __Y)
26602 {
26603 return __builtin_ia32_andnotsi256 (__X, __Y);
26604 }
26605 int
26606 main ()
26607 {
26608
26609 ;
26610 return 0;
26611 }
26612 _ACEOF
26613 if ac_fn_c_try_compile "$LINENO"; then :
26614
26615 $as_echo "#define HAVE_AVX2 1" >>confdefs.h
26616
26617 fi
26618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26619 CFLAGS="$ac_save_CFLAGS"
26620
26621
26622 # Check wether we support AVX512f extensions
26623
26624 ac_save_CFLAGS="$CFLAGS"
26625 CFLAGS="-O2 -mavx512f"
26626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26627 /* end confdefs.h. */
26628
26629 typedef double __m512d __attribute__ ((__vector_size__ (64)));
26630 __m512d _mm512_add (__m512d a)
26631 {
26632 __m512d b = __builtin_ia32_addpd512_mask (a, a, a, 1, 4);
26633 /* For -m64/-mx32 also verify that code will work even if
26634 the target uses call saved zmm16+ and needs to emit
26635 unwind info for them (e.g. on mingw). See PR79127. */
26636 #ifdef __x86_64__
26637 asm volatile ("" : : : "zmm16", "zmm17", "zmm18", "zmm19");
26638 #endif
26639 return b;
26640 }
26641 int
26642 main ()
26643 {
26644
26645 ;
26646 return 0;
26647 }
26648 _ACEOF
26649 if ac_fn_c_try_compile "$LINENO"; then :
26650
26651 $as_echo "#define HAVE_AVX512F 1" >>confdefs.h
26652
26653 fi
26654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26655 CFLAGS="$ac_save_CFLAGS"
26656
26657
26658 # Check for FMA3 extensions
26659
26660 ac_save_CFLAGS="$CFLAGS"
26661 CFLAGS="-O2 -mfma -mno-fma4"
26662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26663 /* end confdefs.h. */
26664
26665 typedef float __m128 __attribute__ ((__vector_size__ (16)));
26666 typedef float __v4sf __attribute__ ((__vector_size__ (16)));
26667 __m128 _mm_macc_ps(__m128 __A, __m128 __B, __m128 __C)
26668 {
26669 return (__m128) __builtin_ia32_vfmaddps ((__v4sf)__A,
26670 (__v4sf)__B,
26671 (__v4sf)__C);
26672 }
26673 int
26674 main ()
26675 {
26676
26677 ;
26678 return 0;
26679 }
26680 _ACEOF
26681 if ac_fn_c_try_compile "$LINENO"; then :
26682
26683 $as_echo "#define HAVE_FMA3 1" >>confdefs.h
26684
26685 fi
26686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26687 CFLAGS="$ac_save_CFLAGS"
26688
26689
26690 # Check for FMA4 extensions
26691
26692 ac_save_CFLAGS="$CFLAGS"
26693 CFLAGS="-O2 -mfma4 -mno-fma"
26694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26695 /* end confdefs.h. */
26696
26697 typedef float __m128 __attribute__ ((__vector_size__ (16)));
26698 typedef float __v4sf __attribute__ ((__vector_size__ (16)));
26699 __m128 _mm_macc_ps(__m128 __A, __m128 __B, __m128 __C)
26700 {
26701 return (__m128) __builtin_ia32_vfmaddps ((__v4sf)__A,
26702 (__v4sf)__B,
26703 (__v4sf)__C);
26704 }
26705 int
26706 main ()
26707 {
26708
26709 ;
26710 return 0;
26711 }
26712 _ACEOF
26713 if ac_fn_c_try_compile "$LINENO"; then :
26714
26715 $as_echo "#define HAVE_FMA4 1" >>confdefs.h
26716
26717 fi
26718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26719 CFLAGS="$ac_save_CFLAGS"
26720
26721
26722 # Check if AVX128 works
26723
26724 ac_save_CFLAGS="$CFLAGS"
26725 CFLAGS="-O2 -mavx -mprefer-avx128"
26726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26727 /* end confdefs.h. */
26728
26729 void foo()
26730 {
26731 }
26732 int
26733 main ()
26734 {
26735
26736 ;
26737 return 0;
26738 }
26739 _ACEOF
26740 if ac_fn_c_try_compile "$LINENO"; then :
26741
26742 $as_echo "#define HAVE_AVX128 1" >>confdefs.h
26743
26744 if true; then
26745 HAVE_AVX128_TRUE=
26746 HAVE_AVX128_FALSE='#'
26747 else
26748 HAVE_AVX128_TRUE='#'
26749 HAVE_AVX128_FALSE=
26750 fi
26751
26752 else
26753 if false; then
26754 HAVE_AVX128_TRUE=
26755 HAVE_AVX128_FALSE='#'
26756 else
26757 HAVE_AVX128_TRUE='#'
26758 HAVE_AVX128_FALSE=
26759 fi
26760
26761 fi
26762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26763 CFLAGS="$ac_save_CFLAGS"
26764
26765
26766 # Determine what GCC version number to use in filesystem paths.
26767
26768 get_gcc_base_ver="cat"
26769
26770 # Check whether --with-gcc-major-version-only was given.
26771 if test "${with_gcc_major_version_only+set}" = set; then :
26772 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
26773 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
26774 fi
26775
26776 fi
26777
26778
26779
26780
26781 cat >confcache <<\_ACEOF
26782 # This file is a shell script that caches the results of configure
26783 # tests run on this system so they can be shared between configure
26784 # scripts and configure runs, see configure's option --config-cache.
26785 # It is not useful on other systems. If it contains results you don't
26786 # want to keep, you may remove or edit it.
26787 #
26788 # config.status only pays attention to the cache file if you give it
26789 # the --recheck option to rerun configure.
26790 #
26791 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26792 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26793 # following values.
26794
26795 _ACEOF
26796
26797 # The following way of writing the cache mishandles newlines in values,
26798 # but we know of no workaround that is simple, portable, and efficient.
26799 # So, we kill variables containing newlines.
26800 # Ultrix sh set writes to stderr and can't be redirected directly,
26801 # and sets the high bit in the cache file unless we assign to the vars.
26802 (
26803 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26804 eval ac_val=\$$ac_var
26805 case $ac_val in #(
26806 *${as_nl}*)
26807 case $ac_var in #(
26808 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26809 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26810 esac
26811 case $ac_var in #(
26812 _ | IFS | as_nl) ;; #(
26813 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26814 *) { eval $ac_var=; unset $ac_var;} ;;
26815 esac ;;
26816 esac
26817 done
26818
26819 (set) 2>&1 |
26820 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26821 *${as_nl}ac_space=\ *)
26822 # `set' does not quote correctly, so add quotes: double-quote
26823 # substitution turns \\\\ into \\, and sed turns \\ into \.
26824 sed -n \
26825 "s/'/'\\\\''/g;
26826 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26827 ;; #(
26828 *)
26829 # `set' quotes correctly as required by POSIX, so do not add quotes.
26830 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26831 ;;
26832 esac |
26833 sort
26834 ) |
26835 sed '
26836 /^ac_cv_env_/b end
26837 t clear
26838 :clear
26839 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26840 t end
26841 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26842 :end' >>confcache
26843 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26844 if test -w "$cache_file"; then
26845 if test "x$cache_file" != "x/dev/null"; then
26846 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26847 $as_echo "$as_me: updating cache $cache_file" >&6;}
26848 if test ! -f "$cache_file" || test -h "$cache_file"; then
26849 cat confcache >"$cache_file"
26850 else
26851 case $cache_file in #(
26852 */* | ?:*)
26853 mv -f confcache "$cache_file"$$ &&
26854 mv -f "$cache_file"$$ "$cache_file" ;; #(
26855 *)
26856 mv -f confcache "$cache_file" ;;
26857 esac
26858 fi
26859 fi
26860 else
26861 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26862 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26863 fi
26864 fi
26865 rm -f confcache
26866
26867 if test ${multilib} = yes; then
26868 multilib_arg="--enable-multilib"
26869 else
26870 multilib_arg=
26871 fi
26872
26873 # Write our Makefile and spec file.
26874 ac_config_files="$ac_config_files Makefile libgfortran.spec"
26875
26876 cat >confcache <<\_ACEOF
26877 # This file is a shell script that caches the results of configure
26878 # tests run on this system so they can be shared between configure
26879 # scripts and configure runs, see configure's option --config-cache.
26880 # It is not useful on other systems. If it contains results you don't
26881 # want to keep, you may remove or edit it.
26882 #
26883 # config.status only pays attention to the cache file if you give it
26884 # the --recheck option to rerun configure.
26885 #
26886 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26887 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26888 # following values.
26889
26890 _ACEOF
26891
26892 # The following way of writing the cache mishandles newlines in values,
26893 # but we know of no workaround that is simple, portable, and efficient.
26894 # So, we kill variables containing newlines.
26895 # Ultrix sh set writes to stderr and can't be redirected directly,
26896 # and sets the high bit in the cache file unless we assign to the vars.
26897 (
26898 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26899 eval ac_val=\$$ac_var
26900 case $ac_val in #(
26901 *${as_nl}*)
26902 case $ac_var in #(
26903 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26904 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26905 esac
26906 case $ac_var in #(
26907 _ | IFS | as_nl) ;; #(
26908 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26909 *) { eval $ac_var=; unset $ac_var;} ;;
26910 esac ;;
26911 esac
26912 done
26913
26914 (set) 2>&1 |
26915 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26916 *${as_nl}ac_space=\ *)
26917 # `set' does not quote correctly, so add quotes: double-quote
26918 # substitution turns \\\\ into \\, and sed turns \\ into \.
26919 sed -n \
26920 "s/'/'\\\\''/g;
26921 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26922 ;; #(
26923 *)
26924 # `set' quotes correctly as required by POSIX, so do not add quotes.
26925 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26926 ;;
26927 esac |
26928 sort
26929 ) |
26930 sed '
26931 /^ac_cv_env_/b end
26932 t clear
26933 :clear
26934 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26935 t end
26936 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26937 :end' >>confcache
26938 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26939 if test -w "$cache_file"; then
26940 if test "x$cache_file" != "x/dev/null"; then
26941 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26942 $as_echo "$as_me: updating cache $cache_file" >&6;}
26943 if test ! -f "$cache_file" || test -h "$cache_file"; then
26944 cat confcache >"$cache_file"
26945 else
26946 case $cache_file in #(
26947 */* | ?:*)
26948 mv -f confcache "$cache_file"$$ &&
26949 mv -f "$cache_file"$$ "$cache_file" ;; #(
26950 *)
26951 mv -f confcache "$cache_file" ;;
26952 esac
26953 fi
26954 fi
26955 else
26956 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26957 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26958 fi
26959 fi
26960 rm -f confcache
26961
26962 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26963 # Let make expand exec_prefix.
26964 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26965
26966 DEFS=-DHAVE_CONFIG_H
26967
26968 ac_libobjs=
26969 ac_ltlibobjs=
26970 U=
26971 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26972 # 1. Remove the extension, and $U if already installed.
26973 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26974 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26975 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26976 # will be set to the directory where LIBOBJS objects are built.
26977 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26978 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26979 done
26980 LIBOBJS=$ac_libobjs
26981
26982 LTLIBOBJS=$ac_ltlibobjs
26983
26984
26985 if test -z "${onestep_TRUE}" && test -z "${onestep_FALSE}"; then
26986 as_fn_error $? "conditional \"onestep\" was never defined.
26987 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26988 fi
26989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
26990 $as_echo_n "checking that generated files are newer than configure... " >&6; }
26991 if test -n "$am_sleep_pid"; then
26992 # Hide warnings about reused PIDs.
26993 wait $am_sleep_pid 2>/dev/null
26994 fi
26995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
26996 $as_echo "done" >&6; }
26997 if test -n "$EXEEXT"; then
26998 am__EXEEXT_TRUE=
26999 am__EXEEXT_FALSE='#'
27000 else
27001 am__EXEEXT_TRUE='#'
27002 am__EXEEXT_FALSE=
27003 fi
27004
27005 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27006 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
27007 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27008 fi
27009 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27010 as_fn_error $? "conditional \"AMDEP\" was never defined.
27011 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27012 fi
27013 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27014 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
27015 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27016 fi
27017 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27018 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
27019 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27020 fi
27021 if test -z "${LIBGFOR_USE_SYMVER_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_FALSE}"; then
27022 as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER\" was never defined.
27023 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27024 fi
27025 if test -z "${LIBGFOR_USE_SYMVER_GNU_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_GNU_FALSE}"; then
27026 as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER_GNU\" was never defined.
27027 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27028 fi
27029 if test -z "${LIBGFOR_USE_SYMVER_SUN_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_SUN_FALSE}"; then
27030 as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER_SUN\" was never defined.
27031 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27032 fi
27033 if test -z "${LIBGFOR_MINIMAL_TRUE}" && test -z "${LIBGFOR_MINIMAL_FALSE}"; then
27034 as_fn_error $? "conditional \"LIBGFOR_MINIMAL\" was never defined.
27035 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27036 fi
27037 if test -z "${HAVE_HWCAP_TRUE}" && test -z "${HAVE_HWCAP_FALSE}"; then
27038 as_fn_error $? "conditional \"HAVE_HWCAP\" was never defined.
27039 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27040 fi
27041 if test -z "${LIBGFOR_BUILD_QUAD_TRUE}" && test -z "${LIBGFOR_BUILD_QUAD_FALSE}"; then
27042 as_fn_error $? "conditional \"LIBGFOR_BUILD_QUAD\" was never defined.
27043 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27044 fi
27045 if test -z "${IEEE_SUPPORT_TRUE}" && test -z "${IEEE_SUPPORT_FALSE}"; then
27046 as_fn_error $? "conditional \"IEEE_SUPPORT\" was never defined.
27047 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27048 fi
27049 if test -z "${HAVE_AVX128_TRUE}" && test -z "${HAVE_AVX128_FALSE}"; then
27050 as_fn_error $? "conditional \"HAVE_AVX128\" was never defined.
27051 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27052 fi
27053 if test -z "${HAVE_AVX128_TRUE}" && test -z "${HAVE_AVX128_FALSE}"; then
27054 as_fn_error $? "conditional \"HAVE_AVX128\" was never defined.
27055 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27056 fi
27057
27058 : "${CONFIG_STATUS=./config.status}"
27059 ac_write_fail=0
27060 ac_clean_files_save=$ac_clean_files
27061 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27062 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27063 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27064 as_write_fail=0
27065 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27066 #! $SHELL
27067 # Generated by $as_me.
27068 # Run this file to recreate the current configuration.
27069 # Compiler output produced by configure, useful for debugging
27070 # configure, is in config.log if it exists.
27071
27072 debug=false
27073 ac_cs_recheck=false
27074 ac_cs_silent=false
27075
27076 SHELL=\${CONFIG_SHELL-$SHELL}
27077 export SHELL
27078 _ASEOF
27079 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27080 ## -------------------- ##
27081 ## M4sh Initialization. ##
27082 ## -------------------- ##
27083
27084 # Be more Bourne compatible
27085 DUALCASE=1; export DUALCASE # for MKS sh
27086 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27087 emulate sh
27088 NULLCMD=:
27089 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27090 # is contrary to our usage. Disable this feature.
27091 alias -g '${1+"$@"}'='"$@"'
27092 setopt NO_GLOB_SUBST
27093 else
27094 case `(set -o) 2>/dev/null` in #(
27095 *posix*) :
27096 set -o posix ;; #(
27097 *) :
27098 ;;
27099 esac
27100 fi
27101
27102
27103 as_nl='
27104 '
27105 export as_nl
27106 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27107 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27108 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27109 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27110 # Prefer a ksh shell builtin over an external printf program on Solaris,
27111 # but without wasting forks for bash or zsh.
27112 if test -z "$BASH_VERSION$ZSH_VERSION" \
27113 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27114 as_echo='print -r --'
27115 as_echo_n='print -rn --'
27116 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27117 as_echo='printf %s\n'
27118 as_echo_n='printf %s'
27119 else
27120 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27121 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27122 as_echo_n='/usr/ucb/echo -n'
27123 else
27124 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27125 as_echo_n_body='eval
27126 arg=$1;
27127 case $arg in #(
27128 *"$as_nl"*)
27129 expr "X$arg" : "X\\(.*\\)$as_nl";
27130 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27131 esac;
27132 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27133 '
27134 export as_echo_n_body
27135 as_echo_n='sh -c $as_echo_n_body as_echo'
27136 fi
27137 export as_echo_body
27138 as_echo='sh -c $as_echo_body as_echo'
27139 fi
27140
27141 # The user is always right.
27142 if test "${PATH_SEPARATOR+set}" != set; then
27143 PATH_SEPARATOR=:
27144 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27145 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27146 PATH_SEPARATOR=';'
27147 }
27148 fi
27149
27150
27151 # IFS
27152 # We need space, tab and new line, in precisely that order. Quoting is
27153 # there to prevent editors from complaining about space-tab.
27154 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27155 # splitting by setting IFS to empty value.)
27156 IFS=" "" $as_nl"
27157
27158 # Find who we are. Look in the path if we contain no directory separator.
27159 as_myself=
27160 case $0 in #((
27161 *[\\/]* ) as_myself=$0 ;;
27162 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27163 for as_dir in $PATH
27164 do
27165 IFS=$as_save_IFS
27166 test -z "$as_dir" && as_dir=.
27167 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27168 done
27169 IFS=$as_save_IFS
27170
27171 ;;
27172 esac
27173 # We did not find ourselves, most probably we were run as `sh COMMAND'
27174 # in which case we are not to be found in the path.
27175 if test "x$as_myself" = x; then
27176 as_myself=$0
27177 fi
27178 if test ! -f "$as_myself"; then
27179 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27180 exit 1
27181 fi
27182
27183 # Unset variables that we do not need and which cause bugs (e.g. in
27184 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27185 # suppresses any "Segmentation fault" message there. '((' could
27186 # trigger a bug in pdksh 5.2.14.
27187 for as_var in BASH_ENV ENV MAIL MAILPATH
27188 do eval test x\${$as_var+set} = xset \
27189 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27190 done
27191 PS1='$ '
27192 PS2='> '
27193 PS4='+ '
27194
27195 # NLS nuisances.
27196 LC_ALL=C
27197 export LC_ALL
27198 LANGUAGE=C
27199 export LANGUAGE
27200
27201 # CDPATH.
27202 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27203
27204
27205 # as_fn_error STATUS ERROR [LINENO LOG_FD]
27206 # ----------------------------------------
27207 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27208 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27209 # script with STATUS, using 1 if that was 0.
27210 as_fn_error ()
27211 {
27212 as_status=$1; test $as_status -eq 0 && as_status=1
27213 if test "$4"; then
27214 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27215 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
27216 fi
27217 $as_echo "$as_me: error: $2" >&2
27218 as_fn_exit $as_status
27219 } # as_fn_error
27220
27221
27222 # as_fn_set_status STATUS
27223 # -----------------------
27224 # Set $? to STATUS, without forking.
27225 as_fn_set_status ()
27226 {
27227 return $1
27228 } # as_fn_set_status
27229
27230 # as_fn_exit STATUS
27231 # -----------------
27232 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27233 as_fn_exit ()
27234 {
27235 set +e
27236 as_fn_set_status $1
27237 exit $1
27238 } # as_fn_exit
27239
27240 # as_fn_unset VAR
27241 # ---------------
27242 # Portably unset VAR.
27243 as_fn_unset ()
27244 {
27245 { eval $1=; unset $1;}
27246 }
27247 as_unset=as_fn_unset
27248 # as_fn_append VAR VALUE
27249 # ----------------------
27250 # Append the text in VALUE to the end of the definition contained in VAR. Take
27251 # advantage of any shell optimizations that allow amortized linear growth over
27252 # repeated appends, instead of the typical quadratic growth present in naive
27253 # implementations.
27254 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27255 eval 'as_fn_append ()
27256 {
27257 eval $1+=\$2
27258 }'
27259 else
27260 as_fn_append ()
27261 {
27262 eval $1=\$$1\$2
27263 }
27264 fi # as_fn_append
27265
27266 # as_fn_arith ARG...
27267 # ------------------
27268 # Perform arithmetic evaluation on the ARGs, and store the result in the
27269 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27270 # must be portable across $(()) and expr.
27271 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27272 eval 'as_fn_arith ()
27273 {
27274 as_val=$(( $* ))
27275 }'
27276 else
27277 as_fn_arith ()
27278 {
27279 as_val=`expr "$@" || test $? -eq 1`
27280 }
27281 fi # as_fn_arith
27282
27283
27284 if expr a : '\(a\)' >/dev/null 2>&1 &&
27285 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27286 as_expr=expr
27287 else
27288 as_expr=false
27289 fi
27290
27291 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27292 as_basename=basename
27293 else
27294 as_basename=false
27295 fi
27296
27297 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27298 as_dirname=dirname
27299 else
27300 as_dirname=false
27301 fi
27302
27303 as_me=`$as_basename -- "$0" ||
27304 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27305 X"$0" : 'X\(//\)$' \| \
27306 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27307 $as_echo X/"$0" |
27308 sed '/^.*\/\([^/][^/]*\)\/*$/{
27309 s//\1/
27310 q
27311 }
27312 /^X\/\(\/\/\)$/{
27313 s//\1/
27314 q
27315 }
27316 /^X\/\(\/\).*/{
27317 s//\1/
27318 q
27319 }
27320 s/.*/./; q'`
27321
27322 # Avoid depending upon Character Ranges.
27323 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27324 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27325 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27326 as_cr_digits='0123456789'
27327 as_cr_alnum=$as_cr_Letters$as_cr_digits
27328
27329 ECHO_C= ECHO_N= ECHO_T=
27330 case `echo -n x` in #(((((
27331 -n*)
27332 case `echo 'xy\c'` in
27333 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27334 xy) ECHO_C='\c';;
27335 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27336 ECHO_T=' ';;
27337 esac;;
27338 *)
27339 ECHO_N='-n';;
27340 esac
27341
27342 rm -f conf$$ conf$$.exe conf$$.file
27343 if test -d conf$$.dir; then
27344 rm -f conf$$.dir/conf$$.file
27345 else
27346 rm -f conf$$.dir
27347 mkdir conf$$.dir 2>/dev/null
27348 fi
27349 if (echo >conf$$.file) 2>/dev/null; then
27350 if ln -s conf$$.file conf$$ 2>/dev/null; then
27351 as_ln_s='ln -s'
27352 # ... but there are two gotchas:
27353 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27354 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27355 # In both cases, we have to default to `cp -pR'.
27356 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27357 as_ln_s='cp -pR'
27358 elif ln conf$$.file conf$$ 2>/dev/null; then
27359 as_ln_s=ln
27360 else
27361 as_ln_s='cp -pR'
27362 fi
27363 else
27364 as_ln_s='cp -pR'
27365 fi
27366 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27367 rmdir conf$$.dir 2>/dev/null
27368
27369
27370 # as_fn_mkdir_p
27371 # -------------
27372 # Create "$as_dir" as a directory, including parents if necessary.
27373 as_fn_mkdir_p ()
27374 {
27375
27376 case $as_dir in #(
27377 -*) as_dir=./$as_dir;;
27378 esac
27379 test -d "$as_dir" || eval $as_mkdir_p || {
27380 as_dirs=
27381 while :; do
27382 case $as_dir in #(
27383 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27384 *) as_qdir=$as_dir;;
27385 esac
27386 as_dirs="'$as_qdir' $as_dirs"
27387 as_dir=`$as_dirname -- "$as_dir" ||
27388 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27389 X"$as_dir" : 'X\(//\)[^/]' \| \
27390 X"$as_dir" : 'X\(//\)$' \| \
27391 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27392 $as_echo X"$as_dir" |
27393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27394 s//\1/
27395 q
27396 }
27397 /^X\(\/\/\)[^/].*/{
27398 s//\1/
27399 q
27400 }
27401 /^X\(\/\/\)$/{
27402 s//\1/
27403 q
27404 }
27405 /^X\(\/\).*/{
27406 s//\1/
27407 q
27408 }
27409 s/.*/./; q'`
27410 test -d "$as_dir" && break
27411 done
27412 test -z "$as_dirs" || eval "mkdir $as_dirs"
27413 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
27414
27415
27416 } # as_fn_mkdir_p
27417 if mkdir -p . 2>/dev/null; then
27418 as_mkdir_p='mkdir -p "$as_dir"'
27419 else
27420 test -d ./-p && rmdir ./-p
27421 as_mkdir_p=false
27422 fi
27423
27424
27425 # as_fn_executable_p FILE
27426 # -----------------------
27427 # Test if FILE is an executable regular file.
27428 as_fn_executable_p ()
27429 {
27430 test -f "$1" && test -x "$1"
27431 } # as_fn_executable_p
27432 as_test_x='test -x'
27433 as_executable_p=as_fn_executable_p
27434
27435 # Sed expression to map a string onto a valid CPP name.
27436 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27437
27438 # Sed expression to map a string onto a valid variable name.
27439 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27440
27441
27442 exec 6>&1
27443 ## ----------------------------------- ##
27444 ## Main body of $CONFIG_STATUS script. ##
27445 ## ----------------------------------- ##
27446 _ASEOF
27447 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27448
27449 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27450 # Save the log message, to keep $0 and so on meaningful, and to
27451 # report actual input values of CONFIG_FILES etc. instead of their
27452 # values after options handling.
27453 ac_log="
27454 This file was extended by GNU Fortran Runtime Library $as_me 0.3, which was
27455 generated by GNU Autoconf 2.69. Invocation command line was
27456
27457 CONFIG_FILES = $CONFIG_FILES
27458 CONFIG_HEADERS = $CONFIG_HEADERS
27459 CONFIG_LINKS = $CONFIG_LINKS
27460 CONFIG_COMMANDS = $CONFIG_COMMANDS
27461 $ $0 $@
27462
27463 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27464 "
27465
27466 _ACEOF
27467
27468 case $ac_config_files in *"
27469 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27470 esac
27471
27472 case $ac_config_headers in *"
27473 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27474 esac
27475
27476
27477 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27478 # Files that config.status was made for.
27479 config_files="$ac_config_files"
27480 config_headers="$ac_config_headers"
27481 config_commands="$ac_config_commands"
27482
27483 _ACEOF
27484
27485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27486 ac_cs_usage="\
27487 \`$as_me' instantiates files and other configuration actions
27488 from templates according to the current configuration. Unless the files
27489 and actions are specified as TAGs, all are instantiated by default.
27490
27491 Usage: $0 [OPTION]... [TAG]...
27492
27493 -h, --help print this help, then exit
27494 -V, --version print version number and configuration settings, then exit
27495 --config print configuration, then exit
27496 -q, --quiet, --silent
27497 do not print progress messages
27498 -d, --debug don't remove temporary files
27499 --recheck update $as_me by reconfiguring in the same conditions
27500 --file=FILE[:TEMPLATE]
27501 instantiate the configuration file FILE
27502 --header=FILE[:TEMPLATE]
27503 instantiate the configuration header FILE
27504
27505 Configuration files:
27506 $config_files
27507
27508 Configuration headers:
27509 $config_headers
27510
27511 Configuration commands:
27512 $config_commands
27513
27514 Report bugs to the package provider.
27515 GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
27516 General help using GNU software: <http://www.gnu.org/gethelp/>."
27517
27518 _ACEOF
27519 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27520 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
27521 ac_cs_version="\\
27522 GNU Fortran Runtime Library config.status 0.3
27523 configured by $0, generated by GNU Autoconf 2.69,
27524 with options \\"\$ac_cs_config\\"
27525
27526 Copyright (C) 2012 Free Software Foundation, Inc.
27527 This config.status script is free software; the Free Software Foundation
27528 gives unlimited permission to copy, distribute and modify it."
27529
27530 ac_pwd='$ac_pwd'
27531 srcdir='$srcdir'
27532 INSTALL='$INSTALL'
27533 MKDIR_P='$MKDIR_P'
27534 AWK='$AWK'
27535 test -n "\$AWK" || AWK=awk
27536 _ACEOF
27537
27538 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27539 # The default lists apply if the user does not specify any file.
27540 ac_need_defaults=:
27541 while test $# != 0
27542 do
27543 case $1 in
27544 --*=?*)
27545 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27546 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27547 ac_shift=:
27548 ;;
27549 --*=)
27550 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27551 ac_optarg=
27552 ac_shift=:
27553 ;;
27554 *)
27555 ac_option=$1
27556 ac_optarg=$2
27557 ac_shift=shift
27558 ;;
27559 esac
27560
27561 case $ac_option in
27562 # Handling of the options.
27563 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27564 ac_cs_recheck=: ;;
27565 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27566 $as_echo "$ac_cs_version"; exit ;;
27567 --config | --confi | --conf | --con | --co | --c )
27568 $as_echo "$ac_cs_config"; exit ;;
27569 --debug | --debu | --deb | --de | --d | -d )
27570 debug=: ;;
27571 --file | --fil | --fi | --f )
27572 $ac_shift
27573 case $ac_optarg in
27574 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27575 '') as_fn_error $? "missing file argument" ;;
27576 esac
27577 as_fn_append CONFIG_FILES " '$ac_optarg'"
27578 ac_need_defaults=false;;
27579 --header | --heade | --head | --hea )
27580 $ac_shift
27581 case $ac_optarg in
27582 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27583 esac
27584 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27585 ac_need_defaults=false;;
27586 --he | --h)
27587 # Conflict between --help and --header
27588 as_fn_error $? "ambiguous option: \`$1'
27589 Try \`$0 --help' for more information.";;
27590 --help | --hel | -h )
27591 $as_echo "$ac_cs_usage"; exit ;;
27592 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27593 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27594 ac_cs_silent=: ;;
27595
27596 # This is an error.
27597 -*) as_fn_error $? "unrecognized option: \`$1'
27598 Try \`$0 --help' for more information." ;;
27599
27600 *) as_fn_append ac_config_targets " $1"
27601 ac_need_defaults=false ;;
27602
27603 esac
27604 shift
27605 done
27606
27607 ac_configure_extra_args=
27608
27609 if $ac_cs_silent; then
27610 exec 6>/dev/null
27611 ac_configure_extra_args="$ac_configure_extra_args --silent"
27612 fi
27613
27614 _ACEOF
27615 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27616 if \$ac_cs_recheck; then
27617 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27618 shift
27619 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27620 CONFIG_SHELL='$SHELL'
27621 export CONFIG_SHELL
27622 exec "\$@"
27623 fi
27624
27625 _ACEOF
27626 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27627 exec 5>>config.log
27628 {
27629 echo
27630 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27631 ## Running $as_me. ##
27632 _ASBOX
27633 $as_echo "$ac_log"
27634 } >&5
27635
27636 _ACEOF
27637 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27638 #
27639 # INIT-COMMANDS
27640 #
27641
27642 srcdir="$srcdir"
27643 host="$host"
27644 target="$target"
27645 with_multisubdir="$with_multisubdir"
27646 with_multisrctop="$with_multisrctop"
27647 with_target_subdir="$with_target_subdir"
27648 ac_configure_args="${multilib_arg} ${ac_configure_args}"
27649 multi_basedir="$multi_basedir"
27650 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
27651 CC="$CC"
27652 CXX="$CXX"
27653 GFORTRAN="$GFORTRAN"
27654 GDC="$GDC"
27655 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27656
27657
27658 # The HP-UX ksh and POSIX shell print the target directory to stdout
27659 # if CDPATH is set.
27660 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27661
27662 sed_quote_subst='$sed_quote_subst'
27663 double_quote_subst='$double_quote_subst'
27664 delay_variable_subst='$delay_variable_subst'
27665 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
27666 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
27667 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
27668 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
27669 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
27670 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27671 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27672 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
27673 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
27674 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
27675 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
27676 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27677 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27678 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
27679 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27680 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27681 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
27682 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
27683 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
27684 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
27685 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27686 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27687 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27688 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27689 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27690 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27691 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27692 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27693 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27694 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27695 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
27696 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27697 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27698 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27699 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27700 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27701 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27702 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27703 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27704 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27705 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27706 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27707 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27708 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27709 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27710 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27711 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27712 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27713 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"`'
27714 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27715 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27716 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27717 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27718 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27719 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27720 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27721 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27722 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27723 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27724 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27725 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27726 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27727 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27728 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27729 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27730 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27731 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27732 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27733 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27734 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27735 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
27736 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27737 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27738 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27739 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27740 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27741 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27742 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27743 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27744 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27745 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
27746 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27747 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27748 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27749 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27750 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27751 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27752 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27753 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27754 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
27755 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27756 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27757 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27758 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27759 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27760 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27761 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27762 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27763 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27764 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27765 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27766 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27767 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27768 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27769 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27770 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27771 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27772 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27773 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27774 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27775 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27776 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27777 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27778 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
27779 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27780 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27781 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27782 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27783 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27784 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27785 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
27786 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
27787 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
27788 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
27789 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
27790 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
27791 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
27792 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
27793 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
27794 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
27795 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
27796 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
27797 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
27798 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
27799 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
27800 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
27801 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
27802 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
27803 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
27804 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27805 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27806 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
27807 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
27808 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
27809 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
27810 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
27811 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
27812 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
27813 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
27814 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
27815 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
27816 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27817 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
27818 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
27819 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
27820 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
27821 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
27822 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
27823 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
27824 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
27825 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
27826 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
27827 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
27828 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
27829 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
27830 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
27831 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
27832 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
27833 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
27834 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
27835 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
27836 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
27837 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
27838 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
27839 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
27840
27841 LTCC='$LTCC'
27842 LTCFLAGS='$LTCFLAGS'
27843 compiler='$compiler_DEFAULT'
27844
27845 # A function that is used when there is no print builtin or printf.
27846 func_fallback_echo ()
27847 {
27848 eval 'cat <<_LTECHO_EOF
27849 \$1
27850 _LTECHO_EOF'
27851 }
27852
27853 # Quote evaled strings.
27854 for var in SED \
27855 GREP \
27856 EGREP \
27857 FGREP \
27858 SHELL \
27859 ECHO \
27860 LD \
27861 NM \
27862 LN_S \
27863 lt_SP2NL \
27864 lt_NL2SP \
27865 reload_flag \
27866 OBJDUMP \
27867 deplibs_check_method \
27868 file_magic_cmd \
27869 AR \
27870 AR_FLAGS \
27871 STRIP \
27872 RANLIB \
27873 CC \
27874 CFLAGS \
27875 compiler \
27876 lt_cv_sys_global_symbol_pipe \
27877 lt_cv_sys_global_symbol_to_cdecl \
27878 lt_cv_sys_global_symbol_to_c_name_address \
27879 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27880 lt_prog_compiler_no_builtin_flag \
27881 lt_prog_compiler_wl \
27882 lt_prog_compiler_pic \
27883 lt_prog_compiler_static \
27884 lt_cv_prog_compiler_c_o \
27885 need_locks \
27886 DSYMUTIL \
27887 NMEDIT \
27888 LIPO \
27889 OTOOL \
27890 OTOOL64 \
27891 shrext_cmds \
27892 export_dynamic_flag_spec \
27893 whole_archive_flag_spec \
27894 compiler_needs_object \
27895 with_gnu_ld \
27896 allow_undefined_flag \
27897 no_undefined_flag \
27898 hardcode_libdir_flag_spec \
27899 hardcode_libdir_flag_spec_ld \
27900 hardcode_libdir_separator \
27901 fix_srcfile_path \
27902 exclude_expsyms \
27903 include_expsyms \
27904 file_list_spec \
27905 variables_saved_for_relink \
27906 libname_spec \
27907 library_names_spec \
27908 soname_spec \
27909 install_override_mode \
27910 finish_eval \
27911 old_striplib \
27912 striplib \
27913 compiler_lib_search_dirs \
27914 predep_objects \
27915 postdep_objects \
27916 predeps \
27917 postdeps \
27918 compiler_lib_search_path \
27919 LD_FC \
27920 reload_flag_FC \
27921 compiler_FC \
27922 lt_prog_compiler_no_builtin_flag_FC \
27923 lt_prog_compiler_wl_FC \
27924 lt_prog_compiler_pic_FC \
27925 lt_prog_compiler_static_FC \
27926 lt_cv_prog_compiler_c_o_FC \
27927 export_dynamic_flag_spec_FC \
27928 whole_archive_flag_spec_FC \
27929 compiler_needs_object_FC \
27930 with_gnu_ld_FC \
27931 allow_undefined_flag_FC \
27932 no_undefined_flag_FC \
27933 hardcode_libdir_flag_spec_FC \
27934 hardcode_libdir_flag_spec_ld_FC \
27935 hardcode_libdir_separator_FC \
27936 fix_srcfile_path_FC \
27937 exclude_expsyms_FC \
27938 include_expsyms_FC \
27939 file_list_spec_FC \
27940 compiler_lib_search_dirs_FC \
27941 predep_objects_FC \
27942 postdep_objects_FC \
27943 predeps_FC \
27944 postdeps_FC \
27945 compiler_lib_search_path_FC; do
27946 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27947 *[\\\\\\\`\\"\\\$]*)
27948 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
27949 ;;
27950 *)
27951 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27952 ;;
27953 esac
27954 done
27955
27956 # Double-quote double-evaled strings.
27957 for var in reload_cmds \
27958 old_postinstall_cmds \
27959 old_postuninstall_cmds \
27960 old_archive_cmds \
27961 extract_expsyms_cmds \
27962 old_archive_from_new_cmds \
27963 old_archive_from_expsyms_cmds \
27964 archive_cmds \
27965 archive_expsym_cmds \
27966 module_cmds \
27967 module_expsym_cmds \
27968 export_symbols_cmds \
27969 prelink_cmds \
27970 postinstall_cmds \
27971 postuninstall_cmds \
27972 finish_cmds \
27973 sys_lib_search_path_spec \
27974 sys_lib_dlsearch_path_spec \
27975 reload_cmds_FC \
27976 old_archive_cmds_FC \
27977 old_archive_from_new_cmds_FC \
27978 old_archive_from_expsyms_cmds_FC \
27979 archive_cmds_FC \
27980 archive_expsym_cmds_FC \
27981 module_cmds_FC \
27982 module_expsym_cmds_FC \
27983 export_symbols_cmds_FC \
27984 prelink_cmds_FC; do
27985 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27986 *[\\\\\\\`\\"\\\$]*)
27987 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
27988 ;;
27989 *)
27990 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27991 ;;
27992 esac
27993 done
27994
27995 ac_aux_dir='$ac_aux_dir'
27996 xsi_shell='$xsi_shell'
27997 lt_shell_append='$lt_shell_append'
27998
27999 # See if we are running on zsh, and set the options which allow our
28000 # commands through without removal of \ escapes INIT.
28001 if test -n "\${ZSH_VERSION+set}" ; then
28002 setopt NO_GLOB_SUBST
28003 fi
28004
28005
28006 PACKAGE='$PACKAGE'
28007 VERSION='$VERSION'
28008 TIMESTAMP='$TIMESTAMP'
28009 RM='$RM'
28010 ofile='$ofile'
28011
28012
28013
28014
28015
28016
28017 GCC="$GCC"
28018 CC="$CC"
28019 acx_cv_header_stdint="$acx_cv_header_stdint"
28020 acx_cv_type_int8_t="$acx_cv_type_int8_t"
28021 acx_cv_type_int16_t="$acx_cv_type_int16_t"
28022 acx_cv_type_int32_t="$acx_cv_type_int32_t"
28023 acx_cv_type_int64_t="$acx_cv_type_int64_t"
28024 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
28025 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
28026 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
28027 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
28028 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
28029 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
28030 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
28031 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
28032 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
28033
28034
28035 _ACEOF
28036
28037 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28038
28039 # Handling of arguments.
28040 for ac_config_target in $ac_config_targets
28041 do
28042 case $ac_config_target in
28043 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
28044 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
28045 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28046 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
28047 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
28048 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28049 "libgfortran.spec") CONFIG_FILES="$CONFIG_FILES libgfortran.spec" ;;
28050
28051 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28052 esac
28053 done
28054
28055
28056 # If the user did not use the arguments to specify the items to instantiate,
28057 # then the envvar interface is used. Set only those that are not.
28058 # We use the long form for the default assignment because of an extremely
28059 # bizarre bug on SunOS 4.1.3.
28060 if $ac_need_defaults; then
28061 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28062 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28063 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28064 fi
28065
28066 # Have a temporary directory for convenience. Make it in the build tree
28067 # simply because there is no reason against having it here, and in addition,
28068 # creating and moving files from /tmp can sometimes cause problems.
28069 # Hook for its removal unless debugging.
28070 # Note that there is a small window in which the directory will not be cleaned:
28071 # after its creation but before its name has been assigned to `$tmp'.
28072 $debug ||
28073 {
28074 tmp= ac_tmp=
28075 trap 'exit_status=$?
28076 : "${ac_tmp:=$tmp}"
28077 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
28078 ' 0
28079 trap 'as_fn_exit 1' 1 2 13 15
28080 }
28081 # Create a (secure) tmp directory for tmp files.
28082
28083 {
28084 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28085 test -d "$tmp"
28086 } ||
28087 {
28088 tmp=./conf$$-$RANDOM
28089 (umask 077 && mkdir "$tmp")
28090 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
28091 ac_tmp=$tmp
28092
28093 # Set up the scripts for CONFIG_FILES section.
28094 # No need to generate them if there are no CONFIG_FILES.
28095 # This happens for instance with `./config.status config.h'.
28096 if test -n "$CONFIG_FILES"; then
28097
28098
28099 ac_cr=`echo X | tr X '\015'`
28100 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28101 # But we know of no other shell where ac_cr would be empty at this
28102 # point, so we can use a bashism as a fallback.
28103 if test "x$ac_cr" = x; then
28104 eval ac_cr=\$\'\\r\'
28105 fi
28106 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28107 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28108 ac_cs_awk_cr='\\r'
28109 else
28110 ac_cs_awk_cr=$ac_cr
28111 fi
28112
28113 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
28114 _ACEOF
28115
28116
28117 {
28118 echo "cat >conf$$subs.awk <<_ACEOF" &&
28119 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28120 echo "_ACEOF"
28121 } >conf$$subs.sh ||
28122 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28123 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
28124 ac_delim='%!_!# '
28125 for ac_last_try in false false false false false :; do
28126 . ./conf$$subs.sh ||
28127 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28128
28129 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28130 if test $ac_delim_n = $ac_delim_num; then
28131 break
28132 elif $ac_last_try; then
28133 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28134 else
28135 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28136 fi
28137 done
28138 rm -f conf$$subs.sh
28139
28140 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28141 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
28142 _ACEOF
28143 sed -n '
28144 h
28145 s/^/S["/; s/!.*/"]=/
28146 p
28147 g
28148 s/^[^!]*!//
28149 :repl
28150 t repl
28151 s/'"$ac_delim"'$//
28152 t delim
28153 :nl
28154 h
28155 s/\(.\{148\}\)..*/\1/
28156 t more1
28157 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28158 p
28159 n
28160 b repl
28161 :more1
28162 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28163 p
28164 g
28165 s/.\{148\}//
28166 t nl
28167 :delim
28168 h
28169 s/\(.\{148\}\)..*/\1/
28170 t more2
28171 s/["\\]/\\&/g; s/^/"/; s/$/"/
28172 p
28173 b
28174 :more2
28175 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28176 p
28177 g
28178 s/.\{148\}//
28179 t delim
28180 ' <conf$$subs.awk | sed '
28181 /^[^""]/{
28182 N
28183 s/\n//
28184 }
28185 ' >>$CONFIG_STATUS || ac_write_fail=1
28186 rm -f conf$$subs.awk
28187 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28188 _ACAWK
28189 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
28190 for (key in S) S_is_set[key] = 1
28191 FS = "\a"
28192
28193 }
28194 {
28195 line = $ 0
28196 nfields = split(line, field, "@")
28197 substed = 0
28198 len = length(field[1])
28199 for (i = 2; i < nfields; i++) {
28200 key = field[i]
28201 keylen = length(key)
28202 if (S_is_set[key]) {
28203 value = S[key]
28204 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28205 len += length(value) + length(field[++i])
28206 substed = 1
28207 } else
28208 len += 1 + keylen
28209 }
28210
28211 print line
28212 }
28213
28214 _ACAWK
28215 _ACEOF
28216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28217 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28218 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28219 else
28220 cat
28221 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
28222 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
28223 _ACEOF
28224
28225 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
28226 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
28227 # trailing colons and then remove the whole line if VPATH becomes empty
28228 # (actually we leave an empty line to preserve line numbers).
28229 if test "x$srcdir" = x.; then
28230 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
28231 h
28232 s///
28233 s/^/:/
28234 s/[ ]*$/:/
28235 s/:\$(srcdir):/:/g
28236 s/:\${srcdir}:/:/g
28237 s/:@srcdir@:/:/g
28238 s/^:*//
28239 s/:*$//
28240 x
28241 s/\(=[ ]*\).*/\1/
28242 G
28243 s/\n//
28244 s/^[^=]*=[ ]*$//
28245 }'
28246 fi
28247
28248 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28249 fi # test -n "$CONFIG_FILES"
28250
28251 # Set up the scripts for CONFIG_HEADERS section.
28252 # No need to generate them if there are no CONFIG_HEADERS.
28253 # This happens for instance with `./config.status Makefile'.
28254 if test -n "$CONFIG_HEADERS"; then
28255 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
28256 BEGIN {
28257 _ACEOF
28258
28259 # Transform confdefs.h into an awk script `defines.awk', embedded as
28260 # here-document in config.status, that substitutes the proper values into
28261 # config.h.in to produce config.h.
28262
28263 # Create a delimiter string that does not exist in confdefs.h, to ease
28264 # handling of long lines.
28265 ac_delim='%!_!# '
28266 for ac_last_try in false false :; do
28267 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
28268 if test -z "$ac_tt"; then
28269 break
28270 elif $ac_last_try; then
28271 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
28272 else
28273 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28274 fi
28275 done
28276
28277 # For the awk script, D is an array of macro values keyed by name,
28278 # likewise P contains macro parameters if any. Preserve backslash
28279 # newline sequences.
28280
28281 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28282 sed -n '
28283 s/.\{148\}/&'"$ac_delim"'/g
28284 t rset
28285 :rset
28286 s/^[ ]*#[ ]*define[ ][ ]*/ /
28287 t def
28288 d
28289 :def
28290 s/\\$//
28291 t bsnl
28292 s/["\\]/\\&/g
28293 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28294 D["\1"]=" \3"/p
28295 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28296 d
28297 :bsnl
28298 s/["\\]/\\&/g
28299 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28300 D["\1"]=" \3\\\\\\n"\\/p
28301 t cont
28302 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28303 t cont
28304 d
28305 :cont
28306 n
28307 s/.\{148\}/&'"$ac_delim"'/g
28308 t clear
28309 :clear
28310 s/\\$//
28311 t bsnlc
28312 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28313 d
28314 :bsnlc
28315 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28316 b cont
28317 ' <confdefs.h | sed '
28318 s/'"$ac_delim"'/"\\\
28319 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28320
28321 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28322 for (key in D) D_is_set[key] = 1
28323 FS = "\a"
28324 }
28325 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28326 line = \$ 0
28327 split(line, arg, " ")
28328 if (arg[1] == "#") {
28329 defundef = arg[2]
28330 mac1 = arg[3]
28331 } else {
28332 defundef = substr(arg[1], 2)
28333 mac1 = arg[2]
28334 }
28335 split(mac1, mac2, "(") #)
28336 macro = mac2[1]
28337 prefix = substr(line, 1, index(line, defundef) - 1)
28338 if (D_is_set[macro]) {
28339 # Preserve the white space surrounding the "#".
28340 print prefix "define", macro P[macro] D[macro]
28341 next
28342 } else {
28343 # Replace #undef with comments. This is necessary, for example,
28344 # in the case of _POSIX_SOURCE, which is predefined and required
28345 # on some systems where configure will not decide to define it.
28346 if (defundef == "undef") {
28347 print "/*", prefix defundef, macro, "*/"
28348 next
28349 }
28350 }
28351 }
28352 { print }
28353 _ACAWK
28354 _ACEOF
28355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28356 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
28357 fi # test -n "$CONFIG_HEADERS"
28358
28359
28360 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28361 shift
28362 for ac_tag
28363 do
28364 case $ac_tag in
28365 :[FHLC]) ac_mode=$ac_tag; continue;;
28366 esac
28367 case $ac_mode$ac_tag in
28368 :[FHL]*:*);;
28369 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
28370 :[FH]-) ac_tag=-:-;;
28371 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28372 esac
28373 ac_save_IFS=$IFS
28374 IFS=:
28375 set x $ac_tag
28376 IFS=$ac_save_IFS
28377 shift
28378 ac_file=$1
28379 shift
28380
28381 case $ac_mode in
28382 :L) ac_source=$1;;
28383 :[FH])
28384 ac_file_inputs=
28385 for ac_f
28386 do
28387 case $ac_f in
28388 -) ac_f="$ac_tmp/stdin";;
28389 *) # Look for the file first in the build tree, then in the source tree
28390 # (if the path is not absolute). The absolute path cannot be DOS-style,
28391 # because $ac_f cannot contain `:'.
28392 test -f "$ac_f" ||
28393 case $ac_f in
28394 [\\/$]*) false;;
28395 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28396 esac ||
28397 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28398 esac
28399 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28400 as_fn_append ac_file_inputs " '$ac_f'"
28401 done
28402
28403 # Let's still pretend it is `configure' which instantiates (i.e., don't
28404 # use $as_me), people would be surprised to read:
28405 # /* config.h. Generated by config.status. */
28406 configure_input='Generated from '`
28407 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28408 `' by configure.'
28409 if test x"$ac_file" != x-; then
28410 configure_input="$ac_file. $configure_input"
28411 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28412 $as_echo "$as_me: creating $ac_file" >&6;}
28413 fi
28414 # Neutralize special characters interpreted by sed in replacement strings.
28415 case $configure_input in #(
28416 *\&* | *\|* | *\\* )
28417 ac_sed_conf_input=`$as_echo "$configure_input" |
28418 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28419 *) ac_sed_conf_input=$configure_input;;
28420 esac
28421
28422 case $ac_tag in
28423 *:-:* | *:-) cat >"$ac_tmp/stdin" \
28424 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
28425 esac
28426 ;;
28427 esac
28428
28429 ac_dir=`$as_dirname -- "$ac_file" ||
28430 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28431 X"$ac_file" : 'X\(//\)[^/]' \| \
28432 X"$ac_file" : 'X\(//\)$' \| \
28433 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28434 $as_echo X"$ac_file" |
28435 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28436 s//\1/
28437 q
28438 }
28439 /^X\(\/\/\)[^/].*/{
28440 s//\1/
28441 q
28442 }
28443 /^X\(\/\/\)$/{
28444 s//\1/
28445 q
28446 }
28447 /^X\(\/\).*/{
28448 s//\1/
28449 q
28450 }
28451 s/.*/./; q'`
28452 as_dir="$ac_dir"; as_fn_mkdir_p
28453 ac_builddir=.
28454
28455 case "$ac_dir" in
28456 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28457 *)
28458 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28459 # A ".." for each directory in $ac_dir_suffix.
28460 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28461 case $ac_top_builddir_sub in
28462 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28463 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28464 esac ;;
28465 esac
28466 ac_abs_top_builddir=$ac_pwd
28467 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28468 # for backward compatibility:
28469 ac_top_builddir=$ac_top_build_prefix
28470
28471 case $srcdir in
28472 .) # We are building in place.
28473 ac_srcdir=.
28474 ac_top_srcdir=$ac_top_builddir_sub
28475 ac_abs_top_srcdir=$ac_pwd ;;
28476 [\\/]* | ?:[\\/]* ) # Absolute name.
28477 ac_srcdir=$srcdir$ac_dir_suffix;
28478 ac_top_srcdir=$srcdir
28479 ac_abs_top_srcdir=$srcdir ;;
28480 *) # Relative name.
28481 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28482 ac_top_srcdir=$ac_top_build_prefix$srcdir
28483 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28484 esac
28485 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28486
28487
28488 case $ac_mode in
28489 :F)
28490 #
28491 # CONFIG_FILE
28492 #
28493
28494 case $INSTALL in
28495 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28496 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28497 esac
28498 ac_MKDIR_P=$MKDIR_P
28499 case $MKDIR_P in
28500 [\\/$]* | ?:[\\/]* ) ;;
28501 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28502 esac
28503 _ACEOF
28504
28505 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28506 # If the template does not know about datarootdir, expand it.
28507 # FIXME: This hack should be removed a few years after 2.60.
28508 ac_datarootdir_hack=; ac_datarootdir_seen=
28509 ac_sed_dataroot='
28510 /datarootdir/ {
28511 p
28512 q
28513 }
28514 /@datadir@/p
28515 /@docdir@/p
28516 /@infodir@/p
28517 /@localedir@/p
28518 /@mandir@/p'
28519 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28520 *datarootdir*) ac_datarootdir_seen=yes;;
28521 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28523 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28524 _ACEOF
28525 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28526 ac_datarootdir_hack='
28527 s&@datadir@&$datadir&g
28528 s&@docdir@&$docdir&g
28529 s&@infodir@&$infodir&g
28530 s&@localedir@&$localedir&g
28531 s&@mandir@&$mandir&g
28532 s&\\\${datarootdir}&$datarootdir&g' ;;
28533 esac
28534 _ACEOF
28535
28536 # Neutralize VPATH when `$srcdir' = `.'.
28537 # Shell code in configure.ac might set extrasub.
28538 # FIXME: do we really want to maintain this feature?
28539 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28540 ac_sed_extra="$ac_vpsub
28541 $extrasub
28542 _ACEOF
28543 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28544 :t
28545 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28546 s|@configure_input@|$ac_sed_conf_input|;t t
28547 s&@top_builddir@&$ac_top_builddir_sub&;t t
28548 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28549 s&@srcdir@&$ac_srcdir&;t t
28550 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28551 s&@top_srcdir@&$ac_top_srcdir&;t t
28552 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28553 s&@builddir@&$ac_builddir&;t t
28554 s&@abs_builddir@&$ac_abs_builddir&;t t
28555 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28556 s&@INSTALL@&$ac_INSTALL&;t t
28557 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28558 $ac_datarootdir_hack
28559 "
28560 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
28561 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28562
28563 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28564 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
28565 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
28566 "$ac_tmp/out"`; test -z "$ac_out"; } &&
28567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28568 which seems to be undefined. Please make sure it is defined" >&5
28569 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28570 which seems to be undefined. Please make sure it is defined" >&2;}
28571
28572 rm -f "$ac_tmp/stdin"
28573 case $ac_file in
28574 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
28575 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
28576 esac \
28577 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28578 ;;
28579 :H)
28580 #
28581 # CONFIG_HEADER
28582 #
28583 if test x"$ac_file" != x-; then
28584 {
28585 $as_echo "/* $configure_input */" \
28586 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
28587 } >"$ac_tmp/config.h" \
28588 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28589 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
28590 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28591 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28592 else
28593 rm -f "$ac_file"
28594 mv "$ac_tmp/config.h" "$ac_file" \
28595 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28596 fi
28597 else
28598 $as_echo "/* $configure_input */" \
28599 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
28600 || as_fn_error $? "could not create -" "$LINENO" 5
28601 fi
28602 # Compute "$ac_file"'s index in $config_headers.
28603 _am_arg="$ac_file"
28604 _am_stamp_count=1
28605 for _am_header in $config_headers :; do
28606 case $_am_header in
28607 $_am_arg | $_am_arg:* )
28608 break ;;
28609 * )
28610 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28611 esac
28612 done
28613 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28614 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28615 X"$_am_arg" : 'X\(//\)[^/]' \| \
28616 X"$_am_arg" : 'X\(//\)$' \| \
28617 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28618 $as_echo X"$_am_arg" |
28619 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28620 s//\1/
28621 q
28622 }
28623 /^X\(\/\/\)[^/].*/{
28624 s//\1/
28625 q
28626 }
28627 /^X\(\/\/\)$/{
28628 s//\1/
28629 q
28630 }
28631 /^X\(\/\).*/{
28632 s//\1/
28633 q
28634 }
28635 s/.*/./; q'`/stamp-h$_am_stamp_count
28636 ;;
28637
28638 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28639 $as_echo "$as_me: executing $ac_file commands" >&6;}
28640 ;;
28641 esac
28642
28643
28644 case $ac_file$ac_mode in
28645 "default-1":C)
28646 # Only add multilib support code if we just rebuilt the top-level
28647 # Makefile.
28648 case " $CONFIG_FILES " in
28649 *" Makefile "*)
28650 ac_file=Makefile . ${multi_basedir}/config-ml.in
28651 ;;
28652 esac ;;
28653 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28654 # Older Autoconf quotes --file arguments for eval, but not when files
28655 # are listed without --file. Let's play safe and only enable the eval
28656 # if we detect the quoting.
28657 case $CONFIG_FILES in
28658 *\'*) eval set x "$CONFIG_FILES" ;;
28659 *) set x $CONFIG_FILES ;;
28660 esac
28661 shift
28662 for mf
28663 do
28664 # Strip MF so we end up with the name of the file.
28665 mf=`echo "$mf" | sed -e 's/:.*$//'`
28666 # Check whether this is an Automake generated Makefile or not.
28667 # We used to match only the files named 'Makefile.in', but
28668 # some people rename them; so instead we look at the file content.
28669 # Grep'ing the first line is not enough: some people post-process
28670 # each Makefile.in and add a new line on top of each file to say so.
28671 # Grep'ing the whole file is not good either: AIX grep has a line
28672 # limit of 2048, but all sed's we know have understand at least 4000.
28673 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
28674 dirpart=`$as_dirname -- "$mf" ||
28675 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28676 X"$mf" : 'X\(//\)[^/]' \| \
28677 X"$mf" : 'X\(//\)$' \| \
28678 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28679 $as_echo X"$mf" |
28680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28681 s//\1/
28682 q
28683 }
28684 /^X\(\/\/\)[^/].*/{
28685 s//\1/
28686 q
28687 }
28688 /^X\(\/\/\)$/{
28689 s//\1/
28690 q
28691 }
28692 /^X\(\/\).*/{
28693 s//\1/
28694 q
28695 }
28696 s/.*/./; q'`
28697 else
28698 continue
28699 fi
28700 # Extract the definition of DEPDIR, am__include, and am__quote
28701 # from the Makefile without running 'make'.
28702 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28703 test -z "$DEPDIR" && continue
28704 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28705 test -z "$am__include" && continue
28706 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28707 # Find all dependency output files, they are included files with
28708 # $(DEPDIR) in their names. We invoke sed twice because it is the
28709 # simplest approach to changing $(DEPDIR) to its actual value in the
28710 # expansion.
28711 for file in `sed -n "
28712 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28713 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
28714 # Make sure the directory exists.
28715 test -f "$dirpart/$file" && continue
28716 fdir=`$as_dirname -- "$file" ||
28717 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28718 X"$file" : 'X\(//\)[^/]' \| \
28719 X"$file" : 'X\(//\)$' \| \
28720 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28721 $as_echo X"$file" |
28722 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28723 s//\1/
28724 q
28725 }
28726 /^X\(\/\/\)[^/].*/{
28727 s//\1/
28728 q
28729 }
28730 /^X\(\/\/\)$/{
28731 s//\1/
28732 q
28733 }
28734 /^X\(\/\).*/{
28735 s//\1/
28736 q
28737 }
28738 s/.*/./; q'`
28739 as_dir=$dirpart/$fdir; as_fn_mkdir_p
28740 # echo "creating $dirpart/$file"
28741 echo '# dummy' > "$dirpart/$file"
28742 done
28743 done
28744 }
28745 ;;
28746 "libtool":C)
28747
28748 # See if we are running on zsh, and set the options which allow our
28749 # commands through without removal of \ escapes.
28750 if test -n "${ZSH_VERSION+set}" ; then
28751 setopt NO_GLOB_SUBST
28752 fi
28753
28754 cfgfile="${ofile}T"
28755 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28756 $RM "$cfgfile"
28757
28758 cat <<_LT_EOF >> "$cfgfile"
28759 #! $SHELL
28760
28761 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
28762 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
28763 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
28764 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
28765 #
28766 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
28767 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
28768 # Written by Gordon Matzigkeit, 1996
28769 #
28770 # This file is part of GNU Libtool.
28771 #
28772 # GNU Libtool is free software; you can redistribute it and/or
28773 # modify it under the terms of the GNU General Public License as
28774 # published by the Free Software Foundation; either version 2 of
28775 # the License, or (at your option) any later version.
28776 #
28777 # As a special exception to the GNU General Public License,
28778 # if you distribute this file as part of a program or library that
28779 # is built using GNU Libtool, you may include this file under the
28780 # same distribution terms that you use for the rest of that program.
28781 #
28782 # GNU Libtool is distributed in the hope that it will be useful,
28783 # but WITHOUT ANY WARRANTY; without even the implied warranty of
28784 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28785 # GNU General Public License for more details.
28786 #
28787 # You should have received a copy of the GNU General Public License
28788 # along with GNU Libtool; see the file COPYING. If not, a copy
28789 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
28790 # obtained by writing to the Free Software Foundation, Inc.,
28791 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
28792
28793
28794 # The names of the tagged configurations supported by this script.
28795 available_tags="FC "
28796
28797 # ### BEGIN LIBTOOL CONFIG
28798
28799 # A sed program that does not truncate output.
28800 SED=$lt_SED
28801
28802 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
28803 Xsed="\$SED -e 1s/^X//"
28804
28805 # A grep program that handles long lines.
28806 GREP=$lt_GREP
28807
28808 # An ERE matcher.
28809 EGREP=$lt_EGREP
28810
28811 # A literal string matcher.
28812 FGREP=$lt_FGREP
28813
28814 # Shell to use when invoking shell scripts.
28815 SHELL=$lt_SHELL
28816
28817 # An echo program that protects backslashes.
28818 ECHO=$lt_ECHO
28819
28820 # Which release of libtool.m4 was used?
28821 macro_version=$macro_version
28822 macro_revision=$macro_revision
28823
28824 # Whether or not to build shared libraries.
28825 build_libtool_libs=$enable_shared
28826
28827 # Whether or not to build static libraries.
28828 build_old_libs=$enable_static
28829
28830 # What type of objects to build.
28831 pic_mode=$pic_mode
28832
28833 # Whether or not to optimize for fast installation.
28834 fast_install=$enable_fast_install
28835
28836 # The host system.
28837 host_alias=$host_alias
28838 host=$host
28839 host_os=$host_os
28840
28841 # The build system.
28842 build_alias=$build_alias
28843 build=$build
28844 build_os=$build_os
28845
28846 # A BSD- or MS-compatible name lister.
28847 NM=$lt_NM
28848
28849 # Whether we need soft or hard links.
28850 LN_S=$lt_LN_S
28851
28852 # What is the maximum length of a command?
28853 max_cmd_len=$max_cmd_len
28854
28855 # Object file suffix (normally "o").
28856 objext=$ac_objext
28857
28858 # Executable file suffix (normally "").
28859 exeext=$exeext
28860
28861 # whether the shell understands "unset".
28862 lt_unset=$lt_unset
28863
28864 # turn spaces into newlines.
28865 SP2NL=$lt_lt_SP2NL
28866
28867 # turn newlines into spaces.
28868 NL2SP=$lt_lt_NL2SP
28869
28870 # An object symbol dumper.
28871 OBJDUMP=$lt_OBJDUMP
28872
28873 # Method to check whether dependent libraries are shared objects.
28874 deplibs_check_method=$lt_deplibs_check_method
28875
28876 # Command to use when deplibs_check_method == "file_magic".
28877 file_magic_cmd=$lt_file_magic_cmd
28878
28879 # The archiver.
28880 AR=$lt_AR
28881 AR_FLAGS=$lt_AR_FLAGS
28882
28883 # A symbol stripping program.
28884 STRIP=$lt_STRIP
28885
28886 # Commands used to install an old-style archive.
28887 RANLIB=$lt_RANLIB
28888 old_postinstall_cmds=$lt_old_postinstall_cmds
28889 old_postuninstall_cmds=$lt_old_postuninstall_cmds
28890
28891 # Whether to use a lock for old archive extraction.
28892 lock_old_archive_extraction=$lock_old_archive_extraction
28893
28894 # A C compiler.
28895 LTCC=$lt_CC
28896
28897 # LTCC compiler flags.
28898 LTCFLAGS=$lt_CFLAGS
28899
28900 # Take the output of nm and produce a listing of raw symbols and C names.
28901 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28902
28903 # Transform the output of nm in a proper C declaration.
28904 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28905
28906 # Transform the output of nm in a C name address pair.
28907 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28908
28909 # Transform the output of nm in a C name address pair when lib prefix is needed.
28910 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28911
28912 # The name of the directory that contains temporary libtool files.
28913 objdir=$objdir
28914
28915 # Used to examine libraries when file_magic_cmd begins with "file".
28916 MAGIC_CMD=$MAGIC_CMD
28917
28918 # Must we lock files when doing compilation?
28919 need_locks=$lt_need_locks
28920
28921 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28922 DSYMUTIL=$lt_DSYMUTIL
28923
28924 # Tool to change global to local symbols on Mac OS X.
28925 NMEDIT=$lt_NMEDIT
28926
28927 # Tool to manipulate fat objects and archives on Mac OS X.
28928 LIPO=$lt_LIPO
28929
28930 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
28931 OTOOL=$lt_OTOOL
28932
28933 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28934 OTOOL64=$lt_OTOOL64
28935
28936 # Old archive suffix (normally "a").
28937 libext=$libext
28938
28939 # Shared library suffix (normally ".so").
28940 shrext_cmds=$lt_shrext_cmds
28941
28942 # The commands to extract the exported symbol list from a shared archive.
28943 extract_expsyms_cmds=$lt_extract_expsyms_cmds
28944
28945 # Variables whose values should be saved in libtool wrapper scripts and
28946 # restored at link time.
28947 variables_saved_for_relink=$lt_variables_saved_for_relink
28948
28949 # Do we need the "lib" prefix for modules?
28950 need_lib_prefix=$need_lib_prefix
28951
28952 # Do we need a version for libraries?
28953 need_version=$need_version
28954
28955 # Library versioning type.
28956 version_type=$version_type
28957
28958 # Shared library runtime path variable.
28959 runpath_var=$runpath_var
28960
28961 # Shared library path variable.
28962 shlibpath_var=$shlibpath_var
28963
28964 # Is shlibpath searched before the hard-coded library search path?
28965 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28966
28967 # Format of library name prefix.
28968 libname_spec=$lt_libname_spec
28969
28970 # List of archive names. First name is the real one, the rest are links.
28971 # The last name is the one that the linker finds with -lNAME
28972 library_names_spec=$lt_library_names_spec
28973
28974 # The coded name of the library, if different from the real name.
28975 soname_spec=$lt_soname_spec
28976
28977 # Permission mode override for installation of shared libraries.
28978 install_override_mode=$lt_install_override_mode
28979
28980 # Command to use after installation of a shared archive.
28981 postinstall_cmds=$lt_postinstall_cmds
28982
28983 # Command to use after uninstallation of a shared archive.
28984 postuninstall_cmds=$lt_postuninstall_cmds
28985
28986 # Commands used to finish a libtool library installation in a directory.
28987 finish_cmds=$lt_finish_cmds
28988
28989 # As "finish_cmds", except a single script fragment to be evaled but
28990 # not shown.
28991 finish_eval=$lt_finish_eval
28992
28993 # Whether we should hardcode library paths into libraries.
28994 hardcode_into_libs=$hardcode_into_libs
28995
28996 # Compile-time system search path for libraries.
28997 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28998
28999 # Run-time system search path for libraries.
29000 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
29001
29002 # Whether dlopen is supported.
29003 dlopen_support=$enable_dlopen
29004
29005 # Whether dlopen of programs is supported.
29006 dlopen_self=$enable_dlopen_self
29007
29008 # Whether dlopen of statically linked programs is supported.
29009 dlopen_self_static=$enable_dlopen_self_static
29010
29011 # Commands to strip libraries.
29012 old_striplib=$lt_old_striplib
29013 striplib=$lt_striplib
29014
29015
29016 # The linker used to build libraries.
29017 LD=$lt_LD
29018
29019 # How to create reloadable object files.
29020 reload_flag=$lt_reload_flag
29021 reload_cmds=$lt_reload_cmds
29022
29023 # Commands used to build an old-style archive.
29024 old_archive_cmds=$lt_old_archive_cmds
29025
29026 # A language specific compiler.
29027 CC=$lt_compiler
29028
29029 # Is the compiler the GNU compiler?
29030 with_gcc=$GCC
29031
29032 # Compiler flag to turn off builtin functions.
29033 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
29034
29035 # How to pass a linker flag through the compiler.
29036 wl=$lt_lt_prog_compiler_wl
29037
29038 # Additional compiler flags for building library objects.
29039 pic_flag=$lt_lt_prog_compiler_pic
29040
29041 # Compiler flag to prevent dynamic linking.
29042 link_static_flag=$lt_lt_prog_compiler_static
29043
29044 # Does compiler simultaneously support -c and -o options?
29045 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
29046
29047 # Whether or not to add -lc for building shared libraries.
29048 build_libtool_need_lc=$archive_cmds_need_lc
29049
29050 # Whether or not to disallow shared libs when runtime libs are static.
29051 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
29052
29053 # Compiler flag to allow reflexive dlopens.
29054 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
29055
29056 # Compiler flag to generate shared objects directly from archives.
29057 whole_archive_flag_spec=$lt_whole_archive_flag_spec
29058
29059 # Whether the compiler copes with passing no objects directly.
29060 compiler_needs_object=$lt_compiler_needs_object
29061
29062 # Create an old-style archive from a shared archive.
29063 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
29064
29065 # Create a temporary old-style archive to link instead of a shared archive.
29066 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
29067
29068 # Commands used to build a shared archive.
29069 archive_cmds=$lt_archive_cmds
29070 archive_expsym_cmds=$lt_archive_expsym_cmds
29071
29072 # Commands used to build a loadable module if different from building
29073 # a shared archive.
29074 module_cmds=$lt_module_cmds
29075 module_expsym_cmds=$lt_module_expsym_cmds
29076
29077 # Whether we are building with GNU ld or not.
29078 with_gnu_ld=$lt_with_gnu_ld
29079
29080 # Flag that allows shared libraries with undefined symbols to be built.
29081 allow_undefined_flag=$lt_allow_undefined_flag
29082
29083 # Flag that enforces no undefined symbols.
29084 no_undefined_flag=$lt_no_undefined_flag
29085
29086 # Flag to hardcode \$libdir into a binary during linking.
29087 # This must work even if \$libdir does not exist
29088 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
29089
29090 # If ld is used when linking, flag to hardcode \$libdir into a binary
29091 # during linking. This must work even if \$libdir does not exist.
29092 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
29093
29094 # Whether we need a single "-rpath" flag with a separated argument.
29095 hardcode_libdir_separator=$lt_hardcode_libdir_separator
29096
29097 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29098 # DIR into the resulting binary.
29099 hardcode_direct=$hardcode_direct
29100
29101 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29102 # DIR into the resulting binary and the resulting library dependency is
29103 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29104 # library is relocated.
29105 hardcode_direct_absolute=$hardcode_direct_absolute
29106
29107 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29108 # into the resulting binary.
29109 hardcode_minus_L=$hardcode_minus_L
29110
29111 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29112 # into the resulting binary.
29113 hardcode_shlibpath_var=$hardcode_shlibpath_var
29114
29115 # Set to "yes" if building a shared library automatically hardcodes DIR
29116 # into the library and all subsequent libraries and executables linked
29117 # against it.
29118 hardcode_automatic=$hardcode_automatic
29119
29120 # Set to yes if linker adds runtime paths of dependent libraries
29121 # to runtime path list.
29122 inherit_rpath=$inherit_rpath
29123
29124 # Whether libtool must link a program against all its dependency libraries.
29125 link_all_deplibs=$link_all_deplibs
29126
29127 # Fix the shell variable \$srcfile for the compiler.
29128 fix_srcfile_path=$lt_fix_srcfile_path
29129
29130 # Set to "yes" if exported symbols are required.
29131 always_export_symbols=$always_export_symbols
29132
29133 # The commands to list exported symbols.
29134 export_symbols_cmds=$lt_export_symbols_cmds
29135
29136 # Symbols that should not be listed in the preloaded symbols.
29137 exclude_expsyms=$lt_exclude_expsyms
29138
29139 # Symbols that must always be exported.
29140 include_expsyms=$lt_include_expsyms
29141
29142 # Commands necessary for linking programs (against libraries) with templates.
29143 prelink_cmds=$lt_prelink_cmds
29144
29145 # Specify filename containing input files.
29146 file_list_spec=$lt_file_list_spec
29147
29148 # How to hardcode a shared library path into an executable.
29149 hardcode_action=$hardcode_action
29150
29151 # The directories searched by this compiler when creating a shared library.
29152 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
29153
29154 # Dependencies to place before and after the objects being linked to
29155 # create a shared library.
29156 predep_objects=$lt_predep_objects
29157 postdep_objects=$lt_postdep_objects
29158 predeps=$lt_predeps
29159 postdeps=$lt_postdeps
29160
29161 # The library search path used internally by the compiler when linking
29162 # a shared library.
29163 compiler_lib_search_path=$lt_compiler_lib_search_path
29164
29165 # ### END LIBTOOL CONFIG
29166
29167 _LT_EOF
29168
29169 case $host_os in
29170 aix3*)
29171 cat <<\_LT_EOF >> "$cfgfile"
29172 # AIX sometimes has problems with the GCC collect2 program. For some
29173 # reason, if we set the COLLECT_NAMES environment variable, the problems
29174 # vanish in a puff of smoke.
29175 if test "X${COLLECT_NAMES+set}" != Xset; then
29176 COLLECT_NAMES=
29177 export COLLECT_NAMES
29178 fi
29179 _LT_EOF
29180 ;;
29181 esac
29182
29183
29184 ltmain="$ac_aux_dir/ltmain.sh"
29185
29186
29187 # We use sed instead of cat because bash on DJGPP gets confused if
29188 # if finds mixed CR/LF and LF-only lines. Since sed operates in
29189 # text mode, it properly converts lines to CR/LF. This bash problem
29190 # is reportedly fixed, but why not run on old versions too?
29191 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
29192 || (rm -f "$cfgfile"; exit 1)
29193
29194 case $xsi_shell in
29195 yes)
29196 cat << \_LT_EOF >> "$cfgfile"
29197
29198 # func_dirname file append nondir_replacement
29199 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
29200 # otherwise set result to NONDIR_REPLACEMENT.
29201 func_dirname ()
29202 {
29203 case ${1} in
29204 */*) func_dirname_result="${1%/*}${2}" ;;
29205 * ) func_dirname_result="${3}" ;;
29206 esac
29207 }
29208
29209 # func_basename file
29210 func_basename ()
29211 {
29212 func_basename_result="${1##*/}"
29213 }
29214
29215 # func_dirname_and_basename file append nondir_replacement
29216 # perform func_basename and func_dirname in a single function
29217 # call:
29218 # dirname: Compute the dirname of FILE. If nonempty,
29219 # add APPEND to the result, otherwise set result
29220 # to NONDIR_REPLACEMENT.
29221 # value returned in "$func_dirname_result"
29222 # basename: Compute filename of FILE.
29223 # value retuned in "$func_basename_result"
29224 # Implementation must be kept synchronized with func_dirname
29225 # and func_basename. For efficiency, we do not delegate to
29226 # those functions but instead duplicate the functionality here.
29227 func_dirname_and_basename ()
29228 {
29229 case ${1} in
29230 */*) func_dirname_result="${1%/*}${2}" ;;
29231 * ) func_dirname_result="${3}" ;;
29232 esac
29233 func_basename_result="${1##*/}"
29234 }
29235
29236 # func_stripname prefix suffix name
29237 # strip PREFIX and SUFFIX off of NAME.
29238 # PREFIX and SUFFIX must not contain globbing or regex special
29239 # characters, hashes, percent signs, but SUFFIX may contain a leading
29240 # dot (in which case that matches only a dot).
29241 func_stripname ()
29242 {
29243 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
29244 # positional parameters, so assign one to ordinary parameter first.
29245 func_stripname_result=${3}
29246 func_stripname_result=${func_stripname_result#"${1}"}
29247 func_stripname_result=${func_stripname_result%"${2}"}
29248 }
29249
29250 # func_opt_split
29251 func_opt_split ()
29252 {
29253 func_opt_split_opt=${1%%=*}
29254 func_opt_split_arg=${1#*=}
29255 }
29256
29257 # func_lo2o object
29258 func_lo2o ()
29259 {
29260 case ${1} in
29261 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
29262 *) func_lo2o_result=${1} ;;
29263 esac
29264 }
29265
29266 # func_xform libobj-or-source
29267 func_xform ()
29268 {
29269 func_xform_result=${1%.*}.lo
29270 }
29271
29272 # func_arith arithmetic-term...
29273 func_arith ()
29274 {
29275 func_arith_result=$(( $* ))
29276 }
29277
29278 # func_len string
29279 # STRING may not start with a hyphen.
29280 func_len ()
29281 {
29282 func_len_result=${#1}
29283 }
29284
29285 _LT_EOF
29286 ;;
29287 *) # Bourne compatible functions.
29288 cat << \_LT_EOF >> "$cfgfile"
29289
29290 # func_dirname file append nondir_replacement
29291 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
29292 # otherwise set result to NONDIR_REPLACEMENT.
29293 func_dirname ()
29294 {
29295 # Extract subdirectory from the argument.
29296 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
29297 if test "X$func_dirname_result" = "X${1}"; then
29298 func_dirname_result="${3}"
29299 else
29300 func_dirname_result="$func_dirname_result${2}"
29301 fi
29302 }
29303
29304 # func_basename file
29305 func_basename ()
29306 {
29307 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
29308 }
29309
29310
29311 # func_stripname prefix suffix name
29312 # strip PREFIX and SUFFIX off of NAME.
29313 # PREFIX and SUFFIX must not contain globbing or regex special
29314 # characters, hashes, percent signs, but SUFFIX may contain a leading
29315 # dot (in which case that matches only a dot).
29316 # func_strip_suffix prefix name
29317 func_stripname ()
29318 {
29319 case ${2} in
29320 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
29321 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
29322 esac
29323 }
29324
29325 # sed scripts:
29326 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
29327 my_sed_long_arg='1s/^-[^=]*=//'
29328
29329 # func_opt_split
29330 func_opt_split ()
29331 {
29332 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
29333 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
29334 }
29335
29336 # func_lo2o object
29337 func_lo2o ()
29338 {
29339 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
29340 }
29341
29342 # func_xform libobj-or-source
29343 func_xform ()
29344 {
29345 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
29346 }
29347
29348 # func_arith arithmetic-term...
29349 func_arith ()
29350 {
29351 func_arith_result=`expr "$@"`
29352 }
29353
29354 # func_len string
29355 # STRING may not start with a hyphen.
29356 func_len ()
29357 {
29358 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
29359 }
29360
29361 _LT_EOF
29362 esac
29363
29364 case $lt_shell_append in
29365 yes)
29366 cat << \_LT_EOF >> "$cfgfile"
29367
29368 # func_append var value
29369 # Append VALUE to the end of shell variable VAR.
29370 func_append ()
29371 {
29372 eval "$1+=\$2"
29373 }
29374 _LT_EOF
29375 ;;
29376 *)
29377 cat << \_LT_EOF >> "$cfgfile"
29378
29379 # func_append var value
29380 # Append VALUE to the end of shell variable VAR.
29381 func_append ()
29382 {
29383 eval "$1=\$$1\$2"
29384 }
29385
29386 _LT_EOF
29387 ;;
29388 esac
29389
29390
29391 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
29392 || (rm -f "$cfgfile"; exit 1)
29393
29394 mv -f "$cfgfile" "$ofile" ||
29395 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
29396 chmod +x "$ofile"
29397
29398
29399 cat <<_LT_EOF >> "$ofile"
29400
29401 # ### BEGIN LIBTOOL TAG CONFIG: FC
29402
29403 # The linker used to build libraries.
29404 LD=$lt_LD_FC
29405
29406 # How to create reloadable object files.
29407 reload_flag=$lt_reload_flag_FC
29408 reload_cmds=$lt_reload_cmds_FC
29409
29410 # Commands used to build an old-style archive.
29411 old_archive_cmds=$lt_old_archive_cmds_FC
29412
29413 # A language specific compiler.
29414 CC=$lt_compiler_FC
29415
29416 # Is the compiler the GNU compiler?
29417 with_gcc=$GCC_FC
29418
29419 # Compiler flag to turn off builtin functions.
29420 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
29421
29422 # How to pass a linker flag through the compiler.
29423 wl=$lt_lt_prog_compiler_wl_FC
29424
29425 # Additional compiler flags for building library objects.
29426 pic_flag=$lt_lt_prog_compiler_pic_FC
29427
29428 # Compiler flag to prevent dynamic linking.
29429 link_static_flag=$lt_lt_prog_compiler_static_FC
29430
29431 # Does compiler simultaneously support -c and -o options?
29432 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
29433
29434 # Whether or not to add -lc for building shared libraries.
29435 build_libtool_need_lc=$archive_cmds_need_lc_FC
29436
29437 # Whether or not to disallow shared libs when runtime libs are static.
29438 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
29439
29440 # Compiler flag to allow reflexive dlopens.
29441 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
29442
29443 # Compiler flag to generate shared objects directly from archives.
29444 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
29445
29446 # Whether the compiler copes with passing no objects directly.
29447 compiler_needs_object=$lt_compiler_needs_object_FC
29448
29449 # Create an old-style archive from a shared archive.
29450 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
29451
29452 # Create a temporary old-style archive to link instead of a shared archive.
29453 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
29454
29455 # Commands used to build a shared archive.
29456 archive_cmds=$lt_archive_cmds_FC
29457 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
29458
29459 # Commands used to build a loadable module if different from building
29460 # a shared archive.
29461 module_cmds=$lt_module_cmds_FC
29462 module_expsym_cmds=$lt_module_expsym_cmds_FC
29463
29464 # Whether we are building with GNU ld or not.
29465 with_gnu_ld=$lt_with_gnu_ld_FC
29466
29467 # Flag that allows shared libraries with undefined symbols to be built.
29468 allow_undefined_flag=$lt_allow_undefined_flag_FC
29469
29470 # Flag that enforces no undefined symbols.
29471 no_undefined_flag=$lt_no_undefined_flag_FC
29472
29473 # Flag to hardcode \$libdir into a binary during linking.
29474 # This must work even if \$libdir does not exist
29475 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
29476
29477 # If ld is used when linking, flag to hardcode \$libdir into a binary
29478 # during linking. This must work even if \$libdir does not exist.
29479 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
29480
29481 # Whether we need a single "-rpath" flag with a separated argument.
29482 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
29483
29484 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29485 # DIR into the resulting binary.
29486 hardcode_direct=$hardcode_direct_FC
29487
29488 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29489 # DIR into the resulting binary and the resulting library dependency is
29490 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29491 # library is relocated.
29492 hardcode_direct_absolute=$hardcode_direct_absolute_FC
29493
29494 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29495 # into the resulting binary.
29496 hardcode_minus_L=$hardcode_minus_L_FC
29497
29498 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29499 # into the resulting binary.
29500 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
29501
29502 # Set to "yes" if building a shared library automatically hardcodes DIR
29503 # into the library and all subsequent libraries and executables linked
29504 # against it.
29505 hardcode_automatic=$hardcode_automatic_FC
29506
29507 # Set to yes if linker adds runtime paths of dependent libraries
29508 # to runtime path list.
29509 inherit_rpath=$inherit_rpath_FC
29510
29511 # Whether libtool must link a program against all its dependency libraries.
29512 link_all_deplibs=$link_all_deplibs_FC
29513
29514 # Fix the shell variable \$srcfile for the compiler.
29515 fix_srcfile_path=$lt_fix_srcfile_path_FC
29516
29517 # Set to "yes" if exported symbols are required.
29518 always_export_symbols=$always_export_symbols_FC
29519
29520 # The commands to list exported symbols.
29521 export_symbols_cmds=$lt_export_symbols_cmds_FC
29522
29523 # Symbols that should not be listed in the preloaded symbols.
29524 exclude_expsyms=$lt_exclude_expsyms_FC
29525
29526 # Symbols that must always be exported.
29527 include_expsyms=$lt_include_expsyms_FC
29528
29529 # Commands necessary for linking programs (against libraries) with templates.
29530 prelink_cmds=$lt_prelink_cmds_FC
29531
29532 # Specify filename containing input files.
29533 file_list_spec=$lt_file_list_spec_FC
29534
29535 # How to hardcode a shared library path into an executable.
29536 hardcode_action=$hardcode_action_FC
29537
29538 # The directories searched by this compiler when creating a shared library.
29539 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
29540
29541 # Dependencies to place before and after the objects being linked to
29542 # create a shared library.
29543 predep_objects=$lt_predep_objects_FC
29544 postdep_objects=$lt_postdep_objects_FC
29545 predeps=$lt_predeps_FC
29546 postdeps=$lt_postdeps_FC
29547
29548 # The library search path used internally by the compiler when linking
29549 # a shared library.
29550 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
29551
29552 # ### END LIBTOOL TAG CONFIG: FC
29553 _LT_EOF
29554
29555 ;;
29556 "gstdint.h":C)
29557 if test "$GCC" = yes; then
29558 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
29559 else
29560 echo "/* generated for $CC */" > tmp-stdint.h
29561 fi
29562
29563 sed 's/^ *//' >> tmp-stdint.h <<EOF
29564
29565 #ifndef GCC_GENERATED_STDINT_H
29566 #define GCC_GENERATED_STDINT_H 1
29567
29568 #include <sys/types.h>
29569 EOF
29570
29571 if test "$acx_cv_header_stdint" != stdint.h; then
29572 echo "#include <stddef.h>" >> tmp-stdint.h
29573 fi
29574 if test "$acx_cv_header_stdint" != stddef.h; then
29575 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
29576 fi
29577
29578 sed 's/^ *//' >> tmp-stdint.h <<EOF
29579 /* glibc uses these symbols as guards to prevent redefinitions. */
29580 #ifdef __int8_t_defined
29581 #define _INT8_T
29582 #define _INT16_T
29583 #define _INT32_T
29584 #endif
29585 #ifdef __uint32_t_defined
29586 #define _UINT32_T
29587 #endif
29588
29589 EOF
29590
29591 # ----------------- done header, emit basic int types -------------
29592 if test "$acx_cv_header_stdint" = stddef.h; then
29593 sed 's/^ *//' >> tmp-stdint.h <<EOF
29594
29595 #ifndef _UINT8_T
29596 #define _UINT8_T
29597 #ifndef __uint8_t_defined
29598 #define __uint8_t_defined
29599 #ifndef uint8_t
29600 typedef unsigned $acx_cv_type_int8_t uint8_t;
29601 #endif
29602 #endif
29603 #endif
29604
29605 #ifndef _UINT16_T
29606 #define _UINT16_T
29607 #ifndef __uint16_t_defined
29608 #define __uint16_t_defined
29609 #ifndef uint16_t
29610 typedef unsigned $acx_cv_type_int16_t uint16_t;
29611 #endif
29612 #endif
29613 #endif
29614
29615 #ifndef _UINT32_T
29616 #define _UINT32_T
29617 #ifndef __uint32_t_defined
29618 #define __uint32_t_defined
29619 #ifndef uint32_t
29620 typedef unsigned $acx_cv_type_int32_t uint32_t;
29621 #endif
29622 #endif
29623 #endif
29624
29625 #ifndef _INT8_T
29626 #define _INT8_T
29627 #ifndef __int8_t_defined
29628 #define __int8_t_defined
29629 #ifndef int8_t
29630 typedef $acx_cv_type_int8_t int8_t;
29631 #endif
29632 #endif
29633 #endif
29634
29635 #ifndef _INT16_T
29636 #define _INT16_T
29637 #ifndef __int16_t_defined
29638 #define __int16_t_defined
29639 #ifndef int16_t
29640 typedef $acx_cv_type_int16_t int16_t;
29641 #endif
29642 #endif
29643 #endif
29644
29645 #ifndef _INT32_T
29646 #define _INT32_T
29647 #ifndef __int32_t_defined
29648 #define __int32_t_defined
29649 #ifndef int32_t
29650 typedef $acx_cv_type_int32_t int32_t;
29651 #endif
29652 #endif
29653 #endif
29654 EOF
29655 elif test "$ac_cv_type_u_int32_t" = yes; then
29656 sed 's/^ *//' >> tmp-stdint.h <<EOF
29657
29658 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
29659 #ifndef _INT8_T
29660 #define _INT8_T
29661 #endif
29662 #ifndef _INT16_T
29663 #define _INT16_T
29664 #endif
29665 #ifndef _INT32_T
29666 #define _INT32_T
29667 #endif
29668
29669 #ifndef _UINT8_T
29670 #define _UINT8_T
29671 #ifndef __uint8_t_defined
29672 #define __uint8_t_defined
29673 #ifndef uint8_t
29674 typedef u_int8_t uint8_t;
29675 #endif
29676 #endif
29677 #endif
29678
29679 #ifndef _UINT16_T
29680 #define _UINT16_T
29681 #ifndef __uint16_t_defined
29682 #define __uint16_t_defined
29683 #ifndef uint16_t
29684 typedef u_int16_t uint16_t;
29685 #endif
29686 #endif
29687 #endif
29688
29689 #ifndef _UINT32_T
29690 #define _UINT32_T
29691 #ifndef __uint32_t_defined
29692 #define __uint32_t_defined
29693 #ifndef uint32_t
29694 typedef u_int32_t uint32_t;
29695 #endif
29696 #endif
29697 #endif
29698 EOF
29699 else
29700 sed 's/^ *//' >> tmp-stdint.h <<EOF
29701
29702 /* Some systems have guard macros to prevent redefinitions, define them. */
29703 #ifndef _INT8_T
29704 #define _INT8_T
29705 #endif
29706 #ifndef _INT16_T
29707 #define _INT16_T
29708 #endif
29709 #ifndef _INT32_T
29710 #define _INT32_T
29711 #endif
29712 #ifndef _UINT8_T
29713 #define _UINT8_T
29714 #endif
29715 #ifndef _UINT16_T
29716 #define _UINT16_T
29717 #endif
29718 #ifndef _UINT32_T
29719 #define _UINT32_T
29720 #endif
29721 EOF
29722 fi
29723
29724 # ------------- done basic int types, emit int64_t types ------------
29725 if test "$ac_cv_type_uint64_t" = yes; then
29726 sed 's/^ *//' >> tmp-stdint.h <<EOF
29727
29728 /* system headers have good uint64_t and int64_t */
29729 #ifndef _INT64_T
29730 #define _INT64_T
29731 #endif
29732 #ifndef _UINT64_T
29733 #define _UINT64_T
29734 #endif
29735 EOF
29736 elif test "$ac_cv_type_u_int64_t" = yes; then
29737 sed 's/^ *//' >> tmp-stdint.h <<EOF
29738
29739 /* system headers have an u_int64_t (and int64_t) */
29740 #ifndef _INT64_T
29741 #define _INT64_T
29742 #endif
29743 #ifndef _UINT64_T
29744 #define _UINT64_T
29745 #ifndef __uint64_t_defined
29746 #define __uint64_t_defined
29747 #ifndef uint64_t
29748 typedef u_int64_t uint64_t;
29749 #endif
29750 #endif
29751 #endif
29752 EOF
29753 elif test -n "$acx_cv_type_int64_t"; then
29754 sed 's/^ *//' >> tmp-stdint.h <<EOF
29755
29756 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
29757 #ifndef _INT64_T
29758 #define _INT64_T
29759 #ifndef int64_t
29760 typedef $acx_cv_type_int64_t int64_t;
29761 #endif
29762 #endif
29763 #ifndef _UINT64_T
29764 #define _UINT64_T
29765 #ifndef __uint64_t_defined
29766 #define __uint64_t_defined
29767 #ifndef uint64_t
29768 typedef unsigned $acx_cv_type_int64_t uint64_t;
29769 #endif
29770 #endif
29771 #endif
29772 EOF
29773 else
29774 sed 's/^ *//' >> tmp-stdint.h <<EOF
29775
29776 /* some common heuristics for int64_t, using compiler-specific tests */
29777 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
29778 #ifndef _INT64_T
29779 #define _INT64_T
29780 #ifndef __int64_t_defined
29781 #ifndef int64_t
29782 typedef long long int64_t;
29783 #endif
29784 #endif
29785 #endif
29786 #ifndef _UINT64_T
29787 #define _UINT64_T
29788 #ifndef uint64_t
29789 typedef unsigned long long uint64_t;
29790 #endif
29791 #endif
29792
29793 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
29794 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
29795 does not implement __extension__. But that compiler doesn't define
29796 __GNUC_MINOR__. */
29797 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
29798 # define __extension__
29799 # endif
29800
29801 # ifndef _INT64_T
29802 # define _INT64_T
29803 # ifndef int64_t
29804 __extension__ typedef long long int64_t;
29805 # endif
29806 # endif
29807 # ifndef _UINT64_T
29808 # define _UINT64_T
29809 # ifndef uint64_t
29810 __extension__ typedef unsigned long long uint64_t;
29811 # endif
29812 # endif
29813
29814 #elif !defined __STRICT_ANSI__
29815 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
29816
29817 # ifndef _INT64_T
29818 # define _INT64_T
29819 # ifndef int64_t
29820 typedef __int64 int64_t;
29821 # endif
29822 # endif
29823 # ifndef _UINT64_T
29824 # define _UINT64_T
29825 # ifndef uint64_t
29826 typedef unsigned __int64 uint64_t;
29827 # endif
29828 # endif
29829 # endif /* compiler */
29830
29831 #endif /* ANSI version */
29832 EOF
29833 fi
29834
29835 # ------------- done int64_t types, emit intptr types ------------
29836 if test "$ac_cv_type_uintptr_t" != yes; then
29837 sed 's/^ *//' >> tmp-stdint.h <<EOF
29838
29839 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
29840 #ifndef __uintptr_t_defined
29841 #ifndef uintptr_t
29842 typedef u$acx_cv_type_intptr_t uintptr_t;
29843 #endif
29844 #endif
29845 #ifndef __intptr_t_defined
29846 #ifndef intptr_t
29847 typedef $acx_cv_type_intptr_t intptr_t;
29848 #endif
29849 #endif
29850 EOF
29851 fi
29852
29853 # ------------- done intptr types, emit int_least types ------------
29854 if test "$ac_cv_type_int_least32_t" != yes; then
29855 sed 's/^ *//' >> tmp-stdint.h <<EOF
29856
29857 /* Define int_least types */
29858 typedef int8_t int_least8_t;
29859 typedef int16_t int_least16_t;
29860 typedef int32_t int_least32_t;
29861 #ifdef _INT64_T
29862 typedef int64_t int_least64_t;
29863 #endif
29864
29865 typedef uint8_t uint_least8_t;
29866 typedef uint16_t uint_least16_t;
29867 typedef uint32_t uint_least32_t;
29868 #ifdef _UINT64_T
29869 typedef uint64_t uint_least64_t;
29870 #endif
29871 EOF
29872 fi
29873
29874 # ------------- done intptr types, emit int_fast types ------------
29875 if test "$ac_cv_type_int_fast32_t" != yes; then
29876 sed 's/^ *//' >> tmp-stdint.h <<EOF
29877
29878 /* Define int_fast types. short is often slow */
29879 typedef int8_t int_fast8_t;
29880 typedef int int_fast16_t;
29881 typedef int32_t int_fast32_t;
29882 #ifdef _INT64_T
29883 typedef int64_t int_fast64_t;
29884 #endif
29885
29886 typedef uint8_t uint_fast8_t;
29887 typedef unsigned int uint_fast16_t;
29888 typedef uint32_t uint_fast32_t;
29889 #ifdef _UINT64_T
29890 typedef uint64_t uint_fast64_t;
29891 #endif
29892 EOF
29893 fi
29894
29895 if test "$ac_cv_type_uintmax_t" != yes; then
29896 sed 's/^ *//' >> tmp-stdint.h <<EOF
29897
29898 /* Define intmax based on what we found */
29899 #ifndef intmax_t
29900 #ifdef _INT64_T
29901 typedef int64_t intmax_t;
29902 #else
29903 typedef long intmax_t;
29904 #endif
29905 #endif
29906 #ifndef uintmax_t
29907 #ifdef _UINT64_T
29908 typedef uint64_t uintmax_t;
29909 #else
29910 typedef unsigned long uintmax_t;
29911 #endif
29912 #endif
29913 EOF
29914 fi
29915
29916 sed 's/^ *//' >> tmp-stdint.h <<EOF
29917
29918 #endif /* GCC_GENERATED_STDINT_H */
29919 EOF
29920
29921 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
29922 rm -f tmp-stdint.h
29923 else
29924 mv -f tmp-stdint.h gstdint.h
29925 fi
29926
29927 ;;
29928
29929 esac
29930 done # for ac_tag
29931
29932
29933 as_fn_exit 0
29934 _ACEOF
29935 ac_clean_files=$ac_clean_files_save
29936
29937 test $ac_write_fail = 0 ||
29938 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
29939
29940
29941 # configure is writing to config.log, and then calls config.status.
29942 # config.status does its own redirection, appending to config.log.
29943 # Unfortunately, on DOS this fails, as config.log is still kept open
29944 # by configure, so config.status won't be able to write to it; its
29945 # output is simply discarded. So we exec the FD to /dev/null,
29946 # effectively closing config.log, so it can be properly (re)opened and
29947 # appended to by config.status. When coming back to configure, we
29948 # need to make the FD available again.
29949 if test "$no_create" != yes; then
29950 ac_cs_success=:
29951 ac_config_status_args=
29952 test "$silent" = yes &&
29953 ac_config_status_args="$ac_config_status_args --quiet"
29954 exec 5>/dev/null
29955 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29956 exec 5>>config.log
29957 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29958 # would make configure fail if this is the last instruction.
29959 $ac_cs_success || as_fn_exit 1
29960 fi
29961 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29963 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
29964 fi
29965
This page took 1.431251 seconds and 6 git commands to generate.