Suggest including <stdint.h> or <cstdint> for [u]int[8|16|32|64]_t
[gcc.git] / libgfortran / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GNU Fortran Runtime Library 0.3.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='GNU Fortran Runtime Library'
589 PACKAGE_TARNAME='libgfortran'
590 PACKAGE_VERSION='0.3'
591 PACKAGE_STRING='GNU Fortran Runtime Library 0.3'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL='http://www.gnu.org/software/libgfortran/'
594
595 # Factoring default headers for most tests.
596 ac_includes_default="\
597 #include <stdio.h>
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
600 #endif
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
603 #endif
604 #ifdef STDC_HEADERS
605 # include <stdlib.h>
606 # include <stddef.h>
607 #else
608 # ifdef HAVE_STDLIB_H
609 # include <stdlib.h>
610 # endif
611 #endif
612 #ifdef HAVE_STRING_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614 # include <memory.h>
615 # endif
616 # include <string.h>
617 #endif
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_UNISTD_H
628 # include <unistd.h>
629 #endif"
630
631 ac_header_list=
632 ac_func_list=
633 ac_c_werror_flag=
634 ac_c_werror_flag=
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 get_gcc_base_ver
640 HAVE_AVX128_FALSE
641 HAVE_AVX128_TRUE
642 IEEE_FLAGS
643 IEEE_SUPPORT
644 IEEE_SUPPORT_FALSE
645 IEEE_SUPPORT_TRUE
646 FPU_HOST_HEADER
647 LIBGFOR_BUILD_QUAD_FALSE
648 LIBGFOR_BUILD_QUAD_TRUE
649 LIBQUADINCLUDE
650 LIBQUADLIB_DEP
651 LIBQUADLIB
652 LIBQUADSPEC
653 extra_ldflags_libgfortran
654 ac_ct_FC
655 FCFLAGS
656 FC
657 enable_static
658 enable_shared
659 lt_host_flags
660 OTOOL64
661 OTOOL
662 LIPO
663 NMEDIT
664 DSYMUTIL
665 OBJDUMP
666 LN_S
667 NM
668 ac_ct_DUMPBIN
669 DUMPBIN
670 LIBTOOL
671 RANLIB
672 AR
673 AS
674 HAVE_HWCAP_FALSE
675 HAVE_HWCAP_TRUE
676 HWCAP_LDFLAGS
677 LD
678 FGREP
679 SED
680 SECTION_FLAGS
681 LIBGFOR_MINIMAL_FALSE
682 LIBGFOR_MINIMAL_TRUE
683 LIBGFOR_USE_SYMVER_SUN_FALSE
684 LIBGFOR_USE_SYMVER_SUN_TRUE
685 LIBGFOR_USE_SYMVER_GNU_FALSE
686 LIBGFOR_USE_SYMVER_GNU_TRUE
687 LIBGFOR_USE_SYMVER_FALSE
688 LIBGFOR_USE_SYMVER_TRUE
689 AM_CFLAGS
690 AM_FCFLAGS
691 toolexeclibdir
692 toolexecdir
693 EGREP
694 GREP
695 CPP
696 am__fastdepCC_FALSE
697 am__fastdepCC_TRUE
698 CCDEPMODE
699 am__nodep
700 AMDEPBACKSLASH
701 AMDEP_FALSE
702 AMDEP_TRUE
703 am__quote
704 am__include
705 DEPDIR
706 OBJEXT
707 EXEEXT
708 ac_ct_CC
709 CPPFLAGS
710 LDFLAGS
711 CFLAGS
712 CC
713 multi_basedir
714 MAINT
715 MAINTAINER_MODE_FALSE
716 MAINTAINER_MODE_TRUE
717 AM_BACKSLASH
718 AM_DEFAULT_VERBOSITY
719 AM_DEFAULT_V
720 AM_V
721 am__untar
722 am__tar
723 AMTAR
724 am__leading_dot
725 SET_MAKE
726 AWK
727 mkdir_p
728 MKDIR_P
729 INSTALL_STRIP_PROGRAM
730 STRIP
731 install_sh
732 MAKEINFO
733 AUTOHEADER
734 AUTOMAKE
735 AUTOCONF
736 ACLOCAL
737 VERSION
738 PACKAGE
739 CYGPATH_W
740 am__isrc
741 INSTALL_DATA
742 INSTALL_SCRIPT
743 INSTALL_PROGRAM
744 target_noncanonical
745 target_os
746 target_vendor
747 target_cpu
748 target
749 host_os
750 host_vendor
751 host_cpu
752 host
753 onestep
754 onestep_FALSE
755 onestep_TRUE
756 target_subdir
757 host_subdir
758 build_subdir
759 build_libsubdir
760 build_os
761 build_vendor
762 build_cpu
763 build
764 target_alias
765 host_alias
766 build_alias
767 LIBS
768 ECHO_T
769 ECHO_N
770 ECHO_C
771 DEFS
772 mandir
773 localedir
774 libdir
775 psdir
776 pdfdir
777 dvidir
778 htmldir
779 infodir
780 docdir
781 oldincludedir
782 includedir
783 localstatedir
784 sharedstatedir
785 sysconfdir
786 datadir
787 datarootdir
788 libexecdir
789 sbindir
790 bindir
791 program_transform_name
792 prefix
793 exec_prefix
794 PACKAGE_URL
795 PACKAGE_BUGREPORT
796 PACKAGE_STRING
797 PACKAGE_VERSION
798 PACKAGE_TARNAME
799 PACKAGE_NAME
800 PATH_SEPARATOR
801 SHELL'
802 ac_subst_files=''
803 ac_user_opts='
804 enable_option_checking
805 with_build_libsubdir
806 enable_version_specific_runtime_libs
807 enable_intermodule
808 enable_silent_rules
809 enable_maintainer_mode
810 enable_multilib
811 enable_dependency_tracking
812 with_toolexeclibdir
813 enable_cet
814 enable_symvers
815 with_gnu_ld
816 enable_shared
817 enable_static
818 with_pic
819 enable_fast_install
820 enable_libtool_lock
821 enable_largefile
822 enable_libquadmath_support
823 with_gcc_major_version_only
824 '
825 ac_precious_vars='build_alias
826 host_alias
827 target_alias
828 CC
829 CFLAGS
830 LDFLAGS
831 LIBS
832 CPPFLAGS
833 CPP
834 FC
835 FCFLAGS'
836
837
838 # Initialize some variables set by options.
839 ac_init_help=
840 ac_init_version=false
841 ac_unrecognized_opts=
842 ac_unrecognized_sep=
843 # The variables have the same names as the options, with
844 # dashes changed to underlines.
845 cache_file=/dev/null
846 exec_prefix=NONE
847 no_create=
848 no_recursion=
849 prefix=NONE
850 program_prefix=NONE
851 program_suffix=NONE
852 program_transform_name=s,x,x,
853 silent=
854 site=
855 srcdir=
856 verbose=
857 x_includes=NONE
858 x_libraries=NONE
859
860 # Installation directory options.
861 # These are left unexpanded so users can "make install exec_prefix=/foo"
862 # and all the variables that are supposed to be based on exec_prefix
863 # by default will actually change.
864 # Use braces instead of parens because sh, perl, etc. also accept them.
865 # (The list follows the same order as the GNU Coding Standards.)
866 bindir='${exec_prefix}/bin'
867 sbindir='${exec_prefix}/sbin'
868 libexecdir='${exec_prefix}/libexec'
869 datarootdir='${prefix}/share'
870 datadir='${datarootdir}'
871 sysconfdir='${prefix}/etc'
872 sharedstatedir='${prefix}/com'
873 localstatedir='${prefix}/var'
874 includedir='${prefix}/include'
875 oldincludedir='/usr/include'
876 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
877 infodir='${datarootdir}/info'
878 htmldir='${docdir}'
879 dvidir='${docdir}'
880 pdfdir='${docdir}'
881 psdir='${docdir}'
882 libdir='${exec_prefix}/lib'
883 localedir='${datarootdir}/locale'
884 mandir='${datarootdir}/man'
885
886 ac_prev=
887 ac_dashdash=
888 for ac_option
889 do
890 # If the previous option needs an argument, assign it.
891 if test -n "$ac_prev"; then
892 eval $ac_prev=\$ac_option
893 ac_prev=
894 continue
895 fi
896
897 case $ac_option in
898 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
899 *=) ac_optarg= ;;
900 *) ac_optarg=yes ;;
901 esac
902
903 # Accept the important Cygnus configure options, so we can diagnose typos.
904
905 case $ac_dashdash$ac_option in
906 --)
907 ac_dashdash=yes ;;
908
909 -bindir | --bindir | --bindi | --bind | --bin | --bi)
910 ac_prev=bindir ;;
911 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
912 bindir=$ac_optarg ;;
913
914 -build | --build | --buil | --bui | --bu)
915 ac_prev=build_alias ;;
916 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
917 build_alias=$ac_optarg ;;
918
919 -cache-file | --cache-file | --cache-fil | --cache-fi \
920 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
921 ac_prev=cache_file ;;
922 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
923 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
924 cache_file=$ac_optarg ;;
925
926 --config-cache | -C)
927 cache_file=config.cache ;;
928
929 -datadir | --datadir | --datadi | --datad)
930 ac_prev=datadir ;;
931 -datadir=* | --datadir=* | --datadi=* | --datad=*)
932 datadir=$ac_optarg ;;
933
934 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
935 | --dataroo | --dataro | --datar)
936 ac_prev=datarootdir ;;
937 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
938 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
939 datarootdir=$ac_optarg ;;
940
941 -disable-* | --disable-*)
942 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
943 # Reject names that are not valid shell variable names.
944 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
945 as_fn_error $? "invalid feature name: $ac_useropt"
946 ac_useropt_orig=$ac_useropt
947 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
948 case $ac_user_opts in
949 *"
950 "enable_$ac_useropt"
951 "*) ;;
952 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
953 ac_unrecognized_sep=', ';;
954 esac
955 eval enable_$ac_useropt=no ;;
956
957 -docdir | --docdir | --docdi | --doc | --do)
958 ac_prev=docdir ;;
959 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
960 docdir=$ac_optarg ;;
961
962 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
963 ac_prev=dvidir ;;
964 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
965 dvidir=$ac_optarg ;;
966
967 -enable-* | --enable-*)
968 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
969 # Reject names that are not valid shell variable names.
970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971 as_fn_error $? "invalid feature name: $ac_useropt"
972 ac_useropt_orig=$ac_useropt
973 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974 case $ac_user_opts in
975 *"
976 "enable_$ac_useropt"
977 "*) ;;
978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
979 ac_unrecognized_sep=', ';;
980 esac
981 eval enable_$ac_useropt=\$ac_optarg ;;
982
983 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
984 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
985 | --exec | --exe | --ex)
986 ac_prev=exec_prefix ;;
987 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
988 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
989 | --exec=* | --exe=* | --ex=*)
990 exec_prefix=$ac_optarg ;;
991
992 -gas | --gas | --ga | --g)
993 # Obsolete; use --with-gas.
994 with_gas=yes ;;
995
996 -help | --help | --hel | --he | -h)
997 ac_init_help=long ;;
998 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
999 ac_init_help=recursive ;;
1000 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1001 ac_init_help=short ;;
1002
1003 -host | --host | --hos | --ho)
1004 ac_prev=host_alias ;;
1005 -host=* | --host=* | --hos=* | --ho=*)
1006 host_alias=$ac_optarg ;;
1007
1008 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1009 ac_prev=htmldir ;;
1010 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1011 | --ht=*)
1012 htmldir=$ac_optarg ;;
1013
1014 -includedir | --includedir | --includedi | --included | --include \
1015 | --includ | --inclu | --incl | --inc)
1016 ac_prev=includedir ;;
1017 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1018 | --includ=* | --inclu=* | --incl=* | --inc=*)
1019 includedir=$ac_optarg ;;
1020
1021 -infodir | --infodir | --infodi | --infod | --info | --inf)
1022 ac_prev=infodir ;;
1023 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1024 infodir=$ac_optarg ;;
1025
1026 -libdir | --libdir | --libdi | --libd)
1027 ac_prev=libdir ;;
1028 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1029 libdir=$ac_optarg ;;
1030
1031 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1032 | --libexe | --libex | --libe)
1033 ac_prev=libexecdir ;;
1034 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1035 | --libexe=* | --libex=* | --libe=*)
1036 libexecdir=$ac_optarg ;;
1037
1038 -localedir | --localedir | --localedi | --localed | --locale)
1039 ac_prev=localedir ;;
1040 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1041 localedir=$ac_optarg ;;
1042
1043 -localstatedir | --localstatedir | --localstatedi | --localstated \
1044 | --localstate | --localstat | --localsta | --localst | --locals)
1045 ac_prev=localstatedir ;;
1046 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1047 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1048 localstatedir=$ac_optarg ;;
1049
1050 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1051 ac_prev=mandir ;;
1052 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1053 mandir=$ac_optarg ;;
1054
1055 -nfp | --nfp | --nf)
1056 # Obsolete; use --without-fp.
1057 with_fp=no ;;
1058
1059 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1060 | --no-cr | --no-c | -n)
1061 no_create=yes ;;
1062
1063 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1064 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1065 no_recursion=yes ;;
1066
1067 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1068 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1069 | --oldin | --oldi | --old | --ol | --o)
1070 ac_prev=oldincludedir ;;
1071 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1072 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1073 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1074 oldincludedir=$ac_optarg ;;
1075
1076 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1077 ac_prev=prefix ;;
1078 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1079 prefix=$ac_optarg ;;
1080
1081 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1082 | --program-pre | --program-pr | --program-p)
1083 ac_prev=program_prefix ;;
1084 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1085 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1086 program_prefix=$ac_optarg ;;
1087
1088 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1089 | --program-suf | --program-su | --program-s)
1090 ac_prev=program_suffix ;;
1091 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1092 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1093 program_suffix=$ac_optarg ;;
1094
1095 -program-transform-name | --program-transform-name \
1096 | --program-transform-nam | --program-transform-na \
1097 | --program-transform-n | --program-transform- \
1098 | --program-transform | --program-transfor \
1099 | --program-transfo | --program-transf \
1100 | --program-trans | --program-tran \
1101 | --progr-tra | --program-tr | --program-t)
1102 ac_prev=program_transform_name ;;
1103 -program-transform-name=* | --program-transform-name=* \
1104 | --program-transform-nam=* | --program-transform-na=* \
1105 | --program-transform-n=* | --program-transform-=* \
1106 | --program-transform=* | --program-transfor=* \
1107 | --program-transfo=* | --program-transf=* \
1108 | --program-trans=* | --program-tran=* \
1109 | --progr-tra=* | --program-tr=* | --program-t=*)
1110 program_transform_name=$ac_optarg ;;
1111
1112 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1113 ac_prev=pdfdir ;;
1114 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1115 pdfdir=$ac_optarg ;;
1116
1117 -psdir | --psdir | --psdi | --psd | --ps)
1118 ac_prev=psdir ;;
1119 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1120 psdir=$ac_optarg ;;
1121
1122 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1123 | -silent | --silent | --silen | --sile | --sil)
1124 silent=yes ;;
1125
1126 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1127 ac_prev=sbindir ;;
1128 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1129 | --sbi=* | --sb=*)
1130 sbindir=$ac_optarg ;;
1131
1132 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1133 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1134 | --sharedst | --shareds | --shared | --share | --shar \
1135 | --sha | --sh)
1136 ac_prev=sharedstatedir ;;
1137 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1138 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1139 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1140 | --sha=* | --sh=*)
1141 sharedstatedir=$ac_optarg ;;
1142
1143 -site | --site | --sit)
1144 ac_prev=site ;;
1145 -site=* | --site=* | --sit=*)
1146 site=$ac_optarg ;;
1147
1148 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1149 ac_prev=srcdir ;;
1150 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1151 srcdir=$ac_optarg ;;
1152
1153 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1154 | --syscon | --sysco | --sysc | --sys | --sy)
1155 ac_prev=sysconfdir ;;
1156 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1157 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1158 sysconfdir=$ac_optarg ;;
1159
1160 -target | --target | --targe | --targ | --tar | --ta | --t)
1161 ac_prev=target_alias ;;
1162 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1163 target_alias=$ac_optarg ;;
1164
1165 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1166 verbose=yes ;;
1167
1168 -version | --version | --versio | --versi | --vers | -V)
1169 ac_init_version=: ;;
1170
1171 -with-* | --with-*)
1172 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1173 # Reject names that are not valid shell variable names.
1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175 as_fn_error $? "invalid package name: $ac_useropt"
1176 ac_useropt_orig=$ac_useropt
1177 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1179 *"
1180 "with_$ac_useropt"
1181 "*) ;;
1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1183 ac_unrecognized_sep=', ';;
1184 esac
1185 eval with_$ac_useropt=\$ac_optarg ;;
1186
1187 -without-* | --without-*)
1188 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1189 # Reject names that are not valid shell variable names.
1190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1191 as_fn_error $? "invalid package name: $ac_useropt"
1192 ac_useropt_orig=$ac_useropt
1193 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1194 case $ac_user_opts in
1195 *"
1196 "with_$ac_useropt"
1197 "*) ;;
1198 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1199 ac_unrecognized_sep=', ';;
1200 esac
1201 eval with_$ac_useropt=no ;;
1202
1203 --x)
1204 # Obsolete; use --with-x.
1205 with_x=yes ;;
1206
1207 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1208 | --x-incl | --x-inc | --x-in | --x-i)
1209 ac_prev=x_includes ;;
1210 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1211 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1212 x_includes=$ac_optarg ;;
1213
1214 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1215 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1216 ac_prev=x_libraries ;;
1217 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1218 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1219 x_libraries=$ac_optarg ;;
1220
1221 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1222 Try \`$0 --help' for more information"
1223 ;;
1224
1225 *=*)
1226 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1227 # Reject names that are not valid shell variable names.
1228 case $ac_envvar in #(
1229 '' | [0-9]* | *[!_$as_cr_alnum]* )
1230 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1231 esac
1232 eval $ac_envvar=\$ac_optarg
1233 export $ac_envvar ;;
1234
1235 *)
1236 # FIXME: should be removed in autoconf 3.0.
1237 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1238 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1239 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1240 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1241 ;;
1242
1243 esac
1244 done
1245
1246 if test -n "$ac_prev"; then
1247 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1248 as_fn_error $? "missing argument to $ac_option"
1249 fi
1250
1251 if test -n "$ac_unrecognized_opts"; then
1252 case $enable_option_checking in
1253 no) ;;
1254 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1255 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1256 esac
1257 fi
1258
1259 # Check all directory arguments for consistency.
1260 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1261 datadir sysconfdir sharedstatedir localstatedir includedir \
1262 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1263 libdir localedir mandir
1264 do
1265 eval ac_val=\$$ac_var
1266 # Remove trailing slashes.
1267 case $ac_val in
1268 */ )
1269 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1270 eval $ac_var=\$ac_val;;
1271 esac
1272 # Be sure to have absolute directory names.
1273 case $ac_val in
1274 [\\/$]* | ?:[\\/]* ) continue;;
1275 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1276 esac
1277 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1278 done
1279
1280 # There might be people who depend on the old broken behavior: `$host'
1281 # used to hold the argument of --host etc.
1282 # FIXME: To remove some day.
1283 build=$build_alias
1284 host=$host_alias
1285 target=$target_alias
1286
1287 # FIXME: To remove some day.
1288 if test "x$host_alias" != x; then
1289 if test "x$build_alias" = x; then
1290 cross_compiling=maybe
1291 elif test "x$build_alias" != "x$host_alias"; then
1292 cross_compiling=yes
1293 fi
1294 fi
1295
1296 ac_tool_prefix=
1297 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1298
1299 test "$silent" = yes && exec 6>/dev/null
1300
1301
1302 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1303 ac_ls_di=`ls -di .` &&
1304 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1305 as_fn_error $? "working directory cannot be determined"
1306 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1307 as_fn_error $? "pwd does not report name of working directory"
1308
1309
1310 # Find the source files, if location was not specified.
1311 if test -z "$srcdir"; then
1312 ac_srcdir_defaulted=yes
1313 # Try the directory containing this script, then the parent directory.
1314 ac_confdir=`$as_dirname -- "$as_myself" ||
1315 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1316 X"$as_myself" : 'X\(//\)[^/]' \| \
1317 X"$as_myself" : 'X\(//\)$' \| \
1318 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1319 $as_echo X"$as_myself" |
1320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1321 s//\1/
1322 q
1323 }
1324 /^X\(\/\/\)[^/].*/{
1325 s//\1/
1326 q
1327 }
1328 /^X\(\/\/\)$/{
1329 s//\1/
1330 q
1331 }
1332 /^X\(\/\).*/{
1333 s//\1/
1334 q
1335 }
1336 s/.*/./; q'`
1337 srcdir=$ac_confdir
1338 if test ! -r "$srcdir/$ac_unique_file"; then
1339 srcdir=..
1340 fi
1341 else
1342 ac_srcdir_defaulted=no
1343 fi
1344 if test ! -r "$srcdir/$ac_unique_file"; then
1345 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1346 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1347 fi
1348 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1349 ac_abs_confdir=`(
1350 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1351 pwd)`
1352 # When building in place, set srcdir=.
1353 if test "$ac_abs_confdir" = "$ac_pwd"; then
1354 srcdir=.
1355 fi
1356 # Remove unnecessary trailing slashes from srcdir.
1357 # Double slashes in file names in object file debugging info
1358 # mess up M-x gdb in Emacs.
1359 case $srcdir in
1360 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1361 esac
1362 for ac_var in $ac_precious_vars; do
1363 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1364 eval ac_env_${ac_var}_value=\$${ac_var}
1365 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1366 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1367 done
1368
1369 #
1370 # Report the --help message.
1371 #
1372 if test "$ac_init_help" = "long"; then
1373 # Omit some internal or obsolete options to make the list less imposing.
1374 # This message is too long to be a string in the A/UX 3.1 sh.
1375 cat <<_ACEOF
1376 \`configure' configures GNU Fortran Runtime Library 0.3 to adapt to many kinds of systems.
1377
1378 Usage: $0 [OPTION]... [VAR=VALUE]...
1379
1380 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1381 VAR=VALUE. See below for descriptions of some of the useful variables.
1382
1383 Defaults for the options are specified in brackets.
1384
1385 Configuration:
1386 -h, --help display this help and exit
1387 --help=short display options specific to this package
1388 --help=recursive display the short help of all the included packages
1389 -V, --version display version information and exit
1390 -q, --quiet, --silent do not print \`checking ...' messages
1391 --cache-file=FILE cache test results in FILE [disabled]
1392 -C, --config-cache alias for \`--cache-file=config.cache'
1393 -n, --no-create do not create output files
1394 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1395
1396 Installation directories:
1397 --prefix=PREFIX install architecture-independent files in PREFIX
1398 [$ac_default_prefix]
1399 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1400 [PREFIX]
1401
1402 By default, \`make install' will install all the files in
1403 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1404 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1405 for instance \`--prefix=\$HOME'.
1406
1407 For better control, use the options below.
1408
1409 Fine tuning of the installation directories:
1410 --bindir=DIR user executables [EPREFIX/bin]
1411 --sbindir=DIR system admin executables [EPREFIX/sbin]
1412 --libexecdir=DIR program executables [EPREFIX/libexec]
1413 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1414 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1415 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1416 --libdir=DIR object code libraries [EPREFIX/lib]
1417 --includedir=DIR C header files [PREFIX/include]
1418 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1419 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1420 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1421 --infodir=DIR info documentation [DATAROOTDIR/info]
1422 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1423 --mandir=DIR man documentation [DATAROOTDIR/man]
1424 --docdir=DIR documentation root [DATAROOTDIR/doc/libgfortran]
1425 --htmldir=DIR html documentation [DOCDIR]
1426 --dvidir=DIR dvi documentation [DOCDIR]
1427 --pdfdir=DIR pdf documentation [DOCDIR]
1428 --psdir=DIR ps documentation [DOCDIR]
1429 _ACEOF
1430
1431 cat <<\_ACEOF
1432
1433 Program names:
1434 --program-prefix=PREFIX prepend PREFIX to installed program names
1435 --program-suffix=SUFFIX append SUFFIX to installed program names
1436 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1437
1438 System types:
1439 --build=BUILD configure for building on BUILD [guessed]
1440 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1441 --target=TARGET configure for building compilers for TARGET [HOST]
1442 _ACEOF
1443 fi
1444
1445 if test -n "$ac_init_help"; then
1446 case $ac_init_help in
1447 short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.3:";;
1448 esac
1449 cat <<\_ACEOF
1450
1451 Optional Features:
1452 --disable-option-checking ignore unrecognized --enable/--with options
1453 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1454 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1455 --enable-version-specific-runtime-libs
1456 specify that runtime libraries should be installed
1457 in a compiler-specific directory
1458 --enable-intermodule build the library in one step
1459 --enable-silent-rules less verbose build output (undo: "make V=1")
1460 --disable-silent-rules verbose build output (undo: "make V=0")
1461 --enable-maintainer-mode
1462 enable make rules and dependencies not useful (and
1463 sometimes confusing) to the casual installer
1464 --enable-multilib build many library versions (default)
1465 --enable-dependency-tracking
1466 do not reject slow dependency extractors
1467 --disable-dependency-tracking
1468 speeds up one-time build
1469 --enable-cet enable Intel CET in target libraries [default=auto]
1470 --disable-symvers disable symbol versioning for libgfortran
1471 --enable-shared[=PKGS] build shared libraries [default=yes]
1472 --enable-static[=PKGS] build static libraries [default=yes]
1473 --enable-fast-install[=PKGS]
1474 optimize for fast installation [default=yes]
1475 --disable-libtool-lock avoid locking (might break parallel builds)
1476 --disable-largefile omit support for large files
1477 --disable-libquadmath-support
1478 disable libquadmath support for Fortran
1479
1480 Optional Packages:
1481 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1482 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1483 --with-build-libsubdir=DIR Directory where to find libraries for build system
1484 --with-toolexeclibdir=DIR
1485 install libraries built with a cross compiler within
1486 DIR
1487 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1488 --with-pic try to use only PIC/non-PIC objects [default=use
1489 both]
1490 --with-gcc-major-version-only
1491 use only GCC major number in filesystem paths
1492
1493 Some influential environment variables:
1494 CC C compiler command
1495 CFLAGS C compiler flags
1496 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1497 nonstandard directory <lib dir>
1498 LIBS libraries to pass to the linker, e.g. -l<library>
1499 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1500 you have headers in a nonstandard directory <include dir>
1501 CPP C preprocessor
1502 FC Fortran compiler command
1503 FCFLAGS Fortran compiler flags
1504
1505 Use these variables to override the choices made by `configure' or to help
1506 it to find libraries and programs with nonstandard names/locations.
1507
1508 Report bugs to the package provider.
1509 GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
1510 General help using GNU software: <http://www.gnu.org/gethelp/>.
1511 _ACEOF
1512 ac_status=$?
1513 fi
1514
1515 if test "$ac_init_help" = "recursive"; then
1516 # If there are subdirs, report their specific --help.
1517 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1518 test -d "$ac_dir" ||
1519 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1520 continue
1521 ac_builddir=.
1522
1523 case "$ac_dir" in
1524 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1525 *)
1526 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1527 # A ".." for each directory in $ac_dir_suffix.
1528 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1529 case $ac_top_builddir_sub in
1530 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1531 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1532 esac ;;
1533 esac
1534 ac_abs_top_builddir=$ac_pwd
1535 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1536 # for backward compatibility:
1537 ac_top_builddir=$ac_top_build_prefix
1538
1539 case $srcdir in
1540 .) # We are building in place.
1541 ac_srcdir=.
1542 ac_top_srcdir=$ac_top_builddir_sub
1543 ac_abs_top_srcdir=$ac_pwd ;;
1544 [\\/]* | ?:[\\/]* ) # Absolute name.
1545 ac_srcdir=$srcdir$ac_dir_suffix;
1546 ac_top_srcdir=$srcdir
1547 ac_abs_top_srcdir=$srcdir ;;
1548 *) # Relative name.
1549 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1550 ac_top_srcdir=$ac_top_build_prefix$srcdir
1551 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1552 esac
1553 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1554
1555 cd "$ac_dir" || { ac_status=$?; continue; }
1556 # Check for guested configure.
1557 if test -f "$ac_srcdir/configure.gnu"; then
1558 echo &&
1559 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1560 elif test -f "$ac_srcdir/configure"; then
1561 echo &&
1562 $SHELL "$ac_srcdir/configure" --help=recursive
1563 else
1564 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1565 fi || ac_status=$?
1566 cd "$ac_pwd" || { ac_status=$?; break; }
1567 done
1568 fi
1569
1570 test -n "$ac_init_help" && exit $ac_status
1571 if $ac_init_version; then
1572 cat <<\_ACEOF
1573 GNU Fortran Runtime Library configure 0.3
1574 generated by GNU Autoconf 2.69
1575
1576 Copyright (C) 2012 Free Software Foundation, Inc.
1577 This configure script is free software; the Free Software Foundation
1578 gives unlimited permission to copy, distribute and modify it.
1579 _ACEOF
1580 exit
1581 fi
1582
1583 ## ------------------------ ##
1584 ## Autoconf initialization. ##
1585 ## ------------------------ ##
1586
1587 # ac_fn_c_try_compile LINENO
1588 # --------------------------
1589 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1590 ac_fn_c_try_compile ()
1591 {
1592 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1593 rm -f conftest.$ac_objext
1594 if { { ac_try="$ac_compile"
1595 case "(($ac_try" in
1596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1597 *) ac_try_echo=$ac_try;;
1598 esac
1599 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1600 $as_echo "$ac_try_echo"; } >&5
1601 (eval "$ac_compile") 2>conftest.err
1602 ac_status=$?
1603 if test -s conftest.err; then
1604 grep -v '^ *+' conftest.err >conftest.er1
1605 cat conftest.er1 >&5
1606 mv -f conftest.er1 conftest.err
1607 fi
1608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1609 test $ac_status = 0; } && {
1610 test -z "$ac_c_werror_flag" ||
1611 test ! -s conftest.err
1612 } && test -s conftest.$ac_objext; then :
1613 ac_retval=0
1614 else
1615 $as_echo "$as_me: failed program was:" >&5
1616 sed 's/^/| /' conftest.$ac_ext >&5
1617
1618 ac_retval=1
1619 fi
1620 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1621 as_fn_set_status $ac_retval
1622
1623 } # ac_fn_c_try_compile
1624
1625 # ac_fn_c_try_cpp LINENO
1626 # ----------------------
1627 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1628 ac_fn_c_try_cpp ()
1629 {
1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631 if { { ac_try="$ac_cpp conftest.$ac_ext"
1632 case "(($ac_try" in
1633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634 *) ac_try_echo=$ac_try;;
1635 esac
1636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637 $as_echo "$ac_try_echo"; } >&5
1638 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1639 ac_status=$?
1640 if test -s conftest.err; then
1641 grep -v '^ *+' conftest.err >conftest.er1
1642 cat conftest.er1 >&5
1643 mv -f conftest.er1 conftest.err
1644 fi
1645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646 test $ac_status = 0; } > conftest.i && {
1647 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1648 test ! -s conftest.err
1649 }; then :
1650 ac_retval=0
1651 else
1652 $as_echo "$as_me: failed program was:" >&5
1653 sed 's/^/| /' conftest.$ac_ext >&5
1654
1655 ac_retval=1
1656 fi
1657 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1658 as_fn_set_status $ac_retval
1659
1660 } # ac_fn_c_try_cpp
1661
1662 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1663 # -------------------------------------------------------
1664 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1665 # the include files in INCLUDES and setting the cache variable VAR
1666 # accordingly.
1667 ac_fn_c_check_header_mongrel ()
1668 {
1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670 if eval \${$3+:} false; then :
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1672 $as_echo_n "checking for $2... " >&6; }
1673 if eval \${$3+:} false; then :
1674 $as_echo_n "(cached) " >&6
1675 fi
1676 eval ac_res=\$$3
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1678 $as_echo "$ac_res" >&6; }
1679 else
1680 # Is the header compilable?
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1682 $as_echo_n "checking $2 usability... " >&6; }
1683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1684 /* end confdefs.h. */
1685 $4
1686 #include <$2>
1687 _ACEOF
1688 if ac_fn_c_try_compile "$LINENO"; then :
1689 ac_header_compiler=yes
1690 else
1691 ac_header_compiler=no
1692 fi
1693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1695 $as_echo "$ac_header_compiler" >&6; }
1696
1697 # Is the header present?
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1699 $as_echo_n "checking $2 presence... " >&6; }
1700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1701 /* end confdefs.h. */
1702 #include <$2>
1703 _ACEOF
1704 if ac_fn_c_try_cpp "$LINENO"; then :
1705 ac_header_preproc=yes
1706 else
1707 ac_header_preproc=no
1708 fi
1709 rm -f conftest.err conftest.i conftest.$ac_ext
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1711 $as_echo "$ac_header_preproc" >&6; }
1712
1713 # So? What about this header?
1714 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1715 yes:no: )
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1717 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1719 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1720 ;;
1721 no:yes:* )
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1723 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1725 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1727 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1729 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1731 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1732 ;;
1733 esac
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1735 $as_echo_n "checking for $2... " >&6; }
1736 if eval \${$3+:} false; then :
1737 $as_echo_n "(cached) " >&6
1738 else
1739 eval "$3=\$ac_header_compiler"
1740 fi
1741 eval ac_res=\$$3
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1743 $as_echo "$ac_res" >&6; }
1744 fi
1745 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746
1747 } # ac_fn_c_check_header_mongrel
1748
1749 # ac_fn_c_try_run LINENO
1750 # ----------------------
1751 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1752 # that executables *can* be run.
1753 ac_fn_c_try_run ()
1754 {
1755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756 if { { ac_try="$ac_link"
1757 case "(($ac_try" in
1758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1759 *) ac_try_echo=$ac_try;;
1760 esac
1761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1762 $as_echo "$ac_try_echo"; } >&5
1763 (eval "$ac_link") 2>&5
1764 ac_status=$?
1765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1766 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1767 { { case "(($ac_try" in
1768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1769 *) ac_try_echo=$ac_try;;
1770 esac
1771 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1772 $as_echo "$ac_try_echo"; } >&5
1773 (eval "$ac_try") 2>&5
1774 ac_status=$?
1775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776 test $ac_status = 0; }; }; then :
1777 ac_retval=0
1778 else
1779 $as_echo "$as_me: program exited with status $ac_status" >&5
1780 $as_echo "$as_me: failed program was:" >&5
1781 sed 's/^/| /' conftest.$ac_ext >&5
1782
1783 ac_retval=$ac_status
1784 fi
1785 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1786 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1787 as_fn_set_status $ac_retval
1788
1789 } # ac_fn_c_try_run
1790
1791 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1792 # -------------------------------------------------------
1793 # Tests whether HEADER exists and can be compiled using the include files in
1794 # INCLUDES, setting the cache variable VAR accordingly.
1795 ac_fn_c_check_header_compile ()
1796 {
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1799 $as_echo_n "checking for $2... " >&6; }
1800 if eval \${$3+:} false; then :
1801 $as_echo_n "(cached) " >&6
1802 else
1803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1804 /* end confdefs.h. */
1805 $4
1806 #include <$2>
1807 _ACEOF
1808 if ac_fn_c_try_compile "$LINENO"; then :
1809 eval "$3=yes"
1810 else
1811 eval "$3=no"
1812 fi
1813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1814 fi
1815 eval ac_res=\$$3
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1817 $as_echo "$ac_res" >&6; }
1818 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1819
1820 } # ac_fn_c_check_header_compile
1821
1822 # ac_fn_c_try_link LINENO
1823 # -----------------------
1824 # Try to link conftest.$ac_ext, and return whether this succeeded.
1825 ac_fn_c_try_link ()
1826 {
1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828 rm -f conftest.$ac_objext conftest$ac_exeext
1829 if { { ac_try="$ac_link"
1830 case "(($ac_try" in
1831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1832 *) ac_try_echo=$ac_try;;
1833 esac
1834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835 $as_echo "$ac_try_echo"; } >&5
1836 (eval "$ac_link") 2>conftest.err
1837 ac_status=$?
1838 if test -s conftest.err; then
1839 grep -v '^ *+' conftest.err >conftest.er1
1840 cat conftest.er1 >&5
1841 mv -f conftest.er1 conftest.err
1842 fi
1843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1844 test $ac_status = 0; } && {
1845 test -z "$ac_c_werror_flag" ||
1846 test ! -s conftest.err
1847 } && test -s conftest$ac_exeext && {
1848 test "$cross_compiling" = yes ||
1849 test -x conftest$ac_exeext
1850 }; then :
1851 ac_retval=0
1852 else
1853 $as_echo "$as_me: failed program was:" >&5
1854 sed 's/^/| /' conftest.$ac_ext >&5
1855
1856 ac_retval=1
1857 fi
1858 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1859 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1860 # interfere with the next link command; also delete a directory that is
1861 # left behind by Apple's compiler. We do this before executing the actions.
1862 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1863 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1864 as_fn_set_status $ac_retval
1865
1866 } # ac_fn_c_try_link
1867
1868 # ac_fn_c_check_func LINENO FUNC VAR
1869 # ----------------------------------
1870 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1871 ac_fn_c_check_func ()
1872 {
1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1875 $as_echo_n "checking for $2... " >&6; }
1876 if eval \${$3+:} false; then :
1877 $as_echo_n "(cached) " >&6
1878 else
1879 if test x$gcc_no_link = xyes; then
1880 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1881 fi
1882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883 /* end confdefs.h. */
1884 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1885 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1886 #define $2 innocuous_$2
1887
1888 /* System header to define __stub macros and hopefully few prototypes,
1889 which can conflict with char $2 (); below.
1890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1891 <limits.h> exists even on freestanding compilers. */
1892
1893 #ifdef __STDC__
1894 # include <limits.h>
1895 #else
1896 # include <assert.h>
1897 #endif
1898
1899 #undef $2
1900
1901 /* Override any GCC internal prototype to avoid an error.
1902 Use char because int might match the return type of a GCC
1903 builtin and then its argument prototype would still apply. */
1904 #ifdef __cplusplus
1905 extern "C"
1906 #endif
1907 char $2 ();
1908 /* The GNU C library defines this for functions which it implements
1909 to always fail with ENOSYS. Some functions are actually named
1910 something starting with __ and the normal name is an alias. */
1911 #if defined __stub_$2 || defined __stub___$2
1912 choke me
1913 #endif
1914
1915 int
1916 main ()
1917 {
1918 return $2 ();
1919 ;
1920 return 0;
1921 }
1922 _ACEOF
1923 if ac_fn_c_try_link "$LINENO"; then :
1924 eval "$3=yes"
1925 else
1926 eval "$3=no"
1927 fi
1928 rm -f core conftest.err conftest.$ac_objext \
1929 conftest$ac_exeext conftest.$ac_ext
1930 fi
1931 eval ac_res=\$$3
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933 $as_echo "$ac_res" >&6; }
1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935
1936 } # ac_fn_c_check_func
1937
1938 # ac_fn_fc_try_compile LINENO
1939 # ---------------------------
1940 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1941 ac_fn_fc_try_compile ()
1942 {
1943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944 rm -f conftest.$ac_objext
1945 if { { ac_try="$ac_compile"
1946 case "(($ac_try" in
1947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1948 *) ac_try_echo=$ac_try;;
1949 esac
1950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1951 $as_echo "$ac_try_echo"; } >&5
1952 (eval "$ac_compile") 2>conftest.err
1953 ac_status=$?
1954 if test -s conftest.err; then
1955 grep -v '^ *+' conftest.err >conftest.er1
1956 cat conftest.er1 >&5
1957 mv -f conftest.er1 conftest.err
1958 fi
1959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1960 test $ac_status = 0; } && {
1961 test -z "$ac_fc_werror_flag" ||
1962 test ! -s conftest.err
1963 } && test -s conftest.$ac_objext; then :
1964 ac_retval=0
1965 else
1966 $as_echo "$as_me: failed program was:" >&5
1967 sed 's/^/| /' conftest.$ac_ext >&5
1968
1969 ac_retval=1
1970 fi
1971 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1972 as_fn_set_status $ac_retval
1973
1974 } # ac_fn_fc_try_compile
1975
1976 # ac_fn_fc_try_link LINENO
1977 # ------------------------
1978 # Try to link conftest.$ac_ext, and return whether this succeeded.
1979 ac_fn_fc_try_link ()
1980 {
1981 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982 rm -f conftest.$ac_objext conftest$ac_exeext
1983 if { { ac_try="$ac_link"
1984 case "(($ac_try" in
1985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1986 *) ac_try_echo=$ac_try;;
1987 esac
1988 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1989 $as_echo "$ac_try_echo"; } >&5
1990 (eval "$ac_link") 2>conftest.err
1991 ac_status=$?
1992 if test -s conftest.err; then
1993 grep -v '^ *+' conftest.err >conftest.er1
1994 cat conftest.er1 >&5
1995 mv -f conftest.er1 conftest.err
1996 fi
1997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1998 test $ac_status = 0; } && {
1999 test -z "$ac_fc_werror_flag" ||
2000 test ! -s conftest.err
2001 } && test -s conftest$ac_exeext && {
2002 test "$cross_compiling" = yes ||
2003 test -x conftest$ac_exeext
2004 }; then :
2005 ac_retval=0
2006 else
2007 $as_echo "$as_me: failed program was:" >&5
2008 sed 's/^/| /' conftest.$ac_ext >&5
2009
2010 ac_retval=1
2011 fi
2012 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2013 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2014 # interfere with the next link command; also delete a directory that is
2015 # left behind by Apple's compiler. We do this before executing the actions.
2016 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2017 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2018 as_fn_set_status $ac_retval
2019
2020 } # ac_fn_fc_try_link
2021
2022 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2023 # -------------------------------------------
2024 # Tests whether TYPE exists after having included INCLUDES, setting cache
2025 # variable VAR accordingly.
2026 ac_fn_c_check_type ()
2027 {
2028 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2030 $as_echo_n "checking for $2... " >&6; }
2031 if eval \${$3+:} false; then :
2032 $as_echo_n "(cached) " >&6
2033 else
2034 eval "$3=no"
2035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2036 /* end confdefs.h. */
2037 $4
2038 int
2039 main ()
2040 {
2041 if (sizeof ($2))
2042 return 0;
2043 ;
2044 return 0;
2045 }
2046 _ACEOF
2047 if ac_fn_c_try_compile "$LINENO"; then :
2048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2049 /* end confdefs.h. */
2050 $4
2051 int
2052 main ()
2053 {
2054 if (sizeof (($2)))
2055 return 0;
2056 ;
2057 return 0;
2058 }
2059 _ACEOF
2060 if ac_fn_c_try_compile "$LINENO"; then :
2061
2062 else
2063 eval "$3=yes"
2064 fi
2065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2066 fi
2067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2068 fi
2069 eval ac_res=\$$3
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2071 $as_echo "$ac_res" >&6; }
2072 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2073
2074 } # ac_fn_c_check_type
2075
2076 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2077 # --------------------------------------------
2078 # Tries to find the compile-time value of EXPR in a program that includes
2079 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2080 # computed
2081 ac_fn_c_compute_int ()
2082 {
2083 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2084 if test "$cross_compiling" = yes; then
2085 # Depending upon the size, compute the lo and hi bounds.
2086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087 /* end confdefs.h. */
2088 $4
2089 int
2090 main ()
2091 {
2092 static int test_array [1 - 2 * !(($2) >= 0)];
2093 test_array [0] = 0;
2094 return test_array [0];
2095
2096 ;
2097 return 0;
2098 }
2099 _ACEOF
2100 if ac_fn_c_try_compile "$LINENO"; then :
2101 ac_lo=0 ac_mid=0
2102 while :; do
2103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2104 /* end confdefs.h. */
2105 $4
2106 int
2107 main ()
2108 {
2109 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2110 test_array [0] = 0;
2111 return test_array [0];
2112
2113 ;
2114 return 0;
2115 }
2116 _ACEOF
2117 if ac_fn_c_try_compile "$LINENO"; then :
2118 ac_hi=$ac_mid; break
2119 else
2120 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2121 if test $ac_lo -le $ac_mid; then
2122 ac_lo= ac_hi=
2123 break
2124 fi
2125 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2126 fi
2127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2128 done
2129 else
2130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2131 /* end confdefs.h. */
2132 $4
2133 int
2134 main ()
2135 {
2136 static int test_array [1 - 2 * !(($2) < 0)];
2137 test_array [0] = 0;
2138 return test_array [0];
2139
2140 ;
2141 return 0;
2142 }
2143 _ACEOF
2144 if ac_fn_c_try_compile "$LINENO"; then :
2145 ac_hi=-1 ac_mid=-1
2146 while :; do
2147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148 /* end confdefs.h. */
2149 $4
2150 int
2151 main ()
2152 {
2153 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2154 test_array [0] = 0;
2155 return test_array [0];
2156
2157 ;
2158 return 0;
2159 }
2160 _ACEOF
2161 if ac_fn_c_try_compile "$LINENO"; then :
2162 ac_lo=$ac_mid; break
2163 else
2164 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2165 if test $ac_mid -le $ac_hi; then
2166 ac_lo= ac_hi=
2167 break
2168 fi
2169 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2170 fi
2171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2172 done
2173 else
2174 ac_lo= ac_hi=
2175 fi
2176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2177 fi
2178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2179 # Binary search between lo and hi bounds.
2180 while test "x$ac_lo" != "x$ac_hi"; do
2181 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2183 /* end confdefs.h. */
2184 $4
2185 int
2186 main ()
2187 {
2188 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2189 test_array [0] = 0;
2190 return test_array [0];
2191
2192 ;
2193 return 0;
2194 }
2195 _ACEOF
2196 if ac_fn_c_try_compile "$LINENO"; then :
2197 ac_hi=$ac_mid
2198 else
2199 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2200 fi
2201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2202 done
2203 case $ac_lo in #((
2204 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2205 '') ac_retval=1 ;;
2206 esac
2207 else
2208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2209 /* end confdefs.h. */
2210 $4
2211 static long int longval () { return $2; }
2212 static unsigned long int ulongval () { return $2; }
2213 #include <stdio.h>
2214 #include <stdlib.h>
2215 int
2216 main ()
2217 {
2218
2219 FILE *f = fopen ("conftest.val", "w");
2220 if (! f)
2221 return 1;
2222 if (($2) < 0)
2223 {
2224 long int i = longval ();
2225 if (i != ($2))
2226 return 1;
2227 fprintf (f, "%ld", i);
2228 }
2229 else
2230 {
2231 unsigned long int i = ulongval ();
2232 if (i != ($2))
2233 return 1;
2234 fprintf (f, "%lu", i);
2235 }
2236 /* Do not output a trailing newline, as this causes \r\n confusion
2237 on some platforms. */
2238 return ferror (f) || fclose (f) != 0;
2239
2240 ;
2241 return 0;
2242 }
2243 _ACEOF
2244 if ac_fn_c_try_run "$LINENO"; then :
2245 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2246 else
2247 ac_retval=1
2248 fi
2249 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2250 conftest.$ac_objext conftest.beam conftest.$ac_ext
2251 rm -f conftest.val
2252
2253 fi
2254 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2255 as_fn_set_status $ac_retval
2256
2257 } # ac_fn_c_compute_int
2258
2259 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2260 # ----------------------------------------------------
2261 # Tries to find if the field MEMBER exists in type AGGR, after including
2262 # INCLUDES, setting cache variable VAR accordingly.
2263 ac_fn_c_check_member ()
2264 {
2265 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2267 $as_echo_n "checking for $2.$3... " >&6; }
2268 if eval \${$4+:} false; then :
2269 $as_echo_n "(cached) " >&6
2270 else
2271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2272 /* end confdefs.h. */
2273 $5
2274 int
2275 main ()
2276 {
2277 static $2 ac_aggr;
2278 if (ac_aggr.$3)
2279 return 0;
2280 ;
2281 return 0;
2282 }
2283 _ACEOF
2284 if ac_fn_c_try_compile "$LINENO"; then :
2285 eval "$4=yes"
2286 else
2287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2288 /* end confdefs.h. */
2289 $5
2290 int
2291 main ()
2292 {
2293 static $2 ac_aggr;
2294 if (sizeof ac_aggr.$3)
2295 return 0;
2296 ;
2297 return 0;
2298 }
2299 _ACEOF
2300 if ac_fn_c_try_compile "$LINENO"; then :
2301 eval "$4=yes"
2302 else
2303 eval "$4=no"
2304 fi
2305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2306 fi
2307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2308 fi
2309 eval ac_res=\$$4
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2311 $as_echo "$ac_res" >&6; }
2312 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2313
2314 } # ac_fn_c_check_member
2315 cat >config.log <<_ACEOF
2316 This file contains any messages produced by compilers while
2317 running configure, to aid debugging if configure makes a mistake.
2318
2319 It was created by GNU Fortran Runtime Library $as_me 0.3, which was
2320 generated by GNU Autoconf 2.69. Invocation command line was
2321
2322 $ $0 $@
2323
2324 _ACEOF
2325 exec 5>>config.log
2326 {
2327 cat <<_ASUNAME
2328 ## --------- ##
2329 ## Platform. ##
2330 ## --------- ##
2331
2332 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2333 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2334 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2335 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2336 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2337
2338 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2339 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2340
2341 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2342 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2343 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2344 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2345 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2346 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2347 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2348
2349 _ASUNAME
2350
2351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2352 for as_dir in $PATH
2353 do
2354 IFS=$as_save_IFS
2355 test -z "$as_dir" && as_dir=.
2356 $as_echo "PATH: $as_dir"
2357 done
2358 IFS=$as_save_IFS
2359
2360 } >&5
2361
2362 cat >&5 <<_ACEOF
2363
2364
2365 ## ----------- ##
2366 ## Core tests. ##
2367 ## ----------- ##
2368
2369 _ACEOF
2370
2371
2372 # Keep a trace of the command line.
2373 # Strip out --no-create and --no-recursion so they do not pile up.
2374 # Strip out --silent because we don't want to record it for future runs.
2375 # Also quote any args containing shell meta-characters.
2376 # Make two passes to allow for proper duplicate-argument suppression.
2377 ac_configure_args=
2378 ac_configure_args0=
2379 ac_configure_args1=
2380 ac_must_keep_next=false
2381 for ac_pass in 1 2
2382 do
2383 for ac_arg
2384 do
2385 case $ac_arg in
2386 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2387 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2388 | -silent | --silent | --silen | --sile | --sil)
2389 continue ;;
2390 *\'*)
2391 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2392 esac
2393 case $ac_pass in
2394 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2395 2)
2396 as_fn_append ac_configure_args1 " '$ac_arg'"
2397 if test $ac_must_keep_next = true; then
2398 ac_must_keep_next=false # Got value, back to normal.
2399 else
2400 case $ac_arg in
2401 *=* | --config-cache | -C | -disable-* | --disable-* \
2402 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2403 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2404 | -with-* | --with-* | -without-* | --without-* | --x)
2405 case "$ac_configure_args0 " in
2406 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2407 esac
2408 ;;
2409 -* ) ac_must_keep_next=true ;;
2410 esac
2411 fi
2412 as_fn_append ac_configure_args " '$ac_arg'"
2413 ;;
2414 esac
2415 done
2416 done
2417 { ac_configure_args0=; unset ac_configure_args0;}
2418 { ac_configure_args1=; unset ac_configure_args1;}
2419
2420 # When interrupted or exit'd, cleanup temporary files, and complete
2421 # config.log. We remove comments because anyway the quotes in there
2422 # would cause problems or look ugly.
2423 # WARNING: Use '\'' to represent an apostrophe within the trap.
2424 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2425 trap 'exit_status=$?
2426 # Save into config.log some information that might help in debugging.
2427 {
2428 echo
2429
2430 $as_echo "## ---------------- ##
2431 ## Cache variables. ##
2432 ## ---------------- ##"
2433 echo
2434 # The following way of writing the cache mishandles newlines in values,
2435 (
2436 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2437 eval ac_val=\$$ac_var
2438 case $ac_val in #(
2439 *${as_nl}*)
2440 case $ac_var in #(
2441 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2442 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2443 esac
2444 case $ac_var in #(
2445 _ | IFS | as_nl) ;; #(
2446 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2447 *) { eval $ac_var=; unset $ac_var;} ;;
2448 esac ;;
2449 esac
2450 done
2451 (set) 2>&1 |
2452 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2453 *${as_nl}ac_space=\ *)
2454 sed -n \
2455 "s/'\''/'\''\\\\'\'''\''/g;
2456 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2457 ;; #(
2458 *)
2459 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2460 ;;
2461 esac |
2462 sort
2463 )
2464 echo
2465
2466 $as_echo "## ----------------- ##
2467 ## Output variables. ##
2468 ## ----------------- ##"
2469 echo
2470 for ac_var in $ac_subst_vars
2471 do
2472 eval ac_val=\$$ac_var
2473 case $ac_val in
2474 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2475 esac
2476 $as_echo "$ac_var='\''$ac_val'\''"
2477 done | sort
2478 echo
2479
2480 if test -n "$ac_subst_files"; then
2481 $as_echo "## ------------------- ##
2482 ## File substitutions. ##
2483 ## ------------------- ##"
2484 echo
2485 for ac_var in $ac_subst_files
2486 do
2487 eval ac_val=\$$ac_var
2488 case $ac_val in
2489 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2490 esac
2491 $as_echo "$ac_var='\''$ac_val'\''"
2492 done | sort
2493 echo
2494 fi
2495
2496 if test -s confdefs.h; then
2497 $as_echo "## ----------- ##
2498 ## confdefs.h. ##
2499 ## ----------- ##"
2500 echo
2501 cat confdefs.h
2502 echo
2503 fi
2504 test "$ac_signal" != 0 &&
2505 $as_echo "$as_me: caught signal $ac_signal"
2506 $as_echo "$as_me: exit $exit_status"
2507 } >&5
2508 rm -f core *.core core.conftest.* &&
2509 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2510 exit $exit_status
2511 ' 0
2512 for ac_signal in 1 2 13 15; do
2513 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2514 done
2515 ac_signal=0
2516
2517 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2518 rm -f -r conftest* confdefs.h
2519
2520 $as_echo "/* confdefs.h */" > confdefs.h
2521
2522 # Predefined preprocessor variables.
2523
2524 cat >>confdefs.h <<_ACEOF
2525 #define PACKAGE_NAME "$PACKAGE_NAME"
2526 _ACEOF
2527
2528 cat >>confdefs.h <<_ACEOF
2529 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2530 _ACEOF
2531
2532 cat >>confdefs.h <<_ACEOF
2533 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2534 _ACEOF
2535
2536 cat >>confdefs.h <<_ACEOF
2537 #define PACKAGE_STRING "$PACKAGE_STRING"
2538 _ACEOF
2539
2540 cat >>confdefs.h <<_ACEOF
2541 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2542 _ACEOF
2543
2544 cat >>confdefs.h <<_ACEOF
2545 #define PACKAGE_URL "$PACKAGE_URL"
2546 _ACEOF
2547
2548
2549 # Let the site file select an alternate cache file if it wants to.
2550 # Prefer an explicitly selected file to automatically selected ones.
2551 ac_site_file1=NONE
2552 ac_site_file2=NONE
2553 if test -n "$CONFIG_SITE"; then
2554 # We do not want a PATH search for config.site.
2555 case $CONFIG_SITE in #((
2556 -*) ac_site_file1=./$CONFIG_SITE;;
2557 */*) ac_site_file1=$CONFIG_SITE;;
2558 *) ac_site_file1=./$CONFIG_SITE;;
2559 esac
2560 elif test "x$prefix" != xNONE; then
2561 ac_site_file1=$prefix/share/config.site
2562 ac_site_file2=$prefix/etc/config.site
2563 else
2564 ac_site_file1=$ac_default_prefix/share/config.site
2565 ac_site_file2=$ac_default_prefix/etc/config.site
2566 fi
2567 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2568 do
2569 test "x$ac_site_file" = xNONE && continue
2570 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2572 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2573 sed 's/^/| /' "$ac_site_file" >&5
2574 . "$ac_site_file" \
2575 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2576 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2577 as_fn_error $? "failed to load site script $ac_site_file
2578 See \`config.log' for more details" "$LINENO" 5; }
2579 fi
2580 done
2581
2582 if test -r "$cache_file"; then
2583 # Some versions of bash will fail to source /dev/null (special files
2584 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2585 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2587 $as_echo "$as_me: loading cache $cache_file" >&6;}
2588 case $cache_file in
2589 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2590 *) . "./$cache_file";;
2591 esac
2592 fi
2593 else
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2595 $as_echo "$as_me: creating cache $cache_file" >&6;}
2596 >$cache_file
2597 fi
2598
2599 as_fn_append ac_header_list " unistd.h"
2600 as_fn_append ac_header_list " sys/random.h"
2601 as_fn_append ac_header_list " sys/time.h"
2602 as_fn_append ac_header_list " sys/times.h"
2603 as_fn_append ac_header_list " sys/resource.h"
2604 as_fn_append ac_header_list " sys/types.h"
2605 as_fn_append ac_header_list " sys/stat.h"
2606 as_fn_append ac_header_list " sys/uio.h"
2607 as_fn_append ac_header_list " sys/wait.h"
2608 as_fn_append ac_header_list " floatingpoint.h"
2609 as_fn_append ac_header_list " ieeefp.h"
2610 as_fn_append ac_header_list " fenv.h"
2611 as_fn_append ac_header_list " fptrap.h"
2612 as_fn_append ac_header_list " fpxcp.h"
2613 as_fn_append ac_header_list " pwd.h"
2614 as_fn_append ac_header_list " complex.h"
2615 as_fn_append ac_header_list " xlocale.h"
2616 as_fn_append ac_func_list " getrusage"
2617 as_fn_append ac_func_list " times"
2618 as_fn_append ac_func_list " mkstemp"
2619 as_fn_append ac_func_list " strtof"
2620 as_fn_append ac_func_list " strtold"
2621 as_fn_append ac_func_list " snprintf"
2622 as_fn_append ac_func_list " ftruncate"
2623 as_fn_append ac_func_list " chsize"
2624 as_fn_append ac_func_list " chdir"
2625 as_fn_append ac_func_list " getentropy"
2626 as_fn_append ac_func_list " getlogin"
2627 as_fn_append ac_func_list " gethostname"
2628 as_fn_append ac_func_list " kill"
2629 as_fn_append ac_func_list " link"
2630 as_fn_append ac_func_list " symlink"
2631 as_fn_append ac_func_list " sleep"
2632 as_fn_append ac_func_list " ttyname"
2633 as_fn_append ac_func_list " sigaction"
2634 as_fn_append ac_func_list " waitpid"
2635 as_fn_append ac_func_list " alarm"
2636 as_fn_append ac_func_list " access"
2637 as_fn_append ac_func_list " fork"
2638 as_fn_append ac_func_list " posix_spawn"
2639 as_fn_append ac_func_list " setmode"
2640 as_fn_append ac_func_list " fcntl"
2641 as_fn_append ac_func_list " writev"
2642 as_fn_append ac_func_list " gettimeofday"
2643 as_fn_append ac_func_list " stat"
2644 as_fn_append ac_func_list " fstat"
2645 as_fn_append ac_func_list " lstat"
2646 as_fn_append ac_func_list " getpwuid"
2647 as_fn_append ac_func_list " vsnprintf"
2648 as_fn_append ac_func_list " dup"
2649 as_fn_append ac_func_list " getcwd"
2650 as_fn_append ac_func_list " localtime_r"
2651 as_fn_append ac_func_list " gmtime_r"
2652 as_fn_append ac_func_list " getpwuid_r"
2653 as_fn_append ac_func_list " ttyname_r"
2654 as_fn_append ac_func_list " clock_gettime"
2655 as_fn_append ac_func_list " getgid"
2656 as_fn_append ac_func_list " getpid"
2657 as_fn_append ac_func_list " getuid"
2658 as_fn_append ac_func_list " geteuid"
2659 as_fn_append ac_func_list " umask"
2660 as_fn_append ac_func_list " getegid"
2661 as_fn_append ac_func_list " secure_getenv"
2662 as_fn_append ac_func_list " __secure_getenv"
2663 as_fn_append ac_func_list " mkostemp"
2664 as_fn_append ac_func_list " strnlen"
2665 as_fn_append ac_func_list " strndup"
2666 as_fn_append ac_func_list " newlocale"
2667 as_fn_append ac_func_list " freelocale"
2668 as_fn_append ac_func_list " uselocale"
2669 as_fn_append ac_func_list " strerror_l"
2670 as_fn_append ac_header_list " math.h"
2671 # Check that the precious variables saved in the cache have kept the same
2672 # value.
2673 ac_cache_corrupted=false
2674 for ac_var in $ac_precious_vars; do
2675 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2676 eval ac_new_set=\$ac_env_${ac_var}_set
2677 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2678 eval ac_new_val=\$ac_env_${ac_var}_value
2679 case $ac_old_set,$ac_new_set in
2680 set,)
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2682 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2683 ac_cache_corrupted=: ;;
2684 ,set)
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2686 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2687 ac_cache_corrupted=: ;;
2688 ,);;
2689 *)
2690 if test "x$ac_old_val" != "x$ac_new_val"; then
2691 # differences in whitespace do not lead to failure.
2692 ac_old_val_w=`echo x $ac_old_val`
2693 ac_new_val_w=`echo x $ac_new_val`
2694 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2696 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2697 ac_cache_corrupted=:
2698 else
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2700 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2701 eval $ac_var=\$ac_old_val
2702 fi
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2704 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2706 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2707 fi;;
2708 esac
2709 # Pass precious variables to config.status.
2710 if test "$ac_new_set" = set; then
2711 case $ac_new_val in
2712 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2713 *) ac_arg=$ac_var=$ac_new_val ;;
2714 esac
2715 case " $ac_configure_args " in
2716 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2717 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2718 esac
2719 fi
2720 done
2721 if $ac_cache_corrupted; then
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2723 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2725 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2726 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2727 fi
2728 ## -------------------- ##
2729 ## Main body of script. ##
2730 ## -------------------- ##
2731
2732 ac_ext=c
2733 ac_cpp='$CPP $CPPFLAGS'
2734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2737
2738
2739
2740
2741
2742 ac_config_headers="$ac_config_headers config.h"
2743
2744 ac_aux_dir=
2745 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2746 if test -f "$ac_dir/install-sh"; then
2747 ac_aux_dir=$ac_dir
2748 ac_install_sh="$ac_aux_dir/install-sh -c"
2749 break
2750 elif test -f "$ac_dir/install.sh"; then
2751 ac_aux_dir=$ac_dir
2752 ac_install_sh="$ac_aux_dir/install.sh -c"
2753 break
2754 elif test -f "$ac_dir/shtool"; then
2755 ac_aux_dir=$ac_dir
2756 ac_install_sh="$ac_aux_dir/shtool install -c"
2757 break
2758 fi
2759 done
2760 if test -z "$ac_aux_dir"; then
2761 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2762 fi
2763
2764 # These three variables are undocumented and unsupported,
2765 # and are intended to be withdrawn in a future Autoconf release.
2766 # They can cause serious problems if a builder's source tree is in a directory
2767 # whose full name contains unusual characters.
2768 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2769 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2770 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2771
2772
2773 # Make sure we can run config.sub.
2774 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2775 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2776
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2778 $as_echo_n "checking build system type... " >&6; }
2779 if ${ac_cv_build+:} false; then :
2780 $as_echo_n "(cached) " >&6
2781 else
2782 ac_build_alias=$build_alias
2783 test "x$ac_build_alias" = x &&
2784 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2785 test "x$ac_build_alias" = x &&
2786 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2787 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2788 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2789
2790 fi
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2792 $as_echo "$ac_cv_build" >&6; }
2793 case $ac_cv_build in
2794 *-*-*) ;;
2795 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2796 esac
2797 build=$ac_cv_build
2798 ac_save_IFS=$IFS; IFS='-'
2799 set x $ac_cv_build
2800 shift
2801 build_cpu=$1
2802 build_vendor=$2
2803 shift; shift
2804 # Remember, the first character of IFS is used to create $*,
2805 # except with old shells:
2806 build_os=$*
2807 IFS=$ac_save_IFS
2808 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2809
2810
2811 case ${build_alias} in
2812 "") build_noncanonical=${build} ;;
2813 *) build_noncanonical=${build_alias} ;;
2814 esac
2815
2816 case ${host_alias} in
2817 "") host_noncanonical=${build_noncanonical} ;;
2818 *) host_noncanonical=${host_alias} ;;
2819 esac
2820
2821 case ${target_alias} in
2822 "") target_noncanonical=${host_noncanonical} ;;
2823 *) target_noncanonical=${target_alias} ;;
2824 esac
2825
2826
2827 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2828 # have matching libraries, they should use host libraries: Makefile.tpl
2829 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2830 # However, they still use the build modules, because the corresponding
2831 # host modules (e.g. bison) are only built for the host when bootstrap
2832 # finishes. So:
2833 # - build_subdir is where we find build modules, and never changes.
2834 # - build_libsubdir is where we find build libraries, and can be overridden.
2835
2836 # Prefix 'build-' so this never conflicts with target_subdir.
2837 build_subdir="build-${build_noncanonical}"
2838
2839 # Check whether --with-build-libsubdir was given.
2840 if test "${with_build_libsubdir+set}" = set; then :
2841 withval=$with_build_libsubdir; build_libsubdir="$withval"
2842 else
2843 build_libsubdir="$build_subdir"
2844 fi
2845
2846 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2847 if ( test $srcdir = . && test -d gcc ) \
2848 || test -d $srcdir/../host-${host_noncanonical}; then
2849 host_subdir="host-${host_noncanonical}"
2850 else
2851 host_subdir=.
2852 fi
2853 # No prefix.
2854 target_subdir=${target_noncanonical}
2855
2856
2857 # -------
2858 # Options
2859 # -------
2860
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2862 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2863 # Check whether --enable-version-specific-runtime-libs was given.
2864 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2865 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2866 yes) version_specific_libs=yes ;;
2867 no) version_specific_libs=no ;;
2868 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2869 esac
2870 else
2871 version_specific_libs=no
2872 fi
2873
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2875 $as_echo "$version_specific_libs" >&6; }
2876
2877 # Build with intermodule optimisations
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-intermodule" >&5
2879 $as_echo_n "checking for --enable-intermodule... " >&6; }
2880 # Check whether --enable-intermodule was given.
2881 if test "${enable_intermodule+set}" = set; then :
2882 enableval=$enable_intermodule; case "$enable_intermodule" in
2883 yes) onestep="-onestep";;
2884 *) onestep="";;
2885 esac
2886 else
2887 onestep=""
2888 fi
2889
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_intermodule" >&5
2891 $as_echo "$enable_intermodule" >&6; }
2892 if test x$onestep = x-onestep; then
2893 onestep_TRUE=
2894 onestep_FALSE='#'
2895 else
2896 onestep_TRUE='#'
2897 onestep_FALSE=
2898 fi
2899
2900
2901
2902 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2903 #
2904 # You will slowly go insane if you do not grok the following fact: when
2905 # building this library, the top-level /target/ becomes the library's /host/.
2906 #
2907 # configure then causes --target to default to --host, exactly like any
2908 # other package using autoconf. Therefore, 'target' and 'host' will
2909 # always be the same. This makes sense both for native and cross compilers
2910 # just think about it for a little while. :-)
2911 #
2912 # Also, if this library is being configured as part of a cross compiler, the
2913 # top-level configure script will pass the "real" host as $with_cross_host.
2914 #
2915 # Do not delete or change the following two lines. For why, see
2916 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2918 $as_echo_n "checking host system type... " >&6; }
2919 if ${ac_cv_host+:} false; then :
2920 $as_echo_n "(cached) " >&6
2921 else
2922 if test "x$host_alias" = x; then
2923 ac_cv_host=$ac_cv_build
2924 else
2925 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2926 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2927 fi
2928
2929 fi
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2931 $as_echo "$ac_cv_host" >&6; }
2932 case $ac_cv_host in
2933 *-*-*) ;;
2934 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2935 esac
2936 host=$ac_cv_host
2937 ac_save_IFS=$IFS; IFS='-'
2938 set x $ac_cv_host
2939 shift
2940 host_cpu=$1
2941 host_vendor=$2
2942 shift; shift
2943 # Remember, the first character of IFS is used to create $*,
2944 # except with old shells:
2945 host_os=$*
2946 IFS=$ac_save_IFS
2947 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2948
2949
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2951 $as_echo_n "checking target system type... " >&6; }
2952 if ${ac_cv_target+:} false; then :
2953 $as_echo_n "(cached) " >&6
2954 else
2955 if test "x$target_alias" = x; then
2956 ac_cv_target=$ac_cv_host
2957 else
2958 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2959 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2960 fi
2961
2962 fi
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2964 $as_echo "$ac_cv_target" >&6; }
2965 case $ac_cv_target in
2966 *-*-*) ;;
2967 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2968 esac
2969 target=$ac_cv_target
2970 ac_save_IFS=$IFS; IFS='-'
2971 set x $ac_cv_target
2972 shift
2973 target_cpu=$1
2974 target_vendor=$2
2975 shift; shift
2976 # Remember, the first character of IFS is used to create $*,
2977 # except with old shells:
2978 target_os=$*
2979 IFS=$ac_save_IFS
2980 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2981
2982
2983 # The aliases save the names the user supplied, while $host etc.
2984 # will get canonicalized.
2985 test -n "$target_alias" &&
2986 test "$program_prefix$program_suffix$program_transform_name" = \
2987 NONENONEs,x,x, &&
2988 program_prefix=${target_alias}-
2989
2990
2991
2992
2993 target_alias=${target_alias-$host_alias}
2994
2995
2996 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2997 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2998 # 1.9.6: minimum required version
2999 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
3000 # of other PACKAGE_* variables will, however, and there's nothing
3001 # we can do about that; they come from AC_INIT).
3002 # foreign: we don't follow the normal rules for GNU packages (no COPYING
3003 # file in the top srcdir, etc, etc), so stop complaining.
3004 # no-dist: we don't want 'dist' and related rules.
3005 # -Wall: turns on all automake warnings...
3006 # -Wno-portability: ...except this one, since GNU make is required.
3007 am__api_version='1.15'
3008
3009 # Find a good install program. We prefer a C program (faster),
3010 # so one script is as good as another. But avoid the broken or
3011 # incompatible versions:
3012 # SysV /etc/install, /usr/sbin/install
3013 # SunOS /usr/etc/install
3014 # IRIX /sbin/install
3015 # AIX /bin/install
3016 # AmigaOS /C/install, which installs bootblocks on floppy discs
3017 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3018 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3019 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3020 # OS/2's system install, which has a completely different semantic
3021 # ./install, which can be erroneously created by make from ./install.sh.
3022 # Reject install programs that cannot install multiple files.
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3024 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3025 if test -z "$INSTALL"; then
3026 if ${ac_cv_path_install+:} false; then :
3027 $as_echo_n "(cached) " >&6
3028 else
3029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030 for as_dir in $PATH
3031 do
3032 IFS=$as_save_IFS
3033 test -z "$as_dir" && as_dir=.
3034 # Account for people who put trailing slashes in PATH elements.
3035 case $as_dir/ in #((
3036 ./ | .// | /[cC]/* | \
3037 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3038 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3039 /usr/ucb/* ) ;;
3040 *)
3041 # OSF1 and SCO ODT 3.0 have their own names for install.
3042 # Don't use installbsd from OSF since it installs stuff as root
3043 # by default.
3044 for ac_prog in ginstall scoinst install; do
3045 for ac_exec_ext in '' $ac_executable_extensions; do
3046 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3047 if test $ac_prog = install &&
3048 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3049 # AIX install. It has an incompatible calling convention.
3050 :
3051 elif test $ac_prog = install &&
3052 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3053 # program-specific install script used by HP pwplus--don't use.
3054 :
3055 else
3056 rm -rf conftest.one conftest.two conftest.dir
3057 echo one > conftest.one
3058 echo two > conftest.two
3059 mkdir conftest.dir
3060 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3061 test -s conftest.one && test -s conftest.two &&
3062 test -s conftest.dir/conftest.one &&
3063 test -s conftest.dir/conftest.two
3064 then
3065 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3066 break 3
3067 fi
3068 fi
3069 fi
3070 done
3071 done
3072 ;;
3073 esac
3074
3075 done
3076 IFS=$as_save_IFS
3077
3078 rm -rf conftest.one conftest.two conftest.dir
3079
3080 fi
3081 if test "${ac_cv_path_install+set}" = set; then
3082 INSTALL=$ac_cv_path_install
3083 else
3084 # As a last resort, use the slow shell script. Don't cache a
3085 # value for INSTALL within a source directory, because that will
3086 # break other packages using the cache if that directory is
3087 # removed, or if the value is a relative name.
3088 INSTALL=$ac_install_sh
3089 fi
3090 fi
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3092 $as_echo "$INSTALL" >&6; }
3093
3094 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3095 # It thinks the first close brace ends the variable substitution.
3096 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3097
3098 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3099
3100 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3101
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3103 $as_echo_n "checking whether build environment is sane... " >&6; }
3104 # Reject unsafe characters in $srcdir or the absolute working directory
3105 # name. Accept space and tab only in the latter.
3106 am_lf='
3107 '
3108 case `pwd` in
3109 *[\\\"\#\$\&\'\`$am_lf]*)
3110 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3111 esac
3112 case $srcdir in
3113 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3114 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3115 esac
3116
3117 # Do 'set' in a subshell so we don't clobber the current shell's
3118 # arguments. Must try -L first in case configure is actually a
3119 # symlink; some systems play weird games with the mod time of symlinks
3120 # (eg FreeBSD returns the mod time of the symlink's containing
3121 # directory).
3122 if (
3123 am_has_slept=no
3124 for am_try in 1 2; do
3125 echo "timestamp, slept: $am_has_slept" > conftest.file
3126 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3127 if test "$*" = "X"; then
3128 # -L didn't work.
3129 set X `ls -t "$srcdir/configure" conftest.file`
3130 fi
3131 if test "$*" != "X $srcdir/configure conftest.file" \
3132 && test "$*" != "X conftest.file $srcdir/configure"; then
3133
3134 # If neither matched, then we have a broken ls. This can happen
3135 # if, for instance, CONFIG_SHELL is bash and it inherits a
3136 # broken ls alias from the environment. This has actually
3137 # happened. Such a system could not be considered "sane".
3138 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3139 alias in your environment" "$LINENO" 5
3140 fi
3141 if test "$2" = conftest.file || test $am_try -eq 2; then
3142 break
3143 fi
3144 # Just in case.
3145 sleep 1
3146 am_has_slept=yes
3147 done
3148 test "$2" = conftest.file
3149 )
3150 then
3151 # Ok.
3152 :
3153 else
3154 as_fn_error $? "newly created file is older than distributed files!
3155 Check your system clock" "$LINENO" 5
3156 fi
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3158 $as_echo "yes" >&6; }
3159 # If we didn't sleep, we still need to ensure time stamps of config.status and
3160 # generated files are strictly newer.
3161 am_sleep_pid=
3162 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3163 ( sleep 1 ) &
3164 am_sleep_pid=$!
3165 fi
3166
3167 rm -f conftest.file
3168
3169 test "$program_prefix" != NONE &&
3170 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3171 # Use a double $ so make ignores it.
3172 test "$program_suffix" != NONE &&
3173 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3174 # Double any \ or $.
3175 # By default was `s,x,x', remove it if useless.
3176 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3177 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3178
3179 # Expand $ac_aux_dir to an absolute path.
3180 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3181
3182 if test x"${MISSING+set}" != xset; then
3183 case $am_aux_dir in
3184 *\ * | *\ *)
3185 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3186 *)
3187 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3188 esac
3189 fi
3190 # Use eval to expand $SHELL
3191 if eval "$MISSING --is-lightweight"; then
3192 am_missing_run="$MISSING "
3193 else
3194 am_missing_run=
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3196 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3197 fi
3198
3199 if test x"${install_sh+set}" != xset; then
3200 case $am_aux_dir in
3201 *\ * | *\ *)
3202 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3203 *)
3204 install_sh="\${SHELL} $am_aux_dir/install-sh"
3205 esac
3206 fi
3207
3208 # Installed binaries are usually stripped using 'strip' when the user
3209 # run "make install-strip". However 'strip' might not be the right
3210 # tool to use in cross-compilation environments, therefore Automake
3211 # will honor the 'STRIP' environment variable to overrule this program.
3212 if test "$cross_compiling" != no; then
3213 if test -n "$ac_tool_prefix"; then
3214 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3215 set dummy ${ac_tool_prefix}strip; ac_word=$2
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3217 $as_echo_n "checking for $ac_word... " >&6; }
3218 if ${ac_cv_prog_STRIP+:} false; then :
3219 $as_echo_n "(cached) " >&6
3220 else
3221 if test -n "$STRIP"; then
3222 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3223 else
3224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3225 for as_dir in $PATH
3226 do
3227 IFS=$as_save_IFS
3228 test -z "$as_dir" && as_dir=.
3229 for ac_exec_ext in '' $ac_executable_extensions; do
3230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3231 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3233 break 2
3234 fi
3235 done
3236 done
3237 IFS=$as_save_IFS
3238
3239 fi
3240 fi
3241 STRIP=$ac_cv_prog_STRIP
3242 if test -n "$STRIP"; then
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3244 $as_echo "$STRIP" >&6; }
3245 else
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3247 $as_echo "no" >&6; }
3248 fi
3249
3250
3251 fi
3252 if test -z "$ac_cv_prog_STRIP"; then
3253 ac_ct_STRIP=$STRIP
3254 # Extract the first word of "strip", so it can be a program name with args.
3255 set dummy strip; ac_word=$2
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3257 $as_echo_n "checking for $ac_word... " >&6; }
3258 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3259 $as_echo_n "(cached) " >&6
3260 else
3261 if test -n "$ac_ct_STRIP"; then
3262 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3263 else
3264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3265 for as_dir in $PATH
3266 do
3267 IFS=$as_save_IFS
3268 test -z "$as_dir" && as_dir=.
3269 for ac_exec_ext in '' $ac_executable_extensions; do
3270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3271 ac_cv_prog_ac_ct_STRIP="strip"
3272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3273 break 2
3274 fi
3275 done
3276 done
3277 IFS=$as_save_IFS
3278
3279 fi
3280 fi
3281 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3282 if test -n "$ac_ct_STRIP"; then
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3284 $as_echo "$ac_ct_STRIP" >&6; }
3285 else
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3287 $as_echo "no" >&6; }
3288 fi
3289
3290 if test "x$ac_ct_STRIP" = x; then
3291 STRIP=":"
3292 else
3293 case $cross_compiling:$ac_tool_warned in
3294 yes:)
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3296 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3297 ac_tool_warned=yes ;;
3298 esac
3299 STRIP=$ac_ct_STRIP
3300 fi
3301 else
3302 STRIP="$ac_cv_prog_STRIP"
3303 fi
3304
3305 fi
3306 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3307
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3309 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3310 if test -z "$MKDIR_P"; then
3311 if ${ac_cv_path_mkdir+:} false; then :
3312 $as_echo_n "(cached) " >&6
3313 else
3314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3315 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3316 do
3317 IFS=$as_save_IFS
3318 test -z "$as_dir" && as_dir=.
3319 for ac_prog in mkdir gmkdir; do
3320 for ac_exec_ext in '' $ac_executable_extensions; do
3321 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3322 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3323 'mkdir (GNU coreutils) '* | \
3324 'mkdir (coreutils) '* | \
3325 'mkdir (fileutils) '4.1*)
3326 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3327 break 3;;
3328 esac
3329 done
3330 done
3331 done
3332 IFS=$as_save_IFS
3333
3334 fi
3335
3336 test -d ./--version && rmdir ./--version
3337 if test "${ac_cv_path_mkdir+set}" = set; then
3338 MKDIR_P="$ac_cv_path_mkdir -p"
3339 else
3340 # As a last resort, use the slow shell script. Don't cache a
3341 # value for MKDIR_P within a source directory, because that will
3342 # break other packages using the cache if that directory is
3343 # removed, or if the value is a relative name.
3344 MKDIR_P="$ac_install_sh -d"
3345 fi
3346 fi
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3348 $as_echo "$MKDIR_P" >&6; }
3349
3350 for ac_prog in gawk mawk nawk awk
3351 do
3352 # Extract the first word of "$ac_prog", so it can be a program name with args.
3353 set dummy $ac_prog; ac_word=$2
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3355 $as_echo_n "checking for $ac_word... " >&6; }
3356 if ${ac_cv_prog_AWK+:} false; then :
3357 $as_echo_n "(cached) " >&6
3358 else
3359 if test -n "$AWK"; then
3360 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3361 else
3362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363 for as_dir in $PATH
3364 do
3365 IFS=$as_save_IFS
3366 test -z "$as_dir" && as_dir=.
3367 for ac_exec_ext in '' $ac_executable_extensions; do
3368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3369 ac_cv_prog_AWK="$ac_prog"
3370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3371 break 2
3372 fi
3373 done
3374 done
3375 IFS=$as_save_IFS
3376
3377 fi
3378 fi
3379 AWK=$ac_cv_prog_AWK
3380 if test -n "$AWK"; then
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3382 $as_echo "$AWK" >&6; }
3383 else
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3385 $as_echo "no" >&6; }
3386 fi
3387
3388
3389 test -n "$AWK" && break
3390 done
3391
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3393 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3394 set x ${MAKE-make}
3395 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3396 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3397 $as_echo_n "(cached) " >&6
3398 else
3399 cat >conftest.make <<\_ACEOF
3400 SHELL = /bin/sh
3401 all:
3402 @echo '@@@%%%=$(MAKE)=@@@%%%'
3403 _ACEOF
3404 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3405 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3406 *@@@%%%=?*=@@@%%%*)
3407 eval ac_cv_prog_make_${ac_make}_set=yes;;
3408 *)
3409 eval ac_cv_prog_make_${ac_make}_set=no;;
3410 esac
3411 rm -f conftest.make
3412 fi
3413 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3415 $as_echo "yes" >&6; }
3416 SET_MAKE=
3417 else
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3419 $as_echo "no" >&6; }
3420 SET_MAKE="MAKE=${MAKE-make}"
3421 fi
3422
3423 rm -rf .tst 2>/dev/null
3424 mkdir .tst 2>/dev/null
3425 if test -d .tst; then
3426 am__leading_dot=.
3427 else
3428 am__leading_dot=_
3429 fi
3430 rmdir .tst 2>/dev/null
3431
3432 # Check whether --enable-silent-rules was given.
3433 if test "${enable_silent_rules+set}" = set; then :
3434 enableval=$enable_silent_rules;
3435 fi
3436
3437 case $enable_silent_rules in # (((
3438 yes) AM_DEFAULT_VERBOSITY=0;;
3439 no) AM_DEFAULT_VERBOSITY=1;;
3440 *) AM_DEFAULT_VERBOSITY=1;;
3441 esac
3442 am_make=${MAKE-make}
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3444 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3445 if ${am_cv_make_support_nested_variables+:} false; then :
3446 $as_echo_n "(cached) " >&6
3447 else
3448 if $as_echo 'TRUE=$(BAR$(V))
3449 BAR0=false
3450 BAR1=true
3451 V=1
3452 am__doit:
3453 @$(TRUE)
3454 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3455 am_cv_make_support_nested_variables=yes
3456 else
3457 am_cv_make_support_nested_variables=no
3458 fi
3459 fi
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3461 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3462 if test $am_cv_make_support_nested_variables = yes; then
3463 AM_V='$(V)'
3464 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3465 else
3466 AM_V=$AM_DEFAULT_VERBOSITY
3467 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3468 fi
3469 AM_BACKSLASH='\'
3470
3471 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3472 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3473 # is not polluted with repeated "-I."
3474 am__isrc=' -I$(srcdir)'
3475 # test to see if srcdir already configured
3476 if test -f $srcdir/config.status; then
3477 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3478 fi
3479 fi
3480
3481 # test whether we have cygpath
3482 if test -z "$CYGPATH_W"; then
3483 if (cygpath --version) >/dev/null 2>/dev/null; then
3484 CYGPATH_W='cygpath -w'
3485 else
3486 CYGPATH_W=echo
3487 fi
3488 fi
3489
3490
3491 # Define the identity of the package.
3492 PACKAGE='libgfortran'
3493 VERSION='0.3'
3494
3495
3496 # Some tools Automake needs.
3497
3498 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3499
3500
3501 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3502
3503
3504 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3505
3506
3507 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3508
3509
3510 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3511
3512 # For better backward compatibility. To be removed once Automake 1.9.x
3513 # dies out for good. For more background, see:
3514 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3515 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3516 mkdir_p='$(MKDIR_P)'
3517
3518 # We need awk for the "check" target (and possibly the TAP driver). The
3519 # system "awk" is bad on some platforms.
3520 # Always define AMTAR for backward compatibility. Yes, it's still used
3521 # in the wild :-( We should find a proper way to deprecate it ...
3522 AMTAR='$${TAR-tar}'
3523
3524
3525 # We'll loop over all known methods to create a tar archive until one works.
3526 _am_tools='gnutar pax cpio none'
3527
3528 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3529
3530
3531
3532
3533
3534
3535 # POSIX will say in a future version that running "rm -f" with no argument
3536 # is OK; and we want to be able to make that assumption in our Makefile
3537 # recipes. So use an aggressive probe to check that the usage we want is
3538 # actually supported "in the wild" to an acceptable degree.
3539 # See automake bug#10828.
3540 # To make any issue more visible, cause the running configure to be aborted
3541 # by default if the 'rm' program in use doesn't match our expectations; the
3542 # user can still override this though.
3543 if rm -f && rm -fr && rm -rf; then : OK; else
3544 cat >&2 <<'END'
3545 Oops!
3546
3547 Your 'rm' program seems unable to run without file operands specified
3548 on the command line, even when the '-f' option is present. This is contrary
3549 to the behaviour of most rm programs out there, and not conforming with
3550 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3551
3552 Please tell bug-automake@gnu.org about your system, including the value
3553 of your $PATH and any error possibly output before this message. This
3554 can help us improve future automake versions.
3555
3556 END
3557 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3558 echo 'Configuration will proceed anyway, since you have set the' >&2
3559 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3560 echo >&2
3561 else
3562 cat >&2 <<'END'
3563 Aborting the configuration process, to ensure you take notice of the issue.
3564
3565 You can download and install GNU coreutils to get an 'rm' implementation
3566 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3567
3568 If you want to complete the configuration process using your problematic
3569 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3570 to "yes", and re-run configure.
3571
3572 END
3573 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3574 fi
3575 fi
3576
3577
3578
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3580 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3581 # Check whether --enable-maintainer-mode was given.
3582 if test "${enable_maintainer_mode+set}" = set; then :
3583 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3584 else
3585 USE_MAINTAINER_MODE=no
3586 fi
3587
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3589 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3590 if test $USE_MAINTAINER_MODE = yes; then
3591 MAINTAINER_MODE_TRUE=
3592 MAINTAINER_MODE_FALSE='#'
3593 else
3594 MAINTAINER_MODE_TRUE='#'
3595 MAINTAINER_MODE_FALSE=
3596 fi
3597
3598 MAINT=$MAINTAINER_MODE_TRUE
3599
3600
3601 # Default to --enable-multilib
3602 # Check whether --enable-multilib was given.
3603 if test "${enable_multilib+set}" = set; then :
3604 enableval=$enable_multilib; case "$enableval" in
3605 yes) multilib=yes ;;
3606 no) multilib=no ;;
3607 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
3608 esac
3609 else
3610 multilib=yes
3611 fi
3612
3613
3614 # We may get other options which we leave undocumented:
3615 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3616 # See config-ml.in if you want the gory details.
3617
3618 if test "$srcdir" = "."; then
3619 if test "$with_target_subdir" != "."; then
3620 multi_basedir="$srcdir/$with_multisrctop../.."
3621 else
3622 multi_basedir="$srcdir/$with_multisrctop.."
3623 fi
3624 else
3625 multi_basedir="$srcdir/.."
3626 fi
3627
3628
3629 # Even if the default multilib is not a cross compilation,
3630 # it may be that some of the other multilibs are.
3631 if test $cross_compiling = no && test $multilib = yes \
3632 && test "x${with_multisubdir}" != x ; then
3633 cross_compiling=maybe
3634 fi
3635
3636 ac_config_commands="$ac_config_commands default-1"
3637
3638
3639 # Handy for debugging:
3640 #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
3641
3642 # Are we being configured with some form of cross compiler?
3643 # NB: We don't actually need to know this just now, but when, say, a test
3644 # suite is included, we'll have to know.
3645 if test "$build" != "$host"; then
3646 LIBGFOR_IS_NATIVE=false
3647
3648 else
3649 LIBGFOR_IS_NATIVE=true
3650 fi
3651
3652 DEPDIR="${am__leading_dot}deps"
3653
3654 ac_config_commands="$ac_config_commands depfiles"
3655
3656
3657 am_make=${MAKE-make}
3658 cat > confinc << 'END'
3659 am__doit:
3660 @echo this is the am__doit target
3661 .PHONY: am__doit
3662 END
3663 # If we don't find an include directive, just comment out the code.
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3665 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3666 am__include="#"
3667 am__quote=
3668 _am_result=none
3669 # First try GNU make style include.
3670 echo "include confinc" > confmf
3671 # Ignore all kinds of additional output from 'make'.
3672 case `$am_make -s -f confmf 2> /dev/null` in #(
3673 *the\ am__doit\ target*)
3674 am__include=include
3675 am__quote=
3676 _am_result=GNU
3677 ;;
3678 esac
3679 # Now try BSD make style include.
3680 if test "$am__include" = "#"; then
3681 echo '.include "confinc"' > confmf
3682 case `$am_make -s -f confmf 2> /dev/null` in #(
3683 *the\ am__doit\ target*)
3684 am__include=.include
3685 am__quote="\""
3686 _am_result=BSD
3687 ;;
3688 esac
3689 fi
3690
3691
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3693 $as_echo "$_am_result" >&6; }
3694 rm -f confinc confmf
3695
3696 # Check whether --enable-dependency-tracking was given.
3697 if test "${enable_dependency_tracking+set}" = set; then :
3698 enableval=$enable_dependency_tracking;
3699 fi
3700
3701 if test "x$enable_dependency_tracking" != xno; then
3702 am_depcomp="$ac_aux_dir/depcomp"
3703 AMDEPBACKSLASH='\'
3704 am__nodep='_no'
3705 fi
3706 if test "x$enable_dependency_tracking" != xno; then
3707 AMDEP_TRUE=
3708 AMDEP_FALSE='#'
3709 else
3710 AMDEP_TRUE='#'
3711 AMDEP_FALSE=
3712 fi
3713
3714
3715 ac_ext=c
3716 ac_cpp='$CPP $CPPFLAGS'
3717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3720 if test -n "$ac_tool_prefix"; then
3721 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3722 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3724 $as_echo_n "checking for $ac_word... " >&6; }
3725 if ${ac_cv_prog_CC+:} false; then :
3726 $as_echo_n "(cached) " >&6
3727 else
3728 if test -n "$CC"; then
3729 ac_cv_prog_CC="$CC" # Let the user override the test.
3730 else
3731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3732 for as_dir in $PATH
3733 do
3734 IFS=$as_save_IFS
3735 test -z "$as_dir" && as_dir=.
3736 for ac_exec_ext in '' $ac_executable_extensions; do
3737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3738 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3740 break 2
3741 fi
3742 done
3743 done
3744 IFS=$as_save_IFS
3745
3746 fi
3747 fi
3748 CC=$ac_cv_prog_CC
3749 if test -n "$CC"; then
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3751 $as_echo "$CC" >&6; }
3752 else
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3754 $as_echo "no" >&6; }
3755 fi
3756
3757
3758 fi
3759 if test -z "$ac_cv_prog_CC"; then
3760 ac_ct_CC=$CC
3761 # Extract the first word of "gcc", so it can be a program name with args.
3762 set dummy gcc; ac_word=$2
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3764 $as_echo_n "checking for $ac_word... " >&6; }
3765 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3766 $as_echo_n "(cached) " >&6
3767 else
3768 if test -n "$ac_ct_CC"; then
3769 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3770 else
3771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772 for as_dir in $PATH
3773 do
3774 IFS=$as_save_IFS
3775 test -z "$as_dir" && as_dir=.
3776 for ac_exec_ext in '' $ac_executable_extensions; do
3777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3778 ac_cv_prog_ac_ct_CC="gcc"
3779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3780 break 2
3781 fi
3782 done
3783 done
3784 IFS=$as_save_IFS
3785
3786 fi
3787 fi
3788 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3789 if test -n "$ac_ct_CC"; then
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3791 $as_echo "$ac_ct_CC" >&6; }
3792 else
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3794 $as_echo "no" >&6; }
3795 fi
3796
3797 if test "x$ac_ct_CC" = x; then
3798 CC=""
3799 else
3800 case $cross_compiling:$ac_tool_warned in
3801 yes:)
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3803 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3804 ac_tool_warned=yes ;;
3805 esac
3806 CC=$ac_ct_CC
3807 fi
3808 else
3809 CC="$ac_cv_prog_CC"
3810 fi
3811
3812 if test -z "$CC"; then
3813 if test -n "$ac_tool_prefix"; then
3814 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3815 set dummy ${ac_tool_prefix}cc; ac_word=$2
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3817 $as_echo_n "checking for $ac_word... " >&6; }
3818 if ${ac_cv_prog_CC+:} false; then :
3819 $as_echo_n "(cached) " >&6
3820 else
3821 if test -n "$CC"; then
3822 ac_cv_prog_CC="$CC" # Let the user override the test.
3823 else
3824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3825 for as_dir in $PATH
3826 do
3827 IFS=$as_save_IFS
3828 test -z "$as_dir" && as_dir=.
3829 for ac_exec_ext in '' $ac_executable_extensions; do
3830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3831 ac_cv_prog_CC="${ac_tool_prefix}cc"
3832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3833 break 2
3834 fi
3835 done
3836 done
3837 IFS=$as_save_IFS
3838
3839 fi
3840 fi
3841 CC=$ac_cv_prog_CC
3842 if test -n "$CC"; then
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3844 $as_echo "$CC" >&6; }
3845 else
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3847 $as_echo "no" >&6; }
3848 fi
3849
3850
3851 fi
3852 fi
3853 if test -z "$CC"; then
3854 # Extract the first word of "cc", so it can be a program name with args.
3855 set dummy cc; ac_word=$2
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3857 $as_echo_n "checking for $ac_word... " >&6; }
3858 if ${ac_cv_prog_CC+:} false; then :
3859 $as_echo_n "(cached) " >&6
3860 else
3861 if test -n "$CC"; then
3862 ac_cv_prog_CC="$CC" # Let the user override the test.
3863 else
3864 ac_prog_rejected=no
3865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3866 for as_dir in $PATH
3867 do
3868 IFS=$as_save_IFS
3869 test -z "$as_dir" && as_dir=.
3870 for ac_exec_ext in '' $ac_executable_extensions; do
3871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3872 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3873 ac_prog_rejected=yes
3874 continue
3875 fi
3876 ac_cv_prog_CC="cc"
3877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3878 break 2
3879 fi
3880 done
3881 done
3882 IFS=$as_save_IFS
3883
3884 if test $ac_prog_rejected = yes; then
3885 # We found a bogon in the path, so make sure we never use it.
3886 set dummy $ac_cv_prog_CC
3887 shift
3888 if test $# != 0; then
3889 # We chose a different compiler from the bogus one.
3890 # However, it has the same basename, so the bogon will be chosen
3891 # first if we set CC to just the basename; use the full file name.
3892 shift
3893 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3894 fi
3895 fi
3896 fi
3897 fi
3898 CC=$ac_cv_prog_CC
3899 if test -n "$CC"; then
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3901 $as_echo "$CC" >&6; }
3902 else
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3904 $as_echo "no" >&6; }
3905 fi
3906
3907
3908 fi
3909 if test -z "$CC"; then
3910 if test -n "$ac_tool_prefix"; then
3911 for ac_prog in cl.exe
3912 do
3913 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3914 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3916 $as_echo_n "checking for $ac_word... " >&6; }
3917 if ${ac_cv_prog_CC+:} false; then :
3918 $as_echo_n "(cached) " >&6
3919 else
3920 if test -n "$CC"; then
3921 ac_cv_prog_CC="$CC" # Let the user override the test.
3922 else
3923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924 for as_dir in $PATH
3925 do
3926 IFS=$as_save_IFS
3927 test -z "$as_dir" && as_dir=.
3928 for ac_exec_ext in '' $ac_executable_extensions; do
3929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3930 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3932 break 2
3933 fi
3934 done
3935 done
3936 IFS=$as_save_IFS
3937
3938 fi
3939 fi
3940 CC=$ac_cv_prog_CC
3941 if test -n "$CC"; then
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3943 $as_echo "$CC" >&6; }
3944 else
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3946 $as_echo "no" >&6; }
3947 fi
3948
3949
3950 test -n "$CC" && break
3951 done
3952 fi
3953 if test -z "$CC"; then
3954 ac_ct_CC=$CC
3955 for ac_prog in cl.exe
3956 do
3957 # Extract the first word of "$ac_prog", so it can be a program name with args.
3958 set dummy $ac_prog; ac_word=$2
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3960 $as_echo_n "checking for $ac_word... " >&6; }
3961 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3962 $as_echo_n "(cached) " >&6
3963 else
3964 if test -n "$ac_ct_CC"; then
3965 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3966 else
3967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968 for as_dir in $PATH
3969 do
3970 IFS=$as_save_IFS
3971 test -z "$as_dir" && as_dir=.
3972 for ac_exec_ext in '' $ac_executable_extensions; do
3973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3974 ac_cv_prog_ac_ct_CC="$ac_prog"
3975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3976 break 2
3977 fi
3978 done
3979 done
3980 IFS=$as_save_IFS
3981
3982 fi
3983 fi
3984 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3985 if test -n "$ac_ct_CC"; then
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3987 $as_echo "$ac_ct_CC" >&6; }
3988 else
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3990 $as_echo "no" >&6; }
3991 fi
3992
3993
3994 test -n "$ac_ct_CC" && break
3995 done
3996
3997 if test "x$ac_ct_CC" = x; then
3998 CC=""
3999 else
4000 case $cross_compiling:$ac_tool_warned in
4001 yes:)
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4003 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4004 ac_tool_warned=yes ;;
4005 esac
4006 CC=$ac_ct_CC
4007 fi
4008 fi
4009
4010 fi
4011
4012
4013 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4014 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4015 as_fn_error $? "no acceptable C compiler found in \$PATH
4016 See \`config.log' for more details" "$LINENO" 5; }
4017
4018 # Provide some information about the compiler.
4019 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4020 set X $ac_compile
4021 ac_compiler=$2
4022 for ac_option in --version -v -V -qversion; do
4023 { { ac_try="$ac_compiler $ac_option >&5"
4024 case "(($ac_try" in
4025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4026 *) ac_try_echo=$ac_try;;
4027 esac
4028 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4029 $as_echo "$ac_try_echo"; } >&5
4030 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4031 ac_status=$?
4032 if test -s conftest.err; then
4033 sed '10a\
4034 ... rest of stderr output deleted ...
4035 10q' conftest.err >conftest.er1
4036 cat conftest.er1 >&5
4037 fi
4038 rm -f conftest.er1 conftest.err
4039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4040 test $ac_status = 0; }
4041 done
4042
4043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4044 /* end confdefs.h. */
4045 #include <stdio.h>
4046 int
4047 main ()
4048 {
4049 printf ("hello world\n");
4050 ;
4051 return 0;
4052 }
4053 _ACEOF
4054 # FIXME: Cleanup?
4055 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
4056 (eval $ac_link) 2>&5
4057 ac_status=$?
4058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4059 test $ac_status = 0; }; then :
4060 gcc_no_link=no
4061 else
4062 gcc_no_link=yes
4063 fi
4064 if test x$gcc_no_link = xyes; then
4065 # Setting cross_compile will disable run tests; it will
4066 # also disable AC_CHECK_FILE but that's generally
4067 # correct if we can't link.
4068 cross_compiling=yes
4069 EXEEXT=
4070 else
4071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4072 /* end confdefs.h. */
4073
4074 int
4075 main ()
4076 {
4077
4078 ;
4079 return 0;
4080 }
4081 _ACEOF
4082 ac_clean_files_save=$ac_clean_files
4083 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4084 # Try to create an executable without -o first, disregard a.out.
4085 # It will help us diagnose broken compilers, and finding out an intuition
4086 # of exeext.
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4088 $as_echo_n "checking whether the C compiler works... " >&6; }
4089 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4090
4091 # The possible output files:
4092 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4093
4094 ac_rmfiles=
4095 for ac_file in $ac_files
4096 do
4097 case $ac_file in
4098 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4099 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4100 esac
4101 done
4102 rm -f $ac_rmfiles
4103
4104 if { { ac_try="$ac_link_default"
4105 case "(($ac_try" in
4106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4107 *) ac_try_echo=$ac_try;;
4108 esac
4109 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4110 $as_echo "$ac_try_echo"; } >&5
4111 (eval "$ac_link_default") 2>&5
4112 ac_status=$?
4113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4114 test $ac_status = 0; }; then :
4115 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4116 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4117 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4118 # so that the user can short-circuit this test for compilers unknown to
4119 # Autoconf.
4120 for ac_file in $ac_files ''
4121 do
4122 test -f "$ac_file" || continue
4123 case $ac_file in
4124 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4125 ;;
4126 [ab].out )
4127 # We found the default executable, but exeext='' is most
4128 # certainly right.
4129 break;;
4130 *.* )
4131 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4132 then :; else
4133 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4134 fi
4135 # We set ac_cv_exeext here because the later test for it is not
4136 # safe: cross compilers may not add the suffix if given an `-o'
4137 # argument, so we may need to know it at that point already.
4138 # Even if this section looks crufty: it has the advantage of
4139 # actually working.
4140 break;;
4141 * )
4142 break;;
4143 esac
4144 done
4145 test "$ac_cv_exeext" = no && ac_cv_exeext=
4146
4147 else
4148 ac_file=''
4149 fi
4150 if test -z "$ac_file"; then :
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4152 $as_echo "no" >&6; }
4153 $as_echo "$as_me: failed program was:" >&5
4154 sed 's/^/| /' conftest.$ac_ext >&5
4155
4156 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4158 as_fn_error 77 "C compiler cannot create executables
4159 See \`config.log' for more details" "$LINENO" 5; }
4160 else
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4162 $as_echo "yes" >&6; }
4163 fi
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4165 $as_echo_n "checking for C compiler default output file name... " >&6; }
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4167 $as_echo "$ac_file" >&6; }
4168 ac_exeext=$ac_cv_exeext
4169
4170 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4171 ac_clean_files=$ac_clean_files_save
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4173 $as_echo_n "checking for suffix of executables... " >&6; }
4174 if { { ac_try="$ac_link"
4175 case "(($ac_try" in
4176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4177 *) ac_try_echo=$ac_try;;
4178 esac
4179 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4180 $as_echo "$ac_try_echo"; } >&5
4181 (eval "$ac_link") 2>&5
4182 ac_status=$?
4183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4184 test $ac_status = 0; }; then :
4185 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4186 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4187 # work properly (i.e., refer to `conftest.exe'), while it won't with
4188 # `rm'.
4189 for ac_file in conftest.exe conftest conftest.*; do
4190 test -f "$ac_file" || continue
4191 case $ac_file in
4192 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4193 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4194 break;;
4195 * ) break;;
4196 esac
4197 done
4198 else
4199 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4200 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4201 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4202 See \`config.log' for more details" "$LINENO" 5; }
4203 fi
4204 rm -f conftest conftest$ac_cv_exeext
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4206 $as_echo "$ac_cv_exeext" >&6; }
4207
4208 rm -f conftest.$ac_ext
4209 EXEEXT=$ac_cv_exeext
4210 ac_exeext=$EXEEXT
4211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4212 /* end confdefs.h. */
4213 #include <stdio.h>
4214 int
4215 main ()
4216 {
4217 FILE *f = fopen ("conftest.out", "w");
4218 return ferror (f) || fclose (f) != 0;
4219
4220 ;
4221 return 0;
4222 }
4223 _ACEOF
4224 ac_clean_files="$ac_clean_files conftest.out"
4225 # Check that the compiler produces executables we can run. If not, either
4226 # the compiler is broken, or we cross compile.
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4228 $as_echo_n "checking whether we are cross compiling... " >&6; }
4229 if test "$cross_compiling" != yes; then
4230 { { ac_try="$ac_link"
4231 case "(($ac_try" in
4232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4233 *) ac_try_echo=$ac_try;;
4234 esac
4235 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4236 $as_echo "$ac_try_echo"; } >&5
4237 (eval "$ac_link") 2>&5
4238 ac_status=$?
4239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4240 test $ac_status = 0; }
4241 if { ac_try='./conftest$ac_cv_exeext'
4242 { { case "(($ac_try" in
4243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4244 *) ac_try_echo=$ac_try;;
4245 esac
4246 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4247 $as_echo "$ac_try_echo"; } >&5
4248 (eval "$ac_try") 2>&5
4249 ac_status=$?
4250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4251 test $ac_status = 0; }; }; then
4252 cross_compiling=no
4253 else
4254 if test "$cross_compiling" = maybe; then
4255 cross_compiling=yes
4256 else
4257 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4258 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4259 as_fn_error $? "cannot run C compiled programs.
4260 If you meant to cross compile, use \`--host'.
4261 See \`config.log' for more details" "$LINENO" 5; }
4262 fi
4263 fi
4264 fi
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4266 $as_echo "$cross_compiling" >&6; }
4267
4268 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4269 ac_clean_files=$ac_clean_files_save
4270 fi
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4272 $as_echo_n "checking for suffix of object files... " >&6; }
4273 if ${ac_cv_objext+:} false; then :
4274 $as_echo_n "(cached) " >&6
4275 else
4276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4277 /* end confdefs.h. */
4278
4279 int
4280 main ()
4281 {
4282
4283 ;
4284 return 0;
4285 }
4286 _ACEOF
4287 rm -f conftest.o conftest.obj
4288 if { { ac_try="$ac_compile"
4289 case "(($ac_try" in
4290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4291 *) ac_try_echo=$ac_try;;
4292 esac
4293 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4294 $as_echo "$ac_try_echo"; } >&5
4295 (eval "$ac_compile") 2>&5
4296 ac_status=$?
4297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4298 test $ac_status = 0; }; then :
4299 for ac_file in conftest.o conftest.obj conftest.*; do
4300 test -f "$ac_file" || continue;
4301 case $ac_file in
4302 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4303 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4304 break;;
4305 esac
4306 done
4307 else
4308 $as_echo "$as_me: failed program was:" >&5
4309 sed 's/^/| /' conftest.$ac_ext >&5
4310
4311 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4313 as_fn_error $? "cannot compute suffix of object files: cannot compile
4314 See \`config.log' for more details" "$LINENO" 5; }
4315 fi
4316 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4317 fi
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4319 $as_echo "$ac_cv_objext" >&6; }
4320 OBJEXT=$ac_cv_objext
4321 ac_objext=$OBJEXT
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4323 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4324 if ${ac_cv_c_compiler_gnu+:} false; then :
4325 $as_echo_n "(cached) " >&6
4326 else
4327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4328 /* end confdefs.h. */
4329
4330 int
4331 main ()
4332 {
4333 #ifndef __GNUC__
4334 choke me
4335 #endif
4336
4337 ;
4338 return 0;
4339 }
4340 _ACEOF
4341 if ac_fn_c_try_compile "$LINENO"; then :
4342 ac_compiler_gnu=yes
4343 else
4344 ac_compiler_gnu=no
4345 fi
4346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4347 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4348
4349 fi
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4351 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4352 if test $ac_compiler_gnu = yes; then
4353 GCC=yes
4354 else
4355 GCC=
4356 fi
4357 ac_test_CFLAGS=${CFLAGS+set}
4358 ac_save_CFLAGS=$CFLAGS
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4360 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4361 if ${ac_cv_prog_cc_g+:} false; then :
4362 $as_echo_n "(cached) " >&6
4363 else
4364 ac_save_c_werror_flag=$ac_c_werror_flag
4365 ac_c_werror_flag=yes
4366 ac_cv_prog_cc_g=no
4367 CFLAGS="-g"
4368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4369 /* end confdefs.h. */
4370
4371 int
4372 main ()
4373 {
4374
4375 ;
4376 return 0;
4377 }
4378 _ACEOF
4379 if ac_fn_c_try_compile "$LINENO"; then :
4380 ac_cv_prog_cc_g=yes
4381 else
4382 CFLAGS=""
4383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4384 /* end confdefs.h. */
4385
4386 int
4387 main ()
4388 {
4389
4390 ;
4391 return 0;
4392 }
4393 _ACEOF
4394 if ac_fn_c_try_compile "$LINENO"; then :
4395
4396 else
4397 ac_c_werror_flag=$ac_save_c_werror_flag
4398 CFLAGS="-g"
4399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4400 /* end confdefs.h. */
4401
4402 int
4403 main ()
4404 {
4405
4406 ;
4407 return 0;
4408 }
4409 _ACEOF
4410 if ac_fn_c_try_compile "$LINENO"; then :
4411 ac_cv_prog_cc_g=yes
4412 fi
4413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4414 fi
4415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4416 fi
4417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4418 ac_c_werror_flag=$ac_save_c_werror_flag
4419 fi
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4421 $as_echo "$ac_cv_prog_cc_g" >&6; }
4422 if test "$ac_test_CFLAGS" = set; then
4423 CFLAGS=$ac_save_CFLAGS
4424 elif test $ac_cv_prog_cc_g = yes; then
4425 if test "$GCC" = yes; then
4426 CFLAGS="-g -O2"
4427 else
4428 CFLAGS="-g"
4429 fi
4430 else
4431 if test "$GCC" = yes; then
4432 CFLAGS="-O2"
4433 else
4434 CFLAGS=
4435 fi
4436 fi
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4438 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4439 if ${ac_cv_prog_cc_c89+:} false; then :
4440 $as_echo_n "(cached) " >&6
4441 else
4442 ac_cv_prog_cc_c89=no
4443 ac_save_CC=$CC
4444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4445 /* end confdefs.h. */
4446 #include <stdarg.h>
4447 #include <stdio.h>
4448 struct stat;
4449 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4450 struct buf { int x; };
4451 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4452 static char *e (p, i)
4453 char **p;
4454 int i;
4455 {
4456 return p[i];
4457 }
4458 static char *f (char * (*g) (char **, int), char **p, ...)
4459 {
4460 char *s;
4461 va_list v;
4462 va_start (v,p);
4463 s = g (p, va_arg (v,int));
4464 va_end (v);
4465 return s;
4466 }
4467
4468 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4469 function prototypes and stuff, but not '\xHH' hex character constants.
4470 These don't provoke an error unfortunately, instead are silently treated
4471 as 'x'. The following induces an error, until -std is added to get
4472 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4473 array size at least. It's necessary to write '\x00'==0 to get something
4474 that's true only with -std. */
4475 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4476
4477 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4478 inside strings and character constants. */
4479 #define FOO(x) 'x'
4480 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4481
4482 int test (int i, double x);
4483 struct s1 {int (*f) (int a);};
4484 struct s2 {int (*f) (double a);};
4485 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4486 int argc;
4487 char **argv;
4488 int
4489 main ()
4490 {
4491 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4492 ;
4493 return 0;
4494 }
4495 _ACEOF
4496 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4497 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4498 do
4499 CC="$ac_save_CC $ac_arg"
4500 if ac_fn_c_try_compile "$LINENO"; then :
4501 ac_cv_prog_cc_c89=$ac_arg
4502 fi
4503 rm -f core conftest.err conftest.$ac_objext
4504 test "x$ac_cv_prog_cc_c89" != "xno" && break
4505 done
4506 rm -f conftest.$ac_ext
4507 CC=$ac_save_CC
4508
4509 fi
4510 # AC_CACHE_VAL
4511 case "x$ac_cv_prog_cc_c89" in
4512 x)
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4514 $as_echo "none needed" >&6; } ;;
4515 xno)
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4517 $as_echo "unsupported" >&6; } ;;
4518 *)
4519 CC="$CC $ac_cv_prog_cc_c89"
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4521 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4522 esac
4523 if test "x$ac_cv_prog_cc_c89" != xno; then :
4524
4525 fi
4526
4527 ac_ext=c
4528 ac_cpp='$CPP $CPPFLAGS'
4529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4532
4533 ac_ext=c
4534 ac_cpp='$CPP $CPPFLAGS'
4535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4539 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4540 if ${am_cv_prog_cc_c_o+:} false; then :
4541 $as_echo_n "(cached) " >&6
4542 else
4543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4544 /* end confdefs.h. */
4545
4546 int
4547 main ()
4548 {
4549
4550 ;
4551 return 0;
4552 }
4553 _ACEOF
4554 # Make sure it works both with $CC and with simple cc.
4555 # Following AC_PROG_CC_C_O, we do the test twice because some
4556 # compilers refuse to overwrite an existing .o file with -o,
4557 # though they will create one.
4558 am_cv_prog_cc_c_o=yes
4559 for am_i in 1 2; do
4560 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4561 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4562 ac_status=$?
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); } \
4565 && test -f conftest2.$ac_objext; then
4566 : OK
4567 else
4568 am_cv_prog_cc_c_o=no
4569 break
4570 fi
4571 done
4572 rm -f core conftest*
4573 unset am_i
4574 fi
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4576 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4577 if test "$am_cv_prog_cc_c_o" != yes; then
4578 # Losing compiler, so override with the script.
4579 # FIXME: It is wrong to rewrite CC.
4580 # But if we don't then we get into trouble of one sort or another.
4581 # A longer-term fix would be to have automake use am__CC in this case,
4582 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4583 CC="$am_aux_dir/compile $CC"
4584 fi
4585 ac_ext=c
4586 ac_cpp='$CPP $CPPFLAGS'
4587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4590
4591
4592 depcc="$CC" am_compiler_list=
4593
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4595 $as_echo_n "checking dependency style of $depcc... " >&6; }
4596 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4597 $as_echo_n "(cached) " >&6
4598 else
4599 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4600 # We make a subdir and do the tests there. Otherwise we can end up
4601 # making bogus files that we don't know about and never remove. For
4602 # instance it was reported that on HP-UX the gcc test will end up
4603 # making a dummy file named 'D' -- because '-MD' means "put the output
4604 # in D".
4605 rm -rf conftest.dir
4606 mkdir conftest.dir
4607 # Copy depcomp to subdir because otherwise we won't find it if we're
4608 # using a relative directory.
4609 cp "$am_depcomp" conftest.dir
4610 cd conftest.dir
4611 # We will build objects and dependencies in a subdirectory because
4612 # it helps to detect inapplicable dependency modes. For instance
4613 # both Tru64's cc and ICC support -MD to output dependencies as a
4614 # side effect of compilation, but ICC will put the dependencies in
4615 # the current directory while Tru64 will put them in the object
4616 # directory.
4617 mkdir sub
4618
4619 am_cv_CC_dependencies_compiler_type=none
4620 if test "$am_compiler_list" = ""; then
4621 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4622 fi
4623 am__universal=false
4624 case " $depcc " in #(
4625 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4626 esac
4627
4628 for depmode in $am_compiler_list; do
4629 # Setup a source with many dependencies, because some compilers
4630 # like to wrap large dependency lists on column 80 (with \), and
4631 # we should not choose a depcomp mode which is confused by this.
4632 #
4633 # We need to recreate these files for each test, as the compiler may
4634 # overwrite some of them when testing with obscure command lines.
4635 # This happens at least with the AIX C compiler.
4636 : > sub/conftest.c
4637 for i in 1 2 3 4 5 6; do
4638 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4639 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4640 # Solaris 10 /bin/sh.
4641 echo '/* dummy */' > sub/conftst$i.h
4642 done
4643 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4644
4645 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4646 # mode. It turns out that the SunPro C++ compiler does not properly
4647 # handle '-M -o', and we need to detect this. Also, some Intel
4648 # versions had trouble with output in subdirs.
4649 am__obj=sub/conftest.${OBJEXT-o}
4650 am__minus_obj="-o $am__obj"
4651 case $depmode in
4652 gcc)
4653 # This depmode causes a compiler race in universal mode.
4654 test "$am__universal" = false || continue
4655 ;;
4656 nosideeffect)
4657 # After this tag, mechanisms are not by side-effect, so they'll
4658 # only be used when explicitly requested.
4659 if test "x$enable_dependency_tracking" = xyes; then
4660 continue
4661 else
4662 break
4663 fi
4664 ;;
4665 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4666 # This compiler won't grok '-c -o', but also, the minuso test has
4667 # not run yet. These depmodes are late enough in the game, and
4668 # so weak that their functioning should not be impacted.
4669 am__obj=conftest.${OBJEXT-o}
4670 am__minus_obj=
4671 ;;
4672 none) break ;;
4673 esac
4674 if depmode=$depmode \
4675 source=sub/conftest.c object=$am__obj \
4676 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4677 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4678 >/dev/null 2>conftest.err &&
4679 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4680 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4681 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4682 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4683 # icc doesn't choke on unknown options, it will just issue warnings
4684 # or remarks (even with -Werror). So we grep stderr for any message
4685 # that says an option was ignored or not supported.
4686 # When given -MP, icc 7.0 and 7.1 complain thusly:
4687 # icc: Command line warning: ignoring option '-M'; no argument required
4688 # The diagnosis changed in icc 8.0:
4689 # icc: Command line remark: option '-MP' not supported
4690 if (grep 'ignoring option' conftest.err ||
4691 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4692 am_cv_CC_dependencies_compiler_type=$depmode
4693 break
4694 fi
4695 fi
4696 done
4697
4698 cd ..
4699 rm -rf conftest.dir
4700 else
4701 am_cv_CC_dependencies_compiler_type=none
4702 fi
4703
4704 fi
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4706 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4707 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4708
4709 if
4710 test "x$enable_dependency_tracking" != xno \
4711 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4712 am__fastdepCC_TRUE=
4713 am__fastdepCC_FALSE='#'
4714 else
4715 am__fastdepCC_TRUE='#'
4716 am__fastdepCC_FALSE=
4717 fi
4718
4719
4720
4721 ac_ext=c
4722 ac_cpp='$CPP $CPPFLAGS'
4723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4727 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4728 # On Suns, sometimes $CPP names a directory.
4729 if test -n "$CPP" && test -d "$CPP"; then
4730 CPP=
4731 fi
4732 if test -z "$CPP"; then
4733 if ${ac_cv_prog_CPP+:} false; then :
4734 $as_echo_n "(cached) " >&6
4735 else
4736 # Double quotes because CPP needs to be expanded
4737 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4738 do
4739 ac_preproc_ok=false
4740 for ac_c_preproc_warn_flag in '' yes
4741 do
4742 # Use a header file that comes with gcc, so configuring glibc
4743 # with a fresh cross-compiler works.
4744 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4745 # <limits.h> exists even on freestanding compilers.
4746 # On the NeXT, cc -E runs the code through the compiler's parser,
4747 # not just through cpp. "Syntax error" is here to catch this case.
4748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4749 /* end confdefs.h. */
4750 #ifdef __STDC__
4751 # include <limits.h>
4752 #else
4753 # include <assert.h>
4754 #endif
4755 Syntax error
4756 _ACEOF
4757 if ac_fn_c_try_cpp "$LINENO"; then :
4758
4759 else
4760 # Broken: fails on valid input.
4761 continue
4762 fi
4763 rm -f conftest.err conftest.i conftest.$ac_ext
4764
4765 # OK, works on sane cases. Now check whether nonexistent headers
4766 # can be detected and how.
4767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4768 /* end confdefs.h. */
4769 #include <ac_nonexistent.h>
4770 _ACEOF
4771 if ac_fn_c_try_cpp "$LINENO"; then :
4772 # Broken: success on invalid input.
4773 continue
4774 else
4775 # Passes both tests.
4776 ac_preproc_ok=:
4777 break
4778 fi
4779 rm -f conftest.err conftest.i conftest.$ac_ext
4780
4781 done
4782 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4783 rm -f conftest.i conftest.err conftest.$ac_ext
4784 if $ac_preproc_ok; then :
4785 break
4786 fi
4787
4788 done
4789 ac_cv_prog_CPP=$CPP
4790
4791 fi
4792 CPP=$ac_cv_prog_CPP
4793 else
4794 ac_cv_prog_CPP=$CPP
4795 fi
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4797 $as_echo "$CPP" >&6; }
4798 ac_preproc_ok=false
4799 for ac_c_preproc_warn_flag in '' yes
4800 do
4801 # Use a header file that comes with gcc, so configuring glibc
4802 # with a fresh cross-compiler works.
4803 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4804 # <limits.h> exists even on freestanding compilers.
4805 # On the NeXT, cc -E runs the code through the compiler's parser,
4806 # not just through cpp. "Syntax error" is here to catch this case.
4807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4808 /* end confdefs.h. */
4809 #ifdef __STDC__
4810 # include <limits.h>
4811 #else
4812 # include <assert.h>
4813 #endif
4814 Syntax error
4815 _ACEOF
4816 if ac_fn_c_try_cpp "$LINENO"; then :
4817
4818 else
4819 # Broken: fails on valid input.
4820 continue
4821 fi
4822 rm -f conftest.err conftest.i conftest.$ac_ext
4823
4824 # OK, works on sane cases. Now check whether nonexistent headers
4825 # can be detected and how.
4826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4827 /* end confdefs.h. */
4828 #include <ac_nonexistent.h>
4829 _ACEOF
4830 if ac_fn_c_try_cpp "$LINENO"; then :
4831 # Broken: success on invalid input.
4832 continue
4833 else
4834 # Passes both tests.
4835 ac_preproc_ok=:
4836 break
4837 fi
4838 rm -f conftest.err conftest.i conftest.$ac_ext
4839
4840 done
4841 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4842 rm -f conftest.i conftest.err conftest.$ac_ext
4843 if $ac_preproc_ok; then :
4844
4845 else
4846 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4847 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4848 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4849 See \`config.log' for more details" "$LINENO" 5; }
4850 fi
4851
4852 ac_ext=c
4853 ac_cpp='$CPP $CPPFLAGS'
4854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4857
4858
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4860 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4861 if ${ac_cv_path_GREP+:} false; then :
4862 $as_echo_n "(cached) " >&6
4863 else
4864 if test -z "$GREP"; then
4865 ac_path_GREP_found=false
4866 # Loop through the user's path and test for each of PROGNAME-LIST
4867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4869 do
4870 IFS=$as_save_IFS
4871 test -z "$as_dir" && as_dir=.
4872 for ac_prog in grep ggrep; do
4873 for ac_exec_ext in '' $ac_executable_extensions; do
4874 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4875 as_fn_executable_p "$ac_path_GREP" || continue
4876 # Check for GNU ac_path_GREP and select it if it is found.
4877 # Check for GNU $ac_path_GREP
4878 case `"$ac_path_GREP" --version 2>&1` in
4879 *GNU*)
4880 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4881 *)
4882 ac_count=0
4883 $as_echo_n 0123456789 >"conftest.in"
4884 while :
4885 do
4886 cat "conftest.in" "conftest.in" >"conftest.tmp"
4887 mv "conftest.tmp" "conftest.in"
4888 cp "conftest.in" "conftest.nl"
4889 $as_echo 'GREP' >> "conftest.nl"
4890 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4891 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4892 as_fn_arith $ac_count + 1 && ac_count=$as_val
4893 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4894 # Best one so far, save it but keep looking for a better one
4895 ac_cv_path_GREP="$ac_path_GREP"
4896 ac_path_GREP_max=$ac_count
4897 fi
4898 # 10*(2^10) chars as input seems more than enough
4899 test $ac_count -gt 10 && break
4900 done
4901 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4902 esac
4903
4904 $ac_path_GREP_found && break 3
4905 done
4906 done
4907 done
4908 IFS=$as_save_IFS
4909 if test -z "$ac_cv_path_GREP"; then
4910 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4911 fi
4912 else
4913 ac_cv_path_GREP=$GREP
4914 fi
4915
4916 fi
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4918 $as_echo "$ac_cv_path_GREP" >&6; }
4919 GREP="$ac_cv_path_GREP"
4920
4921
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4923 $as_echo_n "checking for egrep... " >&6; }
4924 if ${ac_cv_path_EGREP+:} false; then :
4925 $as_echo_n "(cached) " >&6
4926 else
4927 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4928 then ac_cv_path_EGREP="$GREP -E"
4929 else
4930 if test -z "$EGREP"; then
4931 ac_path_EGREP_found=false
4932 # Loop through the user's path and test for each of PROGNAME-LIST
4933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4934 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4935 do
4936 IFS=$as_save_IFS
4937 test -z "$as_dir" && as_dir=.
4938 for ac_prog in egrep; do
4939 for ac_exec_ext in '' $ac_executable_extensions; do
4940 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4941 as_fn_executable_p "$ac_path_EGREP" || continue
4942 # Check for GNU ac_path_EGREP and select it if it is found.
4943 # Check for GNU $ac_path_EGREP
4944 case `"$ac_path_EGREP" --version 2>&1` in
4945 *GNU*)
4946 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4947 *)
4948 ac_count=0
4949 $as_echo_n 0123456789 >"conftest.in"
4950 while :
4951 do
4952 cat "conftest.in" "conftest.in" >"conftest.tmp"
4953 mv "conftest.tmp" "conftest.in"
4954 cp "conftest.in" "conftest.nl"
4955 $as_echo 'EGREP' >> "conftest.nl"
4956 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4957 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4958 as_fn_arith $ac_count + 1 && ac_count=$as_val
4959 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4960 # Best one so far, save it but keep looking for a better one
4961 ac_cv_path_EGREP="$ac_path_EGREP"
4962 ac_path_EGREP_max=$ac_count
4963 fi
4964 # 10*(2^10) chars as input seems more than enough
4965 test $ac_count -gt 10 && break
4966 done
4967 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4968 esac
4969
4970 $ac_path_EGREP_found && break 3
4971 done
4972 done
4973 done
4974 IFS=$as_save_IFS
4975 if test -z "$ac_cv_path_EGREP"; then
4976 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4977 fi
4978 else
4979 ac_cv_path_EGREP=$EGREP
4980 fi
4981
4982 fi
4983 fi
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4985 $as_echo "$ac_cv_path_EGREP" >&6; }
4986 EGREP="$ac_cv_path_EGREP"
4987
4988
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4990 $as_echo_n "checking for ANSI C header files... " >&6; }
4991 if ${ac_cv_header_stdc+:} false; then :
4992 $as_echo_n "(cached) " >&6
4993 else
4994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4995 /* end confdefs.h. */
4996 #include <stdlib.h>
4997 #include <stdarg.h>
4998 #include <string.h>
4999 #include <float.h>
5000
5001 int
5002 main ()
5003 {
5004
5005 ;
5006 return 0;
5007 }
5008 _ACEOF
5009 if ac_fn_c_try_compile "$LINENO"; then :
5010 ac_cv_header_stdc=yes
5011 else
5012 ac_cv_header_stdc=no
5013 fi
5014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5015
5016 if test $ac_cv_header_stdc = yes; then
5017 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5019 /* end confdefs.h. */
5020 #include <string.h>
5021
5022 _ACEOF
5023 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5024 $EGREP "memchr" >/dev/null 2>&1; then :
5025
5026 else
5027 ac_cv_header_stdc=no
5028 fi
5029 rm -f conftest*
5030
5031 fi
5032
5033 if test $ac_cv_header_stdc = yes; then
5034 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5036 /* end confdefs.h. */
5037 #include <stdlib.h>
5038
5039 _ACEOF
5040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5041 $EGREP "free" >/dev/null 2>&1; then :
5042
5043 else
5044 ac_cv_header_stdc=no
5045 fi
5046 rm -f conftest*
5047
5048 fi
5049
5050 if test $ac_cv_header_stdc = yes; then
5051 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5052 if test "$cross_compiling" = yes; then :
5053 :
5054 else
5055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5056 /* end confdefs.h. */
5057 #include <ctype.h>
5058 #include <stdlib.h>
5059 #if ((' ' & 0x0FF) == 0x020)
5060 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5061 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5062 #else
5063 # define ISLOWER(c) \
5064 (('a' <= (c) && (c) <= 'i') \
5065 || ('j' <= (c) && (c) <= 'r') \
5066 || ('s' <= (c) && (c) <= 'z'))
5067 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5068 #endif
5069
5070 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5071 int
5072 main ()
5073 {
5074 int i;
5075 for (i = 0; i < 256; i++)
5076 if (XOR (islower (i), ISLOWER (i))
5077 || toupper (i) != TOUPPER (i))
5078 return 2;
5079 return 0;
5080 }
5081 _ACEOF
5082 if ac_fn_c_try_run "$LINENO"; then :
5083
5084 else
5085 ac_cv_header_stdc=no
5086 fi
5087 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5088 conftest.$ac_objext conftest.beam conftest.$ac_ext
5089 fi
5090
5091 fi
5092 fi
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5094 $as_echo "$ac_cv_header_stdc" >&6; }
5095 if test $ac_cv_header_stdc = yes; then
5096
5097 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5098
5099 fi
5100
5101 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5102 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5103 inttypes.h stdint.h unistd.h
5104 do :
5105 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5106 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5107 "
5108 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5109 cat >>confdefs.h <<_ACEOF
5110 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5111 _ACEOF
5112
5113 fi
5114
5115 done
5116
5117
5118
5119 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5120 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5121 MINIX=yes
5122 else
5123 MINIX=
5124 fi
5125
5126
5127 if test "$MINIX" = yes; then
5128
5129 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5130
5131
5132 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5133
5134
5135 $as_echo "#define _MINIX 1" >>confdefs.h
5136
5137 fi
5138
5139
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5141 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5142 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5143 $as_echo_n "(cached) " >&6
5144 else
5145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5146 /* end confdefs.h. */
5147
5148 # define __EXTENSIONS__ 1
5149 $ac_includes_default
5150 int
5151 main ()
5152 {
5153
5154 ;
5155 return 0;
5156 }
5157 _ACEOF
5158 if ac_fn_c_try_compile "$LINENO"; then :
5159 ac_cv_safe_to_define___extensions__=yes
5160 else
5161 ac_cv_safe_to_define___extensions__=no
5162 fi
5163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5164 fi
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5166 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5167 test $ac_cv_safe_to_define___extensions__ = yes &&
5168 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5169
5170 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5171
5172 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5173
5174 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5175
5176 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5177
5178
5179
5180
5181 # Check whether --with-toolexeclibdir was given.
5182 if test "${with_toolexeclibdir+set}" = set; then :
5183 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
5184 /)
5185 ;;
5186 */)
5187 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
5188 ;;
5189 esac
5190 else
5191 with_toolexeclibdir=no
5192 fi
5193
5194
5195
5196 # Calculate toolexeclibdir
5197 # Also toolexecdir, though it's only used in toolexeclibdir
5198 case ${version_specific_libs} in
5199 yes)
5200 # Need the gcc compiler version to know where to install libraries
5201 # and header files if --enable-version-specific-runtime-libs option
5202 # is selected.
5203 toolexecdir='$(libdir)/gcc/$(target_alias)'
5204 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
5205 ;;
5206 no)
5207 if test -n "$with_cross_host" &&
5208 test x"$with_cross_host" != x"no"; then
5209 # Install a library built with a cross compiler in tooldir, not libdir.
5210 toolexecdir='$(exec_prefix)/$(target_alias)'
5211 case ${with_toolexeclibdir} in
5212 no)
5213 toolexeclibdir='$(toolexecdir)/lib'
5214 ;;
5215 *)
5216 toolexeclibdir=${with_toolexeclibdir}
5217 ;;
5218 esac
5219 else
5220 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
5221 toolexeclibdir='$(libdir)'
5222 fi
5223 multi_os_directory=`$CC -print-multi-os-directory`
5224 case $multi_os_directory in
5225 .) ;; # Avoid trailing /.
5226 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
5227 esac
5228 ;;
5229 esac
5230
5231
5232
5233 # Create a spec file, so that compile/link tests don't fail
5234 test -f libgfortran.spec || touch libgfortran.spec
5235
5236 ac_ext=c
5237 ac_cpp='$CPP $CPPFLAGS'
5238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5241
5242 # Check the compiler.
5243 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
5244 # We must force CC to /not/ be precious variables; otherwise
5245 # the wrong, non-multilib-adjusted value will be used in multilibs.
5246 # As a side effect, we have to subst CFLAGS ourselves.
5247
5248
5249
5250 ac_ext=c
5251 ac_cpp='$CPP $CPPFLAGS'
5252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5255 if test -n "$ac_tool_prefix"; then
5256 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5257 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5259 $as_echo_n "checking for $ac_word... " >&6; }
5260 if ${ac_cv_prog_CC+:} false; then :
5261 $as_echo_n "(cached) " >&6
5262 else
5263 if test -n "$CC"; then
5264 ac_cv_prog_CC="$CC" # Let the user override the test.
5265 else
5266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267 for as_dir in $PATH
5268 do
5269 IFS=$as_save_IFS
5270 test -z "$as_dir" && as_dir=.
5271 for ac_exec_ext in '' $ac_executable_extensions; do
5272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5273 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5275 break 2
5276 fi
5277 done
5278 done
5279 IFS=$as_save_IFS
5280
5281 fi
5282 fi
5283 CC=$ac_cv_prog_CC
5284 if test -n "$CC"; then
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5286 $as_echo "$CC" >&6; }
5287 else
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5289 $as_echo "no" >&6; }
5290 fi
5291
5292
5293 fi
5294 if test -z "$ac_cv_prog_CC"; then
5295 ac_ct_CC=$CC
5296 # Extract the first word of "gcc", so it can be a program name with args.
5297 set dummy gcc; ac_word=$2
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5299 $as_echo_n "checking for $ac_word... " >&6; }
5300 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5301 $as_echo_n "(cached) " >&6
5302 else
5303 if test -n "$ac_ct_CC"; then
5304 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5305 else
5306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5307 for as_dir in $PATH
5308 do
5309 IFS=$as_save_IFS
5310 test -z "$as_dir" && as_dir=.
5311 for ac_exec_ext in '' $ac_executable_extensions; do
5312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5313 ac_cv_prog_ac_ct_CC="gcc"
5314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5315 break 2
5316 fi
5317 done
5318 done
5319 IFS=$as_save_IFS
5320
5321 fi
5322 fi
5323 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5324 if test -n "$ac_ct_CC"; then
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5326 $as_echo "$ac_ct_CC" >&6; }
5327 else
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5329 $as_echo "no" >&6; }
5330 fi
5331
5332 if test "x$ac_ct_CC" = x; then
5333 CC=""
5334 else
5335 case $cross_compiling:$ac_tool_warned in
5336 yes:)
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5338 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5339 ac_tool_warned=yes ;;
5340 esac
5341 CC=$ac_ct_CC
5342 fi
5343 else
5344 CC="$ac_cv_prog_CC"
5345 fi
5346
5347 if test -z "$CC"; then
5348 if test -n "$ac_tool_prefix"; then
5349 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5350 set dummy ${ac_tool_prefix}cc; ac_word=$2
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5352 $as_echo_n "checking for $ac_word... " >&6; }
5353 if ${ac_cv_prog_CC+:} false; then :
5354 $as_echo_n "(cached) " >&6
5355 else
5356 if test -n "$CC"; then
5357 ac_cv_prog_CC="$CC" # Let the user override the test.
5358 else
5359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5360 for as_dir in $PATH
5361 do
5362 IFS=$as_save_IFS
5363 test -z "$as_dir" && as_dir=.
5364 for ac_exec_ext in '' $ac_executable_extensions; do
5365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5366 ac_cv_prog_CC="${ac_tool_prefix}cc"
5367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5368 break 2
5369 fi
5370 done
5371 done
5372 IFS=$as_save_IFS
5373
5374 fi
5375 fi
5376 CC=$ac_cv_prog_CC
5377 if test -n "$CC"; then
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5379 $as_echo "$CC" >&6; }
5380 else
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5382 $as_echo "no" >&6; }
5383 fi
5384
5385
5386 fi
5387 fi
5388 if test -z "$CC"; then
5389 # Extract the first word of "cc", so it can be a program name with args.
5390 set dummy cc; ac_word=$2
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5392 $as_echo_n "checking for $ac_word... " >&6; }
5393 if ${ac_cv_prog_CC+:} false; then :
5394 $as_echo_n "(cached) " >&6
5395 else
5396 if test -n "$CC"; then
5397 ac_cv_prog_CC="$CC" # Let the user override the test.
5398 else
5399 ac_prog_rejected=no
5400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401 for as_dir in $PATH
5402 do
5403 IFS=$as_save_IFS
5404 test -z "$as_dir" && as_dir=.
5405 for ac_exec_ext in '' $ac_executable_extensions; do
5406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5407 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5408 ac_prog_rejected=yes
5409 continue
5410 fi
5411 ac_cv_prog_CC="cc"
5412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5413 break 2
5414 fi
5415 done
5416 done
5417 IFS=$as_save_IFS
5418
5419 if test $ac_prog_rejected = yes; then
5420 # We found a bogon in the path, so make sure we never use it.
5421 set dummy $ac_cv_prog_CC
5422 shift
5423 if test $# != 0; then
5424 # We chose a different compiler from the bogus one.
5425 # However, it has the same basename, so the bogon will be chosen
5426 # first if we set CC to just the basename; use the full file name.
5427 shift
5428 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5429 fi
5430 fi
5431 fi
5432 fi
5433 CC=$ac_cv_prog_CC
5434 if test -n "$CC"; then
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5436 $as_echo "$CC" >&6; }
5437 else
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5439 $as_echo "no" >&6; }
5440 fi
5441
5442
5443 fi
5444 if test -z "$CC"; then
5445 if test -n "$ac_tool_prefix"; then
5446 for ac_prog in cl.exe
5447 do
5448 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5449 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5451 $as_echo_n "checking for $ac_word... " >&6; }
5452 if ${ac_cv_prog_CC+:} false; then :
5453 $as_echo_n "(cached) " >&6
5454 else
5455 if test -n "$CC"; then
5456 ac_cv_prog_CC="$CC" # Let the user override the test.
5457 else
5458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5459 for as_dir in $PATH
5460 do
5461 IFS=$as_save_IFS
5462 test -z "$as_dir" && as_dir=.
5463 for ac_exec_ext in '' $ac_executable_extensions; do
5464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5465 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5467 break 2
5468 fi
5469 done
5470 done
5471 IFS=$as_save_IFS
5472
5473 fi
5474 fi
5475 CC=$ac_cv_prog_CC
5476 if test -n "$CC"; then
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5478 $as_echo "$CC" >&6; }
5479 else
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5481 $as_echo "no" >&6; }
5482 fi
5483
5484
5485 test -n "$CC" && break
5486 done
5487 fi
5488 if test -z "$CC"; then
5489 ac_ct_CC=$CC
5490 for ac_prog in cl.exe
5491 do
5492 # Extract the first word of "$ac_prog", so it can be a program name with args.
5493 set dummy $ac_prog; ac_word=$2
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5495 $as_echo_n "checking for $ac_word... " >&6; }
5496 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5497 $as_echo_n "(cached) " >&6
5498 else
5499 if test -n "$ac_ct_CC"; then
5500 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5501 else
5502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5503 for as_dir in $PATH
5504 do
5505 IFS=$as_save_IFS
5506 test -z "$as_dir" && as_dir=.
5507 for ac_exec_ext in '' $ac_executable_extensions; do
5508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5509 ac_cv_prog_ac_ct_CC="$ac_prog"
5510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5511 break 2
5512 fi
5513 done
5514 done
5515 IFS=$as_save_IFS
5516
5517 fi
5518 fi
5519 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5520 if test -n "$ac_ct_CC"; then
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5522 $as_echo "$ac_ct_CC" >&6; }
5523 else
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5525 $as_echo "no" >&6; }
5526 fi
5527
5528
5529 test -n "$ac_ct_CC" && break
5530 done
5531
5532 if test "x$ac_ct_CC" = x; then
5533 CC=""
5534 else
5535 case $cross_compiling:$ac_tool_warned in
5536 yes:)
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5538 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5539 ac_tool_warned=yes ;;
5540 esac
5541 CC=$ac_ct_CC
5542 fi
5543 fi
5544
5545 fi
5546
5547
5548 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5550 as_fn_error $? "no acceptable C compiler found in \$PATH
5551 See \`config.log' for more details" "$LINENO" 5; }
5552
5553 # Provide some information about the compiler.
5554 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5555 set X $ac_compile
5556 ac_compiler=$2
5557 for ac_option in --version -v -V -qversion; do
5558 { { ac_try="$ac_compiler $ac_option >&5"
5559 case "(($ac_try" in
5560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5561 *) ac_try_echo=$ac_try;;
5562 esac
5563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5564 $as_echo "$ac_try_echo"; } >&5
5565 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5566 ac_status=$?
5567 if test -s conftest.err; then
5568 sed '10a\
5569 ... rest of stderr output deleted ...
5570 10q' conftest.err >conftest.er1
5571 cat conftest.er1 >&5
5572 fi
5573 rm -f conftest.er1 conftest.err
5574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5575 test $ac_status = 0; }
5576 done
5577
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5579 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5580 if ${ac_cv_c_compiler_gnu+:} false; then :
5581 $as_echo_n "(cached) " >&6
5582 else
5583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5584 /* end confdefs.h. */
5585
5586 int
5587 main ()
5588 {
5589 #ifndef __GNUC__
5590 choke me
5591 #endif
5592
5593 ;
5594 return 0;
5595 }
5596 _ACEOF
5597 if ac_fn_c_try_compile "$LINENO"; then :
5598 ac_compiler_gnu=yes
5599 else
5600 ac_compiler_gnu=no
5601 fi
5602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5603 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5604
5605 fi
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5607 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5608 if test $ac_compiler_gnu = yes; then
5609 GCC=yes
5610 else
5611 GCC=
5612 fi
5613 ac_test_CFLAGS=${CFLAGS+set}
5614 ac_save_CFLAGS=$CFLAGS
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5616 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5617 if ${ac_cv_prog_cc_g+:} false; then :
5618 $as_echo_n "(cached) " >&6
5619 else
5620 ac_save_c_werror_flag=$ac_c_werror_flag
5621 ac_c_werror_flag=yes
5622 ac_cv_prog_cc_g=no
5623 CFLAGS="-g"
5624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5625 /* end confdefs.h. */
5626
5627 int
5628 main ()
5629 {
5630
5631 ;
5632 return 0;
5633 }
5634 _ACEOF
5635 if ac_fn_c_try_compile "$LINENO"; then :
5636 ac_cv_prog_cc_g=yes
5637 else
5638 CFLAGS=""
5639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5640 /* end confdefs.h. */
5641
5642 int
5643 main ()
5644 {
5645
5646 ;
5647 return 0;
5648 }
5649 _ACEOF
5650 if ac_fn_c_try_compile "$LINENO"; then :
5651
5652 else
5653 ac_c_werror_flag=$ac_save_c_werror_flag
5654 CFLAGS="-g"
5655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5656 /* end confdefs.h. */
5657
5658 int
5659 main ()
5660 {
5661
5662 ;
5663 return 0;
5664 }
5665 _ACEOF
5666 if ac_fn_c_try_compile "$LINENO"; then :
5667 ac_cv_prog_cc_g=yes
5668 fi
5669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5670 fi
5671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5672 fi
5673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5674 ac_c_werror_flag=$ac_save_c_werror_flag
5675 fi
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5677 $as_echo "$ac_cv_prog_cc_g" >&6; }
5678 if test "$ac_test_CFLAGS" = set; then
5679 CFLAGS=$ac_save_CFLAGS
5680 elif test $ac_cv_prog_cc_g = yes; then
5681 if test "$GCC" = yes; then
5682 CFLAGS="-g -O2"
5683 else
5684 CFLAGS="-g"
5685 fi
5686 else
5687 if test "$GCC" = yes; then
5688 CFLAGS="-O2"
5689 else
5690 CFLAGS=
5691 fi
5692 fi
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5694 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5695 if ${ac_cv_prog_cc_c89+:} false; then :
5696 $as_echo_n "(cached) " >&6
5697 else
5698 ac_cv_prog_cc_c89=no
5699 ac_save_CC=$CC
5700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5701 /* end confdefs.h. */
5702 #include <stdarg.h>
5703 #include <stdio.h>
5704 struct stat;
5705 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5706 struct buf { int x; };
5707 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5708 static char *e (p, i)
5709 char **p;
5710 int i;
5711 {
5712 return p[i];
5713 }
5714 static char *f (char * (*g) (char **, int), char **p, ...)
5715 {
5716 char *s;
5717 va_list v;
5718 va_start (v,p);
5719 s = g (p, va_arg (v,int));
5720 va_end (v);
5721 return s;
5722 }
5723
5724 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5725 function prototypes and stuff, but not '\xHH' hex character constants.
5726 These don't provoke an error unfortunately, instead are silently treated
5727 as 'x'. The following induces an error, until -std is added to get
5728 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5729 array size at least. It's necessary to write '\x00'==0 to get something
5730 that's true only with -std. */
5731 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5732
5733 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5734 inside strings and character constants. */
5735 #define FOO(x) 'x'
5736 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5737
5738 int test (int i, double x);
5739 struct s1 {int (*f) (int a);};
5740 struct s2 {int (*f) (double a);};
5741 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5742 int argc;
5743 char **argv;
5744 int
5745 main ()
5746 {
5747 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5748 ;
5749 return 0;
5750 }
5751 _ACEOF
5752 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5753 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5754 do
5755 CC="$ac_save_CC $ac_arg"
5756 if ac_fn_c_try_compile "$LINENO"; then :
5757 ac_cv_prog_cc_c89=$ac_arg
5758 fi
5759 rm -f core conftest.err conftest.$ac_objext
5760 test "x$ac_cv_prog_cc_c89" != "xno" && break
5761 done
5762 rm -f conftest.$ac_ext
5763 CC=$ac_save_CC
5764
5765 fi
5766 # AC_CACHE_VAL
5767 case "x$ac_cv_prog_cc_c89" in
5768 x)
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5770 $as_echo "none needed" >&6; } ;;
5771 xno)
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5773 $as_echo "unsupported" >&6; } ;;
5774 *)
5775 CC="$CC $ac_cv_prog_cc_c89"
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5777 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5778 esac
5779 if test "x$ac_cv_prog_cc_c89" != xno; then :
5780
5781 fi
5782
5783 ac_ext=c
5784 ac_cpp='$CPP $CPPFLAGS'
5785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5788
5789 ac_ext=c
5790 ac_cpp='$CPP $CPPFLAGS'
5791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5795 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5796 if ${am_cv_prog_cc_c_o+:} false; then :
5797 $as_echo_n "(cached) " >&6
5798 else
5799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5800 /* end confdefs.h. */
5801
5802 int
5803 main ()
5804 {
5805
5806 ;
5807 return 0;
5808 }
5809 _ACEOF
5810 # Make sure it works both with $CC and with simple cc.
5811 # Following AC_PROG_CC_C_O, we do the test twice because some
5812 # compilers refuse to overwrite an existing .o file with -o,
5813 # though they will create one.
5814 am_cv_prog_cc_c_o=yes
5815 for am_i in 1 2; do
5816 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5817 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5818 ac_status=$?
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); } \
5821 && test -f conftest2.$ac_objext; then
5822 : OK
5823 else
5824 am_cv_prog_cc_c_o=no
5825 break
5826 fi
5827 done
5828 rm -f core conftest*
5829 unset am_i
5830 fi
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5832 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5833 if test "$am_cv_prog_cc_c_o" != yes; then
5834 # Losing compiler, so override with the script.
5835 # FIXME: It is wrong to rewrite CC.
5836 # But if we don't then we get into trouble of one sort or another.
5837 # A longer-term fix would be to have automake use am__CC in this case,
5838 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5839 CC="$am_aux_dir/compile $CC"
5840 fi
5841 ac_ext=c
5842 ac_cpp='$CPP $CPPFLAGS'
5843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5846
5847
5848 depcc="$CC" am_compiler_list=
5849
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5851 $as_echo_n "checking dependency style of $depcc... " >&6; }
5852 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5853 $as_echo_n "(cached) " >&6
5854 else
5855 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5856 # We make a subdir and do the tests there. Otherwise we can end up
5857 # making bogus files that we don't know about and never remove. For
5858 # instance it was reported that on HP-UX the gcc test will end up
5859 # making a dummy file named 'D' -- because '-MD' means "put the output
5860 # in D".
5861 rm -rf conftest.dir
5862 mkdir conftest.dir
5863 # Copy depcomp to subdir because otherwise we won't find it if we're
5864 # using a relative directory.
5865 cp "$am_depcomp" conftest.dir
5866 cd conftest.dir
5867 # We will build objects and dependencies in a subdirectory because
5868 # it helps to detect inapplicable dependency modes. For instance
5869 # both Tru64's cc and ICC support -MD to output dependencies as a
5870 # side effect of compilation, but ICC will put the dependencies in
5871 # the current directory while Tru64 will put them in the object
5872 # directory.
5873 mkdir sub
5874
5875 am_cv_CC_dependencies_compiler_type=none
5876 if test "$am_compiler_list" = ""; then
5877 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5878 fi
5879 am__universal=false
5880 case " $depcc " in #(
5881 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5882 esac
5883
5884 for depmode in $am_compiler_list; do
5885 # Setup a source with many dependencies, because some compilers
5886 # like to wrap large dependency lists on column 80 (with \), and
5887 # we should not choose a depcomp mode which is confused by this.
5888 #
5889 # We need to recreate these files for each test, as the compiler may
5890 # overwrite some of them when testing with obscure command lines.
5891 # This happens at least with the AIX C compiler.
5892 : > sub/conftest.c
5893 for i in 1 2 3 4 5 6; do
5894 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5895 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5896 # Solaris 10 /bin/sh.
5897 echo '/* dummy */' > sub/conftst$i.h
5898 done
5899 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5900
5901 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5902 # mode. It turns out that the SunPro C++ compiler does not properly
5903 # handle '-M -o', and we need to detect this. Also, some Intel
5904 # versions had trouble with output in subdirs.
5905 am__obj=sub/conftest.${OBJEXT-o}
5906 am__minus_obj="-o $am__obj"
5907 case $depmode in
5908 gcc)
5909 # This depmode causes a compiler race in universal mode.
5910 test "$am__universal" = false || continue
5911 ;;
5912 nosideeffect)
5913 # After this tag, mechanisms are not by side-effect, so they'll
5914 # only be used when explicitly requested.
5915 if test "x$enable_dependency_tracking" = xyes; then
5916 continue
5917 else
5918 break
5919 fi
5920 ;;
5921 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5922 # This compiler won't grok '-c -o', but also, the minuso test has
5923 # not run yet. These depmodes are late enough in the game, and
5924 # so weak that their functioning should not be impacted.
5925 am__obj=conftest.${OBJEXT-o}
5926 am__minus_obj=
5927 ;;
5928 none) break ;;
5929 esac
5930 if depmode=$depmode \
5931 source=sub/conftest.c object=$am__obj \
5932 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5933 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5934 >/dev/null 2>conftest.err &&
5935 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5936 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5937 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5938 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5939 # icc doesn't choke on unknown options, it will just issue warnings
5940 # or remarks (even with -Werror). So we grep stderr for any message
5941 # that says an option was ignored or not supported.
5942 # When given -MP, icc 7.0 and 7.1 complain thusly:
5943 # icc: Command line warning: ignoring option '-M'; no argument required
5944 # The diagnosis changed in icc 8.0:
5945 # icc: Command line remark: option '-MP' not supported
5946 if (grep 'ignoring option' conftest.err ||
5947 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5948 am_cv_CC_dependencies_compiler_type=$depmode
5949 break
5950 fi
5951 fi
5952 done
5953
5954 cd ..
5955 rm -rf conftest.dir
5956 else
5957 am_cv_CC_dependencies_compiler_type=none
5958 fi
5959
5960 fi
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5962 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5963 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5964
5965 if
5966 test "x$enable_dependency_tracking" != xno \
5967 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5968 am__fastdepCC_TRUE=
5969 am__fastdepCC_FALSE='#'
5970 else
5971 am__fastdepCC_TRUE='#'
5972 am__fastdepCC_FALSE=
5973 fi
5974
5975
5976
5977
5978
5979
5980
5981
5982 # Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC.
5983 if test "x$GCC" = "xyes"; then
5984 AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring"
5985 ## We like to use C11 and C99 routines when available. This makes
5986 ## sure that
5987 ## __STDC_VERSION__ is set such that libc includes make them available.
5988 AM_CFLAGS="-std=gnu11 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -Werror=implicit-function-declaration -Werror=vla"
5989 ## Compile the following tests with the same system header contents
5990 ## that we'll encounter when compiling our own source files.
5991 CFLAGS="-std=gnu11 $CFLAGS"
5992 fi
5993
5994 # Add CET specific flags if CET is enabled
5995 # Check whether --enable-cet was given.
5996 if test "${enable_cet+set}" = set; then :
5997 enableval=$enable_cet;
5998 case "$enableval" in
5999 yes|no|auto) ;;
6000 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
6001 esac
6002
6003 else
6004 enable_cet=auto
6005 fi
6006
6007
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
6009 $as_echo_n "checking for CET support... " >&6; }
6010
6011 case "$host" in
6012 i[34567]86-*-linux* | x86_64-*-linux*)
6013 case "$enable_cet" in
6014 auto)
6015 # Check if target supports multi-byte NOPs
6016 # and if assembler supports CET insn.
6017 save_CFLAGS="$CFLAGS"
6018 CFLAGS="$CFLAGS -fcf-protection"
6019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6020 /* end confdefs.h. */
6021
6022 int
6023 main ()
6024 {
6025
6026 #if !defined(__SSE2__)
6027 #error target does not support multi-byte NOPs
6028 #else
6029 asm ("setssbsy");
6030 #endif
6031
6032 ;
6033 return 0;
6034 }
6035 _ACEOF
6036 if ac_fn_c_try_compile "$LINENO"; then :
6037 enable_cet=yes
6038 else
6039 enable_cet=no
6040 fi
6041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6042 CFLAGS="$save_CFLAGS"
6043 ;;
6044 yes)
6045 # Check if assembler supports CET.
6046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6047 /* end confdefs.h. */
6048
6049 int
6050 main ()
6051 {
6052 asm ("setssbsy");
6053 ;
6054 return 0;
6055 }
6056 _ACEOF
6057 if ac_fn_c_try_compile "$LINENO"; then :
6058
6059 else
6060 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
6061 fi
6062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6063 ;;
6064 esac
6065 ;;
6066 *)
6067 enable_cet=no
6068 ;;
6069 esac
6070 if test x$enable_cet = xyes; then
6071 CET_FLAGS="-fcf-protection -mshstk"
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6073 $as_echo "yes" >&6; }
6074 else
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6076 $as_echo "no" >&6; }
6077 fi
6078
6079 AM_FCFLAGS="$AM_FCFLAGS $CET_FLAGS"
6080 AM_CFLAGS="$AM_CFLAGS $CET_FLAGS"
6081 CFLAGS="$CFLAGS $CET_FLAGS"
6082
6083
6084
6085
6086
6087 # Check for symbol versioning (copied from libssp).
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
6089 $as_echo_n "checking whether symbol versioning is supported... " >&6; }
6090 # Check whether --enable-symvers was given.
6091 if test "${enable_symvers+set}" = set; then :
6092 enableval=$enable_symvers; gfortran_use_symver=$enableval
6093 else
6094 gfortran_use_symver=yes
6095 fi
6096
6097 if test "x$gfortran_use_symver" != xno; then
6098 save_LDFLAGS="$LDFLAGS"
6099 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
6100 cat > conftest.map <<EOF
6101 FOO_1.0 {
6102 global: *foo*; bar; local: *;
6103 };
6104 EOF
6105 if test x$gcc_no_link = xyes; then
6106 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6107 fi
6108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6109 /* end confdefs.h. */
6110 int foo;
6111 int
6112 main ()
6113 {
6114
6115 ;
6116 return 0;
6117 }
6118 _ACEOF
6119 if ac_fn_c_try_link "$LINENO"; then :
6120 gfortran_use_symver=gnu
6121 else
6122 gfortran_use_symver=no
6123 fi
6124 rm -f core conftest.err conftest.$ac_objext \
6125 conftest$ac_exeext conftest.$ac_ext
6126 if test x$gfortran_use_symver = xno; then
6127 case "$target_os" in
6128 solaris2*)
6129 LDFLAGS="$save_LDFLAGS"
6130 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
6131 # Sun ld cannot handle wildcards and treats all entries as undefined.
6132 cat > conftest.map <<EOF
6133 FOO_1.0 {
6134 global: foo; local: *;
6135 };
6136 EOF
6137 if test x$gcc_no_link = xyes; then
6138 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6139 fi
6140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6141 /* end confdefs.h. */
6142 int foo;
6143 int
6144 main ()
6145 {
6146
6147 ;
6148 return 0;
6149 }
6150 _ACEOF
6151 if ac_fn_c_try_link "$LINENO"; then :
6152 gfortran_use_symver=sun
6153 else
6154 gfortran_use_symver=no
6155 fi
6156 rm -f core conftest.err conftest.$ac_objext \
6157 conftest$ac_exeext conftest.$ac_ext
6158 ;;
6159 esac
6160 fi
6161 LDFLAGS="$save_LDFLAGS"
6162 fi
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gfortran_use_symver" >&5
6164 $as_echo "$gfortran_use_symver" >&6; }
6165 if test "x$gfortran_use_symver" != xno; then
6166 LIBGFOR_USE_SYMVER_TRUE=
6167 LIBGFOR_USE_SYMVER_FALSE='#'
6168 else
6169 LIBGFOR_USE_SYMVER_TRUE='#'
6170 LIBGFOR_USE_SYMVER_FALSE=
6171 fi
6172
6173 if test "x$gfortran_use_symver" = xgnu; then
6174 LIBGFOR_USE_SYMVER_GNU_TRUE=
6175 LIBGFOR_USE_SYMVER_GNU_FALSE='#'
6176 else
6177 LIBGFOR_USE_SYMVER_GNU_TRUE='#'
6178 LIBGFOR_USE_SYMVER_GNU_FALSE=
6179 fi
6180
6181 if test "x$gfortran_use_symver" = xsun; then
6182 LIBGFOR_USE_SYMVER_SUN_TRUE=
6183 LIBGFOR_USE_SYMVER_SUN_FALSE='#'
6184 else
6185 LIBGFOR_USE_SYMVER_SUN_TRUE='#'
6186 LIBGFOR_USE_SYMVER_SUN_FALSE=
6187 fi
6188
6189
6190 # For GPU offloading, not everything in libfortran can be supported.
6191 # Currently, the only target that has this problem is nvptx. The
6192 # following is a (partial) list of features that are unsupportable on
6193 # this particular target:
6194 # * Constructors
6195 # * alloca
6196 # * C library support for I/O, with printf as the one notable exception
6197 # * C library support for other features such as signal, environment
6198 # variables, time functions
6199
6200 if test "x${target_cpu}" = xnvptx; then
6201 LIBGFOR_MINIMAL_TRUE=
6202 LIBGFOR_MINIMAL_FALSE='#'
6203 else
6204 LIBGFOR_MINIMAL_TRUE='#'
6205 LIBGFOR_MINIMAL_FALSE=
6206 fi
6207
6208
6209 # Figure out whether the compiler supports "-ffunction-sections -fdata-sections",
6210 # similarly to how libstdc++ does it
6211 ac_test_CFLAGS="${CFLAGS+set}"
6212 ac_save_CFLAGS="$CFLAGS"
6213
6214 # Check for -ffunction-sections -fdata-sections
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc that supports -ffunction-sections -fdata-sections" >&5
6216 $as_echo_n "checking for gcc that supports -ffunction-sections -fdata-sections... " >&6; }
6217 CFLAGS='-Werror -ffunction-sections -fdata-sections'
6218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6219 /* end confdefs.h. */
6220
6221 int
6222 main ()
6223 {
6224 int foo;
6225 ;
6226 return 0;
6227 }
6228 _ACEOF
6229 if ac_fn_c_try_compile "$LINENO"; then :
6230 ac_fdsections=yes
6231 else
6232 ac_fdsections=no
6233 fi
6234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6235 if test "$ac_test_CFLAGS" = set; then
6236 CFLAGS="$ac_save_CFLAGS"
6237 else
6238 # this is the suspicious part
6239 CFLAGS=""
6240 fi
6241 if test x"$ac_fdsections" = x"yes"; then
6242 SECTION_FLAGS='-ffunction-sections -fdata-sections'
6243 fi
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
6245 $as_echo "$ac_fdsections" >&6; }
6246
6247
6248 # Check linker hardware capability support.
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6250 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6251 if ${ac_cv_path_SED+:} false; then :
6252 $as_echo_n "(cached) " >&6
6253 else
6254 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6255 for ac_i in 1 2 3 4 5 6 7; do
6256 ac_script="$ac_script$as_nl$ac_script"
6257 done
6258 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6259 { ac_script=; unset ac_script;}
6260 if test -z "$SED"; then
6261 ac_path_SED_found=false
6262 # Loop through the user's path and test for each of PROGNAME-LIST
6263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264 for as_dir in $PATH
6265 do
6266 IFS=$as_save_IFS
6267 test -z "$as_dir" && as_dir=.
6268 for ac_prog in sed gsed; do
6269 for ac_exec_ext in '' $ac_executable_extensions; do
6270 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6271 as_fn_executable_p "$ac_path_SED" || continue
6272 # Check for GNU ac_path_SED and select it if it is found.
6273 # Check for GNU $ac_path_SED
6274 case `"$ac_path_SED" --version 2>&1` in
6275 *GNU*)
6276 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6277 *)
6278 ac_count=0
6279 $as_echo_n 0123456789 >"conftest.in"
6280 while :
6281 do
6282 cat "conftest.in" "conftest.in" >"conftest.tmp"
6283 mv "conftest.tmp" "conftest.in"
6284 cp "conftest.in" "conftest.nl"
6285 $as_echo '' >> "conftest.nl"
6286 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6287 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6288 as_fn_arith $ac_count + 1 && ac_count=$as_val
6289 if test $ac_count -gt ${ac_path_SED_max-0}; then
6290 # Best one so far, save it but keep looking for a better one
6291 ac_cv_path_SED="$ac_path_SED"
6292 ac_path_SED_max=$ac_count
6293 fi
6294 # 10*(2^10) chars as input seems more than enough
6295 test $ac_count -gt 10 && break
6296 done
6297 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6298 esac
6299
6300 $ac_path_SED_found && break 3
6301 done
6302 done
6303 done
6304 IFS=$as_save_IFS
6305 if test -z "$ac_cv_path_SED"; then
6306 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6307 fi
6308 else
6309 ac_cv_path_SED=$SED
6310 fi
6311
6312 fi
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6314 $as_echo "$ac_cv_path_SED" >&6; }
6315 SED="$ac_cv_path_SED"
6316 rm -f conftest.sed
6317
6318 test -z "$SED" && SED=sed
6319 Xsed="$SED -e 1s/^X//"
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6332 $as_echo_n "checking for fgrep... " >&6; }
6333 if ${ac_cv_path_FGREP+:} false; then :
6334 $as_echo_n "(cached) " >&6
6335 else
6336 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6337 then ac_cv_path_FGREP="$GREP -F"
6338 else
6339 if test -z "$FGREP"; then
6340 ac_path_FGREP_found=false
6341 # Loop through the user's path and test for each of PROGNAME-LIST
6342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6343 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6344 do
6345 IFS=$as_save_IFS
6346 test -z "$as_dir" && as_dir=.
6347 for ac_prog in fgrep; do
6348 for ac_exec_ext in '' $ac_executable_extensions; do
6349 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6350 as_fn_executable_p "$ac_path_FGREP" || continue
6351 # Check for GNU ac_path_FGREP and select it if it is found.
6352 # Check for GNU $ac_path_FGREP
6353 case `"$ac_path_FGREP" --version 2>&1` in
6354 *GNU*)
6355 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6356 *)
6357 ac_count=0
6358 $as_echo_n 0123456789 >"conftest.in"
6359 while :
6360 do
6361 cat "conftest.in" "conftest.in" >"conftest.tmp"
6362 mv "conftest.tmp" "conftest.in"
6363 cp "conftest.in" "conftest.nl"
6364 $as_echo 'FGREP' >> "conftest.nl"
6365 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6366 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6367 as_fn_arith $ac_count + 1 && ac_count=$as_val
6368 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6369 # Best one so far, save it but keep looking for a better one
6370 ac_cv_path_FGREP="$ac_path_FGREP"
6371 ac_path_FGREP_max=$ac_count
6372 fi
6373 # 10*(2^10) chars as input seems more than enough
6374 test $ac_count -gt 10 && break
6375 done
6376 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6377 esac
6378
6379 $ac_path_FGREP_found && break 3
6380 done
6381 done
6382 done
6383 IFS=$as_save_IFS
6384 if test -z "$ac_cv_path_FGREP"; then
6385 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6386 fi
6387 else
6388 ac_cv_path_FGREP=$FGREP
6389 fi
6390
6391 fi
6392 fi
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6394 $as_echo "$ac_cv_path_FGREP" >&6; }
6395 FGREP="$ac_cv_path_FGREP"
6396
6397
6398 test -z "$GREP" && GREP=grep
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6417 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6418 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6419
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6421 $as_echo_n "checking how to print strings... " >&6; }
6422 # Test print first, because it will be a builtin if present.
6423 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6424 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6425 ECHO='print -r --'
6426 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6427 ECHO='printf %s\n'
6428 else
6429 # Use this function as a fallback that always works.
6430 func_fallback_echo ()
6431 {
6432 eval 'cat <<_LTECHO_EOF
6433 $1
6434 _LTECHO_EOF'
6435 }
6436 ECHO='func_fallback_echo'
6437 fi
6438
6439 # func_echo_all arg...
6440 # Invoke $ECHO with all args, space-separated.
6441 func_echo_all ()
6442 {
6443 $ECHO ""
6444 }
6445
6446 case "$ECHO" in
6447 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6448 $as_echo "printf" >&6; } ;;
6449 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6450 $as_echo "print -r" >&6; } ;;
6451 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6452 $as_echo "cat" >&6; } ;;
6453 esac
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470 # Check whether --with-gnu-ld was given.
6471 if test "${with_gnu_ld+set}" = set; then :
6472 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6473 else
6474 with_gnu_ld=no
6475 fi
6476
6477 ac_prog=ld
6478 if test "$GCC" = yes; then
6479 # Check if gcc -print-prog-name=ld gives a path.
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6481 $as_echo_n "checking for ld used by $CC... " >&6; }
6482 case $host in
6483 *-*-mingw*)
6484 # gcc leaves a trailing carriage return which upsets mingw
6485 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6486 *)
6487 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6488 esac
6489 case $ac_prog in
6490 # Accept absolute paths.
6491 [\\/]* | ?:[\\/]*)
6492 re_direlt='/[^/][^/]*/\.\./'
6493 # Canonicalize the pathname of ld
6494 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6495 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6496 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6497 done
6498 test -z "$LD" && LD="$ac_prog"
6499 ;;
6500 "")
6501 # If it fails, then pretend we aren't using GCC.
6502 ac_prog=ld
6503 ;;
6504 *)
6505 # If it is relative, then search for the first ld in PATH.
6506 with_gnu_ld=unknown
6507 ;;
6508 esac
6509 elif test "$with_gnu_ld" = yes; then
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6511 $as_echo_n "checking for GNU ld... " >&6; }
6512 else
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6514 $as_echo_n "checking for non-GNU ld... " >&6; }
6515 fi
6516 if ${lt_cv_path_LD+:} false; then :
6517 $as_echo_n "(cached) " >&6
6518 else
6519 if test -z "$LD"; then
6520 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6521 for ac_dir in $PATH; do
6522 IFS="$lt_save_ifs"
6523 test -z "$ac_dir" && ac_dir=.
6524 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6525 lt_cv_path_LD="$ac_dir/$ac_prog"
6526 # Check to see if the program is GNU ld. I'd rather use --version,
6527 # but apparently some variants of GNU ld only accept -v.
6528 # Break only if it was the GNU/non-GNU ld that we prefer.
6529 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6530 *GNU* | *'with BFD'*)
6531 test "$with_gnu_ld" != no && break
6532 ;;
6533 *)
6534 test "$with_gnu_ld" != yes && break
6535 ;;
6536 esac
6537 fi
6538 done
6539 IFS="$lt_save_ifs"
6540 else
6541 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6542 fi
6543 fi
6544
6545 LD="$lt_cv_path_LD"
6546 if test -n "$LD"; then
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6548 $as_echo "$LD" >&6; }
6549 else
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6551 $as_echo "no" >&6; }
6552 fi
6553 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6555 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6556 if ${lt_cv_prog_gnu_ld+:} false; then :
6557 $as_echo_n "(cached) " >&6
6558 else
6559 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6560 case `$LD -v 2>&1 </dev/null` in
6561 *GNU* | *'with BFD'*)
6562 lt_cv_prog_gnu_ld=yes
6563 ;;
6564 *)
6565 lt_cv_prog_gnu_ld=no
6566 ;;
6567 esac
6568 fi
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6570 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6571 with_gnu_ld=$lt_cv_prog_gnu_ld
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582 test -z "$HWCAP_LDFLAGS" && HWCAP_LDFLAGS=''
6583
6584
6585 ac_save_LDFLAGS="$LDFLAGS"
6586 LDFLAGS="$LFLAGS -mclear-hwcap"
6587
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -mclear-hwcap" >&5
6589 $as_echo_n "checking for -mclear-hwcap... " >&6; }
6590 if test x$gcc_no_link = xyes; then
6591 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6592 fi
6593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6594 /* end confdefs.h. */
6595
6596 int
6597 main ()
6598 {
6599 return 0;
6600 ;
6601 return 0;
6602 }
6603 _ACEOF
6604 if ac_fn_c_try_link "$LINENO"; then :
6605 ac_hwcap_ldflags=yes
6606 else
6607 ac_hwcap_ldflags=no
6608 fi
6609 rm -f core conftest.err conftest.$ac_objext \
6610 conftest$ac_exeext conftest.$ac_ext
6611 if test "$ac_hwcap_ldflags" = "yes"; then
6612 HWCAP_LDFLAGS="-mclear-hwcap $HWCAP_LDFLAGS"
6613 fi
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_ldflags" >&5
6615 $as_echo "$ac_hwcap_ldflags" >&6; }
6616
6617 LDFLAGS="$ac_save_LDFLAGS"
6618
6619
6620
6621 if test $ac_hwcap_ldflags != no; then
6622 HAVE_HWCAP_TRUE=
6623 HAVE_HWCAP_FALSE='#'
6624 else
6625 HAVE_HWCAP_TRUE='#'
6626 HAVE_HWCAP_FALSE=
6627 fi
6628
6629
6630
6631 # Find other programs we need.
6632 if test -n "$ac_tool_prefix"; then
6633 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6634 set dummy ${ac_tool_prefix}as; ac_word=$2
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6636 $as_echo_n "checking for $ac_word... " >&6; }
6637 if ${ac_cv_prog_AS+:} false; then :
6638 $as_echo_n "(cached) " >&6
6639 else
6640 if test -n "$AS"; then
6641 ac_cv_prog_AS="$AS" # Let the user override the test.
6642 else
6643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6644 for as_dir in $PATH
6645 do
6646 IFS=$as_save_IFS
6647 test -z "$as_dir" && as_dir=.
6648 for ac_exec_ext in '' $ac_executable_extensions; do
6649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6650 ac_cv_prog_AS="${ac_tool_prefix}as"
6651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6652 break 2
6653 fi
6654 done
6655 done
6656 IFS=$as_save_IFS
6657
6658 fi
6659 fi
6660 AS=$ac_cv_prog_AS
6661 if test -n "$AS"; then
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
6663 $as_echo "$AS" >&6; }
6664 else
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6666 $as_echo "no" >&6; }
6667 fi
6668
6669
6670 fi
6671 if test -z "$ac_cv_prog_AS"; then
6672 ac_ct_AS=$AS
6673 # Extract the first word of "as", so it can be a program name with args.
6674 set dummy as; ac_word=$2
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6676 $as_echo_n "checking for $ac_word... " >&6; }
6677 if ${ac_cv_prog_ac_ct_AS+:} false; then :
6678 $as_echo_n "(cached) " >&6
6679 else
6680 if test -n "$ac_ct_AS"; then
6681 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6682 else
6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684 for as_dir in $PATH
6685 do
6686 IFS=$as_save_IFS
6687 test -z "$as_dir" && as_dir=.
6688 for ac_exec_ext in '' $ac_executable_extensions; do
6689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6690 ac_cv_prog_ac_ct_AS="as"
6691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6692 break 2
6693 fi
6694 done
6695 done
6696 IFS=$as_save_IFS
6697
6698 fi
6699 fi
6700 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6701 if test -n "$ac_ct_AS"; then
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
6703 $as_echo "$ac_ct_AS" >&6; }
6704 else
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6706 $as_echo "no" >&6; }
6707 fi
6708
6709 if test "x$ac_ct_AS" = x; then
6710 AS=""
6711 else
6712 case $cross_compiling:$ac_tool_warned in
6713 yes:)
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6716 ac_tool_warned=yes ;;
6717 esac
6718 AS=$ac_ct_AS
6719 fi
6720 else
6721 AS="$ac_cv_prog_AS"
6722 fi
6723
6724 if test -n "$ac_tool_prefix"; then
6725 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6726 set dummy ${ac_tool_prefix}ar; ac_word=$2
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6728 $as_echo_n "checking for $ac_word... " >&6; }
6729 if ${ac_cv_prog_AR+:} false; then :
6730 $as_echo_n "(cached) " >&6
6731 else
6732 if test -n "$AR"; then
6733 ac_cv_prog_AR="$AR" # Let the user override the test.
6734 else
6735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6736 for as_dir in $PATH
6737 do
6738 IFS=$as_save_IFS
6739 test -z "$as_dir" && as_dir=.
6740 for ac_exec_ext in '' $ac_executable_extensions; do
6741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6742 ac_cv_prog_AR="${ac_tool_prefix}ar"
6743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6744 break 2
6745 fi
6746 done
6747 done
6748 IFS=$as_save_IFS
6749
6750 fi
6751 fi
6752 AR=$ac_cv_prog_AR
6753 if test -n "$AR"; then
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6755 $as_echo "$AR" >&6; }
6756 else
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6758 $as_echo "no" >&6; }
6759 fi
6760
6761
6762 fi
6763 if test -z "$ac_cv_prog_AR"; then
6764 ac_ct_AR=$AR
6765 # Extract the first word of "ar", so it can be a program name with args.
6766 set dummy ar; ac_word=$2
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6768 $as_echo_n "checking for $ac_word... " >&6; }
6769 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6770 $as_echo_n "(cached) " >&6
6771 else
6772 if test -n "$ac_ct_AR"; then
6773 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6774 else
6775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776 for as_dir in $PATH
6777 do
6778 IFS=$as_save_IFS
6779 test -z "$as_dir" && as_dir=.
6780 for ac_exec_ext in '' $ac_executable_extensions; do
6781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6782 ac_cv_prog_ac_ct_AR="ar"
6783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6784 break 2
6785 fi
6786 done
6787 done
6788 IFS=$as_save_IFS
6789
6790 fi
6791 fi
6792 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6793 if test -n "$ac_ct_AR"; then
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6795 $as_echo "$ac_ct_AR" >&6; }
6796 else
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6798 $as_echo "no" >&6; }
6799 fi
6800
6801 if test "x$ac_ct_AR" = x; then
6802 AR=""
6803 else
6804 case $cross_compiling:$ac_tool_warned in
6805 yes:)
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6807 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6808 ac_tool_warned=yes ;;
6809 esac
6810 AR=$ac_ct_AR
6811 fi
6812 else
6813 AR="$ac_cv_prog_AR"
6814 fi
6815
6816 if test -n "$ac_tool_prefix"; then
6817 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6818 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6820 $as_echo_n "checking for $ac_word... " >&6; }
6821 if ${ac_cv_prog_RANLIB+:} false; then :
6822 $as_echo_n "(cached) " >&6
6823 else
6824 if test -n "$RANLIB"; then
6825 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6826 else
6827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828 for as_dir in $PATH
6829 do
6830 IFS=$as_save_IFS
6831 test -z "$as_dir" && as_dir=.
6832 for ac_exec_ext in '' $ac_executable_extensions; do
6833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6834 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6836 break 2
6837 fi
6838 done
6839 done
6840 IFS=$as_save_IFS
6841
6842 fi
6843 fi
6844 RANLIB=$ac_cv_prog_RANLIB
6845 if test -n "$RANLIB"; then
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6847 $as_echo "$RANLIB" >&6; }
6848 else
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6850 $as_echo "no" >&6; }
6851 fi
6852
6853
6854 fi
6855 if test -z "$ac_cv_prog_RANLIB"; then
6856 ac_ct_RANLIB=$RANLIB
6857 # Extract the first word of "ranlib", so it can be a program name with args.
6858 set dummy ranlib; ac_word=$2
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6860 $as_echo_n "checking for $ac_word... " >&6; }
6861 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6862 $as_echo_n "(cached) " >&6
6863 else
6864 if test -n "$ac_ct_RANLIB"; then
6865 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6866 else
6867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868 for as_dir in $PATH
6869 do
6870 IFS=$as_save_IFS
6871 test -z "$as_dir" && as_dir=.
6872 for ac_exec_ext in '' $ac_executable_extensions; do
6873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6874 ac_cv_prog_ac_ct_RANLIB="ranlib"
6875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6876 break 2
6877 fi
6878 done
6879 done
6880 IFS=$as_save_IFS
6881
6882 fi
6883 fi
6884 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6885 if test -n "$ac_ct_RANLIB"; then
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6887 $as_echo "$ac_ct_RANLIB" >&6; }
6888 else
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6890 $as_echo "no" >&6; }
6891 fi
6892
6893 if test "x$ac_ct_RANLIB" = x; then
6894 RANLIB="ranlib-not-found-in-path-error"
6895 else
6896 case $cross_compiling:$ac_tool_warned in
6897 yes:)
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6899 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6900 ac_tool_warned=yes ;;
6901 esac
6902 RANLIB=$ac_ct_RANLIB
6903 fi
6904 else
6905 RANLIB="$ac_cv_prog_RANLIB"
6906 fi
6907
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6909 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6910 set x ${MAKE-make}
6911 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6912 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6913 $as_echo_n "(cached) " >&6
6914 else
6915 cat >conftest.make <<\_ACEOF
6916 SHELL = /bin/sh
6917 all:
6918 @echo '@@@%%%=$(MAKE)=@@@%%%'
6919 _ACEOF
6920 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6921 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6922 *@@@%%%=?*=@@@%%%*)
6923 eval ac_cv_prog_make_${ac_make}_set=yes;;
6924 *)
6925 eval ac_cv_prog_make_${ac_make}_set=no;;
6926 esac
6927 rm -f conftest.make
6928 fi
6929 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6931 $as_echo "yes" >&6; }
6932 SET_MAKE=
6933 else
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6935 $as_echo "no" >&6; }
6936 SET_MAKE="MAKE=${MAKE-make}"
6937 fi
6938
6939
6940
6941 # Configure libtool
6942 #AC_MSG_NOTICE([====== Starting libtool configuration])
6943 enable_dlopen=yes
6944
6945
6946
6947 case `pwd` in
6948 *\ * | *\ *)
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6950 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6951 esac
6952
6953
6954
6955 macro_version='2.2.7a'
6956 macro_revision='1.3134'
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970 ltmain="$ac_aux_dir/ltmain.sh"
6971
6972 # Backslashify metacharacters that are still active within
6973 # double-quoted strings.
6974 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6975
6976 # Same as above, but do not quote variable references.
6977 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6978
6979 # Sed substitution to delay expansion of an escaped shell variable in a
6980 # double_quote_subst'ed string.
6981 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6982
6983 # Sed substitution to delay expansion of an escaped single quote.
6984 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6985
6986 # Sed substitution to avoid accidental globbing in evaled expressions
6987 no_glob_subst='s/\*/\\\*/g'
6988
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6990 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6991 if ${lt_cv_path_NM+:} false; then :
6992 $as_echo_n "(cached) " >&6
6993 else
6994 if test -n "$NM"; then
6995 # Let the user override the test.
6996 lt_cv_path_NM="$NM"
6997 else
6998 lt_nm_to_check="${ac_tool_prefix}nm"
6999 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7000 lt_nm_to_check="$lt_nm_to_check nm"
7001 fi
7002 for lt_tmp_nm in $lt_nm_to_check; do
7003 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7004 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7005 IFS="$lt_save_ifs"
7006 test -z "$ac_dir" && ac_dir=.
7007 tmp_nm="$ac_dir/$lt_tmp_nm"
7008 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7009 # Check to see if the nm accepts a BSD-compat flag.
7010 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7011 # nm: unknown option "B" ignored
7012 # Tru64's nm complains that /dev/null is an invalid object file
7013 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7014 */dev/null* | *'Invalid file or object type'*)
7015 lt_cv_path_NM="$tmp_nm -B"
7016 break
7017 ;;
7018 *)
7019 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7020 */dev/null*)
7021 lt_cv_path_NM="$tmp_nm -p"
7022 break
7023 ;;
7024 *)
7025 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7026 continue # so that we can try to find one that supports BSD flags
7027 ;;
7028 esac
7029 ;;
7030 esac
7031 fi
7032 done
7033 IFS="$lt_save_ifs"
7034 done
7035 : ${lt_cv_path_NM=no}
7036 fi
7037 fi
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7039 $as_echo "$lt_cv_path_NM" >&6; }
7040 if test "$lt_cv_path_NM" != "no"; then
7041 NM="$lt_cv_path_NM"
7042 else
7043 # Didn't find any BSD compatible name lister, look for dumpbin.
7044 if test -n "$DUMPBIN"; then :
7045 # Let the user override the test.
7046 else
7047 if test -n "$ac_tool_prefix"; then
7048 for ac_prog in dumpbin "link -dump"
7049 do
7050 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7051 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7053 $as_echo_n "checking for $ac_word... " >&6; }
7054 if ${ac_cv_prog_DUMPBIN+:} false; then :
7055 $as_echo_n "(cached) " >&6
7056 else
7057 if test -n "$DUMPBIN"; then
7058 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7059 else
7060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7061 for as_dir in $PATH
7062 do
7063 IFS=$as_save_IFS
7064 test -z "$as_dir" && as_dir=.
7065 for ac_exec_ext in '' $ac_executable_extensions; do
7066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7067 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7069 break 2
7070 fi
7071 done
7072 done
7073 IFS=$as_save_IFS
7074
7075 fi
7076 fi
7077 DUMPBIN=$ac_cv_prog_DUMPBIN
7078 if test -n "$DUMPBIN"; then
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7080 $as_echo "$DUMPBIN" >&6; }
7081 else
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7083 $as_echo "no" >&6; }
7084 fi
7085
7086
7087 test -n "$DUMPBIN" && break
7088 done
7089 fi
7090 if test -z "$DUMPBIN"; then
7091 ac_ct_DUMPBIN=$DUMPBIN
7092 for ac_prog in dumpbin "link -dump"
7093 do
7094 # Extract the first word of "$ac_prog", so it can be a program name with args.
7095 set dummy $ac_prog; ac_word=$2
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7097 $as_echo_n "checking for $ac_word... " >&6; }
7098 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7099 $as_echo_n "(cached) " >&6
7100 else
7101 if test -n "$ac_ct_DUMPBIN"; then
7102 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7103 else
7104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7105 for as_dir in $PATH
7106 do
7107 IFS=$as_save_IFS
7108 test -z "$as_dir" && as_dir=.
7109 for ac_exec_ext in '' $ac_executable_extensions; do
7110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7111 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7113 break 2
7114 fi
7115 done
7116 done
7117 IFS=$as_save_IFS
7118
7119 fi
7120 fi
7121 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7122 if test -n "$ac_ct_DUMPBIN"; then
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7124 $as_echo "$ac_ct_DUMPBIN" >&6; }
7125 else
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7127 $as_echo "no" >&6; }
7128 fi
7129
7130
7131 test -n "$ac_ct_DUMPBIN" && break
7132 done
7133
7134 if test "x$ac_ct_DUMPBIN" = x; then
7135 DUMPBIN=":"
7136 else
7137 case $cross_compiling:$ac_tool_warned in
7138 yes:)
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7140 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7141 ac_tool_warned=yes ;;
7142 esac
7143 DUMPBIN=$ac_ct_DUMPBIN
7144 fi
7145 fi
7146
7147 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7148 *COFF*)
7149 DUMPBIN="$DUMPBIN -symbols"
7150 ;;
7151 *)
7152 DUMPBIN=:
7153 ;;
7154 esac
7155 fi
7156
7157 if test "$DUMPBIN" != ":"; then
7158 NM="$DUMPBIN"
7159 fi
7160 fi
7161 test -z "$NM" && NM=nm
7162
7163
7164
7165
7166
7167
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7169 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7170 if ${lt_cv_nm_interface+:} false; then :
7171 $as_echo_n "(cached) " >&6
7172 else
7173 lt_cv_nm_interface="BSD nm"
7174 echo "int some_variable = 0;" > conftest.$ac_ext
7175 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7176 (eval "$ac_compile" 2>conftest.err)
7177 cat conftest.err >&5
7178 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7179 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7180 cat conftest.err >&5
7181 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7182 cat conftest.out >&5
7183 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7184 lt_cv_nm_interface="MS dumpbin"
7185 fi
7186 rm -f conftest*
7187 fi
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7189 $as_echo "$lt_cv_nm_interface" >&6; }
7190
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7192 $as_echo_n "checking whether ln -s works... " >&6; }
7193 LN_S=$as_ln_s
7194 if test "$LN_S" = "ln -s"; then
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7196 $as_echo "yes" >&6; }
7197 else
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7199 $as_echo "no, using $LN_S" >&6; }
7200 fi
7201
7202 # find the maximum length of command line arguments
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7204 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7205 if ${lt_cv_sys_max_cmd_len+:} false; then :
7206 $as_echo_n "(cached) " >&6
7207 else
7208 i=0
7209 teststring="ABCD"
7210
7211 case $build_os in
7212 msdosdjgpp*)
7213 # On DJGPP, this test can blow up pretty badly due to problems in libc
7214 # (any single argument exceeding 2000 bytes causes a buffer overrun
7215 # during glob expansion). Even if it were fixed, the result of this
7216 # check would be larger than it should be.
7217 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7218 ;;
7219
7220 gnu*)
7221 # Under GNU Hurd, this test is not required because there is
7222 # no limit to the length of command line arguments.
7223 # Libtool will interpret -1 as no limit whatsoever
7224 lt_cv_sys_max_cmd_len=-1;
7225 ;;
7226
7227 cygwin* | mingw* | cegcc*)
7228 # On Win9x/ME, this test blows up -- it succeeds, but takes
7229 # about 5 minutes as the teststring grows exponentially.
7230 # Worse, since 9x/ME are not pre-emptively multitasking,
7231 # you end up with a "frozen" computer, even though with patience
7232 # the test eventually succeeds (with a max line length of 256k).
7233 # Instead, let's just punt: use the minimum linelength reported by
7234 # all of the supported platforms: 8192 (on NT/2K/XP).
7235 lt_cv_sys_max_cmd_len=8192;
7236 ;;
7237
7238 mint*)
7239 # On MiNT this can take a long time and run out of memory.
7240 lt_cv_sys_max_cmd_len=8192;
7241 ;;
7242
7243 amigaos*)
7244 # On AmigaOS with pdksh, this test takes hours, literally.
7245 # So we just punt and use a minimum line length of 8192.
7246 lt_cv_sys_max_cmd_len=8192;
7247 ;;
7248
7249 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7250 # This has been around since 386BSD, at least. Likely further.
7251 if test -x /sbin/sysctl; then
7252 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7253 elif test -x /usr/sbin/sysctl; then
7254 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7255 else
7256 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7257 fi
7258 # And add a safety zone
7259 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7260 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7261 ;;
7262
7263 interix*)
7264 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7265 lt_cv_sys_max_cmd_len=196608
7266 ;;
7267
7268 osf*)
7269 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7270 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7271 # nice to cause kernel panics so lets avoid the loop below.
7272 # First set a reasonable default.
7273 lt_cv_sys_max_cmd_len=16384
7274 #
7275 if test -x /sbin/sysconfig; then
7276 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7277 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7278 esac
7279 fi
7280 ;;
7281 sco3.2v5*)
7282 lt_cv_sys_max_cmd_len=102400
7283 ;;
7284 sysv5* | sco5v6* | sysv4.2uw2*)
7285 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7286 if test -n "$kargmax"; then
7287 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7288 else
7289 lt_cv_sys_max_cmd_len=32768
7290 fi
7291 ;;
7292 *)
7293 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7294 if test -n "$lt_cv_sys_max_cmd_len"; then
7295 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7296 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7297 else
7298 # Make teststring a little bigger before we do anything with it.
7299 # a 1K string should be a reasonable start.
7300 for i in 1 2 3 4 5 6 7 8 ; do
7301 teststring=$teststring$teststring
7302 done
7303 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7304 # If test is not a shell built-in, we'll probably end up computing a
7305 # maximum length that is only half of the actual maximum length, but
7306 # we can't tell.
7307 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7308 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7309 test $i != 17 # 1/2 MB should be enough
7310 do
7311 i=`expr $i + 1`
7312 teststring=$teststring$teststring
7313 done
7314 # Only check the string length outside the loop.
7315 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7316 teststring=
7317 # Add a significant safety factor because C++ compilers can tack on
7318 # massive amounts of additional arguments before passing them to the
7319 # linker. It appears as though 1/2 is a usable value.
7320 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7321 fi
7322 ;;
7323 esac
7324
7325 fi
7326
7327 if test -n $lt_cv_sys_max_cmd_len ; then
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7329 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7330 else
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7332 $as_echo "none" >&6; }
7333 fi
7334 max_cmd_len=$lt_cv_sys_max_cmd_len
7335
7336
7337
7338
7339
7340
7341 : ${CP="cp -f"}
7342 : ${MV="mv -f"}
7343 : ${RM="rm -f"}
7344
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7346 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7347 # Try some XSI features
7348 xsi_shell=no
7349 ( _lt_dummy="a/b/c"
7350 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7351 = c,a/b,, \
7352 && eval 'test $(( 1 + 1 )) -eq 2 \
7353 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7354 && xsi_shell=yes
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7356 $as_echo "$xsi_shell" >&6; }
7357
7358
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7360 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7361 lt_shell_append=no
7362 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7363 >/dev/null 2>&1 \
7364 && lt_shell_append=yes
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7366 $as_echo "$lt_shell_append" >&6; }
7367
7368
7369 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7370 lt_unset=unset
7371 else
7372 lt_unset=false
7373 fi
7374
7375
7376
7377
7378
7379 # test EBCDIC or ASCII
7380 case `echo X|tr X '\101'` in
7381 A) # ASCII based system
7382 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7383 lt_SP2NL='tr \040 \012'
7384 lt_NL2SP='tr \015\012 \040\040'
7385 ;;
7386 *) # EBCDIC based system
7387 lt_SP2NL='tr \100 \n'
7388 lt_NL2SP='tr \r\n \100\100'
7389 ;;
7390 esac
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7401 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7402 if ${lt_cv_ld_reload_flag+:} false; then :
7403 $as_echo_n "(cached) " >&6
7404 else
7405 lt_cv_ld_reload_flag='-r'
7406 fi
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7408 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7409 reload_flag=$lt_cv_ld_reload_flag
7410 case $reload_flag in
7411 "" | " "*) ;;
7412 *) reload_flag=" $reload_flag" ;;
7413 esac
7414 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7415 case $host_os in
7416 darwin*)
7417 if test "$GCC" = yes; then
7418 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7419 else
7420 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7421 fi
7422 ;;
7423 esac
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433 if test -n "$ac_tool_prefix"; then
7434 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7435 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7437 $as_echo_n "checking for $ac_word... " >&6; }
7438 if ${ac_cv_prog_OBJDUMP+:} false; then :
7439 $as_echo_n "(cached) " >&6
7440 else
7441 if test -n "$OBJDUMP"; then
7442 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7443 else
7444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445 for as_dir in $PATH
7446 do
7447 IFS=$as_save_IFS
7448 test -z "$as_dir" && as_dir=.
7449 for ac_exec_ext in '' $ac_executable_extensions; do
7450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7451 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7453 break 2
7454 fi
7455 done
7456 done
7457 IFS=$as_save_IFS
7458
7459 fi
7460 fi
7461 OBJDUMP=$ac_cv_prog_OBJDUMP
7462 if test -n "$OBJDUMP"; then
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7464 $as_echo "$OBJDUMP" >&6; }
7465 else
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7467 $as_echo "no" >&6; }
7468 fi
7469
7470
7471 fi
7472 if test -z "$ac_cv_prog_OBJDUMP"; then
7473 ac_ct_OBJDUMP=$OBJDUMP
7474 # Extract the first word of "objdump", so it can be a program name with args.
7475 set dummy objdump; ac_word=$2
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7477 $as_echo_n "checking for $ac_word... " >&6; }
7478 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7479 $as_echo_n "(cached) " >&6
7480 else
7481 if test -n "$ac_ct_OBJDUMP"; then
7482 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7483 else
7484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7485 for as_dir in $PATH
7486 do
7487 IFS=$as_save_IFS
7488 test -z "$as_dir" && as_dir=.
7489 for ac_exec_ext in '' $ac_executable_extensions; do
7490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7491 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7493 break 2
7494 fi
7495 done
7496 done
7497 IFS=$as_save_IFS
7498
7499 fi
7500 fi
7501 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7502 if test -n "$ac_ct_OBJDUMP"; then
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7504 $as_echo "$ac_ct_OBJDUMP" >&6; }
7505 else
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7507 $as_echo "no" >&6; }
7508 fi
7509
7510 if test "x$ac_ct_OBJDUMP" = x; then
7511 OBJDUMP="false"
7512 else
7513 case $cross_compiling:$ac_tool_warned in
7514 yes:)
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7516 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7517 ac_tool_warned=yes ;;
7518 esac
7519 OBJDUMP=$ac_ct_OBJDUMP
7520 fi
7521 else
7522 OBJDUMP="$ac_cv_prog_OBJDUMP"
7523 fi
7524
7525 test -z "$OBJDUMP" && OBJDUMP=objdump
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7536 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7537 if ${lt_cv_deplibs_check_method+:} false; then :
7538 $as_echo_n "(cached) " >&6
7539 else
7540 lt_cv_file_magic_cmd='$MAGIC_CMD'
7541 lt_cv_file_magic_test_file=
7542 lt_cv_deplibs_check_method='unknown'
7543 # Need to set the preceding variable on all platforms that support
7544 # interlibrary dependencies.
7545 # 'none' -- dependencies not supported.
7546 # `unknown' -- same as none, but documents that we really don't know.
7547 # 'pass_all' -- all dependencies passed with no checks.
7548 # 'test_compile' -- check by making test program.
7549 # 'file_magic [[regex]]' -- check by looking for files in library path
7550 # which responds to the $file_magic_cmd with a given extended regex.
7551 # If you have `file' or equivalent on your system and you're not sure
7552 # whether `pass_all' will *always* work, you probably want this one.
7553
7554 case $host_os in
7555 aix[4-9]*)
7556 lt_cv_deplibs_check_method=pass_all
7557 ;;
7558
7559 beos*)
7560 lt_cv_deplibs_check_method=pass_all
7561 ;;
7562
7563 bsdi[45]*)
7564 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7565 lt_cv_file_magic_cmd='/usr/bin/file -L'
7566 lt_cv_file_magic_test_file=/shlib/libc.so
7567 ;;
7568
7569 cygwin*)
7570 # func_win32_libid is a shell function defined in ltmain.sh
7571 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7572 lt_cv_file_magic_cmd='func_win32_libid'
7573 ;;
7574
7575 mingw* | pw32*)
7576 # Base MSYS/MinGW do not provide the 'file' command needed by
7577 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7578 # unless we find 'file', for example because we are cross-compiling.
7579 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7580 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7581 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7582 lt_cv_file_magic_cmd='func_win32_libid'
7583 else
7584 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7585 lt_cv_file_magic_cmd='$OBJDUMP -f'
7586 fi
7587 ;;
7588
7589 cegcc*)
7590 # use the weaker test based on 'objdump'. See mingw*.
7591 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7592 lt_cv_file_magic_cmd='$OBJDUMP -f'
7593 ;;
7594
7595 darwin* | rhapsody*)
7596 lt_cv_deplibs_check_method=pass_all
7597 ;;
7598
7599 freebsd* | dragonfly*)
7600 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7601 case $host_cpu in
7602 i*86 )
7603 # Not sure whether the presence of OpenBSD here was a mistake.
7604 # Let's accept both of them until this is cleared up.
7605 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7606 lt_cv_file_magic_cmd=/usr/bin/file
7607 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7608 ;;
7609 esac
7610 else
7611 lt_cv_deplibs_check_method=pass_all
7612 fi
7613 ;;
7614
7615 gnu*)
7616 lt_cv_deplibs_check_method=pass_all
7617 ;;
7618
7619 haiku*)
7620 lt_cv_deplibs_check_method=pass_all
7621 ;;
7622
7623 hpux10.20* | hpux11*)
7624 lt_cv_file_magic_cmd=/usr/bin/file
7625 case $host_cpu in
7626 ia64*)
7627 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7628 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7629 ;;
7630 hppa*64*)
7631 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]'
7632 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7633 ;;
7634 *)
7635 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7636 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7637 ;;
7638 esac
7639 ;;
7640
7641 interix[3-9]*)
7642 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7643 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7644 ;;
7645
7646 irix5* | irix6* | nonstopux*)
7647 case $LD in
7648 *-32|*"-32 ") libmagic=32-bit;;
7649 *-n32|*"-n32 ") libmagic=N32;;
7650 *-64|*"-64 ") libmagic=64-bit;;
7651 *) libmagic=never-match;;
7652 esac
7653 lt_cv_deplibs_check_method=pass_all
7654 ;;
7655
7656 # This must be Linux ELF.
7657 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
7658 lt_cv_deplibs_check_method=pass_all
7659 ;;
7660
7661 netbsd*)
7662 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7663 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7664 else
7665 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7666 fi
7667 ;;
7668
7669 newos6*)
7670 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7671 lt_cv_file_magic_cmd=/usr/bin/file
7672 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7673 ;;
7674
7675 *nto* | *qnx*)
7676 lt_cv_deplibs_check_method=pass_all
7677 ;;
7678
7679 openbsd*)
7680 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7681 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7682 else
7683 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7684 fi
7685 ;;
7686
7687 osf3* | osf4* | osf5*)
7688 lt_cv_deplibs_check_method=pass_all
7689 ;;
7690
7691 rdos*)
7692 lt_cv_deplibs_check_method=pass_all
7693 ;;
7694
7695 solaris*)
7696 lt_cv_deplibs_check_method=pass_all
7697 ;;
7698
7699 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7700 lt_cv_deplibs_check_method=pass_all
7701 ;;
7702
7703 sysv4 | sysv4.3*)
7704 case $host_vendor in
7705 motorola)
7706 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]'
7707 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7708 ;;
7709 ncr)
7710 lt_cv_deplibs_check_method=pass_all
7711 ;;
7712 sequent)
7713 lt_cv_file_magic_cmd='/bin/file'
7714 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7715 ;;
7716 sni)
7717 lt_cv_file_magic_cmd='/bin/file'
7718 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7719 lt_cv_file_magic_test_file=/lib/libc.so
7720 ;;
7721 siemens)
7722 lt_cv_deplibs_check_method=pass_all
7723 ;;
7724 pc)
7725 lt_cv_deplibs_check_method=pass_all
7726 ;;
7727 esac
7728 ;;
7729
7730 tpf*)
7731 lt_cv_deplibs_check_method=pass_all
7732 ;;
7733 esac
7734
7735 fi
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7737 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7738 file_magic_cmd=$lt_cv_file_magic_cmd
7739 deplibs_check_method=$lt_cv_deplibs_check_method
7740 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753 if test -n "$ac_tool_prefix"; then
7754 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7755 set dummy ${ac_tool_prefix}ar; ac_word=$2
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7757 $as_echo_n "checking for $ac_word... " >&6; }
7758 if ${ac_cv_prog_AR+:} false; then :
7759 $as_echo_n "(cached) " >&6
7760 else
7761 if test -n "$AR"; then
7762 ac_cv_prog_AR="$AR" # Let the user override the test.
7763 else
7764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7765 for as_dir in $PATH
7766 do
7767 IFS=$as_save_IFS
7768 test -z "$as_dir" && as_dir=.
7769 for ac_exec_ext in '' $ac_executable_extensions; do
7770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7771 ac_cv_prog_AR="${ac_tool_prefix}ar"
7772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7773 break 2
7774 fi
7775 done
7776 done
7777 IFS=$as_save_IFS
7778
7779 fi
7780 fi
7781 AR=$ac_cv_prog_AR
7782 if test -n "$AR"; then
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7784 $as_echo "$AR" >&6; }
7785 else
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7787 $as_echo "no" >&6; }
7788 fi
7789
7790
7791 fi
7792 if test -z "$ac_cv_prog_AR"; then
7793 ac_ct_AR=$AR
7794 # Extract the first word of "ar", so it can be a program name with args.
7795 set dummy ar; ac_word=$2
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7797 $as_echo_n "checking for $ac_word... " >&6; }
7798 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7799 $as_echo_n "(cached) " >&6
7800 else
7801 if test -n "$ac_ct_AR"; then
7802 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7803 else
7804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7805 for as_dir in $PATH
7806 do
7807 IFS=$as_save_IFS
7808 test -z "$as_dir" && as_dir=.
7809 for ac_exec_ext in '' $ac_executable_extensions; do
7810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7811 ac_cv_prog_ac_ct_AR="ar"
7812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7813 break 2
7814 fi
7815 done
7816 done
7817 IFS=$as_save_IFS
7818
7819 fi
7820 fi
7821 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7822 if test -n "$ac_ct_AR"; then
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7824 $as_echo "$ac_ct_AR" >&6; }
7825 else
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7827 $as_echo "no" >&6; }
7828 fi
7829
7830 if test "x$ac_ct_AR" = x; then
7831 AR="false"
7832 else
7833 case $cross_compiling:$ac_tool_warned in
7834 yes:)
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7836 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7837 ac_tool_warned=yes ;;
7838 esac
7839 AR=$ac_ct_AR
7840 fi
7841 else
7842 AR="$ac_cv_prog_AR"
7843 fi
7844
7845 test -z "$AR" && AR=ar
7846 test -z "$AR_FLAGS" && AR_FLAGS=cru
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858 if test -n "$ac_tool_prefix"; then
7859 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7860 set dummy ${ac_tool_prefix}strip; ac_word=$2
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7862 $as_echo_n "checking for $ac_word... " >&6; }
7863 if ${ac_cv_prog_STRIP+:} false; then :
7864 $as_echo_n "(cached) " >&6
7865 else
7866 if test -n "$STRIP"; then
7867 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7868 else
7869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7870 for as_dir in $PATH
7871 do
7872 IFS=$as_save_IFS
7873 test -z "$as_dir" && as_dir=.
7874 for ac_exec_ext in '' $ac_executable_extensions; do
7875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7876 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7878 break 2
7879 fi
7880 done
7881 done
7882 IFS=$as_save_IFS
7883
7884 fi
7885 fi
7886 STRIP=$ac_cv_prog_STRIP
7887 if test -n "$STRIP"; then
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7889 $as_echo "$STRIP" >&6; }
7890 else
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7892 $as_echo "no" >&6; }
7893 fi
7894
7895
7896 fi
7897 if test -z "$ac_cv_prog_STRIP"; then
7898 ac_ct_STRIP=$STRIP
7899 # Extract the first word of "strip", so it can be a program name with args.
7900 set dummy strip; ac_word=$2
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7902 $as_echo_n "checking for $ac_word... " >&6; }
7903 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7904 $as_echo_n "(cached) " >&6
7905 else
7906 if test -n "$ac_ct_STRIP"; then
7907 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7908 else
7909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7910 for as_dir in $PATH
7911 do
7912 IFS=$as_save_IFS
7913 test -z "$as_dir" && as_dir=.
7914 for ac_exec_ext in '' $ac_executable_extensions; do
7915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7916 ac_cv_prog_ac_ct_STRIP="strip"
7917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7918 break 2
7919 fi
7920 done
7921 done
7922 IFS=$as_save_IFS
7923
7924 fi
7925 fi
7926 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7927 if test -n "$ac_ct_STRIP"; then
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7929 $as_echo "$ac_ct_STRIP" >&6; }
7930 else
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7932 $as_echo "no" >&6; }
7933 fi
7934
7935 if test "x$ac_ct_STRIP" = x; then
7936 STRIP=":"
7937 else
7938 case $cross_compiling:$ac_tool_warned in
7939 yes:)
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7941 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7942 ac_tool_warned=yes ;;
7943 esac
7944 STRIP=$ac_ct_STRIP
7945 fi
7946 else
7947 STRIP="$ac_cv_prog_STRIP"
7948 fi
7949
7950 test -z "$STRIP" && STRIP=:
7951
7952
7953
7954
7955
7956
7957 if test -n "$ac_tool_prefix"; then
7958 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7959 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7961 $as_echo_n "checking for $ac_word... " >&6; }
7962 if ${ac_cv_prog_RANLIB+:} false; then :
7963 $as_echo_n "(cached) " >&6
7964 else
7965 if test -n "$RANLIB"; then
7966 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7967 else
7968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7969 for as_dir in $PATH
7970 do
7971 IFS=$as_save_IFS
7972 test -z "$as_dir" && as_dir=.
7973 for ac_exec_ext in '' $ac_executable_extensions; do
7974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7975 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7977 break 2
7978 fi
7979 done
7980 done
7981 IFS=$as_save_IFS
7982
7983 fi
7984 fi
7985 RANLIB=$ac_cv_prog_RANLIB
7986 if test -n "$RANLIB"; then
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7988 $as_echo "$RANLIB" >&6; }
7989 else
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7991 $as_echo "no" >&6; }
7992 fi
7993
7994
7995 fi
7996 if test -z "$ac_cv_prog_RANLIB"; then
7997 ac_ct_RANLIB=$RANLIB
7998 # Extract the first word of "ranlib", so it can be a program name with args.
7999 set dummy ranlib; ac_word=$2
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8001 $as_echo_n "checking for $ac_word... " >&6; }
8002 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8003 $as_echo_n "(cached) " >&6
8004 else
8005 if test -n "$ac_ct_RANLIB"; then
8006 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8007 else
8008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8009 for as_dir in $PATH
8010 do
8011 IFS=$as_save_IFS
8012 test -z "$as_dir" && as_dir=.
8013 for ac_exec_ext in '' $ac_executable_extensions; do
8014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8015 ac_cv_prog_ac_ct_RANLIB="ranlib"
8016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8017 break 2
8018 fi
8019 done
8020 done
8021 IFS=$as_save_IFS
8022
8023 fi
8024 fi
8025 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8026 if test -n "$ac_ct_RANLIB"; then
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8028 $as_echo "$ac_ct_RANLIB" >&6; }
8029 else
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8031 $as_echo "no" >&6; }
8032 fi
8033
8034 if test "x$ac_ct_RANLIB" = x; then
8035 RANLIB=":"
8036 else
8037 case $cross_compiling:$ac_tool_warned in
8038 yes:)
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8040 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8041 ac_tool_warned=yes ;;
8042 esac
8043 RANLIB=$ac_ct_RANLIB
8044 fi
8045 else
8046 RANLIB="$ac_cv_prog_RANLIB"
8047 fi
8048
8049 test -z "$RANLIB" && RANLIB=:
8050
8051
8052
8053
8054
8055
8056 # Determine commands to create old-style static archives.
8057 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8058 old_postinstall_cmds='chmod 644 $oldlib'
8059 old_postuninstall_cmds=
8060
8061 if test -n "$RANLIB"; then
8062 case $host_os in
8063 openbsd*)
8064 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8065 ;;
8066 *)
8067 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8068 ;;
8069 esac
8070 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8071 fi
8072
8073 case $host_os in
8074 darwin*)
8075 lock_old_archive_extraction=yes ;;
8076 *)
8077 lock_old_archive_extraction=no ;;
8078 esac
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
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 # If no C compiler was specified, use CC.
8119 LTCC=${LTCC-"$CC"}
8120
8121 # If no C compiler flags were specified, use CFLAGS.
8122 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8123
8124 # Allow CC to be a program name with arguments.
8125 compiler=$CC
8126
8127
8128 # Check for command to grab the raw symbol name followed by C symbol from nm.
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8130 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8131 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8132 $as_echo_n "(cached) " >&6
8133 else
8134
8135 # These are sane defaults that work on at least a few old systems.
8136 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8137
8138 # Character class describing NM global symbol codes.
8139 symcode='[BCDEGRST]'
8140
8141 # Regexp to match symbols that can be accessed directly from C.
8142 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8143
8144 # Define system-specific variables.
8145 case $host_os in
8146 aix*)
8147 symcode='[BCDT]'
8148 ;;
8149 cygwin* | mingw* | pw32* | cegcc*)
8150 symcode='[ABCDGISTW]'
8151 ;;
8152 hpux*)
8153 if test "$host_cpu" = ia64; then
8154 symcode='[ABCDEGRST]'
8155 fi
8156 ;;
8157 irix* | nonstopux*)
8158 symcode='[BCDEGRST]'
8159 ;;
8160 osf*)
8161 symcode='[BCDEGQRST]'
8162 ;;
8163 solaris*)
8164 symcode='[BDRT]'
8165 ;;
8166 sco3.2v5*)
8167 symcode='[DT]'
8168 ;;
8169 sysv4.2uw2*)
8170 symcode='[DT]'
8171 ;;
8172 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8173 symcode='[ABDT]'
8174 ;;
8175 sysv4)
8176 symcode='[DFNSTU]'
8177 ;;
8178 esac
8179
8180 # If we're using GNU nm, then use its standard symbol codes.
8181 case `$NM -V 2>&1` in
8182 *GNU* | *'with BFD'*)
8183 symcode='[ABCDGIRSTW]' ;;
8184 esac
8185
8186 # Transform an extracted symbol line into a proper C declaration.
8187 # Some systems (esp. on ia64) link data and code symbols differently,
8188 # so use this general approach.
8189 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8190
8191 # Transform an extracted symbol line into symbol name and symbol address
8192 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8193 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'"
8194
8195 # Handle CRLF in mingw tool chain
8196 opt_cr=
8197 case $build_os in
8198 mingw*)
8199 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8200 ;;
8201 esac
8202
8203 # Try without a prefix underscore, then with it.
8204 for ac_symprfx in "" "_"; do
8205
8206 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8207 symxfrm="\\1 $ac_symprfx\\2 \\2"
8208
8209 # Write the raw and C identifiers.
8210 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8211 # Fake it for dumpbin and say T for any non-static function
8212 # and D for any global variable.
8213 # Also find C++ and __fastcall symbols from MSVC++,
8214 # which start with @ or ?.
8215 lt_cv_sys_global_symbol_pipe="$AWK '"\
8216 " {last_section=section; section=\$ 3};"\
8217 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8218 " \$ 0!~/External *\|/{next};"\
8219 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8220 " {if(hide[section]) next};"\
8221 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8222 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8223 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8224 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8225 " ' prfx=^$ac_symprfx"
8226 else
8227 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8228 fi
8229
8230 # Check to see that the pipe works correctly.
8231 pipe_works=no
8232
8233 rm -f conftest*
8234 cat > conftest.$ac_ext <<_LT_EOF
8235 #ifdef __cplusplus
8236 extern "C" {
8237 #endif
8238 char nm_test_var;
8239 void nm_test_func(void);
8240 void nm_test_func(void){}
8241 #ifdef __cplusplus
8242 }
8243 #endif
8244 int main(){nm_test_var='a';nm_test_func();return(0);}
8245 _LT_EOF
8246
8247 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8248 (eval $ac_compile) 2>&5
8249 ac_status=$?
8250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8251 test $ac_status = 0; }; then
8252 # Now try to grab the symbols.
8253 nlist=conftest.nm
8254 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8255 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8256 ac_status=$?
8257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8258 test $ac_status = 0; } && test -s "$nlist"; then
8259 # Try sorting and uniquifying the output.
8260 if sort "$nlist" | uniq > "$nlist"T; then
8261 mv -f "$nlist"T "$nlist"
8262 else
8263 rm -f "$nlist"T
8264 fi
8265
8266 # Make sure that we snagged all the symbols we need.
8267 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8268 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8269 cat <<_LT_EOF > conftest.$ac_ext
8270 #ifdef __cplusplus
8271 extern "C" {
8272 #endif
8273
8274 _LT_EOF
8275 # Now generate the symbol file.
8276 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8277
8278 cat <<_LT_EOF >> conftest.$ac_ext
8279
8280 /* The mapping between symbol names and symbols. */
8281 const struct {
8282 const char *name;
8283 void *address;
8284 }
8285 lt__PROGRAM__LTX_preloaded_symbols[] =
8286 {
8287 { "@PROGRAM@", (void *) 0 },
8288 _LT_EOF
8289 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8290 cat <<\_LT_EOF >> conftest.$ac_ext
8291 {0, (void *) 0}
8292 };
8293
8294 /* This works around a problem in FreeBSD linker */
8295 #ifdef FREEBSD_WORKAROUND
8296 static const void *lt_preloaded_setup() {
8297 return lt__PROGRAM__LTX_preloaded_symbols;
8298 }
8299 #endif
8300
8301 #ifdef __cplusplus
8302 }
8303 #endif
8304 _LT_EOF
8305 # Now try linking the two files.
8306 mv conftest.$ac_objext conftstm.$ac_objext
8307 lt_save_LIBS="$LIBS"
8308 lt_save_CFLAGS="$CFLAGS"
8309 LIBS="conftstm.$ac_objext"
8310 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8311 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8312 (eval $ac_link) 2>&5
8313 ac_status=$?
8314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8315 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8316 pipe_works=yes
8317 fi
8318 LIBS="$lt_save_LIBS"
8319 CFLAGS="$lt_save_CFLAGS"
8320 else
8321 echo "cannot find nm_test_func in $nlist" >&5
8322 fi
8323 else
8324 echo "cannot find nm_test_var in $nlist" >&5
8325 fi
8326 else
8327 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8328 fi
8329 else
8330 echo "$progname: failed program was:" >&5
8331 cat conftest.$ac_ext >&5
8332 fi
8333 rm -rf conftest* conftst*
8334
8335 # Do not use the global_symbol_pipe unless it works.
8336 if test "$pipe_works" = yes; then
8337 break
8338 else
8339 lt_cv_sys_global_symbol_pipe=
8340 fi
8341 done
8342
8343 fi
8344
8345 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8346 lt_cv_sys_global_symbol_to_cdecl=
8347 fi
8348 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8350 $as_echo "failed" >&6; }
8351 else
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8353 $as_echo "ok" >&6; }
8354 fi
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377 # Check whether --enable-libtool-lock was given.
8378 if test "${enable_libtool_lock+set}" = set; then :
8379 enableval=$enable_libtool_lock;
8380 fi
8381
8382 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8383
8384 # Some flags need to be propagated to the compiler or linker for good
8385 # libtool support.
8386 case $host in
8387 ia64-*-hpux*)
8388 # Find out which ABI we are using.
8389 echo 'int i;' > conftest.$ac_ext
8390 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8391 (eval $ac_compile) 2>&5
8392 ac_status=$?
8393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8394 test $ac_status = 0; }; then
8395 case `/usr/bin/file conftest.$ac_objext` in
8396 *ELF-32*)
8397 HPUX_IA64_MODE="32"
8398 ;;
8399 *ELF-64*)
8400 HPUX_IA64_MODE="64"
8401 ;;
8402 esac
8403 fi
8404 rm -rf conftest*
8405 ;;
8406 *-*-irix6*)
8407 # Find out which ABI we are using.
8408 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8409 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8410 (eval $ac_compile) 2>&5
8411 ac_status=$?
8412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8413 test $ac_status = 0; }; then
8414 if test "$lt_cv_prog_gnu_ld" = yes; then
8415 case `/usr/bin/file conftest.$ac_objext` in
8416 *32-bit*)
8417 LD="${LD-ld} -melf32bsmip"
8418 ;;
8419 *N32*)
8420 LD="${LD-ld} -melf32bmipn32"
8421 ;;
8422 *64-bit*)
8423 LD="${LD-ld} -melf64bmip"
8424 ;;
8425 esac
8426 else
8427 case `/usr/bin/file conftest.$ac_objext` in
8428 *32-bit*)
8429 LD="${LD-ld} -32"
8430 ;;
8431 *N32*)
8432 LD="${LD-ld} -n32"
8433 ;;
8434 *64-bit*)
8435 LD="${LD-ld} -64"
8436 ;;
8437 esac
8438 fi
8439 fi
8440 rm -rf conftest*
8441 ;;
8442
8443 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8444 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8445 # Find out which ABI we are using.
8446 echo 'int i;' > conftest.$ac_ext
8447 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8448 (eval $ac_compile) 2>&5
8449 ac_status=$?
8450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8451 test $ac_status = 0; }; then
8452 case `/usr/bin/file conftest.o` in
8453 *32-bit*)
8454 case $host in
8455 x86_64-*kfreebsd*-gnu)
8456 LD="${LD-ld} -m elf_i386_fbsd"
8457 ;;
8458 x86_64-*linux*)
8459 case `/usr/bin/file conftest.o` in
8460 *x86-64*)
8461 LD="${LD-ld} -m elf32_x86_64"
8462 ;;
8463 *)
8464 LD="${LD-ld} -m elf_i386"
8465 ;;
8466 esac
8467 ;;
8468 powerpc64le-*linux*)
8469 LD="${LD-ld} -m elf32lppclinux"
8470 ;;
8471 powerpc64-*linux*)
8472 LD="${LD-ld} -m elf32ppclinux"
8473 ;;
8474 s390x-*linux*)
8475 LD="${LD-ld} -m elf_s390"
8476 ;;
8477 sparc64-*linux*)
8478 LD="${LD-ld} -m elf32_sparc"
8479 ;;
8480 esac
8481 ;;
8482 *64-bit*)
8483 case $host in
8484 x86_64-*kfreebsd*-gnu)
8485 LD="${LD-ld} -m elf_x86_64_fbsd"
8486 ;;
8487 x86_64-*linux*)
8488 LD="${LD-ld} -m elf_x86_64"
8489 ;;
8490 powerpcle-*linux*)
8491 LD="${LD-ld} -m elf64lppc"
8492 ;;
8493 powerpc-*linux*)
8494 LD="${LD-ld} -m elf64ppc"
8495 ;;
8496 s390*-*linux*|s390*-*tpf*)
8497 LD="${LD-ld} -m elf64_s390"
8498 ;;
8499 sparc*-*linux*)
8500 LD="${LD-ld} -m elf64_sparc"
8501 ;;
8502 esac
8503 ;;
8504 esac
8505 fi
8506 rm -rf conftest*
8507 ;;
8508
8509 *-*-sco3.2v5*)
8510 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8511 SAVE_CFLAGS="$CFLAGS"
8512 CFLAGS="$CFLAGS -belf"
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8514 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8515 if ${lt_cv_cc_needs_belf+:} false; then :
8516 $as_echo_n "(cached) " >&6
8517 else
8518 ac_ext=c
8519 ac_cpp='$CPP $CPPFLAGS'
8520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8523
8524 if test x$gcc_no_link = xyes; then
8525 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8526 fi
8527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8528 /* end confdefs.h. */
8529
8530 int
8531 main ()
8532 {
8533
8534 ;
8535 return 0;
8536 }
8537 _ACEOF
8538 if ac_fn_c_try_link "$LINENO"; then :
8539 lt_cv_cc_needs_belf=yes
8540 else
8541 lt_cv_cc_needs_belf=no
8542 fi
8543 rm -f core conftest.err conftest.$ac_objext \
8544 conftest$ac_exeext conftest.$ac_ext
8545 ac_ext=c
8546 ac_cpp='$CPP $CPPFLAGS'
8547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8550
8551 fi
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8553 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8554 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8555 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8556 CFLAGS="$SAVE_CFLAGS"
8557 fi
8558 ;;
8559 sparc*-*solaris*)
8560 # Find out which ABI we are using.
8561 echo 'int i;' > conftest.$ac_ext
8562 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8563 (eval $ac_compile) 2>&5
8564 ac_status=$?
8565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8566 test $ac_status = 0; }; then
8567 case `/usr/bin/file conftest.o` in
8568 *64-bit*)
8569 case $lt_cv_prog_gnu_ld in
8570 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8571 *)
8572 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8573 LD="${LD-ld} -64"
8574 fi
8575 ;;
8576 esac
8577 ;;
8578 esac
8579 fi
8580 rm -rf conftest*
8581 ;;
8582 esac
8583
8584 need_locks="$enable_libtool_lock"
8585
8586
8587 case $host_os in
8588 rhapsody* | darwin*)
8589 if test -n "$ac_tool_prefix"; then
8590 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8591 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8593 $as_echo_n "checking for $ac_word... " >&6; }
8594 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8595 $as_echo_n "(cached) " >&6
8596 else
8597 if test -n "$DSYMUTIL"; then
8598 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8599 else
8600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8601 for as_dir in $PATH
8602 do
8603 IFS=$as_save_IFS
8604 test -z "$as_dir" && as_dir=.
8605 for ac_exec_ext in '' $ac_executable_extensions; do
8606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8607 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8609 break 2
8610 fi
8611 done
8612 done
8613 IFS=$as_save_IFS
8614
8615 fi
8616 fi
8617 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8618 if test -n "$DSYMUTIL"; then
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8620 $as_echo "$DSYMUTIL" >&6; }
8621 else
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8623 $as_echo "no" >&6; }
8624 fi
8625
8626
8627 fi
8628 if test -z "$ac_cv_prog_DSYMUTIL"; then
8629 ac_ct_DSYMUTIL=$DSYMUTIL
8630 # Extract the first word of "dsymutil", so it can be a program name with args.
8631 set dummy dsymutil; ac_word=$2
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8633 $as_echo_n "checking for $ac_word... " >&6; }
8634 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8635 $as_echo_n "(cached) " >&6
8636 else
8637 if test -n "$ac_ct_DSYMUTIL"; then
8638 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8639 else
8640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8641 for as_dir in $PATH
8642 do
8643 IFS=$as_save_IFS
8644 test -z "$as_dir" && as_dir=.
8645 for ac_exec_ext in '' $ac_executable_extensions; do
8646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8647 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8649 break 2
8650 fi
8651 done
8652 done
8653 IFS=$as_save_IFS
8654
8655 fi
8656 fi
8657 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8658 if test -n "$ac_ct_DSYMUTIL"; then
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8660 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8661 else
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8663 $as_echo "no" >&6; }
8664 fi
8665
8666 if test "x$ac_ct_DSYMUTIL" = x; then
8667 DSYMUTIL=":"
8668 else
8669 case $cross_compiling:$ac_tool_warned in
8670 yes:)
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8672 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8673 ac_tool_warned=yes ;;
8674 esac
8675 DSYMUTIL=$ac_ct_DSYMUTIL
8676 fi
8677 else
8678 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8679 fi
8680
8681 if test -n "$ac_tool_prefix"; then
8682 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8683 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8685 $as_echo_n "checking for $ac_word... " >&6; }
8686 if ${ac_cv_prog_NMEDIT+:} false; then :
8687 $as_echo_n "(cached) " >&6
8688 else
8689 if test -n "$NMEDIT"; then
8690 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8691 else
8692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8693 for as_dir in $PATH
8694 do
8695 IFS=$as_save_IFS
8696 test -z "$as_dir" && as_dir=.
8697 for ac_exec_ext in '' $ac_executable_extensions; do
8698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8699 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8701 break 2
8702 fi
8703 done
8704 done
8705 IFS=$as_save_IFS
8706
8707 fi
8708 fi
8709 NMEDIT=$ac_cv_prog_NMEDIT
8710 if test -n "$NMEDIT"; then
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8712 $as_echo "$NMEDIT" >&6; }
8713 else
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8715 $as_echo "no" >&6; }
8716 fi
8717
8718
8719 fi
8720 if test -z "$ac_cv_prog_NMEDIT"; then
8721 ac_ct_NMEDIT=$NMEDIT
8722 # Extract the first word of "nmedit", so it can be a program name with args.
8723 set dummy nmedit; ac_word=$2
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8725 $as_echo_n "checking for $ac_word... " >&6; }
8726 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8727 $as_echo_n "(cached) " >&6
8728 else
8729 if test -n "$ac_ct_NMEDIT"; then
8730 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8731 else
8732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8733 for as_dir in $PATH
8734 do
8735 IFS=$as_save_IFS
8736 test -z "$as_dir" && as_dir=.
8737 for ac_exec_ext in '' $ac_executable_extensions; do
8738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8739 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8741 break 2
8742 fi
8743 done
8744 done
8745 IFS=$as_save_IFS
8746
8747 fi
8748 fi
8749 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8750 if test -n "$ac_ct_NMEDIT"; then
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8752 $as_echo "$ac_ct_NMEDIT" >&6; }
8753 else
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8755 $as_echo "no" >&6; }
8756 fi
8757
8758 if test "x$ac_ct_NMEDIT" = x; then
8759 NMEDIT=":"
8760 else
8761 case $cross_compiling:$ac_tool_warned in
8762 yes:)
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8764 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8765 ac_tool_warned=yes ;;
8766 esac
8767 NMEDIT=$ac_ct_NMEDIT
8768 fi
8769 else
8770 NMEDIT="$ac_cv_prog_NMEDIT"
8771 fi
8772
8773 if test -n "$ac_tool_prefix"; then
8774 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8775 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8777 $as_echo_n "checking for $ac_word... " >&6; }
8778 if ${ac_cv_prog_LIPO+:} false; then :
8779 $as_echo_n "(cached) " >&6
8780 else
8781 if test -n "$LIPO"; then
8782 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8783 else
8784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8785 for as_dir in $PATH
8786 do
8787 IFS=$as_save_IFS
8788 test -z "$as_dir" && as_dir=.
8789 for ac_exec_ext in '' $ac_executable_extensions; do
8790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8791 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8793 break 2
8794 fi
8795 done
8796 done
8797 IFS=$as_save_IFS
8798
8799 fi
8800 fi
8801 LIPO=$ac_cv_prog_LIPO
8802 if test -n "$LIPO"; then
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8804 $as_echo "$LIPO" >&6; }
8805 else
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8807 $as_echo "no" >&6; }
8808 fi
8809
8810
8811 fi
8812 if test -z "$ac_cv_prog_LIPO"; then
8813 ac_ct_LIPO=$LIPO
8814 # Extract the first word of "lipo", so it can be a program name with args.
8815 set dummy lipo; ac_word=$2
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8817 $as_echo_n "checking for $ac_word... " >&6; }
8818 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8819 $as_echo_n "(cached) " >&6
8820 else
8821 if test -n "$ac_ct_LIPO"; then
8822 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8823 else
8824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8825 for as_dir in $PATH
8826 do
8827 IFS=$as_save_IFS
8828 test -z "$as_dir" && as_dir=.
8829 for ac_exec_ext in '' $ac_executable_extensions; do
8830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8831 ac_cv_prog_ac_ct_LIPO="lipo"
8832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8833 break 2
8834 fi
8835 done
8836 done
8837 IFS=$as_save_IFS
8838
8839 fi
8840 fi
8841 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8842 if test -n "$ac_ct_LIPO"; then
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8844 $as_echo "$ac_ct_LIPO" >&6; }
8845 else
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8847 $as_echo "no" >&6; }
8848 fi
8849
8850 if test "x$ac_ct_LIPO" = x; then
8851 LIPO=":"
8852 else
8853 case $cross_compiling:$ac_tool_warned in
8854 yes:)
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8857 ac_tool_warned=yes ;;
8858 esac
8859 LIPO=$ac_ct_LIPO
8860 fi
8861 else
8862 LIPO="$ac_cv_prog_LIPO"
8863 fi
8864
8865 if test -n "$ac_tool_prefix"; then
8866 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8867 set dummy ${ac_tool_prefix}otool; ac_word=$2
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8869 $as_echo_n "checking for $ac_word... " >&6; }
8870 if ${ac_cv_prog_OTOOL+:} false; then :
8871 $as_echo_n "(cached) " >&6
8872 else
8873 if test -n "$OTOOL"; then
8874 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8875 else
8876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8877 for as_dir in $PATH
8878 do
8879 IFS=$as_save_IFS
8880 test -z "$as_dir" && as_dir=.
8881 for ac_exec_ext in '' $ac_executable_extensions; do
8882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8883 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8885 break 2
8886 fi
8887 done
8888 done
8889 IFS=$as_save_IFS
8890
8891 fi
8892 fi
8893 OTOOL=$ac_cv_prog_OTOOL
8894 if test -n "$OTOOL"; then
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8896 $as_echo "$OTOOL" >&6; }
8897 else
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8899 $as_echo "no" >&6; }
8900 fi
8901
8902
8903 fi
8904 if test -z "$ac_cv_prog_OTOOL"; then
8905 ac_ct_OTOOL=$OTOOL
8906 # Extract the first word of "otool", so it can be a program name with args.
8907 set dummy otool; ac_word=$2
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8909 $as_echo_n "checking for $ac_word... " >&6; }
8910 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8911 $as_echo_n "(cached) " >&6
8912 else
8913 if test -n "$ac_ct_OTOOL"; then
8914 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8915 else
8916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8917 for as_dir in $PATH
8918 do
8919 IFS=$as_save_IFS
8920 test -z "$as_dir" && as_dir=.
8921 for ac_exec_ext in '' $ac_executable_extensions; do
8922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8923 ac_cv_prog_ac_ct_OTOOL="otool"
8924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8925 break 2
8926 fi
8927 done
8928 done
8929 IFS=$as_save_IFS
8930
8931 fi
8932 fi
8933 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8934 if test -n "$ac_ct_OTOOL"; then
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8936 $as_echo "$ac_ct_OTOOL" >&6; }
8937 else
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8939 $as_echo "no" >&6; }
8940 fi
8941
8942 if test "x$ac_ct_OTOOL" = x; then
8943 OTOOL=":"
8944 else
8945 case $cross_compiling:$ac_tool_warned in
8946 yes:)
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8948 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8949 ac_tool_warned=yes ;;
8950 esac
8951 OTOOL=$ac_ct_OTOOL
8952 fi
8953 else
8954 OTOOL="$ac_cv_prog_OTOOL"
8955 fi
8956
8957 if test -n "$ac_tool_prefix"; then
8958 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8959 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8961 $as_echo_n "checking for $ac_word... " >&6; }
8962 if ${ac_cv_prog_OTOOL64+:} false; then :
8963 $as_echo_n "(cached) " >&6
8964 else
8965 if test -n "$OTOOL64"; then
8966 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8967 else
8968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8969 for as_dir in $PATH
8970 do
8971 IFS=$as_save_IFS
8972 test -z "$as_dir" && as_dir=.
8973 for ac_exec_ext in '' $ac_executable_extensions; do
8974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8975 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8977 break 2
8978 fi
8979 done
8980 done
8981 IFS=$as_save_IFS
8982
8983 fi
8984 fi
8985 OTOOL64=$ac_cv_prog_OTOOL64
8986 if test -n "$OTOOL64"; then
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8988 $as_echo "$OTOOL64" >&6; }
8989 else
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8991 $as_echo "no" >&6; }
8992 fi
8993
8994
8995 fi
8996 if test -z "$ac_cv_prog_OTOOL64"; then
8997 ac_ct_OTOOL64=$OTOOL64
8998 # Extract the first word of "otool64", so it can be a program name with args.
8999 set dummy otool64; ac_word=$2
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9001 $as_echo_n "checking for $ac_word... " >&6; }
9002 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9003 $as_echo_n "(cached) " >&6
9004 else
9005 if test -n "$ac_ct_OTOOL64"; then
9006 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9007 else
9008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9009 for as_dir in $PATH
9010 do
9011 IFS=$as_save_IFS
9012 test -z "$as_dir" && as_dir=.
9013 for ac_exec_ext in '' $ac_executable_extensions; do
9014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9015 ac_cv_prog_ac_ct_OTOOL64="otool64"
9016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9017 break 2
9018 fi
9019 done
9020 done
9021 IFS=$as_save_IFS
9022
9023 fi
9024 fi
9025 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9026 if test -n "$ac_ct_OTOOL64"; then
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9028 $as_echo "$ac_ct_OTOOL64" >&6; }
9029 else
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9031 $as_echo "no" >&6; }
9032 fi
9033
9034 if test "x$ac_ct_OTOOL64" = x; then
9035 OTOOL64=":"
9036 else
9037 case $cross_compiling:$ac_tool_warned in
9038 yes:)
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9040 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9041 ac_tool_warned=yes ;;
9042 esac
9043 OTOOL64=$ac_ct_OTOOL64
9044 fi
9045 else
9046 OTOOL64="$ac_cv_prog_OTOOL64"
9047 fi
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9076 $as_echo_n "checking for -single_module linker flag... " >&6; }
9077 if ${lt_cv_apple_cc_single_mod+:} false; then :
9078 $as_echo_n "(cached) " >&6
9079 else
9080 lt_cv_apple_cc_single_mod=no
9081 if test -z "${LT_MULTI_MODULE}"; then
9082 # By default we will add the -single_module flag. You can override
9083 # by either setting the environment variable LT_MULTI_MODULE
9084 # non-empty at configure time, or by adding -multi_module to the
9085 # link flags.
9086 rm -rf libconftest.dylib*
9087 echo "int foo(void){return 1;}" > conftest.c
9088 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9089 -dynamiclib -Wl,-single_module conftest.c" >&5
9090 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9091 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9092 _lt_result=$?
9093 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9094 lt_cv_apple_cc_single_mod=yes
9095 else
9096 cat conftest.err >&5
9097 fi
9098 rm -rf libconftest.dylib*
9099 rm -f conftest.*
9100 fi
9101 fi
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9103 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9105 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9106 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9107 $as_echo_n "(cached) " >&6
9108 else
9109 lt_cv_ld_exported_symbols_list=no
9110 save_LDFLAGS=$LDFLAGS
9111 echo "_main" > conftest.sym
9112 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9113 if test x$gcc_no_link = xyes; then
9114 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9115 fi
9116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9117 /* end confdefs.h. */
9118
9119 int
9120 main ()
9121 {
9122
9123 ;
9124 return 0;
9125 }
9126 _ACEOF
9127 if ac_fn_c_try_link "$LINENO"; then :
9128 lt_cv_ld_exported_symbols_list=yes
9129 else
9130 lt_cv_ld_exported_symbols_list=no
9131 fi
9132 rm -f core conftest.err conftest.$ac_objext \
9133 conftest$ac_exeext conftest.$ac_ext
9134 LDFLAGS="$save_LDFLAGS"
9135
9136 fi
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9138 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9140 $as_echo_n "checking for -force_load linker flag... " >&6; }
9141 if ${lt_cv_ld_force_load+:} false; then :
9142 $as_echo_n "(cached) " >&6
9143 else
9144 lt_cv_ld_force_load=no
9145 cat > conftest.c << _LT_EOF
9146 int forced_loaded() { return 2;}
9147 _LT_EOF
9148 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9149 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9150 echo "$AR cru libconftest.a conftest.o" >&5
9151 $AR cru libconftest.a conftest.o 2>&5
9152 cat > conftest.c << _LT_EOF
9153 int main() { return 0;}
9154 _LT_EOF
9155 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9156 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9157 _lt_result=$?
9158 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9159 lt_cv_ld_force_load=yes
9160 else
9161 cat conftest.err >&5
9162 fi
9163 rm -f conftest.err libconftest.a conftest conftest.c
9164 rm -rf conftest.dSYM
9165
9166 fi
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9168 $as_echo "$lt_cv_ld_force_load" >&6; }
9169 case $host_os in
9170 rhapsody* | darwin1.[012])
9171 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9172 darwin1.*)
9173 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9174 darwin*) # darwin 5.x on
9175 # if running on 10.5 or later, the deployment target defaults
9176 # to the OS version, if on x86, and 10.4, the deployment
9177 # target defaults to 10.4. Don't you love it?
9178 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9179 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9180 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9181 10.[012][,.]*)
9182 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9183 10.*)
9184 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9185 esac
9186 ;;
9187 esac
9188 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9189 _lt_dar_single_mod='$single_module'
9190 fi
9191 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9192 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9193 else
9194 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9195 fi
9196 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9197 _lt_dsymutil='~$DSYMUTIL $lib || :'
9198 else
9199 _lt_dsymutil=
9200 fi
9201 ;;
9202 esac
9203
9204 for ac_header in dlfcn.h
9205 do :
9206 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9207 "
9208 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9209 cat >>confdefs.h <<_ACEOF
9210 #define HAVE_DLFCN_H 1
9211 _ACEOF
9212
9213 fi
9214
9215 done
9216
9217
9218
9219
9220
9221 # Set options
9222
9223
9224
9225
9226 enable_win32_dll=no
9227
9228
9229 # Check whether --enable-shared was given.
9230 if test "${enable_shared+set}" = set; then :
9231 enableval=$enable_shared; p=${PACKAGE-default}
9232 case $enableval in
9233 yes) enable_shared=yes ;;
9234 no) enable_shared=no ;;
9235 *)
9236 enable_shared=no
9237 # Look at the argument we got. We use all the common list separators.
9238 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9239 for pkg in $enableval; do
9240 IFS="$lt_save_ifs"
9241 if test "X$pkg" = "X$p"; then
9242 enable_shared=yes
9243 fi
9244 done
9245 IFS="$lt_save_ifs"
9246 ;;
9247 esac
9248 else
9249 enable_shared=yes
9250 fi
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260 # Check whether --enable-static was given.
9261 if test "${enable_static+set}" = set; then :
9262 enableval=$enable_static; p=${PACKAGE-default}
9263 case $enableval in
9264 yes) enable_static=yes ;;
9265 no) enable_static=no ;;
9266 *)
9267 enable_static=no
9268 # Look at the argument we got. We use all the common list separators.
9269 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9270 for pkg in $enableval; do
9271 IFS="$lt_save_ifs"
9272 if test "X$pkg" = "X$p"; then
9273 enable_static=yes
9274 fi
9275 done
9276 IFS="$lt_save_ifs"
9277 ;;
9278 esac
9279 else
9280 enable_static=yes
9281 fi
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292 # Check whether --with-pic was given.
9293 if test "${with_pic+set}" = set; then :
9294 withval=$with_pic; pic_mode="$withval"
9295 else
9296 pic_mode=default
9297 fi
9298
9299
9300 test -z "$pic_mode" && pic_mode=default
9301
9302
9303
9304
9305
9306
9307
9308 # Check whether --enable-fast-install was given.
9309 if test "${enable_fast_install+set}" = set; then :
9310 enableval=$enable_fast_install; p=${PACKAGE-default}
9311 case $enableval in
9312 yes) enable_fast_install=yes ;;
9313 no) enable_fast_install=no ;;
9314 *)
9315 enable_fast_install=no
9316 # Look at the argument we got. We use all the common list separators.
9317 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9318 for pkg in $enableval; do
9319 IFS="$lt_save_ifs"
9320 if test "X$pkg" = "X$p"; then
9321 enable_fast_install=yes
9322 fi
9323 done
9324 IFS="$lt_save_ifs"
9325 ;;
9326 esac
9327 else
9328 enable_fast_install=yes
9329 fi
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341 # This can be used to rebuild libtool when needed
9342 LIBTOOL_DEPS="$ltmain"
9343
9344 # Always use our own libtool.
9345 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372 test -z "$LN_S" && LN_S="ln -s"
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387 if test -n "${ZSH_VERSION+set}" ; then
9388 setopt NO_GLOB_SUBST
9389 fi
9390
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9392 $as_echo_n "checking for objdir... " >&6; }
9393 if ${lt_cv_objdir+:} false; then :
9394 $as_echo_n "(cached) " >&6
9395 else
9396 rm -f .libs 2>/dev/null
9397 mkdir .libs 2>/dev/null
9398 if test -d .libs; then
9399 lt_cv_objdir=.libs
9400 else
9401 # MS-DOS does not allow filenames that begin with a dot.
9402 lt_cv_objdir=_libs
9403 fi
9404 rmdir .libs 2>/dev/null
9405 fi
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9407 $as_echo "$lt_cv_objdir" >&6; }
9408 objdir=$lt_cv_objdir
9409
9410
9411
9412
9413
9414 cat >>confdefs.h <<_ACEOF
9415 #define LT_OBJDIR "$lt_cv_objdir/"
9416 _ACEOF
9417
9418
9419
9420
9421 case $host_os in
9422 aix3*)
9423 # AIX sometimes has problems with the GCC collect2 program. For some
9424 # reason, if we set the COLLECT_NAMES environment variable, the problems
9425 # vanish in a puff of smoke.
9426 if test "X${COLLECT_NAMES+set}" != Xset; then
9427 COLLECT_NAMES=
9428 export COLLECT_NAMES
9429 fi
9430 ;;
9431 esac
9432
9433 # Global variables:
9434 ofile=libtool
9435 can_build_shared=yes
9436
9437 # All known linkers require a `.a' archive for static linking (except MSVC,
9438 # which needs '.lib').
9439 libext=a
9440
9441 with_gnu_ld="$lt_cv_prog_gnu_ld"
9442
9443 old_CC="$CC"
9444 old_CFLAGS="$CFLAGS"
9445
9446 # Set sane defaults for various variables
9447 test -z "$CC" && CC=cc
9448 test -z "$LTCC" && LTCC=$CC
9449 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9450 test -z "$LD" && LD=ld
9451 test -z "$ac_objext" && ac_objext=o
9452
9453 for cc_temp in $compiler""; do
9454 case $cc_temp in
9455 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9456 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9457 \-*) ;;
9458 *) break;;
9459 esac
9460 done
9461 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9462
9463
9464 # Only perform the check for file, if the check method requires it
9465 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9466 case $deplibs_check_method in
9467 file_magic*)
9468 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9470 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9471 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9472 $as_echo_n "(cached) " >&6
9473 else
9474 case $MAGIC_CMD in
9475 [\\/*] | ?:[\\/]*)
9476 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9477 ;;
9478 *)
9479 lt_save_MAGIC_CMD="$MAGIC_CMD"
9480 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9481 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9482 for ac_dir in $ac_dummy; do
9483 IFS="$lt_save_ifs"
9484 test -z "$ac_dir" && ac_dir=.
9485 if test -f $ac_dir/${ac_tool_prefix}file; then
9486 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9487 if test -n "$file_magic_test_file"; then
9488 case $deplibs_check_method in
9489 "file_magic "*)
9490 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9491 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9492 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9493 $EGREP "$file_magic_regex" > /dev/null; then
9494 :
9495 else
9496 cat <<_LT_EOF 1>&2
9497
9498 *** Warning: the command libtool uses to detect shared libraries,
9499 *** $file_magic_cmd, produces output that libtool cannot recognize.
9500 *** The result is that libtool may fail to recognize shared libraries
9501 *** as such. This will affect the creation of libtool libraries that
9502 *** depend on shared libraries, but programs linked with such libtool
9503 *** libraries will work regardless of this problem. Nevertheless, you
9504 *** may want to report the problem to your system manager and/or to
9505 *** bug-libtool@gnu.org
9506
9507 _LT_EOF
9508 fi ;;
9509 esac
9510 fi
9511 break
9512 fi
9513 done
9514 IFS="$lt_save_ifs"
9515 MAGIC_CMD="$lt_save_MAGIC_CMD"
9516 ;;
9517 esac
9518 fi
9519
9520 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9521 if test -n "$MAGIC_CMD"; then
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9523 $as_echo "$MAGIC_CMD" >&6; }
9524 else
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9526 $as_echo "no" >&6; }
9527 fi
9528
9529
9530
9531
9532
9533 if test -z "$lt_cv_path_MAGIC_CMD"; then
9534 if test -n "$ac_tool_prefix"; then
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9536 $as_echo_n "checking for file... " >&6; }
9537 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9538 $as_echo_n "(cached) " >&6
9539 else
9540 case $MAGIC_CMD in
9541 [\\/*] | ?:[\\/]*)
9542 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9543 ;;
9544 *)
9545 lt_save_MAGIC_CMD="$MAGIC_CMD"
9546 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9547 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9548 for ac_dir in $ac_dummy; do
9549 IFS="$lt_save_ifs"
9550 test -z "$ac_dir" && ac_dir=.
9551 if test -f $ac_dir/file; then
9552 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9553 if test -n "$file_magic_test_file"; then
9554 case $deplibs_check_method in
9555 "file_magic "*)
9556 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9557 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9558 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9559 $EGREP "$file_magic_regex" > /dev/null; then
9560 :
9561 else
9562 cat <<_LT_EOF 1>&2
9563
9564 *** Warning: the command libtool uses to detect shared libraries,
9565 *** $file_magic_cmd, produces output that libtool cannot recognize.
9566 *** The result is that libtool may fail to recognize shared libraries
9567 *** as such. This will affect the creation of libtool libraries that
9568 *** depend on shared libraries, but programs linked with such libtool
9569 *** libraries will work regardless of this problem. Nevertheless, you
9570 *** may want to report the problem to your system manager and/or to
9571 *** bug-libtool@gnu.org
9572
9573 _LT_EOF
9574 fi ;;
9575 esac
9576 fi
9577 break
9578 fi
9579 done
9580 IFS="$lt_save_ifs"
9581 MAGIC_CMD="$lt_save_MAGIC_CMD"
9582 ;;
9583 esac
9584 fi
9585
9586 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9587 if test -n "$MAGIC_CMD"; then
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9589 $as_echo "$MAGIC_CMD" >&6; }
9590 else
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9592 $as_echo "no" >&6; }
9593 fi
9594
9595
9596 else
9597 MAGIC_CMD=:
9598 fi
9599 fi
9600
9601 fi
9602 ;;
9603 esac
9604
9605 # Use C for the default configuration in the libtool script
9606
9607 lt_save_CC="$CC"
9608 ac_ext=c
9609 ac_cpp='$CPP $CPPFLAGS'
9610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9613
9614
9615 # Source file extension for C test sources.
9616 ac_ext=c
9617
9618 # Object file extension for compiled C test sources.
9619 objext=o
9620 objext=$objext
9621
9622 # Code to be used in simple compile tests
9623 lt_simple_compile_test_code="int some_variable = 0;"
9624
9625 # Code to be used in simple link tests
9626 lt_simple_link_test_code='int main(){return(0);}'
9627
9628
9629
9630
9631
9632
9633
9634 # If no C compiler was specified, use CC.
9635 LTCC=${LTCC-"$CC"}
9636
9637 # If no C compiler flags were specified, use CFLAGS.
9638 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9639
9640 # Allow CC to be a program name with arguments.
9641 compiler=$CC
9642
9643 # Save the default compiler, since it gets overwritten when the other
9644 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9645 compiler_DEFAULT=$CC
9646
9647 # save warnings/boilerplate of simple test code
9648 ac_outfile=conftest.$ac_objext
9649 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9650 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9651 _lt_compiler_boilerplate=`cat conftest.err`
9652 $RM conftest*
9653
9654 ac_outfile=conftest.$ac_objext
9655 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9656 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9657 _lt_linker_boilerplate=`cat conftest.err`
9658 $RM -r conftest*
9659
9660
9661 ## CAVEAT EMPTOR:
9662 ## There is no encapsulation within the following macros, do not change
9663 ## the running order or otherwise move them around unless you know exactly
9664 ## what you are doing...
9665 if test -n "$compiler"; then
9666
9667 lt_prog_compiler_no_builtin_flag=
9668
9669 if test "$GCC" = yes; then
9670 case $cc_basename in
9671 nvcc*)
9672 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9673 *)
9674 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9675 esac
9676
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9678 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9679 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9680 $as_echo_n "(cached) " >&6
9681 else
9682 lt_cv_prog_compiler_rtti_exceptions=no
9683 ac_outfile=conftest.$ac_objext
9684 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9685 lt_compiler_flag="-fno-rtti -fno-exceptions"
9686 # Insert the option either (1) after the last *FLAGS variable, or
9687 # (2) before a word containing "conftest.", or (3) at the end.
9688 # Note that $ac_compile itself does not contain backslashes and begins
9689 # with a dollar sign (not a hyphen), so the echo should work correctly.
9690 # The option is referenced via a variable to avoid confusing sed.
9691 lt_compile=`echo "$ac_compile" | $SED \
9692 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9693 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9694 -e 's:$: $lt_compiler_flag:'`
9695 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9696 (eval "$lt_compile" 2>conftest.err)
9697 ac_status=$?
9698 cat conftest.err >&5
9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700 if (exit $ac_status) && test -s "$ac_outfile"; then
9701 # The compiler can only warn and ignore the option if not recognized
9702 # So say no if there are warnings other than the usual output.
9703 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9704 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9705 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9706 lt_cv_prog_compiler_rtti_exceptions=yes
9707 fi
9708 fi
9709 $RM conftest*
9710
9711 fi
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9713 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9714
9715 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9716 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9717 else
9718 :
9719 fi
9720
9721 fi
9722
9723
9724
9725
9726
9727
9728 lt_prog_compiler_wl=
9729 lt_prog_compiler_pic=
9730 lt_prog_compiler_static=
9731
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9733 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9734
9735 if test "$GCC" = yes; then
9736 lt_prog_compiler_wl='-Wl,'
9737 lt_prog_compiler_static='-static'
9738
9739 case $host_os in
9740 aix*)
9741 # All AIX code is PIC.
9742 if test "$host_cpu" = ia64; then
9743 # AIX 5 now supports IA64 processor
9744 lt_prog_compiler_static='-Bstatic'
9745 fi
9746 lt_prog_compiler_pic='-fPIC'
9747 ;;
9748
9749 amigaos*)
9750 case $host_cpu in
9751 powerpc)
9752 # see comment about AmigaOS4 .so support
9753 lt_prog_compiler_pic='-fPIC'
9754 ;;
9755 m68k)
9756 # FIXME: we need at least 68020 code to build shared libraries, but
9757 # adding the `-m68020' flag to GCC prevents building anything better,
9758 # like `-m68040'.
9759 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9760 ;;
9761 esac
9762 ;;
9763
9764 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9765 # PIC is the default for these OSes.
9766 ;;
9767
9768 mingw* | cygwin* | pw32* | os2* | cegcc*)
9769 # This hack is so that the source file can tell whether it is being
9770 # built for inclusion in a dll (and should export symbols for example).
9771 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9772 # (--disable-auto-import) libraries
9773 lt_prog_compiler_pic='-DDLL_EXPORT'
9774 ;;
9775
9776 darwin* | rhapsody*)
9777 # PIC is the default on this platform
9778 # Common symbols not allowed in MH_DYLIB files
9779 lt_prog_compiler_pic='-fno-common'
9780 ;;
9781
9782 haiku*)
9783 # PIC is the default for Haiku.
9784 # The "-static" flag exists, but is broken.
9785 lt_prog_compiler_static=
9786 ;;
9787
9788 hpux*)
9789 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9790 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9791 # sets the default TLS model and affects inlining.
9792 case $host_cpu in
9793 hppa*64*)
9794 # +Z the default
9795 ;;
9796 *)
9797 lt_prog_compiler_pic='-fPIC'
9798 ;;
9799 esac
9800 ;;
9801
9802 interix[3-9]*)
9803 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9804 # Instead, we relocate shared libraries at runtime.
9805 ;;
9806
9807 msdosdjgpp*)
9808 # Just because we use GCC doesn't mean we suddenly get shared libraries
9809 # on systems that don't support them.
9810 lt_prog_compiler_can_build_shared=no
9811 enable_shared=no
9812 ;;
9813
9814 *nto* | *qnx*)
9815 # QNX uses GNU C++, but need to define -shared option too, otherwise
9816 # it will coredump.
9817 lt_prog_compiler_pic='-fPIC -shared'
9818 ;;
9819
9820 sysv4*MP*)
9821 if test -d /usr/nec; then
9822 lt_prog_compiler_pic=-Kconform_pic
9823 fi
9824 ;;
9825
9826 *)
9827 lt_prog_compiler_pic='-fPIC'
9828 ;;
9829 esac
9830
9831 case $cc_basename in
9832 nvcc*) # Cuda Compiler Driver 2.2
9833 lt_prog_compiler_wl='-Xlinker '
9834 lt_prog_compiler_pic='-Xcompiler -fPIC'
9835 ;;
9836 esac
9837 else
9838 # PORTME Check for flag to pass linker flags through the system compiler.
9839 case $host_os in
9840 aix*)
9841 lt_prog_compiler_wl='-Wl,'
9842 if test "$host_cpu" = ia64; then
9843 # AIX 5 now supports IA64 processor
9844 lt_prog_compiler_static='-Bstatic'
9845 else
9846 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9847 fi
9848 ;;
9849
9850 mingw* | cygwin* | pw32* | os2* | cegcc*)
9851 # This hack is so that the source file can tell whether it is being
9852 # built for inclusion in a dll (and should export symbols for example).
9853 lt_prog_compiler_pic='-DDLL_EXPORT'
9854 ;;
9855
9856 hpux9* | hpux10* | hpux11*)
9857 lt_prog_compiler_wl='-Wl,'
9858 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9859 # not for PA HP-UX.
9860 case $host_cpu in
9861 hppa*64*|ia64*)
9862 # +Z the default
9863 ;;
9864 *)
9865 lt_prog_compiler_pic='+Z'
9866 ;;
9867 esac
9868 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9869 lt_prog_compiler_static='${wl}-a ${wl}archive'
9870 ;;
9871
9872 irix5* | irix6* | nonstopux*)
9873 lt_prog_compiler_wl='-Wl,'
9874 # PIC (with -KPIC) is the default.
9875 lt_prog_compiler_static='-non_shared'
9876 ;;
9877
9878 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9879 case $cc_basename in
9880 # old Intel for x86_64 which still supported -KPIC.
9881 ecc*)
9882 lt_prog_compiler_wl='-Wl,'
9883 lt_prog_compiler_pic='-KPIC'
9884 lt_prog_compiler_static='-static'
9885 ;;
9886 # icc used to be incompatible with GCC.
9887 # ICC 10 doesn't accept -KPIC any more.
9888 icc* | ifort*)
9889 lt_prog_compiler_wl='-Wl,'
9890 lt_prog_compiler_pic='-fPIC'
9891 lt_prog_compiler_static='-static'
9892 ;;
9893 # Lahey Fortran 8.1.
9894 lf95*)
9895 lt_prog_compiler_wl='-Wl,'
9896 lt_prog_compiler_pic='--shared'
9897 lt_prog_compiler_static='--static'
9898 ;;
9899 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9900 # Portland Group compilers (*not* the Pentium gcc compiler,
9901 # which looks to be a dead project)
9902 lt_prog_compiler_wl='-Wl,'
9903 lt_prog_compiler_pic='-fpic'
9904 lt_prog_compiler_static='-Bstatic'
9905 ;;
9906 ccc*)
9907 lt_prog_compiler_wl='-Wl,'
9908 # All Alpha code is PIC.
9909 lt_prog_compiler_static='-non_shared'
9910 ;;
9911 xl* | bgxl* | bgf* | mpixl*)
9912 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9913 lt_prog_compiler_wl='-Wl,'
9914 lt_prog_compiler_pic='-qpic'
9915 lt_prog_compiler_static='-qstaticlink'
9916 ;;
9917 *)
9918 case `$CC -V 2>&1 | sed 5q` in
9919 *Sun\ F* | *Sun*Fortran*)
9920 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9921 lt_prog_compiler_pic='-KPIC'
9922 lt_prog_compiler_static='-Bstatic'
9923 lt_prog_compiler_wl=''
9924 ;;
9925 *Sun\ C*)
9926 # Sun C 5.9
9927 lt_prog_compiler_pic='-KPIC'
9928 lt_prog_compiler_static='-Bstatic'
9929 lt_prog_compiler_wl='-Wl,'
9930 ;;
9931 esac
9932 ;;
9933 esac
9934 ;;
9935
9936 newsos6)
9937 lt_prog_compiler_pic='-KPIC'
9938 lt_prog_compiler_static='-Bstatic'
9939 ;;
9940
9941 *nto* | *qnx*)
9942 # QNX uses GNU C++, but need to define -shared option too, otherwise
9943 # it will coredump.
9944 lt_prog_compiler_pic='-fPIC -shared'
9945 ;;
9946
9947 osf3* | osf4* | osf5*)
9948 lt_prog_compiler_wl='-Wl,'
9949 # All OSF/1 code is PIC.
9950 lt_prog_compiler_static='-non_shared'
9951 ;;
9952
9953 rdos*)
9954 lt_prog_compiler_static='-non_shared'
9955 ;;
9956
9957 solaris*)
9958 lt_prog_compiler_pic='-KPIC'
9959 lt_prog_compiler_static='-Bstatic'
9960 case $cc_basename in
9961 f77* | f90* | f95*)
9962 lt_prog_compiler_wl='-Qoption ld ';;
9963 *)
9964 lt_prog_compiler_wl='-Wl,';;
9965 esac
9966 ;;
9967
9968 sunos4*)
9969 lt_prog_compiler_wl='-Qoption ld '
9970 lt_prog_compiler_pic='-PIC'
9971 lt_prog_compiler_static='-Bstatic'
9972 ;;
9973
9974 sysv4 | sysv4.2uw2* | sysv4.3*)
9975 lt_prog_compiler_wl='-Wl,'
9976 lt_prog_compiler_pic='-KPIC'
9977 lt_prog_compiler_static='-Bstatic'
9978 ;;
9979
9980 sysv4*MP*)
9981 if test -d /usr/nec ;then
9982 lt_prog_compiler_pic='-Kconform_pic'
9983 lt_prog_compiler_static='-Bstatic'
9984 fi
9985 ;;
9986
9987 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9988 lt_prog_compiler_wl='-Wl,'
9989 lt_prog_compiler_pic='-KPIC'
9990 lt_prog_compiler_static='-Bstatic'
9991 ;;
9992
9993 unicos*)
9994 lt_prog_compiler_wl='-Wl,'
9995 lt_prog_compiler_can_build_shared=no
9996 ;;
9997
9998 uts4*)
9999 lt_prog_compiler_pic='-pic'
10000 lt_prog_compiler_static='-Bstatic'
10001 ;;
10002
10003 *)
10004 lt_prog_compiler_can_build_shared=no
10005 ;;
10006 esac
10007 fi
10008
10009 case $host_os in
10010 # For platforms which do not support PIC, -DPIC is meaningless:
10011 *djgpp*)
10012 lt_prog_compiler_pic=
10013 ;;
10014 *)
10015 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10016 ;;
10017 esac
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10019 $as_echo "$lt_prog_compiler_pic" >&6; }
10020
10021
10022
10023
10024
10025
10026 #
10027 # Check to make sure the PIC flag actually works.
10028 #
10029 if test -n "$lt_prog_compiler_pic"; then
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10031 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10032 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10033 $as_echo_n "(cached) " >&6
10034 else
10035 lt_cv_prog_compiler_pic_works=no
10036 ac_outfile=conftest.$ac_objext
10037 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10038 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10039 # Insert the option either (1) after the last *FLAGS variable, or
10040 # (2) before a word containing "conftest.", or (3) at the end.
10041 # Note that $ac_compile itself does not contain backslashes and begins
10042 # with a dollar sign (not a hyphen), so the echo should work correctly.
10043 # The option is referenced via a variable to avoid confusing sed.
10044 lt_compile=`echo "$ac_compile" | $SED \
10045 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10046 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10047 -e 's:$: $lt_compiler_flag:'`
10048 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10049 (eval "$lt_compile" 2>conftest.err)
10050 ac_status=$?
10051 cat conftest.err >&5
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 if (exit $ac_status) && test -s "$ac_outfile"; then
10054 # The compiler can only warn and ignore the option if not recognized
10055 # So say no if there are warnings other than the usual output.
10056 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10057 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10058 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10059 lt_cv_prog_compiler_pic_works=yes
10060 fi
10061 fi
10062 $RM conftest*
10063
10064 fi
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10066 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10067
10068 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10069 case $lt_prog_compiler_pic in
10070 "" | " "*) ;;
10071 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10072 esac
10073 else
10074 lt_prog_compiler_pic=
10075 lt_prog_compiler_can_build_shared=no
10076 fi
10077
10078 fi
10079
10080
10081
10082
10083
10084
10085 #
10086 # Check to make sure the static flag actually works.
10087 #
10088 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10090 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10091 if ${lt_cv_prog_compiler_static_works+:} false; then :
10092 $as_echo_n "(cached) " >&6
10093 else
10094 lt_cv_prog_compiler_static_works=no
10095 save_LDFLAGS="$LDFLAGS"
10096 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10097 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10098 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10099 # The linker can only warn and ignore the option if not recognized
10100 # So say no if there are warnings
10101 if test -s conftest.err; then
10102 # Append any errors to the config.log.
10103 cat conftest.err 1>&5
10104 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10105 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10106 if diff conftest.exp conftest.er2 >/dev/null; then
10107 lt_cv_prog_compiler_static_works=yes
10108 fi
10109 else
10110 lt_cv_prog_compiler_static_works=yes
10111 fi
10112 fi
10113 $RM -r conftest*
10114 LDFLAGS="$save_LDFLAGS"
10115
10116 fi
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10118 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10119
10120 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10121 :
10122 else
10123 lt_prog_compiler_static=
10124 fi
10125
10126
10127
10128
10129
10130
10131
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10133 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10134 if ${lt_cv_prog_compiler_c_o+:} false; then :
10135 $as_echo_n "(cached) " >&6
10136 else
10137 lt_cv_prog_compiler_c_o=no
10138 $RM -r conftest 2>/dev/null
10139 mkdir conftest
10140 cd conftest
10141 mkdir out
10142 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10143
10144 lt_compiler_flag="-o out/conftest2.$ac_objext"
10145 # Insert the option either (1) after the last *FLAGS variable, or
10146 # (2) before a word containing "conftest.", or (3) at the end.
10147 # Note that $ac_compile itself does not contain backslashes and begins
10148 # with a dollar sign (not a hyphen), so the echo should work correctly.
10149 lt_compile=`echo "$ac_compile" | $SED \
10150 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10151 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10152 -e 's:$: $lt_compiler_flag:'`
10153 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10154 (eval "$lt_compile" 2>out/conftest.err)
10155 ac_status=$?
10156 cat out/conftest.err >&5
10157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10159 then
10160 # The compiler can only warn and ignore the option if not recognized
10161 # So say no if there are warnings
10162 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10163 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10164 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10165 lt_cv_prog_compiler_c_o=yes
10166 fi
10167 fi
10168 chmod u+w . 2>&5
10169 $RM conftest*
10170 # SGI C++ compiler will create directory out/ii_files/ for
10171 # template instantiation
10172 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10173 $RM out/* && rmdir out
10174 cd ..
10175 $RM -r conftest
10176 $RM conftest*
10177
10178 fi
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10180 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10181
10182
10183
10184
10185
10186
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10188 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10189 if ${lt_cv_prog_compiler_c_o+:} false; then :
10190 $as_echo_n "(cached) " >&6
10191 else
10192 lt_cv_prog_compiler_c_o=no
10193 $RM -r conftest 2>/dev/null
10194 mkdir conftest
10195 cd conftest
10196 mkdir out
10197 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10198
10199 lt_compiler_flag="-o out/conftest2.$ac_objext"
10200 # Insert the option either (1) after the last *FLAGS variable, or
10201 # (2) before a word containing "conftest.", or (3) at the end.
10202 # Note that $ac_compile itself does not contain backslashes and begins
10203 # with a dollar sign (not a hyphen), so the echo should work correctly.
10204 lt_compile=`echo "$ac_compile" | $SED \
10205 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10206 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10207 -e 's:$: $lt_compiler_flag:'`
10208 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10209 (eval "$lt_compile" 2>out/conftest.err)
10210 ac_status=$?
10211 cat out/conftest.err >&5
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10214 then
10215 # The compiler can only warn and ignore the option if not recognized
10216 # So say no if there are warnings
10217 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10218 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10219 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10220 lt_cv_prog_compiler_c_o=yes
10221 fi
10222 fi
10223 chmod u+w . 2>&5
10224 $RM conftest*
10225 # SGI C++ compiler will create directory out/ii_files/ for
10226 # template instantiation
10227 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10228 $RM out/* && rmdir out
10229 cd ..
10230 $RM -r conftest
10231 $RM conftest*
10232
10233 fi
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10235 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10236
10237
10238
10239
10240 hard_links="nottested"
10241 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10242 # do not overwrite the value of need_locks provided by the user
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10244 $as_echo_n "checking if we can lock with hard links... " >&6; }
10245 hard_links=yes
10246 $RM conftest*
10247 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10248 touch conftest.a
10249 ln conftest.a conftest.b 2>&5 || hard_links=no
10250 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10252 $as_echo "$hard_links" >&6; }
10253 if test "$hard_links" = no; then
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10255 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10256 need_locks=warn
10257 fi
10258 else
10259 need_locks=no
10260 fi
10261
10262
10263
10264
10265
10266
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10268 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10269
10270 runpath_var=
10271 allow_undefined_flag=
10272 always_export_symbols=no
10273 archive_cmds=
10274 archive_expsym_cmds=
10275 compiler_needs_object=no
10276 enable_shared_with_static_runtimes=no
10277 export_dynamic_flag_spec=
10278 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10279 hardcode_automatic=no
10280 hardcode_direct=no
10281 hardcode_direct_absolute=no
10282 hardcode_libdir_flag_spec=
10283 hardcode_libdir_flag_spec_ld=
10284 hardcode_libdir_separator=
10285 hardcode_minus_L=no
10286 hardcode_shlibpath_var=unsupported
10287 inherit_rpath=no
10288 link_all_deplibs=unknown
10289 module_cmds=
10290 module_expsym_cmds=
10291 old_archive_from_new_cmds=
10292 old_archive_from_expsyms_cmds=
10293 thread_safe_flag_spec=
10294 whole_archive_flag_spec=
10295 # include_expsyms should be a list of space-separated symbols to be *always*
10296 # included in the symbol list
10297 include_expsyms=
10298 # exclude_expsyms can be an extended regexp of symbols to exclude
10299 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10300 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10301 # as well as any symbol that contains `d'.
10302 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10303 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10304 # platforms (ab)use it in PIC code, but their linkers get confused if
10305 # the symbol is explicitly referenced. Since portable code cannot
10306 # rely on this symbol name, it's probably fine to never include it in
10307 # preloaded symbol tables.
10308 # Exclude shared library initialization/finalization symbols.
10309 extract_expsyms_cmds=
10310
10311 case $host_os in
10312 cygwin* | mingw* | pw32* | cegcc*)
10313 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10314 # When not using gcc, we currently assume that we are using
10315 # Microsoft Visual C++.
10316 if test "$GCC" != yes; then
10317 with_gnu_ld=no
10318 fi
10319 ;;
10320 interix*)
10321 # we just hope/assume this is gcc and not c89 (= MSVC++)
10322 with_gnu_ld=yes
10323 ;;
10324 openbsd*)
10325 with_gnu_ld=no
10326 ;;
10327 esac
10328
10329 ld_shlibs=yes
10330
10331 # On some targets, GNU ld is compatible enough with the native linker
10332 # that we're better off using the native interface for both.
10333 lt_use_gnu_ld_interface=no
10334 if test "$with_gnu_ld" = yes; then
10335 case $host_os in
10336 aix*)
10337 # The AIX port of GNU ld has always aspired to compatibility
10338 # with the native linker. However, as the warning in the GNU ld
10339 # block says, versions before 2.19.5* couldn't really create working
10340 # shared libraries, regardless of the interface used.
10341 case `$LD -v 2>&1` in
10342 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10343 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10344 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10345 *)
10346 lt_use_gnu_ld_interface=yes
10347 ;;
10348 esac
10349 ;;
10350 *)
10351 lt_use_gnu_ld_interface=yes
10352 ;;
10353 esac
10354 fi
10355
10356 if test "$lt_use_gnu_ld_interface" = yes; then
10357 # If archive_cmds runs LD, not CC, wlarc should be empty
10358 wlarc='${wl}'
10359
10360 # Set some defaults for GNU ld with shared library support. These
10361 # are reset later if shared libraries are not supported. Putting them
10362 # here allows them to be overridden if necessary.
10363 runpath_var=LD_RUN_PATH
10364 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10365 export_dynamic_flag_spec='${wl}--export-dynamic'
10366 # ancient GNU ld didn't support --whole-archive et. al.
10367 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10368 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10369 else
10370 whole_archive_flag_spec=
10371 fi
10372 supports_anon_versioning=no
10373 case `$LD -v 2>&1` in
10374 *GNU\ gold*) supports_anon_versioning=yes ;;
10375 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10376 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10377 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10378 *\ 2.11.*) ;; # other 2.11 versions
10379 *) supports_anon_versioning=yes ;;
10380 esac
10381
10382 # See if GNU ld supports shared libraries.
10383 case $host_os in
10384 aix[3-9]*)
10385 # On AIX/PPC, the GNU linker is very broken
10386 if test "$host_cpu" != ia64; then
10387 ld_shlibs=no
10388 cat <<_LT_EOF 1>&2
10389
10390 *** Warning: the GNU linker, at least up to release 2.19, is reported
10391 *** to be unable to reliably create shared libraries on AIX.
10392 *** Therefore, libtool is disabling shared libraries support. If you
10393 *** really care for shared libraries, you may want to install binutils
10394 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10395 *** You will then need to restart the configuration process.
10396
10397 _LT_EOF
10398 fi
10399 ;;
10400
10401 amigaos*)
10402 case $host_cpu in
10403 powerpc)
10404 # see comment about AmigaOS4 .so support
10405 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10406 archive_expsym_cmds=''
10407 ;;
10408 m68k)
10409 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)'
10410 hardcode_libdir_flag_spec='-L$libdir'
10411 hardcode_minus_L=yes
10412 ;;
10413 esac
10414 ;;
10415
10416 beos*)
10417 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10418 allow_undefined_flag=unsupported
10419 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10420 # support --undefined. This deserves some investigation. FIXME
10421 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10422 else
10423 ld_shlibs=no
10424 fi
10425 ;;
10426
10427 cygwin* | mingw* | pw32* | cegcc*)
10428 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10429 # as there is no search path for DLLs.
10430 hardcode_libdir_flag_spec='-L$libdir'
10431 export_dynamic_flag_spec='${wl}--export-all-symbols'
10432 allow_undefined_flag=unsupported
10433 always_export_symbols=no
10434 enable_shared_with_static_runtimes=yes
10435 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10436
10437 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10438 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10439 # If the export-symbols file already is a .def file (1st line
10440 # is EXPORTS), use it as is; otherwise, prepend...
10441 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10442 cp $export_symbols $output_objdir/$soname.def;
10443 else
10444 echo EXPORTS > $output_objdir/$soname.def;
10445 cat $export_symbols >> $output_objdir/$soname.def;
10446 fi~
10447 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10448 else
10449 ld_shlibs=no
10450 fi
10451 ;;
10452
10453 haiku*)
10454 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10455 link_all_deplibs=yes
10456 ;;
10457
10458 interix[3-9]*)
10459 hardcode_direct=no
10460 hardcode_shlibpath_var=no
10461 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10462 export_dynamic_flag_spec='${wl}-E'
10463 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10464 # Instead, shared libraries are loaded at an image base (0x10000000 by
10465 # default) and relocated if they conflict, which is a slow very memory
10466 # consuming and fragmenting process. To avoid this, we pick a random,
10467 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10468 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10469 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10470 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'
10471 ;;
10472
10473 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
10474 tmp_diet=no
10475 if test "$host_os" = linux-dietlibc; then
10476 case $cc_basename in
10477 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10478 esac
10479 fi
10480 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10481 && test "$tmp_diet" = no
10482 then
10483 tmp_addflag=' $pic_flag'
10484 tmp_sharedflag='-shared'
10485 case $cc_basename,$host_cpu in
10486 pgcc*) # Portland Group C compiler
10487 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'
10488 tmp_addflag=' $pic_flag'
10489 ;;
10490 pgf77* | pgf90* | pgf95* | pgfortran*)
10491 # Portland Group f77 and f90 compilers
10492 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'
10493 tmp_addflag=' $pic_flag -Mnomain' ;;
10494 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10495 tmp_addflag=' -i_dynamic' ;;
10496 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10497 tmp_addflag=' -i_dynamic -nofor_main' ;;
10498 ifc* | ifort*) # Intel Fortran compiler
10499 tmp_addflag=' -nofor_main' ;;
10500 lf95*) # Lahey Fortran 8.1
10501 whole_archive_flag_spec=
10502 tmp_sharedflag='--shared' ;;
10503 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10504 tmp_sharedflag='-qmkshrobj'
10505 tmp_addflag= ;;
10506 nvcc*) # Cuda Compiler Driver 2.2
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 compiler_needs_object=yes
10509 ;;
10510 esac
10511 case `$CC -V 2>&1 | sed 5q` in
10512 *Sun\ C*) # Sun C 5.9
10513 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'
10514 compiler_needs_object=yes
10515 tmp_sharedflag='-G' ;;
10516 *Sun\ F*) # Sun Fortran 8.3
10517 tmp_sharedflag='-G' ;;
10518 esac
10519 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10520
10521 if test "x$supports_anon_versioning" = xyes; then
10522 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10523 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10524 echo "local: *; };" >> $output_objdir/$libname.ver~
10525 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10526 fi
10527
10528 case $cc_basename in
10529 xlf* | bgf* | bgxlf* | mpixlf*)
10530 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10531 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10532 hardcode_libdir_flag_spec=
10533 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10534 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10535 if test "x$supports_anon_versioning" = xyes; then
10536 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10537 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10538 echo "local: *; };" >> $output_objdir/$libname.ver~
10539 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10540 fi
10541 ;;
10542 esac
10543 else
10544 ld_shlibs=no
10545 fi
10546 ;;
10547
10548 netbsd*)
10549 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10550 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10551 wlarc=
10552 else
10553 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10554 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10555 fi
10556 ;;
10557
10558 solaris*)
10559 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10560 ld_shlibs=no
10561 cat <<_LT_EOF 1>&2
10562
10563 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10564 *** create shared libraries on Solaris systems. Therefore, libtool
10565 *** is disabling shared libraries support. We urge you to upgrade GNU
10566 *** binutils to release 2.9.1 or newer. Another option is to modify
10567 *** your PATH or compiler configuration so that the native linker is
10568 *** used, and then restart.
10569
10570 _LT_EOF
10571 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10572 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10573 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10574 else
10575 ld_shlibs=no
10576 fi
10577 ;;
10578
10579 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10580 case `$LD -v 2>&1` in
10581 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10582 ld_shlibs=no
10583 cat <<_LT_EOF 1>&2
10584
10585 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10586 *** reliably create shared libraries on SCO systems. Therefore, libtool
10587 *** is disabling shared libraries support. We urge you to upgrade GNU
10588 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10589 *** your PATH or compiler configuration so that the native linker is
10590 *** used, and then restart.
10591
10592 _LT_EOF
10593 ;;
10594 *)
10595 # For security reasons, it is highly recommended that you always
10596 # use absolute paths for naming shared libraries, and exclude the
10597 # DT_RUNPATH tag from executables and libraries. But doing so
10598 # requires that you compile everything twice, which is a pain.
10599 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10600 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10601 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10602 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10603 else
10604 ld_shlibs=no
10605 fi
10606 ;;
10607 esac
10608 ;;
10609
10610 sunos4*)
10611 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10612 wlarc=
10613 hardcode_direct=yes
10614 hardcode_shlibpath_var=no
10615 ;;
10616
10617 *)
10618 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10619 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10620 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10621 else
10622 ld_shlibs=no
10623 fi
10624 ;;
10625 esac
10626
10627 if test "$ld_shlibs" = no; then
10628 runpath_var=
10629 hardcode_libdir_flag_spec=
10630 export_dynamic_flag_spec=
10631 whole_archive_flag_spec=
10632 fi
10633 else
10634 # PORTME fill in a description of your system's linker (not GNU ld)
10635 case $host_os in
10636 aix3*)
10637 allow_undefined_flag=unsupported
10638 always_export_symbols=yes
10639 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'
10640 # Note: this linker hardcodes the directories in LIBPATH if there
10641 # are no directories specified by -L.
10642 hardcode_minus_L=yes
10643 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10644 # Neither direct hardcoding nor static linking is supported with a
10645 # broken collect2.
10646 hardcode_direct=unsupported
10647 fi
10648 ;;
10649
10650 aix[4-9]*)
10651 if test "$host_cpu" = ia64; then
10652 # On IA64, the linker does run time linking by default, so we don't
10653 # have to do anything special.
10654 aix_use_runtimelinking=no
10655 exp_sym_flag='-Bexport'
10656 no_entry_flag=""
10657 else
10658 # If we're using GNU nm, then we don't want the "-C" option.
10659 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10660 # Also, AIX nm treats weak defined symbols like other global
10661 # defined symbols, whereas GNU nm marks them as "W".
10662 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10663 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'
10664 else
10665 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'
10666 fi
10667 aix_use_runtimelinking=no
10668
10669 # Test if we are trying to use run time linking or normal
10670 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10671 # need to do runtime linking.
10672 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10673 for ld_flag in $LDFLAGS; do
10674 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10675 aix_use_runtimelinking=yes
10676 break
10677 fi
10678 done
10679 ;;
10680 esac
10681
10682 exp_sym_flag='-bexport'
10683 no_entry_flag='-bnoentry'
10684 fi
10685
10686 # When large executables or shared objects are built, AIX ld can
10687 # have problems creating the table of contents. If linking a library
10688 # or program results in "error TOC overflow" add -mminimal-toc to
10689 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10690 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10691
10692 archive_cmds=''
10693 hardcode_direct=yes
10694 hardcode_direct_absolute=yes
10695 hardcode_libdir_separator=':'
10696 link_all_deplibs=yes
10697 file_list_spec='${wl}-f,'
10698
10699 if test "$GCC" = yes; then
10700 case $host_os in aix4.[012]|aix4.[012].*)
10701 # We only want to do this on AIX 4.2 and lower, the check
10702 # below for broken collect2 doesn't work under 4.3+
10703 collect2name=`${CC} -print-prog-name=collect2`
10704 if test -f "$collect2name" &&
10705 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10706 then
10707 # We have reworked collect2
10708 :
10709 else
10710 # We have old collect2
10711 hardcode_direct=unsupported
10712 # It fails to find uninstalled libraries when the uninstalled
10713 # path is not listed in the libpath. Setting hardcode_minus_L
10714 # to unsupported forces relinking
10715 hardcode_minus_L=yes
10716 hardcode_libdir_flag_spec='-L$libdir'
10717 hardcode_libdir_separator=
10718 fi
10719 ;;
10720 esac
10721 shared_flag='-shared'
10722 if test "$aix_use_runtimelinking" = yes; then
10723 shared_flag="$shared_flag "'${wl}-G'
10724 fi
10725 else
10726 # not using gcc
10727 if test "$host_cpu" = ia64; then
10728 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10729 # chokes on -Wl,-G. The following line is correct:
10730 shared_flag='-G'
10731 else
10732 if test "$aix_use_runtimelinking" = yes; then
10733 shared_flag='${wl}-G'
10734 else
10735 shared_flag='${wl}-bM:SRE'
10736 fi
10737 fi
10738 fi
10739
10740 export_dynamic_flag_spec='${wl}-bexpall'
10741 # It seems that -bexpall does not export symbols beginning with
10742 # underscore (_), so it is better to generate a list of symbols to export.
10743 always_export_symbols=yes
10744 if test "$aix_use_runtimelinking" = yes; then
10745 # Warning - without using the other runtime loading flags (-brtl),
10746 # -berok will link without error, but may produce a broken library.
10747 allow_undefined_flag='-berok'
10748 # Determine the default libpath from the value encoded in an
10749 # empty executable.
10750 if test x$gcc_no_link = xyes; then
10751 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10752 fi
10753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10754 /* end confdefs.h. */
10755
10756 int
10757 main ()
10758 {
10759
10760 ;
10761 return 0;
10762 }
10763 _ACEOF
10764 if ac_fn_c_try_link "$LINENO"; then :
10765
10766 lt_aix_libpath_sed='
10767 /Import File Strings/,/^$/ {
10768 /^0/ {
10769 s/^0 *\(.*\)$/\1/
10770 p
10771 }
10772 }'
10773 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10774 # Check for a 64-bit object if we didn't find anything.
10775 if test -z "$aix_libpath"; then
10776 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10777 fi
10778 fi
10779 rm -f core conftest.err conftest.$ac_objext \
10780 conftest$ac_exeext conftest.$ac_ext
10781 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10782
10783 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10784 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"
10785 else
10786 if test "$host_cpu" = ia64; then
10787 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10788 allow_undefined_flag="-z nodefs"
10789 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"
10790 else
10791 # Determine the default libpath from the value encoded in an
10792 # empty executable.
10793 if test x$gcc_no_link = xyes; then
10794 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10795 fi
10796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10797 /* end confdefs.h. */
10798
10799 int
10800 main ()
10801 {
10802
10803 ;
10804 return 0;
10805 }
10806 _ACEOF
10807 if ac_fn_c_try_link "$LINENO"; then :
10808
10809 lt_aix_libpath_sed='
10810 /Import File Strings/,/^$/ {
10811 /^0/ {
10812 s/^0 *\(.*\)$/\1/
10813 p
10814 }
10815 }'
10816 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10817 # Check for a 64-bit object if we didn't find anything.
10818 if test -z "$aix_libpath"; then
10819 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10820 fi
10821 fi
10822 rm -f core conftest.err conftest.$ac_objext \
10823 conftest$ac_exeext conftest.$ac_ext
10824 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10825
10826 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10827 # Warning - without using the other run time loading flags,
10828 # -berok will link without error, but may produce a broken library.
10829 no_undefined_flag=' ${wl}-bernotok'
10830 allow_undefined_flag=' ${wl}-berok'
10831 if test "$with_gnu_ld" = yes; then
10832 # We only use this code for GNU lds that support --whole-archive.
10833 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10834 else
10835 # Exported symbols can be pulled into shared objects from archives
10836 whole_archive_flag_spec='$convenience'
10837 fi
10838 archive_cmds_need_lc=yes
10839 # This is similar to how AIX traditionally builds its shared libraries.
10840 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'
10841 fi
10842 fi
10843 ;;
10844
10845 amigaos*)
10846 case $host_cpu in
10847 powerpc)
10848 # see comment about AmigaOS4 .so support
10849 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10850 archive_expsym_cmds=''
10851 ;;
10852 m68k)
10853 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)'
10854 hardcode_libdir_flag_spec='-L$libdir'
10855 hardcode_minus_L=yes
10856 ;;
10857 esac
10858 ;;
10859
10860 bsdi[45]*)
10861 export_dynamic_flag_spec=-rdynamic
10862 ;;
10863
10864 cygwin* | mingw* | pw32* | cegcc*)
10865 # When not using gcc, we currently assume that we are using
10866 # Microsoft Visual C++.
10867 # hardcode_libdir_flag_spec is actually meaningless, as there is
10868 # no search path for DLLs.
10869 hardcode_libdir_flag_spec=' '
10870 allow_undefined_flag=unsupported
10871 # Tell ltmain to make .lib files, not .a files.
10872 libext=lib
10873 # Tell ltmain to make .dll files, not .so files.
10874 shrext_cmds=".dll"
10875 # FIXME: Setting linknames here is a bad hack.
10876 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10877 # The linker will automatically build a .lib file if we build a DLL.
10878 old_archive_from_new_cmds='true'
10879 # FIXME: Should let the user specify the lib program.
10880 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10881 fix_srcfile_path='`cygpath -w "$srcfile"`'
10882 enable_shared_with_static_runtimes=yes
10883 ;;
10884
10885 darwin* | rhapsody*)
10886
10887
10888 archive_cmds_need_lc=no
10889 hardcode_direct=no
10890 hardcode_automatic=yes
10891 hardcode_shlibpath_var=unsupported
10892 if test "$lt_cv_ld_force_load" = "yes"; then
10893 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\"`'
10894 else
10895 whole_archive_flag_spec=''
10896 fi
10897 link_all_deplibs=yes
10898 allow_undefined_flag="$_lt_dar_allow_undefined"
10899 case $cc_basename in
10900 ifort*) _lt_dar_can_shared=yes ;;
10901 *) _lt_dar_can_shared=$GCC ;;
10902 esac
10903 if test "$_lt_dar_can_shared" = "yes"; then
10904 output_verbose_link_cmd=func_echo_all
10905 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10906 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10907 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}"
10908 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}"
10909
10910 else
10911 ld_shlibs=no
10912 fi
10913
10914 ;;
10915
10916 dgux*)
10917 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10918 hardcode_libdir_flag_spec='-L$libdir'
10919 hardcode_shlibpath_var=no
10920 ;;
10921
10922 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10923 # support. Future versions do this automatically, but an explicit c++rt0.o
10924 # does not break anything, and helps significantly (at the cost of a little
10925 # extra space).
10926 freebsd2.2*)
10927 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10928 hardcode_libdir_flag_spec='-R$libdir'
10929 hardcode_direct=yes
10930 hardcode_shlibpath_var=no
10931 ;;
10932
10933 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10934 freebsd2.*)
10935 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10936 hardcode_direct=yes
10937 hardcode_minus_L=yes
10938 hardcode_shlibpath_var=no
10939 ;;
10940
10941 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10942 freebsd* | dragonfly*)
10943 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10944 hardcode_libdir_flag_spec='-R$libdir'
10945 hardcode_direct=yes
10946 hardcode_shlibpath_var=no
10947 ;;
10948
10949 hpux9*)
10950 if test "$GCC" = yes; then
10951 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'
10952 else
10953 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'
10954 fi
10955 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10956 hardcode_libdir_separator=:
10957 hardcode_direct=yes
10958
10959 # hardcode_minus_L: Not really in the search PATH,
10960 # but as the default location of the library.
10961 hardcode_minus_L=yes
10962 export_dynamic_flag_spec='${wl}-E'
10963 ;;
10964
10965 hpux10*)
10966 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10967 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10968 else
10969 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10970 fi
10971 if test "$with_gnu_ld" = no; then
10972 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10973 hardcode_libdir_flag_spec_ld='+b $libdir'
10974 hardcode_libdir_separator=:
10975 hardcode_direct=yes
10976 hardcode_direct_absolute=yes
10977 export_dynamic_flag_spec='${wl}-E'
10978 # hardcode_minus_L: Not really in the search PATH,
10979 # but as the default location of the library.
10980 hardcode_minus_L=yes
10981 fi
10982 ;;
10983
10984 hpux11*)
10985 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10986 case $host_cpu in
10987 hppa*64*)
10988 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10989 ;;
10990 ia64*)
10991 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10992 ;;
10993 *)
10994 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10995 ;;
10996 esac
10997 else
10998 case $host_cpu in
10999 hppa*64*)
11000 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11001 ;;
11002 ia64*)
11003 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11004 ;;
11005 *)
11006
11007 # Older versions of the 11.00 compiler do not understand -b yet
11008 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11010 $as_echo_n "checking if $CC understands -b... " >&6; }
11011 if ${lt_cv_prog_compiler__b+:} false; then :
11012 $as_echo_n "(cached) " >&6
11013 else
11014 lt_cv_prog_compiler__b=no
11015 save_LDFLAGS="$LDFLAGS"
11016 LDFLAGS="$LDFLAGS -b"
11017 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11018 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11019 # The linker can only warn and ignore the option if not recognized
11020 # So say no if there are warnings
11021 if test -s conftest.err; then
11022 # Append any errors to the config.log.
11023 cat conftest.err 1>&5
11024 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11025 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11026 if diff conftest.exp conftest.er2 >/dev/null; then
11027 lt_cv_prog_compiler__b=yes
11028 fi
11029 else
11030 lt_cv_prog_compiler__b=yes
11031 fi
11032 fi
11033 $RM -r conftest*
11034 LDFLAGS="$save_LDFLAGS"
11035
11036 fi
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11038 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11039
11040 if test x"$lt_cv_prog_compiler__b" = xyes; then
11041 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11042 else
11043 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11044 fi
11045
11046 ;;
11047 esac
11048 fi
11049 if test "$with_gnu_ld" = no; then
11050 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11051 hardcode_libdir_separator=:
11052
11053 case $host_cpu in
11054 hppa*64*|ia64*)
11055 hardcode_direct=no
11056 hardcode_shlibpath_var=no
11057 ;;
11058 *)
11059 hardcode_direct=yes
11060 hardcode_direct_absolute=yes
11061 export_dynamic_flag_spec='${wl}-E'
11062
11063 # hardcode_minus_L: Not really in the search PATH,
11064 # but as the default location of the library.
11065 hardcode_minus_L=yes
11066 ;;
11067 esac
11068 fi
11069 ;;
11070
11071 irix5* | irix6* | nonstopux*)
11072 if test "$GCC" = yes; then
11073 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'
11074 # Try to use the -exported_symbol ld option, if it does not
11075 # work, assume that -exports_file does not work either and
11076 # implicitly export all symbols.
11077 save_LDFLAGS="$LDFLAGS"
11078 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11079 if test x$gcc_no_link = xyes; then
11080 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11081 fi
11082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11083 /* end confdefs.h. */
11084 int foo(void) {}
11085 _ACEOF
11086 if ac_fn_c_try_link "$LINENO"; then :
11087 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'
11088
11089 fi
11090 rm -f core conftest.err conftest.$ac_objext \
11091 conftest$ac_exeext conftest.$ac_ext
11092 LDFLAGS="$save_LDFLAGS"
11093 else
11094 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'
11095 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'
11096 fi
11097 archive_cmds_need_lc='no'
11098 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11099 hardcode_libdir_separator=:
11100 inherit_rpath=yes
11101 link_all_deplibs=yes
11102 ;;
11103
11104 netbsd*)
11105 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11106 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11107 else
11108 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11109 fi
11110 hardcode_libdir_flag_spec='-R$libdir'
11111 hardcode_direct=yes
11112 hardcode_shlibpath_var=no
11113 ;;
11114
11115 newsos6)
11116 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11117 hardcode_direct=yes
11118 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11119 hardcode_libdir_separator=:
11120 hardcode_shlibpath_var=no
11121 ;;
11122
11123 *nto* | *qnx*)
11124 ;;
11125
11126 openbsd*)
11127 if test -f /usr/libexec/ld.so; then
11128 hardcode_direct=yes
11129 hardcode_shlibpath_var=no
11130 hardcode_direct_absolute=yes
11131 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11132 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11133 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11134 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11135 export_dynamic_flag_spec='${wl}-E'
11136 else
11137 case $host_os in
11138 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11139 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11140 hardcode_libdir_flag_spec='-R$libdir'
11141 ;;
11142 *)
11143 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11144 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11145 ;;
11146 esac
11147 fi
11148 else
11149 ld_shlibs=no
11150 fi
11151 ;;
11152
11153 os2*)
11154 hardcode_libdir_flag_spec='-L$libdir'
11155 hardcode_minus_L=yes
11156 allow_undefined_flag=unsupported
11157 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'
11158 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11159 ;;
11160
11161 osf3*)
11162 if test "$GCC" = yes; then
11163 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11164 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'
11165 else
11166 allow_undefined_flag=' -expect_unresolved \*'
11167 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'
11168 fi
11169 archive_cmds_need_lc='no'
11170 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11171 hardcode_libdir_separator=:
11172 ;;
11173
11174 osf4* | osf5*) # as osf3* with the addition of -msym flag
11175 if test "$GCC" = yes; then
11176 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11177 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'
11178 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11179 else
11180 allow_undefined_flag=' -expect_unresolved \*'
11181 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'
11182 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~
11183 $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'
11184
11185 # Both c and cxx compiler support -rpath directly
11186 hardcode_libdir_flag_spec='-rpath $libdir'
11187 fi
11188 archive_cmds_need_lc='no'
11189 hardcode_libdir_separator=:
11190 ;;
11191
11192 solaris*)
11193 no_undefined_flag=' -z defs'
11194 if test "$GCC" = yes; then
11195 wlarc='${wl}'
11196 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11197 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11198 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11199 else
11200 case `$CC -V 2>&1` in
11201 *"Compilers 5.0"*)
11202 wlarc=''
11203 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11204 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11205 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11206 ;;
11207 *)
11208 wlarc='${wl}'
11209 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11210 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11211 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11212 ;;
11213 esac
11214 fi
11215 hardcode_libdir_flag_spec='-R$libdir'
11216 hardcode_shlibpath_var=no
11217 case $host_os in
11218 solaris2.[0-5] | solaris2.[0-5].*) ;;
11219 *)
11220 # The compiler driver will combine and reorder linker options,
11221 # but understands `-z linker_flag'. GCC discards it without `$wl',
11222 # but is careful enough not to reorder.
11223 # Supported since Solaris 2.6 (maybe 2.5.1?)
11224 if test "$GCC" = yes; then
11225 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11226 else
11227 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11228 fi
11229 ;;
11230 esac
11231 link_all_deplibs=yes
11232 ;;
11233
11234 sunos4*)
11235 if test "x$host_vendor" = xsequent; then
11236 # Use $CC to link under sequent, because it throws in some extra .o
11237 # files that make .init and .fini sections work.
11238 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11239 else
11240 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11241 fi
11242 hardcode_libdir_flag_spec='-L$libdir'
11243 hardcode_direct=yes
11244 hardcode_minus_L=yes
11245 hardcode_shlibpath_var=no
11246 ;;
11247
11248 sysv4)
11249 case $host_vendor in
11250 sni)
11251 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11252 hardcode_direct=yes # is this really true???
11253 ;;
11254 siemens)
11255 ## LD is ld it makes a PLAMLIB
11256 ## CC just makes a GrossModule.
11257 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11258 reload_cmds='$CC -r -o $output$reload_objs'
11259 hardcode_direct=no
11260 ;;
11261 motorola)
11262 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11263 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11264 ;;
11265 esac
11266 runpath_var='LD_RUN_PATH'
11267 hardcode_shlibpath_var=no
11268 ;;
11269
11270 sysv4.3*)
11271 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11272 hardcode_shlibpath_var=no
11273 export_dynamic_flag_spec='-Bexport'
11274 ;;
11275
11276 sysv4*MP*)
11277 if test -d /usr/nec; then
11278 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11279 hardcode_shlibpath_var=no
11280 runpath_var=LD_RUN_PATH
11281 hardcode_runpath_var=yes
11282 ld_shlibs=yes
11283 fi
11284 ;;
11285
11286 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11287 no_undefined_flag='${wl}-z,text'
11288 archive_cmds_need_lc=no
11289 hardcode_shlibpath_var=no
11290 runpath_var='LD_RUN_PATH'
11291
11292 if test "$GCC" = yes; then
11293 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11294 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11295 else
11296 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11297 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11298 fi
11299 ;;
11300
11301 sysv5* | sco3.2v5* | sco5v6*)
11302 # Note: We can NOT use -z defs as we might desire, because we do not
11303 # link with -lc, and that would cause any symbols used from libc to
11304 # always be unresolved, which means just about no library would
11305 # ever link correctly. If we're not using GNU ld we use -z text
11306 # though, which does catch some bad symbols but isn't as heavy-handed
11307 # as -z defs.
11308 no_undefined_flag='${wl}-z,text'
11309 allow_undefined_flag='${wl}-z,nodefs'
11310 archive_cmds_need_lc=no
11311 hardcode_shlibpath_var=no
11312 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11313 hardcode_libdir_separator=':'
11314 link_all_deplibs=yes
11315 export_dynamic_flag_spec='${wl}-Bexport'
11316 runpath_var='LD_RUN_PATH'
11317
11318 if test "$GCC" = yes; then
11319 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11320 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11321 else
11322 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11323 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11324 fi
11325 ;;
11326
11327 uts4*)
11328 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11329 hardcode_libdir_flag_spec='-L$libdir'
11330 hardcode_shlibpath_var=no
11331 ;;
11332
11333 *)
11334 ld_shlibs=no
11335 ;;
11336 esac
11337
11338 if test x$host_vendor = xsni; then
11339 case $host in
11340 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11341 export_dynamic_flag_spec='${wl}-Blargedynsym'
11342 ;;
11343 esac
11344 fi
11345 fi
11346
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11348 $as_echo "$ld_shlibs" >&6; }
11349 test "$ld_shlibs" = no && can_build_shared=no
11350
11351 with_gnu_ld=$with_gnu_ld
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367 #
11368 # Do we need to explicitly link libc?
11369 #
11370 case "x$archive_cmds_need_lc" in
11371 x|xyes)
11372 # Assume -lc should be added
11373 archive_cmds_need_lc=yes
11374
11375 if test "$enable_shared" = yes && test "$GCC" = yes; then
11376 case $archive_cmds in
11377 *'~'*)
11378 # FIXME: we may have to deal with multi-command sequences.
11379 ;;
11380 '$CC '*)
11381 # Test whether the compiler implicitly links with -lc since on some
11382 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11383 # to ld, don't add -lc before -lgcc.
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11385 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11386 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11387 $as_echo_n "(cached) " >&6
11388 else
11389 $RM conftest*
11390 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11391
11392 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11393 (eval $ac_compile) 2>&5
11394 ac_status=$?
11395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11396 test $ac_status = 0; } 2>conftest.err; then
11397 soname=conftest
11398 lib=conftest
11399 libobjs=conftest.$ac_objext
11400 deplibs=
11401 wl=$lt_prog_compiler_wl
11402 pic_flag=$lt_prog_compiler_pic
11403 compiler_flags=-v
11404 linker_flags=-v
11405 verstring=
11406 output_objdir=.
11407 libname=conftest
11408 lt_save_allow_undefined_flag=$allow_undefined_flag
11409 allow_undefined_flag=
11410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11411 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11412 ac_status=$?
11413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11414 test $ac_status = 0; }
11415 then
11416 lt_cv_archive_cmds_need_lc=no
11417 else
11418 lt_cv_archive_cmds_need_lc=yes
11419 fi
11420 allow_undefined_flag=$lt_save_allow_undefined_flag
11421 else
11422 cat conftest.err 1>&5
11423 fi
11424 $RM conftest*
11425
11426 fi
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11428 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11429 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11430 ;;
11431 esac
11432 fi
11433 ;;
11434 esac
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11593 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11594
11595 if test "$GCC" = yes; then
11596 case $host_os in
11597 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11598 *) lt_awk_arg="/^libraries:/" ;;
11599 esac
11600 case $host_os in
11601 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11602 *) lt_sed_strip_eq="s,=/,/,g" ;;
11603 esac
11604 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11605 case $lt_search_path_spec in
11606 *\;*)
11607 # if the path contains ";" then we assume it to be the separator
11608 # otherwise default to the standard path separator (i.e. ":") - it is
11609 # assumed that no part of a normal pathname contains ";" but that should
11610 # okay in the real world where ";" in dirpaths is itself problematic.
11611 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11612 ;;
11613 *)
11614 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11615 ;;
11616 esac
11617 # Ok, now we have the path, separated by spaces, we can step through it
11618 # and add multilib dir if necessary.
11619 lt_tmp_lt_search_path_spec=
11620 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11621 for lt_sys_path in $lt_search_path_spec; do
11622 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11623 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11624 else
11625 test -d "$lt_sys_path" && \
11626 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11627 fi
11628 done
11629 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11630 BEGIN {RS=" "; FS="/|\n";} {
11631 lt_foo="";
11632 lt_count=0;
11633 for (lt_i = NF; lt_i > 0; lt_i--) {
11634 if ($lt_i != "" && $lt_i != ".") {
11635 if ($lt_i == "..") {
11636 lt_count++;
11637 } else {
11638 if (lt_count == 0) {
11639 lt_foo="/" $lt_i lt_foo;
11640 } else {
11641 lt_count--;
11642 }
11643 }
11644 }
11645 }
11646 if (lt_foo != "") { lt_freq[lt_foo]++; }
11647 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11648 }'`
11649 # AWK program above erroneously prepends '/' to C:/dos/paths
11650 # for these hosts.
11651 case $host_os in
11652 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11653 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11654 esac
11655 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11656 else
11657 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11658 fi
11659 library_names_spec=
11660 libname_spec='lib$name'
11661 soname_spec=
11662 shrext_cmds=".so"
11663 postinstall_cmds=
11664 postuninstall_cmds=
11665 finish_cmds=
11666 finish_eval=
11667 shlibpath_var=
11668 shlibpath_overrides_runpath=unknown
11669 version_type=none
11670 dynamic_linker="$host_os ld.so"
11671 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11672 need_lib_prefix=unknown
11673 hardcode_into_libs=no
11674
11675 # when you set need_version to no, make sure it does not cause -set_version
11676 # flags to be left without arguments
11677 need_version=unknown
11678
11679 case $host_os in
11680 aix3*)
11681 version_type=linux
11682 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11683 shlibpath_var=LIBPATH
11684
11685 # AIX 3 has no versioning support, so we append a major version to the name.
11686 soname_spec='${libname}${release}${shared_ext}$major'
11687 ;;
11688
11689 aix[4-9]*)
11690 version_type=linux
11691 need_lib_prefix=no
11692 need_version=no
11693 hardcode_into_libs=yes
11694 if test "$host_cpu" = ia64; then
11695 # AIX 5 supports IA64
11696 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11697 shlibpath_var=LD_LIBRARY_PATH
11698 else
11699 # With GCC up to 2.95.x, collect2 would create an import file
11700 # for dependence libraries. The import file would start with
11701 # the line `#! .'. This would cause the generated library to
11702 # depend on `.', always an invalid library. This was fixed in
11703 # development snapshots of GCC prior to 3.0.
11704 case $host_os in
11705 aix4 | aix4.[01] | aix4.[01].*)
11706 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11707 echo ' yes '
11708 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11709 :
11710 else
11711 can_build_shared=no
11712 fi
11713 ;;
11714 esac
11715 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11716 # soname into executable. Probably we can add versioning support to
11717 # collect2, so additional links can be useful in future.
11718 if test "$aix_use_runtimelinking" = yes; then
11719 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11720 # instead of lib<name>.a to let people know that these are not
11721 # typical AIX shared libraries.
11722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11723 else
11724 # We preserve .a as extension for shared libraries through AIX4.2
11725 # and later when we are not doing run time linking.
11726 library_names_spec='${libname}${release}.a $libname.a'
11727 soname_spec='${libname}${release}${shared_ext}$major'
11728 fi
11729 shlibpath_var=LIBPATH
11730 fi
11731 ;;
11732
11733 amigaos*)
11734 case $host_cpu in
11735 powerpc)
11736 # Since July 2007 AmigaOS4 officially supports .so libraries.
11737 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11739 ;;
11740 m68k)
11741 library_names_spec='$libname.ixlibrary $libname.a'
11742 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11743 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'
11744 ;;
11745 esac
11746 ;;
11747
11748 beos*)
11749 library_names_spec='${libname}${shared_ext}'
11750 dynamic_linker="$host_os ld.so"
11751 shlibpath_var=LIBRARY_PATH
11752 ;;
11753
11754 bsdi[45]*)
11755 version_type=linux
11756 need_version=no
11757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11758 soname_spec='${libname}${release}${shared_ext}$major'
11759 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11760 shlibpath_var=LD_LIBRARY_PATH
11761 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11762 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11763 # the default ld.so.conf also contains /usr/contrib/lib and
11764 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11765 # libtool to hard-code these into programs
11766 ;;
11767
11768 cygwin* | mingw* | pw32* | cegcc*)
11769 version_type=windows
11770 shrext_cmds=".dll"
11771 need_version=no
11772 need_lib_prefix=no
11773
11774 case $GCC,$host_os in
11775 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11776 library_names_spec='$libname.dll.a'
11777 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11778 postinstall_cmds='base_file=`basename \${file}`~
11779 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11780 dldir=$destdir/`dirname \$dlpath`~
11781 test -d \$dldir || mkdir -p \$dldir~
11782 $install_prog $dir/$dlname \$dldir/$dlname~
11783 chmod a+x \$dldir/$dlname~
11784 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11785 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11786 fi'
11787 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11788 dlpath=$dir/\$dldll~
11789 $RM \$dlpath'
11790 shlibpath_overrides_runpath=yes
11791
11792 case $host_os in
11793 cygwin*)
11794 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11795 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11796
11797 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11798 ;;
11799 mingw* | cegcc*)
11800 # MinGW DLLs use traditional 'lib' prefix
11801 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11802 ;;
11803 pw32*)
11804 # pw32 DLLs use 'pw' prefix rather than 'lib'
11805 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11806 ;;
11807 esac
11808 ;;
11809
11810 *)
11811 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11812 ;;
11813 esac
11814 dynamic_linker='Win32 ld.exe'
11815 # FIXME: first we should search . and the directory the executable is in
11816 shlibpath_var=PATH
11817 ;;
11818
11819 darwin* | rhapsody*)
11820 dynamic_linker="$host_os dyld"
11821 version_type=darwin
11822 need_lib_prefix=no
11823 need_version=no
11824 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11825 soname_spec='${libname}${release}${major}$shared_ext'
11826 shlibpath_overrides_runpath=yes
11827 shlibpath_var=DYLD_LIBRARY_PATH
11828 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11829
11830 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11831 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11832 ;;
11833
11834 dgux*)
11835 version_type=linux
11836 need_lib_prefix=no
11837 need_version=no
11838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11839 soname_spec='${libname}${release}${shared_ext}$major'
11840 shlibpath_var=LD_LIBRARY_PATH
11841 ;;
11842
11843 freebsd* | dragonfly*)
11844 # DragonFly does not have aout. When/if they implement a new
11845 # versioning mechanism, adjust this.
11846 if test -x /usr/bin/objformat; then
11847 objformat=`/usr/bin/objformat`
11848 else
11849 case $host_os in
11850 freebsd[23].*) objformat=aout ;;
11851 *) objformat=elf ;;
11852 esac
11853 fi
11854 version_type=freebsd-$objformat
11855 case $version_type in
11856 freebsd-elf*)
11857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11858 need_version=no
11859 need_lib_prefix=no
11860 ;;
11861 freebsd-*)
11862 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11863 need_version=yes
11864 ;;
11865 esac
11866 shlibpath_var=LD_LIBRARY_PATH
11867 case $host_os in
11868 freebsd2.*)
11869 shlibpath_overrides_runpath=yes
11870 ;;
11871 freebsd3.[01]* | freebsdelf3.[01]*)
11872 shlibpath_overrides_runpath=yes
11873 hardcode_into_libs=yes
11874 ;;
11875 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11876 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11877 shlibpath_overrides_runpath=no
11878 hardcode_into_libs=yes
11879 ;;
11880 *) # from 4.6 on, and DragonFly
11881 shlibpath_overrides_runpath=yes
11882 hardcode_into_libs=yes
11883 ;;
11884 esac
11885 ;;
11886
11887 gnu*)
11888 version_type=linux
11889 need_lib_prefix=no
11890 need_version=no
11891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11892 soname_spec='${libname}${release}${shared_ext}$major'
11893 shlibpath_var=LD_LIBRARY_PATH
11894 hardcode_into_libs=yes
11895 ;;
11896
11897 haiku*)
11898 version_type=linux
11899 need_lib_prefix=no
11900 need_version=no
11901 dynamic_linker="$host_os runtime_loader"
11902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11903 soname_spec='${libname}${release}${shared_ext}$major'
11904 shlibpath_var=LIBRARY_PATH
11905 shlibpath_overrides_runpath=yes
11906 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11907 hardcode_into_libs=yes
11908 ;;
11909
11910 hpux9* | hpux10* | hpux11*)
11911 # Give a soname corresponding to the major version so that dld.sl refuses to
11912 # link against other versions.
11913 version_type=sunos
11914 need_lib_prefix=no
11915 need_version=no
11916 case $host_cpu in
11917 ia64*)
11918 shrext_cmds='.so'
11919 hardcode_into_libs=yes
11920 dynamic_linker="$host_os dld.so"
11921 shlibpath_var=LD_LIBRARY_PATH
11922 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11924 soname_spec='${libname}${release}${shared_ext}$major'
11925 if test "X$HPUX_IA64_MODE" = X32; then
11926 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11927 else
11928 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11929 fi
11930 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11931 ;;
11932 hppa*64*)
11933 shrext_cmds='.sl'
11934 hardcode_into_libs=yes
11935 dynamic_linker="$host_os dld.sl"
11936 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11937 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11939 soname_spec='${libname}${release}${shared_ext}$major'
11940 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11941 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11942 ;;
11943 *)
11944 shrext_cmds='.sl'
11945 dynamic_linker="$host_os dld.sl"
11946 shlibpath_var=SHLIB_PATH
11947 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11949 soname_spec='${libname}${release}${shared_ext}$major'
11950 ;;
11951 esac
11952 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11953 postinstall_cmds='chmod 555 $lib'
11954 # or fails outright, so override atomically:
11955 install_override_mode=555
11956 ;;
11957
11958 interix[3-9]*)
11959 version_type=linux
11960 need_lib_prefix=no
11961 need_version=no
11962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11963 soname_spec='${libname}${release}${shared_ext}$major'
11964 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11965 shlibpath_var=LD_LIBRARY_PATH
11966 shlibpath_overrides_runpath=no
11967 hardcode_into_libs=yes
11968 ;;
11969
11970 irix5* | irix6* | nonstopux*)
11971 case $host_os in
11972 nonstopux*) version_type=nonstopux ;;
11973 *)
11974 if test "$lt_cv_prog_gnu_ld" = yes; then
11975 version_type=linux
11976 else
11977 version_type=irix
11978 fi ;;
11979 esac
11980 need_lib_prefix=no
11981 need_version=no
11982 soname_spec='${libname}${release}${shared_ext}$major'
11983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11984 case $host_os in
11985 irix5* | nonstopux*)
11986 libsuff= shlibsuff=
11987 ;;
11988 *)
11989 case $LD in # libtool.m4 will add one of these switches to LD
11990 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11991 libsuff= shlibsuff= libmagic=32-bit;;
11992 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11993 libsuff=32 shlibsuff=N32 libmagic=N32;;
11994 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11995 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11996 *) libsuff= shlibsuff= libmagic=never-match;;
11997 esac
11998 ;;
11999 esac
12000 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12001 shlibpath_overrides_runpath=no
12002 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12003 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12004 hardcode_into_libs=yes
12005 ;;
12006
12007 # No shared lib support for Linux oldld, aout, or coff.
12008 linux*oldld* | linux*aout* | linux*coff*)
12009 dynamic_linker=no
12010 ;;
12011
12012 # This must be Linux ELF.
12013
12014 # uclinux* changes (here and below) have been submitted to the libtool
12015 # project, but have not yet been accepted: they are GCC-local changes
12016 # for the time being. (See
12017 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
12018 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
12019 version_type=linux
12020 need_lib_prefix=no
12021 need_version=no
12022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12023 soname_spec='${libname}${release}${shared_ext}$major'
12024 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12025 shlibpath_var=LD_LIBRARY_PATH
12026 shlibpath_overrides_runpath=no
12027
12028 # Some binutils ld are patched to set DT_RUNPATH
12029 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12030 $as_echo_n "(cached) " >&6
12031 else
12032 lt_cv_shlibpath_overrides_runpath=no
12033 save_LDFLAGS=$LDFLAGS
12034 save_libdir=$libdir
12035 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12036 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12037 if test x$gcc_no_link = xyes; then
12038 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12039 fi
12040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12041 /* end confdefs.h. */
12042
12043 int
12044 main ()
12045 {
12046
12047 ;
12048 return 0;
12049 }
12050 _ACEOF
12051 if ac_fn_c_try_link "$LINENO"; then :
12052 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12053 lt_cv_shlibpath_overrides_runpath=yes
12054 fi
12055 fi
12056 rm -f core conftest.err conftest.$ac_objext \
12057 conftest$ac_exeext conftest.$ac_ext
12058 LDFLAGS=$save_LDFLAGS
12059 libdir=$save_libdir
12060
12061 fi
12062
12063 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12064
12065 # This implies no fast_install, which is unacceptable.
12066 # Some rework will be needed to allow for fast_install
12067 # before this can be enabled.
12068 hardcode_into_libs=yes
12069
12070 # Append ld.so.conf contents to the search path
12071 if test -f /etc/ld.so.conf; then
12072 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' ' '`
12073 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12074 fi
12075
12076 # We used to test for /lib/ld.so.1 and disable shared libraries on
12077 # powerpc, because MkLinux only supported shared libraries with the
12078 # GNU dynamic linker. Since this was broken with cross compilers,
12079 # most powerpc-linux boxes support dynamic linking these days and
12080 # people can always --disable-shared, the test was removed, and we
12081 # assume the GNU/Linux dynamic linker is in use.
12082 dynamic_linker='GNU/Linux ld.so'
12083 ;;
12084
12085 netbsd*)
12086 version_type=sunos
12087 need_lib_prefix=no
12088 need_version=no
12089 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12091 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12092 dynamic_linker='NetBSD (a.out) ld.so'
12093 else
12094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12095 soname_spec='${libname}${release}${shared_ext}$major'
12096 dynamic_linker='NetBSD ld.elf_so'
12097 fi
12098 shlibpath_var=LD_LIBRARY_PATH
12099 shlibpath_overrides_runpath=yes
12100 hardcode_into_libs=yes
12101 ;;
12102
12103 newsos6)
12104 version_type=linux
12105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12106 shlibpath_var=LD_LIBRARY_PATH
12107 shlibpath_overrides_runpath=yes
12108 ;;
12109
12110 *nto* | *qnx*)
12111 version_type=qnx
12112 need_lib_prefix=no
12113 need_version=no
12114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12115 soname_spec='${libname}${release}${shared_ext}$major'
12116 shlibpath_var=LD_LIBRARY_PATH
12117 shlibpath_overrides_runpath=no
12118 hardcode_into_libs=yes
12119 dynamic_linker='ldqnx.so'
12120 ;;
12121
12122 openbsd*)
12123 version_type=sunos
12124 sys_lib_dlsearch_path_spec="/usr/lib"
12125 need_lib_prefix=no
12126 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12127 case $host_os in
12128 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12129 *) need_version=no ;;
12130 esac
12131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12132 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12133 shlibpath_var=LD_LIBRARY_PATH
12134 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12135 case $host_os in
12136 openbsd2.[89] | openbsd2.[89].*)
12137 shlibpath_overrides_runpath=no
12138 ;;
12139 *)
12140 shlibpath_overrides_runpath=yes
12141 ;;
12142 esac
12143 else
12144 shlibpath_overrides_runpath=yes
12145 fi
12146 ;;
12147
12148 os2*)
12149 libname_spec='$name'
12150 shrext_cmds=".dll"
12151 need_lib_prefix=no
12152 library_names_spec='$libname${shared_ext} $libname.a'
12153 dynamic_linker='OS/2 ld.exe'
12154 shlibpath_var=LIBPATH
12155 ;;
12156
12157 osf3* | osf4* | osf5*)
12158 version_type=osf
12159 need_lib_prefix=no
12160 need_version=no
12161 soname_spec='${libname}${release}${shared_ext}$major'
12162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12163 shlibpath_var=LD_LIBRARY_PATH
12164 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12165 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12166 ;;
12167
12168 rdos*)
12169 dynamic_linker=no
12170 ;;
12171
12172 solaris*)
12173 version_type=linux
12174 need_lib_prefix=no
12175 need_version=no
12176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12177 soname_spec='${libname}${release}${shared_ext}$major'
12178 shlibpath_var=LD_LIBRARY_PATH
12179 shlibpath_overrides_runpath=yes
12180 hardcode_into_libs=yes
12181 # ldd complains unless libraries are executable
12182 postinstall_cmds='chmod +x $lib'
12183 ;;
12184
12185 sunos4*)
12186 version_type=sunos
12187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12188 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12189 shlibpath_var=LD_LIBRARY_PATH
12190 shlibpath_overrides_runpath=yes
12191 if test "$with_gnu_ld" = yes; then
12192 need_lib_prefix=no
12193 fi
12194 need_version=yes
12195 ;;
12196
12197 sysv4 | sysv4.3*)
12198 version_type=linux
12199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12200 soname_spec='${libname}${release}${shared_ext}$major'
12201 shlibpath_var=LD_LIBRARY_PATH
12202 case $host_vendor in
12203 sni)
12204 shlibpath_overrides_runpath=no
12205 need_lib_prefix=no
12206 runpath_var=LD_RUN_PATH
12207 ;;
12208 siemens)
12209 need_lib_prefix=no
12210 ;;
12211 motorola)
12212 need_lib_prefix=no
12213 need_version=no
12214 shlibpath_overrides_runpath=no
12215 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12216 ;;
12217 esac
12218 ;;
12219
12220 sysv4*MP*)
12221 if test -d /usr/nec ;then
12222 version_type=linux
12223 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12224 soname_spec='$libname${shared_ext}.$major'
12225 shlibpath_var=LD_LIBRARY_PATH
12226 fi
12227 ;;
12228
12229 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12230 version_type=freebsd-elf
12231 need_lib_prefix=no
12232 need_version=no
12233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12234 soname_spec='${libname}${release}${shared_ext}$major'
12235 shlibpath_var=LD_LIBRARY_PATH
12236 shlibpath_overrides_runpath=yes
12237 hardcode_into_libs=yes
12238 if test "$with_gnu_ld" = yes; then
12239 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12240 else
12241 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12242 case $host_os in
12243 sco3.2v5*)
12244 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12245 ;;
12246 esac
12247 fi
12248 sys_lib_dlsearch_path_spec='/usr/lib'
12249 ;;
12250
12251 tpf*)
12252 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12253 version_type=linux
12254 need_lib_prefix=no
12255 need_version=no
12256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12257 shlibpath_var=LD_LIBRARY_PATH
12258 shlibpath_overrides_runpath=no
12259 hardcode_into_libs=yes
12260 ;;
12261
12262 uts4*)
12263 version_type=linux
12264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12265 soname_spec='${libname}${release}${shared_ext}$major'
12266 shlibpath_var=LD_LIBRARY_PATH
12267 ;;
12268
12269 *)
12270 dynamic_linker=no
12271 ;;
12272 esac
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12274 $as_echo "$dynamic_linker" >&6; }
12275 test "$dynamic_linker" = no && can_build_shared=no
12276
12277 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12278 if test "$GCC" = yes; then
12279 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12280 fi
12281
12282 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12283 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12284 fi
12285 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12286 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12287 fi
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12381 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12382 hardcode_action=
12383 if test -n "$hardcode_libdir_flag_spec" ||
12384 test -n "$runpath_var" ||
12385 test "X$hardcode_automatic" = "Xyes" ; then
12386
12387 # We can hardcode non-existent directories.
12388 if test "$hardcode_direct" != no &&
12389 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12390 # have to relink, otherwise we might link with an installed library
12391 # when we should be linking with a yet-to-be-installed one
12392 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12393 test "$hardcode_minus_L" != no; then
12394 # Linking always hardcodes the temporary library directory.
12395 hardcode_action=relink
12396 else
12397 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12398 hardcode_action=immediate
12399 fi
12400 else
12401 # We cannot hardcode anything, or else we can only hardcode existing
12402 # directories.
12403 hardcode_action=unsupported
12404 fi
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12406 $as_echo "$hardcode_action" >&6; }
12407
12408 if test "$hardcode_action" = relink ||
12409 test "$inherit_rpath" = yes; then
12410 # Fast installation is not supported
12411 enable_fast_install=no
12412 elif test "$shlibpath_overrides_runpath" = yes ||
12413 test "$enable_shared" = no; then
12414 # Fast installation is not necessary
12415 enable_fast_install=needless
12416 fi
12417
12418
12419
12420
12421
12422
12423 if test "x$enable_dlopen" != xyes; then
12424 enable_dlopen=unknown
12425 enable_dlopen_self=unknown
12426 enable_dlopen_self_static=unknown
12427 else
12428 lt_cv_dlopen=no
12429 lt_cv_dlopen_libs=
12430
12431 case $host_os in
12432 beos*)
12433 lt_cv_dlopen="load_add_on"
12434 lt_cv_dlopen_libs=
12435 lt_cv_dlopen_self=yes
12436 ;;
12437
12438 mingw* | pw32* | cegcc*)
12439 lt_cv_dlopen="LoadLibrary"
12440 lt_cv_dlopen_libs=
12441 ;;
12442
12443 cygwin*)
12444 lt_cv_dlopen="dlopen"
12445 lt_cv_dlopen_libs=
12446 ;;
12447
12448 darwin*)
12449 # if libdl is installed we need to link against it
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12451 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12452 if ${ac_cv_lib_dl_dlopen+:} false; then :
12453 $as_echo_n "(cached) " >&6
12454 else
12455 ac_check_lib_save_LIBS=$LIBS
12456 LIBS="-ldl $LIBS"
12457 if test x$gcc_no_link = xyes; then
12458 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12459 fi
12460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12461 /* end confdefs.h. */
12462
12463 /* Override any GCC internal prototype to avoid an error.
12464 Use char because int might match the return type of a GCC
12465 builtin and then its argument prototype would still apply. */
12466 #ifdef __cplusplus
12467 extern "C"
12468 #endif
12469 char dlopen ();
12470 int
12471 main ()
12472 {
12473 return dlopen ();
12474 ;
12475 return 0;
12476 }
12477 _ACEOF
12478 if ac_fn_c_try_link "$LINENO"; then :
12479 ac_cv_lib_dl_dlopen=yes
12480 else
12481 ac_cv_lib_dl_dlopen=no
12482 fi
12483 rm -f core conftest.err conftest.$ac_objext \
12484 conftest$ac_exeext conftest.$ac_ext
12485 LIBS=$ac_check_lib_save_LIBS
12486 fi
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12488 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12489 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12490 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12491 else
12492
12493 lt_cv_dlopen="dyld"
12494 lt_cv_dlopen_libs=
12495 lt_cv_dlopen_self=yes
12496
12497 fi
12498
12499 ;;
12500
12501 *)
12502 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12503 if test "x$ac_cv_func_shl_load" = xyes; then :
12504 lt_cv_dlopen="shl_load"
12505 else
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12507 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12508 if ${ac_cv_lib_dld_shl_load+:} false; then :
12509 $as_echo_n "(cached) " >&6
12510 else
12511 ac_check_lib_save_LIBS=$LIBS
12512 LIBS="-ldld $LIBS"
12513 if test x$gcc_no_link = xyes; then
12514 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12515 fi
12516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12517 /* end confdefs.h. */
12518
12519 /* Override any GCC internal prototype to avoid an error.
12520 Use char because int might match the return type of a GCC
12521 builtin and then its argument prototype would still apply. */
12522 #ifdef __cplusplus
12523 extern "C"
12524 #endif
12525 char shl_load ();
12526 int
12527 main ()
12528 {
12529 return shl_load ();
12530 ;
12531 return 0;
12532 }
12533 _ACEOF
12534 if ac_fn_c_try_link "$LINENO"; then :
12535 ac_cv_lib_dld_shl_load=yes
12536 else
12537 ac_cv_lib_dld_shl_load=no
12538 fi
12539 rm -f core conftest.err conftest.$ac_objext \
12540 conftest$ac_exeext conftest.$ac_ext
12541 LIBS=$ac_check_lib_save_LIBS
12542 fi
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12544 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12545 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12546 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12547 else
12548 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12549 if test "x$ac_cv_func_dlopen" = xyes; then :
12550 lt_cv_dlopen="dlopen"
12551 else
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12553 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12554 if ${ac_cv_lib_dl_dlopen+:} false; then :
12555 $as_echo_n "(cached) " >&6
12556 else
12557 ac_check_lib_save_LIBS=$LIBS
12558 LIBS="-ldl $LIBS"
12559 if test x$gcc_no_link = xyes; then
12560 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12561 fi
12562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12563 /* end confdefs.h. */
12564
12565 /* Override any GCC internal prototype to avoid an error.
12566 Use char because int might match the return type of a GCC
12567 builtin and then its argument prototype would still apply. */
12568 #ifdef __cplusplus
12569 extern "C"
12570 #endif
12571 char dlopen ();
12572 int
12573 main ()
12574 {
12575 return dlopen ();
12576 ;
12577 return 0;
12578 }
12579 _ACEOF
12580 if ac_fn_c_try_link "$LINENO"; then :
12581 ac_cv_lib_dl_dlopen=yes
12582 else
12583 ac_cv_lib_dl_dlopen=no
12584 fi
12585 rm -f core conftest.err conftest.$ac_objext \
12586 conftest$ac_exeext conftest.$ac_ext
12587 LIBS=$ac_check_lib_save_LIBS
12588 fi
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12590 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12591 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12592 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12593 else
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12595 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12596 if ${ac_cv_lib_svld_dlopen+:} false; then :
12597 $as_echo_n "(cached) " >&6
12598 else
12599 ac_check_lib_save_LIBS=$LIBS
12600 LIBS="-lsvld $LIBS"
12601 if test x$gcc_no_link = xyes; then
12602 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12603 fi
12604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12605 /* end confdefs.h. */
12606
12607 /* Override any GCC internal prototype to avoid an error.
12608 Use char because int might match the return type of a GCC
12609 builtin and then its argument prototype would still apply. */
12610 #ifdef __cplusplus
12611 extern "C"
12612 #endif
12613 char dlopen ();
12614 int
12615 main ()
12616 {
12617 return dlopen ();
12618 ;
12619 return 0;
12620 }
12621 _ACEOF
12622 if ac_fn_c_try_link "$LINENO"; then :
12623 ac_cv_lib_svld_dlopen=yes
12624 else
12625 ac_cv_lib_svld_dlopen=no
12626 fi
12627 rm -f core conftest.err conftest.$ac_objext \
12628 conftest$ac_exeext conftest.$ac_ext
12629 LIBS=$ac_check_lib_save_LIBS
12630 fi
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12632 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12633 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12634 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12635 else
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12637 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12638 if ${ac_cv_lib_dld_dld_link+:} false; then :
12639 $as_echo_n "(cached) " >&6
12640 else
12641 ac_check_lib_save_LIBS=$LIBS
12642 LIBS="-ldld $LIBS"
12643 if test x$gcc_no_link = xyes; then
12644 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12645 fi
12646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12647 /* end confdefs.h. */
12648
12649 /* Override any GCC internal prototype to avoid an error.
12650 Use char because int might match the return type of a GCC
12651 builtin and then its argument prototype would still apply. */
12652 #ifdef __cplusplus
12653 extern "C"
12654 #endif
12655 char dld_link ();
12656 int
12657 main ()
12658 {
12659 return dld_link ();
12660 ;
12661 return 0;
12662 }
12663 _ACEOF
12664 if ac_fn_c_try_link "$LINENO"; then :
12665 ac_cv_lib_dld_dld_link=yes
12666 else
12667 ac_cv_lib_dld_dld_link=no
12668 fi
12669 rm -f core conftest.err conftest.$ac_objext \
12670 conftest$ac_exeext conftest.$ac_ext
12671 LIBS=$ac_check_lib_save_LIBS
12672 fi
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12674 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12675 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12676 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12677 fi
12678
12679
12680 fi
12681
12682
12683 fi
12684
12685
12686 fi
12687
12688
12689 fi
12690
12691
12692 fi
12693
12694 ;;
12695 esac
12696
12697 if test "x$lt_cv_dlopen" != xno; then
12698 enable_dlopen=yes
12699 else
12700 enable_dlopen=no
12701 fi
12702
12703 case $lt_cv_dlopen in
12704 dlopen)
12705 save_CPPFLAGS="$CPPFLAGS"
12706 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12707
12708 save_LDFLAGS="$LDFLAGS"
12709 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12710
12711 save_LIBS="$LIBS"
12712 LIBS="$lt_cv_dlopen_libs $LIBS"
12713
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12715 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12716 if ${lt_cv_dlopen_self+:} false; then :
12717 $as_echo_n "(cached) " >&6
12718 else
12719 if test "$cross_compiling" = yes; then :
12720 lt_cv_dlopen_self=cross
12721 else
12722 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12723 lt_status=$lt_dlunknown
12724 cat > conftest.$ac_ext <<_LT_EOF
12725 #line 12725 "configure"
12726 #include "confdefs.h"
12727
12728 #if HAVE_DLFCN_H
12729 #include <dlfcn.h>
12730 #endif
12731
12732 #include <stdio.h>
12733
12734 #ifdef RTLD_GLOBAL
12735 # define LT_DLGLOBAL RTLD_GLOBAL
12736 #else
12737 # ifdef DL_GLOBAL
12738 # define LT_DLGLOBAL DL_GLOBAL
12739 # else
12740 # define LT_DLGLOBAL 0
12741 # endif
12742 #endif
12743
12744 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12745 find out it does not work in some platform. */
12746 #ifndef LT_DLLAZY_OR_NOW
12747 # ifdef RTLD_LAZY
12748 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12749 # else
12750 # ifdef DL_LAZY
12751 # define LT_DLLAZY_OR_NOW DL_LAZY
12752 # else
12753 # ifdef RTLD_NOW
12754 # define LT_DLLAZY_OR_NOW RTLD_NOW
12755 # else
12756 # ifdef DL_NOW
12757 # define LT_DLLAZY_OR_NOW DL_NOW
12758 # else
12759 # define LT_DLLAZY_OR_NOW 0
12760 # endif
12761 # endif
12762 # endif
12763 # endif
12764 #endif
12765
12766 /* When -fvisbility=hidden is used, assume the code has been annotated
12767 correspondingly for the symbols needed. */
12768 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12769 void fnord () __attribute__((visibility("default")));
12770 #endif
12771
12772 void fnord () { int i=42; }
12773 int main ()
12774 {
12775 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12776 int status = $lt_dlunknown;
12777
12778 if (self)
12779 {
12780 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12781 else
12782 {
12783 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12784 else puts (dlerror ());
12785 }
12786 /* dlclose (self); */
12787 }
12788 else
12789 puts (dlerror ());
12790
12791 return status;
12792 }
12793 _LT_EOF
12794 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12795 (eval $ac_link) 2>&5
12796 ac_status=$?
12797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12798 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12799 (./conftest; exit; ) >&5 2>/dev/null
12800 lt_status=$?
12801 case x$lt_status in
12802 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12803 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12804 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12805 esac
12806 else :
12807 # compilation failed
12808 lt_cv_dlopen_self=no
12809 fi
12810 fi
12811 rm -fr conftest*
12812
12813
12814 fi
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12816 $as_echo "$lt_cv_dlopen_self" >&6; }
12817
12818 if test "x$lt_cv_dlopen_self" = xyes; then
12819 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12821 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12822 if ${lt_cv_dlopen_self_static+:} false; then :
12823 $as_echo_n "(cached) " >&6
12824 else
12825 if test "$cross_compiling" = yes; then :
12826 lt_cv_dlopen_self_static=cross
12827 else
12828 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12829 lt_status=$lt_dlunknown
12830 cat > conftest.$ac_ext <<_LT_EOF
12831 #line 12831 "configure"
12832 #include "confdefs.h"
12833
12834 #if HAVE_DLFCN_H
12835 #include <dlfcn.h>
12836 #endif
12837
12838 #include <stdio.h>
12839
12840 #ifdef RTLD_GLOBAL
12841 # define LT_DLGLOBAL RTLD_GLOBAL
12842 #else
12843 # ifdef DL_GLOBAL
12844 # define LT_DLGLOBAL DL_GLOBAL
12845 # else
12846 # define LT_DLGLOBAL 0
12847 # endif
12848 #endif
12849
12850 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12851 find out it does not work in some platform. */
12852 #ifndef LT_DLLAZY_OR_NOW
12853 # ifdef RTLD_LAZY
12854 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12855 # else
12856 # ifdef DL_LAZY
12857 # define LT_DLLAZY_OR_NOW DL_LAZY
12858 # else
12859 # ifdef RTLD_NOW
12860 # define LT_DLLAZY_OR_NOW RTLD_NOW
12861 # else
12862 # ifdef DL_NOW
12863 # define LT_DLLAZY_OR_NOW DL_NOW
12864 # else
12865 # define LT_DLLAZY_OR_NOW 0
12866 # endif
12867 # endif
12868 # endif
12869 # endif
12870 #endif
12871
12872 /* When -fvisbility=hidden is used, assume the code has been annotated
12873 correspondingly for the symbols needed. */
12874 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12875 void fnord () __attribute__((visibility("default")));
12876 #endif
12877
12878 void fnord () { int i=42; }
12879 int main ()
12880 {
12881 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12882 int status = $lt_dlunknown;
12883
12884 if (self)
12885 {
12886 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12887 else
12888 {
12889 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12890 else puts (dlerror ());
12891 }
12892 /* dlclose (self); */
12893 }
12894 else
12895 puts (dlerror ());
12896
12897 return status;
12898 }
12899 _LT_EOF
12900 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12901 (eval $ac_link) 2>&5
12902 ac_status=$?
12903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12904 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12905 (./conftest; exit; ) >&5 2>/dev/null
12906 lt_status=$?
12907 case x$lt_status in
12908 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12909 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12910 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12911 esac
12912 else :
12913 # compilation failed
12914 lt_cv_dlopen_self_static=no
12915 fi
12916 fi
12917 rm -fr conftest*
12918
12919
12920 fi
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12922 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12923 fi
12924
12925 CPPFLAGS="$save_CPPFLAGS"
12926 LDFLAGS="$save_LDFLAGS"
12927 LIBS="$save_LIBS"
12928 ;;
12929 esac
12930
12931 case $lt_cv_dlopen_self in
12932 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12933 *) enable_dlopen_self=unknown ;;
12934 esac
12935
12936 case $lt_cv_dlopen_self_static in
12937 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12938 *) enable_dlopen_self_static=unknown ;;
12939 esac
12940 fi
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958 striplib=
12959 old_striplib=
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12961 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12962 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12963 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12964 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12966 $as_echo "yes" >&6; }
12967 else
12968 # FIXME - insert some real tests, host_os isn't really good enough
12969 case $host_os in
12970 darwin*)
12971 if test -n "$STRIP" ; then
12972 striplib="$STRIP -x"
12973 old_striplib="$STRIP -S"
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12975 $as_echo "yes" >&6; }
12976 else
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12978 $as_echo "no" >&6; }
12979 fi
12980 ;;
12981 *)
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12983 $as_echo "no" >&6; }
12984 ;;
12985 esac
12986 fi
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999 # Report which library types will actually be built
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13001 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13003 $as_echo "$can_build_shared" >&6; }
13004
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13006 $as_echo_n "checking whether to build shared libraries... " >&6; }
13007 test "$can_build_shared" = "no" && enable_shared=no
13008
13009 # On AIX, shared libraries and static libraries use the same namespace, and
13010 # are all built from PIC.
13011 case $host_os in
13012 aix3*)
13013 test "$enable_shared" = yes && enable_static=no
13014 if test -n "$RANLIB"; then
13015 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13016 postinstall_cmds='$RANLIB $lib'
13017 fi
13018 ;;
13019
13020 aix[4-9]*)
13021 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13022 test "$enable_shared" = yes && enable_static=no
13023 fi
13024 ;;
13025 esac
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13027 $as_echo "$enable_shared" >&6; }
13028
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13030 $as_echo_n "checking whether to build static libraries... " >&6; }
13031 # Make sure either enable_shared or enable_static is yes.
13032 test "$enable_shared" = yes || enable_static=yes
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13034 $as_echo "$enable_static" >&6; }
13035
13036
13037
13038
13039 fi
13040 ac_ext=c
13041 ac_cpp='$CPP $CPPFLAGS'
13042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13045
13046 CC="$lt_save_CC"
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060 ac_config_commands="$ac_config_commands libtool"
13061
13062
13063
13064
13065 # Only expand once:
13066
13067
13068
13069
13070
13071 case $host in
13072 *-cygwin* | *-mingw*)
13073 # 'host' will be top-level target in the case of a target lib,
13074 # we must compare to with_cross_host to decide if this is a native
13075 # or cross-compiler and select where to install dlls appropriately.
13076 if test -n "$with_cross_host" &&
13077 test x"$with_cross_host" != x"no"; then
13078 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
13079 else
13080 lt_host_flags='-no-undefined -bindir "$(bindir)"';
13081 fi
13082 ;;
13083 *)
13084 lt_host_flags=
13085 ;;
13086 esac
13087
13088
13089
13090
13091
13092 #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
13093
13094 # We need gfortran to compile parts of the library
13095 #AC_PROG_FC(gfortran)
13096 FC="$GFORTRAN"
13097 ac_ext=${ac_fc_srcext-f}
13098 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
13099 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
13100 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
13101 if test -n "$ac_tool_prefix"; then
13102 for ac_prog in gfortran
13103 do
13104 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13105 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13107 $as_echo_n "checking for $ac_word... " >&6; }
13108 if ${ac_cv_prog_FC+:} false; then :
13109 $as_echo_n "(cached) " >&6
13110 else
13111 if test -n "$FC"; then
13112 ac_cv_prog_FC="$FC" # Let the user override the test.
13113 else
13114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13115 for as_dir in $PATH
13116 do
13117 IFS=$as_save_IFS
13118 test -z "$as_dir" && as_dir=.
13119 for ac_exec_ext in '' $ac_executable_extensions; do
13120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13121 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
13122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13123 break 2
13124 fi
13125 done
13126 done
13127 IFS=$as_save_IFS
13128
13129 fi
13130 fi
13131 FC=$ac_cv_prog_FC
13132 if test -n "$FC"; then
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
13134 $as_echo "$FC" >&6; }
13135 else
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13137 $as_echo "no" >&6; }
13138 fi
13139
13140
13141 test -n "$FC" && break
13142 done
13143 fi
13144 if test -z "$FC"; then
13145 ac_ct_FC=$FC
13146 for ac_prog in gfortran
13147 do
13148 # Extract the first word of "$ac_prog", so it can be a program name with args.
13149 set dummy $ac_prog; ac_word=$2
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13151 $as_echo_n "checking for $ac_word... " >&6; }
13152 if ${ac_cv_prog_ac_ct_FC+:} false; then :
13153 $as_echo_n "(cached) " >&6
13154 else
13155 if test -n "$ac_ct_FC"; then
13156 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
13157 else
13158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13159 for as_dir in $PATH
13160 do
13161 IFS=$as_save_IFS
13162 test -z "$as_dir" && as_dir=.
13163 for ac_exec_ext in '' $ac_executable_extensions; do
13164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13165 ac_cv_prog_ac_ct_FC="$ac_prog"
13166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13167 break 2
13168 fi
13169 done
13170 done
13171 IFS=$as_save_IFS
13172
13173 fi
13174 fi
13175 ac_ct_FC=$ac_cv_prog_ac_ct_FC
13176 if test -n "$ac_ct_FC"; then
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
13178 $as_echo "$ac_ct_FC" >&6; }
13179 else
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13181 $as_echo "no" >&6; }
13182 fi
13183
13184
13185 test -n "$ac_ct_FC" && break
13186 done
13187
13188 if test "x$ac_ct_FC" = x; then
13189 FC=""
13190 else
13191 case $cross_compiling:$ac_tool_warned in
13192 yes:)
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13195 ac_tool_warned=yes ;;
13196 esac
13197 FC=$ac_ct_FC
13198 fi
13199 fi
13200
13201
13202 # Provide some information about the compiler.
13203 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
13204 set X $ac_compile
13205 ac_compiler=$2
13206 for ac_option in --version -v -V -qversion; do
13207 { { ac_try="$ac_compiler $ac_option >&5"
13208 case "(($ac_try" in
13209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13210 *) ac_try_echo=$ac_try;;
13211 esac
13212 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13213 $as_echo "$ac_try_echo"; } >&5
13214 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13215 ac_status=$?
13216 if test -s conftest.err; then
13217 sed '10a\
13218 ... rest of stderr output deleted ...
13219 10q' conftest.err >conftest.er1
13220 cat conftest.er1 >&5
13221 fi
13222 rm -f conftest.er1 conftest.err
13223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13224 test $ac_status = 0; }
13225 done
13226 rm -f a.out
13227
13228 # If we don't use `.F' as extension, the preprocessor is not run on the
13229 # input file. (Note that this only needs to work for GNU compilers.)
13230 ac_save_ext=$ac_ext
13231 ac_ext=F
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
13233 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
13234 if ${ac_cv_fc_compiler_gnu+:} false; then :
13235 $as_echo_n "(cached) " >&6
13236 else
13237 cat > conftest.$ac_ext <<_ACEOF
13238 program main
13239 #ifndef __GNUC__
13240 choke me
13241 #endif
13242
13243 end
13244 _ACEOF
13245 if ac_fn_fc_try_compile "$LINENO"; then :
13246 ac_compiler_gnu=yes
13247 else
13248 ac_compiler_gnu=no
13249 fi
13250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13251 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
13252
13253 fi
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
13255 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
13256 ac_ext=$ac_save_ext
13257 ac_test_FCFLAGS=${FCFLAGS+set}
13258 ac_save_FCFLAGS=$FCFLAGS
13259 FCFLAGS=
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
13261 $as_echo_n "checking whether $FC accepts -g... " >&6; }
13262 if ${ac_cv_prog_fc_g+:} false; then :
13263 $as_echo_n "(cached) " >&6
13264 else
13265 FCFLAGS=-g
13266 cat > conftest.$ac_ext <<_ACEOF
13267 program main
13268
13269 end
13270 _ACEOF
13271 if ac_fn_fc_try_compile "$LINENO"; then :
13272 ac_cv_prog_fc_g=yes
13273 else
13274 ac_cv_prog_fc_g=no
13275 fi
13276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13277
13278 fi
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
13280 $as_echo "$ac_cv_prog_fc_g" >&6; }
13281 if test "$ac_test_FCFLAGS" = set; then
13282 FCFLAGS=$ac_save_FCFLAGS
13283 elif test $ac_cv_prog_fc_g = yes; then
13284 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
13285 FCFLAGS="-g -O2"
13286 else
13287 FCFLAGS="-g"
13288 fi
13289 else
13290 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
13291 FCFLAGS="-O2"
13292 else
13293 FCFLAGS=
13294 fi
13295 fi
13296
13297 if test $ac_compiler_gnu = yes; then
13298 GFC=yes
13299 else
13300 GFC=
13301 fi
13302 ac_ext=c
13303 ac_cpp='$CPP $CPPFLAGS'
13304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13307
13308 ac_ext=${ac_fc_srcext-f}
13309 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
13310 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
13311 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
13312
13313
13314 if test -z "$FC" || test "X$FC" = "Xno"; then
13315 _lt_disable_FC=yes
13316 fi
13317
13318 archive_cmds_need_lc_FC=no
13319 allow_undefined_flag_FC=
13320 always_export_symbols_FC=no
13321 archive_expsym_cmds_FC=
13322 export_dynamic_flag_spec_FC=
13323 hardcode_direct_FC=no
13324 hardcode_direct_absolute_FC=no
13325 hardcode_libdir_flag_spec_FC=
13326 hardcode_libdir_flag_spec_ld_FC=
13327 hardcode_libdir_separator_FC=
13328 hardcode_minus_L_FC=no
13329 hardcode_automatic_FC=no
13330 inherit_rpath_FC=no
13331 module_cmds_FC=
13332 module_expsym_cmds_FC=
13333 link_all_deplibs_FC=unknown
13334 old_archive_cmds_FC=$old_archive_cmds
13335 reload_flag_FC=$reload_flag
13336 reload_cmds_FC=$reload_cmds
13337 no_undefined_flag_FC=
13338 whole_archive_flag_spec_FC=
13339 enable_shared_with_static_runtimes_FC=no
13340
13341 # Source file extension for fc test sources.
13342 ac_ext=${ac_fc_srcext-f}
13343
13344 # Object file extension for compiled fc test sources.
13345 objext=o
13346 objext_FC=$objext
13347
13348 # No sense in running all these tests if we already determined that
13349 # the FC compiler isn't working. Some variables (like enable_shared)
13350 # are currently assumed to apply to all compilers on this platform,
13351 # and will be corrupted by setting them based on a non-working compiler.
13352 if test "$_lt_disable_FC" != yes; then
13353 # Code to be used in simple compile tests
13354 lt_simple_compile_test_code="\
13355 subroutine t
13356 return
13357 end
13358 "
13359
13360 # Code to be used in simple link tests
13361 lt_simple_link_test_code="\
13362 program t
13363 end
13364 "
13365
13366 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13367
13368
13369
13370
13371
13372
13373 # If no C compiler was specified, use CC.
13374 LTCC=${LTCC-"$CC"}
13375
13376 # If no C compiler flags were specified, use CFLAGS.
13377 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13378
13379 # Allow CC to be a program name with arguments.
13380 compiler=$CC
13381
13382
13383 # save warnings/boilerplate of simple test code
13384 ac_outfile=conftest.$ac_objext
13385 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13386 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13387 _lt_compiler_boilerplate=`cat conftest.err`
13388 $RM conftest*
13389
13390 ac_outfile=conftest.$ac_objext
13391 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13392 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13393 _lt_linker_boilerplate=`cat conftest.err`
13394 $RM -r conftest*
13395
13396
13397 # Allow CC to be a program name with arguments.
13398 lt_save_CC="$CC"
13399 lt_save_GCC=$GCC
13400 CC=${FC-"f95"}
13401 compiler=$CC
13402 GCC=$ac_cv_fc_compiler_gnu
13403
13404 compiler_FC=$CC
13405 for cc_temp in $compiler""; do
13406 case $cc_temp in
13407 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13408 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13409 \-*) ;;
13410 *) break;;
13411 esac
13412 done
13413 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13414
13415
13416 if test -n "$compiler"; then
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13418 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13420 $as_echo "$can_build_shared" >&6; }
13421
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13423 $as_echo_n "checking whether to build shared libraries... " >&6; }
13424 test "$can_build_shared" = "no" && enable_shared=no
13425
13426 # On AIX, shared libraries and static libraries use the same namespace, and
13427 # are all built from PIC.
13428 case $host_os in
13429 aix3*)
13430 test "$enable_shared" = yes && enable_static=no
13431 if test -n "$RANLIB"; then
13432 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13433 postinstall_cmds='$RANLIB $lib'
13434 fi
13435 ;;
13436 aix[4-9]*)
13437 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13438 test "$enable_shared" = yes && enable_static=no
13439 fi
13440 ;;
13441 esac
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13443 $as_echo "$enable_shared" >&6; }
13444
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13446 $as_echo_n "checking whether to build static libraries... " >&6; }
13447 # Make sure either enable_shared or enable_static is yes.
13448 test "$enable_shared" = yes || enable_static=yes
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13450 $as_echo "$enable_static" >&6; }
13451
13452 GCC_FC="$ac_cv_fc_compiler_gnu"
13453 LD_FC="$LD"
13454
13455 ## CAVEAT EMPTOR:
13456 ## There is no encapsulation within the following macros, do not change
13457 ## the running order or otherwise move them around unless you know exactly
13458 ## what you are doing...
13459 # Dependencies to place before and after the object being linked:
13460 predep_objects_FC=
13461 postdep_objects_FC=
13462 predeps_FC=
13463 postdeps_FC=
13464 compiler_lib_search_path_FC=
13465
13466 cat > conftest.$ac_ext <<_LT_EOF
13467 subroutine foo
13468 implicit none
13469 integer a
13470 a=0
13471 return
13472 end
13473 _LT_EOF
13474
13475 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13476 (eval $ac_compile) 2>&5
13477 ac_status=$?
13478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13479 test $ac_status = 0; }; then
13480 # Parse the compiler output and extract the necessary
13481 # objects, libraries and library flags.
13482
13483 # Sentinel used to keep track of whether or not we are before
13484 # the conftest object file.
13485 pre_test_object_deps_done=no
13486
13487 for p in `eval "$output_verbose_link_cmd"`; do
13488 case $p in
13489
13490 -L* | -R* | -l*)
13491 # Some compilers place space between "-{L,R}" and the path.
13492 # Remove the space.
13493 if test $p = "-L" ||
13494 test $p = "-R"; then
13495 prev=$p
13496 continue
13497 else
13498 prev=
13499 fi
13500
13501 if test "$pre_test_object_deps_done" = no; then
13502 case $p in
13503 -L* | -R*)
13504 # Internal compiler library paths should come after those
13505 # provided the user. The postdeps already come after the
13506 # user supplied libs so there is no need to process them.
13507 if test -z "$compiler_lib_search_path_FC"; then
13508 compiler_lib_search_path_FC="${prev}${p}"
13509 else
13510 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
13511 fi
13512 ;;
13513 # The "-l" case would never come before the object being
13514 # linked, so don't bother handling this case.
13515 esac
13516 else
13517 if test -z "$postdeps_FC"; then
13518 postdeps_FC="${prev}${p}"
13519 else
13520 postdeps_FC="${postdeps_FC} ${prev}${p}"
13521 fi
13522 fi
13523 ;;
13524
13525 *.$objext)
13526 # This assumes that the test object file only shows up
13527 # once in the compiler output.
13528 if test "$p" = "conftest.$objext"; then
13529 pre_test_object_deps_done=yes
13530 continue
13531 fi
13532
13533 if test "$pre_test_object_deps_done" = no; then
13534 if test -z "$predep_objects_FC"; then
13535 predep_objects_FC="$p"
13536 else
13537 predep_objects_FC="$predep_objects_FC $p"
13538 fi
13539 else
13540 if test -z "$postdep_objects_FC"; then
13541 postdep_objects_FC="$p"
13542 else
13543 postdep_objects_FC="$postdep_objects_FC $p"
13544 fi
13545 fi
13546 ;;
13547
13548 *) ;; # Ignore the rest.
13549
13550 esac
13551 done
13552
13553 # Clean up.
13554 rm -f a.out a.exe
13555 else
13556 echo "libtool.m4: error: problem compiling FC test program"
13557 fi
13558
13559 $RM -f confest.$objext
13560
13561 # PORTME: override above test on systems where it is broken
13562
13563
13564 case " $postdeps_FC " in
13565 *" -lc "*) archive_cmds_need_lc_FC=no ;;
13566 esac
13567 compiler_lib_search_dirs_FC=
13568 if test -n "${compiler_lib_search_path_FC}"; then
13569 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13570 fi
13571
13572
13573
13574
13575
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 lt_prog_compiler_wl_FC=
13603 lt_prog_compiler_pic_FC=
13604 lt_prog_compiler_static_FC=
13605
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13607 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13608
13609 if test "$GCC" = yes; then
13610 lt_prog_compiler_wl_FC='-Wl,'
13611 lt_prog_compiler_static_FC='-static'
13612
13613 case $host_os in
13614 aix*)
13615 # All AIX code is PIC.
13616 if test "$host_cpu" = ia64; then
13617 # AIX 5 now supports IA64 processor
13618 lt_prog_compiler_static_FC='-Bstatic'
13619 fi
13620 lt_prog_compiler_pic_FC='-fPIC'
13621 ;;
13622
13623 amigaos*)
13624 case $host_cpu in
13625 powerpc)
13626 # see comment about AmigaOS4 .so support
13627 lt_prog_compiler_pic_FC='-fPIC'
13628 ;;
13629 m68k)
13630 # FIXME: we need at least 68020 code to build shared libraries, but
13631 # adding the `-m68020' flag to GCC prevents building anything better,
13632 # like `-m68040'.
13633 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
13634 ;;
13635 esac
13636 ;;
13637
13638 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13639 # PIC is the default for these OSes.
13640 ;;
13641
13642 mingw* | cygwin* | pw32* | os2* | cegcc*)
13643 # This hack is so that the source file can tell whether it is being
13644 # built for inclusion in a dll (and should export symbols for example).
13645 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13646 # (--disable-auto-import) libraries
13647 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13648 ;;
13649
13650 darwin* | rhapsody*)
13651 # PIC is the default on this platform
13652 # Common symbols not allowed in MH_DYLIB files
13653 lt_prog_compiler_pic_FC='-fno-common'
13654 ;;
13655
13656 haiku*)
13657 # PIC is the default for Haiku.
13658 # The "-static" flag exists, but is broken.
13659 lt_prog_compiler_static_FC=
13660 ;;
13661
13662 hpux*)
13663 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13664 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13665 # sets the default TLS model and affects inlining.
13666 case $host_cpu in
13667 hppa*64*)
13668 # +Z the default
13669 ;;
13670 *)
13671 lt_prog_compiler_pic_FC='-fPIC'
13672 ;;
13673 esac
13674 ;;
13675
13676 interix[3-9]*)
13677 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13678 # Instead, we relocate shared libraries at runtime.
13679 ;;
13680
13681 msdosdjgpp*)
13682 # Just because we use GCC doesn't mean we suddenly get shared libraries
13683 # on systems that don't support them.
13684 lt_prog_compiler_can_build_shared_FC=no
13685 enable_shared=no
13686 ;;
13687
13688 *nto* | *qnx*)
13689 # QNX uses GNU C++, but need to define -shared option too, otherwise
13690 # it will coredump.
13691 lt_prog_compiler_pic_FC='-fPIC -shared'
13692 ;;
13693
13694 sysv4*MP*)
13695 if test -d /usr/nec; then
13696 lt_prog_compiler_pic_FC=-Kconform_pic
13697 fi
13698 ;;
13699
13700 *)
13701 lt_prog_compiler_pic_FC='-fPIC'
13702 ;;
13703 esac
13704
13705 case $cc_basename in
13706 nvcc*) # Cuda Compiler Driver 2.2
13707 lt_prog_compiler_wl_FC='-Xlinker '
13708 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
13709 ;;
13710 esac
13711 else
13712 # PORTME Check for flag to pass linker flags through the system compiler.
13713 case $host_os in
13714 aix*)
13715 lt_prog_compiler_wl_FC='-Wl,'
13716 if test "$host_cpu" = ia64; then
13717 # AIX 5 now supports IA64 processor
13718 lt_prog_compiler_static_FC='-Bstatic'
13719 else
13720 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
13721 fi
13722 ;;
13723
13724 mingw* | cygwin* | pw32* | os2* | cegcc*)
13725 # This hack is so that the source file can tell whether it is being
13726 # built for inclusion in a dll (and should export symbols for example).
13727 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13728 ;;
13729
13730 hpux9* | hpux10* | hpux11*)
13731 lt_prog_compiler_wl_FC='-Wl,'
13732 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13733 # not for PA HP-UX.
13734 case $host_cpu in
13735 hppa*64*|ia64*)
13736 # +Z the default
13737 ;;
13738 *)
13739 lt_prog_compiler_pic_FC='+Z'
13740 ;;
13741 esac
13742 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13743 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
13744 ;;
13745
13746 irix5* | irix6* | nonstopux*)
13747 lt_prog_compiler_wl_FC='-Wl,'
13748 # PIC (with -KPIC) is the default.
13749 lt_prog_compiler_static_FC='-non_shared'
13750 ;;
13751
13752 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13753 case $cc_basename in
13754 # old Intel for x86_64 which still supported -KPIC.
13755 ecc*)
13756 lt_prog_compiler_wl_FC='-Wl,'
13757 lt_prog_compiler_pic_FC='-KPIC'
13758 lt_prog_compiler_static_FC='-static'
13759 ;;
13760 # icc used to be incompatible with GCC.
13761 # ICC 10 doesn't accept -KPIC any more.
13762 icc* | ifort*)
13763 lt_prog_compiler_wl_FC='-Wl,'
13764 lt_prog_compiler_pic_FC='-fPIC'
13765 lt_prog_compiler_static_FC='-static'
13766 ;;
13767 # Lahey Fortran 8.1.
13768 lf95*)
13769 lt_prog_compiler_wl_FC='-Wl,'
13770 lt_prog_compiler_pic_FC='--shared'
13771 lt_prog_compiler_static_FC='--static'
13772 ;;
13773 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13774 # Portland Group compilers (*not* the Pentium gcc compiler,
13775 # which looks to be a dead project)
13776 lt_prog_compiler_wl_FC='-Wl,'
13777 lt_prog_compiler_pic_FC='-fpic'
13778 lt_prog_compiler_static_FC='-Bstatic'
13779 ;;
13780 ccc*)
13781 lt_prog_compiler_wl_FC='-Wl,'
13782 # All Alpha code is PIC.
13783 lt_prog_compiler_static_FC='-non_shared'
13784 ;;
13785 xl* | bgxl* | bgf* | mpixl*)
13786 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13787 lt_prog_compiler_wl_FC='-Wl,'
13788 lt_prog_compiler_pic_FC='-qpic'
13789 lt_prog_compiler_static_FC='-qstaticlink'
13790 ;;
13791 *)
13792 case `$CC -V 2>&1 | sed 5q` in
13793 *Sun\ F* | *Sun*Fortran*)
13794 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13795 lt_prog_compiler_pic_FC='-KPIC'
13796 lt_prog_compiler_static_FC='-Bstatic'
13797 lt_prog_compiler_wl_FC=''
13798 ;;
13799 *Sun\ C*)
13800 # Sun C 5.9
13801 lt_prog_compiler_pic_FC='-KPIC'
13802 lt_prog_compiler_static_FC='-Bstatic'
13803 lt_prog_compiler_wl_FC='-Wl,'
13804 ;;
13805 esac
13806 ;;
13807 esac
13808 ;;
13809
13810 newsos6)
13811 lt_prog_compiler_pic_FC='-KPIC'
13812 lt_prog_compiler_static_FC='-Bstatic'
13813 ;;
13814
13815 *nto* | *qnx*)
13816 # QNX uses GNU C++, but need to define -shared option too, otherwise
13817 # it will coredump.
13818 lt_prog_compiler_pic_FC='-fPIC -shared'
13819 ;;
13820
13821 osf3* | osf4* | osf5*)
13822 lt_prog_compiler_wl_FC='-Wl,'
13823 # All OSF/1 code is PIC.
13824 lt_prog_compiler_static_FC='-non_shared'
13825 ;;
13826
13827 rdos*)
13828 lt_prog_compiler_static_FC='-non_shared'
13829 ;;
13830
13831 solaris*)
13832 lt_prog_compiler_pic_FC='-KPIC'
13833 lt_prog_compiler_static_FC='-Bstatic'
13834 case $cc_basename in
13835 f77* | f90* | f95*)
13836 lt_prog_compiler_wl_FC='-Qoption ld ';;
13837 *)
13838 lt_prog_compiler_wl_FC='-Wl,';;
13839 esac
13840 ;;
13841
13842 sunos4*)
13843 lt_prog_compiler_wl_FC='-Qoption ld '
13844 lt_prog_compiler_pic_FC='-PIC'
13845 lt_prog_compiler_static_FC='-Bstatic'
13846 ;;
13847
13848 sysv4 | sysv4.2uw2* | sysv4.3*)
13849 lt_prog_compiler_wl_FC='-Wl,'
13850 lt_prog_compiler_pic_FC='-KPIC'
13851 lt_prog_compiler_static_FC='-Bstatic'
13852 ;;
13853
13854 sysv4*MP*)
13855 if test -d /usr/nec ;then
13856 lt_prog_compiler_pic_FC='-Kconform_pic'
13857 lt_prog_compiler_static_FC='-Bstatic'
13858 fi
13859 ;;
13860
13861 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13862 lt_prog_compiler_wl_FC='-Wl,'
13863 lt_prog_compiler_pic_FC='-KPIC'
13864 lt_prog_compiler_static_FC='-Bstatic'
13865 ;;
13866
13867 unicos*)
13868 lt_prog_compiler_wl_FC='-Wl,'
13869 lt_prog_compiler_can_build_shared_FC=no
13870 ;;
13871
13872 uts4*)
13873 lt_prog_compiler_pic_FC='-pic'
13874 lt_prog_compiler_static_FC='-Bstatic'
13875 ;;
13876
13877 *)
13878 lt_prog_compiler_can_build_shared_FC=no
13879 ;;
13880 esac
13881 fi
13882
13883 case $host_os in
13884 # For platforms which do not support PIC, -DPIC is meaningless:
13885 *djgpp*)
13886 lt_prog_compiler_pic_FC=
13887 ;;
13888 *)
13889 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
13890 ;;
13891 esac
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
13893 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
13894
13895
13896
13897 #
13898 # Check to make sure the PIC flag actually works.
13899 #
13900 if test -n "$lt_prog_compiler_pic_FC"; then
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
13902 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
13903 if ${lt_cv_prog_compiler_pic_works_FC+:} false; then :
13904 $as_echo_n "(cached) " >&6
13905 else
13906 lt_cv_prog_compiler_pic_works_FC=no
13907 ac_outfile=conftest.$ac_objext
13908 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13909 lt_compiler_flag="$lt_prog_compiler_pic_FC"
13910 # Insert the option either (1) after the last *FLAGS variable, or
13911 # (2) before a word containing "conftest.", or (3) at the end.
13912 # Note that $ac_compile itself does not contain backslashes and begins
13913 # with a dollar sign (not a hyphen), so the echo should work correctly.
13914 # The option is referenced via a variable to avoid confusing sed.
13915 lt_compile=`echo "$ac_compile" | $SED \
13916 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13917 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13918 -e 's:$: $lt_compiler_flag:'`
13919 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13920 (eval "$lt_compile" 2>conftest.err)
13921 ac_status=$?
13922 cat conftest.err >&5
13923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13924 if (exit $ac_status) && test -s "$ac_outfile"; then
13925 # The compiler can only warn and ignore the option if not recognized
13926 # So say no if there are warnings other than the usual output.
13927 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13928 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13929 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13930 lt_cv_prog_compiler_pic_works_FC=yes
13931 fi
13932 fi
13933 $RM conftest*
13934
13935 fi
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
13937 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
13938
13939 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
13940 case $lt_prog_compiler_pic_FC in
13941 "" | " "*) ;;
13942 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
13943 esac
13944 else
13945 lt_prog_compiler_pic_FC=
13946 lt_prog_compiler_can_build_shared_FC=no
13947 fi
13948
13949 fi
13950
13951
13952
13953 #
13954 # Check to make sure the static flag actually works.
13955 #
13956 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13958 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13959 if ${lt_cv_prog_compiler_static_works_FC+:} false; then :
13960 $as_echo_n "(cached) " >&6
13961 else
13962 lt_cv_prog_compiler_static_works_FC=no
13963 save_LDFLAGS="$LDFLAGS"
13964 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13965 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13966 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13967 # The linker can only warn and ignore the option if not recognized
13968 # So say no if there are warnings
13969 if test -s conftest.err; then
13970 # Append any errors to the config.log.
13971 cat conftest.err 1>&5
13972 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13973 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13974 if diff conftest.exp conftest.er2 >/dev/null; then
13975 lt_cv_prog_compiler_static_works_FC=yes
13976 fi
13977 else
13978 lt_cv_prog_compiler_static_works_FC=yes
13979 fi
13980 fi
13981 $RM -r conftest*
13982 LDFLAGS="$save_LDFLAGS"
13983
13984 fi
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
13986 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
13987
13988 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
13989 :
13990 else
13991 lt_prog_compiler_static_FC=
13992 fi
13993
13994
13995
13996
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13998 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13999 if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
14000 $as_echo_n "(cached) " >&6
14001 else
14002 lt_cv_prog_compiler_c_o_FC=no
14003 $RM -r conftest 2>/dev/null
14004 mkdir conftest
14005 cd conftest
14006 mkdir out
14007 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14008
14009 lt_compiler_flag="-o out/conftest2.$ac_objext"
14010 # Insert the option either (1) after the last *FLAGS variable, or
14011 # (2) before a word containing "conftest.", or (3) at the end.
14012 # Note that $ac_compile itself does not contain backslashes and begins
14013 # with a dollar sign (not a hyphen), so the echo should work correctly.
14014 lt_compile=`echo "$ac_compile" | $SED \
14015 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14016 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14017 -e 's:$: $lt_compiler_flag:'`
14018 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14019 (eval "$lt_compile" 2>out/conftest.err)
14020 ac_status=$?
14021 cat out/conftest.err >&5
14022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14024 then
14025 # The compiler can only warn and ignore the option if not recognized
14026 # So say no if there are warnings
14027 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14028 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14029 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14030 lt_cv_prog_compiler_c_o_FC=yes
14031 fi
14032 fi
14033 chmod u+w . 2>&5
14034 $RM conftest*
14035 # SGI C++ compiler will create directory out/ii_files/ for
14036 # template instantiation
14037 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14038 $RM out/* && rmdir out
14039 cd ..
14040 $RM -r conftest
14041 $RM conftest*
14042
14043 fi
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
14045 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
14046
14047
14048
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14050 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14051 if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
14052 $as_echo_n "(cached) " >&6
14053 else
14054 lt_cv_prog_compiler_c_o_FC=no
14055 $RM -r conftest 2>/dev/null
14056 mkdir conftest
14057 cd conftest
14058 mkdir out
14059 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14060
14061 lt_compiler_flag="-o out/conftest2.$ac_objext"
14062 # Insert the option either (1) after the last *FLAGS variable, or
14063 # (2) before a word containing "conftest.", or (3) at the end.
14064 # Note that $ac_compile itself does not contain backslashes and begins
14065 # with a dollar sign (not a hyphen), so the echo should work correctly.
14066 lt_compile=`echo "$ac_compile" | $SED \
14067 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14068 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14069 -e 's:$: $lt_compiler_flag:'`
14070 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14071 (eval "$lt_compile" 2>out/conftest.err)
14072 ac_status=$?
14073 cat out/conftest.err >&5
14074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14076 then
14077 # The compiler can only warn and ignore the option if not recognized
14078 # So say no if there are warnings
14079 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14080 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14081 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14082 lt_cv_prog_compiler_c_o_FC=yes
14083 fi
14084 fi
14085 chmod u+w . 2>&5
14086 $RM conftest*
14087 # SGI C++ compiler will create directory out/ii_files/ for
14088 # template instantiation
14089 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14090 $RM out/* && rmdir out
14091 cd ..
14092 $RM -r conftest
14093 $RM conftest*
14094
14095 fi
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
14097 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
14098
14099
14100
14101
14102 hard_links="nottested"
14103 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
14104 # do not overwrite the value of need_locks provided by the user
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14106 $as_echo_n "checking if we can lock with hard links... " >&6; }
14107 hard_links=yes
14108 $RM conftest*
14109 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14110 touch conftest.a
14111 ln conftest.a conftest.b 2>&5 || hard_links=no
14112 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14114 $as_echo "$hard_links" >&6; }
14115 if test "$hard_links" = no; then
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14117 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14118 need_locks=warn
14119 fi
14120 else
14121 need_locks=no
14122 fi
14123
14124
14125
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14127 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14128
14129 runpath_var=
14130 allow_undefined_flag_FC=
14131 always_export_symbols_FC=no
14132 archive_cmds_FC=
14133 archive_expsym_cmds_FC=
14134 compiler_needs_object_FC=no
14135 enable_shared_with_static_runtimes_FC=no
14136 export_dynamic_flag_spec_FC=
14137 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14138 hardcode_automatic_FC=no
14139 hardcode_direct_FC=no
14140 hardcode_direct_absolute_FC=no
14141 hardcode_libdir_flag_spec_FC=
14142 hardcode_libdir_flag_spec_ld_FC=
14143 hardcode_libdir_separator_FC=
14144 hardcode_minus_L_FC=no
14145 hardcode_shlibpath_var_FC=unsupported
14146 inherit_rpath_FC=no
14147 link_all_deplibs_FC=unknown
14148 module_cmds_FC=
14149 module_expsym_cmds_FC=
14150 old_archive_from_new_cmds_FC=
14151 old_archive_from_expsyms_cmds_FC=
14152 thread_safe_flag_spec_FC=
14153 whole_archive_flag_spec_FC=
14154 # include_expsyms should be a list of space-separated symbols to be *always*
14155 # included in the symbol list
14156 include_expsyms_FC=
14157 # exclude_expsyms can be an extended regexp of symbols to exclude
14158 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14159 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14160 # as well as any symbol that contains `d'.
14161 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14162 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14163 # platforms (ab)use it in PIC code, but their linkers get confused if
14164 # the symbol is explicitly referenced. Since portable code cannot
14165 # rely on this symbol name, it's probably fine to never include it in
14166 # preloaded symbol tables.
14167 # Exclude shared library initialization/finalization symbols.
14168 extract_expsyms_cmds=
14169
14170 case $host_os in
14171 cygwin* | mingw* | pw32* | cegcc*)
14172 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14173 # When not using gcc, we currently assume that we are using
14174 # Microsoft Visual C++.
14175 if test "$GCC" != yes; then
14176 with_gnu_ld=no
14177 fi
14178 ;;
14179 interix*)
14180 # we just hope/assume this is gcc and not c89 (= MSVC++)
14181 with_gnu_ld=yes
14182 ;;
14183 openbsd*)
14184 with_gnu_ld=no
14185 ;;
14186 esac
14187
14188 ld_shlibs_FC=yes
14189
14190 # On some targets, GNU ld is compatible enough with the native linker
14191 # that we're better off using the native interface for both.
14192 lt_use_gnu_ld_interface=no
14193 if test "$with_gnu_ld" = yes; then
14194 case $host_os in
14195 aix*)
14196 # The AIX port of GNU ld has always aspired to compatibility
14197 # with the native linker. However, as the warning in the GNU ld
14198 # block says, versions before 2.19.5* couldn't really create working
14199 # shared libraries, regardless of the interface used.
14200 case `$LD -v 2>&1` in
14201 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14202 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14203 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14204 *)
14205 lt_use_gnu_ld_interface=yes
14206 ;;
14207 esac
14208 ;;
14209 *)
14210 lt_use_gnu_ld_interface=yes
14211 ;;
14212 esac
14213 fi
14214
14215 if test "$lt_use_gnu_ld_interface" = yes; then
14216 # If archive_cmds runs LD, not CC, wlarc should be empty
14217 wlarc='${wl}'
14218
14219 # Set some defaults for GNU ld with shared library support. These
14220 # are reset later if shared libraries are not supported. Putting them
14221 # here allows them to be overridden if necessary.
14222 runpath_var=LD_RUN_PATH
14223 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14224 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
14225 # ancient GNU ld didn't support --whole-archive et. al.
14226 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14227 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14228 else
14229 whole_archive_flag_spec_FC=
14230 fi
14231 supports_anon_versioning=no
14232 case `$LD -v 2>&1` in
14233 *GNU\ gold*) supports_anon_versioning=yes ;;
14234 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14235 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14236 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14237 *\ 2.11.*) ;; # other 2.11 versions
14238 *) supports_anon_versioning=yes ;;
14239 esac
14240
14241 # See if GNU ld supports shared libraries.
14242 case $host_os in
14243 aix[3-9]*)
14244 # On AIX/PPC, the GNU linker is very broken
14245 if test "$host_cpu" != ia64; then
14246 ld_shlibs_FC=no
14247 cat <<_LT_EOF 1>&2
14248
14249 *** Warning: the GNU linker, at least up to release 2.19, is reported
14250 *** to be unable to reliably create shared libraries on AIX.
14251 *** Therefore, libtool is disabling shared libraries support. If you
14252 *** really care for shared libraries, you may want to install binutils
14253 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14254 *** You will then need to restart the configuration process.
14255
14256 _LT_EOF
14257 fi
14258 ;;
14259
14260 amigaos*)
14261 case $host_cpu in
14262 powerpc)
14263 # see comment about AmigaOS4 .so support
14264 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14265 archive_expsym_cmds_FC=''
14266 ;;
14267 m68k)
14268 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)'
14269 hardcode_libdir_flag_spec_FC='-L$libdir'
14270 hardcode_minus_L_FC=yes
14271 ;;
14272 esac
14273 ;;
14274
14275 beos*)
14276 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14277 allow_undefined_flag_FC=unsupported
14278 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14279 # support --undefined. This deserves some investigation. FIXME
14280 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14281 else
14282 ld_shlibs_FC=no
14283 fi
14284 ;;
14285
14286 cygwin* | mingw* | pw32* | cegcc*)
14287 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
14288 # as there is no search path for DLLs.
14289 hardcode_libdir_flag_spec_FC='-L$libdir'
14290 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
14291 allow_undefined_flag_FC=unsupported
14292 always_export_symbols_FC=no
14293 enable_shared_with_static_runtimes_FC=yes
14294 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14295
14296 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14297 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14298 # If the export-symbols file already is a .def file (1st line
14299 # is EXPORTS), use it as is; otherwise, prepend...
14300 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14301 cp $export_symbols $output_objdir/$soname.def;
14302 else
14303 echo EXPORTS > $output_objdir/$soname.def;
14304 cat $export_symbols >> $output_objdir/$soname.def;
14305 fi~
14306 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14307 else
14308 ld_shlibs_FC=no
14309 fi
14310 ;;
14311
14312 haiku*)
14313 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14314 link_all_deplibs_FC=yes
14315 ;;
14316
14317 interix[3-9]*)
14318 hardcode_direct_FC=no
14319 hardcode_shlibpath_var_FC=no
14320 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14321 export_dynamic_flag_spec_FC='${wl}-E'
14322 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14323 # Instead, shared libraries are loaded at an image base (0x10000000 by
14324 # default) and relocated if they conflict, which is a slow very memory
14325 # consuming and fragmenting process. To avoid this, we pick a random,
14326 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14327 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14328 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'
14329 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'
14330 ;;
14331
14332 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
14333 tmp_diet=no
14334 if test "$host_os" = linux-dietlibc; then
14335 case $cc_basename in
14336 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14337 esac
14338 fi
14339 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14340 && test "$tmp_diet" = no
14341 then
14342 tmp_addflag=' $pic_flag'
14343 tmp_sharedflag='-shared'
14344 case $cc_basename,$host_cpu in
14345 pgcc*) # Portland Group C compiler
14346 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'
14347 tmp_addflag=' $pic_flag'
14348 ;;
14349 pgf77* | pgf90* | pgf95* | pgfortran*)
14350 # Portland Group f77 and f90 compilers
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 -Mnomain' ;;
14353 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14354 tmp_addflag=' -i_dynamic' ;;
14355 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14356 tmp_addflag=' -i_dynamic -nofor_main' ;;
14357 ifc* | ifort*) # Intel Fortran compiler
14358 tmp_addflag=' -nofor_main' ;;
14359 lf95*) # Lahey Fortran 8.1
14360 whole_archive_flag_spec_FC=
14361 tmp_sharedflag='--shared' ;;
14362 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14363 tmp_sharedflag='-qmkshrobj'
14364 tmp_addflag= ;;
14365 nvcc*) # Cuda Compiler Driver 2.2
14366 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'
14367 compiler_needs_object_FC=yes
14368 ;;
14369 esac
14370 case `$CC -V 2>&1 | sed 5q` in
14371 *Sun\ C*) # Sun C 5.9
14372 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'
14373 compiler_needs_object_FC=yes
14374 tmp_sharedflag='-G' ;;
14375 *Sun\ F*) # Sun Fortran 8.3
14376 tmp_sharedflag='-G' ;;
14377 esac
14378 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14379
14380 if test "x$supports_anon_versioning" = xyes; then
14381 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14382 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14383 echo "local: *; };" >> $output_objdir/$libname.ver~
14384 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14385 fi
14386
14387 case $cc_basename in
14388 xlf* | bgf* | bgxlf* | mpixlf*)
14389 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14390 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
14391 hardcode_libdir_flag_spec_FC=
14392 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
14393 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
14394 if test "x$supports_anon_versioning" = xyes; then
14395 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14396 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14397 echo "local: *; };" >> $output_objdir/$libname.ver~
14398 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14399 fi
14400 ;;
14401 esac
14402 else
14403 ld_shlibs_FC=no
14404 fi
14405 ;;
14406
14407 netbsd*)
14408 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14409 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14410 wlarc=
14411 else
14412 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14413 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14414 fi
14415 ;;
14416
14417 solaris*)
14418 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14419 ld_shlibs_FC=no
14420 cat <<_LT_EOF 1>&2
14421
14422 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14423 *** create shared libraries on Solaris systems. Therefore, libtool
14424 *** is disabling shared libraries support. We urge you to upgrade GNU
14425 *** binutils to release 2.9.1 or newer. Another option is to modify
14426 *** your PATH or compiler configuration so that the native linker is
14427 *** used, and then restart.
14428
14429 _LT_EOF
14430 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14431 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14432 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14433 else
14434 ld_shlibs_FC=no
14435 fi
14436 ;;
14437
14438 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14439 case `$LD -v 2>&1` in
14440 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14441 ld_shlibs_FC=no
14442 cat <<_LT_EOF 1>&2
14443
14444 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14445 *** reliably create shared libraries on SCO systems. Therefore, libtool
14446 *** is disabling shared libraries support. We urge you to upgrade GNU
14447 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14448 *** your PATH or compiler configuration so that the native linker is
14449 *** used, and then restart.
14450
14451 _LT_EOF
14452 ;;
14453 *)
14454 # For security reasons, it is highly recommended that you always
14455 # use absolute paths for naming shared libraries, and exclude the
14456 # DT_RUNPATH tag from executables and libraries. But doing so
14457 # requires that you compile everything twice, which is a pain.
14458 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14459 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14460 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14461 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14462 else
14463 ld_shlibs_FC=no
14464 fi
14465 ;;
14466 esac
14467 ;;
14468
14469 sunos4*)
14470 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14471 wlarc=
14472 hardcode_direct_FC=yes
14473 hardcode_shlibpath_var_FC=no
14474 ;;
14475
14476 *)
14477 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14478 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14479 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14480 else
14481 ld_shlibs_FC=no
14482 fi
14483 ;;
14484 esac
14485
14486 if test "$ld_shlibs_FC" = no; then
14487 runpath_var=
14488 hardcode_libdir_flag_spec_FC=
14489 export_dynamic_flag_spec_FC=
14490 whole_archive_flag_spec_FC=
14491 fi
14492 else
14493 # PORTME fill in a description of your system's linker (not GNU ld)
14494 case $host_os in
14495 aix3*)
14496 allow_undefined_flag_FC=unsupported
14497 always_export_symbols_FC=yes
14498 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'
14499 # Note: this linker hardcodes the directories in LIBPATH if there
14500 # are no directories specified by -L.
14501 hardcode_minus_L_FC=yes
14502 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14503 # Neither direct hardcoding nor static linking is supported with a
14504 # broken collect2.
14505 hardcode_direct_FC=unsupported
14506 fi
14507 ;;
14508
14509 aix[4-9]*)
14510 if test "$host_cpu" = ia64; then
14511 # On IA64, the linker does run time linking by default, so we don't
14512 # have to do anything special.
14513 aix_use_runtimelinking=no
14514 exp_sym_flag='-Bexport'
14515 no_entry_flag=""
14516 else
14517 # If we're using GNU nm, then we don't want the "-C" option.
14518 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14519 # Also, AIX nm treats weak defined symbols like other global
14520 # defined symbols, whereas GNU nm marks them as "W".
14521 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14522 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'
14523 else
14524 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'
14525 fi
14526 aix_use_runtimelinking=no
14527
14528 # Test if we are trying to use run time linking or normal
14529 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14530 # need to do runtime linking.
14531 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14532 for ld_flag in $LDFLAGS; do
14533 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14534 aix_use_runtimelinking=yes
14535 break
14536 fi
14537 done
14538 ;;
14539 esac
14540
14541 exp_sym_flag='-bexport'
14542 no_entry_flag='-bnoentry'
14543 fi
14544
14545 # When large executables or shared objects are built, AIX ld can
14546 # have problems creating the table of contents. If linking a library
14547 # or program results in "error TOC overflow" add -mminimal-toc to
14548 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14549 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14550
14551 archive_cmds_FC=''
14552 hardcode_direct_FC=yes
14553 hardcode_direct_absolute_FC=yes
14554 hardcode_libdir_separator_FC=':'
14555 link_all_deplibs_FC=yes
14556 file_list_spec_FC='${wl}-f,'
14557
14558 if test "$GCC" = yes; then
14559 case $host_os in aix4.[012]|aix4.[012].*)
14560 # We only want to do this on AIX 4.2 and lower, the check
14561 # below for broken collect2 doesn't work under 4.3+
14562 collect2name=`${CC} -print-prog-name=collect2`
14563 if test -f "$collect2name" &&
14564 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14565 then
14566 # We have reworked collect2
14567 :
14568 else
14569 # We have old collect2
14570 hardcode_direct_FC=unsupported
14571 # It fails to find uninstalled libraries when the uninstalled
14572 # path is not listed in the libpath. Setting hardcode_minus_L
14573 # to unsupported forces relinking
14574 hardcode_minus_L_FC=yes
14575 hardcode_libdir_flag_spec_FC='-L$libdir'
14576 hardcode_libdir_separator_FC=
14577 fi
14578 ;;
14579 esac
14580 shared_flag='-shared'
14581 if test "$aix_use_runtimelinking" = yes; then
14582 shared_flag="$shared_flag "'${wl}-G'
14583 fi
14584 else
14585 # not using gcc
14586 if test "$host_cpu" = ia64; then
14587 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14588 # chokes on -Wl,-G. The following line is correct:
14589 shared_flag='-G'
14590 else
14591 if test "$aix_use_runtimelinking" = yes; then
14592 shared_flag='${wl}-G'
14593 else
14594 shared_flag='${wl}-bM:SRE'
14595 fi
14596 fi
14597 fi
14598
14599 export_dynamic_flag_spec_FC='${wl}-bexpall'
14600 # It seems that -bexpall does not export symbols beginning with
14601 # underscore (_), so it is better to generate a list of symbols to export.
14602 always_export_symbols_FC=yes
14603 if test "$aix_use_runtimelinking" = yes; then
14604 # Warning - without using the other runtime loading flags (-brtl),
14605 # -berok will link without error, but may produce a broken library.
14606 allow_undefined_flag_FC='-berok'
14607 # Determine the default libpath from the value encoded in an
14608 # empty executable.
14609 if test x$gcc_no_link = xyes; then
14610 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14611 fi
14612 cat > conftest.$ac_ext <<_ACEOF
14613 program main
14614
14615 end
14616 _ACEOF
14617 if ac_fn_fc_try_link "$LINENO"; then :
14618
14619 lt_aix_libpath_sed='
14620 /Import File Strings/,/^$/ {
14621 /^0/ {
14622 s/^0 *\(.*\)$/\1/
14623 p
14624 }
14625 }'
14626 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14627 # Check for a 64-bit object if we didn't find anything.
14628 if test -z "$aix_libpath"; then
14629 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14630 fi
14631 fi
14632 rm -f core conftest.err conftest.$ac_objext \
14633 conftest$ac_exeext conftest.$ac_ext
14634 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14635
14636 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14637 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"
14638 else
14639 if test "$host_cpu" = ia64; then
14640 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
14641 allow_undefined_flag_FC="-z nodefs"
14642 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"
14643 else
14644 # Determine the default libpath from the value encoded in an
14645 # empty executable.
14646 if test x$gcc_no_link = xyes; then
14647 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14648 fi
14649 cat > conftest.$ac_ext <<_ACEOF
14650 program main
14651
14652 end
14653 _ACEOF
14654 if ac_fn_fc_try_link "$LINENO"; then :
14655
14656 lt_aix_libpath_sed='
14657 /Import File Strings/,/^$/ {
14658 /^0/ {
14659 s/^0 *\(.*\)$/\1/
14660 p
14661 }
14662 }'
14663 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14664 # Check for a 64-bit object if we didn't find anything.
14665 if test -z "$aix_libpath"; then
14666 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14667 fi
14668 fi
14669 rm -f core conftest.err conftest.$ac_objext \
14670 conftest$ac_exeext conftest.$ac_ext
14671 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14672
14673 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14674 # Warning - without using the other run time loading flags,
14675 # -berok will link without error, but may produce a broken library.
14676 no_undefined_flag_FC=' ${wl}-bernotok'
14677 allow_undefined_flag_FC=' ${wl}-berok'
14678 if test "$with_gnu_ld" = yes; then
14679 # We only use this code for GNU lds that support --whole-archive.
14680 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14681 else
14682 # Exported symbols can be pulled into shared objects from archives
14683 whole_archive_flag_spec_FC='$convenience'
14684 fi
14685 archive_cmds_need_lc_FC=yes
14686 # This is similar to how AIX traditionally builds its shared libraries.
14687 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'
14688 fi
14689 fi
14690 ;;
14691
14692 amigaos*)
14693 case $host_cpu in
14694 powerpc)
14695 # see comment about AmigaOS4 .so support
14696 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14697 archive_expsym_cmds_FC=''
14698 ;;
14699 m68k)
14700 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)'
14701 hardcode_libdir_flag_spec_FC='-L$libdir'
14702 hardcode_minus_L_FC=yes
14703 ;;
14704 esac
14705 ;;
14706
14707 bsdi[45]*)
14708 export_dynamic_flag_spec_FC=-rdynamic
14709 ;;
14710
14711 cygwin* | mingw* | pw32* | cegcc*)
14712 # When not using gcc, we currently assume that we are using
14713 # Microsoft Visual C++.
14714 # hardcode_libdir_flag_spec is actually meaningless, as there is
14715 # no search path for DLLs.
14716 hardcode_libdir_flag_spec_FC=' '
14717 allow_undefined_flag_FC=unsupported
14718 # Tell ltmain to make .lib files, not .a files.
14719 libext=lib
14720 # Tell ltmain to make .dll files, not .so files.
14721 shrext_cmds=".dll"
14722 # FIXME: Setting linknames here is a bad hack.
14723 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14724 # The linker will automatically build a .lib file if we build a DLL.
14725 old_archive_from_new_cmds_FC='true'
14726 # FIXME: Should let the user specify the lib program.
14727 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
14728 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
14729 enable_shared_with_static_runtimes_FC=yes
14730 ;;
14731
14732 darwin* | rhapsody*)
14733
14734
14735 archive_cmds_need_lc_FC=no
14736 hardcode_direct_FC=no
14737 hardcode_automatic_FC=yes
14738 hardcode_shlibpath_var_FC=unsupported
14739 if test "$lt_cv_ld_force_load" = "yes"; then
14740 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\"`'
14741 else
14742 whole_archive_flag_spec_FC=''
14743 fi
14744 link_all_deplibs_FC=yes
14745 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
14746 case $cc_basename in
14747 ifort*) _lt_dar_can_shared=yes ;;
14748 *) _lt_dar_can_shared=$GCC ;;
14749 esac
14750 if test "$_lt_dar_can_shared" = "yes"; then
14751 output_verbose_link_cmd=func_echo_all
14752 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}"
14753 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14754 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}"
14755 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}"
14756
14757 else
14758 ld_shlibs_FC=no
14759 fi
14760
14761 ;;
14762
14763 dgux*)
14764 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14765 hardcode_libdir_flag_spec_FC='-L$libdir'
14766 hardcode_shlibpath_var_FC=no
14767 ;;
14768
14769 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14770 # support. Future versions do this automatically, but an explicit c++rt0.o
14771 # does not break anything, and helps significantly (at the cost of a little
14772 # extra space).
14773 freebsd2.2*)
14774 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14775 hardcode_libdir_flag_spec_FC='-R$libdir'
14776 hardcode_direct_FC=yes
14777 hardcode_shlibpath_var_FC=no
14778 ;;
14779
14780 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14781 freebsd2.*)
14782 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14783 hardcode_direct_FC=yes
14784 hardcode_minus_L_FC=yes
14785 hardcode_shlibpath_var_FC=no
14786 ;;
14787
14788 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14789 freebsd* | dragonfly*)
14790 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14791 hardcode_libdir_flag_spec_FC='-R$libdir'
14792 hardcode_direct_FC=yes
14793 hardcode_shlibpath_var_FC=no
14794 ;;
14795
14796 hpux9*)
14797 if test "$GCC" = yes; then
14798 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'
14799 else
14800 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'
14801 fi
14802 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14803 hardcode_libdir_separator_FC=:
14804 hardcode_direct_FC=yes
14805
14806 # hardcode_minus_L: Not really in the search PATH,
14807 # but as the default location of the library.
14808 hardcode_minus_L_FC=yes
14809 export_dynamic_flag_spec_FC='${wl}-E'
14810 ;;
14811
14812 hpux10*)
14813 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14814 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14815 else
14816 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14817 fi
14818 if test "$with_gnu_ld" = no; then
14819 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14820 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
14821 hardcode_libdir_separator_FC=:
14822 hardcode_direct_FC=yes
14823 hardcode_direct_absolute_FC=yes
14824 export_dynamic_flag_spec_FC='${wl}-E'
14825 # hardcode_minus_L: Not really in the search PATH,
14826 # but as the default location of the library.
14827 hardcode_minus_L_FC=yes
14828 fi
14829 ;;
14830
14831 hpux11*)
14832 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14833 case $host_cpu in
14834 hppa*64*)
14835 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14836 ;;
14837 ia64*)
14838 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14839 ;;
14840 *)
14841 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14842 ;;
14843 esac
14844 else
14845 case $host_cpu in
14846 hppa*64*)
14847 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14848 ;;
14849 ia64*)
14850 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14851 ;;
14852 *)
14853 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14854 ;;
14855 esac
14856 fi
14857 if test "$with_gnu_ld" = no; then
14858 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14859 hardcode_libdir_separator_FC=:
14860
14861 case $host_cpu in
14862 hppa*64*|ia64*)
14863 hardcode_direct_FC=no
14864 hardcode_shlibpath_var_FC=no
14865 ;;
14866 *)
14867 hardcode_direct_FC=yes
14868 hardcode_direct_absolute_FC=yes
14869 export_dynamic_flag_spec_FC='${wl}-E'
14870
14871 # hardcode_minus_L: Not really in the search PATH,
14872 # but as the default location of the library.
14873 hardcode_minus_L_FC=yes
14874 ;;
14875 esac
14876 fi
14877 ;;
14878
14879 irix5* | irix6* | nonstopux*)
14880 if test "$GCC" = yes; then
14881 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'
14882 # Try to use the -exported_symbol ld option, if it does not
14883 # work, assume that -exports_file does not work either and
14884 # implicitly export all symbols.
14885 save_LDFLAGS="$LDFLAGS"
14886 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14887 if test x$gcc_no_link = xyes; then
14888 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14889 fi
14890 cat > conftest.$ac_ext <<_ACEOF
14891 int foo(void) {}
14892 _ACEOF
14893 if ac_fn_fc_try_link "$LINENO"; then :
14894 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'
14895
14896 fi
14897 rm -f core conftest.err conftest.$ac_objext \
14898 conftest$ac_exeext conftest.$ac_ext
14899 LDFLAGS="$save_LDFLAGS"
14900 else
14901 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'
14902 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'
14903 fi
14904 archive_cmds_need_lc_FC='no'
14905 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14906 hardcode_libdir_separator_FC=:
14907 inherit_rpath_FC=yes
14908 link_all_deplibs_FC=yes
14909 ;;
14910
14911 netbsd*)
14912 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14913 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14914 else
14915 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14916 fi
14917 hardcode_libdir_flag_spec_FC='-R$libdir'
14918 hardcode_direct_FC=yes
14919 hardcode_shlibpath_var_FC=no
14920 ;;
14921
14922 newsos6)
14923 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14924 hardcode_direct_FC=yes
14925 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14926 hardcode_libdir_separator_FC=:
14927 hardcode_shlibpath_var_FC=no
14928 ;;
14929
14930 *nto* | *qnx*)
14931 ;;
14932
14933 openbsd*)
14934 if test -f /usr/libexec/ld.so; then
14935 hardcode_direct_FC=yes
14936 hardcode_shlibpath_var_FC=no
14937 hardcode_direct_absolute_FC=yes
14938 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14939 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14940 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14941 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14942 export_dynamic_flag_spec_FC='${wl}-E'
14943 else
14944 case $host_os in
14945 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14946 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14947 hardcode_libdir_flag_spec_FC='-R$libdir'
14948 ;;
14949 *)
14950 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14951 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14952 ;;
14953 esac
14954 fi
14955 else
14956 ld_shlibs_FC=no
14957 fi
14958 ;;
14959
14960 os2*)
14961 hardcode_libdir_flag_spec_FC='-L$libdir'
14962 hardcode_minus_L_FC=yes
14963 allow_undefined_flag_FC=unsupported
14964 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'
14965 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14966 ;;
14967
14968 osf3*)
14969 if test "$GCC" = yes; then
14970 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
14971 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'
14972 else
14973 allow_undefined_flag_FC=' -expect_unresolved \*'
14974 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'
14975 fi
14976 archive_cmds_need_lc_FC='no'
14977 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14978 hardcode_libdir_separator_FC=:
14979 ;;
14980
14981 osf4* | osf5*) # as osf3* with the addition of -msym flag
14982 if test "$GCC" = yes; then
14983 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
14984 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'
14985 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14986 else
14987 allow_undefined_flag_FC=' -expect_unresolved \*'
14988 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'
14989 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~
14990 $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'
14991
14992 # Both c and cxx compiler support -rpath directly
14993 hardcode_libdir_flag_spec_FC='-rpath $libdir'
14994 fi
14995 archive_cmds_need_lc_FC='no'
14996 hardcode_libdir_separator_FC=:
14997 ;;
14998
14999 solaris*)
15000 no_undefined_flag_FC=' -z defs'
15001 if test "$GCC" = yes; then
15002 wlarc='${wl}'
15003 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15004 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15005 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15006 else
15007 case `$CC -V 2>&1` in
15008 *"Compilers 5.0"*)
15009 wlarc=''
15010 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15011 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15012 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15013 ;;
15014 *)
15015 wlarc='${wl}'
15016 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15017 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15018 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15019 ;;
15020 esac
15021 fi
15022 hardcode_libdir_flag_spec_FC='-R$libdir'
15023 hardcode_shlibpath_var_FC=no
15024 case $host_os in
15025 solaris2.[0-5] | solaris2.[0-5].*) ;;
15026 *)
15027 # The compiler driver will combine and reorder linker options,
15028 # but understands `-z linker_flag'. GCC discards it without `$wl',
15029 # but is careful enough not to reorder.
15030 # Supported since Solaris 2.6 (maybe 2.5.1?)
15031 if test "$GCC" = yes; then
15032 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15033 else
15034 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
15035 fi
15036 ;;
15037 esac
15038 link_all_deplibs_FC=yes
15039 ;;
15040
15041 sunos4*)
15042 if test "x$host_vendor" = xsequent; then
15043 # Use $CC to link under sequent, because it throws in some extra .o
15044 # files that make .init and .fini sections work.
15045 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15046 else
15047 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15048 fi
15049 hardcode_libdir_flag_spec_FC='-L$libdir'
15050 hardcode_direct_FC=yes
15051 hardcode_minus_L_FC=yes
15052 hardcode_shlibpath_var_FC=no
15053 ;;
15054
15055 sysv4)
15056 case $host_vendor in
15057 sni)
15058 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15059 hardcode_direct_FC=yes # is this really true???
15060 ;;
15061 siemens)
15062 ## LD is ld it makes a PLAMLIB
15063 ## CC just makes a GrossModule.
15064 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15065 reload_cmds_FC='$CC -r -o $output$reload_objs'
15066 hardcode_direct_FC=no
15067 ;;
15068 motorola)
15069 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15070 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
15071 ;;
15072 esac
15073 runpath_var='LD_RUN_PATH'
15074 hardcode_shlibpath_var_FC=no
15075 ;;
15076
15077 sysv4.3*)
15078 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15079 hardcode_shlibpath_var_FC=no
15080 export_dynamic_flag_spec_FC='-Bexport'
15081 ;;
15082
15083 sysv4*MP*)
15084 if test -d /usr/nec; then
15085 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15086 hardcode_shlibpath_var_FC=no
15087 runpath_var=LD_RUN_PATH
15088 hardcode_runpath_var=yes
15089 ld_shlibs_FC=yes
15090 fi
15091 ;;
15092
15093 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15094 no_undefined_flag_FC='${wl}-z,text'
15095 archive_cmds_need_lc_FC=no
15096 hardcode_shlibpath_var_FC=no
15097 runpath_var='LD_RUN_PATH'
15098
15099 if test "$GCC" = yes; then
15100 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15101 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15102 else
15103 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15104 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15105 fi
15106 ;;
15107
15108 sysv5* | sco3.2v5* | sco5v6*)
15109 # Note: We can NOT use -z defs as we might desire, because we do not
15110 # link with -lc, and that would cause any symbols used from libc to
15111 # always be unresolved, which means just about no library would
15112 # ever link correctly. If we're not using GNU ld we use -z text
15113 # though, which does catch some bad symbols but isn't as heavy-handed
15114 # as -z defs.
15115 no_undefined_flag_FC='${wl}-z,text'
15116 allow_undefined_flag_FC='${wl}-z,nodefs'
15117 archive_cmds_need_lc_FC=no
15118 hardcode_shlibpath_var_FC=no
15119 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
15120 hardcode_libdir_separator_FC=':'
15121 link_all_deplibs_FC=yes
15122 export_dynamic_flag_spec_FC='${wl}-Bexport'
15123 runpath_var='LD_RUN_PATH'
15124
15125 if test "$GCC" = yes; then
15126 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15127 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15128 else
15129 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15130 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15131 fi
15132 ;;
15133
15134 uts4*)
15135 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15136 hardcode_libdir_flag_spec_FC='-L$libdir'
15137 hardcode_shlibpath_var_FC=no
15138 ;;
15139
15140 *)
15141 ld_shlibs_FC=no
15142 ;;
15143 esac
15144
15145 if test x$host_vendor = xsni; then
15146 case $host in
15147 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15148 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
15149 ;;
15150 esac
15151 fi
15152 fi
15153
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
15155 $as_echo "$ld_shlibs_FC" >&6; }
15156 test "$ld_shlibs_FC" = no && can_build_shared=no
15157
15158 with_gnu_ld_FC=$with_gnu_ld
15159
15160
15161
15162
15163
15164
15165 #
15166 # Do we need to explicitly link libc?
15167 #
15168 case "x$archive_cmds_need_lc_FC" in
15169 x|xyes)
15170 # Assume -lc should be added
15171 archive_cmds_need_lc_FC=yes
15172
15173 if test "$enable_shared" = yes && test "$GCC" = yes; then
15174 case $archive_cmds_FC in
15175 *'~'*)
15176 # FIXME: we may have to deal with multi-command sequences.
15177 ;;
15178 '$CC '*)
15179 # Test whether the compiler implicitly links with -lc since on some
15180 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15181 # to ld, don't add -lc before -lgcc.
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15183 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15184 if ${lt_cv_archive_cmds_need_lc_FC+:} false; then :
15185 $as_echo_n "(cached) " >&6
15186 else
15187 $RM conftest*
15188 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15189
15190 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15191 (eval $ac_compile) 2>&5
15192 ac_status=$?
15193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15194 test $ac_status = 0; } 2>conftest.err; then
15195 soname=conftest
15196 lib=conftest
15197 libobjs=conftest.$ac_objext
15198 deplibs=
15199 wl=$lt_prog_compiler_wl_FC
15200 pic_flag=$lt_prog_compiler_pic_FC
15201 compiler_flags=-v
15202 linker_flags=-v
15203 verstring=
15204 output_objdir=.
15205 libname=conftest
15206 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
15207 allow_undefined_flag_FC=
15208 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15209 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15210 ac_status=$?
15211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15212 test $ac_status = 0; }
15213 then
15214 lt_cv_archive_cmds_need_lc_FC=no
15215 else
15216 lt_cv_archive_cmds_need_lc_FC=yes
15217 fi
15218 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
15219 else
15220 cat conftest.err 1>&5
15221 fi
15222 $RM conftest*
15223
15224 fi
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
15226 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
15227 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
15228 ;;
15229 esac
15230 fi
15231 ;;
15232 esac
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15298 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15299
15300 library_names_spec=
15301 libname_spec='lib$name'
15302 soname_spec=
15303 shrext_cmds=".so"
15304 postinstall_cmds=
15305 postuninstall_cmds=
15306 finish_cmds=
15307 finish_eval=
15308 shlibpath_var=
15309 shlibpath_overrides_runpath=unknown
15310 version_type=none
15311 dynamic_linker="$host_os ld.so"
15312 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15313 need_lib_prefix=unknown
15314 hardcode_into_libs=no
15315
15316 # when you set need_version to no, make sure it does not cause -set_version
15317 # flags to be left without arguments
15318 need_version=unknown
15319
15320 case $host_os in
15321 aix3*)
15322 version_type=linux
15323 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15324 shlibpath_var=LIBPATH
15325
15326 # AIX 3 has no versioning support, so we append a major version to the name.
15327 soname_spec='${libname}${release}${shared_ext}$major'
15328 ;;
15329
15330 aix[4-9]*)
15331 version_type=linux
15332 need_lib_prefix=no
15333 need_version=no
15334 hardcode_into_libs=yes
15335 if test "$host_cpu" = ia64; then
15336 # AIX 5 supports IA64
15337 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15338 shlibpath_var=LD_LIBRARY_PATH
15339 else
15340 # With GCC up to 2.95.x, collect2 would create an import file
15341 # for dependence libraries. The import file would start with
15342 # the line `#! .'. This would cause the generated library to
15343 # depend on `.', always an invalid library. This was fixed in
15344 # development snapshots of GCC prior to 3.0.
15345 case $host_os in
15346 aix4 | aix4.[01] | aix4.[01].*)
15347 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15348 echo ' yes '
15349 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15350 :
15351 else
15352 can_build_shared=no
15353 fi
15354 ;;
15355 esac
15356 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15357 # soname into executable. Probably we can add versioning support to
15358 # collect2, so additional links can be useful in future.
15359 if test "$aix_use_runtimelinking" = yes; then
15360 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15361 # instead of lib<name>.a to let people know that these are not
15362 # typical AIX shared libraries.
15363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15364 else
15365 # We preserve .a as extension for shared libraries through AIX4.2
15366 # and later when we are not doing run time linking.
15367 library_names_spec='${libname}${release}.a $libname.a'
15368 soname_spec='${libname}${release}${shared_ext}$major'
15369 fi
15370 shlibpath_var=LIBPATH
15371 fi
15372 ;;
15373
15374 amigaos*)
15375 case $host_cpu in
15376 powerpc)
15377 # Since July 2007 AmigaOS4 officially supports .so libraries.
15378 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15380 ;;
15381 m68k)
15382 library_names_spec='$libname.ixlibrary $libname.a'
15383 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15384 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'
15385 ;;
15386 esac
15387 ;;
15388
15389 beos*)
15390 library_names_spec='${libname}${shared_ext}'
15391 dynamic_linker="$host_os ld.so"
15392 shlibpath_var=LIBRARY_PATH
15393 ;;
15394
15395 bsdi[45]*)
15396 version_type=linux
15397 need_version=no
15398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15399 soname_spec='${libname}${release}${shared_ext}$major'
15400 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15401 shlibpath_var=LD_LIBRARY_PATH
15402 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15403 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15404 # the default ld.so.conf also contains /usr/contrib/lib and
15405 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15406 # libtool to hard-code these into programs
15407 ;;
15408
15409 cygwin* | mingw* | pw32* | cegcc*)
15410 version_type=windows
15411 shrext_cmds=".dll"
15412 need_version=no
15413 need_lib_prefix=no
15414
15415 case $GCC,$host_os in
15416 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15417 library_names_spec='$libname.dll.a'
15418 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15419 postinstall_cmds='base_file=`basename \${file}`~
15420 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15421 dldir=$destdir/`dirname \$dlpath`~
15422 test -d \$dldir || mkdir -p \$dldir~
15423 $install_prog $dir/$dlname \$dldir/$dlname~
15424 chmod a+x \$dldir/$dlname~
15425 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15426 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15427 fi'
15428 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15429 dlpath=$dir/\$dldll~
15430 $RM \$dlpath'
15431 shlibpath_overrides_runpath=yes
15432
15433 case $host_os in
15434 cygwin*)
15435 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15436 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15437
15438 ;;
15439 mingw* | cegcc*)
15440 # MinGW DLLs use traditional 'lib' prefix
15441 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15442 ;;
15443 pw32*)
15444 # pw32 DLLs use 'pw' prefix rather than 'lib'
15445 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15446 ;;
15447 esac
15448 ;;
15449
15450 *)
15451 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15452 ;;
15453 esac
15454 dynamic_linker='Win32 ld.exe'
15455 # FIXME: first we should search . and the directory the executable is in
15456 shlibpath_var=PATH
15457 ;;
15458
15459 darwin* | rhapsody*)
15460 dynamic_linker="$host_os dyld"
15461 version_type=darwin
15462 need_lib_prefix=no
15463 need_version=no
15464 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15465 soname_spec='${libname}${release}${major}$shared_ext'
15466 shlibpath_overrides_runpath=yes
15467 shlibpath_var=DYLD_LIBRARY_PATH
15468 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15469
15470 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15471 ;;
15472
15473 dgux*)
15474 version_type=linux
15475 need_lib_prefix=no
15476 need_version=no
15477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15478 soname_spec='${libname}${release}${shared_ext}$major'
15479 shlibpath_var=LD_LIBRARY_PATH
15480 ;;
15481
15482 freebsd* | dragonfly*)
15483 # DragonFly does not have aout. When/if they implement a new
15484 # versioning mechanism, adjust this.
15485 if test -x /usr/bin/objformat; then
15486 objformat=`/usr/bin/objformat`
15487 else
15488 case $host_os in
15489 freebsd[23].*) objformat=aout ;;
15490 *) objformat=elf ;;
15491 esac
15492 fi
15493 version_type=freebsd-$objformat
15494 case $version_type in
15495 freebsd-elf*)
15496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15497 need_version=no
15498 need_lib_prefix=no
15499 ;;
15500 freebsd-*)
15501 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15502 need_version=yes
15503 ;;
15504 esac
15505 shlibpath_var=LD_LIBRARY_PATH
15506 case $host_os in
15507 freebsd2.*)
15508 shlibpath_overrides_runpath=yes
15509 ;;
15510 freebsd3.[01]* | freebsdelf3.[01]*)
15511 shlibpath_overrides_runpath=yes
15512 hardcode_into_libs=yes
15513 ;;
15514 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15515 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15516 shlibpath_overrides_runpath=no
15517 hardcode_into_libs=yes
15518 ;;
15519 *) # from 4.6 on, and DragonFly
15520 shlibpath_overrides_runpath=yes
15521 hardcode_into_libs=yes
15522 ;;
15523 esac
15524 ;;
15525
15526 gnu*)
15527 version_type=linux
15528 need_lib_prefix=no
15529 need_version=no
15530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15531 soname_spec='${libname}${release}${shared_ext}$major'
15532 shlibpath_var=LD_LIBRARY_PATH
15533 hardcode_into_libs=yes
15534 ;;
15535
15536 haiku*)
15537 version_type=linux
15538 need_lib_prefix=no
15539 need_version=no
15540 dynamic_linker="$host_os runtime_loader"
15541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15542 soname_spec='${libname}${release}${shared_ext}$major'
15543 shlibpath_var=LIBRARY_PATH
15544 shlibpath_overrides_runpath=yes
15545 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
15546 hardcode_into_libs=yes
15547 ;;
15548
15549 hpux9* | hpux10* | hpux11*)
15550 # Give a soname corresponding to the major version so that dld.sl refuses to
15551 # link against other versions.
15552 version_type=sunos
15553 need_lib_prefix=no
15554 need_version=no
15555 case $host_cpu in
15556 ia64*)
15557 shrext_cmds='.so'
15558 hardcode_into_libs=yes
15559 dynamic_linker="$host_os dld.so"
15560 shlibpath_var=LD_LIBRARY_PATH
15561 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15563 soname_spec='${libname}${release}${shared_ext}$major'
15564 if test "X$HPUX_IA64_MODE" = X32; then
15565 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15566 else
15567 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15568 fi
15569 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15570 ;;
15571 hppa*64*)
15572 shrext_cmds='.sl'
15573 hardcode_into_libs=yes
15574 dynamic_linker="$host_os dld.sl"
15575 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15576 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15578 soname_spec='${libname}${release}${shared_ext}$major'
15579 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15580 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15581 ;;
15582 *)
15583 shrext_cmds='.sl'
15584 dynamic_linker="$host_os dld.sl"
15585 shlibpath_var=SHLIB_PATH
15586 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15588 soname_spec='${libname}${release}${shared_ext}$major'
15589 ;;
15590 esac
15591 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15592 postinstall_cmds='chmod 555 $lib'
15593 # or fails outright, so override atomically:
15594 install_override_mode=555
15595 ;;
15596
15597 interix[3-9]*)
15598 version_type=linux
15599 need_lib_prefix=no
15600 need_version=no
15601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15602 soname_spec='${libname}${release}${shared_ext}$major'
15603 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15604 shlibpath_var=LD_LIBRARY_PATH
15605 shlibpath_overrides_runpath=no
15606 hardcode_into_libs=yes
15607 ;;
15608
15609 irix5* | irix6* | nonstopux*)
15610 case $host_os in
15611 nonstopux*) version_type=nonstopux ;;
15612 *)
15613 if test "$lt_cv_prog_gnu_ld" = yes; then
15614 version_type=linux
15615 else
15616 version_type=irix
15617 fi ;;
15618 esac
15619 need_lib_prefix=no
15620 need_version=no
15621 soname_spec='${libname}${release}${shared_ext}$major'
15622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15623 case $host_os in
15624 irix5* | nonstopux*)
15625 libsuff= shlibsuff=
15626 ;;
15627 *)
15628 case $LD in # libtool.m4 will add one of these switches to LD
15629 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15630 libsuff= shlibsuff= libmagic=32-bit;;
15631 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15632 libsuff=32 shlibsuff=N32 libmagic=N32;;
15633 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15634 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15635 *) libsuff= shlibsuff= libmagic=never-match;;
15636 esac
15637 ;;
15638 esac
15639 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15640 shlibpath_overrides_runpath=no
15641 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15642 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15643 hardcode_into_libs=yes
15644 ;;
15645
15646 # No shared lib support for Linux oldld, aout, or coff.
15647 linux*oldld* | linux*aout* | linux*coff*)
15648 dynamic_linker=no
15649 ;;
15650
15651 # This must be Linux ELF.
15652
15653 # uclinux* changes (here and below) have been submitted to the libtool
15654 # project, but have not yet been accepted: they are GCC-local changes
15655 # for the time being. (See
15656 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
15657 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
15658 version_type=linux
15659 need_lib_prefix=no
15660 need_version=no
15661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15662 soname_spec='${libname}${release}${shared_ext}$major'
15663 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15664 shlibpath_var=LD_LIBRARY_PATH
15665 shlibpath_overrides_runpath=no
15666
15667 # Some binutils ld are patched to set DT_RUNPATH
15668 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15669 $as_echo_n "(cached) " >&6
15670 else
15671 lt_cv_shlibpath_overrides_runpath=no
15672 save_LDFLAGS=$LDFLAGS
15673 save_libdir=$libdir
15674 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
15675 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
15676 if test x$gcc_no_link = xyes; then
15677 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
15678 fi
15679 cat > conftest.$ac_ext <<_ACEOF
15680 program main
15681
15682 end
15683 _ACEOF
15684 if ac_fn_fc_try_link "$LINENO"; then :
15685 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15686 lt_cv_shlibpath_overrides_runpath=yes
15687 fi
15688 fi
15689 rm -f core conftest.err conftest.$ac_objext \
15690 conftest$ac_exeext conftest.$ac_ext
15691 LDFLAGS=$save_LDFLAGS
15692 libdir=$save_libdir
15693
15694 fi
15695
15696 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15697
15698 # This implies no fast_install, which is unacceptable.
15699 # Some rework will be needed to allow for fast_install
15700 # before this can be enabled.
15701 hardcode_into_libs=yes
15702
15703 # Append ld.so.conf contents to the search path
15704 if test -f /etc/ld.so.conf; then
15705 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' ' '`
15706 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15707 fi
15708
15709 # We used to test for /lib/ld.so.1 and disable shared libraries on
15710 # powerpc, because MkLinux only supported shared libraries with the
15711 # GNU dynamic linker. Since this was broken with cross compilers,
15712 # most powerpc-linux boxes support dynamic linking these days and
15713 # people can always --disable-shared, the test was removed, and we
15714 # assume the GNU/Linux dynamic linker is in use.
15715 dynamic_linker='GNU/Linux ld.so'
15716 ;;
15717
15718 netbsd*)
15719 version_type=sunos
15720 need_lib_prefix=no
15721 need_version=no
15722 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15724 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15725 dynamic_linker='NetBSD (a.out) ld.so'
15726 else
15727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15728 soname_spec='${libname}${release}${shared_ext}$major'
15729 dynamic_linker='NetBSD ld.elf_so'
15730 fi
15731 shlibpath_var=LD_LIBRARY_PATH
15732 shlibpath_overrides_runpath=yes
15733 hardcode_into_libs=yes
15734 ;;
15735
15736 newsos6)
15737 version_type=linux
15738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15739 shlibpath_var=LD_LIBRARY_PATH
15740 shlibpath_overrides_runpath=yes
15741 ;;
15742
15743 *nto* | *qnx*)
15744 version_type=qnx
15745 need_lib_prefix=no
15746 need_version=no
15747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15748 soname_spec='${libname}${release}${shared_ext}$major'
15749 shlibpath_var=LD_LIBRARY_PATH
15750 shlibpath_overrides_runpath=no
15751 hardcode_into_libs=yes
15752 dynamic_linker='ldqnx.so'
15753 ;;
15754
15755 openbsd*)
15756 version_type=sunos
15757 sys_lib_dlsearch_path_spec="/usr/lib"
15758 need_lib_prefix=no
15759 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15760 case $host_os in
15761 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15762 *) need_version=no ;;
15763 esac
15764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15765 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15766 shlibpath_var=LD_LIBRARY_PATH
15767 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15768 case $host_os in
15769 openbsd2.[89] | openbsd2.[89].*)
15770 shlibpath_overrides_runpath=no
15771 ;;
15772 *)
15773 shlibpath_overrides_runpath=yes
15774 ;;
15775 esac
15776 else
15777 shlibpath_overrides_runpath=yes
15778 fi
15779 ;;
15780
15781 os2*)
15782 libname_spec='$name'
15783 shrext_cmds=".dll"
15784 need_lib_prefix=no
15785 library_names_spec='$libname${shared_ext} $libname.a'
15786 dynamic_linker='OS/2 ld.exe'
15787 shlibpath_var=LIBPATH
15788 ;;
15789
15790 osf3* | osf4* | osf5*)
15791 version_type=osf
15792 need_lib_prefix=no
15793 need_version=no
15794 soname_spec='${libname}${release}${shared_ext}$major'
15795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15796 shlibpath_var=LD_LIBRARY_PATH
15797 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15798 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15799 ;;
15800
15801 rdos*)
15802 dynamic_linker=no
15803 ;;
15804
15805 solaris*)
15806 version_type=linux
15807 need_lib_prefix=no
15808 need_version=no
15809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15810 soname_spec='${libname}${release}${shared_ext}$major'
15811 shlibpath_var=LD_LIBRARY_PATH
15812 shlibpath_overrides_runpath=yes
15813 hardcode_into_libs=yes
15814 # ldd complains unless libraries are executable
15815 postinstall_cmds='chmod +x $lib'
15816 ;;
15817
15818 sunos4*)
15819 version_type=sunos
15820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15821 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15822 shlibpath_var=LD_LIBRARY_PATH
15823 shlibpath_overrides_runpath=yes
15824 if test "$with_gnu_ld" = yes; then
15825 need_lib_prefix=no
15826 fi
15827 need_version=yes
15828 ;;
15829
15830 sysv4 | sysv4.3*)
15831 version_type=linux
15832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15833 soname_spec='${libname}${release}${shared_ext}$major'
15834 shlibpath_var=LD_LIBRARY_PATH
15835 case $host_vendor in
15836 sni)
15837 shlibpath_overrides_runpath=no
15838 need_lib_prefix=no
15839 runpath_var=LD_RUN_PATH
15840 ;;
15841 siemens)
15842 need_lib_prefix=no
15843 ;;
15844 motorola)
15845 need_lib_prefix=no
15846 need_version=no
15847 shlibpath_overrides_runpath=no
15848 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15849 ;;
15850 esac
15851 ;;
15852
15853 sysv4*MP*)
15854 if test -d /usr/nec ;then
15855 version_type=linux
15856 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15857 soname_spec='$libname${shared_ext}.$major'
15858 shlibpath_var=LD_LIBRARY_PATH
15859 fi
15860 ;;
15861
15862 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15863 version_type=freebsd-elf
15864 need_lib_prefix=no
15865 need_version=no
15866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15867 soname_spec='${libname}${release}${shared_ext}$major'
15868 shlibpath_var=LD_LIBRARY_PATH
15869 shlibpath_overrides_runpath=yes
15870 hardcode_into_libs=yes
15871 if test "$with_gnu_ld" = yes; then
15872 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15873 else
15874 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15875 case $host_os in
15876 sco3.2v5*)
15877 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15878 ;;
15879 esac
15880 fi
15881 sys_lib_dlsearch_path_spec='/usr/lib'
15882 ;;
15883
15884 tpf*)
15885 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15886 version_type=linux
15887 need_lib_prefix=no
15888 need_version=no
15889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15890 shlibpath_var=LD_LIBRARY_PATH
15891 shlibpath_overrides_runpath=no
15892 hardcode_into_libs=yes
15893 ;;
15894
15895 uts4*)
15896 version_type=linux
15897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15898 soname_spec='${libname}${release}${shared_ext}$major'
15899 shlibpath_var=LD_LIBRARY_PATH
15900 ;;
15901
15902 *)
15903 dynamic_linker=no
15904 ;;
15905 esac
15906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15907 $as_echo "$dynamic_linker" >&6; }
15908 test "$dynamic_linker" = no && can_build_shared=no
15909
15910 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15911 if test "$GCC" = yes; then
15912 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15913 fi
15914
15915 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15916 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15917 fi
15918 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15919 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15920 fi
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
15955
15956
15957
15958
15959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15960 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15961 hardcode_action_FC=
15962 if test -n "$hardcode_libdir_flag_spec_FC" ||
15963 test -n "$runpath_var_FC" ||
15964 test "X$hardcode_automatic_FC" = "Xyes" ; then
15965
15966 # We can hardcode non-existent directories.
15967 if test "$hardcode_direct_FC" != no &&
15968 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15969 # have to relink, otherwise we might link with an installed library
15970 # when we should be linking with a yet-to-be-installed one
15971 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
15972 test "$hardcode_minus_L_FC" != no; then
15973 # Linking always hardcodes the temporary library directory.
15974 hardcode_action_FC=relink
15975 else
15976 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15977 hardcode_action_FC=immediate
15978 fi
15979 else
15980 # We cannot hardcode anything, or else we can only hardcode existing
15981 # directories.
15982 hardcode_action_FC=unsupported
15983 fi
15984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
15985 $as_echo "$hardcode_action_FC" >&6; }
15986
15987 if test "$hardcode_action_FC" = relink ||
15988 test "$inherit_rpath_FC" = yes; then
15989 # Fast installation is not supported
15990 enable_fast_install=no
15991 elif test "$shlibpath_overrides_runpath" = yes ||
15992 test "$enable_shared" = no; then
15993 # Fast installation is not necessary
15994 enable_fast_install=needless
15995 fi
15996
15997
15998
15999
16000
16001
16002
16003 fi # test -n "$compiler"
16004
16005 GCC=$lt_save_GCC
16006 CC="$lt_save_CC"
16007 fi # test "$_lt_disable_FC" != yes
16008
16009 ac_ext=c
16010 ac_cpp='$CPP $CPPFLAGS'
16011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16014
16015
16016
16017 # extra LD Flags which are required for targets
16018 case "${host}" in
16019 *-darwin*)
16020 # Darwin needs -single_module when linking libgfortran
16021 extra_ldflags_libgfortran=-Wl,-single_module
16022 ;;
16023 esac
16024
16025
16026 # We need a working compiler at that point, otherwise give a clear
16027 # error message and bail out.
16028
16029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GNU Fortran compiler is working" >&5
16030 $as_echo_n "checking whether the GNU Fortran compiler is working... " >&6; }
16031 ac_ext=${ac_fc_srcext-f}
16032 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
16033 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
16034 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
16035
16036 cat > conftest.$ac_ext <<_ACEOF
16037
16038 program foo
16039 real, parameter :: bar = sin (12.34 / 2.5)
16040 end program foo
16041 _ACEOF
16042 if ac_fn_fc_try_compile "$LINENO"; then :
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16044 $as_echo "yes" >&6; }
16045 else
16046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16047 $as_echo "no" >&6; }
16048 as_fn_error $? "GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla, attaching $PWD/config.log" "$LINENO" 5
16049
16050 fi
16051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16052 ac_ext=c
16053 ac_cpp='$CPP $CPPFLAGS'
16054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16057
16058
16059
16060 # Check whether --enable-largefile was given.
16061 if test "${enable_largefile+set}" = set; then :
16062 enableval=$enable_largefile;
16063 fi
16064
16065 if test "$enable_largefile" != no; then
16066
16067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
16068 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
16069 if ${ac_cv_sys_largefile_CC+:} false; then :
16070 $as_echo_n "(cached) " >&6
16071 else
16072 ac_cv_sys_largefile_CC=no
16073 if test "$GCC" != yes; then
16074 ac_save_CC=$CC
16075 while :; do
16076 # IRIX 6.2 and later do not support large files by default,
16077 # so use the C compiler's -n32 option if that helps.
16078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16079 /* end confdefs.h. */
16080 #include <sys/types.h>
16081 /* Check that off_t can represent 2**63 - 1 correctly.
16082 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16083 since some C++ compilers masquerading as C compilers
16084 incorrectly reject 9223372036854775807. */
16085 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16086 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16087 && LARGE_OFF_T % 2147483647 == 1)
16088 ? 1 : -1];
16089 int
16090 main ()
16091 {
16092
16093 ;
16094 return 0;
16095 }
16096 _ACEOF
16097 if ac_fn_c_try_compile "$LINENO"; then :
16098 break
16099 fi
16100 rm -f core conftest.err conftest.$ac_objext
16101 CC="$CC -n32"
16102 if ac_fn_c_try_compile "$LINENO"; then :
16103 ac_cv_sys_largefile_CC=' -n32'; break
16104 fi
16105 rm -f core conftest.err conftest.$ac_objext
16106 break
16107 done
16108 CC=$ac_save_CC
16109 rm -f conftest.$ac_ext
16110 fi
16111 fi
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
16113 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
16114 if test "$ac_cv_sys_largefile_CC" != no; then
16115 CC=$CC$ac_cv_sys_largefile_CC
16116 fi
16117
16118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16119 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
16120 if ${ac_cv_sys_file_offset_bits+:} false; then :
16121 $as_echo_n "(cached) " >&6
16122 else
16123 while :; do
16124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16125 /* end confdefs.h. */
16126 #include <sys/types.h>
16127 /* Check that off_t can represent 2**63 - 1 correctly.
16128 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16129 since some C++ compilers masquerading as C compilers
16130 incorrectly reject 9223372036854775807. */
16131 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16132 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16133 && LARGE_OFF_T % 2147483647 == 1)
16134 ? 1 : -1];
16135 int
16136 main ()
16137 {
16138
16139 ;
16140 return 0;
16141 }
16142 _ACEOF
16143 if ac_fn_c_try_compile "$LINENO"; then :
16144 ac_cv_sys_file_offset_bits=no; break
16145 fi
16146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16148 /* end confdefs.h. */
16149 #define _FILE_OFFSET_BITS 64
16150 #include <sys/types.h>
16151 /* Check that off_t can represent 2**63 - 1 correctly.
16152 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16153 since some C++ compilers masquerading as C compilers
16154 incorrectly reject 9223372036854775807. */
16155 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16156 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16157 && LARGE_OFF_T % 2147483647 == 1)
16158 ? 1 : -1];
16159 int
16160 main ()
16161 {
16162
16163 ;
16164 return 0;
16165 }
16166 _ACEOF
16167 if ac_fn_c_try_compile "$LINENO"; then :
16168 ac_cv_sys_file_offset_bits=64; break
16169 fi
16170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16171 ac_cv_sys_file_offset_bits=unknown
16172 break
16173 done
16174 fi
16175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
16176 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
16177 case $ac_cv_sys_file_offset_bits in #(
16178 no | unknown) ;;
16179 *)
16180 cat >>confdefs.h <<_ACEOF
16181 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
16182 _ACEOF
16183 ;;
16184 esac
16185 rm -rf conftest*
16186 if test $ac_cv_sys_file_offset_bits = unknown; then
16187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
16188 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
16189 if ${ac_cv_sys_large_files+:} false; then :
16190 $as_echo_n "(cached) " >&6
16191 else
16192 while :; do
16193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16194 /* end confdefs.h. */
16195 #include <sys/types.h>
16196 /* Check that off_t can represent 2**63 - 1 correctly.
16197 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16198 since some C++ compilers masquerading as C compilers
16199 incorrectly reject 9223372036854775807. */
16200 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16201 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16202 && LARGE_OFF_T % 2147483647 == 1)
16203 ? 1 : -1];
16204 int
16205 main ()
16206 {
16207
16208 ;
16209 return 0;
16210 }
16211 _ACEOF
16212 if ac_fn_c_try_compile "$LINENO"; then :
16213 ac_cv_sys_large_files=no; break
16214 fi
16215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16217 /* end confdefs.h. */
16218 #define _LARGE_FILES 1
16219 #include <sys/types.h>
16220 /* Check that off_t can represent 2**63 - 1 correctly.
16221 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16222 since some C++ compilers masquerading as C compilers
16223 incorrectly reject 9223372036854775807. */
16224 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16225 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16226 && LARGE_OFF_T % 2147483647 == 1)
16227 ? 1 : -1];
16228 int
16229 main ()
16230 {
16231
16232 ;
16233 return 0;
16234 }
16235 _ACEOF
16236 if ac_fn_c_try_compile "$LINENO"; then :
16237 ac_cv_sys_large_files=1; break
16238 fi
16239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16240 ac_cv_sys_large_files=unknown
16241 break
16242 done
16243 fi
16244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
16245 $as_echo "$ac_cv_sys_large_files" >&6; }
16246 case $ac_cv_sys_large_files in #(
16247 no | unknown) ;;
16248 *)
16249 cat >>confdefs.h <<_ACEOF
16250 #define _LARGE_FILES $ac_cv_sys_large_files
16251 _ACEOF
16252 ;;
16253 esac
16254 rm -rf conftest*
16255 fi
16256
16257
16258 fi
16259
16260
16261 # Types
16262 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
16263 if test "x$ac_cv_type_off_t" = xyes; then :
16264
16265 else
16266
16267 cat >>confdefs.h <<_ACEOF
16268 #define off_t long int
16269 _ACEOF
16270
16271 fi
16272
16273
16274 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
16275 if test "x$ac_cv_type_intptr_t" = xyes; then :
16276
16277 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
16278
16279 else
16280 for ac_type in 'int' 'long int' 'long long int'; do
16281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16282 /* end confdefs.h. */
16283 $ac_includes_default
16284 int
16285 main ()
16286 {
16287 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16288 test_array [0] = 0;
16289 return test_array [0];
16290
16291 ;
16292 return 0;
16293 }
16294 _ACEOF
16295 if ac_fn_c_try_compile "$LINENO"; then :
16296
16297 cat >>confdefs.h <<_ACEOF
16298 #define intptr_t $ac_type
16299 _ACEOF
16300
16301 ac_type=
16302 fi
16303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16304 test -z "$ac_type" && break
16305 done
16306 fi
16307
16308
16309
16310 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
16311 if test "x$ac_cv_type_uintptr_t" = xyes; then :
16312
16313 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
16314
16315 else
16316 for ac_type in 'unsigned int' 'unsigned long int' \
16317 'unsigned long long int'; do
16318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16319 /* end confdefs.h. */
16320 $ac_includes_default
16321 int
16322 main ()
16323 {
16324 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16325 test_array [0] = 0;
16326 return test_array [0];
16327
16328 ;
16329 return 0;
16330 }
16331 _ACEOF
16332 if ac_fn_c_try_compile "$LINENO"; then :
16333
16334 cat >>confdefs.h <<_ACEOF
16335 #define uintptr_t $ac_type
16336 _ACEOF
16337
16338 ac_type=
16339 fi
16340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16341 test -z "$ac_type" && break
16342 done
16343 fi
16344
16345
16346 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
16347 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
16348
16349 cat >>confdefs.h <<_ACEOF
16350 #define HAVE_PTRDIFF_T 1
16351 _ACEOF
16352
16353
16354 fi
16355
16356
16357 # check header files (we assume C89 is available, so don't check for that)
16358
16359
16360
16361 for ac_header in $ac_header_list
16362 do :
16363 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16364 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16365 "
16366 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16367 cat >>confdefs.h <<_ACEOF
16368 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16369 _ACEOF
16370
16371 fi
16372
16373 done
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
16409
16410
16411
16412
16413 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
16414
16415 acx_cv_header_stdint=stddef.h
16416 acx_cv_header_stdint_kind="(already complete)"
16417 for i in stdint.h $inttype_headers; do
16418 unset ac_cv_type_uintptr_t
16419 unset ac_cv_type_uintmax_t
16420 unset ac_cv_type_int_least32_t
16421 unset ac_cv_type_int_fast32_t
16422 unset ac_cv_type_uint64_t
16423 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
16424 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
16425 #include <$i>
16426 "
16427 if test "x$ac_cv_type_uintmax_t" = xyes; then :
16428 acx_cv_header_stdint=$i
16429 else
16430 continue
16431 fi
16432
16433 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16434 #include <$i>
16435 "
16436 if test "x$ac_cv_type_uintptr_t" = xyes; then :
16437
16438 else
16439 acx_cv_header_stdint_kind="(mostly complete)"
16440 fi
16441
16442 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
16443 #include <$i>
16444 "
16445 if test "x$ac_cv_type_int_least32_t" = xyes; then :
16446
16447 else
16448 acx_cv_header_stdint_kind="(mostly complete)"
16449 fi
16450
16451 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
16452 #include <$i>
16453 "
16454 if test "x$ac_cv_type_int_fast32_t" = xyes; then :
16455
16456 else
16457 acx_cv_header_stdint_kind="(mostly complete)"
16458 fi
16459
16460 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16461 #include <$i>
16462 "
16463 if test "x$ac_cv_type_uint64_t" = xyes; then :
16464
16465 else
16466 acx_cv_header_stdint_kind="(lacks uint64_t)"
16467 fi
16468
16469 break
16470 done
16471 if test "$acx_cv_header_stdint" = stddef.h; then
16472 acx_cv_header_stdint_kind="(lacks uintmax_t)"
16473 for i in stdint.h $inttype_headers; do
16474 unset ac_cv_type_uintptr_t
16475 unset ac_cv_type_uint32_t
16476 unset ac_cv_type_uint64_t
16477 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
16478 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
16479 #include <$i>
16480 "
16481 if test "x$ac_cv_type_uint32_t" = xyes; then :
16482 acx_cv_header_stdint=$i
16483 else
16484 continue
16485 fi
16486
16487 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16488 #include <$i>
16489 "
16490 if test "x$ac_cv_type_uint64_t" = xyes; then :
16491
16492 fi
16493
16494 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16495 #include <$i>
16496 "
16497 if test "x$ac_cv_type_uintptr_t" = xyes; then :
16498
16499 fi
16500
16501 break
16502 done
16503 fi
16504 if test "$acx_cv_header_stdint" = stddef.h; then
16505 acx_cv_header_stdint_kind="(u_intXX_t style)"
16506 for i in sys/types.h $inttype_headers; do
16507 unset ac_cv_type_u_int32_t
16508 unset ac_cv_type_u_int64_t
16509 $as_echo_n "looking for u_intXX_t types in $i, " >&6
16510 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
16511 #include <$i>
16512 "
16513 if test "x$ac_cv_type_u_int32_t" = xyes; then :
16514 acx_cv_header_stdint=$i
16515 else
16516 continue
16517 fi
16518
16519 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
16520 #include <$i>
16521 "
16522 if test "x$ac_cv_type_u_int64_t" = xyes; then :
16523
16524 fi
16525
16526 break
16527 done
16528 fi
16529 if test "$acx_cv_header_stdint" = stddef.h; then
16530 acx_cv_header_stdint_kind="(using manual detection)"
16531 fi
16532
16533 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
16534 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
16535 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
16536 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
16537 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
16538
16539 # ----------------- Summarize what we found so far
16540
16541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
16542 $as_echo_n "checking what to include in gstdint.h... " >&6; }
16543
16544 case `$as_basename -- gstdint.h ||
16545 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
16546 Xgstdint.h : 'X\(//\)$' \| \
16547 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
16548 $as_echo X/gstdint.h |
16549 sed '/^.*\/\([^/][^/]*\)\/*$/{
16550 s//\1/
16551 q
16552 }
16553 /^X\/\(\/\/\)$/{
16554 s//\1/
16555 q
16556 }
16557 /^X\/\(\/\).*/{
16558 s//\1/
16559 q
16560 }
16561 s/.*/./; q'` in
16562 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16563 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16564 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16565 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16566 *) ;;
16567 esac
16568
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
16570 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
16571
16572 # ----------------- done included file, check C basic types --------
16573
16574 # Lacking an uintptr_t? Test size of void *
16575 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
16576 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
16577 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16578 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16579 # This bug is HP SR number 8606223364.
16580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16581 $as_echo_n "checking size of void *... " >&6; }
16582 if ${ac_cv_sizeof_void_p+:} false; then :
16583 $as_echo_n "(cached) " >&6
16584 else
16585 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
16586
16587 else
16588 if test "$ac_cv_type_void_p" = yes; then
16589 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16590 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16591 as_fn_error 77 "cannot compute sizeof (void *)
16592 See \`config.log' for more details" "$LINENO" 5; }
16593 else
16594 ac_cv_sizeof_void_p=0
16595 fi
16596 fi
16597
16598 fi
16599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16600 $as_echo "$ac_cv_sizeof_void_p" >&6; }
16601
16602
16603
16604 cat >>confdefs.h <<_ACEOF
16605 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16606 _ACEOF
16607
16608 ;;
16609 esac
16610
16611 # Lacking an uint64_t? Test size of long
16612 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
16613 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
16614 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16615 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16616 # This bug is HP SR number 8606223364.
16617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16618 $as_echo_n "checking size of long... " >&6; }
16619 if ${ac_cv_sizeof_long+:} false; then :
16620 $as_echo_n "(cached) " >&6
16621 else
16622 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16623
16624 else
16625 if test "$ac_cv_type_long" = yes; then
16626 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16627 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16628 as_fn_error 77 "cannot compute sizeof (long)
16629 See \`config.log' for more details" "$LINENO" 5; }
16630 else
16631 ac_cv_sizeof_long=0
16632 fi
16633 fi
16634
16635 fi
16636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16637 $as_echo "$ac_cv_sizeof_long" >&6; }
16638
16639
16640
16641 cat >>confdefs.h <<_ACEOF
16642 #define SIZEOF_LONG $ac_cv_sizeof_long
16643 _ACEOF
16644
16645 ;;
16646 esac
16647
16648 if test $acx_cv_header_stdint = stddef.h; then
16649 # Lacking a good header? Test size of everything and deduce all types.
16650 # The cast to long int works around a bug in the HP C Compiler
16651 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16652 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16653 # This bug is HP SR number 8606223364.
16654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16655 $as_echo_n "checking size of int... " >&6; }
16656 if ${ac_cv_sizeof_int+:} false; then :
16657 $as_echo_n "(cached) " >&6
16658 else
16659 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
16660
16661 else
16662 if test "$ac_cv_type_int" = yes; then
16663 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16665 as_fn_error 77 "cannot compute sizeof (int)
16666 See \`config.log' for more details" "$LINENO" 5; }
16667 else
16668 ac_cv_sizeof_int=0
16669 fi
16670 fi
16671
16672 fi
16673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16674 $as_echo "$ac_cv_sizeof_int" >&6; }
16675
16676
16677
16678 cat >>confdefs.h <<_ACEOF
16679 #define SIZEOF_INT $ac_cv_sizeof_int
16680 _ACEOF
16681
16682
16683 # The cast to long int works around a bug in the HP C Compiler
16684 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16685 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16686 # This bug is HP SR number 8606223364.
16687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16688 $as_echo_n "checking size of short... " >&6; }
16689 if ${ac_cv_sizeof_short+:} false; then :
16690 $as_echo_n "(cached) " >&6
16691 else
16692 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
16693
16694 else
16695 if test "$ac_cv_type_short" = yes; then
16696 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16697 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16698 as_fn_error 77 "cannot compute sizeof (short)
16699 See \`config.log' for more details" "$LINENO" 5; }
16700 else
16701 ac_cv_sizeof_short=0
16702 fi
16703 fi
16704
16705 fi
16706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16707 $as_echo "$ac_cv_sizeof_short" >&6; }
16708
16709
16710
16711 cat >>confdefs.h <<_ACEOF
16712 #define SIZEOF_SHORT $ac_cv_sizeof_short
16713 _ACEOF
16714
16715
16716 # The cast to long int works around a bug in the HP C Compiler
16717 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16718 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16719 # This bug is HP SR number 8606223364.
16720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16721 $as_echo_n "checking size of char... " >&6; }
16722 if ${ac_cv_sizeof_char+:} false; then :
16723 $as_echo_n "(cached) " >&6
16724 else
16725 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
16726
16727 else
16728 if test "$ac_cv_type_char" = yes; then
16729 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16730 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16731 as_fn_error 77 "cannot compute sizeof (char)
16732 See \`config.log' for more details" "$LINENO" 5; }
16733 else
16734 ac_cv_sizeof_char=0
16735 fi
16736 fi
16737
16738 fi
16739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16740 $as_echo "$ac_cv_sizeof_char" >&6; }
16741
16742
16743
16744 cat >>confdefs.h <<_ACEOF
16745 #define SIZEOF_CHAR $ac_cv_sizeof_char
16746 _ACEOF
16747
16748
16749
16750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
16751 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
16752 case "$ac_cv_sizeof_char" in
16753 1) acx_cv_type_int8_t=char ;;
16754 *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5
16755 esac
16756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
16757 $as_echo "$acx_cv_type_int8_t" >&6; }
16758
16759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
16760 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
16761 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16762 2:*) acx_cv_type_int16_t=int ;;
16763 *:2) acx_cv_type_int16_t=short ;;
16764 *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5
16765 esac
16766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16767 $as_echo "$acx_cv_type_int16_t" >&6; }
16768
16769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16770 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
16771 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16772 4:*) acx_cv_type_int32_t=int ;;
16773 *:4) acx_cv_type_int32_t=long ;;
16774 *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5
16775 esac
16776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16777 $as_echo "$acx_cv_type_int32_t" >&6; }
16778 fi
16779
16780 # These tests are here to make the output prettier
16781
16782 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16783 case "$ac_cv_sizeof_long" in
16784 8) acx_cv_type_int64_t=long ;;
16785 esac
16786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16787 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
16788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16789 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16790 fi
16791
16792 # Now we can use the above types
16793
16794 if test "$ac_cv_type_uintptr_t" != yes; then
16795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16796 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16797 case $ac_cv_sizeof_void_p in
16798 2) acx_cv_type_intptr_t=int16_t ;;
16799 4) acx_cv_type_intptr_t=int32_t ;;
16800 8) acx_cv_type_intptr_t=int64_t ;;
16801 *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5
16802 esac
16803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16804 $as_echo "$acx_cv_type_intptr_t" >&6; }
16805 fi
16806
16807 # ----------------- done all checks, emit header -------------
16808 ac_config_commands="$ac_config_commands gstdint.h"
16809
16810
16811
16812
16813 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
16814 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
16815
16816 cat >>confdefs.h <<_ACEOF
16817 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
16818 _ACEOF
16819
16820
16821 fi
16822 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
16823 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
16824
16825 cat >>confdefs.h <<_ACEOF
16826 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
16827 _ACEOF
16828
16829
16830 fi
16831 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
16832 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
16833
16834 cat >>confdefs.h <<_ACEOF
16835 #define HAVE_STRUCT_STAT_ST_RDEV 1
16836 _ACEOF
16837
16838
16839 fi
16840
16841
16842 case "${host}--x${with_newlib}" in
16843 mips*--xyes)
16844 hardwire_newlib=1;;
16845 nvptx*--xyes)
16846 hardwire_newlib=1;;
16847 esac
16848
16849 # Check for library functions.
16850 if test "${hardwire_newlib:-0}" -eq 1; then
16851 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
16852 # may not work correctly, because the compiler may not be able to
16853 # link executables.
16854
16855 $as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
16856
16857
16858 $as_echo "#define HAVE_STRTOF 1" >>confdefs.h
16859
16860
16861 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
16862
16863
16864 $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
16865
16866
16867 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
16868
16869
16870 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
16871
16872
16873 $as_echo "#define HAVE_STRNLEN 1" >>confdefs.h
16874
16875
16876 $as_echo "#define HAVE_STRNDUP 1" >>confdefs.h
16877
16878
16879 # At some point, we should differentiate between architectures
16880 # like x86, which have long double versions, and alpha/powerpc/etc.,
16881 # which don't. For the time being, punt.
16882 if test x"long_double_math_on_this_cpu" = x"yes"; then
16883
16884 $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
16885
16886 fi
16887 else
16888
16889
16890
16891 for ac_func in $ac_func_list
16892 do :
16893 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16894 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16895 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16896 cat >>confdefs.h <<_ACEOF
16897 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16898 _ACEOF
16899
16900 fi
16901 done
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
17008
17009
17010
17011
17012 fi
17013
17014 # Check strerror_r, cannot be above as versions with two and three arguments exist
17015
17016 ac_save_CFLAGS="$CFLAGS"
17017 CFLAGS="-Wimplicit-function-declaration -Werror"
17018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17019 /* end confdefs.h. */
17020 #define _GNU_SOURCE 1
17021 #include <string.h>
17022 #include <locale.h>
17023 int
17024 main ()
17025 {
17026 char s[128]; strerror_r(5, s, 128);
17027 ;
17028 return 0;
17029 }
17030 _ACEOF
17031 if ac_fn_c_try_compile "$LINENO"; then :
17032
17033 $as_echo "#define HAVE_STRERROR_R 1" >>confdefs.h
17034
17035 fi
17036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17037 CFLAGS="$ac_save_CFLAGS"
17038
17039 ac_save_CFLAGS="$CFLAGS"
17040 CFLAGS="-Wimplicit-function-declaration -Werror"
17041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17042 /* end confdefs.h. */
17043 #define _GNU_SOURCE 1
17044 #include <string.h>
17045 #include <locale.h>
17046 int
17047 main ()
17048 {
17049 char s[128]; strerror_r(5, s);
17050 ;
17051 return 0;
17052 }
17053 _ACEOF
17054 if ac_fn_c_try_compile "$LINENO"; then :
17055
17056 $as_echo "#define HAVE_STRERROR_R_2ARGS 1" >>confdefs.h
17057
17058 fi
17059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17060 CFLAGS="$ac_save_CFLAGS"
17061
17062
17063 # Check for C99 (and other IEEE) math functions
17064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
17065 $as_echo_n "checking for sin in -lm... " >&6; }
17066 if ${ac_cv_lib_m_sin+:} false; then :
17067 $as_echo_n "(cached) " >&6
17068 else
17069 ac_check_lib_save_LIBS=$LIBS
17070 LIBS="-lm $LIBS"
17071 if test x$gcc_no_link = xyes; then
17072 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17073 fi
17074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17075 /* end confdefs.h. */
17076
17077 /* Override any GCC internal prototype to avoid an error.
17078 Use char because int might match the return type of a GCC
17079 builtin and then its argument prototype would still apply. */
17080 #ifdef __cplusplus
17081 extern "C"
17082 #endif
17083 char sin ();
17084 int
17085 main ()
17086 {
17087 return sin ();
17088 ;
17089 return 0;
17090 }
17091 _ACEOF
17092 if ac_fn_c_try_link "$LINENO"; then :
17093 ac_cv_lib_m_sin=yes
17094 else
17095 ac_cv_lib_m_sin=no
17096 fi
17097 rm -f core conftest.err conftest.$ac_objext \
17098 conftest$ac_exeext conftest.$ac_ext
17099 LIBS=$ac_check_lib_save_LIBS
17100 fi
17101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
17102 $as_echo "$ac_cv_lib_m_sin" >&6; }
17103 if test "x$ac_cv_lib_m_sin" = xyes; then :
17104 cat >>confdefs.h <<_ACEOF
17105 #define HAVE_LIBM 1
17106 _ACEOF
17107
17108 LIBS="-lm $LIBS"
17109
17110 fi
17111
17112
17113
17114
17115
17116
17117
17118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosf" >&5
17119 $as_echo_n "checking for acosf... " >&6; }
17120 if ${gcc_cv_math_func_acosf+:} false; then :
17121 $as_echo_n "(cached) " >&6
17122 else
17123 if test x$gcc_no_link = xyes; then
17124 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17125 fi
17126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17127 /* end confdefs.h. */
17128
17129 #ifdef HAVE_COMPLEX_H
17130 #include <complex.h>
17131 #endif
17132 #ifdef HAVE_MATH_H
17133 #include <math.h>
17134 #endif
17135
17136 int (*ptr)() = (int (*)())acosf;
17137
17138 int
17139 main ()
17140 {
17141 return 0;
17142 }
17143
17144 _ACEOF
17145 if ac_fn_c_try_link "$LINENO"; then :
17146 gcc_cv_math_func_acosf=yes
17147 else
17148 gcc_cv_math_func_acosf=no
17149 fi
17150 rm -f core conftest.err conftest.$ac_objext \
17151 conftest$ac_exeext conftest.$ac_ext
17152 fi
17153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosf" >&5
17154 $as_echo "$gcc_cv_math_func_acosf" >&6; }
17155 if test $gcc_cv_math_func_acosf = yes; then
17156
17157 cat >>confdefs.h <<_ACEOF
17158 #define HAVE_ACOSF 1
17159 _ACEOF
17160
17161 fi
17162
17163
17164
17165
17166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acos" >&5
17167 $as_echo_n "checking for acos... " >&6; }
17168 if ${gcc_cv_math_func_acos+:} false; then :
17169 $as_echo_n "(cached) " >&6
17170 else
17171 if test x$gcc_no_link = xyes; then
17172 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17173 fi
17174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17175 /* end confdefs.h. */
17176
17177 #ifdef HAVE_COMPLEX_H
17178 #include <complex.h>
17179 #endif
17180 #ifdef HAVE_MATH_H
17181 #include <math.h>
17182 #endif
17183
17184 int (*ptr)() = (int (*)())acos;
17185
17186 int
17187 main ()
17188 {
17189 return 0;
17190 }
17191
17192 _ACEOF
17193 if ac_fn_c_try_link "$LINENO"; then :
17194 gcc_cv_math_func_acos=yes
17195 else
17196 gcc_cv_math_func_acos=no
17197 fi
17198 rm -f core conftest.err conftest.$ac_objext \
17199 conftest$ac_exeext conftest.$ac_ext
17200 fi
17201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acos" >&5
17202 $as_echo "$gcc_cv_math_func_acos" >&6; }
17203 if test $gcc_cv_math_func_acos = yes; then
17204
17205 cat >>confdefs.h <<_ACEOF
17206 #define HAVE_ACOS 1
17207 _ACEOF
17208
17209 fi
17210
17211
17212
17213
17214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosl" >&5
17215 $as_echo_n "checking for acosl... " >&6; }
17216 if ${gcc_cv_math_func_acosl+:} false; then :
17217 $as_echo_n "(cached) " >&6
17218 else
17219 if test x$gcc_no_link = xyes; then
17220 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17221 fi
17222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17223 /* end confdefs.h. */
17224
17225 #ifdef HAVE_COMPLEX_H
17226 #include <complex.h>
17227 #endif
17228 #ifdef HAVE_MATH_H
17229 #include <math.h>
17230 #endif
17231
17232 int (*ptr)() = (int (*)())acosl;
17233
17234 int
17235 main ()
17236 {
17237 return 0;
17238 }
17239
17240 _ACEOF
17241 if ac_fn_c_try_link "$LINENO"; then :
17242 gcc_cv_math_func_acosl=yes
17243 else
17244 gcc_cv_math_func_acosl=no
17245 fi
17246 rm -f core conftest.err conftest.$ac_objext \
17247 conftest$ac_exeext conftest.$ac_ext
17248 fi
17249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosl" >&5
17250 $as_echo "$gcc_cv_math_func_acosl" >&6; }
17251 if test $gcc_cv_math_func_acosl = yes; then
17252
17253 cat >>confdefs.h <<_ACEOF
17254 #define HAVE_ACOSL 1
17255 _ACEOF
17256
17257 fi
17258
17259
17260
17261
17262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshf" >&5
17263 $as_echo_n "checking for acoshf... " >&6; }
17264 if ${gcc_cv_math_func_acoshf+:} false; then :
17265 $as_echo_n "(cached) " >&6
17266 else
17267 if test x$gcc_no_link = xyes; then
17268 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17269 fi
17270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17271 /* end confdefs.h. */
17272
17273 #ifdef HAVE_COMPLEX_H
17274 #include <complex.h>
17275 #endif
17276 #ifdef HAVE_MATH_H
17277 #include <math.h>
17278 #endif
17279
17280 int (*ptr)() = (int (*)())acoshf;
17281
17282 int
17283 main ()
17284 {
17285 return 0;
17286 }
17287
17288 _ACEOF
17289 if ac_fn_c_try_link "$LINENO"; then :
17290 gcc_cv_math_func_acoshf=yes
17291 else
17292 gcc_cv_math_func_acoshf=no
17293 fi
17294 rm -f core conftest.err conftest.$ac_objext \
17295 conftest$ac_exeext conftest.$ac_ext
17296 fi
17297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshf" >&5
17298 $as_echo "$gcc_cv_math_func_acoshf" >&6; }
17299 if test $gcc_cv_math_func_acoshf = yes; then
17300
17301 cat >>confdefs.h <<_ACEOF
17302 #define HAVE_ACOSHF 1
17303 _ACEOF
17304
17305 fi
17306
17307
17308
17309
17310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosh" >&5
17311 $as_echo_n "checking for acosh... " >&6; }
17312 if ${gcc_cv_math_func_acosh+:} false; then :
17313 $as_echo_n "(cached) " >&6
17314 else
17315 if test x$gcc_no_link = xyes; then
17316 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17317 fi
17318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17319 /* end confdefs.h. */
17320
17321 #ifdef HAVE_COMPLEX_H
17322 #include <complex.h>
17323 #endif
17324 #ifdef HAVE_MATH_H
17325 #include <math.h>
17326 #endif
17327
17328 int (*ptr)() = (int (*)())acosh;
17329
17330 int
17331 main ()
17332 {
17333 return 0;
17334 }
17335
17336 _ACEOF
17337 if ac_fn_c_try_link "$LINENO"; then :
17338 gcc_cv_math_func_acosh=yes
17339 else
17340 gcc_cv_math_func_acosh=no
17341 fi
17342 rm -f core conftest.err conftest.$ac_objext \
17343 conftest$ac_exeext conftest.$ac_ext
17344 fi
17345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosh" >&5
17346 $as_echo "$gcc_cv_math_func_acosh" >&6; }
17347 if test $gcc_cv_math_func_acosh = yes; then
17348
17349 cat >>confdefs.h <<_ACEOF
17350 #define HAVE_ACOSH 1
17351 _ACEOF
17352
17353 fi
17354
17355
17356
17357
17358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshl" >&5
17359 $as_echo_n "checking for acoshl... " >&6; }
17360 if ${gcc_cv_math_func_acoshl+:} false; then :
17361 $as_echo_n "(cached) " >&6
17362 else
17363 if test x$gcc_no_link = xyes; then
17364 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17365 fi
17366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17367 /* end confdefs.h. */
17368
17369 #ifdef HAVE_COMPLEX_H
17370 #include <complex.h>
17371 #endif
17372 #ifdef HAVE_MATH_H
17373 #include <math.h>
17374 #endif
17375
17376 int (*ptr)() = (int (*)())acoshl;
17377
17378 int
17379 main ()
17380 {
17381 return 0;
17382 }
17383
17384 _ACEOF
17385 if ac_fn_c_try_link "$LINENO"; then :
17386 gcc_cv_math_func_acoshl=yes
17387 else
17388 gcc_cv_math_func_acoshl=no
17389 fi
17390 rm -f core conftest.err conftest.$ac_objext \
17391 conftest$ac_exeext conftest.$ac_ext
17392 fi
17393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshl" >&5
17394 $as_echo "$gcc_cv_math_func_acoshl" >&6; }
17395 if test $gcc_cv_math_func_acoshl = yes; then
17396
17397 cat >>confdefs.h <<_ACEOF
17398 #define HAVE_ACOSHL 1
17399 _ACEOF
17400
17401 fi
17402
17403
17404
17405
17406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinf" >&5
17407 $as_echo_n "checking for asinf... " >&6; }
17408 if ${gcc_cv_math_func_asinf+:} false; then :
17409 $as_echo_n "(cached) " >&6
17410 else
17411 if test x$gcc_no_link = xyes; then
17412 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17413 fi
17414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17415 /* end confdefs.h. */
17416
17417 #ifdef HAVE_COMPLEX_H
17418 #include <complex.h>
17419 #endif
17420 #ifdef HAVE_MATH_H
17421 #include <math.h>
17422 #endif
17423
17424 int (*ptr)() = (int (*)())asinf;
17425
17426 int
17427 main ()
17428 {
17429 return 0;
17430 }
17431
17432 _ACEOF
17433 if ac_fn_c_try_link "$LINENO"; then :
17434 gcc_cv_math_func_asinf=yes
17435 else
17436 gcc_cv_math_func_asinf=no
17437 fi
17438 rm -f core conftest.err conftest.$ac_objext \
17439 conftest$ac_exeext conftest.$ac_ext
17440 fi
17441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinf" >&5
17442 $as_echo "$gcc_cv_math_func_asinf" >&6; }
17443 if test $gcc_cv_math_func_asinf = yes; then
17444
17445 cat >>confdefs.h <<_ACEOF
17446 #define HAVE_ASINF 1
17447 _ACEOF
17448
17449 fi
17450
17451
17452
17453
17454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin" >&5
17455 $as_echo_n "checking for asin... " >&6; }
17456 if ${gcc_cv_math_func_asin+:} false; then :
17457 $as_echo_n "(cached) " >&6
17458 else
17459 if test x$gcc_no_link = xyes; then
17460 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17461 fi
17462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17463 /* end confdefs.h. */
17464
17465 #ifdef HAVE_COMPLEX_H
17466 #include <complex.h>
17467 #endif
17468 #ifdef HAVE_MATH_H
17469 #include <math.h>
17470 #endif
17471
17472 int (*ptr)() = (int (*)())asin;
17473
17474 int
17475 main ()
17476 {
17477 return 0;
17478 }
17479
17480 _ACEOF
17481 if ac_fn_c_try_link "$LINENO"; then :
17482 gcc_cv_math_func_asin=yes
17483 else
17484 gcc_cv_math_func_asin=no
17485 fi
17486 rm -f core conftest.err conftest.$ac_objext \
17487 conftest$ac_exeext conftest.$ac_ext
17488 fi
17489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asin" >&5
17490 $as_echo "$gcc_cv_math_func_asin" >&6; }
17491 if test $gcc_cv_math_func_asin = yes; then
17492
17493 cat >>confdefs.h <<_ACEOF
17494 #define HAVE_ASIN 1
17495 _ACEOF
17496
17497 fi
17498
17499
17500
17501
17502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinl" >&5
17503 $as_echo_n "checking for asinl... " >&6; }
17504 if ${gcc_cv_math_func_asinl+:} false; then :
17505 $as_echo_n "(cached) " >&6
17506 else
17507 if test x$gcc_no_link = xyes; then
17508 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17509 fi
17510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17511 /* end confdefs.h. */
17512
17513 #ifdef HAVE_COMPLEX_H
17514 #include <complex.h>
17515 #endif
17516 #ifdef HAVE_MATH_H
17517 #include <math.h>
17518 #endif
17519
17520 int (*ptr)() = (int (*)())asinl;
17521
17522 int
17523 main ()
17524 {
17525 return 0;
17526 }
17527
17528 _ACEOF
17529 if ac_fn_c_try_link "$LINENO"; then :
17530 gcc_cv_math_func_asinl=yes
17531 else
17532 gcc_cv_math_func_asinl=no
17533 fi
17534 rm -f core conftest.err conftest.$ac_objext \
17535 conftest$ac_exeext conftest.$ac_ext
17536 fi
17537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinl" >&5
17538 $as_echo "$gcc_cv_math_func_asinl" >&6; }
17539 if test $gcc_cv_math_func_asinl = yes; then
17540
17541 cat >>confdefs.h <<_ACEOF
17542 #define HAVE_ASINL 1
17543 _ACEOF
17544
17545 fi
17546
17547
17548
17549
17550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhf" >&5
17551 $as_echo_n "checking for asinhf... " >&6; }
17552 if ${gcc_cv_math_func_asinhf+:} false; then :
17553 $as_echo_n "(cached) " >&6
17554 else
17555 if test x$gcc_no_link = xyes; then
17556 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17557 fi
17558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17559 /* end confdefs.h. */
17560
17561 #ifdef HAVE_COMPLEX_H
17562 #include <complex.h>
17563 #endif
17564 #ifdef HAVE_MATH_H
17565 #include <math.h>
17566 #endif
17567
17568 int (*ptr)() = (int (*)())asinhf;
17569
17570 int
17571 main ()
17572 {
17573 return 0;
17574 }
17575
17576 _ACEOF
17577 if ac_fn_c_try_link "$LINENO"; then :
17578 gcc_cv_math_func_asinhf=yes
17579 else
17580 gcc_cv_math_func_asinhf=no
17581 fi
17582 rm -f core conftest.err conftest.$ac_objext \
17583 conftest$ac_exeext conftest.$ac_ext
17584 fi
17585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhf" >&5
17586 $as_echo "$gcc_cv_math_func_asinhf" >&6; }
17587 if test $gcc_cv_math_func_asinhf = yes; then
17588
17589 cat >>confdefs.h <<_ACEOF
17590 #define HAVE_ASINHF 1
17591 _ACEOF
17592
17593 fi
17594
17595
17596
17597
17598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinh" >&5
17599 $as_echo_n "checking for asinh... " >&6; }
17600 if ${gcc_cv_math_func_asinh+:} false; then :
17601 $as_echo_n "(cached) " >&6
17602 else
17603 if test x$gcc_no_link = xyes; then
17604 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17605 fi
17606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17607 /* end confdefs.h. */
17608
17609 #ifdef HAVE_COMPLEX_H
17610 #include <complex.h>
17611 #endif
17612 #ifdef HAVE_MATH_H
17613 #include <math.h>
17614 #endif
17615
17616 int (*ptr)() = (int (*)())asinh;
17617
17618 int
17619 main ()
17620 {
17621 return 0;
17622 }
17623
17624 _ACEOF
17625 if ac_fn_c_try_link "$LINENO"; then :
17626 gcc_cv_math_func_asinh=yes
17627 else
17628 gcc_cv_math_func_asinh=no
17629 fi
17630 rm -f core conftest.err conftest.$ac_objext \
17631 conftest$ac_exeext conftest.$ac_ext
17632 fi
17633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinh" >&5
17634 $as_echo "$gcc_cv_math_func_asinh" >&6; }
17635 if test $gcc_cv_math_func_asinh = yes; then
17636
17637 cat >>confdefs.h <<_ACEOF
17638 #define HAVE_ASINH 1
17639 _ACEOF
17640
17641 fi
17642
17643
17644
17645
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhl" >&5
17647 $as_echo_n "checking for asinhl... " >&6; }
17648 if ${gcc_cv_math_func_asinhl+:} false; then :
17649 $as_echo_n "(cached) " >&6
17650 else
17651 if test x$gcc_no_link = xyes; then
17652 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17653 fi
17654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17655 /* end confdefs.h. */
17656
17657 #ifdef HAVE_COMPLEX_H
17658 #include <complex.h>
17659 #endif
17660 #ifdef HAVE_MATH_H
17661 #include <math.h>
17662 #endif
17663
17664 int (*ptr)() = (int (*)())asinhl;
17665
17666 int
17667 main ()
17668 {
17669 return 0;
17670 }
17671
17672 _ACEOF
17673 if ac_fn_c_try_link "$LINENO"; then :
17674 gcc_cv_math_func_asinhl=yes
17675 else
17676 gcc_cv_math_func_asinhl=no
17677 fi
17678 rm -f core conftest.err conftest.$ac_objext \
17679 conftest$ac_exeext conftest.$ac_ext
17680 fi
17681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhl" >&5
17682 $as_echo "$gcc_cv_math_func_asinhl" >&6; }
17683 if test $gcc_cv_math_func_asinhl = yes; then
17684
17685 cat >>confdefs.h <<_ACEOF
17686 #define HAVE_ASINHL 1
17687 _ACEOF
17688
17689 fi
17690
17691
17692
17693
17694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f" >&5
17695 $as_echo_n "checking for atan2f... " >&6; }
17696 if ${gcc_cv_math_func_atan2f+:} false; then :
17697 $as_echo_n "(cached) " >&6
17698 else
17699 if test x$gcc_no_link = xyes; then
17700 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17701 fi
17702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17703 /* end confdefs.h. */
17704
17705 #ifdef HAVE_COMPLEX_H
17706 #include <complex.h>
17707 #endif
17708 #ifdef HAVE_MATH_H
17709 #include <math.h>
17710 #endif
17711
17712 int (*ptr)() = (int (*)())atan2f;
17713
17714 int
17715 main ()
17716 {
17717 return 0;
17718 }
17719
17720 _ACEOF
17721 if ac_fn_c_try_link "$LINENO"; then :
17722 gcc_cv_math_func_atan2f=yes
17723 else
17724 gcc_cv_math_func_atan2f=no
17725 fi
17726 rm -f core conftest.err conftest.$ac_objext \
17727 conftest$ac_exeext conftest.$ac_ext
17728 fi
17729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2f" >&5
17730 $as_echo "$gcc_cv_math_func_atan2f" >&6; }
17731 if test $gcc_cv_math_func_atan2f = yes; then
17732
17733 cat >>confdefs.h <<_ACEOF
17734 #define HAVE_ATAN2F 1
17735 _ACEOF
17736
17737 fi
17738
17739
17740
17741
17742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2" >&5
17743 $as_echo_n "checking for atan2... " >&6; }
17744 if ${gcc_cv_math_func_atan2+:} false; then :
17745 $as_echo_n "(cached) " >&6
17746 else
17747 if test x$gcc_no_link = xyes; then
17748 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17749 fi
17750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17751 /* end confdefs.h. */
17752
17753 #ifdef HAVE_COMPLEX_H
17754 #include <complex.h>
17755 #endif
17756 #ifdef HAVE_MATH_H
17757 #include <math.h>
17758 #endif
17759
17760 int (*ptr)() = (int (*)())atan2;
17761
17762 int
17763 main ()
17764 {
17765 return 0;
17766 }
17767
17768 _ACEOF
17769 if ac_fn_c_try_link "$LINENO"; then :
17770 gcc_cv_math_func_atan2=yes
17771 else
17772 gcc_cv_math_func_atan2=no
17773 fi
17774 rm -f core conftest.err conftest.$ac_objext \
17775 conftest$ac_exeext conftest.$ac_ext
17776 fi
17777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2" >&5
17778 $as_echo "$gcc_cv_math_func_atan2" >&6; }
17779 if test $gcc_cv_math_func_atan2 = yes; then
17780
17781 cat >>confdefs.h <<_ACEOF
17782 #define HAVE_ATAN2 1
17783 _ACEOF
17784
17785 fi
17786
17787
17788
17789
17790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l" >&5
17791 $as_echo_n "checking for atan2l... " >&6; }
17792 if ${gcc_cv_math_func_atan2l+:} false; then :
17793 $as_echo_n "(cached) " >&6
17794 else
17795 if test x$gcc_no_link = xyes; then
17796 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17797 fi
17798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17799 /* end confdefs.h. */
17800
17801 #ifdef HAVE_COMPLEX_H
17802 #include <complex.h>
17803 #endif
17804 #ifdef HAVE_MATH_H
17805 #include <math.h>
17806 #endif
17807
17808 int (*ptr)() = (int (*)())atan2l;
17809
17810 int
17811 main ()
17812 {
17813 return 0;
17814 }
17815
17816 _ACEOF
17817 if ac_fn_c_try_link "$LINENO"; then :
17818 gcc_cv_math_func_atan2l=yes
17819 else
17820 gcc_cv_math_func_atan2l=no
17821 fi
17822 rm -f core conftest.err conftest.$ac_objext \
17823 conftest$ac_exeext conftest.$ac_ext
17824 fi
17825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2l" >&5
17826 $as_echo "$gcc_cv_math_func_atan2l" >&6; }
17827 if test $gcc_cv_math_func_atan2l = yes; then
17828
17829 cat >>confdefs.h <<_ACEOF
17830 #define HAVE_ATAN2L 1
17831 _ACEOF
17832
17833 fi
17834
17835
17836
17837
17838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanf" >&5
17839 $as_echo_n "checking for atanf... " >&6; }
17840 if ${gcc_cv_math_func_atanf+:} false; then :
17841 $as_echo_n "(cached) " >&6
17842 else
17843 if test x$gcc_no_link = xyes; then
17844 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17845 fi
17846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17847 /* end confdefs.h. */
17848
17849 #ifdef HAVE_COMPLEX_H
17850 #include <complex.h>
17851 #endif
17852 #ifdef HAVE_MATH_H
17853 #include <math.h>
17854 #endif
17855
17856 int (*ptr)() = (int (*)())atanf;
17857
17858 int
17859 main ()
17860 {
17861 return 0;
17862 }
17863
17864 _ACEOF
17865 if ac_fn_c_try_link "$LINENO"; then :
17866 gcc_cv_math_func_atanf=yes
17867 else
17868 gcc_cv_math_func_atanf=no
17869 fi
17870 rm -f core conftest.err conftest.$ac_objext \
17871 conftest$ac_exeext conftest.$ac_ext
17872 fi
17873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanf" >&5
17874 $as_echo "$gcc_cv_math_func_atanf" >&6; }
17875 if test $gcc_cv_math_func_atanf = yes; then
17876
17877 cat >>confdefs.h <<_ACEOF
17878 #define HAVE_ATANF 1
17879 _ACEOF
17880
17881 fi
17882
17883
17884
17885
17886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan" >&5
17887 $as_echo_n "checking for atan... " >&6; }
17888 if ${gcc_cv_math_func_atan+:} false; then :
17889 $as_echo_n "(cached) " >&6
17890 else
17891 if test x$gcc_no_link = xyes; then
17892 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17893 fi
17894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17895 /* end confdefs.h. */
17896
17897 #ifdef HAVE_COMPLEX_H
17898 #include <complex.h>
17899 #endif
17900 #ifdef HAVE_MATH_H
17901 #include <math.h>
17902 #endif
17903
17904 int (*ptr)() = (int (*)())atan;
17905
17906 int
17907 main ()
17908 {
17909 return 0;
17910 }
17911
17912 _ACEOF
17913 if ac_fn_c_try_link "$LINENO"; then :
17914 gcc_cv_math_func_atan=yes
17915 else
17916 gcc_cv_math_func_atan=no
17917 fi
17918 rm -f core conftest.err conftest.$ac_objext \
17919 conftest$ac_exeext conftest.$ac_ext
17920 fi
17921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan" >&5
17922 $as_echo "$gcc_cv_math_func_atan" >&6; }
17923 if test $gcc_cv_math_func_atan = yes; then
17924
17925 cat >>confdefs.h <<_ACEOF
17926 #define HAVE_ATAN 1
17927 _ACEOF
17928
17929 fi
17930
17931
17932
17933
17934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanl" >&5
17935 $as_echo_n "checking for atanl... " >&6; }
17936 if ${gcc_cv_math_func_atanl+:} false; then :
17937 $as_echo_n "(cached) " >&6
17938 else
17939 if test x$gcc_no_link = xyes; then
17940 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17941 fi
17942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17943 /* end confdefs.h. */
17944
17945 #ifdef HAVE_COMPLEX_H
17946 #include <complex.h>
17947 #endif
17948 #ifdef HAVE_MATH_H
17949 #include <math.h>
17950 #endif
17951
17952 int (*ptr)() = (int (*)())atanl;
17953
17954 int
17955 main ()
17956 {
17957 return 0;
17958 }
17959
17960 _ACEOF
17961 if ac_fn_c_try_link "$LINENO"; then :
17962 gcc_cv_math_func_atanl=yes
17963 else
17964 gcc_cv_math_func_atanl=no
17965 fi
17966 rm -f core conftest.err conftest.$ac_objext \
17967 conftest$ac_exeext conftest.$ac_ext
17968 fi
17969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanl" >&5
17970 $as_echo "$gcc_cv_math_func_atanl" >&6; }
17971 if test $gcc_cv_math_func_atanl = yes; then
17972
17973 cat >>confdefs.h <<_ACEOF
17974 #define HAVE_ATANL 1
17975 _ACEOF
17976
17977 fi
17978
17979
17980
17981
17982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhf" >&5
17983 $as_echo_n "checking for atanhf... " >&6; }
17984 if ${gcc_cv_math_func_atanhf+:} false; then :
17985 $as_echo_n "(cached) " >&6
17986 else
17987 if test x$gcc_no_link = xyes; then
17988 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17989 fi
17990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17991 /* end confdefs.h. */
17992
17993 #ifdef HAVE_COMPLEX_H
17994 #include <complex.h>
17995 #endif
17996 #ifdef HAVE_MATH_H
17997 #include <math.h>
17998 #endif
17999
18000 int (*ptr)() = (int (*)())atanhf;
18001
18002 int
18003 main ()
18004 {
18005 return 0;
18006 }
18007
18008 _ACEOF
18009 if ac_fn_c_try_link "$LINENO"; then :
18010 gcc_cv_math_func_atanhf=yes
18011 else
18012 gcc_cv_math_func_atanhf=no
18013 fi
18014 rm -f core conftest.err conftest.$ac_objext \
18015 conftest$ac_exeext conftest.$ac_ext
18016 fi
18017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhf" >&5
18018 $as_echo "$gcc_cv_math_func_atanhf" >&6; }
18019 if test $gcc_cv_math_func_atanhf = yes; then
18020
18021 cat >>confdefs.h <<_ACEOF
18022 #define HAVE_ATANHF 1
18023 _ACEOF
18024
18025 fi
18026
18027
18028
18029
18030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanh" >&5
18031 $as_echo_n "checking for atanh... " >&6; }
18032 if ${gcc_cv_math_func_atanh+:} false; then :
18033 $as_echo_n "(cached) " >&6
18034 else
18035 if test x$gcc_no_link = xyes; then
18036 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18037 fi
18038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18039 /* end confdefs.h. */
18040
18041 #ifdef HAVE_COMPLEX_H
18042 #include <complex.h>
18043 #endif
18044 #ifdef HAVE_MATH_H
18045 #include <math.h>
18046 #endif
18047
18048 int (*ptr)() = (int (*)())atanh;
18049
18050 int
18051 main ()
18052 {
18053 return 0;
18054 }
18055
18056 _ACEOF
18057 if ac_fn_c_try_link "$LINENO"; then :
18058 gcc_cv_math_func_atanh=yes
18059 else
18060 gcc_cv_math_func_atanh=no
18061 fi
18062 rm -f core conftest.err conftest.$ac_objext \
18063 conftest$ac_exeext conftest.$ac_ext
18064 fi
18065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanh" >&5
18066 $as_echo "$gcc_cv_math_func_atanh" >&6; }
18067 if test $gcc_cv_math_func_atanh = yes; then
18068
18069 cat >>confdefs.h <<_ACEOF
18070 #define HAVE_ATANH 1
18071 _ACEOF
18072
18073 fi
18074
18075
18076
18077
18078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhl" >&5
18079 $as_echo_n "checking for atanhl... " >&6; }
18080 if ${gcc_cv_math_func_atanhl+:} false; then :
18081 $as_echo_n "(cached) " >&6
18082 else
18083 if test x$gcc_no_link = xyes; then
18084 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18085 fi
18086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18087 /* end confdefs.h. */
18088
18089 #ifdef HAVE_COMPLEX_H
18090 #include <complex.h>
18091 #endif
18092 #ifdef HAVE_MATH_H
18093 #include <math.h>
18094 #endif
18095
18096 int (*ptr)() = (int (*)())atanhl;
18097
18098 int
18099 main ()
18100 {
18101 return 0;
18102 }
18103
18104 _ACEOF
18105 if ac_fn_c_try_link "$LINENO"; then :
18106 gcc_cv_math_func_atanhl=yes
18107 else
18108 gcc_cv_math_func_atanhl=no
18109 fi
18110 rm -f core conftest.err conftest.$ac_objext \
18111 conftest$ac_exeext conftest.$ac_ext
18112 fi
18113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhl" >&5
18114 $as_echo "$gcc_cv_math_func_atanhl" >&6; }
18115 if test $gcc_cv_math_func_atanhl = yes; then
18116
18117 cat >>confdefs.h <<_ACEOF
18118 #define HAVE_ATANHL 1
18119 _ACEOF
18120
18121 fi
18122
18123
18124
18125
18126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargf" >&5
18127 $as_echo_n "checking for cargf... " >&6; }
18128 if ${gcc_cv_math_func_cargf+:} false; then :
18129 $as_echo_n "(cached) " >&6
18130 else
18131 if test x$gcc_no_link = xyes; then
18132 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18133 fi
18134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18135 /* end confdefs.h. */
18136
18137 #ifdef HAVE_COMPLEX_H
18138 #include <complex.h>
18139 #endif
18140 #ifdef HAVE_MATH_H
18141 #include <math.h>
18142 #endif
18143
18144 int (*ptr)() = (int (*)())cargf;
18145
18146 int
18147 main ()
18148 {
18149 return 0;
18150 }
18151
18152 _ACEOF
18153 if ac_fn_c_try_link "$LINENO"; then :
18154 gcc_cv_math_func_cargf=yes
18155 else
18156 gcc_cv_math_func_cargf=no
18157 fi
18158 rm -f core conftest.err conftest.$ac_objext \
18159 conftest$ac_exeext conftest.$ac_ext
18160 fi
18161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargf" >&5
18162 $as_echo "$gcc_cv_math_func_cargf" >&6; }
18163 if test $gcc_cv_math_func_cargf = yes; then
18164
18165 cat >>confdefs.h <<_ACEOF
18166 #define HAVE_CARGF 1
18167 _ACEOF
18168
18169 fi
18170
18171
18172
18173
18174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for carg" >&5
18175 $as_echo_n "checking for carg... " >&6; }
18176 if ${gcc_cv_math_func_carg+:} false; then :
18177 $as_echo_n "(cached) " >&6
18178 else
18179 if test x$gcc_no_link = xyes; then
18180 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18181 fi
18182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18183 /* end confdefs.h. */
18184
18185 #ifdef HAVE_COMPLEX_H
18186 #include <complex.h>
18187 #endif
18188 #ifdef HAVE_MATH_H
18189 #include <math.h>
18190 #endif
18191
18192 int (*ptr)() = (int (*)())carg;
18193
18194 int
18195 main ()
18196 {
18197 return 0;
18198 }
18199
18200 _ACEOF
18201 if ac_fn_c_try_link "$LINENO"; then :
18202 gcc_cv_math_func_carg=yes
18203 else
18204 gcc_cv_math_func_carg=no
18205 fi
18206 rm -f core conftest.err conftest.$ac_objext \
18207 conftest$ac_exeext conftest.$ac_ext
18208 fi
18209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_carg" >&5
18210 $as_echo "$gcc_cv_math_func_carg" >&6; }
18211 if test $gcc_cv_math_func_carg = yes; then
18212
18213 cat >>confdefs.h <<_ACEOF
18214 #define HAVE_CARG 1
18215 _ACEOF
18216
18217 fi
18218
18219
18220
18221
18222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargl" >&5
18223 $as_echo_n "checking for cargl... " >&6; }
18224 if ${gcc_cv_math_func_cargl+:} false; then :
18225 $as_echo_n "(cached) " >&6
18226 else
18227 if test x$gcc_no_link = xyes; then
18228 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18229 fi
18230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18231 /* end confdefs.h. */
18232
18233 #ifdef HAVE_COMPLEX_H
18234 #include <complex.h>
18235 #endif
18236 #ifdef HAVE_MATH_H
18237 #include <math.h>
18238 #endif
18239
18240 int (*ptr)() = (int (*)())cargl;
18241
18242 int
18243 main ()
18244 {
18245 return 0;
18246 }
18247
18248 _ACEOF
18249 if ac_fn_c_try_link "$LINENO"; then :
18250 gcc_cv_math_func_cargl=yes
18251 else
18252 gcc_cv_math_func_cargl=no
18253 fi
18254 rm -f core conftest.err conftest.$ac_objext \
18255 conftest$ac_exeext conftest.$ac_ext
18256 fi
18257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargl" >&5
18258 $as_echo "$gcc_cv_math_func_cargl" >&6; }
18259 if test $gcc_cv_math_func_cargl = yes; then
18260
18261 cat >>confdefs.h <<_ACEOF
18262 #define HAVE_CARGL 1
18263 _ACEOF
18264
18265 fi
18266
18267
18268
18269
18270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceilf" >&5
18271 $as_echo_n "checking for ceilf... " >&6; }
18272 if ${gcc_cv_math_func_ceilf+:} false; then :
18273 $as_echo_n "(cached) " >&6
18274 else
18275 if test x$gcc_no_link = xyes; then
18276 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18277 fi
18278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18279 /* end confdefs.h. */
18280
18281 #ifdef HAVE_COMPLEX_H
18282 #include <complex.h>
18283 #endif
18284 #ifdef HAVE_MATH_H
18285 #include <math.h>
18286 #endif
18287
18288 int (*ptr)() = (int (*)())ceilf;
18289
18290 int
18291 main ()
18292 {
18293 return 0;
18294 }
18295
18296 _ACEOF
18297 if ac_fn_c_try_link "$LINENO"; then :
18298 gcc_cv_math_func_ceilf=yes
18299 else
18300 gcc_cv_math_func_ceilf=no
18301 fi
18302 rm -f core conftest.err conftest.$ac_objext \
18303 conftest$ac_exeext conftest.$ac_ext
18304 fi
18305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceilf" >&5
18306 $as_echo "$gcc_cv_math_func_ceilf" >&6; }
18307 if test $gcc_cv_math_func_ceilf = yes; then
18308
18309 cat >>confdefs.h <<_ACEOF
18310 #define HAVE_CEILF 1
18311 _ACEOF
18312
18313 fi
18314
18315
18316
18317
18318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil" >&5
18319 $as_echo_n "checking for ceil... " >&6; }
18320 if ${gcc_cv_math_func_ceil+:} false; then :
18321 $as_echo_n "(cached) " >&6
18322 else
18323 if test x$gcc_no_link = xyes; then
18324 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18325 fi
18326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18327 /* end confdefs.h. */
18328
18329 #ifdef HAVE_COMPLEX_H
18330 #include <complex.h>
18331 #endif
18332 #ifdef HAVE_MATH_H
18333 #include <math.h>
18334 #endif
18335
18336 int (*ptr)() = (int (*)())ceil;
18337
18338 int
18339 main ()
18340 {
18341 return 0;
18342 }
18343
18344 _ACEOF
18345 if ac_fn_c_try_link "$LINENO"; then :
18346 gcc_cv_math_func_ceil=yes
18347 else
18348 gcc_cv_math_func_ceil=no
18349 fi
18350 rm -f core conftest.err conftest.$ac_objext \
18351 conftest$ac_exeext conftest.$ac_ext
18352 fi
18353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceil" >&5
18354 $as_echo "$gcc_cv_math_func_ceil" >&6; }
18355 if test $gcc_cv_math_func_ceil = yes; then
18356
18357 cat >>confdefs.h <<_ACEOF
18358 #define HAVE_CEIL 1
18359 _ACEOF
18360
18361 fi
18362
18363
18364
18365
18366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceill" >&5
18367 $as_echo_n "checking for ceill... " >&6; }
18368 if ${gcc_cv_math_func_ceill+:} false; then :
18369 $as_echo_n "(cached) " >&6
18370 else
18371 if test x$gcc_no_link = xyes; then
18372 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18373 fi
18374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18375 /* end confdefs.h. */
18376
18377 #ifdef HAVE_COMPLEX_H
18378 #include <complex.h>
18379 #endif
18380 #ifdef HAVE_MATH_H
18381 #include <math.h>
18382 #endif
18383
18384 int (*ptr)() = (int (*)())ceill;
18385
18386 int
18387 main ()
18388 {
18389 return 0;
18390 }
18391
18392 _ACEOF
18393 if ac_fn_c_try_link "$LINENO"; then :
18394 gcc_cv_math_func_ceill=yes
18395 else
18396 gcc_cv_math_func_ceill=no
18397 fi
18398 rm -f core conftest.err conftest.$ac_objext \
18399 conftest$ac_exeext conftest.$ac_ext
18400 fi
18401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceill" >&5
18402 $as_echo "$gcc_cv_math_func_ceill" >&6; }
18403 if test $gcc_cv_math_func_ceill = yes; then
18404
18405 cat >>confdefs.h <<_ACEOF
18406 #define HAVE_CEILL 1
18407 _ACEOF
18408
18409 fi
18410
18411
18412
18413
18414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignf" >&5
18415 $as_echo_n "checking for copysignf... " >&6; }
18416 if ${gcc_cv_math_func_copysignf+:} false; then :
18417 $as_echo_n "(cached) " >&6
18418 else
18419 if test x$gcc_no_link = xyes; then
18420 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18421 fi
18422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18423 /* end confdefs.h. */
18424
18425 #ifdef HAVE_COMPLEX_H
18426 #include <complex.h>
18427 #endif
18428 #ifdef HAVE_MATH_H
18429 #include <math.h>
18430 #endif
18431
18432 int (*ptr)() = (int (*)())copysignf;
18433
18434 int
18435 main ()
18436 {
18437 return 0;
18438 }
18439
18440 _ACEOF
18441 if ac_fn_c_try_link "$LINENO"; then :
18442 gcc_cv_math_func_copysignf=yes
18443 else
18444 gcc_cv_math_func_copysignf=no
18445 fi
18446 rm -f core conftest.err conftest.$ac_objext \
18447 conftest$ac_exeext conftest.$ac_ext
18448 fi
18449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignf" >&5
18450 $as_echo "$gcc_cv_math_func_copysignf" >&6; }
18451 if test $gcc_cv_math_func_copysignf = yes; then
18452
18453 cat >>confdefs.h <<_ACEOF
18454 #define HAVE_COPYSIGNF 1
18455 _ACEOF
18456
18457 fi
18458
18459
18460
18461
18462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysign" >&5
18463 $as_echo_n "checking for copysign... " >&6; }
18464 if ${gcc_cv_math_func_copysign+:} false; then :
18465 $as_echo_n "(cached) " >&6
18466 else
18467 if test x$gcc_no_link = xyes; then
18468 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18469 fi
18470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18471 /* end confdefs.h. */
18472
18473 #ifdef HAVE_COMPLEX_H
18474 #include <complex.h>
18475 #endif
18476 #ifdef HAVE_MATH_H
18477 #include <math.h>
18478 #endif
18479
18480 int (*ptr)() = (int (*)())copysign;
18481
18482 int
18483 main ()
18484 {
18485 return 0;
18486 }
18487
18488 _ACEOF
18489 if ac_fn_c_try_link "$LINENO"; then :
18490 gcc_cv_math_func_copysign=yes
18491 else
18492 gcc_cv_math_func_copysign=no
18493 fi
18494 rm -f core conftest.err conftest.$ac_objext \
18495 conftest$ac_exeext conftest.$ac_ext
18496 fi
18497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysign" >&5
18498 $as_echo "$gcc_cv_math_func_copysign" >&6; }
18499 if test $gcc_cv_math_func_copysign = yes; then
18500
18501 cat >>confdefs.h <<_ACEOF
18502 #define HAVE_COPYSIGN 1
18503 _ACEOF
18504
18505 fi
18506
18507
18508
18509
18510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignl" >&5
18511 $as_echo_n "checking for copysignl... " >&6; }
18512 if ${gcc_cv_math_func_copysignl+:} false; then :
18513 $as_echo_n "(cached) " >&6
18514 else
18515 if test x$gcc_no_link = xyes; then
18516 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18517 fi
18518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18519 /* end confdefs.h. */
18520
18521 #ifdef HAVE_COMPLEX_H
18522 #include <complex.h>
18523 #endif
18524 #ifdef HAVE_MATH_H
18525 #include <math.h>
18526 #endif
18527
18528 int (*ptr)() = (int (*)())copysignl;
18529
18530 int
18531 main ()
18532 {
18533 return 0;
18534 }
18535
18536 _ACEOF
18537 if ac_fn_c_try_link "$LINENO"; then :
18538 gcc_cv_math_func_copysignl=yes
18539 else
18540 gcc_cv_math_func_copysignl=no
18541 fi
18542 rm -f core conftest.err conftest.$ac_objext \
18543 conftest$ac_exeext conftest.$ac_ext
18544 fi
18545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignl" >&5
18546 $as_echo "$gcc_cv_math_func_copysignl" >&6; }
18547 if test $gcc_cv_math_func_copysignl = yes; then
18548
18549 cat >>confdefs.h <<_ACEOF
18550 #define HAVE_COPYSIGNL 1
18551 _ACEOF
18552
18553 fi
18554
18555
18556
18557
18558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosf" >&5
18559 $as_echo_n "checking for cosf... " >&6; }
18560 if ${gcc_cv_math_func_cosf+:} false; then :
18561 $as_echo_n "(cached) " >&6
18562 else
18563 if test x$gcc_no_link = xyes; then
18564 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18565 fi
18566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18567 /* end confdefs.h. */
18568
18569 #ifdef HAVE_COMPLEX_H
18570 #include <complex.h>
18571 #endif
18572 #ifdef HAVE_MATH_H
18573 #include <math.h>
18574 #endif
18575
18576 int (*ptr)() = (int (*)())cosf;
18577
18578 int
18579 main ()
18580 {
18581 return 0;
18582 }
18583
18584 _ACEOF
18585 if ac_fn_c_try_link "$LINENO"; then :
18586 gcc_cv_math_func_cosf=yes
18587 else
18588 gcc_cv_math_func_cosf=no
18589 fi
18590 rm -f core conftest.err conftest.$ac_objext \
18591 conftest$ac_exeext conftest.$ac_ext
18592 fi
18593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosf" >&5
18594 $as_echo "$gcc_cv_math_func_cosf" >&6; }
18595 if test $gcc_cv_math_func_cosf = yes; then
18596
18597 cat >>confdefs.h <<_ACEOF
18598 #define HAVE_COSF 1
18599 _ACEOF
18600
18601 fi
18602
18603
18604
18605
18606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos" >&5
18607 $as_echo_n "checking for cos... " >&6; }
18608 if ${gcc_cv_math_func_cos+:} false; then :
18609 $as_echo_n "(cached) " >&6
18610 else
18611 if test x$gcc_no_link = xyes; then
18612 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18613 fi
18614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18615 /* end confdefs.h. */
18616
18617 #ifdef HAVE_COMPLEX_H
18618 #include <complex.h>
18619 #endif
18620 #ifdef HAVE_MATH_H
18621 #include <math.h>
18622 #endif
18623
18624 int (*ptr)() = (int (*)())cos;
18625
18626 int
18627 main ()
18628 {
18629 return 0;
18630 }
18631
18632 _ACEOF
18633 if ac_fn_c_try_link "$LINENO"; then :
18634 gcc_cv_math_func_cos=yes
18635 else
18636 gcc_cv_math_func_cos=no
18637 fi
18638 rm -f core conftest.err conftest.$ac_objext \
18639 conftest$ac_exeext conftest.$ac_ext
18640 fi
18641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cos" >&5
18642 $as_echo "$gcc_cv_math_func_cos" >&6; }
18643 if test $gcc_cv_math_func_cos = yes; then
18644
18645 cat >>confdefs.h <<_ACEOF
18646 #define HAVE_COS 1
18647 _ACEOF
18648
18649 fi
18650
18651
18652
18653
18654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosl" >&5
18655 $as_echo_n "checking for cosl... " >&6; }
18656 if ${gcc_cv_math_func_cosl+:} false; then :
18657 $as_echo_n "(cached) " >&6
18658 else
18659 if test x$gcc_no_link = xyes; then
18660 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18661 fi
18662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18663 /* end confdefs.h. */
18664
18665 #ifdef HAVE_COMPLEX_H
18666 #include <complex.h>
18667 #endif
18668 #ifdef HAVE_MATH_H
18669 #include <math.h>
18670 #endif
18671
18672 int (*ptr)() = (int (*)())cosl;
18673
18674 int
18675 main ()
18676 {
18677 return 0;
18678 }
18679
18680 _ACEOF
18681 if ac_fn_c_try_link "$LINENO"; then :
18682 gcc_cv_math_func_cosl=yes
18683 else
18684 gcc_cv_math_func_cosl=no
18685 fi
18686 rm -f core conftest.err conftest.$ac_objext \
18687 conftest$ac_exeext conftest.$ac_ext
18688 fi
18689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosl" >&5
18690 $as_echo "$gcc_cv_math_func_cosl" >&6; }
18691 if test $gcc_cv_math_func_cosl = yes; then
18692
18693 cat >>confdefs.h <<_ACEOF
18694 #define HAVE_COSL 1
18695 _ACEOF
18696
18697 fi
18698
18699
18700
18701
18702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosf" >&5
18703 $as_echo_n "checking for ccosf... " >&6; }
18704 if ${gcc_cv_math_func_ccosf+:} false; then :
18705 $as_echo_n "(cached) " >&6
18706 else
18707 if test x$gcc_no_link = xyes; then
18708 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18709 fi
18710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18711 /* end confdefs.h. */
18712
18713 #ifdef HAVE_COMPLEX_H
18714 #include <complex.h>
18715 #endif
18716 #ifdef HAVE_MATH_H
18717 #include <math.h>
18718 #endif
18719
18720 int (*ptr)() = (int (*)())ccosf;
18721
18722 int
18723 main ()
18724 {
18725 return 0;
18726 }
18727
18728 _ACEOF
18729 if ac_fn_c_try_link "$LINENO"; then :
18730 gcc_cv_math_func_ccosf=yes
18731 else
18732 gcc_cv_math_func_ccosf=no
18733 fi
18734 rm -f core conftest.err conftest.$ac_objext \
18735 conftest$ac_exeext conftest.$ac_ext
18736 fi
18737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosf" >&5
18738 $as_echo "$gcc_cv_math_func_ccosf" >&6; }
18739 if test $gcc_cv_math_func_ccosf = yes; then
18740
18741 cat >>confdefs.h <<_ACEOF
18742 #define HAVE_CCOSF 1
18743 _ACEOF
18744
18745 fi
18746
18747
18748
18749
18750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccos" >&5
18751 $as_echo_n "checking for ccos... " >&6; }
18752 if ${gcc_cv_math_func_ccos+:} false; then :
18753 $as_echo_n "(cached) " >&6
18754 else
18755 if test x$gcc_no_link = xyes; then
18756 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18757 fi
18758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18759 /* end confdefs.h. */
18760
18761 #ifdef HAVE_COMPLEX_H
18762 #include <complex.h>
18763 #endif
18764 #ifdef HAVE_MATH_H
18765 #include <math.h>
18766 #endif
18767
18768 int (*ptr)() = (int (*)())ccos;
18769
18770 int
18771 main ()
18772 {
18773 return 0;
18774 }
18775
18776 _ACEOF
18777 if ac_fn_c_try_link "$LINENO"; then :
18778 gcc_cv_math_func_ccos=yes
18779 else
18780 gcc_cv_math_func_ccos=no
18781 fi
18782 rm -f core conftest.err conftest.$ac_objext \
18783 conftest$ac_exeext conftest.$ac_ext
18784 fi
18785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccos" >&5
18786 $as_echo "$gcc_cv_math_func_ccos" >&6; }
18787 if test $gcc_cv_math_func_ccos = yes; then
18788
18789 cat >>confdefs.h <<_ACEOF
18790 #define HAVE_CCOS 1
18791 _ACEOF
18792
18793 fi
18794
18795
18796
18797
18798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosl" >&5
18799 $as_echo_n "checking for ccosl... " >&6; }
18800 if ${gcc_cv_math_func_ccosl+:} false; then :
18801 $as_echo_n "(cached) " >&6
18802 else
18803 if test x$gcc_no_link = xyes; then
18804 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18805 fi
18806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18807 /* end confdefs.h. */
18808
18809 #ifdef HAVE_COMPLEX_H
18810 #include <complex.h>
18811 #endif
18812 #ifdef HAVE_MATH_H
18813 #include <math.h>
18814 #endif
18815
18816 int (*ptr)() = (int (*)())ccosl;
18817
18818 int
18819 main ()
18820 {
18821 return 0;
18822 }
18823
18824 _ACEOF
18825 if ac_fn_c_try_link "$LINENO"; then :
18826 gcc_cv_math_func_ccosl=yes
18827 else
18828 gcc_cv_math_func_ccosl=no
18829 fi
18830 rm -f core conftest.err conftest.$ac_objext \
18831 conftest$ac_exeext conftest.$ac_ext
18832 fi
18833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosl" >&5
18834 $as_echo "$gcc_cv_math_func_ccosl" >&6; }
18835 if test $gcc_cv_math_func_ccosl = yes; then
18836
18837 cat >>confdefs.h <<_ACEOF
18838 #define HAVE_CCOSL 1
18839 _ACEOF
18840
18841 fi
18842
18843
18844
18845
18846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshf" >&5
18847 $as_echo_n "checking for coshf... " >&6; }
18848 if ${gcc_cv_math_func_coshf+:} false; then :
18849 $as_echo_n "(cached) " >&6
18850 else
18851 if test x$gcc_no_link = xyes; then
18852 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18853 fi
18854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18855 /* end confdefs.h. */
18856
18857 #ifdef HAVE_COMPLEX_H
18858 #include <complex.h>
18859 #endif
18860 #ifdef HAVE_MATH_H
18861 #include <math.h>
18862 #endif
18863
18864 int (*ptr)() = (int (*)())coshf;
18865
18866 int
18867 main ()
18868 {
18869 return 0;
18870 }
18871
18872 _ACEOF
18873 if ac_fn_c_try_link "$LINENO"; then :
18874 gcc_cv_math_func_coshf=yes
18875 else
18876 gcc_cv_math_func_coshf=no
18877 fi
18878 rm -f core conftest.err conftest.$ac_objext \
18879 conftest$ac_exeext conftest.$ac_ext
18880 fi
18881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshf" >&5
18882 $as_echo "$gcc_cv_math_func_coshf" >&6; }
18883 if test $gcc_cv_math_func_coshf = yes; then
18884
18885 cat >>confdefs.h <<_ACEOF
18886 #define HAVE_COSHF 1
18887 _ACEOF
18888
18889 fi
18890
18891
18892
18893
18894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosh" >&5
18895 $as_echo_n "checking for cosh... " >&6; }
18896 if ${gcc_cv_math_func_cosh+:} false; then :
18897 $as_echo_n "(cached) " >&6
18898 else
18899 if test x$gcc_no_link = xyes; then
18900 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18901 fi
18902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18903 /* end confdefs.h. */
18904
18905 #ifdef HAVE_COMPLEX_H
18906 #include <complex.h>
18907 #endif
18908 #ifdef HAVE_MATH_H
18909 #include <math.h>
18910 #endif
18911
18912 int (*ptr)() = (int (*)())cosh;
18913
18914 int
18915 main ()
18916 {
18917 return 0;
18918 }
18919
18920 _ACEOF
18921 if ac_fn_c_try_link "$LINENO"; then :
18922 gcc_cv_math_func_cosh=yes
18923 else
18924 gcc_cv_math_func_cosh=no
18925 fi
18926 rm -f core conftest.err conftest.$ac_objext \
18927 conftest$ac_exeext conftest.$ac_ext
18928 fi
18929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosh" >&5
18930 $as_echo "$gcc_cv_math_func_cosh" >&6; }
18931 if test $gcc_cv_math_func_cosh = yes; then
18932
18933 cat >>confdefs.h <<_ACEOF
18934 #define HAVE_COSH 1
18935 _ACEOF
18936
18937 fi
18938
18939
18940
18941
18942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshl" >&5
18943 $as_echo_n "checking for coshl... " >&6; }
18944 if ${gcc_cv_math_func_coshl+:} false; then :
18945 $as_echo_n "(cached) " >&6
18946 else
18947 if test x$gcc_no_link = xyes; then
18948 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18949 fi
18950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18951 /* end confdefs.h. */
18952
18953 #ifdef HAVE_COMPLEX_H
18954 #include <complex.h>
18955 #endif
18956 #ifdef HAVE_MATH_H
18957 #include <math.h>
18958 #endif
18959
18960 int (*ptr)() = (int (*)())coshl;
18961
18962 int
18963 main ()
18964 {
18965 return 0;
18966 }
18967
18968 _ACEOF
18969 if ac_fn_c_try_link "$LINENO"; then :
18970 gcc_cv_math_func_coshl=yes
18971 else
18972 gcc_cv_math_func_coshl=no
18973 fi
18974 rm -f core conftest.err conftest.$ac_objext \
18975 conftest$ac_exeext conftest.$ac_ext
18976 fi
18977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshl" >&5
18978 $as_echo "$gcc_cv_math_func_coshl" >&6; }
18979 if test $gcc_cv_math_func_coshl = yes; then
18980
18981 cat >>confdefs.h <<_ACEOF
18982 #define HAVE_COSHL 1
18983 _ACEOF
18984
18985 fi
18986
18987
18988
18989
18990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshf" >&5
18991 $as_echo_n "checking for ccoshf... " >&6; }
18992 if ${gcc_cv_math_func_ccoshf+:} false; then :
18993 $as_echo_n "(cached) " >&6
18994 else
18995 if test x$gcc_no_link = xyes; then
18996 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18997 fi
18998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18999 /* end confdefs.h. */
19000
19001 #ifdef HAVE_COMPLEX_H
19002 #include <complex.h>
19003 #endif
19004 #ifdef HAVE_MATH_H
19005 #include <math.h>
19006 #endif
19007
19008 int (*ptr)() = (int (*)())ccoshf;
19009
19010 int
19011 main ()
19012 {
19013 return 0;
19014 }
19015
19016 _ACEOF
19017 if ac_fn_c_try_link "$LINENO"; then :
19018 gcc_cv_math_func_ccoshf=yes
19019 else
19020 gcc_cv_math_func_ccoshf=no
19021 fi
19022 rm -f core conftest.err conftest.$ac_objext \
19023 conftest$ac_exeext conftest.$ac_ext
19024 fi
19025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshf" >&5
19026 $as_echo "$gcc_cv_math_func_ccoshf" >&6; }
19027 if test $gcc_cv_math_func_ccoshf = yes; then
19028
19029 cat >>confdefs.h <<_ACEOF
19030 #define HAVE_CCOSHF 1
19031 _ACEOF
19032
19033 fi
19034
19035
19036
19037
19038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosh" >&5
19039 $as_echo_n "checking for ccosh... " >&6; }
19040 if ${gcc_cv_math_func_ccosh+:} false; then :
19041 $as_echo_n "(cached) " >&6
19042 else
19043 if test x$gcc_no_link = xyes; then
19044 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19045 fi
19046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19047 /* end confdefs.h. */
19048
19049 #ifdef HAVE_COMPLEX_H
19050 #include <complex.h>
19051 #endif
19052 #ifdef HAVE_MATH_H
19053 #include <math.h>
19054 #endif
19055
19056 int (*ptr)() = (int (*)())ccosh;
19057
19058 int
19059 main ()
19060 {
19061 return 0;
19062 }
19063
19064 _ACEOF
19065 if ac_fn_c_try_link "$LINENO"; then :
19066 gcc_cv_math_func_ccosh=yes
19067 else
19068 gcc_cv_math_func_ccosh=no
19069 fi
19070 rm -f core conftest.err conftest.$ac_objext \
19071 conftest$ac_exeext conftest.$ac_ext
19072 fi
19073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosh" >&5
19074 $as_echo "$gcc_cv_math_func_ccosh" >&6; }
19075 if test $gcc_cv_math_func_ccosh = yes; then
19076
19077 cat >>confdefs.h <<_ACEOF
19078 #define HAVE_CCOSH 1
19079 _ACEOF
19080
19081 fi
19082
19083
19084
19085
19086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshl" >&5
19087 $as_echo_n "checking for ccoshl... " >&6; }
19088 if ${gcc_cv_math_func_ccoshl+:} false; then :
19089 $as_echo_n "(cached) " >&6
19090 else
19091 if test x$gcc_no_link = xyes; then
19092 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19093 fi
19094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19095 /* end confdefs.h. */
19096
19097 #ifdef HAVE_COMPLEX_H
19098 #include <complex.h>
19099 #endif
19100 #ifdef HAVE_MATH_H
19101 #include <math.h>
19102 #endif
19103
19104 int (*ptr)() = (int (*)())ccoshl;
19105
19106 int
19107 main ()
19108 {
19109 return 0;
19110 }
19111
19112 _ACEOF
19113 if ac_fn_c_try_link "$LINENO"; then :
19114 gcc_cv_math_func_ccoshl=yes
19115 else
19116 gcc_cv_math_func_ccoshl=no
19117 fi
19118 rm -f core conftest.err conftest.$ac_objext \
19119 conftest$ac_exeext conftest.$ac_ext
19120 fi
19121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshl" >&5
19122 $as_echo "$gcc_cv_math_func_ccoshl" >&6; }
19123 if test $gcc_cv_math_func_ccoshl = yes; then
19124
19125 cat >>confdefs.h <<_ACEOF
19126 #define HAVE_CCOSHL 1
19127 _ACEOF
19128
19129 fi
19130
19131
19132
19133
19134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf" >&5
19135 $as_echo_n "checking for expf... " >&6; }
19136 if ${gcc_cv_math_func_expf+:} false; then :
19137 $as_echo_n "(cached) " >&6
19138 else
19139 if test x$gcc_no_link = xyes; then
19140 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19141 fi
19142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19143 /* end confdefs.h. */
19144
19145 #ifdef HAVE_COMPLEX_H
19146 #include <complex.h>
19147 #endif
19148 #ifdef HAVE_MATH_H
19149 #include <math.h>
19150 #endif
19151
19152 int (*ptr)() = (int (*)())expf;
19153
19154 int
19155 main ()
19156 {
19157 return 0;
19158 }
19159
19160 _ACEOF
19161 if ac_fn_c_try_link "$LINENO"; then :
19162 gcc_cv_math_func_expf=yes
19163 else
19164 gcc_cv_math_func_expf=no
19165 fi
19166 rm -f core conftest.err conftest.$ac_objext \
19167 conftest$ac_exeext conftest.$ac_ext
19168 fi
19169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expf" >&5
19170 $as_echo "$gcc_cv_math_func_expf" >&6; }
19171 if test $gcc_cv_math_func_expf = yes; then
19172
19173 cat >>confdefs.h <<_ACEOF
19174 #define HAVE_EXPF 1
19175 _ACEOF
19176
19177 fi
19178
19179
19180
19181
19182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp" >&5
19183 $as_echo_n "checking for exp... " >&6; }
19184 if ${gcc_cv_math_func_exp+:} false; then :
19185 $as_echo_n "(cached) " >&6
19186 else
19187 if test x$gcc_no_link = xyes; then
19188 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19189 fi
19190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19191 /* end confdefs.h. */
19192
19193 #ifdef HAVE_COMPLEX_H
19194 #include <complex.h>
19195 #endif
19196 #ifdef HAVE_MATH_H
19197 #include <math.h>
19198 #endif
19199
19200 int (*ptr)() = (int (*)())exp;
19201
19202 int
19203 main ()
19204 {
19205 return 0;
19206 }
19207
19208 _ACEOF
19209 if ac_fn_c_try_link "$LINENO"; then :
19210 gcc_cv_math_func_exp=yes
19211 else
19212 gcc_cv_math_func_exp=no
19213 fi
19214 rm -f core conftest.err conftest.$ac_objext \
19215 conftest$ac_exeext conftest.$ac_ext
19216 fi
19217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_exp" >&5
19218 $as_echo "$gcc_cv_math_func_exp" >&6; }
19219 if test $gcc_cv_math_func_exp = yes; then
19220
19221 cat >>confdefs.h <<_ACEOF
19222 #define HAVE_EXP 1
19223 _ACEOF
19224
19225 fi
19226
19227
19228
19229
19230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl" >&5
19231 $as_echo_n "checking for expl... " >&6; }
19232 if ${gcc_cv_math_func_expl+:} false; then :
19233 $as_echo_n "(cached) " >&6
19234 else
19235 if test x$gcc_no_link = xyes; then
19236 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19237 fi
19238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19239 /* end confdefs.h. */
19240
19241 #ifdef HAVE_COMPLEX_H
19242 #include <complex.h>
19243 #endif
19244 #ifdef HAVE_MATH_H
19245 #include <math.h>
19246 #endif
19247
19248 int (*ptr)() = (int (*)())expl;
19249
19250 int
19251 main ()
19252 {
19253 return 0;
19254 }
19255
19256 _ACEOF
19257 if ac_fn_c_try_link "$LINENO"; then :
19258 gcc_cv_math_func_expl=yes
19259 else
19260 gcc_cv_math_func_expl=no
19261 fi
19262 rm -f core conftest.err conftest.$ac_objext \
19263 conftest$ac_exeext conftest.$ac_ext
19264 fi
19265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expl" >&5
19266 $as_echo "$gcc_cv_math_func_expl" >&6; }
19267 if test $gcc_cv_math_func_expl = yes; then
19268
19269 cat >>confdefs.h <<_ACEOF
19270 #define HAVE_EXPL 1
19271 _ACEOF
19272
19273 fi
19274
19275
19276
19277
19278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpf" >&5
19279 $as_echo_n "checking for cexpf... " >&6; }
19280 if ${gcc_cv_math_func_cexpf+:} false; then :
19281 $as_echo_n "(cached) " >&6
19282 else
19283 if test x$gcc_no_link = xyes; then
19284 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19285 fi
19286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19287 /* end confdefs.h. */
19288
19289 #ifdef HAVE_COMPLEX_H
19290 #include <complex.h>
19291 #endif
19292 #ifdef HAVE_MATH_H
19293 #include <math.h>
19294 #endif
19295
19296 int (*ptr)() = (int (*)())cexpf;
19297
19298 int
19299 main ()
19300 {
19301 return 0;
19302 }
19303
19304 _ACEOF
19305 if ac_fn_c_try_link "$LINENO"; then :
19306 gcc_cv_math_func_cexpf=yes
19307 else
19308 gcc_cv_math_func_cexpf=no
19309 fi
19310 rm -f core conftest.err conftest.$ac_objext \
19311 conftest$ac_exeext conftest.$ac_ext
19312 fi
19313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpf" >&5
19314 $as_echo "$gcc_cv_math_func_cexpf" >&6; }
19315 if test $gcc_cv_math_func_cexpf = yes; then
19316
19317 cat >>confdefs.h <<_ACEOF
19318 #define HAVE_CEXPF 1
19319 _ACEOF
19320
19321 fi
19322
19323
19324
19325
19326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexp" >&5
19327 $as_echo_n "checking for cexp... " >&6; }
19328 if ${gcc_cv_math_func_cexp+:} false; then :
19329 $as_echo_n "(cached) " >&6
19330 else
19331 if test x$gcc_no_link = xyes; then
19332 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19333 fi
19334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19335 /* end confdefs.h. */
19336
19337 #ifdef HAVE_COMPLEX_H
19338 #include <complex.h>
19339 #endif
19340 #ifdef HAVE_MATH_H
19341 #include <math.h>
19342 #endif
19343
19344 int (*ptr)() = (int (*)())cexp;
19345
19346 int
19347 main ()
19348 {
19349 return 0;
19350 }
19351
19352 _ACEOF
19353 if ac_fn_c_try_link "$LINENO"; then :
19354 gcc_cv_math_func_cexp=yes
19355 else
19356 gcc_cv_math_func_cexp=no
19357 fi
19358 rm -f core conftest.err conftest.$ac_objext \
19359 conftest$ac_exeext conftest.$ac_ext
19360 fi
19361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexp" >&5
19362 $as_echo "$gcc_cv_math_func_cexp" >&6; }
19363 if test $gcc_cv_math_func_cexp = yes; then
19364
19365 cat >>confdefs.h <<_ACEOF
19366 #define HAVE_CEXP 1
19367 _ACEOF
19368
19369 fi
19370
19371
19372
19373
19374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpl" >&5
19375 $as_echo_n "checking for cexpl... " >&6; }
19376 if ${gcc_cv_math_func_cexpl+:} false; then :
19377 $as_echo_n "(cached) " >&6
19378 else
19379 if test x$gcc_no_link = xyes; then
19380 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19381 fi
19382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19383 /* end confdefs.h. */
19384
19385 #ifdef HAVE_COMPLEX_H
19386 #include <complex.h>
19387 #endif
19388 #ifdef HAVE_MATH_H
19389 #include <math.h>
19390 #endif
19391
19392 int (*ptr)() = (int (*)())cexpl;
19393
19394 int
19395 main ()
19396 {
19397 return 0;
19398 }
19399
19400 _ACEOF
19401 if ac_fn_c_try_link "$LINENO"; then :
19402 gcc_cv_math_func_cexpl=yes
19403 else
19404 gcc_cv_math_func_cexpl=no
19405 fi
19406 rm -f core conftest.err conftest.$ac_objext \
19407 conftest$ac_exeext conftest.$ac_ext
19408 fi
19409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpl" >&5
19410 $as_echo "$gcc_cv_math_func_cexpl" >&6; }
19411 if test $gcc_cv_math_func_cexpl = yes; then
19412
19413 cat >>confdefs.h <<_ACEOF
19414 #define HAVE_CEXPL 1
19415 _ACEOF
19416
19417 fi
19418
19419
19420
19421
19422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf" >&5
19423 $as_echo_n "checking for fabsf... " >&6; }
19424 if ${gcc_cv_math_func_fabsf+:} false; then :
19425 $as_echo_n "(cached) " >&6
19426 else
19427 if test x$gcc_no_link = xyes; then
19428 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19429 fi
19430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19431 /* end confdefs.h. */
19432
19433 #ifdef HAVE_COMPLEX_H
19434 #include <complex.h>
19435 #endif
19436 #ifdef HAVE_MATH_H
19437 #include <math.h>
19438 #endif
19439
19440 int (*ptr)() = (int (*)())fabsf;
19441
19442 int
19443 main ()
19444 {
19445 return 0;
19446 }
19447
19448 _ACEOF
19449 if ac_fn_c_try_link "$LINENO"; then :
19450 gcc_cv_math_func_fabsf=yes
19451 else
19452 gcc_cv_math_func_fabsf=no
19453 fi
19454 rm -f core conftest.err conftest.$ac_objext \
19455 conftest$ac_exeext conftest.$ac_ext
19456 fi
19457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsf" >&5
19458 $as_echo "$gcc_cv_math_func_fabsf" >&6; }
19459 if test $gcc_cv_math_func_fabsf = yes; then
19460
19461 cat >>confdefs.h <<_ACEOF
19462 #define HAVE_FABSF 1
19463 _ACEOF
19464
19465 fi
19466
19467
19468
19469
19470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs" >&5
19471 $as_echo_n "checking for fabs... " >&6; }
19472 if ${gcc_cv_math_func_fabs+:} false; then :
19473 $as_echo_n "(cached) " >&6
19474 else
19475 if test x$gcc_no_link = xyes; then
19476 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19477 fi
19478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19479 /* end confdefs.h. */
19480
19481 #ifdef HAVE_COMPLEX_H
19482 #include <complex.h>
19483 #endif
19484 #ifdef HAVE_MATH_H
19485 #include <math.h>
19486 #endif
19487
19488 int (*ptr)() = (int (*)())fabs;
19489
19490 int
19491 main ()
19492 {
19493 return 0;
19494 }
19495
19496 _ACEOF
19497 if ac_fn_c_try_link "$LINENO"; then :
19498 gcc_cv_math_func_fabs=yes
19499 else
19500 gcc_cv_math_func_fabs=no
19501 fi
19502 rm -f core conftest.err conftest.$ac_objext \
19503 conftest$ac_exeext conftest.$ac_ext
19504 fi
19505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabs" >&5
19506 $as_echo "$gcc_cv_math_func_fabs" >&6; }
19507 if test $gcc_cv_math_func_fabs = yes; then
19508
19509 cat >>confdefs.h <<_ACEOF
19510 #define HAVE_FABS 1
19511 _ACEOF
19512
19513 fi
19514
19515
19516
19517
19518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl" >&5
19519 $as_echo_n "checking for fabsl... " >&6; }
19520 if ${gcc_cv_math_func_fabsl+:} false; then :
19521 $as_echo_n "(cached) " >&6
19522 else
19523 if test x$gcc_no_link = xyes; then
19524 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19525 fi
19526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19527 /* end confdefs.h. */
19528
19529 #ifdef HAVE_COMPLEX_H
19530 #include <complex.h>
19531 #endif
19532 #ifdef HAVE_MATH_H
19533 #include <math.h>
19534 #endif
19535
19536 int (*ptr)() = (int (*)())fabsl;
19537
19538 int
19539 main ()
19540 {
19541 return 0;
19542 }
19543
19544 _ACEOF
19545 if ac_fn_c_try_link "$LINENO"; then :
19546 gcc_cv_math_func_fabsl=yes
19547 else
19548 gcc_cv_math_func_fabsl=no
19549 fi
19550 rm -f core conftest.err conftest.$ac_objext \
19551 conftest$ac_exeext conftest.$ac_ext
19552 fi
19553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsl" >&5
19554 $as_echo "$gcc_cv_math_func_fabsl" >&6; }
19555 if test $gcc_cv_math_func_fabsl = yes; then
19556
19557 cat >>confdefs.h <<_ACEOF
19558 #define HAVE_FABSL 1
19559 _ACEOF
19560
19561 fi
19562
19563
19564
19565
19566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsf" >&5
19567 $as_echo_n "checking for cabsf... " >&6; }
19568 if ${gcc_cv_math_func_cabsf+:} false; then :
19569 $as_echo_n "(cached) " >&6
19570 else
19571 if test x$gcc_no_link = xyes; then
19572 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19573 fi
19574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19575 /* end confdefs.h. */
19576
19577 #ifdef HAVE_COMPLEX_H
19578 #include <complex.h>
19579 #endif
19580 #ifdef HAVE_MATH_H
19581 #include <math.h>
19582 #endif
19583
19584 int (*ptr)() = (int (*)())cabsf;
19585
19586 int
19587 main ()
19588 {
19589 return 0;
19590 }
19591
19592 _ACEOF
19593 if ac_fn_c_try_link "$LINENO"; then :
19594 gcc_cv_math_func_cabsf=yes
19595 else
19596 gcc_cv_math_func_cabsf=no
19597 fi
19598 rm -f core conftest.err conftest.$ac_objext \
19599 conftest$ac_exeext conftest.$ac_ext
19600 fi
19601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsf" >&5
19602 $as_echo "$gcc_cv_math_func_cabsf" >&6; }
19603 if test $gcc_cv_math_func_cabsf = yes; then
19604
19605 cat >>confdefs.h <<_ACEOF
19606 #define HAVE_CABSF 1
19607 _ACEOF
19608
19609 fi
19610
19611
19612
19613
19614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabs" >&5
19615 $as_echo_n "checking for cabs... " >&6; }
19616 if ${gcc_cv_math_func_cabs+:} false; then :
19617 $as_echo_n "(cached) " >&6
19618 else
19619 if test x$gcc_no_link = xyes; then
19620 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19621 fi
19622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19623 /* end confdefs.h. */
19624
19625 #ifdef HAVE_COMPLEX_H
19626 #include <complex.h>
19627 #endif
19628 #ifdef HAVE_MATH_H
19629 #include <math.h>
19630 #endif
19631
19632 int (*ptr)() = (int (*)())cabs;
19633
19634 int
19635 main ()
19636 {
19637 return 0;
19638 }
19639
19640 _ACEOF
19641 if ac_fn_c_try_link "$LINENO"; then :
19642 gcc_cv_math_func_cabs=yes
19643 else
19644 gcc_cv_math_func_cabs=no
19645 fi
19646 rm -f core conftest.err conftest.$ac_objext \
19647 conftest$ac_exeext conftest.$ac_ext
19648 fi
19649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabs" >&5
19650 $as_echo "$gcc_cv_math_func_cabs" >&6; }
19651 if test $gcc_cv_math_func_cabs = yes; then
19652
19653 cat >>confdefs.h <<_ACEOF
19654 #define HAVE_CABS 1
19655 _ACEOF
19656
19657 fi
19658
19659
19660
19661
19662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsl" >&5
19663 $as_echo_n "checking for cabsl... " >&6; }
19664 if ${gcc_cv_math_func_cabsl+:} false; then :
19665 $as_echo_n "(cached) " >&6
19666 else
19667 if test x$gcc_no_link = xyes; then
19668 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19669 fi
19670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19671 /* end confdefs.h. */
19672
19673 #ifdef HAVE_COMPLEX_H
19674 #include <complex.h>
19675 #endif
19676 #ifdef HAVE_MATH_H
19677 #include <math.h>
19678 #endif
19679
19680 int (*ptr)() = (int (*)())cabsl;
19681
19682 int
19683 main ()
19684 {
19685 return 0;
19686 }
19687
19688 _ACEOF
19689 if ac_fn_c_try_link "$LINENO"; then :
19690 gcc_cv_math_func_cabsl=yes
19691 else
19692 gcc_cv_math_func_cabsl=no
19693 fi
19694 rm -f core conftest.err conftest.$ac_objext \
19695 conftest$ac_exeext conftest.$ac_ext
19696 fi
19697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsl" >&5
19698 $as_echo "$gcc_cv_math_func_cabsl" >&6; }
19699 if test $gcc_cv_math_func_cabsl = yes; then
19700
19701 cat >>confdefs.h <<_ACEOF
19702 #define HAVE_CABSL 1
19703 _ACEOF
19704
19705 fi
19706
19707
19708
19709
19710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorf" >&5
19711 $as_echo_n "checking for floorf... " >&6; }
19712 if ${gcc_cv_math_func_floorf+:} false; then :
19713 $as_echo_n "(cached) " >&6
19714 else
19715 if test x$gcc_no_link = xyes; then
19716 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19717 fi
19718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19719 /* end confdefs.h. */
19720
19721 #ifdef HAVE_COMPLEX_H
19722 #include <complex.h>
19723 #endif
19724 #ifdef HAVE_MATH_H
19725 #include <math.h>
19726 #endif
19727
19728 int (*ptr)() = (int (*)())floorf;
19729
19730 int
19731 main ()
19732 {
19733 return 0;
19734 }
19735
19736 _ACEOF
19737 if ac_fn_c_try_link "$LINENO"; then :
19738 gcc_cv_math_func_floorf=yes
19739 else
19740 gcc_cv_math_func_floorf=no
19741 fi
19742 rm -f core conftest.err conftest.$ac_objext \
19743 conftest$ac_exeext conftest.$ac_ext
19744 fi
19745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorf" >&5
19746 $as_echo "$gcc_cv_math_func_floorf" >&6; }
19747 if test $gcc_cv_math_func_floorf = yes; then
19748
19749 cat >>confdefs.h <<_ACEOF
19750 #define HAVE_FLOORF 1
19751 _ACEOF
19752
19753 fi
19754
19755
19756
19757
19758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor" >&5
19759 $as_echo_n "checking for floor... " >&6; }
19760 if ${gcc_cv_math_func_floor+:} false; then :
19761 $as_echo_n "(cached) " >&6
19762 else
19763 if test x$gcc_no_link = xyes; then
19764 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19765 fi
19766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19767 /* end confdefs.h. */
19768
19769 #ifdef HAVE_COMPLEX_H
19770 #include <complex.h>
19771 #endif
19772 #ifdef HAVE_MATH_H
19773 #include <math.h>
19774 #endif
19775
19776 int (*ptr)() = (int (*)())floor;
19777
19778 int
19779 main ()
19780 {
19781 return 0;
19782 }
19783
19784 _ACEOF
19785 if ac_fn_c_try_link "$LINENO"; then :
19786 gcc_cv_math_func_floor=yes
19787 else
19788 gcc_cv_math_func_floor=no
19789 fi
19790 rm -f core conftest.err conftest.$ac_objext \
19791 conftest$ac_exeext conftest.$ac_ext
19792 fi
19793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floor" >&5
19794 $as_echo "$gcc_cv_math_func_floor" >&6; }
19795 if test $gcc_cv_math_func_floor = yes; then
19796
19797 cat >>confdefs.h <<_ACEOF
19798 #define HAVE_FLOOR 1
19799 _ACEOF
19800
19801 fi
19802
19803
19804
19805
19806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorl" >&5
19807 $as_echo_n "checking for floorl... " >&6; }
19808 if ${gcc_cv_math_func_floorl+:} false; then :
19809 $as_echo_n "(cached) " >&6
19810 else
19811 if test x$gcc_no_link = xyes; then
19812 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19813 fi
19814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19815 /* end confdefs.h. */
19816
19817 #ifdef HAVE_COMPLEX_H
19818 #include <complex.h>
19819 #endif
19820 #ifdef HAVE_MATH_H
19821 #include <math.h>
19822 #endif
19823
19824 int (*ptr)() = (int (*)())floorl;
19825
19826 int
19827 main ()
19828 {
19829 return 0;
19830 }
19831
19832 _ACEOF
19833 if ac_fn_c_try_link "$LINENO"; then :
19834 gcc_cv_math_func_floorl=yes
19835 else
19836 gcc_cv_math_func_floorl=no
19837 fi
19838 rm -f core conftest.err conftest.$ac_objext \
19839 conftest$ac_exeext conftest.$ac_ext
19840 fi
19841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorl" >&5
19842 $as_echo "$gcc_cv_math_func_floorl" >&6; }
19843 if test $gcc_cv_math_func_floorl = yes; then
19844
19845 cat >>confdefs.h <<_ACEOF
19846 #define HAVE_FLOORL 1
19847 _ACEOF
19848
19849 fi
19850
19851
19852
19853
19854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmaf" >&5
19855 $as_echo_n "checking for fmaf... " >&6; }
19856 if ${gcc_cv_math_func_fmaf+:} false; then :
19857 $as_echo_n "(cached) " >&6
19858 else
19859 if test x$gcc_no_link = xyes; then
19860 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19861 fi
19862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19863 /* end confdefs.h. */
19864
19865 #ifdef HAVE_COMPLEX_H
19866 #include <complex.h>
19867 #endif
19868 #ifdef HAVE_MATH_H
19869 #include <math.h>
19870 #endif
19871
19872 int (*ptr)() = (int (*)())fmaf;
19873
19874 int
19875 main ()
19876 {
19877 return 0;
19878 }
19879
19880 _ACEOF
19881 if ac_fn_c_try_link "$LINENO"; then :
19882 gcc_cv_math_func_fmaf=yes
19883 else
19884 gcc_cv_math_func_fmaf=no
19885 fi
19886 rm -f core conftest.err conftest.$ac_objext \
19887 conftest$ac_exeext conftest.$ac_ext
19888 fi
19889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmaf" >&5
19890 $as_echo "$gcc_cv_math_func_fmaf" >&6; }
19891 if test $gcc_cv_math_func_fmaf = yes; then
19892
19893 cat >>confdefs.h <<_ACEOF
19894 #define HAVE_FMAF 1
19895 _ACEOF
19896
19897 fi
19898
19899
19900
19901
19902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fma" >&5
19903 $as_echo_n "checking for fma... " >&6; }
19904 if ${gcc_cv_math_func_fma+:} false; then :
19905 $as_echo_n "(cached) " >&6
19906 else
19907 if test x$gcc_no_link = xyes; then
19908 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19909 fi
19910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19911 /* end confdefs.h. */
19912
19913 #ifdef HAVE_COMPLEX_H
19914 #include <complex.h>
19915 #endif
19916 #ifdef HAVE_MATH_H
19917 #include <math.h>
19918 #endif
19919
19920 int (*ptr)() = (int (*)())fma;
19921
19922 int
19923 main ()
19924 {
19925 return 0;
19926 }
19927
19928 _ACEOF
19929 if ac_fn_c_try_link "$LINENO"; then :
19930 gcc_cv_math_func_fma=yes
19931 else
19932 gcc_cv_math_func_fma=no
19933 fi
19934 rm -f core conftest.err conftest.$ac_objext \
19935 conftest$ac_exeext conftest.$ac_ext
19936 fi
19937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fma" >&5
19938 $as_echo "$gcc_cv_math_func_fma" >&6; }
19939 if test $gcc_cv_math_func_fma = yes; then
19940
19941 cat >>confdefs.h <<_ACEOF
19942 #define HAVE_FMA 1
19943 _ACEOF
19944
19945 fi
19946
19947
19948
19949
19950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmal" >&5
19951 $as_echo_n "checking for fmal... " >&6; }
19952 if ${gcc_cv_math_func_fmal+:} false; then :
19953 $as_echo_n "(cached) " >&6
19954 else
19955 if test x$gcc_no_link = xyes; then
19956 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19957 fi
19958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19959 /* end confdefs.h. */
19960
19961 #ifdef HAVE_COMPLEX_H
19962 #include <complex.h>
19963 #endif
19964 #ifdef HAVE_MATH_H
19965 #include <math.h>
19966 #endif
19967
19968 int (*ptr)() = (int (*)())fmal;
19969
19970 int
19971 main ()
19972 {
19973 return 0;
19974 }
19975
19976 _ACEOF
19977 if ac_fn_c_try_link "$LINENO"; then :
19978 gcc_cv_math_func_fmal=yes
19979 else
19980 gcc_cv_math_func_fmal=no
19981 fi
19982 rm -f core conftest.err conftest.$ac_objext \
19983 conftest$ac_exeext conftest.$ac_ext
19984 fi
19985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmal" >&5
19986 $as_echo "$gcc_cv_math_func_fmal" >&6; }
19987 if test $gcc_cv_math_func_fmal = yes; then
19988
19989 cat >>confdefs.h <<_ACEOF
19990 #define HAVE_FMAL 1
19991 _ACEOF
19992
19993 fi
19994
19995
19996
19997
19998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf" >&5
19999 $as_echo_n "checking for fmodf... " >&6; }
20000 if ${gcc_cv_math_func_fmodf+:} false; then :
20001 $as_echo_n "(cached) " >&6
20002 else
20003 if test x$gcc_no_link = xyes; then
20004 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20005 fi
20006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20007 /* end confdefs.h. */
20008
20009 #ifdef HAVE_COMPLEX_H
20010 #include <complex.h>
20011 #endif
20012 #ifdef HAVE_MATH_H
20013 #include <math.h>
20014 #endif
20015
20016 int (*ptr)() = (int (*)())fmodf;
20017
20018 int
20019 main ()
20020 {
20021 return 0;
20022 }
20023
20024 _ACEOF
20025 if ac_fn_c_try_link "$LINENO"; then :
20026 gcc_cv_math_func_fmodf=yes
20027 else
20028 gcc_cv_math_func_fmodf=no
20029 fi
20030 rm -f core conftest.err conftest.$ac_objext \
20031 conftest$ac_exeext conftest.$ac_ext
20032 fi
20033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodf" >&5
20034 $as_echo "$gcc_cv_math_func_fmodf" >&6; }
20035 if test $gcc_cv_math_func_fmodf = yes; then
20036
20037 cat >>confdefs.h <<_ACEOF
20038 #define HAVE_FMODF 1
20039 _ACEOF
20040
20041 fi
20042
20043
20044
20045
20046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod" >&5
20047 $as_echo_n "checking for fmod... " >&6; }
20048 if ${gcc_cv_math_func_fmod+:} false; then :
20049 $as_echo_n "(cached) " >&6
20050 else
20051 if test x$gcc_no_link = xyes; then
20052 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20053 fi
20054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20055 /* end confdefs.h. */
20056
20057 #ifdef HAVE_COMPLEX_H
20058 #include <complex.h>
20059 #endif
20060 #ifdef HAVE_MATH_H
20061 #include <math.h>
20062 #endif
20063
20064 int (*ptr)() = (int (*)())fmod;
20065
20066 int
20067 main ()
20068 {
20069 return 0;
20070 }
20071
20072 _ACEOF
20073 if ac_fn_c_try_link "$LINENO"; then :
20074 gcc_cv_math_func_fmod=yes
20075 else
20076 gcc_cv_math_func_fmod=no
20077 fi
20078 rm -f core conftest.err conftest.$ac_objext \
20079 conftest$ac_exeext conftest.$ac_ext
20080 fi
20081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmod" >&5
20082 $as_echo "$gcc_cv_math_func_fmod" >&6; }
20083 if test $gcc_cv_math_func_fmod = yes; then
20084
20085 cat >>confdefs.h <<_ACEOF
20086 #define HAVE_FMOD 1
20087 _ACEOF
20088
20089 fi
20090
20091
20092
20093
20094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl" >&5
20095 $as_echo_n "checking for fmodl... " >&6; }
20096 if ${gcc_cv_math_func_fmodl+:} false; then :
20097 $as_echo_n "(cached) " >&6
20098 else
20099 if test x$gcc_no_link = xyes; then
20100 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20101 fi
20102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20103 /* end confdefs.h. */
20104
20105 #ifdef HAVE_COMPLEX_H
20106 #include <complex.h>
20107 #endif
20108 #ifdef HAVE_MATH_H
20109 #include <math.h>
20110 #endif
20111
20112 int (*ptr)() = (int (*)())fmodl;
20113
20114 int
20115 main ()
20116 {
20117 return 0;
20118 }
20119
20120 _ACEOF
20121 if ac_fn_c_try_link "$LINENO"; then :
20122 gcc_cv_math_func_fmodl=yes
20123 else
20124 gcc_cv_math_func_fmodl=no
20125 fi
20126 rm -f core conftest.err conftest.$ac_objext \
20127 conftest$ac_exeext conftest.$ac_ext
20128 fi
20129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodl" >&5
20130 $as_echo "$gcc_cv_math_func_fmodl" >&6; }
20131 if test $gcc_cv_math_func_fmodl = yes; then
20132
20133 cat >>confdefs.h <<_ACEOF
20134 #define HAVE_FMODL 1
20135 _ACEOF
20136
20137 fi
20138
20139
20140
20141
20142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf" >&5
20143 $as_echo_n "checking for frexpf... " >&6; }
20144 if ${gcc_cv_math_func_frexpf+:} false; then :
20145 $as_echo_n "(cached) " >&6
20146 else
20147 if test x$gcc_no_link = xyes; then
20148 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20149 fi
20150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20151 /* end confdefs.h. */
20152
20153 #ifdef HAVE_COMPLEX_H
20154 #include <complex.h>
20155 #endif
20156 #ifdef HAVE_MATH_H
20157 #include <math.h>
20158 #endif
20159
20160 int (*ptr)() = (int (*)())frexpf;
20161
20162 int
20163 main ()
20164 {
20165 return 0;
20166 }
20167
20168 _ACEOF
20169 if ac_fn_c_try_link "$LINENO"; then :
20170 gcc_cv_math_func_frexpf=yes
20171 else
20172 gcc_cv_math_func_frexpf=no
20173 fi
20174 rm -f core conftest.err conftest.$ac_objext \
20175 conftest$ac_exeext conftest.$ac_ext
20176 fi
20177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpf" >&5
20178 $as_echo "$gcc_cv_math_func_frexpf" >&6; }
20179 if test $gcc_cv_math_func_frexpf = yes; then
20180
20181 cat >>confdefs.h <<_ACEOF
20182 #define HAVE_FREXPF 1
20183 _ACEOF
20184
20185 fi
20186
20187
20188
20189
20190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexp" >&5
20191 $as_echo_n "checking for frexp... " >&6; }
20192 if ${gcc_cv_math_func_frexp+:} false; then :
20193 $as_echo_n "(cached) " >&6
20194 else
20195 if test x$gcc_no_link = xyes; then
20196 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20197 fi
20198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20199 /* end confdefs.h. */
20200
20201 #ifdef HAVE_COMPLEX_H
20202 #include <complex.h>
20203 #endif
20204 #ifdef HAVE_MATH_H
20205 #include <math.h>
20206 #endif
20207
20208 int (*ptr)() = (int (*)())frexp;
20209
20210 int
20211 main ()
20212 {
20213 return 0;
20214 }
20215
20216 _ACEOF
20217 if ac_fn_c_try_link "$LINENO"; then :
20218 gcc_cv_math_func_frexp=yes
20219 else
20220 gcc_cv_math_func_frexp=no
20221 fi
20222 rm -f core conftest.err conftest.$ac_objext \
20223 conftest$ac_exeext conftest.$ac_ext
20224 fi
20225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexp" >&5
20226 $as_echo "$gcc_cv_math_func_frexp" >&6; }
20227 if test $gcc_cv_math_func_frexp = yes; then
20228
20229 cat >>confdefs.h <<_ACEOF
20230 #define HAVE_FREXP 1
20231 _ACEOF
20232
20233 fi
20234
20235
20236
20237
20238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl" >&5
20239 $as_echo_n "checking for frexpl... " >&6; }
20240 if ${gcc_cv_math_func_frexpl+:} false; then :
20241 $as_echo_n "(cached) " >&6
20242 else
20243 if test x$gcc_no_link = xyes; then
20244 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20245 fi
20246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20247 /* end confdefs.h. */
20248
20249 #ifdef HAVE_COMPLEX_H
20250 #include <complex.h>
20251 #endif
20252 #ifdef HAVE_MATH_H
20253 #include <math.h>
20254 #endif
20255
20256 int (*ptr)() = (int (*)())frexpl;
20257
20258 int
20259 main ()
20260 {
20261 return 0;
20262 }
20263
20264 _ACEOF
20265 if ac_fn_c_try_link "$LINENO"; then :
20266 gcc_cv_math_func_frexpl=yes
20267 else
20268 gcc_cv_math_func_frexpl=no
20269 fi
20270 rm -f core conftest.err conftest.$ac_objext \
20271 conftest$ac_exeext conftest.$ac_ext
20272 fi
20273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpl" >&5
20274 $as_echo "$gcc_cv_math_func_frexpl" >&6; }
20275 if test $gcc_cv_math_func_frexpl = yes; then
20276
20277 cat >>confdefs.h <<_ACEOF
20278 #define HAVE_FREXPL 1
20279 _ACEOF
20280
20281 fi
20282
20283
20284
20285
20286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf" >&5
20287 $as_echo_n "checking for hypotf... " >&6; }
20288 if ${gcc_cv_math_func_hypotf+:} false; then :
20289 $as_echo_n "(cached) " >&6
20290 else
20291 if test x$gcc_no_link = xyes; then
20292 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20293 fi
20294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20295 /* end confdefs.h. */
20296
20297 #ifdef HAVE_COMPLEX_H
20298 #include <complex.h>
20299 #endif
20300 #ifdef HAVE_MATH_H
20301 #include <math.h>
20302 #endif
20303
20304 int (*ptr)() = (int (*)())hypotf;
20305
20306 int
20307 main ()
20308 {
20309 return 0;
20310 }
20311
20312 _ACEOF
20313 if ac_fn_c_try_link "$LINENO"; then :
20314 gcc_cv_math_func_hypotf=yes
20315 else
20316 gcc_cv_math_func_hypotf=no
20317 fi
20318 rm -f core conftest.err conftest.$ac_objext \
20319 conftest$ac_exeext conftest.$ac_ext
20320 fi
20321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotf" >&5
20322 $as_echo "$gcc_cv_math_func_hypotf" >&6; }
20323 if test $gcc_cv_math_func_hypotf = yes; then
20324
20325 cat >>confdefs.h <<_ACEOF
20326 #define HAVE_HYPOTF 1
20327 _ACEOF
20328
20329 fi
20330
20331
20332
20333
20334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot" >&5
20335 $as_echo_n "checking for hypot... " >&6; }
20336 if ${gcc_cv_math_func_hypot+:} false; then :
20337 $as_echo_n "(cached) " >&6
20338 else
20339 if test x$gcc_no_link = xyes; then
20340 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20341 fi
20342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20343 /* end confdefs.h. */
20344
20345 #ifdef HAVE_COMPLEX_H
20346 #include <complex.h>
20347 #endif
20348 #ifdef HAVE_MATH_H
20349 #include <math.h>
20350 #endif
20351
20352 int (*ptr)() = (int (*)())hypot;
20353
20354 int
20355 main ()
20356 {
20357 return 0;
20358 }
20359
20360 _ACEOF
20361 if ac_fn_c_try_link "$LINENO"; then :
20362 gcc_cv_math_func_hypot=yes
20363 else
20364 gcc_cv_math_func_hypot=no
20365 fi
20366 rm -f core conftest.err conftest.$ac_objext \
20367 conftest$ac_exeext conftest.$ac_ext
20368 fi
20369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypot" >&5
20370 $as_echo "$gcc_cv_math_func_hypot" >&6; }
20371 if test $gcc_cv_math_func_hypot = yes; then
20372
20373 cat >>confdefs.h <<_ACEOF
20374 #define HAVE_HYPOT 1
20375 _ACEOF
20376
20377 fi
20378
20379
20380
20381
20382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl" >&5
20383 $as_echo_n "checking for hypotl... " >&6; }
20384 if ${gcc_cv_math_func_hypotl+:} false; then :
20385 $as_echo_n "(cached) " >&6
20386 else
20387 if test x$gcc_no_link = xyes; then
20388 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20389 fi
20390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20391 /* end confdefs.h. */
20392
20393 #ifdef HAVE_COMPLEX_H
20394 #include <complex.h>
20395 #endif
20396 #ifdef HAVE_MATH_H
20397 #include <math.h>
20398 #endif
20399
20400 int (*ptr)() = (int (*)())hypotl;
20401
20402 int
20403 main ()
20404 {
20405 return 0;
20406 }
20407
20408 _ACEOF
20409 if ac_fn_c_try_link "$LINENO"; then :
20410 gcc_cv_math_func_hypotl=yes
20411 else
20412 gcc_cv_math_func_hypotl=no
20413 fi
20414 rm -f core conftest.err conftest.$ac_objext \
20415 conftest$ac_exeext conftest.$ac_ext
20416 fi
20417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotl" >&5
20418 $as_echo "$gcc_cv_math_func_hypotl" >&6; }
20419 if test $gcc_cv_math_func_hypotl = yes; then
20420
20421 cat >>confdefs.h <<_ACEOF
20422 #define HAVE_HYPOTL 1
20423 _ACEOF
20424
20425 fi
20426
20427
20428
20429
20430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf" >&5
20431 $as_echo_n "checking for ldexpf... " >&6; }
20432 if ${gcc_cv_math_func_ldexpf+:} false; then :
20433 $as_echo_n "(cached) " >&6
20434 else
20435 if test x$gcc_no_link = xyes; then
20436 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20437 fi
20438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20439 /* end confdefs.h. */
20440
20441 #ifdef HAVE_COMPLEX_H
20442 #include <complex.h>
20443 #endif
20444 #ifdef HAVE_MATH_H
20445 #include <math.h>
20446 #endif
20447
20448 int (*ptr)() = (int (*)())ldexpf;
20449
20450 int
20451 main ()
20452 {
20453 return 0;
20454 }
20455
20456 _ACEOF
20457 if ac_fn_c_try_link "$LINENO"; then :
20458 gcc_cv_math_func_ldexpf=yes
20459 else
20460 gcc_cv_math_func_ldexpf=no
20461 fi
20462 rm -f core conftest.err conftest.$ac_objext \
20463 conftest$ac_exeext conftest.$ac_ext
20464 fi
20465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpf" >&5
20466 $as_echo "$gcc_cv_math_func_ldexpf" >&6; }
20467 if test $gcc_cv_math_func_ldexpf = yes; then
20468
20469 cat >>confdefs.h <<_ACEOF
20470 #define HAVE_LDEXPF 1
20471 _ACEOF
20472
20473 fi
20474
20475
20476
20477
20478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexp" >&5
20479 $as_echo_n "checking for ldexp... " >&6; }
20480 if ${gcc_cv_math_func_ldexp+:} false; then :
20481 $as_echo_n "(cached) " >&6
20482 else
20483 if test x$gcc_no_link = xyes; then
20484 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20485 fi
20486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20487 /* end confdefs.h. */
20488
20489 #ifdef HAVE_COMPLEX_H
20490 #include <complex.h>
20491 #endif
20492 #ifdef HAVE_MATH_H
20493 #include <math.h>
20494 #endif
20495
20496 int (*ptr)() = (int (*)())ldexp;
20497
20498 int
20499 main ()
20500 {
20501 return 0;
20502 }
20503
20504 _ACEOF
20505 if ac_fn_c_try_link "$LINENO"; then :
20506 gcc_cv_math_func_ldexp=yes
20507 else
20508 gcc_cv_math_func_ldexp=no
20509 fi
20510 rm -f core conftest.err conftest.$ac_objext \
20511 conftest$ac_exeext conftest.$ac_ext
20512 fi
20513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexp" >&5
20514 $as_echo "$gcc_cv_math_func_ldexp" >&6; }
20515 if test $gcc_cv_math_func_ldexp = yes; then
20516
20517 cat >>confdefs.h <<_ACEOF
20518 #define HAVE_LDEXP 1
20519 _ACEOF
20520
20521 fi
20522
20523
20524
20525
20526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl" >&5
20527 $as_echo_n "checking for ldexpl... " >&6; }
20528 if ${gcc_cv_math_func_ldexpl+:} false; then :
20529 $as_echo_n "(cached) " >&6
20530 else
20531 if test x$gcc_no_link = xyes; then
20532 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20533 fi
20534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20535 /* end confdefs.h. */
20536
20537 #ifdef HAVE_COMPLEX_H
20538 #include <complex.h>
20539 #endif
20540 #ifdef HAVE_MATH_H
20541 #include <math.h>
20542 #endif
20543
20544 int (*ptr)() = (int (*)())ldexpl;
20545
20546 int
20547 main ()
20548 {
20549 return 0;
20550 }
20551
20552 _ACEOF
20553 if ac_fn_c_try_link "$LINENO"; then :
20554 gcc_cv_math_func_ldexpl=yes
20555 else
20556 gcc_cv_math_func_ldexpl=no
20557 fi
20558 rm -f core conftest.err conftest.$ac_objext \
20559 conftest$ac_exeext conftest.$ac_ext
20560 fi
20561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpl" >&5
20562 $as_echo "$gcc_cv_math_func_ldexpl" >&6; }
20563 if test $gcc_cv_math_func_ldexpl = yes; then
20564
20565 cat >>confdefs.h <<_ACEOF
20566 #define HAVE_LDEXPL 1
20567 _ACEOF
20568
20569 fi
20570
20571
20572
20573
20574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf" >&5
20575 $as_echo_n "checking for logf... " >&6; }
20576 if ${gcc_cv_math_func_logf+:} false; then :
20577 $as_echo_n "(cached) " >&6
20578 else
20579 if test x$gcc_no_link = xyes; then
20580 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20581 fi
20582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20583 /* end confdefs.h. */
20584
20585 #ifdef HAVE_COMPLEX_H
20586 #include <complex.h>
20587 #endif
20588 #ifdef HAVE_MATH_H
20589 #include <math.h>
20590 #endif
20591
20592 int (*ptr)() = (int (*)())logf;
20593
20594 int
20595 main ()
20596 {
20597 return 0;
20598 }
20599
20600 _ACEOF
20601 if ac_fn_c_try_link "$LINENO"; then :
20602 gcc_cv_math_func_logf=yes
20603 else
20604 gcc_cv_math_func_logf=no
20605 fi
20606 rm -f core conftest.err conftest.$ac_objext \
20607 conftest$ac_exeext conftest.$ac_ext
20608 fi
20609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logf" >&5
20610 $as_echo "$gcc_cv_math_func_logf" >&6; }
20611 if test $gcc_cv_math_func_logf = yes; then
20612
20613 cat >>confdefs.h <<_ACEOF
20614 #define HAVE_LOGF 1
20615 _ACEOF
20616
20617 fi
20618
20619
20620
20621
20622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log" >&5
20623 $as_echo_n "checking for log... " >&6; }
20624 if ${gcc_cv_math_func_log+:} false; then :
20625 $as_echo_n "(cached) " >&6
20626 else
20627 if test x$gcc_no_link = xyes; then
20628 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20629 fi
20630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20631 /* end confdefs.h. */
20632
20633 #ifdef HAVE_COMPLEX_H
20634 #include <complex.h>
20635 #endif
20636 #ifdef HAVE_MATH_H
20637 #include <math.h>
20638 #endif
20639
20640 int (*ptr)() = (int (*)())log;
20641
20642 int
20643 main ()
20644 {
20645 return 0;
20646 }
20647
20648 _ACEOF
20649 if ac_fn_c_try_link "$LINENO"; then :
20650 gcc_cv_math_func_log=yes
20651 else
20652 gcc_cv_math_func_log=no
20653 fi
20654 rm -f core conftest.err conftest.$ac_objext \
20655 conftest$ac_exeext conftest.$ac_ext
20656 fi
20657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log" >&5
20658 $as_echo "$gcc_cv_math_func_log" >&6; }
20659 if test $gcc_cv_math_func_log = yes; then
20660
20661 cat >>confdefs.h <<_ACEOF
20662 #define HAVE_LOG 1
20663 _ACEOF
20664
20665 fi
20666
20667
20668
20669
20670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl" >&5
20671 $as_echo_n "checking for logl... " >&6; }
20672 if ${gcc_cv_math_func_logl+:} false; then :
20673 $as_echo_n "(cached) " >&6
20674 else
20675 if test x$gcc_no_link = xyes; then
20676 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20677 fi
20678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20679 /* end confdefs.h. */
20680
20681 #ifdef HAVE_COMPLEX_H
20682 #include <complex.h>
20683 #endif
20684 #ifdef HAVE_MATH_H
20685 #include <math.h>
20686 #endif
20687
20688 int (*ptr)() = (int (*)())logl;
20689
20690 int
20691 main ()
20692 {
20693 return 0;
20694 }
20695
20696 _ACEOF
20697 if ac_fn_c_try_link "$LINENO"; then :
20698 gcc_cv_math_func_logl=yes
20699 else
20700 gcc_cv_math_func_logl=no
20701 fi
20702 rm -f core conftest.err conftest.$ac_objext \
20703 conftest$ac_exeext conftest.$ac_ext
20704 fi
20705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logl" >&5
20706 $as_echo "$gcc_cv_math_func_logl" >&6; }
20707 if test $gcc_cv_math_func_logl = yes; then
20708
20709 cat >>confdefs.h <<_ACEOF
20710 #define HAVE_LOGL 1
20711 _ACEOF
20712
20713 fi
20714
20715
20716
20717
20718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogf" >&5
20719 $as_echo_n "checking for clogf... " >&6; }
20720 if ${gcc_cv_math_func_clogf+:} false; then :
20721 $as_echo_n "(cached) " >&6
20722 else
20723 if test x$gcc_no_link = xyes; then
20724 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20725 fi
20726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20727 /* end confdefs.h. */
20728
20729 #ifdef HAVE_COMPLEX_H
20730 #include <complex.h>
20731 #endif
20732 #ifdef HAVE_MATH_H
20733 #include <math.h>
20734 #endif
20735
20736 int (*ptr)() = (int (*)())clogf;
20737
20738 int
20739 main ()
20740 {
20741 return 0;
20742 }
20743
20744 _ACEOF
20745 if ac_fn_c_try_link "$LINENO"; then :
20746 gcc_cv_math_func_clogf=yes
20747 else
20748 gcc_cv_math_func_clogf=no
20749 fi
20750 rm -f core conftest.err conftest.$ac_objext \
20751 conftest$ac_exeext conftest.$ac_ext
20752 fi
20753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogf" >&5
20754 $as_echo "$gcc_cv_math_func_clogf" >&6; }
20755 if test $gcc_cv_math_func_clogf = yes; then
20756
20757 cat >>confdefs.h <<_ACEOF
20758 #define HAVE_CLOGF 1
20759 _ACEOF
20760
20761 fi
20762
20763
20764
20765
20766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog" >&5
20767 $as_echo_n "checking for clog... " >&6; }
20768 if ${gcc_cv_math_func_clog+:} false; then :
20769 $as_echo_n "(cached) " >&6
20770 else
20771 if test x$gcc_no_link = xyes; then
20772 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20773 fi
20774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20775 /* end confdefs.h. */
20776
20777 #ifdef HAVE_COMPLEX_H
20778 #include <complex.h>
20779 #endif
20780 #ifdef HAVE_MATH_H
20781 #include <math.h>
20782 #endif
20783
20784 int (*ptr)() = (int (*)())clog;
20785
20786 int
20787 main ()
20788 {
20789 return 0;
20790 }
20791
20792 _ACEOF
20793 if ac_fn_c_try_link "$LINENO"; then :
20794 gcc_cv_math_func_clog=yes
20795 else
20796 gcc_cv_math_func_clog=no
20797 fi
20798 rm -f core conftest.err conftest.$ac_objext \
20799 conftest$ac_exeext conftest.$ac_ext
20800 fi
20801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog" >&5
20802 $as_echo "$gcc_cv_math_func_clog" >&6; }
20803 if test $gcc_cv_math_func_clog = yes; then
20804
20805 cat >>confdefs.h <<_ACEOF
20806 #define HAVE_CLOG 1
20807 _ACEOF
20808
20809 fi
20810
20811
20812
20813
20814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogl" >&5
20815 $as_echo_n "checking for clogl... " >&6; }
20816 if ${gcc_cv_math_func_clogl+:} false; then :
20817 $as_echo_n "(cached) " >&6
20818 else
20819 if test x$gcc_no_link = xyes; then
20820 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20821 fi
20822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20823 /* end confdefs.h. */
20824
20825 #ifdef HAVE_COMPLEX_H
20826 #include <complex.h>
20827 #endif
20828 #ifdef HAVE_MATH_H
20829 #include <math.h>
20830 #endif
20831
20832 int (*ptr)() = (int (*)())clogl;
20833
20834 int
20835 main ()
20836 {
20837 return 0;
20838 }
20839
20840 _ACEOF
20841 if ac_fn_c_try_link "$LINENO"; then :
20842 gcc_cv_math_func_clogl=yes
20843 else
20844 gcc_cv_math_func_clogl=no
20845 fi
20846 rm -f core conftest.err conftest.$ac_objext \
20847 conftest$ac_exeext conftest.$ac_ext
20848 fi
20849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogl" >&5
20850 $as_echo "$gcc_cv_math_func_clogl" >&6; }
20851 if test $gcc_cv_math_func_clogl = yes; then
20852
20853 cat >>confdefs.h <<_ACEOF
20854 #define HAVE_CLOGL 1
20855 _ACEOF
20856
20857 fi
20858
20859
20860
20861
20862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f" >&5
20863 $as_echo_n "checking for log10f... " >&6; }
20864 if ${gcc_cv_math_func_log10f+:} false; then :
20865 $as_echo_n "(cached) " >&6
20866 else
20867 if test x$gcc_no_link = xyes; then
20868 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20869 fi
20870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20871 /* end confdefs.h. */
20872
20873 #ifdef HAVE_COMPLEX_H
20874 #include <complex.h>
20875 #endif
20876 #ifdef HAVE_MATH_H
20877 #include <math.h>
20878 #endif
20879
20880 int (*ptr)() = (int (*)())log10f;
20881
20882 int
20883 main ()
20884 {
20885 return 0;
20886 }
20887
20888 _ACEOF
20889 if ac_fn_c_try_link "$LINENO"; then :
20890 gcc_cv_math_func_log10f=yes
20891 else
20892 gcc_cv_math_func_log10f=no
20893 fi
20894 rm -f core conftest.err conftest.$ac_objext \
20895 conftest$ac_exeext conftest.$ac_ext
20896 fi
20897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10f" >&5
20898 $as_echo "$gcc_cv_math_func_log10f" >&6; }
20899 if test $gcc_cv_math_func_log10f = yes; then
20900
20901 cat >>confdefs.h <<_ACEOF
20902 #define HAVE_LOG10F 1
20903 _ACEOF
20904
20905 fi
20906
20907
20908
20909
20910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10" >&5
20911 $as_echo_n "checking for log10... " >&6; }
20912 if ${gcc_cv_math_func_log10+:} false; then :
20913 $as_echo_n "(cached) " >&6
20914 else
20915 if test x$gcc_no_link = xyes; then
20916 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20917 fi
20918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20919 /* end confdefs.h. */
20920
20921 #ifdef HAVE_COMPLEX_H
20922 #include <complex.h>
20923 #endif
20924 #ifdef HAVE_MATH_H
20925 #include <math.h>
20926 #endif
20927
20928 int (*ptr)() = (int (*)())log10;
20929
20930 int
20931 main ()
20932 {
20933 return 0;
20934 }
20935
20936 _ACEOF
20937 if ac_fn_c_try_link "$LINENO"; then :
20938 gcc_cv_math_func_log10=yes
20939 else
20940 gcc_cv_math_func_log10=no
20941 fi
20942 rm -f core conftest.err conftest.$ac_objext \
20943 conftest$ac_exeext conftest.$ac_ext
20944 fi
20945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10" >&5
20946 $as_echo "$gcc_cv_math_func_log10" >&6; }
20947 if test $gcc_cv_math_func_log10 = yes; then
20948
20949 cat >>confdefs.h <<_ACEOF
20950 #define HAVE_LOG10 1
20951 _ACEOF
20952
20953 fi
20954
20955
20956
20957
20958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l" >&5
20959 $as_echo_n "checking for log10l... " >&6; }
20960 if ${gcc_cv_math_func_log10l+:} false; then :
20961 $as_echo_n "(cached) " >&6
20962 else
20963 if test x$gcc_no_link = xyes; then
20964 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20965 fi
20966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20967 /* end confdefs.h. */
20968
20969 #ifdef HAVE_COMPLEX_H
20970 #include <complex.h>
20971 #endif
20972 #ifdef HAVE_MATH_H
20973 #include <math.h>
20974 #endif
20975
20976 int (*ptr)() = (int (*)())log10l;
20977
20978 int
20979 main ()
20980 {
20981 return 0;
20982 }
20983
20984 _ACEOF
20985 if ac_fn_c_try_link "$LINENO"; then :
20986 gcc_cv_math_func_log10l=yes
20987 else
20988 gcc_cv_math_func_log10l=no
20989 fi
20990 rm -f core conftest.err conftest.$ac_objext \
20991 conftest$ac_exeext conftest.$ac_ext
20992 fi
20993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10l" >&5
20994 $as_echo "$gcc_cv_math_func_log10l" >&6; }
20995 if test $gcc_cv_math_func_log10l = yes; then
20996
20997 cat >>confdefs.h <<_ACEOF
20998 #define HAVE_LOG10L 1
20999 _ACEOF
21000
21001 fi
21002
21003
21004
21005
21006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10f" >&5
21007 $as_echo_n "checking for clog10f... " >&6; }
21008 if ${gcc_cv_math_func_clog10f+:} false; then :
21009 $as_echo_n "(cached) " >&6
21010 else
21011 if test x$gcc_no_link = xyes; then
21012 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21013 fi
21014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21015 /* end confdefs.h. */
21016
21017 #ifdef HAVE_COMPLEX_H
21018 #include <complex.h>
21019 #endif
21020 #ifdef HAVE_MATH_H
21021 #include <math.h>
21022 #endif
21023
21024 int (*ptr)() = (int (*)())clog10f;
21025
21026 int
21027 main ()
21028 {
21029 return 0;
21030 }
21031
21032 _ACEOF
21033 if ac_fn_c_try_link "$LINENO"; then :
21034 gcc_cv_math_func_clog10f=yes
21035 else
21036 gcc_cv_math_func_clog10f=no
21037 fi
21038 rm -f core conftest.err conftest.$ac_objext \
21039 conftest$ac_exeext conftest.$ac_ext
21040 fi
21041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10f" >&5
21042 $as_echo "$gcc_cv_math_func_clog10f" >&6; }
21043 if test $gcc_cv_math_func_clog10f = yes; then
21044
21045 cat >>confdefs.h <<_ACEOF
21046 #define HAVE_CLOG10F 1
21047 _ACEOF
21048
21049 fi
21050
21051
21052
21053
21054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10" >&5
21055 $as_echo_n "checking for clog10... " >&6; }
21056 if ${gcc_cv_math_func_clog10+:} false; then :
21057 $as_echo_n "(cached) " >&6
21058 else
21059 if test x$gcc_no_link = xyes; then
21060 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21061 fi
21062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21063 /* end confdefs.h. */
21064
21065 #ifdef HAVE_COMPLEX_H
21066 #include <complex.h>
21067 #endif
21068 #ifdef HAVE_MATH_H
21069 #include <math.h>
21070 #endif
21071
21072 int (*ptr)() = (int (*)())clog10;
21073
21074 int
21075 main ()
21076 {
21077 return 0;
21078 }
21079
21080 _ACEOF
21081 if ac_fn_c_try_link "$LINENO"; then :
21082 gcc_cv_math_func_clog10=yes
21083 else
21084 gcc_cv_math_func_clog10=no
21085 fi
21086 rm -f core conftest.err conftest.$ac_objext \
21087 conftest$ac_exeext conftest.$ac_ext
21088 fi
21089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10" >&5
21090 $as_echo "$gcc_cv_math_func_clog10" >&6; }
21091 if test $gcc_cv_math_func_clog10 = yes; then
21092
21093 cat >>confdefs.h <<_ACEOF
21094 #define HAVE_CLOG10 1
21095 _ACEOF
21096
21097 fi
21098
21099
21100
21101
21102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10l" >&5
21103 $as_echo_n "checking for clog10l... " >&6; }
21104 if ${gcc_cv_math_func_clog10l+:} false; then :
21105 $as_echo_n "(cached) " >&6
21106 else
21107 if test x$gcc_no_link = xyes; then
21108 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21109 fi
21110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21111 /* end confdefs.h. */
21112
21113 #ifdef HAVE_COMPLEX_H
21114 #include <complex.h>
21115 #endif
21116 #ifdef HAVE_MATH_H
21117 #include <math.h>
21118 #endif
21119
21120 int (*ptr)() = (int (*)())clog10l;
21121
21122 int
21123 main ()
21124 {
21125 return 0;
21126 }
21127
21128 _ACEOF
21129 if ac_fn_c_try_link "$LINENO"; then :
21130 gcc_cv_math_func_clog10l=yes
21131 else
21132 gcc_cv_math_func_clog10l=no
21133 fi
21134 rm -f core conftest.err conftest.$ac_objext \
21135 conftest$ac_exeext conftest.$ac_ext
21136 fi
21137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10l" >&5
21138 $as_echo "$gcc_cv_math_func_clog10l" >&6; }
21139 if test $gcc_cv_math_func_clog10l = yes; then
21140
21141 cat >>confdefs.h <<_ACEOF
21142 #define HAVE_CLOG10L 1
21143 _ACEOF
21144
21145 fi
21146
21147
21148
21149
21150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterf" >&5
21151 $as_echo_n "checking for nextafterf... " >&6; }
21152 if ${gcc_cv_math_func_nextafterf+:} false; then :
21153 $as_echo_n "(cached) " >&6
21154 else
21155 if test x$gcc_no_link = xyes; then
21156 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21157 fi
21158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21159 /* end confdefs.h. */
21160
21161 #ifdef HAVE_COMPLEX_H
21162 #include <complex.h>
21163 #endif
21164 #ifdef HAVE_MATH_H
21165 #include <math.h>
21166 #endif
21167
21168 int (*ptr)() = (int (*)())nextafterf;
21169
21170 int
21171 main ()
21172 {
21173 return 0;
21174 }
21175
21176 _ACEOF
21177 if ac_fn_c_try_link "$LINENO"; then :
21178 gcc_cv_math_func_nextafterf=yes
21179 else
21180 gcc_cv_math_func_nextafterf=no
21181 fi
21182 rm -f core conftest.err conftest.$ac_objext \
21183 conftest$ac_exeext conftest.$ac_ext
21184 fi
21185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterf" >&5
21186 $as_echo "$gcc_cv_math_func_nextafterf" >&6; }
21187 if test $gcc_cv_math_func_nextafterf = yes; then
21188
21189 cat >>confdefs.h <<_ACEOF
21190 #define HAVE_NEXTAFTERF 1
21191 _ACEOF
21192
21193 fi
21194
21195
21196
21197
21198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafter" >&5
21199 $as_echo_n "checking for nextafter... " >&6; }
21200 if ${gcc_cv_math_func_nextafter+:} false; then :
21201 $as_echo_n "(cached) " >&6
21202 else
21203 if test x$gcc_no_link = xyes; then
21204 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21205 fi
21206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21207 /* end confdefs.h. */
21208
21209 #ifdef HAVE_COMPLEX_H
21210 #include <complex.h>
21211 #endif
21212 #ifdef HAVE_MATH_H
21213 #include <math.h>
21214 #endif
21215
21216 int (*ptr)() = (int (*)())nextafter;
21217
21218 int
21219 main ()
21220 {
21221 return 0;
21222 }
21223
21224 _ACEOF
21225 if ac_fn_c_try_link "$LINENO"; then :
21226 gcc_cv_math_func_nextafter=yes
21227 else
21228 gcc_cv_math_func_nextafter=no
21229 fi
21230 rm -f core conftest.err conftest.$ac_objext \
21231 conftest$ac_exeext conftest.$ac_ext
21232 fi
21233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafter" >&5
21234 $as_echo "$gcc_cv_math_func_nextafter" >&6; }
21235 if test $gcc_cv_math_func_nextafter = yes; then
21236
21237 cat >>confdefs.h <<_ACEOF
21238 #define HAVE_NEXTAFTER 1
21239 _ACEOF
21240
21241 fi
21242
21243
21244
21245
21246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterl" >&5
21247 $as_echo_n "checking for nextafterl... " >&6; }
21248 if ${gcc_cv_math_func_nextafterl+:} false; then :
21249 $as_echo_n "(cached) " >&6
21250 else
21251 if test x$gcc_no_link = xyes; then
21252 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21253 fi
21254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21255 /* end confdefs.h. */
21256
21257 #ifdef HAVE_COMPLEX_H
21258 #include <complex.h>
21259 #endif
21260 #ifdef HAVE_MATH_H
21261 #include <math.h>
21262 #endif
21263
21264 int (*ptr)() = (int (*)())nextafterl;
21265
21266 int
21267 main ()
21268 {
21269 return 0;
21270 }
21271
21272 _ACEOF
21273 if ac_fn_c_try_link "$LINENO"; then :
21274 gcc_cv_math_func_nextafterl=yes
21275 else
21276 gcc_cv_math_func_nextafterl=no
21277 fi
21278 rm -f core conftest.err conftest.$ac_objext \
21279 conftest$ac_exeext conftest.$ac_ext
21280 fi
21281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterl" >&5
21282 $as_echo "$gcc_cv_math_func_nextafterl" >&6; }
21283 if test $gcc_cv_math_func_nextafterl = yes; then
21284
21285 cat >>confdefs.h <<_ACEOF
21286 #define HAVE_NEXTAFTERL 1
21287 _ACEOF
21288
21289 fi
21290
21291
21292
21293
21294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf" >&5
21295 $as_echo_n "checking for powf... " >&6; }
21296 if ${gcc_cv_math_func_powf+:} false; then :
21297 $as_echo_n "(cached) " >&6
21298 else
21299 if test x$gcc_no_link = xyes; then
21300 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21301 fi
21302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21303 /* end confdefs.h. */
21304
21305 #ifdef HAVE_COMPLEX_H
21306 #include <complex.h>
21307 #endif
21308 #ifdef HAVE_MATH_H
21309 #include <math.h>
21310 #endif
21311
21312 int (*ptr)() = (int (*)())powf;
21313
21314 int
21315 main ()
21316 {
21317 return 0;
21318 }
21319
21320 _ACEOF
21321 if ac_fn_c_try_link "$LINENO"; then :
21322 gcc_cv_math_func_powf=yes
21323 else
21324 gcc_cv_math_func_powf=no
21325 fi
21326 rm -f core conftest.err conftest.$ac_objext \
21327 conftest$ac_exeext conftest.$ac_ext
21328 fi
21329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powf" >&5
21330 $as_echo "$gcc_cv_math_func_powf" >&6; }
21331 if test $gcc_cv_math_func_powf = yes; then
21332
21333 cat >>confdefs.h <<_ACEOF
21334 #define HAVE_POWF 1
21335 _ACEOF
21336
21337 fi
21338
21339
21340
21341
21342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow" >&5
21343 $as_echo_n "checking for pow... " >&6; }
21344 if ${gcc_cv_math_func_pow+:} false; then :
21345 $as_echo_n "(cached) " >&6
21346 else
21347 if test x$gcc_no_link = xyes; then
21348 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21349 fi
21350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21351 /* end confdefs.h. */
21352
21353 #ifdef HAVE_COMPLEX_H
21354 #include <complex.h>
21355 #endif
21356 #ifdef HAVE_MATH_H
21357 #include <math.h>
21358 #endif
21359
21360 int (*ptr)() = (int (*)())pow;
21361
21362 int
21363 main ()
21364 {
21365 return 0;
21366 }
21367
21368 _ACEOF
21369 if ac_fn_c_try_link "$LINENO"; then :
21370 gcc_cv_math_func_pow=yes
21371 else
21372 gcc_cv_math_func_pow=no
21373 fi
21374 rm -f core conftest.err conftest.$ac_objext \
21375 conftest$ac_exeext conftest.$ac_ext
21376 fi
21377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_pow" >&5
21378 $as_echo "$gcc_cv_math_func_pow" >&6; }
21379 if test $gcc_cv_math_func_pow = yes; then
21380
21381 cat >>confdefs.h <<_ACEOF
21382 #define HAVE_POW 1
21383 _ACEOF
21384
21385 fi
21386
21387
21388
21389
21390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowf" >&5
21391 $as_echo_n "checking for cpowf... " >&6; }
21392 if ${gcc_cv_math_func_cpowf+:} false; then :
21393 $as_echo_n "(cached) " >&6
21394 else
21395 if test x$gcc_no_link = xyes; then
21396 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21397 fi
21398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21399 /* end confdefs.h. */
21400
21401 #ifdef HAVE_COMPLEX_H
21402 #include <complex.h>
21403 #endif
21404 #ifdef HAVE_MATH_H
21405 #include <math.h>
21406 #endif
21407
21408 int (*ptr)() = (int (*)())cpowf;
21409
21410 int
21411 main ()
21412 {
21413 return 0;
21414 }
21415
21416 _ACEOF
21417 if ac_fn_c_try_link "$LINENO"; then :
21418 gcc_cv_math_func_cpowf=yes
21419 else
21420 gcc_cv_math_func_cpowf=no
21421 fi
21422 rm -f core conftest.err conftest.$ac_objext \
21423 conftest$ac_exeext conftest.$ac_ext
21424 fi
21425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowf" >&5
21426 $as_echo "$gcc_cv_math_func_cpowf" >&6; }
21427 if test $gcc_cv_math_func_cpowf = yes; then
21428
21429 cat >>confdefs.h <<_ACEOF
21430 #define HAVE_CPOWF 1
21431 _ACEOF
21432
21433 fi
21434
21435
21436
21437
21438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpow" >&5
21439 $as_echo_n "checking for cpow... " >&6; }
21440 if ${gcc_cv_math_func_cpow+:} false; then :
21441 $as_echo_n "(cached) " >&6
21442 else
21443 if test x$gcc_no_link = xyes; then
21444 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21445 fi
21446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21447 /* end confdefs.h. */
21448
21449 #ifdef HAVE_COMPLEX_H
21450 #include <complex.h>
21451 #endif
21452 #ifdef HAVE_MATH_H
21453 #include <math.h>
21454 #endif
21455
21456 int (*ptr)() = (int (*)())cpow;
21457
21458 int
21459 main ()
21460 {
21461 return 0;
21462 }
21463
21464 _ACEOF
21465 if ac_fn_c_try_link "$LINENO"; then :
21466 gcc_cv_math_func_cpow=yes
21467 else
21468 gcc_cv_math_func_cpow=no
21469 fi
21470 rm -f core conftest.err conftest.$ac_objext \
21471 conftest$ac_exeext conftest.$ac_ext
21472 fi
21473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpow" >&5
21474 $as_echo "$gcc_cv_math_func_cpow" >&6; }
21475 if test $gcc_cv_math_func_cpow = yes; then
21476
21477 cat >>confdefs.h <<_ACEOF
21478 #define HAVE_CPOW 1
21479 _ACEOF
21480
21481 fi
21482
21483
21484
21485
21486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowl" >&5
21487 $as_echo_n "checking for cpowl... " >&6; }
21488 if ${gcc_cv_math_func_cpowl+:} false; then :
21489 $as_echo_n "(cached) " >&6
21490 else
21491 if test x$gcc_no_link = xyes; then
21492 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21493 fi
21494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21495 /* end confdefs.h. */
21496
21497 #ifdef HAVE_COMPLEX_H
21498 #include <complex.h>
21499 #endif
21500 #ifdef HAVE_MATH_H
21501 #include <math.h>
21502 #endif
21503
21504 int (*ptr)() = (int (*)())cpowl;
21505
21506 int
21507 main ()
21508 {
21509 return 0;
21510 }
21511
21512 _ACEOF
21513 if ac_fn_c_try_link "$LINENO"; then :
21514 gcc_cv_math_func_cpowl=yes
21515 else
21516 gcc_cv_math_func_cpowl=no
21517 fi
21518 rm -f core conftest.err conftest.$ac_objext \
21519 conftest$ac_exeext conftest.$ac_ext
21520 fi
21521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowl" >&5
21522 $as_echo "$gcc_cv_math_func_cpowl" >&6; }
21523 if test $gcc_cv_math_func_cpowl = yes; then
21524
21525 cat >>confdefs.h <<_ACEOF
21526 #define HAVE_CPOWL 1
21527 _ACEOF
21528
21529 fi
21530
21531
21532
21533
21534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundf" >&5
21535 $as_echo_n "checking for roundf... " >&6; }
21536 if ${gcc_cv_math_func_roundf+:} false; then :
21537 $as_echo_n "(cached) " >&6
21538 else
21539 if test x$gcc_no_link = xyes; then
21540 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21541 fi
21542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21543 /* end confdefs.h. */
21544
21545 #ifdef HAVE_COMPLEX_H
21546 #include <complex.h>
21547 #endif
21548 #ifdef HAVE_MATH_H
21549 #include <math.h>
21550 #endif
21551
21552 int (*ptr)() = (int (*)())roundf;
21553
21554 int
21555 main ()
21556 {
21557 return 0;
21558 }
21559
21560 _ACEOF
21561 if ac_fn_c_try_link "$LINENO"; then :
21562 gcc_cv_math_func_roundf=yes
21563 else
21564 gcc_cv_math_func_roundf=no
21565 fi
21566 rm -f core conftest.err conftest.$ac_objext \
21567 conftest$ac_exeext conftest.$ac_ext
21568 fi
21569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundf" >&5
21570 $as_echo "$gcc_cv_math_func_roundf" >&6; }
21571 if test $gcc_cv_math_func_roundf = yes; then
21572
21573 cat >>confdefs.h <<_ACEOF
21574 #define HAVE_ROUNDF 1
21575 _ACEOF
21576
21577 fi
21578
21579
21580
21581
21582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for round" >&5
21583 $as_echo_n "checking for round... " >&6; }
21584 if ${gcc_cv_math_func_round+:} false; then :
21585 $as_echo_n "(cached) " >&6
21586 else
21587 if test x$gcc_no_link = xyes; then
21588 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21589 fi
21590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21591 /* end confdefs.h. */
21592
21593 #ifdef HAVE_COMPLEX_H
21594 #include <complex.h>
21595 #endif
21596 #ifdef HAVE_MATH_H
21597 #include <math.h>
21598 #endif
21599
21600 int (*ptr)() = (int (*)())round;
21601
21602 int
21603 main ()
21604 {
21605 return 0;
21606 }
21607
21608 _ACEOF
21609 if ac_fn_c_try_link "$LINENO"; then :
21610 gcc_cv_math_func_round=yes
21611 else
21612 gcc_cv_math_func_round=no
21613 fi
21614 rm -f core conftest.err conftest.$ac_objext \
21615 conftest$ac_exeext conftest.$ac_ext
21616 fi
21617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_round" >&5
21618 $as_echo "$gcc_cv_math_func_round" >&6; }
21619 if test $gcc_cv_math_func_round = yes; then
21620
21621 cat >>confdefs.h <<_ACEOF
21622 #define HAVE_ROUND 1
21623 _ACEOF
21624
21625 fi
21626
21627
21628
21629
21630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundl" >&5
21631 $as_echo_n "checking for roundl... " >&6; }
21632 if ${gcc_cv_math_func_roundl+:} false; then :
21633 $as_echo_n "(cached) " >&6
21634 else
21635 if test x$gcc_no_link = xyes; then
21636 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21637 fi
21638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21639 /* end confdefs.h. */
21640
21641 #ifdef HAVE_COMPLEX_H
21642 #include <complex.h>
21643 #endif
21644 #ifdef HAVE_MATH_H
21645 #include <math.h>
21646 #endif
21647
21648 int (*ptr)() = (int (*)())roundl;
21649
21650 int
21651 main ()
21652 {
21653 return 0;
21654 }
21655
21656 _ACEOF
21657 if ac_fn_c_try_link "$LINENO"; then :
21658 gcc_cv_math_func_roundl=yes
21659 else
21660 gcc_cv_math_func_roundl=no
21661 fi
21662 rm -f core conftest.err conftest.$ac_objext \
21663 conftest$ac_exeext conftest.$ac_ext
21664 fi
21665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundl" >&5
21666 $as_echo "$gcc_cv_math_func_roundl" >&6; }
21667 if test $gcc_cv_math_func_roundl = yes; then
21668
21669 cat >>confdefs.h <<_ACEOF
21670 #define HAVE_ROUNDL 1
21671 _ACEOF
21672
21673 fi
21674
21675
21676
21677
21678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundf" >&5
21679 $as_echo_n "checking for lroundf... " >&6; }
21680 if ${gcc_cv_math_func_lroundf+:} false; then :
21681 $as_echo_n "(cached) " >&6
21682 else
21683 if test x$gcc_no_link = xyes; then
21684 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21685 fi
21686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21687 /* end confdefs.h. */
21688
21689 #ifdef HAVE_COMPLEX_H
21690 #include <complex.h>
21691 #endif
21692 #ifdef HAVE_MATH_H
21693 #include <math.h>
21694 #endif
21695
21696 int (*ptr)() = (int (*)())lroundf;
21697
21698 int
21699 main ()
21700 {
21701 return 0;
21702 }
21703
21704 _ACEOF
21705 if ac_fn_c_try_link "$LINENO"; then :
21706 gcc_cv_math_func_lroundf=yes
21707 else
21708 gcc_cv_math_func_lroundf=no
21709 fi
21710 rm -f core conftest.err conftest.$ac_objext \
21711 conftest$ac_exeext conftest.$ac_ext
21712 fi
21713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundf" >&5
21714 $as_echo "$gcc_cv_math_func_lroundf" >&6; }
21715 if test $gcc_cv_math_func_lroundf = yes; then
21716
21717 cat >>confdefs.h <<_ACEOF
21718 #define HAVE_LROUNDF 1
21719 _ACEOF
21720
21721 fi
21722
21723
21724
21725
21726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lround" >&5
21727 $as_echo_n "checking for lround... " >&6; }
21728 if ${gcc_cv_math_func_lround+:} false; then :
21729 $as_echo_n "(cached) " >&6
21730 else
21731 if test x$gcc_no_link = xyes; then
21732 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21733 fi
21734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21735 /* end confdefs.h. */
21736
21737 #ifdef HAVE_COMPLEX_H
21738 #include <complex.h>
21739 #endif
21740 #ifdef HAVE_MATH_H
21741 #include <math.h>
21742 #endif
21743
21744 int (*ptr)() = (int (*)())lround;
21745
21746 int
21747 main ()
21748 {
21749 return 0;
21750 }
21751
21752 _ACEOF
21753 if ac_fn_c_try_link "$LINENO"; then :
21754 gcc_cv_math_func_lround=yes
21755 else
21756 gcc_cv_math_func_lround=no
21757 fi
21758 rm -f core conftest.err conftest.$ac_objext \
21759 conftest$ac_exeext conftest.$ac_ext
21760 fi
21761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lround" >&5
21762 $as_echo "$gcc_cv_math_func_lround" >&6; }
21763 if test $gcc_cv_math_func_lround = yes; then
21764
21765 cat >>confdefs.h <<_ACEOF
21766 #define HAVE_LROUND 1
21767 _ACEOF
21768
21769 fi
21770
21771
21772
21773
21774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundl" >&5
21775 $as_echo_n "checking for lroundl... " >&6; }
21776 if ${gcc_cv_math_func_lroundl+:} false; then :
21777 $as_echo_n "(cached) " >&6
21778 else
21779 if test x$gcc_no_link = xyes; then
21780 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21781 fi
21782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21783 /* end confdefs.h. */
21784
21785 #ifdef HAVE_COMPLEX_H
21786 #include <complex.h>
21787 #endif
21788 #ifdef HAVE_MATH_H
21789 #include <math.h>
21790 #endif
21791
21792 int (*ptr)() = (int (*)())lroundl;
21793
21794 int
21795 main ()
21796 {
21797 return 0;
21798 }
21799
21800 _ACEOF
21801 if ac_fn_c_try_link "$LINENO"; then :
21802 gcc_cv_math_func_lroundl=yes
21803 else
21804 gcc_cv_math_func_lroundl=no
21805 fi
21806 rm -f core conftest.err conftest.$ac_objext \
21807 conftest$ac_exeext conftest.$ac_ext
21808 fi
21809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundl" >&5
21810 $as_echo "$gcc_cv_math_func_lroundl" >&6; }
21811 if test $gcc_cv_math_func_lroundl = yes; then
21812
21813 cat >>confdefs.h <<_ACEOF
21814 #define HAVE_LROUNDL 1
21815 _ACEOF
21816
21817 fi
21818
21819
21820
21821
21822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundf" >&5
21823 $as_echo_n "checking for llroundf... " >&6; }
21824 if ${gcc_cv_math_func_llroundf+:} false; then :
21825 $as_echo_n "(cached) " >&6
21826 else
21827 if test x$gcc_no_link = xyes; then
21828 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21829 fi
21830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21831 /* end confdefs.h. */
21832
21833 #ifdef HAVE_COMPLEX_H
21834 #include <complex.h>
21835 #endif
21836 #ifdef HAVE_MATH_H
21837 #include <math.h>
21838 #endif
21839
21840 int (*ptr)() = (int (*)())llroundf;
21841
21842 int
21843 main ()
21844 {
21845 return 0;
21846 }
21847
21848 _ACEOF
21849 if ac_fn_c_try_link "$LINENO"; then :
21850 gcc_cv_math_func_llroundf=yes
21851 else
21852 gcc_cv_math_func_llroundf=no
21853 fi
21854 rm -f core conftest.err conftest.$ac_objext \
21855 conftest$ac_exeext conftest.$ac_ext
21856 fi
21857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundf" >&5
21858 $as_echo "$gcc_cv_math_func_llroundf" >&6; }
21859 if test $gcc_cv_math_func_llroundf = yes; then
21860
21861 cat >>confdefs.h <<_ACEOF
21862 #define HAVE_LLROUNDF 1
21863 _ACEOF
21864
21865 fi
21866
21867
21868
21869
21870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llround" >&5
21871 $as_echo_n "checking for llround... " >&6; }
21872 if ${gcc_cv_math_func_llround+:} false; then :
21873 $as_echo_n "(cached) " >&6
21874 else
21875 if test x$gcc_no_link = xyes; then
21876 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21877 fi
21878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21879 /* end confdefs.h. */
21880
21881 #ifdef HAVE_COMPLEX_H
21882 #include <complex.h>
21883 #endif
21884 #ifdef HAVE_MATH_H
21885 #include <math.h>
21886 #endif
21887
21888 int (*ptr)() = (int (*)())llround;
21889
21890 int
21891 main ()
21892 {
21893 return 0;
21894 }
21895
21896 _ACEOF
21897 if ac_fn_c_try_link "$LINENO"; then :
21898 gcc_cv_math_func_llround=yes
21899 else
21900 gcc_cv_math_func_llround=no
21901 fi
21902 rm -f core conftest.err conftest.$ac_objext \
21903 conftest$ac_exeext conftest.$ac_ext
21904 fi
21905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llround" >&5
21906 $as_echo "$gcc_cv_math_func_llround" >&6; }
21907 if test $gcc_cv_math_func_llround = yes; then
21908
21909 cat >>confdefs.h <<_ACEOF
21910 #define HAVE_LLROUND 1
21911 _ACEOF
21912
21913 fi
21914
21915
21916
21917
21918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundl" >&5
21919 $as_echo_n "checking for llroundl... " >&6; }
21920 if ${gcc_cv_math_func_llroundl+:} false; then :
21921 $as_echo_n "(cached) " >&6
21922 else
21923 if test x$gcc_no_link = xyes; then
21924 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21925 fi
21926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21927 /* end confdefs.h. */
21928
21929 #ifdef HAVE_COMPLEX_H
21930 #include <complex.h>
21931 #endif
21932 #ifdef HAVE_MATH_H
21933 #include <math.h>
21934 #endif
21935
21936 int (*ptr)() = (int (*)())llroundl;
21937
21938 int
21939 main ()
21940 {
21941 return 0;
21942 }
21943
21944 _ACEOF
21945 if ac_fn_c_try_link "$LINENO"; then :
21946 gcc_cv_math_func_llroundl=yes
21947 else
21948 gcc_cv_math_func_llroundl=no
21949 fi
21950 rm -f core conftest.err conftest.$ac_objext \
21951 conftest$ac_exeext conftest.$ac_ext
21952 fi
21953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundl" >&5
21954 $as_echo "$gcc_cv_math_func_llroundl" >&6; }
21955 if test $gcc_cv_math_func_llroundl = yes; then
21956
21957 cat >>confdefs.h <<_ACEOF
21958 #define HAVE_LLROUNDL 1
21959 _ACEOF
21960
21961 fi
21962
21963
21964
21965
21966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnf" >&5
21967 $as_echo_n "checking for scalbnf... " >&6; }
21968 if ${gcc_cv_math_func_scalbnf+:} false; then :
21969 $as_echo_n "(cached) " >&6
21970 else
21971 if test x$gcc_no_link = xyes; then
21972 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21973 fi
21974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21975 /* end confdefs.h. */
21976
21977 #ifdef HAVE_COMPLEX_H
21978 #include <complex.h>
21979 #endif
21980 #ifdef HAVE_MATH_H
21981 #include <math.h>
21982 #endif
21983
21984 int (*ptr)() = (int (*)())scalbnf;
21985
21986 int
21987 main ()
21988 {
21989 return 0;
21990 }
21991
21992 _ACEOF
21993 if ac_fn_c_try_link "$LINENO"; then :
21994 gcc_cv_math_func_scalbnf=yes
21995 else
21996 gcc_cv_math_func_scalbnf=no
21997 fi
21998 rm -f core conftest.err conftest.$ac_objext \
21999 conftest$ac_exeext conftest.$ac_ext
22000 fi
22001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnf" >&5
22002 $as_echo "$gcc_cv_math_func_scalbnf" >&6; }
22003 if test $gcc_cv_math_func_scalbnf = yes; then
22004
22005 cat >>confdefs.h <<_ACEOF
22006 #define HAVE_SCALBNF 1
22007 _ACEOF
22008
22009 fi
22010
22011
22012
22013
22014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbn" >&5
22015 $as_echo_n "checking for scalbn... " >&6; }
22016 if ${gcc_cv_math_func_scalbn+:} false; then :
22017 $as_echo_n "(cached) " >&6
22018 else
22019 if test x$gcc_no_link = xyes; then
22020 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22021 fi
22022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22023 /* end confdefs.h. */
22024
22025 #ifdef HAVE_COMPLEX_H
22026 #include <complex.h>
22027 #endif
22028 #ifdef HAVE_MATH_H
22029 #include <math.h>
22030 #endif
22031
22032 int (*ptr)() = (int (*)())scalbn;
22033
22034 int
22035 main ()
22036 {
22037 return 0;
22038 }
22039
22040 _ACEOF
22041 if ac_fn_c_try_link "$LINENO"; then :
22042 gcc_cv_math_func_scalbn=yes
22043 else
22044 gcc_cv_math_func_scalbn=no
22045 fi
22046 rm -f core conftest.err conftest.$ac_objext \
22047 conftest$ac_exeext conftest.$ac_ext
22048 fi
22049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbn" >&5
22050 $as_echo "$gcc_cv_math_func_scalbn" >&6; }
22051 if test $gcc_cv_math_func_scalbn = yes; then
22052
22053 cat >>confdefs.h <<_ACEOF
22054 #define HAVE_SCALBN 1
22055 _ACEOF
22056
22057 fi
22058
22059
22060
22061
22062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnl" >&5
22063 $as_echo_n "checking for scalbnl... " >&6; }
22064 if ${gcc_cv_math_func_scalbnl+:} false; then :
22065 $as_echo_n "(cached) " >&6
22066 else
22067 if test x$gcc_no_link = xyes; then
22068 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22069 fi
22070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22071 /* end confdefs.h. */
22072
22073 #ifdef HAVE_COMPLEX_H
22074 #include <complex.h>
22075 #endif
22076 #ifdef HAVE_MATH_H
22077 #include <math.h>
22078 #endif
22079
22080 int (*ptr)() = (int (*)())scalbnl;
22081
22082 int
22083 main ()
22084 {
22085 return 0;
22086 }
22087
22088 _ACEOF
22089 if ac_fn_c_try_link "$LINENO"; then :
22090 gcc_cv_math_func_scalbnl=yes
22091 else
22092 gcc_cv_math_func_scalbnl=no
22093 fi
22094 rm -f core conftest.err conftest.$ac_objext \
22095 conftest$ac_exeext conftest.$ac_ext
22096 fi
22097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnl" >&5
22098 $as_echo "$gcc_cv_math_func_scalbnl" >&6; }
22099 if test $gcc_cv_math_func_scalbnl = yes; then
22100
22101 cat >>confdefs.h <<_ACEOF
22102 #define HAVE_SCALBNL 1
22103 _ACEOF
22104
22105 fi
22106
22107
22108
22109
22110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinf" >&5
22111 $as_echo_n "checking for sinf... " >&6; }
22112 if ${gcc_cv_math_func_sinf+:} false; then :
22113 $as_echo_n "(cached) " >&6
22114 else
22115 if test x$gcc_no_link = xyes; then
22116 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22117 fi
22118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22119 /* end confdefs.h. */
22120
22121 #ifdef HAVE_COMPLEX_H
22122 #include <complex.h>
22123 #endif
22124 #ifdef HAVE_MATH_H
22125 #include <math.h>
22126 #endif
22127
22128 int (*ptr)() = (int (*)())sinf;
22129
22130 int
22131 main ()
22132 {
22133 return 0;
22134 }
22135
22136 _ACEOF
22137 if ac_fn_c_try_link "$LINENO"; then :
22138 gcc_cv_math_func_sinf=yes
22139 else
22140 gcc_cv_math_func_sinf=no
22141 fi
22142 rm -f core conftest.err conftest.$ac_objext \
22143 conftest$ac_exeext conftest.$ac_ext
22144 fi
22145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinf" >&5
22146 $as_echo "$gcc_cv_math_func_sinf" >&6; }
22147 if test $gcc_cv_math_func_sinf = yes; then
22148
22149 cat >>confdefs.h <<_ACEOF
22150 #define HAVE_SINF 1
22151 _ACEOF
22152
22153 fi
22154
22155
22156
22157
22158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin" >&5
22159 $as_echo_n "checking for sin... " >&6; }
22160 if ${gcc_cv_math_func_sin+:} false; then :
22161 $as_echo_n "(cached) " >&6
22162 else
22163 if test x$gcc_no_link = xyes; then
22164 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22165 fi
22166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22167 /* end confdefs.h. */
22168
22169 #ifdef HAVE_COMPLEX_H
22170 #include <complex.h>
22171 #endif
22172 #ifdef HAVE_MATH_H
22173 #include <math.h>
22174 #endif
22175
22176 int (*ptr)() = (int (*)())sin;
22177
22178 int
22179 main ()
22180 {
22181 return 0;
22182 }
22183
22184 _ACEOF
22185 if ac_fn_c_try_link "$LINENO"; then :
22186 gcc_cv_math_func_sin=yes
22187 else
22188 gcc_cv_math_func_sin=no
22189 fi
22190 rm -f core conftest.err conftest.$ac_objext \
22191 conftest$ac_exeext conftest.$ac_ext
22192 fi
22193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sin" >&5
22194 $as_echo "$gcc_cv_math_func_sin" >&6; }
22195 if test $gcc_cv_math_func_sin = yes; then
22196
22197 cat >>confdefs.h <<_ACEOF
22198 #define HAVE_SIN 1
22199 _ACEOF
22200
22201 fi
22202
22203
22204
22205
22206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinl" >&5
22207 $as_echo_n "checking for sinl... " >&6; }
22208 if ${gcc_cv_math_func_sinl+:} false; then :
22209 $as_echo_n "(cached) " >&6
22210 else
22211 if test x$gcc_no_link = xyes; then
22212 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22213 fi
22214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22215 /* end confdefs.h. */
22216
22217 #ifdef HAVE_COMPLEX_H
22218 #include <complex.h>
22219 #endif
22220 #ifdef HAVE_MATH_H
22221 #include <math.h>
22222 #endif
22223
22224 int (*ptr)() = (int (*)())sinl;
22225
22226 int
22227 main ()
22228 {
22229 return 0;
22230 }
22231
22232 _ACEOF
22233 if ac_fn_c_try_link "$LINENO"; then :
22234 gcc_cv_math_func_sinl=yes
22235 else
22236 gcc_cv_math_func_sinl=no
22237 fi
22238 rm -f core conftest.err conftest.$ac_objext \
22239 conftest$ac_exeext conftest.$ac_ext
22240 fi
22241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinl" >&5
22242 $as_echo "$gcc_cv_math_func_sinl" >&6; }
22243 if test $gcc_cv_math_func_sinl = yes; then
22244
22245 cat >>confdefs.h <<_ACEOF
22246 #define HAVE_SINL 1
22247 _ACEOF
22248
22249 fi
22250
22251
22252
22253
22254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinf" >&5
22255 $as_echo_n "checking for csinf... " >&6; }
22256 if ${gcc_cv_math_func_csinf+:} false; then :
22257 $as_echo_n "(cached) " >&6
22258 else
22259 if test x$gcc_no_link = xyes; then
22260 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22261 fi
22262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22263 /* end confdefs.h. */
22264
22265 #ifdef HAVE_COMPLEX_H
22266 #include <complex.h>
22267 #endif
22268 #ifdef HAVE_MATH_H
22269 #include <math.h>
22270 #endif
22271
22272 int (*ptr)() = (int (*)())csinf;
22273
22274 int
22275 main ()
22276 {
22277 return 0;
22278 }
22279
22280 _ACEOF
22281 if ac_fn_c_try_link "$LINENO"; then :
22282 gcc_cv_math_func_csinf=yes
22283 else
22284 gcc_cv_math_func_csinf=no
22285 fi
22286 rm -f core conftest.err conftest.$ac_objext \
22287 conftest$ac_exeext conftest.$ac_ext
22288 fi
22289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinf" >&5
22290 $as_echo "$gcc_cv_math_func_csinf" >&6; }
22291 if test $gcc_cv_math_func_csinf = yes; then
22292
22293 cat >>confdefs.h <<_ACEOF
22294 #define HAVE_CSINF 1
22295 _ACEOF
22296
22297 fi
22298
22299
22300
22301
22302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csin" >&5
22303 $as_echo_n "checking for csin... " >&6; }
22304 if ${gcc_cv_math_func_csin+:} false; then :
22305 $as_echo_n "(cached) " >&6
22306 else
22307 if test x$gcc_no_link = xyes; then
22308 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22309 fi
22310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22311 /* end confdefs.h. */
22312
22313 #ifdef HAVE_COMPLEX_H
22314 #include <complex.h>
22315 #endif
22316 #ifdef HAVE_MATH_H
22317 #include <math.h>
22318 #endif
22319
22320 int (*ptr)() = (int (*)())csin;
22321
22322 int
22323 main ()
22324 {
22325 return 0;
22326 }
22327
22328 _ACEOF
22329 if ac_fn_c_try_link "$LINENO"; then :
22330 gcc_cv_math_func_csin=yes
22331 else
22332 gcc_cv_math_func_csin=no
22333 fi
22334 rm -f core conftest.err conftest.$ac_objext \
22335 conftest$ac_exeext conftest.$ac_ext
22336 fi
22337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csin" >&5
22338 $as_echo "$gcc_cv_math_func_csin" >&6; }
22339 if test $gcc_cv_math_func_csin = yes; then
22340
22341 cat >>confdefs.h <<_ACEOF
22342 #define HAVE_CSIN 1
22343 _ACEOF
22344
22345 fi
22346
22347
22348
22349
22350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinl" >&5
22351 $as_echo_n "checking for csinl... " >&6; }
22352 if ${gcc_cv_math_func_csinl+:} false; then :
22353 $as_echo_n "(cached) " >&6
22354 else
22355 if test x$gcc_no_link = xyes; then
22356 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22357 fi
22358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22359 /* end confdefs.h. */
22360
22361 #ifdef HAVE_COMPLEX_H
22362 #include <complex.h>
22363 #endif
22364 #ifdef HAVE_MATH_H
22365 #include <math.h>
22366 #endif
22367
22368 int (*ptr)() = (int (*)())csinl;
22369
22370 int
22371 main ()
22372 {
22373 return 0;
22374 }
22375
22376 _ACEOF
22377 if ac_fn_c_try_link "$LINENO"; then :
22378 gcc_cv_math_func_csinl=yes
22379 else
22380 gcc_cv_math_func_csinl=no
22381 fi
22382 rm -f core conftest.err conftest.$ac_objext \
22383 conftest$ac_exeext conftest.$ac_ext
22384 fi
22385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinl" >&5
22386 $as_echo "$gcc_cv_math_func_csinl" >&6; }
22387 if test $gcc_cv_math_func_csinl = yes; then
22388
22389 cat >>confdefs.h <<_ACEOF
22390 #define HAVE_CSINL 1
22391 _ACEOF
22392
22393 fi
22394
22395
22396
22397
22398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhf" >&5
22399 $as_echo_n "checking for sinhf... " >&6; }
22400 if ${gcc_cv_math_func_sinhf+:} false; then :
22401 $as_echo_n "(cached) " >&6
22402 else
22403 if test x$gcc_no_link = xyes; then
22404 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22405 fi
22406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22407 /* end confdefs.h. */
22408
22409 #ifdef HAVE_COMPLEX_H
22410 #include <complex.h>
22411 #endif
22412 #ifdef HAVE_MATH_H
22413 #include <math.h>
22414 #endif
22415
22416 int (*ptr)() = (int (*)())sinhf;
22417
22418 int
22419 main ()
22420 {
22421 return 0;
22422 }
22423
22424 _ACEOF
22425 if ac_fn_c_try_link "$LINENO"; then :
22426 gcc_cv_math_func_sinhf=yes
22427 else
22428 gcc_cv_math_func_sinhf=no
22429 fi
22430 rm -f core conftest.err conftest.$ac_objext \
22431 conftest$ac_exeext conftest.$ac_ext
22432 fi
22433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhf" >&5
22434 $as_echo "$gcc_cv_math_func_sinhf" >&6; }
22435 if test $gcc_cv_math_func_sinhf = yes; then
22436
22437 cat >>confdefs.h <<_ACEOF
22438 #define HAVE_SINHF 1
22439 _ACEOF
22440
22441 fi
22442
22443
22444
22445
22446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinh" >&5
22447 $as_echo_n "checking for sinh... " >&6; }
22448 if ${gcc_cv_math_func_sinh+:} false; then :
22449 $as_echo_n "(cached) " >&6
22450 else
22451 if test x$gcc_no_link = xyes; then
22452 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22453 fi
22454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22455 /* end confdefs.h. */
22456
22457 #ifdef HAVE_COMPLEX_H
22458 #include <complex.h>
22459 #endif
22460 #ifdef HAVE_MATH_H
22461 #include <math.h>
22462 #endif
22463
22464 int (*ptr)() = (int (*)())sinh;
22465
22466 int
22467 main ()
22468 {
22469 return 0;
22470 }
22471
22472 _ACEOF
22473 if ac_fn_c_try_link "$LINENO"; then :
22474 gcc_cv_math_func_sinh=yes
22475 else
22476 gcc_cv_math_func_sinh=no
22477 fi
22478 rm -f core conftest.err conftest.$ac_objext \
22479 conftest$ac_exeext conftest.$ac_ext
22480 fi
22481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinh" >&5
22482 $as_echo "$gcc_cv_math_func_sinh" >&6; }
22483 if test $gcc_cv_math_func_sinh = yes; then
22484
22485 cat >>confdefs.h <<_ACEOF
22486 #define HAVE_SINH 1
22487 _ACEOF
22488
22489 fi
22490
22491
22492
22493
22494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhl" >&5
22495 $as_echo_n "checking for sinhl... " >&6; }
22496 if ${gcc_cv_math_func_sinhl+:} false; then :
22497 $as_echo_n "(cached) " >&6
22498 else
22499 if test x$gcc_no_link = xyes; then
22500 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22501 fi
22502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22503 /* end confdefs.h. */
22504
22505 #ifdef HAVE_COMPLEX_H
22506 #include <complex.h>
22507 #endif
22508 #ifdef HAVE_MATH_H
22509 #include <math.h>
22510 #endif
22511
22512 int (*ptr)() = (int (*)())sinhl;
22513
22514 int
22515 main ()
22516 {
22517 return 0;
22518 }
22519
22520 _ACEOF
22521 if ac_fn_c_try_link "$LINENO"; then :
22522 gcc_cv_math_func_sinhl=yes
22523 else
22524 gcc_cv_math_func_sinhl=no
22525 fi
22526 rm -f core conftest.err conftest.$ac_objext \
22527 conftest$ac_exeext conftest.$ac_ext
22528 fi
22529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhl" >&5
22530 $as_echo "$gcc_cv_math_func_sinhl" >&6; }
22531 if test $gcc_cv_math_func_sinhl = yes; then
22532
22533 cat >>confdefs.h <<_ACEOF
22534 #define HAVE_SINHL 1
22535 _ACEOF
22536
22537 fi
22538
22539
22540
22541
22542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhf" >&5
22543 $as_echo_n "checking for csinhf... " >&6; }
22544 if ${gcc_cv_math_func_csinhf+:} false; then :
22545 $as_echo_n "(cached) " >&6
22546 else
22547 if test x$gcc_no_link = xyes; then
22548 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22549 fi
22550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22551 /* end confdefs.h. */
22552
22553 #ifdef HAVE_COMPLEX_H
22554 #include <complex.h>
22555 #endif
22556 #ifdef HAVE_MATH_H
22557 #include <math.h>
22558 #endif
22559
22560 int (*ptr)() = (int (*)())csinhf;
22561
22562 int
22563 main ()
22564 {
22565 return 0;
22566 }
22567
22568 _ACEOF
22569 if ac_fn_c_try_link "$LINENO"; then :
22570 gcc_cv_math_func_csinhf=yes
22571 else
22572 gcc_cv_math_func_csinhf=no
22573 fi
22574 rm -f core conftest.err conftest.$ac_objext \
22575 conftest$ac_exeext conftest.$ac_ext
22576 fi
22577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhf" >&5
22578 $as_echo "$gcc_cv_math_func_csinhf" >&6; }
22579 if test $gcc_cv_math_func_csinhf = yes; then
22580
22581 cat >>confdefs.h <<_ACEOF
22582 #define HAVE_CSINHF 1
22583 _ACEOF
22584
22585 fi
22586
22587
22588
22589
22590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinh" >&5
22591 $as_echo_n "checking for csinh... " >&6; }
22592 if ${gcc_cv_math_func_csinh+:} false; then :
22593 $as_echo_n "(cached) " >&6
22594 else
22595 if test x$gcc_no_link = xyes; then
22596 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22597 fi
22598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22599 /* end confdefs.h. */
22600
22601 #ifdef HAVE_COMPLEX_H
22602 #include <complex.h>
22603 #endif
22604 #ifdef HAVE_MATH_H
22605 #include <math.h>
22606 #endif
22607
22608 int (*ptr)() = (int (*)())csinh;
22609
22610 int
22611 main ()
22612 {
22613 return 0;
22614 }
22615
22616 _ACEOF
22617 if ac_fn_c_try_link "$LINENO"; then :
22618 gcc_cv_math_func_csinh=yes
22619 else
22620 gcc_cv_math_func_csinh=no
22621 fi
22622 rm -f core conftest.err conftest.$ac_objext \
22623 conftest$ac_exeext conftest.$ac_ext
22624 fi
22625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinh" >&5
22626 $as_echo "$gcc_cv_math_func_csinh" >&6; }
22627 if test $gcc_cv_math_func_csinh = yes; then
22628
22629 cat >>confdefs.h <<_ACEOF
22630 #define HAVE_CSINH 1
22631 _ACEOF
22632
22633 fi
22634
22635
22636
22637
22638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhl" >&5
22639 $as_echo_n "checking for csinhl... " >&6; }
22640 if ${gcc_cv_math_func_csinhl+:} false; then :
22641 $as_echo_n "(cached) " >&6
22642 else
22643 if test x$gcc_no_link = xyes; then
22644 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22645 fi
22646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22647 /* end confdefs.h. */
22648
22649 #ifdef HAVE_COMPLEX_H
22650 #include <complex.h>
22651 #endif
22652 #ifdef HAVE_MATH_H
22653 #include <math.h>
22654 #endif
22655
22656 int (*ptr)() = (int (*)())csinhl;
22657
22658 int
22659 main ()
22660 {
22661 return 0;
22662 }
22663
22664 _ACEOF
22665 if ac_fn_c_try_link "$LINENO"; then :
22666 gcc_cv_math_func_csinhl=yes
22667 else
22668 gcc_cv_math_func_csinhl=no
22669 fi
22670 rm -f core conftest.err conftest.$ac_objext \
22671 conftest$ac_exeext conftest.$ac_ext
22672 fi
22673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhl" >&5
22674 $as_echo "$gcc_cv_math_func_csinhl" >&6; }
22675 if test $gcc_cv_math_func_csinhl = yes; then
22676
22677 cat >>confdefs.h <<_ACEOF
22678 #define HAVE_CSINHL 1
22679 _ACEOF
22680
22681 fi
22682
22683
22684
22685
22686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf" >&5
22687 $as_echo_n "checking for sqrtf... " >&6; }
22688 if ${gcc_cv_math_func_sqrtf+:} false; then :
22689 $as_echo_n "(cached) " >&6
22690 else
22691 if test x$gcc_no_link = xyes; then
22692 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22693 fi
22694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22695 /* end confdefs.h. */
22696
22697 #ifdef HAVE_COMPLEX_H
22698 #include <complex.h>
22699 #endif
22700 #ifdef HAVE_MATH_H
22701 #include <math.h>
22702 #endif
22703
22704 int (*ptr)() = (int (*)())sqrtf;
22705
22706 int
22707 main ()
22708 {
22709 return 0;
22710 }
22711
22712 _ACEOF
22713 if ac_fn_c_try_link "$LINENO"; then :
22714 gcc_cv_math_func_sqrtf=yes
22715 else
22716 gcc_cv_math_func_sqrtf=no
22717 fi
22718 rm -f core conftest.err conftest.$ac_objext \
22719 conftest$ac_exeext conftest.$ac_ext
22720 fi
22721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtf" >&5
22722 $as_echo "$gcc_cv_math_func_sqrtf" >&6; }
22723 if test $gcc_cv_math_func_sqrtf = yes; then
22724
22725 cat >>confdefs.h <<_ACEOF
22726 #define HAVE_SQRTF 1
22727 _ACEOF
22728
22729 fi
22730
22731
22732
22733
22734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt" >&5
22735 $as_echo_n "checking for sqrt... " >&6; }
22736 if ${gcc_cv_math_func_sqrt+:} false; then :
22737 $as_echo_n "(cached) " >&6
22738 else
22739 if test x$gcc_no_link = xyes; then
22740 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22741 fi
22742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22743 /* end confdefs.h. */
22744
22745 #ifdef HAVE_COMPLEX_H
22746 #include <complex.h>
22747 #endif
22748 #ifdef HAVE_MATH_H
22749 #include <math.h>
22750 #endif
22751
22752 int (*ptr)() = (int (*)())sqrt;
22753
22754 int
22755 main ()
22756 {
22757 return 0;
22758 }
22759
22760 _ACEOF
22761 if ac_fn_c_try_link "$LINENO"; then :
22762 gcc_cv_math_func_sqrt=yes
22763 else
22764 gcc_cv_math_func_sqrt=no
22765 fi
22766 rm -f core conftest.err conftest.$ac_objext \
22767 conftest$ac_exeext conftest.$ac_ext
22768 fi
22769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrt" >&5
22770 $as_echo "$gcc_cv_math_func_sqrt" >&6; }
22771 if test $gcc_cv_math_func_sqrt = yes; then
22772
22773 cat >>confdefs.h <<_ACEOF
22774 #define HAVE_SQRT 1
22775 _ACEOF
22776
22777 fi
22778
22779
22780
22781
22782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl" >&5
22783 $as_echo_n "checking for sqrtl... " >&6; }
22784 if ${gcc_cv_math_func_sqrtl+:} false; then :
22785 $as_echo_n "(cached) " >&6
22786 else
22787 if test x$gcc_no_link = xyes; then
22788 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22789 fi
22790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22791 /* end confdefs.h. */
22792
22793 #ifdef HAVE_COMPLEX_H
22794 #include <complex.h>
22795 #endif
22796 #ifdef HAVE_MATH_H
22797 #include <math.h>
22798 #endif
22799
22800 int (*ptr)() = (int (*)())sqrtl;
22801
22802 int
22803 main ()
22804 {
22805 return 0;
22806 }
22807
22808 _ACEOF
22809 if ac_fn_c_try_link "$LINENO"; then :
22810 gcc_cv_math_func_sqrtl=yes
22811 else
22812 gcc_cv_math_func_sqrtl=no
22813 fi
22814 rm -f core conftest.err conftest.$ac_objext \
22815 conftest$ac_exeext conftest.$ac_ext
22816 fi
22817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtl" >&5
22818 $as_echo "$gcc_cv_math_func_sqrtl" >&6; }
22819 if test $gcc_cv_math_func_sqrtl = yes; then
22820
22821 cat >>confdefs.h <<_ACEOF
22822 #define HAVE_SQRTL 1
22823 _ACEOF
22824
22825 fi
22826
22827
22828
22829
22830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtf" >&5
22831 $as_echo_n "checking for csqrtf... " >&6; }
22832 if ${gcc_cv_math_func_csqrtf+:} false; then :
22833 $as_echo_n "(cached) " >&6
22834 else
22835 if test x$gcc_no_link = xyes; then
22836 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22837 fi
22838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22839 /* end confdefs.h. */
22840
22841 #ifdef HAVE_COMPLEX_H
22842 #include <complex.h>
22843 #endif
22844 #ifdef HAVE_MATH_H
22845 #include <math.h>
22846 #endif
22847
22848 int (*ptr)() = (int (*)())csqrtf;
22849
22850 int
22851 main ()
22852 {
22853 return 0;
22854 }
22855
22856 _ACEOF
22857 if ac_fn_c_try_link "$LINENO"; then :
22858 gcc_cv_math_func_csqrtf=yes
22859 else
22860 gcc_cv_math_func_csqrtf=no
22861 fi
22862 rm -f core conftest.err conftest.$ac_objext \
22863 conftest$ac_exeext conftest.$ac_ext
22864 fi
22865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtf" >&5
22866 $as_echo "$gcc_cv_math_func_csqrtf" >&6; }
22867 if test $gcc_cv_math_func_csqrtf = yes; then
22868
22869 cat >>confdefs.h <<_ACEOF
22870 #define HAVE_CSQRTF 1
22871 _ACEOF
22872
22873 fi
22874
22875
22876
22877
22878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrt" >&5
22879 $as_echo_n "checking for csqrt... " >&6; }
22880 if ${gcc_cv_math_func_csqrt+:} false; then :
22881 $as_echo_n "(cached) " >&6
22882 else
22883 if test x$gcc_no_link = xyes; then
22884 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22885 fi
22886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22887 /* end confdefs.h. */
22888
22889 #ifdef HAVE_COMPLEX_H
22890 #include <complex.h>
22891 #endif
22892 #ifdef HAVE_MATH_H
22893 #include <math.h>
22894 #endif
22895
22896 int (*ptr)() = (int (*)())csqrt;
22897
22898 int
22899 main ()
22900 {
22901 return 0;
22902 }
22903
22904 _ACEOF
22905 if ac_fn_c_try_link "$LINENO"; then :
22906 gcc_cv_math_func_csqrt=yes
22907 else
22908 gcc_cv_math_func_csqrt=no
22909 fi
22910 rm -f core conftest.err conftest.$ac_objext \
22911 conftest$ac_exeext conftest.$ac_ext
22912 fi
22913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrt" >&5
22914 $as_echo "$gcc_cv_math_func_csqrt" >&6; }
22915 if test $gcc_cv_math_func_csqrt = yes; then
22916
22917 cat >>confdefs.h <<_ACEOF
22918 #define HAVE_CSQRT 1
22919 _ACEOF
22920
22921 fi
22922
22923
22924
22925
22926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtl" >&5
22927 $as_echo_n "checking for csqrtl... " >&6; }
22928 if ${gcc_cv_math_func_csqrtl+:} false; then :
22929 $as_echo_n "(cached) " >&6
22930 else
22931 if test x$gcc_no_link = xyes; then
22932 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22933 fi
22934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22935 /* end confdefs.h. */
22936
22937 #ifdef HAVE_COMPLEX_H
22938 #include <complex.h>
22939 #endif
22940 #ifdef HAVE_MATH_H
22941 #include <math.h>
22942 #endif
22943
22944 int (*ptr)() = (int (*)())csqrtl;
22945
22946 int
22947 main ()
22948 {
22949 return 0;
22950 }
22951
22952 _ACEOF
22953 if ac_fn_c_try_link "$LINENO"; then :
22954 gcc_cv_math_func_csqrtl=yes
22955 else
22956 gcc_cv_math_func_csqrtl=no
22957 fi
22958 rm -f core conftest.err conftest.$ac_objext \
22959 conftest$ac_exeext conftest.$ac_ext
22960 fi
22961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtl" >&5
22962 $as_echo "$gcc_cv_math_func_csqrtl" >&6; }
22963 if test $gcc_cv_math_func_csqrtl = yes; then
22964
22965 cat >>confdefs.h <<_ACEOF
22966 #define HAVE_CSQRTL 1
22967 _ACEOF
22968
22969 fi
22970
22971
22972
22973
22974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanf" >&5
22975 $as_echo_n "checking for tanf... " >&6; }
22976 if ${gcc_cv_math_func_tanf+:} false; then :
22977 $as_echo_n "(cached) " >&6
22978 else
22979 if test x$gcc_no_link = xyes; then
22980 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22981 fi
22982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22983 /* end confdefs.h. */
22984
22985 #ifdef HAVE_COMPLEX_H
22986 #include <complex.h>
22987 #endif
22988 #ifdef HAVE_MATH_H
22989 #include <math.h>
22990 #endif
22991
22992 int (*ptr)() = (int (*)())tanf;
22993
22994 int
22995 main ()
22996 {
22997 return 0;
22998 }
22999
23000 _ACEOF
23001 if ac_fn_c_try_link "$LINENO"; then :
23002 gcc_cv_math_func_tanf=yes
23003 else
23004 gcc_cv_math_func_tanf=no
23005 fi
23006 rm -f core conftest.err conftest.$ac_objext \
23007 conftest$ac_exeext conftest.$ac_ext
23008 fi
23009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanf" >&5
23010 $as_echo "$gcc_cv_math_func_tanf" >&6; }
23011 if test $gcc_cv_math_func_tanf = yes; then
23012
23013 cat >>confdefs.h <<_ACEOF
23014 #define HAVE_TANF 1
23015 _ACEOF
23016
23017 fi
23018
23019
23020
23021
23022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tan" >&5
23023 $as_echo_n "checking for tan... " >&6; }
23024 if ${gcc_cv_math_func_tan+:} false; then :
23025 $as_echo_n "(cached) " >&6
23026 else
23027 if test x$gcc_no_link = xyes; then
23028 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23029 fi
23030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23031 /* end confdefs.h. */
23032
23033 #ifdef HAVE_COMPLEX_H
23034 #include <complex.h>
23035 #endif
23036 #ifdef HAVE_MATH_H
23037 #include <math.h>
23038 #endif
23039
23040 int (*ptr)() = (int (*)())tan;
23041
23042 int
23043 main ()
23044 {
23045 return 0;
23046 }
23047
23048 _ACEOF
23049 if ac_fn_c_try_link "$LINENO"; then :
23050 gcc_cv_math_func_tan=yes
23051 else
23052 gcc_cv_math_func_tan=no
23053 fi
23054 rm -f core conftest.err conftest.$ac_objext \
23055 conftest$ac_exeext conftest.$ac_ext
23056 fi
23057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tan" >&5
23058 $as_echo "$gcc_cv_math_func_tan" >&6; }
23059 if test $gcc_cv_math_func_tan = yes; then
23060
23061 cat >>confdefs.h <<_ACEOF
23062 #define HAVE_TAN 1
23063 _ACEOF
23064
23065 fi
23066
23067
23068
23069
23070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanl" >&5
23071 $as_echo_n "checking for tanl... " >&6; }
23072 if ${gcc_cv_math_func_tanl+:} false; then :
23073 $as_echo_n "(cached) " >&6
23074 else
23075 if test x$gcc_no_link = xyes; then
23076 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23077 fi
23078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23079 /* end confdefs.h. */
23080
23081 #ifdef HAVE_COMPLEX_H
23082 #include <complex.h>
23083 #endif
23084 #ifdef HAVE_MATH_H
23085 #include <math.h>
23086 #endif
23087
23088 int (*ptr)() = (int (*)())tanl;
23089
23090 int
23091 main ()
23092 {
23093 return 0;
23094 }
23095
23096 _ACEOF
23097 if ac_fn_c_try_link "$LINENO"; then :
23098 gcc_cv_math_func_tanl=yes
23099 else
23100 gcc_cv_math_func_tanl=no
23101 fi
23102 rm -f core conftest.err conftest.$ac_objext \
23103 conftest$ac_exeext conftest.$ac_ext
23104 fi
23105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanl" >&5
23106 $as_echo "$gcc_cv_math_func_tanl" >&6; }
23107 if test $gcc_cv_math_func_tanl = yes; then
23108
23109 cat >>confdefs.h <<_ACEOF
23110 #define HAVE_TANL 1
23111 _ACEOF
23112
23113 fi
23114
23115
23116
23117
23118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanf" >&5
23119 $as_echo_n "checking for ctanf... " >&6; }
23120 if ${gcc_cv_math_func_ctanf+:} false; then :
23121 $as_echo_n "(cached) " >&6
23122 else
23123 if test x$gcc_no_link = xyes; then
23124 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23125 fi
23126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23127 /* end confdefs.h. */
23128
23129 #ifdef HAVE_COMPLEX_H
23130 #include <complex.h>
23131 #endif
23132 #ifdef HAVE_MATH_H
23133 #include <math.h>
23134 #endif
23135
23136 int (*ptr)() = (int (*)())ctanf;
23137
23138 int
23139 main ()
23140 {
23141 return 0;
23142 }
23143
23144 _ACEOF
23145 if ac_fn_c_try_link "$LINENO"; then :
23146 gcc_cv_math_func_ctanf=yes
23147 else
23148 gcc_cv_math_func_ctanf=no
23149 fi
23150 rm -f core conftest.err conftest.$ac_objext \
23151 conftest$ac_exeext conftest.$ac_ext
23152 fi
23153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanf" >&5
23154 $as_echo "$gcc_cv_math_func_ctanf" >&6; }
23155 if test $gcc_cv_math_func_ctanf = yes; then
23156
23157 cat >>confdefs.h <<_ACEOF
23158 #define HAVE_CTANF 1
23159 _ACEOF
23160
23161 fi
23162
23163
23164
23165
23166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctan" >&5
23167 $as_echo_n "checking for ctan... " >&6; }
23168 if ${gcc_cv_math_func_ctan+:} false; then :
23169 $as_echo_n "(cached) " >&6
23170 else
23171 if test x$gcc_no_link = xyes; then
23172 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23173 fi
23174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23175 /* end confdefs.h. */
23176
23177 #ifdef HAVE_COMPLEX_H
23178 #include <complex.h>
23179 #endif
23180 #ifdef HAVE_MATH_H
23181 #include <math.h>
23182 #endif
23183
23184 int (*ptr)() = (int (*)())ctan;
23185
23186 int
23187 main ()
23188 {
23189 return 0;
23190 }
23191
23192 _ACEOF
23193 if ac_fn_c_try_link "$LINENO"; then :
23194 gcc_cv_math_func_ctan=yes
23195 else
23196 gcc_cv_math_func_ctan=no
23197 fi
23198 rm -f core conftest.err conftest.$ac_objext \
23199 conftest$ac_exeext conftest.$ac_ext
23200 fi
23201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctan" >&5
23202 $as_echo "$gcc_cv_math_func_ctan" >&6; }
23203 if test $gcc_cv_math_func_ctan = yes; then
23204
23205 cat >>confdefs.h <<_ACEOF
23206 #define HAVE_CTAN 1
23207 _ACEOF
23208
23209 fi
23210
23211
23212
23213
23214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanl" >&5
23215 $as_echo_n "checking for ctanl... " >&6; }
23216 if ${gcc_cv_math_func_ctanl+:} false; then :
23217 $as_echo_n "(cached) " >&6
23218 else
23219 if test x$gcc_no_link = xyes; then
23220 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23221 fi
23222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23223 /* end confdefs.h. */
23224
23225 #ifdef HAVE_COMPLEX_H
23226 #include <complex.h>
23227 #endif
23228 #ifdef HAVE_MATH_H
23229 #include <math.h>
23230 #endif
23231
23232 int (*ptr)() = (int (*)())ctanl;
23233
23234 int
23235 main ()
23236 {
23237 return 0;
23238 }
23239
23240 _ACEOF
23241 if ac_fn_c_try_link "$LINENO"; then :
23242 gcc_cv_math_func_ctanl=yes
23243 else
23244 gcc_cv_math_func_ctanl=no
23245 fi
23246 rm -f core conftest.err conftest.$ac_objext \
23247 conftest$ac_exeext conftest.$ac_ext
23248 fi
23249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanl" >&5
23250 $as_echo "$gcc_cv_math_func_ctanl" >&6; }
23251 if test $gcc_cv_math_func_ctanl = yes; then
23252
23253 cat >>confdefs.h <<_ACEOF
23254 #define HAVE_CTANL 1
23255 _ACEOF
23256
23257 fi
23258
23259
23260
23261
23262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhf" >&5
23263 $as_echo_n "checking for tanhf... " >&6; }
23264 if ${gcc_cv_math_func_tanhf+:} false; then :
23265 $as_echo_n "(cached) " >&6
23266 else
23267 if test x$gcc_no_link = xyes; then
23268 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23269 fi
23270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23271 /* end confdefs.h. */
23272
23273 #ifdef HAVE_COMPLEX_H
23274 #include <complex.h>
23275 #endif
23276 #ifdef HAVE_MATH_H
23277 #include <math.h>
23278 #endif
23279
23280 int (*ptr)() = (int (*)())tanhf;
23281
23282 int
23283 main ()
23284 {
23285 return 0;
23286 }
23287
23288 _ACEOF
23289 if ac_fn_c_try_link "$LINENO"; then :
23290 gcc_cv_math_func_tanhf=yes
23291 else
23292 gcc_cv_math_func_tanhf=no
23293 fi
23294 rm -f core conftest.err conftest.$ac_objext \
23295 conftest$ac_exeext conftest.$ac_ext
23296 fi
23297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhf" >&5
23298 $as_echo "$gcc_cv_math_func_tanhf" >&6; }
23299 if test $gcc_cv_math_func_tanhf = yes; then
23300
23301 cat >>confdefs.h <<_ACEOF
23302 #define HAVE_TANHF 1
23303 _ACEOF
23304
23305 fi
23306
23307
23308
23309
23310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanh" >&5
23311 $as_echo_n "checking for tanh... " >&6; }
23312 if ${gcc_cv_math_func_tanh+:} false; then :
23313 $as_echo_n "(cached) " >&6
23314 else
23315 if test x$gcc_no_link = xyes; then
23316 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23317 fi
23318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23319 /* end confdefs.h. */
23320
23321 #ifdef HAVE_COMPLEX_H
23322 #include <complex.h>
23323 #endif
23324 #ifdef HAVE_MATH_H
23325 #include <math.h>
23326 #endif
23327
23328 int (*ptr)() = (int (*)())tanh;
23329
23330 int
23331 main ()
23332 {
23333 return 0;
23334 }
23335
23336 _ACEOF
23337 if ac_fn_c_try_link "$LINENO"; then :
23338 gcc_cv_math_func_tanh=yes
23339 else
23340 gcc_cv_math_func_tanh=no
23341 fi
23342 rm -f core conftest.err conftest.$ac_objext \
23343 conftest$ac_exeext conftest.$ac_ext
23344 fi
23345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanh" >&5
23346 $as_echo "$gcc_cv_math_func_tanh" >&6; }
23347 if test $gcc_cv_math_func_tanh = yes; then
23348
23349 cat >>confdefs.h <<_ACEOF
23350 #define HAVE_TANH 1
23351 _ACEOF
23352
23353 fi
23354
23355
23356
23357
23358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhl" >&5
23359 $as_echo_n "checking for tanhl... " >&6; }
23360 if ${gcc_cv_math_func_tanhl+:} false; then :
23361 $as_echo_n "(cached) " >&6
23362 else
23363 if test x$gcc_no_link = xyes; then
23364 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23365 fi
23366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23367 /* end confdefs.h. */
23368
23369 #ifdef HAVE_COMPLEX_H
23370 #include <complex.h>
23371 #endif
23372 #ifdef HAVE_MATH_H
23373 #include <math.h>
23374 #endif
23375
23376 int (*ptr)() = (int (*)())tanhl;
23377
23378 int
23379 main ()
23380 {
23381 return 0;
23382 }
23383
23384 _ACEOF
23385 if ac_fn_c_try_link "$LINENO"; then :
23386 gcc_cv_math_func_tanhl=yes
23387 else
23388 gcc_cv_math_func_tanhl=no
23389 fi
23390 rm -f core conftest.err conftest.$ac_objext \
23391 conftest$ac_exeext conftest.$ac_ext
23392 fi
23393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhl" >&5
23394 $as_echo "$gcc_cv_math_func_tanhl" >&6; }
23395 if test $gcc_cv_math_func_tanhl = yes; then
23396
23397 cat >>confdefs.h <<_ACEOF
23398 #define HAVE_TANHL 1
23399 _ACEOF
23400
23401 fi
23402
23403
23404
23405
23406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhf" >&5
23407 $as_echo_n "checking for ctanhf... " >&6; }
23408 if ${gcc_cv_math_func_ctanhf+:} false; then :
23409 $as_echo_n "(cached) " >&6
23410 else
23411 if test x$gcc_no_link = xyes; then
23412 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23413 fi
23414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23415 /* end confdefs.h. */
23416
23417 #ifdef HAVE_COMPLEX_H
23418 #include <complex.h>
23419 #endif
23420 #ifdef HAVE_MATH_H
23421 #include <math.h>
23422 #endif
23423
23424 int (*ptr)() = (int (*)())ctanhf;
23425
23426 int
23427 main ()
23428 {
23429 return 0;
23430 }
23431
23432 _ACEOF
23433 if ac_fn_c_try_link "$LINENO"; then :
23434 gcc_cv_math_func_ctanhf=yes
23435 else
23436 gcc_cv_math_func_ctanhf=no
23437 fi
23438 rm -f core conftest.err conftest.$ac_objext \
23439 conftest$ac_exeext conftest.$ac_ext
23440 fi
23441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhf" >&5
23442 $as_echo "$gcc_cv_math_func_ctanhf" >&6; }
23443 if test $gcc_cv_math_func_ctanhf = yes; then
23444
23445 cat >>confdefs.h <<_ACEOF
23446 #define HAVE_CTANHF 1
23447 _ACEOF
23448
23449 fi
23450
23451
23452
23453
23454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanh" >&5
23455 $as_echo_n "checking for ctanh... " >&6; }
23456 if ${gcc_cv_math_func_ctanh+:} false; then :
23457 $as_echo_n "(cached) " >&6
23458 else
23459 if test x$gcc_no_link = xyes; then
23460 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23461 fi
23462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23463 /* end confdefs.h. */
23464
23465 #ifdef HAVE_COMPLEX_H
23466 #include <complex.h>
23467 #endif
23468 #ifdef HAVE_MATH_H
23469 #include <math.h>
23470 #endif
23471
23472 int (*ptr)() = (int (*)())ctanh;
23473
23474 int
23475 main ()
23476 {
23477 return 0;
23478 }
23479
23480 _ACEOF
23481 if ac_fn_c_try_link "$LINENO"; then :
23482 gcc_cv_math_func_ctanh=yes
23483 else
23484 gcc_cv_math_func_ctanh=no
23485 fi
23486 rm -f core conftest.err conftest.$ac_objext \
23487 conftest$ac_exeext conftest.$ac_ext
23488 fi
23489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanh" >&5
23490 $as_echo "$gcc_cv_math_func_ctanh" >&6; }
23491 if test $gcc_cv_math_func_ctanh = yes; then
23492
23493 cat >>confdefs.h <<_ACEOF
23494 #define HAVE_CTANH 1
23495 _ACEOF
23496
23497 fi
23498
23499
23500
23501
23502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhl" >&5
23503 $as_echo_n "checking for ctanhl... " >&6; }
23504 if ${gcc_cv_math_func_ctanhl+:} false; then :
23505 $as_echo_n "(cached) " >&6
23506 else
23507 if test x$gcc_no_link = xyes; then
23508 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23509 fi
23510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23511 /* end confdefs.h. */
23512
23513 #ifdef HAVE_COMPLEX_H
23514 #include <complex.h>
23515 #endif
23516 #ifdef HAVE_MATH_H
23517 #include <math.h>
23518 #endif
23519
23520 int (*ptr)() = (int (*)())ctanhl;
23521
23522 int
23523 main ()
23524 {
23525 return 0;
23526 }
23527
23528 _ACEOF
23529 if ac_fn_c_try_link "$LINENO"; then :
23530 gcc_cv_math_func_ctanhl=yes
23531 else
23532 gcc_cv_math_func_ctanhl=no
23533 fi
23534 rm -f core conftest.err conftest.$ac_objext \
23535 conftest$ac_exeext conftest.$ac_ext
23536 fi
23537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhl" >&5
23538 $as_echo "$gcc_cv_math_func_ctanhl" >&6; }
23539 if test $gcc_cv_math_func_ctanhl = yes; then
23540
23541 cat >>confdefs.h <<_ACEOF
23542 #define HAVE_CTANHL 1
23543 _ACEOF
23544
23545 fi
23546
23547
23548
23549
23550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncf" >&5
23551 $as_echo_n "checking for truncf... " >&6; }
23552 if ${gcc_cv_math_func_truncf+:} false; then :
23553 $as_echo_n "(cached) " >&6
23554 else
23555 if test x$gcc_no_link = xyes; then
23556 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23557 fi
23558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23559 /* end confdefs.h. */
23560
23561 #ifdef HAVE_COMPLEX_H
23562 #include <complex.h>
23563 #endif
23564 #ifdef HAVE_MATH_H
23565 #include <math.h>
23566 #endif
23567
23568 int (*ptr)() = (int (*)())truncf;
23569
23570 int
23571 main ()
23572 {
23573 return 0;
23574 }
23575
23576 _ACEOF
23577 if ac_fn_c_try_link "$LINENO"; then :
23578 gcc_cv_math_func_truncf=yes
23579 else
23580 gcc_cv_math_func_truncf=no
23581 fi
23582 rm -f core conftest.err conftest.$ac_objext \
23583 conftest$ac_exeext conftest.$ac_ext
23584 fi
23585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncf" >&5
23586 $as_echo "$gcc_cv_math_func_truncf" >&6; }
23587 if test $gcc_cv_math_func_truncf = yes; then
23588
23589 cat >>confdefs.h <<_ACEOF
23590 #define HAVE_TRUNCF 1
23591 _ACEOF
23592
23593 fi
23594
23595
23596
23597
23598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for trunc" >&5
23599 $as_echo_n "checking for trunc... " >&6; }
23600 if ${gcc_cv_math_func_trunc+:} false; then :
23601 $as_echo_n "(cached) " >&6
23602 else
23603 if test x$gcc_no_link = xyes; then
23604 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23605 fi
23606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23607 /* end confdefs.h. */
23608
23609 #ifdef HAVE_COMPLEX_H
23610 #include <complex.h>
23611 #endif
23612 #ifdef HAVE_MATH_H
23613 #include <math.h>
23614 #endif
23615
23616 int (*ptr)() = (int (*)())trunc;
23617
23618 int
23619 main ()
23620 {
23621 return 0;
23622 }
23623
23624 _ACEOF
23625 if ac_fn_c_try_link "$LINENO"; then :
23626 gcc_cv_math_func_trunc=yes
23627 else
23628 gcc_cv_math_func_trunc=no
23629 fi
23630 rm -f core conftest.err conftest.$ac_objext \
23631 conftest$ac_exeext conftest.$ac_ext
23632 fi
23633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_trunc" >&5
23634 $as_echo "$gcc_cv_math_func_trunc" >&6; }
23635 if test $gcc_cv_math_func_trunc = yes; then
23636
23637 cat >>confdefs.h <<_ACEOF
23638 #define HAVE_TRUNC 1
23639 _ACEOF
23640
23641 fi
23642
23643
23644
23645
23646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncl" >&5
23647 $as_echo_n "checking for truncl... " >&6; }
23648 if ${gcc_cv_math_func_truncl+:} false; then :
23649 $as_echo_n "(cached) " >&6
23650 else
23651 if test x$gcc_no_link = xyes; then
23652 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23653 fi
23654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23655 /* end confdefs.h. */
23656
23657 #ifdef HAVE_COMPLEX_H
23658 #include <complex.h>
23659 #endif
23660 #ifdef HAVE_MATH_H
23661 #include <math.h>
23662 #endif
23663
23664 int (*ptr)() = (int (*)())truncl;
23665
23666 int
23667 main ()
23668 {
23669 return 0;
23670 }
23671
23672 _ACEOF
23673 if ac_fn_c_try_link "$LINENO"; then :
23674 gcc_cv_math_func_truncl=yes
23675 else
23676 gcc_cv_math_func_truncl=no
23677 fi
23678 rm -f core conftest.err conftest.$ac_objext \
23679 conftest$ac_exeext conftest.$ac_ext
23680 fi
23681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncl" >&5
23682 $as_echo "$gcc_cv_math_func_truncl" >&6; }
23683 if test $gcc_cv_math_func_truncl = yes; then
23684
23685 cat >>confdefs.h <<_ACEOF
23686 #define HAVE_TRUNCL 1
23687 _ACEOF
23688
23689 fi
23690
23691
23692
23693
23694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erff" >&5
23695 $as_echo_n "checking for erff... " >&6; }
23696 if ${gcc_cv_math_func_erff+:} false; then :
23697 $as_echo_n "(cached) " >&6
23698 else
23699 if test x$gcc_no_link = xyes; then
23700 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23701 fi
23702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23703 /* end confdefs.h. */
23704
23705 #ifdef HAVE_COMPLEX_H
23706 #include <complex.h>
23707 #endif
23708 #ifdef HAVE_MATH_H
23709 #include <math.h>
23710 #endif
23711
23712 int (*ptr)() = (int (*)())erff;
23713
23714 int
23715 main ()
23716 {
23717 return 0;
23718 }
23719
23720 _ACEOF
23721 if ac_fn_c_try_link "$LINENO"; then :
23722 gcc_cv_math_func_erff=yes
23723 else
23724 gcc_cv_math_func_erff=no
23725 fi
23726 rm -f core conftest.err conftest.$ac_objext \
23727 conftest$ac_exeext conftest.$ac_ext
23728 fi
23729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erff" >&5
23730 $as_echo "$gcc_cv_math_func_erff" >&6; }
23731 if test $gcc_cv_math_func_erff = yes; then
23732
23733 cat >>confdefs.h <<_ACEOF
23734 #define HAVE_ERFF 1
23735 _ACEOF
23736
23737 fi
23738
23739
23740
23741
23742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erf" >&5
23743 $as_echo_n "checking for erf... " >&6; }
23744 if ${gcc_cv_math_func_erf+:} false; then :
23745 $as_echo_n "(cached) " >&6
23746 else
23747 if test x$gcc_no_link = xyes; then
23748 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23749 fi
23750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23751 /* end confdefs.h. */
23752
23753 #ifdef HAVE_COMPLEX_H
23754 #include <complex.h>
23755 #endif
23756 #ifdef HAVE_MATH_H
23757 #include <math.h>
23758 #endif
23759
23760 int (*ptr)() = (int (*)())erf;
23761
23762 int
23763 main ()
23764 {
23765 return 0;
23766 }
23767
23768 _ACEOF
23769 if ac_fn_c_try_link "$LINENO"; then :
23770 gcc_cv_math_func_erf=yes
23771 else
23772 gcc_cv_math_func_erf=no
23773 fi
23774 rm -f core conftest.err conftest.$ac_objext \
23775 conftest$ac_exeext conftest.$ac_ext
23776 fi
23777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erf" >&5
23778 $as_echo "$gcc_cv_math_func_erf" >&6; }
23779 if test $gcc_cv_math_func_erf = yes; then
23780
23781 cat >>confdefs.h <<_ACEOF
23782 #define HAVE_ERF 1
23783 _ACEOF
23784
23785 fi
23786
23787
23788
23789
23790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcf" >&5
23791 $as_echo_n "checking for erfcf... " >&6; }
23792 if ${gcc_cv_math_func_erfcf+:} false; then :
23793 $as_echo_n "(cached) " >&6
23794 else
23795 if test x$gcc_no_link = xyes; then
23796 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23797 fi
23798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23799 /* end confdefs.h. */
23800
23801 #ifdef HAVE_COMPLEX_H
23802 #include <complex.h>
23803 #endif
23804 #ifdef HAVE_MATH_H
23805 #include <math.h>
23806 #endif
23807
23808 int (*ptr)() = (int (*)())erfcf;
23809
23810 int
23811 main ()
23812 {
23813 return 0;
23814 }
23815
23816 _ACEOF
23817 if ac_fn_c_try_link "$LINENO"; then :
23818 gcc_cv_math_func_erfcf=yes
23819 else
23820 gcc_cv_math_func_erfcf=no
23821 fi
23822 rm -f core conftest.err conftest.$ac_objext \
23823 conftest$ac_exeext conftest.$ac_ext
23824 fi
23825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcf" >&5
23826 $as_echo "$gcc_cv_math_func_erfcf" >&6; }
23827 if test $gcc_cv_math_func_erfcf = yes; then
23828
23829 cat >>confdefs.h <<_ACEOF
23830 #define HAVE_ERFCF 1
23831 _ACEOF
23832
23833 fi
23834
23835
23836
23837
23838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfc" >&5
23839 $as_echo_n "checking for erfc... " >&6; }
23840 if ${gcc_cv_math_func_erfc+:} false; then :
23841 $as_echo_n "(cached) " >&6
23842 else
23843 if test x$gcc_no_link = xyes; then
23844 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23845 fi
23846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23847 /* end confdefs.h. */
23848
23849 #ifdef HAVE_COMPLEX_H
23850 #include <complex.h>
23851 #endif
23852 #ifdef HAVE_MATH_H
23853 #include <math.h>
23854 #endif
23855
23856 int (*ptr)() = (int (*)())erfc;
23857
23858 int
23859 main ()
23860 {
23861 return 0;
23862 }
23863
23864 _ACEOF
23865 if ac_fn_c_try_link "$LINENO"; then :
23866 gcc_cv_math_func_erfc=yes
23867 else
23868 gcc_cv_math_func_erfc=no
23869 fi
23870 rm -f core conftest.err conftest.$ac_objext \
23871 conftest$ac_exeext conftest.$ac_ext
23872 fi
23873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfc" >&5
23874 $as_echo "$gcc_cv_math_func_erfc" >&6; }
23875 if test $gcc_cv_math_func_erfc = yes; then
23876
23877 cat >>confdefs.h <<_ACEOF
23878 #define HAVE_ERFC 1
23879 _ACEOF
23880
23881 fi
23882
23883
23884
23885
23886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcl" >&5
23887 $as_echo_n "checking for erfcl... " >&6; }
23888 if ${gcc_cv_math_func_erfcl+:} false; then :
23889 $as_echo_n "(cached) " >&6
23890 else
23891 if test x$gcc_no_link = xyes; then
23892 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23893 fi
23894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23895 /* end confdefs.h. */
23896
23897 #ifdef HAVE_COMPLEX_H
23898 #include <complex.h>
23899 #endif
23900 #ifdef HAVE_MATH_H
23901 #include <math.h>
23902 #endif
23903
23904 int (*ptr)() = (int (*)())erfcl;
23905
23906 int
23907 main ()
23908 {
23909 return 0;
23910 }
23911
23912 _ACEOF
23913 if ac_fn_c_try_link "$LINENO"; then :
23914 gcc_cv_math_func_erfcl=yes
23915 else
23916 gcc_cv_math_func_erfcl=no
23917 fi
23918 rm -f core conftest.err conftest.$ac_objext \
23919 conftest$ac_exeext conftest.$ac_ext
23920 fi
23921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcl" >&5
23922 $as_echo "$gcc_cv_math_func_erfcl" >&6; }
23923 if test $gcc_cv_math_func_erfcl = yes; then
23924
23925 cat >>confdefs.h <<_ACEOF
23926 #define HAVE_ERFCL 1
23927 _ACEOF
23928
23929 fi
23930
23931
23932
23933
23934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0f" >&5
23935 $as_echo_n "checking for j0f... " >&6; }
23936 if ${gcc_cv_math_func_j0f+:} false; then :
23937 $as_echo_n "(cached) " >&6
23938 else
23939 if test x$gcc_no_link = xyes; then
23940 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23941 fi
23942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23943 /* end confdefs.h. */
23944
23945 #ifdef HAVE_COMPLEX_H
23946 #include <complex.h>
23947 #endif
23948 #ifdef HAVE_MATH_H
23949 #include <math.h>
23950 #endif
23951
23952 int (*ptr)() = (int (*)())j0f;
23953
23954 int
23955 main ()
23956 {
23957 return 0;
23958 }
23959
23960 _ACEOF
23961 if ac_fn_c_try_link "$LINENO"; then :
23962 gcc_cv_math_func_j0f=yes
23963 else
23964 gcc_cv_math_func_j0f=no
23965 fi
23966 rm -f core conftest.err conftest.$ac_objext \
23967 conftest$ac_exeext conftest.$ac_ext
23968 fi
23969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0f" >&5
23970 $as_echo "$gcc_cv_math_func_j0f" >&6; }
23971 if test $gcc_cv_math_func_j0f = yes; then
23972
23973 cat >>confdefs.h <<_ACEOF
23974 #define HAVE_J0F 1
23975 _ACEOF
23976
23977 fi
23978
23979
23980
23981
23982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0" >&5
23983 $as_echo_n "checking for j0... " >&6; }
23984 if ${gcc_cv_math_func_j0+:} false; then :
23985 $as_echo_n "(cached) " >&6
23986 else
23987 if test x$gcc_no_link = xyes; then
23988 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23989 fi
23990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23991 /* end confdefs.h. */
23992
23993 #ifdef HAVE_COMPLEX_H
23994 #include <complex.h>
23995 #endif
23996 #ifdef HAVE_MATH_H
23997 #include <math.h>
23998 #endif
23999
24000 int (*ptr)() = (int (*)())j0;
24001
24002 int
24003 main ()
24004 {
24005 return 0;
24006 }
24007
24008 _ACEOF
24009 if ac_fn_c_try_link "$LINENO"; then :
24010 gcc_cv_math_func_j0=yes
24011 else
24012 gcc_cv_math_func_j0=no
24013 fi
24014 rm -f core conftest.err conftest.$ac_objext \
24015 conftest$ac_exeext conftest.$ac_ext
24016 fi
24017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0" >&5
24018 $as_echo "$gcc_cv_math_func_j0" >&6; }
24019 if test $gcc_cv_math_func_j0 = yes; then
24020
24021 cat >>confdefs.h <<_ACEOF
24022 #define HAVE_J0 1
24023 _ACEOF
24024
24025 fi
24026
24027
24028
24029
24030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1f" >&5
24031 $as_echo_n "checking for j1f... " >&6; }
24032 if ${gcc_cv_math_func_j1f+:} false; then :
24033 $as_echo_n "(cached) " >&6
24034 else
24035 if test x$gcc_no_link = xyes; then
24036 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24037 fi
24038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24039 /* end confdefs.h. */
24040
24041 #ifdef HAVE_COMPLEX_H
24042 #include <complex.h>
24043 #endif
24044 #ifdef HAVE_MATH_H
24045 #include <math.h>
24046 #endif
24047
24048 int (*ptr)() = (int (*)())j1f;
24049
24050 int
24051 main ()
24052 {
24053 return 0;
24054 }
24055
24056 _ACEOF
24057 if ac_fn_c_try_link "$LINENO"; then :
24058 gcc_cv_math_func_j1f=yes
24059 else
24060 gcc_cv_math_func_j1f=no
24061 fi
24062 rm -f core conftest.err conftest.$ac_objext \
24063 conftest$ac_exeext conftest.$ac_ext
24064 fi
24065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1f" >&5
24066 $as_echo "$gcc_cv_math_func_j1f" >&6; }
24067 if test $gcc_cv_math_func_j1f = yes; then
24068
24069 cat >>confdefs.h <<_ACEOF
24070 #define HAVE_J1F 1
24071 _ACEOF
24072
24073 fi
24074
24075
24076
24077
24078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1" >&5
24079 $as_echo_n "checking for j1... " >&6; }
24080 if ${gcc_cv_math_func_j1+:} false; then :
24081 $as_echo_n "(cached) " >&6
24082 else
24083 if test x$gcc_no_link = xyes; then
24084 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24085 fi
24086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24087 /* end confdefs.h. */
24088
24089 #ifdef HAVE_COMPLEX_H
24090 #include <complex.h>
24091 #endif
24092 #ifdef HAVE_MATH_H
24093 #include <math.h>
24094 #endif
24095
24096 int (*ptr)() = (int (*)())j1;
24097
24098 int
24099 main ()
24100 {
24101 return 0;
24102 }
24103
24104 _ACEOF
24105 if ac_fn_c_try_link "$LINENO"; then :
24106 gcc_cv_math_func_j1=yes
24107 else
24108 gcc_cv_math_func_j1=no
24109 fi
24110 rm -f core conftest.err conftest.$ac_objext \
24111 conftest$ac_exeext conftest.$ac_ext
24112 fi
24113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1" >&5
24114 $as_echo "$gcc_cv_math_func_j1" >&6; }
24115 if test $gcc_cv_math_func_j1 = yes; then
24116
24117 cat >>confdefs.h <<_ACEOF
24118 #define HAVE_J1 1
24119 _ACEOF
24120
24121 fi
24122
24123
24124
24125
24126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnf" >&5
24127 $as_echo_n "checking for jnf... " >&6; }
24128 if ${gcc_cv_math_func_jnf+:} false; then :
24129 $as_echo_n "(cached) " >&6
24130 else
24131 if test x$gcc_no_link = xyes; then
24132 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24133 fi
24134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24135 /* end confdefs.h. */
24136
24137 #ifdef HAVE_COMPLEX_H
24138 #include <complex.h>
24139 #endif
24140 #ifdef HAVE_MATH_H
24141 #include <math.h>
24142 #endif
24143
24144 int (*ptr)() = (int (*)())jnf;
24145
24146 int
24147 main ()
24148 {
24149 return 0;
24150 }
24151
24152 _ACEOF
24153 if ac_fn_c_try_link "$LINENO"; then :
24154 gcc_cv_math_func_jnf=yes
24155 else
24156 gcc_cv_math_func_jnf=no
24157 fi
24158 rm -f core conftest.err conftest.$ac_objext \
24159 conftest$ac_exeext conftest.$ac_ext
24160 fi
24161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnf" >&5
24162 $as_echo "$gcc_cv_math_func_jnf" >&6; }
24163 if test $gcc_cv_math_func_jnf = yes; then
24164
24165 cat >>confdefs.h <<_ACEOF
24166 #define HAVE_JNF 1
24167 _ACEOF
24168
24169 fi
24170
24171
24172
24173
24174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jn" >&5
24175 $as_echo_n "checking for jn... " >&6; }
24176 if ${gcc_cv_math_func_jn+:} false; then :
24177 $as_echo_n "(cached) " >&6
24178 else
24179 if test x$gcc_no_link = xyes; then
24180 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24181 fi
24182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24183 /* end confdefs.h. */
24184
24185 #ifdef HAVE_COMPLEX_H
24186 #include <complex.h>
24187 #endif
24188 #ifdef HAVE_MATH_H
24189 #include <math.h>
24190 #endif
24191
24192 int (*ptr)() = (int (*)())jn;
24193
24194 int
24195 main ()
24196 {
24197 return 0;
24198 }
24199
24200 _ACEOF
24201 if ac_fn_c_try_link "$LINENO"; then :
24202 gcc_cv_math_func_jn=yes
24203 else
24204 gcc_cv_math_func_jn=no
24205 fi
24206 rm -f core conftest.err conftest.$ac_objext \
24207 conftest$ac_exeext conftest.$ac_ext
24208 fi
24209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jn" >&5
24210 $as_echo "$gcc_cv_math_func_jn" >&6; }
24211 if test $gcc_cv_math_func_jn = yes; then
24212
24213 cat >>confdefs.h <<_ACEOF
24214 #define HAVE_JN 1
24215 _ACEOF
24216
24217 fi
24218
24219
24220
24221
24222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnl" >&5
24223 $as_echo_n "checking for jnl... " >&6; }
24224 if ${gcc_cv_math_func_jnl+:} false; then :
24225 $as_echo_n "(cached) " >&6
24226 else
24227 if test x$gcc_no_link = xyes; then
24228 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24229 fi
24230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24231 /* end confdefs.h. */
24232
24233 #ifdef HAVE_COMPLEX_H
24234 #include <complex.h>
24235 #endif
24236 #ifdef HAVE_MATH_H
24237 #include <math.h>
24238 #endif
24239
24240 int (*ptr)() = (int (*)())jnl;
24241
24242 int
24243 main ()
24244 {
24245 return 0;
24246 }
24247
24248 _ACEOF
24249 if ac_fn_c_try_link "$LINENO"; then :
24250 gcc_cv_math_func_jnl=yes
24251 else
24252 gcc_cv_math_func_jnl=no
24253 fi
24254 rm -f core conftest.err conftest.$ac_objext \
24255 conftest$ac_exeext conftest.$ac_ext
24256 fi
24257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnl" >&5
24258 $as_echo "$gcc_cv_math_func_jnl" >&6; }
24259 if test $gcc_cv_math_func_jnl = yes; then
24260
24261 cat >>confdefs.h <<_ACEOF
24262 #define HAVE_JNL 1
24263 _ACEOF
24264
24265 fi
24266
24267
24268
24269
24270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0f" >&5
24271 $as_echo_n "checking for y0f... " >&6; }
24272 if ${gcc_cv_math_func_y0f+:} false; then :
24273 $as_echo_n "(cached) " >&6
24274 else
24275 if test x$gcc_no_link = xyes; then
24276 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24277 fi
24278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24279 /* end confdefs.h. */
24280
24281 #ifdef HAVE_COMPLEX_H
24282 #include <complex.h>
24283 #endif
24284 #ifdef HAVE_MATH_H
24285 #include <math.h>
24286 #endif
24287
24288 int (*ptr)() = (int (*)())y0f;
24289
24290 int
24291 main ()
24292 {
24293 return 0;
24294 }
24295
24296 _ACEOF
24297 if ac_fn_c_try_link "$LINENO"; then :
24298 gcc_cv_math_func_y0f=yes
24299 else
24300 gcc_cv_math_func_y0f=no
24301 fi
24302 rm -f core conftest.err conftest.$ac_objext \
24303 conftest$ac_exeext conftest.$ac_ext
24304 fi
24305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0f" >&5
24306 $as_echo "$gcc_cv_math_func_y0f" >&6; }
24307 if test $gcc_cv_math_func_y0f = yes; then
24308
24309 cat >>confdefs.h <<_ACEOF
24310 #define HAVE_Y0F 1
24311 _ACEOF
24312
24313 fi
24314
24315
24316
24317
24318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0" >&5
24319 $as_echo_n "checking for y0... " >&6; }
24320 if ${gcc_cv_math_func_y0+:} false; then :
24321 $as_echo_n "(cached) " >&6
24322 else
24323 if test x$gcc_no_link = xyes; then
24324 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24325 fi
24326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24327 /* end confdefs.h. */
24328
24329 #ifdef HAVE_COMPLEX_H
24330 #include <complex.h>
24331 #endif
24332 #ifdef HAVE_MATH_H
24333 #include <math.h>
24334 #endif
24335
24336 int (*ptr)() = (int (*)())y0;
24337
24338 int
24339 main ()
24340 {
24341 return 0;
24342 }
24343
24344 _ACEOF
24345 if ac_fn_c_try_link "$LINENO"; then :
24346 gcc_cv_math_func_y0=yes
24347 else
24348 gcc_cv_math_func_y0=no
24349 fi
24350 rm -f core conftest.err conftest.$ac_objext \
24351 conftest$ac_exeext conftest.$ac_ext
24352 fi
24353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0" >&5
24354 $as_echo "$gcc_cv_math_func_y0" >&6; }
24355 if test $gcc_cv_math_func_y0 = yes; then
24356
24357 cat >>confdefs.h <<_ACEOF
24358 #define HAVE_Y0 1
24359 _ACEOF
24360
24361 fi
24362
24363
24364
24365
24366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1f" >&5
24367 $as_echo_n "checking for y1f... " >&6; }
24368 if ${gcc_cv_math_func_y1f+:} false; then :
24369 $as_echo_n "(cached) " >&6
24370 else
24371 if test x$gcc_no_link = xyes; then
24372 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24373 fi
24374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24375 /* end confdefs.h. */
24376
24377 #ifdef HAVE_COMPLEX_H
24378 #include <complex.h>
24379 #endif
24380 #ifdef HAVE_MATH_H
24381 #include <math.h>
24382 #endif
24383
24384 int (*ptr)() = (int (*)())y1f;
24385
24386 int
24387 main ()
24388 {
24389 return 0;
24390 }
24391
24392 _ACEOF
24393 if ac_fn_c_try_link "$LINENO"; then :
24394 gcc_cv_math_func_y1f=yes
24395 else
24396 gcc_cv_math_func_y1f=no
24397 fi
24398 rm -f core conftest.err conftest.$ac_objext \
24399 conftest$ac_exeext conftest.$ac_ext
24400 fi
24401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1f" >&5
24402 $as_echo "$gcc_cv_math_func_y1f" >&6; }
24403 if test $gcc_cv_math_func_y1f = yes; then
24404
24405 cat >>confdefs.h <<_ACEOF
24406 #define HAVE_Y1F 1
24407 _ACEOF
24408
24409 fi
24410
24411
24412
24413
24414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1" >&5
24415 $as_echo_n "checking for y1... " >&6; }
24416 if ${gcc_cv_math_func_y1+:} false; then :
24417 $as_echo_n "(cached) " >&6
24418 else
24419 if test x$gcc_no_link = xyes; then
24420 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24421 fi
24422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24423 /* end confdefs.h. */
24424
24425 #ifdef HAVE_COMPLEX_H
24426 #include <complex.h>
24427 #endif
24428 #ifdef HAVE_MATH_H
24429 #include <math.h>
24430 #endif
24431
24432 int (*ptr)() = (int (*)())y1;
24433
24434 int
24435 main ()
24436 {
24437 return 0;
24438 }
24439
24440 _ACEOF
24441 if ac_fn_c_try_link "$LINENO"; then :
24442 gcc_cv_math_func_y1=yes
24443 else
24444 gcc_cv_math_func_y1=no
24445 fi
24446 rm -f core conftest.err conftest.$ac_objext \
24447 conftest$ac_exeext conftest.$ac_ext
24448 fi
24449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1" >&5
24450 $as_echo "$gcc_cv_math_func_y1" >&6; }
24451 if test $gcc_cv_math_func_y1 = yes; then
24452
24453 cat >>confdefs.h <<_ACEOF
24454 #define HAVE_Y1 1
24455 _ACEOF
24456
24457 fi
24458
24459
24460
24461
24462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynf" >&5
24463 $as_echo_n "checking for ynf... " >&6; }
24464 if ${gcc_cv_math_func_ynf+:} false; then :
24465 $as_echo_n "(cached) " >&6
24466 else
24467 if test x$gcc_no_link = xyes; then
24468 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24469 fi
24470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24471 /* end confdefs.h. */
24472
24473 #ifdef HAVE_COMPLEX_H
24474 #include <complex.h>
24475 #endif
24476 #ifdef HAVE_MATH_H
24477 #include <math.h>
24478 #endif
24479
24480 int (*ptr)() = (int (*)())ynf;
24481
24482 int
24483 main ()
24484 {
24485 return 0;
24486 }
24487
24488 _ACEOF
24489 if ac_fn_c_try_link "$LINENO"; then :
24490 gcc_cv_math_func_ynf=yes
24491 else
24492 gcc_cv_math_func_ynf=no
24493 fi
24494 rm -f core conftest.err conftest.$ac_objext \
24495 conftest$ac_exeext conftest.$ac_ext
24496 fi
24497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynf" >&5
24498 $as_echo "$gcc_cv_math_func_ynf" >&6; }
24499 if test $gcc_cv_math_func_ynf = yes; then
24500
24501 cat >>confdefs.h <<_ACEOF
24502 #define HAVE_YNF 1
24503 _ACEOF
24504
24505 fi
24506
24507
24508
24509
24510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yn" >&5
24511 $as_echo_n "checking for yn... " >&6; }
24512 if ${gcc_cv_math_func_yn+:} false; then :
24513 $as_echo_n "(cached) " >&6
24514 else
24515 if test x$gcc_no_link = xyes; then
24516 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24517 fi
24518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24519 /* end confdefs.h. */
24520
24521 #ifdef HAVE_COMPLEX_H
24522 #include <complex.h>
24523 #endif
24524 #ifdef HAVE_MATH_H
24525 #include <math.h>
24526 #endif
24527
24528 int (*ptr)() = (int (*)())yn;
24529
24530 int
24531 main ()
24532 {
24533 return 0;
24534 }
24535
24536 _ACEOF
24537 if ac_fn_c_try_link "$LINENO"; then :
24538 gcc_cv_math_func_yn=yes
24539 else
24540 gcc_cv_math_func_yn=no
24541 fi
24542 rm -f core conftest.err conftest.$ac_objext \
24543 conftest$ac_exeext conftest.$ac_ext
24544 fi
24545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_yn" >&5
24546 $as_echo "$gcc_cv_math_func_yn" >&6; }
24547 if test $gcc_cv_math_func_yn = yes; then
24548
24549 cat >>confdefs.h <<_ACEOF
24550 #define HAVE_YN 1
24551 _ACEOF
24552
24553 fi
24554
24555
24556
24557
24558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynl" >&5
24559 $as_echo_n "checking for ynl... " >&6; }
24560 if ${gcc_cv_math_func_ynl+:} false; then :
24561 $as_echo_n "(cached) " >&6
24562 else
24563 if test x$gcc_no_link = xyes; then
24564 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24565 fi
24566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24567 /* end confdefs.h. */
24568
24569 #ifdef HAVE_COMPLEX_H
24570 #include <complex.h>
24571 #endif
24572 #ifdef HAVE_MATH_H
24573 #include <math.h>
24574 #endif
24575
24576 int (*ptr)() = (int (*)())ynl;
24577
24578 int
24579 main ()
24580 {
24581 return 0;
24582 }
24583
24584 _ACEOF
24585 if ac_fn_c_try_link "$LINENO"; then :
24586 gcc_cv_math_func_ynl=yes
24587 else
24588 gcc_cv_math_func_ynl=no
24589 fi
24590 rm -f core conftest.err conftest.$ac_objext \
24591 conftest$ac_exeext conftest.$ac_ext
24592 fi
24593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynl" >&5
24594 $as_echo "$gcc_cv_math_func_ynl" >&6; }
24595 if test $gcc_cv_math_func_ynl = yes; then
24596
24597 cat >>confdefs.h <<_ACEOF
24598 #define HAVE_YNL 1
24599 _ACEOF
24600
24601 fi
24602
24603
24604
24605
24606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgamma" >&5
24607 $as_echo_n "checking for tgamma... " >&6; }
24608 if ${gcc_cv_math_func_tgamma+:} false; then :
24609 $as_echo_n "(cached) " >&6
24610 else
24611 if test x$gcc_no_link = xyes; then
24612 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24613 fi
24614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24615 /* end confdefs.h. */
24616
24617 #ifdef HAVE_COMPLEX_H
24618 #include <complex.h>
24619 #endif
24620 #ifdef HAVE_MATH_H
24621 #include <math.h>
24622 #endif
24623
24624 int (*ptr)() = (int (*)())tgamma;
24625
24626 int
24627 main ()
24628 {
24629 return 0;
24630 }
24631
24632 _ACEOF
24633 if ac_fn_c_try_link "$LINENO"; then :
24634 gcc_cv_math_func_tgamma=yes
24635 else
24636 gcc_cv_math_func_tgamma=no
24637 fi
24638 rm -f core conftest.err conftest.$ac_objext \
24639 conftest$ac_exeext conftest.$ac_ext
24640 fi
24641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgamma" >&5
24642 $as_echo "$gcc_cv_math_func_tgamma" >&6; }
24643 if test $gcc_cv_math_func_tgamma = yes; then
24644
24645 cat >>confdefs.h <<_ACEOF
24646 #define HAVE_TGAMMA 1
24647 _ACEOF
24648
24649 fi
24650
24651
24652
24653
24654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammaf" >&5
24655 $as_echo_n "checking for tgammaf... " >&6; }
24656 if ${gcc_cv_math_func_tgammaf+:} false; then :
24657 $as_echo_n "(cached) " >&6
24658 else
24659 if test x$gcc_no_link = xyes; then
24660 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24661 fi
24662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24663 /* end confdefs.h. */
24664
24665 #ifdef HAVE_COMPLEX_H
24666 #include <complex.h>
24667 #endif
24668 #ifdef HAVE_MATH_H
24669 #include <math.h>
24670 #endif
24671
24672 int (*ptr)() = (int (*)())tgammaf;
24673
24674 int
24675 main ()
24676 {
24677 return 0;
24678 }
24679
24680 _ACEOF
24681 if ac_fn_c_try_link "$LINENO"; then :
24682 gcc_cv_math_func_tgammaf=yes
24683 else
24684 gcc_cv_math_func_tgammaf=no
24685 fi
24686 rm -f core conftest.err conftest.$ac_objext \
24687 conftest$ac_exeext conftest.$ac_ext
24688 fi
24689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammaf" >&5
24690 $as_echo "$gcc_cv_math_func_tgammaf" >&6; }
24691 if test $gcc_cv_math_func_tgammaf = yes; then
24692
24693 cat >>confdefs.h <<_ACEOF
24694 #define HAVE_TGAMMAF 1
24695 _ACEOF
24696
24697 fi
24698
24699
24700
24701
24702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgamma" >&5
24703 $as_echo_n "checking for lgamma... " >&6; }
24704 if ${gcc_cv_math_func_lgamma+:} false; then :
24705 $as_echo_n "(cached) " >&6
24706 else
24707 if test x$gcc_no_link = xyes; then
24708 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24709 fi
24710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24711 /* end confdefs.h. */
24712
24713 #ifdef HAVE_COMPLEX_H
24714 #include <complex.h>
24715 #endif
24716 #ifdef HAVE_MATH_H
24717 #include <math.h>
24718 #endif
24719
24720 int (*ptr)() = (int (*)())lgamma;
24721
24722 int
24723 main ()
24724 {
24725 return 0;
24726 }
24727
24728 _ACEOF
24729 if ac_fn_c_try_link "$LINENO"; then :
24730 gcc_cv_math_func_lgamma=yes
24731 else
24732 gcc_cv_math_func_lgamma=no
24733 fi
24734 rm -f core conftest.err conftest.$ac_objext \
24735 conftest$ac_exeext conftest.$ac_ext
24736 fi
24737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgamma" >&5
24738 $as_echo "$gcc_cv_math_func_lgamma" >&6; }
24739 if test $gcc_cv_math_func_lgamma = yes; then
24740
24741 cat >>confdefs.h <<_ACEOF
24742 #define HAVE_LGAMMA 1
24743 _ACEOF
24744
24745 fi
24746
24747
24748
24749
24750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammaf" >&5
24751 $as_echo_n "checking for lgammaf... " >&6; }
24752 if ${gcc_cv_math_func_lgammaf+:} false; then :
24753 $as_echo_n "(cached) " >&6
24754 else
24755 if test x$gcc_no_link = xyes; then
24756 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24757 fi
24758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24759 /* end confdefs.h. */
24760
24761 #ifdef HAVE_COMPLEX_H
24762 #include <complex.h>
24763 #endif
24764 #ifdef HAVE_MATH_H
24765 #include <math.h>
24766 #endif
24767
24768 int (*ptr)() = (int (*)())lgammaf;
24769
24770 int
24771 main ()
24772 {
24773 return 0;
24774 }
24775
24776 _ACEOF
24777 if ac_fn_c_try_link "$LINENO"; then :
24778 gcc_cv_math_func_lgammaf=yes
24779 else
24780 gcc_cv_math_func_lgammaf=no
24781 fi
24782 rm -f core conftest.err conftest.$ac_objext \
24783 conftest$ac_exeext conftest.$ac_ext
24784 fi
24785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammaf" >&5
24786 $as_echo "$gcc_cv_math_func_lgammaf" >&6; }
24787 if test $gcc_cv_math_func_lgammaf = yes; then
24788
24789 cat >>confdefs.h <<_ACEOF
24790 #define HAVE_LGAMMAF 1
24791 _ACEOF
24792
24793 fi
24794
24795
24796 # Check for GFORTRAN_C99_1.1 funcs
24797
24798
24799
24800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacos" >&5
24801 $as_echo_n "checking for cacos... " >&6; }
24802 if ${gcc_cv_math_func_cacos+:} false; then :
24803 $as_echo_n "(cached) " >&6
24804 else
24805 if test x$gcc_no_link = xyes; then
24806 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24807 fi
24808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24809 /* end confdefs.h. */
24810
24811 #ifdef HAVE_COMPLEX_H
24812 #include <complex.h>
24813 #endif
24814 #ifdef HAVE_MATH_H
24815 #include <math.h>
24816 #endif
24817
24818 int (*ptr)() = (int (*)())cacos;
24819
24820 int
24821 main ()
24822 {
24823 return 0;
24824 }
24825
24826 _ACEOF
24827 if ac_fn_c_try_link "$LINENO"; then :
24828 gcc_cv_math_func_cacos=yes
24829 else
24830 gcc_cv_math_func_cacos=no
24831 fi
24832 rm -f core conftest.err conftest.$ac_objext \
24833 conftest$ac_exeext conftest.$ac_ext
24834 fi
24835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacos" >&5
24836 $as_echo "$gcc_cv_math_func_cacos" >&6; }
24837 if test $gcc_cv_math_func_cacos = yes; then
24838
24839 cat >>confdefs.h <<_ACEOF
24840 #define HAVE_CACOS 1
24841 _ACEOF
24842
24843 fi
24844
24845
24846
24847
24848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosf" >&5
24849 $as_echo_n "checking for cacosf... " >&6; }
24850 if ${gcc_cv_math_func_cacosf+:} false; then :
24851 $as_echo_n "(cached) " >&6
24852 else
24853 if test x$gcc_no_link = xyes; then
24854 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24855 fi
24856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24857 /* end confdefs.h. */
24858
24859 #ifdef HAVE_COMPLEX_H
24860 #include <complex.h>
24861 #endif
24862 #ifdef HAVE_MATH_H
24863 #include <math.h>
24864 #endif
24865
24866 int (*ptr)() = (int (*)())cacosf;
24867
24868 int
24869 main ()
24870 {
24871 return 0;
24872 }
24873
24874 _ACEOF
24875 if ac_fn_c_try_link "$LINENO"; then :
24876 gcc_cv_math_func_cacosf=yes
24877 else
24878 gcc_cv_math_func_cacosf=no
24879 fi
24880 rm -f core conftest.err conftest.$ac_objext \
24881 conftest$ac_exeext conftest.$ac_ext
24882 fi
24883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosf" >&5
24884 $as_echo "$gcc_cv_math_func_cacosf" >&6; }
24885 if test $gcc_cv_math_func_cacosf = yes; then
24886
24887 cat >>confdefs.h <<_ACEOF
24888 #define HAVE_CACOSF 1
24889 _ACEOF
24890
24891 fi
24892
24893
24894
24895
24896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosh" >&5
24897 $as_echo_n "checking for cacosh... " >&6; }
24898 if ${gcc_cv_math_func_cacosh+:} false; then :
24899 $as_echo_n "(cached) " >&6
24900 else
24901 if test x$gcc_no_link = xyes; then
24902 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24903 fi
24904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24905 /* end confdefs.h. */
24906
24907 #ifdef HAVE_COMPLEX_H
24908 #include <complex.h>
24909 #endif
24910 #ifdef HAVE_MATH_H
24911 #include <math.h>
24912 #endif
24913
24914 int (*ptr)() = (int (*)())cacosh;
24915
24916 int
24917 main ()
24918 {
24919 return 0;
24920 }
24921
24922 _ACEOF
24923 if ac_fn_c_try_link "$LINENO"; then :
24924 gcc_cv_math_func_cacosh=yes
24925 else
24926 gcc_cv_math_func_cacosh=no
24927 fi
24928 rm -f core conftest.err conftest.$ac_objext \
24929 conftest$ac_exeext conftest.$ac_ext
24930 fi
24931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosh" >&5
24932 $as_echo "$gcc_cv_math_func_cacosh" >&6; }
24933 if test $gcc_cv_math_func_cacosh = yes; then
24934
24935 cat >>confdefs.h <<_ACEOF
24936 #define HAVE_CACOSH 1
24937 _ACEOF
24938
24939 fi
24940
24941
24942
24943
24944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshf" >&5
24945 $as_echo_n "checking for cacoshf... " >&6; }
24946 if ${gcc_cv_math_func_cacoshf+:} false; then :
24947 $as_echo_n "(cached) " >&6
24948 else
24949 if test x$gcc_no_link = xyes; then
24950 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24951 fi
24952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24953 /* end confdefs.h. */
24954
24955 #ifdef HAVE_COMPLEX_H
24956 #include <complex.h>
24957 #endif
24958 #ifdef HAVE_MATH_H
24959 #include <math.h>
24960 #endif
24961
24962 int (*ptr)() = (int (*)())cacoshf;
24963
24964 int
24965 main ()
24966 {
24967 return 0;
24968 }
24969
24970 _ACEOF
24971 if ac_fn_c_try_link "$LINENO"; then :
24972 gcc_cv_math_func_cacoshf=yes
24973 else
24974 gcc_cv_math_func_cacoshf=no
24975 fi
24976 rm -f core conftest.err conftest.$ac_objext \
24977 conftest$ac_exeext conftest.$ac_ext
24978 fi
24979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshf" >&5
24980 $as_echo "$gcc_cv_math_func_cacoshf" >&6; }
24981 if test $gcc_cv_math_func_cacoshf = yes; then
24982
24983 cat >>confdefs.h <<_ACEOF
24984 #define HAVE_CACOSHF 1
24985 _ACEOF
24986
24987 fi
24988
24989
24990
24991
24992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshl" >&5
24993 $as_echo_n "checking for cacoshl... " >&6; }
24994 if ${gcc_cv_math_func_cacoshl+:} false; then :
24995 $as_echo_n "(cached) " >&6
24996 else
24997 if test x$gcc_no_link = xyes; then
24998 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24999 fi
25000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25001 /* end confdefs.h. */
25002
25003 #ifdef HAVE_COMPLEX_H
25004 #include <complex.h>
25005 #endif
25006 #ifdef HAVE_MATH_H
25007 #include <math.h>
25008 #endif
25009
25010 int (*ptr)() = (int (*)())cacoshl;
25011
25012 int
25013 main ()
25014 {
25015 return 0;
25016 }
25017
25018 _ACEOF
25019 if ac_fn_c_try_link "$LINENO"; then :
25020 gcc_cv_math_func_cacoshl=yes
25021 else
25022 gcc_cv_math_func_cacoshl=no
25023 fi
25024 rm -f core conftest.err conftest.$ac_objext \
25025 conftest$ac_exeext conftest.$ac_ext
25026 fi
25027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshl" >&5
25028 $as_echo "$gcc_cv_math_func_cacoshl" >&6; }
25029 if test $gcc_cv_math_func_cacoshl = yes; then
25030
25031 cat >>confdefs.h <<_ACEOF
25032 #define HAVE_CACOSHL 1
25033 _ACEOF
25034
25035 fi
25036
25037
25038
25039
25040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosl" >&5
25041 $as_echo_n "checking for cacosl... " >&6; }
25042 if ${gcc_cv_math_func_cacosl+:} false; then :
25043 $as_echo_n "(cached) " >&6
25044 else
25045 if test x$gcc_no_link = xyes; then
25046 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25047 fi
25048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25049 /* end confdefs.h. */
25050
25051 #ifdef HAVE_COMPLEX_H
25052 #include <complex.h>
25053 #endif
25054 #ifdef HAVE_MATH_H
25055 #include <math.h>
25056 #endif
25057
25058 int (*ptr)() = (int (*)())cacosl;
25059
25060 int
25061 main ()
25062 {
25063 return 0;
25064 }
25065
25066 _ACEOF
25067 if ac_fn_c_try_link "$LINENO"; then :
25068 gcc_cv_math_func_cacosl=yes
25069 else
25070 gcc_cv_math_func_cacosl=no
25071 fi
25072 rm -f core conftest.err conftest.$ac_objext \
25073 conftest$ac_exeext conftest.$ac_ext
25074 fi
25075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosl" >&5
25076 $as_echo "$gcc_cv_math_func_cacosl" >&6; }
25077 if test $gcc_cv_math_func_cacosl = yes; then
25078
25079 cat >>confdefs.h <<_ACEOF
25080 #define HAVE_CACOSL 1
25081 _ACEOF
25082
25083 fi
25084
25085
25086
25087
25088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casin" >&5
25089 $as_echo_n "checking for casin... " >&6; }
25090 if ${gcc_cv_math_func_casin+:} false; then :
25091 $as_echo_n "(cached) " >&6
25092 else
25093 if test x$gcc_no_link = xyes; then
25094 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25095 fi
25096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25097 /* end confdefs.h. */
25098
25099 #ifdef HAVE_COMPLEX_H
25100 #include <complex.h>
25101 #endif
25102 #ifdef HAVE_MATH_H
25103 #include <math.h>
25104 #endif
25105
25106 int (*ptr)() = (int (*)())casin;
25107
25108 int
25109 main ()
25110 {
25111 return 0;
25112 }
25113
25114 _ACEOF
25115 if ac_fn_c_try_link "$LINENO"; then :
25116 gcc_cv_math_func_casin=yes
25117 else
25118 gcc_cv_math_func_casin=no
25119 fi
25120 rm -f core conftest.err conftest.$ac_objext \
25121 conftest$ac_exeext conftest.$ac_ext
25122 fi
25123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casin" >&5
25124 $as_echo "$gcc_cv_math_func_casin" >&6; }
25125 if test $gcc_cv_math_func_casin = yes; then
25126
25127 cat >>confdefs.h <<_ACEOF
25128 #define HAVE_CASIN 1
25129 _ACEOF
25130
25131 fi
25132
25133
25134
25135
25136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinf" >&5
25137 $as_echo_n "checking for casinf... " >&6; }
25138 if ${gcc_cv_math_func_casinf+:} false; then :
25139 $as_echo_n "(cached) " >&6
25140 else
25141 if test x$gcc_no_link = xyes; then
25142 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25143 fi
25144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25145 /* end confdefs.h. */
25146
25147 #ifdef HAVE_COMPLEX_H
25148 #include <complex.h>
25149 #endif
25150 #ifdef HAVE_MATH_H
25151 #include <math.h>
25152 #endif
25153
25154 int (*ptr)() = (int (*)())casinf;
25155
25156 int
25157 main ()
25158 {
25159 return 0;
25160 }
25161
25162 _ACEOF
25163 if ac_fn_c_try_link "$LINENO"; then :
25164 gcc_cv_math_func_casinf=yes
25165 else
25166 gcc_cv_math_func_casinf=no
25167 fi
25168 rm -f core conftest.err conftest.$ac_objext \
25169 conftest$ac_exeext conftest.$ac_ext
25170 fi
25171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinf" >&5
25172 $as_echo "$gcc_cv_math_func_casinf" >&6; }
25173 if test $gcc_cv_math_func_casinf = yes; then
25174
25175 cat >>confdefs.h <<_ACEOF
25176 #define HAVE_CASINF 1
25177 _ACEOF
25178
25179 fi
25180
25181
25182
25183
25184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinh" >&5
25185 $as_echo_n "checking for casinh... " >&6; }
25186 if ${gcc_cv_math_func_casinh+:} false; then :
25187 $as_echo_n "(cached) " >&6
25188 else
25189 if test x$gcc_no_link = xyes; then
25190 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25191 fi
25192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25193 /* end confdefs.h. */
25194
25195 #ifdef HAVE_COMPLEX_H
25196 #include <complex.h>
25197 #endif
25198 #ifdef HAVE_MATH_H
25199 #include <math.h>
25200 #endif
25201
25202 int (*ptr)() = (int (*)())casinh;
25203
25204 int
25205 main ()
25206 {
25207 return 0;
25208 }
25209
25210 _ACEOF
25211 if ac_fn_c_try_link "$LINENO"; then :
25212 gcc_cv_math_func_casinh=yes
25213 else
25214 gcc_cv_math_func_casinh=no
25215 fi
25216 rm -f core conftest.err conftest.$ac_objext \
25217 conftest$ac_exeext conftest.$ac_ext
25218 fi
25219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinh" >&5
25220 $as_echo "$gcc_cv_math_func_casinh" >&6; }
25221 if test $gcc_cv_math_func_casinh = yes; then
25222
25223 cat >>confdefs.h <<_ACEOF
25224 #define HAVE_CASINH 1
25225 _ACEOF
25226
25227 fi
25228
25229
25230
25231
25232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhf" >&5
25233 $as_echo_n "checking for casinhf... " >&6; }
25234 if ${gcc_cv_math_func_casinhf+:} false; then :
25235 $as_echo_n "(cached) " >&6
25236 else
25237 if test x$gcc_no_link = xyes; then
25238 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25239 fi
25240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25241 /* end confdefs.h. */
25242
25243 #ifdef HAVE_COMPLEX_H
25244 #include <complex.h>
25245 #endif
25246 #ifdef HAVE_MATH_H
25247 #include <math.h>
25248 #endif
25249
25250 int (*ptr)() = (int (*)())casinhf;
25251
25252 int
25253 main ()
25254 {
25255 return 0;
25256 }
25257
25258 _ACEOF
25259 if ac_fn_c_try_link "$LINENO"; then :
25260 gcc_cv_math_func_casinhf=yes
25261 else
25262 gcc_cv_math_func_casinhf=no
25263 fi
25264 rm -f core conftest.err conftest.$ac_objext \
25265 conftest$ac_exeext conftest.$ac_ext
25266 fi
25267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhf" >&5
25268 $as_echo "$gcc_cv_math_func_casinhf" >&6; }
25269 if test $gcc_cv_math_func_casinhf = yes; then
25270
25271 cat >>confdefs.h <<_ACEOF
25272 #define HAVE_CASINHF 1
25273 _ACEOF
25274
25275 fi
25276
25277
25278
25279
25280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhl" >&5
25281 $as_echo_n "checking for casinhl... " >&6; }
25282 if ${gcc_cv_math_func_casinhl+:} false; then :
25283 $as_echo_n "(cached) " >&6
25284 else
25285 if test x$gcc_no_link = xyes; then
25286 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25287 fi
25288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25289 /* end confdefs.h. */
25290
25291 #ifdef HAVE_COMPLEX_H
25292 #include <complex.h>
25293 #endif
25294 #ifdef HAVE_MATH_H
25295 #include <math.h>
25296 #endif
25297
25298 int (*ptr)() = (int (*)())casinhl;
25299
25300 int
25301 main ()
25302 {
25303 return 0;
25304 }
25305
25306 _ACEOF
25307 if ac_fn_c_try_link "$LINENO"; then :
25308 gcc_cv_math_func_casinhl=yes
25309 else
25310 gcc_cv_math_func_casinhl=no
25311 fi
25312 rm -f core conftest.err conftest.$ac_objext \
25313 conftest$ac_exeext conftest.$ac_ext
25314 fi
25315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhl" >&5
25316 $as_echo "$gcc_cv_math_func_casinhl" >&6; }
25317 if test $gcc_cv_math_func_casinhl = yes; then
25318
25319 cat >>confdefs.h <<_ACEOF
25320 #define HAVE_CASINHL 1
25321 _ACEOF
25322
25323 fi
25324
25325
25326
25327
25328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinl" >&5
25329 $as_echo_n "checking for casinl... " >&6; }
25330 if ${gcc_cv_math_func_casinl+:} false; then :
25331 $as_echo_n "(cached) " >&6
25332 else
25333 if test x$gcc_no_link = xyes; then
25334 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25335 fi
25336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25337 /* end confdefs.h. */
25338
25339 #ifdef HAVE_COMPLEX_H
25340 #include <complex.h>
25341 #endif
25342 #ifdef HAVE_MATH_H
25343 #include <math.h>
25344 #endif
25345
25346 int (*ptr)() = (int (*)())casinl;
25347
25348 int
25349 main ()
25350 {
25351 return 0;
25352 }
25353
25354 _ACEOF
25355 if ac_fn_c_try_link "$LINENO"; then :
25356 gcc_cv_math_func_casinl=yes
25357 else
25358 gcc_cv_math_func_casinl=no
25359 fi
25360 rm -f core conftest.err conftest.$ac_objext \
25361 conftest$ac_exeext conftest.$ac_ext
25362 fi
25363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinl" >&5
25364 $as_echo "$gcc_cv_math_func_casinl" >&6; }
25365 if test $gcc_cv_math_func_casinl = yes; then
25366
25367 cat >>confdefs.h <<_ACEOF
25368 #define HAVE_CASINL 1
25369 _ACEOF
25370
25371 fi
25372
25373
25374
25375
25376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catan" >&5
25377 $as_echo_n "checking for catan... " >&6; }
25378 if ${gcc_cv_math_func_catan+:} false; then :
25379 $as_echo_n "(cached) " >&6
25380 else
25381 if test x$gcc_no_link = xyes; then
25382 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25383 fi
25384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25385 /* end confdefs.h. */
25386
25387 #ifdef HAVE_COMPLEX_H
25388 #include <complex.h>
25389 #endif
25390 #ifdef HAVE_MATH_H
25391 #include <math.h>
25392 #endif
25393
25394 int (*ptr)() = (int (*)())catan;
25395
25396 int
25397 main ()
25398 {
25399 return 0;
25400 }
25401
25402 _ACEOF
25403 if ac_fn_c_try_link "$LINENO"; then :
25404 gcc_cv_math_func_catan=yes
25405 else
25406 gcc_cv_math_func_catan=no
25407 fi
25408 rm -f core conftest.err conftest.$ac_objext \
25409 conftest$ac_exeext conftest.$ac_ext
25410 fi
25411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catan" >&5
25412 $as_echo "$gcc_cv_math_func_catan" >&6; }
25413 if test $gcc_cv_math_func_catan = yes; then
25414
25415 cat >>confdefs.h <<_ACEOF
25416 #define HAVE_CATAN 1
25417 _ACEOF
25418
25419 fi
25420
25421
25422
25423
25424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanf" >&5
25425 $as_echo_n "checking for catanf... " >&6; }
25426 if ${gcc_cv_math_func_catanf+:} false; then :
25427 $as_echo_n "(cached) " >&6
25428 else
25429 if test x$gcc_no_link = xyes; then
25430 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25431 fi
25432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25433 /* end confdefs.h. */
25434
25435 #ifdef HAVE_COMPLEX_H
25436 #include <complex.h>
25437 #endif
25438 #ifdef HAVE_MATH_H
25439 #include <math.h>
25440 #endif
25441
25442 int (*ptr)() = (int (*)())catanf;
25443
25444 int
25445 main ()
25446 {
25447 return 0;
25448 }
25449
25450 _ACEOF
25451 if ac_fn_c_try_link "$LINENO"; then :
25452 gcc_cv_math_func_catanf=yes
25453 else
25454 gcc_cv_math_func_catanf=no
25455 fi
25456 rm -f core conftest.err conftest.$ac_objext \
25457 conftest$ac_exeext conftest.$ac_ext
25458 fi
25459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanf" >&5
25460 $as_echo "$gcc_cv_math_func_catanf" >&6; }
25461 if test $gcc_cv_math_func_catanf = yes; then
25462
25463 cat >>confdefs.h <<_ACEOF
25464 #define HAVE_CATANF 1
25465 _ACEOF
25466
25467 fi
25468
25469
25470
25471
25472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanh" >&5
25473 $as_echo_n "checking for catanh... " >&6; }
25474 if ${gcc_cv_math_func_catanh+:} false; then :
25475 $as_echo_n "(cached) " >&6
25476 else
25477 if test x$gcc_no_link = xyes; then
25478 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25479 fi
25480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25481 /* end confdefs.h. */
25482
25483 #ifdef HAVE_COMPLEX_H
25484 #include <complex.h>
25485 #endif
25486 #ifdef HAVE_MATH_H
25487 #include <math.h>
25488 #endif
25489
25490 int (*ptr)() = (int (*)())catanh;
25491
25492 int
25493 main ()
25494 {
25495 return 0;
25496 }
25497
25498 _ACEOF
25499 if ac_fn_c_try_link "$LINENO"; then :
25500 gcc_cv_math_func_catanh=yes
25501 else
25502 gcc_cv_math_func_catanh=no
25503 fi
25504 rm -f core conftest.err conftest.$ac_objext \
25505 conftest$ac_exeext conftest.$ac_ext
25506 fi
25507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanh" >&5
25508 $as_echo "$gcc_cv_math_func_catanh" >&6; }
25509 if test $gcc_cv_math_func_catanh = yes; then
25510
25511 cat >>confdefs.h <<_ACEOF
25512 #define HAVE_CATANH 1
25513 _ACEOF
25514
25515 fi
25516
25517
25518
25519
25520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhf" >&5
25521 $as_echo_n "checking for catanhf... " >&6; }
25522 if ${gcc_cv_math_func_catanhf+:} false; then :
25523 $as_echo_n "(cached) " >&6
25524 else
25525 if test x$gcc_no_link = xyes; then
25526 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25527 fi
25528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25529 /* end confdefs.h. */
25530
25531 #ifdef HAVE_COMPLEX_H
25532 #include <complex.h>
25533 #endif
25534 #ifdef HAVE_MATH_H
25535 #include <math.h>
25536 #endif
25537
25538 int (*ptr)() = (int (*)())catanhf;
25539
25540 int
25541 main ()
25542 {
25543 return 0;
25544 }
25545
25546 _ACEOF
25547 if ac_fn_c_try_link "$LINENO"; then :
25548 gcc_cv_math_func_catanhf=yes
25549 else
25550 gcc_cv_math_func_catanhf=no
25551 fi
25552 rm -f core conftest.err conftest.$ac_objext \
25553 conftest$ac_exeext conftest.$ac_ext
25554 fi
25555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhf" >&5
25556 $as_echo "$gcc_cv_math_func_catanhf" >&6; }
25557 if test $gcc_cv_math_func_catanhf = yes; then
25558
25559 cat >>confdefs.h <<_ACEOF
25560 #define HAVE_CATANHF 1
25561 _ACEOF
25562
25563 fi
25564
25565
25566
25567
25568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhl" >&5
25569 $as_echo_n "checking for catanhl... " >&6; }
25570 if ${gcc_cv_math_func_catanhl+:} false; then :
25571 $as_echo_n "(cached) " >&6
25572 else
25573 if test x$gcc_no_link = xyes; then
25574 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25575 fi
25576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25577 /* end confdefs.h. */
25578
25579 #ifdef HAVE_COMPLEX_H
25580 #include <complex.h>
25581 #endif
25582 #ifdef HAVE_MATH_H
25583 #include <math.h>
25584 #endif
25585
25586 int (*ptr)() = (int (*)())catanhl;
25587
25588 int
25589 main ()
25590 {
25591 return 0;
25592 }
25593
25594 _ACEOF
25595 if ac_fn_c_try_link "$LINENO"; then :
25596 gcc_cv_math_func_catanhl=yes
25597 else
25598 gcc_cv_math_func_catanhl=no
25599 fi
25600 rm -f core conftest.err conftest.$ac_objext \
25601 conftest$ac_exeext conftest.$ac_ext
25602 fi
25603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhl" >&5
25604 $as_echo "$gcc_cv_math_func_catanhl" >&6; }
25605 if test $gcc_cv_math_func_catanhl = yes; then
25606
25607 cat >>confdefs.h <<_ACEOF
25608 #define HAVE_CATANHL 1
25609 _ACEOF
25610
25611 fi
25612
25613
25614
25615
25616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanl" >&5
25617 $as_echo_n "checking for catanl... " >&6; }
25618 if ${gcc_cv_math_func_catanl+:} false; then :
25619 $as_echo_n "(cached) " >&6
25620 else
25621 if test x$gcc_no_link = xyes; then
25622 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25623 fi
25624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25625 /* end confdefs.h. */
25626
25627 #ifdef HAVE_COMPLEX_H
25628 #include <complex.h>
25629 #endif
25630 #ifdef HAVE_MATH_H
25631 #include <math.h>
25632 #endif
25633
25634 int (*ptr)() = (int (*)())catanl;
25635
25636 int
25637 main ()
25638 {
25639 return 0;
25640 }
25641
25642 _ACEOF
25643 if ac_fn_c_try_link "$LINENO"; then :
25644 gcc_cv_math_func_catanl=yes
25645 else
25646 gcc_cv_math_func_catanl=no
25647 fi
25648 rm -f core conftest.err conftest.$ac_objext \
25649 conftest$ac_exeext conftest.$ac_ext
25650 fi
25651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanl" >&5
25652 $as_echo "$gcc_cv_math_func_catanl" >&6; }
25653 if test $gcc_cv_math_func_catanl = yes; then
25654
25655 cat >>confdefs.h <<_ACEOF
25656 #define HAVE_CATANL 1
25657 _ACEOF
25658
25659 fi
25660
25661
25662 # On AIX, clog is present in libm as __clog
25663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __clog in -lm" >&5
25664 $as_echo_n "checking for __clog in -lm... " >&6; }
25665 if ${ac_cv_lib_m___clog+:} false; then :
25666 $as_echo_n "(cached) " >&6
25667 else
25668 ac_check_lib_save_LIBS=$LIBS
25669 LIBS="-lm $LIBS"
25670 if test x$gcc_no_link = xyes; then
25671 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25672 fi
25673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25674 /* end confdefs.h. */
25675
25676 /* Override any GCC internal prototype to avoid an error.
25677 Use char because int might match the return type of a GCC
25678 builtin and then its argument prototype would still apply. */
25679 #ifdef __cplusplus
25680 extern "C"
25681 #endif
25682 char __clog ();
25683 int
25684 main ()
25685 {
25686 return __clog ();
25687 ;
25688 return 0;
25689 }
25690 _ACEOF
25691 if ac_fn_c_try_link "$LINENO"; then :
25692 ac_cv_lib_m___clog=yes
25693 else
25694 ac_cv_lib_m___clog=no
25695 fi
25696 rm -f core conftest.err conftest.$ac_objext \
25697 conftest$ac_exeext conftest.$ac_ext
25698 LIBS=$ac_check_lib_save_LIBS
25699 fi
25700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m___clog" >&5
25701 $as_echo "$ac_cv_lib_m___clog" >&6; }
25702 if test "x$ac_cv_lib_m___clog" = xyes; then :
25703
25704 $as_echo "#define HAVE_CLOG 1" >>confdefs.h
25705
25706 fi
25707
25708
25709
25710
25711 if test $gcc_cv_math_func_copysign = no; then
25712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_copysign" >&5
25713 $as_echo_n "checking for inline __builtin_copysign... " >&6; }
25714 if ${gcc_cv_math_inline_builtin_copysign+:} false; then :
25715 $as_echo_n "(cached) " >&6
25716 else
25717 if test x$gcc_no_link = xyes; then
25718 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25719 fi
25720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25721 /* end confdefs.h. */
25722
25723 double
25724 copysign_fallback (double x, double y)
25725 {
25726 return __builtin_copysign (x, y);
25727 }
25728
25729 int
25730 main ()
25731 {
25732 return 0;
25733 }
25734
25735 _ACEOF
25736 if ac_fn_c_try_link "$LINENO"; then :
25737 gcc_cv_math_inline_builtin_copysign=yes
25738 else
25739 gcc_cv_math_inline_builtin_copysign=no
25740 fi
25741 rm -f core conftest.err conftest.$ac_objext \
25742 conftest$ac_exeext conftest.$ac_ext
25743 fi
25744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_copysign" >&5
25745 $as_echo "$gcc_cv_math_inline_builtin_copysign" >&6; }
25746 if test $gcc_cv_math_inline_builtin_copysign = yes; then
25747
25748 cat >>confdefs.h <<_ACEOF
25749 #define HAVE_INLINE_BUILTIN_COPYSIGN 1
25750 _ACEOF
25751
25752 fi
25753 fi
25754
25755
25756 if test $gcc_cv_math_func_copysignl = no; then
25757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_copysignl" >&5
25758 $as_echo_n "checking for inline __builtin_copysignl... " >&6; }
25759 if ${gcc_cv_math_inline_builtin_copysignl+:} false; then :
25760 $as_echo_n "(cached) " >&6
25761 else
25762 if test x$gcc_no_link = xyes; then
25763 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25764 fi
25765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25766 /* end confdefs.h. */
25767
25768 long double
25769 copysignl_fallback (long double x, long double y)
25770 {
25771 return __builtin_copysignl (x, y);
25772 }
25773
25774 int
25775 main ()
25776 {
25777 return 0;
25778 }
25779
25780 _ACEOF
25781 if ac_fn_c_try_link "$LINENO"; then :
25782 gcc_cv_math_inline_builtin_copysignl=yes
25783 else
25784 gcc_cv_math_inline_builtin_copysignl=no
25785 fi
25786 rm -f core conftest.err conftest.$ac_objext \
25787 conftest$ac_exeext conftest.$ac_ext
25788 fi
25789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_copysignl" >&5
25790 $as_echo "$gcc_cv_math_inline_builtin_copysignl" >&6; }
25791 if test $gcc_cv_math_inline_builtin_copysignl = yes; then
25792
25793 cat >>confdefs.h <<_ACEOF
25794 #define HAVE_INLINE_BUILTIN_COPYSIGNL 1
25795 _ACEOF
25796
25797 fi
25798 fi
25799
25800
25801 if test $gcc_cv_math_func_fabs = no; then
25802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_fabs" >&5
25803 $as_echo_n "checking for inline __builtin_fabs... " >&6; }
25804 if ${gcc_cv_math_inline_builtin_fabs+:} false; then :
25805 $as_echo_n "(cached) " >&6
25806 else
25807 if test x$gcc_no_link = xyes; then
25808 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25809 fi
25810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25811 /* end confdefs.h. */
25812
25813 double
25814 fabs_fallback (double x)
25815 {
25816 return __builtin_fabs (x);
25817 }
25818
25819 int
25820 main ()
25821 {
25822 return 0;
25823 }
25824
25825 _ACEOF
25826 if ac_fn_c_try_link "$LINENO"; then :
25827 gcc_cv_math_inline_builtin_fabs=yes
25828 else
25829 gcc_cv_math_inline_builtin_fabs=no
25830 fi
25831 rm -f core conftest.err conftest.$ac_objext \
25832 conftest$ac_exeext conftest.$ac_ext
25833 fi
25834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_fabs" >&5
25835 $as_echo "$gcc_cv_math_inline_builtin_fabs" >&6; }
25836 if test $gcc_cv_math_inline_builtin_fabs = yes; then
25837
25838 cat >>confdefs.h <<_ACEOF
25839 #define HAVE_INLINE_BUILTIN_FABS 1
25840 _ACEOF
25841
25842 fi
25843 fi
25844
25845
25846 if test $gcc_cv_math_func_fabsl = no; then
25847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_fabsl" >&5
25848 $as_echo_n "checking for inline __builtin_fabsl... " >&6; }
25849 if ${gcc_cv_math_inline_builtin_fabsl+:} false; then :
25850 $as_echo_n "(cached) " >&6
25851 else
25852 if test x$gcc_no_link = xyes; then
25853 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25854 fi
25855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25856 /* end confdefs.h. */
25857
25858 long double
25859 fabsl_fallback (long double x)
25860 {
25861 return __builtin_fabsl (x);
25862 }
25863
25864 int
25865 main ()
25866 {
25867 return 0;
25868 }
25869
25870 _ACEOF
25871 if ac_fn_c_try_link "$LINENO"; then :
25872 gcc_cv_math_inline_builtin_fabsl=yes
25873 else
25874 gcc_cv_math_inline_builtin_fabsl=no
25875 fi
25876 rm -f core conftest.err conftest.$ac_objext \
25877 conftest$ac_exeext conftest.$ac_ext
25878 fi
25879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_fabsl" >&5
25880 $as_echo "$gcc_cv_math_inline_builtin_fabsl" >&6; }
25881 if test $gcc_cv_math_inline_builtin_fabsl = yes; then
25882
25883 cat >>confdefs.h <<_ACEOF
25884 #define HAVE_INLINE_BUILTIN_FABSL 1
25885 _ACEOF
25886
25887 fi
25888 fi
25889
25890 # Check whether the system has a working stat()
25891
25892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target stat is reliable" >&5
25893 $as_echo_n "checking whether the target stat is reliable... " >&6; }
25894 if ${libgfor_cv_have_working_stat+:} false; then :
25895 $as_echo_n "(cached) " >&6
25896 else
25897
25898 if test "$cross_compiling" = yes; then :
25899
25900 case "${target}" in
25901 *mingw*) libgfor_cv_have_working_stat=no ;;
25902 *) libgfor_cv_have_working_stat=yes;;
25903 esac
25904 else
25905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25906 /* end confdefs.h. */
25907
25908 #include <stdio.h>
25909 #include <sys/types.h>
25910 #include <sys/stat.h>
25911 #include <unistd.h>
25912
25913 int main ()
25914 {
25915 FILE *f, *g;
25916 struct stat st1, st2;
25917
25918 f = fopen ("foo", "w");
25919 g = fopen ("bar", "w");
25920 if (stat ("foo", &st1) != 0 || stat ("bar", &st2))
25921 return 1;
25922 if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino)
25923 return 1;
25924 fclose(f);
25925 fclose(g);
25926 return 0;
25927 }
25928 _ACEOF
25929 if ac_fn_c_try_run "$LINENO"; then :
25930 libgfor_cv_have_working_stat=yes
25931 else
25932 libgfor_cv_have_working_stat=no
25933 fi
25934 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25935 conftest.$ac_objext conftest.beam conftest.$ac_ext
25936 fi
25937
25938 fi
25939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_working_stat" >&5
25940 $as_echo "$libgfor_cv_have_working_stat" >&6; }
25941 if test x"$libgfor_cv_have_working_stat" = xyes; then
25942
25943 $as_echo "#define HAVE_WORKING_STAT 1" >>confdefs.h
25944
25945 fi
25946
25947 # Check whether __mingw_snprintf() is present
25948
25949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __mingw_snprintf is present" >&5
25950 $as_echo_n "checking whether __mingw_snprintf is present... " >&6; }
25951 if ${libgfor_cv_have_mingw_snprintf+:} false; then :
25952 $as_echo_n "(cached) " >&6
25953 else
25954
25955 if test x$gcc_no_link = xyes; then
25956 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25957 fi
25958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25959 /* end confdefs.h. */
25960
25961 #include <stdio.h>
25962 extern int __mingw_snprintf (char *, size_t, const char *, ...);
25963
25964 int
25965 main ()
25966 {
25967
25968 __mingw_snprintf (NULL, 0, "%d\n", 1);
25969
25970 ;
25971 return 0;
25972 }
25973 _ACEOF
25974 if ac_fn_c_try_link "$LINENO"; then :
25975 eval "libgfor_cv_have_mingw_snprintf=yes"
25976 else
25977 eval "libgfor_cv_have_mingw_snprintf=no"
25978 fi
25979 rm -f core conftest.err conftest.$ac_objext \
25980 conftest$ac_exeext conftest.$ac_ext
25981
25982 fi
25983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_mingw_snprintf" >&5
25984 $as_echo "$libgfor_cv_have_mingw_snprintf" >&6; }
25985 if test x"$libgfor_cv_have_mingw_snprintf" = xyes; then
25986
25987 $as_echo "#define HAVE_MINGW_SNPRINTF 1" >>confdefs.h
25988
25989 fi
25990
25991
25992 # Check whether libquadmath should be used
25993 # Check whether --enable-libquadmath-support was given.
25994 if test "${enable_libquadmath_support+set}" = set; then :
25995 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
25996 else
25997 ENABLE_LIBQUADMATH_SUPPORT=yes
25998 fi
25999
26000 enable_libquadmath_support=
26001 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
26002 enable_libquadmath_support=no
26003 fi
26004
26005 # Check whether we have a __float128 type, depends on enable_libquadmath_support
26006
26007 LIBQUADSPEC=
26008
26009 if test "x$enable_libquadmath_support" != xno; then
26010
26011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a usable __float128 type" >&5
26012 $as_echo_n "checking whether we have a usable __float128 type... " >&6; }
26013 if ${libgfor_cv_have_float128+:} false; then :
26014 $as_echo_n "(cached) " >&6
26015 else
26016
26017 if test x$gcc_no_link = xyes; then
26018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26019 /* end confdefs.h. */
26020
26021 typedef _Complex float __attribute__((mode(TC))) __complex128;
26022
26023 __float128 foo (__float128 x)
26024 {
26025
26026 __complex128 z1, z2;
26027
26028 z1 = x;
26029 z2 = x / 7.Q;
26030 z2 /= z1;
26031
26032 return (__float128) z2;
26033 }
26034
26035 __float128 bar (__float128 x)
26036 {
26037 return x * __builtin_huge_valq ();
26038 }
26039
26040 int
26041 main ()
26042 {
26043
26044 foo (1.2Q);
26045 bar (1.2Q);
26046
26047 ;
26048 return 0;
26049 }
26050 _ACEOF
26051 if ac_fn_c_try_compile "$LINENO"; then :
26052
26053 libgfor_cv_have_float128=yes
26054
26055 else
26056
26057 libgfor_cv_have_float128=no
26058
26059 fi
26060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26061 else
26062 if test x$gcc_no_link = xyes; then
26063 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26064 fi
26065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26066 /* end confdefs.h. */
26067
26068 typedef _Complex float __attribute__((mode(TC))) __complex128;
26069
26070 __float128 foo (__float128 x)
26071 {
26072
26073 __complex128 z1, z2;
26074
26075 z1 = x;
26076 z2 = x / 7.Q;
26077 z2 /= z1;
26078
26079 return (__float128) z2;
26080 }
26081
26082 __float128 bar (__float128 x)
26083 {
26084 return x * __builtin_huge_valq ();
26085 }
26086
26087 int
26088 main ()
26089 {
26090
26091 foo (1.2Q);
26092 bar (1.2Q);
26093
26094 ;
26095 return 0;
26096 }
26097 _ACEOF
26098 if ac_fn_c_try_link "$LINENO"; then :
26099
26100 libgfor_cv_have_float128=yes
26101
26102 else
26103
26104 libgfor_cv_have_float128=no
26105
26106 fi
26107 rm -f core conftest.err conftest.$ac_objext \
26108 conftest$ac_exeext conftest.$ac_ext
26109 fi
26110 fi
26111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_float128" >&5
26112 $as_echo "$libgfor_cv_have_float128" >&6; }
26113
26114 if test "x$libgfor_cv_have_float128" = xyes; then
26115
26116 $as_echo "#define HAVE_FLOAT128 1" >>confdefs.h
26117
26118
26119 ac_xsave_c_werror_flag=$ac_c_werror_flag
26120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --as-needed/-z ignore works" >&5
26121 $as_echo_n "checking whether --as-needed/-z ignore works... " >&6; }
26122 if ${libgfor_cv_have_as_needed+:} false; then :
26123 $as_echo_n "(cached) " >&6
26124 else
26125
26126 # Test for native Solaris options first.
26127 # No whitespace after -z to pass it through -Wl.
26128 libgfor_cv_as_needed_option="-zignore"
26129 libgfor_cv_no_as_needed_option="-zrecord"
26130 save_LDFLAGS="$LDFLAGS"
26131 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
26132 libgfor_cv_have_as_needed=no
26133
26134 ac_c_werror_flag=yes
26135 if test x$gcc_no_link = xyes; then
26136 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26137 fi
26138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26139 /* end confdefs.h. */
26140
26141 int
26142 main ()
26143 {
26144
26145 ;
26146 return 0;
26147 }
26148 _ACEOF
26149 if ac_fn_c_try_link "$LINENO"; then :
26150 libgfor_cv_have_as_needed=yes
26151 else
26152 libgfor_cv_have_as_needed=no
26153 fi
26154 rm -f core conftest.err conftest.$ac_objext \
26155 conftest$ac_exeext conftest.$ac_ext
26156 LDFLAGS="$save_LDFLAGS"
26157 if test "x$libgfor_cv_have_as_needed" = xno; then
26158 libgfor_cv_as_needed_option="--as-needed"
26159 libgfor_cv_no_as_needed_option="--no-as-needed"
26160 save_LDFLAGS="$LDFLAGS"
26161 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
26162 libgfor_cv_have_as_needed=no
26163
26164 ac_c_werror_flag=yes
26165 if test x$gcc_no_link = xyes; then
26166 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26167 fi
26168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26169 /* end confdefs.h. */
26170
26171 int
26172 main ()
26173 {
26174
26175 ;
26176 return 0;
26177 }
26178 _ACEOF
26179 if ac_fn_c_try_link "$LINENO"; then :
26180 libgfor_cv_have_as_needed=yes
26181 else
26182 libgfor_cv_have_as_needed=no
26183 fi
26184 rm -f core conftest.err conftest.$ac_objext \
26185 conftest$ac_exeext conftest.$ac_ext
26186 LDFLAGS="$save_LDFLAGS"
26187 fi
26188 ac_c_werror_flag=$ac_xsave_c_werror_flag
26189
26190 fi
26191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_as_needed" >&5
26192 $as_echo "$libgfor_cv_have_as_needed" >&6; }
26193
26194 if test "x$libgfor_cv_have_as_needed" = xyes; then
26195 LIBQUADSPEC="%{static-libgfortran:$libgfor_cv_as_needed_option} -lquadmath %{static-libgfortran:$libgfor_cv_no_as_needed_option}"
26196 else
26197 LIBQUADSPEC="-lquadmath"
26198 fi
26199 if test -f ../libquadmath/libquadmath.la; then
26200 LIBQUADLIB=../libquadmath/libquadmath.la
26201 LIBQUADLIB_DEP=../libquadmath/libquadmath.la
26202 LIBQUADINCLUDE='-I$(srcdir)/../libquadmath'
26203 else
26204 LIBQUADLIB="-lquadmath"
26205 LIBQUADLIB_DEP=
26206 LIBQUADINCLUDE=
26207 fi
26208 fi
26209 else
26210 # for --disable-quadmath
26211 LIBQUADLIB=
26212 LIBQUADLIB_DEP=
26213 LIBQUADINCLUDE=
26214 fi
26215
26216
26217
26218
26219
26220
26221 if test "x$libgfor_cv_have_float128" = xyes; then
26222 LIBGFOR_BUILD_QUAD_TRUE=
26223 LIBGFOR_BUILD_QUAD_FALSE='#'
26224 else
26225 LIBGFOR_BUILD_QUAD_TRUE='#'
26226 LIBGFOR_BUILD_QUAD_FALSE=
26227 fi
26228
26229
26230
26231 # Check for GNU libc feenableexcept
26232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5
26233 $as_echo_n "checking for feenableexcept in -lm... " >&6; }
26234 if ${ac_cv_lib_m_feenableexcept+:} false; then :
26235 $as_echo_n "(cached) " >&6
26236 else
26237 ac_check_lib_save_LIBS=$LIBS
26238 LIBS="-lm $LIBS"
26239 if test x$gcc_no_link = xyes; then
26240 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26241 fi
26242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26243 /* end confdefs.h. */
26244
26245 /* Override any GCC internal prototype to avoid an error.
26246 Use char because int might match the return type of a GCC
26247 builtin and then its argument prototype would still apply. */
26248 #ifdef __cplusplus
26249 extern "C"
26250 #endif
26251 char feenableexcept ();
26252 int
26253 main ()
26254 {
26255 return feenableexcept ();
26256 ;
26257 return 0;
26258 }
26259 _ACEOF
26260 if ac_fn_c_try_link "$LINENO"; then :
26261 ac_cv_lib_m_feenableexcept=yes
26262 else
26263 ac_cv_lib_m_feenableexcept=no
26264 fi
26265 rm -f core conftest.err conftest.$ac_objext \
26266 conftest$ac_exeext conftest.$ac_ext
26267 LIBS=$ac_check_lib_save_LIBS
26268 fi
26269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5
26270 $as_echo "$ac_cv_lib_m_feenableexcept" >&6; }
26271 if test "x$ac_cv_lib_m_feenableexcept" = xyes; then :
26272 have_feenableexcept=yes
26273 $as_echo "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h
26274
26275 fi
26276
26277
26278 # At least for glibc, clock_gettime is in librt. But don't
26279 # pull that in if it still doesn't give us the function we want. This
26280 # test is copied from libgomp, and modified to not link in -lrt as
26281 # libgfortran calls clock_gettime via a weak reference if it's found
26282 # in librt.
26283 if test "$ac_cv_func_clock_gettime" = no; then
26284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
26285 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
26286 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
26287 $as_echo_n "(cached) " >&6
26288 else
26289 ac_check_lib_save_LIBS=$LIBS
26290 LIBS="-lrt $LIBS"
26291 if test x$gcc_no_link = xyes; then
26292 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26293 fi
26294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26295 /* end confdefs.h. */
26296
26297 /* Override any GCC internal prototype to avoid an error.
26298 Use char because int might match the return type of a GCC
26299 builtin and then its argument prototype would still apply. */
26300 #ifdef __cplusplus
26301 extern "C"
26302 #endif
26303 char clock_gettime ();
26304 int
26305 main ()
26306 {
26307 return clock_gettime ();
26308 ;
26309 return 0;
26310 }
26311 _ACEOF
26312 if ac_fn_c_try_link "$LINENO"; then :
26313 ac_cv_lib_rt_clock_gettime=yes
26314 else
26315 ac_cv_lib_rt_clock_gettime=no
26316 fi
26317 rm -f core conftest.err conftest.$ac_objext \
26318 conftest$ac_exeext conftest.$ac_ext
26319 LIBS=$ac_check_lib_save_LIBS
26320 fi
26321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
26322 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
26323 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
26324
26325 $as_echo "#define HAVE_CLOCK_GETTIME_LIBRT 1" >>confdefs.h
26326
26327 fi
26328
26329 fi
26330
26331 # Check for SysV fpsetmask
26332
26333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fpsetmask is present" >&5
26334 $as_echo_n "checking whether fpsetmask is present... " >&6; }
26335 if ${libgfor_cv_have_fpsetmask+:} false; then :
26336 $as_echo_n "(cached) " >&6
26337 else
26338
26339 if test x$gcc_no_link = xyes; then
26340 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26341 fi
26342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26343 /* end confdefs.h. */
26344
26345 #if HAVE_FLOATINGPOINT_H
26346 # include <floatingpoint.h>
26347 #endif /* HAVE_FLOATINGPOINT_H */
26348 #if HAVE_IEEEFP_H
26349 # include <ieeefp.h>
26350 #endif /* HAVE_IEEEFP_H */
26351 int
26352 main ()
26353 {
26354 fpsetmask(0);
26355 ;
26356 return 0;
26357 }
26358 _ACEOF
26359 if ac_fn_c_try_link "$LINENO"; then :
26360 eval "libgfor_cv_have_fpsetmask=yes"
26361 else
26362 eval "libgfor_cv_have_fpsetmask=no"
26363 fi
26364 rm -f core conftest.err conftest.$ac_objext \
26365 conftest$ac_exeext conftest.$ac_ext
26366
26367 fi
26368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_fpsetmask" >&5
26369 $as_echo "$libgfor_cv_have_fpsetmask" >&6; }
26370 if test x"$libgfor_cv_have_fpsetmask" = xyes; then
26371 have_fpsetmask=yes
26372
26373 $as_echo "#define HAVE_FPSETMASK 1" >>confdefs.h
26374
26375 fi
26376
26377 ac_fn_c_check_type "$LINENO" "fp_except" "ac_cv_type_fp_except" "
26378 #ifdef HAVE_IEEEFP_H
26379 #include <ieeefp.h>
26380 #endif
26381 #include <math.h>
26382
26383 "
26384 if test "x$ac_cv_type_fp_except" = xyes; then :
26385
26386 cat >>confdefs.h <<_ACEOF
26387 #define HAVE_FP_EXCEPT 1
26388 _ACEOF
26389
26390
26391 fi
26392 ac_fn_c_check_type "$LINENO" "fp_except_t" "ac_cv_type_fp_except_t" "
26393 #ifdef HAVE_IEEEFP_H
26394 #include <ieeefp.h>
26395 #endif
26396 #include <math.h>
26397
26398 "
26399 if test "x$ac_cv_type_fp_except_t" = xyes; then :
26400
26401 cat >>confdefs.h <<_ACEOF
26402 #define HAVE_FP_EXCEPT_T 1
26403 _ACEOF
26404
26405
26406 fi
26407
26408 ac_fn_c_check_type "$LINENO" "fp_rnd" "ac_cv_type_fp_rnd" "
26409 #ifdef HAVE_IEEEFP_H
26410 #include <ieeefp.h>
26411 #endif
26412 #include <math.h>
26413
26414 "
26415 if test "x$ac_cv_type_fp_rnd" = xyes; then :
26416
26417 cat >>confdefs.h <<_ACEOF
26418 #define HAVE_FP_RND 1
26419 _ACEOF
26420
26421
26422 fi
26423 ac_fn_c_check_type "$LINENO" "fp_rnd_t" "ac_cv_type_fp_rnd_t" "
26424 #ifdef HAVE_IEEEFP_H
26425 #include <ieeefp.h>
26426 #endif
26427 #include <math.h>
26428
26429 "
26430 if test "x$ac_cv_type_fp_rnd_t" = xyes; then :
26431
26432 cat >>confdefs.h <<_ACEOF
26433 #define HAVE_FP_RND_T 1
26434 _ACEOF
26435
26436
26437 fi
26438
26439
26440 # Check whether we have fpsetsticky or fpresetsticky
26441 ac_fn_c_check_func "$LINENO" "fpsetsticky" "ac_cv_func_fpsetsticky"
26442 if test "x$ac_cv_func_fpsetsticky" = xyes; then :
26443 have_fpsetsticky=yes
26444 $as_echo "#define HAVE_FPSETSTICKY 1" >>confdefs.h
26445
26446 fi
26447
26448 ac_fn_c_check_func "$LINENO" "fpresetsticky" "ac_cv_func_fpresetsticky"
26449 if test "x$ac_cv_func_fpresetsticky" = xyes; then :
26450 have_fpresetsticky=yes
26451 $as_echo "#define HAVE_FPRESETSTICKY 1" >>confdefs.h
26452
26453 fi
26454
26455
26456 # Check for AIX fp_trap and fp_enable
26457 ac_fn_c_check_func "$LINENO" "fp_trap" "ac_cv_func_fp_trap"
26458 if test "x$ac_cv_func_fp_trap" = xyes; then :
26459 have_fp_trap=yes
26460 $as_echo "#define HAVE_FP_TRAP 1" >>confdefs.h
26461
26462 fi
26463
26464 ac_fn_c_check_func "$LINENO" "fp_enable" "ac_cv_func_fp_enable"
26465 if test "x$ac_cv_func_fp_enable" = xyes; then :
26466 have_fp_enable=yes
26467 $as_echo "#define HAVE_FP_ENABLE 1" >>confdefs.h
26468
26469 fi
26470
26471
26472 # Check if _SOFT_FLOAT is defined
26473
26474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _SOFT_FLOAT defined" >&5
26475 $as_echo_n "checking for _SOFT_FLOAT defined... " >&6; }
26476 if ${ac_cv_defined__SOFT_FLOAT+:} false; then :
26477 $as_echo_n "(cached) " >&6
26478 else
26479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26480 /* end confdefs.h. */
26481
26482 int
26483 main ()
26484 {
26485
26486 #ifdef _SOFT_FLOAT
26487 int ok;
26488 #else
26489 choke me
26490 #endif
26491
26492 ;
26493 return 0;
26494 }
26495 _ACEOF
26496 if ac_fn_c_try_compile "$LINENO"; then :
26497 ac_cv_defined__SOFT_FLOAT=yes
26498 else
26499 ac_cv_defined__SOFT_FLOAT=no
26500 fi
26501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26502 fi
26503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined__SOFT_FLOAT" >&5
26504 $as_echo "$ac_cv_defined__SOFT_FLOAT" >&6; }
26505 if test $ac_cv_defined__SOFT_FLOAT != "no"; then :
26506 have_soft_float=yes
26507 fi
26508
26509 # Runs configure.host to set up necessary host-dependent shell variables.
26510 # We then display a message about it, and propagate them through the
26511 # build chain.
26512 . ${srcdir}/configure.host
26513 { $as_echo "$as_me:${as_lineno-$LINENO}: FPU dependent file will be ${fpu_host}.h" >&5
26514 $as_echo "$as_me: FPU dependent file will be ${fpu_host}.h" >&6;}
26515 { $as_echo "$as_me:${as_lineno-$LINENO}: Support for IEEE modules: ${ieee_support}" >&5
26516 $as_echo "$as_me: Support for IEEE modules: ${ieee_support}" >&6;}
26517 FPU_HOST_HEADER=config/${fpu_host}.h
26518
26519
26520 # Whether we will build the IEEE modules
26521 if test x${ieee_support} = xyes; then
26522 IEEE_SUPPORT_TRUE=
26523 IEEE_SUPPORT_FALSE='#'
26524 else
26525 IEEE_SUPPORT_TRUE='#'
26526 IEEE_SUPPORT_FALSE=
26527 fi
26528
26529
26530
26531 # Some targets require additional compiler options for IEEE compatibility.
26532 IEEE_FLAGS="${ieee_flags}"
26533
26534
26535
26536 # Check for POSIX getpwuid_r
26537 #
26538 # There are two versions of getpwuid_r, the POSIX one with 5
26539 # arguments, and another one with 4 arguments used by at least HP-UX
26540 # 10.2.
26541 if test "$ac_cv_func_getpwuid_r" = "yes"; then
26542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX version of getpwuid_r with 5 arguments" >&5
26543 $as_echo_n "checking POSIX version of getpwuid_r with 5 arguments... " >&6; }
26544 if ${libgfor_cv_posix_getpwuid_r+:} false; then :
26545 $as_echo_n "(cached) " >&6
26546 else
26547
26548 if test x$gcc_no_link = xyes; then
26549 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26550 fi
26551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26552 /* end confdefs.h. */
26553
26554 #include <stdio.h>
26555 #include <sys/types.h>
26556 #include <pwd.h>
26557 int
26558 main ()
26559 {
26560
26561 getpwuid_r(0, NULL, NULL, 0, NULL);
26562
26563 ;
26564 return 0;
26565 }
26566 _ACEOF
26567 if ac_fn_c_try_link "$LINENO"; then :
26568 libgfor_cv_posix_getpwuid_r="yes"
26569 else
26570 libgfor_cv_posix_getpwuid_r="no"
26571 fi
26572 rm -f core conftest.err conftest.$ac_objext \
26573 conftest$ac_exeext conftest.$ac_ext
26574 fi
26575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_posix_getpwuid_r" >&5
26576 $as_echo "$libgfor_cv_posix_getpwuid_r" >&6; }
26577 fi
26578 if test "$libgfor_cv_posix_getpwuid_r" = "yes"; then
26579
26580 $as_echo "#define HAVE_POSIX_GETPWUID_R 1" >>confdefs.h
26581
26582 fi
26583
26584
26585 # Check out attribute support.
26586
26587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
26588 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
26589 if ${libgfor_cv_have_attribute_visibility+:} false; then :
26590 $as_echo_n "(cached) " >&6
26591 else
26592
26593 save_CFLAGS="$CFLAGS"
26594 CFLAGS="$CFLAGS -Werror"
26595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26596 /* end confdefs.h. */
26597 void __attribute__((visibility("hidden"))) foo(void) { }
26598 int
26599 main ()
26600 {
26601
26602 ;
26603 return 0;
26604 }
26605 _ACEOF
26606 if ac_fn_c_try_compile "$LINENO"; then :
26607 libgfor_cv_have_attribute_visibility=yes
26608 else
26609 libgfor_cv_have_attribute_visibility=no
26610 fi
26611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26612 CFLAGS="$save_CFLAGS"
26613 fi
26614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_visibility" >&5
26615 $as_echo "$libgfor_cv_have_attribute_visibility" >&6; }
26616 if test $libgfor_cv_have_attribute_visibility = yes; then
26617
26618 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
26619
26620 fi
26621
26622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
26623 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
26624 if ${libgfor_cv_have_attribute_alias+:} false; then :
26625 $as_echo_n "(cached) " >&6
26626 else
26627
26628 if test x$gcc_no_link = xyes; then
26629 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26630 fi
26631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26632 /* end confdefs.h. */
26633
26634 void foo(void) { }
26635 extern void bar(void) __attribute__((alias("foo")));
26636 int
26637 main ()
26638 {
26639 bar();
26640 ;
26641 return 0;
26642 }
26643 _ACEOF
26644 if ac_fn_c_try_link "$LINENO"; then :
26645 libgfor_cv_have_attribute_alias=yes
26646 else
26647 libgfor_cv_have_attribute_alias=no
26648 fi
26649 rm -f core conftest.err conftest.$ac_objext \
26650 conftest$ac_exeext conftest.$ac_ext
26651 fi
26652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_alias" >&5
26653 $as_echo "$libgfor_cv_have_attribute_alias" >&6; }
26654 if test $libgfor_cv_have_attribute_alias = yes; then
26655
26656 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
26657
26658 fi
26659
26660 # Check out atomic builtins support.
26661
26662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __atomic_fetch_add" >&5
26663 $as_echo_n "checking whether the target supports __atomic_fetch_add... " >&6; }
26664 if ${libgfor_cv_have_atomic_fetch_add+:} false; then :
26665 $as_echo_n "(cached) " >&6
26666 else
26667
26668 if test x$gcc_no_link = xyes; then
26669 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26670 fi
26671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26672 /* end confdefs.h. */
26673 int foovar = 0;
26674 int
26675 main ()
26676 {
26677
26678 if (foovar <= 0) return __atomic_fetch_add (&foovar, 1, __ATOMIC_ACQ_REL);
26679 if (foovar > 10) return __atomic_add_fetch (&foovar, -1, __ATOMIC_ACQ_REL);
26680 ;
26681 return 0;
26682 }
26683 _ACEOF
26684 if ac_fn_c_try_link "$LINENO"; then :
26685 libgfor_cv_have_atomic_fetch_add=yes
26686 else
26687 libgfor_cv_have_atomic_fetch_add=no
26688 fi
26689 rm -f core conftest.err conftest.$ac_objext \
26690 conftest$ac_exeext conftest.$ac_ext
26691 fi
26692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_atomic_fetch_add" >&5
26693 $as_echo "$libgfor_cv_have_atomic_fetch_add" >&6; }
26694 if test $libgfor_cv_have_atomic_fetch_add = yes; then
26695
26696 $as_echo "#define HAVE_ATOMIC_FETCH_ADD 1" >>confdefs.h
26697
26698 fi
26699
26700 # Check out #pragma weak.
26701
26702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pragma weak works" >&5
26703 $as_echo_n "checking whether pragma weak works... " >&6; }
26704 if ${libgfor_cv_have_pragma_weak+:} false; then :
26705 $as_echo_n "(cached) " >&6
26706 else
26707
26708 gfor_save_CFLAGS="$CFLAGS"
26709 CFLAGS="$CFLAGS -Wunknown-pragmas"
26710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26711 /* end confdefs.h. */
26712
26713 void foo (void);
26714 #pragma weak foo
26715
26716 int
26717 main ()
26718 {
26719 if (foo) foo ();
26720 ;
26721 return 0;
26722 }
26723 _ACEOF
26724 if ac_fn_c_try_compile "$LINENO"; then :
26725 libgfor_cv_have_pragma_weak=yes
26726 else
26727 libgfor_cv_have_pragma_weak=no
26728 fi
26729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26730 fi
26731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_pragma_weak" >&5
26732 $as_echo "$libgfor_cv_have_pragma_weak" >&6; }
26733 if test $libgfor_cv_have_pragma_weak = yes; then
26734
26735 $as_echo "#define SUPPORTS_WEAK 1" >>confdefs.h
26736
26737 fi
26738 case "$host" in
26739 *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* | *-*-musl* )
26740
26741 $as_echo "#define GTHREAD_USE_WEAK 0" >>confdefs.h
26742
26743 ;;
26744 esac
26745
26746 # Check out weakref support.
26747
26748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports weakref" >&5
26749 $as_echo_n "checking whether the target supports weakref... " >&6; }
26750 if ${libgfor_cv_have_weakref+:} false; then :
26751 $as_echo_n "(cached) " >&6
26752 else
26753
26754 save_CFLAGS="$CFLAGS"
26755 CFLAGS="$CFLAGS -Wunknown-pragmas -Werror"
26756 if test x$gcc_no_link = xyes; then
26757 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26758 fi
26759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26760 /* end confdefs.h. */
26761
26762 static int mytoto (int) __attribute__((__weakref__("toto")));
26763
26764 int
26765 main ()
26766 {
26767 return (mytoto != 0);
26768 ;
26769 return 0;
26770 }
26771 _ACEOF
26772 if ac_fn_c_try_link "$LINENO"; then :
26773 libgfor_cv_have_weakref=yes
26774 else
26775 libgfor_cv_have_weakref=no
26776 fi
26777 rm -f core conftest.err conftest.$ac_objext \
26778 conftest$ac_exeext conftest.$ac_ext
26779 CFLAGS="$save_CFLAGS"
26780 fi
26781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_weakref" >&5
26782 $as_echo "$libgfor_cv_have_weakref" >&6; }
26783 if test $libgfor_cv_have_weakref = yes; then
26784
26785 $as_echo "#define SUPPORTS_WEAKREF 1" >>confdefs.h
26786
26787 fi
26788
26789 # Various other checks on target
26790
26791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target can unlink an open file" >&5
26792 $as_echo_n "checking whether the target can unlink an open file... " >&6; }
26793 if ${libgfor_cv_have_unlink_open_file+:} false; then :
26794 $as_echo_n "(cached) " >&6
26795 else
26796
26797 if test "$cross_compiling" = yes; then :
26798
26799 case "${target}" in
26800 *mingw*) libgfor_cv_have_unlink_open_file=no ;;
26801 *) libgfor_cv_have_unlink_open_file=yes;;
26802 esac
26803 else
26804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26805 /* end confdefs.h. */
26806
26807 #include <errno.h>
26808 #include <fcntl.h>
26809 #include <unistd.h>
26810 #include <sys/stat.h>
26811
26812 int main ()
26813 {
26814 int fd;
26815
26816 fd = open ("testfile", O_RDWR | O_CREAT, S_IWUSR | S_IRUSR);
26817 if (fd <= 0)
26818 return 0;
26819 if (unlink ("testfile") == -1)
26820 return 1;
26821 write (fd, "This is a test\n", 15);
26822 close (fd);
26823
26824 if (open ("testfile", O_RDONLY) == -1 && errno == ENOENT)
26825 return 0;
26826 else
26827 return 1;
26828 }
26829 _ACEOF
26830 if ac_fn_c_try_run "$LINENO"; then :
26831 libgfor_cv_have_unlink_open_file=yes
26832 else
26833 libgfor_cv_have_unlink_open_file=no
26834 fi
26835 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26836 conftest.$ac_objext conftest.beam conftest.$ac_ext
26837 fi
26838
26839 fi
26840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_unlink_open_file" >&5
26841 $as_echo "$libgfor_cv_have_unlink_open_file" >&6; }
26842 if test x"$libgfor_cv_have_unlink_open_file" = xyes; then
26843
26844 $as_echo "#define HAVE_UNLINK_OPEN_FILE 1" >>confdefs.h
26845
26846 fi
26847
26848 # Check whether line terminator is LF or CRLF
26849
26850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target has CRLF as line terminator" >&5
26851 $as_echo_n "checking whether the target has CRLF as line terminator... " >&6; }
26852 if ${libgfor_cv_have_crlf+:} false; then :
26853 $as_echo_n "(cached) " >&6
26854 else
26855
26856 if test "$cross_compiling" = yes; then :
26857
26858 case "${target}" in
26859 *mingw*) libgfor_cv_have_crlf=yes ;;
26860 *) libgfor_cv_have_crlf=no;;
26861 esac
26862 else
26863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26864 /* end confdefs.h. */
26865
26866 /* This test program should exit with status 0 if system uses a CRLF as
26867 line terminator, and status 1 otherwise.
26868 Since it is used to check for mingw systems, and should return 0 in any
26869 other case, in case of a failure we will not use CRLF. */
26870 #include <sys/stat.h>
26871 #include <stdlib.h>
26872 #include <fcntl.h>
26873 #include <stdio.h>
26874
26875 int main ()
26876 {
26877 #ifndef O_BINARY
26878 exit(1);
26879 #else
26880 int fd, bytes;
26881 char buff[5];
26882
26883 fd = open ("foo", O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU);
26884 if (fd < 0)
26885 exit(1);
26886 if (write (fd, "\n", 1) < 0)
26887 perror ("write");
26888
26889 close (fd);
26890
26891 if ((fd = open ("foo", O_RDONLY | O_BINARY, S_IRWXU)) < 0)
26892 exit(1);
26893 bytes = read (fd, buff, 5);
26894 if (bytes == 2 && buff[0] == '\r' && buff[1] == '\n')
26895 exit(0);
26896 else
26897 exit(1);
26898 #endif
26899 }
26900 _ACEOF
26901 if ac_fn_c_try_run "$LINENO"; then :
26902 libgfor_cv_have_crlf=yes
26903 else
26904 libgfor_cv_have_crlf=no
26905 fi
26906 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26907 conftest.$ac_objext conftest.beam conftest.$ac_ext
26908 fi
26909
26910 fi
26911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_crlf" >&5
26912 $as_echo "$libgfor_cv_have_crlf" >&6; }
26913 if test x"$libgfor_cv_have_crlf" = xyes; then
26914
26915 $as_echo "#define HAVE_CRLF 1" >>confdefs.h
26916
26917 fi
26918
26919 # Check whether we support AVX extensions
26920
26921 ac_save_CFLAGS="$CFLAGS"
26922 CFLAGS="-O2 -mavx"
26923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26924 /* end confdefs.h. */
26925
26926 void _mm256_zeroall (void)
26927 {
26928 __builtin_ia32_vzeroall ();
26929 }
26930 int
26931 main ()
26932 {
26933
26934 ;
26935 return 0;
26936 }
26937 _ACEOF
26938 if ac_fn_c_try_compile "$LINENO"; then :
26939
26940 $as_echo "#define HAVE_AVX 1" >>confdefs.h
26941
26942 fi
26943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26944 CFLAGS="$ac_save_CFLAGS"
26945
26946
26947 # Check wether we support AVX2 extensions
26948
26949 ac_save_CFLAGS="$CFLAGS"
26950 CFLAGS="-O2 -mavx2"
26951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26952 /* end confdefs.h. */
26953
26954 typedef long long __v4di __attribute__ ((__vector_size__ (32)));
26955 __v4di
26956 mm256_is32_andnotsi256 (__v4di __X, __v4di __Y)
26957 {
26958 return __builtin_ia32_andnotsi256 (__X, __Y);
26959 }
26960 int
26961 main ()
26962 {
26963
26964 ;
26965 return 0;
26966 }
26967 _ACEOF
26968 if ac_fn_c_try_compile "$LINENO"; then :
26969
26970 $as_echo "#define HAVE_AVX2 1" >>confdefs.h
26971
26972 fi
26973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26974 CFLAGS="$ac_save_CFLAGS"
26975
26976
26977 # Check wether we support AVX512f extensions
26978
26979 ac_save_CFLAGS="$CFLAGS"
26980 CFLAGS="-O2 -mavx512f"
26981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26982 /* end confdefs.h. */
26983
26984 typedef double __m512d __attribute__ ((__vector_size__ (64)));
26985 __m512d _mm512_add (__m512d a)
26986 {
26987 __m512d b = __builtin_ia32_addpd512_mask (a, a, a, 1, 4);
26988 /* For -m64/-mx32 also verify that code will work even if
26989 the target uses call saved zmm16+ and needs to emit
26990 unwind info for them (e.g. on mingw). See PR79127. */
26991 #ifdef __x86_64__
26992 asm volatile ("" : : : "zmm16", "zmm17", "zmm18", "zmm19");
26993 #endif
26994 return b;
26995 }
26996 int
26997 main ()
26998 {
26999
27000 ;
27001 return 0;
27002 }
27003 _ACEOF
27004 if ac_fn_c_try_compile "$LINENO"; then :
27005
27006 $as_echo "#define HAVE_AVX512F 1" >>confdefs.h
27007
27008 fi
27009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27010 CFLAGS="$ac_save_CFLAGS"
27011
27012
27013 # Check for FMA3 extensions
27014
27015 ac_save_CFLAGS="$CFLAGS"
27016 CFLAGS="-O2 -mfma -mno-fma4"
27017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27018 /* end confdefs.h. */
27019
27020 typedef float __m128 __attribute__ ((__vector_size__ (16)));
27021 typedef float __v4sf __attribute__ ((__vector_size__ (16)));
27022 __m128 _mm_macc_ps(__m128 __A, __m128 __B, __m128 __C)
27023 {
27024 return (__m128) __builtin_ia32_vfmaddps ((__v4sf)__A,
27025 (__v4sf)__B,
27026 (__v4sf)__C);
27027 }
27028 int
27029 main ()
27030 {
27031
27032 ;
27033 return 0;
27034 }
27035 _ACEOF
27036 if ac_fn_c_try_compile "$LINENO"; then :
27037
27038 $as_echo "#define HAVE_FMA3 1" >>confdefs.h
27039
27040 fi
27041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27042 CFLAGS="$ac_save_CFLAGS"
27043
27044
27045 # Check for FMA4 extensions
27046
27047 ac_save_CFLAGS="$CFLAGS"
27048 CFLAGS="-O2 -mfma4 -mno-fma"
27049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27050 /* end confdefs.h. */
27051
27052 typedef float __m128 __attribute__ ((__vector_size__ (16)));
27053 typedef float __v4sf __attribute__ ((__vector_size__ (16)));
27054 __m128 _mm_macc_ps(__m128 __A, __m128 __B, __m128 __C)
27055 {
27056 return (__m128) __builtin_ia32_vfmaddps ((__v4sf)__A,
27057 (__v4sf)__B,
27058 (__v4sf)__C);
27059 }
27060 int
27061 main ()
27062 {
27063
27064 ;
27065 return 0;
27066 }
27067 _ACEOF
27068 if ac_fn_c_try_compile "$LINENO"; then :
27069
27070 $as_echo "#define HAVE_FMA4 1" >>confdefs.h
27071
27072 fi
27073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27074 CFLAGS="$ac_save_CFLAGS"
27075
27076
27077 # Check if AVX128 works
27078
27079 ac_save_CFLAGS="$CFLAGS"
27080 CFLAGS="-O2 -mavx -mprefer-avx128"
27081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27082 /* end confdefs.h. */
27083
27084 void foo()
27085 {
27086 }
27087 int
27088 main ()
27089 {
27090
27091 ;
27092 return 0;
27093 }
27094 _ACEOF
27095 if ac_fn_c_try_compile "$LINENO"; then :
27096
27097 $as_echo "#define HAVE_AVX128 1" >>confdefs.h
27098
27099 if true; then
27100 HAVE_AVX128_TRUE=
27101 HAVE_AVX128_FALSE='#'
27102 else
27103 HAVE_AVX128_TRUE='#'
27104 HAVE_AVX128_FALSE=
27105 fi
27106
27107 else
27108 if false; then
27109 HAVE_AVX128_TRUE=
27110 HAVE_AVX128_FALSE='#'
27111 else
27112 HAVE_AVX128_TRUE='#'
27113 HAVE_AVX128_FALSE=
27114 fi
27115
27116 fi
27117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27118 CFLAGS="$ac_save_CFLAGS"
27119
27120
27121 # Determine what GCC version number to use in filesystem paths.
27122
27123 get_gcc_base_ver="cat"
27124
27125 # Check whether --with-gcc-major-version-only was given.
27126 if test "${with_gcc_major_version_only+set}" = set; then :
27127 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
27128 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
27129 fi
27130
27131 fi
27132
27133
27134
27135
27136 cat >confcache <<\_ACEOF
27137 # This file is a shell script that caches the results of configure
27138 # tests run on this system so they can be shared between configure
27139 # scripts and configure runs, see configure's option --config-cache.
27140 # It is not useful on other systems. If it contains results you don't
27141 # want to keep, you may remove or edit it.
27142 #
27143 # config.status only pays attention to the cache file if you give it
27144 # the --recheck option to rerun configure.
27145 #
27146 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27147 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27148 # following values.
27149
27150 _ACEOF
27151
27152 # The following way of writing the cache mishandles newlines in values,
27153 # but we know of no workaround that is simple, portable, and efficient.
27154 # So, we kill variables containing newlines.
27155 # Ultrix sh set writes to stderr and can't be redirected directly,
27156 # and sets the high bit in the cache file unless we assign to the vars.
27157 (
27158 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27159 eval ac_val=\$$ac_var
27160 case $ac_val in #(
27161 *${as_nl}*)
27162 case $ac_var in #(
27163 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27164 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27165 esac
27166 case $ac_var in #(
27167 _ | IFS | as_nl) ;; #(
27168 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27169 *) { eval $ac_var=; unset $ac_var;} ;;
27170 esac ;;
27171 esac
27172 done
27173
27174 (set) 2>&1 |
27175 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27176 *${as_nl}ac_space=\ *)
27177 # `set' does not quote correctly, so add quotes: double-quote
27178 # substitution turns \\\\ into \\, and sed turns \\ into \.
27179 sed -n \
27180 "s/'/'\\\\''/g;
27181 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27182 ;; #(
27183 *)
27184 # `set' quotes correctly as required by POSIX, so do not add quotes.
27185 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27186 ;;
27187 esac |
27188 sort
27189 ) |
27190 sed '
27191 /^ac_cv_env_/b end
27192 t clear
27193 :clear
27194 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27195 t end
27196 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27197 :end' >>confcache
27198 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27199 if test -w "$cache_file"; then
27200 if test "x$cache_file" != "x/dev/null"; then
27201 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27202 $as_echo "$as_me: updating cache $cache_file" >&6;}
27203 if test ! -f "$cache_file" || test -h "$cache_file"; then
27204 cat confcache >"$cache_file"
27205 else
27206 case $cache_file in #(
27207 */* | ?:*)
27208 mv -f confcache "$cache_file"$$ &&
27209 mv -f "$cache_file"$$ "$cache_file" ;; #(
27210 *)
27211 mv -f confcache "$cache_file" ;;
27212 esac
27213 fi
27214 fi
27215 else
27216 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27217 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27218 fi
27219 fi
27220 rm -f confcache
27221
27222 if test ${multilib} = yes; then
27223 multilib_arg="--enable-multilib"
27224 else
27225 multilib_arg=
27226 fi
27227
27228 # Write our Makefile and spec file.
27229 ac_config_files="$ac_config_files Makefile libgfortran.spec"
27230
27231 cat >confcache <<\_ACEOF
27232 # This file is a shell script that caches the results of configure
27233 # tests run on this system so they can be shared between configure
27234 # scripts and configure runs, see configure's option --config-cache.
27235 # It is not useful on other systems. If it contains results you don't
27236 # want to keep, you may remove or edit it.
27237 #
27238 # config.status only pays attention to the cache file if you give it
27239 # the --recheck option to rerun configure.
27240 #
27241 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27242 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27243 # following values.
27244
27245 _ACEOF
27246
27247 # The following way of writing the cache mishandles newlines in values,
27248 # but we know of no workaround that is simple, portable, and efficient.
27249 # So, we kill variables containing newlines.
27250 # Ultrix sh set writes to stderr and can't be redirected directly,
27251 # and sets the high bit in the cache file unless we assign to the vars.
27252 (
27253 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27254 eval ac_val=\$$ac_var
27255 case $ac_val in #(
27256 *${as_nl}*)
27257 case $ac_var in #(
27258 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27259 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27260 esac
27261 case $ac_var in #(
27262 _ | IFS | as_nl) ;; #(
27263 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27264 *) { eval $ac_var=; unset $ac_var;} ;;
27265 esac ;;
27266 esac
27267 done
27268
27269 (set) 2>&1 |
27270 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27271 *${as_nl}ac_space=\ *)
27272 # `set' does not quote correctly, so add quotes: double-quote
27273 # substitution turns \\\\ into \\, and sed turns \\ into \.
27274 sed -n \
27275 "s/'/'\\\\''/g;
27276 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27277 ;; #(
27278 *)
27279 # `set' quotes correctly as required by POSIX, so do not add quotes.
27280 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27281 ;;
27282 esac |
27283 sort
27284 ) |
27285 sed '
27286 /^ac_cv_env_/b end
27287 t clear
27288 :clear
27289 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27290 t end
27291 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27292 :end' >>confcache
27293 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27294 if test -w "$cache_file"; then
27295 if test "x$cache_file" != "x/dev/null"; then
27296 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27297 $as_echo "$as_me: updating cache $cache_file" >&6;}
27298 if test ! -f "$cache_file" || test -h "$cache_file"; then
27299 cat confcache >"$cache_file"
27300 else
27301 case $cache_file in #(
27302 */* | ?:*)
27303 mv -f confcache "$cache_file"$$ &&
27304 mv -f "$cache_file"$$ "$cache_file" ;; #(
27305 *)
27306 mv -f confcache "$cache_file" ;;
27307 esac
27308 fi
27309 fi
27310 else
27311 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27312 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27313 fi
27314 fi
27315 rm -f confcache
27316
27317 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27318 # Let make expand exec_prefix.
27319 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27320
27321 DEFS=-DHAVE_CONFIG_H
27322
27323 ac_libobjs=
27324 ac_ltlibobjs=
27325 U=
27326 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27327 # 1. Remove the extension, and $U if already installed.
27328 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27329 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27330 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27331 # will be set to the directory where LIBOBJS objects are built.
27332 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27333 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27334 done
27335 LIBOBJS=$ac_libobjs
27336
27337 LTLIBOBJS=$ac_ltlibobjs
27338
27339
27340 if test -z "${onestep_TRUE}" && test -z "${onestep_FALSE}"; then
27341 as_fn_error $? "conditional \"onestep\" was never defined.
27342 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27343 fi
27344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
27345 $as_echo_n "checking that generated files are newer than configure... " >&6; }
27346 if test -n "$am_sleep_pid"; then
27347 # Hide warnings about reused PIDs.
27348 wait $am_sleep_pid 2>/dev/null
27349 fi
27350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
27351 $as_echo "done" >&6; }
27352 if test -n "$EXEEXT"; then
27353 am__EXEEXT_TRUE=
27354 am__EXEEXT_FALSE='#'
27355 else
27356 am__EXEEXT_TRUE='#'
27357 am__EXEEXT_FALSE=
27358 fi
27359
27360 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27361 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
27362 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27363 fi
27364 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27365 as_fn_error $? "conditional \"AMDEP\" was never defined.
27366 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27367 fi
27368 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27369 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
27370 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27371 fi
27372 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27373 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
27374 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27375 fi
27376 if test -z "${LIBGFOR_USE_SYMVER_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_FALSE}"; then
27377 as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER\" was never defined.
27378 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27379 fi
27380 if test -z "${LIBGFOR_USE_SYMVER_GNU_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_GNU_FALSE}"; then
27381 as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER_GNU\" was never defined.
27382 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27383 fi
27384 if test -z "${LIBGFOR_USE_SYMVER_SUN_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_SUN_FALSE}"; then
27385 as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER_SUN\" was never defined.
27386 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27387 fi
27388 if test -z "${LIBGFOR_MINIMAL_TRUE}" && test -z "${LIBGFOR_MINIMAL_FALSE}"; then
27389 as_fn_error $? "conditional \"LIBGFOR_MINIMAL\" was never defined.
27390 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27391 fi
27392 if test -z "${HAVE_HWCAP_TRUE}" && test -z "${HAVE_HWCAP_FALSE}"; then
27393 as_fn_error $? "conditional \"HAVE_HWCAP\" was never defined.
27394 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27395 fi
27396 if test -z "${LIBGFOR_BUILD_QUAD_TRUE}" && test -z "${LIBGFOR_BUILD_QUAD_FALSE}"; then
27397 as_fn_error $? "conditional \"LIBGFOR_BUILD_QUAD\" was never defined.
27398 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27399 fi
27400 if test -z "${IEEE_SUPPORT_TRUE}" && test -z "${IEEE_SUPPORT_FALSE}"; then
27401 as_fn_error $? "conditional \"IEEE_SUPPORT\" was never defined.
27402 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27403 fi
27404 if test -z "${HAVE_AVX128_TRUE}" && test -z "${HAVE_AVX128_FALSE}"; then
27405 as_fn_error $? "conditional \"HAVE_AVX128\" was never defined.
27406 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27407 fi
27408 if test -z "${HAVE_AVX128_TRUE}" && test -z "${HAVE_AVX128_FALSE}"; then
27409 as_fn_error $? "conditional \"HAVE_AVX128\" was never defined.
27410 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27411 fi
27412
27413 : "${CONFIG_STATUS=./config.status}"
27414 ac_write_fail=0
27415 ac_clean_files_save=$ac_clean_files
27416 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27417 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27418 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27419 as_write_fail=0
27420 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27421 #! $SHELL
27422 # Generated by $as_me.
27423 # Run this file to recreate the current configuration.
27424 # Compiler output produced by configure, useful for debugging
27425 # configure, is in config.log if it exists.
27426
27427 debug=false
27428 ac_cs_recheck=false
27429 ac_cs_silent=false
27430
27431 SHELL=\${CONFIG_SHELL-$SHELL}
27432 export SHELL
27433 _ASEOF
27434 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27435 ## -------------------- ##
27436 ## M4sh Initialization. ##
27437 ## -------------------- ##
27438
27439 # Be more Bourne compatible
27440 DUALCASE=1; export DUALCASE # for MKS sh
27441 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27442 emulate sh
27443 NULLCMD=:
27444 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27445 # is contrary to our usage. Disable this feature.
27446 alias -g '${1+"$@"}'='"$@"'
27447 setopt NO_GLOB_SUBST
27448 else
27449 case `(set -o) 2>/dev/null` in #(
27450 *posix*) :
27451 set -o posix ;; #(
27452 *) :
27453 ;;
27454 esac
27455 fi
27456
27457
27458 as_nl='
27459 '
27460 export as_nl
27461 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27462 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27463 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27464 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27465 # Prefer a ksh shell builtin over an external printf program on Solaris,
27466 # but without wasting forks for bash or zsh.
27467 if test -z "$BASH_VERSION$ZSH_VERSION" \
27468 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27469 as_echo='print -r --'
27470 as_echo_n='print -rn --'
27471 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27472 as_echo='printf %s\n'
27473 as_echo_n='printf %s'
27474 else
27475 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27476 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27477 as_echo_n='/usr/ucb/echo -n'
27478 else
27479 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27480 as_echo_n_body='eval
27481 arg=$1;
27482 case $arg in #(
27483 *"$as_nl"*)
27484 expr "X$arg" : "X\\(.*\\)$as_nl";
27485 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27486 esac;
27487 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27488 '
27489 export as_echo_n_body
27490 as_echo_n='sh -c $as_echo_n_body as_echo'
27491 fi
27492 export as_echo_body
27493 as_echo='sh -c $as_echo_body as_echo'
27494 fi
27495
27496 # The user is always right.
27497 if test "${PATH_SEPARATOR+set}" != set; then
27498 PATH_SEPARATOR=:
27499 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27500 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27501 PATH_SEPARATOR=';'
27502 }
27503 fi
27504
27505
27506 # IFS
27507 # We need space, tab and new line, in precisely that order. Quoting is
27508 # there to prevent editors from complaining about space-tab.
27509 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27510 # splitting by setting IFS to empty value.)
27511 IFS=" "" $as_nl"
27512
27513 # Find who we are. Look in the path if we contain no directory separator.
27514 as_myself=
27515 case $0 in #((
27516 *[\\/]* ) as_myself=$0 ;;
27517 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27518 for as_dir in $PATH
27519 do
27520 IFS=$as_save_IFS
27521 test -z "$as_dir" && as_dir=.
27522 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27523 done
27524 IFS=$as_save_IFS
27525
27526 ;;
27527 esac
27528 # We did not find ourselves, most probably we were run as `sh COMMAND'
27529 # in which case we are not to be found in the path.
27530 if test "x$as_myself" = x; then
27531 as_myself=$0
27532 fi
27533 if test ! -f "$as_myself"; then
27534 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27535 exit 1
27536 fi
27537
27538 # Unset variables that we do not need and which cause bugs (e.g. in
27539 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27540 # suppresses any "Segmentation fault" message there. '((' could
27541 # trigger a bug in pdksh 5.2.14.
27542 for as_var in BASH_ENV ENV MAIL MAILPATH
27543 do eval test x\${$as_var+set} = xset \
27544 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27545 done
27546 PS1='$ '
27547 PS2='> '
27548 PS4='+ '
27549
27550 # NLS nuisances.
27551 LC_ALL=C
27552 export LC_ALL
27553 LANGUAGE=C
27554 export LANGUAGE
27555
27556 # CDPATH.
27557 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27558
27559
27560 # as_fn_error STATUS ERROR [LINENO LOG_FD]
27561 # ----------------------------------------
27562 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27563 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27564 # script with STATUS, using 1 if that was 0.
27565 as_fn_error ()
27566 {
27567 as_status=$1; test $as_status -eq 0 && as_status=1
27568 if test "$4"; then
27569 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27570 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
27571 fi
27572 $as_echo "$as_me: error: $2" >&2
27573 as_fn_exit $as_status
27574 } # as_fn_error
27575
27576
27577 # as_fn_set_status STATUS
27578 # -----------------------
27579 # Set $? to STATUS, without forking.
27580 as_fn_set_status ()
27581 {
27582 return $1
27583 } # as_fn_set_status
27584
27585 # as_fn_exit STATUS
27586 # -----------------
27587 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27588 as_fn_exit ()
27589 {
27590 set +e
27591 as_fn_set_status $1
27592 exit $1
27593 } # as_fn_exit
27594
27595 # as_fn_unset VAR
27596 # ---------------
27597 # Portably unset VAR.
27598 as_fn_unset ()
27599 {
27600 { eval $1=; unset $1;}
27601 }
27602 as_unset=as_fn_unset
27603 # as_fn_append VAR VALUE
27604 # ----------------------
27605 # Append the text in VALUE to the end of the definition contained in VAR. Take
27606 # advantage of any shell optimizations that allow amortized linear growth over
27607 # repeated appends, instead of the typical quadratic growth present in naive
27608 # implementations.
27609 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27610 eval 'as_fn_append ()
27611 {
27612 eval $1+=\$2
27613 }'
27614 else
27615 as_fn_append ()
27616 {
27617 eval $1=\$$1\$2
27618 }
27619 fi # as_fn_append
27620
27621 # as_fn_arith ARG...
27622 # ------------------
27623 # Perform arithmetic evaluation on the ARGs, and store the result in the
27624 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27625 # must be portable across $(()) and expr.
27626 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27627 eval 'as_fn_arith ()
27628 {
27629 as_val=$(( $* ))
27630 }'
27631 else
27632 as_fn_arith ()
27633 {
27634 as_val=`expr "$@" || test $? -eq 1`
27635 }
27636 fi # as_fn_arith
27637
27638
27639 if expr a : '\(a\)' >/dev/null 2>&1 &&
27640 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27641 as_expr=expr
27642 else
27643 as_expr=false
27644 fi
27645
27646 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27647 as_basename=basename
27648 else
27649 as_basename=false
27650 fi
27651
27652 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27653 as_dirname=dirname
27654 else
27655 as_dirname=false
27656 fi
27657
27658 as_me=`$as_basename -- "$0" ||
27659 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27660 X"$0" : 'X\(//\)$' \| \
27661 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27662 $as_echo X/"$0" |
27663 sed '/^.*\/\([^/][^/]*\)\/*$/{
27664 s//\1/
27665 q
27666 }
27667 /^X\/\(\/\/\)$/{
27668 s//\1/
27669 q
27670 }
27671 /^X\/\(\/\).*/{
27672 s//\1/
27673 q
27674 }
27675 s/.*/./; q'`
27676
27677 # Avoid depending upon Character Ranges.
27678 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27679 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27680 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27681 as_cr_digits='0123456789'
27682 as_cr_alnum=$as_cr_Letters$as_cr_digits
27683
27684 ECHO_C= ECHO_N= ECHO_T=
27685 case `echo -n x` in #(((((
27686 -n*)
27687 case `echo 'xy\c'` in
27688 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27689 xy) ECHO_C='\c';;
27690 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27691 ECHO_T=' ';;
27692 esac;;
27693 *)
27694 ECHO_N='-n';;
27695 esac
27696
27697 rm -f conf$$ conf$$.exe conf$$.file
27698 if test -d conf$$.dir; then
27699 rm -f conf$$.dir/conf$$.file
27700 else
27701 rm -f conf$$.dir
27702 mkdir conf$$.dir 2>/dev/null
27703 fi
27704 if (echo >conf$$.file) 2>/dev/null; then
27705 if ln -s conf$$.file conf$$ 2>/dev/null; then
27706 as_ln_s='ln -s'
27707 # ... but there are two gotchas:
27708 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27709 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27710 # In both cases, we have to default to `cp -pR'.
27711 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27712 as_ln_s='cp -pR'
27713 elif ln conf$$.file conf$$ 2>/dev/null; then
27714 as_ln_s=ln
27715 else
27716 as_ln_s='cp -pR'
27717 fi
27718 else
27719 as_ln_s='cp -pR'
27720 fi
27721 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27722 rmdir conf$$.dir 2>/dev/null
27723
27724
27725 # as_fn_mkdir_p
27726 # -------------
27727 # Create "$as_dir" as a directory, including parents if necessary.
27728 as_fn_mkdir_p ()
27729 {
27730
27731 case $as_dir in #(
27732 -*) as_dir=./$as_dir;;
27733 esac
27734 test -d "$as_dir" || eval $as_mkdir_p || {
27735 as_dirs=
27736 while :; do
27737 case $as_dir in #(
27738 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27739 *) as_qdir=$as_dir;;
27740 esac
27741 as_dirs="'$as_qdir' $as_dirs"
27742 as_dir=`$as_dirname -- "$as_dir" ||
27743 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27744 X"$as_dir" : 'X\(//\)[^/]' \| \
27745 X"$as_dir" : 'X\(//\)$' \| \
27746 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27747 $as_echo X"$as_dir" |
27748 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27749 s//\1/
27750 q
27751 }
27752 /^X\(\/\/\)[^/].*/{
27753 s//\1/
27754 q
27755 }
27756 /^X\(\/\/\)$/{
27757 s//\1/
27758 q
27759 }
27760 /^X\(\/\).*/{
27761 s//\1/
27762 q
27763 }
27764 s/.*/./; q'`
27765 test -d "$as_dir" && break
27766 done
27767 test -z "$as_dirs" || eval "mkdir $as_dirs"
27768 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
27769
27770
27771 } # as_fn_mkdir_p
27772 if mkdir -p . 2>/dev/null; then
27773 as_mkdir_p='mkdir -p "$as_dir"'
27774 else
27775 test -d ./-p && rmdir ./-p
27776 as_mkdir_p=false
27777 fi
27778
27779
27780 # as_fn_executable_p FILE
27781 # -----------------------
27782 # Test if FILE is an executable regular file.
27783 as_fn_executable_p ()
27784 {
27785 test -f "$1" && test -x "$1"
27786 } # as_fn_executable_p
27787 as_test_x='test -x'
27788 as_executable_p=as_fn_executable_p
27789
27790 # Sed expression to map a string onto a valid CPP name.
27791 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27792
27793 # Sed expression to map a string onto a valid variable name.
27794 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27795
27796
27797 exec 6>&1
27798 ## ----------------------------------- ##
27799 ## Main body of $CONFIG_STATUS script. ##
27800 ## ----------------------------------- ##
27801 _ASEOF
27802 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27803
27804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27805 # Save the log message, to keep $0 and so on meaningful, and to
27806 # report actual input values of CONFIG_FILES etc. instead of their
27807 # values after options handling.
27808 ac_log="
27809 This file was extended by GNU Fortran Runtime Library $as_me 0.3, which was
27810 generated by GNU Autoconf 2.69. Invocation command line was
27811
27812 CONFIG_FILES = $CONFIG_FILES
27813 CONFIG_HEADERS = $CONFIG_HEADERS
27814 CONFIG_LINKS = $CONFIG_LINKS
27815 CONFIG_COMMANDS = $CONFIG_COMMANDS
27816 $ $0 $@
27817
27818 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27819 "
27820
27821 _ACEOF
27822
27823 case $ac_config_files in *"
27824 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27825 esac
27826
27827 case $ac_config_headers in *"
27828 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27829 esac
27830
27831
27832 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27833 # Files that config.status was made for.
27834 config_files="$ac_config_files"
27835 config_headers="$ac_config_headers"
27836 config_commands="$ac_config_commands"
27837
27838 _ACEOF
27839
27840 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27841 ac_cs_usage="\
27842 \`$as_me' instantiates files and other configuration actions
27843 from templates according to the current configuration. Unless the files
27844 and actions are specified as TAGs, all are instantiated by default.
27845
27846 Usage: $0 [OPTION]... [TAG]...
27847
27848 -h, --help print this help, then exit
27849 -V, --version print version number and configuration settings, then exit
27850 --config print configuration, then exit
27851 -q, --quiet, --silent
27852 do not print progress messages
27853 -d, --debug don't remove temporary files
27854 --recheck update $as_me by reconfiguring in the same conditions
27855 --file=FILE[:TEMPLATE]
27856 instantiate the configuration file FILE
27857 --header=FILE[:TEMPLATE]
27858 instantiate the configuration header FILE
27859
27860 Configuration files:
27861 $config_files
27862
27863 Configuration headers:
27864 $config_headers
27865
27866 Configuration commands:
27867 $config_commands
27868
27869 Report bugs to the package provider.
27870 GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
27871 General help using GNU software: <http://www.gnu.org/gethelp/>."
27872
27873 _ACEOF
27874 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27875 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
27876 ac_cs_version="\\
27877 GNU Fortran Runtime Library config.status 0.3
27878 configured by $0, generated by GNU Autoconf 2.69,
27879 with options \\"\$ac_cs_config\\"
27880
27881 Copyright (C) 2012 Free Software Foundation, Inc.
27882 This config.status script is free software; the Free Software Foundation
27883 gives unlimited permission to copy, distribute and modify it."
27884
27885 ac_pwd='$ac_pwd'
27886 srcdir='$srcdir'
27887 INSTALL='$INSTALL'
27888 MKDIR_P='$MKDIR_P'
27889 AWK='$AWK'
27890 test -n "\$AWK" || AWK=awk
27891 _ACEOF
27892
27893 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27894 # The default lists apply if the user does not specify any file.
27895 ac_need_defaults=:
27896 while test $# != 0
27897 do
27898 case $1 in
27899 --*=?*)
27900 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27901 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27902 ac_shift=:
27903 ;;
27904 --*=)
27905 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27906 ac_optarg=
27907 ac_shift=:
27908 ;;
27909 *)
27910 ac_option=$1
27911 ac_optarg=$2
27912 ac_shift=shift
27913 ;;
27914 esac
27915
27916 case $ac_option in
27917 # Handling of the options.
27918 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27919 ac_cs_recheck=: ;;
27920 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27921 $as_echo "$ac_cs_version"; exit ;;
27922 --config | --confi | --conf | --con | --co | --c )
27923 $as_echo "$ac_cs_config"; exit ;;
27924 --debug | --debu | --deb | --de | --d | -d )
27925 debug=: ;;
27926 --file | --fil | --fi | --f )
27927 $ac_shift
27928 case $ac_optarg in
27929 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27930 '') as_fn_error $? "missing file argument" ;;
27931 esac
27932 as_fn_append CONFIG_FILES " '$ac_optarg'"
27933 ac_need_defaults=false;;
27934 --header | --heade | --head | --hea )
27935 $ac_shift
27936 case $ac_optarg in
27937 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27938 esac
27939 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27940 ac_need_defaults=false;;
27941 --he | --h)
27942 # Conflict between --help and --header
27943 as_fn_error $? "ambiguous option: \`$1'
27944 Try \`$0 --help' for more information.";;
27945 --help | --hel | -h )
27946 $as_echo "$ac_cs_usage"; exit ;;
27947 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27948 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27949 ac_cs_silent=: ;;
27950
27951 # This is an error.
27952 -*) as_fn_error $? "unrecognized option: \`$1'
27953 Try \`$0 --help' for more information." ;;
27954
27955 *) as_fn_append ac_config_targets " $1"
27956 ac_need_defaults=false ;;
27957
27958 esac
27959 shift
27960 done
27961
27962 ac_configure_extra_args=
27963
27964 if $ac_cs_silent; then
27965 exec 6>/dev/null
27966 ac_configure_extra_args="$ac_configure_extra_args --silent"
27967 fi
27968
27969 _ACEOF
27970 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27971 if \$ac_cs_recheck; then
27972 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27973 shift
27974 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27975 CONFIG_SHELL='$SHELL'
27976 export CONFIG_SHELL
27977 exec "\$@"
27978 fi
27979
27980 _ACEOF
27981 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27982 exec 5>>config.log
27983 {
27984 echo
27985 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27986 ## Running $as_me. ##
27987 _ASBOX
27988 $as_echo "$ac_log"
27989 } >&5
27990
27991 _ACEOF
27992 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27993 #
27994 # INIT-COMMANDS
27995 #
27996
27997 srcdir="$srcdir"
27998 host="$host"
27999 target="$target"
28000 with_multisubdir="$with_multisubdir"
28001 with_multisrctop="$with_multisrctop"
28002 with_target_subdir="$with_target_subdir"
28003 ac_configure_args="${multilib_arg} ${ac_configure_args}"
28004 multi_basedir="$multi_basedir"
28005 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
28006 CC="$CC"
28007 CXX="$CXX"
28008 GFORTRAN="$GFORTRAN"
28009 GDC="$GDC"
28010 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28011
28012
28013 # The HP-UX ksh and POSIX shell print the target directory to stdout
28014 # if CDPATH is set.
28015 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28016
28017 sed_quote_subst='$sed_quote_subst'
28018 double_quote_subst='$double_quote_subst'
28019 delay_variable_subst='$delay_variable_subst'
28020 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
28021 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
28022 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
28023 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
28024 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
28025 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
28026 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
28027 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
28028 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
28029 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
28030 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
28031 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
28032 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
28033 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
28034 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
28035 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
28036 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
28037 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
28038 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
28039 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
28040 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
28041 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
28042 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
28043 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
28044 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
28045 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
28046 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
28047 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
28048 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
28049 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
28050 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
28051 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
28052 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
28053 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
28054 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
28055 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
28056 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
28057 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
28058 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
28059 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
28060 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
28061 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
28062 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
28063 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
28064 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
28065 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
28066 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
28067 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
28068 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"`'
28069 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
28070 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
28071 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
28072 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
28073 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
28074 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
28075 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
28076 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
28077 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
28078 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
28079 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
28080 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
28081 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
28082 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
28083 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
28084 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
28085 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
28086 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
28087 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
28088 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
28089 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
28090 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
28091 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
28092 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
28093 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
28094 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
28095 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
28096 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
28097 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
28098 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
28099 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
28100 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
28101 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
28102 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
28103 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
28104 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
28105 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
28106 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
28107 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
28108 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
28109 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
28110 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
28111 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
28112 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
28113 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
28114 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
28115 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
28116 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
28117 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
28118 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
28119 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
28120 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
28121 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
28122 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
28123 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
28124 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
28125 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
28126 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
28127 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
28128 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
28129 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
28130 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
28131 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
28132 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
28133 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
28134 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
28135 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
28136 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
28137 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
28138 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
28139 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
28140 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
28141 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
28142 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
28143 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
28144 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
28145 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
28146 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
28147 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
28148 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
28149 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
28150 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
28151 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
28152 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
28153 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
28154 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
28155 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
28156 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
28157 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
28158 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
28159 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
28160 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
28161 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
28162 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
28163 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
28164 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
28165 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
28166 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
28167 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
28168 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
28169 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
28170 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
28171 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
28172 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
28173 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
28174 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
28175 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
28176 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
28177 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
28178 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
28179 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
28180 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
28181 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
28182 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
28183 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
28184 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
28185 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
28186 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
28187 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
28188 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
28189 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
28190 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
28191 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
28192 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
28193 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
28194 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
28195
28196 LTCC='$LTCC'
28197 LTCFLAGS='$LTCFLAGS'
28198 compiler='$compiler_DEFAULT'
28199
28200 # A function that is used when there is no print builtin or printf.
28201 func_fallback_echo ()
28202 {
28203 eval 'cat <<_LTECHO_EOF
28204 \$1
28205 _LTECHO_EOF'
28206 }
28207
28208 # Quote evaled strings.
28209 for var in SED \
28210 GREP \
28211 EGREP \
28212 FGREP \
28213 SHELL \
28214 ECHO \
28215 LD \
28216 NM \
28217 LN_S \
28218 lt_SP2NL \
28219 lt_NL2SP \
28220 reload_flag \
28221 OBJDUMP \
28222 deplibs_check_method \
28223 file_magic_cmd \
28224 AR \
28225 AR_FLAGS \
28226 STRIP \
28227 RANLIB \
28228 CC \
28229 CFLAGS \
28230 compiler \
28231 lt_cv_sys_global_symbol_pipe \
28232 lt_cv_sys_global_symbol_to_cdecl \
28233 lt_cv_sys_global_symbol_to_c_name_address \
28234 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
28235 lt_prog_compiler_no_builtin_flag \
28236 lt_prog_compiler_wl \
28237 lt_prog_compiler_pic \
28238 lt_prog_compiler_static \
28239 lt_cv_prog_compiler_c_o \
28240 need_locks \
28241 DSYMUTIL \
28242 NMEDIT \
28243 LIPO \
28244 OTOOL \
28245 OTOOL64 \
28246 shrext_cmds \
28247 export_dynamic_flag_spec \
28248 whole_archive_flag_spec \
28249 compiler_needs_object \
28250 with_gnu_ld \
28251 allow_undefined_flag \
28252 no_undefined_flag \
28253 hardcode_libdir_flag_spec \
28254 hardcode_libdir_flag_spec_ld \
28255 hardcode_libdir_separator \
28256 fix_srcfile_path \
28257 exclude_expsyms \
28258 include_expsyms \
28259 file_list_spec \
28260 variables_saved_for_relink \
28261 libname_spec \
28262 library_names_spec \
28263 soname_spec \
28264 install_override_mode \
28265 finish_eval \
28266 old_striplib \
28267 striplib \
28268 compiler_lib_search_dirs \
28269 predep_objects \
28270 postdep_objects \
28271 predeps \
28272 postdeps \
28273 compiler_lib_search_path \
28274 LD_FC \
28275 reload_flag_FC \
28276 compiler_FC \
28277 lt_prog_compiler_no_builtin_flag_FC \
28278 lt_prog_compiler_wl_FC \
28279 lt_prog_compiler_pic_FC \
28280 lt_prog_compiler_static_FC \
28281 lt_cv_prog_compiler_c_o_FC \
28282 export_dynamic_flag_spec_FC \
28283 whole_archive_flag_spec_FC \
28284 compiler_needs_object_FC \
28285 with_gnu_ld_FC \
28286 allow_undefined_flag_FC \
28287 no_undefined_flag_FC \
28288 hardcode_libdir_flag_spec_FC \
28289 hardcode_libdir_flag_spec_ld_FC \
28290 hardcode_libdir_separator_FC \
28291 fix_srcfile_path_FC \
28292 exclude_expsyms_FC \
28293 include_expsyms_FC \
28294 file_list_spec_FC \
28295 compiler_lib_search_dirs_FC \
28296 predep_objects_FC \
28297 postdep_objects_FC \
28298 predeps_FC \
28299 postdeps_FC \
28300 compiler_lib_search_path_FC; do
28301 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
28302 *[\\\\\\\`\\"\\\$]*)
28303 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
28304 ;;
28305 *)
28306 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28307 ;;
28308 esac
28309 done
28310
28311 # Double-quote double-evaled strings.
28312 for var in reload_cmds \
28313 old_postinstall_cmds \
28314 old_postuninstall_cmds \
28315 old_archive_cmds \
28316 extract_expsyms_cmds \
28317 old_archive_from_new_cmds \
28318 old_archive_from_expsyms_cmds \
28319 archive_cmds \
28320 archive_expsym_cmds \
28321 module_cmds \
28322 module_expsym_cmds \
28323 export_symbols_cmds \
28324 prelink_cmds \
28325 postinstall_cmds \
28326 postuninstall_cmds \
28327 finish_cmds \
28328 sys_lib_search_path_spec \
28329 sys_lib_dlsearch_path_spec \
28330 reload_cmds_FC \
28331 old_archive_cmds_FC \
28332 old_archive_from_new_cmds_FC \
28333 old_archive_from_expsyms_cmds_FC \
28334 archive_cmds_FC \
28335 archive_expsym_cmds_FC \
28336 module_cmds_FC \
28337 module_expsym_cmds_FC \
28338 export_symbols_cmds_FC \
28339 prelink_cmds_FC; do
28340 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
28341 *[\\\\\\\`\\"\\\$]*)
28342 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
28343 ;;
28344 *)
28345 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28346 ;;
28347 esac
28348 done
28349
28350 ac_aux_dir='$ac_aux_dir'
28351 xsi_shell='$xsi_shell'
28352 lt_shell_append='$lt_shell_append'
28353
28354 # See if we are running on zsh, and set the options which allow our
28355 # commands through without removal of \ escapes INIT.
28356 if test -n "\${ZSH_VERSION+set}" ; then
28357 setopt NO_GLOB_SUBST
28358 fi
28359
28360
28361 PACKAGE='$PACKAGE'
28362 VERSION='$VERSION'
28363 TIMESTAMP='$TIMESTAMP'
28364 RM='$RM'
28365 ofile='$ofile'
28366
28367
28368
28369
28370
28371
28372 GCC="$GCC"
28373 CC="$CC"
28374 acx_cv_header_stdint="$acx_cv_header_stdint"
28375 acx_cv_type_int8_t="$acx_cv_type_int8_t"
28376 acx_cv_type_int16_t="$acx_cv_type_int16_t"
28377 acx_cv_type_int32_t="$acx_cv_type_int32_t"
28378 acx_cv_type_int64_t="$acx_cv_type_int64_t"
28379 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
28380 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
28381 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
28382 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
28383 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
28384 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
28385 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
28386 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
28387 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
28388
28389
28390 _ACEOF
28391
28392 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28393
28394 # Handling of arguments.
28395 for ac_config_target in $ac_config_targets
28396 do
28397 case $ac_config_target in
28398 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
28399 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
28400 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28401 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
28402 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
28403 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28404 "libgfortran.spec") CONFIG_FILES="$CONFIG_FILES libgfortran.spec" ;;
28405
28406 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28407 esac
28408 done
28409
28410
28411 # If the user did not use the arguments to specify the items to instantiate,
28412 # then the envvar interface is used. Set only those that are not.
28413 # We use the long form for the default assignment because of an extremely
28414 # bizarre bug on SunOS 4.1.3.
28415 if $ac_need_defaults; then
28416 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28417 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28418 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28419 fi
28420
28421 # Have a temporary directory for convenience. Make it in the build tree
28422 # simply because there is no reason against having it here, and in addition,
28423 # creating and moving files from /tmp can sometimes cause problems.
28424 # Hook for its removal unless debugging.
28425 # Note that there is a small window in which the directory will not be cleaned:
28426 # after its creation but before its name has been assigned to `$tmp'.
28427 $debug ||
28428 {
28429 tmp= ac_tmp=
28430 trap 'exit_status=$?
28431 : "${ac_tmp:=$tmp}"
28432 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
28433 ' 0
28434 trap 'as_fn_exit 1' 1 2 13 15
28435 }
28436 # Create a (secure) tmp directory for tmp files.
28437
28438 {
28439 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28440 test -d "$tmp"
28441 } ||
28442 {
28443 tmp=./conf$$-$RANDOM
28444 (umask 077 && mkdir "$tmp")
28445 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
28446 ac_tmp=$tmp
28447
28448 # Set up the scripts for CONFIG_FILES section.
28449 # No need to generate them if there are no CONFIG_FILES.
28450 # This happens for instance with `./config.status config.h'.
28451 if test -n "$CONFIG_FILES"; then
28452
28453
28454 ac_cr=`echo X | tr X '\015'`
28455 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28456 # But we know of no other shell where ac_cr would be empty at this
28457 # point, so we can use a bashism as a fallback.
28458 if test "x$ac_cr" = x; then
28459 eval ac_cr=\$\'\\r\'
28460 fi
28461 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28462 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28463 ac_cs_awk_cr='\\r'
28464 else
28465 ac_cs_awk_cr=$ac_cr
28466 fi
28467
28468 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
28469 _ACEOF
28470
28471
28472 {
28473 echo "cat >conf$$subs.awk <<_ACEOF" &&
28474 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28475 echo "_ACEOF"
28476 } >conf$$subs.sh ||
28477 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28478 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
28479 ac_delim='%!_!# '
28480 for ac_last_try in false false false false false :; do
28481 . ./conf$$subs.sh ||
28482 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28483
28484 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28485 if test $ac_delim_n = $ac_delim_num; then
28486 break
28487 elif $ac_last_try; then
28488 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28489 else
28490 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28491 fi
28492 done
28493 rm -f conf$$subs.sh
28494
28495 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28496 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
28497 _ACEOF
28498 sed -n '
28499 h
28500 s/^/S["/; s/!.*/"]=/
28501 p
28502 g
28503 s/^[^!]*!//
28504 :repl
28505 t repl
28506 s/'"$ac_delim"'$//
28507 t delim
28508 :nl
28509 h
28510 s/\(.\{148\}\)..*/\1/
28511 t more1
28512 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28513 p
28514 n
28515 b repl
28516 :more1
28517 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28518 p
28519 g
28520 s/.\{148\}//
28521 t nl
28522 :delim
28523 h
28524 s/\(.\{148\}\)..*/\1/
28525 t more2
28526 s/["\\]/\\&/g; s/^/"/; s/$/"/
28527 p
28528 b
28529 :more2
28530 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28531 p
28532 g
28533 s/.\{148\}//
28534 t delim
28535 ' <conf$$subs.awk | sed '
28536 /^[^""]/{
28537 N
28538 s/\n//
28539 }
28540 ' >>$CONFIG_STATUS || ac_write_fail=1
28541 rm -f conf$$subs.awk
28542 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28543 _ACAWK
28544 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
28545 for (key in S) S_is_set[key] = 1
28546 FS = "\a"
28547
28548 }
28549 {
28550 line = $ 0
28551 nfields = split(line, field, "@")
28552 substed = 0
28553 len = length(field[1])
28554 for (i = 2; i < nfields; i++) {
28555 key = field[i]
28556 keylen = length(key)
28557 if (S_is_set[key]) {
28558 value = S[key]
28559 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28560 len += length(value) + length(field[++i])
28561 substed = 1
28562 } else
28563 len += 1 + keylen
28564 }
28565
28566 print line
28567 }
28568
28569 _ACAWK
28570 _ACEOF
28571 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28572 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28573 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28574 else
28575 cat
28576 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
28577 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
28578 _ACEOF
28579
28580 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
28581 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
28582 # trailing colons and then remove the whole line if VPATH becomes empty
28583 # (actually we leave an empty line to preserve line numbers).
28584 if test "x$srcdir" = x.; then
28585 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
28586 h
28587 s///
28588 s/^/:/
28589 s/[ ]*$/:/
28590 s/:\$(srcdir):/:/g
28591 s/:\${srcdir}:/:/g
28592 s/:@srcdir@:/:/g
28593 s/^:*//
28594 s/:*$//
28595 x
28596 s/\(=[ ]*\).*/\1/
28597 G
28598 s/\n//
28599 s/^[^=]*=[ ]*$//
28600 }'
28601 fi
28602
28603 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28604 fi # test -n "$CONFIG_FILES"
28605
28606 # Set up the scripts for CONFIG_HEADERS section.
28607 # No need to generate them if there are no CONFIG_HEADERS.
28608 # This happens for instance with `./config.status Makefile'.
28609 if test -n "$CONFIG_HEADERS"; then
28610 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
28611 BEGIN {
28612 _ACEOF
28613
28614 # Transform confdefs.h into an awk script `defines.awk', embedded as
28615 # here-document in config.status, that substitutes the proper values into
28616 # config.h.in to produce config.h.
28617
28618 # Create a delimiter string that does not exist in confdefs.h, to ease
28619 # handling of long lines.
28620 ac_delim='%!_!# '
28621 for ac_last_try in false false :; do
28622 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
28623 if test -z "$ac_tt"; then
28624 break
28625 elif $ac_last_try; then
28626 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
28627 else
28628 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28629 fi
28630 done
28631
28632 # For the awk script, D is an array of macro values keyed by name,
28633 # likewise P contains macro parameters if any. Preserve backslash
28634 # newline sequences.
28635
28636 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28637 sed -n '
28638 s/.\{148\}/&'"$ac_delim"'/g
28639 t rset
28640 :rset
28641 s/^[ ]*#[ ]*define[ ][ ]*/ /
28642 t def
28643 d
28644 :def
28645 s/\\$//
28646 t bsnl
28647 s/["\\]/\\&/g
28648 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28649 D["\1"]=" \3"/p
28650 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28651 d
28652 :bsnl
28653 s/["\\]/\\&/g
28654 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28655 D["\1"]=" \3\\\\\\n"\\/p
28656 t cont
28657 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28658 t cont
28659 d
28660 :cont
28661 n
28662 s/.\{148\}/&'"$ac_delim"'/g
28663 t clear
28664 :clear
28665 s/\\$//
28666 t bsnlc
28667 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28668 d
28669 :bsnlc
28670 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28671 b cont
28672 ' <confdefs.h | sed '
28673 s/'"$ac_delim"'/"\\\
28674 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28675
28676 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28677 for (key in D) D_is_set[key] = 1
28678 FS = "\a"
28679 }
28680 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28681 line = \$ 0
28682 split(line, arg, " ")
28683 if (arg[1] == "#") {
28684 defundef = arg[2]
28685 mac1 = arg[3]
28686 } else {
28687 defundef = substr(arg[1], 2)
28688 mac1 = arg[2]
28689 }
28690 split(mac1, mac2, "(") #)
28691 macro = mac2[1]
28692 prefix = substr(line, 1, index(line, defundef) - 1)
28693 if (D_is_set[macro]) {
28694 # Preserve the white space surrounding the "#".
28695 print prefix "define", macro P[macro] D[macro]
28696 next
28697 } else {
28698 # Replace #undef with comments. This is necessary, for example,
28699 # in the case of _POSIX_SOURCE, which is predefined and required
28700 # on some systems where configure will not decide to define it.
28701 if (defundef == "undef") {
28702 print "/*", prefix defundef, macro, "*/"
28703 next
28704 }
28705 }
28706 }
28707 { print }
28708 _ACAWK
28709 _ACEOF
28710 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28711 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
28712 fi # test -n "$CONFIG_HEADERS"
28713
28714
28715 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28716 shift
28717 for ac_tag
28718 do
28719 case $ac_tag in
28720 :[FHLC]) ac_mode=$ac_tag; continue;;
28721 esac
28722 case $ac_mode$ac_tag in
28723 :[FHL]*:*);;
28724 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
28725 :[FH]-) ac_tag=-:-;;
28726 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28727 esac
28728 ac_save_IFS=$IFS
28729 IFS=:
28730 set x $ac_tag
28731 IFS=$ac_save_IFS
28732 shift
28733 ac_file=$1
28734 shift
28735
28736 case $ac_mode in
28737 :L) ac_source=$1;;
28738 :[FH])
28739 ac_file_inputs=
28740 for ac_f
28741 do
28742 case $ac_f in
28743 -) ac_f="$ac_tmp/stdin";;
28744 *) # Look for the file first in the build tree, then in the source tree
28745 # (if the path is not absolute). The absolute path cannot be DOS-style,
28746 # because $ac_f cannot contain `:'.
28747 test -f "$ac_f" ||
28748 case $ac_f in
28749 [\\/$]*) false;;
28750 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28751 esac ||
28752 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28753 esac
28754 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28755 as_fn_append ac_file_inputs " '$ac_f'"
28756 done
28757
28758 # Let's still pretend it is `configure' which instantiates (i.e., don't
28759 # use $as_me), people would be surprised to read:
28760 # /* config.h. Generated by config.status. */
28761 configure_input='Generated from '`
28762 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28763 `' by configure.'
28764 if test x"$ac_file" != x-; then
28765 configure_input="$ac_file. $configure_input"
28766 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28767 $as_echo "$as_me: creating $ac_file" >&6;}
28768 fi
28769 # Neutralize special characters interpreted by sed in replacement strings.
28770 case $configure_input in #(
28771 *\&* | *\|* | *\\* )
28772 ac_sed_conf_input=`$as_echo "$configure_input" |
28773 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28774 *) ac_sed_conf_input=$configure_input;;
28775 esac
28776
28777 case $ac_tag in
28778 *:-:* | *:-) cat >"$ac_tmp/stdin" \
28779 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
28780 esac
28781 ;;
28782 esac
28783
28784 ac_dir=`$as_dirname -- "$ac_file" ||
28785 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28786 X"$ac_file" : 'X\(//\)[^/]' \| \
28787 X"$ac_file" : 'X\(//\)$' \| \
28788 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28789 $as_echo X"$ac_file" |
28790 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28791 s//\1/
28792 q
28793 }
28794 /^X\(\/\/\)[^/].*/{
28795 s//\1/
28796 q
28797 }
28798 /^X\(\/\/\)$/{
28799 s//\1/
28800 q
28801 }
28802 /^X\(\/\).*/{
28803 s//\1/
28804 q
28805 }
28806 s/.*/./; q'`
28807 as_dir="$ac_dir"; as_fn_mkdir_p
28808 ac_builddir=.
28809
28810 case "$ac_dir" in
28811 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28812 *)
28813 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28814 # A ".." for each directory in $ac_dir_suffix.
28815 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28816 case $ac_top_builddir_sub in
28817 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28818 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28819 esac ;;
28820 esac
28821 ac_abs_top_builddir=$ac_pwd
28822 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28823 # for backward compatibility:
28824 ac_top_builddir=$ac_top_build_prefix
28825
28826 case $srcdir in
28827 .) # We are building in place.
28828 ac_srcdir=.
28829 ac_top_srcdir=$ac_top_builddir_sub
28830 ac_abs_top_srcdir=$ac_pwd ;;
28831 [\\/]* | ?:[\\/]* ) # Absolute name.
28832 ac_srcdir=$srcdir$ac_dir_suffix;
28833 ac_top_srcdir=$srcdir
28834 ac_abs_top_srcdir=$srcdir ;;
28835 *) # Relative name.
28836 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28837 ac_top_srcdir=$ac_top_build_prefix$srcdir
28838 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28839 esac
28840 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28841
28842
28843 case $ac_mode in
28844 :F)
28845 #
28846 # CONFIG_FILE
28847 #
28848
28849 case $INSTALL in
28850 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28851 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28852 esac
28853 ac_MKDIR_P=$MKDIR_P
28854 case $MKDIR_P in
28855 [\\/$]* | ?:[\\/]* ) ;;
28856 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28857 esac
28858 _ACEOF
28859
28860 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28861 # If the template does not know about datarootdir, expand it.
28862 # FIXME: This hack should be removed a few years after 2.60.
28863 ac_datarootdir_hack=; ac_datarootdir_seen=
28864 ac_sed_dataroot='
28865 /datarootdir/ {
28866 p
28867 q
28868 }
28869 /@datadir@/p
28870 /@docdir@/p
28871 /@infodir@/p
28872 /@localedir@/p
28873 /@mandir@/p'
28874 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28875 *datarootdir*) ac_datarootdir_seen=yes;;
28876 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28878 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28879 _ACEOF
28880 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28881 ac_datarootdir_hack='
28882 s&@datadir@&$datadir&g
28883 s&@docdir@&$docdir&g
28884 s&@infodir@&$infodir&g
28885 s&@localedir@&$localedir&g
28886 s&@mandir@&$mandir&g
28887 s&\\\${datarootdir}&$datarootdir&g' ;;
28888 esac
28889 _ACEOF
28890
28891 # Neutralize VPATH when `$srcdir' = `.'.
28892 # Shell code in configure.ac might set extrasub.
28893 # FIXME: do we really want to maintain this feature?
28894 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28895 ac_sed_extra="$ac_vpsub
28896 $extrasub
28897 _ACEOF
28898 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28899 :t
28900 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28901 s|@configure_input@|$ac_sed_conf_input|;t t
28902 s&@top_builddir@&$ac_top_builddir_sub&;t t
28903 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28904 s&@srcdir@&$ac_srcdir&;t t
28905 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28906 s&@top_srcdir@&$ac_top_srcdir&;t t
28907 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28908 s&@builddir@&$ac_builddir&;t t
28909 s&@abs_builddir@&$ac_abs_builddir&;t t
28910 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28911 s&@INSTALL@&$ac_INSTALL&;t t
28912 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28913 $ac_datarootdir_hack
28914 "
28915 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
28916 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28917
28918 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28919 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
28920 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
28921 "$ac_tmp/out"`; test -z "$ac_out"; } &&
28922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28923 which seems to be undefined. Please make sure it is defined" >&5
28924 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28925 which seems to be undefined. Please make sure it is defined" >&2;}
28926
28927 rm -f "$ac_tmp/stdin"
28928 case $ac_file in
28929 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
28930 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
28931 esac \
28932 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28933 ;;
28934 :H)
28935 #
28936 # CONFIG_HEADER
28937 #
28938 if test x"$ac_file" != x-; then
28939 {
28940 $as_echo "/* $configure_input */" \
28941 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
28942 } >"$ac_tmp/config.h" \
28943 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28944 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
28945 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28946 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28947 else
28948 rm -f "$ac_file"
28949 mv "$ac_tmp/config.h" "$ac_file" \
28950 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28951 fi
28952 else
28953 $as_echo "/* $configure_input */" \
28954 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
28955 || as_fn_error $? "could not create -" "$LINENO" 5
28956 fi
28957 # Compute "$ac_file"'s index in $config_headers.
28958 _am_arg="$ac_file"
28959 _am_stamp_count=1
28960 for _am_header in $config_headers :; do
28961 case $_am_header in
28962 $_am_arg | $_am_arg:* )
28963 break ;;
28964 * )
28965 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28966 esac
28967 done
28968 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28969 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28970 X"$_am_arg" : 'X\(//\)[^/]' \| \
28971 X"$_am_arg" : 'X\(//\)$' \| \
28972 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28973 $as_echo X"$_am_arg" |
28974 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28975 s//\1/
28976 q
28977 }
28978 /^X\(\/\/\)[^/].*/{
28979 s//\1/
28980 q
28981 }
28982 /^X\(\/\/\)$/{
28983 s//\1/
28984 q
28985 }
28986 /^X\(\/\).*/{
28987 s//\1/
28988 q
28989 }
28990 s/.*/./; q'`/stamp-h$_am_stamp_count
28991 ;;
28992
28993 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28994 $as_echo "$as_me: executing $ac_file commands" >&6;}
28995 ;;
28996 esac
28997
28998
28999 case $ac_file$ac_mode in
29000 "default-1":C)
29001 # Only add multilib support code if we just rebuilt the top-level
29002 # Makefile.
29003 case " $CONFIG_FILES " in
29004 *" Makefile "*)
29005 ac_file=Makefile . ${multi_basedir}/config-ml.in
29006 ;;
29007 esac ;;
29008 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
29009 # Older Autoconf quotes --file arguments for eval, but not when files
29010 # are listed without --file. Let's play safe and only enable the eval
29011 # if we detect the quoting.
29012 case $CONFIG_FILES in
29013 *\'*) eval set x "$CONFIG_FILES" ;;
29014 *) set x $CONFIG_FILES ;;
29015 esac
29016 shift
29017 for mf
29018 do
29019 # Strip MF so we end up with the name of the file.
29020 mf=`echo "$mf" | sed -e 's/:.*$//'`
29021 # Check whether this is an Automake generated Makefile or not.
29022 # We used to match only the files named 'Makefile.in', but
29023 # some people rename them; so instead we look at the file content.
29024 # Grep'ing the first line is not enough: some people post-process
29025 # each Makefile.in and add a new line on top of each file to say so.
29026 # Grep'ing the whole file is not good either: AIX grep has a line
29027 # limit of 2048, but all sed's we know have understand at least 4000.
29028 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
29029 dirpart=`$as_dirname -- "$mf" ||
29030 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29031 X"$mf" : 'X\(//\)[^/]' \| \
29032 X"$mf" : 'X\(//\)$' \| \
29033 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
29034 $as_echo X"$mf" |
29035 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29036 s//\1/
29037 q
29038 }
29039 /^X\(\/\/\)[^/].*/{
29040 s//\1/
29041 q
29042 }
29043 /^X\(\/\/\)$/{
29044 s//\1/
29045 q
29046 }
29047 /^X\(\/\).*/{
29048 s//\1/
29049 q
29050 }
29051 s/.*/./; q'`
29052 else
29053 continue
29054 fi
29055 # Extract the definition of DEPDIR, am__include, and am__quote
29056 # from the Makefile without running 'make'.
29057 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
29058 test -z "$DEPDIR" && continue
29059 am__include=`sed -n 's/^am__include = //p' < "$mf"`
29060 test -z "$am__include" && continue
29061 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
29062 # Find all dependency output files, they are included files with
29063 # $(DEPDIR) in their names. We invoke sed twice because it is the
29064 # simplest approach to changing $(DEPDIR) to its actual value in the
29065 # expansion.
29066 for file in `sed -n "
29067 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
29068 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
29069 # Make sure the directory exists.
29070 test -f "$dirpart/$file" && continue
29071 fdir=`$as_dirname -- "$file" ||
29072 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29073 X"$file" : 'X\(//\)[^/]' \| \
29074 X"$file" : 'X\(//\)$' \| \
29075 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
29076 $as_echo X"$file" |
29077 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29078 s//\1/
29079 q
29080 }
29081 /^X\(\/\/\)[^/].*/{
29082 s//\1/
29083 q
29084 }
29085 /^X\(\/\/\)$/{
29086 s//\1/
29087 q
29088 }
29089 /^X\(\/\).*/{
29090 s//\1/
29091 q
29092 }
29093 s/.*/./; q'`
29094 as_dir=$dirpart/$fdir; as_fn_mkdir_p
29095 # echo "creating $dirpart/$file"
29096 echo '# dummy' > "$dirpart/$file"
29097 done
29098 done
29099 }
29100 ;;
29101 "libtool":C)
29102
29103 # See if we are running on zsh, and set the options which allow our
29104 # commands through without removal of \ escapes.
29105 if test -n "${ZSH_VERSION+set}" ; then
29106 setopt NO_GLOB_SUBST
29107 fi
29108
29109 cfgfile="${ofile}T"
29110 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
29111 $RM "$cfgfile"
29112
29113 cat <<_LT_EOF >> "$cfgfile"
29114 #! $SHELL
29115
29116 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
29117 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
29118 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
29119 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
29120 #
29121 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
29122 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
29123 # Written by Gordon Matzigkeit, 1996
29124 #
29125 # This file is part of GNU Libtool.
29126 #
29127 # GNU Libtool is free software; you can redistribute it and/or
29128 # modify it under the terms of the GNU General Public License as
29129 # published by the Free Software Foundation; either version 2 of
29130 # the License, or (at your option) any later version.
29131 #
29132 # As a special exception to the GNU General Public License,
29133 # if you distribute this file as part of a program or library that
29134 # is built using GNU Libtool, you may include this file under the
29135 # same distribution terms that you use for the rest of that program.
29136 #
29137 # GNU Libtool is distributed in the hope that it will be useful,
29138 # but WITHOUT ANY WARRANTY; without even the implied warranty of
29139 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29140 # GNU General Public License for more details.
29141 #
29142 # You should have received a copy of the GNU General Public License
29143 # along with GNU Libtool; see the file COPYING. If not, a copy
29144 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
29145 # obtained by writing to the Free Software Foundation, Inc.,
29146 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
29147
29148
29149 # The names of the tagged configurations supported by this script.
29150 available_tags="FC "
29151
29152 # ### BEGIN LIBTOOL CONFIG
29153
29154 # A sed program that does not truncate output.
29155 SED=$lt_SED
29156
29157 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
29158 Xsed="\$SED -e 1s/^X//"
29159
29160 # A grep program that handles long lines.
29161 GREP=$lt_GREP
29162
29163 # An ERE matcher.
29164 EGREP=$lt_EGREP
29165
29166 # A literal string matcher.
29167 FGREP=$lt_FGREP
29168
29169 # Shell to use when invoking shell scripts.
29170 SHELL=$lt_SHELL
29171
29172 # An echo program that protects backslashes.
29173 ECHO=$lt_ECHO
29174
29175 # Which release of libtool.m4 was used?
29176 macro_version=$macro_version
29177 macro_revision=$macro_revision
29178
29179 # Whether or not to build shared libraries.
29180 build_libtool_libs=$enable_shared
29181
29182 # Whether or not to build static libraries.
29183 build_old_libs=$enable_static
29184
29185 # What type of objects to build.
29186 pic_mode=$pic_mode
29187
29188 # Whether or not to optimize for fast installation.
29189 fast_install=$enable_fast_install
29190
29191 # The host system.
29192 host_alias=$host_alias
29193 host=$host
29194 host_os=$host_os
29195
29196 # The build system.
29197 build_alias=$build_alias
29198 build=$build
29199 build_os=$build_os
29200
29201 # A BSD- or MS-compatible name lister.
29202 NM=$lt_NM
29203
29204 # Whether we need soft or hard links.
29205 LN_S=$lt_LN_S
29206
29207 # What is the maximum length of a command?
29208 max_cmd_len=$max_cmd_len
29209
29210 # Object file suffix (normally "o").
29211 objext=$ac_objext
29212
29213 # Executable file suffix (normally "").
29214 exeext=$exeext
29215
29216 # whether the shell understands "unset".
29217 lt_unset=$lt_unset
29218
29219 # turn spaces into newlines.
29220 SP2NL=$lt_lt_SP2NL
29221
29222 # turn newlines into spaces.
29223 NL2SP=$lt_lt_NL2SP
29224
29225 # An object symbol dumper.
29226 OBJDUMP=$lt_OBJDUMP
29227
29228 # Method to check whether dependent libraries are shared objects.
29229 deplibs_check_method=$lt_deplibs_check_method
29230
29231 # Command to use when deplibs_check_method == "file_magic".
29232 file_magic_cmd=$lt_file_magic_cmd
29233
29234 # The archiver.
29235 AR=$lt_AR
29236 AR_FLAGS=$lt_AR_FLAGS
29237
29238 # A symbol stripping program.
29239 STRIP=$lt_STRIP
29240
29241 # Commands used to install an old-style archive.
29242 RANLIB=$lt_RANLIB
29243 old_postinstall_cmds=$lt_old_postinstall_cmds
29244 old_postuninstall_cmds=$lt_old_postuninstall_cmds
29245
29246 # Whether to use a lock for old archive extraction.
29247 lock_old_archive_extraction=$lock_old_archive_extraction
29248
29249 # A C compiler.
29250 LTCC=$lt_CC
29251
29252 # LTCC compiler flags.
29253 LTCFLAGS=$lt_CFLAGS
29254
29255 # Take the output of nm and produce a listing of raw symbols and C names.
29256 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
29257
29258 # Transform the output of nm in a proper C declaration.
29259 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
29260
29261 # Transform the output of nm in a C name address pair.
29262 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
29263
29264 # Transform the output of nm in a C name address pair when lib prefix is needed.
29265 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
29266
29267 # The name of the directory that contains temporary libtool files.
29268 objdir=$objdir
29269
29270 # Used to examine libraries when file_magic_cmd begins with "file".
29271 MAGIC_CMD=$MAGIC_CMD
29272
29273 # Must we lock files when doing compilation?
29274 need_locks=$lt_need_locks
29275
29276 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
29277 DSYMUTIL=$lt_DSYMUTIL
29278
29279 # Tool to change global to local symbols on Mac OS X.
29280 NMEDIT=$lt_NMEDIT
29281
29282 # Tool to manipulate fat objects and archives on Mac OS X.
29283 LIPO=$lt_LIPO
29284
29285 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
29286 OTOOL=$lt_OTOOL
29287
29288 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
29289 OTOOL64=$lt_OTOOL64
29290
29291 # Old archive suffix (normally "a").
29292 libext=$libext
29293
29294 # Shared library suffix (normally ".so").
29295 shrext_cmds=$lt_shrext_cmds
29296
29297 # The commands to extract the exported symbol list from a shared archive.
29298 extract_expsyms_cmds=$lt_extract_expsyms_cmds
29299
29300 # Variables whose values should be saved in libtool wrapper scripts and
29301 # restored at link time.
29302 variables_saved_for_relink=$lt_variables_saved_for_relink
29303
29304 # Do we need the "lib" prefix for modules?
29305 need_lib_prefix=$need_lib_prefix
29306
29307 # Do we need a version for libraries?
29308 need_version=$need_version
29309
29310 # Library versioning type.
29311 version_type=$version_type
29312
29313 # Shared library runtime path variable.
29314 runpath_var=$runpath_var
29315
29316 # Shared library path variable.
29317 shlibpath_var=$shlibpath_var
29318
29319 # Is shlibpath searched before the hard-coded library search path?
29320 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
29321
29322 # Format of library name prefix.
29323 libname_spec=$lt_libname_spec
29324
29325 # List of archive names. First name is the real one, the rest are links.
29326 # The last name is the one that the linker finds with -lNAME
29327 library_names_spec=$lt_library_names_spec
29328
29329 # The coded name of the library, if different from the real name.
29330 soname_spec=$lt_soname_spec
29331
29332 # Permission mode override for installation of shared libraries.
29333 install_override_mode=$lt_install_override_mode
29334
29335 # Command to use after installation of a shared archive.
29336 postinstall_cmds=$lt_postinstall_cmds
29337
29338 # Command to use after uninstallation of a shared archive.
29339 postuninstall_cmds=$lt_postuninstall_cmds
29340
29341 # Commands used to finish a libtool library installation in a directory.
29342 finish_cmds=$lt_finish_cmds
29343
29344 # As "finish_cmds", except a single script fragment to be evaled but
29345 # not shown.
29346 finish_eval=$lt_finish_eval
29347
29348 # Whether we should hardcode library paths into libraries.
29349 hardcode_into_libs=$hardcode_into_libs
29350
29351 # Compile-time system search path for libraries.
29352 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
29353
29354 # Run-time system search path for libraries.
29355 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
29356
29357 # Whether dlopen is supported.
29358 dlopen_support=$enable_dlopen
29359
29360 # Whether dlopen of programs is supported.
29361 dlopen_self=$enable_dlopen_self
29362
29363 # Whether dlopen of statically linked programs is supported.
29364 dlopen_self_static=$enable_dlopen_self_static
29365
29366 # Commands to strip libraries.
29367 old_striplib=$lt_old_striplib
29368 striplib=$lt_striplib
29369
29370
29371 # The linker used to build libraries.
29372 LD=$lt_LD
29373
29374 # How to create reloadable object files.
29375 reload_flag=$lt_reload_flag
29376 reload_cmds=$lt_reload_cmds
29377
29378 # Commands used to build an old-style archive.
29379 old_archive_cmds=$lt_old_archive_cmds
29380
29381 # A language specific compiler.
29382 CC=$lt_compiler
29383
29384 # Is the compiler the GNU compiler?
29385 with_gcc=$GCC
29386
29387 # Compiler flag to turn off builtin functions.
29388 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
29389
29390 # How to pass a linker flag through the compiler.
29391 wl=$lt_lt_prog_compiler_wl
29392
29393 # Additional compiler flags for building library objects.
29394 pic_flag=$lt_lt_prog_compiler_pic
29395
29396 # Compiler flag to prevent dynamic linking.
29397 link_static_flag=$lt_lt_prog_compiler_static
29398
29399 # Does compiler simultaneously support -c and -o options?
29400 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
29401
29402 # Whether or not to add -lc for building shared libraries.
29403 build_libtool_need_lc=$archive_cmds_need_lc
29404
29405 # Whether or not to disallow shared libs when runtime libs are static.
29406 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
29407
29408 # Compiler flag to allow reflexive dlopens.
29409 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
29410
29411 # Compiler flag to generate shared objects directly from archives.
29412 whole_archive_flag_spec=$lt_whole_archive_flag_spec
29413
29414 # Whether the compiler copes with passing no objects directly.
29415 compiler_needs_object=$lt_compiler_needs_object
29416
29417 # Create an old-style archive from a shared archive.
29418 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
29419
29420 # Create a temporary old-style archive to link instead of a shared archive.
29421 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
29422
29423 # Commands used to build a shared archive.
29424 archive_cmds=$lt_archive_cmds
29425 archive_expsym_cmds=$lt_archive_expsym_cmds
29426
29427 # Commands used to build a loadable module if different from building
29428 # a shared archive.
29429 module_cmds=$lt_module_cmds
29430 module_expsym_cmds=$lt_module_expsym_cmds
29431
29432 # Whether we are building with GNU ld or not.
29433 with_gnu_ld=$lt_with_gnu_ld
29434
29435 # Flag that allows shared libraries with undefined symbols to be built.
29436 allow_undefined_flag=$lt_allow_undefined_flag
29437
29438 # Flag that enforces no undefined symbols.
29439 no_undefined_flag=$lt_no_undefined_flag
29440
29441 # Flag to hardcode \$libdir into a binary during linking.
29442 # This must work even if \$libdir does not exist
29443 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
29444
29445 # If ld is used when linking, flag to hardcode \$libdir into a binary
29446 # during linking. This must work even if \$libdir does not exist.
29447 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
29448
29449 # Whether we need a single "-rpath" flag with a separated argument.
29450 hardcode_libdir_separator=$lt_hardcode_libdir_separator
29451
29452 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29453 # DIR into the resulting binary.
29454 hardcode_direct=$hardcode_direct
29455
29456 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29457 # DIR into the resulting binary and the resulting library dependency is
29458 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29459 # library is relocated.
29460 hardcode_direct_absolute=$hardcode_direct_absolute
29461
29462 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29463 # into the resulting binary.
29464 hardcode_minus_L=$hardcode_minus_L
29465
29466 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29467 # into the resulting binary.
29468 hardcode_shlibpath_var=$hardcode_shlibpath_var
29469
29470 # Set to "yes" if building a shared library automatically hardcodes DIR
29471 # into the library and all subsequent libraries and executables linked
29472 # against it.
29473 hardcode_automatic=$hardcode_automatic
29474
29475 # Set to yes if linker adds runtime paths of dependent libraries
29476 # to runtime path list.
29477 inherit_rpath=$inherit_rpath
29478
29479 # Whether libtool must link a program against all its dependency libraries.
29480 link_all_deplibs=$link_all_deplibs
29481
29482 # Fix the shell variable \$srcfile for the compiler.
29483 fix_srcfile_path=$lt_fix_srcfile_path
29484
29485 # Set to "yes" if exported symbols are required.
29486 always_export_symbols=$always_export_symbols
29487
29488 # The commands to list exported symbols.
29489 export_symbols_cmds=$lt_export_symbols_cmds
29490
29491 # Symbols that should not be listed in the preloaded symbols.
29492 exclude_expsyms=$lt_exclude_expsyms
29493
29494 # Symbols that must always be exported.
29495 include_expsyms=$lt_include_expsyms
29496
29497 # Commands necessary for linking programs (against libraries) with templates.
29498 prelink_cmds=$lt_prelink_cmds
29499
29500 # Specify filename containing input files.
29501 file_list_spec=$lt_file_list_spec
29502
29503 # How to hardcode a shared library path into an executable.
29504 hardcode_action=$hardcode_action
29505
29506 # The directories searched by this compiler when creating a shared library.
29507 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
29508
29509 # Dependencies to place before and after the objects being linked to
29510 # create a shared library.
29511 predep_objects=$lt_predep_objects
29512 postdep_objects=$lt_postdep_objects
29513 predeps=$lt_predeps
29514 postdeps=$lt_postdeps
29515
29516 # The library search path used internally by the compiler when linking
29517 # a shared library.
29518 compiler_lib_search_path=$lt_compiler_lib_search_path
29519
29520 # ### END LIBTOOL CONFIG
29521
29522 _LT_EOF
29523
29524 case $host_os in
29525 aix3*)
29526 cat <<\_LT_EOF >> "$cfgfile"
29527 # AIX sometimes has problems with the GCC collect2 program. For some
29528 # reason, if we set the COLLECT_NAMES environment variable, the problems
29529 # vanish in a puff of smoke.
29530 if test "X${COLLECT_NAMES+set}" != Xset; then
29531 COLLECT_NAMES=
29532 export COLLECT_NAMES
29533 fi
29534 _LT_EOF
29535 ;;
29536 esac
29537
29538
29539 ltmain="$ac_aux_dir/ltmain.sh"
29540
29541
29542 # We use sed instead of cat because bash on DJGPP gets confused if
29543 # if finds mixed CR/LF and LF-only lines. Since sed operates in
29544 # text mode, it properly converts lines to CR/LF. This bash problem
29545 # is reportedly fixed, but why not run on old versions too?
29546 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
29547 || (rm -f "$cfgfile"; exit 1)
29548
29549 case $xsi_shell in
29550 yes)
29551 cat << \_LT_EOF >> "$cfgfile"
29552
29553 # func_dirname file append nondir_replacement
29554 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
29555 # otherwise set result to NONDIR_REPLACEMENT.
29556 func_dirname ()
29557 {
29558 case ${1} in
29559 */*) func_dirname_result="${1%/*}${2}" ;;
29560 * ) func_dirname_result="${3}" ;;
29561 esac
29562 }
29563
29564 # func_basename file
29565 func_basename ()
29566 {
29567 func_basename_result="${1##*/}"
29568 }
29569
29570 # func_dirname_and_basename file append nondir_replacement
29571 # perform func_basename and func_dirname in a single function
29572 # call:
29573 # dirname: Compute the dirname of FILE. If nonempty,
29574 # add APPEND to the result, otherwise set result
29575 # to NONDIR_REPLACEMENT.
29576 # value returned in "$func_dirname_result"
29577 # basename: Compute filename of FILE.
29578 # value retuned in "$func_basename_result"
29579 # Implementation must be kept synchronized with func_dirname
29580 # and func_basename. For efficiency, we do not delegate to
29581 # those functions but instead duplicate the functionality here.
29582 func_dirname_and_basename ()
29583 {
29584 case ${1} in
29585 */*) func_dirname_result="${1%/*}${2}" ;;
29586 * ) func_dirname_result="${3}" ;;
29587 esac
29588 func_basename_result="${1##*/}"
29589 }
29590
29591 # func_stripname prefix suffix name
29592 # strip PREFIX and SUFFIX off of NAME.
29593 # PREFIX and SUFFIX must not contain globbing or regex special
29594 # characters, hashes, percent signs, but SUFFIX may contain a leading
29595 # dot (in which case that matches only a dot).
29596 func_stripname ()
29597 {
29598 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
29599 # positional parameters, so assign one to ordinary parameter first.
29600 func_stripname_result=${3}
29601 func_stripname_result=${func_stripname_result#"${1}"}
29602 func_stripname_result=${func_stripname_result%"${2}"}
29603 }
29604
29605 # func_opt_split
29606 func_opt_split ()
29607 {
29608 func_opt_split_opt=${1%%=*}
29609 func_opt_split_arg=${1#*=}
29610 }
29611
29612 # func_lo2o object
29613 func_lo2o ()
29614 {
29615 case ${1} in
29616 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
29617 *) func_lo2o_result=${1} ;;
29618 esac
29619 }
29620
29621 # func_xform libobj-or-source
29622 func_xform ()
29623 {
29624 func_xform_result=${1%.*}.lo
29625 }
29626
29627 # func_arith arithmetic-term...
29628 func_arith ()
29629 {
29630 func_arith_result=$(( $* ))
29631 }
29632
29633 # func_len string
29634 # STRING may not start with a hyphen.
29635 func_len ()
29636 {
29637 func_len_result=${#1}
29638 }
29639
29640 _LT_EOF
29641 ;;
29642 *) # Bourne compatible functions.
29643 cat << \_LT_EOF >> "$cfgfile"
29644
29645 # func_dirname file append nondir_replacement
29646 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
29647 # otherwise set result to NONDIR_REPLACEMENT.
29648 func_dirname ()
29649 {
29650 # Extract subdirectory from the argument.
29651 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
29652 if test "X$func_dirname_result" = "X${1}"; then
29653 func_dirname_result="${3}"
29654 else
29655 func_dirname_result="$func_dirname_result${2}"
29656 fi
29657 }
29658
29659 # func_basename file
29660 func_basename ()
29661 {
29662 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
29663 }
29664
29665
29666 # func_stripname prefix suffix name
29667 # strip PREFIX and SUFFIX off of NAME.
29668 # PREFIX and SUFFIX must not contain globbing or regex special
29669 # characters, hashes, percent signs, but SUFFIX may contain a leading
29670 # dot (in which case that matches only a dot).
29671 # func_strip_suffix prefix name
29672 func_stripname ()
29673 {
29674 case ${2} in
29675 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
29676 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
29677 esac
29678 }
29679
29680 # sed scripts:
29681 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
29682 my_sed_long_arg='1s/^-[^=]*=//'
29683
29684 # func_opt_split
29685 func_opt_split ()
29686 {
29687 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
29688 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
29689 }
29690
29691 # func_lo2o object
29692 func_lo2o ()
29693 {
29694 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
29695 }
29696
29697 # func_xform libobj-or-source
29698 func_xform ()
29699 {
29700 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
29701 }
29702
29703 # func_arith arithmetic-term...
29704 func_arith ()
29705 {
29706 func_arith_result=`expr "$@"`
29707 }
29708
29709 # func_len string
29710 # STRING may not start with a hyphen.
29711 func_len ()
29712 {
29713 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
29714 }
29715
29716 _LT_EOF
29717 esac
29718
29719 case $lt_shell_append in
29720 yes)
29721 cat << \_LT_EOF >> "$cfgfile"
29722
29723 # func_append var value
29724 # Append VALUE to the end of shell variable VAR.
29725 func_append ()
29726 {
29727 eval "$1+=\$2"
29728 }
29729 _LT_EOF
29730 ;;
29731 *)
29732 cat << \_LT_EOF >> "$cfgfile"
29733
29734 # func_append var value
29735 # Append VALUE to the end of shell variable VAR.
29736 func_append ()
29737 {
29738 eval "$1=\$$1\$2"
29739 }
29740
29741 _LT_EOF
29742 ;;
29743 esac
29744
29745
29746 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
29747 || (rm -f "$cfgfile"; exit 1)
29748
29749 mv -f "$cfgfile" "$ofile" ||
29750 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
29751 chmod +x "$ofile"
29752
29753
29754 cat <<_LT_EOF >> "$ofile"
29755
29756 # ### BEGIN LIBTOOL TAG CONFIG: FC
29757
29758 # The linker used to build libraries.
29759 LD=$lt_LD_FC
29760
29761 # How to create reloadable object files.
29762 reload_flag=$lt_reload_flag_FC
29763 reload_cmds=$lt_reload_cmds_FC
29764
29765 # Commands used to build an old-style archive.
29766 old_archive_cmds=$lt_old_archive_cmds_FC
29767
29768 # A language specific compiler.
29769 CC=$lt_compiler_FC
29770
29771 # Is the compiler the GNU compiler?
29772 with_gcc=$GCC_FC
29773
29774 # Compiler flag to turn off builtin functions.
29775 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
29776
29777 # How to pass a linker flag through the compiler.
29778 wl=$lt_lt_prog_compiler_wl_FC
29779
29780 # Additional compiler flags for building library objects.
29781 pic_flag=$lt_lt_prog_compiler_pic_FC
29782
29783 # Compiler flag to prevent dynamic linking.
29784 link_static_flag=$lt_lt_prog_compiler_static_FC
29785
29786 # Does compiler simultaneously support -c and -o options?
29787 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
29788
29789 # Whether or not to add -lc for building shared libraries.
29790 build_libtool_need_lc=$archive_cmds_need_lc_FC
29791
29792 # Whether or not to disallow shared libs when runtime libs are static.
29793 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
29794
29795 # Compiler flag to allow reflexive dlopens.
29796 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
29797
29798 # Compiler flag to generate shared objects directly from archives.
29799 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
29800
29801 # Whether the compiler copes with passing no objects directly.
29802 compiler_needs_object=$lt_compiler_needs_object_FC
29803
29804 # Create an old-style archive from a shared archive.
29805 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
29806
29807 # Create a temporary old-style archive to link instead of a shared archive.
29808 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
29809
29810 # Commands used to build a shared archive.
29811 archive_cmds=$lt_archive_cmds_FC
29812 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
29813
29814 # Commands used to build a loadable module if different from building
29815 # a shared archive.
29816 module_cmds=$lt_module_cmds_FC
29817 module_expsym_cmds=$lt_module_expsym_cmds_FC
29818
29819 # Whether we are building with GNU ld or not.
29820 with_gnu_ld=$lt_with_gnu_ld_FC
29821
29822 # Flag that allows shared libraries with undefined symbols to be built.
29823 allow_undefined_flag=$lt_allow_undefined_flag_FC
29824
29825 # Flag that enforces no undefined symbols.
29826 no_undefined_flag=$lt_no_undefined_flag_FC
29827
29828 # Flag to hardcode \$libdir into a binary during linking.
29829 # This must work even if \$libdir does not exist
29830 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
29831
29832 # If ld is used when linking, flag to hardcode \$libdir into a binary
29833 # during linking. This must work even if \$libdir does not exist.
29834 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
29835
29836 # Whether we need a single "-rpath" flag with a separated argument.
29837 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
29838
29839 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29840 # DIR into the resulting binary.
29841 hardcode_direct=$hardcode_direct_FC
29842
29843 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29844 # DIR into the resulting binary and the resulting library dependency is
29845 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29846 # library is relocated.
29847 hardcode_direct_absolute=$hardcode_direct_absolute_FC
29848
29849 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29850 # into the resulting binary.
29851 hardcode_minus_L=$hardcode_minus_L_FC
29852
29853 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29854 # into the resulting binary.
29855 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
29856
29857 # Set to "yes" if building a shared library automatically hardcodes DIR
29858 # into the library and all subsequent libraries and executables linked
29859 # against it.
29860 hardcode_automatic=$hardcode_automatic_FC
29861
29862 # Set to yes if linker adds runtime paths of dependent libraries
29863 # to runtime path list.
29864 inherit_rpath=$inherit_rpath_FC
29865
29866 # Whether libtool must link a program against all its dependency libraries.
29867 link_all_deplibs=$link_all_deplibs_FC
29868
29869 # Fix the shell variable \$srcfile for the compiler.
29870 fix_srcfile_path=$lt_fix_srcfile_path_FC
29871
29872 # Set to "yes" if exported symbols are required.
29873 always_export_symbols=$always_export_symbols_FC
29874
29875 # The commands to list exported symbols.
29876 export_symbols_cmds=$lt_export_symbols_cmds_FC
29877
29878 # Symbols that should not be listed in the preloaded symbols.
29879 exclude_expsyms=$lt_exclude_expsyms_FC
29880
29881 # Symbols that must always be exported.
29882 include_expsyms=$lt_include_expsyms_FC
29883
29884 # Commands necessary for linking programs (against libraries) with templates.
29885 prelink_cmds=$lt_prelink_cmds_FC
29886
29887 # Specify filename containing input files.
29888 file_list_spec=$lt_file_list_spec_FC
29889
29890 # How to hardcode a shared library path into an executable.
29891 hardcode_action=$hardcode_action_FC
29892
29893 # The directories searched by this compiler when creating a shared library.
29894 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
29895
29896 # Dependencies to place before and after the objects being linked to
29897 # create a shared library.
29898 predep_objects=$lt_predep_objects_FC
29899 postdep_objects=$lt_postdep_objects_FC
29900 predeps=$lt_predeps_FC
29901 postdeps=$lt_postdeps_FC
29902
29903 # The library search path used internally by the compiler when linking
29904 # a shared library.
29905 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
29906
29907 # ### END LIBTOOL TAG CONFIG: FC
29908 _LT_EOF
29909
29910 ;;
29911 "gstdint.h":C)
29912 if test "$GCC" = yes; then
29913 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
29914 else
29915 echo "/* generated for $CC */" > tmp-stdint.h
29916 fi
29917
29918 sed 's/^ *//' >> tmp-stdint.h <<EOF
29919
29920 #ifndef GCC_GENERATED_STDINT_H
29921 #define GCC_GENERATED_STDINT_H 1
29922
29923 #include <sys/types.h>
29924 EOF
29925
29926 if test "$acx_cv_header_stdint" != stdint.h; then
29927 echo "#include <stddef.h>" >> tmp-stdint.h
29928 fi
29929 if test "$acx_cv_header_stdint" != stddef.h; then
29930 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
29931 fi
29932
29933 sed 's/^ *//' >> tmp-stdint.h <<EOF
29934 /* glibc uses these symbols as guards to prevent redefinitions. */
29935 #ifdef __int8_t_defined
29936 #define _INT8_T
29937 #define _INT16_T
29938 #define _INT32_T
29939 #endif
29940 #ifdef __uint32_t_defined
29941 #define _UINT32_T
29942 #endif
29943
29944 EOF
29945
29946 # ----------------- done header, emit basic int types -------------
29947 if test "$acx_cv_header_stdint" = stddef.h; then
29948 sed 's/^ *//' >> tmp-stdint.h <<EOF
29949
29950 #ifndef _UINT8_T
29951 #define _UINT8_T
29952 #ifndef __uint8_t_defined
29953 #define __uint8_t_defined
29954 #ifndef uint8_t
29955 typedef unsigned $acx_cv_type_int8_t uint8_t;
29956 #endif
29957 #endif
29958 #endif
29959
29960 #ifndef _UINT16_T
29961 #define _UINT16_T
29962 #ifndef __uint16_t_defined
29963 #define __uint16_t_defined
29964 #ifndef uint16_t
29965 typedef unsigned $acx_cv_type_int16_t uint16_t;
29966 #endif
29967 #endif
29968 #endif
29969
29970 #ifndef _UINT32_T
29971 #define _UINT32_T
29972 #ifndef __uint32_t_defined
29973 #define __uint32_t_defined
29974 #ifndef uint32_t
29975 typedef unsigned $acx_cv_type_int32_t uint32_t;
29976 #endif
29977 #endif
29978 #endif
29979
29980 #ifndef _INT8_T
29981 #define _INT8_T
29982 #ifndef __int8_t_defined
29983 #define __int8_t_defined
29984 #ifndef int8_t
29985 typedef $acx_cv_type_int8_t int8_t;
29986 #endif
29987 #endif
29988 #endif
29989
29990 #ifndef _INT16_T
29991 #define _INT16_T
29992 #ifndef __int16_t_defined
29993 #define __int16_t_defined
29994 #ifndef int16_t
29995 typedef $acx_cv_type_int16_t int16_t;
29996 #endif
29997 #endif
29998 #endif
29999
30000 #ifndef _INT32_T
30001 #define _INT32_T
30002 #ifndef __int32_t_defined
30003 #define __int32_t_defined
30004 #ifndef int32_t
30005 typedef $acx_cv_type_int32_t int32_t;
30006 #endif
30007 #endif
30008 #endif
30009 EOF
30010 elif test "$ac_cv_type_u_int32_t" = yes; then
30011 sed 's/^ *//' >> tmp-stdint.h <<EOF
30012
30013 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
30014 #ifndef _INT8_T
30015 #define _INT8_T
30016 #endif
30017 #ifndef _INT16_T
30018 #define _INT16_T
30019 #endif
30020 #ifndef _INT32_T
30021 #define _INT32_T
30022 #endif
30023
30024 #ifndef _UINT8_T
30025 #define _UINT8_T
30026 #ifndef __uint8_t_defined
30027 #define __uint8_t_defined
30028 #ifndef uint8_t
30029 typedef u_int8_t uint8_t;
30030 #endif
30031 #endif
30032 #endif
30033
30034 #ifndef _UINT16_T
30035 #define _UINT16_T
30036 #ifndef __uint16_t_defined
30037 #define __uint16_t_defined
30038 #ifndef uint16_t
30039 typedef u_int16_t uint16_t;
30040 #endif
30041 #endif
30042 #endif
30043
30044 #ifndef _UINT32_T
30045 #define _UINT32_T
30046 #ifndef __uint32_t_defined
30047 #define __uint32_t_defined
30048 #ifndef uint32_t
30049 typedef u_int32_t uint32_t;
30050 #endif
30051 #endif
30052 #endif
30053 EOF
30054 else
30055 sed 's/^ *//' >> tmp-stdint.h <<EOF
30056
30057 /* Some systems have guard macros to prevent redefinitions, define them. */
30058 #ifndef _INT8_T
30059 #define _INT8_T
30060 #endif
30061 #ifndef _INT16_T
30062 #define _INT16_T
30063 #endif
30064 #ifndef _INT32_T
30065 #define _INT32_T
30066 #endif
30067 #ifndef _UINT8_T
30068 #define _UINT8_T
30069 #endif
30070 #ifndef _UINT16_T
30071 #define _UINT16_T
30072 #endif
30073 #ifndef _UINT32_T
30074 #define _UINT32_T
30075 #endif
30076 EOF
30077 fi
30078
30079 # ------------- done basic int types, emit int64_t types ------------
30080 if test "$ac_cv_type_uint64_t" = yes; then
30081 sed 's/^ *//' >> tmp-stdint.h <<EOF
30082
30083 /* system headers have good uint64_t and int64_t */
30084 #ifndef _INT64_T
30085 #define _INT64_T
30086 #endif
30087 #ifndef _UINT64_T
30088 #define _UINT64_T
30089 #endif
30090 EOF
30091 elif test "$ac_cv_type_u_int64_t" = yes; then
30092 sed 's/^ *//' >> tmp-stdint.h <<EOF
30093
30094 /* system headers have an u_int64_t (and int64_t) */
30095 #ifndef _INT64_T
30096 #define _INT64_T
30097 #endif
30098 #ifndef _UINT64_T
30099 #define _UINT64_T
30100 #ifndef __uint64_t_defined
30101 #define __uint64_t_defined
30102 #ifndef uint64_t
30103 typedef u_int64_t uint64_t;
30104 #endif
30105 #endif
30106 #endif
30107 EOF
30108 elif test -n "$acx_cv_type_int64_t"; then
30109 sed 's/^ *//' >> tmp-stdint.h <<EOF
30110
30111 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
30112 #ifndef _INT64_T
30113 #define _INT64_T
30114 #ifndef int64_t
30115 typedef $acx_cv_type_int64_t int64_t;
30116 #endif
30117 #endif
30118 #ifndef _UINT64_T
30119 #define _UINT64_T
30120 #ifndef __uint64_t_defined
30121 #define __uint64_t_defined
30122 #ifndef uint64_t
30123 typedef unsigned $acx_cv_type_int64_t uint64_t;
30124 #endif
30125 #endif
30126 #endif
30127 EOF
30128 else
30129 sed 's/^ *//' >> tmp-stdint.h <<EOF
30130
30131 /* some common heuristics for int64_t, using compiler-specific tests */
30132 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
30133 #ifndef _INT64_T
30134 #define _INT64_T
30135 #ifndef __int64_t_defined
30136 #ifndef int64_t
30137 typedef long long int64_t;
30138 #endif
30139 #endif
30140 #endif
30141 #ifndef _UINT64_T
30142 #define _UINT64_T
30143 #ifndef uint64_t
30144 typedef unsigned long long uint64_t;
30145 #endif
30146 #endif
30147
30148 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
30149 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
30150 does not implement __extension__. But that compiler doesn't define
30151 __GNUC_MINOR__. */
30152 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
30153 # define __extension__
30154 # endif
30155
30156 # ifndef _INT64_T
30157 # define _INT64_T
30158 # ifndef int64_t
30159 __extension__ typedef long long int64_t;
30160 # endif
30161 # endif
30162 # ifndef _UINT64_T
30163 # define _UINT64_T
30164 # ifndef uint64_t
30165 __extension__ typedef unsigned long long uint64_t;
30166 # endif
30167 # endif
30168
30169 #elif !defined __STRICT_ANSI__
30170 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
30171
30172 # ifndef _INT64_T
30173 # define _INT64_T
30174 # ifndef int64_t
30175 typedef __int64 int64_t;
30176 # endif
30177 # endif
30178 # ifndef _UINT64_T
30179 # define _UINT64_T
30180 # ifndef uint64_t
30181 typedef unsigned __int64 uint64_t;
30182 # endif
30183 # endif
30184 # endif /* compiler */
30185
30186 #endif /* ANSI version */
30187 EOF
30188 fi
30189
30190 # ------------- done int64_t types, emit intptr types ------------
30191 if test "$ac_cv_type_uintptr_t" != yes; then
30192 sed 's/^ *//' >> tmp-stdint.h <<EOF
30193
30194 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
30195 #ifndef __uintptr_t_defined
30196 #ifndef uintptr_t
30197 typedef u$acx_cv_type_intptr_t uintptr_t;
30198 #endif
30199 #endif
30200 #ifndef __intptr_t_defined
30201 #ifndef intptr_t
30202 typedef $acx_cv_type_intptr_t intptr_t;
30203 #endif
30204 #endif
30205 EOF
30206 fi
30207
30208 # ------------- done intptr types, emit int_least types ------------
30209 if test "$ac_cv_type_int_least32_t" != yes; then
30210 sed 's/^ *//' >> tmp-stdint.h <<EOF
30211
30212 /* Define int_least types */
30213 typedef int8_t int_least8_t;
30214 typedef int16_t int_least16_t;
30215 typedef int32_t int_least32_t;
30216 #ifdef _INT64_T
30217 typedef int64_t int_least64_t;
30218 #endif
30219
30220 typedef uint8_t uint_least8_t;
30221 typedef uint16_t uint_least16_t;
30222 typedef uint32_t uint_least32_t;
30223 #ifdef _UINT64_T
30224 typedef uint64_t uint_least64_t;
30225 #endif
30226 EOF
30227 fi
30228
30229 # ------------- done intptr types, emit int_fast types ------------
30230 if test "$ac_cv_type_int_fast32_t" != yes; then
30231 sed 's/^ *//' >> tmp-stdint.h <<EOF
30232
30233 /* Define int_fast types. short is often slow */
30234 typedef int8_t int_fast8_t;
30235 typedef int int_fast16_t;
30236 typedef int32_t int_fast32_t;
30237 #ifdef _INT64_T
30238 typedef int64_t int_fast64_t;
30239 #endif
30240
30241 typedef uint8_t uint_fast8_t;
30242 typedef unsigned int uint_fast16_t;
30243 typedef uint32_t uint_fast32_t;
30244 #ifdef _UINT64_T
30245 typedef uint64_t uint_fast64_t;
30246 #endif
30247 EOF
30248 fi
30249
30250 if test "$ac_cv_type_uintmax_t" != yes; then
30251 sed 's/^ *//' >> tmp-stdint.h <<EOF
30252
30253 /* Define intmax based on what we found */
30254 #ifndef intmax_t
30255 #ifdef _INT64_T
30256 typedef int64_t intmax_t;
30257 #else
30258 typedef long intmax_t;
30259 #endif
30260 #endif
30261 #ifndef uintmax_t
30262 #ifdef _UINT64_T
30263 typedef uint64_t uintmax_t;
30264 #else
30265 typedef unsigned long uintmax_t;
30266 #endif
30267 #endif
30268 EOF
30269 fi
30270
30271 sed 's/^ *//' >> tmp-stdint.h <<EOF
30272
30273 #endif /* GCC_GENERATED_STDINT_H */
30274 EOF
30275
30276 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
30277 rm -f tmp-stdint.h
30278 else
30279 mv -f tmp-stdint.h gstdint.h
30280 fi
30281
30282 ;;
30283
30284 esac
30285 done # for ac_tag
30286
30287
30288 as_fn_exit 0
30289 _ACEOF
30290 ac_clean_files=$ac_clean_files_save
30291
30292 test $ac_write_fail = 0 ||
30293 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
30294
30295
30296 # configure is writing to config.log, and then calls config.status.
30297 # config.status does its own redirection, appending to config.log.
30298 # Unfortunately, on DOS this fails, as config.log is still kept open
30299 # by configure, so config.status won't be able to write to it; its
30300 # output is simply discarded. So we exec the FD to /dev/null,
30301 # effectively closing config.log, so it can be properly (re)opened and
30302 # appended to by config.status. When coming back to configure, we
30303 # need to make the FD available again.
30304 if test "$no_create" != yes; then
30305 ac_cs_success=:
30306 ac_config_status_args=
30307 test "$silent" = yes &&
30308 ac_config_status_args="$ac_config_status_args --quiet"
30309 exec 5>/dev/null
30310 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30311 exec 5>>config.log
30312 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30313 # would make configure fail if this is the last instruction.
30314 $ac_cs_success || as_fn_exit 1
30315 fi
30316 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30318 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
30319 fi
30320