]> git.ipfire.org Git - thirdparty/gcc.git/blob - libgfortran/configure
Fortran: Re-enable 128-bit integers for AMD GCN
[thirdparty/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 tmake_file
643 IEEE_FLAGS
644 IEEE_SUPPORT
645 IEEE_SUPPORT_FALSE
646 IEEE_SUPPORT_TRUE
647 FPU_HOST_HEADER
648 LIBGFOR_BUILD_QUAD_FALSE
649 LIBGFOR_BUILD_QUAD_TRUE
650 LIBQUADINCLUDE
651 LIBQUADLIB_DEP
652 LIBQUADLIB
653 LIBQUADSPEC
654 extra_ldflags_libgfortran
655 ac_ct_FC
656 FCFLAGS
657 FC
658 enable_static
659 enable_shared
660 lt_host_flags
661 OTOOL64
662 OTOOL
663 LIPO
664 NMEDIT
665 DSYMUTIL
666 OBJDUMP
667 LN_S
668 NM
669 ac_ct_DUMPBIN
670 DUMPBIN
671 LIBTOOL
672 RANLIB
673 AR
674 AS
675 HAVE_HWCAP_FALSE
676 HAVE_HWCAP_TRUE
677 HWCAP_LDFLAGS
678 LD
679 FGREP
680 SED
681 SECTION_FLAGS
682 LIBGOMP_CHECKED_REAL_KINDS
683 LIBGOMP_CHECKED_INT_KINDS
684 LIBGFOR_MINIMAL_FALSE
685 LIBGFOR_MINIMAL_TRUE
686 LIBGFOR_USE_SYMVER_SUN_FALSE
687 LIBGFOR_USE_SYMVER_SUN_TRUE
688 LIBGFOR_USE_SYMVER_GNU_FALSE
689 LIBGFOR_USE_SYMVER_GNU_TRUE
690 LIBGFOR_USE_SYMVER_FALSE
691 LIBGFOR_USE_SYMVER_TRUE
692 AM_CFLAGS
693 AM_FCFLAGS
694 toolexeclibdir
695 toolexecdir
696 EGREP
697 GREP
698 CPP
699 am__fastdepCC_FALSE
700 am__fastdepCC_TRUE
701 CCDEPMODE
702 am__nodep
703 AMDEPBACKSLASH
704 AMDEP_FALSE
705 AMDEP_TRUE
706 am__quote
707 am__include
708 DEPDIR
709 OBJEXT
710 EXEEXT
711 ac_ct_CC
712 CPPFLAGS
713 LDFLAGS
714 CFLAGS
715 CC
716 multi_basedir
717 MAINT
718 MAINTAINER_MODE_FALSE
719 MAINTAINER_MODE_TRUE
720 AM_BACKSLASH
721 AM_DEFAULT_VERBOSITY
722 AM_DEFAULT_V
723 AM_V
724 am__untar
725 am__tar
726 AMTAR
727 am__leading_dot
728 SET_MAKE
729 AWK
730 mkdir_p
731 MKDIR_P
732 INSTALL_STRIP_PROGRAM
733 STRIP
734 install_sh
735 MAKEINFO
736 AUTOHEADER
737 AUTOMAKE
738 AUTOCONF
739 ACLOCAL
740 VERSION
741 PACKAGE
742 CYGPATH_W
743 am__isrc
744 INSTALL_DATA
745 INSTALL_SCRIPT
746 INSTALL_PROGRAM
747 target_noncanonical
748 target_os
749 target_vendor
750 target_cpu
751 target
752 host_os
753 host_vendor
754 host_cpu
755 host
756 onestep
757 onestep_FALSE
758 onestep_TRUE
759 target_subdir
760 host_subdir
761 build_subdir
762 build_libsubdir
763 build_os
764 build_vendor
765 build_cpu
766 build
767 target_alias
768 host_alias
769 build_alias
770 LIBS
771 ECHO_T
772 ECHO_N
773 ECHO_C
774 DEFS
775 mandir
776 localedir
777 libdir
778 psdir
779 pdfdir
780 dvidir
781 htmldir
782 infodir
783 docdir
784 oldincludedir
785 includedir
786 localstatedir
787 sharedstatedir
788 sysconfdir
789 datadir
790 datarootdir
791 libexecdir
792 sbindir
793 bindir
794 program_transform_name
795 prefix
796 exec_prefix
797 PACKAGE_URL
798 PACKAGE_BUGREPORT
799 PACKAGE_STRING
800 PACKAGE_VERSION
801 PACKAGE_TARNAME
802 PACKAGE_NAME
803 PATH_SEPARATOR
804 SHELL'
805 ac_subst_files=''
806 ac_user_opts='
807 enable_option_checking
808 with_build_libsubdir
809 enable_version_specific_runtime_libs
810 enable_intermodule
811 enable_silent_rules
812 enable_maintainer_mode
813 enable_multilib
814 enable_dependency_tracking
815 with_toolexeclibdir
816 enable_cet
817 enable_symvers
818 with_gnu_ld
819 enable_shared
820 enable_static
821 with_pic
822 enable_fast_install
823 enable_libtool_lock
824 enable_largefile
825 enable_libquadmath_support
826 with_gcc_major_version_only
827 '
828 ac_precious_vars='build_alias
829 host_alias
830 target_alias
831 CC
832 CFLAGS
833 LDFLAGS
834 LIBS
835 CPPFLAGS
836 CPP
837 FC
838 FCFLAGS'
839
840
841 # Initialize some variables set by options.
842 ac_init_help=
843 ac_init_version=false
844 ac_unrecognized_opts=
845 ac_unrecognized_sep=
846 # The variables have the same names as the options, with
847 # dashes changed to underlines.
848 cache_file=/dev/null
849 exec_prefix=NONE
850 no_create=
851 no_recursion=
852 prefix=NONE
853 program_prefix=NONE
854 program_suffix=NONE
855 program_transform_name=s,x,x,
856 silent=
857 site=
858 srcdir=
859 verbose=
860 x_includes=NONE
861 x_libraries=NONE
862
863 # Installation directory options.
864 # These are left unexpanded so users can "make install exec_prefix=/foo"
865 # and all the variables that are supposed to be based on exec_prefix
866 # by default will actually change.
867 # Use braces instead of parens because sh, perl, etc. also accept them.
868 # (The list follows the same order as the GNU Coding Standards.)
869 bindir='${exec_prefix}/bin'
870 sbindir='${exec_prefix}/sbin'
871 libexecdir='${exec_prefix}/libexec'
872 datarootdir='${prefix}/share'
873 datadir='${datarootdir}'
874 sysconfdir='${prefix}/etc'
875 sharedstatedir='${prefix}/com'
876 localstatedir='${prefix}/var'
877 includedir='${prefix}/include'
878 oldincludedir='/usr/include'
879 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
880 infodir='${datarootdir}/info'
881 htmldir='${docdir}'
882 dvidir='${docdir}'
883 pdfdir='${docdir}'
884 psdir='${docdir}'
885 libdir='${exec_prefix}/lib'
886 localedir='${datarootdir}/locale'
887 mandir='${datarootdir}/man'
888
889 ac_prev=
890 ac_dashdash=
891 for ac_option
892 do
893 # If the previous option needs an argument, assign it.
894 if test -n "$ac_prev"; then
895 eval $ac_prev=\$ac_option
896 ac_prev=
897 continue
898 fi
899
900 case $ac_option in
901 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
902 *=) ac_optarg= ;;
903 *) ac_optarg=yes ;;
904 esac
905
906 # Accept the important Cygnus configure options, so we can diagnose typos.
907
908 case $ac_dashdash$ac_option in
909 --)
910 ac_dashdash=yes ;;
911
912 -bindir | --bindir | --bindi | --bind | --bin | --bi)
913 ac_prev=bindir ;;
914 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
915 bindir=$ac_optarg ;;
916
917 -build | --build | --buil | --bui | --bu)
918 ac_prev=build_alias ;;
919 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
920 build_alias=$ac_optarg ;;
921
922 -cache-file | --cache-file | --cache-fil | --cache-fi \
923 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
924 ac_prev=cache_file ;;
925 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
926 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
927 cache_file=$ac_optarg ;;
928
929 --config-cache | -C)
930 cache_file=config.cache ;;
931
932 -datadir | --datadir | --datadi | --datad)
933 ac_prev=datadir ;;
934 -datadir=* | --datadir=* | --datadi=* | --datad=*)
935 datadir=$ac_optarg ;;
936
937 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
938 | --dataroo | --dataro | --datar)
939 ac_prev=datarootdir ;;
940 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
941 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
942 datarootdir=$ac_optarg ;;
943
944 -disable-* | --disable-*)
945 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
946 # Reject names that are not valid shell variable names.
947 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
948 as_fn_error $? "invalid feature name: $ac_useropt"
949 ac_useropt_orig=$ac_useropt
950 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
951 case $ac_user_opts in
952 *"
953 "enable_$ac_useropt"
954 "*) ;;
955 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
956 ac_unrecognized_sep=', ';;
957 esac
958 eval enable_$ac_useropt=no ;;
959
960 -docdir | --docdir | --docdi | --doc | --do)
961 ac_prev=docdir ;;
962 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
963 docdir=$ac_optarg ;;
964
965 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
966 ac_prev=dvidir ;;
967 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
968 dvidir=$ac_optarg ;;
969
970 -enable-* | --enable-*)
971 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
972 # Reject names that are not valid shell variable names.
973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
974 as_fn_error $? "invalid feature name: $ac_useropt"
975 ac_useropt_orig=$ac_useropt
976 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
977 case $ac_user_opts in
978 *"
979 "enable_$ac_useropt"
980 "*) ;;
981 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
982 ac_unrecognized_sep=', ';;
983 esac
984 eval enable_$ac_useropt=\$ac_optarg ;;
985
986 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
987 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
988 | --exec | --exe | --ex)
989 ac_prev=exec_prefix ;;
990 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
991 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
992 | --exec=* | --exe=* | --ex=*)
993 exec_prefix=$ac_optarg ;;
994
995 -gas | --gas | --ga | --g)
996 # Obsolete; use --with-gas.
997 with_gas=yes ;;
998
999 -help | --help | --hel | --he | -h)
1000 ac_init_help=long ;;
1001 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1002 ac_init_help=recursive ;;
1003 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1004 ac_init_help=short ;;
1005
1006 -host | --host | --hos | --ho)
1007 ac_prev=host_alias ;;
1008 -host=* | --host=* | --hos=* | --ho=*)
1009 host_alias=$ac_optarg ;;
1010
1011 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1012 ac_prev=htmldir ;;
1013 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1014 | --ht=*)
1015 htmldir=$ac_optarg ;;
1016
1017 -includedir | --includedir | --includedi | --included | --include \
1018 | --includ | --inclu | --incl | --inc)
1019 ac_prev=includedir ;;
1020 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1021 | --includ=* | --inclu=* | --incl=* | --inc=*)
1022 includedir=$ac_optarg ;;
1023
1024 -infodir | --infodir | --infodi | --infod | --info | --inf)
1025 ac_prev=infodir ;;
1026 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1027 infodir=$ac_optarg ;;
1028
1029 -libdir | --libdir | --libdi | --libd)
1030 ac_prev=libdir ;;
1031 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1032 libdir=$ac_optarg ;;
1033
1034 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1035 | --libexe | --libex | --libe)
1036 ac_prev=libexecdir ;;
1037 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1038 | --libexe=* | --libex=* | --libe=*)
1039 libexecdir=$ac_optarg ;;
1040
1041 -localedir | --localedir | --localedi | --localed | --locale)
1042 ac_prev=localedir ;;
1043 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1044 localedir=$ac_optarg ;;
1045
1046 -localstatedir | --localstatedir | --localstatedi | --localstated \
1047 | --localstate | --localstat | --localsta | --localst | --locals)
1048 ac_prev=localstatedir ;;
1049 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1050 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1051 localstatedir=$ac_optarg ;;
1052
1053 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1054 ac_prev=mandir ;;
1055 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1056 mandir=$ac_optarg ;;
1057
1058 -nfp | --nfp | --nf)
1059 # Obsolete; use --without-fp.
1060 with_fp=no ;;
1061
1062 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1063 | --no-cr | --no-c | -n)
1064 no_create=yes ;;
1065
1066 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1067 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1068 no_recursion=yes ;;
1069
1070 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1071 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1072 | --oldin | --oldi | --old | --ol | --o)
1073 ac_prev=oldincludedir ;;
1074 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1075 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1076 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1077 oldincludedir=$ac_optarg ;;
1078
1079 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1080 ac_prev=prefix ;;
1081 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1082 prefix=$ac_optarg ;;
1083
1084 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1085 | --program-pre | --program-pr | --program-p)
1086 ac_prev=program_prefix ;;
1087 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1088 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1089 program_prefix=$ac_optarg ;;
1090
1091 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1092 | --program-suf | --program-su | --program-s)
1093 ac_prev=program_suffix ;;
1094 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1095 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1096 program_suffix=$ac_optarg ;;
1097
1098 -program-transform-name | --program-transform-name \
1099 | --program-transform-nam | --program-transform-na \
1100 | --program-transform-n | --program-transform- \
1101 | --program-transform | --program-transfor \
1102 | --program-transfo | --program-transf \
1103 | --program-trans | --program-tran \
1104 | --progr-tra | --program-tr | --program-t)
1105 ac_prev=program_transform_name ;;
1106 -program-transform-name=* | --program-transform-name=* \
1107 | --program-transform-nam=* | --program-transform-na=* \
1108 | --program-transform-n=* | --program-transform-=* \
1109 | --program-transform=* | --program-transfor=* \
1110 | --program-transfo=* | --program-transf=* \
1111 | --program-trans=* | --program-tran=* \
1112 | --progr-tra=* | --program-tr=* | --program-t=*)
1113 program_transform_name=$ac_optarg ;;
1114
1115 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1116 ac_prev=pdfdir ;;
1117 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1118 pdfdir=$ac_optarg ;;
1119
1120 -psdir | --psdir | --psdi | --psd | --ps)
1121 ac_prev=psdir ;;
1122 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1123 psdir=$ac_optarg ;;
1124
1125 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1126 | -silent | --silent | --silen | --sile | --sil)
1127 silent=yes ;;
1128
1129 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1130 ac_prev=sbindir ;;
1131 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1132 | --sbi=* | --sb=*)
1133 sbindir=$ac_optarg ;;
1134
1135 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1136 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1137 | --sharedst | --shareds | --shared | --share | --shar \
1138 | --sha | --sh)
1139 ac_prev=sharedstatedir ;;
1140 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1141 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1142 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1143 | --sha=* | --sh=*)
1144 sharedstatedir=$ac_optarg ;;
1145
1146 -site | --site | --sit)
1147 ac_prev=site ;;
1148 -site=* | --site=* | --sit=*)
1149 site=$ac_optarg ;;
1150
1151 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1152 ac_prev=srcdir ;;
1153 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1154 srcdir=$ac_optarg ;;
1155
1156 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1157 | --syscon | --sysco | --sysc | --sys | --sy)
1158 ac_prev=sysconfdir ;;
1159 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1160 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1161 sysconfdir=$ac_optarg ;;
1162
1163 -target | --target | --targe | --targ | --tar | --ta | --t)
1164 ac_prev=target_alias ;;
1165 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1166 target_alias=$ac_optarg ;;
1167
1168 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1169 verbose=yes ;;
1170
1171 -version | --version | --versio | --versi | --vers | -V)
1172 ac_init_version=: ;;
1173
1174 -with-* | --with-*)
1175 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1176 # Reject names that are not valid shell variable names.
1177 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1178 as_fn_error $? "invalid package name: $ac_useropt"
1179 ac_useropt_orig=$ac_useropt
1180 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181 case $ac_user_opts in
1182 *"
1183 "with_$ac_useropt"
1184 "*) ;;
1185 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1186 ac_unrecognized_sep=', ';;
1187 esac
1188 eval with_$ac_useropt=\$ac_optarg ;;
1189
1190 -without-* | --without-*)
1191 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1192 # Reject names that are not valid shell variable names.
1193 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1194 as_fn_error $? "invalid package name: $ac_useropt"
1195 ac_useropt_orig=$ac_useropt
1196 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1197 case $ac_user_opts in
1198 *"
1199 "with_$ac_useropt"
1200 "*) ;;
1201 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1202 ac_unrecognized_sep=', ';;
1203 esac
1204 eval with_$ac_useropt=no ;;
1205
1206 --x)
1207 # Obsolete; use --with-x.
1208 with_x=yes ;;
1209
1210 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1211 | --x-incl | --x-inc | --x-in | --x-i)
1212 ac_prev=x_includes ;;
1213 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1214 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1215 x_includes=$ac_optarg ;;
1216
1217 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1218 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1219 ac_prev=x_libraries ;;
1220 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1221 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1222 x_libraries=$ac_optarg ;;
1223
1224 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1225 Try \`$0 --help' for more information"
1226 ;;
1227
1228 *=*)
1229 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1230 # Reject names that are not valid shell variable names.
1231 case $ac_envvar in #(
1232 '' | [0-9]* | *[!_$as_cr_alnum]* )
1233 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1234 esac
1235 eval $ac_envvar=\$ac_optarg
1236 export $ac_envvar ;;
1237
1238 *)
1239 # FIXME: should be removed in autoconf 3.0.
1240 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1241 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1242 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1243 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1244 ;;
1245
1246 esac
1247 done
1248
1249 if test -n "$ac_prev"; then
1250 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1251 as_fn_error $? "missing argument to $ac_option"
1252 fi
1253
1254 if test -n "$ac_unrecognized_opts"; then
1255 case $enable_option_checking in
1256 no) ;;
1257 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1258 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1259 esac
1260 fi
1261
1262 # Check all directory arguments for consistency.
1263 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1264 datadir sysconfdir sharedstatedir localstatedir includedir \
1265 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1266 libdir localedir mandir
1267 do
1268 eval ac_val=\$$ac_var
1269 # Remove trailing slashes.
1270 case $ac_val in
1271 */ )
1272 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1273 eval $ac_var=\$ac_val;;
1274 esac
1275 # Be sure to have absolute directory names.
1276 case $ac_val in
1277 [\\/$]* | ?:[\\/]* ) continue;;
1278 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1279 esac
1280 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1281 done
1282
1283 # There might be people who depend on the old broken behavior: `$host'
1284 # used to hold the argument of --host etc.
1285 # FIXME: To remove some day.
1286 build=$build_alias
1287 host=$host_alias
1288 target=$target_alias
1289
1290 # FIXME: To remove some day.
1291 if test "x$host_alias" != x; then
1292 if test "x$build_alias" = x; then
1293 cross_compiling=maybe
1294 elif test "x$build_alias" != "x$host_alias"; then
1295 cross_compiling=yes
1296 fi
1297 fi
1298
1299 ac_tool_prefix=
1300 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1301
1302 test "$silent" = yes && exec 6>/dev/null
1303
1304
1305 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1306 ac_ls_di=`ls -di .` &&
1307 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1308 as_fn_error $? "working directory cannot be determined"
1309 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1310 as_fn_error $? "pwd does not report name of working directory"
1311
1312
1313 # Find the source files, if location was not specified.
1314 if test -z "$srcdir"; then
1315 ac_srcdir_defaulted=yes
1316 # Try the directory containing this script, then the parent directory.
1317 ac_confdir=`$as_dirname -- "$as_myself" ||
1318 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1319 X"$as_myself" : 'X\(//\)[^/]' \| \
1320 X"$as_myself" : 'X\(//\)$' \| \
1321 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1322 $as_echo X"$as_myself" |
1323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1324 s//\1/
1325 q
1326 }
1327 /^X\(\/\/\)[^/].*/{
1328 s//\1/
1329 q
1330 }
1331 /^X\(\/\/\)$/{
1332 s//\1/
1333 q
1334 }
1335 /^X\(\/\).*/{
1336 s//\1/
1337 q
1338 }
1339 s/.*/./; q'`
1340 srcdir=$ac_confdir
1341 if test ! -r "$srcdir/$ac_unique_file"; then
1342 srcdir=..
1343 fi
1344 else
1345 ac_srcdir_defaulted=no
1346 fi
1347 if test ! -r "$srcdir/$ac_unique_file"; then
1348 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1349 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1350 fi
1351 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1352 ac_abs_confdir=`(
1353 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1354 pwd)`
1355 # When building in place, set srcdir=.
1356 if test "$ac_abs_confdir" = "$ac_pwd"; then
1357 srcdir=.
1358 fi
1359 # Remove unnecessary trailing slashes from srcdir.
1360 # Double slashes in file names in object file debugging info
1361 # mess up M-x gdb in Emacs.
1362 case $srcdir in
1363 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1364 esac
1365 for ac_var in $ac_precious_vars; do
1366 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1367 eval ac_env_${ac_var}_value=\$${ac_var}
1368 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1369 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1370 done
1371
1372 #
1373 # Report the --help message.
1374 #
1375 if test "$ac_init_help" = "long"; then
1376 # Omit some internal or obsolete options to make the list less imposing.
1377 # This message is too long to be a string in the A/UX 3.1 sh.
1378 cat <<_ACEOF
1379 \`configure' configures GNU Fortran Runtime Library 0.3 to adapt to many kinds of systems.
1380
1381 Usage: $0 [OPTION]... [VAR=VALUE]...
1382
1383 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1384 VAR=VALUE. See below for descriptions of some of the useful variables.
1385
1386 Defaults for the options are specified in brackets.
1387
1388 Configuration:
1389 -h, --help display this help and exit
1390 --help=short display options specific to this package
1391 --help=recursive display the short help of all the included packages
1392 -V, --version display version information and exit
1393 -q, --quiet, --silent do not print \`checking ...' messages
1394 --cache-file=FILE cache test results in FILE [disabled]
1395 -C, --config-cache alias for \`--cache-file=config.cache'
1396 -n, --no-create do not create output files
1397 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1398
1399 Installation directories:
1400 --prefix=PREFIX install architecture-independent files in PREFIX
1401 [$ac_default_prefix]
1402 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1403 [PREFIX]
1404
1405 By default, \`make install' will install all the files in
1406 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1407 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1408 for instance \`--prefix=\$HOME'.
1409
1410 For better control, use the options below.
1411
1412 Fine tuning of the installation directories:
1413 --bindir=DIR user executables [EPREFIX/bin]
1414 --sbindir=DIR system admin executables [EPREFIX/sbin]
1415 --libexecdir=DIR program executables [EPREFIX/libexec]
1416 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1417 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1418 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1419 --libdir=DIR object code libraries [EPREFIX/lib]
1420 --includedir=DIR C header files [PREFIX/include]
1421 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1422 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1423 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1424 --infodir=DIR info documentation [DATAROOTDIR/info]
1425 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1426 --mandir=DIR man documentation [DATAROOTDIR/man]
1427 --docdir=DIR documentation root [DATAROOTDIR/doc/libgfortran]
1428 --htmldir=DIR html documentation [DOCDIR]
1429 --dvidir=DIR dvi documentation [DOCDIR]
1430 --pdfdir=DIR pdf documentation [DOCDIR]
1431 --psdir=DIR ps documentation [DOCDIR]
1432 _ACEOF
1433
1434 cat <<\_ACEOF
1435
1436 Program names:
1437 --program-prefix=PREFIX prepend PREFIX to installed program names
1438 --program-suffix=SUFFIX append SUFFIX to installed program names
1439 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1440
1441 System types:
1442 --build=BUILD configure for building on BUILD [guessed]
1443 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1444 --target=TARGET configure for building compilers for TARGET [HOST]
1445 _ACEOF
1446 fi
1447
1448 if test -n "$ac_init_help"; then
1449 case $ac_init_help in
1450 short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.3:";;
1451 esac
1452 cat <<\_ACEOF
1453
1454 Optional Features:
1455 --disable-option-checking ignore unrecognized --enable/--with options
1456 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1457 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1458 --enable-version-specific-runtime-libs
1459 specify that runtime libraries should be installed
1460 in a compiler-specific directory
1461 --enable-intermodule build the library in one step
1462 --enable-silent-rules less verbose build output (undo: "make V=1")
1463 --disable-silent-rules verbose build output (undo: "make V=0")
1464 --enable-maintainer-mode
1465 enable make rules and dependencies not useful (and
1466 sometimes confusing) to the casual installer
1467 --enable-multilib build many library versions (default)
1468 --enable-dependency-tracking
1469 do not reject slow dependency extractors
1470 --disable-dependency-tracking
1471 speeds up one-time build
1472 --enable-cet enable Intel CET in target libraries [default=auto]
1473 --disable-symvers disable symbol versioning for libgfortran
1474 --enable-shared[=PKGS] build shared libraries [default=yes]
1475 --enable-static[=PKGS] build static libraries [default=yes]
1476 --enable-fast-install[=PKGS]
1477 optimize for fast installation [default=yes]
1478 --disable-libtool-lock avoid locking (might break parallel builds)
1479 --disable-largefile omit support for large files
1480 --disable-libquadmath-support
1481 disable libquadmath support for Fortran
1482
1483 Optional Packages:
1484 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1485 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1486 --with-build-libsubdir=DIR Directory where to find libraries for build system
1487 --with-toolexeclibdir=DIR
1488 install libraries built with a cross compiler within
1489 DIR
1490 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1491 --with-pic try to use only PIC/non-PIC objects [default=use
1492 both]
1493 --with-gcc-major-version-only
1494 use only GCC major number in filesystem paths
1495
1496 Some influential environment variables:
1497 CC C compiler command
1498 CFLAGS C compiler flags
1499 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1500 nonstandard directory <lib dir>
1501 LIBS libraries to pass to the linker, e.g. -l<library>
1502 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1503 you have headers in a nonstandard directory <include dir>
1504 CPP C preprocessor
1505 FC Fortran compiler command
1506 FCFLAGS Fortran compiler flags
1507
1508 Use these variables to override the choices made by `configure' or to help
1509 it to find libraries and programs with nonstandard names/locations.
1510
1511 Report bugs to the package provider.
1512 GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
1513 General help using GNU software: <http://www.gnu.org/gethelp/>.
1514 _ACEOF
1515 ac_status=$?
1516 fi
1517
1518 if test "$ac_init_help" = "recursive"; then
1519 # If there are subdirs, report their specific --help.
1520 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1521 test -d "$ac_dir" ||
1522 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1523 continue
1524 ac_builddir=.
1525
1526 case "$ac_dir" in
1527 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 *)
1529 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1530 # A ".." for each directory in $ac_dir_suffix.
1531 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1532 case $ac_top_builddir_sub in
1533 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1535 esac ;;
1536 esac
1537 ac_abs_top_builddir=$ac_pwd
1538 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1539 # for backward compatibility:
1540 ac_top_builddir=$ac_top_build_prefix
1541
1542 case $srcdir in
1543 .) # We are building in place.
1544 ac_srcdir=.
1545 ac_top_srcdir=$ac_top_builddir_sub
1546 ac_abs_top_srcdir=$ac_pwd ;;
1547 [\\/]* | ?:[\\/]* ) # Absolute name.
1548 ac_srcdir=$srcdir$ac_dir_suffix;
1549 ac_top_srcdir=$srcdir
1550 ac_abs_top_srcdir=$srcdir ;;
1551 *) # Relative name.
1552 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1553 ac_top_srcdir=$ac_top_build_prefix$srcdir
1554 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1555 esac
1556 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1557
1558 cd "$ac_dir" || { ac_status=$?; continue; }
1559 # Check for guested configure.
1560 if test -f "$ac_srcdir/configure.gnu"; then
1561 echo &&
1562 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1563 elif test -f "$ac_srcdir/configure"; then
1564 echo &&
1565 $SHELL "$ac_srcdir/configure" --help=recursive
1566 else
1567 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1568 fi || ac_status=$?
1569 cd "$ac_pwd" || { ac_status=$?; break; }
1570 done
1571 fi
1572
1573 test -n "$ac_init_help" && exit $ac_status
1574 if $ac_init_version; then
1575 cat <<\_ACEOF
1576 GNU Fortran Runtime Library configure 0.3
1577 generated by GNU Autoconf 2.69
1578
1579 Copyright (C) 2012 Free Software Foundation, Inc.
1580 This configure script is free software; the Free Software Foundation
1581 gives unlimited permission to copy, distribute and modify it.
1582 _ACEOF
1583 exit
1584 fi
1585
1586 ## ------------------------ ##
1587 ## Autoconf initialization. ##
1588 ## ------------------------ ##
1589
1590 # ac_fn_c_try_compile LINENO
1591 # --------------------------
1592 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1593 ac_fn_c_try_compile ()
1594 {
1595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596 rm -f conftest.$ac_objext
1597 if { { ac_try="$ac_compile"
1598 case "(($ac_try" in
1599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600 *) ac_try_echo=$ac_try;;
1601 esac
1602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603 $as_echo "$ac_try_echo"; } >&5
1604 (eval "$ac_compile") 2>conftest.err
1605 ac_status=$?
1606 if test -s conftest.err; then
1607 grep -v '^ *+' conftest.err >conftest.er1
1608 cat conftest.er1 >&5
1609 mv -f conftest.er1 conftest.err
1610 fi
1611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612 test $ac_status = 0; } && {
1613 test -z "$ac_c_werror_flag" ||
1614 test ! -s conftest.err
1615 } && test -s conftest.$ac_objext; then :
1616 ac_retval=0
1617 else
1618 $as_echo "$as_me: failed program was:" >&5
1619 sed 's/^/| /' conftest.$ac_ext >&5
1620
1621 ac_retval=1
1622 fi
1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624 as_fn_set_status $ac_retval
1625
1626 } # ac_fn_c_try_compile
1627
1628 # ac_fn_c_try_cpp LINENO
1629 # ----------------------
1630 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1631 ac_fn_c_try_cpp ()
1632 {
1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634 if { { ac_try="$ac_cpp conftest.$ac_ext"
1635 case "(($ac_try" in
1636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1637 *) ac_try_echo=$ac_try;;
1638 esac
1639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1640 $as_echo "$ac_try_echo"; } >&5
1641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1642 ac_status=$?
1643 if test -s conftest.err; then
1644 grep -v '^ *+' conftest.err >conftest.er1
1645 cat conftest.er1 >&5
1646 mv -f conftest.er1 conftest.err
1647 fi
1648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1649 test $ac_status = 0; } > conftest.i && {
1650 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1651 test ! -s conftest.err
1652 }; then :
1653 ac_retval=0
1654 else
1655 $as_echo "$as_me: failed program was:" >&5
1656 sed 's/^/| /' conftest.$ac_ext >&5
1657
1658 ac_retval=1
1659 fi
1660 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1661 as_fn_set_status $ac_retval
1662
1663 } # ac_fn_c_try_cpp
1664
1665 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1666 # -------------------------------------------------------
1667 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1668 # the include files in INCLUDES and setting the cache variable VAR
1669 # accordingly.
1670 ac_fn_c_check_header_mongrel ()
1671 {
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 if eval \${$3+:} false; then :
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1675 $as_echo_n "checking for $2... " >&6; }
1676 if eval \${$3+:} false; then :
1677 $as_echo_n "(cached) " >&6
1678 fi
1679 eval ac_res=\$$3
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1681 $as_echo "$ac_res" >&6; }
1682 else
1683 # Is the header compilable?
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1685 $as_echo_n "checking $2 usability... " >&6; }
1686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1687 /* end confdefs.h. */
1688 $4
1689 #include <$2>
1690 _ACEOF
1691 if ac_fn_c_try_compile "$LINENO"; then :
1692 ac_header_compiler=yes
1693 else
1694 ac_header_compiler=no
1695 fi
1696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1698 $as_echo "$ac_header_compiler" >&6; }
1699
1700 # Is the header present?
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1702 $as_echo_n "checking $2 presence... " >&6; }
1703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1704 /* end confdefs.h. */
1705 #include <$2>
1706 _ACEOF
1707 if ac_fn_c_try_cpp "$LINENO"; then :
1708 ac_header_preproc=yes
1709 else
1710 ac_header_preproc=no
1711 fi
1712 rm -f conftest.err conftest.i conftest.$ac_ext
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1714 $as_echo "$ac_header_preproc" >&6; }
1715
1716 # So? What about this header?
1717 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1718 yes:no: )
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1720 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1722 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1723 ;;
1724 no:yes:* )
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1726 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1728 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1730 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1732 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1734 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1735 ;;
1736 esac
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1738 $as_echo_n "checking for $2... " >&6; }
1739 if eval \${$3+:} false; then :
1740 $as_echo_n "(cached) " >&6
1741 else
1742 eval "$3=\$ac_header_compiler"
1743 fi
1744 eval ac_res=\$$3
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1746 $as_echo "$ac_res" >&6; }
1747 fi
1748 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1749
1750 } # ac_fn_c_check_header_mongrel
1751
1752 # ac_fn_c_try_run LINENO
1753 # ----------------------
1754 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1755 # that executables *can* be run.
1756 ac_fn_c_try_run ()
1757 {
1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759 if { { ac_try="$ac_link"
1760 case "(($ac_try" in
1761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762 *) ac_try_echo=$ac_try;;
1763 esac
1764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765 $as_echo "$ac_try_echo"; } >&5
1766 (eval "$ac_link") 2>&5
1767 ac_status=$?
1768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1770 { { case "(($ac_try" in
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1773 esac
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_try") 2>&5
1777 ac_status=$?
1778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779 test $ac_status = 0; }; }; then :
1780 ac_retval=0
1781 else
1782 $as_echo "$as_me: program exited with status $ac_status" >&5
1783 $as_echo "$as_me: failed program was:" >&5
1784 sed 's/^/| /' conftest.$ac_ext >&5
1785
1786 ac_retval=$ac_status
1787 fi
1788 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790 as_fn_set_status $ac_retval
1791
1792 } # ac_fn_c_try_run
1793
1794 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1795 # -------------------------------------------------------
1796 # Tests whether HEADER exists and can be compiled using the include files in
1797 # INCLUDES, setting the cache variable VAR accordingly.
1798 ac_fn_c_check_header_compile ()
1799 {
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1802 $as_echo_n "checking for $2... " >&6; }
1803 if eval \${$3+:} false; then :
1804 $as_echo_n "(cached) " >&6
1805 else
1806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807 /* end confdefs.h. */
1808 $4
1809 #include <$2>
1810 _ACEOF
1811 if ac_fn_c_try_compile "$LINENO"; then :
1812 eval "$3=yes"
1813 else
1814 eval "$3=no"
1815 fi
1816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1817 fi
1818 eval ac_res=\$$3
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1820 $as_echo "$ac_res" >&6; }
1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822
1823 } # ac_fn_c_check_header_compile
1824
1825 # ac_fn_c_try_link LINENO
1826 # -----------------------
1827 # Try to link conftest.$ac_ext, and return whether this succeeded.
1828 ac_fn_c_try_link ()
1829 {
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 rm -f conftest.$ac_objext conftest$ac_exeext
1832 if { { ac_try="$ac_link"
1833 case "(($ac_try" in
1834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1835 *) ac_try_echo=$ac_try;;
1836 esac
1837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838 $as_echo "$ac_try_echo"; } >&5
1839 (eval "$ac_link") 2>conftest.err
1840 ac_status=$?
1841 if test -s conftest.err; then
1842 grep -v '^ *+' conftest.err >conftest.er1
1843 cat conftest.er1 >&5
1844 mv -f conftest.er1 conftest.err
1845 fi
1846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847 test $ac_status = 0; } && {
1848 test -z "$ac_c_werror_flag" ||
1849 test ! -s conftest.err
1850 } && test -s conftest$ac_exeext && {
1851 test "$cross_compiling" = yes ||
1852 test -x conftest$ac_exeext
1853 }; then :
1854 ac_retval=0
1855 else
1856 $as_echo "$as_me: failed program was:" >&5
1857 sed 's/^/| /' conftest.$ac_ext >&5
1858
1859 ac_retval=1
1860 fi
1861 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1862 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1863 # interfere with the next link command; also delete a directory that is
1864 # left behind by Apple's compiler. We do this before executing the actions.
1865 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1867 as_fn_set_status $ac_retval
1868
1869 } # ac_fn_c_try_link
1870
1871 # ac_fn_c_check_func LINENO FUNC VAR
1872 # ----------------------------------
1873 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1874 ac_fn_c_check_func ()
1875 {
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1878 $as_echo_n "checking for $2... " >&6; }
1879 if eval \${$3+:} false; then :
1880 $as_echo_n "(cached) " >&6
1881 else
1882 if test x$gcc_no_link = xyes; then
1883 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1884 fi
1885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1886 /* end confdefs.h. */
1887 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1889 #define $2 innocuous_$2
1890
1891 /* System header to define __stub macros and hopefully few prototypes,
1892 which can conflict with char $2 (); below.
1893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1894 <limits.h> exists even on freestanding compilers. */
1895
1896 #ifdef __STDC__
1897 # include <limits.h>
1898 #else
1899 # include <assert.h>
1900 #endif
1901
1902 #undef $2
1903
1904 /* Override any GCC internal prototype to avoid an error.
1905 Use char because int might match the return type of a GCC
1906 builtin and then its argument prototype would still apply. */
1907 #ifdef __cplusplus
1908 extern "C"
1909 #endif
1910 char $2 ();
1911 /* The GNU C library defines this for functions which it implements
1912 to always fail with ENOSYS. Some functions are actually named
1913 something starting with __ and the normal name is an alias. */
1914 #if defined __stub_$2 || defined __stub___$2
1915 choke me
1916 #endif
1917
1918 int
1919 main ()
1920 {
1921 return $2 ();
1922 ;
1923 return 0;
1924 }
1925 _ACEOF
1926 if ac_fn_c_try_link "$LINENO"; then :
1927 eval "$3=yes"
1928 else
1929 eval "$3=no"
1930 fi
1931 rm -f core conftest.err conftest.$ac_objext \
1932 conftest$ac_exeext conftest.$ac_ext
1933 fi
1934 eval ac_res=\$$3
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1936 $as_echo "$ac_res" >&6; }
1937 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1938
1939 } # ac_fn_c_check_func
1940
1941 # ac_fn_fc_try_compile LINENO
1942 # ---------------------------
1943 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1944 ac_fn_fc_try_compile ()
1945 {
1946 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947 rm -f conftest.$ac_objext
1948 if { { ac_try="$ac_compile"
1949 case "(($ac_try" in
1950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1951 *) ac_try_echo=$ac_try;;
1952 esac
1953 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1954 $as_echo "$ac_try_echo"; } >&5
1955 (eval "$ac_compile") 2>conftest.err
1956 ac_status=$?
1957 if test -s conftest.err; then
1958 grep -v '^ *+' conftest.err >conftest.er1
1959 cat conftest.er1 >&5
1960 mv -f conftest.er1 conftest.err
1961 fi
1962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1963 test $ac_status = 0; } && {
1964 test -z "$ac_fc_werror_flag" ||
1965 test ! -s conftest.err
1966 } && test -s conftest.$ac_objext; then :
1967 ac_retval=0
1968 else
1969 $as_echo "$as_me: failed program was:" >&5
1970 sed 's/^/| /' conftest.$ac_ext >&5
1971
1972 ac_retval=1
1973 fi
1974 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1975 as_fn_set_status $ac_retval
1976
1977 } # ac_fn_fc_try_compile
1978
1979 # ac_fn_fc_try_link LINENO
1980 # ------------------------
1981 # Try to link conftest.$ac_ext, and return whether this succeeded.
1982 ac_fn_fc_try_link ()
1983 {
1984 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985 rm -f conftest.$ac_objext conftest$ac_exeext
1986 if { { ac_try="$ac_link"
1987 case "(($ac_try" in
1988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1989 *) ac_try_echo=$ac_try;;
1990 esac
1991 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1992 $as_echo "$ac_try_echo"; } >&5
1993 (eval "$ac_link") 2>conftest.err
1994 ac_status=$?
1995 if test -s conftest.err; then
1996 grep -v '^ *+' conftest.err >conftest.er1
1997 cat conftest.er1 >&5
1998 mv -f conftest.er1 conftest.err
1999 fi
2000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2001 test $ac_status = 0; } && {
2002 test -z "$ac_fc_werror_flag" ||
2003 test ! -s conftest.err
2004 } && test -s conftest$ac_exeext && {
2005 test "$cross_compiling" = yes ||
2006 test -x conftest$ac_exeext
2007 }; then :
2008 ac_retval=0
2009 else
2010 $as_echo "$as_me: failed program was:" >&5
2011 sed 's/^/| /' conftest.$ac_ext >&5
2012
2013 ac_retval=1
2014 fi
2015 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2016 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2017 # interfere with the next link command; also delete a directory that is
2018 # left behind by Apple's compiler. We do this before executing the actions.
2019 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2020 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2021 as_fn_set_status $ac_retval
2022
2023 } # ac_fn_fc_try_link
2024
2025 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2026 # -------------------------------------------
2027 # Tests whether TYPE exists after having included INCLUDES, setting cache
2028 # variable VAR accordingly.
2029 ac_fn_c_check_type ()
2030 {
2031 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2033 $as_echo_n "checking for $2... " >&6; }
2034 if eval \${$3+:} false; then :
2035 $as_echo_n "(cached) " >&6
2036 else
2037 eval "$3=no"
2038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039 /* end confdefs.h. */
2040 $4
2041 int
2042 main ()
2043 {
2044 if (sizeof ($2))
2045 return 0;
2046 ;
2047 return 0;
2048 }
2049 _ACEOF
2050 if ac_fn_c_try_compile "$LINENO"; then :
2051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2052 /* end confdefs.h. */
2053 $4
2054 int
2055 main ()
2056 {
2057 if (sizeof (($2)))
2058 return 0;
2059 ;
2060 return 0;
2061 }
2062 _ACEOF
2063 if ac_fn_c_try_compile "$LINENO"; then :
2064
2065 else
2066 eval "$3=yes"
2067 fi
2068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2069 fi
2070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2071 fi
2072 eval ac_res=\$$3
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2074 $as_echo "$ac_res" >&6; }
2075 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2076
2077 } # ac_fn_c_check_type
2078
2079 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2080 # --------------------------------------------
2081 # Tries to find the compile-time value of EXPR in a program that includes
2082 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2083 # computed
2084 ac_fn_c_compute_int ()
2085 {
2086 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2087 if test "$cross_compiling" = yes; then
2088 # Depending upon the size, compute the lo and hi bounds.
2089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090 /* end confdefs.h. */
2091 $4
2092 int
2093 main ()
2094 {
2095 static int test_array [1 - 2 * !(($2) >= 0)];
2096 test_array [0] = 0;
2097 return test_array [0];
2098
2099 ;
2100 return 0;
2101 }
2102 _ACEOF
2103 if ac_fn_c_try_compile "$LINENO"; then :
2104 ac_lo=0 ac_mid=0
2105 while :; do
2106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107 /* end confdefs.h. */
2108 $4
2109 int
2110 main ()
2111 {
2112 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2113 test_array [0] = 0;
2114 return test_array [0];
2115
2116 ;
2117 return 0;
2118 }
2119 _ACEOF
2120 if ac_fn_c_try_compile "$LINENO"; then :
2121 ac_hi=$ac_mid; break
2122 else
2123 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2124 if test $ac_lo -le $ac_mid; then
2125 ac_lo= ac_hi=
2126 break
2127 fi
2128 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2129 fi
2130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2131 done
2132 else
2133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2134 /* end confdefs.h. */
2135 $4
2136 int
2137 main ()
2138 {
2139 static int test_array [1 - 2 * !(($2) < 0)];
2140 test_array [0] = 0;
2141 return test_array [0];
2142
2143 ;
2144 return 0;
2145 }
2146 _ACEOF
2147 if ac_fn_c_try_compile "$LINENO"; then :
2148 ac_hi=-1 ac_mid=-1
2149 while :; do
2150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2151 /* end confdefs.h. */
2152 $4
2153 int
2154 main ()
2155 {
2156 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2157 test_array [0] = 0;
2158 return test_array [0];
2159
2160 ;
2161 return 0;
2162 }
2163 _ACEOF
2164 if ac_fn_c_try_compile "$LINENO"; then :
2165 ac_lo=$ac_mid; break
2166 else
2167 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2168 if test $ac_mid -le $ac_hi; then
2169 ac_lo= ac_hi=
2170 break
2171 fi
2172 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2173 fi
2174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2175 done
2176 else
2177 ac_lo= ac_hi=
2178 fi
2179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2180 fi
2181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2182 # Binary search between lo and hi bounds.
2183 while test "x$ac_lo" != "x$ac_hi"; do
2184 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2186 /* end confdefs.h. */
2187 $4
2188 int
2189 main ()
2190 {
2191 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2192 test_array [0] = 0;
2193 return test_array [0];
2194
2195 ;
2196 return 0;
2197 }
2198 _ACEOF
2199 if ac_fn_c_try_compile "$LINENO"; then :
2200 ac_hi=$ac_mid
2201 else
2202 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2203 fi
2204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2205 done
2206 case $ac_lo in #((
2207 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2208 '') ac_retval=1 ;;
2209 esac
2210 else
2211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2212 /* end confdefs.h. */
2213 $4
2214 static long int longval () { return $2; }
2215 static unsigned long int ulongval () { return $2; }
2216 #include <stdio.h>
2217 #include <stdlib.h>
2218 int
2219 main ()
2220 {
2221
2222 FILE *f = fopen ("conftest.val", "w");
2223 if (! f)
2224 return 1;
2225 if (($2) < 0)
2226 {
2227 long int i = longval ();
2228 if (i != ($2))
2229 return 1;
2230 fprintf (f, "%ld", i);
2231 }
2232 else
2233 {
2234 unsigned long int i = ulongval ();
2235 if (i != ($2))
2236 return 1;
2237 fprintf (f, "%lu", i);
2238 }
2239 /* Do not output a trailing newline, as this causes \r\n confusion
2240 on some platforms. */
2241 return ferror (f) || fclose (f) != 0;
2242
2243 ;
2244 return 0;
2245 }
2246 _ACEOF
2247 if ac_fn_c_try_run "$LINENO"; then :
2248 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2249 else
2250 ac_retval=1
2251 fi
2252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2253 conftest.$ac_objext conftest.beam conftest.$ac_ext
2254 rm -f conftest.val
2255
2256 fi
2257 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2258 as_fn_set_status $ac_retval
2259
2260 } # ac_fn_c_compute_int
2261
2262 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2263 # ----------------------------------------------------
2264 # Tries to find if the field MEMBER exists in type AGGR, after including
2265 # INCLUDES, setting cache variable VAR accordingly.
2266 ac_fn_c_check_member ()
2267 {
2268 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2270 $as_echo_n "checking for $2.$3... " >&6; }
2271 if eval \${$4+:} false; then :
2272 $as_echo_n "(cached) " >&6
2273 else
2274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2275 /* end confdefs.h. */
2276 $5
2277 int
2278 main ()
2279 {
2280 static $2 ac_aggr;
2281 if (ac_aggr.$3)
2282 return 0;
2283 ;
2284 return 0;
2285 }
2286 _ACEOF
2287 if ac_fn_c_try_compile "$LINENO"; then :
2288 eval "$4=yes"
2289 else
2290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2291 /* end confdefs.h. */
2292 $5
2293 int
2294 main ()
2295 {
2296 static $2 ac_aggr;
2297 if (sizeof ac_aggr.$3)
2298 return 0;
2299 ;
2300 return 0;
2301 }
2302 _ACEOF
2303 if ac_fn_c_try_compile "$LINENO"; then :
2304 eval "$4=yes"
2305 else
2306 eval "$4=no"
2307 fi
2308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2309 fi
2310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2311 fi
2312 eval ac_res=\$$4
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2314 $as_echo "$ac_res" >&6; }
2315 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2316
2317 } # ac_fn_c_check_member
2318 cat >config.log <<_ACEOF
2319 This file contains any messages produced by compilers while
2320 running configure, to aid debugging if configure makes a mistake.
2321
2322 It was created by GNU Fortran Runtime Library $as_me 0.3, which was
2323 generated by GNU Autoconf 2.69. Invocation command line was
2324
2325 $ $0 $@
2326
2327 _ACEOF
2328 exec 5>>config.log
2329 {
2330 cat <<_ASUNAME
2331 ## --------- ##
2332 ## Platform. ##
2333 ## --------- ##
2334
2335 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2336 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2337 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2338 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2339 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2340
2341 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2342 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2343
2344 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2345 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2346 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2347 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2348 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2349 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2350 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2351
2352 _ASUNAME
2353
2354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2355 for as_dir in $PATH
2356 do
2357 IFS=$as_save_IFS
2358 test -z "$as_dir" && as_dir=.
2359 $as_echo "PATH: $as_dir"
2360 done
2361 IFS=$as_save_IFS
2362
2363 } >&5
2364
2365 cat >&5 <<_ACEOF
2366
2367
2368 ## ----------- ##
2369 ## Core tests. ##
2370 ## ----------- ##
2371
2372 _ACEOF
2373
2374
2375 # Keep a trace of the command line.
2376 # Strip out --no-create and --no-recursion so they do not pile up.
2377 # Strip out --silent because we don't want to record it for future runs.
2378 # Also quote any args containing shell meta-characters.
2379 # Make two passes to allow for proper duplicate-argument suppression.
2380 ac_configure_args=
2381 ac_configure_args0=
2382 ac_configure_args1=
2383 ac_must_keep_next=false
2384 for ac_pass in 1 2
2385 do
2386 for ac_arg
2387 do
2388 case $ac_arg in
2389 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2390 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2391 | -silent | --silent | --silen | --sile | --sil)
2392 continue ;;
2393 *\'*)
2394 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2395 esac
2396 case $ac_pass in
2397 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2398 2)
2399 as_fn_append ac_configure_args1 " '$ac_arg'"
2400 if test $ac_must_keep_next = true; then
2401 ac_must_keep_next=false # Got value, back to normal.
2402 else
2403 case $ac_arg in
2404 *=* | --config-cache | -C | -disable-* | --disable-* \
2405 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2406 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2407 | -with-* | --with-* | -without-* | --without-* | --x)
2408 case "$ac_configure_args0 " in
2409 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2410 esac
2411 ;;
2412 -* ) ac_must_keep_next=true ;;
2413 esac
2414 fi
2415 as_fn_append ac_configure_args " '$ac_arg'"
2416 ;;
2417 esac
2418 done
2419 done
2420 { ac_configure_args0=; unset ac_configure_args0;}
2421 { ac_configure_args1=; unset ac_configure_args1;}
2422
2423 # When interrupted or exit'd, cleanup temporary files, and complete
2424 # config.log. We remove comments because anyway the quotes in there
2425 # would cause problems or look ugly.
2426 # WARNING: Use '\'' to represent an apostrophe within the trap.
2427 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2428 trap 'exit_status=$?
2429 # Save into config.log some information that might help in debugging.
2430 {
2431 echo
2432
2433 $as_echo "## ---------------- ##
2434 ## Cache variables. ##
2435 ## ---------------- ##"
2436 echo
2437 # The following way of writing the cache mishandles newlines in values,
2438 (
2439 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2440 eval ac_val=\$$ac_var
2441 case $ac_val in #(
2442 *${as_nl}*)
2443 case $ac_var in #(
2444 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2445 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2446 esac
2447 case $ac_var in #(
2448 _ | IFS | as_nl) ;; #(
2449 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2450 *) { eval $ac_var=; unset $ac_var;} ;;
2451 esac ;;
2452 esac
2453 done
2454 (set) 2>&1 |
2455 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2456 *${as_nl}ac_space=\ *)
2457 sed -n \
2458 "s/'\''/'\''\\\\'\'''\''/g;
2459 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2460 ;; #(
2461 *)
2462 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2463 ;;
2464 esac |
2465 sort
2466 )
2467 echo
2468
2469 $as_echo "## ----------------- ##
2470 ## Output variables. ##
2471 ## ----------------- ##"
2472 echo
2473 for ac_var in $ac_subst_vars
2474 do
2475 eval ac_val=\$$ac_var
2476 case $ac_val in
2477 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2478 esac
2479 $as_echo "$ac_var='\''$ac_val'\''"
2480 done | sort
2481 echo
2482
2483 if test -n "$ac_subst_files"; then
2484 $as_echo "## ------------------- ##
2485 ## File substitutions. ##
2486 ## ------------------- ##"
2487 echo
2488 for ac_var in $ac_subst_files
2489 do
2490 eval ac_val=\$$ac_var
2491 case $ac_val in
2492 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2493 esac
2494 $as_echo "$ac_var='\''$ac_val'\''"
2495 done | sort
2496 echo
2497 fi
2498
2499 if test -s confdefs.h; then
2500 $as_echo "## ----------- ##
2501 ## confdefs.h. ##
2502 ## ----------- ##"
2503 echo
2504 cat confdefs.h
2505 echo
2506 fi
2507 test "$ac_signal" != 0 &&
2508 $as_echo "$as_me: caught signal $ac_signal"
2509 $as_echo "$as_me: exit $exit_status"
2510 } >&5
2511 rm -f core *.core core.conftest.* &&
2512 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2513 exit $exit_status
2514 ' 0
2515 for ac_signal in 1 2 13 15; do
2516 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2517 done
2518 ac_signal=0
2519
2520 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2521 rm -f -r conftest* confdefs.h
2522
2523 $as_echo "/* confdefs.h */" > confdefs.h
2524
2525 # Predefined preprocessor variables.
2526
2527 cat >>confdefs.h <<_ACEOF
2528 #define PACKAGE_NAME "$PACKAGE_NAME"
2529 _ACEOF
2530
2531 cat >>confdefs.h <<_ACEOF
2532 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2533 _ACEOF
2534
2535 cat >>confdefs.h <<_ACEOF
2536 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2537 _ACEOF
2538
2539 cat >>confdefs.h <<_ACEOF
2540 #define PACKAGE_STRING "$PACKAGE_STRING"
2541 _ACEOF
2542
2543 cat >>confdefs.h <<_ACEOF
2544 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2545 _ACEOF
2546
2547 cat >>confdefs.h <<_ACEOF
2548 #define PACKAGE_URL "$PACKAGE_URL"
2549 _ACEOF
2550
2551
2552 # Let the site file select an alternate cache file if it wants to.
2553 # Prefer an explicitly selected file to automatically selected ones.
2554 ac_site_file1=NONE
2555 ac_site_file2=NONE
2556 if test -n "$CONFIG_SITE"; then
2557 # We do not want a PATH search for config.site.
2558 case $CONFIG_SITE in #((
2559 -*) ac_site_file1=./$CONFIG_SITE;;
2560 */*) ac_site_file1=$CONFIG_SITE;;
2561 *) ac_site_file1=./$CONFIG_SITE;;
2562 esac
2563 elif test "x$prefix" != xNONE; then
2564 ac_site_file1=$prefix/share/config.site
2565 ac_site_file2=$prefix/etc/config.site
2566 else
2567 ac_site_file1=$ac_default_prefix/share/config.site
2568 ac_site_file2=$ac_default_prefix/etc/config.site
2569 fi
2570 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2571 do
2572 test "x$ac_site_file" = xNONE && continue
2573 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2575 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2576 sed 's/^/| /' "$ac_site_file" >&5
2577 . "$ac_site_file" \
2578 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2580 as_fn_error $? "failed to load site script $ac_site_file
2581 See \`config.log' for more details" "$LINENO" 5; }
2582 fi
2583 done
2584
2585 if test -r "$cache_file"; then
2586 # Some versions of bash will fail to source /dev/null (special files
2587 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2588 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2590 $as_echo "$as_me: loading cache $cache_file" >&6;}
2591 case $cache_file in
2592 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2593 *) . "./$cache_file";;
2594 esac
2595 fi
2596 else
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2598 $as_echo "$as_me: creating cache $cache_file" >&6;}
2599 >$cache_file
2600 fi
2601
2602 as_fn_append ac_header_list " unistd.h"
2603 as_fn_append ac_header_list " sys/random.h"
2604 as_fn_append ac_header_list " sys/time.h"
2605 as_fn_append ac_header_list " sys/times.h"
2606 as_fn_append ac_header_list " sys/resource.h"
2607 as_fn_append ac_header_list " sys/types.h"
2608 as_fn_append ac_header_list " sys/stat.h"
2609 as_fn_append ac_header_list " sys/uio.h"
2610 as_fn_append ac_header_list " sys/wait.h"
2611 as_fn_append ac_header_list " floatingpoint.h"
2612 as_fn_append ac_header_list " ieeefp.h"
2613 as_fn_append ac_header_list " fenv.h"
2614 as_fn_append ac_header_list " fptrap.h"
2615 as_fn_append ac_header_list " fpxcp.h"
2616 as_fn_append ac_header_list " pwd.h"
2617 as_fn_append ac_header_list " complex.h"
2618 as_fn_append ac_header_list " xlocale.h"
2619 as_fn_append ac_func_list " getrusage"
2620 as_fn_append ac_func_list " times"
2621 as_fn_append ac_func_list " mkstemp"
2622 as_fn_append ac_func_list " strtof"
2623 as_fn_append ac_func_list " strtold"
2624 as_fn_append ac_func_list " snprintf"
2625 as_fn_append ac_func_list " ftruncate"
2626 as_fn_append ac_func_list " chsize"
2627 as_fn_append ac_func_list " chdir"
2628 as_fn_append ac_func_list " getentropy"
2629 as_fn_append ac_func_list " getlogin"
2630 as_fn_append ac_func_list " gethostname"
2631 as_fn_append ac_func_list " kill"
2632 as_fn_append ac_func_list " link"
2633 as_fn_append ac_func_list " symlink"
2634 as_fn_append ac_func_list " sleep"
2635 as_fn_append ac_func_list " ttyname"
2636 as_fn_append ac_func_list " sigaction"
2637 as_fn_append ac_func_list " waitpid"
2638 as_fn_append ac_func_list " alarm"
2639 as_fn_append ac_func_list " access"
2640 as_fn_append ac_func_list " fork"
2641 as_fn_append ac_func_list " posix_spawn"
2642 as_fn_append ac_func_list " setmode"
2643 as_fn_append ac_func_list " fcntl"
2644 as_fn_append ac_func_list " writev"
2645 as_fn_append ac_func_list " gettimeofday"
2646 as_fn_append ac_func_list " stat"
2647 as_fn_append ac_func_list " fstat"
2648 as_fn_append ac_func_list " lstat"
2649 as_fn_append ac_func_list " getpwuid"
2650 as_fn_append ac_func_list " vsnprintf"
2651 as_fn_append ac_func_list " dup"
2652 as_fn_append ac_func_list " getcwd"
2653 as_fn_append ac_func_list " localtime_r"
2654 as_fn_append ac_func_list " gmtime_r"
2655 as_fn_append ac_func_list " getpwuid_r"
2656 as_fn_append ac_func_list " ttyname_r"
2657 as_fn_append ac_func_list " clock_gettime"
2658 as_fn_append ac_func_list " getgid"
2659 as_fn_append ac_func_list " getpid"
2660 as_fn_append ac_func_list " getuid"
2661 as_fn_append ac_func_list " geteuid"
2662 as_fn_append ac_func_list " umask"
2663 as_fn_append ac_func_list " getegid"
2664 as_fn_append ac_func_list " secure_getenv"
2665 as_fn_append ac_func_list " __secure_getenv"
2666 as_fn_append ac_func_list " mkostemp"
2667 as_fn_append ac_func_list " strnlen"
2668 as_fn_append ac_func_list " strndup"
2669 as_fn_append ac_func_list " newlocale"
2670 as_fn_append ac_func_list " freelocale"
2671 as_fn_append ac_func_list " uselocale"
2672 as_fn_append ac_func_list " strerror_l"
2673 as_fn_append ac_header_list " math.h"
2674 # Check that the precious variables saved in the cache have kept the same
2675 # value.
2676 ac_cache_corrupted=false
2677 for ac_var in $ac_precious_vars; do
2678 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2679 eval ac_new_set=\$ac_env_${ac_var}_set
2680 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2681 eval ac_new_val=\$ac_env_${ac_var}_value
2682 case $ac_old_set,$ac_new_set in
2683 set,)
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2685 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2686 ac_cache_corrupted=: ;;
2687 ,set)
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2689 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2690 ac_cache_corrupted=: ;;
2691 ,);;
2692 *)
2693 if test "x$ac_old_val" != "x$ac_new_val"; then
2694 # differences in whitespace do not lead to failure.
2695 ac_old_val_w=`echo x $ac_old_val`
2696 ac_new_val_w=`echo x $ac_new_val`
2697 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2699 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2700 ac_cache_corrupted=:
2701 else
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2703 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2704 eval $ac_var=\$ac_old_val
2705 fi
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2707 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2709 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2710 fi;;
2711 esac
2712 # Pass precious variables to config.status.
2713 if test "$ac_new_set" = set; then
2714 case $ac_new_val in
2715 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2716 *) ac_arg=$ac_var=$ac_new_val ;;
2717 esac
2718 case " $ac_configure_args " in
2719 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2720 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2721 esac
2722 fi
2723 done
2724 if $ac_cache_corrupted; then
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2726 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2728 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2729 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2730 fi
2731 ## -------------------- ##
2732 ## Main body of script. ##
2733 ## -------------------- ##
2734
2735 ac_ext=c
2736 ac_cpp='$CPP $CPPFLAGS'
2737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2740
2741
2742
2743
2744
2745 ac_config_headers="$ac_config_headers config.h"
2746
2747 ac_aux_dir=
2748 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2749 if test -f "$ac_dir/install-sh"; then
2750 ac_aux_dir=$ac_dir
2751 ac_install_sh="$ac_aux_dir/install-sh -c"
2752 break
2753 elif test -f "$ac_dir/install.sh"; then
2754 ac_aux_dir=$ac_dir
2755 ac_install_sh="$ac_aux_dir/install.sh -c"
2756 break
2757 elif test -f "$ac_dir/shtool"; then
2758 ac_aux_dir=$ac_dir
2759 ac_install_sh="$ac_aux_dir/shtool install -c"
2760 break
2761 fi
2762 done
2763 if test -z "$ac_aux_dir"; then
2764 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2765 fi
2766
2767 # These three variables are undocumented and unsupported,
2768 # and are intended to be withdrawn in a future Autoconf release.
2769 # They can cause serious problems if a builder's source tree is in a directory
2770 # whose full name contains unusual characters.
2771 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2772 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2773 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2774
2775
2776 # Make sure we can run config.sub.
2777 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2778 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2779
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2781 $as_echo_n "checking build system type... " >&6; }
2782 if ${ac_cv_build+:} false; then :
2783 $as_echo_n "(cached) " >&6
2784 else
2785 ac_build_alias=$build_alias
2786 test "x$ac_build_alias" = x &&
2787 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2788 test "x$ac_build_alias" = x &&
2789 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2790 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2791 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2792
2793 fi
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2795 $as_echo "$ac_cv_build" >&6; }
2796 case $ac_cv_build in
2797 *-*-*) ;;
2798 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2799 esac
2800 build=$ac_cv_build
2801 ac_save_IFS=$IFS; IFS='-'
2802 set x $ac_cv_build
2803 shift
2804 build_cpu=$1
2805 build_vendor=$2
2806 shift; shift
2807 # Remember, the first character of IFS is used to create $*,
2808 # except with old shells:
2809 build_os=$*
2810 IFS=$ac_save_IFS
2811 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2812
2813
2814 case ${build_alias} in
2815 "") build_noncanonical=${build} ;;
2816 *) build_noncanonical=${build_alias} ;;
2817 esac
2818
2819 case ${host_alias} in
2820 "") host_noncanonical=${build_noncanonical} ;;
2821 *) host_noncanonical=${host_alias} ;;
2822 esac
2823
2824 case ${target_alias} in
2825 "") target_noncanonical=${host_noncanonical} ;;
2826 *) target_noncanonical=${target_alias} ;;
2827 esac
2828
2829
2830 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2831 # have matching libraries, they should use host libraries: Makefile.tpl
2832 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2833 # However, they still use the build modules, because the corresponding
2834 # host modules (e.g. bison) are only built for the host when bootstrap
2835 # finishes. So:
2836 # - build_subdir is where we find build modules, and never changes.
2837 # - build_libsubdir is where we find build libraries, and can be overridden.
2838
2839 # Prefix 'build-' so this never conflicts with target_subdir.
2840 build_subdir="build-${build_noncanonical}"
2841
2842 # Check whether --with-build-libsubdir was given.
2843 if test "${with_build_libsubdir+set}" = set; then :
2844 withval=$with_build_libsubdir; build_libsubdir="$withval"
2845 else
2846 build_libsubdir="$build_subdir"
2847 fi
2848
2849 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2850 if ( test $srcdir = . && test -d gcc ) \
2851 || test -d $srcdir/../host-${host_noncanonical}; then
2852 host_subdir="host-${host_noncanonical}"
2853 else
2854 host_subdir=.
2855 fi
2856 # No prefix.
2857 target_subdir=${target_noncanonical}
2858
2859
2860 # -------
2861 # Options
2862 # -------
2863
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2865 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2866 # Check whether --enable-version-specific-runtime-libs was given.
2867 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2868 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2869 yes) version_specific_libs=yes ;;
2870 no) version_specific_libs=no ;;
2871 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2872 esac
2873 else
2874 version_specific_libs=no
2875 fi
2876
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2878 $as_echo "$version_specific_libs" >&6; }
2879
2880 # Build with intermodule optimisations
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-intermodule" >&5
2882 $as_echo_n "checking for --enable-intermodule... " >&6; }
2883 # Check whether --enable-intermodule was given.
2884 if test "${enable_intermodule+set}" = set; then :
2885 enableval=$enable_intermodule; case "$enable_intermodule" in
2886 yes) onestep="-onestep";;
2887 *) onestep="";;
2888 esac
2889 else
2890 onestep=""
2891 fi
2892
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_intermodule" >&5
2894 $as_echo "$enable_intermodule" >&6; }
2895 if test x$onestep = x-onestep; then
2896 onestep_TRUE=
2897 onestep_FALSE='#'
2898 else
2899 onestep_TRUE='#'
2900 onestep_FALSE=
2901 fi
2902
2903
2904
2905 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2906 #
2907 # You will slowly go insane if you do not grok the following fact: when
2908 # building this library, the top-level /target/ becomes the library's /host/.
2909 #
2910 # configure then causes --target to default to --host, exactly like any
2911 # other package using autoconf. Therefore, 'target' and 'host' will
2912 # always be the same. This makes sense both for native and cross compilers
2913 # just think about it for a little while. :-)
2914 #
2915 # Also, if this library is being configured as part of a cross compiler, the
2916 # top-level configure script will pass the "real" host as $with_cross_host.
2917 #
2918 # Do not delete or change the following two lines. For why, see
2919 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2921 $as_echo_n "checking host system type... " >&6; }
2922 if ${ac_cv_host+:} false; then :
2923 $as_echo_n "(cached) " >&6
2924 else
2925 if test "x$host_alias" = x; then
2926 ac_cv_host=$ac_cv_build
2927 else
2928 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2929 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2930 fi
2931
2932 fi
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2934 $as_echo "$ac_cv_host" >&6; }
2935 case $ac_cv_host in
2936 *-*-*) ;;
2937 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2938 esac
2939 host=$ac_cv_host
2940 ac_save_IFS=$IFS; IFS='-'
2941 set x $ac_cv_host
2942 shift
2943 host_cpu=$1
2944 host_vendor=$2
2945 shift; shift
2946 # Remember, the first character of IFS is used to create $*,
2947 # except with old shells:
2948 host_os=$*
2949 IFS=$ac_save_IFS
2950 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2951
2952
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2954 $as_echo_n "checking target system type... " >&6; }
2955 if ${ac_cv_target+:} false; then :
2956 $as_echo_n "(cached) " >&6
2957 else
2958 if test "x$target_alias" = x; then
2959 ac_cv_target=$ac_cv_host
2960 else
2961 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2962 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2963 fi
2964
2965 fi
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2967 $as_echo "$ac_cv_target" >&6; }
2968 case $ac_cv_target in
2969 *-*-*) ;;
2970 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2971 esac
2972 target=$ac_cv_target
2973 ac_save_IFS=$IFS; IFS='-'
2974 set x $ac_cv_target
2975 shift
2976 target_cpu=$1
2977 target_vendor=$2
2978 shift; shift
2979 # Remember, the first character of IFS is used to create $*,
2980 # except with old shells:
2981 target_os=$*
2982 IFS=$ac_save_IFS
2983 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2984
2985
2986 # The aliases save the names the user supplied, while $host etc.
2987 # will get canonicalized.
2988 test -n "$target_alias" &&
2989 test "$program_prefix$program_suffix$program_transform_name" = \
2990 NONENONEs,x,x, &&
2991 program_prefix=${target_alias}-
2992
2993
2994
2995
2996 target_alias=${target_alias-$host_alias}
2997
2998
2999 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
3000 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
3001 # 1.9.6: minimum required version
3002 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
3003 # of other PACKAGE_* variables will, however, and there's nothing
3004 # we can do about that; they come from AC_INIT).
3005 # foreign: we don't follow the normal rules for GNU packages (no COPYING
3006 # file in the top srcdir, etc, etc), so stop complaining.
3007 # no-dist: we don't want 'dist' and related rules.
3008 # -Wall: turns on all automake warnings...
3009 # -Wno-portability: ...except this one, since GNU make is required.
3010 am__api_version='1.15'
3011
3012 # Find a good install program. We prefer a C program (faster),
3013 # so one script is as good as another. But avoid the broken or
3014 # incompatible versions:
3015 # SysV /etc/install, /usr/sbin/install
3016 # SunOS /usr/etc/install
3017 # IRIX /sbin/install
3018 # AIX /bin/install
3019 # AmigaOS /C/install, which installs bootblocks on floppy discs
3020 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3021 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3022 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3023 # OS/2's system install, which has a completely different semantic
3024 # ./install, which can be erroneously created by make from ./install.sh.
3025 # Reject install programs that cannot install multiple files.
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3027 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3028 if test -z "$INSTALL"; then
3029 if ${ac_cv_path_install+:} false; then :
3030 $as_echo_n "(cached) " >&6
3031 else
3032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033 for as_dir in $PATH
3034 do
3035 IFS=$as_save_IFS
3036 test -z "$as_dir" && as_dir=.
3037 # Account for people who put trailing slashes in PATH elements.
3038 case $as_dir/ in #((
3039 ./ | .// | /[cC]/* | \
3040 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3041 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3042 /usr/ucb/* ) ;;
3043 *)
3044 # OSF1 and SCO ODT 3.0 have their own names for install.
3045 # Don't use installbsd from OSF since it installs stuff as root
3046 # by default.
3047 for ac_prog in ginstall scoinst install; do
3048 for ac_exec_ext in '' $ac_executable_extensions; do
3049 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3050 if test $ac_prog = install &&
3051 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3052 # AIX install. It has an incompatible calling convention.
3053 :
3054 elif test $ac_prog = install &&
3055 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3056 # program-specific install script used by HP pwplus--don't use.
3057 :
3058 else
3059 rm -rf conftest.one conftest.two conftest.dir
3060 echo one > conftest.one
3061 echo two > conftest.two
3062 mkdir conftest.dir
3063 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3064 test -s conftest.one && test -s conftest.two &&
3065 test -s conftest.dir/conftest.one &&
3066 test -s conftest.dir/conftest.two
3067 then
3068 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3069 break 3
3070 fi
3071 fi
3072 fi
3073 done
3074 done
3075 ;;
3076 esac
3077
3078 done
3079 IFS=$as_save_IFS
3080
3081 rm -rf conftest.one conftest.two conftest.dir
3082
3083 fi
3084 if test "${ac_cv_path_install+set}" = set; then
3085 INSTALL=$ac_cv_path_install
3086 else
3087 # As a last resort, use the slow shell script. Don't cache a
3088 # value for INSTALL within a source directory, because that will
3089 # break other packages using the cache if that directory is
3090 # removed, or if the value is a relative name.
3091 INSTALL=$ac_install_sh
3092 fi
3093 fi
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3095 $as_echo "$INSTALL" >&6; }
3096
3097 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3098 # It thinks the first close brace ends the variable substitution.
3099 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3100
3101 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3102
3103 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3104
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3106 $as_echo_n "checking whether build environment is sane... " >&6; }
3107 # Reject unsafe characters in $srcdir or the absolute working directory
3108 # name. Accept space and tab only in the latter.
3109 am_lf='
3110 '
3111 case `pwd` in
3112 *[\\\"\#\$\&\'\`$am_lf]*)
3113 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3114 esac
3115 case $srcdir in
3116 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3117 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3118 esac
3119
3120 # Do 'set' in a subshell so we don't clobber the current shell's
3121 # arguments. Must try -L first in case configure is actually a
3122 # symlink; some systems play weird games with the mod time of symlinks
3123 # (eg FreeBSD returns the mod time of the symlink's containing
3124 # directory).
3125 if (
3126 am_has_slept=no
3127 for am_try in 1 2; do
3128 echo "timestamp, slept: $am_has_slept" > conftest.file
3129 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3130 if test "$*" = "X"; then
3131 # -L didn't work.
3132 set X `ls -t "$srcdir/configure" conftest.file`
3133 fi
3134 if test "$*" != "X $srcdir/configure conftest.file" \
3135 && test "$*" != "X conftest.file $srcdir/configure"; then
3136
3137 # If neither matched, then we have a broken ls. This can happen
3138 # if, for instance, CONFIG_SHELL is bash and it inherits a
3139 # broken ls alias from the environment. This has actually
3140 # happened. Such a system could not be considered "sane".
3141 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3142 alias in your environment" "$LINENO" 5
3143 fi
3144 if test "$2" = conftest.file || test $am_try -eq 2; then
3145 break
3146 fi
3147 # Just in case.
3148 sleep 1
3149 am_has_slept=yes
3150 done
3151 test "$2" = conftest.file
3152 )
3153 then
3154 # Ok.
3155 :
3156 else
3157 as_fn_error $? "newly created file is older than distributed files!
3158 Check your system clock" "$LINENO" 5
3159 fi
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3161 $as_echo "yes" >&6; }
3162 # If we didn't sleep, we still need to ensure time stamps of config.status and
3163 # generated files are strictly newer.
3164 am_sleep_pid=
3165 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3166 ( sleep 1 ) &
3167 am_sleep_pid=$!
3168 fi
3169
3170 rm -f conftest.file
3171
3172 test "$program_prefix" != NONE &&
3173 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3174 # Use a double $ so make ignores it.
3175 test "$program_suffix" != NONE &&
3176 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3177 # Double any \ or $.
3178 # By default was `s,x,x', remove it if useless.
3179 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3180 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3181
3182 # Expand $ac_aux_dir to an absolute path.
3183 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3184
3185 if test x"${MISSING+set}" != xset; then
3186 case $am_aux_dir in
3187 *\ * | *\ *)
3188 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3189 *)
3190 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3191 esac
3192 fi
3193 # Use eval to expand $SHELL
3194 if eval "$MISSING --is-lightweight"; then
3195 am_missing_run="$MISSING "
3196 else
3197 am_missing_run=
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3199 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3200 fi
3201
3202 if test x"${install_sh+set}" != xset; then
3203 case $am_aux_dir in
3204 *\ * | *\ *)
3205 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3206 *)
3207 install_sh="\${SHELL} $am_aux_dir/install-sh"
3208 esac
3209 fi
3210
3211 # Installed binaries are usually stripped using 'strip' when the user
3212 # run "make install-strip". However 'strip' might not be the right
3213 # tool to use in cross-compilation environments, therefore Automake
3214 # will honor the 'STRIP' environment variable to overrule this program.
3215 if test "$cross_compiling" != no; then
3216 if test -n "$ac_tool_prefix"; then
3217 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3218 set dummy ${ac_tool_prefix}strip; ac_word=$2
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3220 $as_echo_n "checking for $ac_word... " >&6; }
3221 if ${ac_cv_prog_STRIP+:} false; then :
3222 $as_echo_n "(cached) " >&6
3223 else
3224 if test -n "$STRIP"; then
3225 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3226 else
3227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3228 for as_dir in $PATH
3229 do
3230 IFS=$as_save_IFS
3231 test -z "$as_dir" && as_dir=.
3232 for ac_exec_ext in '' $ac_executable_extensions; do
3233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3234 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3236 break 2
3237 fi
3238 done
3239 done
3240 IFS=$as_save_IFS
3241
3242 fi
3243 fi
3244 STRIP=$ac_cv_prog_STRIP
3245 if test -n "$STRIP"; then
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3247 $as_echo "$STRIP" >&6; }
3248 else
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3250 $as_echo "no" >&6; }
3251 fi
3252
3253
3254 fi
3255 if test -z "$ac_cv_prog_STRIP"; then
3256 ac_ct_STRIP=$STRIP
3257 # Extract the first word of "strip", so it can be a program name with args.
3258 set dummy strip; ac_word=$2
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3260 $as_echo_n "checking for $ac_word... " >&6; }
3261 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3262 $as_echo_n "(cached) " >&6
3263 else
3264 if test -n "$ac_ct_STRIP"; then
3265 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3266 else
3267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3268 for as_dir in $PATH
3269 do
3270 IFS=$as_save_IFS
3271 test -z "$as_dir" && as_dir=.
3272 for ac_exec_ext in '' $ac_executable_extensions; do
3273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3274 ac_cv_prog_ac_ct_STRIP="strip"
3275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3276 break 2
3277 fi
3278 done
3279 done
3280 IFS=$as_save_IFS
3281
3282 fi
3283 fi
3284 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3285 if test -n "$ac_ct_STRIP"; then
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3287 $as_echo "$ac_ct_STRIP" >&6; }
3288 else
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3290 $as_echo "no" >&6; }
3291 fi
3292
3293 if test "x$ac_ct_STRIP" = x; then
3294 STRIP=":"
3295 else
3296 case $cross_compiling:$ac_tool_warned in
3297 yes:)
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3299 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3300 ac_tool_warned=yes ;;
3301 esac
3302 STRIP=$ac_ct_STRIP
3303 fi
3304 else
3305 STRIP="$ac_cv_prog_STRIP"
3306 fi
3307
3308 fi
3309 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3310
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3312 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3313 if test -z "$MKDIR_P"; then
3314 if ${ac_cv_path_mkdir+:} false; then :
3315 $as_echo_n "(cached) " >&6
3316 else
3317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3318 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3319 do
3320 IFS=$as_save_IFS
3321 test -z "$as_dir" && as_dir=.
3322 for ac_prog in mkdir gmkdir; do
3323 for ac_exec_ext in '' $ac_executable_extensions; do
3324 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3325 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3326 'mkdir (GNU coreutils) '* | \
3327 'mkdir (coreutils) '* | \
3328 'mkdir (fileutils) '4.1*)
3329 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3330 break 3;;
3331 esac
3332 done
3333 done
3334 done
3335 IFS=$as_save_IFS
3336
3337 fi
3338
3339 test -d ./--version && rmdir ./--version
3340 if test "${ac_cv_path_mkdir+set}" = set; then
3341 MKDIR_P="$ac_cv_path_mkdir -p"
3342 else
3343 # As a last resort, use the slow shell script. Don't cache a
3344 # value for MKDIR_P within a source directory, because that will
3345 # break other packages using the cache if that directory is
3346 # removed, or if the value is a relative name.
3347 MKDIR_P="$ac_install_sh -d"
3348 fi
3349 fi
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3351 $as_echo "$MKDIR_P" >&6; }
3352
3353 for ac_prog in gawk mawk nawk awk
3354 do
3355 # Extract the first word of "$ac_prog", so it can be a program name with args.
3356 set dummy $ac_prog; ac_word=$2
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3358 $as_echo_n "checking for $ac_word... " >&6; }
3359 if ${ac_cv_prog_AWK+:} false; then :
3360 $as_echo_n "(cached) " >&6
3361 else
3362 if test -n "$AWK"; then
3363 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3364 else
3365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3366 for as_dir in $PATH
3367 do
3368 IFS=$as_save_IFS
3369 test -z "$as_dir" && as_dir=.
3370 for ac_exec_ext in '' $ac_executable_extensions; do
3371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3372 ac_cv_prog_AWK="$ac_prog"
3373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3374 break 2
3375 fi
3376 done
3377 done
3378 IFS=$as_save_IFS
3379
3380 fi
3381 fi
3382 AWK=$ac_cv_prog_AWK
3383 if test -n "$AWK"; then
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3385 $as_echo "$AWK" >&6; }
3386 else
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3388 $as_echo "no" >&6; }
3389 fi
3390
3391
3392 test -n "$AWK" && break
3393 done
3394
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3396 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3397 set x ${MAKE-make}
3398 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3399 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3400 $as_echo_n "(cached) " >&6
3401 else
3402 cat >conftest.make <<\_ACEOF
3403 SHELL = /bin/sh
3404 all:
3405 @echo '@@@%%%=$(MAKE)=@@@%%%'
3406 _ACEOF
3407 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3408 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3409 *@@@%%%=?*=@@@%%%*)
3410 eval ac_cv_prog_make_${ac_make}_set=yes;;
3411 *)
3412 eval ac_cv_prog_make_${ac_make}_set=no;;
3413 esac
3414 rm -f conftest.make
3415 fi
3416 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3418 $as_echo "yes" >&6; }
3419 SET_MAKE=
3420 else
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3422 $as_echo "no" >&6; }
3423 SET_MAKE="MAKE=${MAKE-make}"
3424 fi
3425
3426 rm -rf .tst 2>/dev/null
3427 mkdir .tst 2>/dev/null
3428 if test -d .tst; then
3429 am__leading_dot=.
3430 else
3431 am__leading_dot=_
3432 fi
3433 rmdir .tst 2>/dev/null
3434
3435 # Check whether --enable-silent-rules was given.
3436 if test "${enable_silent_rules+set}" = set; then :
3437 enableval=$enable_silent_rules;
3438 fi
3439
3440 case $enable_silent_rules in # (((
3441 yes) AM_DEFAULT_VERBOSITY=0;;
3442 no) AM_DEFAULT_VERBOSITY=1;;
3443 *) AM_DEFAULT_VERBOSITY=1;;
3444 esac
3445 am_make=${MAKE-make}
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3447 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3448 if ${am_cv_make_support_nested_variables+:} false; then :
3449 $as_echo_n "(cached) " >&6
3450 else
3451 if $as_echo 'TRUE=$(BAR$(V))
3452 BAR0=false
3453 BAR1=true
3454 V=1
3455 am__doit:
3456 @$(TRUE)
3457 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3458 am_cv_make_support_nested_variables=yes
3459 else
3460 am_cv_make_support_nested_variables=no
3461 fi
3462 fi
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3464 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3465 if test $am_cv_make_support_nested_variables = yes; then
3466 AM_V='$(V)'
3467 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3468 else
3469 AM_V=$AM_DEFAULT_VERBOSITY
3470 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3471 fi
3472 AM_BACKSLASH='\'
3473
3474 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3475 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3476 # is not polluted with repeated "-I."
3477 am__isrc=' -I$(srcdir)'
3478 # test to see if srcdir already configured
3479 if test -f $srcdir/config.status; then
3480 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3481 fi
3482 fi
3483
3484 # test whether we have cygpath
3485 if test -z "$CYGPATH_W"; then
3486 if (cygpath --version) >/dev/null 2>/dev/null; then
3487 CYGPATH_W='cygpath -w'
3488 else
3489 CYGPATH_W=echo
3490 fi
3491 fi
3492
3493
3494 # Define the identity of the package.
3495 PACKAGE='libgfortran'
3496 VERSION='0.3'
3497
3498
3499 # Some tools Automake needs.
3500
3501 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3502
3503
3504 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3505
3506
3507 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3508
3509
3510 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3511
3512
3513 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3514
3515 # For better backward compatibility. To be removed once Automake 1.9.x
3516 # dies out for good. For more background, see:
3517 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3518 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3519 mkdir_p='$(MKDIR_P)'
3520
3521 # We need awk for the "check" target (and possibly the TAP driver). The
3522 # system "awk" is bad on some platforms.
3523 # Always define AMTAR for backward compatibility. Yes, it's still used
3524 # in the wild :-( We should find a proper way to deprecate it ...
3525 AMTAR='$${TAR-tar}'
3526
3527
3528 # We'll loop over all known methods to create a tar archive until one works.
3529 _am_tools='gnutar pax cpio none'
3530
3531 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3532
3533
3534
3535
3536
3537
3538 # POSIX will say in a future version that running "rm -f" with no argument
3539 # is OK; and we want to be able to make that assumption in our Makefile
3540 # recipes. So use an aggressive probe to check that the usage we want is
3541 # actually supported "in the wild" to an acceptable degree.
3542 # See automake bug#10828.
3543 # To make any issue more visible, cause the running configure to be aborted
3544 # by default if the 'rm' program in use doesn't match our expectations; the
3545 # user can still override this though.
3546 if rm -f && rm -fr && rm -rf; then : OK; else
3547 cat >&2 <<'END'
3548 Oops!
3549
3550 Your 'rm' program seems unable to run without file operands specified
3551 on the command line, even when the '-f' option is present. This is contrary
3552 to the behaviour of most rm programs out there, and not conforming with
3553 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3554
3555 Please tell bug-automake@gnu.org about your system, including the value
3556 of your $PATH and any error possibly output before this message. This
3557 can help us improve future automake versions.
3558
3559 END
3560 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3561 echo 'Configuration will proceed anyway, since you have set the' >&2
3562 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3563 echo >&2
3564 else
3565 cat >&2 <<'END'
3566 Aborting the configuration process, to ensure you take notice of the issue.
3567
3568 You can download and install GNU coreutils to get an 'rm' implementation
3569 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3570
3571 If you want to complete the configuration process using your problematic
3572 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3573 to "yes", and re-run configure.
3574
3575 END
3576 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3577 fi
3578 fi
3579
3580
3581
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3583 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3584 # Check whether --enable-maintainer-mode was given.
3585 if test "${enable_maintainer_mode+set}" = set; then :
3586 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3587 else
3588 USE_MAINTAINER_MODE=no
3589 fi
3590
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3592 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3593 if test $USE_MAINTAINER_MODE = yes; then
3594 MAINTAINER_MODE_TRUE=
3595 MAINTAINER_MODE_FALSE='#'
3596 else
3597 MAINTAINER_MODE_TRUE='#'
3598 MAINTAINER_MODE_FALSE=
3599 fi
3600
3601 MAINT=$MAINTAINER_MODE_TRUE
3602
3603
3604 # Default to --enable-multilib
3605 # Check whether --enable-multilib was given.
3606 if test "${enable_multilib+set}" = set; then :
3607 enableval=$enable_multilib; case "$enableval" in
3608 yes) multilib=yes ;;
3609 no) multilib=no ;;
3610 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
3611 esac
3612 else
3613 multilib=yes
3614 fi
3615
3616
3617 # We may get other options which we leave undocumented:
3618 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3619 # See config-ml.in if you want the gory details.
3620
3621 if test "$srcdir" = "."; then
3622 if test "$with_target_subdir" != "."; then
3623 multi_basedir="$srcdir/$with_multisrctop../.."
3624 else
3625 multi_basedir="$srcdir/$with_multisrctop.."
3626 fi
3627 else
3628 multi_basedir="$srcdir/.."
3629 fi
3630
3631
3632 # Even if the default multilib is not a cross compilation,
3633 # it may be that some of the other multilibs are.
3634 if test $cross_compiling = no && test $multilib = yes \
3635 && test "x${with_multisubdir}" != x ; then
3636 cross_compiling=maybe
3637 fi
3638
3639 ac_config_commands="$ac_config_commands default-1"
3640
3641
3642 # Handy for debugging:
3643 #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
3644
3645 # Are we being configured with some form of cross compiler?
3646 # NB: We don't actually need to know this just now, but when, say, a test
3647 # suite is included, we'll have to know.
3648 if test "$build" != "$host"; then
3649 LIBGFOR_IS_NATIVE=false
3650
3651 else
3652 LIBGFOR_IS_NATIVE=true
3653 fi
3654
3655 DEPDIR="${am__leading_dot}deps"
3656
3657 ac_config_commands="$ac_config_commands depfiles"
3658
3659
3660 am_make=${MAKE-make}
3661 cat > confinc << 'END'
3662 am__doit:
3663 @echo this is the am__doit target
3664 .PHONY: am__doit
3665 END
3666 # If we don't find an include directive, just comment out the code.
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3668 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3669 am__include="#"
3670 am__quote=
3671 _am_result=none
3672 # First try GNU make style include.
3673 echo "include confinc" > confmf
3674 # Ignore all kinds of additional output from 'make'.
3675 case `$am_make -s -f confmf 2> /dev/null` in #(
3676 *the\ am__doit\ target*)
3677 am__include=include
3678 am__quote=
3679 _am_result=GNU
3680 ;;
3681 esac
3682 # Now try BSD make style include.
3683 if test "$am__include" = "#"; then
3684 echo '.include "confinc"' > confmf
3685 case `$am_make -s -f confmf 2> /dev/null` in #(
3686 *the\ am__doit\ target*)
3687 am__include=.include
3688 am__quote="\""
3689 _am_result=BSD
3690 ;;
3691 esac
3692 fi
3693
3694
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3696 $as_echo "$_am_result" >&6; }
3697 rm -f confinc confmf
3698
3699 # Check whether --enable-dependency-tracking was given.
3700 if test "${enable_dependency_tracking+set}" = set; then :
3701 enableval=$enable_dependency_tracking;
3702 fi
3703
3704 if test "x$enable_dependency_tracking" != xno; then
3705 am_depcomp="$ac_aux_dir/depcomp"
3706 AMDEPBACKSLASH='\'
3707 am__nodep='_no'
3708 fi
3709 if test "x$enable_dependency_tracking" != xno; then
3710 AMDEP_TRUE=
3711 AMDEP_FALSE='#'
3712 else
3713 AMDEP_TRUE='#'
3714 AMDEP_FALSE=
3715 fi
3716
3717
3718 ac_ext=c
3719 ac_cpp='$CPP $CPPFLAGS'
3720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3723 if test -n "$ac_tool_prefix"; then
3724 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3725 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3727 $as_echo_n "checking for $ac_word... " >&6; }
3728 if ${ac_cv_prog_CC+:} false; then :
3729 $as_echo_n "(cached) " >&6
3730 else
3731 if test -n "$CC"; then
3732 ac_cv_prog_CC="$CC" # Let the user override the test.
3733 else
3734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3735 for as_dir in $PATH
3736 do
3737 IFS=$as_save_IFS
3738 test -z "$as_dir" && as_dir=.
3739 for ac_exec_ext in '' $ac_executable_extensions; do
3740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3741 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3743 break 2
3744 fi
3745 done
3746 done
3747 IFS=$as_save_IFS
3748
3749 fi
3750 fi
3751 CC=$ac_cv_prog_CC
3752 if test -n "$CC"; then
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3754 $as_echo "$CC" >&6; }
3755 else
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3757 $as_echo "no" >&6; }
3758 fi
3759
3760
3761 fi
3762 if test -z "$ac_cv_prog_CC"; then
3763 ac_ct_CC=$CC
3764 # Extract the first word of "gcc", so it can be a program name with args.
3765 set dummy gcc; ac_word=$2
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3767 $as_echo_n "checking for $ac_word... " >&6; }
3768 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3769 $as_echo_n "(cached) " >&6
3770 else
3771 if test -n "$ac_ct_CC"; then
3772 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3773 else
3774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3775 for as_dir in $PATH
3776 do
3777 IFS=$as_save_IFS
3778 test -z "$as_dir" && as_dir=.
3779 for ac_exec_ext in '' $ac_executable_extensions; do
3780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3781 ac_cv_prog_ac_ct_CC="gcc"
3782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3783 break 2
3784 fi
3785 done
3786 done
3787 IFS=$as_save_IFS
3788
3789 fi
3790 fi
3791 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3792 if test -n "$ac_ct_CC"; then
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3794 $as_echo "$ac_ct_CC" >&6; }
3795 else
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3797 $as_echo "no" >&6; }
3798 fi
3799
3800 if test "x$ac_ct_CC" = x; then
3801 CC=""
3802 else
3803 case $cross_compiling:$ac_tool_warned in
3804 yes:)
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3807 ac_tool_warned=yes ;;
3808 esac
3809 CC=$ac_ct_CC
3810 fi
3811 else
3812 CC="$ac_cv_prog_CC"
3813 fi
3814
3815 if test -z "$CC"; then
3816 if test -n "$ac_tool_prefix"; then
3817 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3818 set dummy ${ac_tool_prefix}cc; ac_word=$2
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3820 $as_echo_n "checking for $ac_word... " >&6; }
3821 if ${ac_cv_prog_CC+:} false; then :
3822 $as_echo_n "(cached) " >&6
3823 else
3824 if test -n "$CC"; then
3825 ac_cv_prog_CC="$CC" # Let the user override the test.
3826 else
3827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3828 for as_dir in $PATH
3829 do
3830 IFS=$as_save_IFS
3831 test -z "$as_dir" && as_dir=.
3832 for ac_exec_ext in '' $ac_executable_extensions; do
3833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3834 ac_cv_prog_CC="${ac_tool_prefix}cc"
3835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3836 break 2
3837 fi
3838 done
3839 done
3840 IFS=$as_save_IFS
3841
3842 fi
3843 fi
3844 CC=$ac_cv_prog_CC
3845 if test -n "$CC"; then
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3847 $as_echo "$CC" >&6; }
3848 else
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3850 $as_echo "no" >&6; }
3851 fi
3852
3853
3854 fi
3855 fi
3856 if test -z "$CC"; then
3857 # Extract the first word of "cc", so it can be a program name with args.
3858 set dummy cc; ac_word=$2
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3860 $as_echo_n "checking for $ac_word... " >&6; }
3861 if ${ac_cv_prog_CC+:} false; then :
3862 $as_echo_n "(cached) " >&6
3863 else
3864 if test -n "$CC"; then
3865 ac_cv_prog_CC="$CC" # Let the user override the test.
3866 else
3867 ac_prog_rejected=no
3868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3869 for as_dir in $PATH
3870 do
3871 IFS=$as_save_IFS
3872 test -z "$as_dir" && as_dir=.
3873 for ac_exec_ext in '' $ac_executable_extensions; do
3874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3875 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3876 ac_prog_rejected=yes
3877 continue
3878 fi
3879 ac_cv_prog_CC="cc"
3880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3881 break 2
3882 fi
3883 done
3884 done
3885 IFS=$as_save_IFS
3886
3887 if test $ac_prog_rejected = yes; then
3888 # We found a bogon in the path, so make sure we never use it.
3889 set dummy $ac_cv_prog_CC
3890 shift
3891 if test $# != 0; then
3892 # We chose a different compiler from the bogus one.
3893 # However, it has the same basename, so the bogon will be chosen
3894 # first if we set CC to just the basename; use the full file name.
3895 shift
3896 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3897 fi
3898 fi
3899 fi
3900 fi
3901 CC=$ac_cv_prog_CC
3902 if test -n "$CC"; then
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3904 $as_echo "$CC" >&6; }
3905 else
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3907 $as_echo "no" >&6; }
3908 fi
3909
3910
3911 fi
3912 if test -z "$CC"; then
3913 if test -n "$ac_tool_prefix"; then
3914 for ac_prog in cl.exe
3915 do
3916 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3917 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3919 $as_echo_n "checking for $ac_word... " >&6; }
3920 if ${ac_cv_prog_CC+:} false; then :
3921 $as_echo_n "(cached) " >&6
3922 else
3923 if test -n "$CC"; then
3924 ac_cv_prog_CC="$CC" # Let the user override the test.
3925 else
3926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3927 for as_dir in $PATH
3928 do
3929 IFS=$as_save_IFS
3930 test -z "$as_dir" && as_dir=.
3931 for ac_exec_ext in '' $ac_executable_extensions; do
3932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3933 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3935 break 2
3936 fi
3937 done
3938 done
3939 IFS=$as_save_IFS
3940
3941 fi
3942 fi
3943 CC=$ac_cv_prog_CC
3944 if test -n "$CC"; then
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3946 $as_echo "$CC" >&6; }
3947 else
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3949 $as_echo "no" >&6; }
3950 fi
3951
3952
3953 test -n "$CC" && break
3954 done
3955 fi
3956 if test -z "$CC"; then
3957 ac_ct_CC=$CC
3958 for ac_prog in cl.exe
3959 do
3960 # Extract the first word of "$ac_prog", so it can be a program name with args.
3961 set dummy $ac_prog; ac_word=$2
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3963 $as_echo_n "checking for $ac_word... " >&6; }
3964 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3965 $as_echo_n "(cached) " >&6
3966 else
3967 if test -n "$ac_ct_CC"; then
3968 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3969 else
3970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971 for as_dir in $PATH
3972 do
3973 IFS=$as_save_IFS
3974 test -z "$as_dir" && as_dir=.
3975 for ac_exec_ext in '' $ac_executable_extensions; do
3976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3977 ac_cv_prog_ac_ct_CC="$ac_prog"
3978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3979 break 2
3980 fi
3981 done
3982 done
3983 IFS=$as_save_IFS
3984
3985 fi
3986 fi
3987 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3988 if test -n "$ac_ct_CC"; then
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3990 $as_echo "$ac_ct_CC" >&6; }
3991 else
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3993 $as_echo "no" >&6; }
3994 fi
3995
3996
3997 test -n "$ac_ct_CC" && break
3998 done
3999
4000 if test "x$ac_ct_CC" = x; then
4001 CC=""
4002 else
4003 case $cross_compiling:$ac_tool_warned in
4004 yes:)
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4006 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4007 ac_tool_warned=yes ;;
4008 esac
4009 CC=$ac_ct_CC
4010 fi
4011 fi
4012
4013 fi
4014
4015
4016 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4017 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4018 as_fn_error $? "no acceptable C compiler found in \$PATH
4019 See \`config.log' for more details" "$LINENO" 5; }
4020
4021 # Provide some information about the compiler.
4022 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4023 set X $ac_compile
4024 ac_compiler=$2
4025 for ac_option in --version -v -V -qversion; do
4026 { { ac_try="$ac_compiler $ac_option >&5"
4027 case "(($ac_try" in
4028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4029 *) ac_try_echo=$ac_try;;
4030 esac
4031 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4032 $as_echo "$ac_try_echo"; } >&5
4033 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4034 ac_status=$?
4035 if test -s conftest.err; then
4036 sed '10a\
4037 ... rest of stderr output deleted ...
4038 10q' conftest.err >conftest.er1
4039 cat conftest.er1 >&5
4040 fi
4041 rm -f conftest.er1 conftest.err
4042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4043 test $ac_status = 0; }
4044 done
4045
4046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4047 /* end confdefs.h. */
4048 #include <stdio.h>
4049 int
4050 main ()
4051 {
4052 printf ("hello world\n");
4053 ;
4054 return 0;
4055 }
4056 _ACEOF
4057 # FIXME: Cleanup?
4058 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
4059 (eval $ac_link) 2>&5
4060 ac_status=$?
4061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4062 test $ac_status = 0; }; then :
4063 gcc_no_link=no
4064 else
4065 gcc_no_link=yes
4066 fi
4067 if test x$gcc_no_link = xyes; then
4068 # Setting cross_compile will disable run tests; it will
4069 # also disable AC_CHECK_FILE but that's generally
4070 # correct if we can't link.
4071 cross_compiling=yes
4072 EXEEXT=
4073 else
4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h. */
4076
4077 int
4078 main ()
4079 {
4080
4081 ;
4082 return 0;
4083 }
4084 _ACEOF
4085 ac_clean_files_save=$ac_clean_files
4086 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4087 # Try to create an executable without -o first, disregard a.out.
4088 # It will help us diagnose broken compilers, and finding out an intuition
4089 # of exeext.
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4091 $as_echo_n "checking whether the C compiler works... " >&6; }
4092 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4093
4094 # The possible output files:
4095 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4096
4097 ac_rmfiles=
4098 for ac_file in $ac_files
4099 do
4100 case $ac_file in
4101 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4102 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4103 esac
4104 done
4105 rm -f $ac_rmfiles
4106
4107 if { { ac_try="$ac_link_default"
4108 case "(($ac_try" in
4109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4110 *) ac_try_echo=$ac_try;;
4111 esac
4112 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4113 $as_echo "$ac_try_echo"; } >&5
4114 (eval "$ac_link_default") 2>&5
4115 ac_status=$?
4116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4117 test $ac_status = 0; }; then :
4118 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4119 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4120 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4121 # so that the user can short-circuit this test for compilers unknown to
4122 # Autoconf.
4123 for ac_file in $ac_files ''
4124 do
4125 test -f "$ac_file" || continue
4126 case $ac_file in
4127 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4128 ;;
4129 [ab].out )
4130 # We found the default executable, but exeext='' is most
4131 # certainly right.
4132 break;;
4133 *.* )
4134 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4135 then :; else
4136 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4137 fi
4138 # We set ac_cv_exeext here because the later test for it is not
4139 # safe: cross compilers may not add the suffix if given an `-o'
4140 # argument, so we may need to know it at that point already.
4141 # Even if this section looks crufty: it has the advantage of
4142 # actually working.
4143 break;;
4144 * )
4145 break;;
4146 esac
4147 done
4148 test "$ac_cv_exeext" = no && ac_cv_exeext=
4149
4150 else
4151 ac_file=''
4152 fi
4153 if test -z "$ac_file"; then :
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4155 $as_echo "no" >&6; }
4156 $as_echo "$as_me: failed program was:" >&5
4157 sed 's/^/| /' conftest.$ac_ext >&5
4158
4159 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4161 as_fn_error 77 "C compiler cannot create executables
4162 See \`config.log' for more details" "$LINENO" 5; }
4163 else
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4165 $as_echo "yes" >&6; }
4166 fi
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4168 $as_echo_n "checking for C compiler default output file name... " >&6; }
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4170 $as_echo "$ac_file" >&6; }
4171 ac_exeext=$ac_cv_exeext
4172
4173 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4174 ac_clean_files=$ac_clean_files_save
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4176 $as_echo_n "checking for suffix of executables... " >&6; }
4177 if { { ac_try="$ac_link"
4178 case "(($ac_try" in
4179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4180 *) ac_try_echo=$ac_try;;
4181 esac
4182 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4183 $as_echo "$ac_try_echo"; } >&5
4184 (eval "$ac_link") 2>&5
4185 ac_status=$?
4186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4187 test $ac_status = 0; }; then :
4188 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4189 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4190 # work properly (i.e., refer to `conftest.exe'), while it won't with
4191 # `rm'.
4192 for ac_file in conftest.exe conftest conftest.*; do
4193 test -f "$ac_file" || continue
4194 case $ac_file in
4195 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4196 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4197 break;;
4198 * ) break;;
4199 esac
4200 done
4201 else
4202 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4203 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4204 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4205 See \`config.log' for more details" "$LINENO" 5; }
4206 fi
4207 rm -f conftest conftest$ac_cv_exeext
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4209 $as_echo "$ac_cv_exeext" >&6; }
4210
4211 rm -f conftest.$ac_ext
4212 EXEEXT=$ac_cv_exeext
4213 ac_exeext=$EXEEXT
4214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4215 /* end confdefs.h. */
4216 #include <stdio.h>
4217 int
4218 main ()
4219 {
4220 FILE *f = fopen ("conftest.out", "w");
4221 return ferror (f) || fclose (f) != 0;
4222
4223 ;
4224 return 0;
4225 }
4226 _ACEOF
4227 ac_clean_files="$ac_clean_files conftest.out"
4228 # Check that the compiler produces executables we can run. If not, either
4229 # the compiler is broken, or we cross compile.
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4231 $as_echo_n "checking whether we are cross compiling... " >&6; }
4232 if test "$cross_compiling" != yes; then
4233 { { ac_try="$ac_link"
4234 case "(($ac_try" in
4235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4236 *) ac_try_echo=$ac_try;;
4237 esac
4238 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4239 $as_echo "$ac_try_echo"; } >&5
4240 (eval "$ac_link") 2>&5
4241 ac_status=$?
4242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4243 test $ac_status = 0; }
4244 if { ac_try='./conftest$ac_cv_exeext'
4245 { { case "(($ac_try" in
4246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4247 *) ac_try_echo=$ac_try;;
4248 esac
4249 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4250 $as_echo "$ac_try_echo"; } >&5
4251 (eval "$ac_try") 2>&5
4252 ac_status=$?
4253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4254 test $ac_status = 0; }; }; then
4255 cross_compiling=no
4256 else
4257 if test "$cross_compiling" = maybe; then
4258 cross_compiling=yes
4259 else
4260 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4261 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4262 as_fn_error $? "cannot run C compiled programs.
4263 If you meant to cross compile, use \`--host'.
4264 See \`config.log' for more details" "$LINENO" 5; }
4265 fi
4266 fi
4267 fi
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4269 $as_echo "$cross_compiling" >&6; }
4270
4271 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4272 ac_clean_files=$ac_clean_files_save
4273 fi
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4275 $as_echo_n "checking for suffix of object files... " >&6; }
4276 if ${ac_cv_objext+:} false; then :
4277 $as_echo_n "(cached) " >&6
4278 else
4279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4280 /* end confdefs.h. */
4281
4282 int
4283 main ()
4284 {
4285
4286 ;
4287 return 0;
4288 }
4289 _ACEOF
4290 rm -f conftest.o conftest.obj
4291 if { { ac_try="$ac_compile"
4292 case "(($ac_try" in
4293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294 *) ac_try_echo=$ac_try;;
4295 esac
4296 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4297 $as_echo "$ac_try_echo"; } >&5
4298 (eval "$ac_compile") 2>&5
4299 ac_status=$?
4300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4301 test $ac_status = 0; }; then :
4302 for ac_file in conftest.o conftest.obj conftest.*; do
4303 test -f "$ac_file" || continue;
4304 case $ac_file in
4305 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4306 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4307 break;;
4308 esac
4309 done
4310 else
4311 $as_echo "$as_me: failed program was:" >&5
4312 sed 's/^/| /' conftest.$ac_ext >&5
4313
4314 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4315 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4316 as_fn_error $? "cannot compute suffix of object files: cannot compile
4317 See \`config.log' for more details" "$LINENO" 5; }
4318 fi
4319 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4320 fi
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4322 $as_echo "$ac_cv_objext" >&6; }
4323 OBJEXT=$ac_cv_objext
4324 ac_objext=$OBJEXT
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4326 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4327 if ${ac_cv_c_compiler_gnu+:} false; then :
4328 $as_echo_n "(cached) " >&6
4329 else
4330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4331 /* end confdefs.h. */
4332
4333 int
4334 main ()
4335 {
4336 #ifndef __GNUC__
4337 choke me
4338 #endif
4339
4340 ;
4341 return 0;
4342 }
4343 _ACEOF
4344 if ac_fn_c_try_compile "$LINENO"; then :
4345 ac_compiler_gnu=yes
4346 else
4347 ac_compiler_gnu=no
4348 fi
4349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4350 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4351
4352 fi
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4354 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4355 if test $ac_compiler_gnu = yes; then
4356 GCC=yes
4357 else
4358 GCC=
4359 fi
4360 ac_test_CFLAGS=${CFLAGS+set}
4361 ac_save_CFLAGS=$CFLAGS
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4363 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4364 if ${ac_cv_prog_cc_g+:} false; then :
4365 $as_echo_n "(cached) " >&6
4366 else
4367 ac_save_c_werror_flag=$ac_c_werror_flag
4368 ac_c_werror_flag=yes
4369 ac_cv_prog_cc_g=no
4370 CFLAGS="-g"
4371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4372 /* end confdefs.h. */
4373
4374 int
4375 main ()
4376 {
4377
4378 ;
4379 return 0;
4380 }
4381 _ACEOF
4382 if ac_fn_c_try_compile "$LINENO"; then :
4383 ac_cv_prog_cc_g=yes
4384 else
4385 CFLAGS=""
4386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4387 /* end confdefs.h. */
4388
4389 int
4390 main ()
4391 {
4392
4393 ;
4394 return 0;
4395 }
4396 _ACEOF
4397 if ac_fn_c_try_compile "$LINENO"; then :
4398
4399 else
4400 ac_c_werror_flag=$ac_save_c_werror_flag
4401 CFLAGS="-g"
4402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4403 /* end confdefs.h. */
4404
4405 int
4406 main ()
4407 {
4408
4409 ;
4410 return 0;
4411 }
4412 _ACEOF
4413 if ac_fn_c_try_compile "$LINENO"; then :
4414 ac_cv_prog_cc_g=yes
4415 fi
4416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4417 fi
4418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4419 fi
4420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4421 ac_c_werror_flag=$ac_save_c_werror_flag
4422 fi
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4424 $as_echo "$ac_cv_prog_cc_g" >&6; }
4425 if test "$ac_test_CFLAGS" = set; then
4426 CFLAGS=$ac_save_CFLAGS
4427 elif test $ac_cv_prog_cc_g = yes; then
4428 if test "$GCC" = yes; then
4429 CFLAGS="-g -O2"
4430 else
4431 CFLAGS="-g"
4432 fi
4433 else
4434 if test "$GCC" = yes; then
4435 CFLAGS="-O2"
4436 else
4437 CFLAGS=
4438 fi
4439 fi
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4441 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4442 if ${ac_cv_prog_cc_c89+:} false; then :
4443 $as_echo_n "(cached) " >&6
4444 else
4445 ac_cv_prog_cc_c89=no
4446 ac_save_CC=$CC
4447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4448 /* end confdefs.h. */
4449 #include <stdarg.h>
4450 #include <stdio.h>
4451 struct stat;
4452 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4453 struct buf { int x; };
4454 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4455 static char *e (p, i)
4456 char **p;
4457 int i;
4458 {
4459 return p[i];
4460 }
4461 static char *f (char * (*g) (char **, int), char **p, ...)
4462 {
4463 char *s;
4464 va_list v;
4465 va_start (v,p);
4466 s = g (p, va_arg (v,int));
4467 va_end (v);
4468 return s;
4469 }
4470
4471 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4472 function prototypes and stuff, but not '\xHH' hex character constants.
4473 These don't provoke an error unfortunately, instead are silently treated
4474 as 'x'. The following induces an error, until -std is added to get
4475 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4476 array size at least. It's necessary to write '\x00'==0 to get something
4477 that's true only with -std. */
4478 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4479
4480 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4481 inside strings and character constants. */
4482 #define FOO(x) 'x'
4483 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4484
4485 int test (int i, double x);
4486 struct s1 {int (*f) (int a);};
4487 struct s2 {int (*f) (double a);};
4488 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4489 int argc;
4490 char **argv;
4491 int
4492 main ()
4493 {
4494 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4495 ;
4496 return 0;
4497 }
4498 _ACEOF
4499 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4500 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4501 do
4502 CC="$ac_save_CC $ac_arg"
4503 if ac_fn_c_try_compile "$LINENO"; then :
4504 ac_cv_prog_cc_c89=$ac_arg
4505 fi
4506 rm -f core conftest.err conftest.$ac_objext
4507 test "x$ac_cv_prog_cc_c89" != "xno" && break
4508 done
4509 rm -f conftest.$ac_ext
4510 CC=$ac_save_CC
4511
4512 fi
4513 # AC_CACHE_VAL
4514 case "x$ac_cv_prog_cc_c89" in
4515 x)
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4517 $as_echo "none needed" >&6; } ;;
4518 xno)
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4520 $as_echo "unsupported" >&6; } ;;
4521 *)
4522 CC="$CC $ac_cv_prog_cc_c89"
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4524 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4525 esac
4526 if test "x$ac_cv_prog_cc_c89" != xno; then :
4527
4528 fi
4529
4530 ac_ext=c
4531 ac_cpp='$CPP $CPPFLAGS'
4532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4535
4536 ac_ext=c
4537 ac_cpp='$CPP $CPPFLAGS'
4538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4542 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4543 if ${am_cv_prog_cc_c_o+:} false; then :
4544 $as_echo_n "(cached) " >&6
4545 else
4546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4547 /* end confdefs.h. */
4548
4549 int
4550 main ()
4551 {
4552
4553 ;
4554 return 0;
4555 }
4556 _ACEOF
4557 # Make sure it works both with $CC and with simple cc.
4558 # Following AC_PROG_CC_C_O, we do the test twice because some
4559 # compilers refuse to overwrite an existing .o file with -o,
4560 # though they will create one.
4561 am_cv_prog_cc_c_o=yes
4562 for am_i in 1 2; do
4563 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4564 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4565 ac_status=$?
4566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567 (exit $ac_status); } \
4568 && test -f conftest2.$ac_objext; then
4569 : OK
4570 else
4571 am_cv_prog_cc_c_o=no
4572 break
4573 fi
4574 done
4575 rm -f core conftest*
4576 unset am_i
4577 fi
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4579 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4580 if test "$am_cv_prog_cc_c_o" != yes; then
4581 # Losing compiler, so override with the script.
4582 # FIXME: It is wrong to rewrite CC.
4583 # But if we don't then we get into trouble of one sort or another.
4584 # A longer-term fix would be to have automake use am__CC in this case,
4585 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4586 CC="$am_aux_dir/compile $CC"
4587 fi
4588 ac_ext=c
4589 ac_cpp='$CPP $CPPFLAGS'
4590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4593
4594
4595 depcc="$CC" am_compiler_list=
4596
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4598 $as_echo_n "checking dependency style of $depcc... " >&6; }
4599 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4600 $as_echo_n "(cached) " >&6
4601 else
4602 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4603 # We make a subdir and do the tests there. Otherwise we can end up
4604 # making bogus files that we don't know about and never remove. For
4605 # instance it was reported that on HP-UX the gcc test will end up
4606 # making a dummy file named 'D' -- because '-MD' means "put the output
4607 # in D".
4608 rm -rf conftest.dir
4609 mkdir conftest.dir
4610 # Copy depcomp to subdir because otherwise we won't find it if we're
4611 # using a relative directory.
4612 cp "$am_depcomp" conftest.dir
4613 cd conftest.dir
4614 # We will build objects and dependencies in a subdirectory because
4615 # it helps to detect inapplicable dependency modes. For instance
4616 # both Tru64's cc and ICC support -MD to output dependencies as a
4617 # side effect of compilation, but ICC will put the dependencies in
4618 # the current directory while Tru64 will put them in the object
4619 # directory.
4620 mkdir sub
4621
4622 am_cv_CC_dependencies_compiler_type=none
4623 if test "$am_compiler_list" = ""; then
4624 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4625 fi
4626 am__universal=false
4627 case " $depcc " in #(
4628 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4629 esac
4630
4631 for depmode in $am_compiler_list; do
4632 # Setup a source with many dependencies, because some compilers
4633 # like to wrap large dependency lists on column 80 (with \), and
4634 # we should not choose a depcomp mode which is confused by this.
4635 #
4636 # We need to recreate these files for each test, as the compiler may
4637 # overwrite some of them when testing with obscure command lines.
4638 # This happens at least with the AIX C compiler.
4639 : > sub/conftest.c
4640 for i in 1 2 3 4 5 6; do
4641 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4642 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4643 # Solaris 10 /bin/sh.
4644 echo '/* dummy */' > sub/conftst$i.h
4645 done
4646 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4647
4648 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4649 # mode. It turns out that the SunPro C++ compiler does not properly
4650 # handle '-M -o', and we need to detect this. Also, some Intel
4651 # versions had trouble with output in subdirs.
4652 am__obj=sub/conftest.${OBJEXT-o}
4653 am__minus_obj="-o $am__obj"
4654 case $depmode in
4655 gcc)
4656 # This depmode causes a compiler race in universal mode.
4657 test "$am__universal" = false || continue
4658 ;;
4659 nosideeffect)
4660 # After this tag, mechanisms are not by side-effect, so they'll
4661 # only be used when explicitly requested.
4662 if test "x$enable_dependency_tracking" = xyes; then
4663 continue
4664 else
4665 break
4666 fi
4667 ;;
4668 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4669 # This compiler won't grok '-c -o', but also, the minuso test has
4670 # not run yet. These depmodes are late enough in the game, and
4671 # so weak that their functioning should not be impacted.
4672 am__obj=conftest.${OBJEXT-o}
4673 am__minus_obj=
4674 ;;
4675 none) break ;;
4676 esac
4677 if depmode=$depmode \
4678 source=sub/conftest.c object=$am__obj \
4679 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4680 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4681 >/dev/null 2>conftest.err &&
4682 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4683 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4684 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4685 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4686 # icc doesn't choke on unknown options, it will just issue warnings
4687 # or remarks (even with -Werror). So we grep stderr for any message
4688 # that says an option was ignored or not supported.
4689 # When given -MP, icc 7.0 and 7.1 complain thusly:
4690 # icc: Command line warning: ignoring option '-M'; no argument required
4691 # The diagnosis changed in icc 8.0:
4692 # icc: Command line remark: option '-MP' not supported
4693 if (grep 'ignoring option' conftest.err ||
4694 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4695 am_cv_CC_dependencies_compiler_type=$depmode
4696 break
4697 fi
4698 fi
4699 done
4700
4701 cd ..
4702 rm -rf conftest.dir
4703 else
4704 am_cv_CC_dependencies_compiler_type=none
4705 fi
4706
4707 fi
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4709 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4710 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4711
4712 if
4713 test "x$enable_dependency_tracking" != xno \
4714 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4715 am__fastdepCC_TRUE=
4716 am__fastdepCC_FALSE='#'
4717 else
4718 am__fastdepCC_TRUE='#'
4719 am__fastdepCC_FALSE=
4720 fi
4721
4722
4723
4724 ac_ext=c
4725 ac_cpp='$CPP $CPPFLAGS'
4726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4730 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4731 # On Suns, sometimes $CPP names a directory.
4732 if test -n "$CPP" && test -d "$CPP"; then
4733 CPP=
4734 fi
4735 if test -z "$CPP"; then
4736 if ${ac_cv_prog_CPP+:} false; then :
4737 $as_echo_n "(cached) " >&6
4738 else
4739 # Double quotes because CPP needs to be expanded
4740 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4741 do
4742 ac_preproc_ok=false
4743 for ac_c_preproc_warn_flag in '' yes
4744 do
4745 # Use a header file that comes with gcc, so configuring glibc
4746 # with a fresh cross-compiler works.
4747 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4748 # <limits.h> exists even on freestanding compilers.
4749 # On the NeXT, cc -E runs the code through the compiler's parser,
4750 # not just through cpp. "Syntax error" is here to catch this case.
4751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4752 /* end confdefs.h. */
4753 #ifdef __STDC__
4754 # include <limits.h>
4755 #else
4756 # include <assert.h>
4757 #endif
4758 Syntax error
4759 _ACEOF
4760 if ac_fn_c_try_cpp "$LINENO"; then :
4761
4762 else
4763 # Broken: fails on valid input.
4764 continue
4765 fi
4766 rm -f conftest.err conftest.i conftest.$ac_ext
4767
4768 # OK, works on sane cases. Now check whether nonexistent headers
4769 # can be detected and how.
4770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4771 /* end confdefs.h. */
4772 #include <ac_nonexistent.h>
4773 _ACEOF
4774 if ac_fn_c_try_cpp "$LINENO"; then :
4775 # Broken: success on invalid input.
4776 continue
4777 else
4778 # Passes both tests.
4779 ac_preproc_ok=:
4780 break
4781 fi
4782 rm -f conftest.err conftest.i conftest.$ac_ext
4783
4784 done
4785 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4786 rm -f conftest.i conftest.err conftest.$ac_ext
4787 if $ac_preproc_ok; then :
4788 break
4789 fi
4790
4791 done
4792 ac_cv_prog_CPP=$CPP
4793
4794 fi
4795 CPP=$ac_cv_prog_CPP
4796 else
4797 ac_cv_prog_CPP=$CPP
4798 fi
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4800 $as_echo "$CPP" >&6; }
4801 ac_preproc_ok=false
4802 for ac_c_preproc_warn_flag in '' yes
4803 do
4804 # Use a header file that comes with gcc, so configuring glibc
4805 # with a fresh cross-compiler works.
4806 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4807 # <limits.h> exists even on freestanding compilers.
4808 # On the NeXT, cc -E runs the code through the compiler's parser,
4809 # not just through cpp. "Syntax error" is here to catch this case.
4810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4811 /* end confdefs.h. */
4812 #ifdef __STDC__
4813 # include <limits.h>
4814 #else
4815 # include <assert.h>
4816 #endif
4817 Syntax error
4818 _ACEOF
4819 if ac_fn_c_try_cpp "$LINENO"; then :
4820
4821 else
4822 # Broken: fails on valid input.
4823 continue
4824 fi
4825 rm -f conftest.err conftest.i conftest.$ac_ext
4826
4827 # OK, works on sane cases. Now check whether nonexistent headers
4828 # can be detected and how.
4829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4830 /* end confdefs.h. */
4831 #include <ac_nonexistent.h>
4832 _ACEOF
4833 if ac_fn_c_try_cpp "$LINENO"; then :
4834 # Broken: success on invalid input.
4835 continue
4836 else
4837 # Passes both tests.
4838 ac_preproc_ok=:
4839 break
4840 fi
4841 rm -f conftest.err conftest.i conftest.$ac_ext
4842
4843 done
4844 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4845 rm -f conftest.i conftest.err conftest.$ac_ext
4846 if $ac_preproc_ok; then :
4847
4848 else
4849 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4850 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4851 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4852 See \`config.log' for more details" "$LINENO" 5; }
4853 fi
4854
4855 ac_ext=c
4856 ac_cpp='$CPP $CPPFLAGS'
4857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4860
4861
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4863 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4864 if ${ac_cv_path_GREP+:} false; then :
4865 $as_echo_n "(cached) " >&6
4866 else
4867 if test -z "$GREP"; then
4868 ac_path_GREP_found=false
4869 # Loop through the user's path and test for each of PROGNAME-LIST
4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4872 do
4873 IFS=$as_save_IFS
4874 test -z "$as_dir" && as_dir=.
4875 for ac_prog in grep ggrep; do
4876 for ac_exec_ext in '' $ac_executable_extensions; do
4877 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4878 as_fn_executable_p "$ac_path_GREP" || continue
4879 # Check for GNU ac_path_GREP and select it if it is found.
4880 # Check for GNU $ac_path_GREP
4881 case `"$ac_path_GREP" --version 2>&1` in
4882 *GNU*)
4883 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4884 *)
4885 ac_count=0
4886 $as_echo_n 0123456789 >"conftest.in"
4887 while :
4888 do
4889 cat "conftest.in" "conftest.in" >"conftest.tmp"
4890 mv "conftest.tmp" "conftest.in"
4891 cp "conftest.in" "conftest.nl"
4892 $as_echo 'GREP' >> "conftest.nl"
4893 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4894 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4895 as_fn_arith $ac_count + 1 && ac_count=$as_val
4896 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4897 # Best one so far, save it but keep looking for a better one
4898 ac_cv_path_GREP="$ac_path_GREP"
4899 ac_path_GREP_max=$ac_count
4900 fi
4901 # 10*(2^10) chars as input seems more than enough
4902 test $ac_count -gt 10 && break
4903 done
4904 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4905 esac
4906
4907 $ac_path_GREP_found && break 3
4908 done
4909 done
4910 done
4911 IFS=$as_save_IFS
4912 if test -z "$ac_cv_path_GREP"; then
4913 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4914 fi
4915 else
4916 ac_cv_path_GREP=$GREP
4917 fi
4918
4919 fi
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4921 $as_echo "$ac_cv_path_GREP" >&6; }
4922 GREP="$ac_cv_path_GREP"
4923
4924
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4926 $as_echo_n "checking for egrep... " >&6; }
4927 if ${ac_cv_path_EGREP+:} false; then :
4928 $as_echo_n "(cached) " >&6
4929 else
4930 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4931 then ac_cv_path_EGREP="$GREP -E"
4932 else
4933 if test -z "$EGREP"; then
4934 ac_path_EGREP_found=false
4935 # Loop through the user's path and test for each of PROGNAME-LIST
4936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4937 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4938 do
4939 IFS=$as_save_IFS
4940 test -z "$as_dir" && as_dir=.
4941 for ac_prog in egrep; do
4942 for ac_exec_ext in '' $ac_executable_extensions; do
4943 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4944 as_fn_executable_p "$ac_path_EGREP" || continue
4945 # Check for GNU ac_path_EGREP and select it if it is found.
4946 # Check for GNU $ac_path_EGREP
4947 case `"$ac_path_EGREP" --version 2>&1` in
4948 *GNU*)
4949 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4950 *)
4951 ac_count=0
4952 $as_echo_n 0123456789 >"conftest.in"
4953 while :
4954 do
4955 cat "conftest.in" "conftest.in" >"conftest.tmp"
4956 mv "conftest.tmp" "conftest.in"
4957 cp "conftest.in" "conftest.nl"
4958 $as_echo 'EGREP' >> "conftest.nl"
4959 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4960 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4961 as_fn_arith $ac_count + 1 && ac_count=$as_val
4962 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4963 # Best one so far, save it but keep looking for a better one
4964 ac_cv_path_EGREP="$ac_path_EGREP"
4965 ac_path_EGREP_max=$ac_count
4966 fi
4967 # 10*(2^10) chars as input seems more than enough
4968 test $ac_count -gt 10 && break
4969 done
4970 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4971 esac
4972
4973 $ac_path_EGREP_found && break 3
4974 done
4975 done
4976 done
4977 IFS=$as_save_IFS
4978 if test -z "$ac_cv_path_EGREP"; then
4979 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4980 fi
4981 else
4982 ac_cv_path_EGREP=$EGREP
4983 fi
4984
4985 fi
4986 fi
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4988 $as_echo "$ac_cv_path_EGREP" >&6; }
4989 EGREP="$ac_cv_path_EGREP"
4990
4991
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4993 $as_echo_n "checking for ANSI C header files... " >&6; }
4994 if ${ac_cv_header_stdc+:} false; then :
4995 $as_echo_n "(cached) " >&6
4996 else
4997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4998 /* end confdefs.h. */
4999 #include <stdlib.h>
5000 #include <stdarg.h>
5001 #include <string.h>
5002 #include <float.h>
5003
5004 int
5005 main ()
5006 {
5007
5008 ;
5009 return 0;
5010 }
5011 _ACEOF
5012 if ac_fn_c_try_compile "$LINENO"; then :
5013 ac_cv_header_stdc=yes
5014 else
5015 ac_cv_header_stdc=no
5016 fi
5017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5018
5019 if test $ac_cv_header_stdc = yes; then
5020 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5022 /* end confdefs.h. */
5023 #include <string.h>
5024
5025 _ACEOF
5026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5027 $EGREP "memchr" >/dev/null 2>&1; then :
5028
5029 else
5030 ac_cv_header_stdc=no
5031 fi
5032 rm -f conftest*
5033
5034 fi
5035
5036 if test $ac_cv_header_stdc = yes; then
5037 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5039 /* end confdefs.h. */
5040 #include <stdlib.h>
5041
5042 _ACEOF
5043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5044 $EGREP "free" >/dev/null 2>&1; then :
5045
5046 else
5047 ac_cv_header_stdc=no
5048 fi
5049 rm -f conftest*
5050
5051 fi
5052
5053 if test $ac_cv_header_stdc = yes; then
5054 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5055 if test "$cross_compiling" = yes; then :
5056 :
5057 else
5058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5059 /* end confdefs.h. */
5060 #include <ctype.h>
5061 #include <stdlib.h>
5062 #if ((' ' & 0x0FF) == 0x020)
5063 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5064 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5065 #else
5066 # define ISLOWER(c) \
5067 (('a' <= (c) && (c) <= 'i') \
5068 || ('j' <= (c) && (c) <= 'r') \
5069 || ('s' <= (c) && (c) <= 'z'))
5070 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5071 #endif
5072
5073 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5074 int
5075 main ()
5076 {
5077 int i;
5078 for (i = 0; i < 256; i++)
5079 if (XOR (islower (i), ISLOWER (i))
5080 || toupper (i) != TOUPPER (i))
5081 return 2;
5082 return 0;
5083 }
5084 _ACEOF
5085 if ac_fn_c_try_run "$LINENO"; then :
5086
5087 else
5088 ac_cv_header_stdc=no
5089 fi
5090 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5091 conftest.$ac_objext conftest.beam conftest.$ac_ext
5092 fi
5093
5094 fi
5095 fi
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5097 $as_echo "$ac_cv_header_stdc" >&6; }
5098 if test $ac_cv_header_stdc = yes; then
5099
5100 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5101
5102 fi
5103
5104 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5105 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5106 inttypes.h stdint.h unistd.h
5107 do :
5108 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5109 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5110 "
5111 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5112 cat >>confdefs.h <<_ACEOF
5113 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5114 _ACEOF
5115
5116 fi
5117
5118 done
5119
5120
5121
5122 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5123 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5124 MINIX=yes
5125 else
5126 MINIX=
5127 fi
5128
5129
5130 if test "$MINIX" = yes; then
5131
5132 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5133
5134
5135 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5136
5137
5138 $as_echo "#define _MINIX 1" >>confdefs.h
5139
5140 fi
5141
5142
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5144 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5145 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5146 $as_echo_n "(cached) " >&6
5147 else
5148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5149 /* end confdefs.h. */
5150
5151 # define __EXTENSIONS__ 1
5152 $ac_includes_default
5153 int
5154 main ()
5155 {
5156
5157 ;
5158 return 0;
5159 }
5160 _ACEOF
5161 if ac_fn_c_try_compile "$LINENO"; then :
5162 ac_cv_safe_to_define___extensions__=yes
5163 else
5164 ac_cv_safe_to_define___extensions__=no
5165 fi
5166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5167 fi
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5169 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5170 test $ac_cv_safe_to_define___extensions__ = yes &&
5171 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5172
5173 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5174
5175 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5176
5177 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5178
5179 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5180
5181
5182
5183
5184 # Check whether --with-toolexeclibdir was given.
5185 if test "${with_toolexeclibdir+set}" = set; then :
5186 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
5187 /)
5188 ;;
5189 */)
5190 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
5191 ;;
5192 esac
5193 else
5194 with_toolexeclibdir=no
5195 fi
5196
5197
5198
5199 # Calculate toolexeclibdir
5200 # Also toolexecdir, though it's only used in toolexeclibdir
5201 case ${version_specific_libs} in
5202 yes)
5203 # Need the gcc compiler version to know where to install libraries
5204 # and header files if --enable-version-specific-runtime-libs option
5205 # is selected.
5206 toolexecdir='$(libdir)/gcc/$(target_alias)'
5207 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
5208 ;;
5209 no)
5210 if test -n "$with_cross_host" &&
5211 test x"$with_cross_host" != x"no"; then
5212 # Install a library built with a cross compiler in tooldir, not libdir.
5213 toolexecdir='$(exec_prefix)/$(target_alias)'
5214 case ${with_toolexeclibdir} in
5215 no)
5216 toolexeclibdir='$(toolexecdir)/lib'
5217 ;;
5218 *)
5219 toolexeclibdir=${with_toolexeclibdir}
5220 ;;
5221 esac
5222 else
5223 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
5224 toolexeclibdir='$(libdir)'
5225 fi
5226 multi_os_directory=`$CC -print-multi-os-directory`
5227 case $multi_os_directory in
5228 .) ;; # Avoid trailing /.
5229 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
5230 esac
5231 ;;
5232 esac
5233
5234
5235
5236 # Create a spec file, so that compile/link tests don't fail
5237 test -f libgfortran.spec || touch libgfortran.spec
5238
5239 ac_ext=c
5240 ac_cpp='$CPP $CPPFLAGS'
5241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5244
5245 # Check the compiler.
5246 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
5247 # We must force CC to /not/ be precious variables; otherwise
5248 # the wrong, non-multilib-adjusted value will be used in multilibs.
5249 # As a side effect, we have to subst CFLAGS ourselves.
5250
5251
5252
5253 ac_ext=c
5254 ac_cpp='$CPP $CPPFLAGS'
5255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5258 if test -n "$ac_tool_prefix"; then
5259 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5260 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5262 $as_echo_n "checking for $ac_word... " >&6; }
5263 if ${ac_cv_prog_CC+:} false; then :
5264 $as_echo_n "(cached) " >&6
5265 else
5266 if test -n "$CC"; then
5267 ac_cv_prog_CC="$CC" # Let the user override the test.
5268 else
5269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5270 for as_dir in $PATH
5271 do
5272 IFS=$as_save_IFS
5273 test -z "$as_dir" && as_dir=.
5274 for ac_exec_ext in '' $ac_executable_extensions; do
5275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5276 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5278 break 2
5279 fi
5280 done
5281 done
5282 IFS=$as_save_IFS
5283
5284 fi
5285 fi
5286 CC=$ac_cv_prog_CC
5287 if test -n "$CC"; then
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5289 $as_echo "$CC" >&6; }
5290 else
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5292 $as_echo "no" >&6; }
5293 fi
5294
5295
5296 fi
5297 if test -z "$ac_cv_prog_CC"; then
5298 ac_ct_CC=$CC
5299 # Extract the first word of "gcc", so it can be a program name with args.
5300 set dummy gcc; ac_word=$2
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5302 $as_echo_n "checking for $ac_word... " >&6; }
5303 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5304 $as_echo_n "(cached) " >&6
5305 else
5306 if test -n "$ac_ct_CC"; then
5307 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5308 else
5309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5310 for as_dir in $PATH
5311 do
5312 IFS=$as_save_IFS
5313 test -z "$as_dir" && as_dir=.
5314 for ac_exec_ext in '' $ac_executable_extensions; do
5315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5316 ac_cv_prog_ac_ct_CC="gcc"
5317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5318 break 2
5319 fi
5320 done
5321 done
5322 IFS=$as_save_IFS
5323
5324 fi
5325 fi
5326 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5327 if test -n "$ac_ct_CC"; then
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5329 $as_echo "$ac_ct_CC" >&6; }
5330 else
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5332 $as_echo "no" >&6; }
5333 fi
5334
5335 if test "x$ac_ct_CC" = x; then
5336 CC=""
5337 else
5338 case $cross_compiling:$ac_tool_warned in
5339 yes:)
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5341 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5342 ac_tool_warned=yes ;;
5343 esac
5344 CC=$ac_ct_CC
5345 fi
5346 else
5347 CC="$ac_cv_prog_CC"
5348 fi
5349
5350 if test -z "$CC"; then
5351 if test -n "$ac_tool_prefix"; then
5352 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5353 set dummy ${ac_tool_prefix}cc; ac_word=$2
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5355 $as_echo_n "checking for $ac_word... " >&6; }
5356 if ${ac_cv_prog_CC+:} false; then :
5357 $as_echo_n "(cached) " >&6
5358 else
5359 if test -n "$CC"; then
5360 ac_cv_prog_CC="$CC" # Let the user override the test.
5361 else
5362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5363 for as_dir in $PATH
5364 do
5365 IFS=$as_save_IFS
5366 test -z "$as_dir" && as_dir=.
5367 for ac_exec_ext in '' $ac_executable_extensions; do
5368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5369 ac_cv_prog_CC="${ac_tool_prefix}cc"
5370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5371 break 2
5372 fi
5373 done
5374 done
5375 IFS=$as_save_IFS
5376
5377 fi
5378 fi
5379 CC=$ac_cv_prog_CC
5380 if test -n "$CC"; then
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5382 $as_echo "$CC" >&6; }
5383 else
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5385 $as_echo "no" >&6; }
5386 fi
5387
5388
5389 fi
5390 fi
5391 if test -z "$CC"; then
5392 # Extract the first word of "cc", so it can be a program name with args.
5393 set dummy cc; ac_word=$2
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5395 $as_echo_n "checking for $ac_word... " >&6; }
5396 if ${ac_cv_prog_CC+:} false; then :
5397 $as_echo_n "(cached) " >&6
5398 else
5399 if test -n "$CC"; then
5400 ac_cv_prog_CC="$CC" # Let the user override the test.
5401 else
5402 ac_prog_rejected=no
5403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404 for as_dir in $PATH
5405 do
5406 IFS=$as_save_IFS
5407 test -z "$as_dir" && as_dir=.
5408 for ac_exec_ext in '' $ac_executable_extensions; do
5409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5410 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5411 ac_prog_rejected=yes
5412 continue
5413 fi
5414 ac_cv_prog_CC="cc"
5415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5416 break 2
5417 fi
5418 done
5419 done
5420 IFS=$as_save_IFS
5421
5422 if test $ac_prog_rejected = yes; then
5423 # We found a bogon in the path, so make sure we never use it.
5424 set dummy $ac_cv_prog_CC
5425 shift
5426 if test $# != 0; then
5427 # We chose a different compiler from the bogus one.
5428 # However, it has the same basename, so the bogon will be chosen
5429 # first if we set CC to just the basename; use the full file name.
5430 shift
5431 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5432 fi
5433 fi
5434 fi
5435 fi
5436 CC=$ac_cv_prog_CC
5437 if test -n "$CC"; then
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5439 $as_echo "$CC" >&6; }
5440 else
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5442 $as_echo "no" >&6; }
5443 fi
5444
5445
5446 fi
5447 if test -z "$CC"; then
5448 if test -n "$ac_tool_prefix"; then
5449 for ac_prog in cl.exe
5450 do
5451 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5452 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5454 $as_echo_n "checking for $ac_word... " >&6; }
5455 if ${ac_cv_prog_CC+:} false; then :
5456 $as_echo_n "(cached) " >&6
5457 else
5458 if test -n "$CC"; then
5459 ac_cv_prog_CC="$CC" # Let the user override the test.
5460 else
5461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5462 for as_dir in $PATH
5463 do
5464 IFS=$as_save_IFS
5465 test -z "$as_dir" && as_dir=.
5466 for ac_exec_ext in '' $ac_executable_extensions; do
5467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5468 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5470 break 2
5471 fi
5472 done
5473 done
5474 IFS=$as_save_IFS
5475
5476 fi
5477 fi
5478 CC=$ac_cv_prog_CC
5479 if test -n "$CC"; then
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5481 $as_echo "$CC" >&6; }
5482 else
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5484 $as_echo "no" >&6; }
5485 fi
5486
5487
5488 test -n "$CC" && break
5489 done
5490 fi
5491 if test -z "$CC"; then
5492 ac_ct_CC=$CC
5493 for ac_prog in cl.exe
5494 do
5495 # Extract the first word of "$ac_prog", so it can be a program name with args.
5496 set dummy $ac_prog; ac_word=$2
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5498 $as_echo_n "checking for $ac_word... " >&6; }
5499 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5500 $as_echo_n "(cached) " >&6
5501 else
5502 if test -n "$ac_ct_CC"; then
5503 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5504 else
5505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5506 for as_dir in $PATH
5507 do
5508 IFS=$as_save_IFS
5509 test -z "$as_dir" && as_dir=.
5510 for ac_exec_ext in '' $ac_executable_extensions; do
5511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5512 ac_cv_prog_ac_ct_CC="$ac_prog"
5513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5514 break 2
5515 fi
5516 done
5517 done
5518 IFS=$as_save_IFS
5519
5520 fi
5521 fi
5522 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5523 if test -n "$ac_ct_CC"; then
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5525 $as_echo "$ac_ct_CC" >&6; }
5526 else
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5528 $as_echo "no" >&6; }
5529 fi
5530
5531
5532 test -n "$ac_ct_CC" && break
5533 done
5534
5535 if test "x$ac_ct_CC" = x; then
5536 CC=""
5537 else
5538 case $cross_compiling:$ac_tool_warned in
5539 yes:)
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5542 ac_tool_warned=yes ;;
5543 esac
5544 CC=$ac_ct_CC
5545 fi
5546 fi
5547
5548 fi
5549
5550
5551 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5553 as_fn_error $? "no acceptable C compiler found in \$PATH
5554 See \`config.log' for more details" "$LINENO" 5; }
5555
5556 # Provide some information about the compiler.
5557 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5558 set X $ac_compile
5559 ac_compiler=$2
5560 for ac_option in --version -v -V -qversion; do
5561 { { ac_try="$ac_compiler $ac_option >&5"
5562 case "(($ac_try" in
5563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5564 *) ac_try_echo=$ac_try;;
5565 esac
5566 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5567 $as_echo "$ac_try_echo"; } >&5
5568 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5569 ac_status=$?
5570 if test -s conftest.err; then
5571 sed '10a\
5572 ... rest of stderr output deleted ...
5573 10q' conftest.err >conftest.er1
5574 cat conftest.er1 >&5
5575 fi
5576 rm -f conftest.er1 conftest.err
5577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5578 test $ac_status = 0; }
5579 done
5580
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5582 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5583 if ${ac_cv_c_compiler_gnu+:} false; then :
5584 $as_echo_n "(cached) " >&6
5585 else
5586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5587 /* end confdefs.h. */
5588
5589 int
5590 main ()
5591 {
5592 #ifndef __GNUC__
5593 choke me
5594 #endif
5595
5596 ;
5597 return 0;
5598 }
5599 _ACEOF
5600 if ac_fn_c_try_compile "$LINENO"; then :
5601 ac_compiler_gnu=yes
5602 else
5603 ac_compiler_gnu=no
5604 fi
5605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5606 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5607
5608 fi
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5610 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5611 if test $ac_compiler_gnu = yes; then
5612 GCC=yes
5613 else
5614 GCC=
5615 fi
5616 ac_test_CFLAGS=${CFLAGS+set}
5617 ac_save_CFLAGS=$CFLAGS
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5619 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5620 if ${ac_cv_prog_cc_g+:} false; then :
5621 $as_echo_n "(cached) " >&6
5622 else
5623 ac_save_c_werror_flag=$ac_c_werror_flag
5624 ac_c_werror_flag=yes
5625 ac_cv_prog_cc_g=no
5626 CFLAGS="-g"
5627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5628 /* end confdefs.h. */
5629
5630 int
5631 main ()
5632 {
5633
5634 ;
5635 return 0;
5636 }
5637 _ACEOF
5638 if ac_fn_c_try_compile "$LINENO"; then :
5639 ac_cv_prog_cc_g=yes
5640 else
5641 CFLAGS=""
5642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5643 /* end confdefs.h. */
5644
5645 int
5646 main ()
5647 {
5648
5649 ;
5650 return 0;
5651 }
5652 _ACEOF
5653 if ac_fn_c_try_compile "$LINENO"; then :
5654
5655 else
5656 ac_c_werror_flag=$ac_save_c_werror_flag
5657 CFLAGS="-g"
5658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5659 /* end confdefs.h. */
5660
5661 int
5662 main ()
5663 {
5664
5665 ;
5666 return 0;
5667 }
5668 _ACEOF
5669 if ac_fn_c_try_compile "$LINENO"; then :
5670 ac_cv_prog_cc_g=yes
5671 fi
5672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5673 fi
5674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5675 fi
5676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5677 ac_c_werror_flag=$ac_save_c_werror_flag
5678 fi
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5680 $as_echo "$ac_cv_prog_cc_g" >&6; }
5681 if test "$ac_test_CFLAGS" = set; then
5682 CFLAGS=$ac_save_CFLAGS
5683 elif test $ac_cv_prog_cc_g = yes; then
5684 if test "$GCC" = yes; then
5685 CFLAGS="-g -O2"
5686 else
5687 CFLAGS="-g"
5688 fi
5689 else
5690 if test "$GCC" = yes; then
5691 CFLAGS="-O2"
5692 else
5693 CFLAGS=
5694 fi
5695 fi
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5697 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5698 if ${ac_cv_prog_cc_c89+:} false; then :
5699 $as_echo_n "(cached) " >&6
5700 else
5701 ac_cv_prog_cc_c89=no
5702 ac_save_CC=$CC
5703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5704 /* end confdefs.h. */
5705 #include <stdarg.h>
5706 #include <stdio.h>
5707 struct stat;
5708 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5709 struct buf { int x; };
5710 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5711 static char *e (p, i)
5712 char **p;
5713 int i;
5714 {
5715 return p[i];
5716 }
5717 static char *f (char * (*g) (char **, int), char **p, ...)
5718 {
5719 char *s;
5720 va_list v;
5721 va_start (v,p);
5722 s = g (p, va_arg (v,int));
5723 va_end (v);
5724 return s;
5725 }
5726
5727 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5728 function prototypes and stuff, but not '\xHH' hex character constants.
5729 These don't provoke an error unfortunately, instead are silently treated
5730 as 'x'. The following induces an error, until -std is added to get
5731 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5732 array size at least. It's necessary to write '\x00'==0 to get something
5733 that's true only with -std. */
5734 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5735
5736 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5737 inside strings and character constants. */
5738 #define FOO(x) 'x'
5739 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5740
5741 int test (int i, double x);
5742 struct s1 {int (*f) (int a);};
5743 struct s2 {int (*f) (double a);};
5744 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5745 int argc;
5746 char **argv;
5747 int
5748 main ()
5749 {
5750 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5751 ;
5752 return 0;
5753 }
5754 _ACEOF
5755 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5756 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5757 do
5758 CC="$ac_save_CC $ac_arg"
5759 if ac_fn_c_try_compile "$LINENO"; then :
5760 ac_cv_prog_cc_c89=$ac_arg
5761 fi
5762 rm -f core conftest.err conftest.$ac_objext
5763 test "x$ac_cv_prog_cc_c89" != "xno" && break
5764 done
5765 rm -f conftest.$ac_ext
5766 CC=$ac_save_CC
5767
5768 fi
5769 # AC_CACHE_VAL
5770 case "x$ac_cv_prog_cc_c89" in
5771 x)
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5773 $as_echo "none needed" >&6; } ;;
5774 xno)
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5776 $as_echo "unsupported" >&6; } ;;
5777 *)
5778 CC="$CC $ac_cv_prog_cc_c89"
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5780 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5781 esac
5782 if test "x$ac_cv_prog_cc_c89" != xno; then :
5783
5784 fi
5785
5786 ac_ext=c
5787 ac_cpp='$CPP $CPPFLAGS'
5788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5791
5792 ac_ext=c
5793 ac_cpp='$CPP $CPPFLAGS'
5794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5798 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5799 if ${am_cv_prog_cc_c_o+:} false; then :
5800 $as_echo_n "(cached) " >&6
5801 else
5802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5803 /* end confdefs.h. */
5804
5805 int
5806 main ()
5807 {
5808
5809 ;
5810 return 0;
5811 }
5812 _ACEOF
5813 # Make sure it works both with $CC and with simple cc.
5814 # Following AC_PROG_CC_C_O, we do the test twice because some
5815 # compilers refuse to overwrite an existing .o file with -o,
5816 # though they will create one.
5817 am_cv_prog_cc_c_o=yes
5818 for am_i in 1 2; do
5819 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5820 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5821 ac_status=$?
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); } \
5824 && test -f conftest2.$ac_objext; then
5825 : OK
5826 else
5827 am_cv_prog_cc_c_o=no
5828 break
5829 fi
5830 done
5831 rm -f core conftest*
5832 unset am_i
5833 fi
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5835 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5836 if test "$am_cv_prog_cc_c_o" != yes; then
5837 # Losing compiler, so override with the script.
5838 # FIXME: It is wrong to rewrite CC.
5839 # But if we don't then we get into trouble of one sort or another.
5840 # A longer-term fix would be to have automake use am__CC in this case,
5841 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5842 CC="$am_aux_dir/compile $CC"
5843 fi
5844 ac_ext=c
5845 ac_cpp='$CPP $CPPFLAGS'
5846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5849
5850
5851 depcc="$CC" am_compiler_list=
5852
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5854 $as_echo_n "checking dependency style of $depcc... " >&6; }
5855 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5856 $as_echo_n "(cached) " >&6
5857 else
5858 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5859 # We make a subdir and do the tests there. Otherwise we can end up
5860 # making bogus files that we don't know about and never remove. For
5861 # instance it was reported that on HP-UX the gcc test will end up
5862 # making a dummy file named 'D' -- because '-MD' means "put the output
5863 # in D".
5864 rm -rf conftest.dir
5865 mkdir conftest.dir
5866 # Copy depcomp to subdir because otherwise we won't find it if we're
5867 # using a relative directory.
5868 cp "$am_depcomp" conftest.dir
5869 cd conftest.dir
5870 # We will build objects and dependencies in a subdirectory because
5871 # it helps to detect inapplicable dependency modes. For instance
5872 # both Tru64's cc and ICC support -MD to output dependencies as a
5873 # side effect of compilation, but ICC will put the dependencies in
5874 # the current directory while Tru64 will put them in the object
5875 # directory.
5876 mkdir sub
5877
5878 am_cv_CC_dependencies_compiler_type=none
5879 if test "$am_compiler_list" = ""; then
5880 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5881 fi
5882 am__universal=false
5883 case " $depcc " in #(
5884 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5885 esac
5886
5887 for depmode in $am_compiler_list; do
5888 # Setup a source with many dependencies, because some compilers
5889 # like to wrap large dependency lists on column 80 (with \), and
5890 # we should not choose a depcomp mode which is confused by this.
5891 #
5892 # We need to recreate these files for each test, as the compiler may
5893 # overwrite some of them when testing with obscure command lines.
5894 # This happens at least with the AIX C compiler.
5895 : > sub/conftest.c
5896 for i in 1 2 3 4 5 6; do
5897 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5898 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5899 # Solaris 10 /bin/sh.
5900 echo '/* dummy */' > sub/conftst$i.h
5901 done
5902 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5903
5904 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5905 # mode. It turns out that the SunPro C++ compiler does not properly
5906 # handle '-M -o', and we need to detect this. Also, some Intel
5907 # versions had trouble with output in subdirs.
5908 am__obj=sub/conftest.${OBJEXT-o}
5909 am__minus_obj="-o $am__obj"
5910 case $depmode in
5911 gcc)
5912 # This depmode causes a compiler race in universal mode.
5913 test "$am__universal" = false || continue
5914 ;;
5915 nosideeffect)
5916 # After this tag, mechanisms are not by side-effect, so they'll
5917 # only be used when explicitly requested.
5918 if test "x$enable_dependency_tracking" = xyes; then
5919 continue
5920 else
5921 break
5922 fi
5923 ;;
5924 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5925 # This compiler won't grok '-c -o', but also, the minuso test has
5926 # not run yet. These depmodes are late enough in the game, and
5927 # so weak that their functioning should not be impacted.
5928 am__obj=conftest.${OBJEXT-o}
5929 am__minus_obj=
5930 ;;
5931 none) break ;;
5932 esac
5933 if depmode=$depmode \
5934 source=sub/conftest.c object=$am__obj \
5935 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5936 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5937 >/dev/null 2>conftest.err &&
5938 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5939 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5940 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5941 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5942 # icc doesn't choke on unknown options, it will just issue warnings
5943 # or remarks (even with -Werror). So we grep stderr for any message
5944 # that says an option was ignored or not supported.
5945 # When given -MP, icc 7.0 and 7.1 complain thusly:
5946 # icc: Command line warning: ignoring option '-M'; no argument required
5947 # The diagnosis changed in icc 8.0:
5948 # icc: Command line remark: option '-MP' not supported
5949 if (grep 'ignoring option' conftest.err ||
5950 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5951 am_cv_CC_dependencies_compiler_type=$depmode
5952 break
5953 fi
5954 fi
5955 done
5956
5957 cd ..
5958 rm -rf conftest.dir
5959 else
5960 am_cv_CC_dependencies_compiler_type=none
5961 fi
5962
5963 fi
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5965 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5966 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5967
5968 if
5969 test "x$enable_dependency_tracking" != xno \
5970 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5971 am__fastdepCC_TRUE=
5972 am__fastdepCC_FALSE='#'
5973 else
5974 am__fastdepCC_TRUE='#'
5975 am__fastdepCC_FALSE=
5976 fi
5977
5978
5979
5980
5981
5982
5983
5984
5985 # Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC.
5986 if test "x$GCC" = "xyes"; then
5987 AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring"
5988 ## We like to use C11 and C99 routines when available. This makes
5989 ## sure that
5990 ## __STDC_VERSION__ is set such that libc includes make them available.
5991 AM_CFLAGS="-std=gnu11 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -Werror=implicit-function-declaration -Werror=vla"
5992 ## Compile the following tests with the same system header contents
5993 ## that we'll encounter when compiling our own source files.
5994 CFLAGS="-std=gnu11 $CFLAGS"
5995 fi
5996
5997 # Add CET specific flags if CET is enabled
5998 # Check whether --enable-cet was given.
5999 if test "${enable_cet+set}" = set; then :
6000 enableval=$enable_cet;
6001 case "$enableval" in
6002 yes|no|auto) ;;
6003 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
6004 esac
6005
6006 else
6007 enable_cet=auto
6008 fi
6009
6010
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
6012 $as_echo_n "checking for CET support... " >&6; }
6013
6014 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
6015 case "$host" in
6016 i[34567]86-*-linux* | x86_64-*-linux*)
6017 case "$enable_cet" in
6018 auto)
6019 # Check if target supports multi-byte NOPs
6020 # and if compiler and assembler support CET insn.
6021 cet_save_CFLAGS="$CFLAGS"
6022 CFLAGS="$CFLAGS -fcf-protection"
6023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6024 /* end confdefs.h. */
6025
6026 int
6027 main ()
6028 {
6029
6030 #if !defined(__SSE2__)
6031 #error target does not support multi-byte NOPs
6032 #else
6033 asm ("setssbsy");
6034 #endif
6035
6036 ;
6037 return 0;
6038 }
6039 _ACEOF
6040 if ac_fn_c_try_compile "$LINENO"; then :
6041 enable_cet=yes
6042 else
6043 enable_cet=no
6044 fi
6045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6046 CFLAGS="$cet_save_CFLAGS"
6047 ;;
6048 yes)
6049 # Check if assembler supports CET.
6050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6051 /* end confdefs.h. */
6052
6053 int
6054 main ()
6055 {
6056 asm ("setssbsy");
6057 ;
6058 return 0;
6059 }
6060 _ACEOF
6061 if ac_fn_c_try_compile "$LINENO"; then :
6062
6063 else
6064 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
6065 fi
6066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6067 ;;
6068 esac
6069 ;;
6070 *)
6071 enable_cet=no
6072 ;;
6073 esac
6074 if test x$enable_cet = xyes; then
6075 CET_FLAGS="-fcf-protection -mshstk"
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6077 $as_echo "yes" >&6; }
6078 else
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6080 $as_echo "no" >&6; }
6081 fi
6082
6083 AM_FCFLAGS="$AM_FCFLAGS $CET_FLAGS"
6084 AM_CFLAGS="$AM_CFLAGS $CET_FLAGS"
6085 CFLAGS="$CFLAGS $CET_FLAGS"
6086
6087
6088
6089
6090
6091 # Check for symbol versioning (copied from libssp).
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
6093 $as_echo_n "checking whether symbol versioning is supported... " >&6; }
6094 # Check whether --enable-symvers was given.
6095 if test "${enable_symvers+set}" = set; then :
6096 enableval=$enable_symvers; gfortran_use_symver=$enableval
6097 else
6098 gfortran_use_symver=yes
6099 fi
6100
6101 if test "x$gfortran_use_symver" != xno; then
6102 save_LDFLAGS="$LDFLAGS"
6103 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
6104 cat > conftest.map <<EOF
6105 FOO_1.0 {
6106 global: *foo*; bar; local: *;
6107 };
6108 EOF
6109 if test x$gcc_no_link = xyes; then
6110 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6111 fi
6112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6113 /* end confdefs.h. */
6114 int foo;
6115 int
6116 main ()
6117 {
6118
6119 ;
6120 return 0;
6121 }
6122 _ACEOF
6123 if ac_fn_c_try_link "$LINENO"; then :
6124 gfortran_use_symver=gnu
6125 else
6126 gfortran_use_symver=no
6127 fi
6128 rm -f core conftest.err conftest.$ac_objext \
6129 conftest$ac_exeext conftest.$ac_ext
6130 if test x$gfortran_use_symver = xno; then
6131 case "$target_os" in
6132 solaris2*)
6133 LDFLAGS="$save_LDFLAGS"
6134 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
6135 # Sun ld cannot handle wildcards and treats all entries as undefined.
6136 cat > conftest.map <<EOF
6137 FOO_1.0 {
6138 global: foo; local: *;
6139 };
6140 EOF
6141 if test x$gcc_no_link = xyes; then
6142 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6143 fi
6144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6145 /* end confdefs.h. */
6146 int foo;
6147 int
6148 main ()
6149 {
6150
6151 ;
6152 return 0;
6153 }
6154 _ACEOF
6155 if ac_fn_c_try_link "$LINENO"; then :
6156 gfortran_use_symver=sun
6157 else
6158 gfortran_use_symver=no
6159 fi
6160 rm -f core conftest.err conftest.$ac_objext \
6161 conftest$ac_exeext conftest.$ac_ext
6162 ;;
6163 esac
6164 fi
6165 LDFLAGS="$save_LDFLAGS"
6166 fi
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gfortran_use_symver" >&5
6168 $as_echo "$gfortran_use_symver" >&6; }
6169 if test "x$gfortran_use_symver" != xno; then
6170 LIBGFOR_USE_SYMVER_TRUE=
6171 LIBGFOR_USE_SYMVER_FALSE='#'
6172 else
6173 LIBGFOR_USE_SYMVER_TRUE='#'
6174 LIBGFOR_USE_SYMVER_FALSE=
6175 fi
6176
6177 if test "x$gfortran_use_symver" = xgnu; then
6178 LIBGFOR_USE_SYMVER_GNU_TRUE=
6179 LIBGFOR_USE_SYMVER_GNU_FALSE='#'
6180 else
6181 LIBGFOR_USE_SYMVER_GNU_TRUE='#'
6182 LIBGFOR_USE_SYMVER_GNU_FALSE=
6183 fi
6184
6185 if test "x$gfortran_use_symver" = xsun; then
6186 LIBGFOR_USE_SYMVER_SUN_TRUE=
6187 LIBGFOR_USE_SYMVER_SUN_FALSE='#'
6188 else
6189 LIBGFOR_USE_SYMVER_SUN_TRUE='#'
6190 LIBGFOR_USE_SYMVER_SUN_FALSE=
6191 fi
6192
6193
6194 # For GPU offloading, not everything in libfortran can be supported.
6195 # Currently, the only target that has this problem is nvptx. The
6196 # following is a (partial) list of features that are unsupportable on
6197 # this particular target:
6198 # * Constructors
6199 # * alloca
6200 # * C library support for I/O, with printf as the one notable exception
6201 # * C library support for other features such as signal, environment
6202 # variables, time functions
6203
6204 if test "x${target_cpu}" = xnvptx; then
6205 LIBGFOR_MINIMAL_TRUE=
6206 LIBGFOR_MINIMAL_FALSE='#'
6207 else
6208 LIBGFOR_MINIMAL_TRUE='#'
6209 LIBGFOR_MINIMAL_FALSE=
6210 fi
6211
6212
6213 # Some compiler target support may have limited support for integer
6214 # or floating point numbers – or may want to reduce the libgfortran size
6215 # although they do have the support.
6216 LIBGOMP_CHECKED_INT_KINDS="1 2 4 8 16"
6217 LIBGOMP_CHECKED_REAL_KINDS="4 8 10 16"
6218
6219
6220
6221
6222 # Figure out whether the compiler supports "-ffunction-sections -fdata-sections",
6223 # similarly to how libstdc++ does it
6224 ac_test_CFLAGS="${CFLAGS+set}"
6225 ac_save_CFLAGS="$CFLAGS"
6226
6227 # Check for -ffunction-sections -fdata-sections
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc that supports -ffunction-sections -fdata-sections" >&5
6229 $as_echo_n "checking for gcc that supports -ffunction-sections -fdata-sections... " >&6; }
6230 CFLAGS='-Werror -ffunction-sections -fdata-sections'
6231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6232 /* end confdefs.h. */
6233
6234 int
6235 main ()
6236 {
6237 int foo;
6238 ;
6239 return 0;
6240 }
6241 _ACEOF
6242 if ac_fn_c_try_compile "$LINENO"; then :
6243 ac_fdsections=yes
6244 else
6245 ac_fdsections=no
6246 fi
6247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6248 if test "$ac_test_CFLAGS" = set; then
6249 CFLAGS="$ac_save_CFLAGS"
6250 else
6251 # this is the suspicious part
6252 CFLAGS=""
6253 fi
6254 if test x"$ac_fdsections" = x"yes"; then
6255 SECTION_FLAGS='-ffunction-sections -fdata-sections'
6256 fi
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
6258 $as_echo "$ac_fdsections" >&6; }
6259
6260
6261 # Check linker hardware capability support.
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6263 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6264 if ${ac_cv_path_SED+:} false; then :
6265 $as_echo_n "(cached) " >&6
6266 else
6267 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6268 for ac_i in 1 2 3 4 5 6 7; do
6269 ac_script="$ac_script$as_nl$ac_script"
6270 done
6271 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6272 { ac_script=; unset ac_script;}
6273 if test -z "$SED"; then
6274 ac_path_SED_found=false
6275 # Loop through the user's path and test for each of PROGNAME-LIST
6276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6277 for as_dir in $PATH
6278 do
6279 IFS=$as_save_IFS
6280 test -z "$as_dir" && as_dir=.
6281 for ac_prog in sed gsed; do
6282 for ac_exec_ext in '' $ac_executable_extensions; do
6283 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6284 as_fn_executable_p "$ac_path_SED" || continue
6285 # Check for GNU ac_path_SED and select it if it is found.
6286 # Check for GNU $ac_path_SED
6287 case `"$ac_path_SED" --version 2>&1` in
6288 *GNU*)
6289 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6290 *)
6291 ac_count=0
6292 $as_echo_n 0123456789 >"conftest.in"
6293 while :
6294 do
6295 cat "conftest.in" "conftest.in" >"conftest.tmp"
6296 mv "conftest.tmp" "conftest.in"
6297 cp "conftest.in" "conftest.nl"
6298 $as_echo '' >> "conftest.nl"
6299 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6300 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6301 as_fn_arith $ac_count + 1 && ac_count=$as_val
6302 if test $ac_count -gt ${ac_path_SED_max-0}; then
6303 # Best one so far, save it but keep looking for a better one
6304 ac_cv_path_SED="$ac_path_SED"
6305 ac_path_SED_max=$ac_count
6306 fi
6307 # 10*(2^10) chars as input seems more than enough
6308 test $ac_count -gt 10 && break
6309 done
6310 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6311 esac
6312
6313 $ac_path_SED_found && break 3
6314 done
6315 done
6316 done
6317 IFS=$as_save_IFS
6318 if test -z "$ac_cv_path_SED"; then
6319 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6320 fi
6321 else
6322 ac_cv_path_SED=$SED
6323 fi
6324
6325 fi
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6327 $as_echo "$ac_cv_path_SED" >&6; }
6328 SED="$ac_cv_path_SED"
6329 rm -f conftest.sed
6330
6331 test -z "$SED" && SED=sed
6332 Xsed="$SED -e 1s/^X//"
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6345 $as_echo_n "checking for fgrep... " >&6; }
6346 if ${ac_cv_path_FGREP+:} false; then :
6347 $as_echo_n "(cached) " >&6
6348 else
6349 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6350 then ac_cv_path_FGREP="$GREP -F"
6351 else
6352 if test -z "$FGREP"; then
6353 ac_path_FGREP_found=false
6354 # Loop through the user's path and test for each of PROGNAME-LIST
6355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6357 do
6358 IFS=$as_save_IFS
6359 test -z "$as_dir" && as_dir=.
6360 for ac_prog in fgrep; do
6361 for ac_exec_ext in '' $ac_executable_extensions; do
6362 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6363 as_fn_executable_p "$ac_path_FGREP" || continue
6364 # Check for GNU ac_path_FGREP and select it if it is found.
6365 # Check for GNU $ac_path_FGREP
6366 case `"$ac_path_FGREP" --version 2>&1` in
6367 *GNU*)
6368 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6369 *)
6370 ac_count=0
6371 $as_echo_n 0123456789 >"conftest.in"
6372 while :
6373 do
6374 cat "conftest.in" "conftest.in" >"conftest.tmp"
6375 mv "conftest.tmp" "conftest.in"
6376 cp "conftest.in" "conftest.nl"
6377 $as_echo 'FGREP' >> "conftest.nl"
6378 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6379 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6380 as_fn_arith $ac_count + 1 && ac_count=$as_val
6381 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6382 # Best one so far, save it but keep looking for a better one
6383 ac_cv_path_FGREP="$ac_path_FGREP"
6384 ac_path_FGREP_max=$ac_count
6385 fi
6386 # 10*(2^10) chars as input seems more than enough
6387 test $ac_count -gt 10 && break
6388 done
6389 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6390 esac
6391
6392 $ac_path_FGREP_found && break 3
6393 done
6394 done
6395 done
6396 IFS=$as_save_IFS
6397 if test -z "$ac_cv_path_FGREP"; then
6398 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6399 fi
6400 else
6401 ac_cv_path_FGREP=$FGREP
6402 fi
6403
6404 fi
6405 fi
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6407 $as_echo "$ac_cv_path_FGREP" >&6; }
6408 FGREP="$ac_cv_path_FGREP"
6409
6410
6411 test -z "$GREP" && GREP=grep
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6430 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6431 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6432
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6434 $as_echo_n "checking how to print strings... " >&6; }
6435 # Test print first, because it will be a builtin if present.
6436 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6437 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6438 ECHO='print -r --'
6439 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6440 ECHO='printf %s\n'
6441 else
6442 # Use this function as a fallback that always works.
6443 func_fallback_echo ()
6444 {
6445 eval 'cat <<_LTECHO_EOF
6446 $1
6447 _LTECHO_EOF'
6448 }
6449 ECHO='func_fallback_echo'
6450 fi
6451
6452 # func_echo_all arg...
6453 # Invoke $ECHO with all args, space-separated.
6454 func_echo_all ()
6455 {
6456 $ECHO ""
6457 }
6458
6459 case "$ECHO" in
6460 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6461 $as_echo "printf" >&6; } ;;
6462 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6463 $as_echo "print -r" >&6; } ;;
6464 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6465 $as_echo "cat" >&6; } ;;
6466 esac
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483 # Check whether --with-gnu-ld was given.
6484 if test "${with_gnu_ld+set}" = set; then :
6485 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6486 else
6487 with_gnu_ld=no
6488 fi
6489
6490 ac_prog=ld
6491 if test "$GCC" = yes; then
6492 # Check if gcc -print-prog-name=ld gives a path.
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6494 $as_echo_n "checking for ld used by $CC... " >&6; }
6495 case $host in
6496 *-*-mingw*)
6497 # gcc leaves a trailing carriage return which upsets mingw
6498 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6499 *)
6500 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6501 esac
6502 case $ac_prog in
6503 # Accept absolute paths.
6504 [\\/]* | ?:[\\/]*)
6505 re_direlt='/[^/][^/]*/\.\./'
6506 # Canonicalize the pathname of ld
6507 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6508 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6509 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6510 done
6511 test -z "$LD" && LD="$ac_prog"
6512 ;;
6513 "")
6514 # If it fails, then pretend we aren't using GCC.
6515 ac_prog=ld
6516 ;;
6517 *)
6518 # If it is relative, then search for the first ld in PATH.
6519 with_gnu_ld=unknown
6520 ;;
6521 esac
6522 elif test "$with_gnu_ld" = yes; then
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6524 $as_echo_n "checking for GNU ld... " >&6; }
6525 else
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6527 $as_echo_n "checking for non-GNU ld... " >&6; }
6528 fi
6529 if ${lt_cv_path_LD+:} false; then :
6530 $as_echo_n "(cached) " >&6
6531 else
6532 if test -z "$LD"; then
6533 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6534 for ac_dir in $PATH; do
6535 IFS="$lt_save_ifs"
6536 test -z "$ac_dir" && ac_dir=.
6537 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6538 lt_cv_path_LD="$ac_dir/$ac_prog"
6539 # Check to see if the program is GNU ld. I'd rather use --version,
6540 # but apparently some variants of GNU ld only accept -v.
6541 # Break only if it was the GNU/non-GNU ld that we prefer.
6542 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6543 *GNU* | *'with BFD'*)
6544 test "$with_gnu_ld" != no && break
6545 ;;
6546 *)
6547 test "$with_gnu_ld" != yes && break
6548 ;;
6549 esac
6550 fi
6551 done
6552 IFS="$lt_save_ifs"
6553 else
6554 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6555 fi
6556 fi
6557
6558 LD="$lt_cv_path_LD"
6559 if test -n "$LD"; then
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6561 $as_echo "$LD" >&6; }
6562 else
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6564 $as_echo "no" >&6; }
6565 fi
6566 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6568 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6569 if ${lt_cv_prog_gnu_ld+:} false; then :
6570 $as_echo_n "(cached) " >&6
6571 else
6572 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6573 case `$LD -v 2>&1 </dev/null` in
6574 *GNU* | *'with BFD'*)
6575 lt_cv_prog_gnu_ld=yes
6576 ;;
6577 *)
6578 lt_cv_prog_gnu_ld=no
6579 ;;
6580 esac
6581 fi
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6583 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6584 with_gnu_ld=$lt_cv_prog_gnu_ld
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595 test -z "$HWCAP_LDFLAGS" && HWCAP_LDFLAGS=''
6596
6597
6598 ac_save_LDFLAGS="$LDFLAGS"
6599 LDFLAGS="$LFLAGS -mclear-hwcap"
6600
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -mclear-hwcap" >&5
6602 $as_echo_n "checking for -mclear-hwcap... " >&6; }
6603 if test x$gcc_no_link = xyes; then
6604 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6605 fi
6606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6607 /* end confdefs.h. */
6608
6609 int
6610 main ()
6611 {
6612 return 0;
6613 ;
6614 return 0;
6615 }
6616 _ACEOF
6617 if ac_fn_c_try_link "$LINENO"; then :
6618 ac_hwcap_ldflags=yes
6619 else
6620 ac_hwcap_ldflags=no
6621 fi
6622 rm -f core conftest.err conftest.$ac_objext \
6623 conftest$ac_exeext conftest.$ac_ext
6624 if test "$ac_hwcap_ldflags" = "yes"; then
6625 HWCAP_LDFLAGS="-mclear-hwcap $HWCAP_LDFLAGS"
6626 fi
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_ldflags" >&5
6628 $as_echo "$ac_hwcap_ldflags" >&6; }
6629
6630 LDFLAGS="$ac_save_LDFLAGS"
6631
6632
6633
6634 if test $ac_hwcap_ldflags != no; then
6635 HAVE_HWCAP_TRUE=
6636 HAVE_HWCAP_FALSE='#'
6637 else
6638 HAVE_HWCAP_TRUE='#'
6639 HAVE_HWCAP_FALSE=
6640 fi
6641
6642
6643
6644 # Find other programs we need.
6645 if test -n "$ac_tool_prefix"; then
6646 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6647 set dummy ${ac_tool_prefix}as; ac_word=$2
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6649 $as_echo_n "checking for $ac_word... " >&6; }
6650 if ${ac_cv_prog_AS+:} false; then :
6651 $as_echo_n "(cached) " >&6
6652 else
6653 if test -n "$AS"; then
6654 ac_cv_prog_AS="$AS" # Let the user override the test.
6655 else
6656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6657 for as_dir in $PATH
6658 do
6659 IFS=$as_save_IFS
6660 test -z "$as_dir" && as_dir=.
6661 for ac_exec_ext in '' $ac_executable_extensions; do
6662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6663 ac_cv_prog_AS="${ac_tool_prefix}as"
6664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6665 break 2
6666 fi
6667 done
6668 done
6669 IFS=$as_save_IFS
6670
6671 fi
6672 fi
6673 AS=$ac_cv_prog_AS
6674 if test -n "$AS"; then
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
6676 $as_echo "$AS" >&6; }
6677 else
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6679 $as_echo "no" >&6; }
6680 fi
6681
6682
6683 fi
6684 if test -z "$ac_cv_prog_AS"; then
6685 ac_ct_AS=$AS
6686 # Extract the first word of "as", so it can be a program name with args.
6687 set dummy as; ac_word=$2
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6689 $as_echo_n "checking for $ac_word... " >&6; }
6690 if ${ac_cv_prog_ac_ct_AS+:} false; then :
6691 $as_echo_n "(cached) " >&6
6692 else
6693 if test -n "$ac_ct_AS"; then
6694 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6695 else
6696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6697 for as_dir in $PATH
6698 do
6699 IFS=$as_save_IFS
6700 test -z "$as_dir" && as_dir=.
6701 for ac_exec_ext in '' $ac_executable_extensions; do
6702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6703 ac_cv_prog_ac_ct_AS="as"
6704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6705 break 2
6706 fi
6707 done
6708 done
6709 IFS=$as_save_IFS
6710
6711 fi
6712 fi
6713 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6714 if test -n "$ac_ct_AS"; then
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
6716 $as_echo "$ac_ct_AS" >&6; }
6717 else
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6719 $as_echo "no" >&6; }
6720 fi
6721
6722 if test "x$ac_ct_AS" = x; then
6723 AS=""
6724 else
6725 case $cross_compiling:$ac_tool_warned in
6726 yes:)
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6728 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6729 ac_tool_warned=yes ;;
6730 esac
6731 AS=$ac_ct_AS
6732 fi
6733 else
6734 AS="$ac_cv_prog_AS"
6735 fi
6736
6737 if test -n "$ac_tool_prefix"; then
6738 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6739 set dummy ${ac_tool_prefix}ar; ac_word=$2
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6741 $as_echo_n "checking for $ac_word... " >&6; }
6742 if ${ac_cv_prog_AR+:} false; then :
6743 $as_echo_n "(cached) " >&6
6744 else
6745 if test -n "$AR"; then
6746 ac_cv_prog_AR="$AR" # Let the user override the test.
6747 else
6748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6749 for as_dir in $PATH
6750 do
6751 IFS=$as_save_IFS
6752 test -z "$as_dir" && as_dir=.
6753 for ac_exec_ext in '' $ac_executable_extensions; do
6754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6755 ac_cv_prog_AR="${ac_tool_prefix}ar"
6756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6757 break 2
6758 fi
6759 done
6760 done
6761 IFS=$as_save_IFS
6762
6763 fi
6764 fi
6765 AR=$ac_cv_prog_AR
6766 if test -n "$AR"; then
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6768 $as_echo "$AR" >&6; }
6769 else
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6771 $as_echo "no" >&6; }
6772 fi
6773
6774
6775 fi
6776 if test -z "$ac_cv_prog_AR"; then
6777 ac_ct_AR=$AR
6778 # Extract the first word of "ar", so it can be a program name with args.
6779 set dummy ar; ac_word=$2
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6781 $as_echo_n "checking for $ac_word... " >&6; }
6782 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6783 $as_echo_n "(cached) " >&6
6784 else
6785 if test -n "$ac_ct_AR"; then
6786 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6787 else
6788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6789 for as_dir in $PATH
6790 do
6791 IFS=$as_save_IFS
6792 test -z "$as_dir" && as_dir=.
6793 for ac_exec_ext in '' $ac_executable_extensions; do
6794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6795 ac_cv_prog_ac_ct_AR="ar"
6796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6797 break 2
6798 fi
6799 done
6800 done
6801 IFS=$as_save_IFS
6802
6803 fi
6804 fi
6805 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6806 if test -n "$ac_ct_AR"; then
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6808 $as_echo "$ac_ct_AR" >&6; }
6809 else
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6811 $as_echo "no" >&6; }
6812 fi
6813
6814 if test "x$ac_ct_AR" = x; then
6815 AR=""
6816 else
6817 case $cross_compiling:$ac_tool_warned in
6818 yes:)
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6820 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6821 ac_tool_warned=yes ;;
6822 esac
6823 AR=$ac_ct_AR
6824 fi
6825 else
6826 AR="$ac_cv_prog_AR"
6827 fi
6828
6829 if test -n "$ac_tool_prefix"; then
6830 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6831 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6833 $as_echo_n "checking for $ac_word... " >&6; }
6834 if ${ac_cv_prog_RANLIB+:} false; then :
6835 $as_echo_n "(cached) " >&6
6836 else
6837 if test -n "$RANLIB"; then
6838 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6839 else
6840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6841 for as_dir in $PATH
6842 do
6843 IFS=$as_save_IFS
6844 test -z "$as_dir" && as_dir=.
6845 for ac_exec_ext in '' $ac_executable_extensions; do
6846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6847 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6849 break 2
6850 fi
6851 done
6852 done
6853 IFS=$as_save_IFS
6854
6855 fi
6856 fi
6857 RANLIB=$ac_cv_prog_RANLIB
6858 if test -n "$RANLIB"; then
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6860 $as_echo "$RANLIB" >&6; }
6861 else
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6863 $as_echo "no" >&6; }
6864 fi
6865
6866
6867 fi
6868 if test -z "$ac_cv_prog_RANLIB"; then
6869 ac_ct_RANLIB=$RANLIB
6870 # Extract the first word of "ranlib", so it can be a program name with args.
6871 set dummy ranlib; ac_word=$2
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6873 $as_echo_n "checking for $ac_word... " >&6; }
6874 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6875 $as_echo_n "(cached) " >&6
6876 else
6877 if test -n "$ac_ct_RANLIB"; then
6878 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6879 else
6880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6881 for as_dir in $PATH
6882 do
6883 IFS=$as_save_IFS
6884 test -z "$as_dir" && as_dir=.
6885 for ac_exec_ext in '' $ac_executable_extensions; do
6886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6887 ac_cv_prog_ac_ct_RANLIB="ranlib"
6888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6889 break 2
6890 fi
6891 done
6892 done
6893 IFS=$as_save_IFS
6894
6895 fi
6896 fi
6897 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6898 if test -n "$ac_ct_RANLIB"; then
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6900 $as_echo "$ac_ct_RANLIB" >&6; }
6901 else
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6903 $as_echo "no" >&6; }
6904 fi
6905
6906 if test "x$ac_ct_RANLIB" = x; then
6907 RANLIB="ranlib-not-found-in-path-error"
6908 else
6909 case $cross_compiling:$ac_tool_warned in
6910 yes:)
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6912 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6913 ac_tool_warned=yes ;;
6914 esac
6915 RANLIB=$ac_ct_RANLIB
6916 fi
6917 else
6918 RANLIB="$ac_cv_prog_RANLIB"
6919 fi
6920
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6922 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6923 set x ${MAKE-make}
6924 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6925 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6926 $as_echo_n "(cached) " >&6
6927 else
6928 cat >conftest.make <<\_ACEOF
6929 SHELL = /bin/sh
6930 all:
6931 @echo '@@@%%%=$(MAKE)=@@@%%%'
6932 _ACEOF
6933 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6934 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6935 *@@@%%%=?*=@@@%%%*)
6936 eval ac_cv_prog_make_${ac_make}_set=yes;;
6937 *)
6938 eval ac_cv_prog_make_${ac_make}_set=no;;
6939 esac
6940 rm -f conftest.make
6941 fi
6942 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6944 $as_echo "yes" >&6; }
6945 SET_MAKE=
6946 else
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6948 $as_echo "no" >&6; }
6949 SET_MAKE="MAKE=${MAKE-make}"
6950 fi
6951
6952
6953
6954 # Configure libtool
6955 #AC_MSG_NOTICE([====== Starting libtool configuration])
6956 enable_dlopen=yes
6957
6958
6959
6960 case `pwd` in
6961 *\ * | *\ *)
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6963 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6964 esac
6965
6966
6967
6968 macro_version='2.2.7a'
6969 macro_revision='1.3134'
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983 ltmain="$ac_aux_dir/ltmain.sh"
6984
6985 # Backslashify metacharacters that are still active within
6986 # double-quoted strings.
6987 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6988
6989 # Same as above, but do not quote variable references.
6990 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6991
6992 # Sed substitution to delay expansion of an escaped shell variable in a
6993 # double_quote_subst'ed string.
6994 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6995
6996 # Sed substitution to delay expansion of an escaped single quote.
6997 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6998
6999 # Sed substitution to avoid accidental globbing in evaled expressions
7000 no_glob_subst='s/\*/\\\*/g'
7001
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7003 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7004 if ${lt_cv_path_NM+:} false; then :
7005 $as_echo_n "(cached) " >&6
7006 else
7007 if test -n "$NM"; then
7008 # Let the user override the test.
7009 lt_cv_path_NM="$NM"
7010 else
7011 lt_nm_to_check="${ac_tool_prefix}nm"
7012 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7013 lt_nm_to_check="$lt_nm_to_check nm"
7014 fi
7015 for lt_tmp_nm in $lt_nm_to_check; do
7016 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7017 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7018 IFS="$lt_save_ifs"
7019 test -z "$ac_dir" && ac_dir=.
7020 tmp_nm="$ac_dir/$lt_tmp_nm"
7021 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7022 # Check to see if the nm accepts a BSD-compat flag.
7023 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7024 # nm: unknown option "B" ignored
7025 # Tru64's nm complains that /dev/null is an invalid object file
7026 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7027 */dev/null* | *'Invalid file or object type'*)
7028 lt_cv_path_NM="$tmp_nm -B"
7029 break
7030 ;;
7031 *)
7032 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7033 */dev/null*)
7034 lt_cv_path_NM="$tmp_nm -p"
7035 break
7036 ;;
7037 *)
7038 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7039 continue # so that we can try to find one that supports BSD flags
7040 ;;
7041 esac
7042 ;;
7043 esac
7044 fi
7045 done
7046 IFS="$lt_save_ifs"
7047 done
7048 : ${lt_cv_path_NM=no}
7049 fi
7050 fi
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7052 $as_echo "$lt_cv_path_NM" >&6; }
7053 if test "$lt_cv_path_NM" != "no"; then
7054 NM="$lt_cv_path_NM"
7055 else
7056 # Didn't find any BSD compatible name lister, look for dumpbin.
7057 if test -n "$DUMPBIN"; then :
7058 # Let the user override the test.
7059 else
7060 if test -n "$ac_tool_prefix"; then
7061 for ac_prog in dumpbin "link -dump"
7062 do
7063 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7064 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7066 $as_echo_n "checking for $ac_word... " >&6; }
7067 if ${ac_cv_prog_DUMPBIN+:} false; then :
7068 $as_echo_n "(cached) " >&6
7069 else
7070 if test -n "$DUMPBIN"; then
7071 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7072 else
7073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074 for as_dir in $PATH
7075 do
7076 IFS=$as_save_IFS
7077 test -z "$as_dir" && as_dir=.
7078 for ac_exec_ext in '' $ac_executable_extensions; do
7079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7080 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7082 break 2
7083 fi
7084 done
7085 done
7086 IFS=$as_save_IFS
7087
7088 fi
7089 fi
7090 DUMPBIN=$ac_cv_prog_DUMPBIN
7091 if test -n "$DUMPBIN"; then
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7093 $as_echo "$DUMPBIN" >&6; }
7094 else
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7096 $as_echo "no" >&6; }
7097 fi
7098
7099
7100 test -n "$DUMPBIN" && break
7101 done
7102 fi
7103 if test -z "$DUMPBIN"; then
7104 ac_ct_DUMPBIN=$DUMPBIN
7105 for ac_prog in dumpbin "link -dump"
7106 do
7107 # Extract the first word of "$ac_prog", so it can be a program name with args.
7108 set dummy $ac_prog; ac_word=$2
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7110 $as_echo_n "checking for $ac_word... " >&6; }
7111 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7112 $as_echo_n "(cached) " >&6
7113 else
7114 if test -n "$ac_ct_DUMPBIN"; then
7115 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7116 else
7117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118 for as_dir in $PATH
7119 do
7120 IFS=$as_save_IFS
7121 test -z "$as_dir" && as_dir=.
7122 for ac_exec_ext in '' $ac_executable_extensions; do
7123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7124 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7126 break 2
7127 fi
7128 done
7129 done
7130 IFS=$as_save_IFS
7131
7132 fi
7133 fi
7134 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7135 if test -n "$ac_ct_DUMPBIN"; then
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7137 $as_echo "$ac_ct_DUMPBIN" >&6; }
7138 else
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7140 $as_echo "no" >&6; }
7141 fi
7142
7143
7144 test -n "$ac_ct_DUMPBIN" && break
7145 done
7146
7147 if test "x$ac_ct_DUMPBIN" = x; then
7148 DUMPBIN=":"
7149 else
7150 case $cross_compiling:$ac_tool_warned in
7151 yes:)
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7154 ac_tool_warned=yes ;;
7155 esac
7156 DUMPBIN=$ac_ct_DUMPBIN
7157 fi
7158 fi
7159
7160 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7161 *COFF*)
7162 DUMPBIN="$DUMPBIN -symbols"
7163 ;;
7164 *)
7165 DUMPBIN=:
7166 ;;
7167 esac
7168 fi
7169
7170 if test "$DUMPBIN" != ":"; then
7171 NM="$DUMPBIN"
7172 fi
7173 fi
7174 test -z "$NM" && NM=nm
7175
7176
7177
7178
7179
7180
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7182 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7183 if ${lt_cv_nm_interface+:} false; then :
7184 $as_echo_n "(cached) " >&6
7185 else
7186 lt_cv_nm_interface="BSD nm"
7187 echo "int some_variable = 0;" > conftest.$ac_ext
7188 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7189 (eval "$ac_compile" 2>conftest.err)
7190 cat conftest.err >&5
7191 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7192 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7193 cat conftest.err >&5
7194 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7195 cat conftest.out >&5
7196 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7197 lt_cv_nm_interface="MS dumpbin"
7198 fi
7199 rm -f conftest*
7200 fi
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7202 $as_echo "$lt_cv_nm_interface" >&6; }
7203
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7205 $as_echo_n "checking whether ln -s works... " >&6; }
7206 LN_S=$as_ln_s
7207 if test "$LN_S" = "ln -s"; then
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7209 $as_echo "yes" >&6; }
7210 else
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7212 $as_echo "no, using $LN_S" >&6; }
7213 fi
7214
7215 # find the maximum length of command line arguments
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7217 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7218 if ${lt_cv_sys_max_cmd_len+:} false; then :
7219 $as_echo_n "(cached) " >&6
7220 else
7221 i=0
7222 teststring="ABCD"
7223
7224 case $build_os in
7225 msdosdjgpp*)
7226 # On DJGPP, this test can blow up pretty badly due to problems in libc
7227 # (any single argument exceeding 2000 bytes causes a buffer overrun
7228 # during glob expansion). Even if it were fixed, the result of this
7229 # check would be larger than it should be.
7230 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7231 ;;
7232
7233 gnu*)
7234 # Under GNU Hurd, this test is not required because there is
7235 # no limit to the length of command line arguments.
7236 # Libtool will interpret -1 as no limit whatsoever
7237 lt_cv_sys_max_cmd_len=-1;
7238 ;;
7239
7240 cygwin* | mingw* | cegcc*)
7241 # On Win9x/ME, this test blows up -- it succeeds, but takes
7242 # about 5 minutes as the teststring grows exponentially.
7243 # Worse, since 9x/ME are not pre-emptively multitasking,
7244 # you end up with a "frozen" computer, even though with patience
7245 # the test eventually succeeds (with a max line length of 256k).
7246 # Instead, let's just punt: use the minimum linelength reported by
7247 # all of the supported platforms: 8192 (on NT/2K/XP).
7248 lt_cv_sys_max_cmd_len=8192;
7249 ;;
7250
7251 mint*)
7252 # On MiNT this can take a long time and run out of memory.
7253 lt_cv_sys_max_cmd_len=8192;
7254 ;;
7255
7256 amigaos*)
7257 # On AmigaOS with pdksh, this test takes hours, literally.
7258 # So we just punt and use a minimum line length of 8192.
7259 lt_cv_sys_max_cmd_len=8192;
7260 ;;
7261
7262 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7263 # This has been around since 386BSD, at least. Likely further.
7264 if test -x /sbin/sysctl; then
7265 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7266 elif test -x /usr/sbin/sysctl; then
7267 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7268 else
7269 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7270 fi
7271 # And add a safety zone
7272 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7273 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7274 ;;
7275
7276 interix*)
7277 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7278 lt_cv_sys_max_cmd_len=196608
7279 ;;
7280
7281 osf*)
7282 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7283 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7284 # nice to cause kernel panics so lets avoid the loop below.
7285 # First set a reasonable default.
7286 lt_cv_sys_max_cmd_len=16384
7287 #
7288 if test -x /sbin/sysconfig; then
7289 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7290 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7291 esac
7292 fi
7293 ;;
7294 sco3.2v5*)
7295 lt_cv_sys_max_cmd_len=102400
7296 ;;
7297 sysv5* | sco5v6* | sysv4.2uw2*)
7298 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7299 if test -n "$kargmax"; then
7300 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7301 else
7302 lt_cv_sys_max_cmd_len=32768
7303 fi
7304 ;;
7305 *)
7306 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7307 if test -n "$lt_cv_sys_max_cmd_len"; then
7308 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7309 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7310 else
7311 # Make teststring a little bigger before we do anything with it.
7312 # a 1K string should be a reasonable start.
7313 for i in 1 2 3 4 5 6 7 8 ; do
7314 teststring=$teststring$teststring
7315 done
7316 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7317 # If test is not a shell built-in, we'll probably end up computing a
7318 # maximum length that is only half of the actual maximum length, but
7319 # we can't tell.
7320 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7321 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7322 test $i != 17 # 1/2 MB should be enough
7323 do
7324 i=`expr $i + 1`
7325 teststring=$teststring$teststring
7326 done
7327 # Only check the string length outside the loop.
7328 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7329 teststring=
7330 # Add a significant safety factor because C++ compilers can tack on
7331 # massive amounts of additional arguments before passing them to the
7332 # linker. It appears as though 1/2 is a usable value.
7333 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7334 fi
7335 ;;
7336 esac
7337
7338 fi
7339
7340 if test -n $lt_cv_sys_max_cmd_len ; then
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7342 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7343 else
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7345 $as_echo "none" >&6; }
7346 fi
7347 max_cmd_len=$lt_cv_sys_max_cmd_len
7348
7349
7350
7351
7352
7353
7354 : ${CP="cp -f"}
7355 : ${MV="mv -f"}
7356 : ${RM="rm -f"}
7357
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7359 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7360 # Try some XSI features
7361 xsi_shell=no
7362 ( _lt_dummy="a/b/c"
7363 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7364 = c,a/b,, \
7365 && eval 'test $(( 1 + 1 )) -eq 2 \
7366 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7367 && xsi_shell=yes
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7369 $as_echo "$xsi_shell" >&6; }
7370
7371
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7373 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7374 lt_shell_append=no
7375 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7376 >/dev/null 2>&1 \
7377 && lt_shell_append=yes
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7379 $as_echo "$lt_shell_append" >&6; }
7380
7381
7382 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7383 lt_unset=unset
7384 else
7385 lt_unset=false
7386 fi
7387
7388
7389
7390
7391
7392 # test EBCDIC or ASCII
7393 case `echo X|tr X '\101'` in
7394 A) # ASCII based system
7395 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7396 lt_SP2NL='tr \040 \012'
7397 lt_NL2SP='tr \015\012 \040\040'
7398 ;;
7399 *) # EBCDIC based system
7400 lt_SP2NL='tr \100 \n'
7401 lt_NL2SP='tr \r\n \100\100'
7402 ;;
7403 esac
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7414 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7415 if ${lt_cv_ld_reload_flag+:} false; then :
7416 $as_echo_n "(cached) " >&6
7417 else
7418 lt_cv_ld_reload_flag='-r'
7419 fi
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7421 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7422 reload_flag=$lt_cv_ld_reload_flag
7423 case $reload_flag in
7424 "" | " "*) ;;
7425 *) reload_flag=" $reload_flag" ;;
7426 esac
7427 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7428 case $host_os in
7429 darwin*)
7430 if test "$GCC" = yes; then
7431 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7432 else
7433 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7434 fi
7435 ;;
7436 esac
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446 if test -n "$ac_tool_prefix"; then
7447 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7448 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7450 $as_echo_n "checking for $ac_word... " >&6; }
7451 if ${ac_cv_prog_OBJDUMP+:} false; then :
7452 $as_echo_n "(cached) " >&6
7453 else
7454 if test -n "$OBJDUMP"; then
7455 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7456 else
7457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7458 for as_dir in $PATH
7459 do
7460 IFS=$as_save_IFS
7461 test -z "$as_dir" && as_dir=.
7462 for ac_exec_ext in '' $ac_executable_extensions; do
7463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7464 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7466 break 2
7467 fi
7468 done
7469 done
7470 IFS=$as_save_IFS
7471
7472 fi
7473 fi
7474 OBJDUMP=$ac_cv_prog_OBJDUMP
7475 if test -n "$OBJDUMP"; then
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7477 $as_echo "$OBJDUMP" >&6; }
7478 else
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7480 $as_echo "no" >&6; }
7481 fi
7482
7483
7484 fi
7485 if test -z "$ac_cv_prog_OBJDUMP"; then
7486 ac_ct_OBJDUMP=$OBJDUMP
7487 # Extract the first word of "objdump", so it can be a program name with args.
7488 set dummy objdump; ac_word=$2
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7490 $as_echo_n "checking for $ac_word... " >&6; }
7491 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7492 $as_echo_n "(cached) " >&6
7493 else
7494 if test -n "$ac_ct_OBJDUMP"; then
7495 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7496 else
7497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7498 for as_dir in $PATH
7499 do
7500 IFS=$as_save_IFS
7501 test -z "$as_dir" && as_dir=.
7502 for ac_exec_ext in '' $ac_executable_extensions; do
7503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7504 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7506 break 2
7507 fi
7508 done
7509 done
7510 IFS=$as_save_IFS
7511
7512 fi
7513 fi
7514 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7515 if test -n "$ac_ct_OBJDUMP"; then
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7517 $as_echo "$ac_ct_OBJDUMP" >&6; }
7518 else
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7520 $as_echo "no" >&6; }
7521 fi
7522
7523 if test "x$ac_ct_OBJDUMP" = x; then
7524 OBJDUMP="false"
7525 else
7526 case $cross_compiling:$ac_tool_warned in
7527 yes:)
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7529 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7530 ac_tool_warned=yes ;;
7531 esac
7532 OBJDUMP=$ac_ct_OBJDUMP
7533 fi
7534 else
7535 OBJDUMP="$ac_cv_prog_OBJDUMP"
7536 fi
7537
7538 test -z "$OBJDUMP" && OBJDUMP=objdump
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7549 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7550 if ${lt_cv_deplibs_check_method+:} false; then :
7551 $as_echo_n "(cached) " >&6
7552 else
7553 lt_cv_file_magic_cmd='$MAGIC_CMD'
7554 lt_cv_file_magic_test_file=
7555 lt_cv_deplibs_check_method='unknown'
7556 # Need to set the preceding variable on all platforms that support
7557 # interlibrary dependencies.
7558 # 'none' -- dependencies not supported.
7559 # `unknown' -- same as none, but documents that we really don't know.
7560 # 'pass_all' -- all dependencies passed with no checks.
7561 # 'test_compile' -- check by making test program.
7562 # 'file_magic [[regex]]' -- check by looking for files in library path
7563 # which responds to the $file_magic_cmd with a given extended regex.
7564 # If you have `file' or equivalent on your system and you're not sure
7565 # whether `pass_all' will *always* work, you probably want this one.
7566
7567 case $host_os in
7568 aix[4-9]*)
7569 lt_cv_deplibs_check_method=pass_all
7570 ;;
7571
7572 beos*)
7573 lt_cv_deplibs_check_method=pass_all
7574 ;;
7575
7576 bsdi[45]*)
7577 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7578 lt_cv_file_magic_cmd='/usr/bin/file -L'
7579 lt_cv_file_magic_test_file=/shlib/libc.so
7580 ;;
7581
7582 cygwin*)
7583 # func_win32_libid is a shell function defined in ltmain.sh
7584 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7585 lt_cv_file_magic_cmd='func_win32_libid'
7586 ;;
7587
7588 mingw* | pw32*)
7589 # Base MSYS/MinGW do not provide the 'file' command needed by
7590 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7591 # unless we find 'file', for example because we are cross-compiling.
7592 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7593 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7594 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7595 lt_cv_file_magic_cmd='func_win32_libid'
7596 else
7597 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7598 lt_cv_file_magic_cmd='$OBJDUMP -f'
7599 fi
7600 ;;
7601
7602 cegcc*)
7603 # use the weaker test based on 'objdump'. See mingw*.
7604 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7605 lt_cv_file_magic_cmd='$OBJDUMP -f'
7606 ;;
7607
7608 darwin* | rhapsody*)
7609 lt_cv_deplibs_check_method=pass_all
7610 ;;
7611
7612 freebsd* | dragonfly*)
7613 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7614 case $host_cpu in
7615 i*86 )
7616 # Not sure whether the presence of OpenBSD here was a mistake.
7617 # Let's accept both of them until this is cleared up.
7618 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7619 lt_cv_file_magic_cmd=/usr/bin/file
7620 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7621 ;;
7622 esac
7623 else
7624 lt_cv_deplibs_check_method=pass_all
7625 fi
7626 ;;
7627
7628 gnu*)
7629 lt_cv_deplibs_check_method=pass_all
7630 ;;
7631
7632 haiku*)
7633 lt_cv_deplibs_check_method=pass_all
7634 ;;
7635
7636 hpux10.20* | hpux11*)
7637 lt_cv_file_magic_cmd=/usr/bin/file
7638 case $host_cpu in
7639 ia64*)
7640 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7641 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7642 ;;
7643 hppa*64*)
7644 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]'
7645 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7646 ;;
7647 *)
7648 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7649 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7650 ;;
7651 esac
7652 ;;
7653
7654 interix[3-9]*)
7655 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7656 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7657 ;;
7658
7659 irix5* | irix6* | nonstopux*)
7660 case $LD in
7661 *-32|*"-32 ") libmagic=32-bit;;
7662 *-n32|*"-n32 ") libmagic=N32;;
7663 *-64|*"-64 ") libmagic=64-bit;;
7664 *) libmagic=never-match;;
7665 esac
7666 lt_cv_deplibs_check_method=pass_all
7667 ;;
7668
7669 # This must be Linux ELF.
7670 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
7671 lt_cv_deplibs_check_method=pass_all
7672 ;;
7673
7674 netbsd*)
7675 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7676 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7677 else
7678 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7679 fi
7680 ;;
7681
7682 newos6*)
7683 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7684 lt_cv_file_magic_cmd=/usr/bin/file
7685 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7686 ;;
7687
7688 *nto* | *qnx*)
7689 lt_cv_deplibs_check_method=pass_all
7690 ;;
7691
7692 openbsd*)
7693 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7694 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7695 else
7696 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7697 fi
7698 ;;
7699
7700 osf3* | osf4* | osf5*)
7701 lt_cv_deplibs_check_method=pass_all
7702 ;;
7703
7704 rdos*)
7705 lt_cv_deplibs_check_method=pass_all
7706 ;;
7707
7708 solaris*)
7709 lt_cv_deplibs_check_method=pass_all
7710 ;;
7711
7712 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7713 lt_cv_deplibs_check_method=pass_all
7714 ;;
7715
7716 sysv4 | sysv4.3*)
7717 case $host_vendor in
7718 motorola)
7719 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]'
7720 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7721 ;;
7722 ncr)
7723 lt_cv_deplibs_check_method=pass_all
7724 ;;
7725 sequent)
7726 lt_cv_file_magic_cmd='/bin/file'
7727 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7728 ;;
7729 sni)
7730 lt_cv_file_magic_cmd='/bin/file'
7731 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7732 lt_cv_file_magic_test_file=/lib/libc.so
7733 ;;
7734 siemens)
7735 lt_cv_deplibs_check_method=pass_all
7736 ;;
7737 pc)
7738 lt_cv_deplibs_check_method=pass_all
7739 ;;
7740 esac
7741 ;;
7742
7743 tpf*)
7744 lt_cv_deplibs_check_method=pass_all
7745 ;;
7746 esac
7747
7748 fi
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7750 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7751 file_magic_cmd=$lt_cv_file_magic_cmd
7752 deplibs_check_method=$lt_cv_deplibs_check_method
7753 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766 if test -n "$ac_tool_prefix"; then
7767 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7768 set dummy ${ac_tool_prefix}ar; ac_word=$2
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7770 $as_echo_n "checking for $ac_word... " >&6; }
7771 if ${ac_cv_prog_AR+:} false; then :
7772 $as_echo_n "(cached) " >&6
7773 else
7774 if test -n "$AR"; then
7775 ac_cv_prog_AR="$AR" # Let the user override the test.
7776 else
7777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7778 for as_dir in $PATH
7779 do
7780 IFS=$as_save_IFS
7781 test -z "$as_dir" && as_dir=.
7782 for ac_exec_ext in '' $ac_executable_extensions; do
7783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7784 ac_cv_prog_AR="${ac_tool_prefix}ar"
7785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7786 break 2
7787 fi
7788 done
7789 done
7790 IFS=$as_save_IFS
7791
7792 fi
7793 fi
7794 AR=$ac_cv_prog_AR
7795 if test -n "$AR"; then
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7797 $as_echo "$AR" >&6; }
7798 else
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7800 $as_echo "no" >&6; }
7801 fi
7802
7803
7804 fi
7805 if test -z "$ac_cv_prog_AR"; then
7806 ac_ct_AR=$AR
7807 # Extract the first word of "ar", so it can be a program name with args.
7808 set dummy ar; ac_word=$2
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7810 $as_echo_n "checking for $ac_word... " >&6; }
7811 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7812 $as_echo_n "(cached) " >&6
7813 else
7814 if test -n "$ac_ct_AR"; then
7815 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7816 else
7817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7818 for as_dir in $PATH
7819 do
7820 IFS=$as_save_IFS
7821 test -z "$as_dir" && as_dir=.
7822 for ac_exec_ext in '' $ac_executable_extensions; do
7823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7824 ac_cv_prog_ac_ct_AR="ar"
7825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7826 break 2
7827 fi
7828 done
7829 done
7830 IFS=$as_save_IFS
7831
7832 fi
7833 fi
7834 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7835 if test -n "$ac_ct_AR"; then
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7837 $as_echo "$ac_ct_AR" >&6; }
7838 else
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7840 $as_echo "no" >&6; }
7841 fi
7842
7843 if test "x$ac_ct_AR" = x; then
7844 AR="false"
7845 else
7846 case $cross_compiling:$ac_tool_warned in
7847 yes:)
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7849 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7850 ac_tool_warned=yes ;;
7851 esac
7852 AR=$ac_ct_AR
7853 fi
7854 else
7855 AR="$ac_cv_prog_AR"
7856 fi
7857
7858 test -z "$AR" && AR=ar
7859 test -z "$AR_FLAGS" && AR_FLAGS=cru
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871 if test -n "$ac_tool_prefix"; then
7872 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7873 set dummy ${ac_tool_prefix}strip; ac_word=$2
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7875 $as_echo_n "checking for $ac_word... " >&6; }
7876 if ${ac_cv_prog_STRIP+:} false; then :
7877 $as_echo_n "(cached) " >&6
7878 else
7879 if test -n "$STRIP"; then
7880 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7881 else
7882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7883 for as_dir in $PATH
7884 do
7885 IFS=$as_save_IFS
7886 test -z "$as_dir" && as_dir=.
7887 for ac_exec_ext in '' $ac_executable_extensions; do
7888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7889 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7891 break 2
7892 fi
7893 done
7894 done
7895 IFS=$as_save_IFS
7896
7897 fi
7898 fi
7899 STRIP=$ac_cv_prog_STRIP
7900 if test -n "$STRIP"; then
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7902 $as_echo "$STRIP" >&6; }
7903 else
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7905 $as_echo "no" >&6; }
7906 fi
7907
7908
7909 fi
7910 if test -z "$ac_cv_prog_STRIP"; then
7911 ac_ct_STRIP=$STRIP
7912 # Extract the first word of "strip", so it can be a program name with args.
7913 set dummy strip; ac_word=$2
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7915 $as_echo_n "checking for $ac_word... " >&6; }
7916 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7917 $as_echo_n "(cached) " >&6
7918 else
7919 if test -n "$ac_ct_STRIP"; then
7920 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7921 else
7922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7923 for as_dir in $PATH
7924 do
7925 IFS=$as_save_IFS
7926 test -z "$as_dir" && as_dir=.
7927 for ac_exec_ext in '' $ac_executable_extensions; do
7928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7929 ac_cv_prog_ac_ct_STRIP="strip"
7930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7931 break 2
7932 fi
7933 done
7934 done
7935 IFS=$as_save_IFS
7936
7937 fi
7938 fi
7939 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7940 if test -n "$ac_ct_STRIP"; then
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7942 $as_echo "$ac_ct_STRIP" >&6; }
7943 else
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7945 $as_echo "no" >&6; }
7946 fi
7947
7948 if test "x$ac_ct_STRIP" = x; then
7949 STRIP=":"
7950 else
7951 case $cross_compiling:$ac_tool_warned in
7952 yes:)
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7954 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7955 ac_tool_warned=yes ;;
7956 esac
7957 STRIP=$ac_ct_STRIP
7958 fi
7959 else
7960 STRIP="$ac_cv_prog_STRIP"
7961 fi
7962
7963 test -z "$STRIP" && STRIP=:
7964
7965
7966
7967
7968
7969
7970 if test -n "$ac_tool_prefix"; then
7971 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7972 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7974 $as_echo_n "checking for $ac_word... " >&6; }
7975 if ${ac_cv_prog_RANLIB+:} false; then :
7976 $as_echo_n "(cached) " >&6
7977 else
7978 if test -n "$RANLIB"; then
7979 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7980 else
7981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7982 for as_dir in $PATH
7983 do
7984 IFS=$as_save_IFS
7985 test -z "$as_dir" && as_dir=.
7986 for ac_exec_ext in '' $ac_executable_extensions; do
7987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7988 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7990 break 2
7991 fi
7992 done
7993 done
7994 IFS=$as_save_IFS
7995
7996 fi
7997 fi
7998 RANLIB=$ac_cv_prog_RANLIB
7999 if test -n "$RANLIB"; then
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8001 $as_echo "$RANLIB" >&6; }
8002 else
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8004 $as_echo "no" >&6; }
8005 fi
8006
8007
8008 fi
8009 if test -z "$ac_cv_prog_RANLIB"; then
8010 ac_ct_RANLIB=$RANLIB
8011 # Extract the first word of "ranlib", so it can be a program name with args.
8012 set dummy ranlib; ac_word=$2
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8014 $as_echo_n "checking for $ac_word... " >&6; }
8015 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8016 $as_echo_n "(cached) " >&6
8017 else
8018 if test -n "$ac_ct_RANLIB"; then
8019 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8020 else
8021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8022 for as_dir in $PATH
8023 do
8024 IFS=$as_save_IFS
8025 test -z "$as_dir" && as_dir=.
8026 for ac_exec_ext in '' $ac_executable_extensions; do
8027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8028 ac_cv_prog_ac_ct_RANLIB="ranlib"
8029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8030 break 2
8031 fi
8032 done
8033 done
8034 IFS=$as_save_IFS
8035
8036 fi
8037 fi
8038 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8039 if test -n "$ac_ct_RANLIB"; then
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8041 $as_echo "$ac_ct_RANLIB" >&6; }
8042 else
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8044 $as_echo "no" >&6; }
8045 fi
8046
8047 if test "x$ac_ct_RANLIB" = x; then
8048 RANLIB=":"
8049 else
8050 case $cross_compiling:$ac_tool_warned in
8051 yes:)
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8053 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8054 ac_tool_warned=yes ;;
8055 esac
8056 RANLIB=$ac_ct_RANLIB
8057 fi
8058 else
8059 RANLIB="$ac_cv_prog_RANLIB"
8060 fi
8061
8062 test -z "$RANLIB" && RANLIB=:
8063
8064
8065
8066
8067
8068
8069 # Determine commands to create old-style static archives.
8070 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8071 old_postinstall_cmds='chmod 644 $oldlib'
8072 old_postuninstall_cmds=
8073
8074 if test -n "$RANLIB"; then
8075 case $host_os in
8076 openbsd*)
8077 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8078 ;;
8079 *)
8080 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8081 ;;
8082 esac
8083 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8084 fi
8085
8086 case $host_os in
8087 darwin*)
8088 lock_old_archive_extraction=yes ;;
8089 *)
8090 lock_old_archive_extraction=no ;;
8091 esac
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131 # If no C compiler was specified, use CC.
8132 LTCC=${LTCC-"$CC"}
8133
8134 # If no C compiler flags were specified, use CFLAGS.
8135 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8136
8137 # Allow CC to be a program name with arguments.
8138 compiler=$CC
8139
8140
8141 # Check for command to grab the raw symbol name followed by C symbol from nm.
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8143 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8144 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8145 $as_echo_n "(cached) " >&6
8146 else
8147
8148 # These are sane defaults that work on at least a few old systems.
8149 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8150
8151 # Character class describing NM global symbol codes.
8152 symcode='[BCDEGRST]'
8153
8154 # Regexp to match symbols that can be accessed directly from C.
8155 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8156
8157 # Define system-specific variables.
8158 case $host_os in
8159 aix*)
8160 symcode='[BCDT]'
8161 ;;
8162 cygwin* | mingw* | pw32* | cegcc*)
8163 symcode='[ABCDGISTW]'
8164 ;;
8165 hpux*)
8166 if test "$host_cpu" = ia64; then
8167 symcode='[ABCDEGRST]'
8168 fi
8169 ;;
8170 irix* | nonstopux*)
8171 symcode='[BCDEGRST]'
8172 ;;
8173 osf*)
8174 symcode='[BCDEGQRST]'
8175 ;;
8176 solaris*)
8177 symcode='[BDRT]'
8178 ;;
8179 sco3.2v5*)
8180 symcode='[DT]'
8181 ;;
8182 sysv4.2uw2*)
8183 symcode='[DT]'
8184 ;;
8185 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8186 symcode='[ABDT]'
8187 ;;
8188 sysv4)
8189 symcode='[DFNSTU]'
8190 ;;
8191 esac
8192
8193 # If we're using GNU nm, then use its standard symbol codes.
8194 case `$NM -V 2>&1` in
8195 *GNU* | *'with BFD'*)
8196 symcode='[ABCDGIRSTW]' ;;
8197 esac
8198
8199 # Transform an extracted symbol line into a proper C declaration.
8200 # Some systems (esp. on ia64) link data and code symbols differently,
8201 # so use this general approach.
8202 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8203
8204 # Transform an extracted symbol line into symbol name and symbol address
8205 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8206 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'"
8207
8208 # Handle CRLF in mingw tool chain
8209 opt_cr=
8210 case $build_os in
8211 mingw*)
8212 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8213 ;;
8214 esac
8215
8216 # Try without a prefix underscore, then with it.
8217 for ac_symprfx in "" "_"; do
8218
8219 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8220 symxfrm="\\1 $ac_symprfx\\2 \\2"
8221
8222 # Write the raw and C identifiers.
8223 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8224 # Fake it for dumpbin and say T for any non-static function
8225 # and D for any global variable.
8226 # Also find C++ and __fastcall symbols from MSVC++,
8227 # which start with @ or ?.
8228 lt_cv_sys_global_symbol_pipe="$AWK '"\
8229 " {last_section=section; section=\$ 3};"\
8230 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8231 " \$ 0!~/External *\|/{next};"\
8232 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8233 " {if(hide[section]) next};"\
8234 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8235 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8236 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8237 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8238 " ' prfx=^$ac_symprfx"
8239 else
8240 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8241 fi
8242
8243 # Check to see that the pipe works correctly.
8244 pipe_works=no
8245
8246 rm -f conftest*
8247 cat > conftest.$ac_ext <<_LT_EOF
8248 #ifdef __cplusplus
8249 extern "C" {
8250 #endif
8251 char nm_test_var;
8252 void nm_test_func(void);
8253 void nm_test_func(void){}
8254 #ifdef __cplusplus
8255 }
8256 #endif
8257 int main(){nm_test_var='a';nm_test_func();return(0);}
8258 _LT_EOF
8259
8260 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8261 (eval $ac_compile) 2>&5
8262 ac_status=$?
8263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8264 test $ac_status = 0; }; then
8265 # Now try to grab the symbols.
8266 nlist=conftest.nm
8267 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8268 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8269 ac_status=$?
8270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8271 test $ac_status = 0; } && test -s "$nlist"; then
8272 # Try sorting and uniquifying the output.
8273 if sort "$nlist" | uniq > "$nlist"T; then
8274 mv -f "$nlist"T "$nlist"
8275 else
8276 rm -f "$nlist"T
8277 fi
8278
8279 # Make sure that we snagged all the symbols we need.
8280 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8281 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8282 cat <<_LT_EOF > conftest.$ac_ext
8283 #ifdef __cplusplus
8284 extern "C" {
8285 #endif
8286
8287 _LT_EOF
8288 # Now generate the symbol file.
8289 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8290
8291 cat <<_LT_EOF >> conftest.$ac_ext
8292
8293 /* The mapping between symbol names and symbols. */
8294 const struct {
8295 const char *name;
8296 void *address;
8297 }
8298 lt__PROGRAM__LTX_preloaded_symbols[] =
8299 {
8300 { "@PROGRAM@", (void *) 0 },
8301 _LT_EOF
8302 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8303 cat <<\_LT_EOF >> conftest.$ac_ext
8304 {0, (void *) 0}
8305 };
8306
8307 /* This works around a problem in FreeBSD linker */
8308 #ifdef FREEBSD_WORKAROUND
8309 static const void *lt_preloaded_setup() {
8310 return lt__PROGRAM__LTX_preloaded_symbols;
8311 }
8312 #endif
8313
8314 #ifdef __cplusplus
8315 }
8316 #endif
8317 _LT_EOF
8318 # Now try linking the two files.
8319 mv conftest.$ac_objext conftstm.$ac_objext
8320 lt_save_LIBS="$LIBS"
8321 lt_save_CFLAGS="$CFLAGS"
8322 LIBS="conftstm.$ac_objext"
8323 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8324 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8325 (eval $ac_link) 2>&5
8326 ac_status=$?
8327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8328 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8329 pipe_works=yes
8330 fi
8331 LIBS="$lt_save_LIBS"
8332 CFLAGS="$lt_save_CFLAGS"
8333 else
8334 echo "cannot find nm_test_func in $nlist" >&5
8335 fi
8336 else
8337 echo "cannot find nm_test_var in $nlist" >&5
8338 fi
8339 else
8340 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8341 fi
8342 else
8343 echo "$progname: failed program was:" >&5
8344 cat conftest.$ac_ext >&5
8345 fi
8346 rm -rf conftest* conftst*
8347
8348 # Do not use the global_symbol_pipe unless it works.
8349 if test "$pipe_works" = yes; then
8350 break
8351 else
8352 lt_cv_sys_global_symbol_pipe=
8353 fi
8354 done
8355
8356 fi
8357
8358 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8359 lt_cv_sys_global_symbol_to_cdecl=
8360 fi
8361 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8363 $as_echo "failed" >&6; }
8364 else
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8366 $as_echo "ok" >&6; }
8367 fi
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390 # Check whether --enable-libtool-lock was given.
8391 if test "${enable_libtool_lock+set}" = set; then :
8392 enableval=$enable_libtool_lock;
8393 fi
8394
8395 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8396
8397 # Some flags need to be propagated to the compiler or linker for good
8398 # libtool support.
8399 case $host in
8400 ia64-*-hpux*)
8401 # Find out which ABI we are using.
8402 echo 'int i;' > conftest.$ac_ext
8403 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8404 (eval $ac_compile) 2>&5
8405 ac_status=$?
8406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8407 test $ac_status = 0; }; then
8408 case `/usr/bin/file conftest.$ac_objext` in
8409 *ELF-32*)
8410 HPUX_IA64_MODE="32"
8411 ;;
8412 *ELF-64*)
8413 HPUX_IA64_MODE="64"
8414 ;;
8415 esac
8416 fi
8417 rm -rf conftest*
8418 ;;
8419 *-*-irix6*)
8420 # Find out which ABI we are using.
8421 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8422 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8423 (eval $ac_compile) 2>&5
8424 ac_status=$?
8425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8426 test $ac_status = 0; }; then
8427 if test "$lt_cv_prog_gnu_ld" = yes; then
8428 case `/usr/bin/file conftest.$ac_objext` in
8429 *32-bit*)
8430 LD="${LD-ld} -melf32bsmip"
8431 ;;
8432 *N32*)
8433 LD="${LD-ld} -melf32bmipn32"
8434 ;;
8435 *64-bit*)
8436 LD="${LD-ld} -melf64bmip"
8437 ;;
8438 esac
8439 else
8440 case `/usr/bin/file conftest.$ac_objext` in
8441 *32-bit*)
8442 LD="${LD-ld} -32"
8443 ;;
8444 *N32*)
8445 LD="${LD-ld} -n32"
8446 ;;
8447 *64-bit*)
8448 LD="${LD-ld} -64"
8449 ;;
8450 esac
8451 fi
8452 fi
8453 rm -rf conftest*
8454 ;;
8455
8456 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8457 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8458 # Find out which ABI we are using.
8459 echo 'int i;' > conftest.$ac_ext
8460 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8461 (eval $ac_compile) 2>&5
8462 ac_status=$?
8463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8464 test $ac_status = 0; }; then
8465 case `/usr/bin/file conftest.o` in
8466 *32-bit*)
8467 case $host in
8468 x86_64-*kfreebsd*-gnu)
8469 LD="${LD-ld} -m elf_i386_fbsd"
8470 ;;
8471 x86_64-*linux*)
8472 case `/usr/bin/file conftest.o` in
8473 *x86-64*)
8474 LD="${LD-ld} -m elf32_x86_64"
8475 ;;
8476 *)
8477 LD="${LD-ld} -m elf_i386"
8478 ;;
8479 esac
8480 ;;
8481 powerpc64le-*linux*)
8482 LD="${LD-ld} -m elf32lppclinux"
8483 ;;
8484 powerpc64-*linux*)
8485 LD="${LD-ld} -m elf32ppclinux"
8486 ;;
8487 s390x-*linux*)
8488 LD="${LD-ld} -m elf_s390"
8489 ;;
8490 sparc64-*linux*)
8491 LD="${LD-ld} -m elf32_sparc"
8492 ;;
8493 esac
8494 ;;
8495 *64-bit*)
8496 case $host in
8497 x86_64-*kfreebsd*-gnu)
8498 LD="${LD-ld} -m elf_x86_64_fbsd"
8499 ;;
8500 x86_64-*linux*)
8501 LD="${LD-ld} -m elf_x86_64"
8502 ;;
8503 powerpcle-*linux*)
8504 LD="${LD-ld} -m elf64lppc"
8505 ;;
8506 powerpc-*linux*)
8507 LD="${LD-ld} -m elf64ppc"
8508 ;;
8509 s390*-*linux*|s390*-*tpf*)
8510 LD="${LD-ld} -m elf64_s390"
8511 ;;
8512 sparc*-*linux*)
8513 LD="${LD-ld} -m elf64_sparc"
8514 ;;
8515 esac
8516 ;;
8517 esac
8518 fi
8519 rm -rf conftest*
8520 ;;
8521
8522 *-*-sco3.2v5*)
8523 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8524 SAVE_CFLAGS="$CFLAGS"
8525 CFLAGS="$CFLAGS -belf"
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8527 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8528 if ${lt_cv_cc_needs_belf+:} false; then :
8529 $as_echo_n "(cached) " >&6
8530 else
8531 ac_ext=c
8532 ac_cpp='$CPP $CPPFLAGS'
8533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8536
8537 if test x$gcc_no_link = xyes; then
8538 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8539 fi
8540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8541 /* end confdefs.h. */
8542
8543 int
8544 main ()
8545 {
8546
8547 ;
8548 return 0;
8549 }
8550 _ACEOF
8551 if ac_fn_c_try_link "$LINENO"; then :
8552 lt_cv_cc_needs_belf=yes
8553 else
8554 lt_cv_cc_needs_belf=no
8555 fi
8556 rm -f core conftest.err conftest.$ac_objext \
8557 conftest$ac_exeext conftest.$ac_ext
8558 ac_ext=c
8559 ac_cpp='$CPP $CPPFLAGS'
8560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8563
8564 fi
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8566 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8567 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8568 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8569 CFLAGS="$SAVE_CFLAGS"
8570 fi
8571 ;;
8572 sparc*-*solaris*)
8573 # Find out which ABI we are using.
8574 echo 'int i;' > conftest.$ac_ext
8575 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8576 (eval $ac_compile) 2>&5
8577 ac_status=$?
8578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8579 test $ac_status = 0; }; then
8580 case `/usr/bin/file conftest.o` in
8581 *64-bit*)
8582 case $lt_cv_prog_gnu_ld in
8583 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8584 *)
8585 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8586 LD="${LD-ld} -64"
8587 fi
8588 ;;
8589 esac
8590 ;;
8591 esac
8592 fi
8593 rm -rf conftest*
8594 ;;
8595 esac
8596
8597 need_locks="$enable_libtool_lock"
8598
8599
8600 case $host_os in
8601 rhapsody* | darwin*)
8602 if test -n "$ac_tool_prefix"; then
8603 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8604 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8606 $as_echo_n "checking for $ac_word... " >&6; }
8607 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8608 $as_echo_n "(cached) " >&6
8609 else
8610 if test -n "$DSYMUTIL"; then
8611 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8612 else
8613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8614 for as_dir in $PATH
8615 do
8616 IFS=$as_save_IFS
8617 test -z "$as_dir" && as_dir=.
8618 for ac_exec_ext in '' $ac_executable_extensions; do
8619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8620 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8622 break 2
8623 fi
8624 done
8625 done
8626 IFS=$as_save_IFS
8627
8628 fi
8629 fi
8630 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8631 if test -n "$DSYMUTIL"; then
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8633 $as_echo "$DSYMUTIL" >&6; }
8634 else
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8636 $as_echo "no" >&6; }
8637 fi
8638
8639
8640 fi
8641 if test -z "$ac_cv_prog_DSYMUTIL"; then
8642 ac_ct_DSYMUTIL=$DSYMUTIL
8643 # Extract the first word of "dsymutil", so it can be a program name with args.
8644 set dummy dsymutil; ac_word=$2
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8646 $as_echo_n "checking for $ac_word... " >&6; }
8647 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8648 $as_echo_n "(cached) " >&6
8649 else
8650 if test -n "$ac_ct_DSYMUTIL"; then
8651 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8652 else
8653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8654 for as_dir in $PATH
8655 do
8656 IFS=$as_save_IFS
8657 test -z "$as_dir" && as_dir=.
8658 for ac_exec_ext in '' $ac_executable_extensions; do
8659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8660 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8662 break 2
8663 fi
8664 done
8665 done
8666 IFS=$as_save_IFS
8667
8668 fi
8669 fi
8670 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8671 if test -n "$ac_ct_DSYMUTIL"; then
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8673 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8674 else
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8676 $as_echo "no" >&6; }
8677 fi
8678
8679 if test "x$ac_ct_DSYMUTIL" = x; then
8680 DSYMUTIL=":"
8681 else
8682 case $cross_compiling:$ac_tool_warned in
8683 yes:)
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8686 ac_tool_warned=yes ;;
8687 esac
8688 DSYMUTIL=$ac_ct_DSYMUTIL
8689 fi
8690 else
8691 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8692 fi
8693
8694 if test -n "$ac_tool_prefix"; then
8695 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8696 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8698 $as_echo_n "checking for $ac_word... " >&6; }
8699 if ${ac_cv_prog_NMEDIT+:} false; then :
8700 $as_echo_n "(cached) " >&6
8701 else
8702 if test -n "$NMEDIT"; then
8703 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8704 else
8705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8706 for as_dir in $PATH
8707 do
8708 IFS=$as_save_IFS
8709 test -z "$as_dir" && as_dir=.
8710 for ac_exec_ext in '' $ac_executable_extensions; do
8711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8712 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8714 break 2
8715 fi
8716 done
8717 done
8718 IFS=$as_save_IFS
8719
8720 fi
8721 fi
8722 NMEDIT=$ac_cv_prog_NMEDIT
8723 if test -n "$NMEDIT"; then
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8725 $as_echo "$NMEDIT" >&6; }
8726 else
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8728 $as_echo "no" >&6; }
8729 fi
8730
8731
8732 fi
8733 if test -z "$ac_cv_prog_NMEDIT"; then
8734 ac_ct_NMEDIT=$NMEDIT
8735 # Extract the first word of "nmedit", so it can be a program name with args.
8736 set dummy nmedit; ac_word=$2
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8738 $as_echo_n "checking for $ac_word... " >&6; }
8739 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8740 $as_echo_n "(cached) " >&6
8741 else
8742 if test -n "$ac_ct_NMEDIT"; then
8743 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8744 else
8745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8746 for as_dir in $PATH
8747 do
8748 IFS=$as_save_IFS
8749 test -z "$as_dir" && as_dir=.
8750 for ac_exec_ext in '' $ac_executable_extensions; do
8751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8752 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8754 break 2
8755 fi
8756 done
8757 done
8758 IFS=$as_save_IFS
8759
8760 fi
8761 fi
8762 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8763 if test -n "$ac_ct_NMEDIT"; then
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8765 $as_echo "$ac_ct_NMEDIT" >&6; }
8766 else
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8768 $as_echo "no" >&6; }
8769 fi
8770
8771 if test "x$ac_ct_NMEDIT" = x; then
8772 NMEDIT=":"
8773 else
8774 case $cross_compiling:$ac_tool_warned in
8775 yes:)
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8778 ac_tool_warned=yes ;;
8779 esac
8780 NMEDIT=$ac_ct_NMEDIT
8781 fi
8782 else
8783 NMEDIT="$ac_cv_prog_NMEDIT"
8784 fi
8785
8786 if test -n "$ac_tool_prefix"; then
8787 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8788 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8790 $as_echo_n "checking for $ac_word... " >&6; }
8791 if ${ac_cv_prog_LIPO+:} false; then :
8792 $as_echo_n "(cached) " >&6
8793 else
8794 if test -n "$LIPO"; then
8795 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8796 else
8797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8798 for as_dir in $PATH
8799 do
8800 IFS=$as_save_IFS
8801 test -z "$as_dir" && as_dir=.
8802 for ac_exec_ext in '' $ac_executable_extensions; do
8803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8804 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8806 break 2
8807 fi
8808 done
8809 done
8810 IFS=$as_save_IFS
8811
8812 fi
8813 fi
8814 LIPO=$ac_cv_prog_LIPO
8815 if test -n "$LIPO"; then
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8817 $as_echo "$LIPO" >&6; }
8818 else
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8820 $as_echo "no" >&6; }
8821 fi
8822
8823
8824 fi
8825 if test -z "$ac_cv_prog_LIPO"; then
8826 ac_ct_LIPO=$LIPO
8827 # Extract the first word of "lipo", so it can be a program name with args.
8828 set dummy lipo; ac_word=$2
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8830 $as_echo_n "checking for $ac_word... " >&6; }
8831 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8832 $as_echo_n "(cached) " >&6
8833 else
8834 if test -n "$ac_ct_LIPO"; then
8835 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8836 else
8837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8838 for as_dir in $PATH
8839 do
8840 IFS=$as_save_IFS
8841 test -z "$as_dir" && as_dir=.
8842 for ac_exec_ext in '' $ac_executable_extensions; do
8843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8844 ac_cv_prog_ac_ct_LIPO="lipo"
8845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8846 break 2
8847 fi
8848 done
8849 done
8850 IFS=$as_save_IFS
8851
8852 fi
8853 fi
8854 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8855 if test -n "$ac_ct_LIPO"; then
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8857 $as_echo "$ac_ct_LIPO" >&6; }
8858 else
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8860 $as_echo "no" >&6; }
8861 fi
8862
8863 if test "x$ac_ct_LIPO" = x; then
8864 LIPO=":"
8865 else
8866 case $cross_compiling:$ac_tool_warned in
8867 yes:)
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8869 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8870 ac_tool_warned=yes ;;
8871 esac
8872 LIPO=$ac_ct_LIPO
8873 fi
8874 else
8875 LIPO="$ac_cv_prog_LIPO"
8876 fi
8877
8878 if test -n "$ac_tool_prefix"; then
8879 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8880 set dummy ${ac_tool_prefix}otool; ac_word=$2
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8882 $as_echo_n "checking for $ac_word... " >&6; }
8883 if ${ac_cv_prog_OTOOL+:} false; then :
8884 $as_echo_n "(cached) " >&6
8885 else
8886 if test -n "$OTOOL"; then
8887 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8888 else
8889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8890 for as_dir in $PATH
8891 do
8892 IFS=$as_save_IFS
8893 test -z "$as_dir" && as_dir=.
8894 for ac_exec_ext in '' $ac_executable_extensions; do
8895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8896 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8898 break 2
8899 fi
8900 done
8901 done
8902 IFS=$as_save_IFS
8903
8904 fi
8905 fi
8906 OTOOL=$ac_cv_prog_OTOOL
8907 if test -n "$OTOOL"; then
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8909 $as_echo "$OTOOL" >&6; }
8910 else
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8912 $as_echo "no" >&6; }
8913 fi
8914
8915
8916 fi
8917 if test -z "$ac_cv_prog_OTOOL"; then
8918 ac_ct_OTOOL=$OTOOL
8919 # Extract the first word of "otool", so it can be a program name with args.
8920 set dummy otool; ac_word=$2
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8922 $as_echo_n "checking for $ac_word... " >&6; }
8923 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8924 $as_echo_n "(cached) " >&6
8925 else
8926 if test -n "$ac_ct_OTOOL"; then
8927 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8928 else
8929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8930 for as_dir in $PATH
8931 do
8932 IFS=$as_save_IFS
8933 test -z "$as_dir" && as_dir=.
8934 for ac_exec_ext in '' $ac_executable_extensions; do
8935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8936 ac_cv_prog_ac_ct_OTOOL="otool"
8937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8938 break 2
8939 fi
8940 done
8941 done
8942 IFS=$as_save_IFS
8943
8944 fi
8945 fi
8946 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8947 if test -n "$ac_ct_OTOOL"; then
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8949 $as_echo "$ac_ct_OTOOL" >&6; }
8950 else
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8952 $as_echo "no" >&6; }
8953 fi
8954
8955 if test "x$ac_ct_OTOOL" = x; then
8956 OTOOL=":"
8957 else
8958 case $cross_compiling:$ac_tool_warned in
8959 yes:)
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8962 ac_tool_warned=yes ;;
8963 esac
8964 OTOOL=$ac_ct_OTOOL
8965 fi
8966 else
8967 OTOOL="$ac_cv_prog_OTOOL"
8968 fi
8969
8970 if test -n "$ac_tool_prefix"; then
8971 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8972 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8974 $as_echo_n "checking for $ac_word... " >&6; }
8975 if ${ac_cv_prog_OTOOL64+:} false; then :
8976 $as_echo_n "(cached) " >&6
8977 else
8978 if test -n "$OTOOL64"; then
8979 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8980 else
8981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8982 for as_dir in $PATH
8983 do
8984 IFS=$as_save_IFS
8985 test -z "$as_dir" && as_dir=.
8986 for ac_exec_ext in '' $ac_executable_extensions; do
8987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8988 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8990 break 2
8991 fi
8992 done
8993 done
8994 IFS=$as_save_IFS
8995
8996 fi
8997 fi
8998 OTOOL64=$ac_cv_prog_OTOOL64
8999 if test -n "$OTOOL64"; then
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9001 $as_echo "$OTOOL64" >&6; }
9002 else
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9004 $as_echo "no" >&6; }
9005 fi
9006
9007
9008 fi
9009 if test -z "$ac_cv_prog_OTOOL64"; then
9010 ac_ct_OTOOL64=$OTOOL64
9011 # Extract the first word of "otool64", so it can be a program name with args.
9012 set dummy otool64; ac_word=$2
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9014 $as_echo_n "checking for $ac_word... " >&6; }
9015 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9016 $as_echo_n "(cached) " >&6
9017 else
9018 if test -n "$ac_ct_OTOOL64"; then
9019 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9020 else
9021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9022 for as_dir in $PATH
9023 do
9024 IFS=$as_save_IFS
9025 test -z "$as_dir" && as_dir=.
9026 for ac_exec_ext in '' $ac_executable_extensions; do
9027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9028 ac_cv_prog_ac_ct_OTOOL64="otool64"
9029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9030 break 2
9031 fi
9032 done
9033 done
9034 IFS=$as_save_IFS
9035
9036 fi
9037 fi
9038 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9039 if test -n "$ac_ct_OTOOL64"; then
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9041 $as_echo "$ac_ct_OTOOL64" >&6; }
9042 else
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9044 $as_echo "no" >&6; }
9045 fi
9046
9047 if test "x$ac_ct_OTOOL64" = x; then
9048 OTOOL64=":"
9049 else
9050 case $cross_compiling:$ac_tool_warned in
9051 yes:)
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9053 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9054 ac_tool_warned=yes ;;
9055 esac
9056 OTOOL64=$ac_ct_OTOOL64
9057 fi
9058 else
9059 OTOOL64="$ac_cv_prog_OTOOL64"
9060 fi
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9089 $as_echo_n "checking for -single_module linker flag... " >&6; }
9090 if ${lt_cv_apple_cc_single_mod+:} false; then :
9091 $as_echo_n "(cached) " >&6
9092 else
9093 lt_cv_apple_cc_single_mod=no
9094 if test -z "${LT_MULTI_MODULE}"; then
9095 # By default we will add the -single_module flag. You can override
9096 # by either setting the environment variable LT_MULTI_MODULE
9097 # non-empty at configure time, or by adding -multi_module to the
9098 # link flags.
9099 rm -rf libconftest.dylib*
9100 echo "int foo(void){return 1;}" > conftest.c
9101 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9102 -dynamiclib -Wl,-single_module conftest.c" >&5
9103 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9104 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9105 _lt_result=$?
9106 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9107 lt_cv_apple_cc_single_mod=yes
9108 else
9109 cat conftest.err >&5
9110 fi
9111 rm -rf libconftest.dylib*
9112 rm -f conftest.*
9113 fi
9114 fi
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9116 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9118 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9119 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9120 $as_echo_n "(cached) " >&6
9121 else
9122 lt_cv_ld_exported_symbols_list=no
9123 save_LDFLAGS=$LDFLAGS
9124 echo "_main" > conftest.sym
9125 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9126 if test x$gcc_no_link = xyes; then
9127 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9128 fi
9129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9130 /* end confdefs.h. */
9131
9132 int
9133 main ()
9134 {
9135
9136 ;
9137 return 0;
9138 }
9139 _ACEOF
9140 if ac_fn_c_try_link "$LINENO"; then :
9141 lt_cv_ld_exported_symbols_list=yes
9142 else
9143 lt_cv_ld_exported_symbols_list=no
9144 fi
9145 rm -f core conftest.err conftest.$ac_objext \
9146 conftest$ac_exeext conftest.$ac_ext
9147 LDFLAGS="$save_LDFLAGS"
9148
9149 fi
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9151 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9153 $as_echo_n "checking for -force_load linker flag... " >&6; }
9154 if ${lt_cv_ld_force_load+:} false; then :
9155 $as_echo_n "(cached) " >&6
9156 else
9157 lt_cv_ld_force_load=no
9158 cat > conftest.c << _LT_EOF
9159 int forced_loaded() { return 2;}
9160 _LT_EOF
9161 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9162 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9163 echo "$AR cru libconftest.a conftest.o" >&5
9164 $AR cru libconftest.a conftest.o 2>&5
9165 cat > conftest.c << _LT_EOF
9166 int main() { return 0;}
9167 _LT_EOF
9168 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9169 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9170 _lt_result=$?
9171 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9172 lt_cv_ld_force_load=yes
9173 else
9174 cat conftest.err >&5
9175 fi
9176 rm -f conftest.err libconftest.a conftest conftest.c
9177 rm -rf conftest.dSYM
9178
9179 fi
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9181 $as_echo "$lt_cv_ld_force_load" >&6; }
9182 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
9183 # build without first building modern cctools / linker.
9184 case $host_cpu-$host_os in
9185 *-rhapsody* | *-darwin1.[012])
9186 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9187 *-darwin1.*)
9188 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9189 *-darwin*)
9190 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
9191 # deployment target is forced to an earlier version.
9192 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
9193 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
9194 ;;
9195 10.[012][,.]*)
9196 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9197 ;;
9198 *)
9199 ;;
9200 esac
9201 ;;
9202 esac
9203 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9204 _lt_dar_single_mod='$single_module'
9205 fi
9206 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9207 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9208 else
9209 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9210 fi
9211 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9212 _lt_dsymutil='~$DSYMUTIL $lib || :'
9213 else
9214 _lt_dsymutil=
9215 fi
9216 ;;
9217 esac
9218
9219 for ac_header in dlfcn.h
9220 do :
9221 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9222 "
9223 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9224 cat >>confdefs.h <<_ACEOF
9225 #define HAVE_DLFCN_H 1
9226 _ACEOF
9227
9228 fi
9229
9230 done
9231
9232
9233
9234
9235
9236 # Set options
9237
9238
9239
9240
9241 enable_win32_dll=no
9242
9243
9244 # Check whether --enable-shared was given.
9245 if test "${enable_shared+set}" = set; then :
9246 enableval=$enable_shared; p=${PACKAGE-default}
9247 case $enableval in
9248 yes) enable_shared=yes ;;
9249 no) enable_shared=no ;;
9250 *)
9251 enable_shared=no
9252 # Look at the argument we got. We use all the common list separators.
9253 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9254 for pkg in $enableval; do
9255 IFS="$lt_save_ifs"
9256 if test "X$pkg" = "X$p"; then
9257 enable_shared=yes
9258 fi
9259 done
9260 IFS="$lt_save_ifs"
9261 ;;
9262 esac
9263 else
9264 enable_shared=yes
9265 fi
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275 # Check whether --enable-static was given.
9276 if test "${enable_static+set}" = set; then :
9277 enableval=$enable_static; p=${PACKAGE-default}
9278 case $enableval in
9279 yes) enable_static=yes ;;
9280 no) enable_static=no ;;
9281 *)
9282 enable_static=no
9283 # Look at the argument we got. We use all the common list separators.
9284 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9285 for pkg in $enableval; do
9286 IFS="$lt_save_ifs"
9287 if test "X$pkg" = "X$p"; then
9288 enable_static=yes
9289 fi
9290 done
9291 IFS="$lt_save_ifs"
9292 ;;
9293 esac
9294 else
9295 enable_static=yes
9296 fi
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307 # Check whether --with-pic was given.
9308 if test "${with_pic+set}" = set; then :
9309 withval=$with_pic; pic_mode="$withval"
9310 else
9311 pic_mode=default
9312 fi
9313
9314
9315 test -z "$pic_mode" && pic_mode=default
9316
9317
9318
9319
9320
9321
9322
9323 # Check whether --enable-fast-install was given.
9324 if test "${enable_fast_install+set}" = set; then :
9325 enableval=$enable_fast_install; p=${PACKAGE-default}
9326 case $enableval in
9327 yes) enable_fast_install=yes ;;
9328 no) enable_fast_install=no ;;
9329 *)
9330 enable_fast_install=no
9331 # Look at the argument we got. We use all the common list separators.
9332 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9333 for pkg in $enableval; do
9334 IFS="$lt_save_ifs"
9335 if test "X$pkg" = "X$p"; then
9336 enable_fast_install=yes
9337 fi
9338 done
9339 IFS="$lt_save_ifs"
9340 ;;
9341 esac
9342 else
9343 enable_fast_install=yes
9344 fi
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356 # This can be used to rebuild libtool when needed
9357 LIBTOOL_DEPS="$ltmain"
9358
9359 # Always use our own libtool.
9360 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387 test -z "$LN_S" && LN_S="ln -s"
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402 if test -n "${ZSH_VERSION+set}" ; then
9403 setopt NO_GLOB_SUBST
9404 fi
9405
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9407 $as_echo_n "checking for objdir... " >&6; }
9408 if ${lt_cv_objdir+:} false; then :
9409 $as_echo_n "(cached) " >&6
9410 else
9411 rm -f .libs 2>/dev/null
9412 mkdir .libs 2>/dev/null
9413 if test -d .libs; then
9414 lt_cv_objdir=.libs
9415 else
9416 # MS-DOS does not allow filenames that begin with a dot.
9417 lt_cv_objdir=_libs
9418 fi
9419 rmdir .libs 2>/dev/null
9420 fi
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9422 $as_echo "$lt_cv_objdir" >&6; }
9423 objdir=$lt_cv_objdir
9424
9425
9426
9427
9428
9429 cat >>confdefs.h <<_ACEOF
9430 #define LT_OBJDIR "$lt_cv_objdir/"
9431 _ACEOF
9432
9433
9434
9435
9436 case $host_os in
9437 aix3*)
9438 # AIX sometimes has problems with the GCC collect2 program. For some
9439 # reason, if we set the COLLECT_NAMES environment variable, the problems
9440 # vanish in a puff of smoke.
9441 if test "X${COLLECT_NAMES+set}" != Xset; then
9442 COLLECT_NAMES=
9443 export COLLECT_NAMES
9444 fi
9445 ;;
9446 esac
9447
9448 # Global variables:
9449 ofile=libtool
9450 can_build_shared=yes
9451
9452 # All known linkers require a `.a' archive for static linking (except MSVC,
9453 # which needs '.lib').
9454 libext=a
9455
9456 with_gnu_ld="$lt_cv_prog_gnu_ld"
9457
9458 old_CC="$CC"
9459 old_CFLAGS="$CFLAGS"
9460
9461 # Set sane defaults for various variables
9462 test -z "$CC" && CC=cc
9463 test -z "$LTCC" && LTCC=$CC
9464 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9465 test -z "$LD" && LD=ld
9466 test -z "$ac_objext" && ac_objext=o
9467
9468 for cc_temp in $compiler""; do
9469 case $cc_temp in
9470 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9471 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9472 \-*) ;;
9473 *) break;;
9474 esac
9475 done
9476 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9477
9478
9479 # Only perform the check for file, if the check method requires it
9480 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9481 case $deplibs_check_method in
9482 file_magic*)
9483 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9485 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9486 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9487 $as_echo_n "(cached) " >&6
9488 else
9489 case $MAGIC_CMD in
9490 [\\/*] | ?:[\\/]*)
9491 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9492 ;;
9493 *)
9494 lt_save_MAGIC_CMD="$MAGIC_CMD"
9495 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9496 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9497 for ac_dir in $ac_dummy; do
9498 IFS="$lt_save_ifs"
9499 test -z "$ac_dir" && ac_dir=.
9500 if test -f $ac_dir/${ac_tool_prefix}file; then
9501 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9502 if test -n "$file_magic_test_file"; then
9503 case $deplibs_check_method in
9504 "file_magic "*)
9505 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9506 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9507 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9508 $EGREP "$file_magic_regex" > /dev/null; then
9509 :
9510 else
9511 cat <<_LT_EOF 1>&2
9512
9513 *** Warning: the command libtool uses to detect shared libraries,
9514 *** $file_magic_cmd, produces output that libtool cannot recognize.
9515 *** The result is that libtool may fail to recognize shared libraries
9516 *** as such. This will affect the creation of libtool libraries that
9517 *** depend on shared libraries, but programs linked with such libtool
9518 *** libraries will work regardless of this problem. Nevertheless, you
9519 *** may want to report the problem to your system manager and/or to
9520 *** bug-libtool@gnu.org
9521
9522 _LT_EOF
9523 fi ;;
9524 esac
9525 fi
9526 break
9527 fi
9528 done
9529 IFS="$lt_save_ifs"
9530 MAGIC_CMD="$lt_save_MAGIC_CMD"
9531 ;;
9532 esac
9533 fi
9534
9535 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9536 if test -n "$MAGIC_CMD"; then
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9538 $as_echo "$MAGIC_CMD" >&6; }
9539 else
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9541 $as_echo "no" >&6; }
9542 fi
9543
9544
9545
9546
9547
9548 if test -z "$lt_cv_path_MAGIC_CMD"; then
9549 if test -n "$ac_tool_prefix"; then
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9551 $as_echo_n "checking for file... " >&6; }
9552 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9553 $as_echo_n "(cached) " >&6
9554 else
9555 case $MAGIC_CMD in
9556 [\\/*] | ?:[\\/]*)
9557 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9558 ;;
9559 *)
9560 lt_save_MAGIC_CMD="$MAGIC_CMD"
9561 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9562 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9563 for ac_dir in $ac_dummy; do
9564 IFS="$lt_save_ifs"
9565 test -z "$ac_dir" && ac_dir=.
9566 if test -f $ac_dir/file; then
9567 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9568 if test -n "$file_magic_test_file"; then
9569 case $deplibs_check_method in
9570 "file_magic "*)
9571 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9572 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9573 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9574 $EGREP "$file_magic_regex" > /dev/null; then
9575 :
9576 else
9577 cat <<_LT_EOF 1>&2
9578
9579 *** Warning: the command libtool uses to detect shared libraries,
9580 *** $file_magic_cmd, produces output that libtool cannot recognize.
9581 *** The result is that libtool may fail to recognize shared libraries
9582 *** as such. This will affect the creation of libtool libraries that
9583 *** depend on shared libraries, but programs linked with such libtool
9584 *** libraries will work regardless of this problem. Nevertheless, you
9585 *** may want to report the problem to your system manager and/or to
9586 *** bug-libtool@gnu.org
9587
9588 _LT_EOF
9589 fi ;;
9590 esac
9591 fi
9592 break
9593 fi
9594 done
9595 IFS="$lt_save_ifs"
9596 MAGIC_CMD="$lt_save_MAGIC_CMD"
9597 ;;
9598 esac
9599 fi
9600
9601 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9602 if test -n "$MAGIC_CMD"; then
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9604 $as_echo "$MAGIC_CMD" >&6; }
9605 else
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9607 $as_echo "no" >&6; }
9608 fi
9609
9610
9611 else
9612 MAGIC_CMD=:
9613 fi
9614 fi
9615
9616 fi
9617 ;;
9618 esac
9619
9620 # Use C for the default configuration in the libtool script
9621
9622 lt_save_CC="$CC"
9623 ac_ext=c
9624 ac_cpp='$CPP $CPPFLAGS'
9625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9628
9629
9630 # Source file extension for C test sources.
9631 ac_ext=c
9632
9633 # Object file extension for compiled C test sources.
9634 objext=o
9635 objext=$objext
9636
9637 # Code to be used in simple compile tests
9638 lt_simple_compile_test_code="int some_variable = 0;"
9639
9640 # Code to be used in simple link tests
9641 lt_simple_link_test_code='int main(){return(0);}'
9642
9643
9644
9645
9646
9647
9648
9649 # If no C compiler was specified, use CC.
9650 LTCC=${LTCC-"$CC"}
9651
9652 # If no C compiler flags were specified, use CFLAGS.
9653 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9654
9655 # Allow CC to be a program name with arguments.
9656 compiler=$CC
9657
9658 # Save the default compiler, since it gets overwritten when the other
9659 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9660 compiler_DEFAULT=$CC
9661
9662 # save warnings/boilerplate of simple test code
9663 ac_outfile=conftest.$ac_objext
9664 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9665 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9666 _lt_compiler_boilerplate=`cat conftest.err`
9667 $RM conftest*
9668
9669 ac_outfile=conftest.$ac_objext
9670 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9671 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9672 _lt_linker_boilerplate=`cat conftest.err`
9673 $RM -r conftest*
9674
9675
9676 ## CAVEAT EMPTOR:
9677 ## There is no encapsulation within the following macros, do not change
9678 ## the running order or otherwise move them around unless you know exactly
9679 ## what you are doing...
9680 if test -n "$compiler"; then
9681
9682 lt_prog_compiler_no_builtin_flag=
9683
9684 if test "$GCC" = yes; then
9685 case $cc_basename in
9686 nvcc*)
9687 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9688 *)
9689 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9690 esac
9691
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9693 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9694 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9695 $as_echo_n "(cached) " >&6
9696 else
9697 lt_cv_prog_compiler_rtti_exceptions=no
9698 ac_outfile=conftest.$ac_objext
9699 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9700 lt_compiler_flag="-fno-rtti -fno-exceptions"
9701 # Insert the option either (1) after the last *FLAGS variable, or
9702 # (2) before a word containing "conftest.", or (3) at the end.
9703 # Note that $ac_compile itself does not contain backslashes and begins
9704 # with a dollar sign (not a hyphen), so the echo should work correctly.
9705 # The option is referenced via a variable to avoid confusing sed.
9706 lt_compile=`echo "$ac_compile" | $SED \
9707 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9708 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9709 -e 's:$: $lt_compiler_flag:'`
9710 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9711 (eval "$lt_compile" 2>conftest.err)
9712 ac_status=$?
9713 cat conftest.err >&5
9714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715 if (exit $ac_status) && test -s "$ac_outfile"; then
9716 # The compiler can only warn and ignore the option if not recognized
9717 # So say no if there are warnings other than the usual output.
9718 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9719 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9720 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9721 lt_cv_prog_compiler_rtti_exceptions=yes
9722 fi
9723 fi
9724 $RM conftest*
9725
9726 fi
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9728 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9729
9730 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9731 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9732 else
9733 :
9734 fi
9735
9736 fi
9737
9738
9739
9740
9741
9742
9743 lt_prog_compiler_wl=
9744 lt_prog_compiler_pic=
9745 lt_prog_compiler_static=
9746
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9748 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9749
9750 if test "$GCC" = yes; then
9751 lt_prog_compiler_wl='-Wl,'
9752 lt_prog_compiler_static='-static'
9753
9754 case $host_os in
9755 aix*)
9756 # All AIX code is PIC.
9757 if test "$host_cpu" = ia64; then
9758 # AIX 5 now supports IA64 processor
9759 lt_prog_compiler_static='-Bstatic'
9760 fi
9761 lt_prog_compiler_pic='-fPIC'
9762 ;;
9763
9764 amigaos*)
9765 case $host_cpu in
9766 powerpc)
9767 # see comment about AmigaOS4 .so support
9768 lt_prog_compiler_pic='-fPIC'
9769 ;;
9770 m68k)
9771 # FIXME: we need at least 68020 code to build shared libraries, but
9772 # adding the `-m68020' flag to GCC prevents building anything better,
9773 # like `-m68040'.
9774 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9775 ;;
9776 esac
9777 ;;
9778
9779 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9780 # PIC is the default for these OSes.
9781 ;;
9782
9783 mingw* | cygwin* | pw32* | os2* | cegcc*)
9784 # This hack is so that the source file can tell whether it is being
9785 # built for inclusion in a dll (and should export symbols for example).
9786 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9787 # (--disable-auto-import) libraries
9788 lt_prog_compiler_pic='-DDLL_EXPORT'
9789 ;;
9790
9791 darwin* | rhapsody*)
9792 # PIC is the default on this platform
9793 # Common symbols not allowed in MH_DYLIB files
9794 lt_prog_compiler_pic='-fno-common'
9795 ;;
9796
9797 haiku*)
9798 # PIC is the default for Haiku.
9799 # The "-static" flag exists, but is broken.
9800 lt_prog_compiler_static=
9801 ;;
9802
9803 hpux*)
9804 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9805 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9806 # sets the default TLS model and affects inlining.
9807 case $host_cpu in
9808 hppa*64*)
9809 # +Z the default
9810 ;;
9811 *)
9812 lt_prog_compiler_pic='-fPIC'
9813 ;;
9814 esac
9815 ;;
9816
9817 interix[3-9]*)
9818 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9819 # Instead, we relocate shared libraries at runtime.
9820 ;;
9821
9822 msdosdjgpp*)
9823 # Just because we use GCC doesn't mean we suddenly get shared libraries
9824 # on systems that don't support them.
9825 lt_prog_compiler_can_build_shared=no
9826 enable_shared=no
9827 ;;
9828
9829 *nto* | *qnx*)
9830 # QNX uses GNU C++, but need to define -shared option too, otherwise
9831 # it will coredump.
9832 lt_prog_compiler_pic='-fPIC -shared'
9833 ;;
9834
9835 sysv4*MP*)
9836 if test -d /usr/nec; then
9837 lt_prog_compiler_pic=-Kconform_pic
9838 fi
9839 ;;
9840
9841 *)
9842 lt_prog_compiler_pic='-fPIC'
9843 ;;
9844 esac
9845
9846 case $cc_basename in
9847 nvcc*) # Cuda Compiler Driver 2.2
9848 lt_prog_compiler_wl='-Xlinker '
9849 lt_prog_compiler_pic='-Xcompiler -fPIC'
9850 ;;
9851 esac
9852 else
9853 # PORTME Check for flag to pass linker flags through the system compiler.
9854 case $host_os in
9855 aix*)
9856 lt_prog_compiler_wl='-Wl,'
9857 if test "$host_cpu" = ia64; then
9858 # AIX 5 now supports IA64 processor
9859 lt_prog_compiler_static='-Bstatic'
9860 else
9861 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9862 fi
9863 ;;
9864
9865 mingw* | cygwin* | pw32* | os2* | cegcc*)
9866 # This hack is so that the source file can tell whether it is being
9867 # built for inclusion in a dll (and should export symbols for example).
9868 lt_prog_compiler_pic='-DDLL_EXPORT'
9869 ;;
9870
9871 hpux9* | hpux10* | hpux11*)
9872 lt_prog_compiler_wl='-Wl,'
9873 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9874 # not for PA HP-UX.
9875 case $host_cpu in
9876 hppa*64*|ia64*)
9877 # +Z the default
9878 ;;
9879 *)
9880 lt_prog_compiler_pic='+Z'
9881 ;;
9882 esac
9883 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9884 lt_prog_compiler_static='${wl}-a ${wl}archive'
9885 ;;
9886
9887 irix5* | irix6* | nonstopux*)
9888 lt_prog_compiler_wl='-Wl,'
9889 # PIC (with -KPIC) is the default.
9890 lt_prog_compiler_static='-non_shared'
9891 ;;
9892
9893 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9894 case $cc_basename in
9895 # old Intel for x86_64 which still supported -KPIC.
9896 ecc*)
9897 lt_prog_compiler_wl='-Wl,'
9898 lt_prog_compiler_pic='-KPIC'
9899 lt_prog_compiler_static='-static'
9900 ;;
9901 # icc used to be incompatible with GCC.
9902 # ICC 10 doesn't accept -KPIC any more.
9903 icc* | ifort*)
9904 lt_prog_compiler_wl='-Wl,'
9905 lt_prog_compiler_pic='-fPIC'
9906 lt_prog_compiler_static='-static'
9907 ;;
9908 # Lahey Fortran 8.1.
9909 lf95*)
9910 lt_prog_compiler_wl='-Wl,'
9911 lt_prog_compiler_pic='--shared'
9912 lt_prog_compiler_static='--static'
9913 ;;
9914 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9915 # Portland Group compilers (*not* the Pentium gcc compiler,
9916 # which looks to be a dead project)
9917 lt_prog_compiler_wl='-Wl,'
9918 lt_prog_compiler_pic='-fpic'
9919 lt_prog_compiler_static='-Bstatic'
9920 ;;
9921 ccc*)
9922 lt_prog_compiler_wl='-Wl,'
9923 # All Alpha code is PIC.
9924 lt_prog_compiler_static='-non_shared'
9925 ;;
9926 xl* | bgxl* | bgf* | mpixl*)
9927 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9928 lt_prog_compiler_wl='-Wl,'
9929 lt_prog_compiler_pic='-qpic'
9930 lt_prog_compiler_static='-qstaticlink'
9931 ;;
9932 *)
9933 case `$CC -V 2>&1 | sed 5q` in
9934 *Sun\ F* | *Sun*Fortran*)
9935 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9936 lt_prog_compiler_pic='-KPIC'
9937 lt_prog_compiler_static='-Bstatic'
9938 lt_prog_compiler_wl=''
9939 ;;
9940 *Sun\ C*)
9941 # Sun C 5.9
9942 lt_prog_compiler_pic='-KPIC'
9943 lt_prog_compiler_static='-Bstatic'
9944 lt_prog_compiler_wl='-Wl,'
9945 ;;
9946 esac
9947 ;;
9948 esac
9949 ;;
9950
9951 newsos6)
9952 lt_prog_compiler_pic='-KPIC'
9953 lt_prog_compiler_static='-Bstatic'
9954 ;;
9955
9956 *nto* | *qnx*)
9957 # QNX uses GNU C++, but need to define -shared option too, otherwise
9958 # it will coredump.
9959 lt_prog_compiler_pic='-fPIC -shared'
9960 ;;
9961
9962 osf3* | osf4* | osf5*)
9963 lt_prog_compiler_wl='-Wl,'
9964 # All OSF/1 code is PIC.
9965 lt_prog_compiler_static='-non_shared'
9966 ;;
9967
9968 rdos*)
9969 lt_prog_compiler_static='-non_shared'
9970 ;;
9971
9972 solaris*)
9973 lt_prog_compiler_pic='-KPIC'
9974 lt_prog_compiler_static='-Bstatic'
9975 case $cc_basename in
9976 f77* | f90* | f95*)
9977 lt_prog_compiler_wl='-Qoption ld ';;
9978 *)
9979 lt_prog_compiler_wl='-Wl,';;
9980 esac
9981 ;;
9982
9983 sunos4*)
9984 lt_prog_compiler_wl='-Qoption ld '
9985 lt_prog_compiler_pic='-PIC'
9986 lt_prog_compiler_static='-Bstatic'
9987 ;;
9988
9989 sysv4 | sysv4.2uw2* | sysv4.3*)
9990 lt_prog_compiler_wl='-Wl,'
9991 lt_prog_compiler_pic='-KPIC'
9992 lt_prog_compiler_static='-Bstatic'
9993 ;;
9994
9995 sysv4*MP*)
9996 if test -d /usr/nec ;then
9997 lt_prog_compiler_pic='-Kconform_pic'
9998 lt_prog_compiler_static='-Bstatic'
9999 fi
10000 ;;
10001
10002 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10003 lt_prog_compiler_wl='-Wl,'
10004 lt_prog_compiler_pic='-KPIC'
10005 lt_prog_compiler_static='-Bstatic'
10006 ;;
10007
10008 unicos*)
10009 lt_prog_compiler_wl='-Wl,'
10010 lt_prog_compiler_can_build_shared=no
10011 ;;
10012
10013 uts4*)
10014 lt_prog_compiler_pic='-pic'
10015 lt_prog_compiler_static='-Bstatic'
10016 ;;
10017
10018 *)
10019 lt_prog_compiler_can_build_shared=no
10020 ;;
10021 esac
10022 fi
10023
10024 case $host_os in
10025 # For platforms which do not support PIC, -DPIC is meaningless:
10026 *djgpp*)
10027 lt_prog_compiler_pic=
10028 ;;
10029 *)
10030 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10031 ;;
10032 esac
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10034 $as_echo "$lt_prog_compiler_pic" >&6; }
10035
10036
10037
10038
10039
10040
10041 #
10042 # Check to make sure the PIC flag actually works.
10043 #
10044 if test -n "$lt_prog_compiler_pic"; then
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10046 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10047 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10048 $as_echo_n "(cached) " >&6
10049 else
10050 lt_cv_prog_compiler_pic_works=no
10051 ac_outfile=conftest.$ac_objext
10052 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10053 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10054 # Insert the option either (1) after the last *FLAGS variable, or
10055 # (2) before a word containing "conftest.", or (3) at the end.
10056 # Note that $ac_compile itself does not contain backslashes and begins
10057 # with a dollar sign (not a hyphen), so the echo should work correctly.
10058 # The option is referenced via a variable to avoid confusing sed.
10059 lt_compile=`echo "$ac_compile" | $SED \
10060 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10061 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10062 -e 's:$: $lt_compiler_flag:'`
10063 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10064 (eval "$lt_compile" 2>conftest.err)
10065 ac_status=$?
10066 cat conftest.err >&5
10067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068 if (exit $ac_status) && test -s "$ac_outfile"; then
10069 # The compiler can only warn and ignore the option if not recognized
10070 # So say no if there are warnings other than the usual output.
10071 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10072 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10073 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10074 lt_cv_prog_compiler_pic_works=yes
10075 fi
10076 fi
10077 $RM conftest*
10078
10079 fi
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10081 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10082
10083 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10084 case $lt_prog_compiler_pic in
10085 "" | " "*) ;;
10086 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10087 esac
10088 else
10089 lt_prog_compiler_pic=
10090 lt_prog_compiler_can_build_shared=no
10091 fi
10092
10093 fi
10094
10095
10096
10097
10098
10099
10100 #
10101 # Check to make sure the static flag actually works.
10102 #
10103 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10105 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10106 if ${lt_cv_prog_compiler_static_works+:} false; then :
10107 $as_echo_n "(cached) " >&6
10108 else
10109 lt_cv_prog_compiler_static_works=no
10110 save_LDFLAGS="$LDFLAGS"
10111 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10112 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10113 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10114 # The linker can only warn and ignore the option if not recognized
10115 # So say no if there are warnings
10116 if test -s conftest.err; then
10117 # Append any errors to the config.log.
10118 cat conftest.err 1>&5
10119 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10120 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10121 if diff conftest.exp conftest.er2 >/dev/null; then
10122 lt_cv_prog_compiler_static_works=yes
10123 fi
10124 else
10125 lt_cv_prog_compiler_static_works=yes
10126 fi
10127 fi
10128 $RM -r conftest*
10129 LDFLAGS="$save_LDFLAGS"
10130
10131 fi
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10133 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10134
10135 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10136 :
10137 else
10138 lt_prog_compiler_static=
10139 fi
10140
10141
10142
10143
10144
10145
10146
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10148 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10149 if ${lt_cv_prog_compiler_c_o+:} false; then :
10150 $as_echo_n "(cached) " >&6
10151 else
10152 lt_cv_prog_compiler_c_o=no
10153 $RM -r conftest 2>/dev/null
10154 mkdir conftest
10155 cd conftest
10156 mkdir out
10157 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10158
10159 lt_compiler_flag="-o out/conftest2.$ac_objext"
10160 # Insert the option either (1) after the last *FLAGS variable, or
10161 # (2) before a word containing "conftest.", or (3) at the end.
10162 # Note that $ac_compile itself does not contain backslashes and begins
10163 # with a dollar sign (not a hyphen), so the echo should work correctly.
10164 lt_compile=`echo "$ac_compile" | $SED \
10165 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10166 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10167 -e 's:$: $lt_compiler_flag:'`
10168 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10169 (eval "$lt_compile" 2>out/conftest.err)
10170 ac_status=$?
10171 cat out/conftest.err >&5
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10174 then
10175 # The compiler can only warn and ignore the option if not recognized
10176 # So say no if there are warnings
10177 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10178 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10179 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10180 lt_cv_prog_compiler_c_o=yes
10181 fi
10182 fi
10183 chmod u+w . 2>&5
10184 $RM conftest*
10185 # SGI C++ compiler will create directory out/ii_files/ for
10186 # template instantiation
10187 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10188 $RM out/* && rmdir out
10189 cd ..
10190 $RM -r conftest
10191 $RM conftest*
10192
10193 fi
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10195 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10196
10197
10198
10199
10200
10201
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10203 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10204 if ${lt_cv_prog_compiler_c_o+:} false; then :
10205 $as_echo_n "(cached) " >&6
10206 else
10207 lt_cv_prog_compiler_c_o=no
10208 $RM -r conftest 2>/dev/null
10209 mkdir conftest
10210 cd conftest
10211 mkdir out
10212 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10213
10214 lt_compiler_flag="-o out/conftest2.$ac_objext"
10215 # Insert the option either (1) after the last *FLAGS variable, or
10216 # (2) before a word containing "conftest.", or (3) at the end.
10217 # Note that $ac_compile itself does not contain backslashes and begins
10218 # with a dollar sign (not a hyphen), so the echo should work correctly.
10219 lt_compile=`echo "$ac_compile" | $SED \
10220 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10221 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10222 -e 's:$: $lt_compiler_flag:'`
10223 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10224 (eval "$lt_compile" 2>out/conftest.err)
10225 ac_status=$?
10226 cat out/conftest.err >&5
10227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10229 then
10230 # The compiler can only warn and ignore the option if not recognized
10231 # So say no if there are warnings
10232 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10233 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10234 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10235 lt_cv_prog_compiler_c_o=yes
10236 fi
10237 fi
10238 chmod u+w . 2>&5
10239 $RM conftest*
10240 # SGI C++ compiler will create directory out/ii_files/ for
10241 # template instantiation
10242 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10243 $RM out/* && rmdir out
10244 cd ..
10245 $RM -r conftest
10246 $RM conftest*
10247
10248 fi
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10250 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10251
10252
10253
10254
10255 hard_links="nottested"
10256 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10257 # do not overwrite the value of need_locks provided by the user
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10259 $as_echo_n "checking if we can lock with hard links... " >&6; }
10260 hard_links=yes
10261 $RM conftest*
10262 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10263 touch conftest.a
10264 ln conftest.a conftest.b 2>&5 || hard_links=no
10265 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10267 $as_echo "$hard_links" >&6; }
10268 if test "$hard_links" = no; then
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10270 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10271 need_locks=warn
10272 fi
10273 else
10274 need_locks=no
10275 fi
10276
10277
10278
10279
10280
10281
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10283 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10284
10285 runpath_var=
10286 allow_undefined_flag=
10287 always_export_symbols=no
10288 archive_cmds=
10289 archive_expsym_cmds=
10290 compiler_needs_object=no
10291 enable_shared_with_static_runtimes=no
10292 export_dynamic_flag_spec=
10293 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10294 hardcode_automatic=no
10295 hardcode_direct=no
10296 hardcode_direct_absolute=no
10297 hardcode_libdir_flag_spec=
10298 hardcode_libdir_flag_spec_ld=
10299 hardcode_libdir_separator=
10300 hardcode_minus_L=no
10301 hardcode_shlibpath_var=unsupported
10302 inherit_rpath=no
10303 link_all_deplibs=unknown
10304 module_cmds=
10305 module_expsym_cmds=
10306 old_archive_from_new_cmds=
10307 old_archive_from_expsyms_cmds=
10308 thread_safe_flag_spec=
10309 whole_archive_flag_spec=
10310 # include_expsyms should be a list of space-separated symbols to be *always*
10311 # included in the symbol list
10312 include_expsyms=
10313 # exclude_expsyms can be an extended regexp of symbols to exclude
10314 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10315 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10316 # as well as any symbol that contains `d'.
10317 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10318 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10319 # platforms (ab)use it in PIC code, but their linkers get confused if
10320 # the symbol is explicitly referenced. Since portable code cannot
10321 # rely on this symbol name, it's probably fine to never include it in
10322 # preloaded symbol tables.
10323 # Exclude shared library initialization/finalization symbols.
10324 extract_expsyms_cmds=
10325
10326 case $host_os in
10327 cygwin* | mingw* | pw32* | cegcc*)
10328 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10329 # When not using gcc, we currently assume that we are using
10330 # Microsoft Visual C++.
10331 if test "$GCC" != yes; then
10332 with_gnu_ld=no
10333 fi
10334 ;;
10335 interix*)
10336 # we just hope/assume this is gcc and not c89 (= MSVC++)
10337 with_gnu_ld=yes
10338 ;;
10339 openbsd*)
10340 with_gnu_ld=no
10341 ;;
10342 esac
10343
10344 ld_shlibs=yes
10345
10346 # On some targets, GNU ld is compatible enough with the native linker
10347 # that we're better off using the native interface for both.
10348 lt_use_gnu_ld_interface=no
10349 if test "$with_gnu_ld" = yes; then
10350 case $host_os in
10351 aix*)
10352 # The AIX port of GNU ld has always aspired to compatibility
10353 # with the native linker. However, as the warning in the GNU ld
10354 # block says, versions before 2.19.5* couldn't really create working
10355 # shared libraries, regardless of the interface used.
10356 case `$LD -v 2>&1` in
10357 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10358 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10359 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10360 *)
10361 lt_use_gnu_ld_interface=yes
10362 ;;
10363 esac
10364 ;;
10365 *)
10366 lt_use_gnu_ld_interface=yes
10367 ;;
10368 esac
10369 fi
10370
10371 if test "$lt_use_gnu_ld_interface" = yes; then
10372 # If archive_cmds runs LD, not CC, wlarc should be empty
10373 wlarc='${wl}'
10374
10375 # Set some defaults for GNU ld with shared library support. These
10376 # are reset later if shared libraries are not supported. Putting them
10377 # here allows them to be overridden if necessary.
10378 runpath_var=LD_RUN_PATH
10379 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10380 export_dynamic_flag_spec='${wl}--export-dynamic'
10381 # ancient GNU ld didn't support --whole-archive et. al.
10382 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10383 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10384 else
10385 whole_archive_flag_spec=
10386 fi
10387 supports_anon_versioning=no
10388 case `$LD -v 2>&1` in
10389 *GNU\ gold*) supports_anon_versioning=yes ;;
10390 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10391 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10392 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10393 *\ 2.11.*) ;; # other 2.11 versions
10394 *) supports_anon_versioning=yes ;;
10395 esac
10396
10397 # See if GNU ld supports shared libraries.
10398 case $host_os in
10399 aix[3-9]*)
10400 # On AIX/PPC, the GNU linker is very broken
10401 if test "$host_cpu" != ia64; then
10402 ld_shlibs=no
10403 cat <<_LT_EOF 1>&2
10404
10405 *** Warning: the GNU linker, at least up to release 2.19, is reported
10406 *** to be unable to reliably create shared libraries on AIX.
10407 *** Therefore, libtool is disabling shared libraries support. If you
10408 *** really care for shared libraries, you may want to install binutils
10409 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10410 *** You will then need to restart the configuration process.
10411
10412 _LT_EOF
10413 fi
10414 ;;
10415
10416 amigaos*)
10417 case $host_cpu in
10418 powerpc)
10419 # see comment about AmigaOS4 .so support
10420 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10421 archive_expsym_cmds=''
10422 ;;
10423 m68k)
10424 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)'
10425 hardcode_libdir_flag_spec='-L$libdir'
10426 hardcode_minus_L=yes
10427 ;;
10428 esac
10429 ;;
10430
10431 beos*)
10432 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10433 allow_undefined_flag=unsupported
10434 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10435 # support --undefined. This deserves some investigation. FIXME
10436 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10437 else
10438 ld_shlibs=no
10439 fi
10440 ;;
10441
10442 cygwin* | mingw* | pw32* | cegcc*)
10443 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10444 # as there is no search path for DLLs.
10445 hardcode_libdir_flag_spec='-L$libdir'
10446 export_dynamic_flag_spec='${wl}--export-all-symbols'
10447 allow_undefined_flag=unsupported
10448 always_export_symbols=no
10449 enable_shared_with_static_runtimes=yes
10450 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10451
10452 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10453 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10454 # If the export-symbols file already is a .def file (1st line
10455 # is EXPORTS), use it as is; otherwise, prepend...
10456 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10457 cp $export_symbols $output_objdir/$soname.def;
10458 else
10459 echo EXPORTS > $output_objdir/$soname.def;
10460 cat $export_symbols >> $output_objdir/$soname.def;
10461 fi~
10462 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10463 else
10464 ld_shlibs=no
10465 fi
10466 ;;
10467
10468 haiku*)
10469 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10470 link_all_deplibs=yes
10471 ;;
10472
10473 interix[3-9]*)
10474 hardcode_direct=no
10475 hardcode_shlibpath_var=no
10476 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10477 export_dynamic_flag_spec='${wl}-E'
10478 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10479 # Instead, shared libraries are loaded at an image base (0x10000000 by
10480 # default) and relocated if they conflict, which is a slow very memory
10481 # consuming and fragmenting process. To avoid this, we pick a random,
10482 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10483 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10484 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10485 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'
10486 ;;
10487
10488 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
10489 tmp_diet=no
10490 if test "$host_os" = linux-dietlibc; then
10491 case $cc_basename in
10492 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10493 esac
10494 fi
10495 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10496 && test "$tmp_diet" = no
10497 then
10498 tmp_addflag=' $pic_flag'
10499 tmp_sharedflag='-shared'
10500 case $cc_basename,$host_cpu in
10501 pgcc*) # Portland Group C compiler
10502 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'
10503 tmp_addflag=' $pic_flag'
10504 ;;
10505 pgf77* | pgf90* | pgf95* | pgfortran*)
10506 # Portland Group f77 and f90 compilers
10507 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'
10508 tmp_addflag=' $pic_flag -Mnomain' ;;
10509 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10510 tmp_addflag=' -i_dynamic' ;;
10511 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10512 tmp_addflag=' -i_dynamic -nofor_main' ;;
10513 ifc* | ifort*) # Intel Fortran compiler
10514 tmp_addflag=' -nofor_main' ;;
10515 lf95*) # Lahey Fortran 8.1
10516 whole_archive_flag_spec=
10517 tmp_sharedflag='--shared' ;;
10518 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10519 tmp_sharedflag='-qmkshrobj'
10520 tmp_addflag= ;;
10521 nvcc*) # Cuda Compiler Driver 2.2
10522 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'
10523 compiler_needs_object=yes
10524 ;;
10525 esac
10526 case `$CC -V 2>&1 | sed 5q` in
10527 *Sun\ C*) # Sun C 5.9
10528 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'
10529 compiler_needs_object=yes
10530 tmp_sharedflag='-G' ;;
10531 *Sun\ F*) # Sun Fortran 8.3
10532 tmp_sharedflag='-G' ;;
10533 esac
10534 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10535
10536 if test "x$supports_anon_versioning" = xyes; then
10537 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10538 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10539 echo "local: *; };" >> $output_objdir/$libname.ver~
10540 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10541 fi
10542
10543 case $cc_basename in
10544 xlf* | bgf* | bgxlf* | mpixlf*)
10545 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10546 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10547 hardcode_libdir_flag_spec=
10548 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10549 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10550 if test "x$supports_anon_versioning" = xyes; then
10551 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10552 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10553 echo "local: *; };" >> $output_objdir/$libname.ver~
10554 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10555 fi
10556 ;;
10557 esac
10558 else
10559 ld_shlibs=no
10560 fi
10561 ;;
10562
10563 netbsd*)
10564 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10565 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10566 wlarc=
10567 else
10568 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10569 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10570 fi
10571 ;;
10572
10573 solaris*)
10574 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10575 ld_shlibs=no
10576 cat <<_LT_EOF 1>&2
10577
10578 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10579 *** create shared libraries on Solaris systems. Therefore, libtool
10580 *** is disabling shared libraries support. We urge you to upgrade GNU
10581 *** binutils to release 2.9.1 or newer. Another option is to modify
10582 *** your PATH or compiler configuration so that the native linker is
10583 *** used, and then restart.
10584
10585 _LT_EOF
10586 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10587 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10588 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10589 else
10590 ld_shlibs=no
10591 fi
10592 ;;
10593
10594 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10595 case `$LD -v 2>&1` in
10596 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10597 ld_shlibs=no
10598 cat <<_LT_EOF 1>&2
10599
10600 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10601 *** reliably create shared libraries on SCO systems. Therefore, libtool
10602 *** is disabling shared libraries support. We urge you to upgrade GNU
10603 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10604 *** your PATH or compiler configuration so that the native linker is
10605 *** used, and then restart.
10606
10607 _LT_EOF
10608 ;;
10609 *)
10610 # For security reasons, it is highly recommended that you always
10611 # use absolute paths for naming shared libraries, and exclude the
10612 # DT_RUNPATH tag from executables and libraries. But doing so
10613 # requires that you compile everything twice, which is a pain.
10614 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10615 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10616 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10617 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10618 else
10619 ld_shlibs=no
10620 fi
10621 ;;
10622 esac
10623 ;;
10624
10625 sunos4*)
10626 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10627 wlarc=
10628 hardcode_direct=yes
10629 hardcode_shlibpath_var=no
10630 ;;
10631
10632 *)
10633 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10634 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10635 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10636 else
10637 ld_shlibs=no
10638 fi
10639 ;;
10640 esac
10641
10642 if test "$ld_shlibs" = no; then
10643 runpath_var=
10644 hardcode_libdir_flag_spec=
10645 export_dynamic_flag_spec=
10646 whole_archive_flag_spec=
10647 fi
10648 else
10649 # PORTME fill in a description of your system's linker (not GNU ld)
10650 case $host_os in
10651 aix3*)
10652 allow_undefined_flag=unsupported
10653 always_export_symbols=yes
10654 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'
10655 # Note: this linker hardcodes the directories in LIBPATH if there
10656 # are no directories specified by -L.
10657 hardcode_minus_L=yes
10658 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10659 # Neither direct hardcoding nor static linking is supported with a
10660 # broken collect2.
10661 hardcode_direct=unsupported
10662 fi
10663 ;;
10664
10665 aix[4-9]*)
10666 if test "$host_cpu" = ia64; then
10667 # On IA64, the linker does run time linking by default, so we don't
10668 # have to do anything special.
10669 aix_use_runtimelinking=no
10670 exp_sym_flag='-Bexport'
10671 no_entry_flag=""
10672 else
10673 # If we're using GNU nm, then we don't want the "-C" option.
10674 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10675 # Also, AIX nm treats weak defined symbols like other global
10676 # defined symbols, whereas GNU nm marks them as "W".
10677 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10678 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'
10679 else
10680 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'
10681 fi
10682 aix_use_runtimelinking=no
10683
10684 # Test if we are trying to use run time linking or normal
10685 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10686 # need to do runtime linking.
10687 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10688 for ld_flag in $LDFLAGS; do
10689 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10690 aix_use_runtimelinking=yes
10691 break
10692 fi
10693 done
10694 ;;
10695 esac
10696
10697 exp_sym_flag='-bexport'
10698 no_entry_flag='-bnoentry'
10699 fi
10700
10701 # When large executables or shared objects are built, AIX ld can
10702 # have problems creating the table of contents. If linking a library
10703 # or program results in "error TOC overflow" add -mminimal-toc to
10704 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10705 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10706
10707 archive_cmds=''
10708 hardcode_direct=yes
10709 hardcode_direct_absolute=yes
10710 hardcode_libdir_separator=':'
10711 link_all_deplibs=yes
10712 file_list_spec='${wl}-f,'
10713
10714 if test "$GCC" = yes; then
10715 case $host_os in aix4.[012]|aix4.[012].*)
10716 # We only want to do this on AIX 4.2 and lower, the check
10717 # below for broken collect2 doesn't work under 4.3+
10718 collect2name=`${CC} -print-prog-name=collect2`
10719 if test -f "$collect2name" &&
10720 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10721 then
10722 # We have reworked collect2
10723 :
10724 else
10725 # We have old collect2
10726 hardcode_direct=unsupported
10727 # It fails to find uninstalled libraries when the uninstalled
10728 # path is not listed in the libpath. Setting hardcode_minus_L
10729 # to unsupported forces relinking
10730 hardcode_minus_L=yes
10731 hardcode_libdir_flag_spec='-L$libdir'
10732 hardcode_libdir_separator=
10733 fi
10734 ;;
10735 esac
10736 shared_flag='-shared'
10737 if test "$aix_use_runtimelinking" = yes; then
10738 shared_flag="$shared_flag "'${wl}-G'
10739 fi
10740 else
10741 # not using gcc
10742 if test "$host_cpu" = ia64; then
10743 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10744 # chokes on -Wl,-G. The following line is correct:
10745 shared_flag='-G'
10746 else
10747 if test "$aix_use_runtimelinking" = yes; then
10748 shared_flag='${wl}-G'
10749 else
10750 shared_flag='${wl}-bM:SRE'
10751 fi
10752 fi
10753 fi
10754
10755 export_dynamic_flag_spec='${wl}-bexpall'
10756 # It seems that -bexpall does not export symbols beginning with
10757 # underscore (_), so it is better to generate a list of symbols to export.
10758 always_export_symbols=yes
10759 if test "$aix_use_runtimelinking" = yes; then
10760 # Warning - without using the other runtime loading flags (-brtl),
10761 # -berok will link without error, but may produce a broken library.
10762 allow_undefined_flag='-berok'
10763 # Determine the default libpath from the value encoded in an
10764 # empty executable.
10765 if test x$gcc_no_link = xyes; then
10766 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10767 fi
10768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10769 /* end confdefs.h. */
10770
10771 int
10772 main ()
10773 {
10774
10775 ;
10776 return 0;
10777 }
10778 _ACEOF
10779 if ac_fn_c_try_link "$LINENO"; then :
10780
10781 lt_aix_libpath_sed='
10782 /Import File Strings/,/^$/ {
10783 /^0/ {
10784 s/^0 *\(.*\)$/\1/
10785 p
10786 }
10787 }'
10788 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10789 # Check for a 64-bit object if we didn't find anything.
10790 if test -z "$aix_libpath"; then
10791 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10792 fi
10793 fi
10794 rm -f core conftest.err conftest.$ac_objext \
10795 conftest$ac_exeext conftest.$ac_ext
10796 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10797
10798 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10799 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"
10800 else
10801 if test "$host_cpu" = ia64; then
10802 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10803 allow_undefined_flag="-z nodefs"
10804 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"
10805 else
10806 # Determine the default libpath from the value encoded in an
10807 # empty executable.
10808 if test x$gcc_no_link = xyes; then
10809 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10810 fi
10811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10812 /* end confdefs.h. */
10813
10814 int
10815 main ()
10816 {
10817
10818 ;
10819 return 0;
10820 }
10821 _ACEOF
10822 if ac_fn_c_try_link "$LINENO"; then :
10823
10824 lt_aix_libpath_sed='
10825 /Import File Strings/,/^$/ {
10826 /^0/ {
10827 s/^0 *\(.*\)$/\1/
10828 p
10829 }
10830 }'
10831 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10832 # Check for a 64-bit object if we didn't find anything.
10833 if test -z "$aix_libpath"; then
10834 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10835 fi
10836 fi
10837 rm -f core conftest.err conftest.$ac_objext \
10838 conftest$ac_exeext conftest.$ac_ext
10839 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10840
10841 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10842 # Warning - without using the other run time loading flags,
10843 # -berok will link without error, but may produce a broken library.
10844 no_undefined_flag=' ${wl}-bernotok'
10845 allow_undefined_flag=' ${wl}-berok'
10846 if test "$with_gnu_ld" = yes; then
10847 # We only use this code for GNU lds that support --whole-archive.
10848 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10849 else
10850 # Exported symbols can be pulled into shared objects from archives
10851 whole_archive_flag_spec='$convenience'
10852 fi
10853 archive_cmds_need_lc=yes
10854 # This is similar to how AIX traditionally builds its shared libraries.
10855 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'
10856 fi
10857 fi
10858 ;;
10859
10860 amigaos*)
10861 case $host_cpu in
10862 powerpc)
10863 # see comment about AmigaOS4 .so support
10864 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10865 archive_expsym_cmds=''
10866 ;;
10867 m68k)
10868 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)'
10869 hardcode_libdir_flag_spec='-L$libdir'
10870 hardcode_minus_L=yes
10871 ;;
10872 esac
10873 ;;
10874
10875 bsdi[45]*)
10876 export_dynamic_flag_spec=-rdynamic
10877 ;;
10878
10879 cygwin* | mingw* | pw32* | cegcc*)
10880 # When not using gcc, we currently assume that we are using
10881 # Microsoft Visual C++.
10882 # hardcode_libdir_flag_spec is actually meaningless, as there is
10883 # no search path for DLLs.
10884 hardcode_libdir_flag_spec=' '
10885 allow_undefined_flag=unsupported
10886 # Tell ltmain to make .lib files, not .a files.
10887 libext=lib
10888 # Tell ltmain to make .dll files, not .so files.
10889 shrext_cmds=".dll"
10890 # FIXME: Setting linknames here is a bad hack.
10891 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10892 # The linker will automatically build a .lib file if we build a DLL.
10893 old_archive_from_new_cmds='true'
10894 # FIXME: Should let the user specify the lib program.
10895 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10896 fix_srcfile_path='`cygpath -w "$srcfile"`'
10897 enable_shared_with_static_runtimes=yes
10898 ;;
10899
10900 darwin* | rhapsody*)
10901
10902
10903 archive_cmds_need_lc=no
10904 hardcode_direct=no
10905 hardcode_automatic=yes
10906 hardcode_shlibpath_var=unsupported
10907 if test "$lt_cv_ld_force_load" = "yes"; then
10908 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\"`'
10909 else
10910 whole_archive_flag_spec=''
10911 fi
10912 link_all_deplibs=yes
10913 allow_undefined_flag="$_lt_dar_allow_undefined"
10914 case $cc_basename in
10915 ifort*) _lt_dar_can_shared=yes ;;
10916 *) _lt_dar_can_shared=$GCC ;;
10917 esac
10918 if test "$_lt_dar_can_shared" = "yes"; then
10919 output_verbose_link_cmd=func_echo_all
10920 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10921 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10922 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}"
10923 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}"
10924
10925 else
10926 ld_shlibs=no
10927 fi
10928
10929 ;;
10930
10931 dgux*)
10932 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10933 hardcode_libdir_flag_spec='-L$libdir'
10934 hardcode_shlibpath_var=no
10935 ;;
10936
10937 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10938 # support. Future versions do this automatically, but an explicit c++rt0.o
10939 # does not break anything, and helps significantly (at the cost of a little
10940 # extra space).
10941 freebsd2.2*)
10942 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10943 hardcode_libdir_flag_spec='-R$libdir'
10944 hardcode_direct=yes
10945 hardcode_shlibpath_var=no
10946 ;;
10947
10948 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10949 freebsd2.*)
10950 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10951 hardcode_direct=yes
10952 hardcode_minus_L=yes
10953 hardcode_shlibpath_var=no
10954 ;;
10955
10956 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10957 freebsd* | dragonfly*)
10958 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10959 hardcode_libdir_flag_spec='-R$libdir'
10960 hardcode_direct=yes
10961 hardcode_shlibpath_var=no
10962 ;;
10963
10964 hpux9*)
10965 if test "$GCC" = yes; then
10966 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'
10967 else
10968 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'
10969 fi
10970 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10971 hardcode_libdir_separator=:
10972 hardcode_direct=yes
10973
10974 # hardcode_minus_L: Not really in the search PATH,
10975 # but as the default location of the library.
10976 hardcode_minus_L=yes
10977 export_dynamic_flag_spec='${wl}-E'
10978 ;;
10979
10980 hpux10*)
10981 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10982 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10983 else
10984 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10985 fi
10986 if test "$with_gnu_ld" = no; then
10987 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10988 hardcode_libdir_flag_spec_ld='+b $libdir'
10989 hardcode_libdir_separator=:
10990 hardcode_direct=yes
10991 hardcode_direct_absolute=yes
10992 export_dynamic_flag_spec='${wl}-E'
10993 # hardcode_minus_L: Not really in the search PATH,
10994 # but as the default location of the library.
10995 hardcode_minus_L=yes
10996 fi
10997 ;;
10998
10999 hpux11*)
11000 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11001 case $host_cpu in
11002 hppa*64*)
11003 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11004 ;;
11005 ia64*)
11006 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11007 ;;
11008 *)
11009 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11010 ;;
11011 esac
11012 else
11013 case $host_cpu in
11014 hppa*64*)
11015 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11016 ;;
11017 ia64*)
11018 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11019 ;;
11020 *)
11021
11022 # Older versions of the 11.00 compiler do not understand -b yet
11023 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11025 $as_echo_n "checking if $CC understands -b... " >&6; }
11026 if ${lt_cv_prog_compiler__b+:} false; then :
11027 $as_echo_n "(cached) " >&6
11028 else
11029 lt_cv_prog_compiler__b=no
11030 save_LDFLAGS="$LDFLAGS"
11031 LDFLAGS="$LDFLAGS -b"
11032 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11033 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11034 # The linker can only warn and ignore the option if not recognized
11035 # So say no if there are warnings
11036 if test -s conftest.err; then
11037 # Append any errors to the config.log.
11038 cat conftest.err 1>&5
11039 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11040 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11041 if diff conftest.exp conftest.er2 >/dev/null; then
11042 lt_cv_prog_compiler__b=yes
11043 fi
11044 else
11045 lt_cv_prog_compiler__b=yes
11046 fi
11047 fi
11048 $RM -r conftest*
11049 LDFLAGS="$save_LDFLAGS"
11050
11051 fi
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11053 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11054
11055 if test x"$lt_cv_prog_compiler__b" = xyes; then
11056 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11057 else
11058 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11059 fi
11060
11061 ;;
11062 esac
11063 fi
11064 if test "$with_gnu_ld" = no; then
11065 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11066 hardcode_libdir_separator=:
11067
11068 case $host_cpu in
11069 hppa*64*|ia64*)
11070 hardcode_direct=no
11071 hardcode_shlibpath_var=no
11072 ;;
11073 *)
11074 hardcode_direct=yes
11075 hardcode_direct_absolute=yes
11076 export_dynamic_flag_spec='${wl}-E'
11077
11078 # hardcode_minus_L: Not really in the search PATH,
11079 # but as the default location of the library.
11080 hardcode_minus_L=yes
11081 ;;
11082 esac
11083 fi
11084 ;;
11085
11086 irix5* | irix6* | nonstopux*)
11087 if test "$GCC" = yes; then
11088 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'
11089 # Try to use the -exported_symbol ld option, if it does not
11090 # work, assume that -exports_file does not work either and
11091 # implicitly export all symbols.
11092 save_LDFLAGS="$LDFLAGS"
11093 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11094 if test x$gcc_no_link = xyes; then
11095 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11096 fi
11097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11098 /* end confdefs.h. */
11099 int foo(void) {}
11100 _ACEOF
11101 if ac_fn_c_try_link "$LINENO"; then :
11102 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'
11103
11104 fi
11105 rm -f core conftest.err conftest.$ac_objext \
11106 conftest$ac_exeext conftest.$ac_ext
11107 LDFLAGS="$save_LDFLAGS"
11108 else
11109 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'
11110 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'
11111 fi
11112 archive_cmds_need_lc='no'
11113 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11114 hardcode_libdir_separator=:
11115 inherit_rpath=yes
11116 link_all_deplibs=yes
11117 ;;
11118
11119 netbsd*)
11120 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11121 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11122 else
11123 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11124 fi
11125 hardcode_libdir_flag_spec='-R$libdir'
11126 hardcode_direct=yes
11127 hardcode_shlibpath_var=no
11128 ;;
11129
11130 newsos6)
11131 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11132 hardcode_direct=yes
11133 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11134 hardcode_libdir_separator=:
11135 hardcode_shlibpath_var=no
11136 ;;
11137
11138 *nto* | *qnx*)
11139 ;;
11140
11141 openbsd*)
11142 if test -f /usr/libexec/ld.so; then
11143 hardcode_direct=yes
11144 hardcode_shlibpath_var=no
11145 hardcode_direct_absolute=yes
11146 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11147 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11148 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11149 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11150 export_dynamic_flag_spec='${wl}-E'
11151 else
11152 case $host_os in
11153 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11154 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11155 hardcode_libdir_flag_spec='-R$libdir'
11156 ;;
11157 *)
11158 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11159 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11160 ;;
11161 esac
11162 fi
11163 else
11164 ld_shlibs=no
11165 fi
11166 ;;
11167
11168 os2*)
11169 hardcode_libdir_flag_spec='-L$libdir'
11170 hardcode_minus_L=yes
11171 allow_undefined_flag=unsupported
11172 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'
11173 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11174 ;;
11175
11176 osf3*)
11177 if test "$GCC" = yes; then
11178 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11179 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'
11180 else
11181 allow_undefined_flag=' -expect_unresolved \*'
11182 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'
11183 fi
11184 archive_cmds_need_lc='no'
11185 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11186 hardcode_libdir_separator=:
11187 ;;
11188
11189 osf4* | osf5*) # as osf3* with the addition of -msym flag
11190 if test "$GCC" = yes; then
11191 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11192 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'
11193 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11194 else
11195 allow_undefined_flag=' -expect_unresolved \*'
11196 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'
11197 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~
11198 $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'
11199
11200 # Both c and cxx compiler support -rpath directly
11201 hardcode_libdir_flag_spec='-rpath $libdir'
11202 fi
11203 archive_cmds_need_lc='no'
11204 hardcode_libdir_separator=:
11205 ;;
11206
11207 solaris*)
11208 no_undefined_flag=' -z defs'
11209 if test "$GCC" = yes; then
11210 wlarc='${wl}'
11211 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11212 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11213 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11214 else
11215 case `$CC -V 2>&1` in
11216 *"Compilers 5.0"*)
11217 wlarc=''
11218 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11219 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11220 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11221 ;;
11222 *)
11223 wlarc='${wl}'
11224 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11225 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11226 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11227 ;;
11228 esac
11229 fi
11230 hardcode_libdir_flag_spec='-R$libdir'
11231 hardcode_shlibpath_var=no
11232 case $host_os in
11233 solaris2.[0-5] | solaris2.[0-5].*) ;;
11234 *)
11235 # The compiler driver will combine and reorder linker options,
11236 # but understands `-z linker_flag'. GCC discards it without `$wl',
11237 # but is careful enough not to reorder.
11238 # Supported since Solaris 2.6 (maybe 2.5.1?)
11239 if test "$GCC" = yes; then
11240 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11241 else
11242 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11243 fi
11244 ;;
11245 esac
11246 link_all_deplibs=yes
11247 ;;
11248
11249 sunos4*)
11250 if test "x$host_vendor" = xsequent; then
11251 # Use $CC to link under sequent, because it throws in some extra .o
11252 # files that make .init and .fini sections work.
11253 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11254 else
11255 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11256 fi
11257 hardcode_libdir_flag_spec='-L$libdir'
11258 hardcode_direct=yes
11259 hardcode_minus_L=yes
11260 hardcode_shlibpath_var=no
11261 ;;
11262
11263 sysv4)
11264 case $host_vendor in
11265 sni)
11266 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11267 hardcode_direct=yes # is this really true???
11268 ;;
11269 siemens)
11270 ## LD is ld it makes a PLAMLIB
11271 ## CC just makes a GrossModule.
11272 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11273 reload_cmds='$CC -r -o $output$reload_objs'
11274 hardcode_direct=no
11275 ;;
11276 motorola)
11277 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11278 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11279 ;;
11280 esac
11281 runpath_var='LD_RUN_PATH'
11282 hardcode_shlibpath_var=no
11283 ;;
11284
11285 sysv4.3*)
11286 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11287 hardcode_shlibpath_var=no
11288 export_dynamic_flag_spec='-Bexport'
11289 ;;
11290
11291 sysv4*MP*)
11292 if test -d /usr/nec; then
11293 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11294 hardcode_shlibpath_var=no
11295 runpath_var=LD_RUN_PATH
11296 hardcode_runpath_var=yes
11297 ld_shlibs=yes
11298 fi
11299 ;;
11300
11301 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11302 no_undefined_flag='${wl}-z,text'
11303 archive_cmds_need_lc=no
11304 hardcode_shlibpath_var=no
11305 runpath_var='LD_RUN_PATH'
11306
11307 if test "$GCC" = yes; then
11308 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11309 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11310 else
11311 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11312 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11313 fi
11314 ;;
11315
11316 sysv5* | sco3.2v5* | sco5v6*)
11317 # Note: We can NOT use -z defs as we might desire, because we do not
11318 # link with -lc, and that would cause any symbols used from libc to
11319 # always be unresolved, which means just about no library would
11320 # ever link correctly. If we're not using GNU ld we use -z text
11321 # though, which does catch some bad symbols but isn't as heavy-handed
11322 # as -z defs.
11323 no_undefined_flag='${wl}-z,text'
11324 allow_undefined_flag='${wl}-z,nodefs'
11325 archive_cmds_need_lc=no
11326 hardcode_shlibpath_var=no
11327 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11328 hardcode_libdir_separator=':'
11329 link_all_deplibs=yes
11330 export_dynamic_flag_spec='${wl}-Bexport'
11331 runpath_var='LD_RUN_PATH'
11332
11333 if test "$GCC" = yes; then
11334 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11335 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11336 else
11337 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11338 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11339 fi
11340 ;;
11341
11342 uts4*)
11343 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11344 hardcode_libdir_flag_spec='-L$libdir'
11345 hardcode_shlibpath_var=no
11346 ;;
11347
11348 *)
11349 ld_shlibs=no
11350 ;;
11351 esac
11352
11353 if test x$host_vendor = xsni; then
11354 case $host in
11355 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11356 export_dynamic_flag_spec='${wl}-Blargedynsym'
11357 ;;
11358 esac
11359 fi
11360 fi
11361
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11363 $as_echo "$ld_shlibs" >&6; }
11364 test "$ld_shlibs" = no && can_build_shared=no
11365
11366 with_gnu_ld=$with_gnu_ld
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382 #
11383 # Do we need to explicitly link libc?
11384 #
11385 case "x$archive_cmds_need_lc" in
11386 x|xyes)
11387 # Assume -lc should be added
11388 archive_cmds_need_lc=yes
11389
11390 if test "$enable_shared" = yes && test "$GCC" = yes; then
11391 case $archive_cmds in
11392 *'~'*)
11393 # FIXME: we may have to deal with multi-command sequences.
11394 ;;
11395 '$CC '*)
11396 # Test whether the compiler implicitly links with -lc since on some
11397 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11398 # to ld, don't add -lc before -lgcc.
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11400 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11401 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11402 $as_echo_n "(cached) " >&6
11403 else
11404 $RM conftest*
11405 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11406
11407 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11408 (eval $ac_compile) 2>&5
11409 ac_status=$?
11410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11411 test $ac_status = 0; } 2>conftest.err; then
11412 soname=conftest
11413 lib=conftest
11414 libobjs=conftest.$ac_objext
11415 deplibs=
11416 wl=$lt_prog_compiler_wl
11417 pic_flag=$lt_prog_compiler_pic
11418 compiler_flags=-v
11419 linker_flags=-v
11420 verstring=
11421 output_objdir=.
11422 libname=conftest
11423 lt_save_allow_undefined_flag=$allow_undefined_flag
11424 allow_undefined_flag=
11425 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11426 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11427 ac_status=$?
11428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11429 test $ac_status = 0; }
11430 then
11431 lt_cv_archive_cmds_need_lc=no
11432 else
11433 lt_cv_archive_cmds_need_lc=yes
11434 fi
11435 allow_undefined_flag=$lt_save_allow_undefined_flag
11436 else
11437 cat conftest.err 1>&5
11438 fi
11439 $RM conftest*
11440
11441 fi
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11443 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11444 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11445 ;;
11446 esac
11447 fi
11448 ;;
11449 esac
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
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11608 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11609
11610 if test "$GCC" = yes; then
11611 case $host_os in
11612 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11613 *) lt_awk_arg="/^libraries:/" ;;
11614 esac
11615 case $host_os in
11616 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11617 *) lt_sed_strip_eq="s,=/,/,g" ;;
11618 esac
11619 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11620 case $lt_search_path_spec in
11621 *\;*)
11622 # if the path contains ";" then we assume it to be the separator
11623 # otherwise default to the standard path separator (i.e. ":") - it is
11624 # assumed that no part of a normal pathname contains ";" but that should
11625 # okay in the real world where ";" in dirpaths is itself problematic.
11626 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11627 ;;
11628 *)
11629 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11630 ;;
11631 esac
11632 # Ok, now we have the path, separated by spaces, we can step through it
11633 # and add multilib dir if necessary.
11634 lt_tmp_lt_search_path_spec=
11635 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11636 for lt_sys_path in $lt_search_path_spec; do
11637 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11638 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11639 else
11640 test -d "$lt_sys_path" && \
11641 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11642 fi
11643 done
11644 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11645 BEGIN {RS=" "; FS="/|\n";} {
11646 lt_foo="";
11647 lt_count=0;
11648 for (lt_i = NF; lt_i > 0; lt_i--) {
11649 if ($lt_i != "" && $lt_i != ".") {
11650 if ($lt_i == "..") {
11651 lt_count++;
11652 } else {
11653 if (lt_count == 0) {
11654 lt_foo="/" $lt_i lt_foo;
11655 } else {
11656 lt_count--;
11657 }
11658 }
11659 }
11660 }
11661 if (lt_foo != "") { lt_freq[lt_foo]++; }
11662 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11663 }'`
11664 # AWK program above erroneously prepends '/' to C:/dos/paths
11665 # for these hosts.
11666 case $host_os in
11667 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11668 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11669 esac
11670 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11671 else
11672 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11673 fi
11674 library_names_spec=
11675 libname_spec='lib$name'
11676 soname_spec=
11677 shrext_cmds=".so"
11678 postinstall_cmds=
11679 postuninstall_cmds=
11680 finish_cmds=
11681 finish_eval=
11682 shlibpath_var=
11683 shlibpath_overrides_runpath=unknown
11684 version_type=none
11685 dynamic_linker="$host_os ld.so"
11686 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11687 need_lib_prefix=unknown
11688 hardcode_into_libs=no
11689
11690 # when you set need_version to no, make sure it does not cause -set_version
11691 # flags to be left without arguments
11692 need_version=unknown
11693
11694 case $host_os in
11695 aix3*)
11696 version_type=linux
11697 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11698 shlibpath_var=LIBPATH
11699
11700 # AIX 3 has no versioning support, so we append a major version to the name.
11701 soname_spec='${libname}${release}${shared_ext}$major'
11702 ;;
11703
11704 aix[4-9]*)
11705 version_type=linux
11706 need_lib_prefix=no
11707 need_version=no
11708 hardcode_into_libs=yes
11709 if test "$host_cpu" = ia64; then
11710 # AIX 5 supports IA64
11711 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11712 shlibpath_var=LD_LIBRARY_PATH
11713 else
11714 # With GCC up to 2.95.x, collect2 would create an import file
11715 # for dependence libraries. The import file would start with
11716 # the line `#! .'. This would cause the generated library to
11717 # depend on `.', always an invalid library. This was fixed in
11718 # development snapshots of GCC prior to 3.0.
11719 case $host_os in
11720 aix4 | aix4.[01] | aix4.[01].*)
11721 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11722 echo ' yes '
11723 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11724 :
11725 else
11726 can_build_shared=no
11727 fi
11728 ;;
11729 esac
11730 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11731 # soname into executable. Probably we can add versioning support to
11732 # collect2, so additional links can be useful in future.
11733 if test "$aix_use_runtimelinking" = yes; then
11734 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11735 # instead of lib<name>.a to let people know that these are not
11736 # typical AIX shared libraries.
11737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11738 else
11739 # We preserve .a as extension for shared libraries through AIX4.2
11740 # and later when we are not doing run time linking.
11741 library_names_spec='${libname}${release}.a $libname.a'
11742 soname_spec='${libname}${release}${shared_ext}$major'
11743 fi
11744 shlibpath_var=LIBPATH
11745 fi
11746 ;;
11747
11748 amigaos*)
11749 case $host_cpu in
11750 powerpc)
11751 # Since July 2007 AmigaOS4 officially supports .so libraries.
11752 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11754 ;;
11755 m68k)
11756 library_names_spec='$libname.ixlibrary $libname.a'
11757 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11758 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'
11759 ;;
11760 esac
11761 ;;
11762
11763 beos*)
11764 library_names_spec='${libname}${shared_ext}'
11765 dynamic_linker="$host_os ld.so"
11766 shlibpath_var=LIBRARY_PATH
11767 ;;
11768
11769 bsdi[45]*)
11770 version_type=linux
11771 need_version=no
11772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11773 soname_spec='${libname}${release}${shared_ext}$major'
11774 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11775 shlibpath_var=LD_LIBRARY_PATH
11776 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11777 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11778 # the default ld.so.conf also contains /usr/contrib/lib and
11779 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11780 # libtool to hard-code these into programs
11781 ;;
11782
11783 cygwin* | mingw* | pw32* | cegcc*)
11784 version_type=windows
11785 shrext_cmds=".dll"
11786 need_version=no
11787 need_lib_prefix=no
11788
11789 case $GCC,$host_os in
11790 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11791 library_names_spec='$libname.dll.a'
11792 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11793 postinstall_cmds='base_file=`basename \${file}`~
11794 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11795 dldir=$destdir/`dirname \$dlpath`~
11796 test -d \$dldir || mkdir -p \$dldir~
11797 $install_prog $dir/$dlname \$dldir/$dlname~
11798 chmod a+x \$dldir/$dlname~
11799 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11800 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11801 fi'
11802 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11803 dlpath=$dir/\$dldll~
11804 $RM \$dlpath'
11805 shlibpath_overrides_runpath=yes
11806
11807 case $host_os in
11808 cygwin*)
11809 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11810 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11811
11812 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11813 ;;
11814 mingw* | cegcc*)
11815 # MinGW DLLs use traditional 'lib' prefix
11816 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11817 ;;
11818 pw32*)
11819 # pw32 DLLs use 'pw' prefix rather than 'lib'
11820 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11821 ;;
11822 esac
11823 ;;
11824
11825 *)
11826 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11827 ;;
11828 esac
11829 dynamic_linker='Win32 ld.exe'
11830 # FIXME: first we should search . and the directory the executable is in
11831 shlibpath_var=PATH
11832 ;;
11833
11834 darwin* | rhapsody*)
11835 dynamic_linker="$host_os dyld"
11836 version_type=darwin
11837 need_lib_prefix=no
11838 need_version=no
11839 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11840 soname_spec='${libname}${release}${major}$shared_ext'
11841 shlibpath_overrides_runpath=yes
11842 shlibpath_var=DYLD_LIBRARY_PATH
11843 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11844
11845 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11846 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11847 ;;
11848
11849 dgux*)
11850 version_type=linux
11851 need_lib_prefix=no
11852 need_version=no
11853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11854 soname_spec='${libname}${release}${shared_ext}$major'
11855 shlibpath_var=LD_LIBRARY_PATH
11856 ;;
11857
11858 freebsd* | dragonfly*)
11859 # DragonFly does not have aout. When/if they implement a new
11860 # versioning mechanism, adjust this.
11861 if test -x /usr/bin/objformat; then
11862 objformat=`/usr/bin/objformat`
11863 else
11864 case $host_os in
11865 freebsd[23].*) objformat=aout ;;
11866 *) objformat=elf ;;
11867 esac
11868 fi
11869 version_type=freebsd-$objformat
11870 case $version_type in
11871 freebsd-elf*)
11872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11873 need_version=no
11874 need_lib_prefix=no
11875 ;;
11876 freebsd-*)
11877 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11878 need_version=yes
11879 ;;
11880 esac
11881 shlibpath_var=LD_LIBRARY_PATH
11882 case $host_os in
11883 freebsd2.*)
11884 shlibpath_overrides_runpath=yes
11885 ;;
11886 freebsd3.[01]* | freebsdelf3.[01]*)
11887 shlibpath_overrides_runpath=yes
11888 hardcode_into_libs=yes
11889 ;;
11890 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11891 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11892 shlibpath_overrides_runpath=no
11893 hardcode_into_libs=yes
11894 ;;
11895 *) # from 4.6 on, and DragonFly
11896 shlibpath_overrides_runpath=yes
11897 hardcode_into_libs=yes
11898 ;;
11899 esac
11900 ;;
11901
11902 haiku*)
11903 version_type=linux
11904 need_lib_prefix=no
11905 need_version=no
11906 dynamic_linker="$host_os runtime_loader"
11907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11908 soname_spec='${libname}${release}${shared_ext}$major'
11909 shlibpath_var=LIBRARY_PATH
11910 shlibpath_overrides_runpath=yes
11911 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11912 hardcode_into_libs=yes
11913 ;;
11914
11915 hpux9* | hpux10* | hpux11*)
11916 # Give a soname corresponding to the major version so that dld.sl refuses to
11917 # link against other versions.
11918 version_type=sunos
11919 need_lib_prefix=no
11920 need_version=no
11921 case $host_cpu in
11922 ia64*)
11923 shrext_cmds='.so'
11924 hardcode_into_libs=yes
11925 dynamic_linker="$host_os dld.so"
11926 shlibpath_var=LD_LIBRARY_PATH
11927 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11929 soname_spec='${libname}${release}${shared_ext}$major'
11930 if test "X$HPUX_IA64_MODE" = X32; then
11931 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11932 else
11933 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11934 fi
11935 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11936 ;;
11937 hppa*64*)
11938 shrext_cmds='.sl'
11939 hardcode_into_libs=yes
11940 dynamic_linker="$host_os dld.sl"
11941 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11942 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11944 soname_spec='${libname}${release}${shared_ext}$major'
11945 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11946 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11947 ;;
11948 *)
11949 shrext_cmds='.sl'
11950 dynamic_linker="$host_os dld.sl"
11951 shlibpath_var=SHLIB_PATH
11952 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11954 soname_spec='${libname}${release}${shared_ext}$major'
11955 ;;
11956 esac
11957 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11958 postinstall_cmds='chmod 555 $lib'
11959 # or fails outright, so override atomically:
11960 install_override_mode=555
11961 ;;
11962
11963 interix[3-9]*)
11964 version_type=linux
11965 need_lib_prefix=no
11966 need_version=no
11967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11968 soname_spec='${libname}${release}${shared_ext}$major'
11969 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11970 shlibpath_var=LD_LIBRARY_PATH
11971 shlibpath_overrides_runpath=no
11972 hardcode_into_libs=yes
11973 ;;
11974
11975 irix5* | irix6* | nonstopux*)
11976 case $host_os in
11977 nonstopux*) version_type=nonstopux ;;
11978 *)
11979 if test "$lt_cv_prog_gnu_ld" = yes; then
11980 version_type=linux
11981 else
11982 version_type=irix
11983 fi ;;
11984 esac
11985 need_lib_prefix=no
11986 need_version=no
11987 soname_spec='${libname}${release}${shared_ext}$major'
11988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11989 case $host_os in
11990 irix5* | nonstopux*)
11991 libsuff= shlibsuff=
11992 ;;
11993 *)
11994 case $LD in # libtool.m4 will add one of these switches to LD
11995 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11996 libsuff= shlibsuff= libmagic=32-bit;;
11997 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11998 libsuff=32 shlibsuff=N32 libmagic=N32;;
11999 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12000 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12001 *) libsuff= shlibsuff= libmagic=never-match;;
12002 esac
12003 ;;
12004 esac
12005 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12006 shlibpath_overrides_runpath=no
12007 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12008 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12009 hardcode_into_libs=yes
12010 ;;
12011
12012 # No shared lib support for Linux oldld, aout, or coff.
12013 linux*oldld* | linux*aout* | linux*coff*)
12014 dynamic_linker=no
12015 ;;
12016
12017 # This must be Linux ELF.
12018
12019 # uclinux* changes (here and below) have been submitted to the libtool
12020 # project, but have not yet been accepted: they are GCC-local changes
12021 # for the time being. (See
12022 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
12023 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
12024 version_type=linux
12025 need_lib_prefix=no
12026 need_version=no
12027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12028 soname_spec='${libname}${release}${shared_ext}$major'
12029 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12030 shlibpath_var=LD_LIBRARY_PATH
12031 shlibpath_overrides_runpath=no
12032
12033 # Some binutils ld are patched to set DT_RUNPATH
12034 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12035 $as_echo_n "(cached) " >&6
12036 else
12037 lt_cv_shlibpath_overrides_runpath=no
12038 save_LDFLAGS=$LDFLAGS
12039 save_libdir=$libdir
12040 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12041 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12042 if test x$gcc_no_link = xyes; then
12043 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12044 fi
12045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12046 /* end confdefs.h. */
12047
12048 int
12049 main ()
12050 {
12051
12052 ;
12053 return 0;
12054 }
12055 _ACEOF
12056 if ac_fn_c_try_link "$LINENO"; then :
12057 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12058 lt_cv_shlibpath_overrides_runpath=yes
12059 fi
12060 fi
12061 rm -f core conftest.err conftest.$ac_objext \
12062 conftest$ac_exeext conftest.$ac_ext
12063 LDFLAGS=$save_LDFLAGS
12064 libdir=$save_libdir
12065
12066 fi
12067
12068 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12069
12070 # This implies no fast_install, which is unacceptable.
12071 # Some rework will be needed to allow for fast_install
12072 # before this can be enabled.
12073 hardcode_into_libs=yes
12074
12075 # Append ld.so.conf contents to the search path
12076 if test -f /etc/ld.so.conf; then
12077 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' ' '`
12078 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12079 fi
12080
12081 # We used to test for /lib/ld.so.1 and disable shared libraries on
12082 # powerpc, because MkLinux only supported shared libraries with the
12083 # GNU dynamic linker. Since this was broken with cross compilers,
12084 # most powerpc-linux boxes support dynamic linking these days and
12085 # people can always --disable-shared, the test was removed, and we
12086 # assume the GNU/Linux dynamic linker is in use.
12087 dynamic_linker='GNU/Linux ld.so'
12088 ;;
12089
12090 netbsd*)
12091 version_type=sunos
12092 need_lib_prefix=no
12093 need_version=no
12094 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12096 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12097 dynamic_linker='NetBSD (a.out) ld.so'
12098 else
12099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12100 soname_spec='${libname}${release}${shared_ext}$major'
12101 dynamic_linker='NetBSD ld.elf_so'
12102 fi
12103 shlibpath_var=LD_LIBRARY_PATH
12104 shlibpath_overrides_runpath=yes
12105 hardcode_into_libs=yes
12106 ;;
12107
12108 newsos6)
12109 version_type=linux
12110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12111 shlibpath_var=LD_LIBRARY_PATH
12112 shlibpath_overrides_runpath=yes
12113 ;;
12114
12115 *nto* | *qnx*)
12116 version_type=qnx
12117 need_lib_prefix=no
12118 need_version=no
12119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12120 soname_spec='${libname}${release}${shared_ext}$major'
12121 shlibpath_var=LD_LIBRARY_PATH
12122 shlibpath_overrides_runpath=no
12123 hardcode_into_libs=yes
12124 dynamic_linker='ldqnx.so'
12125 ;;
12126
12127 openbsd*)
12128 version_type=sunos
12129 sys_lib_dlsearch_path_spec="/usr/lib"
12130 need_lib_prefix=no
12131 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12132 case $host_os in
12133 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12134 *) need_version=no ;;
12135 esac
12136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12137 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12138 shlibpath_var=LD_LIBRARY_PATH
12139 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12140 case $host_os in
12141 openbsd2.[89] | openbsd2.[89].*)
12142 shlibpath_overrides_runpath=no
12143 ;;
12144 *)
12145 shlibpath_overrides_runpath=yes
12146 ;;
12147 esac
12148 else
12149 shlibpath_overrides_runpath=yes
12150 fi
12151 ;;
12152
12153 os2*)
12154 libname_spec='$name'
12155 shrext_cmds=".dll"
12156 need_lib_prefix=no
12157 library_names_spec='$libname${shared_ext} $libname.a'
12158 dynamic_linker='OS/2 ld.exe'
12159 shlibpath_var=LIBPATH
12160 ;;
12161
12162 osf3* | osf4* | osf5*)
12163 version_type=osf
12164 need_lib_prefix=no
12165 need_version=no
12166 soname_spec='${libname}${release}${shared_ext}$major'
12167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12168 shlibpath_var=LD_LIBRARY_PATH
12169 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12170 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12171 ;;
12172
12173 rdos*)
12174 dynamic_linker=no
12175 ;;
12176
12177 solaris*)
12178 version_type=linux
12179 need_lib_prefix=no
12180 need_version=no
12181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12182 soname_spec='${libname}${release}${shared_ext}$major'
12183 shlibpath_var=LD_LIBRARY_PATH
12184 shlibpath_overrides_runpath=yes
12185 hardcode_into_libs=yes
12186 # ldd complains unless libraries are executable
12187 postinstall_cmds='chmod +x $lib'
12188 ;;
12189
12190 sunos4*)
12191 version_type=sunos
12192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12193 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12194 shlibpath_var=LD_LIBRARY_PATH
12195 shlibpath_overrides_runpath=yes
12196 if test "$with_gnu_ld" = yes; then
12197 need_lib_prefix=no
12198 fi
12199 need_version=yes
12200 ;;
12201
12202 sysv4 | sysv4.3*)
12203 version_type=linux
12204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12205 soname_spec='${libname}${release}${shared_ext}$major'
12206 shlibpath_var=LD_LIBRARY_PATH
12207 case $host_vendor in
12208 sni)
12209 shlibpath_overrides_runpath=no
12210 need_lib_prefix=no
12211 runpath_var=LD_RUN_PATH
12212 ;;
12213 siemens)
12214 need_lib_prefix=no
12215 ;;
12216 motorola)
12217 need_lib_prefix=no
12218 need_version=no
12219 shlibpath_overrides_runpath=no
12220 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12221 ;;
12222 esac
12223 ;;
12224
12225 sysv4*MP*)
12226 if test -d /usr/nec ;then
12227 version_type=linux
12228 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12229 soname_spec='$libname${shared_ext}.$major'
12230 shlibpath_var=LD_LIBRARY_PATH
12231 fi
12232 ;;
12233
12234 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12235 version_type=freebsd-elf
12236 need_lib_prefix=no
12237 need_version=no
12238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12239 soname_spec='${libname}${release}${shared_ext}$major'
12240 shlibpath_var=LD_LIBRARY_PATH
12241 shlibpath_overrides_runpath=yes
12242 hardcode_into_libs=yes
12243 if test "$with_gnu_ld" = yes; then
12244 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12245 else
12246 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12247 case $host_os in
12248 sco3.2v5*)
12249 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12250 ;;
12251 esac
12252 fi
12253 sys_lib_dlsearch_path_spec='/usr/lib'
12254 ;;
12255
12256 tpf*)
12257 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12258 version_type=linux
12259 need_lib_prefix=no
12260 need_version=no
12261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12262 shlibpath_var=LD_LIBRARY_PATH
12263 shlibpath_overrides_runpath=no
12264 hardcode_into_libs=yes
12265 ;;
12266
12267 uts4*)
12268 version_type=linux
12269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12270 soname_spec='${libname}${release}${shared_ext}$major'
12271 shlibpath_var=LD_LIBRARY_PATH
12272 ;;
12273
12274 *)
12275 dynamic_linker=no
12276 ;;
12277 esac
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12279 $as_echo "$dynamic_linker" >&6; }
12280 test "$dynamic_linker" = no && can_build_shared=no
12281
12282 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12283 if test "$GCC" = yes; then
12284 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12285 fi
12286
12287 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12288 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12289 fi
12290 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12291 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12292 fi
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
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12386 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12387 hardcode_action=
12388 if test -n "$hardcode_libdir_flag_spec" ||
12389 test -n "$runpath_var" ||
12390 test "X$hardcode_automatic" = "Xyes" ; then
12391
12392 # We can hardcode non-existent directories.
12393 if test "$hardcode_direct" != no &&
12394 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12395 # have to relink, otherwise we might link with an installed library
12396 # when we should be linking with a yet-to-be-installed one
12397 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12398 test "$hardcode_minus_L" != no; then
12399 # Linking always hardcodes the temporary library directory.
12400 hardcode_action=relink
12401 else
12402 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12403 hardcode_action=immediate
12404 fi
12405 else
12406 # We cannot hardcode anything, or else we can only hardcode existing
12407 # directories.
12408 hardcode_action=unsupported
12409 fi
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12411 $as_echo "$hardcode_action" >&6; }
12412
12413 if test "$hardcode_action" = relink ||
12414 test "$inherit_rpath" = yes; then
12415 # Fast installation is not supported
12416 enable_fast_install=no
12417 elif test "$shlibpath_overrides_runpath" = yes ||
12418 test "$enable_shared" = no; then
12419 # Fast installation is not necessary
12420 enable_fast_install=needless
12421 fi
12422
12423
12424
12425
12426
12427
12428 if test "x$enable_dlopen" != xyes; then
12429 enable_dlopen=unknown
12430 enable_dlopen_self=unknown
12431 enable_dlopen_self_static=unknown
12432 else
12433 lt_cv_dlopen=no
12434 lt_cv_dlopen_libs=
12435
12436 case $host_os in
12437 beos*)
12438 lt_cv_dlopen="load_add_on"
12439 lt_cv_dlopen_libs=
12440 lt_cv_dlopen_self=yes
12441 ;;
12442
12443 mingw* | pw32* | cegcc*)
12444 lt_cv_dlopen="LoadLibrary"
12445 lt_cv_dlopen_libs=
12446 ;;
12447
12448 cygwin*)
12449 lt_cv_dlopen="dlopen"
12450 lt_cv_dlopen_libs=
12451 ;;
12452
12453 darwin*)
12454 # if libdl is installed we need to link against it
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12456 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12457 if ${ac_cv_lib_dl_dlopen+:} false; then :
12458 $as_echo_n "(cached) " >&6
12459 else
12460 ac_check_lib_save_LIBS=$LIBS
12461 LIBS="-ldl $LIBS"
12462 if test x$gcc_no_link = xyes; then
12463 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12464 fi
12465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12466 /* end confdefs.h. */
12467
12468 /* Override any GCC internal prototype to avoid an error.
12469 Use char because int might match the return type of a GCC
12470 builtin and then its argument prototype would still apply. */
12471 #ifdef __cplusplus
12472 extern "C"
12473 #endif
12474 char dlopen ();
12475 int
12476 main ()
12477 {
12478 return dlopen ();
12479 ;
12480 return 0;
12481 }
12482 _ACEOF
12483 if ac_fn_c_try_link "$LINENO"; then :
12484 ac_cv_lib_dl_dlopen=yes
12485 else
12486 ac_cv_lib_dl_dlopen=no
12487 fi
12488 rm -f core conftest.err conftest.$ac_objext \
12489 conftest$ac_exeext conftest.$ac_ext
12490 LIBS=$ac_check_lib_save_LIBS
12491 fi
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12493 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12494 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12495 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12496 else
12497
12498 lt_cv_dlopen="dyld"
12499 lt_cv_dlopen_libs=
12500 lt_cv_dlopen_self=yes
12501
12502 fi
12503
12504 ;;
12505
12506 *)
12507 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12508 if test "x$ac_cv_func_shl_load" = xyes; then :
12509 lt_cv_dlopen="shl_load"
12510 else
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12512 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12513 if ${ac_cv_lib_dld_shl_load+:} false; then :
12514 $as_echo_n "(cached) " >&6
12515 else
12516 ac_check_lib_save_LIBS=$LIBS
12517 LIBS="-ldld $LIBS"
12518 if test x$gcc_no_link = xyes; then
12519 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12520 fi
12521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12522 /* end confdefs.h. */
12523
12524 /* Override any GCC internal prototype to avoid an error.
12525 Use char because int might match the return type of a GCC
12526 builtin and then its argument prototype would still apply. */
12527 #ifdef __cplusplus
12528 extern "C"
12529 #endif
12530 char shl_load ();
12531 int
12532 main ()
12533 {
12534 return shl_load ();
12535 ;
12536 return 0;
12537 }
12538 _ACEOF
12539 if ac_fn_c_try_link "$LINENO"; then :
12540 ac_cv_lib_dld_shl_load=yes
12541 else
12542 ac_cv_lib_dld_shl_load=no
12543 fi
12544 rm -f core conftest.err conftest.$ac_objext \
12545 conftest$ac_exeext conftest.$ac_ext
12546 LIBS=$ac_check_lib_save_LIBS
12547 fi
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12549 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12550 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12551 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12552 else
12553 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12554 if test "x$ac_cv_func_dlopen" = xyes; then :
12555 lt_cv_dlopen="dlopen"
12556 else
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12558 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12559 if ${ac_cv_lib_dl_dlopen+:} false; then :
12560 $as_echo_n "(cached) " >&6
12561 else
12562 ac_check_lib_save_LIBS=$LIBS
12563 LIBS="-ldl $LIBS"
12564 if test x$gcc_no_link = xyes; then
12565 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12566 fi
12567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12568 /* end confdefs.h. */
12569
12570 /* Override any GCC internal prototype to avoid an error.
12571 Use char because int might match the return type of a GCC
12572 builtin and then its argument prototype would still apply. */
12573 #ifdef __cplusplus
12574 extern "C"
12575 #endif
12576 char dlopen ();
12577 int
12578 main ()
12579 {
12580 return dlopen ();
12581 ;
12582 return 0;
12583 }
12584 _ACEOF
12585 if ac_fn_c_try_link "$LINENO"; then :
12586 ac_cv_lib_dl_dlopen=yes
12587 else
12588 ac_cv_lib_dl_dlopen=no
12589 fi
12590 rm -f core conftest.err conftest.$ac_objext \
12591 conftest$ac_exeext conftest.$ac_ext
12592 LIBS=$ac_check_lib_save_LIBS
12593 fi
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12595 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12596 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12597 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12598 else
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12600 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12601 if ${ac_cv_lib_svld_dlopen+:} false; then :
12602 $as_echo_n "(cached) " >&6
12603 else
12604 ac_check_lib_save_LIBS=$LIBS
12605 LIBS="-lsvld $LIBS"
12606 if test x$gcc_no_link = xyes; then
12607 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12608 fi
12609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12610 /* end confdefs.h. */
12611
12612 /* Override any GCC internal prototype to avoid an error.
12613 Use char because int might match the return type of a GCC
12614 builtin and then its argument prototype would still apply. */
12615 #ifdef __cplusplus
12616 extern "C"
12617 #endif
12618 char dlopen ();
12619 int
12620 main ()
12621 {
12622 return dlopen ();
12623 ;
12624 return 0;
12625 }
12626 _ACEOF
12627 if ac_fn_c_try_link "$LINENO"; then :
12628 ac_cv_lib_svld_dlopen=yes
12629 else
12630 ac_cv_lib_svld_dlopen=no
12631 fi
12632 rm -f core conftest.err conftest.$ac_objext \
12633 conftest$ac_exeext conftest.$ac_ext
12634 LIBS=$ac_check_lib_save_LIBS
12635 fi
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12637 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12638 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12639 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12640 else
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12642 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12643 if ${ac_cv_lib_dld_dld_link+:} false; then :
12644 $as_echo_n "(cached) " >&6
12645 else
12646 ac_check_lib_save_LIBS=$LIBS
12647 LIBS="-ldld $LIBS"
12648 if test x$gcc_no_link = xyes; then
12649 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12650 fi
12651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12652 /* end confdefs.h. */
12653
12654 /* Override any GCC internal prototype to avoid an error.
12655 Use char because int might match the return type of a GCC
12656 builtin and then its argument prototype would still apply. */
12657 #ifdef __cplusplus
12658 extern "C"
12659 #endif
12660 char dld_link ();
12661 int
12662 main ()
12663 {
12664 return dld_link ();
12665 ;
12666 return 0;
12667 }
12668 _ACEOF
12669 if ac_fn_c_try_link "$LINENO"; then :
12670 ac_cv_lib_dld_dld_link=yes
12671 else
12672 ac_cv_lib_dld_dld_link=no
12673 fi
12674 rm -f core conftest.err conftest.$ac_objext \
12675 conftest$ac_exeext conftest.$ac_ext
12676 LIBS=$ac_check_lib_save_LIBS
12677 fi
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12679 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12680 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12681 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12682 fi
12683
12684
12685 fi
12686
12687
12688 fi
12689
12690
12691 fi
12692
12693
12694 fi
12695
12696
12697 fi
12698
12699 ;;
12700 esac
12701
12702 if test "x$lt_cv_dlopen" != xno; then
12703 enable_dlopen=yes
12704 else
12705 enable_dlopen=no
12706 fi
12707
12708 case $lt_cv_dlopen in
12709 dlopen)
12710 save_CPPFLAGS="$CPPFLAGS"
12711 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12712
12713 save_LDFLAGS="$LDFLAGS"
12714 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12715
12716 save_LIBS="$LIBS"
12717 LIBS="$lt_cv_dlopen_libs $LIBS"
12718
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12720 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12721 if ${lt_cv_dlopen_self+:} false; then :
12722 $as_echo_n "(cached) " >&6
12723 else
12724 if test "$cross_compiling" = yes; then :
12725 lt_cv_dlopen_self=cross
12726 else
12727 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12728 lt_status=$lt_dlunknown
12729 cat > conftest.$ac_ext <<_LT_EOF
12730 #line 12730 "configure"
12731 #include "confdefs.h"
12732
12733 #if HAVE_DLFCN_H
12734 #include <dlfcn.h>
12735 #endif
12736
12737 #include <stdio.h>
12738
12739 #ifdef RTLD_GLOBAL
12740 # define LT_DLGLOBAL RTLD_GLOBAL
12741 #else
12742 # ifdef DL_GLOBAL
12743 # define LT_DLGLOBAL DL_GLOBAL
12744 # else
12745 # define LT_DLGLOBAL 0
12746 # endif
12747 #endif
12748
12749 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12750 find out it does not work in some platform. */
12751 #ifndef LT_DLLAZY_OR_NOW
12752 # ifdef RTLD_LAZY
12753 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12754 # else
12755 # ifdef DL_LAZY
12756 # define LT_DLLAZY_OR_NOW DL_LAZY
12757 # else
12758 # ifdef RTLD_NOW
12759 # define LT_DLLAZY_OR_NOW RTLD_NOW
12760 # else
12761 # ifdef DL_NOW
12762 # define LT_DLLAZY_OR_NOW DL_NOW
12763 # else
12764 # define LT_DLLAZY_OR_NOW 0
12765 # endif
12766 # endif
12767 # endif
12768 # endif
12769 #endif
12770
12771 /* When -fvisbility=hidden is used, assume the code has been annotated
12772 correspondingly for the symbols needed. */
12773 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12774 void fnord () __attribute__((visibility("default")));
12775 #endif
12776
12777 void fnord () { int i=42; }
12778 int main ()
12779 {
12780 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12781 int status = $lt_dlunknown;
12782
12783 if (self)
12784 {
12785 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12786 else
12787 {
12788 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12789 else puts (dlerror ());
12790 }
12791 /* dlclose (self); */
12792 }
12793 else
12794 puts (dlerror ());
12795
12796 return status;
12797 }
12798 _LT_EOF
12799 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12800 (eval $ac_link) 2>&5
12801 ac_status=$?
12802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12803 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12804 (./conftest; exit; ) >&5 2>/dev/null
12805 lt_status=$?
12806 case x$lt_status in
12807 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12808 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12809 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12810 esac
12811 else :
12812 # compilation failed
12813 lt_cv_dlopen_self=no
12814 fi
12815 fi
12816 rm -fr conftest*
12817
12818
12819 fi
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12821 $as_echo "$lt_cv_dlopen_self" >&6; }
12822
12823 if test "x$lt_cv_dlopen_self" = xyes; then
12824 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12826 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12827 if ${lt_cv_dlopen_self_static+:} false; then :
12828 $as_echo_n "(cached) " >&6
12829 else
12830 if test "$cross_compiling" = yes; then :
12831 lt_cv_dlopen_self_static=cross
12832 else
12833 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12834 lt_status=$lt_dlunknown
12835 cat > conftest.$ac_ext <<_LT_EOF
12836 #line 12836 "configure"
12837 #include "confdefs.h"
12838
12839 #if HAVE_DLFCN_H
12840 #include <dlfcn.h>
12841 #endif
12842
12843 #include <stdio.h>
12844
12845 #ifdef RTLD_GLOBAL
12846 # define LT_DLGLOBAL RTLD_GLOBAL
12847 #else
12848 # ifdef DL_GLOBAL
12849 # define LT_DLGLOBAL DL_GLOBAL
12850 # else
12851 # define LT_DLGLOBAL 0
12852 # endif
12853 #endif
12854
12855 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12856 find out it does not work in some platform. */
12857 #ifndef LT_DLLAZY_OR_NOW
12858 # ifdef RTLD_LAZY
12859 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12860 # else
12861 # ifdef DL_LAZY
12862 # define LT_DLLAZY_OR_NOW DL_LAZY
12863 # else
12864 # ifdef RTLD_NOW
12865 # define LT_DLLAZY_OR_NOW RTLD_NOW
12866 # else
12867 # ifdef DL_NOW
12868 # define LT_DLLAZY_OR_NOW DL_NOW
12869 # else
12870 # define LT_DLLAZY_OR_NOW 0
12871 # endif
12872 # endif
12873 # endif
12874 # endif
12875 #endif
12876
12877 /* When -fvisbility=hidden is used, assume the code has been annotated
12878 correspondingly for the symbols needed. */
12879 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12880 void fnord () __attribute__((visibility("default")));
12881 #endif
12882
12883 void fnord () { int i=42; }
12884 int main ()
12885 {
12886 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12887 int status = $lt_dlunknown;
12888
12889 if (self)
12890 {
12891 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12892 else
12893 {
12894 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12895 else puts (dlerror ());
12896 }
12897 /* dlclose (self); */
12898 }
12899 else
12900 puts (dlerror ());
12901
12902 return status;
12903 }
12904 _LT_EOF
12905 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12906 (eval $ac_link) 2>&5
12907 ac_status=$?
12908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12909 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12910 (./conftest; exit; ) >&5 2>/dev/null
12911 lt_status=$?
12912 case x$lt_status in
12913 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12914 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12915 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12916 esac
12917 else :
12918 # compilation failed
12919 lt_cv_dlopen_self_static=no
12920 fi
12921 fi
12922 rm -fr conftest*
12923
12924
12925 fi
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12927 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12928 fi
12929
12930 CPPFLAGS="$save_CPPFLAGS"
12931 LDFLAGS="$save_LDFLAGS"
12932 LIBS="$save_LIBS"
12933 ;;
12934 esac
12935
12936 case $lt_cv_dlopen_self in
12937 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12938 *) enable_dlopen_self=unknown ;;
12939 esac
12940
12941 case $lt_cv_dlopen_self_static in
12942 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12943 *) enable_dlopen_self_static=unknown ;;
12944 esac
12945 fi
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963 striplib=
12964 old_striplib=
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12966 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12967 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12968 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12969 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12971 $as_echo "yes" >&6; }
12972 else
12973 # FIXME - insert some real tests, host_os isn't really good enough
12974 case $host_os in
12975 darwin*)
12976 if test -n "$STRIP" ; then
12977 striplib="$STRIP -x"
12978 old_striplib="$STRIP -S"
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12980 $as_echo "yes" >&6; }
12981 else
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12983 $as_echo "no" >&6; }
12984 fi
12985 ;;
12986 *)
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12988 $as_echo "no" >&6; }
12989 ;;
12990 esac
12991 fi
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004 # Report which library types will actually be built
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13006 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13008 $as_echo "$can_build_shared" >&6; }
13009
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13011 $as_echo_n "checking whether to build shared libraries... " >&6; }
13012 test "$can_build_shared" = "no" && enable_shared=no
13013
13014 # On AIX, shared libraries and static libraries use the same namespace, and
13015 # are all built from PIC.
13016 case $host_os in
13017 aix3*)
13018 test "$enable_shared" = yes && enable_static=no
13019 if test -n "$RANLIB"; then
13020 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13021 postinstall_cmds='$RANLIB $lib'
13022 fi
13023 ;;
13024
13025 aix[4-9]*)
13026 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13027 test "$enable_shared" = yes && enable_static=no
13028 fi
13029 ;;
13030 esac
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13032 $as_echo "$enable_shared" >&6; }
13033
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13035 $as_echo_n "checking whether to build static libraries... " >&6; }
13036 # Make sure either enable_shared or enable_static is yes.
13037 test "$enable_shared" = yes || enable_static=yes
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13039 $as_echo "$enable_static" >&6; }
13040
13041
13042
13043
13044 fi
13045 ac_ext=c
13046 ac_cpp='$CPP $CPPFLAGS'
13047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13050
13051 CC="$lt_save_CC"
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065 ac_config_commands="$ac_config_commands libtool"
13066
13067
13068
13069
13070 # Only expand once:
13071
13072
13073
13074
13075
13076 case $host in
13077 *-cygwin* | *-mingw*)
13078 # 'host' will be top-level target in the case of a target lib,
13079 # we must compare to with_cross_host to decide if this is a native
13080 # or cross-compiler and select where to install dlls appropriately.
13081 if test -n "$with_cross_host" &&
13082 test x"$with_cross_host" != x"no"; then
13083 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
13084 else
13085 lt_host_flags='-no-undefined -bindir "$(bindir)"';
13086 fi
13087 ;;
13088 *)
13089 lt_host_flags=
13090 ;;
13091 esac
13092
13093
13094
13095
13096
13097 #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
13098
13099 # We need gfortran to compile parts of the library
13100 #AC_PROG_FC(gfortran)
13101 FC="$GFORTRAN"
13102 ac_ext=${ac_fc_srcext-f}
13103 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
13104 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
13105 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
13106 if test -n "$ac_tool_prefix"; then
13107 for ac_prog in gfortran
13108 do
13109 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13110 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13112 $as_echo_n "checking for $ac_word... " >&6; }
13113 if ${ac_cv_prog_FC+:} false; then :
13114 $as_echo_n "(cached) " >&6
13115 else
13116 if test -n "$FC"; then
13117 ac_cv_prog_FC="$FC" # Let the user override the test.
13118 else
13119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13120 for as_dir in $PATH
13121 do
13122 IFS=$as_save_IFS
13123 test -z "$as_dir" && as_dir=.
13124 for ac_exec_ext in '' $ac_executable_extensions; do
13125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13126 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
13127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13128 break 2
13129 fi
13130 done
13131 done
13132 IFS=$as_save_IFS
13133
13134 fi
13135 fi
13136 FC=$ac_cv_prog_FC
13137 if test -n "$FC"; then
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
13139 $as_echo "$FC" >&6; }
13140 else
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13142 $as_echo "no" >&6; }
13143 fi
13144
13145
13146 test -n "$FC" && break
13147 done
13148 fi
13149 if test -z "$FC"; then
13150 ac_ct_FC=$FC
13151 for ac_prog in gfortran
13152 do
13153 # Extract the first word of "$ac_prog", so it can be a program name with args.
13154 set dummy $ac_prog; ac_word=$2
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13156 $as_echo_n "checking for $ac_word... " >&6; }
13157 if ${ac_cv_prog_ac_ct_FC+:} false; then :
13158 $as_echo_n "(cached) " >&6
13159 else
13160 if test -n "$ac_ct_FC"; then
13161 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
13162 else
13163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13164 for as_dir in $PATH
13165 do
13166 IFS=$as_save_IFS
13167 test -z "$as_dir" && as_dir=.
13168 for ac_exec_ext in '' $ac_executable_extensions; do
13169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13170 ac_cv_prog_ac_ct_FC="$ac_prog"
13171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13172 break 2
13173 fi
13174 done
13175 done
13176 IFS=$as_save_IFS
13177
13178 fi
13179 fi
13180 ac_ct_FC=$ac_cv_prog_ac_ct_FC
13181 if test -n "$ac_ct_FC"; then
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
13183 $as_echo "$ac_ct_FC" >&6; }
13184 else
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13186 $as_echo "no" >&6; }
13187 fi
13188
13189
13190 test -n "$ac_ct_FC" && break
13191 done
13192
13193 if test "x$ac_ct_FC" = x; then
13194 FC=""
13195 else
13196 case $cross_compiling:$ac_tool_warned in
13197 yes:)
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13200 ac_tool_warned=yes ;;
13201 esac
13202 FC=$ac_ct_FC
13203 fi
13204 fi
13205
13206
13207 # Provide some information about the compiler.
13208 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
13209 set X $ac_compile
13210 ac_compiler=$2
13211 for ac_option in --version -v -V -qversion; do
13212 { { ac_try="$ac_compiler $ac_option >&5"
13213 case "(($ac_try" in
13214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13215 *) ac_try_echo=$ac_try;;
13216 esac
13217 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13218 $as_echo "$ac_try_echo"; } >&5
13219 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13220 ac_status=$?
13221 if test -s conftest.err; then
13222 sed '10a\
13223 ... rest of stderr output deleted ...
13224 10q' conftest.err >conftest.er1
13225 cat conftest.er1 >&5
13226 fi
13227 rm -f conftest.er1 conftest.err
13228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13229 test $ac_status = 0; }
13230 done
13231 rm -f a.out
13232
13233 # If we don't use `.F' as extension, the preprocessor is not run on the
13234 # input file. (Note that this only needs to work for GNU compilers.)
13235 ac_save_ext=$ac_ext
13236 ac_ext=F
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
13238 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
13239 if ${ac_cv_fc_compiler_gnu+:} false; then :
13240 $as_echo_n "(cached) " >&6
13241 else
13242 cat > conftest.$ac_ext <<_ACEOF
13243 program main
13244 #ifndef __GNUC__
13245 choke me
13246 #endif
13247
13248 end
13249 _ACEOF
13250 if ac_fn_fc_try_compile "$LINENO"; then :
13251 ac_compiler_gnu=yes
13252 else
13253 ac_compiler_gnu=no
13254 fi
13255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13256 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
13257
13258 fi
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
13260 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
13261 ac_ext=$ac_save_ext
13262 ac_test_FCFLAGS=${FCFLAGS+set}
13263 ac_save_FCFLAGS=$FCFLAGS
13264 FCFLAGS=
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
13266 $as_echo_n "checking whether $FC accepts -g... " >&6; }
13267 if ${ac_cv_prog_fc_g+:} false; then :
13268 $as_echo_n "(cached) " >&6
13269 else
13270 FCFLAGS=-g
13271 cat > conftest.$ac_ext <<_ACEOF
13272 program main
13273
13274 end
13275 _ACEOF
13276 if ac_fn_fc_try_compile "$LINENO"; then :
13277 ac_cv_prog_fc_g=yes
13278 else
13279 ac_cv_prog_fc_g=no
13280 fi
13281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13282
13283 fi
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
13285 $as_echo "$ac_cv_prog_fc_g" >&6; }
13286 if test "$ac_test_FCFLAGS" = set; then
13287 FCFLAGS=$ac_save_FCFLAGS
13288 elif test $ac_cv_prog_fc_g = yes; then
13289 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
13290 FCFLAGS="-g -O2"
13291 else
13292 FCFLAGS="-g"
13293 fi
13294 else
13295 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
13296 FCFLAGS="-O2"
13297 else
13298 FCFLAGS=
13299 fi
13300 fi
13301
13302 if test $ac_compiler_gnu = yes; then
13303 GFC=yes
13304 else
13305 GFC=
13306 fi
13307 ac_ext=c
13308 ac_cpp='$CPP $CPPFLAGS'
13309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13312
13313 ac_ext=${ac_fc_srcext-f}
13314 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
13315 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
13316 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
13317
13318
13319 if test -z "$FC" || test "X$FC" = "Xno"; then
13320 _lt_disable_FC=yes
13321 fi
13322
13323 archive_cmds_need_lc_FC=no
13324 allow_undefined_flag_FC=
13325 always_export_symbols_FC=no
13326 archive_expsym_cmds_FC=
13327 export_dynamic_flag_spec_FC=
13328 hardcode_direct_FC=no
13329 hardcode_direct_absolute_FC=no
13330 hardcode_libdir_flag_spec_FC=
13331 hardcode_libdir_flag_spec_ld_FC=
13332 hardcode_libdir_separator_FC=
13333 hardcode_minus_L_FC=no
13334 hardcode_automatic_FC=no
13335 inherit_rpath_FC=no
13336 module_cmds_FC=
13337 module_expsym_cmds_FC=
13338 link_all_deplibs_FC=unknown
13339 old_archive_cmds_FC=$old_archive_cmds
13340 reload_flag_FC=$reload_flag
13341 reload_cmds_FC=$reload_cmds
13342 no_undefined_flag_FC=
13343 whole_archive_flag_spec_FC=
13344 enable_shared_with_static_runtimes_FC=no
13345
13346 # Source file extension for fc test sources.
13347 ac_ext=${ac_fc_srcext-f}
13348
13349 # Object file extension for compiled fc test sources.
13350 objext=o
13351 objext_FC=$objext
13352
13353 # No sense in running all these tests if we already determined that
13354 # the FC compiler isn't working. Some variables (like enable_shared)
13355 # are currently assumed to apply to all compilers on this platform,
13356 # and will be corrupted by setting them based on a non-working compiler.
13357 if test "$_lt_disable_FC" != yes; then
13358 # Code to be used in simple compile tests
13359 lt_simple_compile_test_code="\
13360 subroutine t
13361 return
13362 end
13363 "
13364
13365 # Code to be used in simple link tests
13366 lt_simple_link_test_code="\
13367 program t
13368 end
13369 "
13370
13371 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13372
13373
13374
13375
13376
13377
13378 # If no C compiler was specified, use CC.
13379 LTCC=${LTCC-"$CC"}
13380
13381 # If no C compiler flags were specified, use CFLAGS.
13382 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13383
13384 # Allow CC to be a program name with arguments.
13385 compiler=$CC
13386
13387
13388 # save warnings/boilerplate of simple test code
13389 ac_outfile=conftest.$ac_objext
13390 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13391 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13392 _lt_compiler_boilerplate=`cat conftest.err`
13393 $RM conftest*
13394
13395 ac_outfile=conftest.$ac_objext
13396 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13397 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13398 _lt_linker_boilerplate=`cat conftest.err`
13399 $RM -r conftest*
13400
13401
13402 # Allow CC to be a program name with arguments.
13403 lt_save_CC="$CC"
13404 lt_save_GCC=$GCC
13405 CC=${FC-"f95"}
13406 compiler=$CC
13407 GCC=$ac_cv_fc_compiler_gnu
13408
13409 compiler_FC=$CC
13410 for cc_temp in $compiler""; do
13411 case $cc_temp in
13412 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13413 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13414 \-*) ;;
13415 *) break;;
13416 esac
13417 done
13418 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13419
13420
13421 if test -n "$compiler"; then
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13423 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13425 $as_echo "$can_build_shared" >&6; }
13426
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13428 $as_echo_n "checking whether to build shared libraries... " >&6; }
13429 test "$can_build_shared" = "no" && enable_shared=no
13430
13431 # On AIX, shared libraries and static libraries use the same namespace, and
13432 # are all built from PIC.
13433 case $host_os in
13434 aix3*)
13435 test "$enable_shared" = yes && enable_static=no
13436 if test -n "$RANLIB"; then
13437 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13438 postinstall_cmds='$RANLIB $lib'
13439 fi
13440 ;;
13441 aix[4-9]*)
13442 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13443 test "$enable_shared" = yes && enable_static=no
13444 fi
13445 ;;
13446 esac
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13448 $as_echo "$enable_shared" >&6; }
13449
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13451 $as_echo_n "checking whether to build static libraries... " >&6; }
13452 # Make sure either enable_shared or enable_static is yes.
13453 test "$enable_shared" = yes || enable_static=yes
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13455 $as_echo "$enable_static" >&6; }
13456
13457 GCC_FC="$ac_cv_fc_compiler_gnu"
13458 LD_FC="$LD"
13459
13460 ## CAVEAT EMPTOR:
13461 ## There is no encapsulation within the following macros, do not change
13462 ## the running order or otherwise move them around unless you know exactly
13463 ## what you are doing...
13464 # Dependencies to place before and after the object being linked:
13465 predep_objects_FC=
13466 postdep_objects_FC=
13467 predeps_FC=
13468 postdeps_FC=
13469 compiler_lib_search_path_FC=
13470
13471 cat > conftest.$ac_ext <<_LT_EOF
13472 subroutine foo
13473 implicit none
13474 integer a
13475 a=0
13476 return
13477 end
13478 _LT_EOF
13479
13480 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13481 (eval $ac_compile) 2>&5
13482 ac_status=$?
13483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13484 test $ac_status = 0; }; then
13485 # Parse the compiler output and extract the necessary
13486 # objects, libraries and library flags.
13487
13488 # Sentinel used to keep track of whether or not we are before
13489 # the conftest object file.
13490 pre_test_object_deps_done=no
13491
13492 for p in `eval "$output_verbose_link_cmd"`; do
13493 case $p in
13494
13495 -L* | -R* | -l*)
13496 # Some compilers place space between "-{L,R}" and the path.
13497 # Remove the space.
13498 if test $p = "-L" ||
13499 test $p = "-R"; then
13500 prev=$p
13501 continue
13502 else
13503 prev=
13504 fi
13505
13506 if test "$pre_test_object_deps_done" = no; then
13507 case $p in
13508 -L* | -R*)
13509 # Internal compiler library paths should come after those
13510 # provided the user. The postdeps already come after the
13511 # user supplied libs so there is no need to process them.
13512 if test -z "$compiler_lib_search_path_FC"; then
13513 compiler_lib_search_path_FC="${prev}${p}"
13514 else
13515 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
13516 fi
13517 ;;
13518 # The "-l" case would never come before the object being
13519 # linked, so don't bother handling this case.
13520 esac
13521 else
13522 if test -z "$postdeps_FC"; then
13523 postdeps_FC="${prev}${p}"
13524 else
13525 postdeps_FC="${postdeps_FC} ${prev}${p}"
13526 fi
13527 fi
13528 ;;
13529
13530 *.$objext)
13531 # This assumes that the test object file only shows up
13532 # once in the compiler output.
13533 if test "$p" = "conftest.$objext"; then
13534 pre_test_object_deps_done=yes
13535 continue
13536 fi
13537
13538 if test "$pre_test_object_deps_done" = no; then
13539 if test -z "$predep_objects_FC"; then
13540 predep_objects_FC="$p"
13541 else
13542 predep_objects_FC="$predep_objects_FC $p"
13543 fi
13544 else
13545 if test -z "$postdep_objects_FC"; then
13546 postdep_objects_FC="$p"
13547 else
13548 postdep_objects_FC="$postdep_objects_FC $p"
13549 fi
13550 fi
13551 ;;
13552
13553 *) ;; # Ignore the rest.
13554
13555 esac
13556 done
13557
13558 # Clean up.
13559 rm -f a.out a.exe
13560 else
13561 echo "libtool.m4: error: problem compiling FC test program"
13562 fi
13563
13564 $RM -f confest.$objext
13565
13566 # PORTME: override above test on systems where it is broken
13567
13568
13569 case " $postdeps_FC " in
13570 *" -lc "*) archive_cmds_need_lc_FC=no ;;
13571 esac
13572 compiler_lib_search_dirs_FC=
13573 if test -n "${compiler_lib_search_path_FC}"; then
13574 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13575 fi
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607 lt_prog_compiler_wl_FC=
13608 lt_prog_compiler_pic_FC=
13609 lt_prog_compiler_static_FC=
13610
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13612 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13613
13614 if test "$GCC" = yes; then
13615 lt_prog_compiler_wl_FC='-Wl,'
13616 lt_prog_compiler_static_FC='-static'
13617
13618 case $host_os in
13619 aix*)
13620 # All AIX code is PIC.
13621 if test "$host_cpu" = ia64; then
13622 # AIX 5 now supports IA64 processor
13623 lt_prog_compiler_static_FC='-Bstatic'
13624 fi
13625 lt_prog_compiler_pic_FC='-fPIC'
13626 ;;
13627
13628 amigaos*)
13629 case $host_cpu in
13630 powerpc)
13631 # see comment about AmigaOS4 .so support
13632 lt_prog_compiler_pic_FC='-fPIC'
13633 ;;
13634 m68k)
13635 # FIXME: we need at least 68020 code to build shared libraries, but
13636 # adding the `-m68020' flag to GCC prevents building anything better,
13637 # like `-m68040'.
13638 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
13639 ;;
13640 esac
13641 ;;
13642
13643 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13644 # PIC is the default for these OSes.
13645 ;;
13646
13647 mingw* | cygwin* | pw32* | os2* | cegcc*)
13648 # This hack is so that the source file can tell whether it is being
13649 # built for inclusion in a dll (and should export symbols for example).
13650 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13651 # (--disable-auto-import) libraries
13652 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13653 ;;
13654
13655 darwin* | rhapsody*)
13656 # PIC is the default on this platform
13657 # Common symbols not allowed in MH_DYLIB files
13658 lt_prog_compiler_pic_FC='-fno-common'
13659 ;;
13660
13661 haiku*)
13662 # PIC is the default for Haiku.
13663 # The "-static" flag exists, but is broken.
13664 lt_prog_compiler_static_FC=
13665 ;;
13666
13667 hpux*)
13668 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13669 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13670 # sets the default TLS model and affects inlining.
13671 case $host_cpu in
13672 hppa*64*)
13673 # +Z the default
13674 ;;
13675 *)
13676 lt_prog_compiler_pic_FC='-fPIC'
13677 ;;
13678 esac
13679 ;;
13680
13681 interix[3-9]*)
13682 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13683 # Instead, we relocate shared libraries at runtime.
13684 ;;
13685
13686 msdosdjgpp*)
13687 # Just because we use GCC doesn't mean we suddenly get shared libraries
13688 # on systems that don't support them.
13689 lt_prog_compiler_can_build_shared_FC=no
13690 enable_shared=no
13691 ;;
13692
13693 *nto* | *qnx*)
13694 # QNX uses GNU C++, but need to define -shared option too, otherwise
13695 # it will coredump.
13696 lt_prog_compiler_pic_FC='-fPIC -shared'
13697 ;;
13698
13699 sysv4*MP*)
13700 if test -d /usr/nec; then
13701 lt_prog_compiler_pic_FC=-Kconform_pic
13702 fi
13703 ;;
13704
13705 *)
13706 lt_prog_compiler_pic_FC='-fPIC'
13707 ;;
13708 esac
13709
13710 case $cc_basename in
13711 nvcc*) # Cuda Compiler Driver 2.2
13712 lt_prog_compiler_wl_FC='-Xlinker '
13713 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
13714 ;;
13715 esac
13716 else
13717 # PORTME Check for flag to pass linker flags through the system compiler.
13718 case $host_os in
13719 aix*)
13720 lt_prog_compiler_wl_FC='-Wl,'
13721 if test "$host_cpu" = ia64; then
13722 # AIX 5 now supports IA64 processor
13723 lt_prog_compiler_static_FC='-Bstatic'
13724 else
13725 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
13726 fi
13727 ;;
13728
13729 mingw* | cygwin* | pw32* | os2* | cegcc*)
13730 # This hack is so that the source file can tell whether it is being
13731 # built for inclusion in a dll (and should export symbols for example).
13732 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13733 ;;
13734
13735 hpux9* | hpux10* | hpux11*)
13736 lt_prog_compiler_wl_FC='-Wl,'
13737 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13738 # not for PA HP-UX.
13739 case $host_cpu in
13740 hppa*64*|ia64*)
13741 # +Z the default
13742 ;;
13743 *)
13744 lt_prog_compiler_pic_FC='+Z'
13745 ;;
13746 esac
13747 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13748 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
13749 ;;
13750
13751 irix5* | irix6* | nonstopux*)
13752 lt_prog_compiler_wl_FC='-Wl,'
13753 # PIC (with -KPIC) is the default.
13754 lt_prog_compiler_static_FC='-non_shared'
13755 ;;
13756
13757 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13758 case $cc_basename in
13759 # old Intel for x86_64 which still supported -KPIC.
13760 ecc*)
13761 lt_prog_compiler_wl_FC='-Wl,'
13762 lt_prog_compiler_pic_FC='-KPIC'
13763 lt_prog_compiler_static_FC='-static'
13764 ;;
13765 # icc used to be incompatible with GCC.
13766 # ICC 10 doesn't accept -KPIC any more.
13767 icc* | ifort*)
13768 lt_prog_compiler_wl_FC='-Wl,'
13769 lt_prog_compiler_pic_FC='-fPIC'
13770 lt_prog_compiler_static_FC='-static'
13771 ;;
13772 # Lahey Fortran 8.1.
13773 lf95*)
13774 lt_prog_compiler_wl_FC='-Wl,'
13775 lt_prog_compiler_pic_FC='--shared'
13776 lt_prog_compiler_static_FC='--static'
13777 ;;
13778 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13779 # Portland Group compilers (*not* the Pentium gcc compiler,
13780 # which looks to be a dead project)
13781 lt_prog_compiler_wl_FC='-Wl,'
13782 lt_prog_compiler_pic_FC='-fpic'
13783 lt_prog_compiler_static_FC='-Bstatic'
13784 ;;
13785 ccc*)
13786 lt_prog_compiler_wl_FC='-Wl,'
13787 # All Alpha code is PIC.
13788 lt_prog_compiler_static_FC='-non_shared'
13789 ;;
13790 xl* | bgxl* | bgf* | mpixl*)
13791 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13792 lt_prog_compiler_wl_FC='-Wl,'
13793 lt_prog_compiler_pic_FC='-qpic'
13794 lt_prog_compiler_static_FC='-qstaticlink'
13795 ;;
13796 *)
13797 case `$CC -V 2>&1 | sed 5q` in
13798 *Sun\ F* | *Sun*Fortran*)
13799 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13800 lt_prog_compiler_pic_FC='-KPIC'
13801 lt_prog_compiler_static_FC='-Bstatic'
13802 lt_prog_compiler_wl_FC=''
13803 ;;
13804 *Sun\ C*)
13805 # Sun C 5.9
13806 lt_prog_compiler_pic_FC='-KPIC'
13807 lt_prog_compiler_static_FC='-Bstatic'
13808 lt_prog_compiler_wl_FC='-Wl,'
13809 ;;
13810 esac
13811 ;;
13812 esac
13813 ;;
13814
13815 newsos6)
13816 lt_prog_compiler_pic_FC='-KPIC'
13817 lt_prog_compiler_static_FC='-Bstatic'
13818 ;;
13819
13820 *nto* | *qnx*)
13821 # QNX uses GNU C++, but need to define -shared option too, otherwise
13822 # it will coredump.
13823 lt_prog_compiler_pic_FC='-fPIC -shared'
13824 ;;
13825
13826 osf3* | osf4* | osf5*)
13827 lt_prog_compiler_wl_FC='-Wl,'
13828 # All OSF/1 code is PIC.
13829 lt_prog_compiler_static_FC='-non_shared'
13830 ;;
13831
13832 rdos*)
13833 lt_prog_compiler_static_FC='-non_shared'
13834 ;;
13835
13836 solaris*)
13837 lt_prog_compiler_pic_FC='-KPIC'
13838 lt_prog_compiler_static_FC='-Bstatic'
13839 case $cc_basename in
13840 f77* | f90* | f95*)
13841 lt_prog_compiler_wl_FC='-Qoption ld ';;
13842 *)
13843 lt_prog_compiler_wl_FC='-Wl,';;
13844 esac
13845 ;;
13846
13847 sunos4*)
13848 lt_prog_compiler_wl_FC='-Qoption ld '
13849 lt_prog_compiler_pic_FC='-PIC'
13850 lt_prog_compiler_static_FC='-Bstatic'
13851 ;;
13852
13853 sysv4 | sysv4.2uw2* | sysv4.3*)
13854 lt_prog_compiler_wl_FC='-Wl,'
13855 lt_prog_compiler_pic_FC='-KPIC'
13856 lt_prog_compiler_static_FC='-Bstatic'
13857 ;;
13858
13859 sysv4*MP*)
13860 if test -d /usr/nec ;then
13861 lt_prog_compiler_pic_FC='-Kconform_pic'
13862 lt_prog_compiler_static_FC='-Bstatic'
13863 fi
13864 ;;
13865
13866 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13867 lt_prog_compiler_wl_FC='-Wl,'
13868 lt_prog_compiler_pic_FC='-KPIC'
13869 lt_prog_compiler_static_FC='-Bstatic'
13870 ;;
13871
13872 unicos*)
13873 lt_prog_compiler_wl_FC='-Wl,'
13874 lt_prog_compiler_can_build_shared_FC=no
13875 ;;
13876
13877 uts4*)
13878 lt_prog_compiler_pic_FC='-pic'
13879 lt_prog_compiler_static_FC='-Bstatic'
13880 ;;
13881
13882 *)
13883 lt_prog_compiler_can_build_shared_FC=no
13884 ;;
13885 esac
13886 fi
13887
13888 case $host_os in
13889 # For platforms which do not support PIC, -DPIC is meaningless:
13890 *djgpp*)
13891 lt_prog_compiler_pic_FC=
13892 ;;
13893 *)
13894 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
13895 ;;
13896 esac
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
13898 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
13899
13900
13901
13902 #
13903 # Check to make sure the PIC flag actually works.
13904 #
13905 if test -n "$lt_prog_compiler_pic_FC"; then
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
13907 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
13908 if ${lt_cv_prog_compiler_pic_works_FC+:} false; then :
13909 $as_echo_n "(cached) " >&6
13910 else
13911 lt_cv_prog_compiler_pic_works_FC=no
13912 ac_outfile=conftest.$ac_objext
13913 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13914 lt_compiler_flag="$lt_prog_compiler_pic_FC"
13915 # Insert the option either (1) after the last *FLAGS variable, or
13916 # (2) before a word containing "conftest.", or (3) at the end.
13917 # Note that $ac_compile itself does not contain backslashes and begins
13918 # with a dollar sign (not a hyphen), so the echo should work correctly.
13919 # The option is referenced via a variable to avoid confusing sed.
13920 lt_compile=`echo "$ac_compile" | $SED \
13921 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13922 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13923 -e 's:$: $lt_compiler_flag:'`
13924 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13925 (eval "$lt_compile" 2>conftest.err)
13926 ac_status=$?
13927 cat conftest.err >&5
13928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929 if (exit $ac_status) && test -s "$ac_outfile"; then
13930 # The compiler can only warn and ignore the option if not recognized
13931 # So say no if there are warnings other than the usual output.
13932 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13933 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13934 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13935 lt_cv_prog_compiler_pic_works_FC=yes
13936 fi
13937 fi
13938 $RM conftest*
13939
13940 fi
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
13942 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
13943
13944 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
13945 case $lt_prog_compiler_pic_FC in
13946 "" | " "*) ;;
13947 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
13948 esac
13949 else
13950 lt_prog_compiler_pic_FC=
13951 lt_prog_compiler_can_build_shared_FC=no
13952 fi
13953
13954 fi
13955
13956
13957
13958 #
13959 # Check to make sure the static flag actually works.
13960 #
13961 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13963 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13964 if ${lt_cv_prog_compiler_static_works_FC+:} false; then :
13965 $as_echo_n "(cached) " >&6
13966 else
13967 lt_cv_prog_compiler_static_works_FC=no
13968 save_LDFLAGS="$LDFLAGS"
13969 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13970 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13971 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13972 # The linker can only warn and ignore the option if not recognized
13973 # So say no if there are warnings
13974 if test -s conftest.err; then
13975 # Append any errors to the config.log.
13976 cat conftest.err 1>&5
13977 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13978 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13979 if diff conftest.exp conftest.er2 >/dev/null; then
13980 lt_cv_prog_compiler_static_works_FC=yes
13981 fi
13982 else
13983 lt_cv_prog_compiler_static_works_FC=yes
13984 fi
13985 fi
13986 $RM -r conftest*
13987 LDFLAGS="$save_LDFLAGS"
13988
13989 fi
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
13991 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
13992
13993 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
13994 :
13995 else
13996 lt_prog_compiler_static_FC=
13997 fi
13998
13999
14000
14001
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14003 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14004 if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
14005 $as_echo_n "(cached) " >&6
14006 else
14007 lt_cv_prog_compiler_c_o_FC=no
14008 $RM -r conftest 2>/dev/null
14009 mkdir conftest
14010 cd conftest
14011 mkdir out
14012 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14013
14014 lt_compiler_flag="-o out/conftest2.$ac_objext"
14015 # Insert the option either (1) after the last *FLAGS variable, or
14016 # (2) before a word containing "conftest.", or (3) at the end.
14017 # Note that $ac_compile itself does not contain backslashes and begins
14018 # with a dollar sign (not a hyphen), so the echo should work correctly.
14019 lt_compile=`echo "$ac_compile" | $SED \
14020 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14021 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14022 -e 's:$: $lt_compiler_flag:'`
14023 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14024 (eval "$lt_compile" 2>out/conftest.err)
14025 ac_status=$?
14026 cat out/conftest.err >&5
14027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14029 then
14030 # The compiler can only warn and ignore the option if not recognized
14031 # So say no if there are warnings
14032 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14033 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14034 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14035 lt_cv_prog_compiler_c_o_FC=yes
14036 fi
14037 fi
14038 chmod u+w . 2>&5
14039 $RM conftest*
14040 # SGI C++ compiler will create directory out/ii_files/ for
14041 # template instantiation
14042 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14043 $RM out/* && rmdir out
14044 cd ..
14045 $RM -r conftest
14046 $RM conftest*
14047
14048 fi
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
14050 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
14051
14052
14053
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14055 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14056 if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
14057 $as_echo_n "(cached) " >&6
14058 else
14059 lt_cv_prog_compiler_c_o_FC=no
14060 $RM -r conftest 2>/dev/null
14061 mkdir conftest
14062 cd conftest
14063 mkdir out
14064 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14065
14066 lt_compiler_flag="-o out/conftest2.$ac_objext"
14067 # Insert the option either (1) after the last *FLAGS variable, or
14068 # (2) before a word containing "conftest.", or (3) at the end.
14069 # Note that $ac_compile itself does not contain backslashes and begins
14070 # with a dollar sign (not a hyphen), so the echo should work correctly.
14071 lt_compile=`echo "$ac_compile" | $SED \
14072 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14073 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14074 -e 's:$: $lt_compiler_flag:'`
14075 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14076 (eval "$lt_compile" 2>out/conftest.err)
14077 ac_status=$?
14078 cat out/conftest.err >&5
14079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14081 then
14082 # The compiler can only warn and ignore the option if not recognized
14083 # So say no if there are warnings
14084 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14085 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14086 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14087 lt_cv_prog_compiler_c_o_FC=yes
14088 fi
14089 fi
14090 chmod u+w . 2>&5
14091 $RM conftest*
14092 # SGI C++ compiler will create directory out/ii_files/ for
14093 # template instantiation
14094 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14095 $RM out/* && rmdir out
14096 cd ..
14097 $RM -r conftest
14098 $RM conftest*
14099
14100 fi
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
14102 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
14103
14104
14105
14106
14107 hard_links="nottested"
14108 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
14109 # do not overwrite the value of need_locks provided by the user
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14111 $as_echo_n "checking if we can lock with hard links... " >&6; }
14112 hard_links=yes
14113 $RM conftest*
14114 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14115 touch conftest.a
14116 ln conftest.a conftest.b 2>&5 || hard_links=no
14117 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14119 $as_echo "$hard_links" >&6; }
14120 if test "$hard_links" = no; then
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14122 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14123 need_locks=warn
14124 fi
14125 else
14126 need_locks=no
14127 fi
14128
14129
14130
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14132 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14133
14134 runpath_var=
14135 allow_undefined_flag_FC=
14136 always_export_symbols_FC=no
14137 archive_cmds_FC=
14138 archive_expsym_cmds_FC=
14139 compiler_needs_object_FC=no
14140 enable_shared_with_static_runtimes_FC=no
14141 export_dynamic_flag_spec_FC=
14142 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14143 hardcode_automatic_FC=no
14144 hardcode_direct_FC=no
14145 hardcode_direct_absolute_FC=no
14146 hardcode_libdir_flag_spec_FC=
14147 hardcode_libdir_flag_spec_ld_FC=
14148 hardcode_libdir_separator_FC=
14149 hardcode_minus_L_FC=no
14150 hardcode_shlibpath_var_FC=unsupported
14151 inherit_rpath_FC=no
14152 link_all_deplibs_FC=unknown
14153 module_cmds_FC=
14154 module_expsym_cmds_FC=
14155 old_archive_from_new_cmds_FC=
14156 old_archive_from_expsyms_cmds_FC=
14157 thread_safe_flag_spec_FC=
14158 whole_archive_flag_spec_FC=
14159 # include_expsyms should be a list of space-separated symbols to be *always*
14160 # included in the symbol list
14161 include_expsyms_FC=
14162 # exclude_expsyms can be an extended regexp of symbols to exclude
14163 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14164 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14165 # as well as any symbol that contains `d'.
14166 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14167 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14168 # platforms (ab)use it in PIC code, but their linkers get confused if
14169 # the symbol is explicitly referenced. Since portable code cannot
14170 # rely on this symbol name, it's probably fine to never include it in
14171 # preloaded symbol tables.
14172 # Exclude shared library initialization/finalization symbols.
14173 extract_expsyms_cmds=
14174
14175 case $host_os in
14176 cygwin* | mingw* | pw32* | cegcc*)
14177 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14178 # When not using gcc, we currently assume that we are using
14179 # Microsoft Visual C++.
14180 if test "$GCC" != yes; then
14181 with_gnu_ld=no
14182 fi
14183 ;;
14184 interix*)
14185 # we just hope/assume this is gcc and not c89 (= MSVC++)
14186 with_gnu_ld=yes
14187 ;;
14188 openbsd*)
14189 with_gnu_ld=no
14190 ;;
14191 esac
14192
14193 ld_shlibs_FC=yes
14194
14195 # On some targets, GNU ld is compatible enough with the native linker
14196 # that we're better off using the native interface for both.
14197 lt_use_gnu_ld_interface=no
14198 if test "$with_gnu_ld" = yes; then
14199 case $host_os in
14200 aix*)
14201 # The AIX port of GNU ld has always aspired to compatibility
14202 # with the native linker. However, as the warning in the GNU ld
14203 # block says, versions before 2.19.5* couldn't really create working
14204 # shared libraries, regardless of the interface used.
14205 case `$LD -v 2>&1` in
14206 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14207 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14208 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14209 *)
14210 lt_use_gnu_ld_interface=yes
14211 ;;
14212 esac
14213 ;;
14214 *)
14215 lt_use_gnu_ld_interface=yes
14216 ;;
14217 esac
14218 fi
14219
14220 if test "$lt_use_gnu_ld_interface" = yes; then
14221 # If archive_cmds runs LD, not CC, wlarc should be empty
14222 wlarc='${wl}'
14223
14224 # Set some defaults for GNU ld with shared library support. These
14225 # are reset later if shared libraries are not supported. Putting them
14226 # here allows them to be overridden if necessary.
14227 runpath_var=LD_RUN_PATH
14228 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14229 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
14230 # ancient GNU ld didn't support --whole-archive et. al.
14231 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14232 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14233 else
14234 whole_archive_flag_spec_FC=
14235 fi
14236 supports_anon_versioning=no
14237 case `$LD -v 2>&1` in
14238 *GNU\ gold*) supports_anon_versioning=yes ;;
14239 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14240 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14241 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14242 *\ 2.11.*) ;; # other 2.11 versions
14243 *) supports_anon_versioning=yes ;;
14244 esac
14245
14246 # See if GNU ld supports shared libraries.
14247 case $host_os in
14248 aix[3-9]*)
14249 # On AIX/PPC, the GNU linker is very broken
14250 if test "$host_cpu" != ia64; then
14251 ld_shlibs_FC=no
14252 cat <<_LT_EOF 1>&2
14253
14254 *** Warning: the GNU linker, at least up to release 2.19, is reported
14255 *** to be unable to reliably create shared libraries on AIX.
14256 *** Therefore, libtool is disabling shared libraries support. If you
14257 *** really care for shared libraries, you may want to install binutils
14258 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14259 *** You will then need to restart the configuration process.
14260
14261 _LT_EOF
14262 fi
14263 ;;
14264
14265 amigaos*)
14266 case $host_cpu in
14267 powerpc)
14268 # see comment about AmigaOS4 .so support
14269 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14270 archive_expsym_cmds_FC=''
14271 ;;
14272 m68k)
14273 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)'
14274 hardcode_libdir_flag_spec_FC='-L$libdir'
14275 hardcode_minus_L_FC=yes
14276 ;;
14277 esac
14278 ;;
14279
14280 beos*)
14281 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14282 allow_undefined_flag_FC=unsupported
14283 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14284 # support --undefined. This deserves some investigation. FIXME
14285 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14286 else
14287 ld_shlibs_FC=no
14288 fi
14289 ;;
14290
14291 cygwin* | mingw* | pw32* | cegcc*)
14292 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
14293 # as there is no search path for DLLs.
14294 hardcode_libdir_flag_spec_FC='-L$libdir'
14295 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
14296 allow_undefined_flag_FC=unsupported
14297 always_export_symbols_FC=no
14298 enable_shared_with_static_runtimes_FC=yes
14299 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14300
14301 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14302 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14303 # If the export-symbols file already is a .def file (1st line
14304 # is EXPORTS), use it as is; otherwise, prepend...
14305 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14306 cp $export_symbols $output_objdir/$soname.def;
14307 else
14308 echo EXPORTS > $output_objdir/$soname.def;
14309 cat $export_symbols >> $output_objdir/$soname.def;
14310 fi~
14311 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14312 else
14313 ld_shlibs_FC=no
14314 fi
14315 ;;
14316
14317 haiku*)
14318 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14319 link_all_deplibs_FC=yes
14320 ;;
14321
14322 interix[3-9]*)
14323 hardcode_direct_FC=no
14324 hardcode_shlibpath_var_FC=no
14325 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14326 export_dynamic_flag_spec_FC='${wl}-E'
14327 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14328 # Instead, shared libraries are loaded at an image base (0x10000000 by
14329 # default) and relocated if they conflict, which is a slow very memory
14330 # consuming and fragmenting process. To avoid this, we pick a random,
14331 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14332 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14333 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'
14334 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'
14335 ;;
14336
14337 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
14338 tmp_diet=no
14339 if test "$host_os" = linux-dietlibc; then
14340 case $cc_basename in
14341 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14342 esac
14343 fi
14344 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14345 && test "$tmp_diet" = no
14346 then
14347 tmp_addflag=' $pic_flag'
14348 tmp_sharedflag='-shared'
14349 case $cc_basename,$host_cpu in
14350 pgcc*) # Portland Group C compiler
14351 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'
14352 tmp_addflag=' $pic_flag'
14353 ;;
14354 pgf77* | pgf90* | pgf95* | pgfortran*)
14355 # Portland Group f77 and f90 compilers
14356 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'
14357 tmp_addflag=' $pic_flag -Mnomain' ;;
14358 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14359 tmp_addflag=' -i_dynamic' ;;
14360 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14361 tmp_addflag=' -i_dynamic -nofor_main' ;;
14362 ifc* | ifort*) # Intel Fortran compiler
14363 tmp_addflag=' -nofor_main' ;;
14364 lf95*) # Lahey Fortran 8.1
14365 whole_archive_flag_spec_FC=
14366 tmp_sharedflag='--shared' ;;
14367 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14368 tmp_sharedflag='-qmkshrobj'
14369 tmp_addflag= ;;
14370 nvcc*) # Cuda Compiler Driver 2.2
14371 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'
14372 compiler_needs_object_FC=yes
14373 ;;
14374 esac
14375 case `$CC -V 2>&1 | sed 5q` in
14376 *Sun\ C*) # Sun C 5.9
14377 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'
14378 compiler_needs_object_FC=yes
14379 tmp_sharedflag='-G' ;;
14380 *Sun\ F*) # Sun Fortran 8.3
14381 tmp_sharedflag='-G' ;;
14382 esac
14383 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14384
14385 if test "x$supports_anon_versioning" = xyes; then
14386 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14387 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14388 echo "local: *; };" >> $output_objdir/$libname.ver~
14389 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14390 fi
14391
14392 case $cc_basename in
14393 xlf* | bgf* | bgxlf* | mpixlf*)
14394 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14395 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
14396 hardcode_libdir_flag_spec_FC=
14397 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
14398 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
14399 if test "x$supports_anon_versioning" = xyes; then
14400 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14401 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14402 echo "local: *; };" >> $output_objdir/$libname.ver~
14403 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14404 fi
14405 ;;
14406 esac
14407 else
14408 ld_shlibs_FC=no
14409 fi
14410 ;;
14411
14412 netbsd*)
14413 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14414 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14415 wlarc=
14416 else
14417 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14418 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14419 fi
14420 ;;
14421
14422 solaris*)
14423 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14424 ld_shlibs_FC=no
14425 cat <<_LT_EOF 1>&2
14426
14427 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14428 *** create shared libraries on Solaris systems. Therefore, libtool
14429 *** is disabling shared libraries support. We urge you to upgrade GNU
14430 *** binutils to release 2.9.1 or newer. Another option is to modify
14431 *** your PATH or compiler configuration so that the native linker is
14432 *** used, and then restart.
14433
14434 _LT_EOF
14435 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14436 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14437 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14438 else
14439 ld_shlibs_FC=no
14440 fi
14441 ;;
14442
14443 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14444 case `$LD -v 2>&1` in
14445 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14446 ld_shlibs_FC=no
14447 cat <<_LT_EOF 1>&2
14448
14449 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14450 *** reliably create shared libraries on SCO systems. Therefore, libtool
14451 *** is disabling shared libraries support. We urge you to upgrade GNU
14452 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14453 *** your PATH or compiler configuration so that the native linker is
14454 *** used, and then restart.
14455
14456 _LT_EOF
14457 ;;
14458 *)
14459 # For security reasons, it is highly recommended that you always
14460 # use absolute paths for naming shared libraries, and exclude the
14461 # DT_RUNPATH tag from executables and libraries. But doing so
14462 # requires that you compile everything twice, which is a pain.
14463 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14464 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14465 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14466 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14467 else
14468 ld_shlibs_FC=no
14469 fi
14470 ;;
14471 esac
14472 ;;
14473
14474 sunos4*)
14475 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14476 wlarc=
14477 hardcode_direct_FC=yes
14478 hardcode_shlibpath_var_FC=no
14479 ;;
14480
14481 *)
14482 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14483 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14484 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14485 else
14486 ld_shlibs_FC=no
14487 fi
14488 ;;
14489 esac
14490
14491 if test "$ld_shlibs_FC" = no; then
14492 runpath_var=
14493 hardcode_libdir_flag_spec_FC=
14494 export_dynamic_flag_spec_FC=
14495 whole_archive_flag_spec_FC=
14496 fi
14497 else
14498 # PORTME fill in a description of your system's linker (not GNU ld)
14499 case $host_os in
14500 aix3*)
14501 allow_undefined_flag_FC=unsupported
14502 always_export_symbols_FC=yes
14503 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'
14504 # Note: this linker hardcodes the directories in LIBPATH if there
14505 # are no directories specified by -L.
14506 hardcode_minus_L_FC=yes
14507 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14508 # Neither direct hardcoding nor static linking is supported with a
14509 # broken collect2.
14510 hardcode_direct_FC=unsupported
14511 fi
14512 ;;
14513
14514 aix[4-9]*)
14515 if test "$host_cpu" = ia64; then
14516 # On IA64, the linker does run time linking by default, so we don't
14517 # have to do anything special.
14518 aix_use_runtimelinking=no
14519 exp_sym_flag='-Bexport'
14520 no_entry_flag=""
14521 else
14522 # If we're using GNU nm, then we don't want the "-C" option.
14523 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14524 # Also, AIX nm treats weak defined symbols like other global
14525 # defined symbols, whereas GNU nm marks them as "W".
14526 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14527 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'
14528 else
14529 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'
14530 fi
14531 aix_use_runtimelinking=no
14532
14533 # Test if we are trying to use run time linking or normal
14534 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14535 # need to do runtime linking.
14536 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14537 for ld_flag in $LDFLAGS; do
14538 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14539 aix_use_runtimelinking=yes
14540 break
14541 fi
14542 done
14543 ;;
14544 esac
14545
14546 exp_sym_flag='-bexport'
14547 no_entry_flag='-bnoentry'
14548 fi
14549
14550 # When large executables or shared objects are built, AIX ld can
14551 # have problems creating the table of contents. If linking a library
14552 # or program results in "error TOC overflow" add -mminimal-toc to
14553 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14554 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14555
14556 archive_cmds_FC=''
14557 hardcode_direct_FC=yes
14558 hardcode_direct_absolute_FC=yes
14559 hardcode_libdir_separator_FC=':'
14560 link_all_deplibs_FC=yes
14561 file_list_spec_FC='${wl}-f,'
14562
14563 if test "$GCC" = yes; then
14564 case $host_os in aix4.[012]|aix4.[012].*)
14565 # We only want to do this on AIX 4.2 and lower, the check
14566 # below for broken collect2 doesn't work under 4.3+
14567 collect2name=`${CC} -print-prog-name=collect2`
14568 if test -f "$collect2name" &&
14569 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14570 then
14571 # We have reworked collect2
14572 :
14573 else
14574 # We have old collect2
14575 hardcode_direct_FC=unsupported
14576 # It fails to find uninstalled libraries when the uninstalled
14577 # path is not listed in the libpath. Setting hardcode_minus_L
14578 # to unsupported forces relinking
14579 hardcode_minus_L_FC=yes
14580 hardcode_libdir_flag_spec_FC='-L$libdir'
14581 hardcode_libdir_separator_FC=
14582 fi
14583 ;;
14584 esac
14585 shared_flag='-shared'
14586 if test "$aix_use_runtimelinking" = yes; then
14587 shared_flag="$shared_flag "'${wl}-G'
14588 fi
14589 else
14590 # not using gcc
14591 if test "$host_cpu" = ia64; then
14592 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14593 # chokes on -Wl,-G. The following line is correct:
14594 shared_flag='-G'
14595 else
14596 if test "$aix_use_runtimelinking" = yes; then
14597 shared_flag='${wl}-G'
14598 else
14599 shared_flag='${wl}-bM:SRE'
14600 fi
14601 fi
14602 fi
14603
14604 export_dynamic_flag_spec_FC='${wl}-bexpall'
14605 # It seems that -bexpall does not export symbols beginning with
14606 # underscore (_), so it is better to generate a list of symbols to export.
14607 always_export_symbols_FC=yes
14608 if test "$aix_use_runtimelinking" = yes; then
14609 # Warning - without using the other runtime loading flags (-brtl),
14610 # -berok will link without error, but may produce a broken library.
14611 allow_undefined_flag_FC='-berok'
14612 # Determine the default libpath from the value encoded in an
14613 # empty executable.
14614 if test x$gcc_no_link = xyes; then
14615 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14616 fi
14617 cat > conftest.$ac_ext <<_ACEOF
14618 program main
14619
14620 end
14621 _ACEOF
14622 if ac_fn_fc_try_link "$LINENO"; then :
14623
14624 lt_aix_libpath_sed='
14625 /Import File Strings/,/^$/ {
14626 /^0/ {
14627 s/^0 *\(.*\)$/\1/
14628 p
14629 }
14630 }'
14631 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14632 # Check for a 64-bit object if we didn't find anything.
14633 if test -z "$aix_libpath"; then
14634 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14635 fi
14636 fi
14637 rm -f core conftest.err conftest.$ac_objext \
14638 conftest$ac_exeext conftest.$ac_ext
14639 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14640
14641 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14642 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"
14643 else
14644 if test "$host_cpu" = ia64; then
14645 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
14646 allow_undefined_flag_FC="-z nodefs"
14647 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"
14648 else
14649 # Determine the default libpath from the value encoded in an
14650 # empty executable.
14651 if test x$gcc_no_link = xyes; then
14652 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14653 fi
14654 cat > conftest.$ac_ext <<_ACEOF
14655 program main
14656
14657 end
14658 _ACEOF
14659 if ac_fn_fc_try_link "$LINENO"; then :
14660
14661 lt_aix_libpath_sed='
14662 /Import File Strings/,/^$/ {
14663 /^0/ {
14664 s/^0 *\(.*\)$/\1/
14665 p
14666 }
14667 }'
14668 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14669 # Check for a 64-bit object if we didn't find anything.
14670 if test -z "$aix_libpath"; then
14671 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14672 fi
14673 fi
14674 rm -f core conftest.err conftest.$ac_objext \
14675 conftest$ac_exeext conftest.$ac_ext
14676 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14677
14678 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14679 # Warning - without using the other run time loading flags,
14680 # -berok will link without error, but may produce a broken library.
14681 no_undefined_flag_FC=' ${wl}-bernotok'
14682 allow_undefined_flag_FC=' ${wl}-berok'
14683 if test "$with_gnu_ld" = yes; then
14684 # We only use this code for GNU lds that support --whole-archive.
14685 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14686 else
14687 # Exported symbols can be pulled into shared objects from archives
14688 whole_archive_flag_spec_FC='$convenience'
14689 fi
14690 archive_cmds_need_lc_FC=yes
14691 # This is similar to how AIX traditionally builds its shared libraries.
14692 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'
14693 fi
14694 fi
14695 ;;
14696
14697 amigaos*)
14698 case $host_cpu in
14699 powerpc)
14700 # see comment about AmigaOS4 .so support
14701 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14702 archive_expsym_cmds_FC=''
14703 ;;
14704 m68k)
14705 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)'
14706 hardcode_libdir_flag_spec_FC='-L$libdir'
14707 hardcode_minus_L_FC=yes
14708 ;;
14709 esac
14710 ;;
14711
14712 bsdi[45]*)
14713 export_dynamic_flag_spec_FC=-rdynamic
14714 ;;
14715
14716 cygwin* | mingw* | pw32* | cegcc*)
14717 # When not using gcc, we currently assume that we are using
14718 # Microsoft Visual C++.
14719 # hardcode_libdir_flag_spec is actually meaningless, as there is
14720 # no search path for DLLs.
14721 hardcode_libdir_flag_spec_FC=' '
14722 allow_undefined_flag_FC=unsupported
14723 # Tell ltmain to make .lib files, not .a files.
14724 libext=lib
14725 # Tell ltmain to make .dll files, not .so files.
14726 shrext_cmds=".dll"
14727 # FIXME: Setting linknames here is a bad hack.
14728 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14729 # The linker will automatically build a .lib file if we build a DLL.
14730 old_archive_from_new_cmds_FC='true'
14731 # FIXME: Should let the user specify the lib program.
14732 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
14733 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
14734 enable_shared_with_static_runtimes_FC=yes
14735 ;;
14736
14737 darwin* | rhapsody*)
14738
14739
14740 archive_cmds_need_lc_FC=no
14741 hardcode_direct_FC=no
14742 hardcode_automatic_FC=yes
14743 hardcode_shlibpath_var_FC=unsupported
14744 if test "$lt_cv_ld_force_load" = "yes"; then
14745 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\"`'
14746 else
14747 whole_archive_flag_spec_FC=''
14748 fi
14749 link_all_deplibs_FC=yes
14750 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
14751 case $cc_basename in
14752 ifort*) _lt_dar_can_shared=yes ;;
14753 *) _lt_dar_can_shared=$GCC ;;
14754 esac
14755 if test "$_lt_dar_can_shared" = "yes"; then
14756 output_verbose_link_cmd=func_echo_all
14757 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}"
14758 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14759 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}"
14760 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}"
14761
14762 else
14763 ld_shlibs_FC=no
14764 fi
14765
14766 ;;
14767
14768 dgux*)
14769 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14770 hardcode_libdir_flag_spec_FC='-L$libdir'
14771 hardcode_shlibpath_var_FC=no
14772 ;;
14773
14774 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14775 # support. Future versions do this automatically, but an explicit c++rt0.o
14776 # does not break anything, and helps significantly (at the cost of a little
14777 # extra space).
14778 freebsd2.2*)
14779 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14780 hardcode_libdir_flag_spec_FC='-R$libdir'
14781 hardcode_direct_FC=yes
14782 hardcode_shlibpath_var_FC=no
14783 ;;
14784
14785 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14786 freebsd2.*)
14787 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14788 hardcode_direct_FC=yes
14789 hardcode_minus_L_FC=yes
14790 hardcode_shlibpath_var_FC=no
14791 ;;
14792
14793 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14794 freebsd* | dragonfly*)
14795 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14796 hardcode_libdir_flag_spec_FC='-R$libdir'
14797 hardcode_direct_FC=yes
14798 hardcode_shlibpath_var_FC=no
14799 ;;
14800
14801 hpux9*)
14802 if test "$GCC" = yes; then
14803 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'
14804 else
14805 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'
14806 fi
14807 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14808 hardcode_libdir_separator_FC=:
14809 hardcode_direct_FC=yes
14810
14811 # hardcode_minus_L: Not really in the search PATH,
14812 # but as the default location of the library.
14813 hardcode_minus_L_FC=yes
14814 export_dynamic_flag_spec_FC='${wl}-E'
14815 ;;
14816
14817 hpux10*)
14818 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14819 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14820 else
14821 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14822 fi
14823 if test "$with_gnu_ld" = no; then
14824 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14825 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
14826 hardcode_libdir_separator_FC=:
14827 hardcode_direct_FC=yes
14828 hardcode_direct_absolute_FC=yes
14829 export_dynamic_flag_spec_FC='${wl}-E'
14830 # hardcode_minus_L: Not really in the search PATH,
14831 # but as the default location of the library.
14832 hardcode_minus_L_FC=yes
14833 fi
14834 ;;
14835
14836 hpux11*)
14837 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14838 case $host_cpu in
14839 hppa*64*)
14840 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14841 ;;
14842 ia64*)
14843 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14844 ;;
14845 *)
14846 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14847 ;;
14848 esac
14849 else
14850 case $host_cpu in
14851 hppa*64*)
14852 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14853 ;;
14854 ia64*)
14855 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14856 ;;
14857 *)
14858 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14859 ;;
14860 esac
14861 fi
14862 if test "$with_gnu_ld" = no; then
14863 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14864 hardcode_libdir_separator_FC=:
14865
14866 case $host_cpu in
14867 hppa*64*|ia64*)
14868 hardcode_direct_FC=no
14869 hardcode_shlibpath_var_FC=no
14870 ;;
14871 *)
14872 hardcode_direct_FC=yes
14873 hardcode_direct_absolute_FC=yes
14874 export_dynamic_flag_spec_FC='${wl}-E'
14875
14876 # hardcode_minus_L: Not really in the search PATH,
14877 # but as the default location of the library.
14878 hardcode_minus_L_FC=yes
14879 ;;
14880 esac
14881 fi
14882 ;;
14883
14884 irix5* | irix6* | nonstopux*)
14885 if test "$GCC" = yes; then
14886 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'
14887 # Try to use the -exported_symbol ld option, if it does not
14888 # work, assume that -exports_file does not work either and
14889 # implicitly export all symbols.
14890 save_LDFLAGS="$LDFLAGS"
14891 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14892 if test x$gcc_no_link = xyes; then
14893 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14894 fi
14895 cat > conftest.$ac_ext <<_ACEOF
14896 int foo(void) {}
14897 _ACEOF
14898 if ac_fn_fc_try_link "$LINENO"; then :
14899 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'
14900
14901 fi
14902 rm -f core conftest.err conftest.$ac_objext \
14903 conftest$ac_exeext conftest.$ac_ext
14904 LDFLAGS="$save_LDFLAGS"
14905 else
14906 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'
14907 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'
14908 fi
14909 archive_cmds_need_lc_FC='no'
14910 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14911 hardcode_libdir_separator_FC=:
14912 inherit_rpath_FC=yes
14913 link_all_deplibs_FC=yes
14914 ;;
14915
14916 netbsd*)
14917 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14918 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14919 else
14920 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14921 fi
14922 hardcode_libdir_flag_spec_FC='-R$libdir'
14923 hardcode_direct_FC=yes
14924 hardcode_shlibpath_var_FC=no
14925 ;;
14926
14927 newsos6)
14928 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14929 hardcode_direct_FC=yes
14930 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14931 hardcode_libdir_separator_FC=:
14932 hardcode_shlibpath_var_FC=no
14933 ;;
14934
14935 *nto* | *qnx*)
14936 ;;
14937
14938 openbsd*)
14939 if test -f /usr/libexec/ld.so; then
14940 hardcode_direct_FC=yes
14941 hardcode_shlibpath_var_FC=no
14942 hardcode_direct_absolute_FC=yes
14943 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14944 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14945 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14946 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14947 export_dynamic_flag_spec_FC='${wl}-E'
14948 else
14949 case $host_os in
14950 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14951 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14952 hardcode_libdir_flag_spec_FC='-R$libdir'
14953 ;;
14954 *)
14955 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14956 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14957 ;;
14958 esac
14959 fi
14960 else
14961 ld_shlibs_FC=no
14962 fi
14963 ;;
14964
14965 os2*)
14966 hardcode_libdir_flag_spec_FC='-L$libdir'
14967 hardcode_minus_L_FC=yes
14968 allow_undefined_flag_FC=unsupported
14969 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'
14970 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14971 ;;
14972
14973 osf3*)
14974 if test "$GCC" = yes; then
14975 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
14976 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'
14977 else
14978 allow_undefined_flag_FC=' -expect_unresolved \*'
14979 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'
14980 fi
14981 archive_cmds_need_lc_FC='no'
14982 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14983 hardcode_libdir_separator_FC=:
14984 ;;
14985
14986 osf4* | osf5*) # as osf3* with the addition of -msym flag
14987 if test "$GCC" = yes; then
14988 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
14989 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'
14990 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14991 else
14992 allow_undefined_flag_FC=' -expect_unresolved \*'
14993 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'
14994 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~
14995 $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'
14996
14997 # Both c and cxx compiler support -rpath directly
14998 hardcode_libdir_flag_spec_FC='-rpath $libdir'
14999 fi
15000 archive_cmds_need_lc_FC='no'
15001 hardcode_libdir_separator_FC=:
15002 ;;
15003
15004 solaris*)
15005 no_undefined_flag_FC=' -z defs'
15006 if test "$GCC" = yes; then
15007 wlarc='${wl}'
15008 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15009 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15010 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15011 else
15012 case `$CC -V 2>&1` in
15013 *"Compilers 5.0"*)
15014 wlarc=''
15015 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15016 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15017 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15018 ;;
15019 *)
15020 wlarc='${wl}'
15021 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15022 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15023 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15024 ;;
15025 esac
15026 fi
15027 hardcode_libdir_flag_spec_FC='-R$libdir'
15028 hardcode_shlibpath_var_FC=no
15029 case $host_os in
15030 solaris2.[0-5] | solaris2.[0-5].*) ;;
15031 *)
15032 # The compiler driver will combine and reorder linker options,
15033 # but understands `-z linker_flag'. GCC discards it without `$wl',
15034 # but is careful enough not to reorder.
15035 # Supported since Solaris 2.6 (maybe 2.5.1?)
15036 if test "$GCC" = yes; then
15037 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15038 else
15039 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
15040 fi
15041 ;;
15042 esac
15043 link_all_deplibs_FC=yes
15044 ;;
15045
15046 sunos4*)
15047 if test "x$host_vendor" = xsequent; then
15048 # Use $CC to link under sequent, because it throws in some extra .o
15049 # files that make .init and .fini sections work.
15050 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15051 else
15052 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15053 fi
15054 hardcode_libdir_flag_spec_FC='-L$libdir'
15055 hardcode_direct_FC=yes
15056 hardcode_minus_L_FC=yes
15057 hardcode_shlibpath_var_FC=no
15058 ;;
15059
15060 sysv4)
15061 case $host_vendor in
15062 sni)
15063 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15064 hardcode_direct_FC=yes # is this really true???
15065 ;;
15066 siemens)
15067 ## LD is ld it makes a PLAMLIB
15068 ## CC just makes a GrossModule.
15069 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15070 reload_cmds_FC='$CC -r -o $output$reload_objs'
15071 hardcode_direct_FC=no
15072 ;;
15073 motorola)
15074 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15075 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
15076 ;;
15077 esac
15078 runpath_var='LD_RUN_PATH'
15079 hardcode_shlibpath_var_FC=no
15080 ;;
15081
15082 sysv4.3*)
15083 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15084 hardcode_shlibpath_var_FC=no
15085 export_dynamic_flag_spec_FC='-Bexport'
15086 ;;
15087
15088 sysv4*MP*)
15089 if test -d /usr/nec; then
15090 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15091 hardcode_shlibpath_var_FC=no
15092 runpath_var=LD_RUN_PATH
15093 hardcode_runpath_var=yes
15094 ld_shlibs_FC=yes
15095 fi
15096 ;;
15097
15098 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15099 no_undefined_flag_FC='${wl}-z,text'
15100 archive_cmds_need_lc_FC=no
15101 hardcode_shlibpath_var_FC=no
15102 runpath_var='LD_RUN_PATH'
15103
15104 if test "$GCC" = yes; then
15105 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15106 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15107 else
15108 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15109 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15110 fi
15111 ;;
15112
15113 sysv5* | sco3.2v5* | sco5v6*)
15114 # Note: We can NOT use -z defs as we might desire, because we do not
15115 # link with -lc, and that would cause any symbols used from libc to
15116 # always be unresolved, which means just about no library would
15117 # ever link correctly. If we're not using GNU ld we use -z text
15118 # though, which does catch some bad symbols but isn't as heavy-handed
15119 # as -z defs.
15120 no_undefined_flag_FC='${wl}-z,text'
15121 allow_undefined_flag_FC='${wl}-z,nodefs'
15122 archive_cmds_need_lc_FC=no
15123 hardcode_shlibpath_var_FC=no
15124 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
15125 hardcode_libdir_separator_FC=':'
15126 link_all_deplibs_FC=yes
15127 export_dynamic_flag_spec_FC='${wl}-Bexport'
15128 runpath_var='LD_RUN_PATH'
15129
15130 if test "$GCC" = yes; then
15131 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15132 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15133 else
15134 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15135 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15136 fi
15137 ;;
15138
15139 uts4*)
15140 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15141 hardcode_libdir_flag_spec_FC='-L$libdir'
15142 hardcode_shlibpath_var_FC=no
15143 ;;
15144
15145 *)
15146 ld_shlibs_FC=no
15147 ;;
15148 esac
15149
15150 if test x$host_vendor = xsni; then
15151 case $host in
15152 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15153 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
15154 ;;
15155 esac
15156 fi
15157 fi
15158
15159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
15160 $as_echo "$ld_shlibs_FC" >&6; }
15161 test "$ld_shlibs_FC" = no && can_build_shared=no
15162
15163 with_gnu_ld_FC=$with_gnu_ld
15164
15165
15166
15167
15168
15169
15170 #
15171 # Do we need to explicitly link libc?
15172 #
15173 case "x$archive_cmds_need_lc_FC" in
15174 x|xyes)
15175 # Assume -lc should be added
15176 archive_cmds_need_lc_FC=yes
15177
15178 if test "$enable_shared" = yes && test "$GCC" = yes; then
15179 case $archive_cmds_FC in
15180 *'~'*)
15181 # FIXME: we may have to deal with multi-command sequences.
15182 ;;
15183 '$CC '*)
15184 # Test whether the compiler implicitly links with -lc since on some
15185 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15186 # to ld, don't add -lc before -lgcc.
15187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15188 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15189 if ${lt_cv_archive_cmds_need_lc_FC+:} false; then :
15190 $as_echo_n "(cached) " >&6
15191 else
15192 $RM conftest*
15193 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15194
15195 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15196 (eval $ac_compile) 2>&5
15197 ac_status=$?
15198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15199 test $ac_status = 0; } 2>conftest.err; then
15200 soname=conftest
15201 lib=conftest
15202 libobjs=conftest.$ac_objext
15203 deplibs=
15204 wl=$lt_prog_compiler_wl_FC
15205 pic_flag=$lt_prog_compiler_pic_FC
15206 compiler_flags=-v
15207 linker_flags=-v
15208 verstring=
15209 output_objdir=.
15210 libname=conftest
15211 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
15212 allow_undefined_flag_FC=
15213 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15214 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15215 ac_status=$?
15216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15217 test $ac_status = 0; }
15218 then
15219 lt_cv_archive_cmds_need_lc_FC=no
15220 else
15221 lt_cv_archive_cmds_need_lc_FC=yes
15222 fi
15223 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
15224 else
15225 cat conftest.err 1>&5
15226 fi
15227 $RM conftest*
15228
15229 fi
15230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
15231 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
15232 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
15233 ;;
15234 esac
15235 fi
15236 ;;
15237 esac
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
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15303 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15304
15305 library_names_spec=
15306 libname_spec='lib$name'
15307 soname_spec=
15308 shrext_cmds=".so"
15309 postinstall_cmds=
15310 postuninstall_cmds=
15311 finish_cmds=
15312 finish_eval=
15313 shlibpath_var=
15314 shlibpath_overrides_runpath=unknown
15315 version_type=none
15316 dynamic_linker="$host_os ld.so"
15317 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15318 need_lib_prefix=unknown
15319 hardcode_into_libs=no
15320
15321 # when you set need_version to no, make sure it does not cause -set_version
15322 # flags to be left without arguments
15323 need_version=unknown
15324
15325 case $host_os in
15326 aix3*)
15327 version_type=linux
15328 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15329 shlibpath_var=LIBPATH
15330
15331 # AIX 3 has no versioning support, so we append a major version to the name.
15332 soname_spec='${libname}${release}${shared_ext}$major'
15333 ;;
15334
15335 aix[4-9]*)
15336 version_type=linux
15337 need_lib_prefix=no
15338 need_version=no
15339 hardcode_into_libs=yes
15340 if test "$host_cpu" = ia64; then
15341 # AIX 5 supports IA64
15342 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15343 shlibpath_var=LD_LIBRARY_PATH
15344 else
15345 # With GCC up to 2.95.x, collect2 would create an import file
15346 # for dependence libraries. The import file would start with
15347 # the line `#! .'. This would cause the generated library to
15348 # depend on `.', always an invalid library. This was fixed in
15349 # development snapshots of GCC prior to 3.0.
15350 case $host_os in
15351 aix4 | aix4.[01] | aix4.[01].*)
15352 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15353 echo ' yes '
15354 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15355 :
15356 else
15357 can_build_shared=no
15358 fi
15359 ;;
15360 esac
15361 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15362 # soname into executable. Probably we can add versioning support to
15363 # collect2, so additional links can be useful in future.
15364 if test "$aix_use_runtimelinking" = yes; then
15365 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15366 # instead of lib<name>.a to let people know that these are not
15367 # typical AIX shared libraries.
15368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15369 else
15370 # We preserve .a as extension for shared libraries through AIX4.2
15371 # and later when we are not doing run time linking.
15372 library_names_spec='${libname}${release}.a $libname.a'
15373 soname_spec='${libname}${release}${shared_ext}$major'
15374 fi
15375 shlibpath_var=LIBPATH
15376 fi
15377 ;;
15378
15379 amigaos*)
15380 case $host_cpu in
15381 powerpc)
15382 # Since July 2007 AmigaOS4 officially supports .so libraries.
15383 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15385 ;;
15386 m68k)
15387 library_names_spec='$libname.ixlibrary $libname.a'
15388 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15389 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'
15390 ;;
15391 esac
15392 ;;
15393
15394 beos*)
15395 library_names_spec='${libname}${shared_ext}'
15396 dynamic_linker="$host_os ld.so"
15397 shlibpath_var=LIBRARY_PATH
15398 ;;
15399
15400 bsdi[45]*)
15401 version_type=linux
15402 need_version=no
15403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15404 soname_spec='${libname}${release}${shared_ext}$major'
15405 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15406 shlibpath_var=LD_LIBRARY_PATH
15407 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15408 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15409 # the default ld.so.conf also contains /usr/contrib/lib and
15410 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15411 # libtool to hard-code these into programs
15412 ;;
15413
15414 cygwin* | mingw* | pw32* | cegcc*)
15415 version_type=windows
15416 shrext_cmds=".dll"
15417 need_version=no
15418 need_lib_prefix=no
15419
15420 case $GCC,$host_os in
15421 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15422 library_names_spec='$libname.dll.a'
15423 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15424 postinstall_cmds='base_file=`basename \${file}`~
15425 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15426 dldir=$destdir/`dirname \$dlpath`~
15427 test -d \$dldir || mkdir -p \$dldir~
15428 $install_prog $dir/$dlname \$dldir/$dlname~
15429 chmod a+x \$dldir/$dlname~
15430 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15431 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15432 fi'
15433 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15434 dlpath=$dir/\$dldll~
15435 $RM \$dlpath'
15436 shlibpath_overrides_runpath=yes
15437
15438 case $host_os in
15439 cygwin*)
15440 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15441 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15442
15443 ;;
15444 mingw* | cegcc*)
15445 # MinGW DLLs use traditional 'lib' prefix
15446 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15447 ;;
15448 pw32*)
15449 # pw32 DLLs use 'pw' prefix rather than 'lib'
15450 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15451 ;;
15452 esac
15453 ;;
15454
15455 *)
15456 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15457 ;;
15458 esac
15459 dynamic_linker='Win32 ld.exe'
15460 # FIXME: first we should search . and the directory the executable is in
15461 shlibpath_var=PATH
15462 ;;
15463
15464 darwin* | rhapsody*)
15465 dynamic_linker="$host_os dyld"
15466 version_type=darwin
15467 need_lib_prefix=no
15468 need_version=no
15469 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15470 soname_spec='${libname}${release}${major}$shared_ext'
15471 shlibpath_overrides_runpath=yes
15472 shlibpath_var=DYLD_LIBRARY_PATH
15473 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15474
15475 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15476 ;;
15477
15478 dgux*)
15479 version_type=linux
15480 need_lib_prefix=no
15481 need_version=no
15482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15483 soname_spec='${libname}${release}${shared_ext}$major'
15484 shlibpath_var=LD_LIBRARY_PATH
15485 ;;
15486
15487 freebsd* | dragonfly*)
15488 # DragonFly does not have aout. When/if they implement a new
15489 # versioning mechanism, adjust this.
15490 if test -x /usr/bin/objformat; then
15491 objformat=`/usr/bin/objformat`
15492 else
15493 case $host_os in
15494 freebsd[23].*) objformat=aout ;;
15495 *) objformat=elf ;;
15496 esac
15497 fi
15498 version_type=freebsd-$objformat
15499 case $version_type in
15500 freebsd-elf*)
15501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15502 need_version=no
15503 need_lib_prefix=no
15504 ;;
15505 freebsd-*)
15506 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15507 need_version=yes
15508 ;;
15509 esac
15510 shlibpath_var=LD_LIBRARY_PATH
15511 case $host_os in
15512 freebsd2.*)
15513 shlibpath_overrides_runpath=yes
15514 ;;
15515 freebsd3.[01]* | freebsdelf3.[01]*)
15516 shlibpath_overrides_runpath=yes
15517 hardcode_into_libs=yes
15518 ;;
15519 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15520 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15521 shlibpath_overrides_runpath=no
15522 hardcode_into_libs=yes
15523 ;;
15524 *) # from 4.6 on, and DragonFly
15525 shlibpath_overrides_runpath=yes
15526 hardcode_into_libs=yes
15527 ;;
15528 esac
15529 ;;
15530
15531 haiku*)
15532 version_type=linux
15533 need_lib_prefix=no
15534 need_version=no
15535 dynamic_linker="$host_os runtime_loader"
15536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15537 soname_spec='${libname}${release}${shared_ext}$major'
15538 shlibpath_var=LIBRARY_PATH
15539 shlibpath_overrides_runpath=yes
15540 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
15541 hardcode_into_libs=yes
15542 ;;
15543
15544 hpux9* | hpux10* | hpux11*)
15545 # Give a soname corresponding to the major version so that dld.sl refuses to
15546 # link against other versions.
15547 version_type=sunos
15548 need_lib_prefix=no
15549 need_version=no
15550 case $host_cpu in
15551 ia64*)
15552 shrext_cmds='.so'
15553 hardcode_into_libs=yes
15554 dynamic_linker="$host_os dld.so"
15555 shlibpath_var=LD_LIBRARY_PATH
15556 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32; then
15560 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15561 else
15562 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15563 fi
15564 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15565 ;;
15566 hppa*64*)
15567 shrext_cmds='.sl'
15568 hardcode_into_libs=yes
15569 dynamic_linker="$host_os dld.sl"
15570 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15571 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15573 soname_spec='${libname}${release}${shared_ext}$major'
15574 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15575 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15576 ;;
15577 *)
15578 shrext_cmds='.sl'
15579 dynamic_linker="$host_os dld.sl"
15580 shlibpath_var=SHLIB_PATH
15581 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15583 soname_spec='${libname}${release}${shared_ext}$major'
15584 ;;
15585 esac
15586 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15587 postinstall_cmds='chmod 555 $lib'
15588 # or fails outright, so override atomically:
15589 install_override_mode=555
15590 ;;
15591
15592 interix[3-9]*)
15593 version_type=linux
15594 need_lib_prefix=no
15595 need_version=no
15596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15597 soname_spec='${libname}${release}${shared_ext}$major'
15598 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15599 shlibpath_var=LD_LIBRARY_PATH
15600 shlibpath_overrides_runpath=no
15601 hardcode_into_libs=yes
15602 ;;
15603
15604 irix5* | irix6* | nonstopux*)
15605 case $host_os in
15606 nonstopux*) version_type=nonstopux ;;
15607 *)
15608 if test "$lt_cv_prog_gnu_ld" = yes; then
15609 version_type=linux
15610 else
15611 version_type=irix
15612 fi ;;
15613 esac
15614 need_lib_prefix=no
15615 need_version=no
15616 soname_spec='${libname}${release}${shared_ext}$major'
15617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15618 case $host_os in
15619 irix5* | nonstopux*)
15620 libsuff= shlibsuff=
15621 ;;
15622 *)
15623 case $LD in # libtool.m4 will add one of these switches to LD
15624 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15625 libsuff= shlibsuff= libmagic=32-bit;;
15626 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15627 libsuff=32 shlibsuff=N32 libmagic=N32;;
15628 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15629 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15630 *) libsuff= shlibsuff= libmagic=never-match;;
15631 esac
15632 ;;
15633 esac
15634 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15635 shlibpath_overrides_runpath=no
15636 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15637 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15638 hardcode_into_libs=yes
15639 ;;
15640
15641 # No shared lib support for Linux oldld, aout, or coff.
15642 linux*oldld* | linux*aout* | linux*coff*)
15643 dynamic_linker=no
15644 ;;
15645
15646 # This must be Linux ELF.
15647
15648 # uclinux* changes (here and below) have been submitted to the libtool
15649 # project, but have not yet been accepted: they are GCC-local changes
15650 # for the time being. (See
15651 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
15652 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
15653 version_type=linux
15654 need_lib_prefix=no
15655 need_version=no
15656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15657 soname_spec='${libname}${release}${shared_ext}$major'
15658 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15659 shlibpath_var=LD_LIBRARY_PATH
15660 shlibpath_overrides_runpath=no
15661
15662 # Some binutils ld are patched to set DT_RUNPATH
15663 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15664 $as_echo_n "(cached) " >&6
15665 else
15666 lt_cv_shlibpath_overrides_runpath=no
15667 save_LDFLAGS=$LDFLAGS
15668 save_libdir=$libdir
15669 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
15670 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
15671 if test x$gcc_no_link = xyes; then
15672 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
15673 fi
15674 cat > conftest.$ac_ext <<_ACEOF
15675 program main
15676
15677 end
15678 _ACEOF
15679 if ac_fn_fc_try_link "$LINENO"; then :
15680 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15681 lt_cv_shlibpath_overrides_runpath=yes
15682 fi
15683 fi
15684 rm -f core conftest.err conftest.$ac_objext \
15685 conftest$ac_exeext conftest.$ac_ext
15686 LDFLAGS=$save_LDFLAGS
15687 libdir=$save_libdir
15688
15689 fi
15690
15691 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15692
15693 # This implies no fast_install, which is unacceptable.
15694 # Some rework will be needed to allow for fast_install
15695 # before this can be enabled.
15696 hardcode_into_libs=yes
15697
15698 # Append ld.so.conf contents to the search path
15699 if test -f /etc/ld.so.conf; then
15700 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' ' '`
15701 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15702 fi
15703
15704 # We used to test for /lib/ld.so.1 and disable shared libraries on
15705 # powerpc, because MkLinux only supported shared libraries with the
15706 # GNU dynamic linker. Since this was broken with cross compilers,
15707 # most powerpc-linux boxes support dynamic linking these days and
15708 # people can always --disable-shared, the test was removed, and we
15709 # assume the GNU/Linux dynamic linker is in use.
15710 dynamic_linker='GNU/Linux ld.so'
15711 ;;
15712
15713 netbsd*)
15714 version_type=sunos
15715 need_lib_prefix=no
15716 need_version=no
15717 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15719 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15720 dynamic_linker='NetBSD (a.out) ld.so'
15721 else
15722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15723 soname_spec='${libname}${release}${shared_ext}$major'
15724 dynamic_linker='NetBSD ld.elf_so'
15725 fi
15726 shlibpath_var=LD_LIBRARY_PATH
15727 shlibpath_overrides_runpath=yes
15728 hardcode_into_libs=yes
15729 ;;
15730
15731 newsos6)
15732 version_type=linux
15733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15734 shlibpath_var=LD_LIBRARY_PATH
15735 shlibpath_overrides_runpath=yes
15736 ;;
15737
15738 *nto* | *qnx*)
15739 version_type=qnx
15740 need_lib_prefix=no
15741 need_version=no
15742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15743 soname_spec='${libname}${release}${shared_ext}$major'
15744 shlibpath_var=LD_LIBRARY_PATH
15745 shlibpath_overrides_runpath=no
15746 hardcode_into_libs=yes
15747 dynamic_linker='ldqnx.so'
15748 ;;
15749
15750 openbsd*)
15751 version_type=sunos
15752 sys_lib_dlsearch_path_spec="/usr/lib"
15753 need_lib_prefix=no
15754 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15755 case $host_os in
15756 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15757 *) need_version=no ;;
15758 esac
15759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15760 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15761 shlibpath_var=LD_LIBRARY_PATH
15762 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15763 case $host_os in
15764 openbsd2.[89] | openbsd2.[89].*)
15765 shlibpath_overrides_runpath=no
15766 ;;
15767 *)
15768 shlibpath_overrides_runpath=yes
15769 ;;
15770 esac
15771 else
15772 shlibpath_overrides_runpath=yes
15773 fi
15774 ;;
15775
15776 os2*)
15777 libname_spec='$name'
15778 shrext_cmds=".dll"
15779 need_lib_prefix=no
15780 library_names_spec='$libname${shared_ext} $libname.a'
15781 dynamic_linker='OS/2 ld.exe'
15782 shlibpath_var=LIBPATH
15783 ;;
15784
15785 osf3* | osf4* | osf5*)
15786 version_type=osf
15787 need_lib_prefix=no
15788 need_version=no
15789 soname_spec='${libname}${release}${shared_ext}$major'
15790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15791 shlibpath_var=LD_LIBRARY_PATH
15792 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15793 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15794 ;;
15795
15796 rdos*)
15797 dynamic_linker=no
15798 ;;
15799
15800 solaris*)
15801 version_type=linux
15802 need_lib_prefix=no
15803 need_version=no
15804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15805 soname_spec='${libname}${release}${shared_ext}$major'
15806 shlibpath_var=LD_LIBRARY_PATH
15807 shlibpath_overrides_runpath=yes
15808 hardcode_into_libs=yes
15809 # ldd complains unless libraries are executable
15810 postinstall_cmds='chmod +x $lib'
15811 ;;
15812
15813 sunos4*)
15814 version_type=sunos
15815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15816 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15817 shlibpath_var=LD_LIBRARY_PATH
15818 shlibpath_overrides_runpath=yes
15819 if test "$with_gnu_ld" = yes; then
15820 need_lib_prefix=no
15821 fi
15822 need_version=yes
15823 ;;
15824
15825 sysv4 | sysv4.3*)
15826 version_type=linux
15827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15828 soname_spec='${libname}${release}${shared_ext}$major'
15829 shlibpath_var=LD_LIBRARY_PATH
15830 case $host_vendor in
15831 sni)
15832 shlibpath_overrides_runpath=no
15833 need_lib_prefix=no
15834 runpath_var=LD_RUN_PATH
15835 ;;
15836 siemens)
15837 need_lib_prefix=no
15838 ;;
15839 motorola)
15840 need_lib_prefix=no
15841 need_version=no
15842 shlibpath_overrides_runpath=no
15843 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15844 ;;
15845 esac
15846 ;;
15847
15848 sysv4*MP*)
15849 if test -d /usr/nec ;then
15850 version_type=linux
15851 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15852 soname_spec='$libname${shared_ext}.$major'
15853 shlibpath_var=LD_LIBRARY_PATH
15854 fi
15855 ;;
15856
15857 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15858 version_type=freebsd-elf
15859 need_lib_prefix=no
15860 need_version=no
15861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15862 soname_spec='${libname}${release}${shared_ext}$major'
15863 shlibpath_var=LD_LIBRARY_PATH
15864 shlibpath_overrides_runpath=yes
15865 hardcode_into_libs=yes
15866 if test "$with_gnu_ld" = yes; then
15867 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15868 else
15869 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15870 case $host_os in
15871 sco3.2v5*)
15872 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15873 ;;
15874 esac
15875 fi
15876 sys_lib_dlsearch_path_spec='/usr/lib'
15877 ;;
15878
15879 tpf*)
15880 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15881 version_type=linux
15882 need_lib_prefix=no
15883 need_version=no
15884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15885 shlibpath_var=LD_LIBRARY_PATH
15886 shlibpath_overrides_runpath=no
15887 hardcode_into_libs=yes
15888 ;;
15889
15890 uts4*)
15891 version_type=linux
15892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15893 soname_spec='${libname}${release}${shared_ext}$major'
15894 shlibpath_var=LD_LIBRARY_PATH
15895 ;;
15896
15897 *)
15898 dynamic_linker=no
15899 ;;
15900 esac
15901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15902 $as_echo "$dynamic_linker" >&6; }
15903 test "$dynamic_linker" = no && can_build_shared=no
15904
15905 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15906 if test "$GCC" = yes; then
15907 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15908 fi
15909
15910 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15911 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15912 fi
15913 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15914 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15915 fi
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15955 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15956 hardcode_action_FC=
15957 if test -n "$hardcode_libdir_flag_spec_FC" ||
15958 test -n "$runpath_var_FC" ||
15959 test "X$hardcode_automatic_FC" = "Xyes" ; then
15960
15961 # We can hardcode non-existent directories.
15962 if test "$hardcode_direct_FC" != no &&
15963 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15964 # have to relink, otherwise we might link with an installed library
15965 # when we should be linking with a yet-to-be-installed one
15966 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
15967 test "$hardcode_minus_L_FC" != no; then
15968 # Linking always hardcodes the temporary library directory.
15969 hardcode_action_FC=relink
15970 else
15971 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15972 hardcode_action_FC=immediate
15973 fi
15974 else
15975 # We cannot hardcode anything, or else we can only hardcode existing
15976 # directories.
15977 hardcode_action_FC=unsupported
15978 fi
15979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
15980 $as_echo "$hardcode_action_FC" >&6; }
15981
15982 if test "$hardcode_action_FC" = relink ||
15983 test "$inherit_rpath_FC" = yes; then
15984 # Fast installation is not supported
15985 enable_fast_install=no
15986 elif test "$shlibpath_overrides_runpath" = yes ||
15987 test "$enable_shared" = no; then
15988 # Fast installation is not necessary
15989 enable_fast_install=needless
15990 fi
15991
15992
15993
15994
15995
15996
15997
15998 fi # test -n "$compiler"
15999
16000 GCC=$lt_save_GCC
16001 CC="$lt_save_CC"
16002 fi # test "$_lt_disable_FC" != yes
16003
16004 ac_ext=c
16005 ac_cpp='$CPP $CPPFLAGS'
16006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16009
16010
16011
16012 # extra LD Flags which are required for targets
16013 case "${host}" in
16014 *-darwin*)
16015 # Darwin needs -single_module when linking libgfortran
16016 extra_ldflags_libgfortran=-Wl,-single_module
16017 ;;
16018 esac
16019
16020
16021 # We need a working compiler at that point, otherwise give a clear
16022 # error message and bail out.
16023
16024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GNU Fortran compiler is working" >&5
16025 $as_echo_n "checking whether the GNU Fortran compiler is working... " >&6; }
16026 ac_ext=${ac_fc_srcext-f}
16027 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
16028 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
16029 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
16030
16031 cat > conftest.$ac_ext <<_ACEOF
16032
16033 program foo
16034 real, parameter :: bar = sin (12.34 / 2.5)
16035 end program foo
16036 _ACEOF
16037 if ac_fn_fc_try_compile "$LINENO"; then :
16038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16039 $as_echo "yes" >&6; }
16040 else
16041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16042 $as_echo "no" >&6; }
16043 as_fn_error $? "GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla, attaching $PWD/config.log" "$LINENO" 5
16044
16045 fi
16046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16047 ac_ext=c
16048 ac_cpp='$CPP $CPPFLAGS'
16049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16052
16053
16054
16055 # Check whether --enable-largefile was given.
16056 if test "${enable_largefile+set}" = set; then :
16057 enableval=$enable_largefile;
16058 fi
16059
16060 if test "$enable_largefile" != no; then
16061
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
16063 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
16064 if ${ac_cv_sys_largefile_CC+:} false; then :
16065 $as_echo_n "(cached) " >&6
16066 else
16067 ac_cv_sys_largefile_CC=no
16068 if test "$GCC" != yes; then
16069 ac_save_CC=$CC
16070 while :; do
16071 # IRIX 6.2 and later do not support large files by default,
16072 # so use the C compiler's -n32 option if that helps.
16073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16074 /* end confdefs.h. */
16075 #include <sys/types.h>
16076 /* Check that off_t can represent 2**63 - 1 correctly.
16077 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16078 since some C++ compilers masquerading as C compilers
16079 incorrectly reject 9223372036854775807. */
16080 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16081 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16082 && LARGE_OFF_T % 2147483647 == 1)
16083 ? 1 : -1];
16084 int
16085 main ()
16086 {
16087
16088 ;
16089 return 0;
16090 }
16091 _ACEOF
16092 if ac_fn_c_try_compile "$LINENO"; then :
16093 break
16094 fi
16095 rm -f core conftest.err conftest.$ac_objext
16096 CC="$CC -n32"
16097 if ac_fn_c_try_compile "$LINENO"; then :
16098 ac_cv_sys_largefile_CC=' -n32'; break
16099 fi
16100 rm -f core conftest.err conftest.$ac_objext
16101 break
16102 done
16103 CC=$ac_save_CC
16104 rm -f conftest.$ac_ext
16105 fi
16106 fi
16107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
16108 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
16109 if test "$ac_cv_sys_largefile_CC" != no; then
16110 CC=$CC$ac_cv_sys_largefile_CC
16111 fi
16112
16113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16114 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
16115 if ${ac_cv_sys_file_offset_bits+:} false; then :
16116 $as_echo_n "(cached) " >&6
16117 else
16118 while :; do
16119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16120 /* end confdefs.h. */
16121 #include <sys/types.h>
16122 /* Check that off_t can represent 2**63 - 1 correctly.
16123 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16124 since some C++ compilers masquerading as C compilers
16125 incorrectly reject 9223372036854775807. */
16126 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16127 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16128 && LARGE_OFF_T % 2147483647 == 1)
16129 ? 1 : -1];
16130 int
16131 main ()
16132 {
16133
16134 ;
16135 return 0;
16136 }
16137 _ACEOF
16138 if ac_fn_c_try_compile "$LINENO"; then :
16139 ac_cv_sys_file_offset_bits=no; break
16140 fi
16141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16143 /* end confdefs.h. */
16144 #define _FILE_OFFSET_BITS 64
16145 #include <sys/types.h>
16146 /* Check that off_t can represent 2**63 - 1 correctly.
16147 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16148 since some C++ compilers masquerading as C compilers
16149 incorrectly reject 9223372036854775807. */
16150 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16151 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16152 && LARGE_OFF_T % 2147483647 == 1)
16153 ? 1 : -1];
16154 int
16155 main ()
16156 {
16157
16158 ;
16159 return 0;
16160 }
16161 _ACEOF
16162 if ac_fn_c_try_compile "$LINENO"; then :
16163 ac_cv_sys_file_offset_bits=64; break
16164 fi
16165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16166 ac_cv_sys_file_offset_bits=unknown
16167 break
16168 done
16169 fi
16170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
16171 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
16172 case $ac_cv_sys_file_offset_bits in #(
16173 no | unknown) ;;
16174 *)
16175 cat >>confdefs.h <<_ACEOF
16176 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
16177 _ACEOF
16178 ;;
16179 esac
16180 rm -rf conftest*
16181 if test $ac_cv_sys_file_offset_bits = unknown; then
16182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
16183 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
16184 if ${ac_cv_sys_large_files+:} false; then :
16185 $as_echo_n "(cached) " >&6
16186 else
16187 while :; do
16188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16189 /* end confdefs.h. */
16190 #include <sys/types.h>
16191 /* Check that off_t can represent 2**63 - 1 correctly.
16192 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16193 since some C++ compilers masquerading as C compilers
16194 incorrectly reject 9223372036854775807. */
16195 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16196 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16197 && LARGE_OFF_T % 2147483647 == 1)
16198 ? 1 : -1];
16199 int
16200 main ()
16201 {
16202
16203 ;
16204 return 0;
16205 }
16206 _ACEOF
16207 if ac_fn_c_try_compile "$LINENO"; then :
16208 ac_cv_sys_large_files=no; break
16209 fi
16210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16212 /* end confdefs.h. */
16213 #define _LARGE_FILES 1
16214 #include <sys/types.h>
16215 /* Check that off_t can represent 2**63 - 1 correctly.
16216 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16217 since some C++ compilers masquerading as C compilers
16218 incorrectly reject 9223372036854775807. */
16219 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16220 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16221 && LARGE_OFF_T % 2147483647 == 1)
16222 ? 1 : -1];
16223 int
16224 main ()
16225 {
16226
16227 ;
16228 return 0;
16229 }
16230 _ACEOF
16231 if ac_fn_c_try_compile "$LINENO"; then :
16232 ac_cv_sys_large_files=1; break
16233 fi
16234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16235 ac_cv_sys_large_files=unknown
16236 break
16237 done
16238 fi
16239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
16240 $as_echo "$ac_cv_sys_large_files" >&6; }
16241 case $ac_cv_sys_large_files in #(
16242 no | unknown) ;;
16243 *)
16244 cat >>confdefs.h <<_ACEOF
16245 #define _LARGE_FILES $ac_cv_sys_large_files
16246 _ACEOF
16247 ;;
16248 esac
16249 rm -rf conftest*
16250 fi
16251
16252
16253 fi
16254
16255
16256 # Types
16257 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
16258 if test "x$ac_cv_type_off_t" = xyes; then :
16259
16260 else
16261
16262 cat >>confdefs.h <<_ACEOF
16263 #define off_t long int
16264 _ACEOF
16265
16266 fi
16267
16268
16269 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
16270 if test "x$ac_cv_type_intptr_t" = xyes; then :
16271
16272 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
16273
16274 else
16275 for ac_type in 'int' 'long int' 'long long int'; do
16276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16277 /* end confdefs.h. */
16278 $ac_includes_default
16279 int
16280 main ()
16281 {
16282 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16283 test_array [0] = 0;
16284 return test_array [0];
16285
16286 ;
16287 return 0;
16288 }
16289 _ACEOF
16290 if ac_fn_c_try_compile "$LINENO"; then :
16291
16292 cat >>confdefs.h <<_ACEOF
16293 #define intptr_t $ac_type
16294 _ACEOF
16295
16296 ac_type=
16297 fi
16298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16299 test -z "$ac_type" && break
16300 done
16301 fi
16302
16303
16304
16305 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
16306 if test "x$ac_cv_type_uintptr_t" = xyes; then :
16307
16308 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
16309
16310 else
16311 for ac_type in 'unsigned int' 'unsigned long int' \
16312 'unsigned long long int'; do
16313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16314 /* end confdefs.h. */
16315 $ac_includes_default
16316 int
16317 main ()
16318 {
16319 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16320 test_array [0] = 0;
16321 return test_array [0];
16322
16323 ;
16324 return 0;
16325 }
16326 _ACEOF
16327 if ac_fn_c_try_compile "$LINENO"; then :
16328
16329 cat >>confdefs.h <<_ACEOF
16330 #define uintptr_t $ac_type
16331 _ACEOF
16332
16333 ac_type=
16334 fi
16335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16336 test -z "$ac_type" && break
16337 done
16338 fi
16339
16340
16341 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
16342 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
16343
16344 cat >>confdefs.h <<_ACEOF
16345 #define HAVE_PTRDIFF_T 1
16346 _ACEOF
16347
16348
16349 fi
16350
16351
16352 # check header files (we assume C89 is available, so don't check for that)
16353
16354
16355
16356 for ac_header in $ac_header_list
16357 do :
16358 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16359 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16360 "
16361 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16362 cat >>confdefs.h <<_ACEOF
16363 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16364 _ACEOF
16365
16366 fi
16367
16368 done
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403
16404
16405
16406
16407
16408 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
16409
16410 acx_cv_header_stdint=stddef.h
16411 acx_cv_header_stdint_kind="(already complete)"
16412 for i in stdint.h $inttype_headers; do
16413 unset ac_cv_type_uintptr_t
16414 unset ac_cv_type_uintmax_t
16415 unset ac_cv_type_int_least32_t
16416 unset ac_cv_type_int_fast32_t
16417 unset ac_cv_type_uint64_t
16418 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
16419 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
16420 #include <$i>
16421 "
16422 if test "x$ac_cv_type_uintmax_t" = xyes; then :
16423 acx_cv_header_stdint=$i
16424 else
16425 continue
16426 fi
16427
16428 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16429 #include <$i>
16430 "
16431 if test "x$ac_cv_type_uintptr_t" = xyes; then :
16432
16433 else
16434 acx_cv_header_stdint_kind="(mostly complete)"
16435 fi
16436
16437 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
16438 #include <$i>
16439 "
16440 if test "x$ac_cv_type_int_least32_t" = xyes; then :
16441
16442 else
16443 acx_cv_header_stdint_kind="(mostly complete)"
16444 fi
16445
16446 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
16447 #include <$i>
16448 "
16449 if test "x$ac_cv_type_int_fast32_t" = xyes; then :
16450
16451 else
16452 acx_cv_header_stdint_kind="(mostly complete)"
16453 fi
16454
16455 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16456 #include <$i>
16457 "
16458 if test "x$ac_cv_type_uint64_t" = xyes; then :
16459
16460 else
16461 acx_cv_header_stdint_kind="(lacks uint64_t)"
16462 fi
16463
16464 break
16465 done
16466 if test "$acx_cv_header_stdint" = stddef.h; then
16467 acx_cv_header_stdint_kind="(lacks uintmax_t)"
16468 for i in stdint.h $inttype_headers; do
16469 unset ac_cv_type_uintptr_t
16470 unset ac_cv_type_uint32_t
16471 unset ac_cv_type_uint64_t
16472 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
16473 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
16474 #include <$i>
16475 "
16476 if test "x$ac_cv_type_uint32_t" = xyes; then :
16477 acx_cv_header_stdint=$i
16478 else
16479 continue
16480 fi
16481
16482 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16483 #include <$i>
16484 "
16485 if test "x$ac_cv_type_uint64_t" = xyes; then :
16486
16487 fi
16488
16489 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16490 #include <$i>
16491 "
16492 if test "x$ac_cv_type_uintptr_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="(u_intXX_t style)"
16501 for i in sys/types.h $inttype_headers; do
16502 unset ac_cv_type_u_int32_t
16503 unset ac_cv_type_u_int64_t
16504 $as_echo_n "looking for u_intXX_t types in $i, " >&6
16505 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
16506 #include <$i>
16507 "
16508 if test "x$ac_cv_type_u_int32_t" = xyes; then :
16509 acx_cv_header_stdint=$i
16510 else
16511 continue
16512 fi
16513
16514 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
16515 #include <$i>
16516 "
16517 if test "x$ac_cv_type_u_int64_t" = xyes; then :
16518
16519 fi
16520
16521 break
16522 done
16523 fi
16524 if test "$acx_cv_header_stdint" = stddef.h; then
16525 acx_cv_header_stdint_kind="(using manual detection)"
16526 fi
16527
16528 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
16529 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
16530 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
16531 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
16532 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
16533
16534 # ----------------- Summarize what we found so far
16535
16536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
16537 $as_echo_n "checking what to include in gstdint.h... " >&6; }
16538
16539 case `$as_basename -- gstdint.h ||
16540 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
16541 Xgstdint.h : 'X\(//\)$' \| \
16542 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
16543 $as_echo X/gstdint.h |
16544 sed '/^.*\/\([^/][^/]*\)\/*$/{
16545 s//\1/
16546 q
16547 }
16548 /^X\/\(\/\/\)$/{
16549 s//\1/
16550 q
16551 }
16552 /^X\/\(\/\).*/{
16553 s//\1/
16554 q
16555 }
16556 s/.*/./; q'` in
16557 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16558 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16559 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16560 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16561 *) ;;
16562 esac
16563
16564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
16565 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
16566
16567 # ----------------- done included file, check C basic types --------
16568
16569 # Lacking an uintptr_t? Test size of void *
16570 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
16571 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
16572 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16573 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16574 # This bug is HP SR number 8606223364.
16575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16576 $as_echo_n "checking size of void *... " >&6; }
16577 if ${ac_cv_sizeof_void_p+:} false; then :
16578 $as_echo_n "(cached) " >&6
16579 else
16580 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
16581
16582 else
16583 if test "$ac_cv_type_void_p" = yes; then
16584 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16585 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16586 as_fn_error 77 "cannot compute sizeof (void *)
16587 See \`config.log' for more details" "$LINENO" 5; }
16588 else
16589 ac_cv_sizeof_void_p=0
16590 fi
16591 fi
16592
16593 fi
16594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16595 $as_echo "$ac_cv_sizeof_void_p" >&6; }
16596
16597
16598
16599 cat >>confdefs.h <<_ACEOF
16600 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16601 _ACEOF
16602
16603 ;;
16604 esac
16605
16606 # Lacking an uint64_t? Test size of long
16607 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
16608 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
16609 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16610 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16611 # This bug is HP SR number 8606223364.
16612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16613 $as_echo_n "checking size of long... " >&6; }
16614 if ${ac_cv_sizeof_long+:} false; then :
16615 $as_echo_n "(cached) " >&6
16616 else
16617 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16618
16619 else
16620 if test "$ac_cv_type_long" = yes; then
16621 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16622 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16623 as_fn_error 77 "cannot compute sizeof (long)
16624 See \`config.log' for more details" "$LINENO" 5; }
16625 else
16626 ac_cv_sizeof_long=0
16627 fi
16628 fi
16629
16630 fi
16631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16632 $as_echo "$ac_cv_sizeof_long" >&6; }
16633
16634
16635
16636 cat >>confdefs.h <<_ACEOF
16637 #define SIZEOF_LONG $ac_cv_sizeof_long
16638 _ACEOF
16639
16640 ;;
16641 esac
16642
16643 if test $acx_cv_header_stdint = stddef.h; then
16644 # Lacking a good header? Test size of everything and deduce all types.
16645 # The cast to long int works around a bug in the HP C Compiler
16646 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16647 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16648 # This bug is HP SR number 8606223364.
16649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16650 $as_echo_n "checking size of int... " >&6; }
16651 if ${ac_cv_sizeof_int+:} false; then :
16652 $as_echo_n "(cached) " >&6
16653 else
16654 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
16655
16656 else
16657 if test "$ac_cv_type_int" = yes; then
16658 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16659 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16660 as_fn_error 77 "cannot compute sizeof (int)
16661 See \`config.log' for more details" "$LINENO" 5; }
16662 else
16663 ac_cv_sizeof_int=0
16664 fi
16665 fi
16666
16667 fi
16668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16669 $as_echo "$ac_cv_sizeof_int" >&6; }
16670
16671
16672
16673 cat >>confdefs.h <<_ACEOF
16674 #define SIZEOF_INT $ac_cv_sizeof_int
16675 _ACEOF
16676
16677
16678 # The cast to long int works around a bug in the HP C Compiler
16679 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16680 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16681 # This bug is HP SR number 8606223364.
16682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16683 $as_echo_n "checking size of short... " >&6; }
16684 if ${ac_cv_sizeof_short+:} false; then :
16685 $as_echo_n "(cached) " >&6
16686 else
16687 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
16688
16689 else
16690 if test "$ac_cv_type_short" = yes; then
16691 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16692 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16693 as_fn_error 77 "cannot compute sizeof (short)
16694 See \`config.log' for more details" "$LINENO" 5; }
16695 else
16696 ac_cv_sizeof_short=0
16697 fi
16698 fi
16699
16700 fi
16701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16702 $as_echo "$ac_cv_sizeof_short" >&6; }
16703
16704
16705
16706 cat >>confdefs.h <<_ACEOF
16707 #define SIZEOF_SHORT $ac_cv_sizeof_short
16708 _ACEOF
16709
16710
16711 # The cast to long int works around a bug in the HP C Compiler
16712 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16713 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16714 # This bug is HP SR number 8606223364.
16715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16716 $as_echo_n "checking size of char... " >&6; }
16717 if ${ac_cv_sizeof_char+:} false; then :
16718 $as_echo_n "(cached) " >&6
16719 else
16720 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
16721
16722 else
16723 if test "$ac_cv_type_char" = yes; then
16724 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16725 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16726 as_fn_error 77 "cannot compute sizeof (char)
16727 See \`config.log' for more details" "$LINENO" 5; }
16728 else
16729 ac_cv_sizeof_char=0
16730 fi
16731 fi
16732
16733 fi
16734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16735 $as_echo "$ac_cv_sizeof_char" >&6; }
16736
16737
16738
16739 cat >>confdefs.h <<_ACEOF
16740 #define SIZEOF_CHAR $ac_cv_sizeof_char
16741 _ACEOF
16742
16743
16744
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
16746 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
16747 case "$ac_cv_sizeof_char" in
16748 1) acx_cv_type_int8_t=char ;;
16749 *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5
16750 esac
16751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
16752 $as_echo "$acx_cv_type_int8_t" >&6; }
16753
16754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
16755 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
16756 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16757 2:*) acx_cv_type_int16_t=int ;;
16758 *:2) acx_cv_type_int16_t=short ;;
16759 *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5
16760 esac
16761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16762 $as_echo "$acx_cv_type_int16_t" >&6; }
16763
16764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16765 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
16766 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16767 4:*) acx_cv_type_int32_t=int ;;
16768 *:4) acx_cv_type_int32_t=long ;;
16769 *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5
16770 esac
16771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16772 $as_echo "$acx_cv_type_int32_t" >&6; }
16773 fi
16774
16775 # These tests are here to make the output prettier
16776
16777 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16778 case "$ac_cv_sizeof_long" in
16779 8) acx_cv_type_int64_t=long ;;
16780 esac
16781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16782 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
16783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16784 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16785 fi
16786
16787 # Now we can use the above types
16788
16789 if test "$ac_cv_type_uintptr_t" != yes; then
16790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16791 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16792 case $ac_cv_sizeof_void_p in
16793 2) acx_cv_type_intptr_t=int16_t ;;
16794 4) acx_cv_type_intptr_t=int32_t ;;
16795 8) acx_cv_type_intptr_t=int64_t ;;
16796 *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5
16797 esac
16798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16799 $as_echo "$acx_cv_type_intptr_t" >&6; }
16800 fi
16801
16802 # ----------------- done all checks, emit header -------------
16803 ac_config_commands="$ac_config_commands gstdint.h"
16804
16805
16806
16807
16808 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
16809 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
16810
16811 cat >>confdefs.h <<_ACEOF
16812 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
16813 _ACEOF
16814
16815
16816 fi
16817 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
16818 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
16819
16820 cat >>confdefs.h <<_ACEOF
16821 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
16822 _ACEOF
16823
16824
16825 fi
16826 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
16827 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
16828
16829 cat >>confdefs.h <<_ACEOF
16830 #define HAVE_STRUCT_STAT_ST_RDEV 1
16831 _ACEOF
16832
16833
16834 fi
16835
16836
16837 case "${host}--x${with_newlib}" in
16838 mips*--xyes)
16839 hardwire_newlib=1;;
16840 nvptx*--xyes)
16841 hardwire_newlib=1;;
16842 esac
16843
16844 # Check for library functions.
16845 if test "${hardwire_newlib:-0}" -eq 1; then
16846 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
16847 # may not work correctly, because the compiler may not be able to
16848 # link executables.
16849
16850 $as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
16851
16852
16853 $as_echo "#define HAVE_STRTOF 1" >>confdefs.h
16854
16855
16856 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
16857
16858
16859 $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
16860
16861
16862 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
16863
16864
16865 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
16866
16867
16868 $as_echo "#define HAVE_STRNLEN 1" >>confdefs.h
16869
16870
16871 $as_echo "#define HAVE_STRNDUP 1" >>confdefs.h
16872
16873
16874 # At some point, we should differentiate between architectures
16875 # like x86, which have long double versions, and alpha/powerpc/etc.,
16876 # which don't. For the time being, punt.
16877 if test x"long_double_math_on_this_cpu" = x"yes"; then
16878
16879 $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
16880
16881 fi
16882 else
16883
16884
16885
16886 for ac_func in $ac_func_list
16887 do :
16888 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16889 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16890 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16891 cat >>confdefs.h <<_ACEOF
16892 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16893 _ACEOF
16894
16895 fi
16896 done
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
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007 fi
17008
17009 # Check strerror_r, cannot be above as versions with two and three arguments exist
17010
17011 ac_save_CFLAGS="$CFLAGS"
17012 CFLAGS="-Wimplicit-function-declaration -Werror"
17013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17014 /* end confdefs.h. */
17015 #define _GNU_SOURCE 1
17016 #include <string.h>
17017 #include <locale.h>
17018 int
17019 main ()
17020 {
17021 char s[128]; strerror_r(5, s, 128);
17022 ;
17023 return 0;
17024 }
17025 _ACEOF
17026 if ac_fn_c_try_compile "$LINENO"; then :
17027
17028 $as_echo "#define HAVE_STRERROR_R 1" >>confdefs.h
17029
17030 fi
17031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17032 CFLAGS="$ac_save_CFLAGS"
17033
17034 ac_save_CFLAGS="$CFLAGS"
17035 CFLAGS="-Wimplicit-function-declaration -Werror"
17036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17037 /* end confdefs.h. */
17038 #define _GNU_SOURCE 1
17039 #include <string.h>
17040 #include <locale.h>
17041 int
17042 main ()
17043 {
17044 char s[128]; strerror_r(5, s);
17045 ;
17046 return 0;
17047 }
17048 _ACEOF
17049 if ac_fn_c_try_compile "$LINENO"; then :
17050
17051 $as_echo "#define HAVE_STRERROR_R_2ARGS 1" >>confdefs.h
17052
17053 fi
17054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17055 CFLAGS="$ac_save_CFLAGS"
17056
17057
17058 # Check for C99 (and other IEEE) math functions
17059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
17060 $as_echo_n "checking for sin in -lm... " >&6; }
17061 if ${ac_cv_lib_m_sin+:} false; then :
17062 $as_echo_n "(cached) " >&6
17063 else
17064 ac_check_lib_save_LIBS=$LIBS
17065 LIBS="-lm $LIBS"
17066 if test x$gcc_no_link = xyes; then
17067 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17068 fi
17069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17070 /* end confdefs.h. */
17071
17072 /* Override any GCC internal prototype to avoid an error.
17073 Use char because int might match the return type of a GCC
17074 builtin and then its argument prototype would still apply. */
17075 #ifdef __cplusplus
17076 extern "C"
17077 #endif
17078 char sin ();
17079 int
17080 main ()
17081 {
17082 return sin ();
17083 ;
17084 return 0;
17085 }
17086 _ACEOF
17087 if ac_fn_c_try_link "$LINENO"; then :
17088 ac_cv_lib_m_sin=yes
17089 else
17090 ac_cv_lib_m_sin=no
17091 fi
17092 rm -f core conftest.err conftest.$ac_objext \
17093 conftest$ac_exeext conftest.$ac_ext
17094 LIBS=$ac_check_lib_save_LIBS
17095 fi
17096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
17097 $as_echo "$ac_cv_lib_m_sin" >&6; }
17098 if test "x$ac_cv_lib_m_sin" = xyes; then :
17099 cat >>confdefs.h <<_ACEOF
17100 #define HAVE_LIBM 1
17101 _ACEOF
17102
17103 LIBS="-lm $LIBS"
17104
17105 fi
17106
17107
17108
17109
17110
17111
17112
17113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosf" >&5
17114 $as_echo_n "checking for acosf... " >&6; }
17115 if ${gcc_cv_math_func_acosf+:} false; then :
17116 $as_echo_n "(cached) " >&6
17117 else
17118 if test x$gcc_no_link = xyes; then
17119 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17120 fi
17121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17122 /* end confdefs.h. */
17123
17124 #ifdef HAVE_COMPLEX_H
17125 #include <complex.h>
17126 #endif
17127 #ifdef HAVE_MATH_H
17128 #include <math.h>
17129 #endif
17130
17131 int (*ptr)() = (int (*)())acosf;
17132
17133 int
17134 main ()
17135 {
17136 return 0;
17137 }
17138
17139 _ACEOF
17140 if ac_fn_c_try_link "$LINENO"; then :
17141 gcc_cv_math_func_acosf=yes
17142 else
17143 gcc_cv_math_func_acosf=no
17144 fi
17145 rm -f core conftest.err conftest.$ac_objext \
17146 conftest$ac_exeext conftest.$ac_ext
17147 fi
17148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosf" >&5
17149 $as_echo "$gcc_cv_math_func_acosf" >&6; }
17150 if test $gcc_cv_math_func_acosf = yes; then
17151
17152 cat >>confdefs.h <<_ACEOF
17153 #define HAVE_ACOSF 1
17154 _ACEOF
17155
17156 fi
17157
17158
17159
17160
17161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acos" >&5
17162 $as_echo_n "checking for acos... " >&6; }
17163 if ${gcc_cv_math_func_acos+:} false; then :
17164 $as_echo_n "(cached) " >&6
17165 else
17166 if test x$gcc_no_link = xyes; then
17167 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17168 fi
17169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17170 /* end confdefs.h. */
17171
17172 #ifdef HAVE_COMPLEX_H
17173 #include <complex.h>
17174 #endif
17175 #ifdef HAVE_MATH_H
17176 #include <math.h>
17177 #endif
17178
17179 int (*ptr)() = (int (*)())acos;
17180
17181 int
17182 main ()
17183 {
17184 return 0;
17185 }
17186
17187 _ACEOF
17188 if ac_fn_c_try_link "$LINENO"; then :
17189 gcc_cv_math_func_acos=yes
17190 else
17191 gcc_cv_math_func_acos=no
17192 fi
17193 rm -f core conftest.err conftest.$ac_objext \
17194 conftest$ac_exeext conftest.$ac_ext
17195 fi
17196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acos" >&5
17197 $as_echo "$gcc_cv_math_func_acos" >&6; }
17198 if test $gcc_cv_math_func_acos = yes; then
17199
17200 cat >>confdefs.h <<_ACEOF
17201 #define HAVE_ACOS 1
17202 _ACEOF
17203
17204 fi
17205
17206
17207
17208
17209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosl" >&5
17210 $as_echo_n "checking for acosl... " >&6; }
17211 if ${gcc_cv_math_func_acosl+:} false; then :
17212 $as_echo_n "(cached) " >&6
17213 else
17214 if test x$gcc_no_link = xyes; then
17215 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17216 fi
17217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17218 /* end confdefs.h. */
17219
17220 #ifdef HAVE_COMPLEX_H
17221 #include <complex.h>
17222 #endif
17223 #ifdef HAVE_MATH_H
17224 #include <math.h>
17225 #endif
17226
17227 int (*ptr)() = (int (*)())acosl;
17228
17229 int
17230 main ()
17231 {
17232 return 0;
17233 }
17234
17235 _ACEOF
17236 if ac_fn_c_try_link "$LINENO"; then :
17237 gcc_cv_math_func_acosl=yes
17238 else
17239 gcc_cv_math_func_acosl=no
17240 fi
17241 rm -f core conftest.err conftest.$ac_objext \
17242 conftest$ac_exeext conftest.$ac_ext
17243 fi
17244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosl" >&5
17245 $as_echo "$gcc_cv_math_func_acosl" >&6; }
17246 if test $gcc_cv_math_func_acosl = yes; then
17247
17248 cat >>confdefs.h <<_ACEOF
17249 #define HAVE_ACOSL 1
17250 _ACEOF
17251
17252 fi
17253
17254
17255
17256
17257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshf" >&5
17258 $as_echo_n "checking for acoshf... " >&6; }
17259 if ${gcc_cv_math_func_acoshf+:} false; then :
17260 $as_echo_n "(cached) " >&6
17261 else
17262 if test x$gcc_no_link = xyes; then
17263 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17264 fi
17265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17266 /* end confdefs.h. */
17267
17268 #ifdef HAVE_COMPLEX_H
17269 #include <complex.h>
17270 #endif
17271 #ifdef HAVE_MATH_H
17272 #include <math.h>
17273 #endif
17274
17275 int (*ptr)() = (int (*)())acoshf;
17276
17277 int
17278 main ()
17279 {
17280 return 0;
17281 }
17282
17283 _ACEOF
17284 if ac_fn_c_try_link "$LINENO"; then :
17285 gcc_cv_math_func_acoshf=yes
17286 else
17287 gcc_cv_math_func_acoshf=no
17288 fi
17289 rm -f core conftest.err conftest.$ac_objext \
17290 conftest$ac_exeext conftest.$ac_ext
17291 fi
17292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshf" >&5
17293 $as_echo "$gcc_cv_math_func_acoshf" >&6; }
17294 if test $gcc_cv_math_func_acoshf = yes; then
17295
17296 cat >>confdefs.h <<_ACEOF
17297 #define HAVE_ACOSHF 1
17298 _ACEOF
17299
17300 fi
17301
17302
17303
17304
17305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosh" >&5
17306 $as_echo_n "checking for acosh... " >&6; }
17307 if ${gcc_cv_math_func_acosh+:} false; then :
17308 $as_echo_n "(cached) " >&6
17309 else
17310 if test x$gcc_no_link = xyes; then
17311 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17312 fi
17313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17314 /* end confdefs.h. */
17315
17316 #ifdef HAVE_COMPLEX_H
17317 #include <complex.h>
17318 #endif
17319 #ifdef HAVE_MATH_H
17320 #include <math.h>
17321 #endif
17322
17323 int (*ptr)() = (int (*)())acosh;
17324
17325 int
17326 main ()
17327 {
17328 return 0;
17329 }
17330
17331 _ACEOF
17332 if ac_fn_c_try_link "$LINENO"; then :
17333 gcc_cv_math_func_acosh=yes
17334 else
17335 gcc_cv_math_func_acosh=no
17336 fi
17337 rm -f core conftest.err conftest.$ac_objext \
17338 conftest$ac_exeext conftest.$ac_ext
17339 fi
17340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosh" >&5
17341 $as_echo "$gcc_cv_math_func_acosh" >&6; }
17342 if test $gcc_cv_math_func_acosh = yes; then
17343
17344 cat >>confdefs.h <<_ACEOF
17345 #define HAVE_ACOSH 1
17346 _ACEOF
17347
17348 fi
17349
17350
17351
17352
17353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshl" >&5
17354 $as_echo_n "checking for acoshl... " >&6; }
17355 if ${gcc_cv_math_func_acoshl+:} false; then :
17356 $as_echo_n "(cached) " >&6
17357 else
17358 if test x$gcc_no_link = xyes; then
17359 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17360 fi
17361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17362 /* end confdefs.h. */
17363
17364 #ifdef HAVE_COMPLEX_H
17365 #include <complex.h>
17366 #endif
17367 #ifdef HAVE_MATH_H
17368 #include <math.h>
17369 #endif
17370
17371 int (*ptr)() = (int (*)())acoshl;
17372
17373 int
17374 main ()
17375 {
17376 return 0;
17377 }
17378
17379 _ACEOF
17380 if ac_fn_c_try_link "$LINENO"; then :
17381 gcc_cv_math_func_acoshl=yes
17382 else
17383 gcc_cv_math_func_acoshl=no
17384 fi
17385 rm -f core conftest.err conftest.$ac_objext \
17386 conftest$ac_exeext conftest.$ac_ext
17387 fi
17388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshl" >&5
17389 $as_echo "$gcc_cv_math_func_acoshl" >&6; }
17390 if test $gcc_cv_math_func_acoshl = yes; then
17391
17392 cat >>confdefs.h <<_ACEOF
17393 #define HAVE_ACOSHL 1
17394 _ACEOF
17395
17396 fi
17397
17398
17399
17400
17401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinf" >&5
17402 $as_echo_n "checking for asinf... " >&6; }
17403 if ${gcc_cv_math_func_asinf+:} false; then :
17404 $as_echo_n "(cached) " >&6
17405 else
17406 if test x$gcc_no_link = xyes; then
17407 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17408 fi
17409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17410 /* end confdefs.h. */
17411
17412 #ifdef HAVE_COMPLEX_H
17413 #include <complex.h>
17414 #endif
17415 #ifdef HAVE_MATH_H
17416 #include <math.h>
17417 #endif
17418
17419 int (*ptr)() = (int (*)())asinf;
17420
17421 int
17422 main ()
17423 {
17424 return 0;
17425 }
17426
17427 _ACEOF
17428 if ac_fn_c_try_link "$LINENO"; then :
17429 gcc_cv_math_func_asinf=yes
17430 else
17431 gcc_cv_math_func_asinf=no
17432 fi
17433 rm -f core conftest.err conftest.$ac_objext \
17434 conftest$ac_exeext conftest.$ac_ext
17435 fi
17436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinf" >&5
17437 $as_echo "$gcc_cv_math_func_asinf" >&6; }
17438 if test $gcc_cv_math_func_asinf = yes; then
17439
17440 cat >>confdefs.h <<_ACEOF
17441 #define HAVE_ASINF 1
17442 _ACEOF
17443
17444 fi
17445
17446
17447
17448
17449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin" >&5
17450 $as_echo_n "checking for asin... " >&6; }
17451 if ${gcc_cv_math_func_asin+:} false; then :
17452 $as_echo_n "(cached) " >&6
17453 else
17454 if test x$gcc_no_link = xyes; then
17455 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17456 fi
17457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17458 /* end confdefs.h. */
17459
17460 #ifdef HAVE_COMPLEX_H
17461 #include <complex.h>
17462 #endif
17463 #ifdef HAVE_MATH_H
17464 #include <math.h>
17465 #endif
17466
17467 int (*ptr)() = (int (*)())asin;
17468
17469 int
17470 main ()
17471 {
17472 return 0;
17473 }
17474
17475 _ACEOF
17476 if ac_fn_c_try_link "$LINENO"; then :
17477 gcc_cv_math_func_asin=yes
17478 else
17479 gcc_cv_math_func_asin=no
17480 fi
17481 rm -f core conftest.err conftest.$ac_objext \
17482 conftest$ac_exeext conftest.$ac_ext
17483 fi
17484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asin" >&5
17485 $as_echo "$gcc_cv_math_func_asin" >&6; }
17486 if test $gcc_cv_math_func_asin = yes; then
17487
17488 cat >>confdefs.h <<_ACEOF
17489 #define HAVE_ASIN 1
17490 _ACEOF
17491
17492 fi
17493
17494
17495
17496
17497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinl" >&5
17498 $as_echo_n "checking for asinl... " >&6; }
17499 if ${gcc_cv_math_func_asinl+:} false; then :
17500 $as_echo_n "(cached) " >&6
17501 else
17502 if test x$gcc_no_link = xyes; then
17503 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17504 fi
17505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17506 /* end confdefs.h. */
17507
17508 #ifdef HAVE_COMPLEX_H
17509 #include <complex.h>
17510 #endif
17511 #ifdef HAVE_MATH_H
17512 #include <math.h>
17513 #endif
17514
17515 int (*ptr)() = (int (*)())asinl;
17516
17517 int
17518 main ()
17519 {
17520 return 0;
17521 }
17522
17523 _ACEOF
17524 if ac_fn_c_try_link "$LINENO"; then :
17525 gcc_cv_math_func_asinl=yes
17526 else
17527 gcc_cv_math_func_asinl=no
17528 fi
17529 rm -f core conftest.err conftest.$ac_objext \
17530 conftest$ac_exeext conftest.$ac_ext
17531 fi
17532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinl" >&5
17533 $as_echo "$gcc_cv_math_func_asinl" >&6; }
17534 if test $gcc_cv_math_func_asinl = yes; then
17535
17536 cat >>confdefs.h <<_ACEOF
17537 #define HAVE_ASINL 1
17538 _ACEOF
17539
17540 fi
17541
17542
17543
17544
17545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhf" >&5
17546 $as_echo_n "checking for asinhf... " >&6; }
17547 if ${gcc_cv_math_func_asinhf+:} false; then :
17548 $as_echo_n "(cached) " >&6
17549 else
17550 if test x$gcc_no_link = xyes; then
17551 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17552 fi
17553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17554 /* end confdefs.h. */
17555
17556 #ifdef HAVE_COMPLEX_H
17557 #include <complex.h>
17558 #endif
17559 #ifdef HAVE_MATH_H
17560 #include <math.h>
17561 #endif
17562
17563 int (*ptr)() = (int (*)())asinhf;
17564
17565 int
17566 main ()
17567 {
17568 return 0;
17569 }
17570
17571 _ACEOF
17572 if ac_fn_c_try_link "$LINENO"; then :
17573 gcc_cv_math_func_asinhf=yes
17574 else
17575 gcc_cv_math_func_asinhf=no
17576 fi
17577 rm -f core conftest.err conftest.$ac_objext \
17578 conftest$ac_exeext conftest.$ac_ext
17579 fi
17580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhf" >&5
17581 $as_echo "$gcc_cv_math_func_asinhf" >&6; }
17582 if test $gcc_cv_math_func_asinhf = yes; then
17583
17584 cat >>confdefs.h <<_ACEOF
17585 #define HAVE_ASINHF 1
17586 _ACEOF
17587
17588 fi
17589
17590
17591
17592
17593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinh" >&5
17594 $as_echo_n "checking for asinh... " >&6; }
17595 if ${gcc_cv_math_func_asinh+:} false; then :
17596 $as_echo_n "(cached) " >&6
17597 else
17598 if test x$gcc_no_link = xyes; then
17599 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17600 fi
17601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17602 /* end confdefs.h. */
17603
17604 #ifdef HAVE_COMPLEX_H
17605 #include <complex.h>
17606 #endif
17607 #ifdef HAVE_MATH_H
17608 #include <math.h>
17609 #endif
17610
17611 int (*ptr)() = (int (*)())asinh;
17612
17613 int
17614 main ()
17615 {
17616 return 0;
17617 }
17618
17619 _ACEOF
17620 if ac_fn_c_try_link "$LINENO"; then :
17621 gcc_cv_math_func_asinh=yes
17622 else
17623 gcc_cv_math_func_asinh=no
17624 fi
17625 rm -f core conftest.err conftest.$ac_objext \
17626 conftest$ac_exeext conftest.$ac_ext
17627 fi
17628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinh" >&5
17629 $as_echo "$gcc_cv_math_func_asinh" >&6; }
17630 if test $gcc_cv_math_func_asinh = yes; then
17631
17632 cat >>confdefs.h <<_ACEOF
17633 #define HAVE_ASINH 1
17634 _ACEOF
17635
17636 fi
17637
17638
17639
17640
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhl" >&5
17642 $as_echo_n "checking for asinhl... " >&6; }
17643 if ${gcc_cv_math_func_asinhl+:} false; then :
17644 $as_echo_n "(cached) " >&6
17645 else
17646 if test x$gcc_no_link = xyes; then
17647 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17648 fi
17649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17650 /* end confdefs.h. */
17651
17652 #ifdef HAVE_COMPLEX_H
17653 #include <complex.h>
17654 #endif
17655 #ifdef HAVE_MATH_H
17656 #include <math.h>
17657 #endif
17658
17659 int (*ptr)() = (int (*)())asinhl;
17660
17661 int
17662 main ()
17663 {
17664 return 0;
17665 }
17666
17667 _ACEOF
17668 if ac_fn_c_try_link "$LINENO"; then :
17669 gcc_cv_math_func_asinhl=yes
17670 else
17671 gcc_cv_math_func_asinhl=no
17672 fi
17673 rm -f core conftest.err conftest.$ac_objext \
17674 conftest$ac_exeext conftest.$ac_ext
17675 fi
17676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhl" >&5
17677 $as_echo "$gcc_cv_math_func_asinhl" >&6; }
17678 if test $gcc_cv_math_func_asinhl = yes; then
17679
17680 cat >>confdefs.h <<_ACEOF
17681 #define HAVE_ASINHL 1
17682 _ACEOF
17683
17684 fi
17685
17686
17687
17688
17689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f" >&5
17690 $as_echo_n "checking for atan2f... " >&6; }
17691 if ${gcc_cv_math_func_atan2f+:} false; then :
17692 $as_echo_n "(cached) " >&6
17693 else
17694 if test x$gcc_no_link = xyes; then
17695 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17696 fi
17697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17698 /* end confdefs.h. */
17699
17700 #ifdef HAVE_COMPLEX_H
17701 #include <complex.h>
17702 #endif
17703 #ifdef HAVE_MATH_H
17704 #include <math.h>
17705 #endif
17706
17707 int (*ptr)() = (int (*)())atan2f;
17708
17709 int
17710 main ()
17711 {
17712 return 0;
17713 }
17714
17715 _ACEOF
17716 if ac_fn_c_try_link "$LINENO"; then :
17717 gcc_cv_math_func_atan2f=yes
17718 else
17719 gcc_cv_math_func_atan2f=no
17720 fi
17721 rm -f core conftest.err conftest.$ac_objext \
17722 conftest$ac_exeext conftest.$ac_ext
17723 fi
17724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2f" >&5
17725 $as_echo "$gcc_cv_math_func_atan2f" >&6; }
17726 if test $gcc_cv_math_func_atan2f = yes; then
17727
17728 cat >>confdefs.h <<_ACEOF
17729 #define HAVE_ATAN2F 1
17730 _ACEOF
17731
17732 fi
17733
17734
17735
17736
17737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2" >&5
17738 $as_echo_n "checking for atan2... " >&6; }
17739 if ${gcc_cv_math_func_atan2+:} false; then :
17740 $as_echo_n "(cached) " >&6
17741 else
17742 if test x$gcc_no_link = xyes; then
17743 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17744 fi
17745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17746 /* end confdefs.h. */
17747
17748 #ifdef HAVE_COMPLEX_H
17749 #include <complex.h>
17750 #endif
17751 #ifdef HAVE_MATH_H
17752 #include <math.h>
17753 #endif
17754
17755 int (*ptr)() = (int (*)())atan2;
17756
17757 int
17758 main ()
17759 {
17760 return 0;
17761 }
17762
17763 _ACEOF
17764 if ac_fn_c_try_link "$LINENO"; then :
17765 gcc_cv_math_func_atan2=yes
17766 else
17767 gcc_cv_math_func_atan2=no
17768 fi
17769 rm -f core conftest.err conftest.$ac_objext \
17770 conftest$ac_exeext conftest.$ac_ext
17771 fi
17772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2" >&5
17773 $as_echo "$gcc_cv_math_func_atan2" >&6; }
17774 if test $gcc_cv_math_func_atan2 = yes; then
17775
17776 cat >>confdefs.h <<_ACEOF
17777 #define HAVE_ATAN2 1
17778 _ACEOF
17779
17780 fi
17781
17782
17783
17784
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l" >&5
17786 $as_echo_n "checking for atan2l... " >&6; }
17787 if ${gcc_cv_math_func_atan2l+:} false; then :
17788 $as_echo_n "(cached) " >&6
17789 else
17790 if test x$gcc_no_link = xyes; then
17791 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17792 fi
17793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17794 /* end confdefs.h. */
17795
17796 #ifdef HAVE_COMPLEX_H
17797 #include <complex.h>
17798 #endif
17799 #ifdef HAVE_MATH_H
17800 #include <math.h>
17801 #endif
17802
17803 int (*ptr)() = (int (*)())atan2l;
17804
17805 int
17806 main ()
17807 {
17808 return 0;
17809 }
17810
17811 _ACEOF
17812 if ac_fn_c_try_link "$LINENO"; then :
17813 gcc_cv_math_func_atan2l=yes
17814 else
17815 gcc_cv_math_func_atan2l=no
17816 fi
17817 rm -f core conftest.err conftest.$ac_objext \
17818 conftest$ac_exeext conftest.$ac_ext
17819 fi
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2l" >&5
17821 $as_echo "$gcc_cv_math_func_atan2l" >&6; }
17822 if test $gcc_cv_math_func_atan2l = yes; then
17823
17824 cat >>confdefs.h <<_ACEOF
17825 #define HAVE_ATAN2L 1
17826 _ACEOF
17827
17828 fi
17829
17830
17831
17832
17833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanf" >&5
17834 $as_echo_n "checking for atanf... " >&6; }
17835 if ${gcc_cv_math_func_atanf+:} false; then :
17836 $as_echo_n "(cached) " >&6
17837 else
17838 if test x$gcc_no_link = xyes; then
17839 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17840 fi
17841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17842 /* end confdefs.h. */
17843
17844 #ifdef HAVE_COMPLEX_H
17845 #include <complex.h>
17846 #endif
17847 #ifdef HAVE_MATH_H
17848 #include <math.h>
17849 #endif
17850
17851 int (*ptr)() = (int (*)())atanf;
17852
17853 int
17854 main ()
17855 {
17856 return 0;
17857 }
17858
17859 _ACEOF
17860 if ac_fn_c_try_link "$LINENO"; then :
17861 gcc_cv_math_func_atanf=yes
17862 else
17863 gcc_cv_math_func_atanf=no
17864 fi
17865 rm -f core conftest.err conftest.$ac_objext \
17866 conftest$ac_exeext conftest.$ac_ext
17867 fi
17868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanf" >&5
17869 $as_echo "$gcc_cv_math_func_atanf" >&6; }
17870 if test $gcc_cv_math_func_atanf = yes; then
17871
17872 cat >>confdefs.h <<_ACEOF
17873 #define HAVE_ATANF 1
17874 _ACEOF
17875
17876 fi
17877
17878
17879
17880
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan" >&5
17882 $as_echo_n "checking for atan... " >&6; }
17883 if ${gcc_cv_math_func_atan+:} false; then :
17884 $as_echo_n "(cached) " >&6
17885 else
17886 if test x$gcc_no_link = xyes; then
17887 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17888 fi
17889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17890 /* end confdefs.h. */
17891
17892 #ifdef HAVE_COMPLEX_H
17893 #include <complex.h>
17894 #endif
17895 #ifdef HAVE_MATH_H
17896 #include <math.h>
17897 #endif
17898
17899 int (*ptr)() = (int (*)())atan;
17900
17901 int
17902 main ()
17903 {
17904 return 0;
17905 }
17906
17907 _ACEOF
17908 if ac_fn_c_try_link "$LINENO"; then :
17909 gcc_cv_math_func_atan=yes
17910 else
17911 gcc_cv_math_func_atan=no
17912 fi
17913 rm -f core conftest.err conftest.$ac_objext \
17914 conftest$ac_exeext conftest.$ac_ext
17915 fi
17916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan" >&5
17917 $as_echo "$gcc_cv_math_func_atan" >&6; }
17918 if test $gcc_cv_math_func_atan = yes; then
17919
17920 cat >>confdefs.h <<_ACEOF
17921 #define HAVE_ATAN 1
17922 _ACEOF
17923
17924 fi
17925
17926
17927
17928
17929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanl" >&5
17930 $as_echo_n "checking for atanl... " >&6; }
17931 if ${gcc_cv_math_func_atanl+:} false; then :
17932 $as_echo_n "(cached) " >&6
17933 else
17934 if test x$gcc_no_link = xyes; then
17935 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17936 fi
17937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17938 /* end confdefs.h. */
17939
17940 #ifdef HAVE_COMPLEX_H
17941 #include <complex.h>
17942 #endif
17943 #ifdef HAVE_MATH_H
17944 #include <math.h>
17945 #endif
17946
17947 int (*ptr)() = (int (*)())atanl;
17948
17949 int
17950 main ()
17951 {
17952 return 0;
17953 }
17954
17955 _ACEOF
17956 if ac_fn_c_try_link "$LINENO"; then :
17957 gcc_cv_math_func_atanl=yes
17958 else
17959 gcc_cv_math_func_atanl=no
17960 fi
17961 rm -f core conftest.err conftest.$ac_objext \
17962 conftest$ac_exeext conftest.$ac_ext
17963 fi
17964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanl" >&5
17965 $as_echo "$gcc_cv_math_func_atanl" >&6; }
17966 if test $gcc_cv_math_func_atanl = yes; then
17967
17968 cat >>confdefs.h <<_ACEOF
17969 #define HAVE_ATANL 1
17970 _ACEOF
17971
17972 fi
17973
17974
17975
17976
17977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhf" >&5
17978 $as_echo_n "checking for atanhf... " >&6; }
17979 if ${gcc_cv_math_func_atanhf+:} false; then :
17980 $as_echo_n "(cached) " >&6
17981 else
17982 if test x$gcc_no_link = xyes; then
17983 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17984 fi
17985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17986 /* end confdefs.h. */
17987
17988 #ifdef HAVE_COMPLEX_H
17989 #include <complex.h>
17990 #endif
17991 #ifdef HAVE_MATH_H
17992 #include <math.h>
17993 #endif
17994
17995 int (*ptr)() = (int (*)())atanhf;
17996
17997 int
17998 main ()
17999 {
18000 return 0;
18001 }
18002
18003 _ACEOF
18004 if ac_fn_c_try_link "$LINENO"; then :
18005 gcc_cv_math_func_atanhf=yes
18006 else
18007 gcc_cv_math_func_atanhf=no
18008 fi
18009 rm -f core conftest.err conftest.$ac_objext \
18010 conftest$ac_exeext conftest.$ac_ext
18011 fi
18012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhf" >&5
18013 $as_echo "$gcc_cv_math_func_atanhf" >&6; }
18014 if test $gcc_cv_math_func_atanhf = yes; then
18015
18016 cat >>confdefs.h <<_ACEOF
18017 #define HAVE_ATANHF 1
18018 _ACEOF
18019
18020 fi
18021
18022
18023
18024
18025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanh" >&5
18026 $as_echo_n "checking for atanh... " >&6; }
18027 if ${gcc_cv_math_func_atanh+:} false; then :
18028 $as_echo_n "(cached) " >&6
18029 else
18030 if test x$gcc_no_link = xyes; then
18031 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18032 fi
18033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18034 /* end confdefs.h. */
18035
18036 #ifdef HAVE_COMPLEX_H
18037 #include <complex.h>
18038 #endif
18039 #ifdef HAVE_MATH_H
18040 #include <math.h>
18041 #endif
18042
18043 int (*ptr)() = (int (*)())atanh;
18044
18045 int
18046 main ()
18047 {
18048 return 0;
18049 }
18050
18051 _ACEOF
18052 if ac_fn_c_try_link "$LINENO"; then :
18053 gcc_cv_math_func_atanh=yes
18054 else
18055 gcc_cv_math_func_atanh=no
18056 fi
18057 rm -f core conftest.err conftest.$ac_objext \
18058 conftest$ac_exeext conftest.$ac_ext
18059 fi
18060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanh" >&5
18061 $as_echo "$gcc_cv_math_func_atanh" >&6; }
18062 if test $gcc_cv_math_func_atanh = yes; then
18063
18064 cat >>confdefs.h <<_ACEOF
18065 #define HAVE_ATANH 1
18066 _ACEOF
18067
18068 fi
18069
18070
18071
18072
18073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhl" >&5
18074 $as_echo_n "checking for atanhl... " >&6; }
18075 if ${gcc_cv_math_func_atanhl+:} false; then :
18076 $as_echo_n "(cached) " >&6
18077 else
18078 if test x$gcc_no_link = xyes; then
18079 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18080 fi
18081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18082 /* end confdefs.h. */
18083
18084 #ifdef HAVE_COMPLEX_H
18085 #include <complex.h>
18086 #endif
18087 #ifdef HAVE_MATH_H
18088 #include <math.h>
18089 #endif
18090
18091 int (*ptr)() = (int (*)())atanhl;
18092
18093 int
18094 main ()
18095 {
18096 return 0;
18097 }
18098
18099 _ACEOF
18100 if ac_fn_c_try_link "$LINENO"; then :
18101 gcc_cv_math_func_atanhl=yes
18102 else
18103 gcc_cv_math_func_atanhl=no
18104 fi
18105 rm -f core conftest.err conftest.$ac_objext \
18106 conftest$ac_exeext conftest.$ac_ext
18107 fi
18108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhl" >&5
18109 $as_echo "$gcc_cv_math_func_atanhl" >&6; }
18110 if test $gcc_cv_math_func_atanhl = yes; then
18111
18112 cat >>confdefs.h <<_ACEOF
18113 #define HAVE_ATANHL 1
18114 _ACEOF
18115
18116 fi
18117
18118
18119
18120
18121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargf" >&5
18122 $as_echo_n "checking for cargf... " >&6; }
18123 if ${gcc_cv_math_func_cargf+:} false; then :
18124 $as_echo_n "(cached) " >&6
18125 else
18126 if test x$gcc_no_link = xyes; then
18127 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18128 fi
18129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18130 /* end confdefs.h. */
18131
18132 #ifdef HAVE_COMPLEX_H
18133 #include <complex.h>
18134 #endif
18135 #ifdef HAVE_MATH_H
18136 #include <math.h>
18137 #endif
18138
18139 int (*ptr)() = (int (*)())cargf;
18140
18141 int
18142 main ()
18143 {
18144 return 0;
18145 }
18146
18147 _ACEOF
18148 if ac_fn_c_try_link "$LINENO"; then :
18149 gcc_cv_math_func_cargf=yes
18150 else
18151 gcc_cv_math_func_cargf=no
18152 fi
18153 rm -f core conftest.err conftest.$ac_objext \
18154 conftest$ac_exeext conftest.$ac_ext
18155 fi
18156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargf" >&5
18157 $as_echo "$gcc_cv_math_func_cargf" >&6; }
18158 if test $gcc_cv_math_func_cargf = yes; then
18159
18160 cat >>confdefs.h <<_ACEOF
18161 #define HAVE_CARGF 1
18162 _ACEOF
18163
18164 fi
18165
18166
18167
18168
18169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for carg" >&5
18170 $as_echo_n "checking for carg... " >&6; }
18171 if ${gcc_cv_math_func_carg+:} false; then :
18172 $as_echo_n "(cached) " >&6
18173 else
18174 if test x$gcc_no_link = xyes; then
18175 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18176 fi
18177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18178 /* end confdefs.h. */
18179
18180 #ifdef HAVE_COMPLEX_H
18181 #include <complex.h>
18182 #endif
18183 #ifdef HAVE_MATH_H
18184 #include <math.h>
18185 #endif
18186
18187 int (*ptr)() = (int (*)())carg;
18188
18189 int
18190 main ()
18191 {
18192 return 0;
18193 }
18194
18195 _ACEOF
18196 if ac_fn_c_try_link "$LINENO"; then :
18197 gcc_cv_math_func_carg=yes
18198 else
18199 gcc_cv_math_func_carg=no
18200 fi
18201 rm -f core conftest.err conftest.$ac_objext \
18202 conftest$ac_exeext conftest.$ac_ext
18203 fi
18204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_carg" >&5
18205 $as_echo "$gcc_cv_math_func_carg" >&6; }
18206 if test $gcc_cv_math_func_carg = yes; then
18207
18208 cat >>confdefs.h <<_ACEOF
18209 #define HAVE_CARG 1
18210 _ACEOF
18211
18212 fi
18213
18214
18215
18216
18217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargl" >&5
18218 $as_echo_n "checking for cargl... " >&6; }
18219 if ${gcc_cv_math_func_cargl+:} false; then :
18220 $as_echo_n "(cached) " >&6
18221 else
18222 if test x$gcc_no_link = xyes; then
18223 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18224 fi
18225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18226 /* end confdefs.h. */
18227
18228 #ifdef HAVE_COMPLEX_H
18229 #include <complex.h>
18230 #endif
18231 #ifdef HAVE_MATH_H
18232 #include <math.h>
18233 #endif
18234
18235 int (*ptr)() = (int (*)())cargl;
18236
18237 int
18238 main ()
18239 {
18240 return 0;
18241 }
18242
18243 _ACEOF
18244 if ac_fn_c_try_link "$LINENO"; then :
18245 gcc_cv_math_func_cargl=yes
18246 else
18247 gcc_cv_math_func_cargl=no
18248 fi
18249 rm -f core conftest.err conftest.$ac_objext \
18250 conftest$ac_exeext conftest.$ac_ext
18251 fi
18252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargl" >&5
18253 $as_echo "$gcc_cv_math_func_cargl" >&6; }
18254 if test $gcc_cv_math_func_cargl = yes; then
18255
18256 cat >>confdefs.h <<_ACEOF
18257 #define HAVE_CARGL 1
18258 _ACEOF
18259
18260 fi
18261
18262
18263
18264
18265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceilf" >&5
18266 $as_echo_n "checking for ceilf... " >&6; }
18267 if ${gcc_cv_math_func_ceilf+:} false; then :
18268 $as_echo_n "(cached) " >&6
18269 else
18270 if test x$gcc_no_link = xyes; then
18271 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18272 fi
18273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18274 /* end confdefs.h. */
18275
18276 #ifdef HAVE_COMPLEX_H
18277 #include <complex.h>
18278 #endif
18279 #ifdef HAVE_MATH_H
18280 #include <math.h>
18281 #endif
18282
18283 int (*ptr)() = (int (*)())ceilf;
18284
18285 int
18286 main ()
18287 {
18288 return 0;
18289 }
18290
18291 _ACEOF
18292 if ac_fn_c_try_link "$LINENO"; then :
18293 gcc_cv_math_func_ceilf=yes
18294 else
18295 gcc_cv_math_func_ceilf=no
18296 fi
18297 rm -f core conftest.err conftest.$ac_objext \
18298 conftest$ac_exeext conftest.$ac_ext
18299 fi
18300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceilf" >&5
18301 $as_echo "$gcc_cv_math_func_ceilf" >&6; }
18302 if test $gcc_cv_math_func_ceilf = yes; then
18303
18304 cat >>confdefs.h <<_ACEOF
18305 #define HAVE_CEILF 1
18306 _ACEOF
18307
18308 fi
18309
18310
18311
18312
18313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil" >&5
18314 $as_echo_n "checking for ceil... " >&6; }
18315 if ${gcc_cv_math_func_ceil+:} false; then :
18316 $as_echo_n "(cached) " >&6
18317 else
18318 if test x$gcc_no_link = xyes; then
18319 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18320 fi
18321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18322 /* end confdefs.h. */
18323
18324 #ifdef HAVE_COMPLEX_H
18325 #include <complex.h>
18326 #endif
18327 #ifdef HAVE_MATH_H
18328 #include <math.h>
18329 #endif
18330
18331 int (*ptr)() = (int (*)())ceil;
18332
18333 int
18334 main ()
18335 {
18336 return 0;
18337 }
18338
18339 _ACEOF
18340 if ac_fn_c_try_link "$LINENO"; then :
18341 gcc_cv_math_func_ceil=yes
18342 else
18343 gcc_cv_math_func_ceil=no
18344 fi
18345 rm -f core conftest.err conftest.$ac_objext \
18346 conftest$ac_exeext conftest.$ac_ext
18347 fi
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceil" >&5
18349 $as_echo "$gcc_cv_math_func_ceil" >&6; }
18350 if test $gcc_cv_math_func_ceil = yes; then
18351
18352 cat >>confdefs.h <<_ACEOF
18353 #define HAVE_CEIL 1
18354 _ACEOF
18355
18356 fi
18357
18358
18359
18360
18361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceill" >&5
18362 $as_echo_n "checking for ceill... " >&6; }
18363 if ${gcc_cv_math_func_ceill+:} false; then :
18364 $as_echo_n "(cached) " >&6
18365 else
18366 if test x$gcc_no_link = xyes; then
18367 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18368 fi
18369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18370 /* end confdefs.h. */
18371
18372 #ifdef HAVE_COMPLEX_H
18373 #include <complex.h>
18374 #endif
18375 #ifdef HAVE_MATH_H
18376 #include <math.h>
18377 #endif
18378
18379 int (*ptr)() = (int (*)())ceill;
18380
18381 int
18382 main ()
18383 {
18384 return 0;
18385 }
18386
18387 _ACEOF
18388 if ac_fn_c_try_link "$LINENO"; then :
18389 gcc_cv_math_func_ceill=yes
18390 else
18391 gcc_cv_math_func_ceill=no
18392 fi
18393 rm -f core conftest.err conftest.$ac_objext \
18394 conftest$ac_exeext conftest.$ac_ext
18395 fi
18396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceill" >&5
18397 $as_echo "$gcc_cv_math_func_ceill" >&6; }
18398 if test $gcc_cv_math_func_ceill = yes; then
18399
18400 cat >>confdefs.h <<_ACEOF
18401 #define HAVE_CEILL 1
18402 _ACEOF
18403
18404 fi
18405
18406
18407
18408
18409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignf" >&5
18410 $as_echo_n "checking for copysignf... " >&6; }
18411 if ${gcc_cv_math_func_copysignf+:} false; then :
18412 $as_echo_n "(cached) " >&6
18413 else
18414 if test x$gcc_no_link = xyes; then
18415 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18416 fi
18417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18418 /* end confdefs.h. */
18419
18420 #ifdef HAVE_COMPLEX_H
18421 #include <complex.h>
18422 #endif
18423 #ifdef HAVE_MATH_H
18424 #include <math.h>
18425 #endif
18426
18427 int (*ptr)() = (int (*)())copysignf;
18428
18429 int
18430 main ()
18431 {
18432 return 0;
18433 }
18434
18435 _ACEOF
18436 if ac_fn_c_try_link "$LINENO"; then :
18437 gcc_cv_math_func_copysignf=yes
18438 else
18439 gcc_cv_math_func_copysignf=no
18440 fi
18441 rm -f core conftest.err conftest.$ac_objext \
18442 conftest$ac_exeext conftest.$ac_ext
18443 fi
18444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignf" >&5
18445 $as_echo "$gcc_cv_math_func_copysignf" >&6; }
18446 if test $gcc_cv_math_func_copysignf = yes; then
18447
18448 cat >>confdefs.h <<_ACEOF
18449 #define HAVE_COPYSIGNF 1
18450 _ACEOF
18451
18452 fi
18453
18454
18455
18456
18457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysign" >&5
18458 $as_echo_n "checking for copysign... " >&6; }
18459 if ${gcc_cv_math_func_copysign+:} false; then :
18460 $as_echo_n "(cached) " >&6
18461 else
18462 if test x$gcc_no_link = xyes; then
18463 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18464 fi
18465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18466 /* end confdefs.h. */
18467
18468 #ifdef HAVE_COMPLEX_H
18469 #include <complex.h>
18470 #endif
18471 #ifdef HAVE_MATH_H
18472 #include <math.h>
18473 #endif
18474
18475 int (*ptr)() = (int (*)())copysign;
18476
18477 int
18478 main ()
18479 {
18480 return 0;
18481 }
18482
18483 _ACEOF
18484 if ac_fn_c_try_link "$LINENO"; then :
18485 gcc_cv_math_func_copysign=yes
18486 else
18487 gcc_cv_math_func_copysign=no
18488 fi
18489 rm -f core conftest.err conftest.$ac_objext \
18490 conftest$ac_exeext conftest.$ac_ext
18491 fi
18492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysign" >&5
18493 $as_echo "$gcc_cv_math_func_copysign" >&6; }
18494 if test $gcc_cv_math_func_copysign = yes; then
18495
18496 cat >>confdefs.h <<_ACEOF
18497 #define HAVE_COPYSIGN 1
18498 _ACEOF
18499
18500 fi
18501
18502
18503
18504
18505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignl" >&5
18506 $as_echo_n "checking for copysignl... " >&6; }
18507 if ${gcc_cv_math_func_copysignl+:} false; then :
18508 $as_echo_n "(cached) " >&6
18509 else
18510 if test x$gcc_no_link = xyes; then
18511 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18512 fi
18513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18514 /* end confdefs.h. */
18515
18516 #ifdef HAVE_COMPLEX_H
18517 #include <complex.h>
18518 #endif
18519 #ifdef HAVE_MATH_H
18520 #include <math.h>
18521 #endif
18522
18523 int (*ptr)() = (int (*)())copysignl;
18524
18525 int
18526 main ()
18527 {
18528 return 0;
18529 }
18530
18531 _ACEOF
18532 if ac_fn_c_try_link "$LINENO"; then :
18533 gcc_cv_math_func_copysignl=yes
18534 else
18535 gcc_cv_math_func_copysignl=no
18536 fi
18537 rm -f core conftest.err conftest.$ac_objext \
18538 conftest$ac_exeext conftest.$ac_ext
18539 fi
18540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignl" >&5
18541 $as_echo "$gcc_cv_math_func_copysignl" >&6; }
18542 if test $gcc_cv_math_func_copysignl = yes; then
18543
18544 cat >>confdefs.h <<_ACEOF
18545 #define HAVE_COPYSIGNL 1
18546 _ACEOF
18547
18548 fi
18549
18550
18551
18552
18553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosf" >&5
18554 $as_echo_n "checking for cosf... " >&6; }
18555 if ${gcc_cv_math_func_cosf+:} false; then :
18556 $as_echo_n "(cached) " >&6
18557 else
18558 if test x$gcc_no_link = xyes; then
18559 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18560 fi
18561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18562 /* end confdefs.h. */
18563
18564 #ifdef HAVE_COMPLEX_H
18565 #include <complex.h>
18566 #endif
18567 #ifdef HAVE_MATH_H
18568 #include <math.h>
18569 #endif
18570
18571 int (*ptr)() = (int (*)())cosf;
18572
18573 int
18574 main ()
18575 {
18576 return 0;
18577 }
18578
18579 _ACEOF
18580 if ac_fn_c_try_link "$LINENO"; then :
18581 gcc_cv_math_func_cosf=yes
18582 else
18583 gcc_cv_math_func_cosf=no
18584 fi
18585 rm -f core conftest.err conftest.$ac_objext \
18586 conftest$ac_exeext conftest.$ac_ext
18587 fi
18588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosf" >&5
18589 $as_echo "$gcc_cv_math_func_cosf" >&6; }
18590 if test $gcc_cv_math_func_cosf = yes; then
18591
18592 cat >>confdefs.h <<_ACEOF
18593 #define HAVE_COSF 1
18594 _ACEOF
18595
18596 fi
18597
18598
18599
18600
18601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos" >&5
18602 $as_echo_n "checking for cos... " >&6; }
18603 if ${gcc_cv_math_func_cos+:} false; then :
18604 $as_echo_n "(cached) " >&6
18605 else
18606 if test x$gcc_no_link = xyes; then
18607 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18608 fi
18609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18610 /* end confdefs.h. */
18611
18612 #ifdef HAVE_COMPLEX_H
18613 #include <complex.h>
18614 #endif
18615 #ifdef HAVE_MATH_H
18616 #include <math.h>
18617 #endif
18618
18619 int (*ptr)() = (int (*)())cos;
18620
18621 int
18622 main ()
18623 {
18624 return 0;
18625 }
18626
18627 _ACEOF
18628 if ac_fn_c_try_link "$LINENO"; then :
18629 gcc_cv_math_func_cos=yes
18630 else
18631 gcc_cv_math_func_cos=no
18632 fi
18633 rm -f core conftest.err conftest.$ac_objext \
18634 conftest$ac_exeext conftest.$ac_ext
18635 fi
18636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cos" >&5
18637 $as_echo "$gcc_cv_math_func_cos" >&6; }
18638 if test $gcc_cv_math_func_cos = yes; then
18639
18640 cat >>confdefs.h <<_ACEOF
18641 #define HAVE_COS 1
18642 _ACEOF
18643
18644 fi
18645
18646
18647
18648
18649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosl" >&5
18650 $as_echo_n "checking for cosl... " >&6; }
18651 if ${gcc_cv_math_func_cosl+:} false; then :
18652 $as_echo_n "(cached) " >&6
18653 else
18654 if test x$gcc_no_link = xyes; then
18655 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18656 fi
18657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18658 /* end confdefs.h. */
18659
18660 #ifdef HAVE_COMPLEX_H
18661 #include <complex.h>
18662 #endif
18663 #ifdef HAVE_MATH_H
18664 #include <math.h>
18665 #endif
18666
18667 int (*ptr)() = (int (*)())cosl;
18668
18669 int
18670 main ()
18671 {
18672 return 0;
18673 }
18674
18675 _ACEOF
18676 if ac_fn_c_try_link "$LINENO"; then :
18677 gcc_cv_math_func_cosl=yes
18678 else
18679 gcc_cv_math_func_cosl=no
18680 fi
18681 rm -f core conftest.err conftest.$ac_objext \
18682 conftest$ac_exeext conftest.$ac_ext
18683 fi
18684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosl" >&5
18685 $as_echo "$gcc_cv_math_func_cosl" >&6; }
18686 if test $gcc_cv_math_func_cosl = yes; then
18687
18688 cat >>confdefs.h <<_ACEOF
18689 #define HAVE_COSL 1
18690 _ACEOF
18691
18692 fi
18693
18694
18695
18696
18697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosf" >&5
18698 $as_echo_n "checking for ccosf... " >&6; }
18699 if ${gcc_cv_math_func_ccosf+:} false; then :
18700 $as_echo_n "(cached) " >&6
18701 else
18702 if test x$gcc_no_link = xyes; then
18703 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18704 fi
18705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18706 /* end confdefs.h. */
18707
18708 #ifdef HAVE_COMPLEX_H
18709 #include <complex.h>
18710 #endif
18711 #ifdef HAVE_MATH_H
18712 #include <math.h>
18713 #endif
18714
18715 int (*ptr)() = (int (*)())ccosf;
18716
18717 int
18718 main ()
18719 {
18720 return 0;
18721 }
18722
18723 _ACEOF
18724 if ac_fn_c_try_link "$LINENO"; then :
18725 gcc_cv_math_func_ccosf=yes
18726 else
18727 gcc_cv_math_func_ccosf=no
18728 fi
18729 rm -f core conftest.err conftest.$ac_objext \
18730 conftest$ac_exeext conftest.$ac_ext
18731 fi
18732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosf" >&5
18733 $as_echo "$gcc_cv_math_func_ccosf" >&6; }
18734 if test $gcc_cv_math_func_ccosf = yes; then
18735
18736 cat >>confdefs.h <<_ACEOF
18737 #define HAVE_CCOSF 1
18738 _ACEOF
18739
18740 fi
18741
18742
18743
18744
18745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccos" >&5
18746 $as_echo_n "checking for ccos... " >&6; }
18747 if ${gcc_cv_math_func_ccos+:} false; then :
18748 $as_echo_n "(cached) " >&6
18749 else
18750 if test x$gcc_no_link = xyes; then
18751 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18752 fi
18753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18754 /* end confdefs.h. */
18755
18756 #ifdef HAVE_COMPLEX_H
18757 #include <complex.h>
18758 #endif
18759 #ifdef HAVE_MATH_H
18760 #include <math.h>
18761 #endif
18762
18763 int (*ptr)() = (int (*)())ccos;
18764
18765 int
18766 main ()
18767 {
18768 return 0;
18769 }
18770
18771 _ACEOF
18772 if ac_fn_c_try_link "$LINENO"; then :
18773 gcc_cv_math_func_ccos=yes
18774 else
18775 gcc_cv_math_func_ccos=no
18776 fi
18777 rm -f core conftest.err conftest.$ac_objext \
18778 conftest$ac_exeext conftest.$ac_ext
18779 fi
18780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccos" >&5
18781 $as_echo "$gcc_cv_math_func_ccos" >&6; }
18782 if test $gcc_cv_math_func_ccos = yes; then
18783
18784 cat >>confdefs.h <<_ACEOF
18785 #define HAVE_CCOS 1
18786 _ACEOF
18787
18788 fi
18789
18790
18791
18792
18793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosl" >&5
18794 $as_echo_n "checking for ccosl... " >&6; }
18795 if ${gcc_cv_math_func_ccosl+:} false; then :
18796 $as_echo_n "(cached) " >&6
18797 else
18798 if test x$gcc_no_link = xyes; then
18799 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18800 fi
18801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18802 /* end confdefs.h. */
18803
18804 #ifdef HAVE_COMPLEX_H
18805 #include <complex.h>
18806 #endif
18807 #ifdef HAVE_MATH_H
18808 #include <math.h>
18809 #endif
18810
18811 int (*ptr)() = (int (*)())ccosl;
18812
18813 int
18814 main ()
18815 {
18816 return 0;
18817 }
18818
18819 _ACEOF
18820 if ac_fn_c_try_link "$LINENO"; then :
18821 gcc_cv_math_func_ccosl=yes
18822 else
18823 gcc_cv_math_func_ccosl=no
18824 fi
18825 rm -f core conftest.err conftest.$ac_objext \
18826 conftest$ac_exeext conftest.$ac_ext
18827 fi
18828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosl" >&5
18829 $as_echo "$gcc_cv_math_func_ccosl" >&6; }
18830 if test $gcc_cv_math_func_ccosl = yes; then
18831
18832 cat >>confdefs.h <<_ACEOF
18833 #define HAVE_CCOSL 1
18834 _ACEOF
18835
18836 fi
18837
18838
18839
18840
18841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshf" >&5
18842 $as_echo_n "checking for coshf... " >&6; }
18843 if ${gcc_cv_math_func_coshf+:} false; then :
18844 $as_echo_n "(cached) " >&6
18845 else
18846 if test x$gcc_no_link = xyes; then
18847 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18848 fi
18849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18850 /* end confdefs.h. */
18851
18852 #ifdef HAVE_COMPLEX_H
18853 #include <complex.h>
18854 #endif
18855 #ifdef HAVE_MATH_H
18856 #include <math.h>
18857 #endif
18858
18859 int (*ptr)() = (int (*)())coshf;
18860
18861 int
18862 main ()
18863 {
18864 return 0;
18865 }
18866
18867 _ACEOF
18868 if ac_fn_c_try_link "$LINENO"; then :
18869 gcc_cv_math_func_coshf=yes
18870 else
18871 gcc_cv_math_func_coshf=no
18872 fi
18873 rm -f core conftest.err conftest.$ac_objext \
18874 conftest$ac_exeext conftest.$ac_ext
18875 fi
18876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshf" >&5
18877 $as_echo "$gcc_cv_math_func_coshf" >&6; }
18878 if test $gcc_cv_math_func_coshf = yes; then
18879
18880 cat >>confdefs.h <<_ACEOF
18881 #define HAVE_COSHF 1
18882 _ACEOF
18883
18884 fi
18885
18886
18887
18888
18889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosh" >&5
18890 $as_echo_n "checking for cosh... " >&6; }
18891 if ${gcc_cv_math_func_cosh+:} false; then :
18892 $as_echo_n "(cached) " >&6
18893 else
18894 if test x$gcc_no_link = xyes; then
18895 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18896 fi
18897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18898 /* end confdefs.h. */
18899
18900 #ifdef HAVE_COMPLEX_H
18901 #include <complex.h>
18902 #endif
18903 #ifdef HAVE_MATH_H
18904 #include <math.h>
18905 #endif
18906
18907 int (*ptr)() = (int (*)())cosh;
18908
18909 int
18910 main ()
18911 {
18912 return 0;
18913 }
18914
18915 _ACEOF
18916 if ac_fn_c_try_link "$LINENO"; then :
18917 gcc_cv_math_func_cosh=yes
18918 else
18919 gcc_cv_math_func_cosh=no
18920 fi
18921 rm -f core conftest.err conftest.$ac_objext \
18922 conftest$ac_exeext conftest.$ac_ext
18923 fi
18924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosh" >&5
18925 $as_echo "$gcc_cv_math_func_cosh" >&6; }
18926 if test $gcc_cv_math_func_cosh = yes; then
18927
18928 cat >>confdefs.h <<_ACEOF
18929 #define HAVE_COSH 1
18930 _ACEOF
18931
18932 fi
18933
18934
18935
18936
18937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshl" >&5
18938 $as_echo_n "checking for coshl... " >&6; }
18939 if ${gcc_cv_math_func_coshl+:} false; then :
18940 $as_echo_n "(cached) " >&6
18941 else
18942 if test x$gcc_no_link = xyes; then
18943 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18944 fi
18945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18946 /* end confdefs.h. */
18947
18948 #ifdef HAVE_COMPLEX_H
18949 #include <complex.h>
18950 #endif
18951 #ifdef HAVE_MATH_H
18952 #include <math.h>
18953 #endif
18954
18955 int (*ptr)() = (int (*)())coshl;
18956
18957 int
18958 main ()
18959 {
18960 return 0;
18961 }
18962
18963 _ACEOF
18964 if ac_fn_c_try_link "$LINENO"; then :
18965 gcc_cv_math_func_coshl=yes
18966 else
18967 gcc_cv_math_func_coshl=no
18968 fi
18969 rm -f core conftest.err conftest.$ac_objext \
18970 conftest$ac_exeext conftest.$ac_ext
18971 fi
18972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshl" >&5
18973 $as_echo "$gcc_cv_math_func_coshl" >&6; }
18974 if test $gcc_cv_math_func_coshl = yes; then
18975
18976 cat >>confdefs.h <<_ACEOF
18977 #define HAVE_COSHL 1
18978 _ACEOF
18979
18980 fi
18981
18982
18983
18984
18985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshf" >&5
18986 $as_echo_n "checking for ccoshf... " >&6; }
18987 if ${gcc_cv_math_func_ccoshf+:} false; then :
18988 $as_echo_n "(cached) " >&6
18989 else
18990 if test x$gcc_no_link = xyes; then
18991 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18992 fi
18993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18994 /* end confdefs.h. */
18995
18996 #ifdef HAVE_COMPLEX_H
18997 #include <complex.h>
18998 #endif
18999 #ifdef HAVE_MATH_H
19000 #include <math.h>
19001 #endif
19002
19003 int (*ptr)() = (int (*)())ccoshf;
19004
19005 int
19006 main ()
19007 {
19008 return 0;
19009 }
19010
19011 _ACEOF
19012 if ac_fn_c_try_link "$LINENO"; then :
19013 gcc_cv_math_func_ccoshf=yes
19014 else
19015 gcc_cv_math_func_ccoshf=no
19016 fi
19017 rm -f core conftest.err conftest.$ac_objext \
19018 conftest$ac_exeext conftest.$ac_ext
19019 fi
19020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshf" >&5
19021 $as_echo "$gcc_cv_math_func_ccoshf" >&6; }
19022 if test $gcc_cv_math_func_ccoshf = yes; then
19023
19024 cat >>confdefs.h <<_ACEOF
19025 #define HAVE_CCOSHF 1
19026 _ACEOF
19027
19028 fi
19029
19030
19031
19032
19033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosh" >&5
19034 $as_echo_n "checking for ccosh... " >&6; }
19035 if ${gcc_cv_math_func_ccosh+:} false; then :
19036 $as_echo_n "(cached) " >&6
19037 else
19038 if test x$gcc_no_link = xyes; then
19039 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19040 fi
19041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19042 /* end confdefs.h. */
19043
19044 #ifdef HAVE_COMPLEX_H
19045 #include <complex.h>
19046 #endif
19047 #ifdef HAVE_MATH_H
19048 #include <math.h>
19049 #endif
19050
19051 int (*ptr)() = (int (*)())ccosh;
19052
19053 int
19054 main ()
19055 {
19056 return 0;
19057 }
19058
19059 _ACEOF
19060 if ac_fn_c_try_link "$LINENO"; then :
19061 gcc_cv_math_func_ccosh=yes
19062 else
19063 gcc_cv_math_func_ccosh=no
19064 fi
19065 rm -f core conftest.err conftest.$ac_objext \
19066 conftest$ac_exeext conftest.$ac_ext
19067 fi
19068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosh" >&5
19069 $as_echo "$gcc_cv_math_func_ccosh" >&6; }
19070 if test $gcc_cv_math_func_ccosh = yes; then
19071
19072 cat >>confdefs.h <<_ACEOF
19073 #define HAVE_CCOSH 1
19074 _ACEOF
19075
19076 fi
19077
19078
19079
19080
19081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshl" >&5
19082 $as_echo_n "checking for ccoshl... " >&6; }
19083 if ${gcc_cv_math_func_ccoshl+:} false; then :
19084 $as_echo_n "(cached) " >&6
19085 else
19086 if test x$gcc_no_link = xyes; then
19087 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19088 fi
19089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19090 /* end confdefs.h. */
19091
19092 #ifdef HAVE_COMPLEX_H
19093 #include <complex.h>
19094 #endif
19095 #ifdef HAVE_MATH_H
19096 #include <math.h>
19097 #endif
19098
19099 int (*ptr)() = (int (*)())ccoshl;
19100
19101 int
19102 main ()
19103 {
19104 return 0;
19105 }
19106
19107 _ACEOF
19108 if ac_fn_c_try_link "$LINENO"; then :
19109 gcc_cv_math_func_ccoshl=yes
19110 else
19111 gcc_cv_math_func_ccoshl=no
19112 fi
19113 rm -f core conftest.err conftest.$ac_objext \
19114 conftest$ac_exeext conftest.$ac_ext
19115 fi
19116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshl" >&5
19117 $as_echo "$gcc_cv_math_func_ccoshl" >&6; }
19118 if test $gcc_cv_math_func_ccoshl = yes; then
19119
19120 cat >>confdefs.h <<_ACEOF
19121 #define HAVE_CCOSHL 1
19122 _ACEOF
19123
19124 fi
19125
19126
19127
19128
19129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf" >&5
19130 $as_echo_n "checking for expf... " >&6; }
19131 if ${gcc_cv_math_func_expf+:} false; then :
19132 $as_echo_n "(cached) " >&6
19133 else
19134 if test x$gcc_no_link = xyes; then
19135 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19136 fi
19137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19138 /* end confdefs.h. */
19139
19140 #ifdef HAVE_COMPLEX_H
19141 #include <complex.h>
19142 #endif
19143 #ifdef HAVE_MATH_H
19144 #include <math.h>
19145 #endif
19146
19147 int (*ptr)() = (int (*)())expf;
19148
19149 int
19150 main ()
19151 {
19152 return 0;
19153 }
19154
19155 _ACEOF
19156 if ac_fn_c_try_link "$LINENO"; then :
19157 gcc_cv_math_func_expf=yes
19158 else
19159 gcc_cv_math_func_expf=no
19160 fi
19161 rm -f core conftest.err conftest.$ac_objext \
19162 conftest$ac_exeext conftest.$ac_ext
19163 fi
19164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expf" >&5
19165 $as_echo "$gcc_cv_math_func_expf" >&6; }
19166 if test $gcc_cv_math_func_expf = yes; then
19167
19168 cat >>confdefs.h <<_ACEOF
19169 #define HAVE_EXPF 1
19170 _ACEOF
19171
19172 fi
19173
19174
19175
19176
19177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp" >&5
19178 $as_echo_n "checking for exp... " >&6; }
19179 if ${gcc_cv_math_func_exp+:} false; then :
19180 $as_echo_n "(cached) " >&6
19181 else
19182 if test x$gcc_no_link = xyes; then
19183 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19184 fi
19185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19186 /* end confdefs.h. */
19187
19188 #ifdef HAVE_COMPLEX_H
19189 #include <complex.h>
19190 #endif
19191 #ifdef HAVE_MATH_H
19192 #include <math.h>
19193 #endif
19194
19195 int (*ptr)() = (int (*)())exp;
19196
19197 int
19198 main ()
19199 {
19200 return 0;
19201 }
19202
19203 _ACEOF
19204 if ac_fn_c_try_link "$LINENO"; then :
19205 gcc_cv_math_func_exp=yes
19206 else
19207 gcc_cv_math_func_exp=no
19208 fi
19209 rm -f core conftest.err conftest.$ac_objext \
19210 conftest$ac_exeext conftest.$ac_ext
19211 fi
19212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_exp" >&5
19213 $as_echo "$gcc_cv_math_func_exp" >&6; }
19214 if test $gcc_cv_math_func_exp = yes; then
19215
19216 cat >>confdefs.h <<_ACEOF
19217 #define HAVE_EXP 1
19218 _ACEOF
19219
19220 fi
19221
19222
19223
19224
19225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl" >&5
19226 $as_echo_n "checking for expl... " >&6; }
19227 if ${gcc_cv_math_func_expl+:} false; then :
19228 $as_echo_n "(cached) " >&6
19229 else
19230 if test x$gcc_no_link = xyes; then
19231 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19232 fi
19233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19234 /* end confdefs.h. */
19235
19236 #ifdef HAVE_COMPLEX_H
19237 #include <complex.h>
19238 #endif
19239 #ifdef HAVE_MATH_H
19240 #include <math.h>
19241 #endif
19242
19243 int (*ptr)() = (int (*)())expl;
19244
19245 int
19246 main ()
19247 {
19248 return 0;
19249 }
19250
19251 _ACEOF
19252 if ac_fn_c_try_link "$LINENO"; then :
19253 gcc_cv_math_func_expl=yes
19254 else
19255 gcc_cv_math_func_expl=no
19256 fi
19257 rm -f core conftest.err conftest.$ac_objext \
19258 conftest$ac_exeext conftest.$ac_ext
19259 fi
19260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expl" >&5
19261 $as_echo "$gcc_cv_math_func_expl" >&6; }
19262 if test $gcc_cv_math_func_expl = yes; then
19263
19264 cat >>confdefs.h <<_ACEOF
19265 #define HAVE_EXPL 1
19266 _ACEOF
19267
19268 fi
19269
19270
19271
19272
19273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpf" >&5
19274 $as_echo_n "checking for cexpf... " >&6; }
19275 if ${gcc_cv_math_func_cexpf+:} false; then :
19276 $as_echo_n "(cached) " >&6
19277 else
19278 if test x$gcc_no_link = xyes; then
19279 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19280 fi
19281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19282 /* end confdefs.h. */
19283
19284 #ifdef HAVE_COMPLEX_H
19285 #include <complex.h>
19286 #endif
19287 #ifdef HAVE_MATH_H
19288 #include <math.h>
19289 #endif
19290
19291 int (*ptr)() = (int (*)())cexpf;
19292
19293 int
19294 main ()
19295 {
19296 return 0;
19297 }
19298
19299 _ACEOF
19300 if ac_fn_c_try_link "$LINENO"; then :
19301 gcc_cv_math_func_cexpf=yes
19302 else
19303 gcc_cv_math_func_cexpf=no
19304 fi
19305 rm -f core conftest.err conftest.$ac_objext \
19306 conftest$ac_exeext conftest.$ac_ext
19307 fi
19308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpf" >&5
19309 $as_echo "$gcc_cv_math_func_cexpf" >&6; }
19310 if test $gcc_cv_math_func_cexpf = yes; then
19311
19312 cat >>confdefs.h <<_ACEOF
19313 #define HAVE_CEXPF 1
19314 _ACEOF
19315
19316 fi
19317
19318
19319
19320
19321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexp" >&5
19322 $as_echo_n "checking for cexp... " >&6; }
19323 if ${gcc_cv_math_func_cexp+:} false; then :
19324 $as_echo_n "(cached) " >&6
19325 else
19326 if test x$gcc_no_link = xyes; then
19327 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19328 fi
19329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19330 /* end confdefs.h. */
19331
19332 #ifdef HAVE_COMPLEX_H
19333 #include <complex.h>
19334 #endif
19335 #ifdef HAVE_MATH_H
19336 #include <math.h>
19337 #endif
19338
19339 int (*ptr)() = (int (*)())cexp;
19340
19341 int
19342 main ()
19343 {
19344 return 0;
19345 }
19346
19347 _ACEOF
19348 if ac_fn_c_try_link "$LINENO"; then :
19349 gcc_cv_math_func_cexp=yes
19350 else
19351 gcc_cv_math_func_cexp=no
19352 fi
19353 rm -f core conftest.err conftest.$ac_objext \
19354 conftest$ac_exeext conftest.$ac_ext
19355 fi
19356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexp" >&5
19357 $as_echo "$gcc_cv_math_func_cexp" >&6; }
19358 if test $gcc_cv_math_func_cexp = yes; then
19359
19360 cat >>confdefs.h <<_ACEOF
19361 #define HAVE_CEXP 1
19362 _ACEOF
19363
19364 fi
19365
19366
19367
19368
19369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpl" >&5
19370 $as_echo_n "checking for cexpl... " >&6; }
19371 if ${gcc_cv_math_func_cexpl+:} false; then :
19372 $as_echo_n "(cached) " >&6
19373 else
19374 if test x$gcc_no_link = xyes; then
19375 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19376 fi
19377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19378 /* end confdefs.h. */
19379
19380 #ifdef HAVE_COMPLEX_H
19381 #include <complex.h>
19382 #endif
19383 #ifdef HAVE_MATH_H
19384 #include <math.h>
19385 #endif
19386
19387 int (*ptr)() = (int (*)())cexpl;
19388
19389 int
19390 main ()
19391 {
19392 return 0;
19393 }
19394
19395 _ACEOF
19396 if ac_fn_c_try_link "$LINENO"; then :
19397 gcc_cv_math_func_cexpl=yes
19398 else
19399 gcc_cv_math_func_cexpl=no
19400 fi
19401 rm -f core conftest.err conftest.$ac_objext \
19402 conftest$ac_exeext conftest.$ac_ext
19403 fi
19404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpl" >&5
19405 $as_echo "$gcc_cv_math_func_cexpl" >&6; }
19406 if test $gcc_cv_math_func_cexpl = yes; then
19407
19408 cat >>confdefs.h <<_ACEOF
19409 #define HAVE_CEXPL 1
19410 _ACEOF
19411
19412 fi
19413
19414
19415
19416
19417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf" >&5
19418 $as_echo_n "checking for fabsf... " >&6; }
19419 if ${gcc_cv_math_func_fabsf+:} false; then :
19420 $as_echo_n "(cached) " >&6
19421 else
19422 if test x$gcc_no_link = xyes; then
19423 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19424 fi
19425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19426 /* end confdefs.h. */
19427
19428 #ifdef HAVE_COMPLEX_H
19429 #include <complex.h>
19430 #endif
19431 #ifdef HAVE_MATH_H
19432 #include <math.h>
19433 #endif
19434
19435 int (*ptr)() = (int (*)())fabsf;
19436
19437 int
19438 main ()
19439 {
19440 return 0;
19441 }
19442
19443 _ACEOF
19444 if ac_fn_c_try_link "$LINENO"; then :
19445 gcc_cv_math_func_fabsf=yes
19446 else
19447 gcc_cv_math_func_fabsf=no
19448 fi
19449 rm -f core conftest.err conftest.$ac_objext \
19450 conftest$ac_exeext conftest.$ac_ext
19451 fi
19452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsf" >&5
19453 $as_echo "$gcc_cv_math_func_fabsf" >&6; }
19454 if test $gcc_cv_math_func_fabsf = yes; then
19455
19456 cat >>confdefs.h <<_ACEOF
19457 #define HAVE_FABSF 1
19458 _ACEOF
19459
19460 fi
19461
19462
19463
19464
19465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs" >&5
19466 $as_echo_n "checking for fabs... " >&6; }
19467 if ${gcc_cv_math_func_fabs+:} false; then :
19468 $as_echo_n "(cached) " >&6
19469 else
19470 if test x$gcc_no_link = xyes; then
19471 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19472 fi
19473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19474 /* end confdefs.h. */
19475
19476 #ifdef HAVE_COMPLEX_H
19477 #include <complex.h>
19478 #endif
19479 #ifdef HAVE_MATH_H
19480 #include <math.h>
19481 #endif
19482
19483 int (*ptr)() = (int (*)())fabs;
19484
19485 int
19486 main ()
19487 {
19488 return 0;
19489 }
19490
19491 _ACEOF
19492 if ac_fn_c_try_link "$LINENO"; then :
19493 gcc_cv_math_func_fabs=yes
19494 else
19495 gcc_cv_math_func_fabs=no
19496 fi
19497 rm -f core conftest.err conftest.$ac_objext \
19498 conftest$ac_exeext conftest.$ac_ext
19499 fi
19500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabs" >&5
19501 $as_echo "$gcc_cv_math_func_fabs" >&6; }
19502 if test $gcc_cv_math_func_fabs = yes; then
19503
19504 cat >>confdefs.h <<_ACEOF
19505 #define HAVE_FABS 1
19506 _ACEOF
19507
19508 fi
19509
19510
19511
19512
19513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl" >&5
19514 $as_echo_n "checking for fabsl... " >&6; }
19515 if ${gcc_cv_math_func_fabsl+:} false; then :
19516 $as_echo_n "(cached) " >&6
19517 else
19518 if test x$gcc_no_link = xyes; then
19519 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19520 fi
19521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19522 /* end confdefs.h. */
19523
19524 #ifdef HAVE_COMPLEX_H
19525 #include <complex.h>
19526 #endif
19527 #ifdef HAVE_MATH_H
19528 #include <math.h>
19529 #endif
19530
19531 int (*ptr)() = (int (*)())fabsl;
19532
19533 int
19534 main ()
19535 {
19536 return 0;
19537 }
19538
19539 _ACEOF
19540 if ac_fn_c_try_link "$LINENO"; then :
19541 gcc_cv_math_func_fabsl=yes
19542 else
19543 gcc_cv_math_func_fabsl=no
19544 fi
19545 rm -f core conftest.err conftest.$ac_objext \
19546 conftest$ac_exeext conftest.$ac_ext
19547 fi
19548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsl" >&5
19549 $as_echo "$gcc_cv_math_func_fabsl" >&6; }
19550 if test $gcc_cv_math_func_fabsl = yes; then
19551
19552 cat >>confdefs.h <<_ACEOF
19553 #define HAVE_FABSL 1
19554 _ACEOF
19555
19556 fi
19557
19558
19559
19560
19561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsf" >&5
19562 $as_echo_n "checking for cabsf... " >&6; }
19563 if ${gcc_cv_math_func_cabsf+:} false; then :
19564 $as_echo_n "(cached) " >&6
19565 else
19566 if test x$gcc_no_link = xyes; then
19567 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19568 fi
19569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19570 /* end confdefs.h. */
19571
19572 #ifdef HAVE_COMPLEX_H
19573 #include <complex.h>
19574 #endif
19575 #ifdef HAVE_MATH_H
19576 #include <math.h>
19577 #endif
19578
19579 int (*ptr)() = (int (*)())cabsf;
19580
19581 int
19582 main ()
19583 {
19584 return 0;
19585 }
19586
19587 _ACEOF
19588 if ac_fn_c_try_link "$LINENO"; then :
19589 gcc_cv_math_func_cabsf=yes
19590 else
19591 gcc_cv_math_func_cabsf=no
19592 fi
19593 rm -f core conftest.err conftest.$ac_objext \
19594 conftest$ac_exeext conftest.$ac_ext
19595 fi
19596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsf" >&5
19597 $as_echo "$gcc_cv_math_func_cabsf" >&6; }
19598 if test $gcc_cv_math_func_cabsf = yes; then
19599
19600 cat >>confdefs.h <<_ACEOF
19601 #define HAVE_CABSF 1
19602 _ACEOF
19603
19604 fi
19605
19606
19607
19608
19609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabs" >&5
19610 $as_echo_n "checking for cabs... " >&6; }
19611 if ${gcc_cv_math_func_cabs+:} false; then :
19612 $as_echo_n "(cached) " >&6
19613 else
19614 if test x$gcc_no_link = xyes; then
19615 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19616 fi
19617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19618 /* end confdefs.h. */
19619
19620 #ifdef HAVE_COMPLEX_H
19621 #include <complex.h>
19622 #endif
19623 #ifdef HAVE_MATH_H
19624 #include <math.h>
19625 #endif
19626
19627 int (*ptr)() = (int (*)())cabs;
19628
19629 int
19630 main ()
19631 {
19632 return 0;
19633 }
19634
19635 _ACEOF
19636 if ac_fn_c_try_link "$LINENO"; then :
19637 gcc_cv_math_func_cabs=yes
19638 else
19639 gcc_cv_math_func_cabs=no
19640 fi
19641 rm -f core conftest.err conftest.$ac_objext \
19642 conftest$ac_exeext conftest.$ac_ext
19643 fi
19644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabs" >&5
19645 $as_echo "$gcc_cv_math_func_cabs" >&6; }
19646 if test $gcc_cv_math_func_cabs = yes; then
19647
19648 cat >>confdefs.h <<_ACEOF
19649 #define HAVE_CABS 1
19650 _ACEOF
19651
19652 fi
19653
19654
19655
19656
19657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsl" >&5
19658 $as_echo_n "checking for cabsl... " >&6; }
19659 if ${gcc_cv_math_func_cabsl+:} false; then :
19660 $as_echo_n "(cached) " >&6
19661 else
19662 if test x$gcc_no_link = xyes; then
19663 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19664 fi
19665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19666 /* end confdefs.h. */
19667
19668 #ifdef HAVE_COMPLEX_H
19669 #include <complex.h>
19670 #endif
19671 #ifdef HAVE_MATH_H
19672 #include <math.h>
19673 #endif
19674
19675 int (*ptr)() = (int (*)())cabsl;
19676
19677 int
19678 main ()
19679 {
19680 return 0;
19681 }
19682
19683 _ACEOF
19684 if ac_fn_c_try_link "$LINENO"; then :
19685 gcc_cv_math_func_cabsl=yes
19686 else
19687 gcc_cv_math_func_cabsl=no
19688 fi
19689 rm -f core conftest.err conftest.$ac_objext \
19690 conftest$ac_exeext conftest.$ac_ext
19691 fi
19692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsl" >&5
19693 $as_echo "$gcc_cv_math_func_cabsl" >&6; }
19694 if test $gcc_cv_math_func_cabsl = yes; then
19695
19696 cat >>confdefs.h <<_ACEOF
19697 #define HAVE_CABSL 1
19698 _ACEOF
19699
19700 fi
19701
19702
19703
19704
19705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorf" >&5
19706 $as_echo_n "checking for floorf... " >&6; }
19707 if ${gcc_cv_math_func_floorf+:} false; then :
19708 $as_echo_n "(cached) " >&6
19709 else
19710 if test x$gcc_no_link = xyes; then
19711 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19712 fi
19713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19714 /* end confdefs.h. */
19715
19716 #ifdef HAVE_COMPLEX_H
19717 #include <complex.h>
19718 #endif
19719 #ifdef HAVE_MATH_H
19720 #include <math.h>
19721 #endif
19722
19723 int (*ptr)() = (int (*)())floorf;
19724
19725 int
19726 main ()
19727 {
19728 return 0;
19729 }
19730
19731 _ACEOF
19732 if ac_fn_c_try_link "$LINENO"; then :
19733 gcc_cv_math_func_floorf=yes
19734 else
19735 gcc_cv_math_func_floorf=no
19736 fi
19737 rm -f core conftest.err conftest.$ac_objext \
19738 conftest$ac_exeext conftest.$ac_ext
19739 fi
19740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorf" >&5
19741 $as_echo "$gcc_cv_math_func_floorf" >&6; }
19742 if test $gcc_cv_math_func_floorf = yes; then
19743
19744 cat >>confdefs.h <<_ACEOF
19745 #define HAVE_FLOORF 1
19746 _ACEOF
19747
19748 fi
19749
19750
19751
19752
19753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor" >&5
19754 $as_echo_n "checking for floor... " >&6; }
19755 if ${gcc_cv_math_func_floor+:} false; then :
19756 $as_echo_n "(cached) " >&6
19757 else
19758 if test x$gcc_no_link = xyes; then
19759 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19760 fi
19761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19762 /* end confdefs.h. */
19763
19764 #ifdef HAVE_COMPLEX_H
19765 #include <complex.h>
19766 #endif
19767 #ifdef HAVE_MATH_H
19768 #include <math.h>
19769 #endif
19770
19771 int (*ptr)() = (int (*)())floor;
19772
19773 int
19774 main ()
19775 {
19776 return 0;
19777 }
19778
19779 _ACEOF
19780 if ac_fn_c_try_link "$LINENO"; then :
19781 gcc_cv_math_func_floor=yes
19782 else
19783 gcc_cv_math_func_floor=no
19784 fi
19785 rm -f core conftest.err conftest.$ac_objext \
19786 conftest$ac_exeext conftest.$ac_ext
19787 fi
19788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floor" >&5
19789 $as_echo "$gcc_cv_math_func_floor" >&6; }
19790 if test $gcc_cv_math_func_floor = yes; then
19791
19792 cat >>confdefs.h <<_ACEOF
19793 #define HAVE_FLOOR 1
19794 _ACEOF
19795
19796 fi
19797
19798
19799
19800
19801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorl" >&5
19802 $as_echo_n "checking for floorl... " >&6; }
19803 if ${gcc_cv_math_func_floorl+:} false; then :
19804 $as_echo_n "(cached) " >&6
19805 else
19806 if test x$gcc_no_link = xyes; then
19807 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19808 fi
19809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19810 /* end confdefs.h. */
19811
19812 #ifdef HAVE_COMPLEX_H
19813 #include <complex.h>
19814 #endif
19815 #ifdef HAVE_MATH_H
19816 #include <math.h>
19817 #endif
19818
19819 int (*ptr)() = (int (*)())floorl;
19820
19821 int
19822 main ()
19823 {
19824 return 0;
19825 }
19826
19827 _ACEOF
19828 if ac_fn_c_try_link "$LINENO"; then :
19829 gcc_cv_math_func_floorl=yes
19830 else
19831 gcc_cv_math_func_floorl=no
19832 fi
19833 rm -f core conftest.err conftest.$ac_objext \
19834 conftest$ac_exeext conftest.$ac_ext
19835 fi
19836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorl" >&5
19837 $as_echo "$gcc_cv_math_func_floorl" >&6; }
19838 if test $gcc_cv_math_func_floorl = yes; then
19839
19840 cat >>confdefs.h <<_ACEOF
19841 #define HAVE_FLOORL 1
19842 _ACEOF
19843
19844 fi
19845
19846
19847
19848
19849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmaf" >&5
19850 $as_echo_n "checking for fmaf... " >&6; }
19851 if ${gcc_cv_math_func_fmaf+:} false; then :
19852 $as_echo_n "(cached) " >&6
19853 else
19854 if test x$gcc_no_link = xyes; then
19855 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19856 fi
19857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19858 /* end confdefs.h. */
19859
19860 #ifdef HAVE_COMPLEX_H
19861 #include <complex.h>
19862 #endif
19863 #ifdef HAVE_MATH_H
19864 #include <math.h>
19865 #endif
19866
19867 int (*ptr)() = (int (*)())fmaf;
19868
19869 int
19870 main ()
19871 {
19872 return 0;
19873 }
19874
19875 _ACEOF
19876 if ac_fn_c_try_link "$LINENO"; then :
19877 gcc_cv_math_func_fmaf=yes
19878 else
19879 gcc_cv_math_func_fmaf=no
19880 fi
19881 rm -f core conftest.err conftest.$ac_objext \
19882 conftest$ac_exeext conftest.$ac_ext
19883 fi
19884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmaf" >&5
19885 $as_echo "$gcc_cv_math_func_fmaf" >&6; }
19886 if test $gcc_cv_math_func_fmaf = yes; then
19887
19888 cat >>confdefs.h <<_ACEOF
19889 #define HAVE_FMAF 1
19890 _ACEOF
19891
19892 fi
19893
19894
19895
19896
19897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fma" >&5
19898 $as_echo_n "checking for fma... " >&6; }
19899 if ${gcc_cv_math_func_fma+:} false; then :
19900 $as_echo_n "(cached) " >&6
19901 else
19902 if test x$gcc_no_link = xyes; then
19903 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19904 fi
19905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19906 /* end confdefs.h. */
19907
19908 #ifdef HAVE_COMPLEX_H
19909 #include <complex.h>
19910 #endif
19911 #ifdef HAVE_MATH_H
19912 #include <math.h>
19913 #endif
19914
19915 int (*ptr)() = (int (*)())fma;
19916
19917 int
19918 main ()
19919 {
19920 return 0;
19921 }
19922
19923 _ACEOF
19924 if ac_fn_c_try_link "$LINENO"; then :
19925 gcc_cv_math_func_fma=yes
19926 else
19927 gcc_cv_math_func_fma=no
19928 fi
19929 rm -f core conftest.err conftest.$ac_objext \
19930 conftest$ac_exeext conftest.$ac_ext
19931 fi
19932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fma" >&5
19933 $as_echo "$gcc_cv_math_func_fma" >&6; }
19934 if test $gcc_cv_math_func_fma = yes; then
19935
19936 cat >>confdefs.h <<_ACEOF
19937 #define HAVE_FMA 1
19938 _ACEOF
19939
19940 fi
19941
19942
19943
19944
19945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmal" >&5
19946 $as_echo_n "checking for fmal... " >&6; }
19947 if ${gcc_cv_math_func_fmal+:} false; then :
19948 $as_echo_n "(cached) " >&6
19949 else
19950 if test x$gcc_no_link = xyes; then
19951 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19952 fi
19953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19954 /* end confdefs.h. */
19955
19956 #ifdef HAVE_COMPLEX_H
19957 #include <complex.h>
19958 #endif
19959 #ifdef HAVE_MATH_H
19960 #include <math.h>
19961 #endif
19962
19963 int (*ptr)() = (int (*)())fmal;
19964
19965 int
19966 main ()
19967 {
19968 return 0;
19969 }
19970
19971 _ACEOF
19972 if ac_fn_c_try_link "$LINENO"; then :
19973 gcc_cv_math_func_fmal=yes
19974 else
19975 gcc_cv_math_func_fmal=no
19976 fi
19977 rm -f core conftest.err conftest.$ac_objext \
19978 conftest$ac_exeext conftest.$ac_ext
19979 fi
19980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmal" >&5
19981 $as_echo "$gcc_cv_math_func_fmal" >&6; }
19982 if test $gcc_cv_math_func_fmal = yes; then
19983
19984 cat >>confdefs.h <<_ACEOF
19985 #define HAVE_FMAL 1
19986 _ACEOF
19987
19988 fi
19989
19990
19991
19992
19993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf" >&5
19994 $as_echo_n "checking for fmodf... " >&6; }
19995 if ${gcc_cv_math_func_fmodf+:} false; then :
19996 $as_echo_n "(cached) " >&6
19997 else
19998 if test x$gcc_no_link = xyes; then
19999 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20000 fi
20001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20002 /* end confdefs.h. */
20003
20004 #ifdef HAVE_COMPLEX_H
20005 #include <complex.h>
20006 #endif
20007 #ifdef HAVE_MATH_H
20008 #include <math.h>
20009 #endif
20010
20011 int (*ptr)() = (int (*)())fmodf;
20012
20013 int
20014 main ()
20015 {
20016 return 0;
20017 }
20018
20019 _ACEOF
20020 if ac_fn_c_try_link "$LINENO"; then :
20021 gcc_cv_math_func_fmodf=yes
20022 else
20023 gcc_cv_math_func_fmodf=no
20024 fi
20025 rm -f core conftest.err conftest.$ac_objext \
20026 conftest$ac_exeext conftest.$ac_ext
20027 fi
20028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodf" >&5
20029 $as_echo "$gcc_cv_math_func_fmodf" >&6; }
20030 if test $gcc_cv_math_func_fmodf = yes; then
20031
20032 cat >>confdefs.h <<_ACEOF
20033 #define HAVE_FMODF 1
20034 _ACEOF
20035
20036 fi
20037
20038
20039
20040
20041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod" >&5
20042 $as_echo_n "checking for fmod... " >&6; }
20043 if ${gcc_cv_math_func_fmod+:} false; then :
20044 $as_echo_n "(cached) " >&6
20045 else
20046 if test x$gcc_no_link = xyes; then
20047 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20048 fi
20049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20050 /* end confdefs.h. */
20051
20052 #ifdef HAVE_COMPLEX_H
20053 #include <complex.h>
20054 #endif
20055 #ifdef HAVE_MATH_H
20056 #include <math.h>
20057 #endif
20058
20059 int (*ptr)() = (int (*)())fmod;
20060
20061 int
20062 main ()
20063 {
20064 return 0;
20065 }
20066
20067 _ACEOF
20068 if ac_fn_c_try_link "$LINENO"; then :
20069 gcc_cv_math_func_fmod=yes
20070 else
20071 gcc_cv_math_func_fmod=no
20072 fi
20073 rm -f core conftest.err conftest.$ac_objext \
20074 conftest$ac_exeext conftest.$ac_ext
20075 fi
20076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmod" >&5
20077 $as_echo "$gcc_cv_math_func_fmod" >&6; }
20078 if test $gcc_cv_math_func_fmod = yes; then
20079
20080 cat >>confdefs.h <<_ACEOF
20081 #define HAVE_FMOD 1
20082 _ACEOF
20083
20084 fi
20085
20086
20087
20088
20089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl" >&5
20090 $as_echo_n "checking for fmodl... " >&6; }
20091 if ${gcc_cv_math_func_fmodl+:} false; then :
20092 $as_echo_n "(cached) " >&6
20093 else
20094 if test x$gcc_no_link = xyes; then
20095 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20096 fi
20097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20098 /* end confdefs.h. */
20099
20100 #ifdef HAVE_COMPLEX_H
20101 #include <complex.h>
20102 #endif
20103 #ifdef HAVE_MATH_H
20104 #include <math.h>
20105 #endif
20106
20107 int (*ptr)() = (int (*)())fmodl;
20108
20109 int
20110 main ()
20111 {
20112 return 0;
20113 }
20114
20115 _ACEOF
20116 if ac_fn_c_try_link "$LINENO"; then :
20117 gcc_cv_math_func_fmodl=yes
20118 else
20119 gcc_cv_math_func_fmodl=no
20120 fi
20121 rm -f core conftest.err conftest.$ac_objext \
20122 conftest$ac_exeext conftest.$ac_ext
20123 fi
20124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodl" >&5
20125 $as_echo "$gcc_cv_math_func_fmodl" >&6; }
20126 if test $gcc_cv_math_func_fmodl = yes; then
20127
20128 cat >>confdefs.h <<_ACEOF
20129 #define HAVE_FMODL 1
20130 _ACEOF
20131
20132 fi
20133
20134
20135
20136
20137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf" >&5
20138 $as_echo_n "checking for frexpf... " >&6; }
20139 if ${gcc_cv_math_func_frexpf+:} false; then :
20140 $as_echo_n "(cached) " >&6
20141 else
20142 if test x$gcc_no_link = xyes; then
20143 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20144 fi
20145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20146 /* end confdefs.h. */
20147
20148 #ifdef HAVE_COMPLEX_H
20149 #include <complex.h>
20150 #endif
20151 #ifdef HAVE_MATH_H
20152 #include <math.h>
20153 #endif
20154
20155 int (*ptr)() = (int (*)())frexpf;
20156
20157 int
20158 main ()
20159 {
20160 return 0;
20161 }
20162
20163 _ACEOF
20164 if ac_fn_c_try_link "$LINENO"; then :
20165 gcc_cv_math_func_frexpf=yes
20166 else
20167 gcc_cv_math_func_frexpf=no
20168 fi
20169 rm -f core conftest.err conftest.$ac_objext \
20170 conftest$ac_exeext conftest.$ac_ext
20171 fi
20172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpf" >&5
20173 $as_echo "$gcc_cv_math_func_frexpf" >&6; }
20174 if test $gcc_cv_math_func_frexpf = yes; then
20175
20176 cat >>confdefs.h <<_ACEOF
20177 #define HAVE_FREXPF 1
20178 _ACEOF
20179
20180 fi
20181
20182
20183
20184
20185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexp" >&5
20186 $as_echo_n "checking for frexp... " >&6; }
20187 if ${gcc_cv_math_func_frexp+:} false; then :
20188 $as_echo_n "(cached) " >&6
20189 else
20190 if test x$gcc_no_link = xyes; then
20191 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20192 fi
20193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20194 /* end confdefs.h. */
20195
20196 #ifdef HAVE_COMPLEX_H
20197 #include <complex.h>
20198 #endif
20199 #ifdef HAVE_MATH_H
20200 #include <math.h>
20201 #endif
20202
20203 int (*ptr)() = (int (*)())frexp;
20204
20205 int
20206 main ()
20207 {
20208 return 0;
20209 }
20210
20211 _ACEOF
20212 if ac_fn_c_try_link "$LINENO"; then :
20213 gcc_cv_math_func_frexp=yes
20214 else
20215 gcc_cv_math_func_frexp=no
20216 fi
20217 rm -f core conftest.err conftest.$ac_objext \
20218 conftest$ac_exeext conftest.$ac_ext
20219 fi
20220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexp" >&5
20221 $as_echo "$gcc_cv_math_func_frexp" >&6; }
20222 if test $gcc_cv_math_func_frexp = yes; then
20223
20224 cat >>confdefs.h <<_ACEOF
20225 #define HAVE_FREXP 1
20226 _ACEOF
20227
20228 fi
20229
20230
20231
20232
20233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl" >&5
20234 $as_echo_n "checking for frexpl... " >&6; }
20235 if ${gcc_cv_math_func_frexpl+:} false; then :
20236 $as_echo_n "(cached) " >&6
20237 else
20238 if test x$gcc_no_link = xyes; then
20239 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20240 fi
20241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20242 /* end confdefs.h. */
20243
20244 #ifdef HAVE_COMPLEX_H
20245 #include <complex.h>
20246 #endif
20247 #ifdef HAVE_MATH_H
20248 #include <math.h>
20249 #endif
20250
20251 int (*ptr)() = (int (*)())frexpl;
20252
20253 int
20254 main ()
20255 {
20256 return 0;
20257 }
20258
20259 _ACEOF
20260 if ac_fn_c_try_link "$LINENO"; then :
20261 gcc_cv_math_func_frexpl=yes
20262 else
20263 gcc_cv_math_func_frexpl=no
20264 fi
20265 rm -f core conftest.err conftest.$ac_objext \
20266 conftest$ac_exeext conftest.$ac_ext
20267 fi
20268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpl" >&5
20269 $as_echo "$gcc_cv_math_func_frexpl" >&6; }
20270 if test $gcc_cv_math_func_frexpl = yes; then
20271
20272 cat >>confdefs.h <<_ACEOF
20273 #define HAVE_FREXPL 1
20274 _ACEOF
20275
20276 fi
20277
20278
20279
20280
20281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf" >&5
20282 $as_echo_n "checking for hypotf... " >&6; }
20283 if ${gcc_cv_math_func_hypotf+:} false; then :
20284 $as_echo_n "(cached) " >&6
20285 else
20286 if test x$gcc_no_link = xyes; then
20287 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20288 fi
20289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20290 /* end confdefs.h. */
20291
20292 #ifdef HAVE_COMPLEX_H
20293 #include <complex.h>
20294 #endif
20295 #ifdef HAVE_MATH_H
20296 #include <math.h>
20297 #endif
20298
20299 int (*ptr)() = (int (*)())hypotf;
20300
20301 int
20302 main ()
20303 {
20304 return 0;
20305 }
20306
20307 _ACEOF
20308 if ac_fn_c_try_link "$LINENO"; then :
20309 gcc_cv_math_func_hypotf=yes
20310 else
20311 gcc_cv_math_func_hypotf=no
20312 fi
20313 rm -f core conftest.err conftest.$ac_objext \
20314 conftest$ac_exeext conftest.$ac_ext
20315 fi
20316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotf" >&5
20317 $as_echo "$gcc_cv_math_func_hypotf" >&6; }
20318 if test $gcc_cv_math_func_hypotf = yes; then
20319
20320 cat >>confdefs.h <<_ACEOF
20321 #define HAVE_HYPOTF 1
20322 _ACEOF
20323
20324 fi
20325
20326
20327
20328
20329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot" >&5
20330 $as_echo_n "checking for hypot... " >&6; }
20331 if ${gcc_cv_math_func_hypot+:} false; then :
20332 $as_echo_n "(cached) " >&6
20333 else
20334 if test x$gcc_no_link = xyes; then
20335 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20336 fi
20337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20338 /* end confdefs.h. */
20339
20340 #ifdef HAVE_COMPLEX_H
20341 #include <complex.h>
20342 #endif
20343 #ifdef HAVE_MATH_H
20344 #include <math.h>
20345 #endif
20346
20347 int (*ptr)() = (int (*)())hypot;
20348
20349 int
20350 main ()
20351 {
20352 return 0;
20353 }
20354
20355 _ACEOF
20356 if ac_fn_c_try_link "$LINENO"; then :
20357 gcc_cv_math_func_hypot=yes
20358 else
20359 gcc_cv_math_func_hypot=no
20360 fi
20361 rm -f core conftest.err conftest.$ac_objext \
20362 conftest$ac_exeext conftest.$ac_ext
20363 fi
20364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypot" >&5
20365 $as_echo "$gcc_cv_math_func_hypot" >&6; }
20366 if test $gcc_cv_math_func_hypot = yes; then
20367
20368 cat >>confdefs.h <<_ACEOF
20369 #define HAVE_HYPOT 1
20370 _ACEOF
20371
20372 fi
20373
20374
20375
20376
20377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl" >&5
20378 $as_echo_n "checking for hypotl... " >&6; }
20379 if ${gcc_cv_math_func_hypotl+:} false; then :
20380 $as_echo_n "(cached) " >&6
20381 else
20382 if test x$gcc_no_link = xyes; then
20383 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20384 fi
20385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20386 /* end confdefs.h. */
20387
20388 #ifdef HAVE_COMPLEX_H
20389 #include <complex.h>
20390 #endif
20391 #ifdef HAVE_MATH_H
20392 #include <math.h>
20393 #endif
20394
20395 int (*ptr)() = (int (*)())hypotl;
20396
20397 int
20398 main ()
20399 {
20400 return 0;
20401 }
20402
20403 _ACEOF
20404 if ac_fn_c_try_link "$LINENO"; then :
20405 gcc_cv_math_func_hypotl=yes
20406 else
20407 gcc_cv_math_func_hypotl=no
20408 fi
20409 rm -f core conftest.err conftest.$ac_objext \
20410 conftest$ac_exeext conftest.$ac_ext
20411 fi
20412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotl" >&5
20413 $as_echo "$gcc_cv_math_func_hypotl" >&6; }
20414 if test $gcc_cv_math_func_hypotl = yes; then
20415
20416 cat >>confdefs.h <<_ACEOF
20417 #define HAVE_HYPOTL 1
20418 _ACEOF
20419
20420 fi
20421
20422
20423
20424
20425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf" >&5
20426 $as_echo_n "checking for ldexpf... " >&6; }
20427 if ${gcc_cv_math_func_ldexpf+:} false; then :
20428 $as_echo_n "(cached) " >&6
20429 else
20430 if test x$gcc_no_link = xyes; then
20431 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20432 fi
20433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20434 /* end confdefs.h. */
20435
20436 #ifdef HAVE_COMPLEX_H
20437 #include <complex.h>
20438 #endif
20439 #ifdef HAVE_MATH_H
20440 #include <math.h>
20441 #endif
20442
20443 int (*ptr)() = (int (*)())ldexpf;
20444
20445 int
20446 main ()
20447 {
20448 return 0;
20449 }
20450
20451 _ACEOF
20452 if ac_fn_c_try_link "$LINENO"; then :
20453 gcc_cv_math_func_ldexpf=yes
20454 else
20455 gcc_cv_math_func_ldexpf=no
20456 fi
20457 rm -f core conftest.err conftest.$ac_objext \
20458 conftest$ac_exeext conftest.$ac_ext
20459 fi
20460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpf" >&5
20461 $as_echo "$gcc_cv_math_func_ldexpf" >&6; }
20462 if test $gcc_cv_math_func_ldexpf = yes; then
20463
20464 cat >>confdefs.h <<_ACEOF
20465 #define HAVE_LDEXPF 1
20466 _ACEOF
20467
20468 fi
20469
20470
20471
20472
20473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexp" >&5
20474 $as_echo_n "checking for ldexp... " >&6; }
20475 if ${gcc_cv_math_func_ldexp+:} false; then :
20476 $as_echo_n "(cached) " >&6
20477 else
20478 if test x$gcc_no_link = xyes; then
20479 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20480 fi
20481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20482 /* end confdefs.h. */
20483
20484 #ifdef HAVE_COMPLEX_H
20485 #include <complex.h>
20486 #endif
20487 #ifdef HAVE_MATH_H
20488 #include <math.h>
20489 #endif
20490
20491 int (*ptr)() = (int (*)())ldexp;
20492
20493 int
20494 main ()
20495 {
20496 return 0;
20497 }
20498
20499 _ACEOF
20500 if ac_fn_c_try_link "$LINENO"; then :
20501 gcc_cv_math_func_ldexp=yes
20502 else
20503 gcc_cv_math_func_ldexp=no
20504 fi
20505 rm -f core conftest.err conftest.$ac_objext \
20506 conftest$ac_exeext conftest.$ac_ext
20507 fi
20508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexp" >&5
20509 $as_echo "$gcc_cv_math_func_ldexp" >&6; }
20510 if test $gcc_cv_math_func_ldexp = yes; then
20511
20512 cat >>confdefs.h <<_ACEOF
20513 #define HAVE_LDEXP 1
20514 _ACEOF
20515
20516 fi
20517
20518
20519
20520
20521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl" >&5
20522 $as_echo_n "checking for ldexpl... " >&6; }
20523 if ${gcc_cv_math_func_ldexpl+:} false; then :
20524 $as_echo_n "(cached) " >&6
20525 else
20526 if test x$gcc_no_link = xyes; then
20527 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20528 fi
20529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20530 /* end confdefs.h. */
20531
20532 #ifdef HAVE_COMPLEX_H
20533 #include <complex.h>
20534 #endif
20535 #ifdef HAVE_MATH_H
20536 #include <math.h>
20537 #endif
20538
20539 int (*ptr)() = (int (*)())ldexpl;
20540
20541 int
20542 main ()
20543 {
20544 return 0;
20545 }
20546
20547 _ACEOF
20548 if ac_fn_c_try_link "$LINENO"; then :
20549 gcc_cv_math_func_ldexpl=yes
20550 else
20551 gcc_cv_math_func_ldexpl=no
20552 fi
20553 rm -f core conftest.err conftest.$ac_objext \
20554 conftest$ac_exeext conftest.$ac_ext
20555 fi
20556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpl" >&5
20557 $as_echo "$gcc_cv_math_func_ldexpl" >&6; }
20558 if test $gcc_cv_math_func_ldexpl = yes; then
20559
20560 cat >>confdefs.h <<_ACEOF
20561 #define HAVE_LDEXPL 1
20562 _ACEOF
20563
20564 fi
20565
20566
20567
20568
20569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf" >&5
20570 $as_echo_n "checking for logf... " >&6; }
20571 if ${gcc_cv_math_func_logf+:} false; then :
20572 $as_echo_n "(cached) " >&6
20573 else
20574 if test x$gcc_no_link = xyes; then
20575 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20576 fi
20577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20578 /* end confdefs.h. */
20579
20580 #ifdef HAVE_COMPLEX_H
20581 #include <complex.h>
20582 #endif
20583 #ifdef HAVE_MATH_H
20584 #include <math.h>
20585 #endif
20586
20587 int (*ptr)() = (int (*)())logf;
20588
20589 int
20590 main ()
20591 {
20592 return 0;
20593 }
20594
20595 _ACEOF
20596 if ac_fn_c_try_link "$LINENO"; then :
20597 gcc_cv_math_func_logf=yes
20598 else
20599 gcc_cv_math_func_logf=no
20600 fi
20601 rm -f core conftest.err conftest.$ac_objext \
20602 conftest$ac_exeext conftest.$ac_ext
20603 fi
20604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logf" >&5
20605 $as_echo "$gcc_cv_math_func_logf" >&6; }
20606 if test $gcc_cv_math_func_logf = yes; then
20607
20608 cat >>confdefs.h <<_ACEOF
20609 #define HAVE_LOGF 1
20610 _ACEOF
20611
20612 fi
20613
20614
20615
20616
20617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log" >&5
20618 $as_echo_n "checking for log... " >&6; }
20619 if ${gcc_cv_math_func_log+:} false; then :
20620 $as_echo_n "(cached) " >&6
20621 else
20622 if test x$gcc_no_link = xyes; then
20623 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20624 fi
20625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20626 /* end confdefs.h. */
20627
20628 #ifdef HAVE_COMPLEX_H
20629 #include <complex.h>
20630 #endif
20631 #ifdef HAVE_MATH_H
20632 #include <math.h>
20633 #endif
20634
20635 int (*ptr)() = (int (*)())log;
20636
20637 int
20638 main ()
20639 {
20640 return 0;
20641 }
20642
20643 _ACEOF
20644 if ac_fn_c_try_link "$LINENO"; then :
20645 gcc_cv_math_func_log=yes
20646 else
20647 gcc_cv_math_func_log=no
20648 fi
20649 rm -f core conftest.err conftest.$ac_objext \
20650 conftest$ac_exeext conftest.$ac_ext
20651 fi
20652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log" >&5
20653 $as_echo "$gcc_cv_math_func_log" >&6; }
20654 if test $gcc_cv_math_func_log = yes; then
20655
20656 cat >>confdefs.h <<_ACEOF
20657 #define HAVE_LOG 1
20658 _ACEOF
20659
20660 fi
20661
20662
20663
20664
20665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl" >&5
20666 $as_echo_n "checking for logl... " >&6; }
20667 if ${gcc_cv_math_func_logl+:} false; then :
20668 $as_echo_n "(cached) " >&6
20669 else
20670 if test x$gcc_no_link = xyes; then
20671 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20672 fi
20673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20674 /* end confdefs.h. */
20675
20676 #ifdef HAVE_COMPLEX_H
20677 #include <complex.h>
20678 #endif
20679 #ifdef HAVE_MATH_H
20680 #include <math.h>
20681 #endif
20682
20683 int (*ptr)() = (int (*)())logl;
20684
20685 int
20686 main ()
20687 {
20688 return 0;
20689 }
20690
20691 _ACEOF
20692 if ac_fn_c_try_link "$LINENO"; then :
20693 gcc_cv_math_func_logl=yes
20694 else
20695 gcc_cv_math_func_logl=no
20696 fi
20697 rm -f core conftest.err conftest.$ac_objext \
20698 conftest$ac_exeext conftest.$ac_ext
20699 fi
20700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logl" >&5
20701 $as_echo "$gcc_cv_math_func_logl" >&6; }
20702 if test $gcc_cv_math_func_logl = yes; then
20703
20704 cat >>confdefs.h <<_ACEOF
20705 #define HAVE_LOGL 1
20706 _ACEOF
20707
20708 fi
20709
20710
20711
20712
20713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogf" >&5
20714 $as_echo_n "checking for clogf... " >&6; }
20715 if ${gcc_cv_math_func_clogf+:} false; then :
20716 $as_echo_n "(cached) " >&6
20717 else
20718 if test x$gcc_no_link = xyes; then
20719 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20720 fi
20721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20722 /* end confdefs.h. */
20723
20724 #ifdef HAVE_COMPLEX_H
20725 #include <complex.h>
20726 #endif
20727 #ifdef HAVE_MATH_H
20728 #include <math.h>
20729 #endif
20730
20731 int (*ptr)() = (int (*)())clogf;
20732
20733 int
20734 main ()
20735 {
20736 return 0;
20737 }
20738
20739 _ACEOF
20740 if ac_fn_c_try_link "$LINENO"; then :
20741 gcc_cv_math_func_clogf=yes
20742 else
20743 gcc_cv_math_func_clogf=no
20744 fi
20745 rm -f core conftest.err conftest.$ac_objext \
20746 conftest$ac_exeext conftest.$ac_ext
20747 fi
20748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogf" >&5
20749 $as_echo "$gcc_cv_math_func_clogf" >&6; }
20750 if test $gcc_cv_math_func_clogf = yes; then
20751
20752 cat >>confdefs.h <<_ACEOF
20753 #define HAVE_CLOGF 1
20754 _ACEOF
20755
20756 fi
20757
20758
20759
20760
20761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog" >&5
20762 $as_echo_n "checking for clog... " >&6; }
20763 if ${gcc_cv_math_func_clog+:} false; then :
20764 $as_echo_n "(cached) " >&6
20765 else
20766 if test x$gcc_no_link = xyes; then
20767 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20768 fi
20769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20770 /* end confdefs.h. */
20771
20772 #ifdef HAVE_COMPLEX_H
20773 #include <complex.h>
20774 #endif
20775 #ifdef HAVE_MATH_H
20776 #include <math.h>
20777 #endif
20778
20779 int (*ptr)() = (int (*)())clog;
20780
20781 int
20782 main ()
20783 {
20784 return 0;
20785 }
20786
20787 _ACEOF
20788 if ac_fn_c_try_link "$LINENO"; then :
20789 gcc_cv_math_func_clog=yes
20790 else
20791 gcc_cv_math_func_clog=no
20792 fi
20793 rm -f core conftest.err conftest.$ac_objext \
20794 conftest$ac_exeext conftest.$ac_ext
20795 fi
20796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog" >&5
20797 $as_echo "$gcc_cv_math_func_clog" >&6; }
20798 if test $gcc_cv_math_func_clog = yes; then
20799
20800 cat >>confdefs.h <<_ACEOF
20801 #define HAVE_CLOG 1
20802 _ACEOF
20803
20804 fi
20805
20806
20807
20808
20809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogl" >&5
20810 $as_echo_n "checking for clogl... " >&6; }
20811 if ${gcc_cv_math_func_clogl+:} false; then :
20812 $as_echo_n "(cached) " >&6
20813 else
20814 if test x$gcc_no_link = xyes; then
20815 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20816 fi
20817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20818 /* end confdefs.h. */
20819
20820 #ifdef HAVE_COMPLEX_H
20821 #include <complex.h>
20822 #endif
20823 #ifdef HAVE_MATH_H
20824 #include <math.h>
20825 #endif
20826
20827 int (*ptr)() = (int (*)())clogl;
20828
20829 int
20830 main ()
20831 {
20832 return 0;
20833 }
20834
20835 _ACEOF
20836 if ac_fn_c_try_link "$LINENO"; then :
20837 gcc_cv_math_func_clogl=yes
20838 else
20839 gcc_cv_math_func_clogl=no
20840 fi
20841 rm -f core conftest.err conftest.$ac_objext \
20842 conftest$ac_exeext conftest.$ac_ext
20843 fi
20844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogl" >&5
20845 $as_echo "$gcc_cv_math_func_clogl" >&6; }
20846 if test $gcc_cv_math_func_clogl = yes; then
20847
20848 cat >>confdefs.h <<_ACEOF
20849 #define HAVE_CLOGL 1
20850 _ACEOF
20851
20852 fi
20853
20854
20855
20856
20857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f" >&5
20858 $as_echo_n "checking for log10f... " >&6; }
20859 if ${gcc_cv_math_func_log10f+:} false; then :
20860 $as_echo_n "(cached) " >&6
20861 else
20862 if test x$gcc_no_link = xyes; then
20863 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20864 fi
20865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20866 /* end confdefs.h. */
20867
20868 #ifdef HAVE_COMPLEX_H
20869 #include <complex.h>
20870 #endif
20871 #ifdef HAVE_MATH_H
20872 #include <math.h>
20873 #endif
20874
20875 int (*ptr)() = (int (*)())log10f;
20876
20877 int
20878 main ()
20879 {
20880 return 0;
20881 }
20882
20883 _ACEOF
20884 if ac_fn_c_try_link "$LINENO"; then :
20885 gcc_cv_math_func_log10f=yes
20886 else
20887 gcc_cv_math_func_log10f=no
20888 fi
20889 rm -f core conftest.err conftest.$ac_objext \
20890 conftest$ac_exeext conftest.$ac_ext
20891 fi
20892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10f" >&5
20893 $as_echo "$gcc_cv_math_func_log10f" >&6; }
20894 if test $gcc_cv_math_func_log10f = yes; then
20895
20896 cat >>confdefs.h <<_ACEOF
20897 #define HAVE_LOG10F 1
20898 _ACEOF
20899
20900 fi
20901
20902
20903
20904
20905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10" >&5
20906 $as_echo_n "checking for log10... " >&6; }
20907 if ${gcc_cv_math_func_log10+:} false; then :
20908 $as_echo_n "(cached) " >&6
20909 else
20910 if test x$gcc_no_link = xyes; then
20911 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20912 fi
20913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20914 /* end confdefs.h. */
20915
20916 #ifdef HAVE_COMPLEX_H
20917 #include <complex.h>
20918 #endif
20919 #ifdef HAVE_MATH_H
20920 #include <math.h>
20921 #endif
20922
20923 int (*ptr)() = (int (*)())log10;
20924
20925 int
20926 main ()
20927 {
20928 return 0;
20929 }
20930
20931 _ACEOF
20932 if ac_fn_c_try_link "$LINENO"; then :
20933 gcc_cv_math_func_log10=yes
20934 else
20935 gcc_cv_math_func_log10=no
20936 fi
20937 rm -f core conftest.err conftest.$ac_objext \
20938 conftest$ac_exeext conftest.$ac_ext
20939 fi
20940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10" >&5
20941 $as_echo "$gcc_cv_math_func_log10" >&6; }
20942 if test $gcc_cv_math_func_log10 = yes; then
20943
20944 cat >>confdefs.h <<_ACEOF
20945 #define HAVE_LOG10 1
20946 _ACEOF
20947
20948 fi
20949
20950
20951
20952
20953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l" >&5
20954 $as_echo_n "checking for log10l... " >&6; }
20955 if ${gcc_cv_math_func_log10l+:} false; then :
20956 $as_echo_n "(cached) " >&6
20957 else
20958 if test x$gcc_no_link = xyes; then
20959 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20960 fi
20961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20962 /* end confdefs.h. */
20963
20964 #ifdef HAVE_COMPLEX_H
20965 #include <complex.h>
20966 #endif
20967 #ifdef HAVE_MATH_H
20968 #include <math.h>
20969 #endif
20970
20971 int (*ptr)() = (int (*)())log10l;
20972
20973 int
20974 main ()
20975 {
20976 return 0;
20977 }
20978
20979 _ACEOF
20980 if ac_fn_c_try_link "$LINENO"; then :
20981 gcc_cv_math_func_log10l=yes
20982 else
20983 gcc_cv_math_func_log10l=no
20984 fi
20985 rm -f core conftest.err conftest.$ac_objext \
20986 conftest$ac_exeext conftest.$ac_ext
20987 fi
20988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10l" >&5
20989 $as_echo "$gcc_cv_math_func_log10l" >&6; }
20990 if test $gcc_cv_math_func_log10l = yes; then
20991
20992 cat >>confdefs.h <<_ACEOF
20993 #define HAVE_LOG10L 1
20994 _ACEOF
20995
20996 fi
20997
20998
20999
21000
21001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10f" >&5
21002 $as_echo_n "checking for clog10f... " >&6; }
21003 if ${gcc_cv_math_func_clog10f+:} false; then :
21004 $as_echo_n "(cached) " >&6
21005 else
21006 if test x$gcc_no_link = xyes; then
21007 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21008 fi
21009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21010 /* end confdefs.h. */
21011
21012 #ifdef HAVE_COMPLEX_H
21013 #include <complex.h>
21014 #endif
21015 #ifdef HAVE_MATH_H
21016 #include <math.h>
21017 #endif
21018
21019 int (*ptr)() = (int (*)())clog10f;
21020
21021 int
21022 main ()
21023 {
21024 return 0;
21025 }
21026
21027 _ACEOF
21028 if ac_fn_c_try_link "$LINENO"; then :
21029 gcc_cv_math_func_clog10f=yes
21030 else
21031 gcc_cv_math_func_clog10f=no
21032 fi
21033 rm -f core conftest.err conftest.$ac_objext \
21034 conftest$ac_exeext conftest.$ac_ext
21035 fi
21036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10f" >&5
21037 $as_echo "$gcc_cv_math_func_clog10f" >&6; }
21038 if test $gcc_cv_math_func_clog10f = yes; then
21039
21040 cat >>confdefs.h <<_ACEOF
21041 #define HAVE_CLOG10F 1
21042 _ACEOF
21043
21044 fi
21045
21046
21047
21048
21049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10" >&5
21050 $as_echo_n "checking for clog10... " >&6; }
21051 if ${gcc_cv_math_func_clog10+:} false; then :
21052 $as_echo_n "(cached) " >&6
21053 else
21054 if test x$gcc_no_link = xyes; then
21055 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21056 fi
21057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21058 /* end confdefs.h. */
21059
21060 #ifdef HAVE_COMPLEX_H
21061 #include <complex.h>
21062 #endif
21063 #ifdef HAVE_MATH_H
21064 #include <math.h>
21065 #endif
21066
21067 int (*ptr)() = (int (*)())clog10;
21068
21069 int
21070 main ()
21071 {
21072 return 0;
21073 }
21074
21075 _ACEOF
21076 if ac_fn_c_try_link "$LINENO"; then :
21077 gcc_cv_math_func_clog10=yes
21078 else
21079 gcc_cv_math_func_clog10=no
21080 fi
21081 rm -f core conftest.err conftest.$ac_objext \
21082 conftest$ac_exeext conftest.$ac_ext
21083 fi
21084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10" >&5
21085 $as_echo "$gcc_cv_math_func_clog10" >&6; }
21086 if test $gcc_cv_math_func_clog10 = yes; then
21087
21088 cat >>confdefs.h <<_ACEOF
21089 #define HAVE_CLOG10 1
21090 _ACEOF
21091
21092 fi
21093
21094
21095
21096
21097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10l" >&5
21098 $as_echo_n "checking for clog10l... " >&6; }
21099 if ${gcc_cv_math_func_clog10l+:} false; then :
21100 $as_echo_n "(cached) " >&6
21101 else
21102 if test x$gcc_no_link = xyes; then
21103 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21104 fi
21105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21106 /* end confdefs.h. */
21107
21108 #ifdef HAVE_COMPLEX_H
21109 #include <complex.h>
21110 #endif
21111 #ifdef HAVE_MATH_H
21112 #include <math.h>
21113 #endif
21114
21115 int (*ptr)() = (int (*)())clog10l;
21116
21117 int
21118 main ()
21119 {
21120 return 0;
21121 }
21122
21123 _ACEOF
21124 if ac_fn_c_try_link "$LINENO"; then :
21125 gcc_cv_math_func_clog10l=yes
21126 else
21127 gcc_cv_math_func_clog10l=no
21128 fi
21129 rm -f core conftest.err conftest.$ac_objext \
21130 conftest$ac_exeext conftest.$ac_ext
21131 fi
21132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10l" >&5
21133 $as_echo "$gcc_cv_math_func_clog10l" >&6; }
21134 if test $gcc_cv_math_func_clog10l = yes; then
21135
21136 cat >>confdefs.h <<_ACEOF
21137 #define HAVE_CLOG10L 1
21138 _ACEOF
21139
21140 fi
21141
21142
21143
21144
21145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterf" >&5
21146 $as_echo_n "checking for nextafterf... " >&6; }
21147 if ${gcc_cv_math_func_nextafterf+:} false; then :
21148 $as_echo_n "(cached) " >&6
21149 else
21150 if test x$gcc_no_link = xyes; then
21151 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21152 fi
21153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21154 /* end confdefs.h. */
21155
21156 #ifdef HAVE_COMPLEX_H
21157 #include <complex.h>
21158 #endif
21159 #ifdef HAVE_MATH_H
21160 #include <math.h>
21161 #endif
21162
21163 int (*ptr)() = (int (*)())nextafterf;
21164
21165 int
21166 main ()
21167 {
21168 return 0;
21169 }
21170
21171 _ACEOF
21172 if ac_fn_c_try_link "$LINENO"; then :
21173 gcc_cv_math_func_nextafterf=yes
21174 else
21175 gcc_cv_math_func_nextafterf=no
21176 fi
21177 rm -f core conftest.err conftest.$ac_objext \
21178 conftest$ac_exeext conftest.$ac_ext
21179 fi
21180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterf" >&5
21181 $as_echo "$gcc_cv_math_func_nextafterf" >&6; }
21182 if test $gcc_cv_math_func_nextafterf = yes; then
21183
21184 cat >>confdefs.h <<_ACEOF
21185 #define HAVE_NEXTAFTERF 1
21186 _ACEOF
21187
21188 fi
21189
21190
21191
21192
21193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafter" >&5
21194 $as_echo_n "checking for nextafter... " >&6; }
21195 if ${gcc_cv_math_func_nextafter+:} false; then :
21196 $as_echo_n "(cached) " >&6
21197 else
21198 if test x$gcc_no_link = xyes; then
21199 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21200 fi
21201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21202 /* end confdefs.h. */
21203
21204 #ifdef HAVE_COMPLEX_H
21205 #include <complex.h>
21206 #endif
21207 #ifdef HAVE_MATH_H
21208 #include <math.h>
21209 #endif
21210
21211 int (*ptr)() = (int (*)())nextafter;
21212
21213 int
21214 main ()
21215 {
21216 return 0;
21217 }
21218
21219 _ACEOF
21220 if ac_fn_c_try_link "$LINENO"; then :
21221 gcc_cv_math_func_nextafter=yes
21222 else
21223 gcc_cv_math_func_nextafter=no
21224 fi
21225 rm -f core conftest.err conftest.$ac_objext \
21226 conftest$ac_exeext conftest.$ac_ext
21227 fi
21228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafter" >&5
21229 $as_echo "$gcc_cv_math_func_nextafter" >&6; }
21230 if test $gcc_cv_math_func_nextafter = yes; then
21231
21232 cat >>confdefs.h <<_ACEOF
21233 #define HAVE_NEXTAFTER 1
21234 _ACEOF
21235
21236 fi
21237
21238
21239
21240
21241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterl" >&5
21242 $as_echo_n "checking for nextafterl... " >&6; }
21243 if ${gcc_cv_math_func_nextafterl+:} false; then :
21244 $as_echo_n "(cached) " >&6
21245 else
21246 if test x$gcc_no_link = xyes; then
21247 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21248 fi
21249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21250 /* end confdefs.h. */
21251
21252 #ifdef HAVE_COMPLEX_H
21253 #include <complex.h>
21254 #endif
21255 #ifdef HAVE_MATH_H
21256 #include <math.h>
21257 #endif
21258
21259 int (*ptr)() = (int (*)())nextafterl;
21260
21261 int
21262 main ()
21263 {
21264 return 0;
21265 }
21266
21267 _ACEOF
21268 if ac_fn_c_try_link "$LINENO"; then :
21269 gcc_cv_math_func_nextafterl=yes
21270 else
21271 gcc_cv_math_func_nextafterl=no
21272 fi
21273 rm -f core conftest.err conftest.$ac_objext \
21274 conftest$ac_exeext conftest.$ac_ext
21275 fi
21276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterl" >&5
21277 $as_echo "$gcc_cv_math_func_nextafterl" >&6; }
21278 if test $gcc_cv_math_func_nextafterl = yes; then
21279
21280 cat >>confdefs.h <<_ACEOF
21281 #define HAVE_NEXTAFTERL 1
21282 _ACEOF
21283
21284 fi
21285
21286
21287
21288
21289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf" >&5
21290 $as_echo_n "checking for powf... " >&6; }
21291 if ${gcc_cv_math_func_powf+:} false; then :
21292 $as_echo_n "(cached) " >&6
21293 else
21294 if test x$gcc_no_link = xyes; then
21295 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21296 fi
21297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21298 /* end confdefs.h. */
21299
21300 #ifdef HAVE_COMPLEX_H
21301 #include <complex.h>
21302 #endif
21303 #ifdef HAVE_MATH_H
21304 #include <math.h>
21305 #endif
21306
21307 int (*ptr)() = (int (*)())powf;
21308
21309 int
21310 main ()
21311 {
21312 return 0;
21313 }
21314
21315 _ACEOF
21316 if ac_fn_c_try_link "$LINENO"; then :
21317 gcc_cv_math_func_powf=yes
21318 else
21319 gcc_cv_math_func_powf=no
21320 fi
21321 rm -f core conftest.err conftest.$ac_objext \
21322 conftest$ac_exeext conftest.$ac_ext
21323 fi
21324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powf" >&5
21325 $as_echo "$gcc_cv_math_func_powf" >&6; }
21326 if test $gcc_cv_math_func_powf = yes; then
21327
21328 cat >>confdefs.h <<_ACEOF
21329 #define HAVE_POWF 1
21330 _ACEOF
21331
21332 fi
21333
21334
21335
21336
21337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow" >&5
21338 $as_echo_n "checking for pow... " >&6; }
21339 if ${gcc_cv_math_func_pow+:} false; then :
21340 $as_echo_n "(cached) " >&6
21341 else
21342 if test x$gcc_no_link = xyes; then
21343 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21344 fi
21345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21346 /* end confdefs.h. */
21347
21348 #ifdef HAVE_COMPLEX_H
21349 #include <complex.h>
21350 #endif
21351 #ifdef HAVE_MATH_H
21352 #include <math.h>
21353 #endif
21354
21355 int (*ptr)() = (int (*)())pow;
21356
21357 int
21358 main ()
21359 {
21360 return 0;
21361 }
21362
21363 _ACEOF
21364 if ac_fn_c_try_link "$LINENO"; then :
21365 gcc_cv_math_func_pow=yes
21366 else
21367 gcc_cv_math_func_pow=no
21368 fi
21369 rm -f core conftest.err conftest.$ac_objext \
21370 conftest$ac_exeext conftest.$ac_ext
21371 fi
21372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_pow" >&5
21373 $as_echo "$gcc_cv_math_func_pow" >&6; }
21374 if test $gcc_cv_math_func_pow = yes; then
21375
21376 cat >>confdefs.h <<_ACEOF
21377 #define HAVE_POW 1
21378 _ACEOF
21379
21380 fi
21381
21382
21383
21384
21385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowf" >&5
21386 $as_echo_n "checking for cpowf... " >&6; }
21387 if ${gcc_cv_math_func_cpowf+:} false; then :
21388 $as_echo_n "(cached) " >&6
21389 else
21390 if test x$gcc_no_link = xyes; then
21391 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21392 fi
21393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21394 /* end confdefs.h. */
21395
21396 #ifdef HAVE_COMPLEX_H
21397 #include <complex.h>
21398 #endif
21399 #ifdef HAVE_MATH_H
21400 #include <math.h>
21401 #endif
21402
21403 int (*ptr)() = (int (*)())cpowf;
21404
21405 int
21406 main ()
21407 {
21408 return 0;
21409 }
21410
21411 _ACEOF
21412 if ac_fn_c_try_link "$LINENO"; then :
21413 gcc_cv_math_func_cpowf=yes
21414 else
21415 gcc_cv_math_func_cpowf=no
21416 fi
21417 rm -f core conftest.err conftest.$ac_objext \
21418 conftest$ac_exeext conftest.$ac_ext
21419 fi
21420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowf" >&5
21421 $as_echo "$gcc_cv_math_func_cpowf" >&6; }
21422 if test $gcc_cv_math_func_cpowf = yes; then
21423
21424 cat >>confdefs.h <<_ACEOF
21425 #define HAVE_CPOWF 1
21426 _ACEOF
21427
21428 fi
21429
21430
21431
21432
21433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpow" >&5
21434 $as_echo_n "checking for cpow... " >&6; }
21435 if ${gcc_cv_math_func_cpow+:} false; then :
21436 $as_echo_n "(cached) " >&6
21437 else
21438 if test x$gcc_no_link = xyes; then
21439 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21440 fi
21441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21442 /* end confdefs.h. */
21443
21444 #ifdef HAVE_COMPLEX_H
21445 #include <complex.h>
21446 #endif
21447 #ifdef HAVE_MATH_H
21448 #include <math.h>
21449 #endif
21450
21451 int (*ptr)() = (int (*)())cpow;
21452
21453 int
21454 main ()
21455 {
21456 return 0;
21457 }
21458
21459 _ACEOF
21460 if ac_fn_c_try_link "$LINENO"; then :
21461 gcc_cv_math_func_cpow=yes
21462 else
21463 gcc_cv_math_func_cpow=no
21464 fi
21465 rm -f core conftest.err conftest.$ac_objext \
21466 conftest$ac_exeext conftest.$ac_ext
21467 fi
21468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpow" >&5
21469 $as_echo "$gcc_cv_math_func_cpow" >&6; }
21470 if test $gcc_cv_math_func_cpow = yes; then
21471
21472 cat >>confdefs.h <<_ACEOF
21473 #define HAVE_CPOW 1
21474 _ACEOF
21475
21476 fi
21477
21478
21479
21480
21481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowl" >&5
21482 $as_echo_n "checking for cpowl... " >&6; }
21483 if ${gcc_cv_math_func_cpowl+:} false; then :
21484 $as_echo_n "(cached) " >&6
21485 else
21486 if test x$gcc_no_link = xyes; then
21487 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21488 fi
21489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21490 /* end confdefs.h. */
21491
21492 #ifdef HAVE_COMPLEX_H
21493 #include <complex.h>
21494 #endif
21495 #ifdef HAVE_MATH_H
21496 #include <math.h>
21497 #endif
21498
21499 int (*ptr)() = (int (*)())cpowl;
21500
21501 int
21502 main ()
21503 {
21504 return 0;
21505 }
21506
21507 _ACEOF
21508 if ac_fn_c_try_link "$LINENO"; then :
21509 gcc_cv_math_func_cpowl=yes
21510 else
21511 gcc_cv_math_func_cpowl=no
21512 fi
21513 rm -f core conftest.err conftest.$ac_objext \
21514 conftest$ac_exeext conftest.$ac_ext
21515 fi
21516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowl" >&5
21517 $as_echo "$gcc_cv_math_func_cpowl" >&6; }
21518 if test $gcc_cv_math_func_cpowl = yes; then
21519
21520 cat >>confdefs.h <<_ACEOF
21521 #define HAVE_CPOWL 1
21522 _ACEOF
21523
21524 fi
21525
21526
21527
21528
21529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundf" >&5
21530 $as_echo_n "checking for roundf... " >&6; }
21531 if ${gcc_cv_math_func_roundf+:} false; then :
21532 $as_echo_n "(cached) " >&6
21533 else
21534 if test x$gcc_no_link = xyes; then
21535 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21536 fi
21537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21538 /* end confdefs.h. */
21539
21540 #ifdef HAVE_COMPLEX_H
21541 #include <complex.h>
21542 #endif
21543 #ifdef HAVE_MATH_H
21544 #include <math.h>
21545 #endif
21546
21547 int (*ptr)() = (int (*)())roundf;
21548
21549 int
21550 main ()
21551 {
21552 return 0;
21553 }
21554
21555 _ACEOF
21556 if ac_fn_c_try_link "$LINENO"; then :
21557 gcc_cv_math_func_roundf=yes
21558 else
21559 gcc_cv_math_func_roundf=no
21560 fi
21561 rm -f core conftest.err conftest.$ac_objext \
21562 conftest$ac_exeext conftest.$ac_ext
21563 fi
21564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundf" >&5
21565 $as_echo "$gcc_cv_math_func_roundf" >&6; }
21566 if test $gcc_cv_math_func_roundf = yes; then
21567
21568 cat >>confdefs.h <<_ACEOF
21569 #define HAVE_ROUNDF 1
21570 _ACEOF
21571
21572 fi
21573
21574
21575
21576
21577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for round" >&5
21578 $as_echo_n "checking for round... " >&6; }
21579 if ${gcc_cv_math_func_round+:} false; then :
21580 $as_echo_n "(cached) " >&6
21581 else
21582 if test x$gcc_no_link = xyes; then
21583 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21584 fi
21585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21586 /* end confdefs.h. */
21587
21588 #ifdef HAVE_COMPLEX_H
21589 #include <complex.h>
21590 #endif
21591 #ifdef HAVE_MATH_H
21592 #include <math.h>
21593 #endif
21594
21595 int (*ptr)() = (int (*)())round;
21596
21597 int
21598 main ()
21599 {
21600 return 0;
21601 }
21602
21603 _ACEOF
21604 if ac_fn_c_try_link "$LINENO"; then :
21605 gcc_cv_math_func_round=yes
21606 else
21607 gcc_cv_math_func_round=no
21608 fi
21609 rm -f core conftest.err conftest.$ac_objext \
21610 conftest$ac_exeext conftest.$ac_ext
21611 fi
21612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_round" >&5
21613 $as_echo "$gcc_cv_math_func_round" >&6; }
21614 if test $gcc_cv_math_func_round = yes; then
21615
21616 cat >>confdefs.h <<_ACEOF
21617 #define HAVE_ROUND 1
21618 _ACEOF
21619
21620 fi
21621
21622
21623
21624
21625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundl" >&5
21626 $as_echo_n "checking for roundl... " >&6; }
21627 if ${gcc_cv_math_func_roundl+:} false; then :
21628 $as_echo_n "(cached) " >&6
21629 else
21630 if test x$gcc_no_link = xyes; then
21631 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21632 fi
21633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21634 /* end confdefs.h. */
21635
21636 #ifdef HAVE_COMPLEX_H
21637 #include <complex.h>
21638 #endif
21639 #ifdef HAVE_MATH_H
21640 #include <math.h>
21641 #endif
21642
21643 int (*ptr)() = (int (*)())roundl;
21644
21645 int
21646 main ()
21647 {
21648 return 0;
21649 }
21650
21651 _ACEOF
21652 if ac_fn_c_try_link "$LINENO"; then :
21653 gcc_cv_math_func_roundl=yes
21654 else
21655 gcc_cv_math_func_roundl=no
21656 fi
21657 rm -f core conftest.err conftest.$ac_objext \
21658 conftest$ac_exeext conftest.$ac_ext
21659 fi
21660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundl" >&5
21661 $as_echo "$gcc_cv_math_func_roundl" >&6; }
21662 if test $gcc_cv_math_func_roundl = yes; then
21663
21664 cat >>confdefs.h <<_ACEOF
21665 #define HAVE_ROUNDL 1
21666 _ACEOF
21667
21668 fi
21669
21670
21671
21672
21673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundf" >&5
21674 $as_echo_n "checking for lroundf... " >&6; }
21675 if ${gcc_cv_math_func_lroundf+:} false; then :
21676 $as_echo_n "(cached) " >&6
21677 else
21678 if test x$gcc_no_link = xyes; then
21679 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21680 fi
21681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21682 /* end confdefs.h. */
21683
21684 #ifdef HAVE_COMPLEX_H
21685 #include <complex.h>
21686 #endif
21687 #ifdef HAVE_MATH_H
21688 #include <math.h>
21689 #endif
21690
21691 int (*ptr)() = (int (*)())lroundf;
21692
21693 int
21694 main ()
21695 {
21696 return 0;
21697 }
21698
21699 _ACEOF
21700 if ac_fn_c_try_link "$LINENO"; then :
21701 gcc_cv_math_func_lroundf=yes
21702 else
21703 gcc_cv_math_func_lroundf=no
21704 fi
21705 rm -f core conftest.err conftest.$ac_objext \
21706 conftest$ac_exeext conftest.$ac_ext
21707 fi
21708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundf" >&5
21709 $as_echo "$gcc_cv_math_func_lroundf" >&6; }
21710 if test $gcc_cv_math_func_lroundf = yes; then
21711
21712 cat >>confdefs.h <<_ACEOF
21713 #define HAVE_LROUNDF 1
21714 _ACEOF
21715
21716 fi
21717
21718
21719
21720
21721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lround" >&5
21722 $as_echo_n "checking for lround... " >&6; }
21723 if ${gcc_cv_math_func_lround+:} false; then :
21724 $as_echo_n "(cached) " >&6
21725 else
21726 if test x$gcc_no_link = xyes; then
21727 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21728 fi
21729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21730 /* end confdefs.h. */
21731
21732 #ifdef HAVE_COMPLEX_H
21733 #include <complex.h>
21734 #endif
21735 #ifdef HAVE_MATH_H
21736 #include <math.h>
21737 #endif
21738
21739 int (*ptr)() = (int (*)())lround;
21740
21741 int
21742 main ()
21743 {
21744 return 0;
21745 }
21746
21747 _ACEOF
21748 if ac_fn_c_try_link "$LINENO"; then :
21749 gcc_cv_math_func_lround=yes
21750 else
21751 gcc_cv_math_func_lround=no
21752 fi
21753 rm -f core conftest.err conftest.$ac_objext \
21754 conftest$ac_exeext conftest.$ac_ext
21755 fi
21756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lround" >&5
21757 $as_echo "$gcc_cv_math_func_lround" >&6; }
21758 if test $gcc_cv_math_func_lround = yes; then
21759
21760 cat >>confdefs.h <<_ACEOF
21761 #define HAVE_LROUND 1
21762 _ACEOF
21763
21764 fi
21765
21766
21767
21768
21769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundl" >&5
21770 $as_echo_n "checking for lroundl... " >&6; }
21771 if ${gcc_cv_math_func_lroundl+:} false; then :
21772 $as_echo_n "(cached) " >&6
21773 else
21774 if test x$gcc_no_link = xyes; then
21775 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21776 fi
21777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21778 /* end confdefs.h. */
21779
21780 #ifdef HAVE_COMPLEX_H
21781 #include <complex.h>
21782 #endif
21783 #ifdef HAVE_MATH_H
21784 #include <math.h>
21785 #endif
21786
21787 int (*ptr)() = (int (*)())lroundl;
21788
21789 int
21790 main ()
21791 {
21792 return 0;
21793 }
21794
21795 _ACEOF
21796 if ac_fn_c_try_link "$LINENO"; then :
21797 gcc_cv_math_func_lroundl=yes
21798 else
21799 gcc_cv_math_func_lroundl=no
21800 fi
21801 rm -f core conftest.err conftest.$ac_objext \
21802 conftest$ac_exeext conftest.$ac_ext
21803 fi
21804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundl" >&5
21805 $as_echo "$gcc_cv_math_func_lroundl" >&6; }
21806 if test $gcc_cv_math_func_lroundl = yes; then
21807
21808 cat >>confdefs.h <<_ACEOF
21809 #define HAVE_LROUNDL 1
21810 _ACEOF
21811
21812 fi
21813
21814
21815
21816
21817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundf" >&5
21818 $as_echo_n "checking for llroundf... " >&6; }
21819 if ${gcc_cv_math_func_llroundf+:} false; then :
21820 $as_echo_n "(cached) " >&6
21821 else
21822 if test x$gcc_no_link = xyes; then
21823 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21824 fi
21825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21826 /* end confdefs.h. */
21827
21828 #ifdef HAVE_COMPLEX_H
21829 #include <complex.h>
21830 #endif
21831 #ifdef HAVE_MATH_H
21832 #include <math.h>
21833 #endif
21834
21835 int (*ptr)() = (int (*)())llroundf;
21836
21837 int
21838 main ()
21839 {
21840 return 0;
21841 }
21842
21843 _ACEOF
21844 if ac_fn_c_try_link "$LINENO"; then :
21845 gcc_cv_math_func_llroundf=yes
21846 else
21847 gcc_cv_math_func_llroundf=no
21848 fi
21849 rm -f core conftest.err conftest.$ac_objext \
21850 conftest$ac_exeext conftest.$ac_ext
21851 fi
21852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundf" >&5
21853 $as_echo "$gcc_cv_math_func_llroundf" >&6; }
21854 if test $gcc_cv_math_func_llroundf = yes; then
21855
21856 cat >>confdefs.h <<_ACEOF
21857 #define HAVE_LLROUNDF 1
21858 _ACEOF
21859
21860 fi
21861
21862
21863
21864
21865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llround" >&5
21866 $as_echo_n "checking for llround... " >&6; }
21867 if ${gcc_cv_math_func_llround+:} false; then :
21868 $as_echo_n "(cached) " >&6
21869 else
21870 if test x$gcc_no_link = xyes; then
21871 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21872 fi
21873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21874 /* end confdefs.h. */
21875
21876 #ifdef HAVE_COMPLEX_H
21877 #include <complex.h>
21878 #endif
21879 #ifdef HAVE_MATH_H
21880 #include <math.h>
21881 #endif
21882
21883 int (*ptr)() = (int (*)())llround;
21884
21885 int
21886 main ()
21887 {
21888 return 0;
21889 }
21890
21891 _ACEOF
21892 if ac_fn_c_try_link "$LINENO"; then :
21893 gcc_cv_math_func_llround=yes
21894 else
21895 gcc_cv_math_func_llround=no
21896 fi
21897 rm -f core conftest.err conftest.$ac_objext \
21898 conftest$ac_exeext conftest.$ac_ext
21899 fi
21900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llround" >&5
21901 $as_echo "$gcc_cv_math_func_llround" >&6; }
21902 if test $gcc_cv_math_func_llround = yes; then
21903
21904 cat >>confdefs.h <<_ACEOF
21905 #define HAVE_LLROUND 1
21906 _ACEOF
21907
21908 fi
21909
21910
21911
21912
21913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundl" >&5
21914 $as_echo_n "checking for llroundl... " >&6; }
21915 if ${gcc_cv_math_func_llroundl+:} false; then :
21916 $as_echo_n "(cached) " >&6
21917 else
21918 if test x$gcc_no_link = xyes; then
21919 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21920 fi
21921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21922 /* end confdefs.h. */
21923
21924 #ifdef HAVE_COMPLEX_H
21925 #include <complex.h>
21926 #endif
21927 #ifdef HAVE_MATH_H
21928 #include <math.h>
21929 #endif
21930
21931 int (*ptr)() = (int (*)())llroundl;
21932
21933 int
21934 main ()
21935 {
21936 return 0;
21937 }
21938
21939 _ACEOF
21940 if ac_fn_c_try_link "$LINENO"; then :
21941 gcc_cv_math_func_llroundl=yes
21942 else
21943 gcc_cv_math_func_llroundl=no
21944 fi
21945 rm -f core conftest.err conftest.$ac_objext \
21946 conftest$ac_exeext conftest.$ac_ext
21947 fi
21948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundl" >&5
21949 $as_echo "$gcc_cv_math_func_llroundl" >&6; }
21950 if test $gcc_cv_math_func_llroundl = yes; then
21951
21952 cat >>confdefs.h <<_ACEOF
21953 #define HAVE_LLROUNDL 1
21954 _ACEOF
21955
21956 fi
21957
21958
21959
21960
21961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnf" >&5
21962 $as_echo_n "checking for scalbnf... " >&6; }
21963 if ${gcc_cv_math_func_scalbnf+:} false; then :
21964 $as_echo_n "(cached) " >&6
21965 else
21966 if test x$gcc_no_link = xyes; then
21967 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21968 fi
21969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21970 /* end confdefs.h. */
21971
21972 #ifdef HAVE_COMPLEX_H
21973 #include <complex.h>
21974 #endif
21975 #ifdef HAVE_MATH_H
21976 #include <math.h>
21977 #endif
21978
21979 int (*ptr)() = (int (*)())scalbnf;
21980
21981 int
21982 main ()
21983 {
21984 return 0;
21985 }
21986
21987 _ACEOF
21988 if ac_fn_c_try_link "$LINENO"; then :
21989 gcc_cv_math_func_scalbnf=yes
21990 else
21991 gcc_cv_math_func_scalbnf=no
21992 fi
21993 rm -f core conftest.err conftest.$ac_objext \
21994 conftest$ac_exeext conftest.$ac_ext
21995 fi
21996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnf" >&5
21997 $as_echo "$gcc_cv_math_func_scalbnf" >&6; }
21998 if test $gcc_cv_math_func_scalbnf = yes; then
21999
22000 cat >>confdefs.h <<_ACEOF
22001 #define HAVE_SCALBNF 1
22002 _ACEOF
22003
22004 fi
22005
22006
22007
22008
22009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbn" >&5
22010 $as_echo_n "checking for scalbn... " >&6; }
22011 if ${gcc_cv_math_func_scalbn+:} false; then :
22012 $as_echo_n "(cached) " >&6
22013 else
22014 if test x$gcc_no_link = xyes; then
22015 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22016 fi
22017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22018 /* end confdefs.h. */
22019
22020 #ifdef HAVE_COMPLEX_H
22021 #include <complex.h>
22022 #endif
22023 #ifdef HAVE_MATH_H
22024 #include <math.h>
22025 #endif
22026
22027 int (*ptr)() = (int (*)())scalbn;
22028
22029 int
22030 main ()
22031 {
22032 return 0;
22033 }
22034
22035 _ACEOF
22036 if ac_fn_c_try_link "$LINENO"; then :
22037 gcc_cv_math_func_scalbn=yes
22038 else
22039 gcc_cv_math_func_scalbn=no
22040 fi
22041 rm -f core conftest.err conftest.$ac_objext \
22042 conftest$ac_exeext conftest.$ac_ext
22043 fi
22044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbn" >&5
22045 $as_echo "$gcc_cv_math_func_scalbn" >&6; }
22046 if test $gcc_cv_math_func_scalbn = yes; then
22047
22048 cat >>confdefs.h <<_ACEOF
22049 #define HAVE_SCALBN 1
22050 _ACEOF
22051
22052 fi
22053
22054
22055
22056
22057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnl" >&5
22058 $as_echo_n "checking for scalbnl... " >&6; }
22059 if ${gcc_cv_math_func_scalbnl+:} false; then :
22060 $as_echo_n "(cached) " >&6
22061 else
22062 if test x$gcc_no_link = xyes; then
22063 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22064 fi
22065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22066 /* end confdefs.h. */
22067
22068 #ifdef HAVE_COMPLEX_H
22069 #include <complex.h>
22070 #endif
22071 #ifdef HAVE_MATH_H
22072 #include <math.h>
22073 #endif
22074
22075 int (*ptr)() = (int (*)())scalbnl;
22076
22077 int
22078 main ()
22079 {
22080 return 0;
22081 }
22082
22083 _ACEOF
22084 if ac_fn_c_try_link "$LINENO"; then :
22085 gcc_cv_math_func_scalbnl=yes
22086 else
22087 gcc_cv_math_func_scalbnl=no
22088 fi
22089 rm -f core conftest.err conftest.$ac_objext \
22090 conftest$ac_exeext conftest.$ac_ext
22091 fi
22092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnl" >&5
22093 $as_echo "$gcc_cv_math_func_scalbnl" >&6; }
22094 if test $gcc_cv_math_func_scalbnl = yes; then
22095
22096 cat >>confdefs.h <<_ACEOF
22097 #define HAVE_SCALBNL 1
22098 _ACEOF
22099
22100 fi
22101
22102
22103
22104
22105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinf" >&5
22106 $as_echo_n "checking for sinf... " >&6; }
22107 if ${gcc_cv_math_func_sinf+:} false; then :
22108 $as_echo_n "(cached) " >&6
22109 else
22110 if test x$gcc_no_link = xyes; then
22111 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22112 fi
22113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22114 /* end confdefs.h. */
22115
22116 #ifdef HAVE_COMPLEX_H
22117 #include <complex.h>
22118 #endif
22119 #ifdef HAVE_MATH_H
22120 #include <math.h>
22121 #endif
22122
22123 int (*ptr)() = (int (*)())sinf;
22124
22125 int
22126 main ()
22127 {
22128 return 0;
22129 }
22130
22131 _ACEOF
22132 if ac_fn_c_try_link "$LINENO"; then :
22133 gcc_cv_math_func_sinf=yes
22134 else
22135 gcc_cv_math_func_sinf=no
22136 fi
22137 rm -f core conftest.err conftest.$ac_objext \
22138 conftest$ac_exeext conftest.$ac_ext
22139 fi
22140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinf" >&5
22141 $as_echo "$gcc_cv_math_func_sinf" >&6; }
22142 if test $gcc_cv_math_func_sinf = yes; then
22143
22144 cat >>confdefs.h <<_ACEOF
22145 #define HAVE_SINF 1
22146 _ACEOF
22147
22148 fi
22149
22150
22151
22152
22153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin" >&5
22154 $as_echo_n "checking for sin... " >&6; }
22155 if ${gcc_cv_math_func_sin+:} false; then :
22156 $as_echo_n "(cached) " >&6
22157 else
22158 if test x$gcc_no_link = xyes; then
22159 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22160 fi
22161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22162 /* end confdefs.h. */
22163
22164 #ifdef HAVE_COMPLEX_H
22165 #include <complex.h>
22166 #endif
22167 #ifdef HAVE_MATH_H
22168 #include <math.h>
22169 #endif
22170
22171 int (*ptr)() = (int (*)())sin;
22172
22173 int
22174 main ()
22175 {
22176 return 0;
22177 }
22178
22179 _ACEOF
22180 if ac_fn_c_try_link "$LINENO"; then :
22181 gcc_cv_math_func_sin=yes
22182 else
22183 gcc_cv_math_func_sin=no
22184 fi
22185 rm -f core conftest.err conftest.$ac_objext \
22186 conftest$ac_exeext conftest.$ac_ext
22187 fi
22188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sin" >&5
22189 $as_echo "$gcc_cv_math_func_sin" >&6; }
22190 if test $gcc_cv_math_func_sin = yes; then
22191
22192 cat >>confdefs.h <<_ACEOF
22193 #define HAVE_SIN 1
22194 _ACEOF
22195
22196 fi
22197
22198
22199
22200
22201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinl" >&5
22202 $as_echo_n "checking for sinl... " >&6; }
22203 if ${gcc_cv_math_func_sinl+:} false; then :
22204 $as_echo_n "(cached) " >&6
22205 else
22206 if test x$gcc_no_link = xyes; then
22207 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22208 fi
22209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22210 /* end confdefs.h. */
22211
22212 #ifdef HAVE_COMPLEX_H
22213 #include <complex.h>
22214 #endif
22215 #ifdef HAVE_MATH_H
22216 #include <math.h>
22217 #endif
22218
22219 int (*ptr)() = (int (*)())sinl;
22220
22221 int
22222 main ()
22223 {
22224 return 0;
22225 }
22226
22227 _ACEOF
22228 if ac_fn_c_try_link "$LINENO"; then :
22229 gcc_cv_math_func_sinl=yes
22230 else
22231 gcc_cv_math_func_sinl=no
22232 fi
22233 rm -f core conftest.err conftest.$ac_objext \
22234 conftest$ac_exeext conftest.$ac_ext
22235 fi
22236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinl" >&5
22237 $as_echo "$gcc_cv_math_func_sinl" >&6; }
22238 if test $gcc_cv_math_func_sinl = yes; then
22239
22240 cat >>confdefs.h <<_ACEOF
22241 #define HAVE_SINL 1
22242 _ACEOF
22243
22244 fi
22245
22246
22247
22248
22249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinf" >&5
22250 $as_echo_n "checking for csinf... " >&6; }
22251 if ${gcc_cv_math_func_csinf+:} false; then :
22252 $as_echo_n "(cached) " >&6
22253 else
22254 if test x$gcc_no_link = xyes; then
22255 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22256 fi
22257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22258 /* end confdefs.h. */
22259
22260 #ifdef HAVE_COMPLEX_H
22261 #include <complex.h>
22262 #endif
22263 #ifdef HAVE_MATH_H
22264 #include <math.h>
22265 #endif
22266
22267 int (*ptr)() = (int (*)())csinf;
22268
22269 int
22270 main ()
22271 {
22272 return 0;
22273 }
22274
22275 _ACEOF
22276 if ac_fn_c_try_link "$LINENO"; then :
22277 gcc_cv_math_func_csinf=yes
22278 else
22279 gcc_cv_math_func_csinf=no
22280 fi
22281 rm -f core conftest.err conftest.$ac_objext \
22282 conftest$ac_exeext conftest.$ac_ext
22283 fi
22284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinf" >&5
22285 $as_echo "$gcc_cv_math_func_csinf" >&6; }
22286 if test $gcc_cv_math_func_csinf = yes; then
22287
22288 cat >>confdefs.h <<_ACEOF
22289 #define HAVE_CSINF 1
22290 _ACEOF
22291
22292 fi
22293
22294
22295
22296
22297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csin" >&5
22298 $as_echo_n "checking for csin... " >&6; }
22299 if ${gcc_cv_math_func_csin+:} false; then :
22300 $as_echo_n "(cached) " >&6
22301 else
22302 if test x$gcc_no_link = xyes; then
22303 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22304 fi
22305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22306 /* end confdefs.h. */
22307
22308 #ifdef HAVE_COMPLEX_H
22309 #include <complex.h>
22310 #endif
22311 #ifdef HAVE_MATH_H
22312 #include <math.h>
22313 #endif
22314
22315 int (*ptr)() = (int (*)())csin;
22316
22317 int
22318 main ()
22319 {
22320 return 0;
22321 }
22322
22323 _ACEOF
22324 if ac_fn_c_try_link "$LINENO"; then :
22325 gcc_cv_math_func_csin=yes
22326 else
22327 gcc_cv_math_func_csin=no
22328 fi
22329 rm -f core conftest.err conftest.$ac_objext \
22330 conftest$ac_exeext conftest.$ac_ext
22331 fi
22332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csin" >&5
22333 $as_echo "$gcc_cv_math_func_csin" >&6; }
22334 if test $gcc_cv_math_func_csin = yes; then
22335
22336 cat >>confdefs.h <<_ACEOF
22337 #define HAVE_CSIN 1
22338 _ACEOF
22339
22340 fi
22341
22342
22343
22344
22345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinl" >&5
22346 $as_echo_n "checking for csinl... " >&6; }
22347 if ${gcc_cv_math_func_csinl+:} false; then :
22348 $as_echo_n "(cached) " >&6
22349 else
22350 if test x$gcc_no_link = xyes; then
22351 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22352 fi
22353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22354 /* end confdefs.h. */
22355
22356 #ifdef HAVE_COMPLEX_H
22357 #include <complex.h>
22358 #endif
22359 #ifdef HAVE_MATH_H
22360 #include <math.h>
22361 #endif
22362
22363 int (*ptr)() = (int (*)())csinl;
22364
22365 int
22366 main ()
22367 {
22368 return 0;
22369 }
22370
22371 _ACEOF
22372 if ac_fn_c_try_link "$LINENO"; then :
22373 gcc_cv_math_func_csinl=yes
22374 else
22375 gcc_cv_math_func_csinl=no
22376 fi
22377 rm -f core conftest.err conftest.$ac_objext \
22378 conftest$ac_exeext conftest.$ac_ext
22379 fi
22380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinl" >&5
22381 $as_echo "$gcc_cv_math_func_csinl" >&6; }
22382 if test $gcc_cv_math_func_csinl = yes; then
22383
22384 cat >>confdefs.h <<_ACEOF
22385 #define HAVE_CSINL 1
22386 _ACEOF
22387
22388 fi
22389
22390
22391
22392
22393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhf" >&5
22394 $as_echo_n "checking for sinhf... " >&6; }
22395 if ${gcc_cv_math_func_sinhf+:} false; then :
22396 $as_echo_n "(cached) " >&6
22397 else
22398 if test x$gcc_no_link = xyes; then
22399 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22400 fi
22401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22402 /* end confdefs.h. */
22403
22404 #ifdef HAVE_COMPLEX_H
22405 #include <complex.h>
22406 #endif
22407 #ifdef HAVE_MATH_H
22408 #include <math.h>
22409 #endif
22410
22411 int (*ptr)() = (int (*)())sinhf;
22412
22413 int
22414 main ()
22415 {
22416 return 0;
22417 }
22418
22419 _ACEOF
22420 if ac_fn_c_try_link "$LINENO"; then :
22421 gcc_cv_math_func_sinhf=yes
22422 else
22423 gcc_cv_math_func_sinhf=no
22424 fi
22425 rm -f core conftest.err conftest.$ac_objext \
22426 conftest$ac_exeext conftest.$ac_ext
22427 fi
22428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhf" >&5
22429 $as_echo "$gcc_cv_math_func_sinhf" >&6; }
22430 if test $gcc_cv_math_func_sinhf = yes; then
22431
22432 cat >>confdefs.h <<_ACEOF
22433 #define HAVE_SINHF 1
22434 _ACEOF
22435
22436 fi
22437
22438
22439
22440
22441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinh" >&5
22442 $as_echo_n "checking for sinh... " >&6; }
22443 if ${gcc_cv_math_func_sinh+:} false; then :
22444 $as_echo_n "(cached) " >&6
22445 else
22446 if test x$gcc_no_link = xyes; then
22447 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22448 fi
22449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22450 /* end confdefs.h. */
22451
22452 #ifdef HAVE_COMPLEX_H
22453 #include <complex.h>
22454 #endif
22455 #ifdef HAVE_MATH_H
22456 #include <math.h>
22457 #endif
22458
22459 int (*ptr)() = (int (*)())sinh;
22460
22461 int
22462 main ()
22463 {
22464 return 0;
22465 }
22466
22467 _ACEOF
22468 if ac_fn_c_try_link "$LINENO"; then :
22469 gcc_cv_math_func_sinh=yes
22470 else
22471 gcc_cv_math_func_sinh=no
22472 fi
22473 rm -f core conftest.err conftest.$ac_objext \
22474 conftest$ac_exeext conftest.$ac_ext
22475 fi
22476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinh" >&5
22477 $as_echo "$gcc_cv_math_func_sinh" >&6; }
22478 if test $gcc_cv_math_func_sinh = yes; then
22479
22480 cat >>confdefs.h <<_ACEOF
22481 #define HAVE_SINH 1
22482 _ACEOF
22483
22484 fi
22485
22486
22487
22488
22489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhl" >&5
22490 $as_echo_n "checking for sinhl... " >&6; }
22491 if ${gcc_cv_math_func_sinhl+:} false; then :
22492 $as_echo_n "(cached) " >&6
22493 else
22494 if test x$gcc_no_link = xyes; then
22495 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22496 fi
22497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22498 /* end confdefs.h. */
22499
22500 #ifdef HAVE_COMPLEX_H
22501 #include <complex.h>
22502 #endif
22503 #ifdef HAVE_MATH_H
22504 #include <math.h>
22505 #endif
22506
22507 int (*ptr)() = (int (*)())sinhl;
22508
22509 int
22510 main ()
22511 {
22512 return 0;
22513 }
22514
22515 _ACEOF
22516 if ac_fn_c_try_link "$LINENO"; then :
22517 gcc_cv_math_func_sinhl=yes
22518 else
22519 gcc_cv_math_func_sinhl=no
22520 fi
22521 rm -f core conftest.err conftest.$ac_objext \
22522 conftest$ac_exeext conftest.$ac_ext
22523 fi
22524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhl" >&5
22525 $as_echo "$gcc_cv_math_func_sinhl" >&6; }
22526 if test $gcc_cv_math_func_sinhl = yes; then
22527
22528 cat >>confdefs.h <<_ACEOF
22529 #define HAVE_SINHL 1
22530 _ACEOF
22531
22532 fi
22533
22534
22535
22536
22537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhf" >&5
22538 $as_echo_n "checking for csinhf... " >&6; }
22539 if ${gcc_cv_math_func_csinhf+:} false; then :
22540 $as_echo_n "(cached) " >&6
22541 else
22542 if test x$gcc_no_link = xyes; then
22543 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22544 fi
22545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22546 /* end confdefs.h. */
22547
22548 #ifdef HAVE_COMPLEX_H
22549 #include <complex.h>
22550 #endif
22551 #ifdef HAVE_MATH_H
22552 #include <math.h>
22553 #endif
22554
22555 int (*ptr)() = (int (*)())csinhf;
22556
22557 int
22558 main ()
22559 {
22560 return 0;
22561 }
22562
22563 _ACEOF
22564 if ac_fn_c_try_link "$LINENO"; then :
22565 gcc_cv_math_func_csinhf=yes
22566 else
22567 gcc_cv_math_func_csinhf=no
22568 fi
22569 rm -f core conftest.err conftest.$ac_objext \
22570 conftest$ac_exeext conftest.$ac_ext
22571 fi
22572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhf" >&5
22573 $as_echo "$gcc_cv_math_func_csinhf" >&6; }
22574 if test $gcc_cv_math_func_csinhf = yes; then
22575
22576 cat >>confdefs.h <<_ACEOF
22577 #define HAVE_CSINHF 1
22578 _ACEOF
22579
22580 fi
22581
22582
22583
22584
22585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinh" >&5
22586 $as_echo_n "checking for csinh... " >&6; }
22587 if ${gcc_cv_math_func_csinh+:} false; then :
22588 $as_echo_n "(cached) " >&6
22589 else
22590 if test x$gcc_no_link = xyes; then
22591 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22592 fi
22593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22594 /* end confdefs.h. */
22595
22596 #ifdef HAVE_COMPLEX_H
22597 #include <complex.h>
22598 #endif
22599 #ifdef HAVE_MATH_H
22600 #include <math.h>
22601 #endif
22602
22603 int (*ptr)() = (int (*)())csinh;
22604
22605 int
22606 main ()
22607 {
22608 return 0;
22609 }
22610
22611 _ACEOF
22612 if ac_fn_c_try_link "$LINENO"; then :
22613 gcc_cv_math_func_csinh=yes
22614 else
22615 gcc_cv_math_func_csinh=no
22616 fi
22617 rm -f core conftest.err conftest.$ac_objext \
22618 conftest$ac_exeext conftest.$ac_ext
22619 fi
22620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinh" >&5
22621 $as_echo "$gcc_cv_math_func_csinh" >&6; }
22622 if test $gcc_cv_math_func_csinh = yes; then
22623
22624 cat >>confdefs.h <<_ACEOF
22625 #define HAVE_CSINH 1
22626 _ACEOF
22627
22628 fi
22629
22630
22631
22632
22633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhl" >&5
22634 $as_echo_n "checking for csinhl... " >&6; }
22635 if ${gcc_cv_math_func_csinhl+:} false; then :
22636 $as_echo_n "(cached) " >&6
22637 else
22638 if test x$gcc_no_link = xyes; then
22639 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22640 fi
22641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22642 /* end confdefs.h. */
22643
22644 #ifdef HAVE_COMPLEX_H
22645 #include <complex.h>
22646 #endif
22647 #ifdef HAVE_MATH_H
22648 #include <math.h>
22649 #endif
22650
22651 int (*ptr)() = (int (*)())csinhl;
22652
22653 int
22654 main ()
22655 {
22656 return 0;
22657 }
22658
22659 _ACEOF
22660 if ac_fn_c_try_link "$LINENO"; then :
22661 gcc_cv_math_func_csinhl=yes
22662 else
22663 gcc_cv_math_func_csinhl=no
22664 fi
22665 rm -f core conftest.err conftest.$ac_objext \
22666 conftest$ac_exeext conftest.$ac_ext
22667 fi
22668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhl" >&5
22669 $as_echo "$gcc_cv_math_func_csinhl" >&6; }
22670 if test $gcc_cv_math_func_csinhl = yes; then
22671
22672 cat >>confdefs.h <<_ACEOF
22673 #define HAVE_CSINHL 1
22674 _ACEOF
22675
22676 fi
22677
22678
22679
22680
22681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf" >&5
22682 $as_echo_n "checking for sqrtf... " >&6; }
22683 if ${gcc_cv_math_func_sqrtf+:} false; then :
22684 $as_echo_n "(cached) " >&6
22685 else
22686 if test x$gcc_no_link = xyes; then
22687 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22688 fi
22689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22690 /* end confdefs.h. */
22691
22692 #ifdef HAVE_COMPLEX_H
22693 #include <complex.h>
22694 #endif
22695 #ifdef HAVE_MATH_H
22696 #include <math.h>
22697 #endif
22698
22699 int (*ptr)() = (int (*)())sqrtf;
22700
22701 int
22702 main ()
22703 {
22704 return 0;
22705 }
22706
22707 _ACEOF
22708 if ac_fn_c_try_link "$LINENO"; then :
22709 gcc_cv_math_func_sqrtf=yes
22710 else
22711 gcc_cv_math_func_sqrtf=no
22712 fi
22713 rm -f core conftest.err conftest.$ac_objext \
22714 conftest$ac_exeext conftest.$ac_ext
22715 fi
22716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtf" >&5
22717 $as_echo "$gcc_cv_math_func_sqrtf" >&6; }
22718 if test $gcc_cv_math_func_sqrtf = yes; then
22719
22720 cat >>confdefs.h <<_ACEOF
22721 #define HAVE_SQRTF 1
22722 _ACEOF
22723
22724 fi
22725
22726
22727
22728
22729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt" >&5
22730 $as_echo_n "checking for sqrt... " >&6; }
22731 if ${gcc_cv_math_func_sqrt+:} false; then :
22732 $as_echo_n "(cached) " >&6
22733 else
22734 if test x$gcc_no_link = xyes; then
22735 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22736 fi
22737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22738 /* end confdefs.h. */
22739
22740 #ifdef HAVE_COMPLEX_H
22741 #include <complex.h>
22742 #endif
22743 #ifdef HAVE_MATH_H
22744 #include <math.h>
22745 #endif
22746
22747 int (*ptr)() = (int (*)())sqrt;
22748
22749 int
22750 main ()
22751 {
22752 return 0;
22753 }
22754
22755 _ACEOF
22756 if ac_fn_c_try_link "$LINENO"; then :
22757 gcc_cv_math_func_sqrt=yes
22758 else
22759 gcc_cv_math_func_sqrt=no
22760 fi
22761 rm -f core conftest.err conftest.$ac_objext \
22762 conftest$ac_exeext conftest.$ac_ext
22763 fi
22764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrt" >&5
22765 $as_echo "$gcc_cv_math_func_sqrt" >&6; }
22766 if test $gcc_cv_math_func_sqrt = yes; then
22767
22768 cat >>confdefs.h <<_ACEOF
22769 #define HAVE_SQRT 1
22770 _ACEOF
22771
22772 fi
22773
22774
22775
22776
22777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl" >&5
22778 $as_echo_n "checking for sqrtl... " >&6; }
22779 if ${gcc_cv_math_func_sqrtl+:} false; then :
22780 $as_echo_n "(cached) " >&6
22781 else
22782 if test x$gcc_no_link = xyes; then
22783 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22784 fi
22785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22786 /* end confdefs.h. */
22787
22788 #ifdef HAVE_COMPLEX_H
22789 #include <complex.h>
22790 #endif
22791 #ifdef HAVE_MATH_H
22792 #include <math.h>
22793 #endif
22794
22795 int (*ptr)() = (int (*)())sqrtl;
22796
22797 int
22798 main ()
22799 {
22800 return 0;
22801 }
22802
22803 _ACEOF
22804 if ac_fn_c_try_link "$LINENO"; then :
22805 gcc_cv_math_func_sqrtl=yes
22806 else
22807 gcc_cv_math_func_sqrtl=no
22808 fi
22809 rm -f core conftest.err conftest.$ac_objext \
22810 conftest$ac_exeext conftest.$ac_ext
22811 fi
22812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtl" >&5
22813 $as_echo "$gcc_cv_math_func_sqrtl" >&6; }
22814 if test $gcc_cv_math_func_sqrtl = yes; then
22815
22816 cat >>confdefs.h <<_ACEOF
22817 #define HAVE_SQRTL 1
22818 _ACEOF
22819
22820 fi
22821
22822
22823
22824
22825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtf" >&5
22826 $as_echo_n "checking for csqrtf... " >&6; }
22827 if ${gcc_cv_math_func_csqrtf+:} false; then :
22828 $as_echo_n "(cached) " >&6
22829 else
22830 if test x$gcc_no_link = xyes; then
22831 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22832 fi
22833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22834 /* end confdefs.h. */
22835
22836 #ifdef HAVE_COMPLEX_H
22837 #include <complex.h>
22838 #endif
22839 #ifdef HAVE_MATH_H
22840 #include <math.h>
22841 #endif
22842
22843 int (*ptr)() = (int (*)())csqrtf;
22844
22845 int
22846 main ()
22847 {
22848 return 0;
22849 }
22850
22851 _ACEOF
22852 if ac_fn_c_try_link "$LINENO"; then :
22853 gcc_cv_math_func_csqrtf=yes
22854 else
22855 gcc_cv_math_func_csqrtf=no
22856 fi
22857 rm -f core conftest.err conftest.$ac_objext \
22858 conftest$ac_exeext conftest.$ac_ext
22859 fi
22860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtf" >&5
22861 $as_echo "$gcc_cv_math_func_csqrtf" >&6; }
22862 if test $gcc_cv_math_func_csqrtf = yes; then
22863
22864 cat >>confdefs.h <<_ACEOF
22865 #define HAVE_CSQRTF 1
22866 _ACEOF
22867
22868 fi
22869
22870
22871
22872
22873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrt" >&5
22874 $as_echo_n "checking for csqrt... " >&6; }
22875 if ${gcc_cv_math_func_csqrt+:} false; then :
22876 $as_echo_n "(cached) " >&6
22877 else
22878 if test x$gcc_no_link = xyes; then
22879 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22880 fi
22881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22882 /* end confdefs.h. */
22883
22884 #ifdef HAVE_COMPLEX_H
22885 #include <complex.h>
22886 #endif
22887 #ifdef HAVE_MATH_H
22888 #include <math.h>
22889 #endif
22890
22891 int (*ptr)() = (int (*)())csqrt;
22892
22893 int
22894 main ()
22895 {
22896 return 0;
22897 }
22898
22899 _ACEOF
22900 if ac_fn_c_try_link "$LINENO"; then :
22901 gcc_cv_math_func_csqrt=yes
22902 else
22903 gcc_cv_math_func_csqrt=no
22904 fi
22905 rm -f core conftest.err conftest.$ac_objext \
22906 conftest$ac_exeext conftest.$ac_ext
22907 fi
22908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrt" >&5
22909 $as_echo "$gcc_cv_math_func_csqrt" >&6; }
22910 if test $gcc_cv_math_func_csqrt = yes; then
22911
22912 cat >>confdefs.h <<_ACEOF
22913 #define HAVE_CSQRT 1
22914 _ACEOF
22915
22916 fi
22917
22918
22919
22920
22921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtl" >&5
22922 $as_echo_n "checking for csqrtl... " >&6; }
22923 if ${gcc_cv_math_func_csqrtl+:} false; then :
22924 $as_echo_n "(cached) " >&6
22925 else
22926 if test x$gcc_no_link = xyes; then
22927 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22928 fi
22929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22930 /* end confdefs.h. */
22931
22932 #ifdef HAVE_COMPLEX_H
22933 #include <complex.h>
22934 #endif
22935 #ifdef HAVE_MATH_H
22936 #include <math.h>
22937 #endif
22938
22939 int (*ptr)() = (int (*)())csqrtl;
22940
22941 int
22942 main ()
22943 {
22944 return 0;
22945 }
22946
22947 _ACEOF
22948 if ac_fn_c_try_link "$LINENO"; then :
22949 gcc_cv_math_func_csqrtl=yes
22950 else
22951 gcc_cv_math_func_csqrtl=no
22952 fi
22953 rm -f core conftest.err conftest.$ac_objext \
22954 conftest$ac_exeext conftest.$ac_ext
22955 fi
22956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtl" >&5
22957 $as_echo "$gcc_cv_math_func_csqrtl" >&6; }
22958 if test $gcc_cv_math_func_csqrtl = yes; then
22959
22960 cat >>confdefs.h <<_ACEOF
22961 #define HAVE_CSQRTL 1
22962 _ACEOF
22963
22964 fi
22965
22966
22967
22968
22969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanf" >&5
22970 $as_echo_n "checking for tanf... " >&6; }
22971 if ${gcc_cv_math_func_tanf+:} false; then :
22972 $as_echo_n "(cached) " >&6
22973 else
22974 if test x$gcc_no_link = xyes; then
22975 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22976 fi
22977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22978 /* end confdefs.h. */
22979
22980 #ifdef HAVE_COMPLEX_H
22981 #include <complex.h>
22982 #endif
22983 #ifdef HAVE_MATH_H
22984 #include <math.h>
22985 #endif
22986
22987 int (*ptr)() = (int (*)())tanf;
22988
22989 int
22990 main ()
22991 {
22992 return 0;
22993 }
22994
22995 _ACEOF
22996 if ac_fn_c_try_link "$LINENO"; then :
22997 gcc_cv_math_func_tanf=yes
22998 else
22999 gcc_cv_math_func_tanf=no
23000 fi
23001 rm -f core conftest.err conftest.$ac_objext \
23002 conftest$ac_exeext conftest.$ac_ext
23003 fi
23004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanf" >&5
23005 $as_echo "$gcc_cv_math_func_tanf" >&6; }
23006 if test $gcc_cv_math_func_tanf = yes; then
23007
23008 cat >>confdefs.h <<_ACEOF
23009 #define HAVE_TANF 1
23010 _ACEOF
23011
23012 fi
23013
23014
23015
23016
23017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tan" >&5
23018 $as_echo_n "checking for tan... " >&6; }
23019 if ${gcc_cv_math_func_tan+:} false; then :
23020 $as_echo_n "(cached) " >&6
23021 else
23022 if test x$gcc_no_link = xyes; then
23023 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23024 fi
23025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23026 /* end confdefs.h. */
23027
23028 #ifdef HAVE_COMPLEX_H
23029 #include <complex.h>
23030 #endif
23031 #ifdef HAVE_MATH_H
23032 #include <math.h>
23033 #endif
23034
23035 int (*ptr)() = (int (*)())tan;
23036
23037 int
23038 main ()
23039 {
23040 return 0;
23041 }
23042
23043 _ACEOF
23044 if ac_fn_c_try_link "$LINENO"; then :
23045 gcc_cv_math_func_tan=yes
23046 else
23047 gcc_cv_math_func_tan=no
23048 fi
23049 rm -f core conftest.err conftest.$ac_objext \
23050 conftest$ac_exeext conftest.$ac_ext
23051 fi
23052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tan" >&5
23053 $as_echo "$gcc_cv_math_func_tan" >&6; }
23054 if test $gcc_cv_math_func_tan = yes; then
23055
23056 cat >>confdefs.h <<_ACEOF
23057 #define HAVE_TAN 1
23058 _ACEOF
23059
23060 fi
23061
23062
23063
23064
23065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanl" >&5
23066 $as_echo_n "checking for tanl... " >&6; }
23067 if ${gcc_cv_math_func_tanl+:} false; then :
23068 $as_echo_n "(cached) " >&6
23069 else
23070 if test x$gcc_no_link = xyes; then
23071 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23072 fi
23073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23074 /* end confdefs.h. */
23075
23076 #ifdef HAVE_COMPLEX_H
23077 #include <complex.h>
23078 #endif
23079 #ifdef HAVE_MATH_H
23080 #include <math.h>
23081 #endif
23082
23083 int (*ptr)() = (int (*)())tanl;
23084
23085 int
23086 main ()
23087 {
23088 return 0;
23089 }
23090
23091 _ACEOF
23092 if ac_fn_c_try_link "$LINENO"; then :
23093 gcc_cv_math_func_tanl=yes
23094 else
23095 gcc_cv_math_func_tanl=no
23096 fi
23097 rm -f core conftest.err conftest.$ac_objext \
23098 conftest$ac_exeext conftest.$ac_ext
23099 fi
23100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanl" >&5
23101 $as_echo "$gcc_cv_math_func_tanl" >&6; }
23102 if test $gcc_cv_math_func_tanl = yes; then
23103
23104 cat >>confdefs.h <<_ACEOF
23105 #define HAVE_TANL 1
23106 _ACEOF
23107
23108 fi
23109
23110
23111
23112
23113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanf" >&5
23114 $as_echo_n "checking for ctanf... " >&6; }
23115 if ${gcc_cv_math_func_ctanf+:} false; then :
23116 $as_echo_n "(cached) " >&6
23117 else
23118 if test x$gcc_no_link = xyes; then
23119 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23120 fi
23121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23122 /* end confdefs.h. */
23123
23124 #ifdef HAVE_COMPLEX_H
23125 #include <complex.h>
23126 #endif
23127 #ifdef HAVE_MATH_H
23128 #include <math.h>
23129 #endif
23130
23131 int (*ptr)() = (int (*)())ctanf;
23132
23133 int
23134 main ()
23135 {
23136 return 0;
23137 }
23138
23139 _ACEOF
23140 if ac_fn_c_try_link "$LINENO"; then :
23141 gcc_cv_math_func_ctanf=yes
23142 else
23143 gcc_cv_math_func_ctanf=no
23144 fi
23145 rm -f core conftest.err conftest.$ac_objext \
23146 conftest$ac_exeext conftest.$ac_ext
23147 fi
23148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanf" >&5
23149 $as_echo "$gcc_cv_math_func_ctanf" >&6; }
23150 if test $gcc_cv_math_func_ctanf = yes; then
23151
23152 cat >>confdefs.h <<_ACEOF
23153 #define HAVE_CTANF 1
23154 _ACEOF
23155
23156 fi
23157
23158
23159
23160
23161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctan" >&5
23162 $as_echo_n "checking for ctan... " >&6; }
23163 if ${gcc_cv_math_func_ctan+:} false; then :
23164 $as_echo_n "(cached) " >&6
23165 else
23166 if test x$gcc_no_link = xyes; then
23167 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23168 fi
23169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23170 /* end confdefs.h. */
23171
23172 #ifdef HAVE_COMPLEX_H
23173 #include <complex.h>
23174 #endif
23175 #ifdef HAVE_MATH_H
23176 #include <math.h>
23177 #endif
23178
23179 int (*ptr)() = (int (*)())ctan;
23180
23181 int
23182 main ()
23183 {
23184 return 0;
23185 }
23186
23187 _ACEOF
23188 if ac_fn_c_try_link "$LINENO"; then :
23189 gcc_cv_math_func_ctan=yes
23190 else
23191 gcc_cv_math_func_ctan=no
23192 fi
23193 rm -f core conftest.err conftest.$ac_objext \
23194 conftest$ac_exeext conftest.$ac_ext
23195 fi
23196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctan" >&5
23197 $as_echo "$gcc_cv_math_func_ctan" >&6; }
23198 if test $gcc_cv_math_func_ctan = yes; then
23199
23200 cat >>confdefs.h <<_ACEOF
23201 #define HAVE_CTAN 1
23202 _ACEOF
23203
23204 fi
23205
23206
23207
23208
23209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanl" >&5
23210 $as_echo_n "checking for ctanl... " >&6; }
23211 if ${gcc_cv_math_func_ctanl+:} false; then :
23212 $as_echo_n "(cached) " >&6
23213 else
23214 if test x$gcc_no_link = xyes; then
23215 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23216 fi
23217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23218 /* end confdefs.h. */
23219
23220 #ifdef HAVE_COMPLEX_H
23221 #include <complex.h>
23222 #endif
23223 #ifdef HAVE_MATH_H
23224 #include <math.h>
23225 #endif
23226
23227 int (*ptr)() = (int (*)())ctanl;
23228
23229 int
23230 main ()
23231 {
23232 return 0;
23233 }
23234
23235 _ACEOF
23236 if ac_fn_c_try_link "$LINENO"; then :
23237 gcc_cv_math_func_ctanl=yes
23238 else
23239 gcc_cv_math_func_ctanl=no
23240 fi
23241 rm -f core conftest.err conftest.$ac_objext \
23242 conftest$ac_exeext conftest.$ac_ext
23243 fi
23244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanl" >&5
23245 $as_echo "$gcc_cv_math_func_ctanl" >&6; }
23246 if test $gcc_cv_math_func_ctanl = yes; then
23247
23248 cat >>confdefs.h <<_ACEOF
23249 #define HAVE_CTANL 1
23250 _ACEOF
23251
23252 fi
23253
23254
23255
23256
23257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhf" >&5
23258 $as_echo_n "checking for tanhf... " >&6; }
23259 if ${gcc_cv_math_func_tanhf+:} false; then :
23260 $as_echo_n "(cached) " >&6
23261 else
23262 if test x$gcc_no_link = xyes; then
23263 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23264 fi
23265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23266 /* end confdefs.h. */
23267
23268 #ifdef HAVE_COMPLEX_H
23269 #include <complex.h>
23270 #endif
23271 #ifdef HAVE_MATH_H
23272 #include <math.h>
23273 #endif
23274
23275 int (*ptr)() = (int (*)())tanhf;
23276
23277 int
23278 main ()
23279 {
23280 return 0;
23281 }
23282
23283 _ACEOF
23284 if ac_fn_c_try_link "$LINENO"; then :
23285 gcc_cv_math_func_tanhf=yes
23286 else
23287 gcc_cv_math_func_tanhf=no
23288 fi
23289 rm -f core conftest.err conftest.$ac_objext \
23290 conftest$ac_exeext conftest.$ac_ext
23291 fi
23292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhf" >&5
23293 $as_echo "$gcc_cv_math_func_tanhf" >&6; }
23294 if test $gcc_cv_math_func_tanhf = yes; then
23295
23296 cat >>confdefs.h <<_ACEOF
23297 #define HAVE_TANHF 1
23298 _ACEOF
23299
23300 fi
23301
23302
23303
23304
23305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanh" >&5
23306 $as_echo_n "checking for tanh... " >&6; }
23307 if ${gcc_cv_math_func_tanh+:} false; then :
23308 $as_echo_n "(cached) " >&6
23309 else
23310 if test x$gcc_no_link = xyes; then
23311 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23312 fi
23313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23314 /* end confdefs.h. */
23315
23316 #ifdef HAVE_COMPLEX_H
23317 #include <complex.h>
23318 #endif
23319 #ifdef HAVE_MATH_H
23320 #include <math.h>
23321 #endif
23322
23323 int (*ptr)() = (int (*)())tanh;
23324
23325 int
23326 main ()
23327 {
23328 return 0;
23329 }
23330
23331 _ACEOF
23332 if ac_fn_c_try_link "$LINENO"; then :
23333 gcc_cv_math_func_tanh=yes
23334 else
23335 gcc_cv_math_func_tanh=no
23336 fi
23337 rm -f core conftest.err conftest.$ac_objext \
23338 conftest$ac_exeext conftest.$ac_ext
23339 fi
23340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanh" >&5
23341 $as_echo "$gcc_cv_math_func_tanh" >&6; }
23342 if test $gcc_cv_math_func_tanh = yes; then
23343
23344 cat >>confdefs.h <<_ACEOF
23345 #define HAVE_TANH 1
23346 _ACEOF
23347
23348 fi
23349
23350
23351
23352
23353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhl" >&5
23354 $as_echo_n "checking for tanhl... " >&6; }
23355 if ${gcc_cv_math_func_tanhl+:} false; then :
23356 $as_echo_n "(cached) " >&6
23357 else
23358 if test x$gcc_no_link = xyes; then
23359 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23360 fi
23361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23362 /* end confdefs.h. */
23363
23364 #ifdef HAVE_COMPLEX_H
23365 #include <complex.h>
23366 #endif
23367 #ifdef HAVE_MATH_H
23368 #include <math.h>
23369 #endif
23370
23371 int (*ptr)() = (int (*)())tanhl;
23372
23373 int
23374 main ()
23375 {
23376 return 0;
23377 }
23378
23379 _ACEOF
23380 if ac_fn_c_try_link "$LINENO"; then :
23381 gcc_cv_math_func_tanhl=yes
23382 else
23383 gcc_cv_math_func_tanhl=no
23384 fi
23385 rm -f core conftest.err conftest.$ac_objext \
23386 conftest$ac_exeext conftest.$ac_ext
23387 fi
23388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhl" >&5
23389 $as_echo "$gcc_cv_math_func_tanhl" >&6; }
23390 if test $gcc_cv_math_func_tanhl = yes; then
23391
23392 cat >>confdefs.h <<_ACEOF
23393 #define HAVE_TANHL 1
23394 _ACEOF
23395
23396 fi
23397
23398
23399
23400
23401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhf" >&5
23402 $as_echo_n "checking for ctanhf... " >&6; }
23403 if ${gcc_cv_math_func_ctanhf+:} false; then :
23404 $as_echo_n "(cached) " >&6
23405 else
23406 if test x$gcc_no_link = xyes; then
23407 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23408 fi
23409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23410 /* end confdefs.h. */
23411
23412 #ifdef HAVE_COMPLEX_H
23413 #include <complex.h>
23414 #endif
23415 #ifdef HAVE_MATH_H
23416 #include <math.h>
23417 #endif
23418
23419 int (*ptr)() = (int (*)())ctanhf;
23420
23421 int
23422 main ()
23423 {
23424 return 0;
23425 }
23426
23427 _ACEOF
23428 if ac_fn_c_try_link "$LINENO"; then :
23429 gcc_cv_math_func_ctanhf=yes
23430 else
23431 gcc_cv_math_func_ctanhf=no
23432 fi
23433 rm -f core conftest.err conftest.$ac_objext \
23434 conftest$ac_exeext conftest.$ac_ext
23435 fi
23436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhf" >&5
23437 $as_echo "$gcc_cv_math_func_ctanhf" >&6; }
23438 if test $gcc_cv_math_func_ctanhf = yes; then
23439
23440 cat >>confdefs.h <<_ACEOF
23441 #define HAVE_CTANHF 1
23442 _ACEOF
23443
23444 fi
23445
23446
23447
23448
23449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanh" >&5
23450 $as_echo_n "checking for ctanh... " >&6; }
23451 if ${gcc_cv_math_func_ctanh+:} false; then :
23452 $as_echo_n "(cached) " >&6
23453 else
23454 if test x$gcc_no_link = xyes; then
23455 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23456 fi
23457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23458 /* end confdefs.h. */
23459
23460 #ifdef HAVE_COMPLEX_H
23461 #include <complex.h>
23462 #endif
23463 #ifdef HAVE_MATH_H
23464 #include <math.h>
23465 #endif
23466
23467 int (*ptr)() = (int (*)())ctanh;
23468
23469 int
23470 main ()
23471 {
23472 return 0;
23473 }
23474
23475 _ACEOF
23476 if ac_fn_c_try_link "$LINENO"; then :
23477 gcc_cv_math_func_ctanh=yes
23478 else
23479 gcc_cv_math_func_ctanh=no
23480 fi
23481 rm -f core conftest.err conftest.$ac_objext \
23482 conftest$ac_exeext conftest.$ac_ext
23483 fi
23484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanh" >&5
23485 $as_echo "$gcc_cv_math_func_ctanh" >&6; }
23486 if test $gcc_cv_math_func_ctanh = yes; then
23487
23488 cat >>confdefs.h <<_ACEOF
23489 #define HAVE_CTANH 1
23490 _ACEOF
23491
23492 fi
23493
23494
23495
23496
23497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhl" >&5
23498 $as_echo_n "checking for ctanhl... " >&6; }
23499 if ${gcc_cv_math_func_ctanhl+:} false; then :
23500 $as_echo_n "(cached) " >&6
23501 else
23502 if test x$gcc_no_link = xyes; then
23503 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23504 fi
23505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23506 /* end confdefs.h. */
23507
23508 #ifdef HAVE_COMPLEX_H
23509 #include <complex.h>
23510 #endif
23511 #ifdef HAVE_MATH_H
23512 #include <math.h>
23513 #endif
23514
23515 int (*ptr)() = (int (*)())ctanhl;
23516
23517 int
23518 main ()
23519 {
23520 return 0;
23521 }
23522
23523 _ACEOF
23524 if ac_fn_c_try_link "$LINENO"; then :
23525 gcc_cv_math_func_ctanhl=yes
23526 else
23527 gcc_cv_math_func_ctanhl=no
23528 fi
23529 rm -f core conftest.err conftest.$ac_objext \
23530 conftest$ac_exeext conftest.$ac_ext
23531 fi
23532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhl" >&5
23533 $as_echo "$gcc_cv_math_func_ctanhl" >&6; }
23534 if test $gcc_cv_math_func_ctanhl = yes; then
23535
23536 cat >>confdefs.h <<_ACEOF
23537 #define HAVE_CTANHL 1
23538 _ACEOF
23539
23540 fi
23541
23542
23543
23544
23545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncf" >&5
23546 $as_echo_n "checking for truncf... " >&6; }
23547 if ${gcc_cv_math_func_truncf+:} false; then :
23548 $as_echo_n "(cached) " >&6
23549 else
23550 if test x$gcc_no_link = xyes; then
23551 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23552 fi
23553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23554 /* end confdefs.h. */
23555
23556 #ifdef HAVE_COMPLEX_H
23557 #include <complex.h>
23558 #endif
23559 #ifdef HAVE_MATH_H
23560 #include <math.h>
23561 #endif
23562
23563 int (*ptr)() = (int (*)())truncf;
23564
23565 int
23566 main ()
23567 {
23568 return 0;
23569 }
23570
23571 _ACEOF
23572 if ac_fn_c_try_link "$LINENO"; then :
23573 gcc_cv_math_func_truncf=yes
23574 else
23575 gcc_cv_math_func_truncf=no
23576 fi
23577 rm -f core conftest.err conftest.$ac_objext \
23578 conftest$ac_exeext conftest.$ac_ext
23579 fi
23580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncf" >&5
23581 $as_echo "$gcc_cv_math_func_truncf" >&6; }
23582 if test $gcc_cv_math_func_truncf = yes; then
23583
23584 cat >>confdefs.h <<_ACEOF
23585 #define HAVE_TRUNCF 1
23586 _ACEOF
23587
23588 fi
23589
23590
23591
23592
23593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for trunc" >&5
23594 $as_echo_n "checking for trunc... " >&6; }
23595 if ${gcc_cv_math_func_trunc+:} false; then :
23596 $as_echo_n "(cached) " >&6
23597 else
23598 if test x$gcc_no_link = xyes; then
23599 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23600 fi
23601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23602 /* end confdefs.h. */
23603
23604 #ifdef HAVE_COMPLEX_H
23605 #include <complex.h>
23606 #endif
23607 #ifdef HAVE_MATH_H
23608 #include <math.h>
23609 #endif
23610
23611 int (*ptr)() = (int (*)())trunc;
23612
23613 int
23614 main ()
23615 {
23616 return 0;
23617 }
23618
23619 _ACEOF
23620 if ac_fn_c_try_link "$LINENO"; then :
23621 gcc_cv_math_func_trunc=yes
23622 else
23623 gcc_cv_math_func_trunc=no
23624 fi
23625 rm -f core conftest.err conftest.$ac_objext \
23626 conftest$ac_exeext conftest.$ac_ext
23627 fi
23628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_trunc" >&5
23629 $as_echo "$gcc_cv_math_func_trunc" >&6; }
23630 if test $gcc_cv_math_func_trunc = yes; then
23631
23632 cat >>confdefs.h <<_ACEOF
23633 #define HAVE_TRUNC 1
23634 _ACEOF
23635
23636 fi
23637
23638
23639
23640
23641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncl" >&5
23642 $as_echo_n "checking for truncl... " >&6; }
23643 if ${gcc_cv_math_func_truncl+:} false; then :
23644 $as_echo_n "(cached) " >&6
23645 else
23646 if test x$gcc_no_link = xyes; then
23647 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23648 fi
23649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23650 /* end confdefs.h. */
23651
23652 #ifdef HAVE_COMPLEX_H
23653 #include <complex.h>
23654 #endif
23655 #ifdef HAVE_MATH_H
23656 #include <math.h>
23657 #endif
23658
23659 int (*ptr)() = (int (*)())truncl;
23660
23661 int
23662 main ()
23663 {
23664 return 0;
23665 }
23666
23667 _ACEOF
23668 if ac_fn_c_try_link "$LINENO"; then :
23669 gcc_cv_math_func_truncl=yes
23670 else
23671 gcc_cv_math_func_truncl=no
23672 fi
23673 rm -f core conftest.err conftest.$ac_objext \
23674 conftest$ac_exeext conftest.$ac_ext
23675 fi
23676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncl" >&5
23677 $as_echo "$gcc_cv_math_func_truncl" >&6; }
23678 if test $gcc_cv_math_func_truncl = yes; then
23679
23680 cat >>confdefs.h <<_ACEOF
23681 #define HAVE_TRUNCL 1
23682 _ACEOF
23683
23684 fi
23685
23686
23687
23688
23689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erff" >&5
23690 $as_echo_n "checking for erff... " >&6; }
23691 if ${gcc_cv_math_func_erff+:} false; then :
23692 $as_echo_n "(cached) " >&6
23693 else
23694 if test x$gcc_no_link = xyes; then
23695 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23696 fi
23697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23698 /* end confdefs.h. */
23699
23700 #ifdef HAVE_COMPLEX_H
23701 #include <complex.h>
23702 #endif
23703 #ifdef HAVE_MATH_H
23704 #include <math.h>
23705 #endif
23706
23707 int (*ptr)() = (int (*)())erff;
23708
23709 int
23710 main ()
23711 {
23712 return 0;
23713 }
23714
23715 _ACEOF
23716 if ac_fn_c_try_link "$LINENO"; then :
23717 gcc_cv_math_func_erff=yes
23718 else
23719 gcc_cv_math_func_erff=no
23720 fi
23721 rm -f core conftest.err conftest.$ac_objext \
23722 conftest$ac_exeext conftest.$ac_ext
23723 fi
23724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erff" >&5
23725 $as_echo "$gcc_cv_math_func_erff" >&6; }
23726 if test $gcc_cv_math_func_erff = yes; then
23727
23728 cat >>confdefs.h <<_ACEOF
23729 #define HAVE_ERFF 1
23730 _ACEOF
23731
23732 fi
23733
23734
23735
23736
23737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erf" >&5
23738 $as_echo_n "checking for erf... " >&6; }
23739 if ${gcc_cv_math_func_erf+:} false; then :
23740 $as_echo_n "(cached) " >&6
23741 else
23742 if test x$gcc_no_link = xyes; then
23743 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23744 fi
23745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23746 /* end confdefs.h. */
23747
23748 #ifdef HAVE_COMPLEX_H
23749 #include <complex.h>
23750 #endif
23751 #ifdef HAVE_MATH_H
23752 #include <math.h>
23753 #endif
23754
23755 int (*ptr)() = (int (*)())erf;
23756
23757 int
23758 main ()
23759 {
23760 return 0;
23761 }
23762
23763 _ACEOF
23764 if ac_fn_c_try_link "$LINENO"; then :
23765 gcc_cv_math_func_erf=yes
23766 else
23767 gcc_cv_math_func_erf=no
23768 fi
23769 rm -f core conftest.err conftest.$ac_objext \
23770 conftest$ac_exeext conftest.$ac_ext
23771 fi
23772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erf" >&5
23773 $as_echo "$gcc_cv_math_func_erf" >&6; }
23774 if test $gcc_cv_math_func_erf = yes; then
23775
23776 cat >>confdefs.h <<_ACEOF
23777 #define HAVE_ERF 1
23778 _ACEOF
23779
23780 fi
23781
23782
23783
23784
23785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcf" >&5
23786 $as_echo_n "checking for erfcf... " >&6; }
23787 if ${gcc_cv_math_func_erfcf+:} false; then :
23788 $as_echo_n "(cached) " >&6
23789 else
23790 if test x$gcc_no_link = xyes; then
23791 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23792 fi
23793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23794 /* end confdefs.h. */
23795
23796 #ifdef HAVE_COMPLEX_H
23797 #include <complex.h>
23798 #endif
23799 #ifdef HAVE_MATH_H
23800 #include <math.h>
23801 #endif
23802
23803 int (*ptr)() = (int (*)())erfcf;
23804
23805 int
23806 main ()
23807 {
23808 return 0;
23809 }
23810
23811 _ACEOF
23812 if ac_fn_c_try_link "$LINENO"; then :
23813 gcc_cv_math_func_erfcf=yes
23814 else
23815 gcc_cv_math_func_erfcf=no
23816 fi
23817 rm -f core conftest.err conftest.$ac_objext \
23818 conftest$ac_exeext conftest.$ac_ext
23819 fi
23820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcf" >&5
23821 $as_echo "$gcc_cv_math_func_erfcf" >&6; }
23822 if test $gcc_cv_math_func_erfcf = yes; then
23823
23824 cat >>confdefs.h <<_ACEOF
23825 #define HAVE_ERFCF 1
23826 _ACEOF
23827
23828 fi
23829
23830
23831
23832
23833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfc" >&5
23834 $as_echo_n "checking for erfc... " >&6; }
23835 if ${gcc_cv_math_func_erfc+:} false; then :
23836 $as_echo_n "(cached) " >&6
23837 else
23838 if test x$gcc_no_link = xyes; then
23839 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23840 fi
23841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23842 /* end confdefs.h. */
23843
23844 #ifdef HAVE_COMPLEX_H
23845 #include <complex.h>
23846 #endif
23847 #ifdef HAVE_MATH_H
23848 #include <math.h>
23849 #endif
23850
23851 int (*ptr)() = (int (*)())erfc;
23852
23853 int
23854 main ()
23855 {
23856 return 0;
23857 }
23858
23859 _ACEOF
23860 if ac_fn_c_try_link "$LINENO"; then :
23861 gcc_cv_math_func_erfc=yes
23862 else
23863 gcc_cv_math_func_erfc=no
23864 fi
23865 rm -f core conftest.err conftest.$ac_objext \
23866 conftest$ac_exeext conftest.$ac_ext
23867 fi
23868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfc" >&5
23869 $as_echo "$gcc_cv_math_func_erfc" >&6; }
23870 if test $gcc_cv_math_func_erfc = yes; then
23871
23872 cat >>confdefs.h <<_ACEOF
23873 #define HAVE_ERFC 1
23874 _ACEOF
23875
23876 fi
23877
23878
23879
23880
23881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcl" >&5
23882 $as_echo_n "checking for erfcl... " >&6; }
23883 if ${gcc_cv_math_func_erfcl+:} false; then :
23884 $as_echo_n "(cached) " >&6
23885 else
23886 if test x$gcc_no_link = xyes; then
23887 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23888 fi
23889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23890 /* end confdefs.h. */
23891
23892 #ifdef HAVE_COMPLEX_H
23893 #include <complex.h>
23894 #endif
23895 #ifdef HAVE_MATH_H
23896 #include <math.h>
23897 #endif
23898
23899 int (*ptr)() = (int (*)())erfcl;
23900
23901 int
23902 main ()
23903 {
23904 return 0;
23905 }
23906
23907 _ACEOF
23908 if ac_fn_c_try_link "$LINENO"; then :
23909 gcc_cv_math_func_erfcl=yes
23910 else
23911 gcc_cv_math_func_erfcl=no
23912 fi
23913 rm -f core conftest.err conftest.$ac_objext \
23914 conftest$ac_exeext conftest.$ac_ext
23915 fi
23916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcl" >&5
23917 $as_echo "$gcc_cv_math_func_erfcl" >&6; }
23918 if test $gcc_cv_math_func_erfcl = yes; then
23919
23920 cat >>confdefs.h <<_ACEOF
23921 #define HAVE_ERFCL 1
23922 _ACEOF
23923
23924 fi
23925
23926
23927
23928
23929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0f" >&5
23930 $as_echo_n "checking for j0f... " >&6; }
23931 if ${gcc_cv_math_func_j0f+:} false; then :
23932 $as_echo_n "(cached) " >&6
23933 else
23934 if test x$gcc_no_link = xyes; then
23935 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23936 fi
23937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23938 /* end confdefs.h. */
23939
23940 #ifdef HAVE_COMPLEX_H
23941 #include <complex.h>
23942 #endif
23943 #ifdef HAVE_MATH_H
23944 #include <math.h>
23945 #endif
23946
23947 int (*ptr)() = (int (*)())j0f;
23948
23949 int
23950 main ()
23951 {
23952 return 0;
23953 }
23954
23955 _ACEOF
23956 if ac_fn_c_try_link "$LINENO"; then :
23957 gcc_cv_math_func_j0f=yes
23958 else
23959 gcc_cv_math_func_j0f=no
23960 fi
23961 rm -f core conftest.err conftest.$ac_objext \
23962 conftest$ac_exeext conftest.$ac_ext
23963 fi
23964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0f" >&5
23965 $as_echo "$gcc_cv_math_func_j0f" >&6; }
23966 if test $gcc_cv_math_func_j0f = yes; then
23967
23968 cat >>confdefs.h <<_ACEOF
23969 #define HAVE_J0F 1
23970 _ACEOF
23971
23972 fi
23973
23974
23975
23976
23977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0" >&5
23978 $as_echo_n "checking for j0... " >&6; }
23979 if ${gcc_cv_math_func_j0+:} false; then :
23980 $as_echo_n "(cached) " >&6
23981 else
23982 if test x$gcc_no_link = xyes; then
23983 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23984 fi
23985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23986 /* end confdefs.h. */
23987
23988 #ifdef HAVE_COMPLEX_H
23989 #include <complex.h>
23990 #endif
23991 #ifdef HAVE_MATH_H
23992 #include <math.h>
23993 #endif
23994
23995 int (*ptr)() = (int (*)())j0;
23996
23997 int
23998 main ()
23999 {
24000 return 0;
24001 }
24002
24003 _ACEOF
24004 if ac_fn_c_try_link "$LINENO"; then :
24005 gcc_cv_math_func_j0=yes
24006 else
24007 gcc_cv_math_func_j0=no
24008 fi
24009 rm -f core conftest.err conftest.$ac_objext \
24010 conftest$ac_exeext conftest.$ac_ext
24011 fi
24012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0" >&5
24013 $as_echo "$gcc_cv_math_func_j0" >&6; }
24014 if test $gcc_cv_math_func_j0 = yes; then
24015
24016 cat >>confdefs.h <<_ACEOF
24017 #define HAVE_J0 1
24018 _ACEOF
24019
24020 fi
24021
24022
24023
24024
24025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1f" >&5
24026 $as_echo_n "checking for j1f... " >&6; }
24027 if ${gcc_cv_math_func_j1f+:} false; then :
24028 $as_echo_n "(cached) " >&6
24029 else
24030 if test x$gcc_no_link = xyes; then
24031 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24032 fi
24033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24034 /* end confdefs.h. */
24035
24036 #ifdef HAVE_COMPLEX_H
24037 #include <complex.h>
24038 #endif
24039 #ifdef HAVE_MATH_H
24040 #include <math.h>
24041 #endif
24042
24043 int (*ptr)() = (int (*)())j1f;
24044
24045 int
24046 main ()
24047 {
24048 return 0;
24049 }
24050
24051 _ACEOF
24052 if ac_fn_c_try_link "$LINENO"; then :
24053 gcc_cv_math_func_j1f=yes
24054 else
24055 gcc_cv_math_func_j1f=no
24056 fi
24057 rm -f core conftest.err conftest.$ac_objext \
24058 conftest$ac_exeext conftest.$ac_ext
24059 fi
24060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1f" >&5
24061 $as_echo "$gcc_cv_math_func_j1f" >&6; }
24062 if test $gcc_cv_math_func_j1f = yes; then
24063
24064 cat >>confdefs.h <<_ACEOF
24065 #define HAVE_J1F 1
24066 _ACEOF
24067
24068 fi
24069
24070
24071
24072
24073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1" >&5
24074 $as_echo_n "checking for j1... " >&6; }
24075 if ${gcc_cv_math_func_j1+:} false; then :
24076 $as_echo_n "(cached) " >&6
24077 else
24078 if test x$gcc_no_link = xyes; then
24079 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24080 fi
24081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24082 /* end confdefs.h. */
24083
24084 #ifdef HAVE_COMPLEX_H
24085 #include <complex.h>
24086 #endif
24087 #ifdef HAVE_MATH_H
24088 #include <math.h>
24089 #endif
24090
24091 int (*ptr)() = (int (*)())j1;
24092
24093 int
24094 main ()
24095 {
24096 return 0;
24097 }
24098
24099 _ACEOF
24100 if ac_fn_c_try_link "$LINENO"; then :
24101 gcc_cv_math_func_j1=yes
24102 else
24103 gcc_cv_math_func_j1=no
24104 fi
24105 rm -f core conftest.err conftest.$ac_objext \
24106 conftest$ac_exeext conftest.$ac_ext
24107 fi
24108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1" >&5
24109 $as_echo "$gcc_cv_math_func_j1" >&6; }
24110 if test $gcc_cv_math_func_j1 = yes; then
24111
24112 cat >>confdefs.h <<_ACEOF
24113 #define HAVE_J1 1
24114 _ACEOF
24115
24116 fi
24117
24118
24119
24120
24121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnf" >&5
24122 $as_echo_n "checking for jnf... " >&6; }
24123 if ${gcc_cv_math_func_jnf+:} false; then :
24124 $as_echo_n "(cached) " >&6
24125 else
24126 if test x$gcc_no_link = xyes; then
24127 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24128 fi
24129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24130 /* end confdefs.h. */
24131
24132 #ifdef HAVE_COMPLEX_H
24133 #include <complex.h>
24134 #endif
24135 #ifdef HAVE_MATH_H
24136 #include <math.h>
24137 #endif
24138
24139 int (*ptr)() = (int (*)())jnf;
24140
24141 int
24142 main ()
24143 {
24144 return 0;
24145 }
24146
24147 _ACEOF
24148 if ac_fn_c_try_link "$LINENO"; then :
24149 gcc_cv_math_func_jnf=yes
24150 else
24151 gcc_cv_math_func_jnf=no
24152 fi
24153 rm -f core conftest.err conftest.$ac_objext \
24154 conftest$ac_exeext conftest.$ac_ext
24155 fi
24156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnf" >&5
24157 $as_echo "$gcc_cv_math_func_jnf" >&6; }
24158 if test $gcc_cv_math_func_jnf = yes; then
24159
24160 cat >>confdefs.h <<_ACEOF
24161 #define HAVE_JNF 1
24162 _ACEOF
24163
24164 fi
24165
24166
24167
24168
24169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jn" >&5
24170 $as_echo_n "checking for jn... " >&6; }
24171 if ${gcc_cv_math_func_jn+:} false; then :
24172 $as_echo_n "(cached) " >&6
24173 else
24174 if test x$gcc_no_link = xyes; then
24175 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24176 fi
24177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24178 /* end confdefs.h. */
24179
24180 #ifdef HAVE_COMPLEX_H
24181 #include <complex.h>
24182 #endif
24183 #ifdef HAVE_MATH_H
24184 #include <math.h>
24185 #endif
24186
24187 int (*ptr)() = (int (*)())jn;
24188
24189 int
24190 main ()
24191 {
24192 return 0;
24193 }
24194
24195 _ACEOF
24196 if ac_fn_c_try_link "$LINENO"; then :
24197 gcc_cv_math_func_jn=yes
24198 else
24199 gcc_cv_math_func_jn=no
24200 fi
24201 rm -f core conftest.err conftest.$ac_objext \
24202 conftest$ac_exeext conftest.$ac_ext
24203 fi
24204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jn" >&5
24205 $as_echo "$gcc_cv_math_func_jn" >&6; }
24206 if test $gcc_cv_math_func_jn = yes; then
24207
24208 cat >>confdefs.h <<_ACEOF
24209 #define HAVE_JN 1
24210 _ACEOF
24211
24212 fi
24213
24214
24215
24216
24217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnl" >&5
24218 $as_echo_n "checking for jnl... " >&6; }
24219 if ${gcc_cv_math_func_jnl+:} false; then :
24220 $as_echo_n "(cached) " >&6
24221 else
24222 if test x$gcc_no_link = xyes; then
24223 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24224 fi
24225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24226 /* end confdefs.h. */
24227
24228 #ifdef HAVE_COMPLEX_H
24229 #include <complex.h>
24230 #endif
24231 #ifdef HAVE_MATH_H
24232 #include <math.h>
24233 #endif
24234
24235 int (*ptr)() = (int (*)())jnl;
24236
24237 int
24238 main ()
24239 {
24240 return 0;
24241 }
24242
24243 _ACEOF
24244 if ac_fn_c_try_link "$LINENO"; then :
24245 gcc_cv_math_func_jnl=yes
24246 else
24247 gcc_cv_math_func_jnl=no
24248 fi
24249 rm -f core conftest.err conftest.$ac_objext \
24250 conftest$ac_exeext conftest.$ac_ext
24251 fi
24252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnl" >&5
24253 $as_echo "$gcc_cv_math_func_jnl" >&6; }
24254 if test $gcc_cv_math_func_jnl = yes; then
24255
24256 cat >>confdefs.h <<_ACEOF
24257 #define HAVE_JNL 1
24258 _ACEOF
24259
24260 fi
24261
24262
24263
24264
24265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0f" >&5
24266 $as_echo_n "checking for y0f... " >&6; }
24267 if ${gcc_cv_math_func_y0f+:} false; then :
24268 $as_echo_n "(cached) " >&6
24269 else
24270 if test x$gcc_no_link = xyes; then
24271 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24272 fi
24273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24274 /* end confdefs.h. */
24275
24276 #ifdef HAVE_COMPLEX_H
24277 #include <complex.h>
24278 #endif
24279 #ifdef HAVE_MATH_H
24280 #include <math.h>
24281 #endif
24282
24283 int (*ptr)() = (int (*)())y0f;
24284
24285 int
24286 main ()
24287 {
24288 return 0;
24289 }
24290
24291 _ACEOF
24292 if ac_fn_c_try_link "$LINENO"; then :
24293 gcc_cv_math_func_y0f=yes
24294 else
24295 gcc_cv_math_func_y0f=no
24296 fi
24297 rm -f core conftest.err conftest.$ac_objext \
24298 conftest$ac_exeext conftest.$ac_ext
24299 fi
24300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0f" >&5
24301 $as_echo "$gcc_cv_math_func_y0f" >&6; }
24302 if test $gcc_cv_math_func_y0f = yes; then
24303
24304 cat >>confdefs.h <<_ACEOF
24305 #define HAVE_Y0F 1
24306 _ACEOF
24307
24308 fi
24309
24310
24311
24312
24313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0" >&5
24314 $as_echo_n "checking for y0... " >&6; }
24315 if ${gcc_cv_math_func_y0+:} false; then :
24316 $as_echo_n "(cached) " >&6
24317 else
24318 if test x$gcc_no_link = xyes; then
24319 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24320 fi
24321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24322 /* end confdefs.h. */
24323
24324 #ifdef HAVE_COMPLEX_H
24325 #include <complex.h>
24326 #endif
24327 #ifdef HAVE_MATH_H
24328 #include <math.h>
24329 #endif
24330
24331 int (*ptr)() = (int (*)())y0;
24332
24333 int
24334 main ()
24335 {
24336 return 0;
24337 }
24338
24339 _ACEOF
24340 if ac_fn_c_try_link "$LINENO"; then :
24341 gcc_cv_math_func_y0=yes
24342 else
24343 gcc_cv_math_func_y0=no
24344 fi
24345 rm -f core conftest.err conftest.$ac_objext \
24346 conftest$ac_exeext conftest.$ac_ext
24347 fi
24348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0" >&5
24349 $as_echo "$gcc_cv_math_func_y0" >&6; }
24350 if test $gcc_cv_math_func_y0 = yes; then
24351
24352 cat >>confdefs.h <<_ACEOF
24353 #define HAVE_Y0 1
24354 _ACEOF
24355
24356 fi
24357
24358
24359
24360
24361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1f" >&5
24362 $as_echo_n "checking for y1f... " >&6; }
24363 if ${gcc_cv_math_func_y1f+:} false; then :
24364 $as_echo_n "(cached) " >&6
24365 else
24366 if test x$gcc_no_link = xyes; then
24367 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24368 fi
24369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24370 /* end confdefs.h. */
24371
24372 #ifdef HAVE_COMPLEX_H
24373 #include <complex.h>
24374 #endif
24375 #ifdef HAVE_MATH_H
24376 #include <math.h>
24377 #endif
24378
24379 int (*ptr)() = (int (*)())y1f;
24380
24381 int
24382 main ()
24383 {
24384 return 0;
24385 }
24386
24387 _ACEOF
24388 if ac_fn_c_try_link "$LINENO"; then :
24389 gcc_cv_math_func_y1f=yes
24390 else
24391 gcc_cv_math_func_y1f=no
24392 fi
24393 rm -f core conftest.err conftest.$ac_objext \
24394 conftest$ac_exeext conftest.$ac_ext
24395 fi
24396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1f" >&5
24397 $as_echo "$gcc_cv_math_func_y1f" >&6; }
24398 if test $gcc_cv_math_func_y1f = yes; then
24399
24400 cat >>confdefs.h <<_ACEOF
24401 #define HAVE_Y1F 1
24402 _ACEOF
24403
24404 fi
24405
24406
24407
24408
24409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1" >&5
24410 $as_echo_n "checking for y1... " >&6; }
24411 if ${gcc_cv_math_func_y1+:} false; then :
24412 $as_echo_n "(cached) " >&6
24413 else
24414 if test x$gcc_no_link = xyes; then
24415 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24416 fi
24417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24418 /* end confdefs.h. */
24419
24420 #ifdef HAVE_COMPLEX_H
24421 #include <complex.h>
24422 #endif
24423 #ifdef HAVE_MATH_H
24424 #include <math.h>
24425 #endif
24426
24427 int (*ptr)() = (int (*)())y1;
24428
24429 int
24430 main ()
24431 {
24432 return 0;
24433 }
24434
24435 _ACEOF
24436 if ac_fn_c_try_link "$LINENO"; then :
24437 gcc_cv_math_func_y1=yes
24438 else
24439 gcc_cv_math_func_y1=no
24440 fi
24441 rm -f core conftest.err conftest.$ac_objext \
24442 conftest$ac_exeext conftest.$ac_ext
24443 fi
24444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1" >&5
24445 $as_echo "$gcc_cv_math_func_y1" >&6; }
24446 if test $gcc_cv_math_func_y1 = yes; then
24447
24448 cat >>confdefs.h <<_ACEOF
24449 #define HAVE_Y1 1
24450 _ACEOF
24451
24452 fi
24453
24454
24455
24456
24457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynf" >&5
24458 $as_echo_n "checking for ynf... " >&6; }
24459 if ${gcc_cv_math_func_ynf+:} false; then :
24460 $as_echo_n "(cached) " >&6
24461 else
24462 if test x$gcc_no_link = xyes; then
24463 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24464 fi
24465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24466 /* end confdefs.h. */
24467
24468 #ifdef HAVE_COMPLEX_H
24469 #include <complex.h>
24470 #endif
24471 #ifdef HAVE_MATH_H
24472 #include <math.h>
24473 #endif
24474
24475 int (*ptr)() = (int (*)())ynf;
24476
24477 int
24478 main ()
24479 {
24480 return 0;
24481 }
24482
24483 _ACEOF
24484 if ac_fn_c_try_link "$LINENO"; then :
24485 gcc_cv_math_func_ynf=yes
24486 else
24487 gcc_cv_math_func_ynf=no
24488 fi
24489 rm -f core conftest.err conftest.$ac_objext \
24490 conftest$ac_exeext conftest.$ac_ext
24491 fi
24492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynf" >&5
24493 $as_echo "$gcc_cv_math_func_ynf" >&6; }
24494 if test $gcc_cv_math_func_ynf = yes; then
24495
24496 cat >>confdefs.h <<_ACEOF
24497 #define HAVE_YNF 1
24498 _ACEOF
24499
24500 fi
24501
24502
24503
24504
24505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yn" >&5
24506 $as_echo_n "checking for yn... " >&6; }
24507 if ${gcc_cv_math_func_yn+:} false; then :
24508 $as_echo_n "(cached) " >&6
24509 else
24510 if test x$gcc_no_link = xyes; then
24511 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24512 fi
24513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24514 /* end confdefs.h. */
24515
24516 #ifdef HAVE_COMPLEX_H
24517 #include <complex.h>
24518 #endif
24519 #ifdef HAVE_MATH_H
24520 #include <math.h>
24521 #endif
24522
24523 int (*ptr)() = (int (*)())yn;
24524
24525 int
24526 main ()
24527 {
24528 return 0;
24529 }
24530
24531 _ACEOF
24532 if ac_fn_c_try_link "$LINENO"; then :
24533 gcc_cv_math_func_yn=yes
24534 else
24535 gcc_cv_math_func_yn=no
24536 fi
24537 rm -f core conftest.err conftest.$ac_objext \
24538 conftest$ac_exeext conftest.$ac_ext
24539 fi
24540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_yn" >&5
24541 $as_echo "$gcc_cv_math_func_yn" >&6; }
24542 if test $gcc_cv_math_func_yn = yes; then
24543
24544 cat >>confdefs.h <<_ACEOF
24545 #define HAVE_YN 1
24546 _ACEOF
24547
24548 fi
24549
24550
24551
24552
24553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynl" >&5
24554 $as_echo_n "checking for ynl... " >&6; }
24555 if ${gcc_cv_math_func_ynl+:} false; then :
24556 $as_echo_n "(cached) " >&6
24557 else
24558 if test x$gcc_no_link = xyes; then
24559 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24560 fi
24561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24562 /* end confdefs.h. */
24563
24564 #ifdef HAVE_COMPLEX_H
24565 #include <complex.h>
24566 #endif
24567 #ifdef HAVE_MATH_H
24568 #include <math.h>
24569 #endif
24570
24571 int (*ptr)() = (int (*)())ynl;
24572
24573 int
24574 main ()
24575 {
24576 return 0;
24577 }
24578
24579 _ACEOF
24580 if ac_fn_c_try_link "$LINENO"; then :
24581 gcc_cv_math_func_ynl=yes
24582 else
24583 gcc_cv_math_func_ynl=no
24584 fi
24585 rm -f core conftest.err conftest.$ac_objext \
24586 conftest$ac_exeext conftest.$ac_ext
24587 fi
24588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynl" >&5
24589 $as_echo "$gcc_cv_math_func_ynl" >&6; }
24590 if test $gcc_cv_math_func_ynl = yes; then
24591
24592 cat >>confdefs.h <<_ACEOF
24593 #define HAVE_YNL 1
24594 _ACEOF
24595
24596 fi
24597
24598
24599
24600
24601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgamma" >&5
24602 $as_echo_n "checking for tgamma... " >&6; }
24603 if ${gcc_cv_math_func_tgamma+:} false; then :
24604 $as_echo_n "(cached) " >&6
24605 else
24606 if test x$gcc_no_link = xyes; then
24607 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24608 fi
24609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24610 /* end confdefs.h. */
24611
24612 #ifdef HAVE_COMPLEX_H
24613 #include <complex.h>
24614 #endif
24615 #ifdef HAVE_MATH_H
24616 #include <math.h>
24617 #endif
24618
24619 int (*ptr)() = (int (*)())tgamma;
24620
24621 int
24622 main ()
24623 {
24624 return 0;
24625 }
24626
24627 _ACEOF
24628 if ac_fn_c_try_link "$LINENO"; then :
24629 gcc_cv_math_func_tgamma=yes
24630 else
24631 gcc_cv_math_func_tgamma=no
24632 fi
24633 rm -f core conftest.err conftest.$ac_objext \
24634 conftest$ac_exeext conftest.$ac_ext
24635 fi
24636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgamma" >&5
24637 $as_echo "$gcc_cv_math_func_tgamma" >&6; }
24638 if test $gcc_cv_math_func_tgamma = yes; then
24639
24640 cat >>confdefs.h <<_ACEOF
24641 #define HAVE_TGAMMA 1
24642 _ACEOF
24643
24644 fi
24645
24646
24647
24648
24649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammaf" >&5
24650 $as_echo_n "checking for tgammaf... " >&6; }
24651 if ${gcc_cv_math_func_tgammaf+:} false; then :
24652 $as_echo_n "(cached) " >&6
24653 else
24654 if test x$gcc_no_link = xyes; then
24655 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24656 fi
24657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24658 /* end confdefs.h. */
24659
24660 #ifdef HAVE_COMPLEX_H
24661 #include <complex.h>
24662 #endif
24663 #ifdef HAVE_MATH_H
24664 #include <math.h>
24665 #endif
24666
24667 int (*ptr)() = (int (*)())tgammaf;
24668
24669 int
24670 main ()
24671 {
24672 return 0;
24673 }
24674
24675 _ACEOF
24676 if ac_fn_c_try_link "$LINENO"; then :
24677 gcc_cv_math_func_tgammaf=yes
24678 else
24679 gcc_cv_math_func_tgammaf=no
24680 fi
24681 rm -f core conftest.err conftest.$ac_objext \
24682 conftest$ac_exeext conftest.$ac_ext
24683 fi
24684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammaf" >&5
24685 $as_echo "$gcc_cv_math_func_tgammaf" >&6; }
24686 if test $gcc_cv_math_func_tgammaf = yes; then
24687
24688 cat >>confdefs.h <<_ACEOF
24689 #define HAVE_TGAMMAF 1
24690 _ACEOF
24691
24692 fi
24693
24694
24695
24696
24697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgamma" >&5
24698 $as_echo_n "checking for lgamma... " >&6; }
24699 if ${gcc_cv_math_func_lgamma+:} false; then :
24700 $as_echo_n "(cached) " >&6
24701 else
24702 if test x$gcc_no_link = xyes; then
24703 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24704 fi
24705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24706 /* end confdefs.h. */
24707
24708 #ifdef HAVE_COMPLEX_H
24709 #include <complex.h>
24710 #endif
24711 #ifdef HAVE_MATH_H
24712 #include <math.h>
24713 #endif
24714
24715 int (*ptr)() = (int (*)())lgamma;
24716
24717 int
24718 main ()
24719 {
24720 return 0;
24721 }
24722
24723 _ACEOF
24724 if ac_fn_c_try_link "$LINENO"; then :
24725 gcc_cv_math_func_lgamma=yes
24726 else
24727 gcc_cv_math_func_lgamma=no
24728 fi
24729 rm -f core conftest.err conftest.$ac_objext \
24730 conftest$ac_exeext conftest.$ac_ext
24731 fi
24732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgamma" >&5
24733 $as_echo "$gcc_cv_math_func_lgamma" >&6; }
24734 if test $gcc_cv_math_func_lgamma = yes; then
24735
24736 cat >>confdefs.h <<_ACEOF
24737 #define HAVE_LGAMMA 1
24738 _ACEOF
24739
24740 fi
24741
24742
24743
24744
24745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammaf" >&5
24746 $as_echo_n "checking for lgammaf... " >&6; }
24747 if ${gcc_cv_math_func_lgammaf+:} false; then :
24748 $as_echo_n "(cached) " >&6
24749 else
24750 if test x$gcc_no_link = xyes; then
24751 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24752 fi
24753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24754 /* end confdefs.h. */
24755
24756 #ifdef HAVE_COMPLEX_H
24757 #include <complex.h>
24758 #endif
24759 #ifdef HAVE_MATH_H
24760 #include <math.h>
24761 #endif
24762
24763 int (*ptr)() = (int (*)())lgammaf;
24764
24765 int
24766 main ()
24767 {
24768 return 0;
24769 }
24770
24771 _ACEOF
24772 if ac_fn_c_try_link "$LINENO"; then :
24773 gcc_cv_math_func_lgammaf=yes
24774 else
24775 gcc_cv_math_func_lgammaf=no
24776 fi
24777 rm -f core conftest.err conftest.$ac_objext \
24778 conftest$ac_exeext conftest.$ac_ext
24779 fi
24780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammaf" >&5
24781 $as_echo "$gcc_cv_math_func_lgammaf" >&6; }
24782 if test $gcc_cv_math_func_lgammaf = yes; then
24783
24784 cat >>confdefs.h <<_ACEOF
24785 #define HAVE_LGAMMAF 1
24786 _ACEOF
24787
24788 fi
24789
24790
24791 # Check for GFORTRAN_C99_1.1 funcs
24792
24793
24794
24795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacos" >&5
24796 $as_echo_n "checking for cacos... " >&6; }
24797 if ${gcc_cv_math_func_cacos+:} false; then :
24798 $as_echo_n "(cached) " >&6
24799 else
24800 if test x$gcc_no_link = xyes; then
24801 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24802 fi
24803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24804 /* end confdefs.h. */
24805
24806 #ifdef HAVE_COMPLEX_H
24807 #include <complex.h>
24808 #endif
24809 #ifdef HAVE_MATH_H
24810 #include <math.h>
24811 #endif
24812
24813 int (*ptr)() = (int (*)())cacos;
24814
24815 int
24816 main ()
24817 {
24818 return 0;
24819 }
24820
24821 _ACEOF
24822 if ac_fn_c_try_link "$LINENO"; then :
24823 gcc_cv_math_func_cacos=yes
24824 else
24825 gcc_cv_math_func_cacos=no
24826 fi
24827 rm -f core conftest.err conftest.$ac_objext \
24828 conftest$ac_exeext conftest.$ac_ext
24829 fi
24830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacos" >&5
24831 $as_echo "$gcc_cv_math_func_cacos" >&6; }
24832 if test $gcc_cv_math_func_cacos = yes; then
24833
24834 cat >>confdefs.h <<_ACEOF
24835 #define HAVE_CACOS 1
24836 _ACEOF
24837
24838 fi
24839
24840
24841
24842
24843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosf" >&5
24844 $as_echo_n "checking for cacosf... " >&6; }
24845 if ${gcc_cv_math_func_cacosf+:} false; then :
24846 $as_echo_n "(cached) " >&6
24847 else
24848 if test x$gcc_no_link = xyes; then
24849 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24850 fi
24851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24852 /* end confdefs.h. */
24853
24854 #ifdef HAVE_COMPLEX_H
24855 #include <complex.h>
24856 #endif
24857 #ifdef HAVE_MATH_H
24858 #include <math.h>
24859 #endif
24860
24861 int (*ptr)() = (int (*)())cacosf;
24862
24863 int
24864 main ()
24865 {
24866 return 0;
24867 }
24868
24869 _ACEOF
24870 if ac_fn_c_try_link "$LINENO"; then :
24871 gcc_cv_math_func_cacosf=yes
24872 else
24873 gcc_cv_math_func_cacosf=no
24874 fi
24875 rm -f core conftest.err conftest.$ac_objext \
24876 conftest$ac_exeext conftest.$ac_ext
24877 fi
24878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosf" >&5
24879 $as_echo "$gcc_cv_math_func_cacosf" >&6; }
24880 if test $gcc_cv_math_func_cacosf = yes; then
24881
24882 cat >>confdefs.h <<_ACEOF
24883 #define HAVE_CACOSF 1
24884 _ACEOF
24885
24886 fi
24887
24888
24889
24890
24891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosh" >&5
24892 $as_echo_n "checking for cacosh... " >&6; }
24893 if ${gcc_cv_math_func_cacosh+:} false; then :
24894 $as_echo_n "(cached) " >&6
24895 else
24896 if test x$gcc_no_link = xyes; then
24897 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24898 fi
24899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24900 /* end confdefs.h. */
24901
24902 #ifdef HAVE_COMPLEX_H
24903 #include <complex.h>
24904 #endif
24905 #ifdef HAVE_MATH_H
24906 #include <math.h>
24907 #endif
24908
24909 int (*ptr)() = (int (*)())cacosh;
24910
24911 int
24912 main ()
24913 {
24914 return 0;
24915 }
24916
24917 _ACEOF
24918 if ac_fn_c_try_link "$LINENO"; then :
24919 gcc_cv_math_func_cacosh=yes
24920 else
24921 gcc_cv_math_func_cacosh=no
24922 fi
24923 rm -f core conftest.err conftest.$ac_objext \
24924 conftest$ac_exeext conftest.$ac_ext
24925 fi
24926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosh" >&5
24927 $as_echo "$gcc_cv_math_func_cacosh" >&6; }
24928 if test $gcc_cv_math_func_cacosh = yes; then
24929
24930 cat >>confdefs.h <<_ACEOF
24931 #define HAVE_CACOSH 1
24932 _ACEOF
24933
24934 fi
24935
24936
24937
24938
24939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshf" >&5
24940 $as_echo_n "checking for cacoshf... " >&6; }
24941 if ${gcc_cv_math_func_cacoshf+:} false; then :
24942 $as_echo_n "(cached) " >&6
24943 else
24944 if test x$gcc_no_link = xyes; then
24945 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24946 fi
24947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24948 /* end confdefs.h. */
24949
24950 #ifdef HAVE_COMPLEX_H
24951 #include <complex.h>
24952 #endif
24953 #ifdef HAVE_MATH_H
24954 #include <math.h>
24955 #endif
24956
24957 int (*ptr)() = (int (*)())cacoshf;
24958
24959 int
24960 main ()
24961 {
24962 return 0;
24963 }
24964
24965 _ACEOF
24966 if ac_fn_c_try_link "$LINENO"; then :
24967 gcc_cv_math_func_cacoshf=yes
24968 else
24969 gcc_cv_math_func_cacoshf=no
24970 fi
24971 rm -f core conftest.err conftest.$ac_objext \
24972 conftest$ac_exeext conftest.$ac_ext
24973 fi
24974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshf" >&5
24975 $as_echo "$gcc_cv_math_func_cacoshf" >&6; }
24976 if test $gcc_cv_math_func_cacoshf = yes; then
24977
24978 cat >>confdefs.h <<_ACEOF
24979 #define HAVE_CACOSHF 1
24980 _ACEOF
24981
24982 fi
24983
24984
24985
24986
24987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshl" >&5
24988 $as_echo_n "checking for cacoshl... " >&6; }
24989 if ${gcc_cv_math_func_cacoshl+:} false; then :
24990 $as_echo_n "(cached) " >&6
24991 else
24992 if test x$gcc_no_link = xyes; then
24993 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24994 fi
24995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24996 /* end confdefs.h. */
24997
24998 #ifdef HAVE_COMPLEX_H
24999 #include <complex.h>
25000 #endif
25001 #ifdef HAVE_MATH_H
25002 #include <math.h>
25003 #endif
25004
25005 int (*ptr)() = (int (*)())cacoshl;
25006
25007 int
25008 main ()
25009 {
25010 return 0;
25011 }
25012
25013 _ACEOF
25014 if ac_fn_c_try_link "$LINENO"; then :
25015 gcc_cv_math_func_cacoshl=yes
25016 else
25017 gcc_cv_math_func_cacoshl=no
25018 fi
25019 rm -f core conftest.err conftest.$ac_objext \
25020 conftest$ac_exeext conftest.$ac_ext
25021 fi
25022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshl" >&5
25023 $as_echo "$gcc_cv_math_func_cacoshl" >&6; }
25024 if test $gcc_cv_math_func_cacoshl = yes; then
25025
25026 cat >>confdefs.h <<_ACEOF
25027 #define HAVE_CACOSHL 1
25028 _ACEOF
25029
25030 fi
25031
25032
25033
25034
25035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosl" >&5
25036 $as_echo_n "checking for cacosl... " >&6; }
25037 if ${gcc_cv_math_func_cacosl+:} false; then :
25038 $as_echo_n "(cached) " >&6
25039 else
25040 if test x$gcc_no_link = xyes; then
25041 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25042 fi
25043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25044 /* end confdefs.h. */
25045
25046 #ifdef HAVE_COMPLEX_H
25047 #include <complex.h>
25048 #endif
25049 #ifdef HAVE_MATH_H
25050 #include <math.h>
25051 #endif
25052
25053 int (*ptr)() = (int (*)())cacosl;
25054
25055 int
25056 main ()
25057 {
25058 return 0;
25059 }
25060
25061 _ACEOF
25062 if ac_fn_c_try_link "$LINENO"; then :
25063 gcc_cv_math_func_cacosl=yes
25064 else
25065 gcc_cv_math_func_cacosl=no
25066 fi
25067 rm -f core conftest.err conftest.$ac_objext \
25068 conftest$ac_exeext conftest.$ac_ext
25069 fi
25070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosl" >&5
25071 $as_echo "$gcc_cv_math_func_cacosl" >&6; }
25072 if test $gcc_cv_math_func_cacosl = yes; then
25073
25074 cat >>confdefs.h <<_ACEOF
25075 #define HAVE_CACOSL 1
25076 _ACEOF
25077
25078 fi
25079
25080
25081
25082
25083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casin" >&5
25084 $as_echo_n "checking for casin... " >&6; }
25085 if ${gcc_cv_math_func_casin+:} false; then :
25086 $as_echo_n "(cached) " >&6
25087 else
25088 if test x$gcc_no_link = xyes; then
25089 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25090 fi
25091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25092 /* end confdefs.h. */
25093
25094 #ifdef HAVE_COMPLEX_H
25095 #include <complex.h>
25096 #endif
25097 #ifdef HAVE_MATH_H
25098 #include <math.h>
25099 #endif
25100
25101 int (*ptr)() = (int (*)())casin;
25102
25103 int
25104 main ()
25105 {
25106 return 0;
25107 }
25108
25109 _ACEOF
25110 if ac_fn_c_try_link "$LINENO"; then :
25111 gcc_cv_math_func_casin=yes
25112 else
25113 gcc_cv_math_func_casin=no
25114 fi
25115 rm -f core conftest.err conftest.$ac_objext \
25116 conftest$ac_exeext conftest.$ac_ext
25117 fi
25118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casin" >&5
25119 $as_echo "$gcc_cv_math_func_casin" >&6; }
25120 if test $gcc_cv_math_func_casin = yes; then
25121
25122 cat >>confdefs.h <<_ACEOF
25123 #define HAVE_CASIN 1
25124 _ACEOF
25125
25126 fi
25127
25128
25129
25130
25131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinf" >&5
25132 $as_echo_n "checking for casinf... " >&6; }
25133 if ${gcc_cv_math_func_casinf+:} false; then :
25134 $as_echo_n "(cached) " >&6
25135 else
25136 if test x$gcc_no_link = xyes; then
25137 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25138 fi
25139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25140 /* end confdefs.h. */
25141
25142 #ifdef HAVE_COMPLEX_H
25143 #include <complex.h>
25144 #endif
25145 #ifdef HAVE_MATH_H
25146 #include <math.h>
25147 #endif
25148
25149 int (*ptr)() = (int (*)())casinf;
25150
25151 int
25152 main ()
25153 {
25154 return 0;
25155 }
25156
25157 _ACEOF
25158 if ac_fn_c_try_link "$LINENO"; then :
25159 gcc_cv_math_func_casinf=yes
25160 else
25161 gcc_cv_math_func_casinf=no
25162 fi
25163 rm -f core conftest.err conftest.$ac_objext \
25164 conftest$ac_exeext conftest.$ac_ext
25165 fi
25166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinf" >&5
25167 $as_echo "$gcc_cv_math_func_casinf" >&6; }
25168 if test $gcc_cv_math_func_casinf = yes; then
25169
25170 cat >>confdefs.h <<_ACEOF
25171 #define HAVE_CASINF 1
25172 _ACEOF
25173
25174 fi
25175
25176
25177
25178
25179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinh" >&5
25180 $as_echo_n "checking for casinh... " >&6; }
25181 if ${gcc_cv_math_func_casinh+:} false; then :
25182 $as_echo_n "(cached) " >&6
25183 else
25184 if test x$gcc_no_link = xyes; then
25185 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25186 fi
25187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25188 /* end confdefs.h. */
25189
25190 #ifdef HAVE_COMPLEX_H
25191 #include <complex.h>
25192 #endif
25193 #ifdef HAVE_MATH_H
25194 #include <math.h>
25195 #endif
25196
25197 int (*ptr)() = (int (*)())casinh;
25198
25199 int
25200 main ()
25201 {
25202 return 0;
25203 }
25204
25205 _ACEOF
25206 if ac_fn_c_try_link "$LINENO"; then :
25207 gcc_cv_math_func_casinh=yes
25208 else
25209 gcc_cv_math_func_casinh=no
25210 fi
25211 rm -f core conftest.err conftest.$ac_objext \
25212 conftest$ac_exeext conftest.$ac_ext
25213 fi
25214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinh" >&5
25215 $as_echo "$gcc_cv_math_func_casinh" >&6; }
25216 if test $gcc_cv_math_func_casinh = yes; then
25217
25218 cat >>confdefs.h <<_ACEOF
25219 #define HAVE_CASINH 1
25220 _ACEOF
25221
25222 fi
25223
25224
25225
25226
25227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhf" >&5
25228 $as_echo_n "checking for casinhf... " >&6; }
25229 if ${gcc_cv_math_func_casinhf+:} false; then :
25230 $as_echo_n "(cached) " >&6
25231 else
25232 if test x$gcc_no_link = xyes; then
25233 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25234 fi
25235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25236 /* end confdefs.h. */
25237
25238 #ifdef HAVE_COMPLEX_H
25239 #include <complex.h>
25240 #endif
25241 #ifdef HAVE_MATH_H
25242 #include <math.h>
25243 #endif
25244
25245 int (*ptr)() = (int (*)())casinhf;
25246
25247 int
25248 main ()
25249 {
25250 return 0;
25251 }
25252
25253 _ACEOF
25254 if ac_fn_c_try_link "$LINENO"; then :
25255 gcc_cv_math_func_casinhf=yes
25256 else
25257 gcc_cv_math_func_casinhf=no
25258 fi
25259 rm -f core conftest.err conftest.$ac_objext \
25260 conftest$ac_exeext conftest.$ac_ext
25261 fi
25262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhf" >&5
25263 $as_echo "$gcc_cv_math_func_casinhf" >&6; }
25264 if test $gcc_cv_math_func_casinhf = yes; then
25265
25266 cat >>confdefs.h <<_ACEOF
25267 #define HAVE_CASINHF 1
25268 _ACEOF
25269
25270 fi
25271
25272
25273
25274
25275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhl" >&5
25276 $as_echo_n "checking for casinhl... " >&6; }
25277 if ${gcc_cv_math_func_casinhl+:} false; then :
25278 $as_echo_n "(cached) " >&6
25279 else
25280 if test x$gcc_no_link = xyes; then
25281 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25282 fi
25283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25284 /* end confdefs.h. */
25285
25286 #ifdef HAVE_COMPLEX_H
25287 #include <complex.h>
25288 #endif
25289 #ifdef HAVE_MATH_H
25290 #include <math.h>
25291 #endif
25292
25293 int (*ptr)() = (int (*)())casinhl;
25294
25295 int
25296 main ()
25297 {
25298 return 0;
25299 }
25300
25301 _ACEOF
25302 if ac_fn_c_try_link "$LINENO"; then :
25303 gcc_cv_math_func_casinhl=yes
25304 else
25305 gcc_cv_math_func_casinhl=no
25306 fi
25307 rm -f core conftest.err conftest.$ac_objext \
25308 conftest$ac_exeext conftest.$ac_ext
25309 fi
25310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhl" >&5
25311 $as_echo "$gcc_cv_math_func_casinhl" >&6; }
25312 if test $gcc_cv_math_func_casinhl = yes; then
25313
25314 cat >>confdefs.h <<_ACEOF
25315 #define HAVE_CASINHL 1
25316 _ACEOF
25317
25318 fi
25319
25320
25321
25322
25323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinl" >&5
25324 $as_echo_n "checking for casinl... " >&6; }
25325 if ${gcc_cv_math_func_casinl+:} false; then :
25326 $as_echo_n "(cached) " >&6
25327 else
25328 if test x$gcc_no_link = xyes; then
25329 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25330 fi
25331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25332 /* end confdefs.h. */
25333
25334 #ifdef HAVE_COMPLEX_H
25335 #include <complex.h>
25336 #endif
25337 #ifdef HAVE_MATH_H
25338 #include <math.h>
25339 #endif
25340
25341 int (*ptr)() = (int (*)())casinl;
25342
25343 int
25344 main ()
25345 {
25346 return 0;
25347 }
25348
25349 _ACEOF
25350 if ac_fn_c_try_link "$LINENO"; then :
25351 gcc_cv_math_func_casinl=yes
25352 else
25353 gcc_cv_math_func_casinl=no
25354 fi
25355 rm -f core conftest.err conftest.$ac_objext \
25356 conftest$ac_exeext conftest.$ac_ext
25357 fi
25358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinl" >&5
25359 $as_echo "$gcc_cv_math_func_casinl" >&6; }
25360 if test $gcc_cv_math_func_casinl = yes; then
25361
25362 cat >>confdefs.h <<_ACEOF
25363 #define HAVE_CASINL 1
25364 _ACEOF
25365
25366 fi
25367
25368
25369
25370
25371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catan" >&5
25372 $as_echo_n "checking for catan... " >&6; }
25373 if ${gcc_cv_math_func_catan+:} false; then :
25374 $as_echo_n "(cached) " >&6
25375 else
25376 if test x$gcc_no_link = xyes; then
25377 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25378 fi
25379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25380 /* end confdefs.h. */
25381
25382 #ifdef HAVE_COMPLEX_H
25383 #include <complex.h>
25384 #endif
25385 #ifdef HAVE_MATH_H
25386 #include <math.h>
25387 #endif
25388
25389 int (*ptr)() = (int (*)())catan;
25390
25391 int
25392 main ()
25393 {
25394 return 0;
25395 }
25396
25397 _ACEOF
25398 if ac_fn_c_try_link "$LINENO"; then :
25399 gcc_cv_math_func_catan=yes
25400 else
25401 gcc_cv_math_func_catan=no
25402 fi
25403 rm -f core conftest.err conftest.$ac_objext \
25404 conftest$ac_exeext conftest.$ac_ext
25405 fi
25406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catan" >&5
25407 $as_echo "$gcc_cv_math_func_catan" >&6; }
25408 if test $gcc_cv_math_func_catan = yes; then
25409
25410 cat >>confdefs.h <<_ACEOF
25411 #define HAVE_CATAN 1
25412 _ACEOF
25413
25414 fi
25415
25416
25417
25418
25419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanf" >&5
25420 $as_echo_n "checking for catanf... " >&6; }
25421 if ${gcc_cv_math_func_catanf+:} false; then :
25422 $as_echo_n "(cached) " >&6
25423 else
25424 if test x$gcc_no_link = xyes; then
25425 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25426 fi
25427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25428 /* end confdefs.h. */
25429
25430 #ifdef HAVE_COMPLEX_H
25431 #include <complex.h>
25432 #endif
25433 #ifdef HAVE_MATH_H
25434 #include <math.h>
25435 #endif
25436
25437 int (*ptr)() = (int (*)())catanf;
25438
25439 int
25440 main ()
25441 {
25442 return 0;
25443 }
25444
25445 _ACEOF
25446 if ac_fn_c_try_link "$LINENO"; then :
25447 gcc_cv_math_func_catanf=yes
25448 else
25449 gcc_cv_math_func_catanf=no
25450 fi
25451 rm -f core conftest.err conftest.$ac_objext \
25452 conftest$ac_exeext conftest.$ac_ext
25453 fi
25454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanf" >&5
25455 $as_echo "$gcc_cv_math_func_catanf" >&6; }
25456 if test $gcc_cv_math_func_catanf = yes; then
25457
25458 cat >>confdefs.h <<_ACEOF
25459 #define HAVE_CATANF 1
25460 _ACEOF
25461
25462 fi
25463
25464
25465
25466
25467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanh" >&5
25468 $as_echo_n "checking for catanh... " >&6; }
25469 if ${gcc_cv_math_func_catanh+:} false; then :
25470 $as_echo_n "(cached) " >&6
25471 else
25472 if test x$gcc_no_link = xyes; then
25473 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25474 fi
25475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25476 /* end confdefs.h. */
25477
25478 #ifdef HAVE_COMPLEX_H
25479 #include <complex.h>
25480 #endif
25481 #ifdef HAVE_MATH_H
25482 #include <math.h>
25483 #endif
25484
25485 int (*ptr)() = (int (*)())catanh;
25486
25487 int
25488 main ()
25489 {
25490 return 0;
25491 }
25492
25493 _ACEOF
25494 if ac_fn_c_try_link "$LINENO"; then :
25495 gcc_cv_math_func_catanh=yes
25496 else
25497 gcc_cv_math_func_catanh=no
25498 fi
25499 rm -f core conftest.err conftest.$ac_objext \
25500 conftest$ac_exeext conftest.$ac_ext
25501 fi
25502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanh" >&5
25503 $as_echo "$gcc_cv_math_func_catanh" >&6; }
25504 if test $gcc_cv_math_func_catanh = yes; then
25505
25506 cat >>confdefs.h <<_ACEOF
25507 #define HAVE_CATANH 1
25508 _ACEOF
25509
25510 fi
25511
25512
25513
25514
25515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhf" >&5
25516 $as_echo_n "checking for catanhf... " >&6; }
25517 if ${gcc_cv_math_func_catanhf+:} false; then :
25518 $as_echo_n "(cached) " >&6
25519 else
25520 if test x$gcc_no_link = xyes; then
25521 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25522 fi
25523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25524 /* end confdefs.h. */
25525
25526 #ifdef HAVE_COMPLEX_H
25527 #include <complex.h>
25528 #endif
25529 #ifdef HAVE_MATH_H
25530 #include <math.h>
25531 #endif
25532
25533 int (*ptr)() = (int (*)())catanhf;
25534
25535 int
25536 main ()
25537 {
25538 return 0;
25539 }
25540
25541 _ACEOF
25542 if ac_fn_c_try_link "$LINENO"; then :
25543 gcc_cv_math_func_catanhf=yes
25544 else
25545 gcc_cv_math_func_catanhf=no
25546 fi
25547 rm -f core conftest.err conftest.$ac_objext \
25548 conftest$ac_exeext conftest.$ac_ext
25549 fi
25550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhf" >&5
25551 $as_echo "$gcc_cv_math_func_catanhf" >&6; }
25552 if test $gcc_cv_math_func_catanhf = yes; then
25553
25554 cat >>confdefs.h <<_ACEOF
25555 #define HAVE_CATANHF 1
25556 _ACEOF
25557
25558 fi
25559
25560
25561
25562
25563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhl" >&5
25564 $as_echo_n "checking for catanhl... " >&6; }
25565 if ${gcc_cv_math_func_catanhl+:} false; then :
25566 $as_echo_n "(cached) " >&6
25567 else
25568 if test x$gcc_no_link = xyes; then
25569 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25570 fi
25571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25572 /* end confdefs.h. */
25573
25574 #ifdef HAVE_COMPLEX_H
25575 #include <complex.h>
25576 #endif
25577 #ifdef HAVE_MATH_H
25578 #include <math.h>
25579 #endif
25580
25581 int (*ptr)() = (int (*)())catanhl;
25582
25583 int
25584 main ()
25585 {
25586 return 0;
25587 }
25588
25589 _ACEOF
25590 if ac_fn_c_try_link "$LINENO"; then :
25591 gcc_cv_math_func_catanhl=yes
25592 else
25593 gcc_cv_math_func_catanhl=no
25594 fi
25595 rm -f core conftest.err conftest.$ac_objext \
25596 conftest$ac_exeext conftest.$ac_ext
25597 fi
25598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhl" >&5
25599 $as_echo "$gcc_cv_math_func_catanhl" >&6; }
25600 if test $gcc_cv_math_func_catanhl = yes; then
25601
25602 cat >>confdefs.h <<_ACEOF
25603 #define HAVE_CATANHL 1
25604 _ACEOF
25605
25606 fi
25607
25608
25609
25610
25611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanl" >&5
25612 $as_echo_n "checking for catanl... " >&6; }
25613 if ${gcc_cv_math_func_catanl+:} false; then :
25614 $as_echo_n "(cached) " >&6
25615 else
25616 if test x$gcc_no_link = xyes; then
25617 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25618 fi
25619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25620 /* end confdefs.h. */
25621
25622 #ifdef HAVE_COMPLEX_H
25623 #include <complex.h>
25624 #endif
25625 #ifdef HAVE_MATH_H
25626 #include <math.h>
25627 #endif
25628
25629 int (*ptr)() = (int (*)())catanl;
25630
25631 int
25632 main ()
25633 {
25634 return 0;
25635 }
25636
25637 _ACEOF
25638 if ac_fn_c_try_link "$LINENO"; then :
25639 gcc_cv_math_func_catanl=yes
25640 else
25641 gcc_cv_math_func_catanl=no
25642 fi
25643 rm -f core conftest.err conftest.$ac_objext \
25644 conftest$ac_exeext conftest.$ac_ext
25645 fi
25646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanl" >&5
25647 $as_echo "$gcc_cv_math_func_catanl" >&6; }
25648 if test $gcc_cv_math_func_catanl = yes; then
25649
25650 cat >>confdefs.h <<_ACEOF
25651 #define HAVE_CATANL 1
25652 _ACEOF
25653
25654 fi
25655
25656
25657 # On AIX, clog is present in libm as __clog
25658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __clog in -lm" >&5
25659 $as_echo_n "checking for __clog in -lm... " >&6; }
25660 if ${ac_cv_lib_m___clog+:} false; then :
25661 $as_echo_n "(cached) " >&6
25662 else
25663 ac_check_lib_save_LIBS=$LIBS
25664 LIBS="-lm $LIBS"
25665 if test x$gcc_no_link = xyes; then
25666 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25667 fi
25668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25669 /* end confdefs.h. */
25670
25671 /* Override any GCC internal prototype to avoid an error.
25672 Use char because int might match the return type of a GCC
25673 builtin and then its argument prototype would still apply. */
25674 #ifdef __cplusplus
25675 extern "C"
25676 #endif
25677 char __clog ();
25678 int
25679 main ()
25680 {
25681 return __clog ();
25682 ;
25683 return 0;
25684 }
25685 _ACEOF
25686 if ac_fn_c_try_link "$LINENO"; then :
25687 ac_cv_lib_m___clog=yes
25688 else
25689 ac_cv_lib_m___clog=no
25690 fi
25691 rm -f core conftest.err conftest.$ac_objext \
25692 conftest$ac_exeext conftest.$ac_ext
25693 LIBS=$ac_check_lib_save_LIBS
25694 fi
25695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m___clog" >&5
25696 $as_echo "$ac_cv_lib_m___clog" >&6; }
25697 if test "x$ac_cv_lib_m___clog" = xyes; then :
25698
25699 $as_echo "#define HAVE_CLOG 1" >>confdefs.h
25700
25701 fi
25702
25703
25704
25705
25706 if test $gcc_cv_math_func_copysign = no; then
25707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_copysign" >&5
25708 $as_echo_n "checking for inline __builtin_copysign... " >&6; }
25709 if ${gcc_cv_math_inline_builtin_copysign+:} false; then :
25710 $as_echo_n "(cached) " >&6
25711 else
25712 if test x$gcc_no_link = xyes; then
25713 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25714 fi
25715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25716 /* end confdefs.h. */
25717
25718 double
25719 copysign_fallback (double x, double y)
25720 {
25721 return __builtin_copysign (x, y);
25722 }
25723
25724 int
25725 main ()
25726 {
25727 return 0;
25728 }
25729
25730 _ACEOF
25731 if ac_fn_c_try_link "$LINENO"; then :
25732 gcc_cv_math_inline_builtin_copysign=yes
25733 else
25734 gcc_cv_math_inline_builtin_copysign=no
25735 fi
25736 rm -f core conftest.err conftest.$ac_objext \
25737 conftest$ac_exeext conftest.$ac_ext
25738 fi
25739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_copysign" >&5
25740 $as_echo "$gcc_cv_math_inline_builtin_copysign" >&6; }
25741 if test $gcc_cv_math_inline_builtin_copysign = yes; then
25742
25743 cat >>confdefs.h <<_ACEOF
25744 #define HAVE_INLINE_BUILTIN_COPYSIGN 1
25745 _ACEOF
25746
25747 fi
25748 fi
25749
25750
25751 if test $gcc_cv_math_func_copysignl = no; then
25752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_copysignl" >&5
25753 $as_echo_n "checking for inline __builtin_copysignl... " >&6; }
25754 if ${gcc_cv_math_inline_builtin_copysignl+:} false; then :
25755 $as_echo_n "(cached) " >&6
25756 else
25757 if test x$gcc_no_link = xyes; then
25758 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25759 fi
25760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25761 /* end confdefs.h. */
25762
25763 long double
25764 copysignl_fallback (long double x, long double y)
25765 {
25766 return __builtin_copysignl (x, y);
25767 }
25768
25769 int
25770 main ()
25771 {
25772 return 0;
25773 }
25774
25775 _ACEOF
25776 if ac_fn_c_try_link "$LINENO"; then :
25777 gcc_cv_math_inline_builtin_copysignl=yes
25778 else
25779 gcc_cv_math_inline_builtin_copysignl=no
25780 fi
25781 rm -f core conftest.err conftest.$ac_objext \
25782 conftest$ac_exeext conftest.$ac_ext
25783 fi
25784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_copysignl" >&5
25785 $as_echo "$gcc_cv_math_inline_builtin_copysignl" >&6; }
25786 if test $gcc_cv_math_inline_builtin_copysignl = yes; then
25787
25788 cat >>confdefs.h <<_ACEOF
25789 #define HAVE_INLINE_BUILTIN_COPYSIGNL 1
25790 _ACEOF
25791
25792 fi
25793 fi
25794
25795
25796 if test $gcc_cv_math_func_fabs = no; then
25797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_fabs" >&5
25798 $as_echo_n "checking for inline __builtin_fabs... " >&6; }
25799 if ${gcc_cv_math_inline_builtin_fabs+:} false; then :
25800 $as_echo_n "(cached) " >&6
25801 else
25802 if test x$gcc_no_link = xyes; then
25803 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25804 fi
25805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25806 /* end confdefs.h. */
25807
25808 double
25809 fabs_fallback (double x)
25810 {
25811 return __builtin_fabs (x);
25812 }
25813
25814 int
25815 main ()
25816 {
25817 return 0;
25818 }
25819
25820 _ACEOF
25821 if ac_fn_c_try_link "$LINENO"; then :
25822 gcc_cv_math_inline_builtin_fabs=yes
25823 else
25824 gcc_cv_math_inline_builtin_fabs=no
25825 fi
25826 rm -f core conftest.err conftest.$ac_objext \
25827 conftest$ac_exeext conftest.$ac_ext
25828 fi
25829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_fabs" >&5
25830 $as_echo "$gcc_cv_math_inline_builtin_fabs" >&6; }
25831 if test $gcc_cv_math_inline_builtin_fabs = yes; then
25832
25833 cat >>confdefs.h <<_ACEOF
25834 #define HAVE_INLINE_BUILTIN_FABS 1
25835 _ACEOF
25836
25837 fi
25838 fi
25839
25840
25841 if test $gcc_cv_math_func_fabsl = no; then
25842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_fabsl" >&5
25843 $as_echo_n "checking for inline __builtin_fabsl... " >&6; }
25844 if ${gcc_cv_math_inline_builtin_fabsl+:} false; then :
25845 $as_echo_n "(cached) " >&6
25846 else
25847 if test x$gcc_no_link = xyes; then
25848 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25849 fi
25850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25851 /* end confdefs.h. */
25852
25853 long double
25854 fabsl_fallback (long double x)
25855 {
25856 return __builtin_fabsl (x);
25857 }
25858
25859 int
25860 main ()
25861 {
25862 return 0;
25863 }
25864
25865 _ACEOF
25866 if ac_fn_c_try_link "$LINENO"; then :
25867 gcc_cv_math_inline_builtin_fabsl=yes
25868 else
25869 gcc_cv_math_inline_builtin_fabsl=no
25870 fi
25871 rm -f core conftest.err conftest.$ac_objext \
25872 conftest$ac_exeext conftest.$ac_ext
25873 fi
25874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_fabsl" >&5
25875 $as_echo "$gcc_cv_math_inline_builtin_fabsl" >&6; }
25876 if test $gcc_cv_math_inline_builtin_fabsl = yes; then
25877
25878 cat >>confdefs.h <<_ACEOF
25879 #define HAVE_INLINE_BUILTIN_FABSL 1
25880 _ACEOF
25881
25882 fi
25883 fi
25884
25885 # Check whether the system has a working stat()
25886
25887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target stat is reliable" >&5
25888 $as_echo_n "checking whether the target stat is reliable... " >&6; }
25889 if ${libgfor_cv_have_working_stat+:} false; then :
25890 $as_echo_n "(cached) " >&6
25891 else
25892
25893 if test "$cross_compiling" = yes; then :
25894
25895 case "${target}" in
25896 *mingw*) libgfor_cv_have_working_stat=no ;;
25897 *) libgfor_cv_have_working_stat=yes;;
25898 esac
25899 else
25900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25901 /* end confdefs.h. */
25902
25903 #include <stdio.h>
25904 #include <sys/types.h>
25905 #include <sys/stat.h>
25906 #include <unistd.h>
25907
25908 int main ()
25909 {
25910 FILE *f, *g;
25911 struct stat st1, st2;
25912
25913 f = fopen ("foo", "w");
25914 g = fopen ("bar", "w");
25915 if (stat ("foo", &st1) != 0 || stat ("bar", &st2))
25916 return 1;
25917 if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino)
25918 return 1;
25919 fclose(f);
25920 fclose(g);
25921 return 0;
25922 }
25923 _ACEOF
25924 if ac_fn_c_try_run "$LINENO"; then :
25925 libgfor_cv_have_working_stat=yes
25926 else
25927 libgfor_cv_have_working_stat=no
25928 fi
25929 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25930 conftest.$ac_objext conftest.beam conftest.$ac_ext
25931 fi
25932
25933 fi
25934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_working_stat" >&5
25935 $as_echo "$libgfor_cv_have_working_stat" >&6; }
25936 if test x"$libgfor_cv_have_working_stat" = xyes; then
25937
25938 $as_echo "#define HAVE_WORKING_STAT 1" >>confdefs.h
25939
25940 fi
25941
25942 # Check whether __mingw_snprintf() is present
25943
25944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __mingw_snprintf is present" >&5
25945 $as_echo_n "checking whether __mingw_snprintf is present... " >&6; }
25946 if ${libgfor_cv_have_mingw_snprintf+:} false; then :
25947 $as_echo_n "(cached) " >&6
25948 else
25949
25950 if test x$gcc_no_link = xyes; then
25951 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25952 fi
25953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25954 /* end confdefs.h. */
25955
25956 #include <stdio.h>
25957 extern int __mingw_snprintf (char *, size_t, const char *, ...);
25958
25959 int
25960 main ()
25961 {
25962
25963 __mingw_snprintf (NULL, 0, "%d\n", 1);
25964
25965 ;
25966 return 0;
25967 }
25968 _ACEOF
25969 if ac_fn_c_try_link "$LINENO"; then :
25970 eval "libgfor_cv_have_mingw_snprintf=yes"
25971 else
25972 eval "libgfor_cv_have_mingw_snprintf=no"
25973 fi
25974 rm -f core conftest.err conftest.$ac_objext \
25975 conftest$ac_exeext conftest.$ac_ext
25976
25977 fi
25978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_mingw_snprintf" >&5
25979 $as_echo "$libgfor_cv_have_mingw_snprintf" >&6; }
25980 if test x"$libgfor_cv_have_mingw_snprintf" = xyes; then
25981
25982 $as_echo "#define HAVE_MINGW_SNPRINTF 1" >>confdefs.h
25983
25984 fi
25985
25986
25987 # Check whether libquadmath should be used
25988 # Check whether --enable-libquadmath-support was given.
25989 if test "${enable_libquadmath_support+set}" = set; then :
25990 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
25991 else
25992 ENABLE_LIBQUADMATH_SUPPORT=yes
25993 fi
25994
25995 enable_libquadmath_support=
25996 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
25997 enable_libquadmath_support=no
25998 fi
25999
26000 # Check whether we have a __float128 type, depends on enable_libquadmath_support
26001
26002 LIBQUADSPEC=
26003
26004 if test "x$enable_libquadmath_support" != xno; then
26005
26006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a usable __float128 type" >&5
26007 $as_echo_n "checking whether we have a usable __float128 type... " >&6; }
26008 if ${libgfor_cv_have_float128+:} false; then :
26009 $as_echo_n "(cached) " >&6
26010 else
26011
26012 if test x$gcc_no_link = xyes; then
26013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26014 /* end confdefs.h. */
26015
26016 typedef _Complex float __attribute__((mode(TC))) __complex128;
26017
26018 __float128 foo (__float128 x)
26019 {
26020
26021 __complex128 z1, z2;
26022
26023 z1 = x;
26024 z2 = x / 7.Q;
26025 z2 /= z1;
26026
26027 return (__float128) z2;
26028 }
26029
26030 __float128 bar (__float128 x)
26031 {
26032 return x * __builtin_huge_valq ();
26033 }
26034
26035 int
26036 main ()
26037 {
26038
26039 foo (1.2Q);
26040 bar (1.2Q);
26041
26042 ;
26043 return 0;
26044 }
26045 _ACEOF
26046 if ac_fn_c_try_compile "$LINENO"; then :
26047
26048 libgfor_cv_have_float128=yes
26049
26050 else
26051
26052 libgfor_cv_have_float128=no
26053
26054 fi
26055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26056 else
26057 if test x$gcc_no_link = xyes; then
26058 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26059 fi
26060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26061 /* end confdefs.h. */
26062
26063 typedef _Complex float __attribute__((mode(TC))) __complex128;
26064
26065 __float128 foo (__float128 x)
26066 {
26067
26068 __complex128 z1, z2;
26069
26070 z1 = x;
26071 z2 = x / 7.Q;
26072 z2 /= z1;
26073
26074 return (__float128) z2;
26075 }
26076
26077 __float128 bar (__float128 x)
26078 {
26079 return x * __builtin_huge_valq ();
26080 }
26081
26082 int
26083 main ()
26084 {
26085
26086 foo (1.2Q);
26087 bar (1.2Q);
26088
26089 ;
26090 return 0;
26091 }
26092 _ACEOF
26093 if ac_fn_c_try_link "$LINENO"; then :
26094
26095 libgfor_cv_have_float128=yes
26096
26097 else
26098
26099 libgfor_cv_have_float128=no
26100
26101 fi
26102 rm -f core conftest.err conftest.$ac_objext \
26103 conftest$ac_exeext conftest.$ac_ext
26104 fi
26105 fi
26106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_float128" >&5
26107 $as_echo "$libgfor_cv_have_float128" >&6; }
26108
26109 if test "x$libgfor_cv_have_float128" = xyes; then
26110
26111 $as_echo "#define HAVE_FLOAT128 1" >>confdefs.h
26112
26113
26114 ac_xsave_c_werror_flag=$ac_c_werror_flag
26115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --as-needed/-z ignore works" >&5
26116 $as_echo_n "checking whether --as-needed/-z ignore works... " >&6; }
26117 if ${libgfor_cv_have_as_needed+:} false; then :
26118 $as_echo_n "(cached) " >&6
26119 else
26120
26121 # Test for native Solaris options first.
26122 # No whitespace after -z to pass it through -Wl.
26123 libgfor_cv_as_needed_option="-zignore"
26124 libgfor_cv_no_as_needed_option="-zrecord"
26125 save_LDFLAGS="$LDFLAGS"
26126 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
26127 libgfor_cv_have_as_needed=no
26128
26129 ac_c_werror_flag=yes
26130 if test x$gcc_no_link = xyes; then
26131 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26132 fi
26133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26134 /* end confdefs.h. */
26135
26136 int
26137 main ()
26138 {
26139
26140 ;
26141 return 0;
26142 }
26143 _ACEOF
26144 if ac_fn_c_try_link "$LINENO"; then :
26145 libgfor_cv_have_as_needed=yes
26146 else
26147 libgfor_cv_have_as_needed=no
26148 fi
26149 rm -f core conftest.err conftest.$ac_objext \
26150 conftest$ac_exeext conftest.$ac_ext
26151 LDFLAGS="$save_LDFLAGS"
26152 if test "x$libgfor_cv_have_as_needed" = xno; then
26153 libgfor_cv_as_needed_option="--as-needed"
26154 libgfor_cv_no_as_needed_option="--no-as-needed"
26155 save_LDFLAGS="$LDFLAGS"
26156 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
26157 libgfor_cv_have_as_needed=no
26158
26159 ac_c_werror_flag=yes
26160 if test x$gcc_no_link = xyes; then
26161 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26162 fi
26163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26164 /* end confdefs.h. */
26165
26166 int
26167 main ()
26168 {
26169
26170 ;
26171 return 0;
26172 }
26173 _ACEOF
26174 if ac_fn_c_try_link "$LINENO"; then :
26175 libgfor_cv_have_as_needed=yes
26176 else
26177 libgfor_cv_have_as_needed=no
26178 fi
26179 rm -f core conftest.err conftest.$ac_objext \
26180 conftest$ac_exeext conftest.$ac_ext
26181 LDFLAGS="$save_LDFLAGS"
26182 fi
26183 ac_c_werror_flag=$ac_xsave_c_werror_flag
26184
26185 fi
26186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_as_needed" >&5
26187 $as_echo "$libgfor_cv_have_as_needed" >&6; }
26188
26189 if test "x$libgfor_cv_have_as_needed" = xyes; then
26190 LIBQUADSPEC="%{static-libgfortran:$libgfor_cv_as_needed_option} -lquadmath %{static-libgfortran:$libgfor_cv_no_as_needed_option}"
26191 else
26192 LIBQUADSPEC="-lquadmath"
26193 fi
26194 if test -f ../libquadmath/libquadmath.la; then
26195 LIBQUADLIB=../libquadmath/libquadmath.la
26196 LIBQUADLIB_DEP=../libquadmath/libquadmath.la
26197 LIBQUADINCLUDE='-I$(srcdir)/../libquadmath'
26198 else
26199 LIBQUADLIB="-lquadmath"
26200 LIBQUADLIB_DEP=
26201 LIBQUADINCLUDE=
26202 fi
26203 fi
26204 else
26205 # for --disable-quadmath
26206 LIBQUADLIB=
26207 LIBQUADLIB_DEP=
26208 LIBQUADINCLUDE=
26209 fi
26210
26211
26212
26213
26214
26215
26216 if test "x$libgfor_cv_have_float128" = xyes; then
26217 LIBGFOR_BUILD_QUAD_TRUE=
26218 LIBGFOR_BUILD_QUAD_FALSE='#'
26219 else
26220 LIBGFOR_BUILD_QUAD_TRUE='#'
26221 LIBGFOR_BUILD_QUAD_FALSE=
26222 fi
26223
26224
26225
26226 # Check for GNU libc feenableexcept
26227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5
26228 $as_echo_n "checking for feenableexcept in -lm... " >&6; }
26229 if ${ac_cv_lib_m_feenableexcept+:} false; then :
26230 $as_echo_n "(cached) " >&6
26231 else
26232 ac_check_lib_save_LIBS=$LIBS
26233 LIBS="-lm $LIBS"
26234 if test x$gcc_no_link = xyes; then
26235 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26236 fi
26237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26238 /* end confdefs.h. */
26239
26240 /* Override any GCC internal prototype to avoid an error.
26241 Use char because int might match the return type of a GCC
26242 builtin and then its argument prototype would still apply. */
26243 #ifdef __cplusplus
26244 extern "C"
26245 #endif
26246 char feenableexcept ();
26247 int
26248 main ()
26249 {
26250 return feenableexcept ();
26251 ;
26252 return 0;
26253 }
26254 _ACEOF
26255 if ac_fn_c_try_link "$LINENO"; then :
26256 ac_cv_lib_m_feenableexcept=yes
26257 else
26258 ac_cv_lib_m_feenableexcept=no
26259 fi
26260 rm -f core conftest.err conftest.$ac_objext \
26261 conftest$ac_exeext conftest.$ac_ext
26262 LIBS=$ac_check_lib_save_LIBS
26263 fi
26264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5
26265 $as_echo "$ac_cv_lib_m_feenableexcept" >&6; }
26266 if test "x$ac_cv_lib_m_feenableexcept" = xyes; then :
26267 have_feenableexcept=yes
26268 $as_echo "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h
26269
26270 fi
26271
26272
26273 # At least for glibc, clock_gettime is in librt. But don't
26274 # pull that in if it still doesn't give us the function we want. This
26275 # test is copied from libgomp, and modified to not link in -lrt as
26276 # libgfortran calls clock_gettime via a weak reference if it's found
26277 # in librt.
26278 if test "$ac_cv_func_clock_gettime" = no; then
26279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
26280 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
26281 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
26282 $as_echo_n "(cached) " >&6
26283 else
26284 ac_check_lib_save_LIBS=$LIBS
26285 LIBS="-lrt $LIBS"
26286 if test x$gcc_no_link = xyes; then
26287 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26288 fi
26289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26290 /* end confdefs.h. */
26291
26292 /* Override any GCC internal prototype to avoid an error.
26293 Use char because int might match the return type of a GCC
26294 builtin and then its argument prototype would still apply. */
26295 #ifdef __cplusplus
26296 extern "C"
26297 #endif
26298 char clock_gettime ();
26299 int
26300 main ()
26301 {
26302 return clock_gettime ();
26303 ;
26304 return 0;
26305 }
26306 _ACEOF
26307 if ac_fn_c_try_link "$LINENO"; then :
26308 ac_cv_lib_rt_clock_gettime=yes
26309 else
26310 ac_cv_lib_rt_clock_gettime=no
26311 fi
26312 rm -f core conftest.err conftest.$ac_objext \
26313 conftest$ac_exeext conftest.$ac_ext
26314 LIBS=$ac_check_lib_save_LIBS
26315 fi
26316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
26317 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
26318 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
26319
26320 $as_echo "#define HAVE_CLOCK_GETTIME_LIBRT 1" >>confdefs.h
26321
26322 fi
26323
26324 fi
26325
26326 # Check for SysV fpsetmask
26327
26328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fpsetmask is present" >&5
26329 $as_echo_n "checking whether fpsetmask is present... " >&6; }
26330 if ${libgfor_cv_have_fpsetmask+:} false; then :
26331 $as_echo_n "(cached) " >&6
26332 else
26333
26334 if test x$gcc_no_link = xyes; then
26335 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26336 fi
26337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26338 /* end confdefs.h. */
26339
26340 #if HAVE_FLOATINGPOINT_H
26341 # include <floatingpoint.h>
26342 #endif /* HAVE_FLOATINGPOINT_H */
26343 #if HAVE_IEEEFP_H
26344 # include <ieeefp.h>
26345 #endif /* HAVE_IEEEFP_H */
26346 int
26347 main ()
26348 {
26349 fpsetmask(0);
26350 ;
26351 return 0;
26352 }
26353 _ACEOF
26354 if ac_fn_c_try_link "$LINENO"; then :
26355 eval "libgfor_cv_have_fpsetmask=yes"
26356 else
26357 eval "libgfor_cv_have_fpsetmask=no"
26358 fi
26359 rm -f core conftest.err conftest.$ac_objext \
26360 conftest$ac_exeext conftest.$ac_ext
26361
26362 fi
26363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_fpsetmask" >&5
26364 $as_echo "$libgfor_cv_have_fpsetmask" >&6; }
26365 if test x"$libgfor_cv_have_fpsetmask" = xyes; then
26366 have_fpsetmask=yes
26367
26368 $as_echo "#define HAVE_FPSETMASK 1" >>confdefs.h
26369
26370 fi
26371
26372 ac_fn_c_check_type "$LINENO" "fp_except" "ac_cv_type_fp_except" "
26373 #ifdef HAVE_IEEEFP_H
26374 #include <ieeefp.h>
26375 #endif
26376 #include <math.h>
26377
26378 "
26379 if test "x$ac_cv_type_fp_except" = xyes; then :
26380
26381 cat >>confdefs.h <<_ACEOF
26382 #define HAVE_FP_EXCEPT 1
26383 _ACEOF
26384
26385
26386 fi
26387 ac_fn_c_check_type "$LINENO" "fp_except_t" "ac_cv_type_fp_except_t" "
26388 #ifdef HAVE_IEEEFP_H
26389 #include <ieeefp.h>
26390 #endif
26391 #include <math.h>
26392
26393 "
26394 if test "x$ac_cv_type_fp_except_t" = xyes; then :
26395
26396 cat >>confdefs.h <<_ACEOF
26397 #define HAVE_FP_EXCEPT_T 1
26398 _ACEOF
26399
26400
26401 fi
26402
26403 ac_fn_c_check_type "$LINENO" "fp_rnd" "ac_cv_type_fp_rnd" "
26404 #ifdef HAVE_IEEEFP_H
26405 #include <ieeefp.h>
26406 #endif
26407 #include <math.h>
26408
26409 "
26410 if test "x$ac_cv_type_fp_rnd" = xyes; then :
26411
26412 cat >>confdefs.h <<_ACEOF
26413 #define HAVE_FP_RND 1
26414 _ACEOF
26415
26416
26417 fi
26418 ac_fn_c_check_type "$LINENO" "fp_rnd_t" "ac_cv_type_fp_rnd_t" "
26419 #ifdef HAVE_IEEEFP_H
26420 #include <ieeefp.h>
26421 #endif
26422 #include <math.h>
26423
26424 "
26425 if test "x$ac_cv_type_fp_rnd_t" = xyes; then :
26426
26427 cat >>confdefs.h <<_ACEOF
26428 #define HAVE_FP_RND_T 1
26429 _ACEOF
26430
26431
26432 fi
26433
26434
26435 # Check whether we have fpsetsticky or fpresetsticky
26436 ac_fn_c_check_func "$LINENO" "fpsetsticky" "ac_cv_func_fpsetsticky"
26437 if test "x$ac_cv_func_fpsetsticky" = xyes; then :
26438 have_fpsetsticky=yes
26439 $as_echo "#define HAVE_FPSETSTICKY 1" >>confdefs.h
26440
26441 fi
26442
26443 ac_fn_c_check_func "$LINENO" "fpresetsticky" "ac_cv_func_fpresetsticky"
26444 if test "x$ac_cv_func_fpresetsticky" = xyes; then :
26445 have_fpresetsticky=yes
26446 $as_echo "#define HAVE_FPRESETSTICKY 1" >>confdefs.h
26447
26448 fi
26449
26450
26451 # Check for AIX fp_trap and fp_enable
26452 ac_fn_c_check_func "$LINENO" "fp_trap" "ac_cv_func_fp_trap"
26453 if test "x$ac_cv_func_fp_trap" = xyes; then :
26454 have_fp_trap=yes
26455 $as_echo "#define HAVE_FP_TRAP 1" >>confdefs.h
26456
26457 fi
26458
26459 ac_fn_c_check_func "$LINENO" "fp_enable" "ac_cv_func_fp_enable"
26460 if test "x$ac_cv_func_fp_enable" = xyes; then :
26461 have_fp_enable=yes
26462 $as_echo "#define HAVE_FP_ENABLE 1" >>confdefs.h
26463
26464 fi
26465
26466
26467 # Check if _SOFT_FLOAT is defined
26468
26469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _SOFT_FLOAT defined" >&5
26470 $as_echo_n "checking for _SOFT_FLOAT defined... " >&6; }
26471 if ${ac_cv_defined__SOFT_FLOAT+:} false; then :
26472 $as_echo_n "(cached) " >&6
26473 else
26474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26475 /* end confdefs.h. */
26476
26477 int
26478 main ()
26479 {
26480
26481 #ifdef _SOFT_FLOAT
26482 int ok;
26483 #else
26484 choke me
26485 #endif
26486
26487 ;
26488 return 0;
26489 }
26490 _ACEOF
26491 if ac_fn_c_try_compile "$LINENO"; then :
26492 ac_cv_defined__SOFT_FLOAT=yes
26493 else
26494 ac_cv_defined__SOFT_FLOAT=no
26495 fi
26496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26497 fi
26498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined__SOFT_FLOAT" >&5
26499 $as_echo "$ac_cv_defined__SOFT_FLOAT" >&6; }
26500 if test $ac_cv_defined__SOFT_FLOAT != "no"; then :
26501 have_soft_float=yes
26502 fi
26503
26504 # Runs configure.host to set up necessary host-dependent shell variables.
26505 # We then display a message about it, and propagate them through the
26506 # build chain.
26507 . ${srcdir}/configure.host
26508 { $as_echo "$as_me:${as_lineno-$LINENO}: FPU dependent file will be ${fpu_host}.h" >&5
26509 $as_echo "$as_me: FPU dependent file will be ${fpu_host}.h" >&6;}
26510 { $as_echo "$as_me:${as_lineno-$LINENO}: Support for IEEE modules: ${ieee_support}" >&5
26511 $as_echo "$as_me: Support for IEEE modules: ${ieee_support}" >&6;}
26512 FPU_HOST_HEADER=config/${fpu_host}.h
26513
26514
26515 # Whether we will build the IEEE modules
26516 if test x${ieee_support} = xyes; then
26517 IEEE_SUPPORT_TRUE=
26518 IEEE_SUPPORT_FALSE='#'
26519 else
26520 IEEE_SUPPORT_TRUE='#'
26521 IEEE_SUPPORT_FALSE=
26522 fi
26523
26524
26525
26526 # Some targets require additional compiler options for IEEE compatibility.
26527 IEEE_FLAGS="${ieee_flags}"
26528
26529
26530 # Conditionalize the makefile for this target machine.
26531 tmake_file_=
26532 for f in ${tmake_file}
26533 do
26534 if test -f ${srcdir}/config/$f
26535 then
26536 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
26537 fi
26538 done
26539 tmake_file="${tmake_file_}"
26540
26541
26542
26543 # Check for POSIX getpwuid_r
26544 #
26545 # There are two versions of getpwuid_r, the POSIX one with 5
26546 # arguments, and another one with 4 arguments used by at least HP-UX
26547 # 10.2.
26548 if test "$ac_cv_func_getpwuid_r" = "yes"; then
26549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX version of getpwuid_r with 5 arguments" >&5
26550 $as_echo_n "checking POSIX version of getpwuid_r with 5 arguments... " >&6; }
26551 if ${libgfor_cv_posix_getpwuid_r+:} false; then :
26552 $as_echo_n "(cached) " >&6
26553 else
26554
26555 if test x$gcc_no_link = xyes; then
26556 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26557 fi
26558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26559 /* end confdefs.h. */
26560
26561 #include <stdio.h>
26562 #include <sys/types.h>
26563 #include <pwd.h>
26564 int
26565 main ()
26566 {
26567
26568 getpwuid_r(0, NULL, NULL, 0, NULL);
26569
26570 ;
26571 return 0;
26572 }
26573 _ACEOF
26574 if ac_fn_c_try_link "$LINENO"; then :
26575 libgfor_cv_posix_getpwuid_r="yes"
26576 else
26577 libgfor_cv_posix_getpwuid_r="no"
26578 fi
26579 rm -f core conftest.err conftest.$ac_objext \
26580 conftest$ac_exeext conftest.$ac_ext
26581 fi
26582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_posix_getpwuid_r" >&5
26583 $as_echo "$libgfor_cv_posix_getpwuid_r" >&6; }
26584 fi
26585 if test "$libgfor_cv_posix_getpwuid_r" = "yes"; then
26586
26587 $as_echo "#define HAVE_POSIX_GETPWUID_R 1" >>confdefs.h
26588
26589 fi
26590
26591
26592 # Check out attribute support.
26593
26594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
26595 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
26596 if ${libgfor_cv_have_attribute_visibility+:} false; then :
26597 $as_echo_n "(cached) " >&6
26598 else
26599
26600 save_CFLAGS="$CFLAGS"
26601 CFLAGS="$CFLAGS -Werror"
26602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26603 /* end confdefs.h. */
26604 void __attribute__((visibility("hidden"))) foo(void) { }
26605 int
26606 main ()
26607 {
26608
26609 ;
26610 return 0;
26611 }
26612 _ACEOF
26613 if ac_fn_c_try_compile "$LINENO"; then :
26614 libgfor_cv_have_attribute_visibility=yes
26615 else
26616 libgfor_cv_have_attribute_visibility=no
26617 fi
26618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26619 CFLAGS="$save_CFLAGS"
26620 fi
26621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_visibility" >&5
26622 $as_echo "$libgfor_cv_have_attribute_visibility" >&6; }
26623 if test $libgfor_cv_have_attribute_visibility = yes; then
26624
26625 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
26626
26627 fi
26628
26629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
26630 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
26631 if ${libgfor_cv_have_attribute_alias+:} false; then :
26632 $as_echo_n "(cached) " >&6
26633 else
26634
26635 if test x$gcc_no_link = xyes; then
26636 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26637 fi
26638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26639 /* end confdefs.h. */
26640
26641 void foo(void) { }
26642 extern void bar(void) __attribute__((alias("foo")));
26643 int
26644 main ()
26645 {
26646 bar();
26647 ;
26648 return 0;
26649 }
26650 _ACEOF
26651 if ac_fn_c_try_link "$LINENO"; then :
26652 libgfor_cv_have_attribute_alias=yes
26653 else
26654 libgfor_cv_have_attribute_alias=no
26655 fi
26656 rm -f core conftest.err conftest.$ac_objext \
26657 conftest$ac_exeext conftest.$ac_ext
26658 fi
26659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_alias" >&5
26660 $as_echo "$libgfor_cv_have_attribute_alias" >&6; }
26661 if test $libgfor_cv_have_attribute_alias = yes; then
26662
26663 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
26664
26665 fi
26666
26667 # Check out atomic builtins support.
26668
26669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __atomic_fetch_add" >&5
26670 $as_echo_n "checking whether the target supports __atomic_fetch_add... " >&6; }
26671 if ${libgfor_cv_have_atomic_fetch_add+:} false; then :
26672 $as_echo_n "(cached) " >&6
26673 else
26674
26675 if test x$gcc_no_link = xyes; then
26676 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26677 fi
26678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26679 /* end confdefs.h. */
26680 int foovar = 0;
26681 int
26682 main ()
26683 {
26684
26685 if (foovar <= 0) return __atomic_fetch_add (&foovar, 1, __ATOMIC_ACQ_REL);
26686 if (foovar > 10) return __atomic_add_fetch (&foovar, -1, __ATOMIC_ACQ_REL);
26687 ;
26688 return 0;
26689 }
26690 _ACEOF
26691 if ac_fn_c_try_link "$LINENO"; then :
26692 libgfor_cv_have_atomic_fetch_add=yes
26693 else
26694 libgfor_cv_have_atomic_fetch_add=no
26695 fi
26696 rm -f core conftest.err conftest.$ac_objext \
26697 conftest$ac_exeext conftest.$ac_ext
26698 fi
26699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_atomic_fetch_add" >&5
26700 $as_echo "$libgfor_cv_have_atomic_fetch_add" >&6; }
26701 if test $libgfor_cv_have_atomic_fetch_add = yes; then
26702
26703 $as_echo "#define HAVE_ATOMIC_FETCH_ADD 1" >>confdefs.h
26704
26705 fi
26706
26707 # Check out #pragma weak.
26708
26709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pragma weak works" >&5
26710 $as_echo_n "checking whether pragma weak works... " >&6; }
26711 if ${libgfor_cv_have_pragma_weak+:} false; then :
26712 $as_echo_n "(cached) " >&6
26713 else
26714
26715 gfor_save_CFLAGS="$CFLAGS"
26716 CFLAGS="$CFLAGS -Wunknown-pragmas"
26717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26718 /* end confdefs.h. */
26719
26720 void foo (void);
26721 #pragma weak foo
26722
26723 int
26724 main ()
26725 {
26726 if (foo) foo ();
26727 ;
26728 return 0;
26729 }
26730 _ACEOF
26731 if ac_fn_c_try_compile "$LINENO"; then :
26732 libgfor_cv_have_pragma_weak=yes
26733 else
26734 libgfor_cv_have_pragma_weak=no
26735 fi
26736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26737 fi
26738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_pragma_weak" >&5
26739 $as_echo "$libgfor_cv_have_pragma_weak" >&6; }
26740 if test $libgfor_cv_have_pragma_weak = yes; then
26741
26742 $as_echo "#define SUPPORTS_WEAK 1" >>confdefs.h
26743
26744 fi
26745 case "$host" in
26746 *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* | *-*-musl* )
26747
26748 $as_echo "#define GTHREAD_USE_WEAK 0" >>confdefs.h
26749
26750 ;;
26751 esac
26752
26753 # Check out weakref support.
26754
26755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports weakref" >&5
26756 $as_echo_n "checking whether the target supports weakref... " >&6; }
26757 if ${libgfor_cv_have_weakref+:} false; then :
26758 $as_echo_n "(cached) " >&6
26759 else
26760
26761 save_CFLAGS="$CFLAGS"
26762 CFLAGS="$CFLAGS -Wunknown-pragmas -Werror"
26763 if test x$gcc_no_link = xyes; then
26764 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26765 fi
26766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26767 /* end confdefs.h. */
26768
26769 static int mytoto (int) __attribute__((__weakref__("toto")));
26770
26771 int
26772 main ()
26773 {
26774 return (mytoto != 0);
26775 ;
26776 return 0;
26777 }
26778 _ACEOF
26779 if ac_fn_c_try_link "$LINENO"; then :
26780 libgfor_cv_have_weakref=yes
26781 else
26782 libgfor_cv_have_weakref=no
26783 fi
26784 rm -f core conftest.err conftest.$ac_objext \
26785 conftest$ac_exeext conftest.$ac_ext
26786 CFLAGS="$save_CFLAGS"
26787 fi
26788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_weakref" >&5
26789 $as_echo "$libgfor_cv_have_weakref" >&6; }
26790 if test $libgfor_cv_have_weakref = yes; then
26791
26792 $as_echo "#define SUPPORTS_WEAKREF 1" >>confdefs.h
26793
26794 fi
26795
26796 # Various other checks on target
26797
26798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target can unlink an open file" >&5
26799 $as_echo_n "checking whether the target can unlink an open file... " >&6; }
26800 if ${libgfor_cv_have_unlink_open_file+:} false; then :
26801 $as_echo_n "(cached) " >&6
26802 else
26803
26804 if test "$cross_compiling" = yes; then :
26805
26806 case "${target}" in
26807 *mingw*) libgfor_cv_have_unlink_open_file=no ;;
26808 *) libgfor_cv_have_unlink_open_file=yes;;
26809 esac
26810 else
26811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26812 /* end confdefs.h. */
26813
26814 #include <errno.h>
26815 #include <fcntl.h>
26816 #include <unistd.h>
26817 #include <sys/stat.h>
26818
26819 int main ()
26820 {
26821 int fd;
26822
26823 fd = open ("testfile", O_RDWR | O_CREAT, S_IWUSR | S_IRUSR);
26824 if (fd <= 0)
26825 return 0;
26826 if (unlink ("testfile") == -1)
26827 return 1;
26828 write (fd, "This is a test\n", 15);
26829 close (fd);
26830
26831 if (open ("testfile", O_RDONLY) == -1 && errno == ENOENT)
26832 return 0;
26833 else
26834 return 1;
26835 }
26836 _ACEOF
26837 if ac_fn_c_try_run "$LINENO"; then :
26838 libgfor_cv_have_unlink_open_file=yes
26839 else
26840 libgfor_cv_have_unlink_open_file=no
26841 fi
26842 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26843 conftest.$ac_objext conftest.beam conftest.$ac_ext
26844 fi
26845
26846 fi
26847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_unlink_open_file" >&5
26848 $as_echo "$libgfor_cv_have_unlink_open_file" >&6; }
26849 if test x"$libgfor_cv_have_unlink_open_file" = xyes; then
26850
26851 $as_echo "#define HAVE_UNLINK_OPEN_FILE 1" >>confdefs.h
26852
26853 fi
26854
26855 # Check whether line terminator is LF or CRLF
26856
26857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target has CRLF as line terminator" >&5
26858 $as_echo_n "checking whether the target has CRLF as line terminator... " >&6; }
26859 if ${libgfor_cv_have_crlf+:} false; then :
26860 $as_echo_n "(cached) " >&6
26861 else
26862
26863 if test "$cross_compiling" = yes; then :
26864
26865 case "${target}" in
26866 *mingw*) libgfor_cv_have_crlf=yes ;;
26867 *) libgfor_cv_have_crlf=no;;
26868 esac
26869 else
26870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26871 /* end confdefs.h. */
26872
26873 /* This test program should exit with status 0 if system uses a CRLF as
26874 line terminator, and status 1 otherwise.
26875 Since it is used to check for mingw systems, and should return 0 in any
26876 other case, in case of a failure we will not use CRLF. */
26877 #include <sys/stat.h>
26878 #include <stdlib.h>
26879 #include <fcntl.h>
26880 #include <stdio.h>
26881
26882 int main ()
26883 {
26884 #ifndef O_BINARY
26885 exit(1);
26886 #else
26887 int fd, bytes;
26888 char buff[5];
26889
26890 fd = open ("foo", O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU);
26891 if (fd < 0)
26892 exit(1);
26893 if (write (fd, "\n", 1) < 0)
26894 perror ("write");
26895
26896 close (fd);
26897
26898 if ((fd = open ("foo", O_RDONLY | O_BINARY, S_IRWXU)) < 0)
26899 exit(1);
26900 bytes = read (fd, buff, 5);
26901 if (bytes == 2 && buff[0] == '\r' && buff[1] == '\n')
26902 exit(0);
26903 else
26904 exit(1);
26905 #endif
26906 }
26907 _ACEOF
26908 if ac_fn_c_try_run "$LINENO"; then :
26909 libgfor_cv_have_crlf=yes
26910 else
26911 libgfor_cv_have_crlf=no
26912 fi
26913 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26914 conftest.$ac_objext conftest.beam conftest.$ac_ext
26915 fi
26916
26917 fi
26918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_crlf" >&5
26919 $as_echo "$libgfor_cv_have_crlf" >&6; }
26920 if test x"$libgfor_cv_have_crlf" = xyes; then
26921
26922 $as_echo "#define HAVE_CRLF 1" >>confdefs.h
26923
26924 fi
26925
26926 # Check whether we support AVX extensions
26927
26928 ac_save_CFLAGS="$CFLAGS"
26929 CFLAGS="-O2 -mavx"
26930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26931 /* end confdefs.h. */
26932
26933 void _mm256_zeroall (void)
26934 {
26935 __builtin_ia32_vzeroall ();
26936 }
26937 int
26938 main ()
26939 {
26940
26941 ;
26942 return 0;
26943 }
26944 _ACEOF
26945 if ac_fn_c_try_compile "$LINENO"; then :
26946
26947 $as_echo "#define HAVE_AVX 1" >>confdefs.h
26948
26949 fi
26950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26951 CFLAGS="$ac_save_CFLAGS"
26952
26953
26954 # Check wether we support AVX2 extensions
26955
26956 ac_save_CFLAGS="$CFLAGS"
26957 CFLAGS="-O2 -mavx2"
26958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26959 /* end confdefs.h. */
26960
26961 typedef long long __v4di __attribute__ ((__vector_size__ (32)));
26962 __v4di
26963 mm256_is32_andnotsi256 (__v4di __X, __v4di __Y)
26964 {
26965 return __builtin_ia32_andnotsi256 (__X, __Y);
26966 }
26967 int
26968 main ()
26969 {
26970
26971 ;
26972 return 0;
26973 }
26974 _ACEOF
26975 if ac_fn_c_try_compile "$LINENO"; then :
26976
26977 $as_echo "#define HAVE_AVX2 1" >>confdefs.h
26978
26979 fi
26980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26981 CFLAGS="$ac_save_CFLAGS"
26982
26983
26984 # Check wether we support AVX512f extensions
26985
26986 ac_save_CFLAGS="$CFLAGS"
26987 CFLAGS="-O2 -mavx512f"
26988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26989 /* end confdefs.h. */
26990
26991 typedef double __m512d __attribute__ ((__vector_size__ (64)));
26992 __m512d _mm512_add (__m512d a)
26993 {
26994 __m512d b = __builtin_ia32_addpd512_mask (a, a, a, 1, 4);
26995 /* For -m64/-mx32 also verify that code will work even if
26996 the target uses call saved zmm16+ and needs to emit
26997 unwind info for them (e.g. on mingw). See PR79127. */
26998 #ifdef __x86_64__
26999 asm volatile ("" : : : "zmm16", "zmm17", "zmm18", "zmm19");
27000 #endif
27001 return b;
27002 }
27003 int
27004 main ()
27005 {
27006
27007 ;
27008 return 0;
27009 }
27010 _ACEOF
27011 if ac_fn_c_try_compile "$LINENO"; then :
27012
27013 $as_echo "#define HAVE_AVX512F 1" >>confdefs.h
27014
27015 fi
27016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27017 CFLAGS="$ac_save_CFLAGS"
27018
27019
27020 # Check for FMA3 extensions
27021
27022 ac_save_CFLAGS="$CFLAGS"
27023 CFLAGS="-O2 -mfma -mno-fma4"
27024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27025 /* end confdefs.h. */
27026
27027 typedef float __m128 __attribute__ ((__vector_size__ (16)));
27028 typedef float __v4sf __attribute__ ((__vector_size__ (16)));
27029 __m128 _mm_macc_ps(__m128 __A, __m128 __B, __m128 __C)
27030 {
27031 return (__m128) __builtin_ia32_vfmaddps ((__v4sf)__A,
27032 (__v4sf)__B,
27033 (__v4sf)__C);
27034 }
27035 int
27036 main ()
27037 {
27038
27039 ;
27040 return 0;
27041 }
27042 _ACEOF
27043 if ac_fn_c_try_compile "$LINENO"; then :
27044
27045 $as_echo "#define HAVE_FMA3 1" >>confdefs.h
27046
27047 fi
27048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27049 CFLAGS="$ac_save_CFLAGS"
27050
27051
27052 # Check for FMA4 extensions
27053
27054 ac_save_CFLAGS="$CFLAGS"
27055 CFLAGS="-O2 -mfma4 -mno-fma"
27056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27057 /* end confdefs.h. */
27058
27059 typedef float __m128 __attribute__ ((__vector_size__ (16)));
27060 typedef float __v4sf __attribute__ ((__vector_size__ (16)));
27061 __m128 _mm_macc_ps(__m128 __A, __m128 __B, __m128 __C)
27062 {
27063 return (__m128) __builtin_ia32_vfmaddps ((__v4sf)__A,
27064 (__v4sf)__B,
27065 (__v4sf)__C);
27066 }
27067 int
27068 main ()
27069 {
27070
27071 ;
27072 return 0;
27073 }
27074 _ACEOF
27075 if ac_fn_c_try_compile "$LINENO"; then :
27076
27077 $as_echo "#define HAVE_FMA4 1" >>confdefs.h
27078
27079 fi
27080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27081 CFLAGS="$ac_save_CFLAGS"
27082
27083
27084 # Check if AVX128 works
27085
27086 ac_save_CFLAGS="$CFLAGS"
27087 CFLAGS="-O2 -mavx -mprefer-avx128"
27088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27089 /* end confdefs.h. */
27090
27091 void foo()
27092 {
27093 }
27094 int
27095 main ()
27096 {
27097
27098 ;
27099 return 0;
27100 }
27101 _ACEOF
27102 if ac_fn_c_try_compile "$LINENO"; then :
27103
27104 $as_echo "#define HAVE_AVX128 1" >>confdefs.h
27105
27106 if true; then
27107 HAVE_AVX128_TRUE=
27108 HAVE_AVX128_FALSE='#'
27109 else
27110 HAVE_AVX128_TRUE='#'
27111 HAVE_AVX128_FALSE=
27112 fi
27113
27114 else
27115 if false; then
27116 HAVE_AVX128_TRUE=
27117 HAVE_AVX128_FALSE='#'
27118 else
27119 HAVE_AVX128_TRUE='#'
27120 HAVE_AVX128_FALSE=
27121 fi
27122
27123 fi
27124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27125 CFLAGS="$ac_save_CFLAGS"
27126
27127
27128 # Determine what GCC version number to use in filesystem paths.
27129
27130 get_gcc_base_ver="cat"
27131
27132 # Check whether --with-gcc-major-version-only was given.
27133 if test "${with_gcc_major_version_only+set}" = set; then :
27134 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
27135 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
27136 fi
27137
27138 fi
27139
27140
27141
27142
27143 cat >confcache <<\_ACEOF
27144 # This file is a shell script that caches the results of configure
27145 # tests run on this system so they can be shared between configure
27146 # scripts and configure runs, see configure's option --config-cache.
27147 # It is not useful on other systems. If it contains results you don't
27148 # want to keep, you may remove or edit it.
27149 #
27150 # config.status only pays attention to the cache file if you give it
27151 # the --recheck option to rerun configure.
27152 #
27153 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27154 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27155 # following values.
27156
27157 _ACEOF
27158
27159 # The following way of writing the cache mishandles newlines in values,
27160 # but we know of no workaround that is simple, portable, and efficient.
27161 # So, we kill variables containing newlines.
27162 # Ultrix sh set writes to stderr and can't be redirected directly,
27163 # and sets the high bit in the cache file unless we assign to the vars.
27164 (
27165 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27166 eval ac_val=\$$ac_var
27167 case $ac_val in #(
27168 *${as_nl}*)
27169 case $ac_var in #(
27170 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27171 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27172 esac
27173 case $ac_var in #(
27174 _ | IFS | as_nl) ;; #(
27175 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27176 *) { eval $ac_var=; unset $ac_var;} ;;
27177 esac ;;
27178 esac
27179 done
27180
27181 (set) 2>&1 |
27182 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27183 *${as_nl}ac_space=\ *)
27184 # `set' does not quote correctly, so add quotes: double-quote
27185 # substitution turns \\\\ into \\, and sed turns \\ into \.
27186 sed -n \
27187 "s/'/'\\\\''/g;
27188 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27189 ;; #(
27190 *)
27191 # `set' quotes correctly as required by POSIX, so do not add quotes.
27192 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27193 ;;
27194 esac |
27195 sort
27196 ) |
27197 sed '
27198 /^ac_cv_env_/b end
27199 t clear
27200 :clear
27201 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27202 t end
27203 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27204 :end' >>confcache
27205 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27206 if test -w "$cache_file"; then
27207 if test "x$cache_file" != "x/dev/null"; then
27208 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27209 $as_echo "$as_me: updating cache $cache_file" >&6;}
27210 if test ! -f "$cache_file" || test -h "$cache_file"; then
27211 cat confcache >"$cache_file"
27212 else
27213 case $cache_file in #(
27214 */* | ?:*)
27215 mv -f confcache "$cache_file"$$ &&
27216 mv -f "$cache_file"$$ "$cache_file" ;; #(
27217 *)
27218 mv -f confcache "$cache_file" ;;
27219 esac
27220 fi
27221 fi
27222 else
27223 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27224 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27225 fi
27226 fi
27227 rm -f confcache
27228
27229 if test ${multilib} = yes; then
27230 multilib_arg="--enable-multilib"
27231 else
27232 multilib_arg=
27233 fi
27234
27235 # Write our Makefile and spec file.
27236 ac_config_files="$ac_config_files Makefile libgfortran.spec"
27237
27238 cat >confcache <<\_ACEOF
27239 # This file is a shell script that caches the results of configure
27240 # tests run on this system so they can be shared between configure
27241 # scripts and configure runs, see configure's option --config-cache.
27242 # It is not useful on other systems. If it contains results you don't
27243 # want to keep, you may remove or edit it.
27244 #
27245 # config.status only pays attention to the cache file if you give it
27246 # the --recheck option to rerun configure.
27247 #
27248 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27249 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27250 # following values.
27251
27252 _ACEOF
27253
27254 # The following way of writing the cache mishandles newlines in values,
27255 # but we know of no workaround that is simple, portable, and efficient.
27256 # So, we kill variables containing newlines.
27257 # Ultrix sh set writes to stderr and can't be redirected directly,
27258 # and sets the high bit in the cache file unless we assign to the vars.
27259 (
27260 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27261 eval ac_val=\$$ac_var
27262 case $ac_val in #(
27263 *${as_nl}*)
27264 case $ac_var in #(
27265 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27266 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27267 esac
27268 case $ac_var in #(
27269 _ | IFS | as_nl) ;; #(
27270 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27271 *) { eval $ac_var=; unset $ac_var;} ;;
27272 esac ;;
27273 esac
27274 done
27275
27276 (set) 2>&1 |
27277 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27278 *${as_nl}ac_space=\ *)
27279 # `set' does not quote correctly, so add quotes: double-quote
27280 # substitution turns \\\\ into \\, and sed turns \\ into \.
27281 sed -n \
27282 "s/'/'\\\\''/g;
27283 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27284 ;; #(
27285 *)
27286 # `set' quotes correctly as required by POSIX, so do not add quotes.
27287 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27288 ;;
27289 esac |
27290 sort
27291 ) |
27292 sed '
27293 /^ac_cv_env_/b end
27294 t clear
27295 :clear
27296 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27297 t end
27298 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27299 :end' >>confcache
27300 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27301 if test -w "$cache_file"; then
27302 if test "x$cache_file" != "x/dev/null"; then
27303 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27304 $as_echo "$as_me: updating cache $cache_file" >&6;}
27305 if test ! -f "$cache_file" || test -h "$cache_file"; then
27306 cat confcache >"$cache_file"
27307 else
27308 case $cache_file in #(
27309 */* | ?:*)
27310 mv -f confcache "$cache_file"$$ &&
27311 mv -f "$cache_file"$$ "$cache_file" ;; #(
27312 *)
27313 mv -f confcache "$cache_file" ;;
27314 esac
27315 fi
27316 fi
27317 else
27318 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27319 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27320 fi
27321 fi
27322 rm -f confcache
27323
27324 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27325 # Let make expand exec_prefix.
27326 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27327
27328 DEFS=-DHAVE_CONFIG_H
27329
27330 ac_libobjs=
27331 ac_ltlibobjs=
27332 U=
27333 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27334 # 1. Remove the extension, and $U if already installed.
27335 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27336 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27337 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27338 # will be set to the directory where LIBOBJS objects are built.
27339 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27340 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27341 done
27342 LIBOBJS=$ac_libobjs
27343
27344 LTLIBOBJS=$ac_ltlibobjs
27345
27346
27347 if test -z "${onestep_TRUE}" && test -z "${onestep_FALSE}"; then
27348 as_fn_error $? "conditional \"onestep\" was never defined.
27349 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27350 fi
27351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
27352 $as_echo_n "checking that generated files are newer than configure... " >&6; }
27353 if test -n "$am_sleep_pid"; then
27354 # Hide warnings about reused PIDs.
27355 wait $am_sleep_pid 2>/dev/null
27356 fi
27357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
27358 $as_echo "done" >&6; }
27359 if test -n "$EXEEXT"; then
27360 am__EXEEXT_TRUE=
27361 am__EXEEXT_FALSE='#'
27362 else
27363 am__EXEEXT_TRUE='#'
27364 am__EXEEXT_FALSE=
27365 fi
27366
27367 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27368 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
27369 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27370 fi
27371 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27372 as_fn_error $? "conditional \"AMDEP\" was never defined.
27373 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27374 fi
27375 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27376 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
27377 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27378 fi
27379 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27380 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
27381 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27382 fi
27383 if test -z "${LIBGFOR_USE_SYMVER_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_FALSE}"; then
27384 as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER\" was never defined.
27385 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27386 fi
27387 if test -z "${LIBGFOR_USE_SYMVER_GNU_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_GNU_FALSE}"; then
27388 as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER_GNU\" was never defined.
27389 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27390 fi
27391 if test -z "${LIBGFOR_USE_SYMVER_SUN_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_SUN_FALSE}"; then
27392 as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER_SUN\" was never defined.
27393 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27394 fi
27395 if test -z "${LIBGFOR_MINIMAL_TRUE}" && test -z "${LIBGFOR_MINIMAL_FALSE}"; then
27396 as_fn_error $? "conditional \"LIBGFOR_MINIMAL\" was never defined.
27397 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27398 fi
27399 if test -z "${HAVE_HWCAP_TRUE}" && test -z "${HAVE_HWCAP_FALSE}"; then
27400 as_fn_error $? "conditional \"HAVE_HWCAP\" was never defined.
27401 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27402 fi
27403 if test -z "${LIBGFOR_BUILD_QUAD_TRUE}" && test -z "${LIBGFOR_BUILD_QUAD_FALSE}"; then
27404 as_fn_error $? "conditional \"LIBGFOR_BUILD_QUAD\" was never defined.
27405 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27406 fi
27407 if test -z "${IEEE_SUPPORT_TRUE}" && test -z "${IEEE_SUPPORT_FALSE}"; then
27408 as_fn_error $? "conditional \"IEEE_SUPPORT\" was never defined.
27409 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27410 fi
27411 if test -z "${HAVE_AVX128_TRUE}" && test -z "${HAVE_AVX128_FALSE}"; then
27412 as_fn_error $? "conditional \"HAVE_AVX128\" was never defined.
27413 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27414 fi
27415 if test -z "${HAVE_AVX128_TRUE}" && test -z "${HAVE_AVX128_FALSE}"; then
27416 as_fn_error $? "conditional \"HAVE_AVX128\" was never defined.
27417 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27418 fi
27419
27420 : "${CONFIG_STATUS=./config.status}"
27421 ac_write_fail=0
27422 ac_clean_files_save=$ac_clean_files
27423 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27424 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27425 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27426 as_write_fail=0
27427 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27428 #! $SHELL
27429 # Generated by $as_me.
27430 # Run this file to recreate the current configuration.
27431 # Compiler output produced by configure, useful for debugging
27432 # configure, is in config.log if it exists.
27433
27434 debug=false
27435 ac_cs_recheck=false
27436 ac_cs_silent=false
27437
27438 SHELL=\${CONFIG_SHELL-$SHELL}
27439 export SHELL
27440 _ASEOF
27441 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27442 ## -------------------- ##
27443 ## M4sh Initialization. ##
27444 ## -------------------- ##
27445
27446 # Be more Bourne compatible
27447 DUALCASE=1; export DUALCASE # for MKS sh
27448 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27449 emulate sh
27450 NULLCMD=:
27451 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27452 # is contrary to our usage. Disable this feature.
27453 alias -g '${1+"$@"}'='"$@"'
27454 setopt NO_GLOB_SUBST
27455 else
27456 case `(set -o) 2>/dev/null` in #(
27457 *posix*) :
27458 set -o posix ;; #(
27459 *) :
27460 ;;
27461 esac
27462 fi
27463
27464
27465 as_nl='
27466 '
27467 export as_nl
27468 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27469 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27470 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27471 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27472 # Prefer a ksh shell builtin over an external printf program on Solaris,
27473 # but without wasting forks for bash or zsh.
27474 if test -z "$BASH_VERSION$ZSH_VERSION" \
27475 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27476 as_echo='print -r --'
27477 as_echo_n='print -rn --'
27478 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27479 as_echo='printf %s\n'
27480 as_echo_n='printf %s'
27481 else
27482 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27483 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27484 as_echo_n='/usr/ucb/echo -n'
27485 else
27486 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27487 as_echo_n_body='eval
27488 arg=$1;
27489 case $arg in #(
27490 *"$as_nl"*)
27491 expr "X$arg" : "X\\(.*\\)$as_nl";
27492 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27493 esac;
27494 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27495 '
27496 export as_echo_n_body
27497 as_echo_n='sh -c $as_echo_n_body as_echo'
27498 fi
27499 export as_echo_body
27500 as_echo='sh -c $as_echo_body as_echo'
27501 fi
27502
27503 # The user is always right.
27504 if test "${PATH_SEPARATOR+set}" != set; then
27505 PATH_SEPARATOR=:
27506 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27507 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27508 PATH_SEPARATOR=';'
27509 }
27510 fi
27511
27512
27513 # IFS
27514 # We need space, tab and new line, in precisely that order. Quoting is
27515 # there to prevent editors from complaining about space-tab.
27516 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27517 # splitting by setting IFS to empty value.)
27518 IFS=" "" $as_nl"
27519
27520 # Find who we are. Look in the path if we contain no directory separator.
27521 as_myself=
27522 case $0 in #((
27523 *[\\/]* ) as_myself=$0 ;;
27524 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27525 for as_dir in $PATH
27526 do
27527 IFS=$as_save_IFS
27528 test -z "$as_dir" && as_dir=.
27529 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27530 done
27531 IFS=$as_save_IFS
27532
27533 ;;
27534 esac
27535 # We did not find ourselves, most probably we were run as `sh COMMAND'
27536 # in which case we are not to be found in the path.
27537 if test "x$as_myself" = x; then
27538 as_myself=$0
27539 fi
27540 if test ! -f "$as_myself"; then
27541 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27542 exit 1
27543 fi
27544
27545 # Unset variables that we do not need and which cause bugs (e.g. in
27546 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27547 # suppresses any "Segmentation fault" message there. '((' could
27548 # trigger a bug in pdksh 5.2.14.
27549 for as_var in BASH_ENV ENV MAIL MAILPATH
27550 do eval test x\${$as_var+set} = xset \
27551 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27552 done
27553 PS1='$ '
27554 PS2='> '
27555 PS4='+ '
27556
27557 # NLS nuisances.
27558 LC_ALL=C
27559 export LC_ALL
27560 LANGUAGE=C
27561 export LANGUAGE
27562
27563 # CDPATH.
27564 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27565
27566
27567 # as_fn_error STATUS ERROR [LINENO LOG_FD]
27568 # ----------------------------------------
27569 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27570 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27571 # script with STATUS, using 1 if that was 0.
27572 as_fn_error ()
27573 {
27574 as_status=$1; test $as_status -eq 0 && as_status=1
27575 if test "$4"; then
27576 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27577 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
27578 fi
27579 $as_echo "$as_me: error: $2" >&2
27580 as_fn_exit $as_status
27581 } # as_fn_error
27582
27583
27584 # as_fn_set_status STATUS
27585 # -----------------------
27586 # Set $? to STATUS, without forking.
27587 as_fn_set_status ()
27588 {
27589 return $1
27590 } # as_fn_set_status
27591
27592 # as_fn_exit STATUS
27593 # -----------------
27594 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27595 as_fn_exit ()
27596 {
27597 set +e
27598 as_fn_set_status $1
27599 exit $1
27600 } # as_fn_exit
27601
27602 # as_fn_unset VAR
27603 # ---------------
27604 # Portably unset VAR.
27605 as_fn_unset ()
27606 {
27607 { eval $1=; unset $1;}
27608 }
27609 as_unset=as_fn_unset
27610 # as_fn_append VAR VALUE
27611 # ----------------------
27612 # Append the text in VALUE to the end of the definition contained in VAR. Take
27613 # advantage of any shell optimizations that allow amortized linear growth over
27614 # repeated appends, instead of the typical quadratic growth present in naive
27615 # implementations.
27616 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27617 eval 'as_fn_append ()
27618 {
27619 eval $1+=\$2
27620 }'
27621 else
27622 as_fn_append ()
27623 {
27624 eval $1=\$$1\$2
27625 }
27626 fi # as_fn_append
27627
27628 # as_fn_arith ARG...
27629 # ------------------
27630 # Perform arithmetic evaluation on the ARGs, and store the result in the
27631 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27632 # must be portable across $(()) and expr.
27633 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27634 eval 'as_fn_arith ()
27635 {
27636 as_val=$(( $* ))
27637 }'
27638 else
27639 as_fn_arith ()
27640 {
27641 as_val=`expr "$@" || test $? -eq 1`
27642 }
27643 fi # as_fn_arith
27644
27645
27646 if expr a : '\(a\)' >/dev/null 2>&1 &&
27647 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27648 as_expr=expr
27649 else
27650 as_expr=false
27651 fi
27652
27653 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27654 as_basename=basename
27655 else
27656 as_basename=false
27657 fi
27658
27659 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27660 as_dirname=dirname
27661 else
27662 as_dirname=false
27663 fi
27664
27665 as_me=`$as_basename -- "$0" ||
27666 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27667 X"$0" : 'X\(//\)$' \| \
27668 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27669 $as_echo X/"$0" |
27670 sed '/^.*\/\([^/][^/]*\)\/*$/{
27671 s//\1/
27672 q
27673 }
27674 /^X\/\(\/\/\)$/{
27675 s//\1/
27676 q
27677 }
27678 /^X\/\(\/\).*/{
27679 s//\1/
27680 q
27681 }
27682 s/.*/./; q'`
27683
27684 # Avoid depending upon Character Ranges.
27685 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27686 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27687 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27688 as_cr_digits='0123456789'
27689 as_cr_alnum=$as_cr_Letters$as_cr_digits
27690
27691 ECHO_C= ECHO_N= ECHO_T=
27692 case `echo -n x` in #(((((
27693 -n*)
27694 case `echo 'xy\c'` in
27695 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27696 xy) ECHO_C='\c';;
27697 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27698 ECHO_T=' ';;
27699 esac;;
27700 *)
27701 ECHO_N='-n';;
27702 esac
27703
27704 rm -f conf$$ conf$$.exe conf$$.file
27705 if test -d conf$$.dir; then
27706 rm -f conf$$.dir/conf$$.file
27707 else
27708 rm -f conf$$.dir
27709 mkdir conf$$.dir 2>/dev/null
27710 fi
27711 if (echo >conf$$.file) 2>/dev/null; then
27712 if ln -s conf$$.file conf$$ 2>/dev/null; then
27713 as_ln_s='ln -s'
27714 # ... but there are two gotchas:
27715 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27716 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27717 # In both cases, we have to default to `cp -pR'.
27718 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27719 as_ln_s='cp -pR'
27720 elif ln conf$$.file conf$$ 2>/dev/null; then
27721 as_ln_s=ln
27722 else
27723 as_ln_s='cp -pR'
27724 fi
27725 else
27726 as_ln_s='cp -pR'
27727 fi
27728 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27729 rmdir conf$$.dir 2>/dev/null
27730
27731
27732 # as_fn_mkdir_p
27733 # -------------
27734 # Create "$as_dir" as a directory, including parents if necessary.
27735 as_fn_mkdir_p ()
27736 {
27737
27738 case $as_dir in #(
27739 -*) as_dir=./$as_dir;;
27740 esac
27741 test -d "$as_dir" || eval $as_mkdir_p || {
27742 as_dirs=
27743 while :; do
27744 case $as_dir in #(
27745 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27746 *) as_qdir=$as_dir;;
27747 esac
27748 as_dirs="'$as_qdir' $as_dirs"
27749 as_dir=`$as_dirname -- "$as_dir" ||
27750 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27751 X"$as_dir" : 'X\(//\)[^/]' \| \
27752 X"$as_dir" : 'X\(//\)$' \| \
27753 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27754 $as_echo X"$as_dir" |
27755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27756 s//\1/
27757 q
27758 }
27759 /^X\(\/\/\)[^/].*/{
27760 s//\1/
27761 q
27762 }
27763 /^X\(\/\/\)$/{
27764 s//\1/
27765 q
27766 }
27767 /^X\(\/\).*/{
27768 s//\1/
27769 q
27770 }
27771 s/.*/./; q'`
27772 test -d "$as_dir" && break
27773 done
27774 test -z "$as_dirs" || eval "mkdir $as_dirs"
27775 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
27776
27777
27778 } # as_fn_mkdir_p
27779 if mkdir -p . 2>/dev/null; then
27780 as_mkdir_p='mkdir -p "$as_dir"'
27781 else
27782 test -d ./-p && rmdir ./-p
27783 as_mkdir_p=false
27784 fi
27785
27786
27787 # as_fn_executable_p FILE
27788 # -----------------------
27789 # Test if FILE is an executable regular file.
27790 as_fn_executable_p ()
27791 {
27792 test -f "$1" && test -x "$1"
27793 } # as_fn_executable_p
27794 as_test_x='test -x'
27795 as_executable_p=as_fn_executable_p
27796
27797 # Sed expression to map a string onto a valid CPP name.
27798 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27799
27800 # Sed expression to map a string onto a valid variable name.
27801 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27802
27803
27804 exec 6>&1
27805 ## ----------------------------------- ##
27806 ## Main body of $CONFIG_STATUS script. ##
27807 ## ----------------------------------- ##
27808 _ASEOF
27809 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27810
27811 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27812 # Save the log message, to keep $0 and so on meaningful, and to
27813 # report actual input values of CONFIG_FILES etc. instead of their
27814 # values after options handling.
27815 ac_log="
27816 This file was extended by GNU Fortran Runtime Library $as_me 0.3, which was
27817 generated by GNU Autoconf 2.69. Invocation command line was
27818
27819 CONFIG_FILES = $CONFIG_FILES
27820 CONFIG_HEADERS = $CONFIG_HEADERS
27821 CONFIG_LINKS = $CONFIG_LINKS
27822 CONFIG_COMMANDS = $CONFIG_COMMANDS
27823 $ $0 $@
27824
27825 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27826 "
27827
27828 _ACEOF
27829
27830 case $ac_config_files in *"
27831 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27832 esac
27833
27834 case $ac_config_headers in *"
27835 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27836 esac
27837
27838
27839 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27840 # Files that config.status was made for.
27841 config_files="$ac_config_files"
27842 config_headers="$ac_config_headers"
27843 config_commands="$ac_config_commands"
27844
27845 _ACEOF
27846
27847 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27848 ac_cs_usage="\
27849 \`$as_me' instantiates files and other configuration actions
27850 from templates according to the current configuration. Unless the files
27851 and actions are specified as TAGs, all are instantiated by default.
27852
27853 Usage: $0 [OPTION]... [TAG]...
27854
27855 -h, --help print this help, then exit
27856 -V, --version print version number and configuration settings, then exit
27857 --config print configuration, then exit
27858 -q, --quiet, --silent
27859 do not print progress messages
27860 -d, --debug don't remove temporary files
27861 --recheck update $as_me by reconfiguring in the same conditions
27862 --file=FILE[:TEMPLATE]
27863 instantiate the configuration file FILE
27864 --header=FILE[:TEMPLATE]
27865 instantiate the configuration header FILE
27866
27867 Configuration files:
27868 $config_files
27869
27870 Configuration headers:
27871 $config_headers
27872
27873 Configuration commands:
27874 $config_commands
27875
27876 Report bugs to the package provider.
27877 GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
27878 General help using GNU software: <http://www.gnu.org/gethelp/>."
27879
27880 _ACEOF
27881 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27882 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
27883 ac_cs_version="\\
27884 GNU Fortran Runtime Library config.status 0.3
27885 configured by $0, generated by GNU Autoconf 2.69,
27886 with options \\"\$ac_cs_config\\"
27887
27888 Copyright (C) 2012 Free Software Foundation, Inc.
27889 This config.status script is free software; the Free Software Foundation
27890 gives unlimited permission to copy, distribute and modify it."
27891
27892 ac_pwd='$ac_pwd'
27893 srcdir='$srcdir'
27894 INSTALL='$INSTALL'
27895 MKDIR_P='$MKDIR_P'
27896 AWK='$AWK'
27897 test -n "\$AWK" || AWK=awk
27898 _ACEOF
27899
27900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27901 # The default lists apply if the user does not specify any file.
27902 ac_need_defaults=:
27903 while test $# != 0
27904 do
27905 case $1 in
27906 --*=?*)
27907 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27908 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27909 ac_shift=:
27910 ;;
27911 --*=)
27912 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27913 ac_optarg=
27914 ac_shift=:
27915 ;;
27916 *)
27917 ac_option=$1
27918 ac_optarg=$2
27919 ac_shift=shift
27920 ;;
27921 esac
27922
27923 case $ac_option in
27924 # Handling of the options.
27925 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27926 ac_cs_recheck=: ;;
27927 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27928 $as_echo "$ac_cs_version"; exit ;;
27929 --config | --confi | --conf | --con | --co | --c )
27930 $as_echo "$ac_cs_config"; exit ;;
27931 --debug | --debu | --deb | --de | --d | -d )
27932 debug=: ;;
27933 --file | --fil | --fi | --f )
27934 $ac_shift
27935 case $ac_optarg in
27936 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27937 '') as_fn_error $? "missing file argument" ;;
27938 esac
27939 as_fn_append CONFIG_FILES " '$ac_optarg'"
27940 ac_need_defaults=false;;
27941 --header | --heade | --head | --hea )
27942 $ac_shift
27943 case $ac_optarg in
27944 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27945 esac
27946 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27947 ac_need_defaults=false;;
27948 --he | --h)
27949 # Conflict between --help and --header
27950 as_fn_error $? "ambiguous option: \`$1'
27951 Try \`$0 --help' for more information.";;
27952 --help | --hel | -h )
27953 $as_echo "$ac_cs_usage"; exit ;;
27954 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27955 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27956 ac_cs_silent=: ;;
27957
27958 # This is an error.
27959 -*) as_fn_error $? "unrecognized option: \`$1'
27960 Try \`$0 --help' for more information." ;;
27961
27962 *) as_fn_append ac_config_targets " $1"
27963 ac_need_defaults=false ;;
27964
27965 esac
27966 shift
27967 done
27968
27969 ac_configure_extra_args=
27970
27971 if $ac_cs_silent; then
27972 exec 6>/dev/null
27973 ac_configure_extra_args="$ac_configure_extra_args --silent"
27974 fi
27975
27976 _ACEOF
27977 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27978 if \$ac_cs_recheck; then
27979 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27980 shift
27981 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27982 CONFIG_SHELL='$SHELL'
27983 export CONFIG_SHELL
27984 exec "\$@"
27985 fi
27986
27987 _ACEOF
27988 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27989 exec 5>>config.log
27990 {
27991 echo
27992 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27993 ## Running $as_me. ##
27994 _ASBOX
27995 $as_echo "$ac_log"
27996 } >&5
27997
27998 _ACEOF
27999 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28000 #
28001 # INIT-COMMANDS
28002 #
28003
28004 srcdir="$srcdir"
28005 host="$host"
28006 target="$target"
28007 with_multisubdir="$with_multisubdir"
28008 with_multisrctop="$with_multisrctop"
28009 with_target_subdir="$with_target_subdir"
28010 ac_configure_args="${multilib_arg} ${ac_configure_args}"
28011 multi_basedir="$multi_basedir"
28012 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
28013 CC="$CC"
28014 CXX="$CXX"
28015 GFORTRAN="$GFORTRAN"
28016 GDC="$GDC"
28017 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28018
28019
28020 # The HP-UX ksh and POSIX shell print the target directory to stdout
28021 # if CDPATH is set.
28022 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28023
28024 sed_quote_subst='$sed_quote_subst'
28025 double_quote_subst='$double_quote_subst'
28026 delay_variable_subst='$delay_variable_subst'
28027 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
28028 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
28029 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
28030 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
28031 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
28032 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
28033 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
28034 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
28035 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
28036 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
28037 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
28038 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
28039 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
28040 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
28041 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
28042 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
28043 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
28044 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
28045 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
28046 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
28047 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
28048 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
28049 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
28050 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
28051 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
28052 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
28053 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
28054 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
28055 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
28056 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
28057 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
28058 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
28059 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
28060 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
28061 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
28062 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
28063 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
28064 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
28065 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
28066 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
28067 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
28068 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
28069 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
28070 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
28071 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
28072 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
28073 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
28074 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
28075 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"`'
28076 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
28077 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
28078 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
28079 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
28080 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
28081 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
28082 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
28083 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
28084 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
28085 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
28086 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
28087 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
28088 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
28089 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
28090 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
28091 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
28092 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
28093 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
28094 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
28095 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
28096 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
28097 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
28098 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
28099 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
28100 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
28101 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
28102 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
28103 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
28104 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
28105 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
28106 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
28107 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
28108 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
28109 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
28110 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
28111 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
28112 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
28113 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
28114 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
28115 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
28116 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
28117 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
28118 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
28119 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
28120 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
28121 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
28122 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
28123 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
28124 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
28125 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
28126 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
28127 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
28128 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
28129 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
28130 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
28131 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
28132 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
28133 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
28134 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
28135 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
28136 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
28137 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
28138 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
28139 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
28140 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
28141 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
28142 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
28143 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
28144 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
28145 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
28146 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
28147 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
28148 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
28149 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
28150 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
28151 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
28152 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
28153 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
28154 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
28155 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
28156 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
28157 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
28158 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
28159 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
28160 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
28161 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
28162 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
28163 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
28164 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
28165 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
28166 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
28167 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
28168 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
28169 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
28170 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
28171 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
28172 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
28173 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
28174 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
28175 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
28176 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
28177 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
28178 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
28179 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
28180 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
28181 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
28182 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
28183 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
28184 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
28185 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
28186 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
28187 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
28188 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
28189 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
28190 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
28191 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
28192 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
28193 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
28194 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
28195 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
28196 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
28197 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
28198 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
28199 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
28200 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
28201 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
28202
28203 LTCC='$LTCC'
28204 LTCFLAGS='$LTCFLAGS'
28205 compiler='$compiler_DEFAULT'
28206
28207 # A function that is used when there is no print builtin or printf.
28208 func_fallback_echo ()
28209 {
28210 eval 'cat <<_LTECHO_EOF
28211 \$1
28212 _LTECHO_EOF'
28213 }
28214
28215 # Quote evaled strings.
28216 for var in SED \
28217 GREP \
28218 EGREP \
28219 FGREP \
28220 SHELL \
28221 ECHO \
28222 LD \
28223 NM \
28224 LN_S \
28225 lt_SP2NL \
28226 lt_NL2SP \
28227 reload_flag \
28228 OBJDUMP \
28229 deplibs_check_method \
28230 file_magic_cmd \
28231 AR \
28232 AR_FLAGS \
28233 STRIP \
28234 RANLIB \
28235 CC \
28236 CFLAGS \
28237 compiler \
28238 lt_cv_sys_global_symbol_pipe \
28239 lt_cv_sys_global_symbol_to_cdecl \
28240 lt_cv_sys_global_symbol_to_c_name_address \
28241 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
28242 lt_prog_compiler_no_builtin_flag \
28243 lt_prog_compiler_wl \
28244 lt_prog_compiler_pic \
28245 lt_prog_compiler_static \
28246 lt_cv_prog_compiler_c_o \
28247 need_locks \
28248 DSYMUTIL \
28249 NMEDIT \
28250 LIPO \
28251 OTOOL \
28252 OTOOL64 \
28253 shrext_cmds \
28254 export_dynamic_flag_spec \
28255 whole_archive_flag_spec \
28256 compiler_needs_object \
28257 with_gnu_ld \
28258 allow_undefined_flag \
28259 no_undefined_flag \
28260 hardcode_libdir_flag_spec \
28261 hardcode_libdir_flag_spec_ld \
28262 hardcode_libdir_separator \
28263 fix_srcfile_path \
28264 exclude_expsyms \
28265 include_expsyms \
28266 file_list_spec \
28267 variables_saved_for_relink \
28268 libname_spec \
28269 library_names_spec \
28270 soname_spec \
28271 install_override_mode \
28272 finish_eval \
28273 old_striplib \
28274 striplib \
28275 compiler_lib_search_dirs \
28276 predep_objects \
28277 postdep_objects \
28278 predeps \
28279 postdeps \
28280 compiler_lib_search_path \
28281 LD_FC \
28282 reload_flag_FC \
28283 compiler_FC \
28284 lt_prog_compiler_no_builtin_flag_FC \
28285 lt_prog_compiler_wl_FC \
28286 lt_prog_compiler_pic_FC \
28287 lt_prog_compiler_static_FC \
28288 lt_cv_prog_compiler_c_o_FC \
28289 export_dynamic_flag_spec_FC \
28290 whole_archive_flag_spec_FC \
28291 compiler_needs_object_FC \
28292 with_gnu_ld_FC \
28293 allow_undefined_flag_FC \
28294 no_undefined_flag_FC \
28295 hardcode_libdir_flag_spec_FC \
28296 hardcode_libdir_flag_spec_ld_FC \
28297 hardcode_libdir_separator_FC \
28298 fix_srcfile_path_FC \
28299 exclude_expsyms_FC \
28300 include_expsyms_FC \
28301 file_list_spec_FC \
28302 compiler_lib_search_dirs_FC \
28303 predep_objects_FC \
28304 postdep_objects_FC \
28305 predeps_FC \
28306 postdeps_FC \
28307 compiler_lib_search_path_FC; do
28308 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
28309 *[\\\\\\\`\\"\\\$]*)
28310 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
28311 ;;
28312 *)
28313 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28314 ;;
28315 esac
28316 done
28317
28318 # Double-quote double-evaled strings.
28319 for var in reload_cmds \
28320 old_postinstall_cmds \
28321 old_postuninstall_cmds \
28322 old_archive_cmds \
28323 extract_expsyms_cmds \
28324 old_archive_from_new_cmds \
28325 old_archive_from_expsyms_cmds \
28326 archive_cmds \
28327 archive_expsym_cmds \
28328 module_cmds \
28329 module_expsym_cmds \
28330 export_symbols_cmds \
28331 prelink_cmds \
28332 postinstall_cmds \
28333 postuninstall_cmds \
28334 finish_cmds \
28335 sys_lib_search_path_spec \
28336 sys_lib_dlsearch_path_spec \
28337 reload_cmds_FC \
28338 old_archive_cmds_FC \
28339 old_archive_from_new_cmds_FC \
28340 old_archive_from_expsyms_cmds_FC \
28341 archive_cmds_FC \
28342 archive_expsym_cmds_FC \
28343 module_cmds_FC \
28344 module_expsym_cmds_FC \
28345 export_symbols_cmds_FC \
28346 prelink_cmds_FC; do
28347 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
28348 *[\\\\\\\`\\"\\\$]*)
28349 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
28350 ;;
28351 *)
28352 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28353 ;;
28354 esac
28355 done
28356
28357 ac_aux_dir='$ac_aux_dir'
28358 xsi_shell='$xsi_shell'
28359 lt_shell_append='$lt_shell_append'
28360
28361 # See if we are running on zsh, and set the options which allow our
28362 # commands through without removal of \ escapes INIT.
28363 if test -n "\${ZSH_VERSION+set}" ; then
28364 setopt NO_GLOB_SUBST
28365 fi
28366
28367
28368 PACKAGE='$PACKAGE'
28369 VERSION='$VERSION'
28370 TIMESTAMP='$TIMESTAMP'
28371 RM='$RM'
28372 ofile='$ofile'
28373
28374
28375
28376
28377
28378
28379 GCC="$GCC"
28380 CC="$CC"
28381 acx_cv_header_stdint="$acx_cv_header_stdint"
28382 acx_cv_type_int8_t="$acx_cv_type_int8_t"
28383 acx_cv_type_int16_t="$acx_cv_type_int16_t"
28384 acx_cv_type_int32_t="$acx_cv_type_int32_t"
28385 acx_cv_type_int64_t="$acx_cv_type_int64_t"
28386 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
28387 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
28388 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
28389 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
28390 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
28391 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
28392 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
28393 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
28394 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
28395
28396
28397 _ACEOF
28398
28399 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28400
28401 # Handling of arguments.
28402 for ac_config_target in $ac_config_targets
28403 do
28404 case $ac_config_target in
28405 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
28406 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
28407 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28408 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
28409 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
28410 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28411 "libgfortran.spec") CONFIG_FILES="$CONFIG_FILES libgfortran.spec" ;;
28412
28413 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28414 esac
28415 done
28416
28417
28418 # If the user did not use the arguments to specify the items to instantiate,
28419 # then the envvar interface is used. Set only those that are not.
28420 # We use the long form for the default assignment because of an extremely
28421 # bizarre bug on SunOS 4.1.3.
28422 if $ac_need_defaults; then
28423 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28424 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28425 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28426 fi
28427
28428 # Have a temporary directory for convenience. Make it in the build tree
28429 # simply because there is no reason against having it here, and in addition,
28430 # creating and moving files from /tmp can sometimes cause problems.
28431 # Hook for its removal unless debugging.
28432 # Note that there is a small window in which the directory will not be cleaned:
28433 # after its creation but before its name has been assigned to `$tmp'.
28434 $debug ||
28435 {
28436 tmp= ac_tmp=
28437 trap 'exit_status=$?
28438 : "${ac_tmp:=$tmp}"
28439 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
28440 ' 0
28441 trap 'as_fn_exit 1' 1 2 13 15
28442 }
28443 # Create a (secure) tmp directory for tmp files.
28444
28445 {
28446 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28447 test -d "$tmp"
28448 } ||
28449 {
28450 tmp=./conf$$-$RANDOM
28451 (umask 077 && mkdir "$tmp")
28452 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
28453 ac_tmp=$tmp
28454
28455 # Set up the scripts for CONFIG_FILES section.
28456 # No need to generate them if there are no CONFIG_FILES.
28457 # This happens for instance with `./config.status config.h'.
28458 if test -n "$CONFIG_FILES"; then
28459
28460
28461 ac_cr=`echo X | tr X '\015'`
28462 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28463 # But we know of no other shell where ac_cr would be empty at this
28464 # point, so we can use a bashism as a fallback.
28465 if test "x$ac_cr" = x; then
28466 eval ac_cr=\$\'\\r\'
28467 fi
28468 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28469 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28470 ac_cs_awk_cr='\\r'
28471 else
28472 ac_cs_awk_cr=$ac_cr
28473 fi
28474
28475 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
28476 _ACEOF
28477
28478
28479 {
28480 echo "cat >conf$$subs.awk <<_ACEOF" &&
28481 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28482 echo "_ACEOF"
28483 } >conf$$subs.sh ||
28484 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28485 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
28486 ac_delim='%!_!# '
28487 for ac_last_try in false false false false false :; do
28488 . ./conf$$subs.sh ||
28489 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28490
28491 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28492 if test $ac_delim_n = $ac_delim_num; then
28493 break
28494 elif $ac_last_try; then
28495 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28496 else
28497 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28498 fi
28499 done
28500 rm -f conf$$subs.sh
28501
28502 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28503 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
28504 _ACEOF
28505 sed -n '
28506 h
28507 s/^/S["/; s/!.*/"]=/
28508 p
28509 g
28510 s/^[^!]*!//
28511 :repl
28512 t repl
28513 s/'"$ac_delim"'$//
28514 t delim
28515 :nl
28516 h
28517 s/\(.\{148\}\)..*/\1/
28518 t more1
28519 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28520 p
28521 n
28522 b repl
28523 :more1
28524 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28525 p
28526 g
28527 s/.\{148\}//
28528 t nl
28529 :delim
28530 h
28531 s/\(.\{148\}\)..*/\1/
28532 t more2
28533 s/["\\]/\\&/g; s/^/"/; s/$/"/
28534 p
28535 b
28536 :more2
28537 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28538 p
28539 g
28540 s/.\{148\}//
28541 t delim
28542 ' <conf$$subs.awk | sed '
28543 /^[^""]/{
28544 N
28545 s/\n//
28546 }
28547 ' >>$CONFIG_STATUS || ac_write_fail=1
28548 rm -f conf$$subs.awk
28549 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28550 _ACAWK
28551 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
28552 for (key in S) S_is_set[key] = 1
28553 FS = "\a"
28554
28555 }
28556 {
28557 line = $ 0
28558 nfields = split(line, field, "@")
28559 substed = 0
28560 len = length(field[1])
28561 for (i = 2; i < nfields; i++) {
28562 key = field[i]
28563 keylen = length(key)
28564 if (S_is_set[key]) {
28565 value = S[key]
28566 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28567 len += length(value) + length(field[++i])
28568 substed = 1
28569 } else
28570 len += 1 + keylen
28571 }
28572
28573 print line
28574 }
28575
28576 _ACAWK
28577 _ACEOF
28578 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28579 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28580 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28581 else
28582 cat
28583 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
28584 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
28585 _ACEOF
28586
28587 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
28588 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
28589 # trailing colons and then remove the whole line if VPATH becomes empty
28590 # (actually we leave an empty line to preserve line numbers).
28591 if test "x$srcdir" = x.; then
28592 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
28593 h
28594 s///
28595 s/^/:/
28596 s/[ ]*$/:/
28597 s/:\$(srcdir):/:/g
28598 s/:\${srcdir}:/:/g
28599 s/:@srcdir@:/:/g
28600 s/^:*//
28601 s/:*$//
28602 x
28603 s/\(=[ ]*\).*/\1/
28604 G
28605 s/\n//
28606 s/^[^=]*=[ ]*$//
28607 }'
28608 fi
28609
28610 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28611 fi # test -n "$CONFIG_FILES"
28612
28613 # Set up the scripts for CONFIG_HEADERS section.
28614 # No need to generate them if there are no CONFIG_HEADERS.
28615 # This happens for instance with `./config.status Makefile'.
28616 if test -n "$CONFIG_HEADERS"; then
28617 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
28618 BEGIN {
28619 _ACEOF
28620
28621 # Transform confdefs.h into an awk script `defines.awk', embedded as
28622 # here-document in config.status, that substitutes the proper values into
28623 # config.h.in to produce config.h.
28624
28625 # Create a delimiter string that does not exist in confdefs.h, to ease
28626 # handling of long lines.
28627 ac_delim='%!_!# '
28628 for ac_last_try in false false :; do
28629 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
28630 if test -z "$ac_tt"; then
28631 break
28632 elif $ac_last_try; then
28633 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
28634 else
28635 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28636 fi
28637 done
28638
28639 # For the awk script, D is an array of macro values keyed by name,
28640 # likewise P contains macro parameters if any. Preserve backslash
28641 # newline sequences.
28642
28643 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28644 sed -n '
28645 s/.\{148\}/&'"$ac_delim"'/g
28646 t rset
28647 :rset
28648 s/^[ ]*#[ ]*define[ ][ ]*/ /
28649 t def
28650 d
28651 :def
28652 s/\\$//
28653 t bsnl
28654 s/["\\]/\\&/g
28655 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28656 D["\1"]=" \3"/p
28657 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28658 d
28659 :bsnl
28660 s/["\\]/\\&/g
28661 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28662 D["\1"]=" \3\\\\\\n"\\/p
28663 t cont
28664 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28665 t cont
28666 d
28667 :cont
28668 n
28669 s/.\{148\}/&'"$ac_delim"'/g
28670 t clear
28671 :clear
28672 s/\\$//
28673 t bsnlc
28674 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28675 d
28676 :bsnlc
28677 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28678 b cont
28679 ' <confdefs.h | sed '
28680 s/'"$ac_delim"'/"\\\
28681 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28682
28683 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28684 for (key in D) D_is_set[key] = 1
28685 FS = "\a"
28686 }
28687 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28688 line = \$ 0
28689 split(line, arg, " ")
28690 if (arg[1] == "#") {
28691 defundef = arg[2]
28692 mac1 = arg[3]
28693 } else {
28694 defundef = substr(arg[1], 2)
28695 mac1 = arg[2]
28696 }
28697 split(mac1, mac2, "(") #)
28698 macro = mac2[1]
28699 prefix = substr(line, 1, index(line, defundef) - 1)
28700 if (D_is_set[macro]) {
28701 # Preserve the white space surrounding the "#".
28702 print prefix "define", macro P[macro] D[macro]
28703 next
28704 } else {
28705 # Replace #undef with comments. This is necessary, for example,
28706 # in the case of _POSIX_SOURCE, which is predefined and required
28707 # on some systems where configure will not decide to define it.
28708 if (defundef == "undef") {
28709 print "/*", prefix defundef, macro, "*/"
28710 next
28711 }
28712 }
28713 }
28714 { print }
28715 _ACAWK
28716 _ACEOF
28717 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28718 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
28719 fi # test -n "$CONFIG_HEADERS"
28720
28721
28722 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28723 shift
28724 for ac_tag
28725 do
28726 case $ac_tag in
28727 :[FHLC]) ac_mode=$ac_tag; continue;;
28728 esac
28729 case $ac_mode$ac_tag in
28730 :[FHL]*:*);;
28731 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
28732 :[FH]-) ac_tag=-:-;;
28733 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28734 esac
28735 ac_save_IFS=$IFS
28736 IFS=:
28737 set x $ac_tag
28738 IFS=$ac_save_IFS
28739 shift
28740 ac_file=$1
28741 shift
28742
28743 case $ac_mode in
28744 :L) ac_source=$1;;
28745 :[FH])
28746 ac_file_inputs=
28747 for ac_f
28748 do
28749 case $ac_f in
28750 -) ac_f="$ac_tmp/stdin";;
28751 *) # Look for the file first in the build tree, then in the source tree
28752 # (if the path is not absolute). The absolute path cannot be DOS-style,
28753 # because $ac_f cannot contain `:'.
28754 test -f "$ac_f" ||
28755 case $ac_f in
28756 [\\/$]*) false;;
28757 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28758 esac ||
28759 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28760 esac
28761 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28762 as_fn_append ac_file_inputs " '$ac_f'"
28763 done
28764
28765 # Let's still pretend it is `configure' which instantiates (i.e., don't
28766 # use $as_me), people would be surprised to read:
28767 # /* config.h. Generated by config.status. */
28768 configure_input='Generated from '`
28769 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28770 `' by configure.'
28771 if test x"$ac_file" != x-; then
28772 configure_input="$ac_file. $configure_input"
28773 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28774 $as_echo "$as_me: creating $ac_file" >&6;}
28775 fi
28776 # Neutralize special characters interpreted by sed in replacement strings.
28777 case $configure_input in #(
28778 *\&* | *\|* | *\\* )
28779 ac_sed_conf_input=`$as_echo "$configure_input" |
28780 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28781 *) ac_sed_conf_input=$configure_input;;
28782 esac
28783
28784 case $ac_tag in
28785 *:-:* | *:-) cat >"$ac_tmp/stdin" \
28786 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
28787 esac
28788 ;;
28789 esac
28790
28791 ac_dir=`$as_dirname -- "$ac_file" ||
28792 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28793 X"$ac_file" : 'X\(//\)[^/]' \| \
28794 X"$ac_file" : 'X\(//\)$' \| \
28795 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28796 $as_echo X"$ac_file" |
28797 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28798 s//\1/
28799 q
28800 }
28801 /^X\(\/\/\)[^/].*/{
28802 s//\1/
28803 q
28804 }
28805 /^X\(\/\/\)$/{
28806 s//\1/
28807 q
28808 }
28809 /^X\(\/\).*/{
28810 s//\1/
28811 q
28812 }
28813 s/.*/./; q'`
28814 as_dir="$ac_dir"; as_fn_mkdir_p
28815 ac_builddir=.
28816
28817 case "$ac_dir" in
28818 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28819 *)
28820 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28821 # A ".." for each directory in $ac_dir_suffix.
28822 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28823 case $ac_top_builddir_sub in
28824 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28825 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28826 esac ;;
28827 esac
28828 ac_abs_top_builddir=$ac_pwd
28829 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28830 # for backward compatibility:
28831 ac_top_builddir=$ac_top_build_prefix
28832
28833 case $srcdir in
28834 .) # We are building in place.
28835 ac_srcdir=.
28836 ac_top_srcdir=$ac_top_builddir_sub
28837 ac_abs_top_srcdir=$ac_pwd ;;
28838 [\\/]* | ?:[\\/]* ) # Absolute name.
28839 ac_srcdir=$srcdir$ac_dir_suffix;
28840 ac_top_srcdir=$srcdir
28841 ac_abs_top_srcdir=$srcdir ;;
28842 *) # Relative name.
28843 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28844 ac_top_srcdir=$ac_top_build_prefix$srcdir
28845 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28846 esac
28847 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28848
28849
28850 case $ac_mode in
28851 :F)
28852 #
28853 # CONFIG_FILE
28854 #
28855
28856 case $INSTALL in
28857 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28858 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28859 esac
28860 ac_MKDIR_P=$MKDIR_P
28861 case $MKDIR_P in
28862 [\\/$]* | ?:[\\/]* ) ;;
28863 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28864 esac
28865 _ACEOF
28866
28867 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28868 # If the template does not know about datarootdir, expand it.
28869 # FIXME: This hack should be removed a few years after 2.60.
28870 ac_datarootdir_hack=; ac_datarootdir_seen=
28871 ac_sed_dataroot='
28872 /datarootdir/ {
28873 p
28874 q
28875 }
28876 /@datadir@/p
28877 /@docdir@/p
28878 /@infodir@/p
28879 /@localedir@/p
28880 /@mandir@/p'
28881 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28882 *datarootdir*) ac_datarootdir_seen=yes;;
28883 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28885 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28886 _ACEOF
28887 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28888 ac_datarootdir_hack='
28889 s&@datadir@&$datadir&g
28890 s&@docdir@&$docdir&g
28891 s&@infodir@&$infodir&g
28892 s&@localedir@&$localedir&g
28893 s&@mandir@&$mandir&g
28894 s&\\\${datarootdir}&$datarootdir&g' ;;
28895 esac
28896 _ACEOF
28897
28898 # Neutralize VPATH when `$srcdir' = `.'.
28899 # Shell code in configure.ac might set extrasub.
28900 # FIXME: do we really want to maintain this feature?
28901 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28902 ac_sed_extra="$ac_vpsub
28903 $extrasub
28904 _ACEOF
28905 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28906 :t
28907 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28908 s|@configure_input@|$ac_sed_conf_input|;t t
28909 s&@top_builddir@&$ac_top_builddir_sub&;t t
28910 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28911 s&@srcdir@&$ac_srcdir&;t t
28912 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28913 s&@top_srcdir@&$ac_top_srcdir&;t t
28914 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28915 s&@builddir@&$ac_builddir&;t t
28916 s&@abs_builddir@&$ac_abs_builddir&;t t
28917 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28918 s&@INSTALL@&$ac_INSTALL&;t t
28919 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28920 $ac_datarootdir_hack
28921 "
28922 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
28923 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28924
28925 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28926 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
28927 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
28928 "$ac_tmp/out"`; test -z "$ac_out"; } &&
28929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28930 which seems to be undefined. Please make sure it is defined" >&5
28931 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28932 which seems to be undefined. Please make sure it is defined" >&2;}
28933
28934 rm -f "$ac_tmp/stdin"
28935 case $ac_file in
28936 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
28937 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
28938 esac \
28939 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28940 ;;
28941 :H)
28942 #
28943 # CONFIG_HEADER
28944 #
28945 if test x"$ac_file" != x-; then
28946 {
28947 $as_echo "/* $configure_input */" \
28948 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
28949 } >"$ac_tmp/config.h" \
28950 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28951 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
28952 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28953 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28954 else
28955 rm -f "$ac_file"
28956 mv "$ac_tmp/config.h" "$ac_file" \
28957 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28958 fi
28959 else
28960 $as_echo "/* $configure_input */" \
28961 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
28962 || as_fn_error $? "could not create -" "$LINENO" 5
28963 fi
28964 # Compute "$ac_file"'s index in $config_headers.
28965 _am_arg="$ac_file"
28966 _am_stamp_count=1
28967 for _am_header in $config_headers :; do
28968 case $_am_header in
28969 $_am_arg | $_am_arg:* )
28970 break ;;
28971 * )
28972 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28973 esac
28974 done
28975 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28976 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28977 X"$_am_arg" : 'X\(//\)[^/]' \| \
28978 X"$_am_arg" : 'X\(//\)$' \| \
28979 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28980 $as_echo X"$_am_arg" |
28981 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28982 s//\1/
28983 q
28984 }
28985 /^X\(\/\/\)[^/].*/{
28986 s//\1/
28987 q
28988 }
28989 /^X\(\/\/\)$/{
28990 s//\1/
28991 q
28992 }
28993 /^X\(\/\).*/{
28994 s//\1/
28995 q
28996 }
28997 s/.*/./; q'`/stamp-h$_am_stamp_count
28998 ;;
28999
29000 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29001 $as_echo "$as_me: executing $ac_file commands" >&6;}
29002 ;;
29003 esac
29004
29005
29006 case $ac_file$ac_mode in
29007 "default-1":C)
29008 # Only add multilib support code if we just rebuilt the top-level
29009 # Makefile.
29010 case " $CONFIG_FILES " in
29011 *" Makefile "*)
29012 ac_file=Makefile . ${multi_basedir}/config-ml.in
29013 ;;
29014 esac ;;
29015 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
29016 # Older Autoconf quotes --file arguments for eval, but not when files
29017 # are listed without --file. Let's play safe and only enable the eval
29018 # if we detect the quoting.
29019 case $CONFIG_FILES in
29020 *\'*) eval set x "$CONFIG_FILES" ;;
29021 *) set x $CONFIG_FILES ;;
29022 esac
29023 shift
29024 for mf
29025 do
29026 # Strip MF so we end up with the name of the file.
29027 mf=`echo "$mf" | sed -e 's/:.*$//'`
29028 # Check whether this is an Automake generated Makefile or not.
29029 # We used to match only the files named 'Makefile.in', but
29030 # some people rename them; so instead we look at the file content.
29031 # Grep'ing the first line is not enough: some people post-process
29032 # each Makefile.in and add a new line on top of each file to say so.
29033 # Grep'ing the whole file is not good either: AIX grep has a line
29034 # limit of 2048, but all sed's we know have understand at least 4000.
29035 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
29036 dirpart=`$as_dirname -- "$mf" ||
29037 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29038 X"$mf" : 'X\(//\)[^/]' \| \
29039 X"$mf" : 'X\(//\)$' \| \
29040 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
29041 $as_echo X"$mf" |
29042 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29043 s//\1/
29044 q
29045 }
29046 /^X\(\/\/\)[^/].*/{
29047 s//\1/
29048 q
29049 }
29050 /^X\(\/\/\)$/{
29051 s//\1/
29052 q
29053 }
29054 /^X\(\/\).*/{
29055 s//\1/
29056 q
29057 }
29058 s/.*/./; q'`
29059 else
29060 continue
29061 fi
29062 # Extract the definition of DEPDIR, am__include, and am__quote
29063 # from the Makefile without running 'make'.
29064 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
29065 test -z "$DEPDIR" && continue
29066 am__include=`sed -n 's/^am__include = //p' < "$mf"`
29067 test -z "$am__include" && continue
29068 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
29069 # Find all dependency output files, they are included files with
29070 # $(DEPDIR) in their names. We invoke sed twice because it is the
29071 # simplest approach to changing $(DEPDIR) to its actual value in the
29072 # expansion.
29073 for file in `sed -n "
29074 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
29075 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
29076 # Make sure the directory exists.
29077 test -f "$dirpart/$file" && continue
29078 fdir=`$as_dirname -- "$file" ||
29079 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29080 X"$file" : 'X\(//\)[^/]' \| \
29081 X"$file" : 'X\(//\)$' \| \
29082 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
29083 $as_echo X"$file" |
29084 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29085 s//\1/
29086 q
29087 }
29088 /^X\(\/\/\)[^/].*/{
29089 s//\1/
29090 q
29091 }
29092 /^X\(\/\/\)$/{
29093 s//\1/
29094 q
29095 }
29096 /^X\(\/\).*/{
29097 s//\1/
29098 q
29099 }
29100 s/.*/./; q'`
29101 as_dir=$dirpart/$fdir; as_fn_mkdir_p
29102 # echo "creating $dirpart/$file"
29103 echo '# dummy' > "$dirpart/$file"
29104 done
29105 done
29106 }
29107 ;;
29108 "libtool":C)
29109
29110 # See if we are running on zsh, and set the options which allow our
29111 # commands through without removal of \ escapes.
29112 if test -n "${ZSH_VERSION+set}" ; then
29113 setopt NO_GLOB_SUBST
29114 fi
29115
29116 cfgfile="${ofile}T"
29117 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
29118 $RM "$cfgfile"
29119
29120 cat <<_LT_EOF >> "$cfgfile"
29121 #! $SHELL
29122
29123 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
29124 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
29125 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
29126 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
29127 #
29128 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
29129 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
29130 # Written by Gordon Matzigkeit, 1996
29131 #
29132 # This file is part of GNU Libtool.
29133 #
29134 # GNU Libtool is free software; you can redistribute it and/or
29135 # modify it under the terms of the GNU General Public License as
29136 # published by the Free Software Foundation; either version 2 of
29137 # the License, or (at your option) any later version.
29138 #
29139 # As a special exception to the GNU General Public License,
29140 # if you distribute this file as part of a program or library that
29141 # is built using GNU Libtool, you may include this file under the
29142 # same distribution terms that you use for the rest of that program.
29143 #
29144 # GNU Libtool is distributed in the hope that it will be useful,
29145 # but WITHOUT ANY WARRANTY; without even the implied warranty of
29146 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29147 # GNU General Public License for more details.
29148 #
29149 # You should have received a copy of the GNU General Public License
29150 # along with GNU Libtool; see the file COPYING. If not, a copy
29151 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
29152 # obtained by writing to the Free Software Foundation, Inc.,
29153 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
29154
29155
29156 # The names of the tagged configurations supported by this script.
29157 available_tags="FC "
29158
29159 # ### BEGIN LIBTOOL CONFIG
29160
29161 # A sed program that does not truncate output.
29162 SED=$lt_SED
29163
29164 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
29165 Xsed="\$SED -e 1s/^X//"
29166
29167 # A grep program that handles long lines.
29168 GREP=$lt_GREP
29169
29170 # An ERE matcher.
29171 EGREP=$lt_EGREP
29172
29173 # A literal string matcher.
29174 FGREP=$lt_FGREP
29175
29176 # Shell to use when invoking shell scripts.
29177 SHELL=$lt_SHELL
29178
29179 # An echo program that protects backslashes.
29180 ECHO=$lt_ECHO
29181
29182 # Which release of libtool.m4 was used?
29183 macro_version=$macro_version
29184 macro_revision=$macro_revision
29185
29186 # Whether or not to build shared libraries.
29187 build_libtool_libs=$enable_shared
29188
29189 # Whether or not to build static libraries.
29190 build_old_libs=$enable_static
29191
29192 # What type of objects to build.
29193 pic_mode=$pic_mode
29194
29195 # Whether or not to optimize for fast installation.
29196 fast_install=$enable_fast_install
29197
29198 # The host system.
29199 host_alias=$host_alias
29200 host=$host
29201 host_os=$host_os
29202
29203 # The build system.
29204 build_alias=$build_alias
29205 build=$build
29206 build_os=$build_os
29207
29208 # A BSD- or MS-compatible name lister.
29209 NM=$lt_NM
29210
29211 # Whether we need soft or hard links.
29212 LN_S=$lt_LN_S
29213
29214 # What is the maximum length of a command?
29215 max_cmd_len=$max_cmd_len
29216
29217 # Object file suffix (normally "o").
29218 objext=$ac_objext
29219
29220 # Executable file suffix (normally "").
29221 exeext=$exeext
29222
29223 # whether the shell understands "unset".
29224 lt_unset=$lt_unset
29225
29226 # turn spaces into newlines.
29227 SP2NL=$lt_lt_SP2NL
29228
29229 # turn newlines into spaces.
29230 NL2SP=$lt_lt_NL2SP
29231
29232 # An object symbol dumper.
29233 OBJDUMP=$lt_OBJDUMP
29234
29235 # Method to check whether dependent libraries are shared objects.
29236 deplibs_check_method=$lt_deplibs_check_method
29237
29238 # Command to use when deplibs_check_method == "file_magic".
29239 file_magic_cmd=$lt_file_magic_cmd
29240
29241 # The archiver.
29242 AR=$lt_AR
29243 AR_FLAGS=$lt_AR_FLAGS
29244
29245 # A symbol stripping program.
29246 STRIP=$lt_STRIP
29247
29248 # Commands used to install an old-style archive.
29249 RANLIB=$lt_RANLIB
29250 old_postinstall_cmds=$lt_old_postinstall_cmds
29251 old_postuninstall_cmds=$lt_old_postuninstall_cmds
29252
29253 # Whether to use a lock for old archive extraction.
29254 lock_old_archive_extraction=$lock_old_archive_extraction
29255
29256 # A C compiler.
29257 LTCC=$lt_CC
29258
29259 # LTCC compiler flags.
29260 LTCFLAGS=$lt_CFLAGS
29261
29262 # Take the output of nm and produce a listing of raw symbols and C names.
29263 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
29264
29265 # Transform the output of nm in a proper C declaration.
29266 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
29267
29268 # Transform the output of nm in a C name address pair.
29269 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
29270
29271 # Transform the output of nm in a C name address pair when lib prefix is needed.
29272 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
29273
29274 # The name of the directory that contains temporary libtool files.
29275 objdir=$objdir
29276
29277 # Used to examine libraries when file_magic_cmd begins with "file".
29278 MAGIC_CMD=$MAGIC_CMD
29279
29280 # Must we lock files when doing compilation?
29281 need_locks=$lt_need_locks
29282
29283 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
29284 DSYMUTIL=$lt_DSYMUTIL
29285
29286 # Tool to change global to local symbols on Mac OS X.
29287 NMEDIT=$lt_NMEDIT
29288
29289 # Tool to manipulate fat objects and archives on Mac OS X.
29290 LIPO=$lt_LIPO
29291
29292 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
29293 OTOOL=$lt_OTOOL
29294
29295 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
29296 OTOOL64=$lt_OTOOL64
29297
29298 # Old archive suffix (normally "a").
29299 libext=$libext
29300
29301 # Shared library suffix (normally ".so").
29302 shrext_cmds=$lt_shrext_cmds
29303
29304 # The commands to extract the exported symbol list from a shared archive.
29305 extract_expsyms_cmds=$lt_extract_expsyms_cmds
29306
29307 # Variables whose values should be saved in libtool wrapper scripts and
29308 # restored at link time.
29309 variables_saved_for_relink=$lt_variables_saved_for_relink
29310
29311 # Do we need the "lib" prefix for modules?
29312 need_lib_prefix=$need_lib_prefix
29313
29314 # Do we need a version for libraries?
29315 need_version=$need_version
29316
29317 # Library versioning type.
29318 version_type=$version_type
29319
29320 # Shared library runtime path variable.
29321 runpath_var=$runpath_var
29322
29323 # Shared library path variable.
29324 shlibpath_var=$shlibpath_var
29325
29326 # Is shlibpath searched before the hard-coded library search path?
29327 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
29328
29329 # Format of library name prefix.
29330 libname_spec=$lt_libname_spec
29331
29332 # List of archive names. First name is the real one, the rest are links.
29333 # The last name is the one that the linker finds with -lNAME
29334 library_names_spec=$lt_library_names_spec
29335
29336 # The coded name of the library, if different from the real name.
29337 soname_spec=$lt_soname_spec
29338
29339 # Permission mode override for installation of shared libraries.
29340 install_override_mode=$lt_install_override_mode
29341
29342 # Command to use after installation of a shared archive.
29343 postinstall_cmds=$lt_postinstall_cmds
29344
29345 # Command to use after uninstallation of a shared archive.
29346 postuninstall_cmds=$lt_postuninstall_cmds
29347
29348 # Commands used to finish a libtool library installation in a directory.
29349 finish_cmds=$lt_finish_cmds
29350
29351 # As "finish_cmds", except a single script fragment to be evaled but
29352 # not shown.
29353 finish_eval=$lt_finish_eval
29354
29355 # Whether we should hardcode library paths into libraries.
29356 hardcode_into_libs=$hardcode_into_libs
29357
29358 # Compile-time system search path for libraries.
29359 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
29360
29361 # Run-time system search path for libraries.
29362 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
29363
29364 # Whether dlopen is supported.
29365 dlopen_support=$enable_dlopen
29366
29367 # Whether dlopen of programs is supported.
29368 dlopen_self=$enable_dlopen_self
29369
29370 # Whether dlopen of statically linked programs is supported.
29371 dlopen_self_static=$enable_dlopen_self_static
29372
29373 # Commands to strip libraries.
29374 old_striplib=$lt_old_striplib
29375 striplib=$lt_striplib
29376
29377
29378 # The linker used to build libraries.
29379 LD=$lt_LD
29380
29381 # How to create reloadable object files.
29382 reload_flag=$lt_reload_flag
29383 reload_cmds=$lt_reload_cmds
29384
29385 # Commands used to build an old-style archive.
29386 old_archive_cmds=$lt_old_archive_cmds
29387
29388 # A language specific compiler.
29389 CC=$lt_compiler
29390
29391 # Is the compiler the GNU compiler?
29392 with_gcc=$GCC
29393
29394 # Compiler flag to turn off builtin functions.
29395 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
29396
29397 # How to pass a linker flag through the compiler.
29398 wl=$lt_lt_prog_compiler_wl
29399
29400 # Additional compiler flags for building library objects.
29401 pic_flag=$lt_lt_prog_compiler_pic
29402
29403 # Compiler flag to prevent dynamic linking.
29404 link_static_flag=$lt_lt_prog_compiler_static
29405
29406 # Does compiler simultaneously support -c and -o options?
29407 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
29408
29409 # Whether or not to add -lc for building shared libraries.
29410 build_libtool_need_lc=$archive_cmds_need_lc
29411
29412 # Whether or not to disallow shared libs when runtime libs are static.
29413 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
29414
29415 # Compiler flag to allow reflexive dlopens.
29416 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
29417
29418 # Compiler flag to generate shared objects directly from archives.
29419 whole_archive_flag_spec=$lt_whole_archive_flag_spec
29420
29421 # Whether the compiler copes with passing no objects directly.
29422 compiler_needs_object=$lt_compiler_needs_object
29423
29424 # Create an old-style archive from a shared archive.
29425 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
29426
29427 # Create a temporary old-style archive to link instead of a shared archive.
29428 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
29429
29430 # Commands used to build a shared archive.
29431 archive_cmds=$lt_archive_cmds
29432 archive_expsym_cmds=$lt_archive_expsym_cmds
29433
29434 # Commands used to build a loadable module if different from building
29435 # a shared archive.
29436 module_cmds=$lt_module_cmds
29437 module_expsym_cmds=$lt_module_expsym_cmds
29438
29439 # Whether we are building with GNU ld or not.
29440 with_gnu_ld=$lt_with_gnu_ld
29441
29442 # Flag that allows shared libraries with undefined symbols to be built.
29443 allow_undefined_flag=$lt_allow_undefined_flag
29444
29445 # Flag that enforces no undefined symbols.
29446 no_undefined_flag=$lt_no_undefined_flag
29447
29448 # Flag to hardcode \$libdir into a binary during linking.
29449 # This must work even if \$libdir does not exist
29450 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
29451
29452 # If ld is used when linking, flag to hardcode \$libdir into a binary
29453 # during linking. This must work even if \$libdir does not exist.
29454 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
29455
29456 # Whether we need a single "-rpath" flag with a separated argument.
29457 hardcode_libdir_separator=$lt_hardcode_libdir_separator
29458
29459 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29460 # DIR into the resulting binary.
29461 hardcode_direct=$hardcode_direct
29462
29463 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29464 # DIR into the resulting binary and the resulting library dependency is
29465 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29466 # library is relocated.
29467 hardcode_direct_absolute=$hardcode_direct_absolute
29468
29469 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29470 # into the resulting binary.
29471 hardcode_minus_L=$hardcode_minus_L
29472
29473 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29474 # into the resulting binary.
29475 hardcode_shlibpath_var=$hardcode_shlibpath_var
29476
29477 # Set to "yes" if building a shared library automatically hardcodes DIR
29478 # into the library and all subsequent libraries and executables linked
29479 # against it.
29480 hardcode_automatic=$hardcode_automatic
29481
29482 # Set to yes if linker adds runtime paths of dependent libraries
29483 # to runtime path list.
29484 inherit_rpath=$inherit_rpath
29485
29486 # Whether libtool must link a program against all its dependency libraries.
29487 link_all_deplibs=$link_all_deplibs
29488
29489 # Fix the shell variable \$srcfile for the compiler.
29490 fix_srcfile_path=$lt_fix_srcfile_path
29491
29492 # Set to "yes" if exported symbols are required.
29493 always_export_symbols=$always_export_symbols
29494
29495 # The commands to list exported symbols.
29496 export_symbols_cmds=$lt_export_symbols_cmds
29497
29498 # Symbols that should not be listed in the preloaded symbols.
29499 exclude_expsyms=$lt_exclude_expsyms
29500
29501 # Symbols that must always be exported.
29502 include_expsyms=$lt_include_expsyms
29503
29504 # Commands necessary for linking programs (against libraries) with templates.
29505 prelink_cmds=$lt_prelink_cmds
29506
29507 # Specify filename containing input files.
29508 file_list_spec=$lt_file_list_spec
29509
29510 # How to hardcode a shared library path into an executable.
29511 hardcode_action=$hardcode_action
29512
29513 # The directories searched by this compiler when creating a shared library.
29514 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
29515
29516 # Dependencies to place before and after the objects being linked to
29517 # create a shared library.
29518 predep_objects=$lt_predep_objects
29519 postdep_objects=$lt_postdep_objects
29520 predeps=$lt_predeps
29521 postdeps=$lt_postdeps
29522
29523 # The library search path used internally by the compiler when linking
29524 # a shared library.
29525 compiler_lib_search_path=$lt_compiler_lib_search_path
29526
29527 # ### END LIBTOOL CONFIG
29528
29529 _LT_EOF
29530
29531 case $host_os in
29532 aix3*)
29533 cat <<\_LT_EOF >> "$cfgfile"
29534 # AIX sometimes has problems with the GCC collect2 program. For some
29535 # reason, if we set the COLLECT_NAMES environment variable, the problems
29536 # vanish in a puff of smoke.
29537 if test "X${COLLECT_NAMES+set}" != Xset; then
29538 COLLECT_NAMES=
29539 export COLLECT_NAMES
29540 fi
29541 _LT_EOF
29542 ;;
29543 esac
29544
29545
29546 ltmain="$ac_aux_dir/ltmain.sh"
29547
29548
29549 # We use sed instead of cat because bash on DJGPP gets confused if
29550 # if finds mixed CR/LF and LF-only lines. Since sed operates in
29551 # text mode, it properly converts lines to CR/LF. This bash problem
29552 # is reportedly fixed, but why not run on old versions too?
29553 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
29554 || (rm -f "$cfgfile"; exit 1)
29555
29556 case $xsi_shell in
29557 yes)
29558 cat << \_LT_EOF >> "$cfgfile"
29559
29560 # func_dirname file append nondir_replacement
29561 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
29562 # otherwise set result to NONDIR_REPLACEMENT.
29563 func_dirname ()
29564 {
29565 case ${1} in
29566 */*) func_dirname_result="${1%/*}${2}" ;;
29567 * ) func_dirname_result="${3}" ;;
29568 esac
29569 }
29570
29571 # func_basename file
29572 func_basename ()
29573 {
29574 func_basename_result="${1##*/}"
29575 }
29576
29577 # func_dirname_and_basename file append nondir_replacement
29578 # perform func_basename and func_dirname in a single function
29579 # call:
29580 # dirname: Compute the dirname of FILE. If nonempty,
29581 # add APPEND to the result, otherwise set result
29582 # to NONDIR_REPLACEMENT.
29583 # value returned in "$func_dirname_result"
29584 # basename: Compute filename of FILE.
29585 # value retuned in "$func_basename_result"
29586 # Implementation must be kept synchronized with func_dirname
29587 # and func_basename. For efficiency, we do not delegate to
29588 # those functions but instead duplicate the functionality here.
29589 func_dirname_and_basename ()
29590 {
29591 case ${1} in
29592 */*) func_dirname_result="${1%/*}${2}" ;;
29593 * ) func_dirname_result="${3}" ;;
29594 esac
29595 func_basename_result="${1##*/}"
29596 }
29597
29598 # func_stripname prefix suffix name
29599 # strip PREFIX and SUFFIX off of NAME.
29600 # PREFIX and SUFFIX must not contain globbing or regex special
29601 # characters, hashes, percent signs, but SUFFIX may contain a leading
29602 # dot (in which case that matches only a dot).
29603 func_stripname ()
29604 {
29605 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
29606 # positional parameters, so assign one to ordinary parameter first.
29607 func_stripname_result=${3}
29608 func_stripname_result=${func_stripname_result#"${1}"}
29609 func_stripname_result=${func_stripname_result%"${2}"}
29610 }
29611
29612 # func_opt_split
29613 func_opt_split ()
29614 {
29615 func_opt_split_opt=${1%%=*}
29616 func_opt_split_arg=${1#*=}
29617 }
29618
29619 # func_lo2o object
29620 func_lo2o ()
29621 {
29622 case ${1} in
29623 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
29624 *) func_lo2o_result=${1} ;;
29625 esac
29626 }
29627
29628 # func_xform libobj-or-source
29629 func_xform ()
29630 {
29631 func_xform_result=${1%.*}.lo
29632 }
29633
29634 # func_arith arithmetic-term...
29635 func_arith ()
29636 {
29637 func_arith_result=$(( $* ))
29638 }
29639
29640 # func_len string
29641 # STRING may not start with a hyphen.
29642 func_len ()
29643 {
29644 func_len_result=${#1}
29645 }
29646
29647 _LT_EOF
29648 ;;
29649 *) # Bourne compatible functions.
29650 cat << \_LT_EOF >> "$cfgfile"
29651
29652 # func_dirname file append nondir_replacement
29653 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
29654 # otherwise set result to NONDIR_REPLACEMENT.
29655 func_dirname ()
29656 {
29657 # Extract subdirectory from the argument.
29658 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
29659 if test "X$func_dirname_result" = "X${1}"; then
29660 func_dirname_result="${3}"
29661 else
29662 func_dirname_result="$func_dirname_result${2}"
29663 fi
29664 }
29665
29666 # func_basename file
29667 func_basename ()
29668 {
29669 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
29670 }
29671
29672
29673 # func_stripname prefix suffix name
29674 # strip PREFIX and SUFFIX off of NAME.
29675 # PREFIX and SUFFIX must not contain globbing or regex special
29676 # characters, hashes, percent signs, but SUFFIX may contain a leading
29677 # dot (in which case that matches only a dot).
29678 # func_strip_suffix prefix name
29679 func_stripname ()
29680 {
29681 case ${2} in
29682 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
29683 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
29684 esac
29685 }
29686
29687 # sed scripts:
29688 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
29689 my_sed_long_arg='1s/^-[^=]*=//'
29690
29691 # func_opt_split
29692 func_opt_split ()
29693 {
29694 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
29695 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
29696 }
29697
29698 # func_lo2o object
29699 func_lo2o ()
29700 {
29701 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
29702 }
29703
29704 # func_xform libobj-or-source
29705 func_xform ()
29706 {
29707 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
29708 }
29709
29710 # func_arith arithmetic-term...
29711 func_arith ()
29712 {
29713 func_arith_result=`expr "$@"`
29714 }
29715
29716 # func_len string
29717 # STRING may not start with a hyphen.
29718 func_len ()
29719 {
29720 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
29721 }
29722
29723 _LT_EOF
29724 esac
29725
29726 case $lt_shell_append in
29727 yes)
29728 cat << \_LT_EOF >> "$cfgfile"
29729
29730 # func_append var value
29731 # Append VALUE to the end of shell variable VAR.
29732 func_append ()
29733 {
29734 eval "$1+=\$2"
29735 }
29736 _LT_EOF
29737 ;;
29738 *)
29739 cat << \_LT_EOF >> "$cfgfile"
29740
29741 # func_append var value
29742 # Append VALUE to the end of shell variable VAR.
29743 func_append ()
29744 {
29745 eval "$1=\$$1\$2"
29746 }
29747
29748 _LT_EOF
29749 ;;
29750 esac
29751
29752
29753 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
29754 || (rm -f "$cfgfile"; exit 1)
29755
29756 mv -f "$cfgfile" "$ofile" ||
29757 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
29758 chmod +x "$ofile"
29759
29760
29761 cat <<_LT_EOF >> "$ofile"
29762
29763 # ### BEGIN LIBTOOL TAG CONFIG: FC
29764
29765 # The linker used to build libraries.
29766 LD=$lt_LD_FC
29767
29768 # How to create reloadable object files.
29769 reload_flag=$lt_reload_flag_FC
29770 reload_cmds=$lt_reload_cmds_FC
29771
29772 # Commands used to build an old-style archive.
29773 old_archive_cmds=$lt_old_archive_cmds_FC
29774
29775 # A language specific compiler.
29776 CC=$lt_compiler_FC
29777
29778 # Is the compiler the GNU compiler?
29779 with_gcc=$GCC_FC
29780
29781 # Compiler flag to turn off builtin functions.
29782 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
29783
29784 # How to pass a linker flag through the compiler.
29785 wl=$lt_lt_prog_compiler_wl_FC
29786
29787 # Additional compiler flags for building library objects.
29788 pic_flag=$lt_lt_prog_compiler_pic_FC
29789
29790 # Compiler flag to prevent dynamic linking.
29791 link_static_flag=$lt_lt_prog_compiler_static_FC
29792
29793 # Does compiler simultaneously support -c and -o options?
29794 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
29795
29796 # Whether or not to add -lc for building shared libraries.
29797 build_libtool_need_lc=$archive_cmds_need_lc_FC
29798
29799 # Whether or not to disallow shared libs when runtime libs are static.
29800 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
29801
29802 # Compiler flag to allow reflexive dlopens.
29803 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
29804
29805 # Compiler flag to generate shared objects directly from archives.
29806 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
29807
29808 # Whether the compiler copes with passing no objects directly.
29809 compiler_needs_object=$lt_compiler_needs_object_FC
29810
29811 # Create an old-style archive from a shared archive.
29812 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
29813
29814 # Create a temporary old-style archive to link instead of a shared archive.
29815 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
29816
29817 # Commands used to build a shared archive.
29818 archive_cmds=$lt_archive_cmds_FC
29819 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
29820
29821 # Commands used to build a loadable module if different from building
29822 # a shared archive.
29823 module_cmds=$lt_module_cmds_FC
29824 module_expsym_cmds=$lt_module_expsym_cmds_FC
29825
29826 # Whether we are building with GNU ld or not.
29827 with_gnu_ld=$lt_with_gnu_ld_FC
29828
29829 # Flag that allows shared libraries with undefined symbols to be built.
29830 allow_undefined_flag=$lt_allow_undefined_flag_FC
29831
29832 # Flag that enforces no undefined symbols.
29833 no_undefined_flag=$lt_no_undefined_flag_FC
29834
29835 # Flag to hardcode \$libdir into a binary during linking.
29836 # This must work even if \$libdir does not exist
29837 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
29838
29839 # If ld is used when linking, flag to hardcode \$libdir into a binary
29840 # during linking. This must work even if \$libdir does not exist.
29841 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
29842
29843 # Whether we need a single "-rpath" flag with a separated argument.
29844 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
29845
29846 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29847 # DIR into the resulting binary.
29848 hardcode_direct=$hardcode_direct_FC
29849
29850 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29851 # DIR into the resulting binary and the resulting library dependency is
29852 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29853 # library is relocated.
29854 hardcode_direct_absolute=$hardcode_direct_absolute_FC
29855
29856 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29857 # into the resulting binary.
29858 hardcode_minus_L=$hardcode_minus_L_FC
29859
29860 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29861 # into the resulting binary.
29862 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
29863
29864 # Set to "yes" if building a shared library automatically hardcodes DIR
29865 # into the library and all subsequent libraries and executables linked
29866 # against it.
29867 hardcode_automatic=$hardcode_automatic_FC
29868
29869 # Set to yes if linker adds runtime paths of dependent libraries
29870 # to runtime path list.
29871 inherit_rpath=$inherit_rpath_FC
29872
29873 # Whether libtool must link a program against all its dependency libraries.
29874 link_all_deplibs=$link_all_deplibs_FC
29875
29876 # Fix the shell variable \$srcfile for the compiler.
29877 fix_srcfile_path=$lt_fix_srcfile_path_FC
29878
29879 # Set to "yes" if exported symbols are required.
29880 always_export_symbols=$always_export_symbols_FC
29881
29882 # The commands to list exported symbols.
29883 export_symbols_cmds=$lt_export_symbols_cmds_FC
29884
29885 # Symbols that should not be listed in the preloaded symbols.
29886 exclude_expsyms=$lt_exclude_expsyms_FC
29887
29888 # Symbols that must always be exported.
29889 include_expsyms=$lt_include_expsyms_FC
29890
29891 # Commands necessary for linking programs (against libraries) with templates.
29892 prelink_cmds=$lt_prelink_cmds_FC
29893
29894 # Specify filename containing input files.
29895 file_list_spec=$lt_file_list_spec_FC
29896
29897 # How to hardcode a shared library path into an executable.
29898 hardcode_action=$hardcode_action_FC
29899
29900 # The directories searched by this compiler when creating a shared library.
29901 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
29902
29903 # Dependencies to place before and after the objects being linked to
29904 # create a shared library.
29905 predep_objects=$lt_predep_objects_FC
29906 postdep_objects=$lt_postdep_objects_FC
29907 predeps=$lt_predeps_FC
29908 postdeps=$lt_postdeps_FC
29909
29910 # The library search path used internally by the compiler when linking
29911 # a shared library.
29912 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
29913
29914 # ### END LIBTOOL TAG CONFIG: FC
29915 _LT_EOF
29916
29917 ;;
29918 "gstdint.h":C)
29919 if test "$GCC" = yes; then
29920 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
29921 else
29922 echo "/* generated for $CC */" > tmp-stdint.h
29923 fi
29924
29925 sed 's/^ *//' >> tmp-stdint.h <<EOF
29926
29927 #ifndef GCC_GENERATED_STDINT_H
29928 #define GCC_GENERATED_STDINT_H 1
29929
29930 #include <sys/types.h>
29931 EOF
29932
29933 if test "$acx_cv_header_stdint" != stdint.h; then
29934 echo "#include <stddef.h>" >> tmp-stdint.h
29935 fi
29936 if test "$acx_cv_header_stdint" != stddef.h; then
29937 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
29938 fi
29939
29940 sed 's/^ *//' >> tmp-stdint.h <<EOF
29941 /* glibc uses these symbols as guards to prevent redefinitions. */
29942 #ifdef __int8_t_defined
29943 #define _INT8_T
29944 #define _INT16_T
29945 #define _INT32_T
29946 #endif
29947 #ifdef __uint32_t_defined
29948 #define _UINT32_T
29949 #endif
29950
29951 EOF
29952
29953 # ----------------- done header, emit basic int types -------------
29954 if test "$acx_cv_header_stdint" = stddef.h; then
29955 sed 's/^ *//' >> tmp-stdint.h <<EOF
29956
29957 #ifndef _UINT8_T
29958 #define _UINT8_T
29959 #ifndef __uint8_t_defined
29960 #define __uint8_t_defined
29961 #ifndef uint8_t
29962 typedef unsigned $acx_cv_type_int8_t uint8_t;
29963 #endif
29964 #endif
29965 #endif
29966
29967 #ifndef _UINT16_T
29968 #define _UINT16_T
29969 #ifndef __uint16_t_defined
29970 #define __uint16_t_defined
29971 #ifndef uint16_t
29972 typedef unsigned $acx_cv_type_int16_t uint16_t;
29973 #endif
29974 #endif
29975 #endif
29976
29977 #ifndef _UINT32_T
29978 #define _UINT32_T
29979 #ifndef __uint32_t_defined
29980 #define __uint32_t_defined
29981 #ifndef uint32_t
29982 typedef unsigned $acx_cv_type_int32_t uint32_t;
29983 #endif
29984 #endif
29985 #endif
29986
29987 #ifndef _INT8_T
29988 #define _INT8_T
29989 #ifndef __int8_t_defined
29990 #define __int8_t_defined
29991 #ifndef int8_t
29992 typedef $acx_cv_type_int8_t int8_t;
29993 #endif
29994 #endif
29995 #endif
29996
29997 #ifndef _INT16_T
29998 #define _INT16_T
29999 #ifndef __int16_t_defined
30000 #define __int16_t_defined
30001 #ifndef int16_t
30002 typedef $acx_cv_type_int16_t int16_t;
30003 #endif
30004 #endif
30005 #endif
30006
30007 #ifndef _INT32_T
30008 #define _INT32_T
30009 #ifndef __int32_t_defined
30010 #define __int32_t_defined
30011 #ifndef int32_t
30012 typedef $acx_cv_type_int32_t int32_t;
30013 #endif
30014 #endif
30015 #endif
30016 EOF
30017 elif test "$ac_cv_type_u_int32_t" = yes; then
30018 sed 's/^ *//' >> tmp-stdint.h <<EOF
30019
30020 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
30021 #ifndef _INT8_T
30022 #define _INT8_T
30023 #endif
30024 #ifndef _INT16_T
30025 #define _INT16_T
30026 #endif
30027 #ifndef _INT32_T
30028 #define _INT32_T
30029 #endif
30030
30031 #ifndef _UINT8_T
30032 #define _UINT8_T
30033 #ifndef __uint8_t_defined
30034 #define __uint8_t_defined
30035 #ifndef uint8_t
30036 typedef u_int8_t uint8_t;
30037 #endif
30038 #endif
30039 #endif
30040
30041 #ifndef _UINT16_T
30042 #define _UINT16_T
30043 #ifndef __uint16_t_defined
30044 #define __uint16_t_defined
30045 #ifndef uint16_t
30046 typedef u_int16_t uint16_t;
30047 #endif
30048 #endif
30049 #endif
30050
30051 #ifndef _UINT32_T
30052 #define _UINT32_T
30053 #ifndef __uint32_t_defined
30054 #define __uint32_t_defined
30055 #ifndef uint32_t
30056 typedef u_int32_t uint32_t;
30057 #endif
30058 #endif
30059 #endif
30060 EOF
30061 else
30062 sed 's/^ *//' >> tmp-stdint.h <<EOF
30063
30064 /* Some systems have guard macros to prevent redefinitions, define them. */
30065 #ifndef _INT8_T
30066 #define _INT8_T
30067 #endif
30068 #ifndef _INT16_T
30069 #define _INT16_T
30070 #endif
30071 #ifndef _INT32_T
30072 #define _INT32_T
30073 #endif
30074 #ifndef _UINT8_T
30075 #define _UINT8_T
30076 #endif
30077 #ifndef _UINT16_T
30078 #define _UINT16_T
30079 #endif
30080 #ifndef _UINT32_T
30081 #define _UINT32_T
30082 #endif
30083 EOF
30084 fi
30085
30086 # ------------- done basic int types, emit int64_t types ------------
30087 if test "$ac_cv_type_uint64_t" = yes; then
30088 sed 's/^ *//' >> tmp-stdint.h <<EOF
30089
30090 /* system headers have good uint64_t and int64_t */
30091 #ifndef _INT64_T
30092 #define _INT64_T
30093 #endif
30094 #ifndef _UINT64_T
30095 #define _UINT64_T
30096 #endif
30097 EOF
30098 elif test "$ac_cv_type_u_int64_t" = yes; then
30099 sed 's/^ *//' >> tmp-stdint.h <<EOF
30100
30101 /* system headers have an u_int64_t (and int64_t) */
30102 #ifndef _INT64_T
30103 #define _INT64_T
30104 #endif
30105 #ifndef _UINT64_T
30106 #define _UINT64_T
30107 #ifndef __uint64_t_defined
30108 #define __uint64_t_defined
30109 #ifndef uint64_t
30110 typedef u_int64_t uint64_t;
30111 #endif
30112 #endif
30113 #endif
30114 EOF
30115 elif test -n "$acx_cv_type_int64_t"; then
30116 sed 's/^ *//' >> tmp-stdint.h <<EOF
30117
30118 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
30119 #ifndef _INT64_T
30120 #define _INT64_T
30121 #ifndef int64_t
30122 typedef $acx_cv_type_int64_t int64_t;
30123 #endif
30124 #endif
30125 #ifndef _UINT64_T
30126 #define _UINT64_T
30127 #ifndef __uint64_t_defined
30128 #define __uint64_t_defined
30129 #ifndef uint64_t
30130 typedef unsigned $acx_cv_type_int64_t uint64_t;
30131 #endif
30132 #endif
30133 #endif
30134 EOF
30135 else
30136 sed 's/^ *//' >> tmp-stdint.h <<EOF
30137
30138 /* some common heuristics for int64_t, using compiler-specific tests */
30139 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
30140 #ifndef _INT64_T
30141 #define _INT64_T
30142 #ifndef __int64_t_defined
30143 #ifndef int64_t
30144 typedef long long int64_t;
30145 #endif
30146 #endif
30147 #endif
30148 #ifndef _UINT64_T
30149 #define _UINT64_T
30150 #ifndef uint64_t
30151 typedef unsigned long long uint64_t;
30152 #endif
30153 #endif
30154
30155 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
30156 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
30157 does not implement __extension__. But that compiler doesn't define
30158 __GNUC_MINOR__. */
30159 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
30160 # define __extension__
30161 # endif
30162
30163 # ifndef _INT64_T
30164 # define _INT64_T
30165 # ifndef int64_t
30166 __extension__ typedef long long int64_t;
30167 # endif
30168 # endif
30169 # ifndef _UINT64_T
30170 # define _UINT64_T
30171 # ifndef uint64_t
30172 __extension__ typedef unsigned long long uint64_t;
30173 # endif
30174 # endif
30175
30176 #elif !defined __STRICT_ANSI__
30177 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
30178
30179 # ifndef _INT64_T
30180 # define _INT64_T
30181 # ifndef int64_t
30182 typedef __int64 int64_t;
30183 # endif
30184 # endif
30185 # ifndef _UINT64_T
30186 # define _UINT64_T
30187 # ifndef uint64_t
30188 typedef unsigned __int64 uint64_t;
30189 # endif
30190 # endif
30191 # endif /* compiler */
30192
30193 #endif /* ANSI version */
30194 EOF
30195 fi
30196
30197 # ------------- done int64_t types, emit intptr types ------------
30198 if test "$ac_cv_type_uintptr_t" != yes; then
30199 sed 's/^ *//' >> tmp-stdint.h <<EOF
30200
30201 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
30202 #ifndef __uintptr_t_defined
30203 #ifndef uintptr_t
30204 typedef u$acx_cv_type_intptr_t uintptr_t;
30205 #endif
30206 #endif
30207 #ifndef __intptr_t_defined
30208 #ifndef intptr_t
30209 typedef $acx_cv_type_intptr_t intptr_t;
30210 #endif
30211 #endif
30212 EOF
30213 fi
30214
30215 # ------------- done intptr types, emit int_least types ------------
30216 if test "$ac_cv_type_int_least32_t" != yes; then
30217 sed 's/^ *//' >> tmp-stdint.h <<EOF
30218
30219 /* Define int_least types */
30220 typedef int8_t int_least8_t;
30221 typedef int16_t int_least16_t;
30222 typedef int32_t int_least32_t;
30223 #ifdef _INT64_T
30224 typedef int64_t int_least64_t;
30225 #endif
30226
30227 typedef uint8_t uint_least8_t;
30228 typedef uint16_t uint_least16_t;
30229 typedef uint32_t uint_least32_t;
30230 #ifdef _UINT64_T
30231 typedef uint64_t uint_least64_t;
30232 #endif
30233 EOF
30234 fi
30235
30236 # ------------- done intptr types, emit int_fast types ------------
30237 if test "$ac_cv_type_int_fast32_t" != yes; then
30238 sed 's/^ *//' >> tmp-stdint.h <<EOF
30239
30240 /* Define int_fast types. short is often slow */
30241 typedef int8_t int_fast8_t;
30242 typedef int int_fast16_t;
30243 typedef int32_t int_fast32_t;
30244 #ifdef _INT64_T
30245 typedef int64_t int_fast64_t;
30246 #endif
30247
30248 typedef uint8_t uint_fast8_t;
30249 typedef unsigned int uint_fast16_t;
30250 typedef uint32_t uint_fast32_t;
30251 #ifdef _UINT64_T
30252 typedef uint64_t uint_fast64_t;
30253 #endif
30254 EOF
30255 fi
30256
30257 if test "$ac_cv_type_uintmax_t" != yes; then
30258 sed 's/^ *//' >> tmp-stdint.h <<EOF
30259
30260 /* Define intmax based on what we found */
30261 #ifndef intmax_t
30262 #ifdef _INT64_T
30263 typedef int64_t intmax_t;
30264 #else
30265 typedef long intmax_t;
30266 #endif
30267 #endif
30268 #ifndef uintmax_t
30269 #ifdef _UINT64_T
30270 typedef uint64_t uintmax_t;
30271 #else
30272 typedef unsigned long uintmax_t;
30273 #endif
30274 #endif
30275 EOF
30276 fi
30277
30278 sed 's/^ *//' >> tmp-stdint.h <<EOF
30279
30280 #endif /* GCC_GENERATED_STDINT_H */
30281 EOF
30282
30283 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
30284 rm -f tmp-stdint.h
30285 else
30286 mv -f tmp-stdint.h gstdint.h
30287 fi
30288
30289 ;;
30290
30291 esac
30292 done # for ac_tag
30293
30294
30295 as_fn_exit 0
30296 _ACEOF
30297 ac_clean_files=$ac_clean_files_save
30298
30299 test $ac_write_fail = 0 ||
30300 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
30301
30302
30303 # configure is writing to config.log, and then calls config.status.
30304 # config.status does its own redirection, appending to config.log.
30305 # Unfortunately, on DOS this fails, as config.log is still kept open
30306 # by configure, so config.status won't be able to write to it; its
30307 # output is simply discarded. So we exec the FD to /dev/null,
30308 # effectively closing config.log, so it can be properly (re)opened and
30309 # appended to by config.status. When coming back to configure, we
30310 # need to make the FD available again.
30311 if test "$no_create" != yes; then
30312 ac_cs_success=:
30313 ac_config_status_args=
30314 test "$silent" = yes &&
30315 ac_config_status_args="$ac_config_status_args --quiet"
30316 exec 5>/dev/null
30317 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30318 exec 5>>config.log
30319 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30320 # would make configure fail if this is the last instruction.
30321 $ac_cs_success || as_fn_exit 1
30322 fi
30323 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30325 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
30326 fi
30327