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 16DUALCASE=1; export DUALCASE # for MKS sh 17if 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 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_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. 43if 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 --' 47elif (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' 50else 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' 70fi 71 72# The user is always right. 73if 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 } 79fi 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.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 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 100IFS=$as_save_IFS 101 102 ;; 103esac 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. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 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. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export 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. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $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 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if 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 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -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 199test \$(( 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 210else 211 as_have_required=no 212fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217as_found=false 218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219do 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 233fi 234fi 235 done;; 236 esac 237 as_found=false 238done 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 242fi; } 243IFS=$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. 252BASH_ENV=/dev/null 253ENV=/dev/null 254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260esac 261exec $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 265exit 255 266fi 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 281fi 282fi 283fi 284SHELL=${CONFIG_SHELL-/bin/sh} 285export SHELL 286# Unset more variables known to interfere with behavior of common tools. 287CLICOLOR_FORCE= GREP_OPTIONS= 288unset CLICOLOR_FORCE GREP_OPTIONS 289 290## --------------------- ## 291## M4sh Shell Functions. ## 292## --------------------- ## 293# as_fn_unset VAR 294# --------------- 295# Portably unset VAR. 296as_fn_unset () 297{ 298 { eval $1=; unset $1;} 299} 300as_unset=as_fn_unset 301 302# as_fn_set_status STATUS 303# ----------------------- 304# Set $? to STATUS, without forking. 305as_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. 313as_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. 323as_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. 371as_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. 381if (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 }' 386else 387 as_fn_append () 388 { 389 eval $1=\$$1\$2 390 } 391fi # 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. 398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 399 eval 'as_fn_arith () 400 { 401 as_val=$(( $* )) 402 }' 403else 404 as_fn_arith () 405 { 406 as_val=`expr "$@" || test $? -eq 1` 407 } 408fi # 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. 416as_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 427if expr a : '\(a\)' >/dev/null 2>&1 && 428 test "X`expr 00001 : '.*\(...\)'`" = X001; then 429 as_expr=expr 430else 431 as_expr=false 432fi 433 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 435 as_basename=basename 436else 437 as_basename=false 438fi 439 440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 441 as_dirname=dirname 442else 443 as_dirname=false 444fi 445 446as_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. 466as_cr_letters='abcdefghijklmnopqrstuvwxyz' 467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 468as_cr_Letters=$as_cr_letters$as_cr_LETTERS 469as_cr_digits='0123456789' 470as_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 508ECHO_C= ECHO_N= ECHO_T= 509case `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';; 519esac 520 521rm -f conf$$ conf$$.exe conf$$.file 522if test -d conf$$.dir; then 523 rm -f conf$$.dir/conf$$.file 524else 525 rm -f conf$$.dir 526 mkdir conf$$.dir 2>/dev/null 527fi 528if (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 542else 543 as_ln_s='cp -pR' 544fi 545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 546rmdir conf$$.dir 2>/dev/null 547 548if mkdir -p . 2>/dev/null; then 549 as_mkdir_p='mkdir -p "$as_dir"' 550else 551 test -d ./-p && rmdir ./-p 552 as_mkdir_p=false 553fi 554 555as_test_x='test -x' 556as_executable_p=as_fn_executable_p 557 558# Sed expression to map a string onto a valid CPP name. 559as_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. 562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 563 564SHELL=${CONFIG_SHELL-/bin/sh} 565 566 567test -n "$DJDIR" || exec 7<&0 </dev/null 568exec 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. 573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 574 575# 576# Initializations. 577# 578ac_default_prefix=/usr/local 579ac_clean_files= 580ac_config_libobj_dir=. 581LIBOBJS= 582cross_compiling=no 583subdirs= 584MFLAGS= 585MAKEFLAGS= 586 587# Identity of this package. 588PACKAGE_NAME='GNU Fortran Runtime Library' 589PACKAGE_TARNAME='libgfortran' 590PACKAGE_VERSION='0.3' 591PACKAGE_STRING='GNU Fortran Runtime Library 0.3' 592PACKAGE_BUGREPORT='' 593PACKAGE_URL='http://www.gnu.org/software/libgfortran/' 594 595# Factoring default headers for most tests. 596ac_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 631ac_header_list= 632ac_func_list= 633ac_c_werror_flag= 634ac_c_werror_flag= 635ac_subst_vars='am__EXEEXT_FALSE 636am__EXEEXT_TRUE 637LTLIBOBJS 638LIBOBJS 639get_gcc_base_ver 640HAVE_AVX128_FALSE 641HAVE_AVX128_TRUE 642IEEE_FLAGS 643IEEE_SUPPORT 644IEEE_SUPPORT_FALSE 645IEEE_SUPPORT_TRUE 646FPU_HOST_HEADER 647LIBGFOR_BUILD_QUAD_FALSE 648LIBGFOR_BUILD_QUAD_TRUE 649LIBQUADINCLUDE 650LIBQUADLIB_DEP 651LIBQUADLIB 652LIBQUADSPEC 653extra_ldflags_libgfortran 654ac_ct_FC 655FCFLAGS 656FC 657enable_static 658enable_shared 659lt_host_flags 660OTOOL64 661OTOOL 662LIPO 663NMEDIT 664DSYMUTIL 665OBJDUMP 666LN_S 667NM 668ac_ct_DUMPBIN 669DUMPBIN 670LIBTOOL 671RANLIB 672AR 673AS 674HAVE_HWCAP_FALSE 675HAVE_HWCAP_TRUE 676HWCAP_LDFLAGS 677LD 678FGREP 679SED 680SECTION_FLAGS 681LIBGFOR_MINIMAL_FALSE 682LIBGFOR_MINIMAL_TRUE 683LIBGFOR_USE_SYMVER_SUN_FALSE 684LIBGFOR_USE_SYMVER_SUN_TRUE 685LIBGFOR_USE_SYMVER_GNU_FALSE 686LIBGFOR_USE_SYMVER_GNU_TRUE 687LIBGFOR_USE_SYMVER_FALSE 688LIBGFOR_USE_SYMVER_TRUE 689AM_CFLAGS 690AM_FCFLAGS 691toolexeclibdir 692toolexecdir 693EGREP 694GREP 695CPP 696am__fastdepCC_FALSE 697am__fastdepCC_TRUE 698CCDEPMODE 699am__nodep 700AMDEPBACKSLASH 701AMDEP_FALSE 702AMDEP_TRUE 703am__quote 704am__include 705DEPDIR 706OBJEXT 707EXEEXT 708ac_ct_CC 709CPPFLAGS 710LDFLAGS 711CFLAGS 712CC 713multi_basedir 714MAINT 715MAINTAINER_MODE_FALSE 716MAINTAINER_MODE_TRUE 717AM_BACKSLASH 718AM_DEFAULT_VERBOSITY 719AM_DEFAULT_V 720AM_V 721am__untar 722am__tar 723AMTAR 724am__leading_dot 725SET_MAKE 726AWK 727mkdir_p 728MKDIR_P 729INSTALL_STRIP_PROGRAM 730STRIP 731install_sh 732MAKEINFO 733AUTOHEADER 734AUTOMAKE 735AUTOCONF 736ACLOCAL 737VERSION 738PACKAGE 739CYGPATH_W 740am__isrc 741INSTALL_DATA 742INSTALL_SCRIPT 743INSTALL_PROGRAM 744target_noncanonical 745target_os 746target_vendor 747target_cpu 748target 749host_os 750host_vendor 751host_cpu 752host 753onestep 754onestep_FALSE 755onestep_TRUE 756target_subdir 757host_subdir 758build_subdir 759build_libsubdir 760build_os 761build_vendor 762build_cpu 763build 764target_alias 765host_alias 766build_alias 767LIBS 768ECHO_T 769ECHO_N 770ECHO_C 771DEFS 772mandir 773localedir 774libdir 775psdir 776pdfdir 777dvidir 778htmldir 779infodir 780docdir 781oldincludedir 782includedir 783localstatedir 784sharedstatedir 785sysconfdir 786datadir 787datarootdir 788libexecdir 789sbindir 790bindir 791program_transform_name 792prefix 793exec_prefix 794PACKAGE_URL 795PACKAGE_BUGREPORT 796PACKAGE_STRING 797PACKAGE_VERSION 798PACKAGE_TARNAME 799PACKAGE_NAME 800PATH_SEPARATOR 801SHELL' 802ac_subst_files='' 803ac_user_opts=' 804enable_option_checking 805with_build_libsubdir 806enable_version_specific_runtime_libs 807enable_intermodule 808enable_silent_rules 809enable_maintainer_mode 810enable_multilib 811enable_dependency_tracking 812with_toolexeclibdir 813enable_cet 814enable_symvers 815with_gnu_ld 816enable_shared 817enable_static 818with_pic 819enable_fast_install 820enable_libtool_lock 821enable_largefile 822enable_libquadmath_support 823with_gcc_major_version_only 824' 825 ac_precious_vars='build_alias 826host_alias 827target_alias 828CC 829CFLAGS 830LDFLAGS 831LIBS 832CPPFLAGS 833CPP 834FC 835FCFLAGS' 836 837 838# Initialize some variables set by options. 839ac_init_help= 840ac_init_version=false 841ac_unrecognized_opts= 842ac_unrecognized_sep= 843# The variables have the same names as the options, with 844# dashes changed to underlines. 845cache_file=/dev/null 846exec_prefix=NONE 847no_create= 848no_recursion= 849prefix=NONE 850program_prefix=NONE 851program_suffix=NONE 852program_transform_name=s,x,x, 853silent= 854site= 855srcdir= 856verbose= 857x_includes=NONE 858x_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.) 866bindir='${exec_prefix}/bin' 867sbindir='${exec_prefix}/sbin' 868libexecdir='${exec_prefix}/libexec' 869datarootdir='${prefix}/share' 870datadir='${datarootdir}' 871sysconfdir='${prefix}/etc' 872sharedstatedir='${prefix}/com' 873localstatedir='${prefix}/var' 874includedir='${prefix}/include' 875oldincludedir='/usr/include' 876docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 877infodir='${datarootdir}/info' 878htmldir='${docdir}' 879dvidir='${docdir}' 880pdfdir='${docdir}' 881psdir='${docdir}' 882libdir='${exec_prefix}/lib' 883localedir='${datarootdir}/locale' 884mandir='${datarootdir}/man' 885 886ac_prev= 887ac_dashdash= 888for ac_option 889do 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' 1222Try \`$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 1244done 1245 1246if test -n "$ac_prev"; then 1247 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1248 as_fn_error $? "missing argument to $ac_option" 1249fi 1250 1251if 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 1257fi 1258 1259# Check all directory arguments for consistency. 1260for 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 1264do 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" 1278done 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. 1283build=$build_alias 1284host=$host_alias 1285target=$target_alias 1286 1287# FIXME: To remove some day. 1288if 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 1294fi 1295 1296ac_tool_prefix= 1297test -n "$host_alias" && ac_tool_prefix=$host_alias- 1298 1299test "$silent" = yes && exec 6>/dev/null 1300 1301 1302ac_pwd=`pwd` && test -n "$ac_pwd" && 1303ac_ls_di=`ls -di .` && 1304ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1305 as_fn_error $? "working directory cannot be determined" 1306test "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. 1311if 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 1341else 1342 ac_srcdir_defaulted=no 1343fi 1344if 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" 1347fi 1348ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1349ac_abs_confdir=`( 1350 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1351 pwd)` 1352# When building in place, set srcdir=. 1353if test "$ac_abs_confdir" = "$ac_pwd"; then 1354 srcdir=. 1355fi 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. 1359case $srcdir in 1360*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1361esac 1362for 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} 1367done 1368 1369# 1370# Report the --help message. 1371# 1372if 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 1378Usage: $0 [OPTION]... [VAR=VALUE]... 1379 1380To assign environment variables (e.g., CC, CFLAGS...), specify them as 1381VAR=VALUE. See below for descriptions of some of the useful variables. 1382 1383Defaults for the options are specified in brackets. 1384 1385Configuration: 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 1396Installation 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 1402By default, \`make install' will install all the files in 1403\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1404an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1405for instance \`--prefix=\$HOME'. 1406 1407For better control, use the options below. 1408 1409Fine 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 1433Program 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 1438System 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 1443fi 1444 1445if 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 1451Optional 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=no] 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 1480Optional 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 1493Some 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 1505Use these variables to override the choices made by `configure' or to help 1506it to find libraries and programs with nonstandard names/locations. 1507 1508Report bugs to the package provider. 1509GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>. 1510General help using GNU software: <http://www.gnu.org/gethelp/>. 1511_ACEOF 1512ac_status=$? 1513fi 1514 1515if 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 1523case "$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 ;; 1533esac 1534ac_abs_top_builddir=$ac_pwd 1535ac_abs_builddir=$ac_pwd$ac_dir_suffix 1536# for backward compatibility: 1537ac_top_builddir=$ac_top_build_prefix 1538 1539case $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 ;; 1552esac 1553ac_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 1568fi 1569 1570test -n "$ac_init_help" && exit $ac_status 1571if $ac_init_version; then 1572 cat <<\_ACEOF 1573GNU Fortran Runtime Library configure 0.3 1574generated by GNU Autoconf 2.69 1575 1576Copyright (C) 2012 Free Software Foundation, Inc. 1577This configure script is free software; the Free Software Foundation 1578gives unlimited permission to copy, distribute and modify it. 1579_ACEOF 1580 exit 1581fi 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. 1590ac_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" 1595case "(($ac_try" in 1596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1597 *) ac_try_echo=$ac_try;; 1598esac 1599eval 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 1614else 1615 $as_echo "$as_me: failed program was:" >&5 1616sed 's/^/| /' conftest.$ac_ext >&5 1617 1618 ac_retval=1 1619fi 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. 1628ac_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" 1632case "(($ac_try" in 1633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1634 *) ac_try_echo=$ac_try;; 1635esac 1636eval 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 1651else 1652 $as_echo "$as_me: failed program was:" >&5 1653sed 's/^/| /' conftest.$ac_ext >&5 1654 1655 ac_retval=1 1656fi 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. 1667ac_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; } 1673if eval \${$3+:} false; then : 1674 $as_echo_n "(cached) " >&6 1675fi 1676eval ac_res=\$$3 1677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1678$as_echo "$ac_res" >&6; } 1679else 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; } 1683cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1684/* end confdefs.h. */ 1685$4 1686#include <$2> 1687_ACEOF 1688if ac_fn_c_try_compile "$LINENO"; then : 1689 ac_header_compiler=yes 1690else 1691 ac_header_compiler=no 1692fi 1693rm -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; } 1700cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1701/* end confdefs.h. */ 1702#include <$2> 1703_ACEOF 1704if ac_fn_c_try_cpp "$LINENO"; then : 1705 ac_header_preproc=yes 1706else 1707 ac_header_preproc=no 1708fi 1709rm -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? 1714case $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 ;; 1733esac 1734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1735$as_echo_n "checking for $2... " >&6; } 1736if eval \${$3+:} false; then : 1737 $as_echo_n "(cached) " >&6 1738else 1739 eval "$3=\$ac_header_compiler" 1740fi 1741eval ac_res=\$$3 1742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1743$as_echo "$ac_res" >&6; } 1744fi 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. 1753ac_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" 1757case "(($ac_try" in 1758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1759 *) ac_try_echo=$ac_try;; 1760esac 1761eval 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;; 1770esac 1771eval 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 1778else 1779 $as_echo "$as_me: program exited with status $ac_status" >&5 1780 $as_echo "$as_me: failed program was:" >&5 1781sed 's/^/| /' conftest.$ac_ext >&5 1782 1783 ac_retval=$ac_status 1784fi 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. 1795ac_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; } 1800if eval \${$3+:} false; then : 1801 $as_echo_n "(cached) " >&6 1802else 1803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1804/* end confdefs.h. */ 1805$4 1806#include <$2> 1807_ACEOF 1808if ac_fn_c_try_compile "$LINENO"; then : 1809 eval "$3=yes" 1810else 1811 eval "$3=no" 1812fi 1813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1814fi 1815eval 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. 1825ac_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" 1830case "(($ac_try" in 1831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1832 *) ac_try_echo=$ac_try;; 1833esac 1834eval 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 1852else 1853 $as_echo "$as_me: failed program was:" >&5 1854sed 's/^/| /' conftest.$ac_ext >&5 1855 1856 ac_retval=1 1857fi 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 1871ac_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; } 1876if eval \${$3+:} false; then : 1877 $as_echo_n "(cached) " >&6 1878else 1879 if test x$gcc_no_link = xyes; then 1880 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 1881fi 1882cat 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 1905extern "C" 1906#endif 1907char $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 1912choke me 1913#endif 1914 1915int 1916main () 1917{ 1918return $2 (); 1919 ; 1920 return 0; 1921} 1922_ACEOF 1923if ac_fn_c_try_link "$LINENO"; then : 1924 eval "$3=yes" 1925else 1926 eval "$3=no" 1927fi 1928rm -f core conftest.err conftest.$ac_objext \ 1929 conftest$ac_exeext conftest.$ac_ext 1930fi 1931eval 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. 1941ac_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" 1946case "(($ac_try" in 1947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1948 *) ac_try_echo=$ac_try;; 1949esac 1950eval 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 1965else 1966 $as_echo "$as_me: failed program was:" >&5 1967sed 's/^/| /' conftest.$ac_ext >&5 1968 1969 ac_retval=1 1970fi 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. 1979ac_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" 1984case "(($ac_try" in 1985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1986 *) ac_try_echo=$ac_try;; 1987esac 1988eval 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 2006else 2007 $as_echo "$as_me: failed program was:" >&5 2008sed 's/^/| /' conftest.$ac_ext >&5 2009 2010 ac_retval=1 2011fi 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. 2026ac_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; } 2031if eval \${$3+:} false; then : 2032 $as_echo_n "(cached) " >&6 2033else 2034 eval "$3=no" 2035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2036/* end confdefs.h. */ 2037$4 2038int 2039main () 2040{ 2041if (sizeof ($2)) 2042 return 0; 2043 ; 2044 return 0; 2045} 2046_ACEOF 2047if ac_fn_c_try_compile "$LINENO"; then : 2048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2049/* end confdefs.h. */ 2050$4 2051int 2052main () 2053{ 2054if (sizeof (($2))) 2055 return 0; 2056 ; 2057 return 0; 2058} 2059_ACEOF 2060if ac_fn_c_try_compile "$LINENO"; then : 2061 2062else 2063 eval "$3=yes" 2064fi 2065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2066fi 2067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2068fi 2069eval 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 2081ac_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. 2086cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2087/* end confdefs.h. */ 2088$4 2089int 2090main () 2091{ 2092static int test_array [1 - 2 * !(($2) >= 0)]; 2093test_array [0] = 0; 2094return test_array [0]; 2095 2096 ; 2097 return 0; 2098} 2099_ACEOF 2100if 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 2106int 2107main () 2108{ 2109static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2110test_array [0] = 0; 2111return test_array [0]; 2112 2113 ; 2114 return 0; 2115} 2116_ACEOF 2117if ac_fn_c_try_compile "$LINENO"; then : 2118 ac_hi=$ac_mid; break 2119else 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 2126fi 2127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2128 done 2129else 2130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2131/* end confdefs.h. */ 2132$4 2133int 2134main () 2135{ 2136static int test_array [1 - 2 * !(($2) < 0)]; 2137test_array [0] = 0; 2138return test_array [0]; 2139 2140 ; 2141 return 0; 2142} 2143_ACEOF 2144if 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 2150int 2151main () 2152{ 2153static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2154test_array [0] = 0; 2155return test_array [0]; 2156 2157 ; 2158 return 0; 2159} 2160_ACEOF 2161if ac_fn_c_try_compile "$LINENO"; then : 2162 ac_lo=$ac_mid; break 2163else 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 2170fi 2171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2172 done 2173else 2174 ac_lo= ac_hi= 2175fi 2176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2177fi 2178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2179# Binary search between lo and hi bounds. 2180while 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 2185int 2186main () 2187{ 2188static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2189test_array [0] = 0; 2190return test_array [0]; 2191 2192 ; 2193 return 0; 2194} 2195_ACEOF 2196if ac_fn_c_try_compile "$LINENO"; then : 2197 ac_hi=$ac_mid 2198else 2199 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2200fi 2201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2202done 2203case $ac_lo in #(( 2204?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2205'') ac_retval=1 ;; 2206esac 2207 else 2208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2209/* end confdefs.h. */ 2210$4 2211static long int longval () { return $2; } 2212static unsigned long int ulongval () { return $2; } 2213#include <stdio.h> 2214#include <stdlib.h> 2215int 2216main () 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 2244if ac_fn_c_try_run "$LINENO"; then : 2245 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2246else 2247 ac_retval=1 2248fi 2249rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2250 conftest.$ac_objext conftest.beam conftest.$ac_ext 2251rm -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. 2263ac_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; } 2268if eval \${$4+:} false; then : 2269 $as_echo_n "(cached) " >&6 2270else 2271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2272/* end confdefs.h. */ 2273$5 2274int 2275main () 2276{ 2277static $2 ac_aggr; 2278if (ac_aggr.$3) 2279return 0; 2280 ; 2281 return 0; 2282} 2283_ACEOF 2284if ac_fn_c_try_compile "$LINENO"; then : 2285 eval "$4=yes" 2286else 2287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2288/* end confdefs.h. */ 2289$5 2290int 2291main () 2292{ 2293static $2 ac_aggr; 2294if (sizeof ac_aggr.$3) 2295return 0; 2296 ; 2297 return 0; 2298} 2299_ACEOF 2300if ac_fn_c_try_compile "$LINENO"; then : 2301 eval "$4=yes" 2302else 2303 eval "$4=no" 2304fi 2305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2306fi 2307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2308fi 2309eval 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 2315cat >config.log <<_ACEOF 2316This file contains any messages produced by compilers while 2317running configure, to aid debugging if configure makes a mistake. 2318 2319It was created by GNU Fortran Runtime Library $as_me 0.3, which was 2320generated by GNU Autoconf 2.69. Invocation command line was 2321 2322 $ $0 $@ 2323 2324_ACEOF 2325exec 5>>config.log 2326{ 2327cat <<_ASUNAME 2328## --------- ## 2329## Platform. ## 2330## --------- ## 2331 2332hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2333uname -m = `(uname -m) 2>/dev/null || echo unknown` 2334uname -r = `(uname -r) 2>/dev/null || echo unknown` 2335uname -s = `(uname -s) 2>/dev/null || echo unknown` 2336uname -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 2351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2352for as_dir in $PATH 2353do 2354 IFS=$as_save_IFS 2355 test -z "$as_dir" && as_dir=. 2356 $as_echo "PATH: $as_dir" 2357 done 2358IFS=$as_save_IFS 2359 2360} >&5 2361 2362cat >&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. 2377ac_configure_args= 2378ac_configure_args0= 2379ac_configure_args1= 2380ac_must_keep_next=false 2381for ac_pass in 1 2 2382do 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 2416done 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. 2425trap '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 2512for ac_signal in 1 2 13 15; do 2513 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2514done 2515ac_signal=0 2516 2517# confdefs.h avoids OS command line length limits that DEFS can exceed. 2518rm -f -r conftest* confdefs.h 2519 2520$as_echo "/* confdefs.h */" > confdefs.h 2521 2522# Predefined preprocessor variables. 2523 2524cat >>confdefs.h <<_ACEOF 2525#define PACKAGE_NAME "$PACKAGE_NAME" 2526_ACEOF 2527 2528cat >>confdefs.h <<_ACEOF 2529#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2530_ACEOF 2531 2532cat >>confdefs.h <<_ACEOF 2533#define PACKAGE_VERSION "$PACKAGE_VERSION" 2534_ACEOF 2535 2536cat >>confdefs.h <<_ACEOF 2537#define PACKAGE_STRING "$PACKAGE_STRING" 2538_ACEOF 2539 2540cat >>confdefs.h <<_ACEOF 2541#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2542_ACEOF 2543 2544cat >>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. 2551ac_site_file1=NONE 2552ac_site_file2=NONE 2553if 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 2560elif test "x$prefix" != xNONE; then 2561 ac_site_file1=$prefix/share/config.site 2562 ac_site_file2=$prefix/etc/config.site 2563else 2564 ac_site_file1=$ac_default_prefix/share/config.site 2565 ac_site_file2=$ac_default_prefix/etc/config.site 2566fi 2567for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2568do 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;} 2577as_fn_error $? "failed to load site script $ac_site_file 2578See \`config.log' for more details" "$LINENO" 5; } 2579 fi 2580done 2581 2582if 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 2593else 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 2597fi 2598 2599as_fn_append ac_header_list " unistd.h" 2600as_fn_append ac_header_list " sys/random.h" 2601as_fn_append ac_header_list " sys/time.h" 2602as_fn_append ac_header_list " sys/times.h" 2603as_fn_append ac_header_list " sys/resource.h" 2604as_fn_append ac_header_list " sys/types.h" 2605as_fn_append ac_header_list " sys/stat.h" 2606as_fn_append ac_header_list " sys/uio.h" 2607as_fn_append ac_header_list " sys/wait.h" 2608as_fn_append ac_header_list " floatingpoint.h" 2609as_fn_append ac_header_list " ieeefp.h" 2610as_fn_append ac_header_list " fenv.h" 2611as_fn_append ac_header_list " fptrap.h" 2612as_fn_append ac_header_list " fpxcp.h" 2613as_fn_append ac_header_list " pwd.h" 2614as_fn_append ac_header_list " complex.h" 2615as_fn_append ac_header_list " xlocale.h" 2616as_fn_append ac_func_list " getrusage" 2617as_fn_append ac_func_list " times" 2618as_fn_append ac_func_list " mkstemp" 2619as_fn_append ac_func_list " strtof" 2620as_fn_append ac_func_list " strtold" 2621as_fn_append ac_func_list " snprintf" 2622as_fn_append ac_func_list " ftruncate" 2623as_fn_append ac_func_list " chsize" 2624as_fn_append ac_func_list " chdir" 2625as_fn_append ac_func_list " getentropy" 2626as_fn_append ac_func_list " getlogin" 2627as_fn_append ac_func_list " gethostname" 2628as_fn_append ac_func_list " kill" 2629as_fn_append ac_func_list " link" 2630as_fn_append ac_func_list " symlink" 2631as_fn_append ac_func_list " sleep" 2632as_fn_append ac_func_list " ttyname" 2633as_fn_append ac_func_list " sigaction" 2634as_fn_append ac_func_list " waitpid" 2635as_fn_append ac_func_list " alarm" 2636as_fn_append ac_func_list " access" 2637as_fn_append ac_func_list " fork" 2638as_fn_append ac_func_list " posix_spawn" 2639as_fn_append ac_func_list " setmode" 2640as_fn_append ac_func_list " fcntl" 2641as_fn_append ac_func_list " writev" 2642as_fn_append ac_func_list " gettimeofday" 2643as_fn_append ac_func_list " stat" 2644as_fn_append ac_func_list " fstat" 2645as_fn_append ac_func_list " lstat" 2646as_fn_append ac_func_list " getpwuid" 2647as_fn_append ac_func_list " vsnprintf" 2648as_fn_append ac_func_list " dup" 2649as_fn_append ac_func_list " getcwd" 2650as_fn_append ac_func_list " localtime_r" 2651as_fn_append ac_func_list " gmtime_r" 2652as_fn_append ac_func_list " getpwuid_r" 2653as_fn_append ac_func_list " ttyname_r" 2654as_fn_append ac_func_list " clock_gettime" 2655as_fn_append ac_func_list " getgid" 2656as_fn_append ac_func_list " getpid" 2657as_fn_append ac_func_list " getuid" 2658as_fn_append ac_func_list " geteuid" 2659as_fn_append ac_func_list " umask" 2660as_fn_append ac_func_list " getegid" 2661as_fn_append ac_func_list " secure_getenv" 2662as_fn_append ac_func_list " __secure_getenv" 2663as_fn_append ac_func_list " mkostemp" 2664as_fn_append ac_func_list " strnlen" 2665as_fn_append ac_func_list " strndup" 2666as_fn_append ac_func_list " newlocale" 2667as_fn_append ac_func_list " freelocale" 2668as_fn_append ac_func_list " uselocale" 2669as_fn_append ac_func_list " strerror_l" 2670as_fn_append ac_header_list " math.h" 2671# Check that the precious variables saved in the cache have kept the same 2672# value. 2673ac_cache_corrupted=false 2674for 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 2720done 2721if $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 2727fi 2728## -------------------- ## 2729## Main body of script. ## 2730## -------------------- ## 2731 2732ac_ext=c 2733ac_cpp='$CPP $CPPFLAGS' 2734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2736ac_compiler_gnu=$ac_cv_c_compiler_gnu 2737 2738 2739 2740 2741 2742ac_config_headers="$ac_config_headers config.h" 2743 2744ac_aux_dir= 2745for 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 2759done 2760if test -z "$ac_aux_dir"; then 2761 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2762fi 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. 2768ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2769ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2770ac_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; } 2779if ${ac_cv_build+:} false; then : 2780 $as_echo_n "(cached) " >&6 2781else 2782 ac_build_alias=$build_alias 2783test "x$ac_build_alias" = x && 2784 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2785test "x$ac_build_alias" = x && 2786 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2787ac_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 2790fi 2791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2792$as_echo "$ac_cv_build" >&6; } 2793case $ac_cv_build in 2794*-*-*) ;; 2795*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2796esac 2797build=$ac_cv_build 2798ac_save_IFS=$IFS; IFS='-' 2799set x $ac_cv_build 2800shift 2801build_cpu=$1 2802build_vendor=$2 2803shift; shift 2804# Remember, the first character of IFS is used to create $*, 2805# except with old shells: 2806build_os=$* 2807IFS=$ac_save_IFS 2808case $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} ;; 2814esac 2815 2816 case ${host_alias} in 2817 "") host_noncanonical=${build_noncanonical} ;; 2818 *) host_noncanonical=${host_alias} ;; 2819esac 2820 2821 case ${target_alias} in 2822 "") target_noncanonical=${host_noncanonical} ;; 2823 *) target_noncanonical=${target_alias} ;; 2824esac 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. 2837build_subdir="build-${build_noncanonical}" 2838 2839# Check whether --with-build-libsubdir was given. 2840if test "${with_build_libsubdir+set}" = set; then : 2841 withval=$with_build_libsubdir; build_libsubdir="$withval" 2842else 2843 build_libsubdir="$build_subdir" 2844fi 2845 2846# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories 2847if ( test $srcdir = . && test -d gcc ) \ 2848 || test -d $srcdir/../host-${host_noncanonical}; then 2849 host_subdir="host-${host_noncanonical}" 2850else 2851 host_subdir=. 2852fi 2853# No prefix. 2854target_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. 2864if 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 2870else 2871 version_specific_libs=no 2872fi 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. 2881if test "${enable_intermodule+set}" = set; then : 2882 enableval=$enable_intermodule; case "$enable_intermodule" in 2883 yes) onestep="-onestep";; 2884 *) onestep="";; 2885esac 2886else 2887 onestep="" 2888fi 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='#' 2895else 2896 onestep_TRUE='#' 2897 onestep_FALSE= 2898fi 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; } 2919if ${ac_cv_host+:} false; then : 2920 $as_echo_n "(cached) " >&6 2921else 2922 if test "x$host_alias" = x; then 2923 ac_cv_host=$ac_cv_build 2924else 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 2927fi 2928 2929fi 2930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2931$as_echo "$ac_cv_host" >&6; } 2932case $ac_cv_host in 2933*-*-*) ;; 2934*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2935esac 2936host=$ac_cv_host 2937ac_save_IFS=$IFS; IFS='-' 2938set x $ac_cv_host 2939shift 2940host_cpu=$1 2941host_vendor=$2 2942shift; shift 2943# Remember, the first character of IFS is used to create $*, 2944# except with old shells: 2945host_os=$* 2946IFS=$ac_save_IFS 2947case $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; } 2952if ${ac_cv_target+:} false; then : 2953 $as_echo_n "(cached) " >&6 2954else 2955 if test "x$target_alias" = x; then 2956 ac_cv_target=$ac_cv_host 2957else 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 2960fi 2961 2962fi 2963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2964$as_echo "$ac_cv_target" >&6; } 2965case $ac_cv_target in 2966*-*-*) ;; 2967*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2968esac 2969target=$ac_cv_target 2970ac_save_IFS=$IFS; IFS='-' 2971set x $ac_cv_target 2972shift 2973target_cpu=$1 2974target_vendor=$2 2975shift; shift 2976# Remember, the first character of IFS is used to create $*, 2977# except with old shells: 2978target_os=$* 2979IFS=$ac_save_IFS 2980case $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. 2985test -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 2993target_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. 3007am__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; } 3025if test -z "$INSTALL"; then 3026if ${ac_cv_path_install+:} false; then : 3027 $as_echo_n "(cached) " >&6 3028else 3029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3030for as_dir in $PATH 3031do 3032 IFS=$as_save_IFS 3033 test -z "$as_dir" && as_dir=. 3034 # Account for people who put trailing slashes in PATH elements. 3035case $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 ;; 3073esac 3074 3075 done 3076IFS=$as_save_IFS 3077 3078rm -rf conftest.one conftest.two conftest.dir 3079 3080fi 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 3090fi 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. 3096test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3097 3098test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3099 3100test -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. 3106am_lf=' 3107' 3108case `pwd` in 3109 *[\\\"\#\$\&\'\`$am_lf]*) 3110 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3111esac 3112case $srcdir in 3113 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3114 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3115esac 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). 3122if ( 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 ) 3150then 3151 # Ok. 3152 : 3153else 3154 as_fn_error $? "newly created file is older than distributed files! 3155Check your system clock" "$LINENO" 5 3156fi 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. 3161am_sleep_pid= 3162if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3163 ( sleep 1 ) & 3164 am_sleep_pid=$! 3165fi 3166 3167rm -f conftest.file 3168 3169test "$program_prefix" != NONE && 3170 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3171# Use a double $ so make ignores it. 3172test "$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. 3176ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3177program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3178 3179# Expand $ac_aux_dir to an absolute path. 3180am_aux_dir=`cd "$ac_aux_dir" && pwd` 3181 3182if 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 3189fi 3190# Use eval to expand $SHELL 3191if eval "$MISSING --is-lightweight"; then 3192 am_missing_run="$MISSING " 3193else 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;} 3197fi 3198 3199if 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 3206fi 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. 3212if 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. 3215set 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; } 3218if ${ac_cv_prog_STRIP+:} false; then : 3219 $as_echo_n "(cached) " >&6 3220else 3221 if test -n "$STRIP"; then 3222 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3223else 3224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3225for as_dir in $PATH 3226do 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 3235done 3236 done 3237IFS=$as_save_IFS 3238 3239fi 3240fi 3241STRIP=$ac_cv_prog_STRIP 3242if test -n "$STRIP"; then 3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3244$as_echo "$STRIP" >&6; } 3245else 3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3247$as_echo "no" >&6; } 3248fi 3249 3250 3251fi 3252if 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. 3255set 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; } 3258if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3259 $as_echo_n "(cached) " >&6 3260else 3261 if test -n "$ac_ct_STRIP"; then 3262 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3263else 3264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3265for as_dir in $PATH 3266do 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 3275done 3276 done 3277IFS=$as_save_IFS 3278 3279fi 3280fi 3281ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3282if 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; } 3285else 3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3287$as_echo "no" >&6; } 3288fi 3289 3290 if test "x$ac_ct_STRIP" = x; then 3291 STRIP=":" 3292 else 3293 case $cross_compiling:$ac_tool_warned in 3294yes:) 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;} 3297ac_tool_warned=yes ;; 3298esac 3299 STRIP=$ac_ct_STRIP 3300 fi 3301else 3302 STRIP="$ac_cv_prog_STRIP" 3303fi 3304 3305fi 3306INSTALL_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; } 3310if test -z "$MKDIR_P"; then 3311 if ${ac_cv_path_mkdir+:} false; then : 3312 $as_echo_n "(cached) " >&6 3313else 3314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3315for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3316do 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 3332IFS=$as_save_IFS 3333 3334fi 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 3346fi 3347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3348$as_echo "$MKDIR_P" >&6; } 3349 3350for ac_prog in gawk mawk nawk awk 3351do 3352 # Extract the first word of "$ac_prog", so it can be a program name with args. 3353set 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; } 3356if ${ac_cv_prog_AWK+:} false; then : 3357 $as_echo_n "(cached) " >&6 3358else 3359 if test -n "$AWK"; then 3360 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3361else 3362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3363for as_dir in $PATH 3364do 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 3373done 3374 done 3375IFS=$as_save_IFS 3376 3377fi 3378fi 3379AWK=$ac_cv_prog_AWK 3380if test -n "$AWK"; then 3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3382$as_echo "$AWK" >&6; } 3383else 3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3385$as_echo "no" >&6; } 3386fi 3387 3388 3389 test -n "$AWK" && break 3390done 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; } 3394set x ${MAKE-make} 3395ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3396if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3397 $as_echo_n "(cached) " >&6 3398else 3399 cat >conftest.make <<\_ACEOF 3400SHELL = /bin/sh 3401all: 3402 @echo '@@@%%%=$(MAKE)=@@@%%%' 3403_ACEOF 3404# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3405case `${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;; 3410esac 3411rm -f conftest.make 3412fi 3413if 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= 3417else 3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3419$as_echo "no" >&6; } 3420 SET_MAKE="MAKE=${MAKE-make}" 3421fi 3422 3423rm -rf .tst 2>/dev/null 3424mkdir .tst 2>/dev/null 3425if test -d .tst; then 3426 am__leading_dot=. 3427else 3428 am__leading_dot=_ 3429fi 3430rmdir .tst 2>/dev/null 3431 3432# Check whether --enable-silent-rules was given. 3433if test "${enable_silent_rules+set}" = set; then : 3434 enableval=$enable_silent_rules; 3435fi 3436 3437case $enable_silent_rules in # ((( 3438 yes) AM_DEFAULT_VERBOSITY=0;; 3439 no) AM_DEFAULT_VERBOSITY=1;; 3440 *) AM_DEFAULT_VERBOSITY=1;; 3441esac 3442am_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; } 3445if ${am_cv_make_support_nested_variables+:} false; then : 3446 $as_echo_n "(cached) " >&6 3447else 3448 if $as_echo 'TRUE=$(BAR$(V)) 3449BAR0=false 3450BAR1=true 3451V=1 3452am__doit: 3453 @$(TRUE) 3454.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3455 am_cv_make_support_nested_variables=yes 3456else 3457 am_cv_make_support_nested_variables=no 3458fi 3459fi 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; } 3462if test $am_cv_make_support_nested_variables = yes; then 3463 AM_V='$(V)' 3464 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3465else 3466 AM_V=$AM_DEFAULT_VERBOSITY 3467 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3468fi 3469AM_BACKSLASH='\' 3470 3471if 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 3479fi 3480 3481# test whether we have cygpath 3482if 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 3488fi 3489 3490 3491# Define the identity of the package. 3492 PACKAGE='libgfortran' 3493 VERSION='0.3' 3494 3495 3496# Some tools Automake needs. 3497 3498ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3499 3500 3501AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3502 3503 3504AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3505 3506 3507AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3508 3509 3510MAKEINFO=${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> 3516mkdir_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 ... 3522AMTAR='$${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 3528am__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. 3543if rm -f && rm -fr && rm -rf; then : OK; else 3544 cat >&2 <<'END' 3545Oops! 3546 3547Your 'rm' program seems unable to run without file operands specified 3548on the command line, even when the '-f' option is present. This is contrary 3549to the behaviour of most rm programs out there, and not conforming with 3550the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3551 3552Please tell bug-automake@gnu.org about your system, including the value 3553of your $PATH and any error possibly output before this message. This 3554can help us improve future automake versions. 3555 3556END 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' 3563Aborting the configuration process, to ensure you take notice of the issue. 3564 3565You can download and install GNU coreutils to get an 'rm' implementation 3566that behaves properly: <http://www.gnu.org/software/coreutils/>. 3567 3568If you want to complete the configuration process using your problematic 3569'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3570to "yes", and re-run configure. 3571 3572END 3573 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3574 fi 3575fi 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. 3582if test "${enable_maintainer_mode+set}" = set; then : 3583 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3584else 3585 USE_MAINTAINER_MODE=no 3586fi 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='#' 3593else 3594 MAINTAINER_MODE_TRUE='#' 3595 MAINTAINER_MODE_FALSE= 3596fi 3597 3598 MAINT=$MAINTAINER_MODE_TRUE 3599 3600 3601# Default to --enable-multilib 3602# Check whether --enable-multilib was given. 3603if 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 3609else 3610 multilib=yes 3611fi 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 3618if 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 3624else 3625 multi_basedir="$srcdir/.." 3626fi 3627 3628 3629# Even if the default multilib is not a cross compilation, 3630# it may be that some of the other multilibs are. 3631if test $cross_compiling = no && test $multilib = yes \ 3632 && test "x${with_multisubdir}" != x ; then 3633 cross_compiling=maybe 3634fi 3635 3636ac_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. 3645if test "$build" != "$host"; then 3646 LIBGFOR_IS_NATIVE=false 3647 3648else 3649 LIBGFOR_IS_NATIVE=true 3650fi 3651 3652DEPDIR="${am__leading_dot}deps" 3653 3654ac_config_commands="$ac_config_commands depfiles" 3655 3656 3657am_make=${MAKE-make} 3658cat > confinc << 'END' 3659am__doit: 3660 @echo this is the am__doit target 3661.PHONY: am__doit 3662END 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; } 3666am__include="#" 3667am__quote= 3668_am_result=none 3669# First try GNU make style include. 3670echo "include confinc" > confmf 3671# Ignore all kinds of additional output from 'make'. 3672case `$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 ;; 3678esac 3679# Now try BSD make style include. 3680if 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 3689fi 3690 3691 3692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3693$as_echo "$_am_result" >&6; } 3694rm -f confinc confmf 3695 3696# Check whether --enable-dependency-tracking was given. 3697if test "${enable_dependency_tracking+set}" = set; then : 3698 enableval=$enable_dependency_tracking; 3699fi 3700 3701if test "x$enable_dependency_tracking" != xno; then 3702 am_depcomp="$ac_aux_dir/depcomp" 3703 AMDEPBACKSLASH='\' 3704 am__nodep='_no' 3705fi 3706 if test "x$enable_dependency_tracking" != xno; then 3707 AMDEP_TRUE= 3708 AMDEP_FALSE='#' 3709else 3710 AMDEP_TRUE='#' 3711 AMDEP_FALSE= 3712fi 3713 3714 3715ac_ext=c 3716ac_cpp='$CPP $CPPFLAGS' 3717ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3718ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3719ac_compiler_gnu=$ac_cv_c_compiler_gnu 3720if 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. 3722set 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; } 3725if ${ac_cv_prog_CC+:} false; then : 3726 $as_echo_n "(cached) " >&6 3727else 3728 if test -n "$CC"; then 3729 ac_cv_prog_CC="$CC" # Let the user override the test. 3730else 3731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3732for as_dir in $PATH 3733do 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 3742done 3743 done 3744IFS=$as_save_IFS 3745 3746fi 3747fi 3748CC=$ac_cv_prog_CC 3749if test -n "$CC"; then 3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3751$as_echo "$CC" >&6; } 3752else 3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3754$as_echo "no" >&6; } 3755fi 3756 3757 3758fi 3759if 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. 3762set 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; } 3765if ${ac_cv_prog_ac_ct_CC+:} false; then : 3766 $as_echo_n "(cached) " >&6 3767else 3768 if test -n "$ac_ct_CC"; then 3769 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3770else 3771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3772for as_dir in $PATH 3773do 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 3782done 3783 done 3784IFS=$as_save_IFS 3785 3786fi 3787fi 3788ac_ct_CC=$ac_cv_prog_ac_ct_CC 3789if 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; } 3792else 3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3794$as_echo "no" >&6; } 3795fi 3796 3797 if test "x$ac_ct_CC" = x; then 3798 CC="" 3799 else 3800 case $cross_compiling:$ac_tool_warned in 3801yes:) 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;} 3804ac_tool_warned=yes ;; 3805esac 3806 CC=$ac_ct_CC 3807 fi 3808else 3809 CC="$ac_cv_prog_CC" 3810fi 3811 3812if 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. 3815set 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; } 3818if ${ac_cv_prog_CC+:} false; then : 3819 $as_echo_n "(cached) " >&6 3820else 3821 if test -n "$CC"; then 3822 ac_cv_prog_CC="$CC" # Let the user override the test. 3823else 3824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3825for as_dir in $PATH 3826do 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 3835done 3836 done 3837IFS=$as_save_IFS 3838 3839fi 3840fi 3841CC=$ac_cv_prog_CC 3842if test -n "$CC"; then 3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3844$as_echo "$CC" >&6; } 3845else 3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3847$as_echo "no" >&6; } 3848fi 3849 3850 3851 fi 3852fi 3853if test -z "$CC"; then 3854 # Extract the first word of "cc", so it can be a program name with args. 3855set 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; } 3858if ${ac_cv_prog_CC+:} false; then : 3859 $as_echo_n "(cached) " >&6 3860else 3861 if test -n "$CC"; then 3862 ac_cv_prog_CC="$CC" # Let the user override the test. 3863else 3864 ac_prog_rejected=no 3865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3866for as_dir in $PATH 3867do 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 3880done 3881 done 3882IFS=$as_save_IFS 3883 3884if 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 3895fi 3896fi 3897fi 3898CC=$ac_cv_prog_CC 3899if test -n "$CC"; then 3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3901$as_echo "$CC" >&6; } 3902else 3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3904$as_echo "no" >&6; } 3905fi 3906 3907 3908fi 3909if 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. 3914set 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; } 3917if ${ac_cv_prog_CC+:} false; then : 3918 $as_echo_n "(cached) " >&6 3919else 3920 if test -n "$CC"; then 3921 ac_cv_prog_CC="$CC" # Let the user override the test. 3922else 3923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3924for as_dir in $PATH 3925do 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 3934done 3935 done 3936IFS=$as_save_IFS 3937 3938fi 3939fi 3940CC=$ac_cv_prog_CC 3941if test -n "$CC"; then 3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3943$as_echo "$CC" >&6; } 3944else 3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3946$as_echo "no" >&6; } 3947fi 3948 3949 3950 test -n "$CC" && break 3951 done 3952fi 3953if test -z "$CC"; then 3954 ac_ct_CC=$CC 3955 for ac_prog in cl.exe 3956do 3957 # Extract the first word of "$ac_prog", so it can be a program name with args. 3958set 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; } 3961if ${ac_cv_prog_ac_ct_CC+:} false; then : 3962 $as_echo_n "(cached) " >&6 3963else 3964 if test -n "$ac_ct_CC"; then 3965 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3966else 3967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3968for as_dir in $PATH 3969do 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 3978done 3979 done 3980IFS=$as_save_IFS 3981 3982fi 3983fi 3984ac_ct_CC=$ac_cv_prog_ac_ct_CC 3985if 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; } 3988else 3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3990$as_echo "no" >&6; } 3991fi 3992 3993 3994 test -n "$ac_ct_CC" && break 3995done 3996 3997 if test "x$ac_ct_CC" = x; then 3998 CC="" 3999 else 4000 case $cross_compiling:$ac_tool_warned in 4001yes:) 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;} 4004ac_tool_warned=yes ;; 4005esac 4006 CC=$ac_ct_CC 4007 fi 4008fi 4009 4010fi 4011 4012 4013test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4014$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4015as_fn_error $? "no acceptable C compiler found in \$PATH 4016See \`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 4020set X $ac_compile 4021ac_compiler=$2 4022for ac_option in --version -v -V -qversion; do 4023 { { ac_try="$ac_compiler $ac_option >&5" 4024case "(($ac_try" in 4025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4026 *) ac_try_echo=$ac_try;; 4027esac 4028eval 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; } 4041done 4042 4043cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4044/* end confdefs.h. */ 4045#include <stdio.h> 4046int 4047main () 4048{ 4049printf ("hello world\n"); 4050 ; 4051 return 0; 4052} 4053_ACEOF 4054# FIXME: Cleanup? 4055if { { 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 4061else 4062 gcc_no_link=yes 4063fi 4064if 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= 4070else 4071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4072/* end confdefs.h. */ 4073 4074int 4075main () 4076{ 4077 4078 ; 4079 return 0; 4080} 4081_ACEOF 4082ac_clean_files_save=$ac_clean_files 4083ac_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; } 4089ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4090 4091# The possible output files: 4092ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4093 4094ac_rmfiles= 4095for ac_file in $ac_files 4096do 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 4101done 4102rm -f $ac_rmfiles 4103 4104if { { ac_try="$ac_link_default" 4105case "(($ac_try" in 4106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4107 *) ac_try_echo=$ac_try;; 4108esac 4109eval 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. 4120for ac_file in $ac_files '' 4121do 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 4144done 4145test "$ac_cv_exeext" = no && ac_cv_exeext= 4146 4147else 4148 ac_file='' 4149fi 4150if 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 4154sed '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;} 4158as_fn_error 77 "C compiler cannot create executables 4159See \`config.log' for more details" "$LINENO" 5; } 4160else 4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4162$as_echo "yes" >&6; } 4163fi 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; } 4168ac_exeext=$ac_cv_exeext 4169 4170rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4171ac_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; } 4174if { { ac_try="$ac_link" 4175case "(($ac_try" in 4176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4177 *) ac_try_echo=$ac_try;; 4178esac 4179eval 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'. 4189for 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 4197done 4198else 4199 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4200$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4201as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4202See \`config.log' for more details" "$LINENO" 5; } 4203fi 4204rm -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 4208rm -f conftest.$ac_ext 4209EXEEXT=$ac_cv_exeext 4210ac_exeext=$EXEEXT 4211cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4212/* end confdefs.h. */ 4213#include <stdio.h> 4214int 4215main () 4216{ 4217FILE *f = fopen ("conftest.out", "w"); 4218 return ferror (f) || fclose (f) != 0; 4219 4220 ; 4221 return 0; 4222} 4223_ACEOF 4224ac_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; } 4229if test "$cross_compiling" != yes; then 4230 { { ac_try="$ac_link" 4231case "(($ac_try" in 4232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4233 *) ac_try_echo=$ac_try;; 4234esac 4235eval 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;; 4245esac 4246eval 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;} 4259as_fn_error $? "cannot run C compiled programs. 4260If you meant to cross compile, use \`--host'. 4261See \`config.log' for more details" "$LINENO" 5; } 4262 fi 4263 fi 4264fi 4265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4266$as_echo "$cross_compiling" >&6; } 4267 4268rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4269ac_clean_files=$ac_clean_files_save 4270fi 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; } 4273if ${ac_cv_objext+:} false; then : 4274 $as_echo_n "(cached) " >&6 4275else 4276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4277/* end confdefs.h. */ 4278 4279int 4280main () 4281{ 4282 4283 ; 4284 return 0; 4285} 4286_ACEOF 4287rm -f conftest.o conftest.obj 4288if { { ac_try="$ac_compile" 4289case "(($ac_try" in 4290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4291 *) ac_try_echo=$ac_try;; 4292esac 4293eval 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 4306done 4307else 4308 $as_echo "$as_me: failed program was:" >&5 4309sed '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;} 4313as_fn_error $? "cannot compute suffix of object files: cannot compile 4314See \`config.log' for more details" "$LINENO" 5; } 4315fi 4316rm -f conftest.$ac_cv_objext conftest.$ac_ext 4317fi 4318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4319$as_echo "$ac_cv_objext" >&6; } 4320OBJEXT=$ac_cv_objext 4321ac_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; } 4324if ${ac_cv_c_compiler_gnu+:} false; then : 4325 $as_echo_n "(cached) " >&6 4326else 4327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4328/* end confdefs.h. */ 4329 4330int 4331main () 4332{ 4333#ifndef __GNUC__ 4334 choke me 4335#endif 4336 4337 ; 4338 return 0; 4339} 4340_ACEOF 4341if ac_fn_c_try_compile "$LINENO"; then : 4342 ac_compiler_gnu=yes 4343else 4344 ac_compiler_gnu=no 4345fi 4346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4347ac_cv_c_compiler_gnu=$ac_compiler_gnu 4348 4349fi 4350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4351$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4352if test $ac_compiler_gnu = yes; then 4353 GCC=yes 4354else 4355 GCC= 4356fi 4357ac_test_CFLAGS=${CFLAGS+set} 4358ac_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; } 4361if ${ac_cv_prog_cc_g+:} false; then : 4362 $as_echo_n "(cached) " >&6 4363else 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 4371int 4372main () 4373{ 4374 4375 ; 4376 return 0; 4377} 4378_ACEOF 4379if ac_fn_c_try_compile "$LINENO"; then : 4380 ac_cv_prog_cc_g=yes 4381else 4382 CFLAGS="" 4383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4384/* end confdefs.h. */ 4385 4386int 4387main () 4388{ 4389 4390 ; 4391 return 0; 4392} 4393_ACEOF 4394if ac_fn_c_try_compile "$LINENO"; then : 4395 4396else 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 4402int 4403main () 4404{ 4405 4406 ; 4407 return 0; 4408} 4409_ACEOF 4410if ac_fn_c_try_compile "$LINENO"; then : 4411 ac_cv_prog_cc_g=yes 4412fi 4413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4414fi 4415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4416fi 4417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4418 ac_c_werror_flag=$ac_save_c_werror_flag 4419fi 4420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4421$as_echo "$ac_cv_prog_cc_g" >&6; } 4422if test "$ac_test_CFLAGS" = set; then 4423 CFLAGS=$ac_save_CFLAGS 4424elif 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 4430else 4431 if test "$GCC" = yes; then 4432 CFLAGS="-O2" 4433 else 4434 CFLAGS= 4435 fi 4436fi 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; } 4439if ${ac_cv_prog_cc_c89+:} false; then : 4440 $as_echo_n "(cached) " >&6 4441else 4442 ac_cv_prog_cc_c89=no 4443ac_save_CC=$CC 4444cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4445/* end confdefs.h. */ 4446#include <stdarg.h> 4447#include <stdio.h> 4448struct stat; 4449/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4450struct buf { int x; }; 4451FILE * (*rcsopen) (struct buf *, struct stat *, int); 4452static char *e (p, i) 4453 char **p; 4454 int i; 4455{ 4456 return p[i]; 4457} 4458static 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. */ 4475int 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' 4480int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4481 4482int test (int i, double x); 4483struct s1 {int (*f) (int a);}; 4484struct s2 {int (*f) (double a);}; 4485int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4486int argc; 4487char **argv; 4488int 4489main () 4490{ 4491return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4492 ; 4493 return 0; 4494} 4495_ACEOF 4496for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4497 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4498do 4499 CC="$ac_save_CC $ac_arg" 4500 if ac_fn_c_try_compile "$LINENO"; then : 4501 ac_cv_prog_cc_c89=$ac_arg 4502fi 4503rm -f core conftest.err conftest.$ac_objext 4504 test "x$ac_cv_prog_cc_c89" != "xno" && break 4505done 4506rm -f conftest.$ac_ext 4507CC=$ac_save_CC 4508 4509fi 4510# AC_CACHE_VAL 4511case "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; } ;; 4522esac 4523if test "x$ac_cv_prog_cc_c89" != xno; then : 4524 4525fi 4526 4527ac_ext=c 4528ac_cpp='$CPP $CPPFLAGS' 4529ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4530ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4531ac_compiler_gnu=$ac_cv_c_compiler_gnu 4532 4533ac_ext=c 4534ac_cpp='$CPP $CPPFLAGS' 4535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4537ac_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; } 4540if ${am_cv_prog_cc_c_o+:} false; then : 4541 $as_echo_n "(cached) " >&6 4542else 4543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4544/* end confdefs.h. */ 4545 4546int 4547main () 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 4574fi 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; } 4577if 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" 4584fi 4585ac_ext=c 4586ac_cpp='$CPP $CPPFLAGS' 4587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4589ac_compiler_gnu=$ac_cv_c_compiler_gnu 4590 4591 4592depcc="$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; } 4596if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4597 $as_echo_n "(cached) " >&6 4598else 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 4700else 4701 am_cv_CC_dependencies_compiler_type=none 4702fi 4703 4704fi 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; } 4707CCDEPMODE=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='#' 4714else 4715 am__fastdepCC_TRUE='#' 4716 am__fastdepCC_FALSE= 4717fi 4718 4719 4720 4721ac_ext=c 4722ac_cpp='$CPP $CPPFLAGS' 4723ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4724ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4725ac_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. 4729if test -n "$CPP" && test -d "$CPP"; then 4730 CPP= 4731fi 4732if test -z "$CPP"; then 4733 if ${ac_cv_prog_CPP+:} false; then : 4734 $as_echo_n "(cached) " >&6 4735else 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 4740for ac_c_preproc_warn_flag in '' yes 4741do 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 4757if ac_fn_c_try_cpp "$LINENO"; then : 4758 4759else 4760 # Broken: fails on valid input. 4761continue 4762fi 4763rm -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 4771if ac_fn_c_try_cpp "$LINENO"; then : 4772 # Broken: success on invalid input. 4773continue 4774else 4775 # Passes both tests. 4776ac_preproc_ok=: 4777break 4778fi 4779rm -f conftest.err conftest.i conftest.$ac_ext 4780 4781done 4782# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4783rm -f conftest.i conftest.err conftest.$ac_ext 4784if $ac_preproc_ok; then : 4785 break 4786fi 4787 4788 done 4789 ac_cv_prog_CPP=$CPP 4790 4791fi 4792 CPP=$ac_cv_prog_CPP 4793else 4794 ac_cv_prog_CPP=$CPP 4795fi 4796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4797$as_echo "$CPP" >&6; } 4798ac_preproc_ok=false 4799for ac_c_preproc_warn_flag in '' yes 4800do 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 4816if ac_fn_c_try_cpp "$LINENO"; then : 4817 4818else 4819 # Broken: fails on valid input. 4820continue 4821fi 4822rm -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 4830if ac_fn_c_try_cpp "$LINENO"; then : 4831 # Broken: success on invalid input. 4832continue 4833else 4834 # Passes both tests. 4835ac_preproc_ok=: 4836break 4837fi 4838rm -f conftest.err conftest.i conftest.$ac_ext 4839 4840done 4841# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4842rm -f conftest.i conftest.err conftest.$ac_ext 4843if $ac_preproc_ok; then : 4844 4845else 4846 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4847$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4848as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4849See \`config.log' for more details" "$LINENO" 5; } 4850fi 4851 4852ac_ext=c 4853ac_cpp='$CPP $CPPFLAGS' 4854ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4855ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4856ac_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; } 4861if ${ac_cv_path_GREP+:} false; then : 4862 $as_echo_n "(cached) " >&6 4863else 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 4868for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4869do 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 4878case `"$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;; 4902esac 4903 4904 $ac_path_GREP_found && break 3 4905 done 4906 done 4907 done 4908IFS=$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 4912else 4913 ac_cv_path_GREP=$GREP 4914fi 4915 4916fi 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; } 4924if ${ac_cv_path_EGREP+:} false; then : 4925 $as_echo_n "(cached) " >&6 4926else 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 4934for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4935do 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 4944case `"$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;; 4968esac 4969 4970 $ac_path_EGREP_found && break 3 4971 done 4972 done 4973 done 4974IFS=$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 4978else 4979 ac_cv_path_EGREP=$EGREP 4980fi 4981 4982 fi 4983fi 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; } 4991if ${ac_cv_header_stdc+:} false; then : 4992 $as_echo_n "(cached) " >&6 4993else 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 5001int 5002main () 5003{ 5004 5005 ; 5006 return 0; 5007} 5008_ACEOF 5009if ac_fn_c_try_compile "$LINENO"; then : 5010 ac_cv_header_stdc=yes 5011else 5012 ac_cv_header_stdc=no 5013fi 5014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5015 5016if 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 5023if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5024 $EGREP "memchr" >/dev/null 2>&1; then : 5025 5026else 5027 ac_cv_header_stdc=no 5028fi 5029rm -f conftest* 5030 5031fi 5032 5033if 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 5040if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5041 $EGREP "free" >/dev/null 2>&1; then : 5042 5043else 5044 ac_cv_header_stdc=no 5045fi 5046rm -f conftest* 5047 5048fi 5049 5050if 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 : 5054else 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))) 5071int 5072main () 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 5082if ac_fn_c_try_run "$LINENO"; then : 5083 5084else 5085 ac_cv_header_stdc=no 5086fi 5087rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5088 conftest.$ac_objext conftest.beam conftest.$ac_ext 5089fi 5090 5091fi 5092fi 5093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5094$as_echo "$ac_cv_header_stdc" >&6; } 5095if test $ac_cv_header_stdc = yes; then 5096 5097$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5098 5099fi 5100 5101# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5102for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5103 inttypes.h stdint.h unistd.h 5104do : 5105 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5106ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5107" 5108if 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 5113fi 5114 5115done 5116 5117 5118 5119 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 5120if test "x$ac_cv_header_minix_config_h" = xyes; then : 5121 MINIX=yes 5122else 5123 MINIX= 5124fi 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; } 5142if ${ac_cv_safe_to_define___extensions__+:} false; then : 5143 $as_echo_n "(cached) " >&6 5144else 5145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5146/* end confdefs.h. */ 5147 5148# define __EXTENSIONS__ 1 5149 $ac_includes_default 5150int 5151main () 5152{ 5153 5154 ; 5155 return 0; 5156} 5157_ACEOF 5158if ac_fn_c_try_compile "$LINENO"; then : 5159 ac_cv_safe_to_define___extensions__=yes 5160else 5161 ac_cv_safe_to_define___extensions__=no 5162fi 5163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5164fi 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. 5182if 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 ;; 5189esac 5190else 5191 with_toolexeclibdir=no 5192fi 5193 5194 5195 5196# Calculate toolexeclibdir 5197# Also toolexecdir, though it's only used in toolexeclibdir 5198case ${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 ;; 5229esac 5230 5231 5232 5233# Create a spec file, so that compile/link tests don't fail 5234test -f libgfortran.spec || touch libgfortran.spec 5235 5236ac_ext=c 5237ac_cpp='$CPP $CPPFLAGS' 5238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5240ac_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 5250ac_ext=c 5251ac_cpp='$CPP $CPPFLAGS' 5252ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5253ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5254ac_compiler_gnu=$ac_cv_c_compiler_gnu 5255if 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. 5257set 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; } 5260if ${ac_cv_prog_CC+:} false; then : 5261 $as_echo_n "(cached) " >&6 5262else 5263 if test -n "$CC"; then 5264 ac_cv_prog_CC="$CC" # Let the user override the test. 5265else 5266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5267for as_dir in $PATH 5268do 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 5277done 5278 done 5279IFS=$as_save_IFS 5280 5281fi 5282fi 5283CC=$ac_cv_prog_CC 5284if test -n "$CC"; then 5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5286$as_echo "$CC" >&6; } 5287else 5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5289$as_echo "no" >&6; } 5290fi 5291 5292 5293fi 5294if 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. 5297set 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; } 5300if ${ac_cv_prog_ac_ct_CC+:} false; then : 5301 $as_echo_n "(cached) " >&6 5302else 5303 if test -n "$ac_ct_CC"; then 5304 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5305else 5306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5307for as_dir in $PATH 5308do 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 5317done 5318 done 5319IFS=$as_save_IFS 5320 5321fi 5322fi 5323ac_ct_CC=$ac_cv_prog_ac_ct_CC 5324if 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; } 5327else 5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5329$as_echo "no" >&6; } 5330fi 5331 5332 if test "x$ac_ct_CC" = x; then 5333 CC="" 5334 else 5335 case $cross_compiling:$ac_tool_warned in 5336yes:) 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;} 5339ac_tool_warned=yes ;; 5340esac 5341 CC=$ac_ct_CC 5342 fi 5343else 5344 CC="$ac_cv_prog_CC" 5345fi 5346 5347if 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. 5350set 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; } 5353if ${ac_cv_prog_CC+:} false; then : 5354 $as_echo_n "(cached) " >&6 5355else 5356 if test -n "$CC"; then 5357 ac_cv_prog_CC="$CC" # Let the user override the test. 5358else 5359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5360for as_dir in $PATH 5361do 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 5370done 5371 done 5372IFS=$as_save_IFS 5373 5374fi 5375fi 5376CC=$ac_cv_prog_CC 5377if test -n "$CC"; then 5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5379$as_echo "$CC" >&6; } 5380else 5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5382$as_echo "no" >&6; } 5383fi 5384 5385 5386 fi 5387fi 5388if test -z "$CC"; then 5389 # Extract the first word of "cc", so it can be a program name with args. 5390set 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; } 5393if ${ac_cv_prog_CC+:} false; then : 5394 $as_echo_n "(cached) " >&6 5395else 5396 if test -n "$CC"; then 5397 ac_cv_prog_CC="$CC" # Let the user override the test. 5398else 5399 ac_prog_rejected=no 5400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5401for as_dir in $PATH 5402do 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 5415done 5416 done 5417IFS=$as_save_IFS 5418 5419if 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 5430fi 5431fi 5432fi 5433CC=$ac_cv_prog_CC 5434if test -n "$CC"; then 5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5436$as_echo "$CC" >&6; } 5437else 5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5439$as_echo "no" >&6; } 5440fi 5441 5442 5443fi 5444if 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. 5449set 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; } 5452if ${ac_cv_prog_CC+:} false; then : 5453 $as_echo_n "(cached) " >&6 5454else 5455 if test -n "$CC"; then 5456 ac_cv_prog_CC="$CC" # Let the user override the test. 5457else 5458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5459for as_dir in $PATH 5460do 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 5469done 5470 done 5471IFS=$as_save_IFS 5472 5473fi 5474fi 5475CC=$ac_cv_prog_CC 5476if test -n "$CC"; then 5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5478$as_echo "$CC" >&6; } 5479else 5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5481$as_echo "no" >&6; } 5482fi 5483 5484 5485 test -n "$CC" && break 5486 done 5487fi 5488if test -z "$CC"; then 5489 ac_ct_CC=$CC 5490 for ac_prog in cl.exe 5491do 5492 # Extract the first word of "$ac_prog", so it can be a program name with args. 5493set 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; } 5496if ${ac_cv_prog_ac_ct_CC+:} false; then : 5497 $as_echo_n "(cached) " >&6 5498else 5499 if test -n "$ac_ct_CC"; then 5500 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5501else 5502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5503for as_dir in $PATH 5504do 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 5513done 5514 done 5515IFS=$as_save_IFS 5516 5517fi 5518fi 5519ac_ct_CC=$ac_cv_prog_ac_ct_CC 5520if 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; } 5523else 5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5525$as_echo "no" >&6; } 5526fi 5527 5528 5529 test -n "$ac_ct_CC" && break 5530done 5531 5532 if test "x$ac_ct_CC" = x; then 5533 CC="" 5534 else 5535 case $cross_compiling:$ac_tool_warned in 5536yes:) 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;} 5539ac_tool_warned=yes ;; 5540esac 5541 CC=$ac_ct_CC 5542 fi 5543fi 5544 5545fi 5546 5547 5548test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5549$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5550as_fn_error $? "no acceptable C compiler found in \$PATH 5551See \`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 5555set X $ac_compile 5556ac_compiler=$2 5557for ac_option in --version -v -V -qversion; do 5558 { { ac_try="$ac_compiler $ac_option >&5" 5559case "(($ac_try" in 5560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5561 *) ac_try_echo=$ac_try;; 5562esac 5563eval 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; } 5576done 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; } 5580if ${ac_cv_c_compiler_gnu+:} false; then : 5581 $as_echo_n "(cached) " >&6 5582else 5583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5584/* end confdefs.h. */ 5585 5586int 5587main () 5588{ 5589#ifndef __GNUC__ 5590 choke me 5591#endif 5592 5593 ; 5594 return 0; 5595} 5596_ACEOF 5597if ac_fn_c_try_compile "$LINENO"; then : 5598 ac_compiler_gnu=yes 5599else 5600 ac_compiler_gnu=no 5601fi 5602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5603ac_cv_c_compiler_gnu=$ac_compiler_gnu 5604 5605fi 5606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5607$as_echo "$ac_cv_c_compiler_gnu" >&6; } 5608if test $ac_compiler_gnu = yes; then 5609 GCC=yes 5610else 5611 GCC= 5612fi 5613ac_test_CFLAGS=${CFLAGS+set} 5614ac_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; } 5617if ${ac_cv_prog_cc_g+:} false; then : 5618 $as_echo_n "(cached) " >&6 5619else 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 5627int 5628main () 5629{ 5630 5631 ; 5632 return 0; 5633} 5634_ACEOF 5635if ac_fn_c_try_compile "$LINENO"; then : 5636 ac_cv_prog_cc_g=yes 5637else 5638 CFLAGS="" 5639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5640/* end confdefs.h. */ 5641 5642int 5643main () 5644{ 5645 5646 ; 5647 return 0; 5648} 5649_ACEOF 5650if ac_fn_c_try_compile "$LINENO"; then : 5651 5652else 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 5658int 5659main () 5660{ 5661 5662 ; 5663 return 0; 5664} 5665_ACEOF 5666if ac_fn_c_try_compile "$LINENO"; then : 5667 ac_cv_prog_cc_g=yes 5668fi 5669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5670fi 5671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5672fi 5673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5674 ac_c_werror_flag=$ac_save_c_werror_flag 5675fi 5676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5677$as_echo "$ac_cv_prog_cc_g" >&6; } 5678if test "$ac_test_CFLAGS" = set; then 5679 CFLAGS=$ac_save_CFLAGS 5680elif 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 5686else 5687 if test "$GCC" = yes; then 5688 CFLAGS="-O2" 5689 else 5690 CFLAGS= 5691 fi 5692fi 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; } 5695if ${ac_cv_prog_cc_c89+:} false; then : 5696 $as_echo_n "(cached) " >&6 5697else 5698 ac_cv_prog_cc_c89=no 5699ac_save_CC=$CC 5700cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5701/* end confdefs.h. */ 5702#include <stdarg.h> 5703#include <stdio.h> 5704struct stat; 5705/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5706struct buf { int x; }; 5707FILE * (*rcsopen) (struct buf *, struct stat *, int); 5708static char *e (p, i) 5709 char **p; 5710 int i; 5711{ 5712 return p[i]; 5713} 5714static 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. */ 5731int 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' 5736int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5737 5738int test (int i, double x); 5739struct s1 {int (*f) (int a);}; 5740struct s2 {int (*f) (double a);}; 5741int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5742int argc; 5743char **argv; 5744int 5745main () 5746{ 5747return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5748 ; 5749 return 0; 5750} 5751_ACEOF 5752for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5753 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5754do 5755 CC="$ac_save_CC $ac_arg" 5756 if ac_fn_c_try_compile "$LINENO"; then : 5757 ac_cv_prog_cc_c89=$ac_arg 5758fi 5759rm -f core conftest.err conftest.$ac_objext 5760 test "x$ac_cv_prog_cc_c89" != "xno" && break 5761done 5762rm -f conftest.$ac_ext 5763CC=$ac_save_CC 5764 5765fi 5766# AC_CACHE_VAL 5767case "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; } ;; 5778esac 5779if test "x$ac_cv_prog_cc_c89" != xno; then : 5780 5781fi 5782 5783ac_ext=c 5784ac_cpp='$CPP $CPPFLAGS' 5785ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5786ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5787ac_compiler_gnu=$ac_cv_c_compiler_gnu 5788 5789ac_ext=c 5790ac_cpp='$CPP $CPPFLAGS' 5791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5793ac_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; } 5796if ${am_cv_prog_cc_c_o+:} false; then : 5797 $as_echo_n "(cached) " >&6 5798else 5799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5800/* end confdefs.h. */ 5801 5802int 5803main () 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 5830fi 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; } 5833if 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" 5840fi 5841ac_ext=c 5842ac_cpp='$CPP $CPPFLAGS' 5843ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5844ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5845ac_compiler_gnu=$ac_cv_c_compiler_gnu 5846 5847 5848depcc="$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; } 5852if ${am_cv_CC_dependencies_compiler_type+:} false; then : 5853 $as_echo_n "(cached) " >&6 5854else 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 5956else 5957 am_cv_CC_dependencies_compiler_type=none 5958fi 5959 5960fi 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; } 5963CCDEPMODE=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='#' 5970else 5971 am__fastdepCC_TRUE='#' 5972 am__fastdepCC_FALSE= 5973fi 5974 5975 5976 5977 5978 5979 5980 5981 5982# Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC. 5983if 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" 5992fi 5993 5994# Add CET specific flags if CET is enabled 5995 # Check whether --enable-cet was given. 5996if 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 6003else 6004 enable_cet=no 6005fi 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 6011case "$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 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6018/* end confdefs.h. */ 6019 6020int 6021main () 6022{ 6023 6024#if !defined(__SSE2__) 6025#error target does not support multi-byte NOPs 6026#else 6027asm ("setssbsy"); 6028#endif 6029 6030 ; 6031 return 0; 6032} 6033_ACEOF 6034if ac_fn_c_try_compile "$LINENO"; then : 6035 enable_cet=yes 6036else 6037 enable_cet=no 6038fi 6039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6040 ;; 6041 yes) 6042 # Check if assembler supports CET. 6043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6044/* end confdefs.h. */ 6045 6046int 6047main () 6048{ 6049asm ("setssbsy"); 6050 ; 6051 return 0; 6052} 6053_ACEOF 6054if ac_fn_c_try_compile "$LINENO"; then : 6055 6056else 6057 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5 6058fi 6059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6060 ;; 6061 esac 6062 ;; 6063 *) 6064 enable_cet=no 6065 ;; 6066esac 6067if test x$enable_cet = xyes; then 6068 CET_FLAGS="-fcf-protection -mshstk" 6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6070$as_echo "yes" >&6; } 6071else 6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6073$as_echo "no" >&6; } 6074fi 6075 6076AM_FCFLAGS="$AM_FCFLAGS $CET_FLAGS" 6077AM_CFLAGS="$AM_CFLAGS $CET_FLAGS" 6078CFLAGS="$CFLAGS $CET_FLAGS" 6079 6080 6081 6082 6083 6084# Check for symbol versioning (copied from libssp). 6085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5 6086$as_echo_n "checking whether symbol versioning is supported... " >&6; } 6087# Check whether --enable-symvers was given. 6088if test "${enable_symvers+set}" = set; then : 6089 enableval=$enable_symvers; gfortran_use_symver=$enableval 6090else 6091 gfortran_use_symver=yes 6092fi 6093 6094if test "x$gfortran_use_symver" != xno; then 6095 save_LDFLAGS="$LDFLAGS" 6096 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map" 6097 cat > conftest.map <<EOF 6098FOO_1.0 { 6099 global: *foo*; bar; local: *; 6100}; 6101EOF 6102 if test x$gcc_no_link = xyes; then 6103 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 6104fi 6105cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6106/* end confdefs.h. */ 6107int foo; 6108int 6109main () 6110{ 6111 6112 ; 6113 return 0; 6114} 6115_ACEOF 6116if ac_fn_c_try_link "$LINENO"; then : 6117 gfortran_use_symver=gnu 6118else 6119 gfortran_use_symver=no 6120fi 6121rm -f core conftest.err conftest.$ac_objext \ 6122 conftest$ac_exeext conftest.$ac_ext 6123 if test x$gfortran_use_symver = xno; then 6124 case "$target_os" in 6125 solaris2*) 6126 LDFLAGS="$save_LDFLAGS" 6127 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map" 6128 # Sun ld cannot handle wildcards and treats all entries as undefined. 6129 cat > conftest.map <<EOF 6130FOO_1.0 { 6131 global: foo; local: *; 6132}; 6133EOF 6134 if test x$gcc_no_link = xyes; then 6135 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 6136fi 6137cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6138/* end confdefs.h. */ 6139int foo; 6140int 6141main () 6142{ 6143 6144 ; 6145 return 0; 6146} 6147_ACEOF 6148if ac_fn_c_try_link "$LINENO"; then : 6149 gfortran_use_symver=sun 6150else 6151 gfortran_use_symver=no 6152fi 6153rm -f core conftest.err conftest.$ac_objext \ 6154 conftest$ac_exeext conftest.$ac_ext 6155 ;; 6156 esac 6157 fi 6158 LDFLAGS="$save_LDFLAGS" 6159fi 6160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gfortran_use_symver" >&5 6161$as_echo "$gfortran_use_symver" >&6; } 6162 if test "x$gfortran_use_symver" != xno; then 6163 LIBGFOR_USE_SYMVER_TRUE= 6164 LIBGFOR_USE_SYMVER_FALSE='#' 6165else 6166 LIBGFOR_USE_SYMVER_TRUE='#' 6167 LIBGFOR_USE_SYMVER_FALSE= 6168fi 6169 6170 if test "x$gfortran_use_symver" = xgnu; then 6171 LIBGFOR_USE_SYMVER_GNU_TRUE= 6172 LIBGFOR_USE_SYMVER_GNU_FALSE='#' 6173else 6174 LIBGFOR_USE_SYMVER_GNU_TRUE='#' 6175 LIBGFOR_USE_SYMVER_GNU_FALSE= 6176fi 6177 6178 if test "x$gfortran_use_symver" = xsun; then 6179 LIBGFOR_USE_SYMVER_SUN_TRUE= 6180 LIBGFOR_USE_SYMVER_SUN_FALSE='#' 6181else 6182 LIBGFOR_USE_SYMVER_SUN_TRUE='#' 6183 LIBGFOR_USE_SYMVER_SUN_FALSE= 6184fi 6185 6186 6187# For GPU offloading, not everything in libfortran can be supported. 6188# Currently, the only target that has this problem is nvptx. The 6189# following is a (partial) list of features that are unsupportable on 6190# this particular target: 6191# * Constructors 6192# * alloca 6193# * C library support for I/O, with printf as the one notable exception 6194# * C library support for other features such as signal, environment 6195# variables, time functions 6196 6197 if test "x${target_cpu}" = xnvptx; then 6198 LIBGFOR_MINIMAL_TRUE= 6199 LIBGFOR_MINIMAL_FALSE='#' 6200else 6201 LIBGFOR_MINIMAL_TRUE='#' 6202 LIBGFOR_MINIMAL_FALSE= 6203fi 6204 6205 6206# Figure out whether the compiler supports "-ffunction-sections -fdata-sections", 6207# similarly to how libstdc++ does it 6208ac_test_CFLAGS="${CFLAGS+set}" 6209ac_save_CFLAGS="$CFLAGS" 6210 6211# Check for -ffunction-sections -fdata-sections 6212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc that supports -ffunction-sections -fdata-sections" >&5 6213$as_echo_n "checking for gcc that supports -ffunction-sections -fdata-sections... " >&6; } 6214CFLAGS='-Werror -ffunction-sections -fdata-sections' 6215cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6216/* end confdefs.h. */ 6217 6218int 6219main () 6220{ 6221int foo; 6222 ; 6223 return 0; 6224} 6225_ACEOF 6226if ac_fn_c_try_compile "$LINENO"; then : 6227 ac_fdsections=yes 6228else 6229 ac_fdsections=no 6230fi 6231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6232if test "$ac_test_CFLAGS" = set; then 6233 CFLAGS="$ac_save_CFLAGS" 6234else 6235 # this is the suspicious part 6236 CFLAGS="" 6237fi 6238if test x"$ac_fdsections" = x"yes"; then 6239 SECTION_FLAGS='-ffunction-sections -fdata-sections' 6240fi 6241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5 6242$as_echo "$ac_fdsections" >&6; } 6243 6244 6245# Check linker hardware capability support. 6246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 6247$as_echo_n "checking for a sed that does not truncate output... " >&6; } 6248if ${ac_cv_path_SED+:} false; then : 6249 $as_echo_n "(cached) " >&6 6250else 6251 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 6252 for ac_i in 1 2 3 4 5 6 7; do 6253 ac_script="$ac_script$as_nl$ac_script" 6254 done 6255 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 6256 { ac_script=; unset ac_script;} 6257 if test -z "$SED"; then 6258 ac_path_SED_found=false 6259 # Loop through the user's path and test for each of PROGNAME-LIST 6260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6261for as_dir in $PATH 6262do 6263 IFS=$as_save_IFS 6264 test -z "$as_dir" && as_dir=. 6265 for ac_prog in sed gsed; do 6266 for ac_exec_ext in '' $ac_executable_extensions; do 6267 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 6268 as_fn_executable_p "$ac_path_SED" || continue 6269# Check for GNU ac_path_SED and select it if it is found. 6270 # Check for GNU $ac_path_SED 6271case `"$ac_path_SED" --version 2>&1` in 6272*GNU*) 6273 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 6274*) 6275 ac_count=0 6276 $as_echo_n 0123456789 >"conftest.in" 6277 while : 6278 do 6279 cat "conftest.in" "conftest.in" >"conftest.tmp" 6280 mv "conftest.tmp" "conftest.in" 6281 cp "conftest.in" "conftest.nl" 6282 $as_echo '' >> "conftest.nl" 6283 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 6284 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6285 as_fn_arith $ac_count + 1 && ac_count=$as_val 6286 if test $ac_count -gt ${ac_path_SED_max-0}; then 6287 # Best one so far, save it but keep looking for a better one 6288 ac_cv_path_SED="$ac_path_SED" 6289 ac_path_SED_max=$ac_count 6290 fi 6291 # 10*(2^10) chars as input seems more than enough 6292 test $ac_count -gt 10 && break 6293 done 6294 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6295esac 6296 6297 $ac_path_SED_found && break 3 6298 done 6299 done 6300 done 6301IFS=$as_save_IFS 6302 if test -z "$ac_cv_path_SED"; then 6303 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 6304 fi 6305else 6306 ac_cv_path_SED=$SED 6307fi 6308 6309fi 6310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6311$as_echo "$ac_cv_path_SED" >&6; } 6312 SED="$ac_cv_path_SED" 6313 rm -f conftest.sed 6314 6315test -z "$SED" && SED=sed 6316Xsed="$SED -e 1s/^X//" 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 6329$as_echo_n "checking for fgrep... " >&6; } 6330if ${ac_cv_path_FGREP+:} false; then : 6331 $as_echo_n "(cached) " >&6 6332else 6333 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 6334 then ac_cv_path_FGREP="$GREP -F" 6335 else 6336 if test -z "$FGREP"; then 6337 ac_path_FGREP_found=false 6338 # Loop through the user's path and test for each of PROGNAME-LIST 6339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6340for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6341do 6342 IFS=$as_save_IFS 6343 test -z "$as_dir" && as_dir=. 6344 for ac_prog in fgrep; do 6345 for ac_exec_ext in '' $ac_executable_extensions; do 6346 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 6347 as_fn_executable_p "$ac_path_FGREP" || continue 6348# Check for GNU ac_path_FGREP and select it if it is found. 6349 # Check for GNU $ac_path_FGREP 6350case `"$ac_path_FGREP" --version 2>&1` in 6351*GNU*) 6352 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 6353*) 6354 ac_count=0 6355 $as_echo_n 0123456789 >"conftest.in" 6356 while : 6357 do 6358 cat "conftest.in" "conftest.in" >"conftest.tmp" 6359 mv "conftest.tmp" "conftest.in" 6360 cp "conftest.in" "conftest.nl" 6361 $as_echo 'FGREP' >> "conftest.nl" 6362 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 6363 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6364 as_fn_arith $ac_count + 1 && ac_count=$as_val 6365 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 6366 # Best one so far, save it but keep looking for a better one 6367 ac_cv_path_FGREP="$ac_path_FGREP" 6368 ac_path_FGREP_max=$ac_count 6369 fi 6370 # 10*(2^10) chars as input seems more than enough 6371 test $ac_count -gt 10 && break 6372 done 6373 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6374esac 6375 6376 $ac_path_FGREP_found && break 3 6377 done 6378 done 6379 done 6380IFS=$as_save_IFS 6381 if test -z "$ac_cv_path_FGREP"; then 6382 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6383 fi 6384else 6385 ac_cv_path_FGREP=$FGREP 6386fi 6387 6388 fi 6389fi 6390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 6391$as_echo "$ac_cv_path_FGREP" >&6; } 6392 FGREP="$ac_cv_path_FGREP" 6393 6394 6395test -z "$GREP" && GREP=grep 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 6414ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 6415ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 6416 6417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 6418$as_echo_n "checking how to print strings... " >&6; } 6419# Test print first, because it will be a builtin if present. 6420if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 6421 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 6422 ECHO='print -r --' 6423elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 6424 ECHO='printf %s\n' 6425else 6426 # Use this function as a fallback that always works. 6427 func_fallback_echo () 6428 { 6429 eval 'cat <<_LTECHO_EOF 6430$1 6431_LTECHO_EOF' 6432 } 6433 ECHO='func_fallback_echo' 6434fi 6435 6436# func_echo_all arg... 6437# Invoke $ECHO with all args, space-separated. 6438func_echo_all () 6439{ 6440 $ECHO "" 6441} 6442 6443case "$ECHO" in 6444 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 6445$as_echo "printf" >&6; } ;; 6446 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 6447$as_echo "print -r" >&6; } ;; 6448 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 6449$as_echo "cat" >&6; } ;; 6450esac 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467# Check whether --with-gnu-ld was given. 6468if test "${with_gnu_ld+set}" = set; then : 6469 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 6470else 6471 with_gnu_ld=no 6472fi 6473 6474ac_prog=ld 6475if test "$GCC" = yes; then 6476 # Check if gcc -print-prog-name=ld gives a path. 6477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 6478$as_echo_n "checking for ld used by $CC... " >&6; } 6479 case $host in 6480 *-*-mingw*) 6481 # gcc leaves a trailing carriage return which upsets mingw 6482 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6483 *) 6484 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6485 esac 6486 case $ac_prog in 6487 # Accept absolute paths. 6488 [\\/]* | ?:[\\/]*) 6489 re_direlt='/[^/][^/]*/\.\./' 6490 # Canonicalize the pathname of ld 6491 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 6492 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 6493 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 6494 done 6495 test -z "$LD" && LD="$ac_prog" 6496 ;; 6497 "") 6498 # If it fails, then pretend we aren't using GCC. 6499 ac_prog=ld 6500 ;; 6501 *) 6502 # If it is relative, then search for the first ld in PATH. 6503 with_gnu_ld=unknown 6504 ;; 6505 esac 6506elif test "$with_gnu_ld" = yes; then 6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 6508$as_echo_n "checking for GNU ld... " >&6; } 6509else 6510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 6511$as_echo_n "checking for non-GNU ld... " >&6; } 6512fi 6513if ${lt_cv_path_LD+:} false; then : 6514 $as_echo_n "(cached) " >&6 6515else 6516 if test -z "$LD"; then 6517 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6518 for ac_dir in $PATH; do 6519 IFS="$lt_save_ifs" 6520 test -z "$ac_dir" && ac_dir=. 6521 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6522 lt_cv_path_LD="$ac_dir/$ac_prog" 6523 # Check to see if the program is GNU ld. I'd rather use --version, 6524 # but apparently some variants of GNU ld only accept -v. 6525 # Break only if it was the GNU/non-GNU ld that we prefer. 6526 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6527 *GNU* | *'with BFD'*) 6528 test "$with_gnu_ld" != no && break 6529 ;; 6530 *) 6531 test "$with_gnu_ld" != yes && break 6532 ;; 6533 esac 6534 fi 6535 done 6536 IFS="$lt_save_ifs" 6537else 6538 lt_cv_path_LD="$LD" # Let the user override the test with a path. 6539fi 6540fi 6541 6542LD="$lt_cv_path_LD" 6543if test -n "$LD"; then 6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 6545$as_echo "$LD" >&6; } 6546else 6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6548$as_echo "no" >&6; } 6549fi 6550test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 6551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 6552$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 6553if ${lt_cv_prog_gnu_ld+:} false; then : 6554 $as_echo_n "(cached) " >&6 6555else 6556 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6557case `$LD -v 2>&1 </dev/null` in 6558*GNU* | *'with BFD'*) 6559 lt_cv_prog_gnu_ld=yes 6560 ;; 6561*) 6562 lt_cv_prog_gnu_ld=no 6563 ;; 6564esac 6565fi 6566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 6567$as_echo "$lt_cv_prog_gnu_ld" >&6; } 6568with_gnu_ld=$lt_cv_prog_gnu_ld 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 test -z "$HWCAP_LDFLAGS" && HWCAP_LDFLAGS='' 6580 6581 6582 ac_save_LDFLAGS="$LDFLAGS" 6583 LDFLAGS="$LFLAGS -mclear-hwcap" 6584 6585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -mclear-hwcap" >&5 6586$as_echo_n "checking for -mclear-hwcap... " >&6; } 6587 if test x$gcc_no_link = xyes; then 6588 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 6589fi 6590cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6591/* end confdefs.h. */ 6592 6593int 6594main () 6595{ 6596return 0; 6597 ; 6598 return 0; 6599} 6600_ACEOF 6601if ac_fn_c_try_link "$LINENO"; then : 6602 ac_hwcap_ldflags=yes 6603else 6604 ac_hwcap_ldflags=no 6605fi 6606rm -f core conftest.err conftest.$ac_objext \ 6607 conftest$ac_exeext conftest.$ac_ext 6608 if test "$ac_hwcap_ldflags" = "yes"; then 6609 HWCAP_LDFLAGS="-mclear-hwcap $HWCAP_LDFLAGS" 6610 fi 6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_ldflags" >&5 6612$as_echo "$ac_hwcap_ldflags" >&6; } 6613 6614 LDFLAGS="$ac_save_LDFLAGS" 6615 6616 6617 6618 if test $ac_hwcap_ldflags != no; then 6619 HAVE_HWCAP_TRUE= 6620 HAVE_HWCAP_FALSE='#' 6621else 6622 HAVE_HWCAP_TRUE='#' 6623 HAVE_HWCAP_FALSE= 6624fi 6625 6626 6627 6628# Find other programs we need. 6629if test -n "$ac_tool_prefix"; then 6630 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 6631set dummy ${ac_tool_prefix}as; ac_word=$2 6632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6633$as_echo_n "checking for $ac_word... " >&6; } 6634if ${ac_cv_prog_AS+:} false; then : 6635 $as_echo_n "(cached) " >&6 6636else 6637 if test -n "$AS"; then 6638 ac_cv_prog_AS="$AS" # Let the user override the test. 6639else 6640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6641for as_dir in $PATH 6642do 6643 IFS=$as_save_IFS 6644 test -z "$as_dir" && as_dir=. 6645 for ac_exec_ext in '' $ac_executable_extensions; do 6646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6647 ac_cv_prog_AS="${ac_tool_prefix}as" 6648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6649 break 2 6650 fi 6651done 6652 done 6653IFS=$as_save_IFS 6654 6655fi 6656fi 6657AS=$ac_cv_prog_AS 6658if test -n "$AS"; then 6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 6660$as_echo "$AS" >&6; } 6661else 6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6663$as_echo "no" >&6; } 6664fi 6665 6666 6667fi 6668if test -z "$ac_cv_prog_AS"; then 6669 ac_ct_AS=$AS 6670 # Extract the first word of "as", so it can be a program name with args. 6671set dummy as; ac_word=$2 6672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6673$as_echo_n "checking for $ac_word... " >&6; } 6674if ${ac_cv_prog_ac_ct_AS+:} false; then : 6675 $as_echo_n "(cached) " >&6 6676else 6677 if test -n "$ac_ct_AS"; then 6678 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 6679else 6680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6681for as_dir in $PATH 6682do 6683 IFS=$as_save_IFS 6684 test -z "$as_dir" && as_dir=. 6685 for ac_exec_ext in '' $ac_executable_extensions; do 6686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6687 ac_cv_prog_ac_ct_AS="as" 6688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6689 break 2 6690 fi 6691done 6692 done 6693IFS=$as_save_IFS 6694 6695fi 6696fi 6697ac_ct_AS=$ac_cv_prog_ac_ct_AS 6698if test -n "$ac_ct_AS"; then 6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 6700$as_echo "$ac_ct_AS" >&6; } 6701else 6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6703$as_echo "no" >&6; } 6704fi 6705 6706 if test "x$ac_ct_AS" = x; then 6707 AS="" 6708 else 6709 case $cross_compiling:$ac_tool_warned in 6710yes:) 6711{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6712$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6713ac_tool_warned=yes ;; 6714esac 6715 AS=$ac_ct_AS 6716 fi 6717else 6718 AS="$ac_cv_prog_AS" 6719fi 6720 6721if test -n "$ac_tool_prefix"; then 6722 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6723set dummy ${ac_tool_prefix}ar; ac_word=$2 6724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6725$as_echo_n "checking for $ac_word... " >&6; } 6726if ${ac_cv_prog_AR+:} false; then : 6727 $as_echo_n "(cached) " >&6 6728else 6729 if test -n "$AR"; then 6730 ac_cv_prog_AR="$AR" # Let the user override the test. 6731else 6732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6733for as_dir in $PATH 6734do 6735 IFS=$as_save_IFS 6736 test -z "$as_dir" && as_dir=. 6737 for ac_exec_ext in '' $ac_executable_extensions; do 6738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6739 ac_cv_prog_AR="${ac_tool_prefix}ar" 6740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6741 break 2 6742 fi 6743done 6744 done 6745IFS=$as_save_IFS 6746 6747fi 6748fi 6749AR=$ac_cv_prog_AR 6750if test -n "$AR"; then 6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6752$as_echo "$AR" >&6; } 6753else 6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6755$as_echo "no" >&6; } 6756fi 6757 6758 6759fi 6760if test -z "$ac_cv_prog_AR"; then 6761 ac_ct_AR=$AR 6762 # Extract the first word of "ar", so it can be a program name with args. 6763set dummy ar; ac_word=$2 6764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6765$as_echo_n "checking for $ac_word... " >&6; } 6766if ${ac_cv_prog_ac_ct_AR+:} false; then : 6767 $as_echo_n "(cached) " >&6 6768else 6769 if test -n "$ac_ct_AR"; then 6770 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6771else 6772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6773for as_dir in $PATH 6774do 6775 IFS=$as_save_IFS 6776 test -z "$as_dir" && as_dir=. 6777 for ac_exec_ext in '' $ac_executable_extensions; do 6778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6779 ac_cv_prog_ac_ct_AR="ar" 6780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6781 break 2 6782 fi 6783done 6784 done 6785IFS=$as_save_IFS 6786 6787fi 6788fi 6789ac_ct_AR=$ac_cv_prog_ac_ct_AR 6790if test -n "$ac_ct_AR"; then 6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6792$as_echo "$ac_ct_AR" >&6; } 6793else 6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6795$as_echo "no" >&6; } 6796fi 6797 6798 if test "x$ac_ct_AR" = x; then 6799 AR="" 6800 else 6801 case $cross_compiling:$ac_tool_warned in 6802yes:) 6803{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6804$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6805ac_tool_warned=yes ;; 6806esac 6807 AR=$ac_ct_AR 6808 fi 6809else 6810 AR="$ac_cv_prog_AR" 6811fi 6812 6813if test -n "$ac_tool_prefix"; then 6814 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6815set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6817$as_echo_n "checking for $ac_word... " >&6; } 6818if ${ac_cv_prog_RANLIB+:} false; then : 6819 $as_echo_n "(cached) " >&6 6820else 6821 if test -n "$RANLIB"; then 6822 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6823else 6824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6825for as_dir in $PATH 6826do 6827 IFS=$as_save_IFS 6828 test -z "$as_dir" && as_dir=. 6829 for ac_exec_ext in '' $ac_executable_extensions; do 6830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6831 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6833 break 2 6834 fi 6835done 6836 done 6837IFS=$as_save_IFS 6838 6839fi 6840fi 6841RANLIB=$ac_cv_prog_RANLIB 6842if test -n "$RANLIB"; then 6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6844$as_echo "$RANLIB" >&6; } 6845else 6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6847$as_echo "no" >&6; } 6848fi 6849 6850 6851fi 6852if test -z "$ac_cv_prog_RANLIB"; then 6853 ac_ct_RANLIB=$RANLIB 6854 # Extract the first word of "ranlib", so it can be a program name with args. 6855set dummy ranlib; ac_word=$2 6856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6857$as_echo_n "checking for $ac_word... " >&6; } 6858if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6859 $as_echo_n "(cached) " >&6 6860else 6861 if test -n "$ac_ct_RANLIB"; then 6862 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6863else 6864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6865for as_dir in $PATH 6866do 6867 IFS=$as_save_IFS 6868 test -z "$as_dir" && as_dir=. 6869 for ac_exec_ext in '' $ac_executable_extensions; do 6870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6871 ac_cv_prog_ac_ct_RANLIB="ranlib" 6872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6873 break 2 6874 fi 6875done 6876 done 6877IFS=$as_save_IFS 6878 6879fi 6880fi 6881ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6882if test -n "$ac_ct_RANLIB"; then 6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6884$as_echo "$ac_ct_RANLIB" >&6; } 6885else 6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6887$as_echo "no" >&6; } 6888fi 6889 6890 if test "x$ac_ct_RANLIB" = x; then 6891 RANLIB="ranlib-not-found-in-path-error" 6892 else 6893 case $cross_compiling:$ac_tool_warned in 6894yes:) 6895{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6896$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6897ac_tool_warned=yes ;; 6898esac 6899 RANLIB=$ac_ct_RANLIB 6900 fi 6901else 6902 RANLIB="$ac_cv_prog_RANLIB" 6903fi 6904 6905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 6906$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 6907set x ${MAKE-make} 6908ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 6909if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 6910 $as_echo_n "(cached) " >&6 6911else 6912 cat >conftest.make <<\_ACEOF 6913SHELL = /bin/sh 6914all: 6915 @echo '@@@%%%=$(MAKE)=@@@%%%' 6916_ACEOF 6917# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 6918case `${MAKE-make} -f conftest.make 2>/dev/null` in 6919 *@@@%%%=?*=@@@%%%*) 6920 eval ac_cv_prog_make_${ac_make}_set=yes;; 6921 *) 6922 eval ac_cv_prog_make_${ac_make}_set=no;; 6923esac 6924rm -f conftest.make 6925fi 6926if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6928$as_echo "yes" >&6; } 6929 SET_MAKE= 6930else 6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6932$as_echo "no" >&6; } 6933 SET_MAKE="MAKE=${MAKE-make}" 6934fi 6935 6936 6937 6938# Configure libtool 6939#AC_MSG_NOTICE([====== Starting libtool configuration]) 6940enable_dlopen=yes 6941 6942 6943 6944case `pwd` in 6945 *\ * | *\ *) 6946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 6947$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 6948esac 6949 6950 6951 6952macro_version='2.2.7a' 6953macro_revision='1.3134' 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967ltmain="$ac_aux_dir/ltmain.sh" 6968 6969# Backslashify metacharacters that are still active within 6970# double-quoted strings. 6971sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 6972 6973# Same as above, but do not quote variable references. 6974double_quote_subst='s/\(["`\\]\)/\\\1/g' 6975 6976# Sed substitution to delay expansion of an escaped shell variable in a 6977# double_quote_subst'ed string. 6978delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6979 6980# Sed substitution to delay expansion of an escaped single quote. 6981delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 6982 6983# Sed substitution to avoid accidental globbing in evaled expressions 6984no_glob_subst='s/\*/\\\*/g' 6985 6986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 6987$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 6988if ${lt_cv_path_NM+:} false; then : 6989 $as_echo_n "(cached) " >&6 6990else 6991 if test -n "$NM"; then 6992 # Let the user override the test. 6993 lt_cv_path_NM="$NM" 6994else 6995 lt_nm_to_check="${ac_tool_prefix}nm" 6996 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6997 lt_nm_to_check="$lt_nm_to_check nm" 6998 fi 6999 for lt_tmp_nm in $lt_nm_to_check; do 7000 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7001 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 7002 IFS="$lt_save_ifs" 7003 test -z "$ac_dir" && ac_dir=. 7004 tmp_nm="$ac_dir/$lt_tmp_nm" 7005 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 7006 # Check to see if the nm accepts a BSD-compat flag. 7007 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 7008 # nm: unknown option "B" ignored 7009 # Tru64's nm complains that /dev/null is an invalid object file 7010 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 7011 */dev/null* | *'Invalid file or object type'*) 7012 lt_cv_path_NM="$tmp_nm -B" 7013 break 7014 ;; 7015 *) 7016 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 7017 */dev/null*) 7018 lt_cv_path_NM="$tmp_nm -p" 7019 break 7020 ;; 7021 *) 7022 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 7023 continue # so that we can try to find one that supports BSD flags 7024 ;; 7025 esac 7026 ;; 7027 esac 7028 fi 7029 done 7030 IFS="$lt_save_ifs" 7031 done 7032 : ${lt_cv_path_NM=no} 7033fi 7034fi 7035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 7036$as_echo "$lt_cv_path_NM" >&6; } 7037if test "$lt_cv_path_NM" != "no"; then 7038 NM="$lt_cv_path_NM" 7039else 7040 # Didn't find any BSD compatible name lister, look for dumpbin. 7041 if test -n "$DUMPBIN"; then : 7042 # Let the user override the test. 7043 else 7044 if test -n "$ac_tool_prefix"; then 7045 for ac_prog in dumpbin "link -dump" 7046 do 7047 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7048set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7050$as_echo_n "checking for $ac_word... " >&6; } 7051if ${ac_cv_prog_DUMPBIN+:} false; then : 7052 $as_echo_n "(cached) " >&6 7053else 7054 if test -n "$DUMPBIN"; then 7055 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 7056else 7057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7058for as_dir in $PATH 7059do 7060 IFS=$as_save_IFS 7061 test -z "$as_dir" && as_dir=. 7062 for ac_exec_ext in '' $ac_executable_extensions; do 7063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7064 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 7065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7066 break 2 7067 fi 7068done 7069 done 7070IFS=$as_save_IFS 7071 7072fi 7073fi 7074DUMPBIN=$ac_cv_prog_DUMPBIN 7075if test -n "$DUMPBIN"; then 7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 7077$as_echo "$DUMPBIN" >&6; } 7078else 7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7080$as_echo "no" >&6; } 7081fi 7082 7083 7084 test -n "$DUMPBIN" && break 7085 done 7086fi 7087if test -z "$DUMPBIN"; then 7088 ac_ct_DUMPBIN=$DUMPBIN 7089 for ac_prog in dumpbin "link -dump" 7090do 7091 # Extract the first word of "$ac_prog", so it can be a program name with args. 7092set dummy $ac_prog; ac_word=$2 7093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7094$as_echo_n "checking for $ac_word... " >&6; } 7095if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 7096 $as_echo_n "(cached) " >&6 7097else 7098 if test -n "$ac_ct_DUMPBIN"; then 7099 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 7100else 7101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7102for as_dir in $PATH 7103do 7104 IFS=$as_save_IFS 7105 test -z "$as_dir" && as_dir=. 7106 for ac_exec_ext in '' $ac_executable_extensions; do 7107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7108 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 7109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7110 break 2 7111 fi 7112done 7113 done 7114IFS=$as_save_IFS 7115 7116fi 7117fi 7118ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 7119if test -n "$ac_ct_DUMPBIN"; then 7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 7121$as_echo "$ac_ct_DUMPBIN" >&6; } 7122else 7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7124$as_echo "no" >&6; } 7125fi 7126 7127 7128 test -n "$ac_ct_DUMPBIN" && break 7129done 7130 7131 if test "x$ac_ct_DUMPBIN" = x; then 7132 DUMPBIN=":" 7133 else 7134 case $cross_compiling:$ac_tool_warned in 7135yes:) 7136{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7137$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7138ac_tool_warned=yes ;; 7139esac 7140 DUMPBIN=$ac_ct_DUMPBIN 7141 fi 7142fi 7143 7144 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 7145 *COFF*) 7146 DUMPBIN="$DUMPBIN -symbols" 7147 ;; 7148 *) 7149 DUMPBIN=: 7150 ;; 7151 esac 7152 fi 7153 7154 if test "$DUMPBIN" != ":"; then 7155 NM="$DUMPBIN" 7156 fi 7157fi 7158test -z "$NM" && NM=nm 7159 7160 7161 7162 7163 7164 7165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 7166$as_echo_n "checking the name lister ($NM) interface... " >&6; } 7167if ${lt_cv_nm_interface+:} false; then : 7168 $as_echo_n "(cached) " >&6 7169else 7170 lt_cv_nm_interface="BSD nm" 7171 echo "int some_variable = 0;" > conftest.$ac_ext 7172 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 7173 (eval "$ac_compile" 2>conftest.err) 7174 cat conftest.err >&5 7175 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 7176 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 7177 cat conftest.err >&5 7178 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 7179 cat conftest.out >&5 7180 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 7181 lt_cv_nm_interface="MS dumpbin" 7182 fi 7183 rm -f conftest* 7184fi 7185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 7186$as_echo "$lt_cv_nm_interface" >&6; } 7187 7188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 7189$as_echo_n "checking whether ln -s works... " >&6; } 7190LN_S=$as_ln_s 7191if test "$LN_S" = "ln -s"; then 7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7193$as_echo "yes" >&6; } 7194else 7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 7196$as_echo "no, using $LN_S" >&6; } 7197fi 7198 7199# find the maximum length of command line arguments 7200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 7201$as_echo_n "checking the maximum length of command line arguments... " >&6; } 7202if ${lt_cv_sys_max_cmd_len+:} false; then : 7203 $as_echo_n "(cached) " >&6 7204else 7205 i=0 7206 teststring="ABCD" 7207 7208 case $build_os in 7209 msdosdjgpp*) 7210 # On DJGPP, this test can blow up pretty badly due to problems in libc 7211 # (any single argument exceeding 2000 bytes causes a buffer overrun 7212 # during glob expansion). Even if it were fixed, the result of this 7213 # check would be larger than it should be. 7214 lt_cv_sys_max_cmd_len=12288; # 12K is about right 7215 ;; 7216 7217 gnu*) 7218 # Under GNU Hurd, this test is not required because there is 7219 # no limit to the length of command line arguments. 7220 # Libtool will interpret -1 as no limit whatsoever 7221 lt_cv_sys_max_cmd_len=-1; 7222 ;; 7223 7224 cygwin* | mingw* | cegcc*) 7225 # On Win9x/ME, this test blows up -- it succeeds, but takes 7226 # about 5 minutes as the teststring grows exponentially. 7227 # Worse, since 9x/ME are not pre-emptively multitasking, 7228 # you end up with a "frozen" computer, even though with patience 7229 # the test eventually succeeds (with a max line length of 256k). 7230 # Instead, let's just punt: use the minimum linelength reported by 7231 # all of the supported platforms: 8192 (on NT/2K/XP). 7232 lt_cv_sys_max_cmd_len=8192; 7233 ;; 7234 7235 mint*) 7236 # On MiNT this can take a long time and run out of memory. 7237 lt_cv_sys_max_cmd_len=8192; 7238 ;; 7239 7240 amigaos*) 7241 # On AmigaOS with pdksh, this test takes hours, literally. 7242 # So we just punt and use a minimum line length of 8192. 7243 lt_cv_sys_max_cmd_len=8192; 7244 ;; 7245 7246 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 7247 # This has been around since 386BSD, at least. Likely further. 7248 if test -x /sbin/sysctl; then 7249 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 7250 elif test -x /usr/sbin/sysctl; then 7251 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 7252 else 7253 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 7254 fi 7255 # And add a safety zone 7256 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7257 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7258 ;; 7259 7260 interix*) 7261 # We know the value 262144 and hardcode it with a safety zone (like BSD) 7262 lt_cv_sys_max_cmd_len=196608 7263 ;; 7264 7265 osf*) 7266 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 7267 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 7268 # nice to cause kernel panics so lets avoid the loop below. 7269 # First set a reasonable default. 7270 lt_cv_sys_max_cmd_len=16384 7271 # 7272 if test -x /sbin/sysconfig; then 7273 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 7274 *1*) lt_cv_sys_max_cmd_len=-1 ;; 7275 esac 7276 fi 7277 ;; 7278 sco3.2v5*) 7279 lt_cv_sys_max_cmd_len=102400 7280 ;; 7281 sysv5* | sco5v6* | sysv4.2uw2*) 7282 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 7283 if test -n "$kargmax"; then 7284 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 7285 else 7286 lt_cv_sys_max_cmd_len=32768 7287 fi 7288 ;; 7289 *) 7290 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 7291 if test -n "$lt_cv_sys_max_cmd_len"; then 7292 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7293 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7294 else 7295 # Make teststring a little bigger before we do anything with it. 7296 # a 1K string should be a reasonable start. 7297 for i in 1 2 3 4 5 6 7 8 ; do 7298 teststring=$teststring$teststring 7299 done 7300 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 7301 # If test is not a shell built-in, we'll probably end up computing a 7302 # maximum length that is only half of the actual maximum length, but 7303 # we can't tell. 7304 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 7305 = "X$teststring$teststring"; } >/dev/null 2>&1 && 7306 test $i != 17 # 1/2 MB should be enough 7307 do 7308 i=`expr $i + 1` 7309 teststring=$teststring$teststring 7310 done 7311 # Only check the string length outside the loop. 7312 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 7313 teststring= 7314 # Add a significant safety factor because C++ compilers can tack on 7315 # massive amounts of additional arguments before passing them to the 7316 # linker. It appears as though 1/2 is a usable value. 7317 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 7318 fi 7319 ;; 7320 esac 7321 7322fi 7323 7324if test -n $lt_cv_sys_max_cmd_len ; then 7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 7326$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 7327else 7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 7329$as_echo "none" >&6; } 7330fi 7331max_cmd_len=$lt_cv_sys_max_cmd_len 7332 7333 7334 7335 7336 7337 7338: ${CP="cp -f"} 7339: ${MV="mv -f"} 7340: ${RM="rm -f"} 7341 7342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 7343$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 7344# Try some XSI features 7345xsi_shell=no 7346( _lt_dummy="a/b/c" 7347 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 7348 = c,a/b,, \ 7349 && eval 'test $(( 1 + 1 )) -eq 2 \ 7350 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 7351 && xsi_shell=yes 7352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 7353$as_echo "$xsi_shell" >&6; } 7354 7355 7356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 7357$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 7358lt_shell_append=no 7359( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 7360 >/dev/null 2>&1 \ 7361 && lt_shell_append=yes 7362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 7363$as_echo "$lt_shell_append" >&6; } 7364 7365 7366if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 7367 lt_unset=unset 7368else 7369 lt_unset=false 7370fi 7371 7372 7373 7374 7375 7376# test EBCDIC or ASCII 7377case `echo X|tr X '\101'` in 7378 A) # ASCII based system 7379 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 7380 lt_SP2NL='tr \040 \012' 7381 lt_NL2SP='tr \015\012 \040\040' 7382 ;; 7383 *) # EBCDIC based system 7384 lt_SP2NL='tr \100 \n' 7385 lt_NL2SP='tr \r\n \100\100' 7386 ;; 7387esac 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 7398$as_echo_n "checking for $LD option to reload object files... " >&6; } 7399if ${lt_cv_ld_reload_flag+:} false; then : 7400 $as_echo_n "(cached) " >&6 7401else 7402 lt_cv_ld_reload_flag='-r' 7403fi 7404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 7405$as_echo "$lt_cv_ld_reload_flag" >&6; } 7406reload_flag=$lt_cv_ld_reload_flag 7407case $reload_flag in 7408"" | " "*) ;; 7409*) reload_flag=" $reload_flag" ;; 7410esac 7411reload_cmds='$LD$reload_flag -o $output$reload_objs' 7412case $host_os in 7413 darwin*) 7414 if test "$GCC" = yes; then 7415 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 7416 else 7417 reload_cmds='$LD$reload_flag -o $output$reload_objs' 7418 fi 7419 ;; 7420esac 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430if test -n "$ac_tool_prefix"; then 7431 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 7432set dummy ${ac_tool_prefix}objdump; ac_word=$2 7433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7434$as_echo_n "checking for $ac_word... " >&6; } 7435if ${ac_cv_prog_OBJDUMP+:} false; then : 7436 $as_echo_n "(cached) " >&6 7437else 7438 if test -n "$OBJDUMP"; then 7439 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 7440else 7441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7442for as_dir in $PATH 7443do 7444 IFS=$as_save_IFS 7445 test -z "$as_dir" && as_dir=. 7446 for ac_exec_ext in '' $ac_executable_extensions; do 7447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7448 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 7449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7450 break 2 7451 fi 7452done 7453 done 7454IFS=$as_save_IFS 7455 7456fi 7457fi 7458OBJDUMP=$ac_cv_prog_OBJDUMP 7459if test -n "$OBJDUMP"; then 7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 7461$as_echo "$OBJDUMP" >&6; } 7462else 7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7464$as_echo "no" >&6; } 7465fi 7466 7467 7468fi 7469if test -z "$ac_cv_prog_OBJDUMP"; then 7470 ac_ct_OBJDUMP=$OBJDUMP 7471 # Extract the first word of "objdump", so it can be a program name with args. 7472set dummy objdump; ac_word=$2 7473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7474$as_echo_n "checking for $ac_word... " >&6; } 7475if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 7476 $as_echo_n "(cached) " >&6 7477else 7478 if test -n "$ac_ct_OBJDUMP"; then 7479 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 7480else 7481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7482for as_dir in $PATH 7483do 7484 IFS=$as_save_IFS 7485 test -z "$as_dir" && as_dir=. 7486 for ac_exec_ext in '' $ac_executable_extensions; do 7487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7488 ac_cv_prog_ac_ct_OBJDUMP="objdump" 7489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7490 break 2 7491 fi 7492done 7493 done 7494IFS=$as_save_IFS 7495 7496fi 7497fi 7498ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 7499if test -n "$ac_ct_OBJDUMP"; then 7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 7501$as_echo "$ac_ct_OBJDUMP" >&6; } 7502else 7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7504$as_echo "no" >&6; } 7505fi 7506 7507 if test "x$ac_ct_OBJDUMP" = x; then 7508 OBJDUMP="false" 7509 else 7510 case $cross_compiling:$ac_tool_warned in 7511yes:) 7512{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7513$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7514ac_tool_warned=yes ;; 7515esac 7516 OBJDUMP=$ac_ct_OBJDUMP 7517 fi 7518else 7519 OBJDUMP="$ac_cv_prog_OBJDUMP" 7520fi 7521 7522test -z "$OBJDUMP" && OBJDUMP=objdump 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 7533$as_echo_n "checking how to recognize dependent libraries... " >&6; } 7534if ${lt_cv_deplibs_check_method+:} false; then : 7535 $as_echo_n "(cached) " >&6 7536else 7537 lt_cv_file_magic_cmd='$MAGIC_CMD' 7538lt_cv_file_magic_test_file= 7539lt_cv_deplibs_check_method='unknown' 7540# Need to set the preceding variable on all platforms that support 7541# interlibrary dependencies. 7542# 'none' -- dependencies not supported. 7543# `unknown' -- same as none, but documents that we really don't know. 7544# 'pass_all' -- all dependencies passed with no checks. 7545# 'test_compile' -- check by making test program. 7546# 'file_magic [[regex]]' -- check by looking for files in library path 7547# which responds to the $file_magic_cmd with a given extended regex. 7548# If you have `file' or equivalent on your system and you're not sure 7549# whether `pass_all' will *always* work, you probably want this one. 7550 7551case $host_os in 7552aix[4-9]*) 7553 lt_cv_deplibs_check_method=pass_all 7554 ;; 7555 7556beos*) 7557 lt_cv_deplibs_check_method=pass_all 7558 ;; 7559 7560bsdi[45]*) 7561 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 7562 lt_cv_file_magic_cmd='/usr/bin/file -L' 7563 lt_cv_file_magic_test_file=/shlib/libc.so 7564 ;; 7565 7566cygwin*) 7567 # func_win32_libid is a shell function defined in ltmain.sh 7568 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7569 lt_cv_file_magic_cmd='func_win32_libid' 7570 ;; 7571 7572mingw* | pw32*) 7573 # Base MSYS/MinGW do not provide the 'file' command needed by 7574 # func_win32_libid shell function, so use a weaker test based on 'objdump', 7575 # unless we find 'file', for example because we are cross-compiling. 7576 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 7577 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 7578 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7579 lt_cv_file_magic_cmd='func_win32_libid' 7580 else 7581 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 7582 lt_cv_file_magic_cmd='$OBJDUMP -f' 7583 fi 7584 ;; 7585 7586cegcc*) 7587 # use the weaker test based on 'objdump'. See mingw*. 7588 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 7589 lt_cv_file_magic_cmd='$OBJDUMP -f' 7590 ;; 7591 7592darwin* | rhapsody*) 7593 lt_cv_deplibs_check_method=pass_all 7594 ;; 7595 7596freebsd* | dragonfly*) 7597 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7598 case $host_cpu in 7599 i*86 ) 7600 # Not sure whether the presence of OpenBSD here was a mistake. 7601 # Let's accept both of them until this is cleared up. 7602 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 7603 lt_cv_file_magic_cmd=/usr/bin/file 7604 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 7605 ;; 7606 esac 7607 else 7608 lt_cv_deplibs_check_method=pass_all 7609 fi 7610 ;; 7611 7612gnu*) 7613 lt_cv_deplibs_check_method=pass_all 7614 ;; 7615 7616haiku*) 7617 lt_cv_deplibs_check_method=pass_all 7618 ;; 7619 7620hpux10.20* | hpux11*) 7621 lt_cv_file_magic_cmd=/usr/bin/file 7622 case $host_cpu in 7623 ia64*) 7624 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 7625 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 7626 ;; 7627 hppa*64*) 7628 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]' 7629 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 7630 ;; 7631 *) 7632 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 7633 lt_cv_file_magic_test_file=/usr/lib/libc.sl 7634 ;; 7635 esac 7636 ;; 7637 7638interix[3-9]*) 7639 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 7640 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 7641 ;; 7642 7643irix5* | irix6* | nonstopux*) 7644 case $LD in 7645 *-32|*"-32 ") libmagic=32-bit;; 7646 *-n32|*"-n32 ") libmagic=N32;; 7647 *-64|*"-64 ") libmagic=64-bit;; 7648 *) libmagic=never-match;; 7649 esac 7650 lt_cv_deplibs_check_method=pass_all 7651 ;; 7652 7653# This must be Linux ELF. 7654linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) 7655 lt_cv_deplibs_check_method=pass_all 7656 ;; 7657 7658netbsd*) 7659 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7660 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7661 else 7662 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 7663 fi 7664 ;; 7665 7666newos6*) 7667 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 7668 lt_cv_file_magic_cmd=/usr/bin/file 7669 lt_cv_file_magic_test_file=/usr/lib/libnls.so 7670 ;; 7671 7672*nto* | *qnx*) 7673 lt_cv_deplibs_check_method=pass_all 7674 ;; 7675 7676openbsd*) 7677 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7678 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 7679 else 7680 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7681 fi 7682 ;; 7683 7684osf3* | osf4* | osf5*) 7685 lt_cv_deplibs_check_method=pass_all 7686 ;; 7687 7688rdos*) 7689 lt_cv_deplibs_check_method=pass_all 7690 ;; 7691 7692solaris*) 7693 lt_cv_deplibs_check_method=pass_all 7694 ;; 7695 7696sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 7697 lt_cv_deplibs_check_method=pass_all 7698 ;; 7699 7700sysv4 | sysv4.3*) 7701 case $host_vendor in 7702 motorola) 7703 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]' 7704 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 7705 ;; 7706 ncr) 7707 lt_cv_deplibs_check_method=pass_all 7708 ;; 7709 sequent) 7710 lt_cv_file_magic_cmd='/bin/file' 7711 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 7712 ;; 7713 sni) 7714 lt_cv_file_magic_cmd='/bin/file' 7715 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 7716 lt_cv_file_magic_test_file=/lib/libc.so 7717 ;; 7718 siemens) 7719 lt_cv_deplibs_check_method=pass_all 7720 ;; 7721 pc) 7722 lt_cv_deplibs_check_method=pass_all 7723 ;; 7724 esac 7725 ;; 7726 7727tpf*) 7728 lt_cv_deplibs_check_method=pass_all 7729 ;; 7730esac 7731 7732fi 7733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 7734$as_echo "$lt_cv_deplibs_check_method" >&6; } 7735file_magic_cmd=$lt_cv_file_magic_cmd 7736deplibs_check_method=$lt_cv_deplibs_check_method 7737test -z "$deplibs_check_method" && deplibs_check_method=unknown 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750if test -n "$ac_tool_prefix"; then 7751 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 7752set dummy ${ac_tool_prefix}ar; ac_word=$2 7753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7754$as_echo_n "checking for $ac_word... " >&6; } 7755if ${ac_cv_prog_AR+:} false; then : 7756 $as_echo_n "(cached) " >&6 7757else 7758 if test -n "$AR"; then 7759 ac_cv_prog_AR="$AR" # Let the user override the test. 7760else 7761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7762for as_dir in $PATH 7763do 7764 IFS=$as_save_IFS 7765 test -z "$as_dir" && as_dir=. 7766 for ac_exec_ext in '' $ac_executable_extensions; do 7767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7768 ac_cv_prog_AR="${ac_tool_prefix}ar" 7769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7770 break 2 7771 fi 7772done 7773 done 7774IFS=$as_save_IFS 7775 7776fi 7777fi 7778AR=$ac_cv_prog_AR 7779if test -n "$AR"; then 7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7781$as_echo "$AR" >&6; } 7782else 7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7784$as_echo "no" >&6; } 7785fi 7786 7787 7788fi 7789if test -z "$ac_cv_prog_AR"; then 7790 ac_ct_AR=$AR 7791 # Extract the first word of "ar", so it can be a program name with args. 7792set dummy ar; ac_word=$2 7793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7794$as_echo_n "checking for $ac_word... " >&6; } 7795if ${ac_cv_prog_ac_ct_AR+:} false; then : 7796 $as_echo_n "(cached) " >&6 7797else 7798 if test -n "$ac_ct_AR"; then 7799 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7800else 7801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7802for as_dir in $PATH 7803do 7804 IFS=$as_save_IFS 7805 test -z "$as_dir" && as_dir=. 7806 for ac_exec_ext in '' $ac_executable_extensions; do 7807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7808 ac_cv_prog_ac_ct_AR="ar" 7809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7810 break 2 7811 fi 7812done 7813 done 7814IFS=$as_save_IFS 7815 7816fi 7817fi 7818ac_ct_AR=$ac_cv_prog_ac_ct_AR 7819if test -n "$ac_ct_AR"; then 7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7821$as_echo "$ac_ct_AR" >&6; } 7822else 7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7824$as_echo "no" >&6; } 7825fi 7826 7827 if test "x$ac_ct_AR" = x; then 7828 AR="false" 7829 else 7830 case $cross_compiling:$ac_tool_warned in 7831yes:) 7832{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7833$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7834ac_tool_warned=yes ;; 7835esac 7836 AR=$ac_ct_AR 7837 fi 7838else 7839 AR="$ac_cv_prog_AR" 7840fi 7841 7842test -z "$AR" && AR=ar 7843test -z "$AR_FLAGS" && AR_FLAGS=cru 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855if test -n "$ac_tool_prefix"; then 7856 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7857set dummy ${ac_tool_prefix}strip; ac_word=$2 7858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7859$as_echo_n "checking for $ac_word... " >&6; } 7860if ${ac_cv_prog_STRIP+:} false; then : 7861 $as_echo_n "(cached) " >&6 7862else 7863 if test -n "$STRIP"; then 7864 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7865else 7866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7867for as_dir in $PATH 7868do 7869 IFS=$as_save_IFS 7870 test -z "$as_dir" && as_dir=. 7871 for ac_exec_ext in '' $ac_executable_extensions; do 7872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7873 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7875 break 2 7876 fi 7877done 7878 done 7879IFS=$as_save_IFS 7880 7881fi 7882fi 7883STRIP=$ac_cv_prog_STRIP 7884if test -n "$STRIP"; then 7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7886$as_echo "$STRIP" >&6; } 7887else 7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7889$as_echo "no" >&6; } 7890fi 7891 7892 7893fi 7894if test -z "$ac_cv_prog_STRIP"; then 7895 ac_ct_STRIP=$STRIP 7896 # Extract the first word of "strip", so it can be a program name with args. 7897set dummy strip; ac_word=$2 7898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7899$as_echo_n "checking for $ac_word... " >&6; } 7900if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 7901 $as_echo_n "(cached) " >&6 7902else 7903 if test -n "$ac_ct_STRIP"; then 7904 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7905else 7906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7907for as_dir in $PATH 7908do 7909 IFS=$as_save_IFS 7910 test -z "$as_dir" && as_dir=. 7911 for ac_exec_ext in '' $ac_executable_extensions; do 7912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7913 ac_cv_prog_ac_ct_STRIP="strip" 7914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7915 break 2 7916 fi 7917done 7918 done 7919IFS=$as_save_IFS 7920 7921fi 7922fi 7923ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7924if test -n "$ac_ct_STRIP"; then 7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7926$as_echo "$ac_ct_STRIP" >&6; } 7927else 7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7929$as_echo "no" >&6; } 7930fi 7931 7932 if test "x$ac_ct_STRIP" = x; then 7933 STRIP=":" 7934 else 7935 case $cross_compiling:$ac_tool_warned in 7936yes:) 7937{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7938$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7939ac_tool_warned=yes ;; 7940esac 7941 STRIP=$ac_ct_STRIP 7942 fi 7943else 7944 STRIP="$ac_cv_prog_STRIP" 7945fi 7946 7947test -z "$STRIP" && STRIP=: 7948 7949 7950 7951 7952 7953 7954if test -n "$ac_tool_prefix"; then 7955 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7956set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7958$as_echo_n "checking for $ac_word... " >&6; } 7959if ${ac_cv_prog_RANLIB+:} false; then : 7960 $as_echo_n "(cached) " >&6 7961else 7962 if test -n "$RANLIB"; then 7963 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7964else 7965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7966for as_dir in $PATH 7967do 7968 IFS=$as_save_IFS 7969 test -z "$as_dir" && as_dir=. 7970 for ac_exec_ext in '' $ac_executable_extensions; do 7971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7972 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7974 break 2 7975 fi 7976done 7977 done 7978IFS=$as_save_IFS 7979 7980fi 7981fi 7982RANLIB=$ac_cv_prog_RANLIB 7983if test -n "$RANLIB"; then 7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7985$as_echo "$RANLIB" >&6; } 7986else 7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7988$as_echo "no" >&6; } 7989fi 7990 7991 7992fi 7993if test -z "$ac_cv_prog_RANLIB"; then 7994 ac_ct_RANLIB=$RANLIB 7995 # Extract the first word of "ranlib", so it can be a program name with args. 7996set dummy ranlib; ac_word=$2 7997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7998$as_echo_n "checking for $ac_word... " >&6; } 7999if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 8000 $as_echo_n "(cached) " >&6 8001else 8002 if test -n "$ac_ct_RANLIB"; then 8003 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 8004else 8005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8006for as_dir in $PATH 8007do 8008 IFS=$as_save_IFS 8009 test -z "$as_dir" && as_dir=. 8010 for ac_exec_ext in '' $ac_executable_extensions; do 8011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8012 ac_cv_prog_ac_ct_RANLIB="ranlib" 8013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8014 break 2 8015 fi 8016done 8017 done 8018IFS=$as_save_IFS 8019 8020fi 8021fi 8022ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 8023if test -n "$ac_ct_RANLIB"; then 8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 8025$as_echo "$ac_ct_RANLIB" >&6; } 8026else 8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8028$as_echo "no" >&6; } 8029fi 8030 8031 if test "x$ac_ct_RANLIB" = x; then 8032 RANLIB=":" 8033 else 8034 case $cross_compiling:$ac_tool_warned in 8035yes:) 8036{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8037$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8038ac_tool_warned=yes ;; 8039esac 8040 RANLIB=$ac_ct_RANLIB 8041 fi 8042else 8043 RANLIB="$ac_cv_prog_RANLIB" 8044fi 8045 8046test -z "$RANLIB" && RANLIB=: 8047 8048 8049 8050 8051 8052 8053# Determine commands to create old-style static archives. 8054old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 8055old_postinstall_cmds='chmod 644 $oldlib' 8056old_postuninstall_cmds= 8057 8058if test -n "$RANLIB"; then 8059 case $host_os in 8060 openbsd*) 8061 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 8062 ;; 8063 *) 8064 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 8065 ;; 8066 esac 8067 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 8068fi 8069 8070case $host_os in 8071 darwin*) 8072 lock_old_archive_extraction=yes ;; 8073 *) 8074 lock_old_archive_extraction=no ;; 8075esac 8076 8077 8078 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# If no C compiler was specified, use CC. 8116LTCC=${LTCC-"$CC"} 8117 8118# If no C compiler flags were specified, use CFLAGS. 8119LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8120 8121# Allow CC to be a program name with arguments. 8122compiler=$CC 8123 8124 8125# Check for command to grab the raw symbol name followed by C symbol from nm. 8126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 8127$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 8128if ${lt_cv_sys_global_symbol_pipe+:} false; then : 8129 $as_echo_n "(cached) " >&6 8130else 8131 8132# These are sane defaults that work on at least a few old systems. 8133# [They come from Ultrix. What could be older than Ultrix?!! ;)] 8134 8135# Character class describing NM global symbol codes. 8136symcode='[BCDEGRST]' 8137 8138# Regexp to match symbols that can be accessed directly from C. 8139sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 8140 8141# Define system-specific variables. 8142case $host_os in 8143aix*) 8144 symcode='[BCDT]' 8145 ;; 8146cygwin* | mingw* | pw32* | cegcc*) 8147 symcode='[ABCDGISTW]' 8148 ;; 8149hpux*) 8150 if test "$host_cpu" = ia64; then 8151 symcode='[ABCDEGRST]' 8152 fi 8153 ;; 8154irix* | nonstopux*) 8155 symcode='[BCDEGRST]' 8156 ;; 8157osf*) 8158 symcode='[BCDEGQRST]' 8159 ;; 8160solaris*) 8161 symcode='[BDRT]' 8162 ;; 8163sco3.2v5*) 8164 symcode='[DT]' 8165 ;; 8166sysv4.2uw2*) 8167 symcode='[DT]' 8168 ;; 8169sysv5* | sco5v6* | unixware* | OpenUNIX*) 8170 symcode='[ABDT]' 8171 ;; 8172sysv4) 8173 symcode='[DFNSTU]' 8174 ;; 8175esac 8176 8177# If we're using GNU nm, then use its standard symbol codes. 8178case `$NM -V 2>&1` in 8179*GNU* | *'with BFD'*) 8180 symcode='[ABCDGIRSTW]' ;; 8181esac 8182 8183# Transform an extracted symbol line into a proper C declaration. 8184# Some systems (esp. on ia64) link data and code symbols differently, 8185# so use this general approach. 8186lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 8187 8188# Transform an extracted symbol line into symbol name and symbol address 8189lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 8190lt_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'" 8191 8192# Handle CRLF in mingw tool chain 8193opt_cr= 8194case $build_os in 8195mingw*) 8196 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 8197 ;; 8198esac 8199 8200# Try without a prefix underscore, then with it. 8201for ac_symprfx in "" "_"; do 8202 8203 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 8204 symxfrm="\\1 $ac_symprfx\\2 \\2" 8205 8206 # Write the raw and C identifiers. 8207 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8208 # Fake it for dumpbin and say T for any non-static function 8209 # and D for any global variable. 8210 # Also find C++ and __fastcall symbols from MSVC++, 8211 # which start with @ or ?. 8212 lt_cv_sys_global_symbol_pipe="$AWK '"\ 8213" {last_section=section; section=\$ 3};"\ 8214" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 8215" \$ 0!~/External *\|/{next};"\ 8216" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 8217" {if(hide[section]) next};"\ 8218" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 8219" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 8220" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 8221" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 8222" ' prfx=^$ac_symprfx" 8223 else 8224 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 8225 fi 8226 8227 # Check to see that the pipe works correctly. 8228 pipe_works=no 8229 8230 rm -f conftest* 8231 cat > conftest.$ac_ext <<_LT_EOF 8232#ifdef __cplusplus 8233extern "C" { 8234#endif 8235char nm_test_var; 8236void nm_test_func(void); 8237void nm_test_func(void){} 8238#ifdef __cplusplus 8239} 8240#endif 8241int main(){nm_test_var='a';nm_test_func();return(0);} 8242_LT_EOF 8243 8244 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8245 (eval $ac_compile) 2>&5 8246 ac_status=$? 8247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8248 test $ac_status = 0; }; then 8249 # Now try to grab the symbols. 8250 nlist=conftest.nm 8251 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 8252 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 8253 ac_status=$? 8254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8255 test $ac_status = 0; } && test -s "$nlist"; then 8256 # Try sorting and uniquifying the output. 8257 if sort "$nlist" | uniq > "$nlist"T; then 8258 mv -f "$nlist"T "$nlist" 8259 else 8260 rm -f "$nlist"T 8261 fi 8262 8263 # Make sure that we snagged all the symbols we need. 8264 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 8265 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 8266 cat <<_LT_EOF > conftest.$ac_ext 8267#ifdef __cplusplus 8268extern "C" { 8269#endif 8270 8271_LT_EOF 8272 # Now generate the symbol file. 8273 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 8274 8275 cat <<_LT_EOF >> conftest.$ac_ext 8276 8277/* The mapping between symbol names and symbols. */ 8278const struct { 8279 const char *name; 8280 void *address; 8281} 8282lt__PROGRAM__LTX_preloaded_symbols[] = 8283{ 8284 { "@PROGRAM@", (void *) 0 }, 8285_LT_EOF 8286 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 8287 cat <<\_LT_EOF >> conftest.$ac_ext 8288 {0, (void *) 0} 8289}; 8290 8291/* This works around a problem in FreeBSD linker */ 8292#ifdef FREEBSD_WORKAROUND 8293static const void *lt_preloaded_setup() { 8294 return lt__PROGRAM__LTX_preloaded_symbols; 8295} 8296#endif 8297 8298#ifdef __cplusplus 8299} 8300#endif 8301_LT_EOF 8302 # Now try linking the two files. 8303 mv conftest.$ac_objext conftstm.$ac_objext 8304 lt_save_LIBS="$LIBS" 8305 lt_save_CFLAGS="$CFLAGS" 8306 LIBS="conftstm.$ac_objext" 8307 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 8308 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 8309 (eval $ac_link) 2>&5 8310 ac_status=$? 8311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8312 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 8313 pipe_works=yes 8314 fi 8315 LIBS="$lt_save_LIBS" 8316 CFLAGS="$lt_save_CFLAGS" 8317 else 8318 echo "cannot find nm_test_func in $nlist" >&5 8319 fi 8320 else 8321 echo "cannot find nm_test_var in $nlist" >&5 8322 fi 8323 else 8324 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 8325 fi 8326 else 8327 echo "$progname: failed program was:" >&5 8328 cat conftest.$ac_ext >&5 8329 fi 8330 rm -rf conftest* conftst* 8331 8332 # Do not use the global_symbol_pipe unless it works. 8333 if test "$pipe_works" = yes; then 8334 break 8335 else 8336 lt_cv_sys_global_symbol_pipe= 8337 fi 8338done 8339 8340fi 8341 8342if test -z "$lt_cv_sys_global_symbol_pipe"; then 8343 lt_cv_sys_global_symbol_to_cdecl= 8344fi 8345if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 8347$as_echo "failed" >&6; } 8348else 8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 8350$as_echo "ok" >&6; } 8351fi 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374# Check whether --enable-libtool-lock was given. 8375if test "${enable_libtool_lock+set}" = set; then : 8376 enableval=$enable_libtool_lock; 8377fi 8378 8379test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 8380 8381# Some flags need to be propagated to the compiler or linker for good 8382# libtool support. 8383case $host in 8384ia64-*-hpux*) 8385 # Find out which ABI we are using. 8386 echo 'int i;' > conftest.$ac_ext 8387 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8388 (eval $ac_compile) 2>&5 8389 ac_status=$? 8390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8391 test $ac_status = 0; }; then 8392 case `/usr/bin/file conftest.$ac_objext` in 8393 *ELF-32*) 8394 HPUX_IA64_MODE="32" 8395 ;; 8396 *ELF-64*) 8397 HPUX_IA64_MODE="64" 8398 ;; 8399 esac 8400 fi 8401 rm -rf conftest* 8402 ;; 8403*-*-irix6*) 8404 # Find out which ABI we are using. 8405 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8406 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8407 (eval $ac_compile) 2>&5 8408 ac_status=$? 8409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8410 test $ac_status = 0; }; then 8411 if test "$lt_cv_prog_gnu_ld" = yes; then 8412 case `/usr/bin/file conftest.$ac_objext` in 8413 *32-bit*) 8414 LD="${LD-ld} -melf32bsmip" 8415 ;; 8416 *N32*) 8417 LD="${LD-ld} -melf32bmipn32" 8418 ;; 8419 *64-bit*) 8420 LD="${LD-ld} -melf64bmip" 8421 ;; 8422 esac 8423 else 8424 case `/usr/bin/file conftest.$ac_objext` in 8425 *32-bit*) 8426 LD="${LD-ld} -32" 8427 ;; 8428 *N32*) 8429 LD="${LD-ld} -n32" 8430 ;; 8431 *64-bit*) 8432 LD="${LD-ld} -64" 8433 ;; 8434 esac 8435 fi 8436 fi 8437 rm -rf conftest* 8438 ;; 8439 8440x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 8441s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 8442 # Find out which ABI we are using. 8443 echo 'int i;' > conftest.$ac_ext 8444 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8445 (eval $ac_compile) 2>&5 8446 ac_status=$? 8447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8448 test $ac_status = 0; }; then 8449 case `/usr/bin/file conftest.o` in 8450 *32-bit*) 8451 case $host in 8452 x86_64-*kfreebsd*-gnu) 8453 LD="${LD-ld} -m elf_i386_fbsd" 8454 ;; 8455 x86_64-*linux*) 8456 case `/usr/bin/file conftest.o` in 8457 *x86-64*) 8458 LD="${LD-ld} -m elf32_x86_64" 8459 ;; 8460 *) 8461 LD="${LD-ld} -m elf_i386" 8462 ;; 8463 esac 8464 ;; 8465 powerpc64le-*linux*) 8466 LD="${LD-ld} -m elf32lppclinux" 8467 ;; 8468 powerpc64-*linux*) 8469 LD="${LD-ld} -m elf32ppclinux" 8470 ;; 8471 s390x-*linux*) 8472 LD="${LD-ld} -m elf_s390" 8473 ;; 8474 sparc64-*linux*) 8475 LD="${LD-ld} -m elf32_sparc" 8476 ;; 8477 esac 8478 ;; 8479 *64-bit*) 8480 case $host in 8481 x86_64-*kfreebsd*-gnu) 8482 LD="${LD-ld} -m elf_x86_64_fbsd" 8483 ;; 8484 x86_64-*linux*) 8485 LD="${LD-ld} -m elf_x86_64" 8486 ;; 8487 powerpcle-*linux*) 8488 LD="${LD-ld} -m elf64lppc" 8489 ;; 8490 powerpc-*linux*) 8491 LD="${LD-ld} -m elf64ppc" 8492 ;; 8493 s390*-*linux*|s390*-*tpf*) 8494 LD="${LD-ld} -m elf64_s390" 8495 ;; 8496 sparc*-*linux*) 8497 LD="${LD-ld} -m elf64_sparc" 8498 ;; 8499 esac 8500 ;; 8501 esac 8502 fi 8503 rm -rf conftest* 8504 ;; 8505 8506*-*-sco3.2v5*) 8507 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8508 SAVE_CFLAGS="$CFLAGS" 8509 CFLAGS="$CFLAGS -belf" 8510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8511$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 8512if ${lt_cv_cc_needs_belf+:} false; then : 8513 $as_echo_n "(cached) " >&6 8514else 8515 ac_ext=c 8516ac_cpp='$CPP $CPPFLAGS' 8517ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8518ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8519ac_compiler_gnu=$ac_cv_c_compiler_gnu 8520 8521 if test x$gcc_no_link = xyes; then 8522 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 8523fi 8524cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8525/* end confdefs.h. */ 8526 8527int 8528main () 8529{ 8530 8531 ; 8532 return 0; 8533} 8534_ACEOF 8535if ac_fn_c_try_link "$LINENO"; then : 8536 lt_cv_cc_needs_belf=yes 8537else 8538 lt_cv_cc_needs_belf=no 8539fi 8540rm -f core conftest.err conftest.$ac_objext \ 8541 conftest$ac_exeext conftest.$ac_ext 8542 ac_ext=c 8543ac_cpp='$CPP $CPPFLAGS' 8544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8546ac_compiler_gnu=$ac_cv_c_compiler_gnu 8547 8548fi 8549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8550$as_echo "$lt_cv_cc_needs_belf" >&6; } 8551 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 8552 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8553 CFLAGS="$SAVE_CFLAGS" 8554 fi 8555 ;; 8556sparc*-*solaris*) 8557 # Find out which ABI we are using. 8558 echo 'int i;' > conftest.$ac_ext 8559 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8560 (eval $ac_compile) 2>&5 8561 ac_status=$? 8562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8563 test $ac_status = 0; }; then 8564 case `/usr/bin/file conftest.o` in 8565 *64-bit*) 8566 case $lt_cv_prog_gnu_ld in 8567 yes*) LD="${LD-ld} -m elf64_sparc" ;; 8568 *) 8569 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8570 LD="${LD-ld} -64" 8571 fi 8572 ;; 8573 esac 8574 ;; 8575 esac 8576 fi 8577 rm -rf conftest* 8578 ;; 8579esac 8580 8581need_locks="$enable_libtool_lock" 8582 8583 8584 case $host_os in 8585 rhapsody* | darwin*) 8586 if test -n "$ac_tool_prefix"; then 8587 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8588set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8590$as_echo_n "checking for $ac_word... " >&6; } 8591if ${ac_cv_prog_DSYMUTIL+:} false; then : 8592 $as_echo_n "(cached) " >&6 8593else 8594 if test -n "$DSYMUTIL"; then 8595 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8596else 8597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8598for as_dir in $PATH 8599do 8600 IFS=$as_save_IFS 8601 test -z "$as_dir" && as_dir=. 8602 for ac_exec_ext in '' $ac_executable_extensions; do 8603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8604 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8606 break 2 8607 fi 8608done 8609 done 8610IFS=$as_save_IFS 8611 8612fi 8613fi 8614DSYMUTIL=$ac_cv_prog_DSYMUTIL 8615if test -n "$DSYMUTIL"; then 8616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8617$as_echo "$DSYMUTIL" >&6; } 8618else 8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8620$as_echo "no" >&6; } 8621fi 8622 8623 8624fi 8625if test -z "$ac_cv_prog_DSYMUTIL"; then 8626 ac_ct_DSYMUTIL=$DSYMUTIL 8627 # Extract the first word of "dsymutil", so it can be a program name with args. 8628set dummy dsymutil; ac_word=$2 8629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8630$as_echo_n "checking for $ac_word... " >&6; } 8631if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 8632 $as_echo_n "(cached) " >&6 8633else 8634 if test -n "$ac_ct_DSYMUTIL"; then 8635 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8636else 8637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8638for as_dir in $PATH 8639do 8640 IFS=$as_save_IFS 8641 test -z "$as_dir" && as_dir=. 8642 for ac_exec_ext in '' $ac_executable_extensions; do 8643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8644 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8646 break 2 8647 fi 8648done 8649 done 8650IFS=$as_save_IFS 8651 8652fi 8653fi 8654ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8655if test -n "$ac_ct_DSYMUTIL"; then 8656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8657$as_echo "$ac_ct_DSYMUTIL" >&6; } 8658else 8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8660$as_echo "no" >&6; } 8661fi 8662 8663 if test "x$ac_ct_DSYMUTIL" = x; then 8664 DSYMUTIL=":" 8665 else 8666 case $cross_compiling:$ac_tool_warned in 8667yes:) 8668{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8669$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8670ac_tool_warned=yes ;; 8671esac 8672 DSYMUTIL=$ac_ct_DSYMUTIL 8673 fi 8674else 8675 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8676fi 8677 8678 if test -n "$ac_tool_prefix"; then 8679 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8680set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8682$as_echo_n "checking for $ac_word... " >&6; } 8683if ${ac_cv_prog_NMEDIT+:} false; then : 8684 $as_echo_n "(cached) " >&6 8685else 8686 if test -n "$NMEDIT"; then 8687 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8688else 8689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8690for as_dir in $PATH 8691do 8692 IFS=$as_save_IFS 8693 test -z "$as_dir" && as_dir=. 8694 for ac_exec_ext in '' $ac_executable_extensions; do 8695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8696 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8698 break 2 8699 fi 8700done 8701 done 8702IFS=$as_save_IFS 8703 8704fi 8705fi 8706NMEDIT=$ac_cv_prog_NMEDIT 8707if test -n "$NMEDIT"; then 8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8709$as_echo "$NMEDIT" >&6; } 8710else 8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8712$as_echo "no" >&6; } 8713fi 8714 8715 8716fi 8717if test -z "$ac_cv_prog_NMEDIT"; then 8718 ac_ct_NMEDIT=$NMEDIT 8719 # Extract the first word of "nmedit", so it can be a program name with args. 8720set dummy nmedit; ac_word=$2 8721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8722$as_echo_n "checking for $ac_word... " >&6; } 8723if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 8724 $as_echo_n "(cached) " >&6 8725else 8726 if test -n "$ac_ct_NMEDIT"; then 8727 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8728else 8729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8730for as_dir in $PATH 8731do 8732 IFS=$as_save_IFS 8733 test -z "$as_dir" && as_dir=. 8734 for ac_exec_ext in '' $ac_executable_extensions; do 8735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8736 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8738 break 2 8739 fi 8740done 8741 done 8742IFS=$as_save_IFS 8743 8744fi 8745fi 8746ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8747if test -n "$ac_ct_NMEDIT"; then 8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8749$as_echo "$ac_ct_NMEDIT" >&6; } 8750else 8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8752$as_echo "no" >&6; } 8753fi 8754 8755 if test "x$ac_ct_NMEDIT" = x; then 8756 NMEDIT=":" 8757 else 8758 case $cross_compiling:$ac_tool_warned in 8759yes:) 8760{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8761$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8762ac_tool_warned=yes ;; 8763esac 8764 NMEDIT=$ac_ct_NMEDIT 8765 fi 8766else 8767 NMEDIT="$ac_cv_prog_NMEDIT" 8768fi 8769 8770 if test -n "$ac_tool_prefix"; then 8771 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8772set dummy ${ac_tool_prefix}lipo; ac_word=$2 8773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8774$as_echo_n "checking for $ac_word... " >&6; } 8775if ${ac_cv_prog_LIPO+:} false; then : 8776 $as_echo_n "(cached) " >&6 8777else 8778 if test -n "$LIPO"; then 8779 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8780else 8781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8782for as_dir in $PATH 8783do 8784 IFS=$as_save_IFS 8785 test -z "$as_dir" && as_dir=. 8786 for ac_exec_ext in '' $ac_executable_extensions; do 8787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8788 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8790 break 2 8791 fi 8792done 8793 done 8794IFS=$as_save_IFS 8795 8796fi 8797fi 8798LIPO=$ac_cv_prog_LIPO 8799if test -n "$LIPO"; then 8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8801$as_echo "$LIPO" >&6; } 8802else 8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8804$as_echo "no" >&6; } 8805fi 8806 8807 8808fi 8809if test -z "$ac_cv_prog_LIPO"; then 8810 ac_ct_LIPO=$LIPO 8811 # Extract the first word of "lipo", so it can be a program name with args. 8812set dummy lipo; ac_word=$2 8813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8814$as_echo_n "checking for $ac_word... " >&6; } 8815if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 8816 $as_echo_n "(cached) " >&6 8817else 8818 if test -n "$ac_ct_LIPO"; then 8819 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8820else 8821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8822for as_dir in $PATH 8823do 8824 IFS=$as_save_IFS 8825 test -z "$as_dir" && as_dir=. 8826 for ac_exec_ext in '' $ac_executable_extensions; do 8827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8828 ac_cv_prog_ac_ct_LIPO="lipo" 8829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8830 break 2 8831 fi 8832done 8833 done 8834IFS=$as_save_IFS 8835 8836fi 8837fi 8838ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8839if test -n "$ac_ct_LIPO"; then 8840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8841$as_echo "$ac_ct_LIPO" >&6; } 8842else 8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8844$as_echo "no" >&6; } 8845fi 8846 8847 if test "x$ac_ct_LIPO" = x; then 8848 LIPO=":" 8849 else 8850 case $cross_compiling:$ac_tool_warned in 8851yes:) 8852{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8853$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8854ac_tool_warned=yes ;; 8855esac 8856 LIPO=$ac_ct_LIPO 8857 fi 8858else 8859 LIPO="$ac_cv_prog_LIPO" 8860fi 8861 8862 if test -n "$ac_tool_prefix"; then 8863 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8864set dummy ${ac_tool_prefix}otool; ac_word=$2 8865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8866$as_echo_n "checking for $ac_word... " >&6; } 8867if ${ac_cv_prog_OTOOL+:} false; then : 8868 $as_echo_n "(cached) " >&6 8869else 8870 if test -n "$OTOOL"; then 8871 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8872else 8873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8874for as_dir in $PATH 8875do 8876 IFS=$as_save_IFS 8877 test -z "$as_dir" && as_dir=. 8878 for ac_exec_ext in '' $ac_executable_extensions; do 8879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8880 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8882 break 2 8883 fi 8884done 8885 done 8886IFS=$as_save_IFS 8887 8888fi 8889fi 8890OTOOL=$ac_cv_prog_OTOOL 8891if test -n "$OTOOL"; then 8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8893$as_echo "$OTOOL" >&6; } 8894else 8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8896$as_echo "no" >&6; } 8897fi 8898 8899 8900fi 8901if test -z "$ac_cv_prog_OTOOL"; then 8902 ac_ct_OTOOL=$OTOOL 8903 # Extract the first word of "otool", so it can be a program name with args. 8904set dummy otool; ac_word=$2 8905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8906$as_echo_n "checking for $ac_word... " >&6; } 8907if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8908 $as_echo_n "(cached) " >&6 8909else 8910 if test -n "$ac_ct_OTOOL"; then 8911 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8912else 8913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8914for as_dir in $PATH 8915do 8916 IFS=$as_save_IFS 8917 test -z "$as_dir" && as_dir=. 8918 for ac_exec_ext in '' $ac_executable_extensions; do 8919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8920 ac_cv_prog_ac_ct_OTOOL="otool" 8921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8922 break 2 8923 fi 8924done 8925 done 8926IFS=$as_save_IFS 8927 8928fi 8929fi 8930ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8931if test -n "$ac_ct_OTOOL"; then 8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8933$as_echo "$ac_ct_OTOOL" >&6; } 8934else 8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8936$as_echo "no" >&6; } 8937fi 8938 8939 if test "x$ac_ct_OTOOL" = x; then 8940 OTOOL=":" 8941 else 8942 case $cross_compiling:$ac_tool_warned in 8943yes:) 8944{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8945$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8946ac_tool_warned=yes ;; 8947esac 8948 OTOOL=$ac_ct_OTOOL 8949 fi 8950else 8951 OTOOL="$ac_cv_prog_OTOOL" 8952fi 8953 8954 if test -n "$ac_tool_prefix"; then 8955 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8956set dummy ${ac_tool_prefix}otool64; ac_word=$2 8957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8958$as_echo_n "checking for $ac_word... " >&6; } 8959if ${ac_cv_prog_OTOOL64+:} false; then : 8960 $as_echo_n "(cached) " >&6 8961else 8962 if test -n "$OTOOL64"; then 8963 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8964else 8965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8966for as_dir in $PATH 8967do 8968 IFS=$as_save_IFS 8969 test -z "$as_dir" && as_dir=. 8970 for ac_exec_ext in '' $ac_executable_extensions; do 8971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8972 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8974 break 2 8975 fi 8976done 8977 done 8978IFS=$as_save_IFS 8979 8980fi 8981fi 8982OTOOL64=$ac_cv_prog_OTOOL64 8983if test -n "$OTOOL64"; then 8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8985$as_echo "$OTOOL64" >&6; } 8986else 8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8988$as_echo "no" >&6; } 8989fi 8990 8991 8992fi 8993if test -z "$ac_cv_prog_OTOOL64"; then 8994 ac_ct_OTOOL64=$OTOOL64 8995 # Extract the first word of "otool64", so it can be a program name with args. 8996set dummy otool64; ac_word=$2 8997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8998$as_echo_n "checking for $ac_word... " >&6; } 8999if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 9000 $as_echo_n "(cached) " >&6 9001else 9002 if test -n "$ac_ct_OTOOL64"; then 9003 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 9004else 9005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9006for as_dir in $PATH 9007do 9008 IFS=$as_save_IFS 9009 test -z "$as_dir" && as_dir=. 9010 for ac_exec_ext in '' $ac_executable_extensions; do 9011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9012 ac_cv_prog_ac_ct_OTOOL64="otool64" 9013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9014 break 2 9015 fi 9016done 9017 done 9018IFS=$as_save_IFS 9019 9020fi 9021fi 9022ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 9023if test -n "$ac_ct_OTOOL64"; then 9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 9025$as_echo "$ac_ct_OTOOL64" >&6; } 9026else 9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9028$as_echo "no" >&6; } 9029fi 9030 9031 if test "x$ac_ct_OTOOL64" = x; then 9032 OTOOL64=":" 9033 else 9034 case $cross_compiling:$ac_tool_warned in 9035yes:) 9036{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9037$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9038ac_tool_warned=yes ;; 9039esac 9040 OTOOL64=$ac_ct_OTOOL64 9041 fi 9042else 9043 OTOOL64="$ac_cv_prog_OTOOL64" 9044fi 9045 9046 9047 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 9073$as_echo_n "checking for -single_module linker flag... " >&6; } 9074if ${lt_cv_apple_cc_single_mod+:} false; then : 9075 $as_echo_n "(cached) " >&6 9076else 9077 lt_cv_apple_cc_single_mod=no 9078 if test -z "${LT_MULTI_MODULE}"; then 9079 # By default we will add the -single_module flag. You can override 9080 # by either setting the environment variable LT_MULTI_MODULE 9081 # non-empty at configure time, or by adding -multi_module to the 9082 # link flags. 9083 rm -rf libconftest.dylib* 9084 echo "int foo(void){return 1;}" > conftest.c 9085 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9086-dynamiclib -Wl,-single_module conftest.c" >&5 9087 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9088 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 9089 _lt_result=$? 9090 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 9091 lt_cv_apple_cc_single_mod=yes 9092 else 9093 cat conftest.err >&5 9094 fi 9095 rm -rf libconftest.dylib* 9096 rm -f conftest.* 9097 fi 9098fi 9099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 9100$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 9101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 9102$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 9103if ${lt_cv_ld_exported_symbols_list+:} false; then : 9104 $as_echo_n "(cached) " >&6 9105else 9106 lt_cv_ld_exported_symbols_list=no 9107 save_LDFLAGS=$LDFLAGS 9108 echo "_main" > conftest.sym 9109 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 9110 if test x$gcc_no_link = xyes; then 9111 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 9112fi 9113cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9114/* end confdefs.h. */ 9115 9116int 9117main () 9118{ 9119 9120 ; 9121 return 0; 9122} 9123_ACEOF 9124if ac_fn_c_try_link "$LINENO"; then : 9125 lt_cv_ld_exported_symbols_list=yes 9126else 9127 lt_cv_ld_exported_symbols_list=no 9128fi 9129rm -f core conftest.err conftest.$ac_objext \ 9130 conftest$ac_exeext conftest.$ac_ext 9131 LDFLAGS="$save_LDFLAGS" 9132 9133fi 9134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 9135$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 9137$as_echo_n "checking for -force_load linker flag... " >&6; } 9138if ${lt_cv_ld_force_load+:} false; then : 9139 $as_echo_n "(cached) " >&6 9140else 9141 lt_cv_ld_force_load=no 9142 cat > conftest.c << _LT_EOF 9143int forced_loaded() { return 2;} 9144_LT_EOF 9145 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 9146 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 9147 echo "$AR cru libconftest.a conftest.o" >&5 9148 $AR cru libconftest.a conftest.o 2>&5 9149 cat > conftest.c << _LT_EOF 9150int main() { return 0;} 9151_LT_EOF 9152 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 9153 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 9154 _lt_result=$? 9155 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 9156 lt_cv_ld_force_load=yes 9157 else 9158 cat conftest.err >&5 9159 fi 9160 rm -f conftest.err libconftest.a conftest conftest.c 9161 rm -rf conftest.dSYM 9162 9163fi 9164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 9165$as_echo "$lt_cv_ld_force_load" >&6; } 9166 case $host_os in 9167 rhapsody* | darwin1.[012]) 9168 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 9169 darwin1.*) 9170 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 9171 darwin*) # darwin 5.x on 9172 # if running on 10.5 or later, the deployment target defaults 9173 # to the OS version, if on x86, and 10.4, the deployment 9174 # target defaults to 10.4. Don't you love it? 9175 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 9176 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 9177 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 9178 10.[012][,.]*) 9179 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 9180 10.*) 9181 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 9182 esac 9183 ;; 9184 esac 9185 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 9186 _lt_dar_single_mod='$single_module' 9187 fi 9188 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 9189 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 9190 else 9191 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 9192 fi 9193 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 9194 _lt_dsymutil='~$DSYMUTIL $lib || :' 9195 else 9196 _lt_dsymutil= 9197 fi 9198 ;; 9199 esac 9200 9201for ac_header in dlfcn.h 9202do : 9203 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 9204" 9205if test "x$ac_cv_header_dlfcn_h" = xyes; then : 9206 cat >>confdefs.h <<_ACEOF 9207#define HAVE_DLFCN_H 1 9208_ACEOF 9209 9210fi 9211 9212done 9213 9214 9215 9216 9217 9218# Set options 9219 9220 9221 9222 9223 enable_win32_dll=no 9224 9225 9226 # Check whether --enable-shared was given. 9227if test "${enable_shared+set}" = set; then : 9228 enableval=$enable_shared; p=${PACKAGE-default} 9229 case $enableval in 9230 yes) enable_shared=yes ;; 9231 no) enable_shared=no ;; 9232 *) 9233 enable_shared=no 9234 # Look at the argument we got. We use all the common list separators. 9235 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9236 for pkg in $enableval; do 9237 IFS="$lt_save_ifs" 9238 if test "X$pkg" = "X$p"; then 9239 enable_shared=yes 9240 fi 9241 done 9242 IFS="$lt_save_ifs" 9243 ;; 9244 esac 9245else 9246 enable_shared=yes 9247fi 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 # Check whether --enable-static was given. 9258if test "${enable_static+set}" = set; then : 9259 enableval=$enable_static; p=${PACKAGE-default} 9260 case $enableval in 9261 yes) enable_static=yes ;; 9262 no) enable_static=no ;; 9263 *) 9264 enable_static=no 9265 # Look at the argument we got. We use all the common list separators. 9266 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9267 for pkg in $enableval; do 9268 IFS="$lt_save_ifs" 9269 if test "X$pkg" = "X$p"; then 9270 enable_static=yes 9271 fi 9272 done 9273 IFS="$lt_save_ifs" 9274 ;; 9275 esac 9276else 9277 enable_static=yes 9278fi 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289# Check whether --with-pic was given. 9290if test "${with_pic+set}" = set; then : 9291 withval=$with_pic; pic_mode="$withval" 9292else 9293 pic_mode=default 9294fi 9295 9296 9297test -z "$pic_mode" && pic_mode=default 9298 9299 9300 9301 9302 9303 9304 9305 # Check whether --enable-fast-install was given. 9306if test "${enable_fast_install+set}" = set; then : 9307 enableval=$enable_fast_install; p=${PACKAGE-default} 9308 case $enableval in 9309 yes) enable_fast_install=yes ;; 9310 no) enable_fast_install=no ;; 9311 *) 9312 enable_fast_install=no 9313 # Look at the argument we got. We use all the common list separators. 9314 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9315 for pkg in $enableval; do 9316 IFS="$lt_save_ifs" 9317 if test "X$pkg" = "X$p"; then 9318 enable_fast_install=yes 9319 fi 9320 done 9321 IFS="$lt_save_ifs" 9322 ;; 9323 esac 9324else 9325 enable_fast_install=yes 9326fi 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338# This can be used to rebuild libtool when needed 9339LIBTOOL_DEPS="$ltmain" 9340 9341# Always use our own libtool. 9342LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369test -z "$LN_S" && LN_S="ln -s" 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383 9384if test -n "${ZSH_VERSION+set}" ; then 9385 setopt NO_GLOB_SUBST 9386fi 9387 9388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9389$as_echo_n "checking for objdir... " >&6; } 9390if ${lt_cv_objdir+:} false; then : 9391 $as_echo_n "(cached) " >&6 9392else 9393 rm -f .libs 2>/dev/null 9394mkdir .libs 2>/dev/null 9395if test -d .libs; then 9396 lt_cv_objdir=.libs 9397else 9398 # MS-DOS does not allow filenames that begin with a dot. 9399 lt_cv_objdir=_libs 9400fi 9401rmdir .libs 2>/dev/null 9402fi 9403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9404$as_echo "$lt_cv_objdir" >&6; } 9405objdir=$lt_cv_objdir 9406 9407 9408 9409 9410 9411cat >>confdefs.h <<_ACEOF 9412#define LT_OBJDIR "$lt_cv_objdir/" 9413_ACEOF 9414 9415 9416 9417 9418case $host_os in 9419aix3*) 9420 # AIX sometimes has problems with the GCC collect2 program. For some 9421 # reason, if we set the COLLECT_NAMES environment variable, the problems 9422 # vanish in a puff of smoke. 9423 if test "X${COLLECT_NAMES+set}" != Xset; then 9424 COLLECT_NAMES= 9425 export COLLECT_NAMES 9426 fi 9427 ;; 9428esac 9429 9430# Global variables: 9431ofile=libtool 9432can_build_shared=yes 9433 9434# All known linkers require a `.a' archive for static linking (except MSVC, 9435# which needs '.lib'). 9436libext=a 9437 9438with_gnu_ld="$lt_cv_prog_gnu_ld" 9439 9440old_CC="$CC" 9441old_CFLAGS="$CFLAGS" 9442 9443# Set sane defaults for various variables 9444test -z "$CC" && CC=cc 9445test -z "$LTCC" && LTCC=$CC 9446test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9447test -z "$LD" && LD=ld 9448test -z "$ac_objext" && ac_objext=o 9449 9450for cc_temp in $compiler""; do 9451 case $cc_temp in 9452 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9453 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9454 \-*) ;; 9455 *) break;; 9456 esac 9457done 9458cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 9459 9460 9461# Only perform the check for file, if the check method requires it 9462test -z "$MAGIC_CMD" && MAGIC_CMD=file 9463case $deplibs_check_method in 9464file_magic*) 9465 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9467$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 9468if ${lt_cv_path_MAGIC_CMD+:} false; then : 9469 $as_echo_n "(cached) " >&6 9470else 9471 case $MAGIC_CMD in 9472[\\/*] | ?:[\\/]*) 9473 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 9474 ;; 9475*) 9476 lt_save_MAGIC_CMD="$MAGIC_CMD" 9477 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9478 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9479 for ac_dir in $ac_dummy; do 9480 IFS="$lt_save_ifs" 9481 test -z "$ac_dir" && ac_dir=. 9482 if test -f $ac_dir/${ac_tool_prefix}file; then 9483 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 9484 if test -n "$file_magic_test_file"; then 9485 case $deplibs_check_method in 9486 "file_magic "*) 9487 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9488 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9489 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9490 $EGREP "$file_magic_regex" > /dev/null; then 9491 : 9492 else 9493 cat <<_LT_EOF 1>&2 9494 9495*** Warning: the command libtool uses to detect shared libraries, 9496*** $file_magic_cmd, produces output that libtool cannot recognize. 9497*** The result is that libtool may fail to recognize shared libraries 9498*** as such. This will affect the creation of libtool libraries that 9499*** depend on shared libraries, but programs linked with such libtool 9500*** libraries will work regardless of this problem. Nevertheless, you 9501*** may want to report the problem to your system manager and/or to 9502*** bug-libtool@gnu.org 9503 9504_LT_EOF 9505 fi ;; 9506 esac 9507 fi 9508 break 9509 fi 9510 done 9511 IFS="$lt_save_ifs" 9512 MAGIC_CMD="$lt_save_MAGIC_CMD" 9513 ;; 9514esac 9515fi 9516 9517MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9518if test -n "$MAGIC_CMD"; then 9519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9520$as_echo "$MAGIC_CMD" >&6; } 9521else 9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9523$as_echo "no" >&6; } 9524fi 9525 9526 9527 9528 9529 9530if test -z "$lt_cv_path_MAGIC_CMD"; then 9531 if test -n "$ac_tool_prefix"; then 9532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9533$as_echo_n "checking for file... " >&6; } 9534if ${lt_cv_path_MAGIC_CMD+:} false; then : 9535 $as_echo_n "(cached) " >&6 9536else 9537 case $MAGIC_CMD in 9538[\\/*] | ?:[\\/]*) 9539 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 9540 ;; 9541*) 9542 lt_save_MAGIC_CMD="$MAGIC_CMD" 9543 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9544 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9545 for ac_dir in $ac_dummy; do 9546 IFS="$lt_save_ifs" 9547 test -z "$ac_dir" && ac_dir=. 9548 if test -f $ac_dir/file; then 9549 lt_cv_path_MAGIC_CMD="$ac_dir/file" 9550 if test -n "$file_magic_test_file"; then 9551 case $deplibs_check_method in 9552 "file_magic "*) 9553 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9554 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9555 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9556 $EGREP "$file_magic_regex" > /dev/null; then 9557 : 9558 else 9559 cat <<_LT_EOF 1>&2 9560 9561*** Warning: the command libtool uses to detect shared libraries, 9562*** $file_magic_cmd, produces output that libtool cannot recognize. 9563*** The result is that libtool may fail to recognize shared libraries 9564*** as such. This will affect the creation of libtool libraries that 9565*** depend on shared libraries, but programs linked with such libtool 9566*** libraries will work regardless of this problem. Nevertheless, you 9567*** may want to report the problem to your system manager and/or to 9568*** bug-libtool@gnu.org 9569 9570_LT_EOF 9571 fi ;; 9572 esac 9573 fi 9574 break 9575 fi 9576 done 9577 IFS="$lt_save_ifs" 9578 MAGIC_CMD="$lt_save_MAGIC_CMD" 9579 ;; 9580esac 9581fi 9582 9583MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9584if test -n "$MAGIC_CMD"; then 9585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9586$as_echo "$MAGIC_CMD" >&6; } 9587else 9588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9589$as_echo "no" >&6; } 9590fi 9591 9592 9593 else 9594 MAGIC_CMD=: 9595 fi 9596fi 9597 9598 fi 9599 ;; 9600esac 9601 9602# Use C for the default configuration in the libtool script 9603 9604lt_save_CC="$CC" 9605ac_ext=c 9606ac_cpp='$CPP $CPPFLAGS' 9607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9609ac_compiler_gnu=$ac_cv_c_compiler_gnu 9610 9611 9612# Source file extension for C test sources. 9613ac_ext=c 9614 9615# Object file extension for compiled C test sources. 9616objext=o 9617objext=$objext 9618 9619# Code to be used in simple compile tests 9620lt_simple_compile_test_code="int some_variable = 0;" 9621 9622# Code to be used in simple link tests 9623lt_simple_link_test_code='int main(){return(0);}' 9624 9625 9626 9627 9628 9629 9630 9631# If no C compiler was specified, use CC. 9632LTCC=${LTCC-"$CC"} 9633 9634# If no C compiler flags were specified, use CFLAGS. 9635LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9636 9637# Allow CC to be a program name with arguments. 9638compiler=$CC 9639 9640# Save the default compiler, since it gets overwritten when the other 9641# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9642compiler_DEFAULT=$CC 9643 9644# save warnings/boilerplate of simple test code 9645ac_outfile=conftest.$ac_objext 9646echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9647eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9648_lt_compiler_boilerplate=`cat conftest.err` 9649$RM conftest* 9650 9651ac_outfile=conftest.$ac_objext 9652echo "$lt_simple_link_test_code" >conftest.$ac_ext 9653eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9654_lt_linker_boilerplate=`cat conftest.err` 9655$RM -r conftest* 9656 9657 9658## CAVEAT EMPTOR: 9659## There is no encapsulation within the following macros, do not change 9660## the running order or otherwise move them around unless you know exactly 9661## what you are doing... 9662if test -n "$compiler"; then 9663 9664lt_prog_compiler_no_builtin_flag= 9665 9666if test "$GCC" = yes; then 9667 case $cc_basename in 9668 nvcc*) 9669 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9670 *) 9671 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9672 esac 9673 9674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9675$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9676if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9677 $as_echo_n "(cached) " >&6 9678else 9679 lt_cv_prog_compiler_rtti_exceptions=no 9680 ac_outfile=conftest.$ac_objext 9681 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9682 lt_compiler_flag="-fno-rtti -fno-exceptions" 9683 # Insert the option either (1) after the last *FLAGS variable, or 9684 # (2) before a word containing "conftest.", or (3) at the end. 9685 # Note that $ac_compile itself does not contain backslashes and begins 9686 # with a dollar sign (not a hyphen), so the echo should work correctly. 9687 # The option is referenced via a variable to avoid confusing sed. 9688 lt_compile=`echo "$ac_compile" | $SED \ 9689 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9690 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9691 -e 's:$: $lt_compiler_flag:'` 9692 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9693 (eval "$lt_compile" 2>conftest.err) 9694 ac_status=$? 9695 cat conftest.err >&5 9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9697 if (exit $ac_status) && test -s "$ac_outfile"; then 9698 # The compiler can only warn and ignore the option if not recognized 9699 # So say no if there are warnings other than the usual output. 9700 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9701 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9702 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9703 lt_cv_prog_compiler_rtti_exceptions=yes 9704 fi 9705 fi 9706 $RM conftest* 9707 9708fi 9709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9710$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9711 9712if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 9713 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9714else 9715 : 9716fi 9717 9718fi 9719 9720 9721 9722 9723 9724 9725 lt_prog_compiler_wl= 9726lt_prog_compiler_pic= 9727lt_prog_compiler_static= 9728 9729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9730$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9731 9732 if test "$GCC" = yes; then 9733 lt_prog_compiler_wl='-Wl,' 9734 lt_prog_compiler_static='-static' 9735 9736 case $host_os in 9737 aix*) 9738 # All AIX code is PIC. 9739 if test "$host_cpu" = ia64; then 9740 # AIX 5 now supports IA64 processor 9741 lt_prog_compiler_static='-Bstatic' 9742 fi 9743 lt_prog_compiler_pic='-fPIC' 9744 ;; 9745 9746 amigaos*) 9747 case $host_cpu in 9748 powerpc) 9749 # see comment about AmigaOS4 .so support 9750 lt_prog_compiler_pic='-fPIC' 9751 ;; 9752 m68k) 9753 # FIXME: we need at least 68020 code to build shared libraries, but 9754 # adding the `-m68020' flag to GCC prevents building anything better, 9755 # like `-m68040'. 9756 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9757 ;; 9758 esac 9759 ;; 9760 9761 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9762 # PIC is the default for these OSes. 9763 ;; 9764 9765 mingw* | cygwin* | pw32* | os2* | cegcc*) 9766 # This hack is so that the source file can tell whether it is being 9767 # built for inclusion in a dll (and should export symbols for example). 9768 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9769 # (--disable-auto-import) libraries 9770 lt_prog_compiler_pic='-DDLL_EXPORT' 9771 ;; 9772 9773 darwin* | rhapsody*) 9774 # PIC is the default on this platform 9775 # Common symbols not allowed in MH_DYLIB files 9776 lt_prog_compiler_pic='-fno-common' 9777 ;; 9778 9779 haiku*) 9780 # PIC is the default for Haiku. 9781 # The "-static" flag exists, but is broken. 9782 lt_prog_compiler_static= 9783 ;; 9784 9785 hpux*) 9786 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9787 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9788 # sets the default TLS model and affects inlining. 9789 case $host_cpu in 9790 hppa*64*) 9791 # +Z the default 9792 ;; 9793 *) 9794 lt_prog_compiler_pic='-fPIC' 9795 ;; 9796 esac 9797 ;; 9798 9799 interix[3-9]*) 9800 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9801 # Instead, we relocate shared libraries at runtime. 9802 ;; 9803 9804 msdosdjgpp*) 9805 # Just because we use GCC doesn't mean we suddenly get shared libraries 9806 # on systems that don't support them. 9807 lt_prog_compiler_can_build_shared=no 9808 enable_shared=no 9809 ;; 9810 9811 *nto* | *qnx*) 9812 # QNX uses GNU C++, but need to define -shared option too, otherwise 9813 # it will coredump. 9814 lt_prog_compiler_pic='-fPIC -shared' 9815 ;; 9816 9817 sysv4*MP*) 9818 if test -d /usr/nec; then 9819 lt_prog_compiler_pic=-Kconform_pic 9820 fi 9821 ;; 9822 9823 *) 9824 lt_prog_compiler_pic='-fPIC' 9825 ;; 9826 esac 9827 9828 case $cc_basename in 9829 nvcc*) # Cuda Compiler Driver 2.2 9830 lt_prog_compiler_wl='-Xlinker ' 9831 lt_prog_compiler_pic='-Xcompiler -fPIC' 9832 ;; 9833 esac 9834 else 9835 # PORTME Check for flag to pass linker flags through the system compiler. 9836 case $host_os in 9837 aix*) 9838 lt_prog_compiler_wl='-Wl,' 9839 if test "$host_cpu" = ia64; then 9840 # AIX 5 now supports IA64 processor 9841 lt_prog_compiler_static='-Bstatic' 9842 else 9843 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9844 fi 9845 ;; 9846 9847 mingw* | cygwin* | pw32* | os2* | cegcc*) 9848 # This hack is so that the source file can tell whether it is being 9849 # built for inclusion in a dll (and should export symbols for example). 9850 lt_prog_compiler_pic='-DDLL_EXPORT' 9851 ;; 9852 9853 hpux9* | hpux10* | hpux11*) 9854 lt_prog_compiler_wl='-Wl,' 9855 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9856 # not for PA HP-UX. 9857 case $host_cpu in 9858 hppa*64*|ia64*) 9859 # +Z the default 9860 ;; 9861 *) 9862 lt_prog_compiler_pic='+Z' 9863 ;; 9864 esac 9865 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9866 lt_prog_compiler_static='${wl}-a ${wl}archive' 9867 ;; 9868 9869 irix5* | irix6* | nonstopux*) 9870 lt_prog_compiler_wl='-Wl,' 9871 # PIC (with -KPIC) is the default. 9872 lt_prog_compiler_static='-non_shared' 9873 ;; 9874 9875 linux* | k*bsd*-gnu | kopensolaris*-gnu) 9876 case $cc_basename in 9877 # old Intel for x86_64 which still supported -KPIC. 9878 ecc*) 9879 lt_prog_compiler_wl='-Wl,' 9880 lt_prog_compiler_pic='-KPIC' 9881 lt_prog_compiler_static='-static' 9882 ;; 9883 # icc used to be incompatible with GCC. 9884 # ICC 10 doesn't accept -KPIC any more. 9885 icc* | ifort*) 9886 lt_prog_compiler_wl='-Wl,' 9887 lt_prog_compiler_pic='-fPIC' 9888 lt_prog_compiler_static='-static' 9889 ;; 9890 # Lahey Fortran 8.1. 9891 lf95*) 9892 lt_prog_compiler_wl='-Wl,' 9893 lt_prog_compiler_pic='--shared' 9894 lt_prog_compiler_static='--static' 9895 ;; 9896 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9897 # Portland Group compilers (*not* the Pentium gcc compiler, 9898 # which looks to be a dead project) 9899 lt_prog_compiler_wl='-Wl,' 9900 lt_prog_compiler_pic='-fpic' 9901 lt_prog_compiler_static='-Bstatic' 9902 ;; 9903 ccc*) 9904 lt_prog_compiler_wl='-Wl,' 9905 # All Alpha code is PIC. 9906 lt_prog_compiler_static='-non_shared' 9907 ;; 9908 xl* | bgxl* | bgf* | mpixl*) 9909 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9910 lt_prog_compiler_wl='-Wl,' 9911 lt_prog_compiler_pic='-qpic' 9912 lt_prog_compiler_static='-qstaticlink' 9913 ;; 9914 *) 9915 case `$CC -V 2>&1 | sed 5q` in 9916 *Sun\ F* | *Sun*Fortran*) 9917 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9918 lt_prog_compiler_pic='-KPIC' 9919 lt_prog_compiler_static='-Bstatic' 9920 lt_prog_compiler_wl='' 9921 ;; 9922 *Sun\ C*) 9923 # Sun C 5.9 9924 lt_prog_compiler_pic='-KPIC' 9925 lt_prog_compiler_static='-Bstatic' 9926 lt_prog_compiler_wl='-Wl,' 9927 ;; 9928 esac 9929 ;; 9930 esac 9931 ;; 9932 9933 newsos6) 9934 lt_prog_compiler_pic='-KPIC' 9935 lt_prog_compiler_static='-Bstatic' 9936 ;; 9937 9938 *nto* | *qnx*) 9939 # QNX uses GNU C++, but need to define -shared option too, otherwise 9940 # it will coredump. 9941 lt_prog_compiler_pic='-fPIC -shared' 9942 ;; 9943 9944 osf3* | osf4* | osf5*) 9945 lt_prog_compiler_wl='-Wl,' 9946 # All OSF/1 code is PIC. 9947 lt_prog_compiler_static='-non_shared' 9948 ;; 9949 9950 rdos*) 9951 lt_prog_compiler_static='-non_shared' 9952 ;; 9953 9954 solaris*) 9955 lt_prog_compiler_pic='-KPIC' 9956 lt_prog_compiler_static='-Bstatic' 9957 case $cc_basename in 9958 f77* | f90* | f95*) 9959 lt_prog_compiler_wl='-Qoption ld ';; 9960 *) 9961 lt_prog_compiler_wl='-Wl,';; 9962 esac 9963 ;; 9964 9965 sunos4*) 9966 lt_prog_compiler_wl='-Qoption ld ' 9967 lt_prog_compiler_pic='-PIC' 9968 lt_prog_compiler_static='-Bstatic' 9969 ;; 9970 9971 sysv4 | sysv4.2uw2* | sysv4.3*) 9972 lt_prog_compiler_wl='-Wl,' 9973 lt_prog_compiler_pic='-KPIC' 9974 lt_prog_compiler_static='-Bstatic' 9975 ;; 9976 9977 sysv4*MP*) 9978 if test -d /usr/nec ;then 9979 lt_prog_compiler_pic='-Kconform_pic' 9980 lt_prog_compiler_static='-Bstatic' 9981 fi 9982 ;; 9983 9984 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9985 lt_prog_compiler_wl='-Wl,' 9986 lt_prog_compiler_pic='-KPIC' 9987 lt_prog_compiler_static='-Bstatic' 9988 ;; 9989 9990 unicos*) 9991 lt_prog_compiler_wl='-Wl,' 9992 lt_prog_compiler_can_build_shared=no 9993 ;; 9994 9995 uts4*) 9996 lt_prog_compiler_pic='-pic' 9997 lt_prog_compiler_static='-Bstatic' 9998 ;; 9999 10000 *) 10001 lt_prog_compiler_can_build_shared=no 10002 ;; 10003 esac 10004 fi 10005 10006case $host_os in 10007 # For platforms which do not support PIC, -DPIC is meaningless: 10008 *djgpp*) 10009 lt_prog_compiler_pic= 10010 ;; 10011 *) 10012 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 10013 ;; 10014esac 10015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 10016$as_echo "$lt_prog_compiler_pic" >&6; } 10017 10018 10019 10020 10021 10022 10023# 10024# Check to make sure the PIC flag actually works. 10025# 10026if test -n "$lt_prog_compiler_pic"; then 10027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 10028$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 10029if ${lt_cv_prog_compiler_pic_works+:} false; then : 10030 $as_echo_n "(cached) " >&6 10031else 10032 lt_cv_prog_compiler_pic_works=no 10033 ac_outfile=conftest.$ac_objext 10034 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10035 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 10036 # Insert the option either (1) after the last *FLAGS variable, or 10037 # (2) before a word containing "conftest.", or (3) at the end. 10038 # Note that $ac_compile itself does not contain backslashes and begins 10039 # with a dollar sign (not a hyphen), so the echo should work correctly. 10040 # The option is referenced via a variable to avoid confusing sed. 10041 lt_compile=`echo "$ac_compile" | $SED \ 10042 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10043 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10044 -e 's:$: $lt_compiler_flag:'` 10045 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10046 (eval "$lt_compile" 2>conftest.err) 10047 ac_status=$? 10048 cat conftest.err >&5 10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10050 if (exit $ac_status) && test -s "$ac_outfile"; then 10051 # The compiler can only warn and ignore the option if not recognized 10052 # So say no if there are warnings other than the usual output. 10053 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10054 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10055 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10056 lt_cv_prog_compiler_pic_works=yes 10057 fi 10058 fi 10059 $RM conftest* 10060 10061fi 10062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10063$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 10064 10065if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 10066 case $lt_prog_compiler_pic in 10067 "" | " "*) ;; 10068 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10069 esac 10070else 10071 lt_prog_compiler_pic= 10072 lt_prog_compiler_can_build_shared=no 10073fi 10074 10075fi 10076 10077 10078 10079 10080 10081 10082# 10083# Check to make sure the static flag actually works. 10084# 10085wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10087$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10088if ${lt_cv_prog_compiler_static_works+:} false; then : 10089 $as_echo_n "(cached) " >&6 10090else 10091 lt_cv_prog_compiler_static_works=no 10092 save_LDFLAGS="$LDFLAGS" 10093 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10094 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10095 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10096 # The linker can only warn and ignore the option if not recognized 10097 # So say no if there are warnings 10098 if test -s conftest.err; then 10099 # Append any errors to the config.log. 10100 cat conftest.err 1>&5 10101 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10102 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10103 if diff conftest.exp conftest.er2 >/dev/null; then 10104 lt_cv_prog_compiler_static_works=yes 10105 fi 10106 else 10107 lt_cv_prog_compiler_static_works=yes 10108 fi 10109 fi 10110 $RM -r conftest* 10111 LDFLAGS="$save_LDFLAGS" 10112 10113fi 10114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10115$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 10116 10117if test x"$lt_cv_prog_compiler_static_works" = xyes; then 10118 : 10119else 10120 lt_prog_compiler_static= 10121fi 10122 10123 10124 10125 10126 10127 10128 10129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10130$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10131if ${lt_cv_prog_compiler_c_o+:} false; then : 10132 $as_echo_n "(cached) " >&6 10133else 10134 lt_cv_prog_compiler_c_o=no 10135 $RM -r conftest 2>/dev/null 10136 mkdir conftest 10137 cd conftest 10138 mkdir out 10139 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10140 10141 lt_compiler_flag="-o out/conftest2.$ac_objext" 10142 # Insert the option either (1) after the last *FLAGS variable, or 10143 # (2) before a word containing "conftest.", or (3) at the end. 10144 # Note that $ac_compile itself does not contain backslashes and begins 10145 # with a dollar sign (not a hyphen), so the echo should work correctly. 10146 lt_compile=`echo "$ac_compile" | $SED \ 10147 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10148 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10149 -e 's:$: $lt_compiler_flag:'` 10150 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10151 (eval "$lt_compile" 2>out/conftest.err) 10152 ac_status=$? 10153 cat out/conftest.err >&5 10154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10155 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10156 then 10157 # The compiler can only warn and ignore the option if not recognized 10158 # So say no if there are warnings 10159 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10160 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10161 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10162 lt_cv_prog_compiler_c_o=yes 10163 fi 10164 fi 10165 chmod u+w . 2>&5 10166 $RM conftest* 10167 # SGI C++ compiler will create directory out/ii_files/ for 10168 # template instantiation 10169 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10170 $RM out/* && rmdir out 10171 cd .. 10172 $RM -r conftest 10173 $RM conftest* 10174 10175fi 10176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10177$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10178 10179 10180 10181 10182 10183 10184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10185$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10186if ${lt_cv_prog_compiler_c_o+:} false; then : 10187 $as_echo_n "(cached) " >&6 10188else 10189 lt_cv_prog_compiler_c_o=no 10190 $RM -r conftest 2>/dev/null 10191 mkdir conftest 10192 cd conftest 10193 mkdir out 10194 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10195 10196 lt_compiler_flag="-o out/conftest2.$ac_objext" 10197 # Insert the option either (1) after the last *FLAGS variable, or 10198 # (2) before a word containing "conftest.", or (3) at the end. 10199 # Note that $ac_compile itself does not contain backslashes and begins 10200 # with a dollar sign (not a hyphen), so the echo should work correctly. 10201 lt_compile=`echo "$ac_compile" | $SED \ 10202 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10203 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10204 -e 's:$: $lt_compiler_flag:'` 10205 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10206 (eval "$lt_compile" 2>out/conftest.err) 10207 ac_status=$? 10208 cat out/conftest.err >&5 10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10210 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10211 then 10212 # The compiler can only warn and ignore the option if not recognized 10213 # So say no if there are warnings 10214 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10215 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10216 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10217 lt_cv_prog_compiler_c_o=yes 10218 fi 10219 fi 10220 chmod u+w . 2>&5 10221 $RM conftest* 10222 # SGI C++ compiler will create directory out/ii_files/ for 10223 # template instantiation 10224 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10225 $RM out/* && rmdir out 10226 cd .. 10227 $RM -r conftest 10228 $RM conftest* 10229 10230fi 10231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10232$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10233 10234 10235 10236 10237hard_links="nottested" 10238if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 10239 # do not overwrite the value of need_locks provided by the user 10240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10241$as_echo_n "checking if we can lock with hard links... " >&6; } 10242 hard_links=yes 10243 $RM conftest* 10244 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10245 touch conftest.a 10246 ln conftest.a conftest.b 2>&5 || hard_links=no 10247 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10249$as_echo "$hard_links" >&6; } 10250 if test "$hard_links" = no; then 10251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 10252$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 10253 need_locks=warn 10254 fi 10255else 10256 need_locks=no 10257fi 10258 10259 10260 10261 10262 10263 10264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10265$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10266 10267 runpath_var= 10268 allow_undefined_flag= 10269 always_export_symbols=no 10270 archive_cmds= 10271 archive_expsym_cmds= 10272 compiler_needs_object=no 10273 enable_shared_with_static_runtimes=no 10274 export_dynamic_flag_spec= 10275 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10276 hardcode_automatic=no 10277 hardcode_direct=no 10278 hardcode_direct_absolute=no 10279 hardcode_libdir_flag_spec= 10280 hardcode_libdir_flag_spec_ld= 10281 hardcode_libdir_separator= 10282 hardcode_minus_L=no 10283 hardcode_shlibpath_var=unsupported 10284 inherit_rpath=no 10285 link_all_deplibs=unknown 10286 module_cmds= 10287 module_expsym_cmds= 10288 old_archive_from_new_cmds= 10289 old_archive_from_expsyms_cmds= 10290 thread_safe_flag_spec= 10291 whole_archive_flag_spec= 10292 # include_expsyms should be a list of space-separated symbols to be *always* 10293 # included in the symbol list 10294 include_expsyms= 10295 # exclude_expsyms can be an extended regexp of symbols to exclude 10296 # it will be wrapped by ` (' and `)$', so one must not match beginning or 10297 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 10298 # as well as any symbol that contains `d'. 10299 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10300 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10301 # platforms (ab)use it in PIC code, but their linkers get confused if 10302 # the symbol is explicitly referenced. Since portable code cannot 10303 # rely on this symbol name, it's probably fine to never include it in 10304 # preloaded symbol tables. 10305 # Exclude shared library initialization/finalization symbols. 10306 extract_expsyms_cmds= 10307 10308 case $host_os in 10309 cygwin* | mingw* | pw32* | cegcc*) 10310 # FIXME: the MSVC++ port hasn't been tested in a loooong time 10311 # When not using gcc, we currently assume that we are using 10312 # Microsoft Visual C++. 10313 if test "$GCC" != yes; then 10314 with_gnu_ld=no 10315 fi 10316 ;; 10317 interix*) 10318 # we just hope/assume this is gcc and not c89 (= MSVC++) 10319 with_gnu_ld=yes 10320 ;; 10321 openbsd*) 10322 with_gnu_ld=no 10323 ;; 10324 esac 10325 10326 ld_shlibs=yes 10327 10328 # On some targets, GNU ld is compatible enough with the native linker 10329 # that we're better off using the native interface for both. 10330 lt_use_gnu_ld_interface=no 10331 if test "$with_gnu_ld" = yes; then 10332 case $host_os in 10333 aix*) 10334 # The AIX port of GNU ld has always aspired to compatibility 10335 # with the native linker. However, as the warning in the GNU ld 10336 # block says, versions before 2.19.5* couldn't really create working 10337 # shared libraries, regardless of the interface used. 10338 case `$LD -v 2>&1` in 10339 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10340 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10341 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10342 *) 10343 lt_use_gnu_ld_interface=yes 10344 ;; 10345 esac 10346 ;; 10347 *) 10348 lt_use_gnu_ld_interface=yes 10349 ;; 10350 esac 10351 fi 10352 10353 if test "$lt_use_gnu_ld_interface" = yes; then 10354 # If archive_cmds runs LD, not CC, wlarc should be empty 10355 wlarc='${wl}' 10356 10357 # Set some defaults for GNU ld with shared library support. These 10358 # are reset later if shared libraries are not supported. Putting them 10359 # here allows them to be overridden if necessary. 10360 runpath_var=LD_RUN_PATH 10361 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10362 export_dynamic_flag_spec='${wl}--export-dynamic' 10363 # ancient GNU ld didn't support --whole-archive et. al. 10364 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10365 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10366 else 10367 whole_archive_flag_spec= 10368 fi 10369 supports_anon_versioning=no 10370 case `$LD -v 2>&1` in 10371 *GNU\ gold*) supports_anon_versioning=yes ;; 10372 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10373 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10374 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10375 *\ 2.11.*) ;; # other 2.11 versions 10376 *) supports_anon_versioning=yes ;; 10377 esac 10378 10379 # See if GNU ld supports shared libraries. 10380 case $host_os in 10381 aix[3-9]*) 10382 # On AIX/PPC, the GNU linker is very broken 10383 if test "$host_cpu" != ia64; then 10384 ld_shlibs=no 10385 cat <<_LT_EOF 1>&2 10386 10387*** Warning: the GNU linker, at least up to release 2.19, is reported 10388*** to be unable to reliably create shared libraries on AIX. 10389*** Therefore, libtool is disabling shared libraries support. If you 10390*** really care for shared libraries, you may want to install binutils 10391*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10392*** You will then need to restart the configuration process. 10393 10394_LT_EOF 10395 fi 10396 ;; 10397 10398 amigaos*) 10399 case $host_cpu in 10400 powerpc) 10401 # see comment about AmigaOS4 .so support 10402 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10403 archive_expsym_cmds='' 10404 ;; 10405 m68k) 10406 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)' 10407 hardcode_libdir_flag_spec='-L$libdir' 10408 hardcode_minus_L=yes 10409 ;; 10410 esac 10411 ;; 10412 10413 beos*) 10414 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10415 allow_undefined_flag=unsupported 10416 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10417 # support --undefined. This deserves some investigation. FIXME 10418 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10419 else 10420 ld_shlibs=no 10421 fi 10422 ;; 10423 10424 cygwin* | mingw* | pw32* | cegcc*) 10425 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10426 # as there is no search path for DLLs. 10427 hardcode_libdir_flag_spec='-L$libdir' 10428 export_dynamic_flag_spec='${wl}--export-all-symbols' 10429 allow_undefined_flag=unsupported 10430 always_export_symbols=no 10431 enable_shared_with_static_runtimes=yes 10432 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10433 10434 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10435 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10436 # If the export-symbols file already is a .def file (1st line 10437 # is EXPORTS), use it as is; otherwise, prepend... 10438 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10439 cp $export_symbols $output_objdir/$soname.def; 10440 else 10441 echo EXPORTS > $output_objdir/$soname.def; 10442 cat $export_symbols >> $output_objdir/$soname.def; 10443 fi~ 10444 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10445 else 10446 ld_shlibs=no 10447 fi 10448 ;; 10449 10450 haiku*) 10451 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10452 link_all_deplibs=yes 10453 ;; 10454 10455 interix[3-9]*) 10456 hardcode_direct=no 10457 hardcode_shlibpath_var=no 10458 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10459 export_dynamic_flag_spec='${wl}-E' 10460 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10461 # Instead, shared libraries are loaded at an image base (0x10000000 by 10462 # default) and relocated if they conflict, which is a slow very memory 10463 # consuming and fragmenting process. To avoid this, we pick a random, 10464 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10465 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10466 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10467 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' 10468 ;; 10469 10470 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) 10471 tmp_diet=no 10472 if test "$host_os" = linux-dietlibc; then 10473 case $cc_basename in 10474 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10475 esac 10476 fi 10477 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10478 && test "$tmp_diet" = no 10479 then 10480 tmp_addflag=' $pic_flag' 10481 tmp_sharedflag='-shared' 10482 case $cc_basename,$host_cpu in 10483 pgcc*) # Portland Group C compiler 10484 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' 10485 tmp_addflag=' $pic_flag' 10486 ;; 10487 pgf77* | pgf90* | pgf95* | pgfortran*) 10488 # Portland Group f77 and f90 compilers 10489 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' 10490 tmp_addflag=' $pic_flag -Mnomain' ;; 10491 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10492 tmp_addflag=' -i_dynamic' ;; 10493 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10494 tmp_addflag=' -i_dynamic -nofor_main' ;; 10495 ifc* | ifort*) # Intel Fortran compiler 10496 tmp_addflag=' -nofor_main' ;; 10497 lf95*) # Lahey Fortran 8.1 10498 whole_archive_flag_spec= 10499 tmp_sharedflag='--shared' ;; 10500 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10501 tmp_sharedflag='-qmkshrobj' 10502 tmp_addflag= ;; 10503 nvcc*) # Cuda Compiler Driver 2.2 10504 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' 10505 compiler_needs_object=yes 10506 ;; 10507 esac 10508 case `$CC -V 2>&1 | sed 5q` in 10509 *Sun\ C*) # Sun C 5.9 10510 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' 10511 compiler_needs_object=yes 10512 tmp_sharedflag='-G' ;; 10513 *Sun\ F*) # Sun Fortran 8.3 10514 tmp_sharedflag='-G' ;; 10515 esac 10516 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10517 10518 if test "x$supports_anon_versioning" = xyes; then 10519 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10520 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10521 echo "local: *; };" >> $output_objdir/$libname.ver~ 10522 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 10523 fi 10524 10525 case $cc_basename in 10526 xlf* | bgf* | bgxlf* | mpixlf*) 10527 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10528 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10529 hardcode_libdir_flag_spec= 10530 hardcode_libdir_flag_spec_ld='-rpath $libdir' 10531 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 10532 if test "x$supports_anon_versioning" = xyes; then 10533 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10534 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10535 echo "local: *; };" >> $output_objdir/$libname.ver~ 10536 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10537 fi 10538 ;; 10539 esac 10540 else 10541 ld_shlibs=no 10542 fi 10543 ;; 10544 10545 netbsd*) 10546 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10547 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10548 wlarc= 10549 else 10550 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10551 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10552 fi 10553 ;; 10554 10555 solaris*) 10556 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10557 ld_shlibs=no 10558 cat <<_LT_EOF 1>&2 10559 10560*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10561*** create shared libraries on Solaris systems. Therefore, libtool 10562*** is disabling shared libraries support. We urge you to upgrade GNU 10563*** binutils to release 2.9.1 or newer. Another option is to modify 10564*** your PATH or compiler configuration so that the native linker is 10565*** used, and then restart. 10566 10567_LT_EOF 10568 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10569 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10570 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10571 else 10572 ld_shlibs=no 10573 fi 10574 ;; 10575 10576 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10577 case `$LD -v 2>&1` in 10578 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10579 ld_shlibs=no 10580 cat <<_LT_EOF 1>&2 10581 10582*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 10583*** reliably create shared libraries on SCO systems. Therefore, libtool 10584*** is disabling shared libraries support. We urge you to upgrade GNU 10585*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10586*** your PATH or compiler configuration so that the native linker is 10587*** used, and then restart. 10588 10589_LT_EOF 10590 ;; 10591 *) 10592 # For security reasons, it is highly recommended that you always 10593 # use absolute paths for naming shared libraries, and exclude the 10594 # DT_RUNPATH tag from executables and libraries. But doing so 10595 # requires that you compile everything twice, which is a pain. 10596 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10597 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10598 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10599 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10600 else 10601 ld_shlibs=no 10602 fi 10603 ;; 10604 esac 10605 ;; 10606 10607 sunos4*) 10608 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10609 wlarc= 10610 hardcode_direct=yes 10611 hardcode_shlibpath_var=no 10612 ;; 10613 10614 *) 10615 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10616 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10617 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10618 else 10619 ld_shlibs=no 10620 fi 10621 ;; 10622 esac 10623 10624 if test "$ld_shlibs" = no; then 10625 runpath_var= 10626 hardcode_libdir_flag_spec= 10627 export_dynamic_flag_spec= 10628 whole_archive_flag_spec= 10629 fi 10630 else 10631 # PORTME fill in a description of your system's linker (not GNU ld) 10632 case $host_os in 10633 aix3*) 10634 allow_undefined_flag=unsupported 10635 always_export_symbols=yes 10636 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' 10637 # Note: this linker hardcodes the directories in LIBPATH if there 10638 # are no directories specified by -L. 10639 hardcode_minus_L=yes 10640 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 10641 # Neither direct hardcoding nor static linking is supported with a 10642 # broken collect2. 10643 hardcode_direct=unsupported 10644 fi 10645 ;; 10646 10647 aix[4-9]*) 10648 if test "$host_cpu" = ia64; then 10649 # On IA64, the linker does run time linking by default, so we don't 10650 # have to do anything special. 10651 aix_use_runtimelinking=no 10652 exp_sym_flag='-Bexport' 10653 no_entry_flag="" 10654 else 10655 # If we're using GNU nm, then we don't want the "-C" option. 10656 # -C means demangle to AIX nm, but means don't demangle with GNU nm 10657 # Also, AIX nm treats weak defined symbols like other global 10658 # defined symbols, whereas GNU nm marks them as "W". 10659 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10660 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' 10661 else 10662 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' 10663 fi 10664 aix_use_runtimelinking=no 10665 10666 # Test if we are trying to use run time linking or normal 10667 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10668 # need to do runtime linking. 10669 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10670 for ld_flag in $LDFLAGS; do 10671 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 10672 aix_use_runtimelinking=yes 10673 break 10674 fi 10675 done 10676 ;; 10677 esac 10678 10679 exp_sym_flag='-bexport' 10680 no_entry_flag='-bnoentry' 10681 fi 10682 10683 # When large executables or shared objects are built, AIX ld can 10684 # have problems creating the table of contents. If linking a library 10685 # or program results in "error TOC overflow" add -mminimal-toc to 10686 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10687 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10688 10689 archive_cmds='' 10690 hardcode_direct=yes 10691 hardcode_direct_absolute=yes 10692 hardcode_libdir_separator=':' 10693 link_all_deplibs=yes 10694 file_list_spec='${wl}-f,' 10695 10696 if test "$GCC" = yes; then 10697 case $host_os in aix4.[012]|aix4.[012].*) 10698 # We only want to do this on AIX 4.2 and lower, the check 10699 # below for broken collect2 doesn't work under 4.3+ 10700 collect2name=`${CC} -print-prog-name=collect2` 10701 if test -f "$collect2name" && 10702 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10703 then 10704 # We have reworked collect2 10705 : 10706 else 10707 # We have old collect2 10708 hardcode_direct=unsupported 10709 # It fails to find uninstalled libraries when the uninstalled 10710 # path is not listed in the libpath. Setting hardcode_minus_L 10711 # to unsupported forces relinking 10712 hardcode_minus_L=yes 10713 hardcode_libdir_flag_spec='-L$libdir' 10714 hardcode_libdir_separator= 10715 fi 10716 ;; 10717 esac 10718 shared_flag='-shared' 10719 if test "$aix_use_runtimelinking" = yes; then 10720 shared_flag="$shared_flag "'${wl}-G' 10721 fi 10722 else 10723 # not using gcc 10724 if test "$host_cpu" = ia64; then 10725 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10726 # chokes on -Wl,-G. The following line is correct: 10727 shared_flag='-G' 10728 else 10729 if test "$aix_use_runtimelinking" = yes; then 10730 shared_flag='${wl}-G' 10731 else 10732 shared_flag='${wl}-bM:SRE' 10733 fi 10734 fi 10735 fi 10736 10737 export_dynamic_flag_spec='${wl}-bexpall' 10738 # It seems that -bexpall does not export symbols beginning with 10739 # underscore (_), so it is better to generate a list of symbols to export. 10740 always_export_symbols=yes 10741 if test "$aix_use_runtimelinking" = yes; then 10742 # Warning - without using the other runtime loading flags (-brtl), 10743 # -berok will link without error, but may produce a broken library. 10744 allow_undefined_flag='-berok' 10745 # Determine the default libpath from the value encoded in an 10746 # empty executable. 10747 if test x$gcc_no_link = xyes; then 10748 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 10749fi 10750cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10751/* end confdefs.h. */ 10752 10753int 10754main () 10755{ 10756 10757 ; 10758 return 0; 10759} 10760_ACEOF 10761if ac_fn_c_try_link "$LINENO"; then : 10762 10763lt_aix_libpath_sed=' 10764 /Import File Strings/,/^$/ { 10765 /^0/ { 10766 s/^0 *\(.*\)$/\1/ 10767 p 10768 } 10769 }' 10770aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10771# Check for a 64-bit object if we didn't find anything. 10772if test -z "$aix_libpath"; then 10773 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10774fi 10775fi 10776rm -f core conftest.err conftest.$ac_objext \ 10777 conftest$ac_exeext conftest.$ac_ext 10778if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10779 10780 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10781 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" 10782 else 10783 if test "$host_cpu" = ia64; then 10784 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 10785 allow_undefined_flag="-z nodefs" 10786 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" 10787 else 10788 # Determine the default libpath from the value encoded in an 10789 # empty executable. 10790 if test x$gcc_no_link = xyes; then 10791 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 10792fi 10793cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10794/* end confdefs.h. */ 10795 10796int 10797main () 10798{ 10799 10800 ; 10801 return 0; 10802} 10803_ACEOF 10804if ac_fn_c_try_link "$LINENO"; then : 10805 10806lt_aix_libpath_sed=' 10807 /Import File Strings/,/^$/ { 10808 /^0/ { 10809 s/^0 *\(.*\)$/\1/ 10810 p 10811 } 10812 }' 10813aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10814# Check for a 64-bit object if we didn't find anything. 10815if test -z "$aix_libpath"; then 10816 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10817fi 10818fi 10819rm -f core conftest.err conftest.$ac_objext \ 10820 conftest$ac_exeext conftest.$ac_ext 10821if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10822 10823 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10824 # Warning - without using the other run time loading flags, 10825 # -berok will link without error, but may produce a broken library. 10826 no_undefined_flag=' ${wl}-bernotok' 10827 allow_undefined_flag=' ${wl}-berok' 10828 if test "$with_gnu_ld" = yes; then 10829 # We only use this code for GNU lds that support --whole-archive. 10830 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10831 else 10832 # Exported symbols can be pulled into shared objects from archives 10833 whole_archive_flag_spec='$convenience' 10834 fi 10835 archive_cmds_need_lc=yes 10836 # This is similar to how AIX traditionally builds its shared libraries. 10837 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' 10838 fi 10839 fi 10840 ;; 10841 10842 amigaos*) 10843 case $host_cpu in 10844 powerpc) 10845 # see comment about AmigaOS4 .so support 10846 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10847 archive_expsym_cmds='' 10848 ;; 10849 m68k) 10850 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)' 10851 hardcode_libdir_flag_spec='-L$libdir' 10852 hardcode_minus_L=yes 10853 ;; 10854 esac 10855 ;; 10856 10857 bsdi[45]*) 10858 export_dynamic_flag_spec=-rdynamic 10859 ;; 10860 10861 cygwin* | mingw* | pw32* | cegcc*) 10862 # When not using gcc, we currently assume that we are using 10863 # Microsoft Visual C++. 10864 # hardcode_libdir_flag_spec is actually meaningless, as there is 10865 # no search path for DLLs. 10866 hardcode_libdir_flag_spec=' ' 10867 allow_undefined_flag=unsupported 10868 # Tell ltmain to make .lib files, not .a files. 10869 libext=lib 10870 # Tell ltmain to make .dll files, not .so files. 10871 shrext_cmds=".dll" 10872 # FIXME: Setting linknames here is a bad hack. 10873 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10874 # The linker will automatically build a .lib file if we build a DLL. 10875 old_archive_from_new_cmds='true' 10876 # FIXME: Should let the user specify the lib program. 10877 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10878 fix_srcfile_path='`cygpath -w "$srcfile"`' 10879 enable_shared_with_static_runtimes=yes 10880 ;; 10881 10882 darwin* | rhapsody*) 10883 10884 10885 archive_cmds_need_lc=no 10886 hardcode_direct=no 10887 hardcode_automatic=yes 10888 hardcode_shlibpath_var=unsupported 10889 if test "$lt_cv_ld_force_load" = "yes"; then 10890 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\"`' 10891 else 10892 whole_archive_flag_spec='' 10893 fi 10894 link_all_deplibs=yes 10895 allow_undefined_flag="$_lt_dar_allow_undefined" 10896 case $cc_basename in 10897 ifort*) _lt_dar_can_shared=yes ;; 10898 *) _lt_dar_can_shared=$GCC ;; 10899 esac 10900 if test "$_lt_dar_can_shared" = "yes"; then 10901 output_verbose_link_cmd=func_echo_all 10902 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 10903 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 10904 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}" 10905 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}" 10906 10907 else 10908 ld_shlibs=no 10909 fi 10910 10911 ;; 10912 10913 dgux*) 10914 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10915 hardcode_libdir_flag_spec='-L$libdir' 10916 hardcode_shlibpath_var=no 10917 ;; 10918 10919 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10920 # support. Future versions do this automatically, but an explicit c++rt0.o 10921 # does not break anything, and helps significantly (at the cost of a little 10922 # extra space). 10923 freebsd2.2*) 10924 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10925 hardcode_libdir_flag_spec='-R$libdir' 10926 hardcode_direct=yes 10927 hardcode_shlibpath_var=no 10928 ;; 10929 10930 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10931 freebsd2.*) 10932 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10933 hardcode_direct=yes 10934 hardcode_minus_L=yes 10935 hardcode_shlibpath_var=no 10936 ;; 10937 10938 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10939 freebsd* | dragonfly*) 10940 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 10941 hardcode_libdir_flag_spec='-R$libdir' 10942 hardcode_direct=yes 10943 hardcode_shlibpath_var=no 10944 ;; 10945 10946 hpux9*) 10947 if test "$GCC" = yes; then 10948 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' 10949 else 10950 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' 10951 fi 10952 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10953 hardcode_libdir_separator=: 10954 hardcode_direct=yes 10955 10956 # hardcode_minus_L: Not really in the search PATH, 10957 # but as the default location of the library. 10958 hardcode_minus_L=yes 10959 export_dynamic_flag_spec='${wl}-E' 10960 ;; 10961 10962 hpux10*) 10963 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10964 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10965 else 10966 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10967 fi 10968 if test "$with_gnu_ld" = no; then 10969 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10970 hardcode_libdir_flag_spec_ld='+b $libdir' 10971 hardcode_libdir_separator=: 10972 hardcode_direct=yes 10973 hardcode_direct_absolute=yes 10974 export_dynamic_flag_spec='${wl}-E' 10975 # hardcode_minus_L: Not really in the search PATH, 10976 # but as the default location of the library. 10977 hardcode_minus_L=yes 10978 fi 10979 ;; 10980 10981 hpux11*) 10982 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10983 case $host_cpu in 10984 hppa*64*) 10985 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10986 ;; 10987 ia64*) 10988 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10989 ;; 10990 *) 10991 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10992 ;; 10993 esac 10994 else 10995 case $host_cpu in 10996 hppa*64*) 10997 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10998 ;; 10999 ia64*) 11000 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11001 ;; 11002 *) 11003 11004 # Older versions of the 11.00 compiler do not understand -b yet 11005 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11007$as_echo_n "checking if $CC understands -b... " >&6; } 11008if ${lt_cv_prog_compiler__b+:} false; then : 11009 $as_echo_n "(cached) " >&6 11010else 11011 lt_cv_prog_compiler__b=no 11012 save_LDFLAGS="$LDFLAGS" 11013 LDFLAGS="$LDFLAGS -b" 11014 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11015 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11016 # The linker can only warn and ignore the option if not recognized 11017 # So say no if there are warnings 11018 if test -s conftest.err; then 11019 # Append any errors to the config.log. 11020 cat conftest.err 1>&5 11021 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11022 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11023 if diff conftest.exp conftest.er2 >/dev/null; then 11024 lt_cv_prog_compiler__b=yes 11025 fi 11026 else 11027 lt_cv_prog_compiler__b=yes 11028 fi 11029 fi 11030 $RM -r conftest* 11031 LDFLAGS="$save_LDFLAGS" 11032 11033fi 11034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11035$as_echo "$lt_cv_prog_compiler__b" >&6; } 11036 11037if test x"$lt_cv_prog_compiler__b" = xyes; then 11038 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11039else 11040 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11041fi 11042 11043 ;; 11044 esac 11045 fi 11046 if test "$with_gnu_ld" = no; then 11047 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11048 hardcode_libdir_separator=: 11049 11050 case $host_cpu in 11051 hppa*64*|ia64*) 11052 hardcode_direct=no 11053 hardcode_shlibpath_var=no 11054 ;; 11055 *) 11056 hardcode_direct=yes 11057 hardcode_direct_absolute=yes 11058 export_dynamic_flag_spec='${wl}-E' 11059 11060 # hardcode_minus_L: Not really in the search PATH, 11061 # but as the default location of the library. 11062 hardcode_minus_L=yes 11063 ;; 11064 esac 11065 fi 11066 ;; 11067 11068 irix5* | irix6* | nonstopux*) 11069 if test "$GCC" = yes; then 11070 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' 11071 # Try to use the -exported_symbol ld option, if it does not 11072 # work, assume that -exports_file does not work either and 11073 # implicitly export all symbols. 11074 save_LDFLAGS="$LDFLAGS" 11075 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 11076 if test x$gcc_no_link = xyes; then 11077 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 11078fi 11079cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11080/* end confdefs.h. */ 11081int foo(void) {} 11082_ACEOF 11083if ac_fn_c_try_link "$LINENO"; then : 11084 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' 11085 11086fi 11087rm -f core conftest.err conftest.$ac_objext \ 11088 conftest$ac_exeext conftest.$ac_ext 11089 LDFLAGS="$save_LDFLAGS" 11090 else 11091 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' 11092 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' 11093 fi 11094 archive_cmds_need_lc='no' 11095 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11096 hardcode_libdir_separator=: 11097 inherit_rpath=yes 11098 link_all_deplibs=yes 11099 ;; 11100 11101 netbsd*) 11102 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11103 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11104 else 11105 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11106 fi 11107 hardcode_libdir_flag_spec='-R$libdir' 11108 hardcode_direct=yes 11109 hardcode_shlibpath_var=no 11110 ;; 11111 11112 newsos6) 11113 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11114 hardcode_direct=yes 11115 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11116 hardcode_libdir_separator=: 11117 hardcode_shlibpath_var=no 11118 ;; 11119 11120 *nto* | *qnx*) 11121 ;; 11122 11123 openbsd*) 11124 if test -f /usr/libexec/ld.so; then 11125 hardcode_direct=yes 11126 hardcode_shlibpath_var=no 11127 hardcode_direct_absolute=yes 11128 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11129 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11130 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 11131 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 11132 export_dynamic_flag_spec='${wl}-E' 11133 else 11134 case $host_os in 11135 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 11136 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11137 hardcode_libdir_flag_spec='-R$libdir' 11138 ;; 11139 *) 11140 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11141 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 11142 ;; 11143 esac 11144 fi 11145 else 11146 ld_shlibs=no 11147 fi 11148 ;; 11149 11150 os2*) 11151 hardcode_libdir_flag_spec='-L$libdir' 11152 hardcode_minus_L=yes 11153 allow_undefined_flag=unsupported 11154 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' 11155 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 11156 ;; 11157 11158 osf3*) 11159 if test "$GCC" = yes; then 11160 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 11161 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' 11162 else 11163 allow_undefined_flag=' -expect_unresolved \*' 11164 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' 11165 fi 11166 archive_cmds_need_lc='no' 11167 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11168 hardcode_libdir_separator=: 11169 ;; 11170 11171 osf4* | osf5*) # as osf3* with the addition of -msym flag 11172 if test "$GCC" = yes; then 11173 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 11174 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' 11175 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11176 else 11177 allow_undefined_flag=' -expect_unresolved \*' 11178 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' 11179 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~ 11180 $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' 11181 11182 # Both c and cxx compiler support -rpath directly 11183 hardcode_libdir_flag_spec='-rpath $libdir' 11184 fi 11185 archive_cmds_need_lc='no' 11186 hardcode_libdir_separator=: 11187 ;; 11188 11189 solaris*) 11190 no_undefined_flag=' -z defs' 11191 if test "$GCC" = yes; then 11192 wlarc='${wl}' 11193 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11194 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11195 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11196 else 11197 case `$CC -V 2>&1` in 11198 *"Compilers 5.0"*) 11199 wlarc='' 11200 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 11201 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11202 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11203 ;; 11204 *) 11205 wlarc='${wl}' 11206 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11207 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11208 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11209 ;; 11210 esac 11211 fi 11212 hardcode_libdir_flag_spec='-R$libdir' 11213 hardcode_shlibpath_var=no 11214 case $host_os in 11215 solaris2.[0-5] | solaris2.[0-5].*) ;; 11216 *) 11217 # The compiler driver will combine and reorder linker options, 11218 # but understands `-z linker_flag'. GCC discards it without `$wl', 11219 # but is careful enough not to reorder. 11220 # Supported since Solaris 2.6 (maybe 2.5.1?) 11221 if test "$GCC" = yes; then 11222 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 11223 else 11224 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11225 fi 11226 ;; 11227 esac 11228 link_all_deplibs=yes 11229 ;; 11230 11231 sunos4*) 11232 if test "x$host_vendor" = xsequent; then 11233 # Use $CC to link under sequent, because it throws in some extra .o 11234 # files that make .init and .fini sections work. 11235 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11236 else 11237 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11238 fi 11239 hardcode_libdir_flag_spec='-L$libdir' 11240 hardcode_direct=yes 11241 hardcode_minus_L=yes 11242 hardcode_shlibpath_var=no 11243 ;; 11244 11245 sysv4) 11246 case $host_vendor in 11247 sni) 11248 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11249 hardcode_direct=yes # is this really true??? 11250 ;; 11251 siemens) 11252 ## LD is ld it makes a PLAMLIB 11253 ## CC just makes a GrossModule. 11254 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11255 reload_cmds='$CC -r -o $output$reload_objs' 11256 hardcode_direct=no 11257 ;; 11258 motorola) 11259 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11260 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11261 ;; 11262 esac 11263 runpath_var='LD_RUN_PATH' 11264 hardcode_shlibpath_var=no 11265 ;; 11266 11267 sysv4.3*) 11268 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11269 hardcode_shlibpath_var=no 11270 export_dynamic_flag_spec='-Bexport' 11271 ;; 11272 11273 sysv4*MP*) 11274 if test -d /usr/nec; then 11275 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11276 hardcode_shlibpath_var=no 11277 runpath_var=LD_RUN_PATH 11278 hardcode_runpath_var=yes 11279 ld_shlibs=yes 11280 fi 11281 ;; 11282 11283 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11284 no_undefined_flag='${wl}-z,text' 11285 archive_cmds_need_lc=no 11286 hardcode_shlibpath_var=no 11287 runpath_var='LD_RUN_PATH' 11288 11289 if test "$GCC" = yes; then 11290 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11291 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11292 else 11293 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11294 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11295 fi 11296 ;; 11297 11298 sysv5* | sco3.2v5* | sco5v6*) 11299 # Note: We can NOT use -z defs as we might desire, because we do not 11300 # link with -lc, and that would cause any symbols used from libc to 11301 # always be unresolved, which means just about no library would 11302 # ever link correctly. If we're not using GNU ld we use -z text 11303 # though, which does catch some bad symbols but isn't as heavy-handed 11304 # as -z defs. 11305 no_undefined_flag='${wl}-z,text' 11306 allow_undefined_flag='${wl}-z,nodefs' 11307 archive_cmds_need_lc=no 11308 hardcode_shlibpath_var=no 11309 hardcode_libdir_flag_spec='${wl}-R,$libdir' 11310 hardcode_libdir_separator=':' 11311 link_all_deplibs=yes 11312 export_dynamic_flag_spec='${wl}-Bexport' 11313 runpath_var='LD_RUN_PATH' 11314 11315 if test "$GCC" = yes; then 11316 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11317 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11318 else 11319 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11320 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11321 fi 11322 ;; 11323 11324 uts4*) 11325 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11326 hardcode_libdir_flag_spec='-L$libdir' 11327 hardcode_shlibpath_var=no 11328 ;; 11329 11330 *) 11331 ld_shlibs=no 11332 ;; 11333 esac 11334 11335 if test x$host_vendor = xsni; then 11336 case $host in 11337 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11338 export_dynamic_flag_spec='${wl}-Blargedynsym' 11339 ;; 11340 esac 11341 fi 11342 fi 11343 11344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11345$as_echo "$ld_shlibs" >&6; } 11346test "$ld_shlibs" = no && can_build_shared=no 11347 11348with_gnu_ld=$with_gnu_ld 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364# 11365# Do we need to explicitly link libc? 11366# 11367case "x$archive_cmds_need_lc" in 11368x|xyes) 11369 # Assume -lc should be added 11370 archive_cmds_need_lc=yes 11371 11372 if test "$enable_shared" = yes && test "$GCC" = yes; then 11373 case $archive_cmds in 11374 *'~'*) 11375 # FIXME: we may have to deal with multi-command sequences. 11376 ;; 11377 '$CC '*) 11378 # Test whether the compiler implicitly links with -lc since on some 11379 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11380 # to ld, don't add -lc before -lgcc. 11381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11382$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11383if ${lt_cv_archive_cmds_need_lc+:} false; then : 11384 $as_echo_n "(cached) " >&6 11385else 11386 $RM conftest* 11387 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11388 11389 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11390 (eval $ac_compile) 2>&5 11391 ac_status=$? 11392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11393 test $ac_status = 0; } 2>conftest.err; then 11394 soname=conftest 11395 lib=conftest 11396 libobjs=conftest.$ac_objext 11397 deplibs= 11398 wl=$lt_prog_compiler_wl 11399 pic_flag=$lt_prog_compiler_pic 11400 compiler_flags=-v 11401 linker_flags=-v 11402 verstring= 11403 output_objdir=. 11404 libname=conftest 11405 lt_save_allow_undefined_flag=$allow_undefined_flag 11406 allow_undefined_flag= 11407 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11408 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11409 ac_status=$? 11410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11411 test $ac_status = 0; } 11412 then 11413 lt_cv_archive_cmds_need_lc=no 11414 else 11415 lt_cv_archive_cmds_need_lc=yes 11416 fi 11417 allow_undefined_flag=$lt_save_allow_undefined_flag 11418 else 11419 cat conftest.err 1>&5 11420 fi 11421 $RM conftest* 11422 11423fi 11424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11425$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11426 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11427 ;; 11428 esac 11429 fi 11430 ;; 11431esac 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 11561 11562 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11590$as_echo_n "checking dynamic linker characteristics... " >&6; } 11591 11592if test "$GCC" = yes; then 11593 case $host_os in 11594 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 11595 *) lt_awk_arg="/^libraries:/" ;; 11596 esac 11597 case $host_os in 11598 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 11599 *) lt_sed_strip_eq="s,=/,/,g" ;; 11600 esac 11601 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11602 case $lt_search_path_spec in 11603 *\;*) 11604 # if the path contains ";" then we assume it to be the separator 11605 # otherwise default to the standard path separator (i.e. ":") - it is 11606 # assumed that no part of a normal pathname contains ";" but that should 11607 # okay in the real world where ";" in dirpaths is itself problematic. 11608 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11609 ;; 11610 *) 11611 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11612 ;; 11613 esac 11614 # Ok, now we have the path, separated by spaces, we can step through it 11615 # and add multilib dir if necessary. 11616 lt_tmp_lt_search_path_spec= 11617 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11618 for lt_sys_path in $lt_search_path_spec; do 11619 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 11620 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 11621 else 11622 test -d "$lt_sys_path" && \ 11623 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11624 fi 11625 done 11626 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11627BEGIN {RS=" "; FS="/|\n";} { 11628 lt_foo=""; 11629 lt_count=0; 11630 for (lt_i = NF; lt_i > 0; lt_i--) { 11631 if ($lt_i != "" && $lt_i != ".") { 11632 if ($lt_i == "..") { 11633 lt_count++; 11634 } else { 11635 if (lt_count == 0) { 11636 lt_foo="/" $lt_i lt_foo; 11637 } else { 11638 lt_count--; 11639 } 11640 } 11641 } 11642 } 11643 if (lt_foo != "") { lt_freq[lt_foo]++; } 11644 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11645}'` 11646 # AWK program above erroneously prepends '/' to C:/dos/paths 11647 # for these hosts. 11648 case $host_os in 11649 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11650 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 11651 esac 11652 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11653else 11654 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11655fi 11656library_names_spec= 11657libname_spec='lib$name' 11658soname_spec= 11659shrext_cmds=".so" 11660postinstall_cmds= 11661postuninstall_cmds= 11662finish_cmds= 11663finish_eval= 11664shlibpath_var= 11665shlibpath_overrides_runpath=unknown 11666version_type=none 11667dynamic_linker="$host_os ld.so" 11668sys_lib_dlsearch_path_spec="/lib /usr/lib" 11669need_lib_prefix=unknown 11670hardcode_into_libs=no 11671 11672# when you set need_version to no, make sure it does not cause -set_version 11673# flags to be left without arguments 11674need_version=unknown 11675 11676case $host_os in 11677aix3*) 11678 version_type=linux 11679 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11680 shlibpath_var=LIBPATH 11681 11682 # AIX 3 has no versioning support, so we append a major version to the name. 11683 soname_spec='${libname}${release}${shared_ext}$major' 11684 ;; 11685 11686aix[4-9]*) 11687 version_type=linux 11688 need_lib_prefix=no 11689 need_version=no 11690 hardcode_into_libs=yes 11691 if test "$host_cpu" = ia64; then 11692 # AIX 5 supports IA64 11693 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11694 shlibpath_var=LD_LIBRARY_PATH 11695 else 11696 # With GCC up to 2.95.x, collect2 would create an import file 11697 # for dependence libraries. The import file would start with 11698 # the line `#! .'. This would cause the generated library to 11699 # depend on `.', always an invalid library. This was fixed in 11700 # development snapshots of GCC prior to 3.0. 11701 case $host_os in 11702 aix4 | aix4.[01] | aix4.[01].*) 11703 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11704 echo ' yes ' 11705 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 11706 : 11707 else 11708 can_build_shared=no 11709 fi 11710 ;; 11711 esac 11712 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11713 # soname into executable. Probably we can add versioning support to 11714 # collect2, so additional links can be useful in future. 11715 if test "$aix_use_runtimelinking" = yes; then 11716 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11717 # instead of lib<name>.a to let people know that these are not 11718 # typical AIX shared libraries. 11719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11720 else 11721 # We preserve .a as extension for shared libraries through AIX4.2 11722 # and later when we are not doing run time linking. 11723 library_names_spec='${libname}${release}.a $libname.a' 11724 soname_spec='${libname}${release}${shared_ext}$major' 11725 fi 11726 shlibpath_var=LIBPATH 11727 fi 11728 ;; 11729 11730amigaos*) 11731 case $host_cpu in 11732 powerpc) 11733 # Since July 2007 AmigaOS4 officially supports .so libraries. 11734 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11736 ;; 11737 m68k) 11738 library_names_spec='$libname.ixlibrary $libname.a' 11739 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11740 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' 11741 ;; 11742 esac 11743 ;; 11744 11745beos*) 11746 library_names_spec='${libname}${shared_ext}' 11747 dynamic_linker="$host_os ld.so" 11748 shlibpath_var=LIBRARY_PATH 11749 ;; 11750 11751bsdi[45]*) 11752 version_type=linux 11753 need_version=no 11754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11755 soname_spec='${libname}${release}${shared_ext}$major' 11756 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11757 shlibpath_var=LD_LIBRARY_PATH 11758 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11759 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11760 # the default ld.so.conf also contains /usr/contrib/lib and 11761 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11762 # libtool to hard-code these into programs 11763 ;; 11764 11765cygwin* | mingw* | pw32* | cegcc*) 11766 version_type=windows 11767 shrext_cmds=".dll" 11768 need_version=no 11769 need_lib_prefix=no 11770 11771 case $GCC,$host_os in 11772 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 11773 library_names_spec='$libname.dll.a' 11774 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11775 postinstall_cmds='base_file=`basename \${file}`~ 11776 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11777 dldir=$destdir/`dirname \$dlpath`~ 11778 test -d \$dldir || mkdir -p \$dldir~ 11779 $install_prog $dir/$dlname \$dldir/$dlname~ 11780 chmod a+x \$dldir/$dlname~ 11781 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11782 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11783 fi' 11784 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11785 dlpath=$dir/\$dldll~ 11786 $RM \$dlpath' 11787 shlibpath_overrides_runpath=yes 11788 11789 case $host_os in 11790 cygwin*) 11791 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11792 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11793 11794 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11795 ;; 11796 mingw* | cegcc*) 11797 # MinGW DLLs use traditional 'lib' prefix 11798 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11799 ;; 11800 pw32*) 11801 # pw32 DLLs use 'pw' prefix rather than 'lib' 11802 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11803 ;; 11804 esac 11805 ;; 11806 11807 *) 11808 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11809 ;; 11810 esac 11811 dynamic_linker='Win32 ld.exe' 11812 # FIXME: first we should search . and the directory the executable is in 11813 shlibpath_var=PATH 11814 ;; 11815 11816darwin* | rhapsody*) 11817 dynamic_linker="$host_os dyld" 11818 version_type=darwin 11819 need_lib_prefix=no 11820 need_version=no 11821 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11822 soname_spec='${libname}${release}${major}$shared_ext' 11823 shlibpath_overrides_runpath=yes 11824 shlibpath_var=DYLD_LIBRARY_PATH 11825 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11826 11827 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11828 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11829 ;; 11830 11831dgux*) 11832 version_type=linux 11833 need_lib_prefix=no 11834 need_version=no 11835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11836 soname_spec='${libname}${release}${shared_ext}$major' 11837 shlibpath_var=LD_LIBRARY_PATH 11838 ;; 11839 11840freebsd* | dragonfly*) 11841 # DragonFly does not have aout. When/if they implement a new 11842 # versioning mechanism, adjust this. 11843 if test -x /usr/bin/objformat; then 11844 objformat=`/usr/bin/objformat` 11845 else 11846 case $host_os in 11847 freebsd[23].*) objformat=aout ;; 11848 *) objformat=elf ;; 11849 esac 11850 fi 11851 version_type=freebsd-$objformat 11852 case $version_type in 11853 freebsd-elf*) 11854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11855 need_version=no 11856 need_lib_prefix=no 11857 ;; 11858 freebsd-*) 11859 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11860 need_version=yes 11861 ;; 11862 esac 11863 shlibpath_var=LD_LIBRARY_PATH 11864 case $host_os in 11865 freebsd2.*) 11866 shlibpath_overrides_runpath=yes 11867 ;; 11868 freebsd3.[01]* | freebsdelf3.[01]*) 11869 shlibpath_overrides_runpath=yes 11870 hardcode_into_libs=yes 11871 ;; 11872 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11873 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11874 shlibpath_overrides_runpath=no 11875 hardcode_into_libs=yes 11876 ;; 11877 *) # from 4.6 on, and DragonFly 11878 shlibpath_overrides_runpath=yes 11879 hardcode_into_libs=yes 11880 ;; 11881 esac 11882 ;; 11883 11884gnu*) 11885 version_type=linux 11886 need_lib_prefix=no 11887 need_version=no 11888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11889 soname_spec='${libname}${release}${shared_ext}$major' 11890 shlibpath_var=LD_LIBRARY_PATH 11891 hardcode_into_libs=yes 11892 ;; 11893 11894haiku*) 11895 version_type=linux 11896 need_lib_prefix=no 11897 need_version=no 11898 dynamic_linker="$host_os runtime_loader" 11899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11900 soname_spec='${libname}${release}${shared_ext}$major' 11901 shlibpath_var=LIBRARY_PATH 11902 shlibpath_overrides_runpath=yes 11903 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' 11904 hardcode_into_libs=yes 11905 ;; 11906 11907hpux9* | hpux10* | hpux11*) 11908 # Give a soname corresponding to the major version so that dld.sl refuses to 11909 # link against other versions. 11910 version_type=sunos 11911 need_lib_prefix=no 11912 need_version=no 11913 case $host_cpu in 11914 ia64*) 11915 shrext_cmds='.so' 11916 hardcode_into_libs=yes 11917 dynamic_linker="$host_os dld.so" 11918 shlibpath_var=LD_LIBRARY_PATH 11919 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11921 soname_spec='${libname}${release}${shared_ext}$major' 11922 if test "X$HPUX_IA64_MODE" = X32; then 11923 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11924 else 11925 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11926 fi 11927 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11928 ;; 11929 hppa*64*) 11930 shrext_cmds='.sl' 11931 hardcode_into_libs=yes 11932 dynamic_linker="$host_os dld.sl" 11933 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11934 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11936 soname_spec='${libname}${release}${shared_ext}$major' 11937 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11938 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11939 ;; 11940 *) 11941 shrext_cmds='.sl' 11942 dynamic_linker="$host_os dld.sl" 11943 shlibpath_var=SHLIB_PATH 11944 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11946 soname_spec='${libname}${release}${shared_ext}$major' 11947 ;; 11948 esac 11949 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11950 postinstall_cmds='chmod 555 $lib' 11951 # or fails outright, so override atomically: 11952 install_override_mode=555 11953 ;; 11954 11955interix[3-9]*) 11956 version_type=linux 11957 need_lib_prefix=no 11958 need_version=no 11959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11960 soname_spec='${libname}${release}${shared_ext}$major' 11961 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11962 shlibpath_var=LD_LIBRARY_PATH 11963 shlibpath_overrides_runpath=no 11964 hardcode_into_libs=yes 11965 ;; 11966 11967irix5* | irix6* | nonstopux*) 11968 case $host_os in 11969 nonstopux*) version_type=nonstopux ;; 11970 *) 11971 if test "$lt_cv_prog_gnu_ld" = yes; then 11972 version_type=linux 11973 else 11974 version_type=irix 11975 fi ;; 11976 esac 11977 need_lib_prefix=no 11978 need_version=no 11979 soname_spec='${libname}${release}${shared_ext}$major' 11980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11981 case $host_os in 11982 irix5* | nonstopux*) 11983 libsuff= shlibsuff= 11984 ;; 11985 *) 11986 case $LD in # libtool.m4 will add one of these switches to LD 11987 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11988 libsuff= shlibsuff= libmagic=32-bit;; 11989 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11990 libsuff=32 shlibsuff=N32 libmagic=N32;; 11991 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11992 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11993 *) libsuff= shlibsuff= libmagic=never-match;; 11994 esac 11995 ;; 11996 esac 11997 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11998 shlibpath_overrides_runpath=no 11999 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12000 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12001 hardcode_into_libs=yes 12002 ;; 12003 12004# No shared lib support for Linux oldld, aout, or coff. 12005linux*oldld* | linux*aout* | linux*coff*) 12006 dynamic_linker=no 12007 ;; 12008 12009# This must be Linux ELF. 12010 12011# uclinux* changes (here and below) have been submitted to the libtool 12012# project, but have not yet been accepted: they are GCC-local changes 12013# for the time being. (See 12014# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html) 12015linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) 12016 version_type=linux 12017 need_lib_prefix=no 12018 need_version=no 12019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12020 soname_spec='${libname}${release}${shared_ext}$major' 12021 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12022 shlibpath_var=LD_LIBRARY_PATH 12023 shlibpath_overrides_runpath=no 12024 12025 # Some binutils ld are patched to set DT_RUNPATH 12026 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 12027 $as_echo_n "(cached) " >&6 12028else 12029 lt_cv_shlibpath_overrides_runpath=no 12030 save_LDFLAGS=$LDFLAGS 12031 save_libdir=$libdir 12032 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12033 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12034 if test x$gcc_no_link = xyes; then 12035 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 12036fi 12037cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12038/* end confdefs.h. */ 12039 12040int 12041main () 12042{ 12043 12044 ; 12045 return 0; 12046} 12047_ACEOF 12048if ac_fn_c_try_link "$LINENO"; then : 12049 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 12050 lt_cv_shlibpath_overrides_runpath=yes 12051fi 12052fi 12053rm -f core conftest.err conftest.$ac_objext \ 12054 conftest$ac_exeext conftest.$ac_ext 12055 LDFLAGS=$save_LDFLAGS 12056 libdir=$save_libdir 12057 12058fi 12059 12060 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12061 12062 # This implies no fast_install, which is unacceptable. 12063 # Some rework will be needed to allow for fast_install 12064 # before this can be enabled. 12065 hardcode_into_libs=yes 12066 12067 # Append ld.so.conf contents to the search path 12068 if test -f /etc/ld.so.conf; then 12069 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' ' '` 12070 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12071 fi 12072 12073 # We used to test for /lib/ld.so.1 and disable shared libraries on 12074 # powerpc, because MkLinux only supported shared libraries with the 12075 # GNU dynamic linker. Since this was broken with cross compilers, 12076 # most powerpc-linux boxes support dynamic linking these days and 12077 # people can always --disable-shared, the test was removed, and we 12078 # assume the GNU/Linux dynamic linker is in use. 12079 dynamic_linker='GNU/Linux ld.so' 12080 ;; 12081 12082netbsd*) 12083 version_type=sunos 12084 need_lib_prefix=no 12085 need_version=no 12086 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12088 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12089 dynamic_linker='NetBSD (a.out) ld.so' 12090 else 12091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12092 soname_spec='${libname}${release}${shared_ext}$major' 12093 dynamic_linker='NetBSD ld.elf_so' 12094 fi 12095 shlibpath_var=LD_LIBRARY_PATH 12096 shlibpath_overrides_runpath=yes 12097 hardcode_into_libs=yes 12098 ;; 12099 12100newsos6) 12101 version_type=linux 12102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12103 shlibpath_var=LD_LIBRARY_PATH 12104 shlibpath_overrides_runpath=yes 12105 ;; 12106 12107*nto* | *qnx*) 12108 version_type=qnx 12109 need_lib_prefix=no 12110 need_version=no 12111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12112 soname_spec='${libname}${release}${shared_ext}$major' 12113 shlibpath_var=LD_LIBRARY_PATH 12114 shlibpath_overrides_runpath=no 12115 hardcode_into_libs=yes 12116 dynamic_linker='ldqnx.so' 12117 ;; 12118 12119openbsd*) 12120 version_type=sunos 12121 sys_lib_dlsearch_path_spec="/usr/lib" 12122 need_lib_prefix=no 12123 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12124 case $host_os in 12125 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12126 *) need_version=no ;; 12127 esac 12128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12129 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12130 shlibpath_var=LD_LIBRARY_PATH 12131 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12132 case $host_os in 12133 openbsd2.[89] | openbsd2.[89].*) 12134 shlibpath_overrides_runpath=no 12135 ;; 12136 *) 12137 shlibpath_overrides_runpath=yes 12138 ;; 12139 esac 12140 else 12141 shlibpath_overrides_runpath=yes 12142 fi 12143 ;; 12144 12145os2*) 12146 libname_spec='$name' 12147 shrext_cmds=".dll" 12148 need_lib_prefix=no 12149 library_names_spec='$libname${shared_ext} $libname.a' 12150 dynamic_linker='OS/2 ld.exe' 12151 shlibpath_var=LIBPATH 12152 ;; 12153 12154osf3* | osf4* | osf5*) 12155 version_type=osf 12156 need_lib_prefix=no 12157 need_version=no 12158 soname_spec='${libname}${release}${shared_ext}$major' 12159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12160 shlibpath_var=LD_LIBRARY_PATH 12161 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12162 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12163 ;; 12164 12165rdos*) 12166 dynamic_linker=no 12167 ;; 12168 12169solaris*) 12170 version_type=linux 12171 need_lib_prefix=no 12172 need_version=no 12173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12174 soname_spec='${libname}${release}${shared_ext}$major' 12175 shlibpath_var=LD_LIBRARY_PATH 12176 shlibpath_overrides_runpath=yes 12177 hardcode_into_libs=yes 12178 # ldd complains unless libraries are executable 12179 postinstall_cmds='chmod +x $lib' 12180 ;; 12181 12182sunos4*) 12183 version_type=sunos 12184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12185 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12186 shlibpath_var=LD_LIBRARY_PATH 12187 shlibpath_overrides_runpath=yes 12188 if test "$with_gnu_ld" = yes; then 12189 need_lib_prefix=no 12190 fi 12191 need_version=yes 12192 ;; 12193 12194sysv4 | sysv4.3*) 12195 version_type=linux 12196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12197 soname_spec='${libname}${release}${shared_ext}$major' 12198 shlibpath_var=LD_LIBRARY_PATH 12199 case $host_vendor in 12200 sni) 12201 shlibpath_overrides_runpath=no 12202 need_lib_prefix=no 12203 runpath_var=LD_RUN_PATH 12204 ;; 12205 siemens) 12206 need_lib_prefix=no 12207 ;; 12208 motorola) 12209 need_lib_prefix=no 12210 need_version=no 12211 shlibpath_overrides_runpath=no 12212 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12213 ;; 12214 esac 12215 ;; 12216 12217sysv4*MP*) 12218 if test -d /usr/nec ;then 12219 version_type=linux 12220 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 12221 soname_spec='$libname${shared_ext}.$major' 12222 shlibpath_var=LD_LIBRARY_PATH 12223 fi 12224 ;; 12225 12226sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12227 version_type=freebsd-elf 12228 need_lib_prefix=no 12229 need_version=no 12230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12231 soname_spec='${libname}${release}${shared_ext}$major' 12232 shlibpath_var=LD_LIBRARY_PATH 12233 shlibpath_overrides_runpath=yes 12234 hardcode_into_libs=yes 12235 if test "$with_gnu_ld" = yes; then 12236 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12237 else 12238 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12239 case $host_os in 12240 sco3.2v5*) 12241 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12242 ;; 12243 esac 12244 fi 12245 sys_lib_dlsearch_path_spec='/usr/lib' 12246 ;; 12247 12248tpf*) 12249 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12250 version_type=linux 12251 need_lib_prefix=no 12252 need_version=no 12253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12254 shlibpath_var=LD_LIBRARY_PATH 12255 shlibpath_overrides_runpath=no 12256 hardcode_into_libs=yes 12257 ;; 12258 12259uts4*) 12260 version_type=linux 12261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12262 soname_spec='${libname}${release}${shared_ext}$major' 12263 shlibpath_var=LD_LIBRARY_PATH 12264 ;; 12265 12266*) 12267 dynamic_linker=no 12268 ;; 12269esac 12270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12271$as_echo "$dynamic_linker" >&6; } 12272test "$dynamic_linker" = no && can_build_shared=no 12273 12274variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12275if test "$GCC" = yes; then 12276 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12277fi 12278 12279if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 12280 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 12281fi 12282if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 12283 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 12284fi 12285 12286 12287 12288 12289 12290 12291 12292 12293 12294 12295 12296 12297 12298 12299 12300 12301 12302 12303 12304 12305 12306 12307 12308 12309 12310 12311 12312 12313 12314 12315 12316 12317 12318 12319 12320 12321 12322 12323 12324 12325 12326 12327 12328 12329 12330 12331 12332 12333 12334 12335 12336 12337 12338 12339 12340 12341 12342 12343 12344 12345 12346 12347 12348 12349 12350 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12378$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12379hardcode_action= 12380if test -n "$hardcode_libdir_flag_spec" || 12381 test -n "$runpath_var" || 12382 test "X$hardcode_automatic" = "Xyes" ; then 12383 12384 # We can hardcode non-existent directories. 12385 if test "$hardcode_direct" != no && 12386 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12387 # have to relink, otherwise we might link with an installed library 12388 # when we should be linking with a yet-to-be-installed one 12389 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 12390 test "$hardcode_minus_L" != no; then 12391 # Linking always hardcodes the temporary library directory. 12392 hardcode_action=relink 12393 else 12394 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12395 hardcode_action=immediate 12396 fi 12397else 12398 # We cannot hardcode anything, or else we can only hardcode existing 12399 # directories. 12400 hardcode_action=unsupported 12401fi 12402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12403$as_echo "$hardcode_action" >&6; } 12404 12405if test "$hardcode_action" = relink || 12406 test "$inherit_rpath" = yes; then 12407 # Fast installation is not supported 12408 enable_fast_install=no 12409elif test "$shlibpath_overrides_runpath" = yes || 12410 test "$enable_shared" = no; then 12411 # Fast installation is not necessary 12412 enable_fast_install=needless 12413fi 12414 12415 12416 12417 12418 12419 12420 if test "x$enable_dlopen" != xyes; then 12421 enable_dlopen=unknown 12422 enable_dlopen_self=unknown 12423 enable_dlopen_self_static=unknown 12424else 12425 lt_cv_dlopen=no 12426 lt_cv_dlopen_libs= 12427 12428 case $host_os in 12429 beos*) 12430 lt_cv_dlopen="load_add_on" 12431 lt_cv_dlopen_libs= 12432 lt_cv_dlopen_self=yes 12433 ;; 12434 12435 mingw* | pw32* | cegcc*) 12436 lt_cv_dlopen="LoadLibrary" 12437 lt_cv_dlopen_libs= 12438 ;; 12439 12440 cygwin*) 12441 lt_cv_dlopen="dlopen" 12442 lt_cv_dlopen_libs= 12443 ;; 12444 12445 darwin*) 12446 # if libdl is installed we need to link against it 12447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12448$as_echo_n "checking for dlopen in -ldl... " >&6; } 12449if ${ac_cv_lib_dl_dlopen+:} false; then : 12450 $as_echo_n "(cached) " >&6 12451else 12452 ac_check_lib_save_LIBS=$LIBS 12453LIBS="-ldl $LIBS" 12454if test x$gcc_no_link = xyes; then 12455 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 12456fi 12457cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12458/* end confdefs.h. */ 12459 12460/* Override any GCC internal prototype to avoid an error. 12461 Use char because int might match the return type of a GCC 12462 builtin and then its argument prototype would still apply. */ 12463#ifdef __cplusplus 12464extern "C" 12465#endif 12466char dlopen (); 12467int 12468main () 12469{ 12470return dlopen (); 12471 ; 12472 return 0; 12473} 12474_ACEOF 12475if ac_fn_c_try_link "$LINENO"; then : 12476 ac_cv_lib_dl_dlopen=yes 12477else 12478 ac_cv_lib_dl_dlopen=no 12479fi 12480rm -f core conftest.err conftest.$ac_objext \ 12481 conftest$ac_exeext conftest.$ac_ext 12482LIBS=$ac_check_lib_save_LIBS 12483fi 12484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12485$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12486if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12487 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12488else 12489 12490 lt_cv_dlopen="dyld" 12491 lt_cv_dlopen_libs= 12492 lt_cv_dlopen_self=yes 12493 12494fi 12495 12496 ;; 12497 12498 *) 12499 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12500if test "x$ac_cv_func_shl_load" = xyes; then : 12501 lt_cv_dlopen="shl_load" 12502else 12503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12504$as_echo_n "checking for shl_load in -ldld... " >&6; } 12505if ${ac_cv_lib_dld_shl_load+:} false; then : 12506 $as_echo_n "(cached) " >&6 12507else 12508 ac_check_lib_save_LIBS=$LIBS 12509LIBS="-ldld $LIBS" 12510if test x$gcc_no_link = xyes; then 12511 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 12512fi 12513cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12514/* end confdefs.h. */ 12515 12516/* Override any GCC internal prototype to avoid an error. 12517 Use char because int might match the return type of a GCC 12518 builtin and then its argument prototype would still apply. */ 12519#ifdef __cplusplus 12520extern "C" 12521#endif 12522char shl_load (); 12523int 12524main () 12525{ 12526return shl_load (); 12527 ; 12528 return 0; 12529} 12530_ACEOF 12531if ac_fn_c_try_link "$LINENO"; then : 12532 ac_cv_lib_dld_shl_load=yes 12533else 12534 ac_cv_lib_dld_shl_load=no 12535fi 12536rm -f core conftest.err conftest.$ac_objext \ 12537 conftest$ac_exeext conftest.$ac_ext 12538LIBS=$ac_check_lib_save_LIBS 12539fi 12540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12541$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12542if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12543 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 12544else 12545 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12546if test "x$ac_cv_func_dlopen" = xyes; then : 12547 lt_cv_dlopen="dlopen" 12548else 12549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12550$as_echo_n "checking for dlopen in -ldl... " >&6; } 12551if ${ac_cv_lib_dl_dlopen+:} false; then : 12552 $as_echo_n "(cached) " >&6 12553else 12554 ac_check_lib_save_LIBS=$LIBS 12555LIBS="-ldl $LIBS" 12556if test x$gcc_no_link = xyes; then 12557 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 12558fi 12559cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12560/* end confdefs.h. */ 12561 12562/* Override any GCC internal prototype to avoid an error. 12563 Use char because int might match the return type of a GCC 12564 builtin and then its argument prototype would still apply. */ 12565#ifdef __cplusplus 12566extern "C" 12567#endif 12568char dlopen (); 12569int 12570main () 12571{ 12572return dlopen (); 12573 ; 12574 return 0; 12575} 12576_ACEOF 12577if ac_fn_c_try_link "$LINENO"; then : 12578 ac_cv_lib_dl_dlopen=yes 12579else 12580 ac_cv_lib_dl_dlopen=no 12581fi 12582rm -f core conftest.err conftest.$ac_objext \ 12583 conftest$ac_exeext conftest.$ac_ext 12584LIBS=$ac_check_lib_save_LIBS 12585fi 12586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12587$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12588if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12589 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12590else 12591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12592$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12593if ${ac_cv_lib_svld_dlopen+:} false; then : 12594 $as_echo_n "(cached) " >&6 12595else 12596 ac_check_lib_save_LIBS=$LIBS 12597LIBS="-lsvld $LIBS" 12598if test x$gcc_no_link = xyes; then 12599 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 12600fi 12601cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12602/* end confdefs.h. */ 12603 12604/* Override any GCC internal prototype to avoid an error. 12605 Use char because int might match the return type of a GCC 12606 builtin and then its argument prototype would still apply. */ 12607#ifdef __cplusplus 12608extern "C" 12609#endif 12610char dlopen (); 12611int 12612main () 12613{ 12614return dlopen (); 12615 ; 12616 return 0; 12617} 12618_ACEOF 12619if ac_fn_c_try_link "$LINENO"; then : 12620 ac_cv_lib_svld_dlopen=yes 12621else 12622 ac_cv_lib_svld_dlopen=no 12623fi 12624rm -f core conftest.err conftest.$ac_objext \ 12625 conftest$ac_exeext conftest.$ac_ext 12626LIBS=$ac_check_lib_save_LIBS 12627fi 12628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12629$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12630if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12631 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 12632else 12633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12634$as_echo_n "checking for dld_link in -ldld... " >&6; } 12635if ${ac_cv_lib_dld_dld_link+:} false; then : 12636 $as_echo_n "(cached) " >&6 12637else 12638 ac_check_lib_save_LIBS=$LIBS 12639LIBS="-ldld $LIBS" 12640if test x$gcc_no_link = xyes; then 12641 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 12642fi 12643cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12644/* end confdefs.h. */ 12645 12646/* Override any GCC internal prototype to avoid an error. 12647 Use char because int might match the return type of a GCC 12648 builtin and then its argument prototype would still apply. */ 12649#ifdef __cplusplus 12650extern "C" 12651#endif 12652char dld_link (); 12653int 12654main () 12655{ 12656return dld_link (); 12657 ; 12658 return 0; 12659} 12660_ACEOF 12661if ac_fn_c_try_link "$LINENO"; then : 12662 ac_cv_lib_dld_dld_link=yes 12663else 12664 ac_cv_lib_dld_dld_link=no 12665fi 12666rm -f core conftest.err conftest.$ac_objext \ 12667 conftest$ac_exeext conftest.$ac_ext 12668LIBS=$ac_check_lib_save_LIBS 12669fi 12670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12671$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12672if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12673 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 12674fi 12675 12676 12677fi 12678 12679 12680fi 12681 12682 12683fi 12684 12685 12686fi 12687 12688 12689fi 12690 12691 ;; 12692 esac 12693 12694 if test "x$lt_cv_dlopen" != xno; then 12695 enable_dlopen=yes 12696 else 12697 enable_dlopen=no 12698 fi 12699 12700 case $lt_cv_dlopen in 12701 dlopen) 12702 save_CPPFLAGS="$CPPFLAGS" 12703 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12704 12705 save_LDFLAGS="$LDFLAGS" 12706 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12707 12708 save_LIBS="$LIBS" 12709 LIBS="$lt_cv_dlopen_libs $LIBS" 12710 12711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12712$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12713if ${lt_cv_dlopen_self+:} false; then : 12714 $as_echo_n "(cached) " >&6 12715else 12716 if test "$cross_compiling" = yes; then : 12717 lt_cv_dlopen_self=cross 12718else 12719 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12720 lt_status=$lt_dlunknown 12721 cat > conftest.$ac_ext <<_LT_EOF 12722#line 12722 "configure" 12723#include "confdefs.h" 12724 12725#if HAVE_DLFCN_H 12726#include <dlfcn.h> 12727#endif 12728 12729#include <stdio.h> 12730 12731#ifdef RTLD_GLOBAL 12732# define LT_DLGLOBAL RTLD_GLOBAL 12733#else 12734# ifdef DL_GLOBAL 12735# define LT_DLGLOBAL DL_GLOBAL 12736# else 12737# define LT_DLGLOBAL 0 12738# endif 12739#endif 12740 12741/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12742 find out it does not work in some platform. */ 12743#ifndef LT_DLLAZY_OR_NOW 12744# ifdef RTLD_LAZY 12745# define LT_DLLAZY_OR_NOW RTLD_LAZY 12746# else 12747# ifdef DL_LAZY 12748# define LT_DLLAZY_OR_NOW DL_LAZY 12749# else 12750# ifdef RTLD_NOW 12751# define LT_DLLAZY_OR_NOW RTLD_NOW 12752# else 12753# ifdef DL_NOW 12754# define LT_DLLAZY_OR_NOW DL_NOW 12755# else 12756# define LT_DLLAZY_OR_NOW 0 12757# endif 12758# endif 12759# endif 12760# endif 12761#endif 12762 12763/* When -fvisbility=hidden is used, assume the code has been annotated 12764 correspondingly for the symbols needed. */ 12765#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12766void fnord () __attribute__((visibility("default"))); 12767#endif 12768 12769void fnord () { int i=42; } 12770int main () 12771{ 12772 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12773 int status = $lt_dlunknown; 12774 12775 if (self) 12776 { 12777 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12778 else 12779 { 12780 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12781 else puts (dlerror ()); 12782 } 12783 /* dlclose (self); */ 12784 } 12785 else 12786 puts (dlerror ()); 12787 12788 return status; 12789} 12790_LT_EOF 12791 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12792 (eval $ac_link) 2>&5 12793 ac_status=$? 12794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12795 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12796 (./conftest; exit; ) >&5 2>/dev/null 12797 lt_status=$? 12798 case x$lt_status in 12799 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12800 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12801 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12802 esac 12803 else : 12804 # compilation failed 12805 lt_cv_dlopen_self=no 12806 fi 12807fi 12808rm -fr conftest* 12809 12810 12811fi 12812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12813$as_echo "$lt_cv_dlopen_self" >&6; } 12814 12815 if test "x$lt_cv_dlopen_self" = xyes; then 12816 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12818$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12819if ${lt_cv_dlopen_self_static+:} false; then : 12820 $as_echo_n "(cached) " >&6 12821else 12822 if test "$cross_compiling" = yes; then : 12823 lt_cv_dlopen_self_static=cross 12824else 12825 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12826 lt_status=$lt_dlunknown 12827 cat > conftest.$ac_ext <<_LT_EOF 12828#line 12828 "configure" 12829#include "confdefs.h" 12830 12831#if HAVE_DLFCN_H 12832#include <dlfcn.h> 12833#endif 12834 12835#include <stdio.h> 12836 12837#ifdef RTLD_GLOBAL 12838# define LT_DLGLOBAL RTLD_GLOBAL 12839#else 12840# ifdef DL_GLOBAL 12841# define LT_DLGLOBAL DL_GLOBAL 12842# else 12843# define LT_DLGLOBAL 0 12844# endif 12845#endif 12846 12847/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12848 find out it does not work in some platform. */ 12849#ifndef LT_DLLAZY_OR_NOW 12850# ifdef RTLD_LAZY 12851# define LT_DLLAZY_OR_NOW RTLD_LAZY 12852# else 12853# ifdef DL_LAZY 12854# define LT_DLLAZY_OR_NOW DL_LAZY 12855# else 12856# ifdef RTLD_NOW 12857# define LT_DLLAZY_OR_NOW RTLD_NOW 12858# else 12859# ifdef DL_NOW 12860# define LT_DLLAZY_OR_NOW DL_NOW 12861# else 12862# define LT_DLLAZY_OR_NOW 0 12863# endif 12864# endif 12865# endif 12866# endif 12867#endif 12868 12869/* When -fvisbility=hidden is used, assume the code has been annotated 12870 correspondingly for the symbols needed. */ 12871#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12872void fnord () __attribute__((visibility("default"))); 12873#endif 12874 12875void fnord () { int i=42; } 12876int main () 12877{ 12878 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12879 int status = $lt_dlunknown; 12880 12881 if (self) 12882 { 12883 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12884 else 12885 { 12886 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12887 else puts (dlerror ()); 12888 } 12889 /* dlclose (self); */ 12890 } 12891 else 12892 puts (dlerror ()); 12893 12894 return status; 12895} 12896_LT_EOF 12897 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12898 (eval $ac_link) 2>&5 12899 ac_status=$? 12900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12901 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12902 (./conftest; exit; ) >&5 2>/dev/null 12903 lt_status=$? 12904 case x$lt_status in 12905 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12906 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12907 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12908 esac 12909 else : 12910 # compilation failed 12911 lt_cv_dlopen_self_static=no 12912 fi 12913fi 12914rm -fr conftest* 12915 12916 12917fi 12918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12919$as_echo "$lt_cv_dlopen_self_static" >&6; } 12920 fi 12921 12922 CPPFLAGS="$save_CPPFLAGS" 12923 LDFLAGS="$save_LDFLAGS" 12924 LIBS="$save_LIBS" 12925 ;; 12926 esac 12927 12928 case $lt_cv_dlopen_self in 12929 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12930 *) enable_dlopen_self=unknown ;; 12931 esac 12932 12933 case $lt_cv_dlopen_self_static in 12934 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12935 *) enable_dlopen_self_static=unknown ;; 12936 esac 12937fi 12938 12939 12940 12941 12942 12943 12944 12945 12946 12947 12948 12949 12950 12951 12952 12953 12954 12955striplib= 12956old_striplib= 12957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12958$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12959if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12960 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12961 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12963$as_echo "yes" >&6; } 12964else 12965# FIXME - insert some real tests, host_os isn't really good enough 12966 case $host_os in 12967 darwin*) 12968 if test -n "$STRIP" ; then 12969 striplib="$STRIP -x" 12970 old_striplib="$STRIP -S" 12971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12972$as_echo "yes" >&6; } 12973 else 12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12975$as_echo "no" >&6; } 12976 fi 12977 ;; 12978 *) 12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12980$as_echo "no" >&6; } 12981 ;; 12982 esac 12983fi 12984 12985 12986 12987 12988 12989 12990 12991 12992 12993 12994 12995 12996 # Report which library types will actually be built 12997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12998$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13000$as_echo "$can_build_shared" >&6; } 13001 13002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13003$as_echo_n "checking whether to build shared libraries... " >&6; } 13004 test "$can_build_shared" = "no" && enable_shared=no 13005 13006 # On AIX, shared libraries and static libraries use the same namespace, and 13007 # are all built from PIC. 13008 case $host_os in 13009 aix3*) 13010 test "$enable_shared" = yes && enable_static=no 13011 if test -n "$RANLIB"; then 13012 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13013 postinstall_cmds='$RANLIB $lib' 13014 fi 13015 ;; 13016 13017 aix[4-9]*) 13018 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13019 test "$enable_shared" = yes && enable_static=no 13020 fi 13021 ;; 13022 esac 13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13024$as_echo "$enable_shared" >&6; } 13025 13026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13027$as_echo_n "checking whether to build static libraries... " >&6; } 13028 # Make sure either enable_shared or enable_static is yes. 13029 test "$enable_shared" = yes || enable_static=yes 13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13031$as_echo "$enable_static" >&6; } 13032 13033 13034 13035 13036fi 13037ac_ext=c 13038ac_cpp='$CPP $CPPFLAGS' 13039ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13040ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13041ac_compiler_gnu=$ac_cv_c_compiler_gnu 13042 13043CC="$lt_save_CC" 13044 13045 13046 13047 13048 13049 13050 13051 13052 13053 13054 13055 13056 13057 ac_config_commands="$ac_config_commands libtool" 13058 13059 13060 13061 13062# Only expand once: 13063 13064 13065 13066 13067 13068case $host in 13069 *-cygwin* | *-mingw*) 13070 # 'host' will be top-level target in the case of a target lib, 13071 # we must compare to with_cross_host to decide if this is a native 13072 # or cross-compiler and select where to install dlls appropriately. 13073 if test -n "$with_cross_host" && 13074 test x"$with_cross_host" != x"no"; then 13075 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"'; 13076 else 13077 lt_host_flags='-no-undefined -bindir "$(bindir)"'; 13078 fi 13079 ;; 13080 *) 13081 lt_host_flags= 13082 ;; 13083esac 13084 13085 13086 13087 13088 13089#AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10 13090 13091# We need gfortran to compile parts of the library 13092#AC_PROG_FC(gfortran) 13093FC="$GFORTRAN" 13094ac_ext=${ac_fc_srcext-f} 13095ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 13096ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 13097ac_compiler_gnu=$ac_cv_fc_compiler_gnu 13098if test -n "$ac_tool_prefix"; then 13099 for ac_prog in gfortran 13100 do 13101 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 13102set dummy $ac_tool_prefix$ac_prog; ac_word=$2 13103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13104$as_echo_n "checking for $ac_word... " >&6; } 13105if ${ac_cv_prog_FC+:} false; then : 13106 $as_echo_n "(cached) " >&6 13107else 13108 if test -n "$FC"; then 13109 ac_cv_prog_FC="$FC" # Let the user override the test. 13110else 13111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13112for as_dir in $PATH 13113do 13114 IFS=$as_save_IFS 13115 test -z "$as_dir" && as_dir=. 13116 for ac_exec_ext in '' $ac_executable_extensions; do 13117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13118 ac_cv_prog_FC="$ac_tool_prefix$ac_prog" 13119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13120 break 2 13121 fi 13122done 13123 done 13124IFS=$as_save_IFS 13125 13126fi 13127fi 13128FC=$ac_cv_prog_FC 13129if test -n "$FC"; then 13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 13131$as_echo "$FC" >&6; } 13132else 13133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13134$as_echo "no" >&6; } 13135fi 13136 13137 13138 test -n "$FC" && break 13139 done 13140fi 13141if test -z "$FC"; then 13142 ac_ct_FC=$FC 13143 for ac_prog in gfortran 13144do 13145 # Extract the first word of "$ac_prog", so it can be a program name with args. 13146set dummy $ac_prog; ac_word=$2 13147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13148$as_echo_n "checking for $ac_word... " >&6; } 13149if ${ac_cv_prog_ac_ct_FC+:} false; then : 13150 $as_echo_n "(cached) " >&6 13151else 13152 if test -n "$ac_ct_FC"; then 13153 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. 13154else 13155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13156for as_dir in $PATH 13157do 13158 IFS=$as_save_IFS 13159 test -z "$as_dir" && as_dir=. 13160 for ac_exec_ext in '' $ac_executable_extensions; do 13161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13162 ac_cv_prog_ac_ct_FC="$ac_prog" 13163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13164 break 2 13165 fi 13166done 13167 done 13168IFS=$as_save_IFS 13169 13170fi 13171fi 13172ac_ct_FC=$ac_cv_prog_ac_ct_FC 13173if test -n "$ac_ct_FC"; then 13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5 13175$as_echo "$ac_ct_FC" >&6; } 13176else 13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13178$as_echo "no" >&6; } 13179fi 13180 13181 13182 test -n "$ac_ct_FC" && break 13183done 13184 13185 if test "x$ac_ct_FC" = x; then 13186 FC="" 13187 else 13188 case $cross_compiling:$ac_tool_warned in 13189yes:) 13190{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13191$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13192ac_tool_warned=yes ;; 13193esac 13194 FC=$ac_ct_FC 13195 fi 13196fi 13197 13198 13199# Provide some information about the compiler. 13200$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5 13201set X $ac_compile 13202ac_compiler=$2 13203for ac_option in --version -v -V -qversion; do 13204 { { ac_try="$ac_compiler $ac_option >&5" 13205case "(($ac_try" in 13206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13207 *) ac_try_echo=$ac_try;; 13208esac 13209eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 13210$as_echo "$ac_try_echo"; } >&5 13211 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 13212 ac_status=$? 13213 if test -s conftest.err; then 13214 sed '10a\ 13215... rest of stderr output deleted ... 13216 10q' conftest.err >conftest.er1 13217 cat conftest.er1 >&5 13218 fi 13219 rm -f conftest.er1 conftest.err 13220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13221 test $ac_status = 0; } 13222done 13223rm -f a.out 13224 13225# If we don't use `.F' as extension, the preprocessor is not run on the 13226# input file. (Note that this only needs to work for GNU compilers.) 13227ac_save_ext=$ac_ext 13228ac_ext=F 13229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5 13230$as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; } 13231if ${ac_cv_fc_compiler_gnu+:} false; then : 13232 $as_echo_n "(cached) " >&6 13233else 13234 cat > conftest.$ac_ext <<_ACEOF 13235 program main 13236#ifndef __GNUC__ 13237 choke me 13238#endif 13239 13240 end 13241_ACEOF 13242if ac_fn_fc_try_compile "$LINENO"; then : 13243 ac_compiler_gnu=yes 13244else 13245 ac_compiler_gnu=no 13246fi 13247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13248ac_cv_fc_compiler_gnu=$ac_compiler_gnu 13249 13250fi 13251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5 13252$as_echo "$ac_cv_fc_compiler_gnu" >&6; } 13253ac_ext=$ac_save_ext 13254ac_test_FCFLAGS=${FCFLAGS+set} 13255ac_save_FCFLAGS=$FCFLAGS 13256FCFLAGS= 13257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5 13258$as_echo_n "checking whether $FC accepts -g... " >&6; } 13259if ${ac_cv_prog_fc_g+:} false; then : 13260 $as_echo_n "(cached) " >&6 13261else 13262 FCFLAGS=-g 13263cat > conftest.$ac_ext <<_ACEOF 13264 program main 13265 13266 end 13267_ACEOF 13268if ac_fn_fc_try_compile "$LINENO"; then : 13269 ac_cv_prog_fc_g=yes 13270else 13271 ac_cv_prog_fc_g=no 13272fi 13273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13274 13275fi 13276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5 13277$as_echo "$ac_cv_prog_fc_g" >&6; } 13278if test "$ac_test_FCFLAGS" = set; then 13279 FCFLAGS=$ac_save_FCFLAGS 13280elif test $ac_cv_prog_fc_g = yes; then 13281 if test "x$ac_cv_fc_compiler_gnu" = xyes; then 13282 FCFLAGS="-g -O2" 13283 else 13284 FCFLAGS="-g" 13285 fi 13286else 13287 if test "x$ac_cv_fc_compiler_gnu" = xyes; then 13288 FCFLAGS="-O2" 13289 else 13290 FCFLAGS= 13291 fi 13292fi 13293 13294if test $ac_compiler_gnu = yes; then 13295 GFC=yes 13296else 13297 GFC= 13298fi 13299ac_ext=c 13300ac_cpp='$CPP $CPPFLAGS' 13301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13303ac_compiler_gnu=$ac_cv_c_compiler_gnu 13304 13305 ac_ext=${ac_fc_srcext-f} 13306ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 13307ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 13308ac_compiler_gnu=$ac_cv_fc_compiler_gnu 13309 13310 13311if test -z "$FC" || test "X$FC" = "Xno"; then 13312 _lt_disable_FC=yes 13313fi 13314 13315archive_cmds_need_lc_FC=no 13316allow_undefined_flag_FC= 13317always_export_symbols_FC=no 13318archive_expsym_cmds_FC= 13319export_dynamic_flag_spec_FC= 13320hardcode_direct_FC=no 13321hardcode_direct_absolute_FC=no 13322hardcode_libdir_flag_spec_FC= 13323hardcode_libdir_flag_spec_ld_FC= 13324hardcode_libdir_separator_FC= 13325hardcode_minus_L_FC=no 13326hardcode_automatic_FC=no 13327inherit_rpath_FC=no 13328module_cmds_FC= 13329module_expsym_cmds_FC= 13330link_all_deplibs_FC=unknown 13331old_archive_cmds_FC=$old_archive_cmds 13332reload_flag_FC=$reload_flag 13333reload_cmds_FC=$reload_cmds 13334no_undefined_flag_FC= 13335whole_archive_flag_spec_FC= 13336enable_shared_with_static_runtimes_FC=no 13337 13338# Source file extension for fc test sources. 13339ac_ext=${ac_fc_srcext-f} 13340 13341# Object file extension for compiled fc test sources. 13342objext=o 13343objext_FC=$objext 13344 13345# No sense in running all these tests if we already determined that 13346# the FC compiler isn't working. Some variables (like enable_shared) 13347# are currently assumed to apply to all compilers on this platform, 13348# and will be corrupted by setting them based on a non-working compiler. 13349if test "$_lt_disable_FC" != yes; then 13350 # Code to be used in simple compile tests 13351 lt_simple_compile_test_code="\ 13352 subroutine t 13353 return 13354 end 13355" 13356 13357 # Code to be used in simple link tests 13358 lt_simple_link_test_code="\ 13359 program t 13360 end 13361" 13362 13363 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 13364 13365 13366 13367 13368 13369 13370# If no C compiler was specified, use CC. 13371LTCC=${LTCC-"$CC"} 13372 13373# If no C compiler flags were specified, use CFLAGS. 13374LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13375 13376# Allow CC to be a program name with arguments. 13377compiler=$CC 13378 13379 13380 # save warnings/boilerplate of simple test code 13381 ac_outfile=conftest.$ac_objext 13382echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13383eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13384_lt_compiler_boilerplate=`cat conftest.err` 13385$RM conftest* 13386 13387 ac_outfile=conftest.$ac_objext 13388echo "$lt_simple_link_test_code" >conftest.$ac_ext 13389eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13390_lt_linker_boilerplate=`cat conftest.err` 13391$RM -r conftest* 13392 13393 13394 # Allow CC to be a program name with arguments. 13395 lt_save_CC="$CC" 13396 lt_save_GCC=$GCC 13397 CC=${FC-"f95"} 13398 compiler=$CC 13399 GCC=$ac_cv_fc_compiler_gnu 13400 13401 compiler_FC=$CC 13402 for cc_temp in $compiler""; do 13403 case $cc_temp in 13404 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13405 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13406 \-*) ;; 13407 *) break;; 13408 esac 13409done 13410cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 13411 13412 13413 if test -n "$compiler"; then 13414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13415$as_echo_n "checking if libtool supports shared libraries... " >&6; } 13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13417$as_echo "$can_build_shared" >&6; } 13418 13419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13420$as_echo_n "checking whether to build shared libraries... " >&6; } 13421 test "$can_build_shared" = "no" && enable_shared=no 13422 13423 # On AIX, shared libraries and static libraries use the same namespace, and 13424 # are all built from PIC. 13425 case $host_os in 13426 aix3*) 13427 test "$enable_shared" = yes && enable_static=no 13428 if test -n "$RANLIB"; then 13429 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13430 postinstall_cmds='$RANLIB $lib' 13431 fi 13432 ;; 13433 aix[4-9]*) 13434 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13435 test "$enable_shared" = yes && enable_static=no 13436 fi 13437 ;; 13438 esac 13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13440$as_echo "$enable_shared" >&6; } 13441 13442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13443$as_echo_n "checking whether to build static libraries... " >&6; } 13444 # Make sure either enable_shared or enable_static is yes. 13445 test "$enable_shared" = yes || enable_static=yes 13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13447$as_echo "$enable_static" >&6; } 13448 13449 GCC_FC="$ac_cv_fc_compiler_gnu" 13450 LD_FC="$LD" 13451 13452 ## CAVEAT EMPTOR: 13453 ## There is no encapsulation within the following macros, do not change 13454 ## the running order or otherwise move them around unless you know exactly 13455 ## what you are doing... 13456 # Dependencies to place before and after the object being linked: 13457predep_objects_FC= 13458postdep_objects_FC= 13459predeps_FC= 13460postdeps_FC= 13461compiler_lib_search_path_FC= 13462 13463cat > conftest.$ac_ext <<_LT_EOF 13464 subroutine foo 13465 implicit none 13466 integer a 13467 a=0 13468 return 13469 end 13470_LT_EOF 13471 13472if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13473 (eval $ac_compile) 2>&5 13474 ac_status=$? 13475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13476 test $ac_status = 0; }; then 13477 # Parse the compiler output and extract the necessary 13478 # objects, libraries and library flags. 13479 13480 # Sentinel used to keep track of whether or not we are before 13481 # the conftest object file. 13482 pre_test_object_deps_done=no 13483 13484 for p in `eval "$output_verbose_link_cmd"`; do 13485 case $p in 13486 13487 -L* | -R* | -l*) 13488 # Some compilers place space between "-{L,R}" and the path. 13489 # Remove the space. 13490 if test $p = "-L" || 13491 test $p = "-R"; then 13492 prev=$p 13493 continue 13494 else 13495 prev= 13496 fi 13497 13498 if test "$pre_test_object_deps_done" = no; then 13499 case $p in 13500 -L* | -R*) 13501 # Internal compiler library paths should come after those 13502 # provided the user. The postdeps already come after the 13503 # user supplied libs so there is no need to process them. 13504 if test -z "$compiler_lib_search_path_FC"; then 13505 compiler_lib_search_path_FC="${prev}${p}" 13506 else 13507 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}" 13508 fi 13509 ;; 13510 # The "-l" case would never come before the object being 13511 # linked, so don't bother handling this case. 13512 esac 13513 else 13514 if test -z "$postdeps_FC"; then 13515 postdeps_FC="${prev}${p}" 13516 else 13517 postdeps_FC="${postdeps_FC} ${prev}${p}" 13518 fi 13519 fi 13520 ;; 13521 13522 *.$objext) 13523 # This assumes that the test object file only shows up 13524 # once in the compiler output. 13525 if test "$p" = "conftest.$objext"; then 13526 pre_test_object_deps_done=yes 13527 continue 13528 fi 13529 13530 if test "$pre_test_object_deps_done" = no; then 13531 if test -z "$predep_objects_FC"; then 13532 predep_objects_FC="$p" 13533 else 13534 predep_objects_FC="$predep_objects_FC $p" 13535 fi 13536 else 13537 if test -z "$postdep_objects_FC"; then 13538 postdep_objects_FC="$p" 13539 else 13540 postdep_objects_FC="$postdep_objects_FC $p" 13541 fi 13542 fi 13543 ;; 13544 13545 *) ;; # Ignore the rest. 13546 13547 esac 13548 done 13549 13550 # Clean up. 13551 rm -f a.out a.exe 13552else 13553 echo "libtool.m4: error: problem compiling FC test program" 13554fi 13555 13556$RM -f confest.$objext 13557 13558# PORTME: override above test on systems where it is broken 13559 13560 13561case " $postdeps_FC " in 13562*" -lc "*) archive_cmds_need_lc_FC=no ;; 13563esac 13564 compiler_lib_search_dirs_FC= 13565if test -n "${compiler_lib_search_path_FC}"; then 13566 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 13567fi 13568 13569 13570 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 lt_prog_compiler_wl_FC= 13600lt_prog_compiler_pic_FC= 13601lt_prog_compiler_static_FC= 13602 13603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 13604$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 13605 13606 if test "$GCC" = yes; then 13607 lt_prog_compiler_wl_FC='-Wl,' 13608 lt_prog_compiler_static_FC='-static' 13609 13610 case $host_os in 13611 aix*) 13612 # All AIX code is PIC. 13613 if test "$host_cpu" = ia64; then 13614 # AIX 5 now supports IA64 processor 13615 lt_prog_compiler_static_FC='-Bstatic' 13616 fi 13617 lt_prog_compiler_pic_FC='-fPIC' 13618 ;; 13619 13620 amigaos*) 13621 case $host_cpu in 13622 powerpc) 13623 # see comment about AmigaOS4 .so support 13624 lt_prog_compiler_pic_FC='-fPIC' 13625 ;; 13626 m68k) 13627 # FIXME: we need at least 68020 code to build shared libraries, but 13628 # adding the `-m68020' flag to GCC prevents building anything better, 13629 # like `-m68040'. 13630 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4' 13631 ;; 13632 esac 13633 ;; 13634 13635 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13636 # PIC is the default for these OSes. 13637 ;; 13638 13639 mingw* | cygwin* | pw32* | os2* | cegcc*) 13640 # This hack is so that the source file can tell whether it is being 13641 # built for inclusion in a dll (and should export symbols for example). 13642 # Although the cygwin gcc ignores -fPIC, still need this for old-style 13643 # (--disable-auto-import) libraries 13644 lt_prog_compiler_pic_FC='-DDLL_EXPORT' 13645 ;; 13646 13647 darwin* | rhapsody*) 13648 # PIC is the default on this platform 13649 # Common symbols not allowed in MH_DYLIB files 13650 lt_prog_compiler_pic_FC='-fno-common' 13651 ;; 13652 13653 haiku*) 13654 # PIC is the default for Haiku. 13655 # The "-static" flag exists, but is broken. 13656 lt_prog_compiler_static_FC= 13657 ;; 13658 13659 hpux*) 13660 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 13661 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 13662 # sets the default TLS model and affects inlining. 13663 case $host_cpu in 13664 hppa*64*) 13665 # +Z the default 13666 ;; 13667 *) 13668 lt_prog_compiler_pic_FC='-fPIC' 13669 ;; 13670 esac 13671 ;; 13672 13673 interix[3-9]*) 13674 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13675 # Instead, we relocate shared libraries at runtime. 13676 ;; 13677 13678 msdosdjgpp*) 13679 # Just because we use GCC doesn't mean we suddenly get shared libraries 13680 # on systems that don't support them. 13681 lt_prog_compiler_can_build_shared_FC=no 13682 enable_shared=no 13683 ;; 13684 13685 *nto* | *qnx*) 13686 # QNX uses GNU C++, but need to define -shared option too, otherwise 13687 # it will coredump. 13688 lt_prog_compiler_pic_FC='-fPIC -shared' 13689 ;; 13690 13691 sysv4*MP*) 13692 if test -d /usr/nec; then 13693 lt_prog_compiler_pic_FC=-Kconform_pic 13694 fi 13695 ;; 13696 13697 *) 13698 lt_prog_compiler_pic_FC='-fPIC' 13699 ;; 13700 esac 13701 13702 case $cc_basename in 13703 nvcc*) # Cuda Compiler Driver 2.2 13704 lt_prog_compiler_wl_FC='-Xlinker ' 13705 lt_prog_compiler_pic_FC='-Xcompiler -fPIC' 13706 ;; 13707 esac 13708 else 13709 # PORTME Check for flag to pass linker flags through the system compiler. 13710 case $host_os in 13711 aix*) 13712 lt_prog_compiler_wl_FC='-Wl,' 13713 if test "$host_cpu" = ia64; then 13714 # AIX 5 now supports IA64 processor 13715 lt_prog_compiler_static_FC='-Bstatic' 13716 else 13717 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp' 13718 fi 13719 ;; 13720 13721 mingw* | cygwin* | pw32* | os2* | cegcc*) 13722 # This hack is so that the source file can tell whether it is being 13723 # built for inclusion in a dll (and should export symbols for example). 13724 lt_prog_compiler_pic_FC='-DDLL_EXPORT' 13725 ;; 13726 13727 hpux9* | hpux10* | hpux11*) 13728 lt_prog_compiler_wl_FC='-Wl,' 13729 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13730 # not for PA HP-UX. 13731 case $host_cpu in 13732 hppa*64*|ia64*) 13733 # +Z the default 13734 ;; 13735 *) 13736 lt_prog_compiler_pic_FC='+Z' 13737 ;; 13738 esac 13739 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13740 lt_prog_compiler_static_FC='${wl}-a ${wl}archive' 13741 ;; 13742 13743 irix5* | irix6* | nonstopux*) 13744 lt_prog_compiler_wl_FC='-Wl,' 13745 # PIC (with -KPIC) is the default. 13746 lt_prog_compiler_static_FC='-non_shared' 13747 ;; 13748 13749 linux* | k*bsd*-gnu | kopensolaris*-gnu) 13750 case $cc_basename in 13751 # old Intel for x86_64 which still supported -KPIC. 13752 ecc*) 13753 lt_prog_compiler_wl_FC='-Wl,' 13754 lt_prog_compiler_pic_FC='-KPIC' 13755 lt_prog_compiler_static_FC='-static' 13756 ;; 13757 # icc used to be incompatible with GCC. 13758 # ICC 10 doesn't accept -KPIC any more. 13759 icc* | ifort*) 13760 lt_prog_compiler_wl_FC='-Wl,' 13761 lt_prog_compiler_pic_FC='-fPIC' 13762 lt_prog_compiler_static_FC='-static' 13763 ;; 13764 # Lahey Fortran 8.1. 13765 lf95*) 13766 lt_prog_compiler_wl_FC='-Wl,' 13767 lt_prog_compiler_pic_FC='--shared' 13768 lt_prog_compiler_static_FC='--static' 13769 ;; 13770 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 13771 # Portland Group compilers (*not* the Pentium gcc compiler, 13772 # which looks to be a dead project) 13773 lt_prog_compiler_wl_FC='-Wl,' 13774 lt_prog_compiler_pic_FC='-fpic' 13775 lt_prog_compiler_static_FC='-Bstatic' 13776 ;; 13777 ccc*) 13778 lt_prog_compiler_wl_FC='-Wl,' 13779 # All Alpha code is PIC. 13780 lt_prog_compiler_static_FC='-non_shared' 13781 ;; 13782 xl* | bgxl* | bgf* | mpixl*) 13783 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 13784 lt_prog_compiler_wl_FC='-Wl,' 13785 lt_prog_compiler_pic_FC='-qpic' 13786 lt_prog_compiler_static_FC='-qstaticlink' 13787 ;; 13788 *) 13789 case `$CC -V 2>&1 | sed 5q` in 13790 *Sun\ F* | *Sun*Fortran*) 13791 # Sun Fortran 8.3 passes all unrecognized flags to the linker 13792 lt_prog_compiler_pic_FC='-KPIC' 13793 lt_prog_compiler_static_FC='-Bstatic' 13794 lt_prog_compiler_wl_FC='' 13795 ;; 13796 *Sun\ C*) 13797 # Sun C 5.9 13798 lt_prog_compiler_pic_FC='-KPIC' 13799 lt_prog_compiler_static_FC='-Bstatic' 13800 lt_prog_compiler_wl_FC='-Wl,' 13801 ;; 13802 esac 13803 ;; 13804 esac 13805 ;; 13806 13807 newsos6) 13808 lt_prog_compiler_pic_FC='-KPIC' 13809 lt_prog_compiler_static_FC='-Bstatic' 13810 ;; 13811 13812 *nto* | *qnx*) 13813 # QNX uses GNU C++, but need to define -shared option too, otherwise 13814 # it will coredump. 13815 lt_prog_compiler_pic_FC='-fPIC -shared' 13816 ;; 13817 13818 osf3* | osf4* | osf5*) 13819 lt_prog_compiler_wl_FC='-Wl,' 13820 # All OSF/1 code is PIC. 13821 lt_prog_compiler_static_FC='-non_shared' 13822 ;; 13823 13824 rdos*) 13825 lt_prog_compiler_static_FC='-non_shared' 13826 ;; 13827 13828 solaris*) 13829 lt_prog_compiler_pic_FC='-KPIC' 13830 lt_prog_compiler_static_FC='-Bstatic' 13831 case $cc_basename in 13832 f77* | f90* | f95*) 13833 lt_prog_compiler_wl_FC='-Qoption ld ';; 13834 *) 13835 lt_prog_compiler_wl_FC='-Wl,';; 13836 esac 13837 ;; 13838 13839 sunos4*) 13840 lt_prog_compiler_wl_FC='-Qoption ld ' 13841 lt_prog_compiler_pic_FC='-PIC' 13842 lt_prog_compiler_static_FC='-Bstatic' 13843 ;; 13844 13845 sysv4 | sysv4.2uw2* | sysv4.3*) 13846 lt_prog_compiler_wl_FC='-Wl,' 13847 lt_prog_compiler_pic_FC='-KPIC' 13848 lt_prog_compiler_static_FC='-Bstatic' 13849 ;; 13850 13851 sysv4*MP*) 13852 if test -d /usr/nec ;then 13853 lt_prog_compiler_pic_FC='-Kconform_pic' 13854 lt_prog_compiler_static_FC='-Bstatic' 13855 fi 13856 ;; 13857 13858 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13859 lt_prog_compiler_wl_FC='-Wl,' 13860 lt_prog_compiler_pic_FC='-KPIC' 13861 lt_prog_compiler_static_FC='-Bstatic' 13862 ;; 13863 13864 unicos*) 13865 lt_prog_compiler_wl_FC='-Wl,' 13866 lt_prog_compiler_can_build_shared_FC=no 13867 ;; 13868 13869 uts4*) 13870 lt_prog_compiler_pic_FC='-pic' 13871 lt_prog_compiler_static_FC='-Bstatic' 13872 ;; 13873 13874 *) 13875 lt_prog_compiler_can_build_shared_FC=no 13876 ;; 13877 esac 13878 fi 13879 13880case $host_os in 13881 # For platforms which do not support PIC, -DPIC is meaningless: 13882 *djgpp*) 13883 lt_prog_compiler_pic_FC= 13884 ;; 13885 *) 13886 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC" 13887 ;; 13888esac 13889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5 13890$as_echo "$lt_prog_compiler_pic_FC" >&6; } 13891 13892 13893 13894# 13895# Check to make sure the PIC flag actually works. 13896# 13897if test -n "$lt_prog_compiler_pic_FC"; then 13898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5 13899$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; } 13900if ${lt_cv_prog_compiler_pic_works_FC+:} false; then : 13901 $as_echo_n "(cached) " >&6 13902else 13903 lt_cv_prog_compiler_pic_works_FC=no 13904 ac_outfile=conftest.$ac_objext 13905 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13906 lt_compiler_flag="$lt_prog_compiler_pic_FC" 13907 # Insert the option either (1) after the last *FLAGS variable, or 13908 # (2) before a word containing "conftest.", or (3) at the end. 13909 # Note that $ac_compile itself does not contain backslashes and begins 13910 # with a dollar sign (not a hyphen), so the echo should work correctly. 13911 # The option is referenced via a variable to avoid confusing sed. 13912 lt_compile=`echo "$ac_compile" | $SED \ 13913 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13914 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13915 -e 's:$: $lt_compiler_flag:'` 13916 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13917 (eval "$lt_compile" 2>conftest.err) 13918 ac_status=$? 13919 cat conftest.err >&5 13920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13921 if (exit $ac_status) && test -s "$ac_outfile"; then 13922 # The compiler can only warn and ignore the option if not recognized 13923 # So say no if there are warnings other than the usual output. 13924 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 13925 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13926 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13927 lt_cv_prog_compiler_pic_works_FC=yes 13928 fi 13929 fi 13930 $RM conftest* 13931 13932fi 13933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5 13934$as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; } 13935 13936if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then 13937 case $lt_prog_compiler_pic_FC in 13938 "" | " "*) ;; 13939 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;; 13940 esac 13941else 13942 lt_prog_compiler_pic_FC= 13943 lt_prog_compiler_can_build_shared_FC=no 13944fi 13945 13946fi 13947 13948 13949 13950# 13951# Check to make sure the static flag actually works. 13952# 13953wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\" 13954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13955$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 13956if ${lt_cv_prog_compiler_static_works_FC+:} false; then : 13957 $as_echo_n "(cached) " >&6 13958else 13959 lt_cv_prog_compiler_static_works_FC=no 13960 save_LDFLAGS="$LDFLAGS" 13961 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13962 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13963 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13964 # The linker can only warn and ignore the option if not recognized 13965 # So say no if there are warnings 13966 if test -s conftest.err; then 13967 # Append any errors to the config.log. 13968 cat conftest.err 1>&5 13969 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 13970 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13971 if diff conftest.exp conftest.er2 >/dev/null; then 13972 lt_cv_prog_compiler_static_works_FC=yes 13973 fi 13974 else 13975 lt_cv_prog_compiler_static_works_FC=yes 13976 fi 13977 fi 13978 $RM -r conftest* 13979 LDFLAGS="$save_LDFLAGS" 13980 13981fi 13982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5 13983$as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; } 13984 13985if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then 13986 : 13987else 13988 lt_prog_compiler_static_FC= 13989fi 13990 13991 13992 13993 13994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 13995$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13996if ${lt_cv_prog_compiler_c_o_FC+:} false; then : 13997 $as_echo_n "(cached) " >&6 13998else 13999 lt_cv_prog_compiler_c_o_FC=no 14000 $RM -r conftest 2>/dev/null 14001 mkdir conftest 14002 cd conftest 14003 mkdir out 14004 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14005 14006 lt_compiler_flag="-o out/conftest2.$ac_objext" 14007 # Insert the option either (1) after the last *FLAGS variable, or 14008 # (2) before a word containing "conftest.", or (3) at the end. 14009 # Note that $ac_compile itself does not contain backslashes and begins 14010 # with a dollar sign (not a hyphen), so the echo should work correctly. 14011 lt_compile=`echo "$ac_compile" | $SED \ 14012 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14013 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14014 -e 's:$: $lt_compiler_flag:'` 14015 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14016 (eval "$lt_compile" 2>out/conftest.err) 14017 ac_status=$? 14018 cat out/conftest.err >&5 14019 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14020 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14021 then 14022 # The compiler can only warn and ignore the option if not recognized 14023 # So say no if there are warnings 14024 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14025 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14026 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14027 lt_cv_prog_compiler_c_o_FC=yes 14028 fi 14029 fi 14030 chmod u+w . 2>&5 14031 $RM conftest* 14032 # SGI C++ compiler will create directory out/ii_files/ for 14033 # template instantiation 14034 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14035 $RM out/* && rmdir out 14036 cd .. 14037 $RM -r conftest 14038 $RM conftest* 14039 14040fi 14041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5 14042$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; } 14043 14044 14045 14046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14047$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14048if ${lt_cv_prog_compiler_c_o_FC+:} false; then : 14049 $as_echo_n "(cached) " >&6 14050else 14051 lt_cv_prog_compiler_c_o_FC=no 14052 $RM -r conftest 2>/dev/null 14053 mkdir conftest 14054 cd conftest 14055 mkdir out 14056 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14057 14058 lt_compiler_flag="-o out/conftest2.$ac_objext" 14059 # Insert the option either (1) after the last *FLAGS variable, or 14060 # (2) before a word containing "conftest.", or (3) at the end. 14061 # Note that $ac_compile itself does not contain backslashes and begins 14062 # with a dollar sign (not a hyphen), so the echo should work correctly. 14063 lt_compile=`echo "$ac_compile" | $SED \ 14064 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14065 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14066 -e 's:$: $lt_compiler_flag:'` 14067 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14068 (eval "$lt_compile" 2>out/conftest.err) 14069 ac_status=$? 14070 cat out/conftest.err >&5 14071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14072 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14073 then 14074 # The compiler can only warn and ignore the option if not recognized 14075 # So say no if there are warnings 14076 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14077 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14078 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14079 lt_cv_prog_compiler_c_o_FC=yes 14080 fi 14081 fi 14082 chmod u+w . 2>&5 14083 $RM conftest* 14084 # SGI C++ compiler will create directory out/ii_files/ for 14085 # template instantiation 14086 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14087 $RM out/* && rmdir out 14088 cd .. 14089 $RM -r conftest 14090 $RM conftest* 14091 14092fi 14093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5 14094$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; } 14095 14096 14097 14098 14099hard_links="nottested" 14100if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then 14101 # do not overwrite the value of need_locks provided by the user 14102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 14103$as_echo_n "checking if we can lock with hard links... " >&6; } 14104 hard_links=yes 14105 $RM conftest* 14106 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14107 touch conftest.a 14108 ln conftest.a conftest.b 2>&5 || hard_links=no 14109 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 14111$as_echo "$hard_links" >&6; } 14112 if test "$hard_links" = no; then 14113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14114$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14115 need_locks=warn 14116 fi 14117else 14118 need_locks=no 14119fi 14120 14121 14122 14123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14124$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14125 14126 runpath_var= 14127 allow_undefined_flag_FC= 14128 always_export_symbols_FC=no 14129 archive_cmds_FC= 14130 archive_expsym_cmds_FC= 14131 compiler_needs_object_FC=no 14132 enable_shared_with_static_runtimes_FC=no 14133 export_dynamic_flag_spec_FC= 14134 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14135 hardcode_automatic_FC=no 14136 hardcode_direct_FC=no 14137 hardcode_direct_absolute_FC=no 14138 hardcode_libdir_flag_spec_FC= 14139 hardcode_libdir_flag_spec_ld_FC= 14140 hardcode_libdir_separator_FC= 14141 hardcode_minus_L_FC=no 14142 hardcode_shlibpath_var_FC=unsupported 14143 inherit_rpath_FC=no 14144 link_all_deplibs_FC=unknown 14145 module_cmds_FC= 14146 module_expsym_cmds_FC= 14147 old_archive_from_new_cmds_FC= 14148 old_archive_from_expsyms_cmds_FC= 14149 thread_safe_flag_spec_FC= 14150 whole_archive_flag_spec_FC= 14151 # include_expsyms should be a list of space-separated symbols to be *always* 14152 # included in the symbol list 14153 include_expsyms_FC= 14154 # exclude_expsyms can be an extended regexp of symbols to exclude 14155 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14156 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14157 # as well as any symbol that contains `d'. 14158 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14159 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14160 # platforms (ab)use it in PIC code, but their linkers get confused if 14161 # the symbol is explicitly referenced. Since portable code cannot 14162 # rely on this symbol name, it's probably fine to never include it in 14163 # preloaded symbol tables. 14164 # Exclude shared library initialization/finalization symbols. 14165 extract_expsyms_cmds= 14166 14167 case $host_os in 14168 cygwin* | mingw* | pw32* | cegcc*) 14169 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14170 # When not using gcc, we currently assume that we are using 14171 # Microsoft Visual C++. 14172 if test "$GCC" != yes; then 14173 with_gnu_ld=no 14174 fi 14175 ;; 14176 interix*) 14177 # we just hope/assume this is gcc and not c89 (= MSVC++) 14178 with_gnu_ld=yes 14179 ;; 14180 openbsd*) 14181 with_gnu_ld=no 14182 ;; 14183 esac 14184 14185 ld_shlibs_FC=yes 14186 14187 # On some targets, GNU ld is compatible enough with the native linker 14188 # that we're better off using the native interface for both. 14189 lt_use_gnu_ld_interface=no 14190 if test "$with_gnu_ld" = yes; then 14191 case $host_os in 14192 aix*) 14193 # The AIX port of GNU ld has always aspired to compatibility 14194 # with the native linker. However, as the warning in the GNU ld 14195 # block says, versions before 2.19.5* couldn't really create working 14196 # shared libraries, regardless of the interface used. 14197 case `$LD -v 2>&1` in 14198 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 14199 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 14200 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 14201 *) 14202 lt_use_gnu_ld_interface=yes 14203 ;; 14204 esac 14205 ;; 14206 *) 14207 lt_use_gnu_ld_interface=yes 14208 ;; 14209 esac 14210 fi 14211 14212 if test "$lt_use_gnu_ld_interface" = yes; then 14213 # If archive_cmds runs LD, not CC, wlarc should be empty 14214 wlarc='${wl}' 14215 14216 # Set some defaults for GNU ld with shared library support. These 14217 # are reset later if shared libraries are not supported. Putting them 14218 # here allows them to be overridden if necessary. 14219 runpath_var=LD_RUN_PATH 14220 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' 14221 export_dynamic_flag_spec_FC='${wl}--export-dynamic' 14222 # ancient GNU ld didn't support --whole-archive et. al. 14223 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 14224 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14225 else 14226 whole_archive_flag_spec_FC= 14227 fi 14228 supports_anon_versioning=no 14229 case `$LD -v 2>&1` in 14230 *GNU\ gold*) supports_anon_versioning=yes ;; 14231 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14232 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14233 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14234 *\ 2.11.*) ;; # other 2.11 versions 14235 *) supports_anon_versioning=yes ;; 14236 esac 14237 14238 # See if GNU ld supports shared libraries. 14239 case $host_os in 14240 aix[3-9]*) 14241 # On AIX/PPC, the GNU linker is very broken 14242 if test "$host_cpu" != ia64; then 14243 ld_shlibs_FC=no 14244 cat <<_LT_EOF 1>&2 14245 14246*** Warning: the GNU linker, at least up to release 2.19, is reported 14247*** to be unable to reliably create shared libraries on AIX. 14248*** Therefore, libtool is disabling shared libraries support. If you 14249*** really care for shared libraries, you may want to install binutils 14250*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 14251*** You will then need to restart the configuration process. 14252 14253_LT_EOF 14254 fi 14255 ;; 14256 14257 amigaos*) 14258 case $host_cpu in 14259 powerpc) 14260 # see comment about AmigaOS4 .so support 14261 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14262 archive_expsym_cmds_FC='' 14263 ;; 14264 m68k) 14265 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)' 14266 hardcode_libdir_flag_spec_FC='-L$libdir' 14267 hardcode_minus_L_FC=yes 14268 ;; 14269 esac 14270 ;; 14271 14272 beos*) 14273 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14274 allow_undefined_flag_FC=unsupported 14275 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14276 # support --undefined. This deserves some investigation. FIXME 14277 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14278 else 14279 ld_shlibs_FC=no 14280 fi 14281 ;; 14282 14283 cygwin* | mingw* | pw32* | cegcc*) 14284 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless, 14285 # as there is no search path for DLLs. 14286 hardcode_libdir_flag_spec_FC='-L$libdir' 14287 export_dynamic_flag_spec_FC='${wl}--export-all-symbols' 14288 allow_undefined_flag_FC=unsupported 14289 always_export_symbols_FC=no 14290 enable_shared_with_static_runtimes_FC=yes 14291 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 14292 14293 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 14294 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14295 # If the export-symbols file already is a .def file (1st line 14296 # is EXPORTS), use it as is; otherwise, prepend... 14297 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14298 cp $export_symbols $output_objdir/$soname.def; 14299 else 14300 echo EXPORTS > $output_objdir/$soname.def; 14301 cat $export_symbols >> $output_objdir/$soname.def; 14302 fi~ 14303 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14304 else 14305 ld_shlibs_FC=no 14306 fi 14307 ;; 14308 14309 haiku*) 14310 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14311 link_all_deplibs_FC=yes 14312 ;; 14313 14314 interix[3-9]*) 14315 hardcode_direct_FC=no 14316 hardcode_shlibpath_var_FC=no 14317 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' 14318 export_dynamic_flag_spec_FC='${wl}-E' 14319 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14320 # Instead, shared libraries are loaded at an image base (0x10000000 by 14321 # default) and relocated if they conflict, which is a slow very memory 14322 # consuming and fragmenting process. To avoid this, we pick a random, 14323 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14324 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14325 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' 14326 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' 14327 ;; 14328 14329 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) 14330 tmp_diet=no 14331 if test "$host_os" = linux-dietlibc; then 14332 case $cc_basename in 14333 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 14334 esac 14335 fi 14336 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 14337 && test "$tmp_diet" = no 14338 then 14339 tmp_addflag=' $pic_flag' 14340 tmp_sharedflag='-shared' 14341 case $cc_basename,$host_cpu in 14342 pgcc*) # Portland Group C compiler 14343 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' 14344 tmp_addflag=' $pic_flag' 14345 ;; 14346 pgf77* | pgf90* | pgf95* | pgfortran*) 14347 # Portland Group f77 and f90 compilers 14348 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' 14349 tmp_addflag=' $pic_flag -Mnomain' ;; 14350 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14351 tmp_addflag=' -i_dynamic' ;; 14352 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14353 tmp_addflag=' -i_dynamic -nofor_main' ;; 14354 ifc* | ifort*) # Intel Fortran compiler 14355 tmp_addflag=' -nofor_main' ;; 14356 lf95*) # Lahey Fortran 8.1 14357 whole_archive_flag_spec_FC= 14358 tmp_sharedflag='--shared' ;; 14359 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 14360 tmp_sharedflag='-qmkshrobj' 14361 tmp_addflag= ;; 14362 nvcc*) # Cuda Compiler Driver 2.2 14363 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' 14364 compiler_needs_object_FC=yes 14365 ;; 14366 esac 14367 case `$CC -V 2>&1 | sed 5q` in 14368 *Sun\ C*) # Sun C 5.9 14369 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' 14370 compiler_needs_object_FC=yes 14371 tmp_sharedflag='-G' ;; 14372 *Sun\ F*) # Sun Fortran 8.3 14373 tmp_sharedflag='-G' ;; 14374 esac 14375 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14376 14377 if test "x$supports_anon_versioning" = xyes; then 14378 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~ 14379 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14380 echo "local: *; };" >> $output_objdir/$libname.ver~ 14381 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14382 fi 14383 14384 case $cc_basename in 14385 xlf* | bgf* | bgxlf* | mpixlf*) 14386 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 14387 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive' 14388 hardcode_libdir_flag_spec_FC= 14389 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir' 14390 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 14391 if test "x$supports_anon_versioning" = xyes; then 14392 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~ 14393 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14394 echo "local: *; };" >> $output_objdir/$libname.ver~ 14395 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 14396 fi 14397 ;; 14398 esac 14399 else 14400 ld_shlibs_FC=no 14401 fi 14402 ;; 14403 14404 netbsd*) 14405 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14406 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14407 wlarc= 14408 else 14409 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14410 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14411 fi 14412 ;; 14413 14414 solaris*) 14415 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 14416 ld_shlibs_FC=no 14417 cat <<_LT_EOF 1>&2 14418 14419*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14420*** create shared libraries on Solaris systems. Therefore, libtool 14421*** is disabling shared libraries support. We urge you to upgrade GNU 14422*** binutils to release 2.9.1 or newer. Another option is to modify 14423*** your PATH or compiler configuration so that the native linker is 14424*** used, and then restart. 14425 14426_LT_EOF 14427 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14428 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14429 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14430 else 14431 ld_shlibs_FC=no 14432 fi 14433 ;; 14434 14435 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14436 case `$LD -v 2>&1` in 14437 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14438 ld_shlibs_FC=no 14439 cat <<_LT_EOF 1>&2 14440 14441*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14442*** reliably create shared libraries on SCO systems. Therefore, libtool 14443*** is disabling shared libraries support. We urge you to upgrade GNU 14444*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14445*** your PATH or compiler configuration so that the native linker is 14446*** used, and then restart. 14447 14448_LT_EOF 14449 ;; 14450 *) 14451 # For security reasons, it is highly recommended that you always 14452 # use absolute paths for naming shared libraries, and exclude the 14453 # DT_RUNPATH tag from executables and libraries. But doing so 14454 # requires that you compile everything twice, which is a pain. 14455 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14456 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' 14457 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14458 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14459 else 14460 ld_shlibs_FC=no 14461 fi 14462 ;; 14463 esac 14464 ;; 14465 14466 sunos4*) 14467 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14468 wlarc= 14469 hardcode_direct_FC=yes 14470 hardcode_shlibpath_var_FC=no 14471 ;; 14472 14473 *) 14474 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14475 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14476 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14477 else 14478 ld_shlibs_FC=no 14479 fi 14480 ;; 14481 esac 14482 14483 if test "$ld_shlibs_FC" = no; then 14484 runpath_var= 14485 hardcode_libdir_flag_spec_FC= 14486 export_dynamic_flag_spec_FC= 14487 whole_archive_flag_spec_FC= 14488 fi 14489 else 14490 # PORTME fill in a description of your system's linker (not GNU ld) 14491 case $host_os in 14492 aix3*) 14493 allow_undefined_flag_FC=unsupported 14494 always_export_symbols_FC=yes 14495 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' 14496 # Note: this linker hardcodes the directories in LIBPATH if there 14497 # are no directories specified by -L. 14498 hardcode_minus_L_FC=yes 14499 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 14500 # Neither direct hardcoding nor static linking is supported with a 14501 # broken collect2. 14502 hardcode_direct_FC=unsupported 14503 fi 14504 ;; 14505 14506 aix[4-9]*) 14507 if test "$host_cpu" = ia64; then 14508 # On IA64, the linker does run time linking by default, so we don't 14509 # have to do anything special. 14510 aix_use_runtimelinking=no 14511 exp_sym_flag='-Bexport' 14512 no_entry_flag="" 14513 else 14514 # If we're using GNU nm, then we don't want the "-C" option. 14515 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14516 # Also, AIX nm treats weak defined symbols like other global 14517 # defined symbols, whereas GNU nm marks them as "W". 14518 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 14519 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' 14520 else 14521 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' 14522 fi 14523 aix_use_runtimelinking=no 14524 14525 # Test if we are trying to use run time linking or normal 14526 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14527 # need to do runtime linking. 14528 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 14529 for ld_flag in $LDFLAGS; do 14530 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14531 aix_use_runtimelinking=yes 14532 break 14533 fi 14534 done 14535 ;; 14536 esac 14537 14538 exp_sym_flag='-bexport' 14539 no_entry_flag='-bnoentry' 14540 fi 14541 14542 # When large executables or shared objects are built, AIX ld can 14543 # have problems creating the table of contents. If linking a library 14544 # or program results in "error TOC overflow" add -mminimal-toc to 14545 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14546 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14547 14548 archive_cmds_FC='' 14549 hardcode_direct_FC=yes 14550 hardcode_direct_absolute_FC=yes 14551 hardcode_libdir_separator_FC=':' 14552 link_all_deplibs_FC=yes 14553 file_list_spec_FC='${wl}-f,' 14554 14555 if test "$GCC" = yes; then 14556 case $host_os in aix4.[012]|aix4.[012].*) 14557 # We only want to do this on AIX 4.2 and lower, the check 14558 # below for broken collect2 doesn't work under 4.3+ 14559 collect2name=`${CC} -print-prog-name=collect2` 14560 if test -f "$collect2name" && 14561 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 14562 then 14563 # We have reworked collect2 14564 : 14565 else 14566 # We have old collect2 14567 hardcode_direct_FC=unsupported 14568 # It fails to find uninstalled libraries when the uninstalled 14569 # path is not listed in the libpath. Setting hardcode_minus_L 14570 # to unsupported forces relinking 14571 hardcode_minus_L_FC=yes 14572 hardcode_libdir_flag_spec_FC='-L$libdir' 14573 hardcode_libdir_separator_FC= 14574 fi 14575 ;; 14576 esac 14577 shared_flag='-shared' 14578 if test "$aix_use_runtimelinking" = yes; then 14579 shared_flag="$shared_flag "'${wl}-G' 14580 fi 14581 else 14582 # not using gcc 14583 if test "$host_cpu" = ia64; then 14584 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14585 # chokes on -Wl,-G. The following line is correct: 14586 shared_flag='-G' 14587 else 14588 if test "$aix_use_runtimelinking" = yes; then 14589 shared_flag='${wl}-G' 14590 else 14591 shared_flag='${wl}-bM:SRE' 14592 fi 14593 fi 14594 fi 14595 14596 export_dynamic_flag_spec_FC='${wl}-bexpall' 14597 # It seems that -bexpall does not export symbols beginning with 14598 # underscore (_), so it is better to generate a list of symbols to export. 14599 always_export_symbols_FC=yes 14600 if test "$aix_use_runtimelinking" = yes; then 14601 # Warning - without using the other runtime loading flags (-brtl), 14602 # -berok will link without error, but may produce a broken library. 14603 allow_undefined_flag_FC='-berok' 14604 # Determine the default libpath from the value encoded in an 14605 # empty executable. 14606 if test x$gcc_no_link = xyes; then 14607 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 14608fi 14609cat > conftest.$ac_ext <<_ACEOF 14610 program main 14611 14612 end 14613_ACEOF 14614if ac_fn_fc_try_link "$LINENO"; then : 14615 14616lt_aix_libpath_sed=' 14617 /Import File Strings/,/^$/ { 14618 /^0/ { 14619 s/^0 *\(.*\)$/\1/ 14620 p 14621 } 14622 }' 14623aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14624# Check for a 64-bit object if we didn't find anything. 14625if test -z "$aix_libpath"; then 14626 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14627fi 14628fi 14629rm -f core conftest.err conftest.$ac_objext \ 14630 conftest$ac_exeext conftest.$ac_ext 14631if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14632 14633 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath" 14634 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" 14635 else 14636 if test "$host_cpu" = ia64; then 14637 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib' 14638 allow_undefined_flag_FC="-z nodefs" 14639 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" 14640 else 14641 # Determine the default libpath from the value encoded in an 14642 # empty executable. 14643 if test x$gcc_no_link = xyes; then 14644 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 14645fi 14646cat > conftest.$ac_ext <<_ACEOF 14647 program main 14648 14649 end 14650_ACEOF 14651if ac_fn_fc_try_link "$LINENO"; then : 14652 14653lt_aix_libpath_sed=' 14654 /Import File Strings/,/^$/ { 14655 /^0/ { 14656 s/^0 *\(.*\)$/\1/ 14657 p 14658 } 14659 }' 14660aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14661# Check for a 64-bit object if we didn't find anything. 14662if test -z "$aix_libpath"; then 14663 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14664fi 14665fi 14666rm -f core conftest.err conftest.$ac_objext \ 14667 conftest$ac_exeext conftest.$ac_ext 14668if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14669 14670 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath" 14671 # Warning - without using the other run time loading flags, 14672 # -berok will link without error, but may produce a broken library. 14673 no_undefined_flag_FC=' ${wl}-bernotok' 14674 allow_undefined_flag_FC=' ${wl}-berok' 14675 if test "$with_gnu_ld" = yes; then 14676 # We only use this code for GNU lds that support --whole-archive. 14677 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 14678 else 14679 # Exported symbols can be pulled into shared objects from archives 14680 whole_archive_flag_spec_FC='$convenience' 14681 fi 14682 archive_cmds_need_lc_FC=yes 14683 # This is similar to how AIX traditionally builds its shared libraries. 14684 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' 14685 fi 14686 fi 14687 ;; 14688 14689 amigaos*) 14690 case $host_cpu in 14691 powerpc) 14692 # see comment about AmigaOS4 .so support 14693 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14694 archive_expsym_cmds_FC='' 14695 ;; 14696 m68k) 14697 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)' 14698 hardcode_libdir_flag_spec_FC='-L$libdir' 14699 hardcode_minus_L_FC=yes 14700 ;; 14701 esac 14702 ;; 14703 14704 bsdi[45]*) 14705 export_dynamic_flag_spec_FC=-rdynamic 14706 ;; 14707 14708 cygwin* | mingw* | pw32* | cegcc*) 14709 # When not using gcc, we currently assume that we are using 14710 # Microsoft Visual C++. 14711 # hardcode_libdir_flag_spec is actually meaningless, as there is 14712 # no search path for DLLs. 14713 hardcode_libdir_flag_spec_FC=' ' 14714 allow_undefined_flag_FC=unsupported 14715 # Tell ltmain to make .lib files, not .a files. 14716 libext=lib 14717 # Tell ltmain to make .dll files, not .so files. 14718 shrext_cmds=".dll" 14719 # FIXME: Setting linknames here is a bad hack. 14720 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 14721 # The linker will automatically build a .lib file if we build a DLL. 14722 old_archive_from_new_cmds_FC='true' 14723 # FIXME: Should let the user specify the lib program. 14724 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs' 14725 fix_srcfile_path_FC='`cygpath -w "$srcfile"`' 14726 enable_shared_with_static_runtimes_FC=yes 14727 ;; 14728 14729 darwin* | rhapsody*) 14730 14731 14732 archive_cmds_need_lc_FC=no 14733 hardcode_direct_FC=no 14734 hardcode_automatic_FC=yes 14735 hardcode_shlibpath_var_FC=unsupported 14736 if test "$lt_cv_ld_force_load" = "yes"; then 14737 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\"`' 14738 else 14739 whole_archive_flag_spec_FC='' 14740 fi 14741 link_all_deplibs_FC=yes 14742 allow_undefined_flag_FC="$_lt_dar_allow_undefined" 14743 case $cc_basename in 14744 ifort*) _lt_dar_can_shared=yes ;; 14745 *) _lt_dar_can_shared=$GCC ;; 14746 esac 14747 if test "$_lt_dar_can_shared" = "yes"; then 14748 output_verbose_link_cmd=func_echo_all 14749 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}" 14750 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 14751 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}" 14752 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}" 14753 14754 else 14755 ld_shlibs_FC=no 14756 fi 14757 14758 ;; 14759 14760 dgux*) 14761 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14762 hardcode_libdir_flag_spec_FC='-L$libdir' 14763 hardcode_shlibpath_var_FC=no 14764 ;; 14765 14766 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14767 # support. Future versions do this automatically, but an explicit c++rt0.o 14768 # does not break anything, and helps significantly (at the cost of a little 14769 # extra space). 14770 freebsd2.2*) 14771 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14772 hardcode_libdir_flag_spec_FC='-R$libdir' 14773 hardcode_direct_FC=yes 14774 hardcode_shlibpath_var_FC=no 14775 ;; 14776 14777 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14778 freebsd2.*) 14779 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14780 hardcode_direct_FC=yes 14781 hardcode_minus_L_FC=yes 14782 hardcode_shlibpath_var_FC=no 14783 ;; 14784 14785 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14786 freebsd* | dragonfly*) 14787 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14788 hardcode_libdir_flag_spec_FC='-R$libdir' 14789 hardcode_direct_FC=yes 14790 hardcode_shlibpath_var_FC=no 14791 ;; 14792 14793 hpux9*) 14794 if test "$GCC" = yes; then 14795 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' 14796 else 14797 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' 14798 fi 14799 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' 14800 hardcode_libdir_separator_FC=: 14801 hardcode_direct_FC=yes 14802 14803 # hardcode_minus_L: Not really in the search PATH, 14804 # but as the default location of the library. 14805 hardcode_minus_L_FC=yes 14806 export_dynamic_flag_spec_FC='${wl}-E' 14807 ;; 14808 14809 hpux10*) 14810 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 14811 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14812 else 14813 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14814 fi 14815 if test "$with_gnu_ld" = no; then 14816 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' 14817 hardcode_libdir_flag_spec_ld_FC='+b $libdir' 14818 hardcode_libdir_separator_FC=: 14819 hardcode_direct_FC=yes 14820 hardcode_direct_absolute_FC=yes 14821 export_dynamic_flag_spec_FC='${wl}-E' 14822 # hardcode_minus_L: Not really in the search PATH, 14823 # but as the default location of the library. 14824 hardcode_minus_L_FC=yes 14825 fi 14826 ;; 14827 14828 hpux11*) 14829 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 14830 case $host_cpu in 14831 hppa*64*) 14832 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14833 ;; 14834 ia64*) 14835 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14836 ;; 14837 *) 14838 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14839 ;; 14840 esac 14841 else 14842 case $host_cpu in 14843 hppa*64*) 14844 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14845 ;; 14846 ia64*) 14847 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14848 ;; 14849 *) 14850 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14851 ;; 14852 esac 14853 fi 14854 if test "$with_gnu_ld" = no; then 14855 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' 14856 hardcode_libdir_separator_FC=: 14857 14858 case $host_cpu in 14859 hppa*64*|ia64*) 14860 hardcode_direct_FC=no 14861 hardcode_shlibpath_var_FC=no 14862 ;; 14863 *) 14864 hardcode_direct_FC=yes 14865 hardcode_direct_absolute_FC=yes 14866 export_dynamic_flag_spec_FC='${wl}-E' 14867 14868 # hardcode_minus_L: Not really in the search PATH, 14869 # but as the default location of the library. 14870 hardcode_minus_L_FC=yes 14871 ;; 14872 esac 14873 fi 14874 ;; 14875 14876 irix5* | irix6* | nonstopux*) 14877 if test "$GCC" = yes; then 14878 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' 14879 # Try to use the -exported_symbol ld option, if it does not 14880 # work, assume that -exports_file does not work either and 14881 # implicitly export all symbols. 14882 save_LDFLAGS="$LDFLAGS" 14883 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 14884 if test x$gcc_no_link = xyes; then 14885 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 14886fi 14887cat > conftest.$ac_ext <<_ACEOF 14888int foo(void) {} 14889_ACEOF 14890if ac_fn_fc_try_link "$LINENO"; then : 14891 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' 14892 14893fi 14894rm -f core conftest.err conftest.$ac_objext \ 14895 conftest$ac_exeext conftest.$ac_ext 14896 LDFLAGS="$save_LDFLAGS" 14897 else 14898 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' 14899 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' 14900 fi 14901 archive_cmds_need_lc_FC='no' 14902 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' 14903 hardcode_libdir_separator_FC=: 14904 inherit_rpath_FC=yes 14905 link_all_deplibs_FC=yes 14906 ;; 14907 14908 netbsd*) 14909 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14910 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14911 else 14912 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14913 fi 14914 hardcode_libdir_flag_spec_FC='-R$libdir' 14915 hardcode_direct_FC=yes 14916 hardcode_shlibpath_var_FC=no 14917 ;; 14918 14919 newsos6) 14920 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14921 hardcode_direct_FC=yes 14922 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' 14923 hardcode_libdir_separator_FC=: 14924 hardcode_shlibpath_var_FC=no 14925 ;; 14926 14927 *nto* | *qnx*) 14928 ;; 14929 14930 openbsd*) 14931 if test -f /usr/libexec/ld.so; then 14932 hardcode_direct_FC=yes 14933 hardcode_shlibpath_var_FC=no 14934 hardcode_direct_absolute_FC=yes 14935 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14936 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14937 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 14938 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' 14939 export_dynamic_flag_spec_FC='${wl}-E' 14940 else 14941 case $host_os in 14942 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 14943 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14944 hardcode_libdir_flag_spec_FC='-R$libdir' 14945 ;; 14946 *) 14947 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14948 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' 14949 ;; 14950 esac 14951 fi 14952 else 14953 ld_shlibs_FC=no 14954 fi 14955 ;; 14956 14957 os2*) 14958 hardcode_libdir_flag_spec_FC='-L$libdir' 14959 hardcode_minus_L_FC=yes 14960 allow_undefined_flag_FC=unsupported 14961 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' 14962 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 14963 ;; 14964 14965 osf3*) 14966 if test "$GCC" = yes; then 14967 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*' 14968 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' 14969 else 14970 allow_undefined_flag_FC=' -expect_unresolved \*' 14971 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' 14972 fi 14973 archive_cmds_need_lc_FC='no' 14974 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' 14975 hardcode_libdir_separator_FC=: 14976 ;; 14977 14978 osf4* | osf5*) # as osf3* with the addition of -msym flag 14979 if test "$GCC" = yes; then 14980 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*' 14981 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' 14982 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' 14983 else 14984 allow_undefined_flag_FC=' -expect_unresolved \*' 14985 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' 14986 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~ 14987 $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' 14988 14989 # Both c and cxx compiler support -rpath directly 14990 hardcode_libdir_flag_spec_FC='-rpath $libdir' 14991 fi 14992 archive_cmds_need_lc_FC='no' 14993 hardcode_libdir_separator_FC=: 14994 ;; 14995 14996 solaris*) 14997 no_undefined_flag_FC=' -z defs' 14998 if test "$GCC" = yes; then 14999 wlarc='${wl}' 15000 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15001 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15002 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 15003 else 15004 case `$CC -V 2>&1` in 15005 *"Compilers 5.0"*) 15006 wlarc='' 15007 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15008 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15009 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 15010 ;; 15011 *) 15012 wlarc='${wl}' 15013 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 15014 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15015 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 15016 ;; 15017 esac 15018 fi 15019 hardcode_libdir_flag_spec_FC='-R$libdir' 15020 hardcode_shlibpath_var_FC=no 15021 case $host_os in 15022 solaris2.[0-5] | solaris2.[0-5].*) ;; 15023 *) 15024 # The compiler driver will combine and reorder linker options, 15025 # but understands `-z linker_flag'. GCC discards it without `$wl', 15026 # but is careful enough not to reorder. 15027 # Supported since Solaris 2.6 (maybe 2.5.1?) 15028 if test "$GCC" = yes; then 15029 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 15030 else 15031 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract' 15032 fi 15033 ;; 15034 esac 15035 link_all_deplibs_FC=yes 15036 ;; 15037 15038 sunos4*) 15039 if test "x$host_vendor" = xsequent; then 15040 # Use $CC to link under sequent, because it throws in some extra .o 15041 # files that make .init and .fini sections work. 15042 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15043 else 15044 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15045 fi 15046 hardcode_libdir_flag_spec_FC='-L$libdir' 15047 hardcode_direct_FC=yes 15048 hardcode_minus_L_FC=yes 15049 hardcode_shlibpath_var_FC=no 15050 ;; 15051 15052 sysv4) 15053 case $host_vendor in 15054 sni) 15055 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15056 hardcode_direct_FC=yes # is this really true??? 15057 ;; 15058 siemens) 15059 ## LD is ld it makes a PLAMLIB 15060 ## CC just makes a GrossModule. 15061 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15062 reload_cmds_FC='$CC -r -o $output$reload_objs' 15063 hardcode_direct_FC=no 15064 ;; 15065 motorola) 15066 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15067 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie 15068 ;; 15069 esac 15070 runpath_var='LD_RUN_PATH' 15071 hardcode_shlibpath_var_FC=no 15072 ;; 15073 15074 sysv4.3*) 15075 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15076 hardcode_shlibpath_var_FC=no 15077 export_dynamic_flag_spec_FC='-Bexport' 15078 ;; 15079 15080 sysv4*MP*) 15081 if test -d /usr/nec; then 15082 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15083 hardcode_shlibpath_var_FC=no 15084 runpath_var=LD_RUN_PATH 15085 hardcode_runpath_var=yes 15086 ld_shlibs_FC=yes 15087 fi 15088 ;; 15089 15090 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15091 no_undefined_flag_FC='${wl}-z,text' 15092 archive_cmds_need_lc_FC=no 15093 hardcode_shlibpath_var_FC=no 15094 runpath_var='LD_RUN_PATH' 15095 15096 if test "$GCC" = yes; then 15097 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15098 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15099 else 15100 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15101 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15102 fi 15103 ;; 15104 15105 sysv5* | sco3.2v5* | sco5v6*) 15106 # Note: We can NOT use -z defs as we might desire, because we do not 15107 # link with -lc, and that would cause any symbols used from libc to 15108 # always be unresolved, which means just about no library would 15109 # ever link correctly. If we're not using GNU ld we use -z text 15110 # though, which does catch some bad symbols but isn't as heavy-handed 15111 # as -z defs. 15112 no_undefined_flag_FC='${wl}-z,text' 15113 allow_undefined_flag_FC='${wl}-z,nodefs' 15114 archive_cmds_need_lc_FC=no 15115 hardcode_shlibpath_var_FC=no 15116 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir' 15117 hardcode_libdir_separator_FC=':' 15118 link_all_deplibs_FC=yes 15119 export_dynamic_flag_spec_FC='${wl}-Bexport' 15120 runpath_var='LD_RUN_PATH' 15121 15122 if test "$GCC" = yes; then 15123 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15124 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15125 else 15126 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15127 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15128 fi 15129 ;; 15130 15131 uts4*) 15132 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15133 hardcode_libdir_flag_spec_FC='-L$libdir' 15134 hardcode_shlibpath_var_FC=no 15135 ;; 15136 15137 *) 15138 ld_shlibs_FC=no 15139 ;; 15140 esac 15141 15142 if test x$host_vendor = xsni; then 15143 case $host in 15144 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 15145 export_dynamic_flag_spec_FC='${wl}-Blargedynsym' 15146 ;; 15147 esac 15148 fi 15149 fi 15150 15151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5 15152$as_echo "$ld_shlibs_FC" >&6; } 15153test "$ld_shlibs_FC" = no && can_build_shared=no 15154 15155with_gnu_ld_FC=$with_gnu_ld 15156 15157 15158 15159 15160 15161 15162# 15163# Do we need to explicitly link libc? 15164# 15165case "x$archive_cmds_need_lc_FC" in 15166x|xyes) 15167 # Assume -lc should be added 15168 archive_cmds_need_lc_FC=yes 15169 15170 if test "$enable_shared" = yes && test "$GCC" = yes; then 15171 case $archive_cmds_FC in 15172 *'~'*) 15173 # FIXME: we may have to deal with multi-command sequences. 15174 ;; 15175 '$CC '*) 15176 # Test whether the compiler implicitly links with -lc since on some 15177 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15178 # to ld, don't add -lc before -lgcc. 15179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 15180$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15181if ${lt_cv_archive_cmds_need_lc_FC+:} false; then : 15182 $as_echo_n "(cached) " >&6 15183else 15184 $RM conftest* 15185 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15186 15187 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15188 (eval $ac_compile) 2>&5 15189 ac_status=$? 15190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15191 test $ac_status = 0; } 2>conftest.err; then 15192 soname=conftest 15193 lib=conftest 15194 libobjs=conftest.$ac_objext 15195 deplibs= 15196 wl=$lt_prog_compiler_wl_FC 15197 pic_flag=$lt_prog_compiler_pic_FC 15198 compiler_flags=-v 15199 linker_flags=-v 15200 verstring= 15201 output_objdir=. 15202 libname=conftest 15203 lt_save_allow_undefined_flag=$allow_undefined_flag_FC 15204 allow_undefined_flag_FC= 15205 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 15206 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 15207 ac_status=$? 15208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15209 test $ac_status = 0; } 15210 then 15211 lt_cv_archive_cmds_need_lc_FC=no 15212 else 15213 lt_cv_archive_cmds_need_lc_FC=yes 15214 fi 15215 allow_undefined_flag_FC=$lt_save_allow_undefined_flag 15216 else 15217 cat conftest.err 1>&5 15218 fi 15219 $RM conftest* 15220 15221fi 15222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5 15223$as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; } 15224 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC 15225 ;; 15226 esac 15227 fi 15228 ;; 15229esac 15230 15231 15232 15233 15234 15235 15236 15237 15238 15239 15240 15241 15242 15243 15244 15245 15246 15247 15248 15249 15250 15251 15252 15253 15254 15255 15256 15257 15258 15259 15260 15261 15262 15263 15264 15265 15266 15267 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15295$as_echo_n "checking dynamic linker characteristics... " >&6; } 15296 15297library_names_spec= 15298libname_spec='lib$name' 15299soname_spec= 15300shrext_cmds=".so" 15301postinstall_cmds= 15302postuninstall_cmds= 15303finish_cmds= 15304finish_eval= 15305shlibpath_var= 15306shlibpath_overrides_runpath=unknown 15307version_type=none 15308dynamic_linker="$host_os ld.so" 15309sys_lib_dlsearch_path_spec="/lib /usr/lib" 15310need_lib_prefix=unknown 15311hardcode_into_libs=no 15312 15313# when you set need_version to no, make sure it does not cause -set_version 15314# flags to be left without arguments 15315need_version=unknown 15316 15317case $host_os in 15318aix3*) 15319 version_type=linux 15320 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15321 shlibpath_var=LIBPATH 15322 15323 # AIX 3 has no versioning support, so we append a major version to the name. 15324 soname_spec='${libname}${release}${shared_ext}$major' 15325 ;; 15326 15327aix[4-9]*) 15328 version_type=linux 15329 need_lib_prefix=no 15330 need_version=no 15331 hardcode_into_libs=yes 15332 if test "$host_cpu" = ia64; then 15333 # AIX 5 supports IA64 15334 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15335 shlibpath_var=LD_LIBRARY_PATH 15336 else 15337 # With GCC up to 2.95.x, collect2 would create an import file 15338 # for dependence libraries. The import file would start with 15339 # the line `#! .'. This would cause the generated library to 15340 # depend on `.', always an invalid library. This was fixed in 15341 # development snapshots of GCC prior to 3.0. 15342 case $host_os in 15343 aix4 | aix4.[01] | aix4.[01].*) 15344 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15345 echo ' yes ' 15346 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 15347 : 15348 else 15349 can_build_shared=no 15350 fi 15351 ;; 15352 esac 15353 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15354 # soname into executable. Probably we can add versioning support to 15355 # collect2, so additional links can be useful in future. 15356 if test "$aix_use_runtimelinking" = yes; then 15357 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15358 # instead of lib<name>.a to let people know that these are not 15359 # typical AIX shared libraries. 15360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15361 else 15362 # We preserve .a as extension for shared libraries through AIX4.2 15363 # and later when we are not doing run time linking. 15364 library_names_spec='${libname}${release}.a $libname.a' 15365 soname_spec='${libname}${release}${shared_ext}$major' 15366 fi 15367 shlibpath_var=LIBPATH 15368 fi 15369 ;; 15370 15371amigaos*) 15372 case $host_cpu in 15373 powerpc) 15374 # Since July 2007 AmigaOS4 officially supports .so libraries. 15375 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 15376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15377 ;; 15378 m68k) 15379 library_names_spec='$libname.ixlibrary $libname.a' 15380 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15381 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' 15382 ;; 15383 esac 15384 ;; 15385 15386beos*) 15387 library_names_spec='${libname}${shared_ext}' 15388 dynamic_linker="$host_os ld.so" 15389 shlibpath_var=LIBRARY_PATH 15390 ;; 15391 15392bsdi[45]*) 15393 version_type=linux 15394 need_version=no 15395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15396 soname_spec='${libname}${release}${shared_ext}$major' 15397 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15398 shlibpath_var=LD_LIBRARY_PATH 15399 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15400 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15401 # the default ld.so.conf also contains /usr/contrib/lib and 15402 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15403 # libtool to hard-code these into programs 15404 ;; 15405 15406cygwin* | mingw* | pw32* | cegcc*) 15407 version_type=windows 15408 shrext_cmds=".dll" 15409 need_version=no 15410 need_lib_prefix=no 15411 15412 case $GCC,$host_os in 15413 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 15414 library_names_spec='$libname.dll.a' 15415 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15416 postinstall_cmds='base_file=`basename \${file}`~ 15417 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 15418 dldir=$destdir/`dirname \$dlpath`~ 15419 test -d \$dldir || mkdir -p \$dldir~ 15420 $install_prog $dir/$dlname \$dldir/$dlname~ 15421 chmod a+x \$dldir/$dlname~ 15422 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15423 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15424 fi' 15425 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15426 dlpath=$dir/\$dldll~ 15427 $RM \$dlpath' 15428 shlibpath_overrides_runpath=yes 15429 15430 case $host_os in 15431 cygwin*) 15432 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15433 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15434 15435 ;; 15436 mingw* | cegcc*) 15437 # MinGW DLLs use traditional 'lib' prefix 15438 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15439 ;; 15440 pw32*) 15441 # pw32 DLLs use 'pw' prefix rather than 'lib' 15442 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15443 ;; 15444 esac 15445 ;; 15446 15447 *) 15448 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15449 ;; 15450 esac 15451 dynamic_linker='Win32 ld.exe' 15452 # FIXME: first we should search . and the directory the executable is in 15453 shlibpath_var=PATH 15454 ;; 15455 15456darwin* | rhapsody*) 15457 dynamic_linker="$host_os dyld" 15458 version_type=darwin 15459 need_lib_prefix=no 15460 need_version=no 15461 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15462 soname_spec='${libname}${release}${major}$shared_ext' 15463 shlibpath_overrides_runpath=yes 15464 shlibpath_var=DYLD_LIBRARY_PATH 15465 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15466 15467 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15468 ;; 15469 15470dgux*) 15471 version_type=linux 15472 need_lib_prefix=no 15473 need_version=no 15474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15475 soname_spec='${libname}${release}${shared_ext}$major' 15476 shlibpath_var=LD_LIBRARY_PATH 15477 ;; 15478 15479freebsd* | dragonfly*) 15480 # DragonFly does not have aout. When/if they implement a new 15481 # versioning mechanism, adjust this. 15482 if test -x /usr/bin/objformat; then 15483 objformat=`/usr/bin/objformat` 15484 else 15485 case $host_os in 15486 freebsd[23].*) objformat=aout ;; 15487 *) objformat=elf ;; 15488 esac 15489 fi 15490 version_type=freebsd-$objformat 15491 case $version_type in 15492 freebsd-elf*) 15493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15494 need_version=no 15495 need_lib_prefix=no 15496 ;; 15497 freebsd-*) 15498 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15499 need_version=yes 15500 ;; 15501 esac 15502 shlibpath_var=LD_LIBRARY_PATH 15503 case $host_os in 15504 freebsd2.*) 15505 shlibpath_overrides_runpath=yes 15506 ;; 15507 freebsd3.[01]* | freebsdelf3.[01]*) 15508 shlibpath_overrides_runpath=yes 15509 hardcode_into_libs=yes 15510 ;; 15511 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15512 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15513 shlibpath_overrides_runpath=no 15514 hardcode_into_libs=yes 15515 ;; 15516 *) # from 4.6 on, and DragonFly 15517 shlibpath_overrides_runpath=yes 15518 hardcode_into_libs=yes 15519 ;; 15520 esac 15521 ;; 15522 15523gnu*) 15524 version_type=linux 15525 need_lib_prefix=no 15526 need_version=no 15527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15528 soname_spec='${libname}${release}${shared_ext}$major' 15529 shlibpath_var=LD_LIBRARY_PATH 15530 hardcode_into_libs=yes 15531 ;; 15532 15533haiku*) 15534 version_type=linux 15535 need_lib_prefix=no 15536 need_version=no 15537 dynamic_linker="$host_os runtime_loader" 15538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15539 soname_spec='${libname}${release}${shared_ext}$major' 15540 shlibpath_var=LIBRARY_PATH 15541 shlibpath_overrides_runpath=yes 15542 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' 15543 hardcode_into_libs=yes 15544 ;; 15545 15546hpux9* | hpux10* | hpux11*) 15547 # Give a soname corresponding to the major version so that dld.sl refuses to 15548 # link against other versions. 15549 version_type=sunos 15550 need_lib_prefix=no 15551 need_version=no 15552 case $host_cpu in 15553 ia64*) 15554 shrext_cmds='.so' 15555 hardcode_into_libs=yes 15556 dynamic_linker="$host_os dld.so" 15557 shlibpath_var=LD_LIBRARY_PATH 15558 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15560 soname_spec='${libname}${release}${shared_ext}$major' 15561 if test "X$HPUX_IA64_MODE" = X32; then 15562 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15563 else 15564 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15565 fi 15566 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15567 ;; 15568 hppa*64*) 15569 shrext_cmds='.sl' 15570 hardcode_into_libs=yes 15571 dynamic_linker="$host_os dld.sl" 15572 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15573 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15575 soname_spec='${libname}${release}${shared_ext}$major' 15576 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15577 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15578 ;; 15579 *) 15580 shrext_cmds='.sl' 15581 dynamic_linker="$host_os dld.sl" 15582 shlibpath_var=SHLIB_PATH 15583 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15585 soname_spec='${libname}${release}${shared_ext}$major' 15586 ;; 15587 esac 15588 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 15589 postinstall_cmds='chmod 555 $lib' 15590 # or fails outright, so override atomically: 15591 install_override_mode=555 15592 ;; 15593 15594interix[3-9]*) 15595 version_type=linux 15596 need_lib_prefix=no 15597 need_version=no 15598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15599 soname_spec='${libname}${release}${shared_ext}$major' 15600 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15601 shlibpath_var=LD_LIBRARY_PATH 15602 shlibpath_overrides_runpath=no 15603 hardcode_into_libs=yes 15604 ;; 15605 15606irix5* | irix6* | nonstopux*) 15607 case $host_os in 15608 nonstopux*) version_type=nonstopux ;; 15609 *) 15610 if test "$lt_cv_prog_gnu_ld" = yes; then 15611 version_type=linux 15612 else 15613 version_type=irix 15614 fi ;; 15615 esac 15616 need_lib_prefix=no 15617 need_version=no 15618 soname_spec='${libname}${release}${shared_ext}$major' 15619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15620 case $host_os in 15621 irix5* | nonstopux*) 15622 libsuff= shlibsuff= 15623 ;; 15624 *) 15625 case $LD in # libtool.m4 will add one of these switches to LD 15626 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15627 libsuff= shlibsuff= libmagic=32-bit;; 15628 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15629 libsuff=32 shlibsuff=N32 libmagic=N32;; 15630 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15631 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15632 *) libsuff= shlibsuff= libmagic=never-match;; 15633 esac 15634 ;; 15635 esac 15636 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15637 shlibpath_overrides_runpath=no 15638 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15639 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15640 hardcode_into_libs=yes 15641 ;; 15642 15643# No shared lib support for Linux oldld, aout, or coff. 15644linux*oldld* | linux*aout* | linux*coff*) 15645 dynamic_linker=no 15646 ;; 15647 15648# This must be Linux ELF. 15649 15650# uclinux* changes (here and below) have been submitted to the libtool 15651# project, but have not yet been accepted: they are GCC-local changes 15652# for the time being. (See 15653# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html) 15654linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) 15655 version_type=linux 15656 need_lib_prefix=no 15657 need_version=no 15658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15659 soname_spec='${libname}${release}${shared_ext}$major' 15660 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15661 shlibpath_var=LD_LIBRARY_PATH 15662 shlibpath_overrides_runpath=no 15663 15664 # Some binutils ld are patched to set DT_RUNPATH 15665 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 15666 $as_echo_n "(cached) " >&6 15667else 15668 lt_cv_shlibpath_overrides_runpath=no 15669 save_LDFLAGS=$LDFLAGS 15670 save_libdir=$libdir 15671 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \ 15672 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\"" 15673 if test x$gcc_no_link = xyes; then 15674 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 15675fi 15676cat > conftest.$ac_ext <<_ACEOF 15677 program main 15678 15679 end 15680_ACEOF 15681if ac_fn_fc_try_link "$LINENO"; then : 15682 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 15683 lt_cv_shlibpath_overrides_runpath=yes 15684fi 15685fi 15686rm -f core conftest.err conftest.$ac_objext \ 15687 conftest$ac_exeext conftest.$ac_ext 15688 LDFLAGS=$save_LDFLAGS 15689 libdir=$save_libdir 15690 15691fi 15692 15693 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 15694 15695 # This implies no fast_install, which is unacceptable. 15696 # Some rework will be needed to allow for fast_install 15697 # before this can be enabled. 15698 hardcode_into_libs=yes 15699 15700 # Append ld.so.conf contents to the search path 15701 if test -f /etc/ld.so.conf; then 15702 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' ' '` 15703 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15704 fi 15705 15706 # We used to test for /lib/ld.so.1 and disable shared libraries on 15707 # powerpc, because MkLinux only supported shared libraries with the 15708 # GNU dynamic linker. Since this was broken with cross compilers, 15709 # most powerpc-linux boxes support dynamic linking these days and 15710 # people can always --disable-shared, the test was removed, and we 15711 # assume the GNU/Linux dynamic linker is in use. 15712 dynamic_linker='GNU/Linux ld.so' 15713 ;; 15714 15715netbsd*) 15716 version_type=sunos 15717 need_lib_prefix=no 15718 need_version=no 15719 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15721 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15722 dynamic_linker='NetBSD (a.out) ld.so' 15723 else 15724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15725 soname_spec='${libname}${release}${shared_ext}$major' 15726 dynamic_linker='NetBSD ld.elf_so' 15727 fi 15728 shlibpath_var=LD_LIBRARY_PATH 15729 shlibpath_overrides_runpath=yes 15730 hardcode_into_libs=yes 15731 ;; 15732 15733newsos6) 15734 version_type=linux 15735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15736 shlibpath_var=LD_LIBRARY_PATH 15737 shlibpath_overrides_runpath=yes 15738 ;; 15739 15740*nto* | *qnx*) 15741 version_type=qnx 15742 need_lib_prefix=no 15743 need_version=no 15744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15745 soname_spec='${libname}${release}${shared_ext}$major' 15746 shlibpath_var=LD_LIBRARY_PATH 15747 shlibpath_overrides_runpath=no 15748 hardcode_into_libs=yes 15749 dynamic_linker='ldqnx.so' 15750 ;; 15751 15752openbsd*) 15753 version_type=sunos 15754 sys_lib_dlsearch_path_spec="/usr/lib" 15755 need_lib_prefix=no 15756 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15757 case $host_os in 15758 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15759 *) need_version=no ;; 15760 esac 15761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15762 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15763 shlibpath_var=LD_LIBRARY_PATH 15764 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15765 case $host_os in 15766 openbsd2.[89] | openbsd2.[89].*) 15767 shlibpath_overrides_runpath=no 15768 ;; 15769 *) 15770 shlibpath_overrides_runpath=yes 15771 ;; 15772 esac 15773 else 15774 shlibpath_overrides_runpath=yes 15775 fi 15776 ;; 15777 15778os2*) 15779 libname_spec='$name' 15780 shrext_cmds=".dll" 15781 need_lib_prefix=no 15782 library_names_spec='$libname${shared_ext} $libname.a' 15783 dynamic_linker='OS/2 ld.exe' 15784 shlibpath_var=LIBPATH 15785 ;; 15786 15787osf3* | osf4* | osf5*) 15788 version_type=osf 15789 need_lib_prefix=no 15790 need_version=no 15791 soname_spec='${libname}${release}${shared_ext}$major' 15792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15793 shlibpath_var=LD_LIBRARY_PATH 15794 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15795 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15796 ;; 15797 15798rdos*) 15799 dynamic_linker=no 15800 ;; 15801 15802solaris*) 15803 version_type=linux 15804 need_lib_prefix=no 15805 need_version=no 15806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15807 soname_spec='${libname}${release}${shared_ext}$major' 15808 shlibpath_var=LD_LIBRARY_PATH 15809 shlibpath_overrides_runpath=yes 15810 hardcode_into_libs=yes 15811 # ldd complains unless libraries are executable 15812 postinstall_cmds='chmod +x $lib' 15813 ;; 15814 15815sunos4*) 15816 version_type=sunos 15817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15818 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15819 shlibpath_var=LD_LIBRARY_PATH 15820 shlibpath_overrides_runpath=yes 15821 if test "$with_gnu_ld" = yes; then 15822 need_lib_prefix=no 15823 fi 15824 need_version=yes 15825 ;; 15826 15827sysv4 | sysv4.3*) 15828 version_type=linux 15829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15830 soname_spec='${libname}${release}${shared_ext}$major' 15831 shlibpath_var=LD_LIBRARY_PATH 15832 case $host_vendor in 15833 sni) 15834 shlibpath_overrides_runpath=no 15835 need_lib_prefix=no 15836 runpath_var=LD_RUN_PATH 15837 ;; 15838 siemens) 15839 need_lib_prefix=no 15840 ;; 15841 motorola) 15842 need_lib_prefix=no 15843 need_version=no 15844 shlibpath_overrides_runpath=no 15845 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15846 ;; 15847 esac 15848 ;; 15849 15850sysv4*MP*) 15851 if test -d /usr/nec ;then 15852 version_type=linux 15853 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15854 soname_spec='$libname${shared_ext}.$major' 15855 shlibpath_var=LD_LIBRARY_PATH 15856 fi 15857 ;; 15858 15859sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15860 version_type=freebsd-elf 15861 need_lib_prefix=no 15862 need_version=no 15863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15864 soname_spec='${libname}${release}${shared_ext}$major' 15865 shlibpath_var=LD_LIBRARY_PATH 15866 shlibpath_overrides_runpath=yes 15867 hardcode_into_libs=yes 15868 if test "$with_gnu_ld" = yes; then 15869 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15870 else 15871 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15872 case $host_os in 15873 sco3.2v5*) 15874 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15875 ;; 15876 esac 15877 fi 15878 sys_lib_dlsearch_path_spec='/usr/lib' 15879 ;; 15880 15881tpf*) 15882 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 15883 version_type=linux 15884 need_lib_prefix=no 15885 need_version=no 15886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15887 shlibpath_var=LD_LIBRARY_PATH 15888 shlibpath_overrides_runpath=no 15889 hardcode_into_libs=yes 15890 ;; 15891 15892uts4*) 15893 version_type=linux 15894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15895 soname_spec='${libname}${release}${shared_ext}$major' 15896 shlibpath_var=LD_LIBRARY_PATH 15897 ;; 15898 15899*) 15900 dynamic_linker=no 15901 ;; 15902esac 15903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 15904$as_echo "$dynamic_linker" >&6; } 15905test "$dynamic_linker" = no && can_build_shared=no 15906 15907variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15908if test "$GCC" = yes; then 15909 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15910fi 15911 15912if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 15913 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 15914fi 15915if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 15916 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 15917fi 15918 15919 15920 15921 15922 15923 15924 15925 15926 15927 15928 15929 15930 15931 15932 15933 15934 15935 15936 15937 15938 15939 15940 15941 15942 15943 15944 15945 15946 15947 15948 15949 15950 15951 15952 15953 15954 15955 15956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 15957$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 15958hardcode_action_FC= 15959if test -n "$hardcode_libdir_flag_spec_FC" || 15960 test -n "$runpath_var_FC" || 15961 test "X$hardcode_automatic_FC" = "Xyes" ; then 15962 15963 # We can hardcode non-existent directories. 15964 if test "$hardcode_direct_FC" != no && 15965 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15966 # have to relink, otherwise we might link with an installed library 15967 # when we should be linking with a yet-to-be-installed one 15968 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no && 15969 test "$hardcode_minus_L_FC" != no; then 15970 # Linking always hardcodes the temporary library directory. 15971 hardcode_action_FC=relink 15972 else 15973 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15974 hardcode_action_FC=immediate 15975 fi 15976else 15977 # We cannot hardcode anything, or else we can only hardcode existing 15978 # directories. 15979 hardcode_action_FC=unsupported 15980fi 15981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5 15982$as_echo "$hardcode_action_FC" >&6; } 15983 15984if test "$hardcode_action_FC" = relink || 15985 test "$inherit_rpath_FC" = yes; then 15986 # Fast installation is not supported 15987 enable_fast_install=no 15988elif test "$shlibpath_overrides_runpath" = yes || 15989 test "$enable_shared" = no; then 15990 # Fast installation is not necessary 15991 enable_fast_install=needless 15992fi 15993 15994 15995 15996 15997 15998 15999 16000 fi # test -n "$compiler" 16001 16002 GCC=$lt_save_GCC 16003 CC="$lt_save_CC" 16004fi # test "$_lt_disable_FC" != yes 16005 16006ac_ext=c 16007ac_cpp='$CPP $CPPFLAGS' 16008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16010ac_compiler_gnu=$ac_cv_c_compiler_gnu 16011 16012 16013 16014# extra LD Flags which are required for targets 16015case "${host}" in 16016 *-darwin*) 16017 # Darwin needs -single_module when linking libgfortran 16018 extra_ldflags_libgfortran=-Wl,-single_module 16019 ;; 16020esac 16021 16022 16023# We need a working compiler at that point, otherwise give a clear 16024# error message and bail out. 16025 16026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GNU Fortran compiler is working" >&5 16027$as_echo_n "checking whether the GNU Fortran compiler is working... " >&6; } 16028ac_ext=${ac_fc_srcext-f} 16029ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 16030ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 16031ac_compiler_gnu=$ac_cv_fc_compiler_gnu 16032 16033cat > conftest.$ac_ext <<_ACEOF 16034 16035 program foo 16036 real, parameter :: bar = sin (12.34 / 2.5) 16037 end program foo 16038_ACEOF 16039if ac_fn_fc_try_compile "$LINENO"; then : 16040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16041$as_echo "yes" >&6; } 16042else 16043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16044$as_echo "no" >&6; } 16045 as_fn_error $? "GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla, attaching $PWD/config.log" "$LINENO" 5 16046 16047fi 16048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16049ac_ext=c 16050ac_cpp='$CPP $CPPFLAGS' 16051ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16052ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16053ac_compiler_gnu=$ac_cv_c_compiler_gnu 16054 16055 16056 16057# Check whether --enable-largefile was given. 16058if test "${enable_largefile+set}" = set; then : 16059 enableval=$enable_largefile; 16060fi 16061 16062if test "$enable_largefile" != no; then 16063 16064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 16065$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 16066if ${ac_cv_sys_largefile_CC+:} false; then : 16067 $as_echo_n "(cached) " >&6 16068else 16069 ac_cv_sys_largefile_CC=no 16070 if test "$GCC" != yes; then 16071 ac_save_CC=$CC 16072 while :; do 16073 # IRIX 6.2 and later do not support large files by default, 16074 # so use the C compiler's -n32 option if that helps. 16075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16076/* end confdefs.h. */ 16077#include <sys/types.h> 16078 /* Check that off_t can represent 2**63 - 1 correctly. 16079 We can't simply define LARGE_OFF_T to be 9223372036854775807, 16080 since some C++ compilers masquerading as C compilers 16081 incorrectly reject 9223372036854775807. */ 16082#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 16083 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 16084 && LARGE_OFF_T % 2147483647 == 1) 16085 ? 1 : -1]; 16086int 16087main () 16088{ 16089 16090 ; 16091 return 0; 16092} 16093_ACEOF 16094 if ac_fn_c_try_compile "$LINENO"; then : 16095 break 16096fi 16097rm -f core conftest.err conftest.$ac_objext 16098 CC="$CC -n32" 16099 if ac_fn_c_try_compile "$LINENO"; then : 16100 ac_cv_sys_largefile_CC=' -n32'; break 16101fi 16102rm -f core conftest.err conftest.$ac_objext 16103 break 16104 done 16105 CC=$ac_save_CC 16106 rm -f conftest.$ac_ext 16107 fi 16108fi 16109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 16110$as_echo "$ac_cv_sys_largefile_CC" >&6; } 16111 if test "$ac_cv_sys_largefile_CC" != no; then 16112 CC=$CC$ac_cv_sys_largefile_CC 16113 fi 16114 16115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 16116$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 16117if ${ac_cv_sys_file_offset_bits+:} false; then : 16118 $as_echo_n "(cached) " >&6 16119else 16120 while :; do 16121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16122/* end confdefs.h. */ 16123#include <sys/types.h> 16124 /* Check that off_t can represent 2**63 - 1 correctly. 16125 We can't simply define LARGE_OFF_T to be 9223372036854775807, 16126 since some C++ compilers masquerading as C compilers 16127 incorrectly reject 9223372036854775807. */ 16128#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 16129 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 16130 && LARGE_OFF_T % 2147483647 == 1) 16131 ? 1 : -1]; 16132int 16133main () 16134{ 16135 16136 ; 16137 return 0; 16138} 16139_ACEOF 16140if ac_fn_c_try_compile "$LINENO"; then : 16141 ac_cv_sys_file_offset_bits=no; break 16142fi 16143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16145/* end confdefs.h. */ 16146#define _FILE_OFFSET_BITS 64 16147#include <sys/types.h> 16148 /* Check that off_t can represent 2**63 - 1 correctly. 16149 We can't simply define LARGE_OFF_T to be 9223372036854775807, 16150 since some C++ compilers masquerading as C compilers 16151 incorrectly reject 9223372036854775807. */ 16152#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 16153 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 16154 && LARGE_OFF_T % 2147483647 == 1) 16155 ? 1 : -1]; 16156int 16157main () 16158{ 16159 16160 ; 16161 return 0; 16162} 16163_ACEOF 16164if ac_fn_c_try_compile "$LINENO"; then : 16165 ac_cv_sys_file_offset_bits=64; break 16166fi 16167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16168 ac_cv_sys_file_offset_bits=unknown 16169 break 16170done 16171fi 16172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 16173$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 16174case $ac_cv_sys_file_offset_bits in #( 16175 no | unknown) ;; 16176 *) 16177cat >>confdefs.h <<_ACEOF 16178#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 16179_ACEOF 16180;; 16181esac 16182rm -rf conftest* 16183 if test $ac_cv_sys_file_offset_bits = unknown; then 16184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 16185$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 16186if ${ac_cv_sys_large_files+:} false; then : 16187 $as_echo_n "(cached) " >&6 16188else 16189 while :; do 16190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16191/* end confdefs.h. */ 16192#include <sys/types.h> 16193 /* Check that off_t can represent 2**63 - 1 correctly. 16194 We can't simply define LARGE_OFF_T to be 9223372036854775807, 16195 since some C++ compilers masquerading as C compilers 16196 incorrectly reject 9223372036854775807. */ 16197#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 16198 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 16199 && LARGE_OFF_T % 2147483647 == 1) 16200 ? 1 : -1]; 16201int 16202main () 16203{ 16204 16205 ; 16206 return 0; 16207} 16208_ACEOF 16209if ac_fn_c_try_compile "$LINENO"; then : 16210 ac_cv_sys_large_files=no; break 16211fi 16212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16214/* end confdefs.h. */ 16215#define _LARGE_FILES 1 16216#include <sys/types.h> 16217 /* Check that off_t can represent 2**63 - 1 correctly. 16218 We can't simply define LARGE_OFF_T to be 9223372036854775807, 16219 since some C++ compilers masquerading as C compilers 16220 incorrectly reject 9223372036854775807. */ 16221#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 16222 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 16223 && LARGE_OFF_T % 2147483647 == 1) 16224 ? 1 : -1]; 16225int 16226main () 16227{ 16228 16229 ; 16230 return 0; 16231} 16232_ACEOF 16233if ac_fn_c_try_compile "$LINENO"; then : 16234 ac_cv_sys_large_files=1; break 16235fi 16236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16237 ac_cv_sys_large_files=unknown 16238 break 16239done 16240fi 16241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 16242$as_echo "$ac_cv_sys_large_files" >&6; } 16243case $ac_cv_sys_large_files in #( 16244 no | unknown) ;; 16245 *) 16246cat >>confdefs.h <<_ACEOF 16247#define _LARGE_FILES $ac_cv_sys_large_files 16248_ACEOF 16249;; 16250esac 16251rm -rf conftest* 16252 fi 16253 16254 16255fi 16256 16257 16258# Types 16259ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 16260if test "x$ac_cv_type_off_t" = xyes; then : 16261 16262else 16263 16264cat >>confdefs.h <<_ACEOF 16265#define off_t long int 16266_ACEOF 16267 16268fi 16269 16270 16271 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" 16272if test "x$ac_cv_type_intptr_t" = xyes; then : 16273 16274$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h 16275 16276else 16277 for ac_type in 'int' 'long int' 'long long int'; do 16278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16279/* end confdefs.h. */ 16280$ac_includes_default 16281int 16282main () 16283{ 16284static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 16285test_array [0] = 0; 16286return test_array [0]; 16287 16288 ; 16289 return 0; 16290} 16291_ACEOF 16292if ac_fn_c_try_compile "$LINENO"; then : 16293 16294cat >>confdefs.h <<_ACEOF 16295#define intptr_t $ac_type 16296_ACEOF 16297 16298 ac_type= 16299fi 16300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16301 test -z "$ac_type" && break 16302 done 16303fi 16304 16305 16306 16307 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 16308if test "x$ac_cv_type_uintptr_t" = xyes; then : 16309 16310$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h 16311 16312else 16313 for ac_type in 'unsigned int' 'unsigned long int' \ 16314 'unsigned long long int'; do 16315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16316/* end confdefs.h. */ 16317$ac_includes_default 16318int 16319main () 16320{ 16321static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 16322test_array [0] = 0; 16323return test_array [0]; 16324 16325 ; 16326 return 0; 16327} 16328_ACEOF 16329if ac_fn_c_try_compile "$LINENO"; then : 16330 16331cat >>confdefs.h <<_ACEOF 16332#define uintptr_t $ac_type 16333_ACEOF 16334 16335 ac_type= 16336fi 16337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16338 test -z "$ac_type" && break 16339 done 16340fi 16341 16342 16343ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" 16344if test "x$ac_cv_type_ptrdiff_t" = xyes; then : 16345 16346cat >>confdefs.h <<_ACEOF 16347#define HAVE_PTRDIFF_T 1 16348_ACEOF 16349 16350 16351fi 16352 16353 16354# check header files (we assume C89 is available, so don't check for that) 16355 16356 16357 16358 for ac_header in $ac_header_list 16359do : 16360 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16361ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 16362" 16363if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16364 cat >>confdefs.h <<_ACEOF 16365#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16366_ACEOF 16367 16368fi 16369 16370done 16371 16372 16373 16374 16375 16376 16377 16378 16379 16380 16381 16382 16383 16384 16385 16386 16387 16388 16389 16390 16391 16392 16393 16394 16395 16396 16397 16398 16399 16400 16401 16402 16403 16404 16405 16406 16407 16408 16409 16410inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'` 16411 16412acx_cv_header_stdint=stddef.h 16413acx_cv_header_stdint_kind="(already complete)" 16414for i in stdint.h $inttype_headers; do 16415 unset ac_cv_type_uintptr_t 16416 unset ac_cv_type_uintmax_t 16417 unset ac_cv_type_int_least32_t 16418 unset ac_cv_type_int_fast32_t 16419 unset ac_cv_type_uint64_t 16420 $as_echo_n "looking for a compliant stdint.h in $i, " >&6 16421 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h> 16422#include <$i> 16423" 16424if test "x$ac_cv_type_uintmax_t" = xyes; then : 16425 acx_cv_header_stdint=$i 16426else 16427 continue 16428fi 16429 16430 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h> 16431#include <$i> 16432" 16433if test "x$ac_cv_type_uintptr_t" = xyes; then : 16434 16435else 16436 acx_cv_header_stdint_kind="(mostly complete)" 16437fi 16438 16439 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h> 16440#include <$i> 16441" 16442if test "x$ac_cv_type_int_least32_t" = xyes; then : 16443 16444else 16445 acx_cv_header_stdint_kind="(mostly complete)" 16446fi 16447 16448 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h> 16449#include <$i> 16450" 16451if test "x$ac_cv_type_int_fast32_t" = xyes; then : 16452 16453else 16454 acx_cv_header_stdint_kind="(mostly complete)" 16455fi 16456 16457 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h> 16458#include <$i> 16459" 16460if test "x$ac_cv_type_uint64_t" = xyes; then : 16461 16462else 16463 acx_cv_header_stdint_kind="(lacks uint64_t)" 16464fi 16465 16466 break 16467done 16468if test "$acx_cv_header_stdint" = stddef.h; then 16469 acx_cv_header_stdint_kind="(lacks uintmax_t)" 16470 for i in stdint.h $inttype_headers; do 16471 unset ac_cv_type_uintptr_t 16472 unset ac_cv_type_uint32_t 16473 unset ac_cv_type_uint64_t 16474 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6 16475 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h> 16476#include <$i> 16477" 16478if test "x$ac_cv_type_uint32_t" = xyes; then : 16479 acx_cv_header_stdint=$i 16480else 16481 continue 16482fi 16483 16484 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h> 16485#include <$i> 16486" 16487if test "x$ac_cv_type_uint64_t" = xyes; then : 16488 16489fi 16490 16491 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h> 16492#include <$i> 16493" 16494if test "x$ac_cv_type_uintptr_t" = xyes; then : 16495 16496fi 16497 16498 break 16499 done 16500fi 16501if test "$acx_cv_header_stdint" = stddef.h; then 16502 acx_cv_header_stdint_kind="(u_intXX_t style)" 16503 for i in sys/types.h $inttype_headers; do 16504 unset ac_cv_type_u_int32_t 16505 unset ac_cv_type_u_int64_t 16506 $as_echo_n "looking for u_intXX_t types in $i, " >&6 16507 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h> 16508#include <$i> 16509" 16510if test "x$ac_cv_type_u_int32_t" = xyes; then : 16511 acx_cv_header_stdint=$i 16512else 16513 continue 16514fi 16515 16516 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h> 16517#include <$i> 16518" 16519if test "x$ac_cv_type_u_int64_t" = xyes; then : 16520 16521fi 16522 16523 break 16524 done 16525fi 16526if test "$acx_cv_header_stdint" = stddef.h; then 16527 acx_cv_header_stdint_kind="(using manual detection)" 16528fi 16529 16530test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no 16531test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no 16532test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no 16533test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no 16534test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no 16535 16536# ----------------- Summarize what we found so far 16537 16538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5 16539$as_echo_n "checking what to include in gstdint.h... " >&6; } 16540 16541case `$as_basename -- gstdint.h || 16542$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \ 16543 Xgstdint.h : 'X\(//\)$' \| \ 16544 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null || 16545$as_echo X/gstdint.h | 16546 sed '/^.*\/\([^/][^/]*\)\/*$/{ 16547 s//\1/ 16548 q 16549 } 16550 /^X\/\(\/\/\)$/{ 16551 s//\1/ 16552 q 16553 } 16554 /^X\/\(\/\).*/{ 16555 s//\1/ 16556 q 16557 } 16558 s/.*/./; q'` in 16559 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5 16560$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; 16561 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5 16562$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; 16563 *) ;; 16564esac 16565 16566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5 16567$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; } 16568 16569# ----------------- done included file, check C basic types -------- 16570 16571# Lacking an uintptr_t? Test size of void * 16572case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in 16573 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler 16574# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16575# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16576# This bug is HP SR number 8606223364. 16577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 16578$as_echo_n "checking size of void *... " >&6; } 16579if ${ac_cv_sizeof_void_p+:} false; then : 16580 $as_echo_n "(cached) " >&6 16581else 16582 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 16583 16584else 16585 if test "$ac_cv_type_void_p" = yes; then 16586 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16587$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16588as_fn_error 77 "cannot compute sizeof (void *) 16589See \`config.log' for more details" "$LINENO" 5; } 16590 else 16591 ac_cv_sizeof_void_p=0 16592 fi 16593fi 16594 16595fi 16596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 16597$as_echo "$ac_cv_sizeof_void_p" >&6; } 16598 16599 16600 16601cat >>confdefs.h <<_ACEOF 16602#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 16603_ACEOF 16604 16605 ;; 16606esac 16607 16608# Lacking an uint64_t? Test size of long 16609case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in 16610 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler 16611# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16612# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16613# This bug is HP SR number 8606223364. 16614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 16615$as_echo_n "checking size of long... " >&6; } 16616if ${ac_cv_sizeof_long+:} false; then : 16617 $as_echo_n "(cached) " >&6 16618else 16619 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 16620 16621else 16622 if test "$ac_cv_type_long" = yes; then 16623 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16624$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16625as_fn_error 77 "cannot compute sizeof (long) 16626See \`config.log' for more details" "$LINENO" 5; } 16627 else 16628 ac_cv_sizeof_long=0 16629 fi 16630fi 16631 16632fi 16633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 16634$as_echo "$ac_cv_sizeof_long" >&6; } 16635 16636 16637 16638cat >>confdefs.h <<_ACEOF 16639#define SIZEOF_LONG $ac_cv_sizeof_long 16640_ACEOF 16641 16642 ;; 16643esac 16644 16645if test $acx_cv_header_stdint = stddef.h; then 16646 # Lacking a good header? Test size of everything and deduce all types. 16647 # The cast to long int works around a bug in the HP C Compiler 16648# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16649# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16650# This bug is HP SR number 8606223364. 16651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 16652$as_echo_n "checking size of int... " >&6; } 16653if ${ac_cv_sizeof_int+:} false; then : 16654 $as_echo_n "(cached) " >&6 16655else 16656 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 16657 16658else 16659 if test "$ac_cv_type_int" = yes; then 16660 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16661$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16662as_fn_error 77 "cannot compute sizeof (int) 16663See \`config.log' for more details" "$LINENO" 5; } 16664 else 16665 ac_cv_sizeof_int=0 16666 fi 16667fi 16668 16669fi 16670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 16671$as_echo "$ac_cv_sizeof_int" >&6; } 16672 16673 16674 16675cat >>confdefs.h <<_ACEOF 16676#define SIZEOF_INT $ac_cv_sizeof_int 16677_ACEOF 16678 16679 16680 # The cast to long int works around a bug in the HP C Compiler 16681# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16682# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16683# This bug is HP SR number 8606223364. 16684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 16685$as_echo_n "checking size of short... " >&6; } 16686if ${ac_cv_sizeof_short+:} false; then : 16687 $as_echo_n "(cached) " >&6 16688else 16689 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 16690 16691else 16692 if test "$ac_cv_type_short" = yes; then 16693 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16694$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16695as_fn_error 77 "cannot compute sizeof (short) 16696See \`config.log' for more details" "$LINENO" 5; } 16697 else 16698 ac_cv_sizeof_short=0 16699 fi 16700fi 16701 16702fi 16703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 16704$as_echo "$ac_cv_sizeof_short" >&6; } 16705 16706 16707 16708cat >>confdefs.h <<_ACEOF 16709#define SIZEOF_SHORT $ac_cv_sizeof_short 16710_ACEOF 16711 16712 16713 # The cast to long int works around a bug in the HP C Compiler 16714# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16715# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16716# This bug is HP SR number 8606223364. 16717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5 16718$as_echo_n "checking size of char... " >&6; } 16719if ${ac_cv_sizeof_char+:} false; then : 16720 $as_echo_n "(cached) " >&6 16721else 16722 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then : 16723 16724else 16725 if test "$ac_cv_type_char" = yes; then 16726 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16727$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16728as_fn_error 77 "cannot compute sizeof (char) 16729See \`config.log' for more details" "$LINENO" 5; } 16730 else 16731 ac_cv_sizeof_char=0 16732 fi 16733fi 16734 16735fi 16736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5 16737$as_echo "$ac_cv_sizeof_char" >&6; } 16738 16739 16740 16741cat >>confdefs.h <<_ACEOF 16742#define SIZEOF_CHAR $ac_cv_sizeof_char 16743_ACEOF 16744 16745 16746 16747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5 16748$as_echo_n "checking for type equivalent to int8_t... " >&6; } 16749 case "$ac_cv_sizeof_char" in 16750 1) acx_cv_type_int8_t=char ;; 16751 *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5 16752 esac 16753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5 16754$as_echo "$acx_cv_type_int8_t" >&6; } 16755 16756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5 16757$as_echo_n "checking for type equivalent to int16_t... " >&6; } 16758 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in 16759 2:*) acx_cv_type_int16_t=int ;; 16760 *:2) acx_cv_type_int16_t=short ;; 16761 *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5 16762 esac 16763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5 16764$as_echo "$acx_cv_type_int16_t" >&6; } 16765 16766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5 16767$as_echo_n "checking for type equivalent to int32_t... " >&6; } 16768 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in 16769 4:*) acx_cv_type_int32_t=int ;; 16770 *:4) acx_cv_type_int32_t=long ;; 16771 *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5 16772 esac 16773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5 16774$as_echo "$acx_cv_type_int32_t" >&6; } 16775fi 16776 16777# These tests are here to make the output prettier 16778 16779if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then 16780 case "$ac_cv_sizeof_long" in 16781 8) acx_cv_type_int64_t=long ;; 16782 esac 16783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5 16784$as_echo_n "checking for type equivalent to int64_t... " >&6; } 16785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5 16786$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; } 16787fi 16788 16789# Now we can use the above types 16790 16791if test "$ac_cv_type_uintptr_t" != yes; then 16792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5 16793$as_echo_n "checking for type equivalent to intptr_t... " >&6; } 16794 case $ac_cv_sizeof_void_p in 16795 2) acx_cv_type_intptr_t=int16_t ;; 16796 4) acx_cv_type_intptr_t=int32_t ;; 16797 8) acx_cv_type_intptr_t=int64_t ;; 16798 *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5 16799 esac 16800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5 16801$as_echo "$acx_cv_type_intptr_t" >&6; } 16802fi 16803 16804# ----------------- done all checks, emit header ------------- 16805ac_config_commands="$ac_config_commands gstdint.h" 16806 16807 16808 16809 16810ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" 16811if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : 16812 16813cat >>confdefs.h <<_ACEOF 16814#define HAVE_STRUCT_STAT_ST_BLKSIZE 1 16815_ACEOF 16816 16817 16818fi 16819ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" 16820if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : 16821 16822cat >>confdefs.h <<_ACEOF 16823#define HAVE_STRUCT_STAT_ST_BLOCKS 1 16824_ACEOF 16825 16826 16827fi 16828ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" 16829if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then : 16830 16831cat >>confdefs.h <<_ACEOF 16832#define HAVE_STRUCT_STAT_ST_RDEV 1 16833_ACEOF 16834 16835 16836fi 16837 16838 16839case "${host}--x${with_newlib}" in 16840 mips*--xyes) 16841 hardwire_newlib=1;; 16842 nvptx*--xyes) 16843 hardwire_newlib=1;; 16844esac 16845 16846# Check for library functions. 16847if test "${hardwire_newlib:-0}" -eq 1; then 16848 # We are being configured with a cross compiler. AC_REPLACE_FUNCS 16849 # may not work correctly, because the compiler may not be able to 16850 # link executables. 16851 16852$as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h 16853 16854 16855$as_echo "#define HAVE_STRTOF 1" >>confdefs.h 16856 16857 16858$as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h 16859 16860 16861$as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h 16862 16863 16864$as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h 16865 16866 16867$as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h 16868 16869 16870$as_echo "#define HAVE_STRNLEN 1" >>confdefs.h 16871 16872 16873$as_echo "#define HAVE_STRNDUP 1" >>confdefs.h 16874 16875 16876 # At some point, we should differentiate between architectures 16877 # like x86, which have long double versions, and alpha/powerpc/etc., 16878 # which don't. For the time being, punt. 16879 if test x"long_double_math_on_this_cpu" = x"yes"; then 16880 16881$as_echo "#define HAVE_STRTOLD 1" >>confdefs.h 16882 16883 fi 16884else 16885 16886 16887 16888 for ac_func in $ac_func_list 16889do : 16890 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16891ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16892if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 16893 cat >>confdefs.h <<_ACEOF 16894#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 16895_ACEOF 16896 16897fi 16898done 16899 16900 16901 16902 16903 16904 16905 16906 16907 16908 16909 16910 16911 16912 16913 16914 16915 16916 16917 16918 16919 16920 16921 16922 16923 16924 16925 16926 16927 16928 16929 16930 16931 16932 16933 16934 16935 16936 16937 16938 16939 16940 16941 16942 16943 16944 16945 16946 16947 16948 16949 16950 16951 16952 16953 16954 16955 16956 16957 16958 16959 16960 16961 16962 16963 16964 16965 16966 16967 16968 16969 16970 16971 16972 16973 16974 16975 16976 16977 16978 16979 16980 16981 16982 16983 16984 16985 16986 16987 16988 16989 16990 16991 16992 16993 16994 16995 16996 16997 16998 16999 17000 17001 17002 17003 17004 17005 17006 17007 17008 17009fi 17010 17011# Check strerror_r, cannot be above as versions with two and three arguments exist 17012 17013 ac_save_CFLAGS="$CFLAGS" 17014 CFLAGS="-Wimplicit-function-declaration -Werror" 17015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17016/* end confdefs.h. */ 17017#define _GNU_SOURCE 1 17018 #include <string.h> 17019 #include <locale.h> 17020int 17021main () 17022{ 17023char s[128]; strerror_r(5, s, 128); 17024 ; 17025 return 0; 17026} 17027_ACEOF 17028if ac_fn_c_try_compile "$LINENO"; then : 17029 17030$as_echo "#define HAVE_STRERROR_R 1" >>confdefs.h 17031 17032fi 17033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17034 CFLAGS="$ac_save_CFLAGS" 17035 17036 ac_save_CFLAGS="$CFLAGS" 17037 CFLAGS="-Wimplicit-function-declaration -Werror" 17038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17039/* end confdefs.h. */ 17040#define _GNU_SOURCE 1 17041 #include <string.h> 17042 #include <locale.h> 17043int 17044main () 17045{ 17046char s[128]; strerror_r(5, s); 17047 ; 17048 return 0; 17049} 17050_ACEOF 17051if ac_fn_c_try_compile "$LINENO"; then : 17052 17053$as_echo "#define HAVE_STRERROR_R_2ARGS 1" >>confdefs.h 17054 17055fi 17056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17057 CFLAGS="$ac_save_CFLAGS" 17058 17059 17060# Check for C99 (and other IEEE) math functions 17061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5 17062$as_echo_n "checking for sin in -lm... " >&6; } 17063if ${ac_cv_lib_m_sin+:} false; then : 17064 $as_echo_n "(cached) " >&6 17065else 17066 ac_check_lib_save_LIBS=$LIBS 17067LIBS="-lm $LIBS" 17068if test x$gcc_no_link = xyes; then 17069 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 17070fi 17071cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17072/* end confdefs.h. */ 17073 17074/* Override any GCC internal prototype to avoid an error. 17075 Use char because int might match the return type of a GCC 17076 builtin and then its argument prototype would still apply. */ 17077#ifdef __cplusplus 17078extern "C" 17079#endif 17080char sin (); 17081int 17082main () 17083{ 17084return sin (); 17085 ; 17086 return 0; 17087} 17088_ACEOF 17089if ac_fn_c_try_link "$LINENO"; then : 17090 ac_cv_lib_m_sin=yes 17091else 17092 ac_cv_lib_m_sin=no 17093fi 17094rm -f core conftest.err conftest.$ac_objext \ 17095 conftest$ac_exeext conftest.$ac_ext 17096LIBS=$ac_check_lib_save_LIBS 17097fi 17098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5 17099$as_echo "$ac_cv_lib_m_sin" >&6; } 17100if test "x$ac_cv_lib_m_sin" = xyes; then : 17101 cat >>confdefs.h <<_ACEOF 17102#define HAVE_LIBM 1 17103_ACEOF 17104 17105 LIBS="-lm $LIBS" 17106 17107fi 17108 17109 17110 17111 17112 17113 17114 17115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosf" >&5 17116$as_echo_n "checking for acosf... " >&6; } 17117if ${gcc_cv_math_func_acosf+:} false; then : 17118 $as_echo_n "(cached) " >&6 17119else 17120 if test x$gcc_no_link = xyes; then 17121 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 17122fi 17123cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17124/* end confdefs.h. */ 17125 17126#ifdef HAVE_COMPLEX_H 17127#include <complex.h> 17128#endif 17129#ifdef HAVE_MATH_H 17130#include <math.h> 17131#endif 17132 17133int (*ptr)() = (int (*)())acosf; 17134 17135int 17136main () 17137{ 17138 return 0; 17139} 17140 17141_ACEOF 17142if ac_fn_c_try_link "$LINENO"; then : 17143 gcc_cv_math_func_acosf=yes 17144else 17145 gcc_cv_math_func_acosf=no 17146fi 17147rm -f core conftest.err conftest.$ac_objext \ 17148 conftest$ac_exeext conftest.$ac_ext 17149fi 17150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosf" >&5 17151$as_echo "$gcc_cv_math_func_acosf" >&6; } 17152 if test $gcc_cv_math_func_acosf = yes; then 17153 17154cat >>confdefs.h <<_ACEOF 17155#define HAVE_ACOSF 1 17156_ACEOF 17157 17158 fi 17159 17160 17161 17162 17163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acos" >&5 17164$as_echo_n "checking for acos... " >&6; } 17165if ${gcc_cv_math_func_acos+:} false; then : 17166 $as_echo_n "(cached) " >&6 17167else 17168 if test x$gcc_no_link = xyes; then 17169 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 17170fi 17171cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17172/* end confdefs.h. */ 17173 17174#ifdef HAVE_COMPLEX_H 17175#include <complex.h> 17176#endif 17177#ifdef HAVE_MATH_H 17178#include <math.h> 17179#endif 17180 17181int (*ptr)() = (int (*)())acos; 17182 17183int 17184main () 17185{ 17186 return 0; 17187} 17188 17189_ACEOF 17190if ac_fn_c_try_link "$LINENO"; then : 17191 gcc_cv_math_func_acos=yes 17192else 17193 gcc_cv_math_func_acos=no 17194fi 17195rm -f core conftest.err conftest.$ac_objext \ 17196 conftest$ac_exeext conftest.$ac_ext 17197fi 17198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acos" >&5 17199$as_echo "$gcc_cv_math_func_acos" >&6; } 17200 if test $gcc_cv_math_func_acos = yes; then 17201 17202cat >>confdefs.h <<_ACEOF 17203#define HAVE_ACOS 1 17204_ACEOF 17205 17206 fi 17207 17208 17209 17210 17211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosl" >&5 17212$as_echo_n "checking for acosl... " >&6; } 17213if ${gcc_cv_math_func_acosl+:} false; then : 17214 $as_echo_n "(cached) " >&6 17215else 17216 if test x$gcc_no_link = xyes; then 17217 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 17218fi 17219cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17220/* end confdefs.h. */ 17221 17222#ifdef HAVE_COMPLEX_H 17223#include <complex.h> 17224#endif 17225#ifdef HAVE_MATH_H 17226#include <math.h> 17227#endif 17228 17229int (*ptr)() = (int (*)())acosl; 17230 17231int 17232main () 17233{ 17234 return 0; 17235} 17236 17237_ACEOF 17238if ac_fn_c_try_link "$LINENO"; then : 17239 gcc_cv_math_func_acosl=yes 17240else 17241 gcc_cv_math_func_acosl=no 17242fi 17243rm -f core conftest.err conftest.$ac_objext \ 17244 conftest$ac_exeext conftest.$ac_ext 17245fi 17246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosl" >&5 17247$as_echo "$gcc_cv_math_func_acosl" >&6; } 17248 if test $gcc_cv_math_func_acosl = yes; then 17249 17250cat >>confdefs.h <<_ACEOF 17251#define HAVE_ACOSL 1 17252_ACEOF 17253 17254 fi 17255 17256 17257 17258 17259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshf" >&5 17260$as_echo_n "checking for acoshf... " >&6; } 17261if ${gcc_cv_math_func_acoshf+:} false; then : 17262 $as_echo_n "(cached) " >&6 17263else 17264 if test x$gcc_no_link = xyes; then 17265 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 17266fi 17267cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17268/* end confdefs.h. */ 17269 17270#ifdef HAVE_COMPLEX_H 17271#include <complex.h> 17272#endif 17273#ifdef HAVE_MATH_H 17274#include <math.h> 17275#endif 17276 17277int (*ptr)() = (int (*)())acoshf; 17278 17279int 17280main () 17281{ 17282 return 0; 17283} 17284 17285_ACEOF 17286if ac_fn_c_try_link "$LINENO"; then : 17287 gcc_cv_math_func_acoshf=yes 17288else 17289 gcc_cv_math_func_acoshf=no 17290fi 17291rm -f core conftest.err conftest.$ac_objext \ 17292 conftest$ac_exeext conftest.$ac_ext 17293fi 17294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshf" >&5 17295$as_echo "$gcc_cv_math_func_acoshf" >&6; } 17296 if test $gcc_cv_math_func_acoshf = yes; then 17297 17298cat >>confdefs.h <<_ACEOF 17299#define HAVE_ACOSHF 1 17300_ACEOF 17301 17302 fi 17303 17304 17305 17306 17307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosh" >&5 17308$as_echo_n "checking for acosh... " >&6; } 17309if ${gcc_cv_math_func_acosh+:} false; then : 17310 $as_echo_n "(cached) " >&6 17311else 17312 if test x$gcc_no_link = xyes; then 17313 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 17314fi 17315cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17316/* end confdefs.h. */ 17317 17318#ifdef HAVE_COMPLEX_H 17319#include <complex.h> 17320#endif 17321#ifdef HAVE_MATH_H 17322#include <math.h> 17323#endif 17324 17325int (*ptr)() = (int (*)())acosh; 17326 17327int 17328main () 17329{ 17330 return 0; 17331} 17332 17333_ACEOF 17334if ac_fn_c_try_link "$LINENO"; then : 17335 gcc_cv_math_func_acosh=yes 17336else 17337 gcc_cv_math_func_acosh=no 17338fi 17339rm -f core conftest.err conftest.$ac_objext \ 17340 conftest$ac_exeext conftest.$ac_ext 17341fi 17342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosh" >&5 17343$as_echo "$gcc_cv_math_func_acosh" >&6; } 17344 if test $gcc_cv_math_func_acosh = yes; then 17345 17346cat >>confdefs.h <<_ACEOF 17347#define HAVE_ACOSH 1 17348_ACEOF 17349 17350 fi 17351 17352 17353 17354 17355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshl" >&5 17356$as_echo_n "checking for acoshl... " >&6; } 17357if ${gcc_cv_math_func_acoshl+:} false; then : 17358 $as_echo_n "(cached) " >&6 17359else 17360 if test x$gcc_no_link = xyes; then 17361 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 17362fi 17363cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17364/* end confdefs.h. */ 17365 17366#ifdef HAVE_COMPLEX_H 17367#include <complex.h> 17368#endif 17369#ifdef HAVE_MATH_H 17370#include <math.h> 17371#endif 17372 17373int (*ptr)() = (int (*)())acoshl; 17374 17375int 17376main () 17377{ 17378 return 0; 17379} 17380 17381_ACEOF 17382if ac_fn_c_try_link "$LINENO"; then : 17383 gcc_cv_math_func_acoshl=yes 17384else 17385 gcc_cv_math_func_acoshl=no 17386fi 17387rm -f core conftest.err conftest.$ac_objext \ 17388 conftest$ac_exeext conftest.$ac_ext 17389fi 17390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshl" >&5 17391$as_echo "$gcc_cv_math_func_acoshl" >&6; } 17392 if test $gcc_cv_math_func_acoshl = yes; then 17393 17394cat >>confdefs.h <<_ACEOF 17395#define HAVE_ACOSHL 1 17396_ACEOF 17397 17398 fi 17399 17400 17401 17402 17403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinf" >&5 17404$as_echo_n "checking for asinf... " >&6; } 17405if ${gcc_cv_math_func_asinf+:} false; then : 17406 $as_echo_n "(cached) " >&6 17407else 17408 if test x$gcc_no_link = xyes; then 17409 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 17410fi 17411cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17412/* end confdefs.h. */ 17413 17414#ifdef HAVE_COMPLEX_H 17415#include <complex.h> 17416#endif 17417#ifdef HAVE_MATH_H 17418#include <math.h> 17419#endif 17420 17421int (*ptr)() = (int (*)())asinf; 17422 17423int 17424main () 17425{ 17426 return 0; 17427} 17428 17429_ACEOF 17430if ac_fn_c_try_link "$LINENO"; then : 17431 gcc_cv_math_func_asinf=yes 17432else 17433 gcc_cv_math_func_asinf=no 17434fi 17435rm -f core conftest.err conftest.$ac_objext \ 17436 conftest$ac_exeext conftest.$ac_ext 17437fi 17438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinf" >&5 17439$as_echo "$gcc_cv_math_func_asinf" >&6; } 17440 if test $gcc_cv_math_func_asinf = yes; then 17441 17442cat >>confdefs.h <<_ACEOF 17443#define HAVE_ASINF 1 17444_ACEOF 17445 17446 fi 17447 17448 17449 17450 17451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin" >&5 17452$as_echo_n "checking for asin... " >&6; } 17453if ${gcc_cv_math_func_asin+:} false; then : 17454 $as_echo_n "(cached) " >&6 17455else 17456 if test x$gcc_no_link = xyes; then 17457 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 17458fi 17459cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17460/* end confdefs.h. */ 17461 17462#ifdef HAVE_COMPLEX_H 17463#include <complex.h> 17464#endif 17465#ifdef HAVE_MATH_H 17466#include <math.h> 17467#endif 17468 17469int (*ptr)() = (int (*)())asin; 17470 17471int 17472main () 17473{ 17474 return 0; 17475} 17476 17477_ACEOF 17478if ac_fn_c_try_link "$LINENO"; then : 17479 gcc_cv_math_func_asin=yes 17480else 17481 gcc_cv_math_func_asin=no 17482fi 17483rm -f core conftest.err conftest.$ac_objext \ 17484 conftest$ac_exeext conftest.$ac_ext 17485fi 17486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asin" >&5 17487$as_echo "$gcc_cv_math_func_asin" >&6; } 17488 if test $gcc_cv_math_func_asin = yes; then 17489 17490cat >>confdefs.h <<_ACEOF 17491#define HAVE_ASIN 1 17492_ACEOF 17493 17494 fi 17495 17496 17497 17498 17499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinl" >&5 17500$as_echo_n "checking for asinl... " >&6; } 17501if ${gcc_cv_math_func_asinl+:} false; then : 17502 $as_echo_n "(cached) " >&6 17503else 17504 if test x$gcc_no_link = xyes; then 17505 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 17506fi 17507cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17508/* end confdefs.h. */ 17509 17510#ifdef HAVE_COMPLEX_H 17511#include <complex.h> 17512#endif 17513#ifdef HAVE_MATH_H 17514#include <math.h> 17515#endif 17516 17517int (*ptr)() = (int (*)())asinl; 17518 17519int 17520main () 17521{ 17522 return 0; 17523} 17524 17525_ACEOF 17526if ac_fn_c_try_link "$LINENO"; then : 17527 gcc_cv_math_func_asinl=yes 17528else 17529 gcc_cv_math_func_asinl=no 17530fi 17531rm -f core conftest.err conftest.$ac_objext \ 17532 conftest$ac_exeext conftest.$ac_ext 17533fi 17534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinl" >&5 17535$as_echo "$gcc_cv_math_func_asinl" >&6; } 17536 if test $gcc_cv_math_func_asinl = yes; then 17537 17538cat >>confdefs.h <<_ACEOF 17539#define HAVE_ASINL 1 17540_ACEOF 17541 17542 fi 17543 17544 17545 17546 17547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhf" >&5 17548$as_echo_n "checking for asinhf... " >&6; } 17549if ${gcc_cv_math_func_asinhf+:} false; then : 17550 $as_echo_n "(cached) " >&6 17551else 17552 if test x$gcc_no_link = xyes; then 17553 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 17554fi 17555cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17556/* end confdefs.h. */ 17557 17558#ifdef HAVE_COMPLEX_H 17559#include <complex.h> 17560#endif 17561#ifdef HAVE_MATH_H 17562#include <math.h> 17563#endif 17564 17565int (*ptr)() = (int (*)())asinhf; 17566 17567int 17568main () 17569{ 17570 return 0; 17571} 17572 17573_ACEOF 17574if ac_fn_c_try_link "$LINENO"; then : 17575 gcc_cv_math_func_asinhf=yes 17576else 17577 gcc_cv_math_func_asinhf=no 17578fi 17579rm -f core conftest.err conftest.$ac_objext \ 17580 conftest$ac_exeext conftest.$ac_ext 17581fi 17582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhf" >&5 17583$as_echo "$gcc_cv_math_func_asinhf" >&6; } 17584 if test $gcc_cv_math_func_asinhf = yes; then 17585 17586cat >>confdefs.h <<_ACEOF 17587#define HAVE_ASINHF 1 17588_ACEOF 17589 17590 fi 17591 17592 17593 17594 17595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinh" >&5 17596$as_echo_n "checking for asinh... " >&6; } 17597if ${gcc_cv_math_func_asinh+:} false; then : 17598 $as_echo_n "(cached) " >&6 17599else 17600 if test x$gcc_no_link = xyes; then 17601 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 17602fi 17603cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17604/* end confdefs.h. */ 17605 17606#ifdef HAVE_COMPLEX_H 17607#include <complex.h> 17608#endif 17609#ifdef HAVE_MATH_H 17610#include <math.h> 17611#endif 17612 17613int (*ptr)() = (int (*)())asinh; 17614 17615int 17616main () 17617{ 17618 return 0; 17619} 17620 17621_ACEOF 17622if ac_fn_c_try_link "$LINENO"; then : 17623 gcc_cv_math_func_asinh=yes 17624else 17625 gcc_cv_math_func_asinh=no 17626fi 17627rm -f core conftest.err conftest.$ac_objext \ 17628 conftest$ac_exeext conftest.$ac_ext 17629fi 17630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinh" >&5 17631$as_echo "$gcc_cv_math_func_asinh" >&6; } 17632 if test $gcc_cv_math_func_asinh = yes; then 17633 17634cat >>confdefs.h <<_ACEOF 17635#define HAVE_ASINH 1 17636_ACEOF 17637 17638 fi 17639 17640 17641 17642 17643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhl" >&5 17644$as_echo_n "checking for asinhl... " >&6; } 17645if ${gcc_cv_math_func_asinhl+:} false; then : 17646 $as_echo_n "(cached) " >&6 17647else 17648 if test x$gcc_no_link = xyes; then 17649 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 17650fi 17651cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17652/* end confdefs.h. */ 17653 17654#ifdef HAVE_COMPLEX_H 17655#include <complex.h> 17656#endif 17657#ifdef HAVE_MATH_H 17658#include <math.h> 17659#endif 17660 17661int (*ptr)() = (int (*)())asinhl; 17662 17663int 17664main () 17665{ 17666 return 0; 17667} 17668 17669_ACEOF 17670if ac_fn_c_try_link "$LINENO"; then : 17671 gcc_cv_math_func_asinhl=yes 17672else 17673 gcc_cv_math_func_asinhl=no 17674fi 17675rm -f core conftest.err conftest.$ac_objext \ 17676 conftest$ac_exeext conftest.$ac_ext 17677fi 17678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhl" >&5 17679$as_echo "$gcc_cv_math_func_asinhl" >&6; } 17680 if test $gcc_cv_math_func_asinhl = yes; then 17681 17682cat >>confdefs.h <<_ACEOF 17683#define HAVE_ASINHL 1 17684_ACEOF 17685 17686 fi 17687 17688 17689 17690 17691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f" >&5 17692$as_echo_n "checking for atan2f... " >&6; } 17693if ${gcc_cv_math_func_atan2f+:} false; then : 17694 $as_echo_n "(cached) " >&6 17695else 17696 if test x$gcc_no_link = xyes; then 17697 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 17698fi 17699cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17700/* end confdefs.h. */ 17701 17702#ifdef HAVE_COMPLEX_H 17703#include <complex.h> 17704#endif 17705#ifdef HAVE_MATH_H 17706#include <math.h> 17707#endif 17708 17709int (*ptr)() = (int (*)())atan2f; 17710 17711int 17712main () 17713{ 17714 return 0; 17715} 17716 17717_ACEOF 17718if ac_fn_c_try_link "$LINENO"; then : 17719 gcc_cv_math_func_atan2f=yes 17720else 17721 gcc_cv_math_func_atan2f=no 17722fi 17723rm -f core conftest.err conftest.$ac_objext \ 17724 conftest$ac_exeext conftest.$ac_ext 17725fi 17726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2f" >&5 17727$as_echo "$gcc_cv_math_func_atan2f" >&6; } 17728 if test $gcc_cv_math_func_atan2f = yes; then 17729 17730cat >>confdefs.h <<_ACEOF 17731#define HAVE_ATAN2F 1 17732_ACEOF 17733 17734 fi 17735 17736 17737 17738 17739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2" >&5 17740$as_echo_n "checking for atan2... " >&6; } 17741if ${gcc_cv_math_func_atan2+:} false; then : 17742 $as_echo_n "(cached) " >&6 17743else 17744 if test x$gcc_no_link = xyes; then 17745 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 17746fi 17747cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17748/* end confdefs.h. */ 17749 17750#ifdef HAVE_COMPLEX_H 17751#include <complex.h> 17752#endif 17753#ifdef HAVE_MATH_H 17754#include <math.h> 17755#endif 17756 17757int (*ptr)() = (int (*)())atan2; 17758 17759int 17760main () 17761{ 17762 return 0; 17763} 17764 17765_ACEOF 17766if ac_fn_c_try_link "$LINENO"; then : 17767 gcc_cv_math_func_atan2=yes 17768else 17769 gcc_cv_math_func_atan2=no 17770fi 17771rm -f core conftest.err conftest.$ac_objext \ 17772 conftest$ac_exeext conftest.$ac_ext 17773fi 17774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2" >&5 17775$as_echo "$gcc_cv_math_func_atan2" >&6; } 17776 if test $gcc_cv_math_func_atan2 = yes; then 17777 17778cat >>confdefs.h <<_ACEOF 17779#define HAVE_ATAN2 1 17780_ACEOF 17781 17782 fi 17783 17784 17785 17786 17787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l" >&5 17788$as_echo_n "checking for atan2l... " >&6; } 17789if ${gcc_cv_math_func_atan2l+:} false; then : 17790 $as_echo_n "(cached) " >&6 17791else 17792 if test x$gcc_no_link = xyes; then 17793 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 17794fi 17795cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17796/* end confdefs.h. */ 17797 17798#ifdef HAVE_COMPLEX_H 17799#include <complex.h> 17800#endif 17801#ifdef HAVE_MATH_H 17802#include <math.h> 17803#endif 17804 17805int (*ptr)() = (int (*)())atan2l; 17806 17807int 17808main () 17809{ 17810 return 0; 17811} 17812 17813_ACEOF 17814if ac_fn_c_try_link "$LINENO"; then : 17815 gcc_cv_math_func_atan2l=yes 17816else 17817 gcc_cv_math_func_atan2l=no 17818fi 17819rm -f core conftest.err conftest.$ac_objext \ 17820 conftest$ac_exeext conftest.$ac_ext 17821fi 17822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2l" >&5 17823$as_echo "$gcc_cv_math_func_atan2l" >&6; } 17824 if test $gcc_cv_math_func_atan2l = yes; then 17825 17826cat >>confdefs.h <<_ACEOF 17827#define HAVE_ATAN2L 1 17828_ACEOF 17829 17830 fi 17831 17832 17833 17834 17835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanf" >&5 17836$as_echo_n "checking for atanf... " >&6; } 17837if ${gcc_cv_math_func_atanf+:} false; then : 17838 $as_echo_n "(cached) " >&6 17839else 17840 if test x$gcc_no_link = xyes; then 17841 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 17842fi 17843cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17844/* end confdefs.h. */ 17845 17846#ifdef HAVE_COMPLEX_H 17847#include <complex.h> 17848#endif 17849#ifdef HAVE_MATH_H 17850#include <math.h> 17851#endif 17852 17853int (*ptr)() = (int (*)())atanf; 17854 17855int 17856main () 17857{ 17858 return 0; 17859} 17860 17861_ACEOF 17862if ac_fn_c_try_link "$LINENO"; then : 17863 gcc_cv_math_func_atanf=yes 17864else 17865 gcc_cv_math_func_atanf=no 17866fi 17867rm -f core conftest.err conftest.$ac_objext \ 17868 conftest$ac_exeext conftest.$ac_ext 17869fi 17870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanf" >&5 17871$as_echo "$gcc_cv_math_func_atanf" >&6; } 17872 if test $gcc_cv_math_func_atanf = yes; then 17873 17874cat >>confdefs.h <<_ACEOF 17875#define HAVE_ATANF 1 17876_ACEOF 17877 17878 fi 17879 17880 17881 17882 17883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan" >&5 17884$as_echo_n "checking for atan... " >&6; } 17885if ${gcc_cv_math_func_atan+:} false; then : 17886 $as_echo_n "(cached) " >&6 17887else 17888 if test x$gcc_no_link = xyes; then 17889 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 17890fi 17891cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17892/* end confdefs.h. */ 17893 17894#ifdef HAVE_COMPLEX_H 17895#include <complex.h> 17896#endif 17897#ifdef HAVE_MATH_H 17898#include <math.h> 17899#endif 17900 17901int (*ptr)() = (int (*)())atan; 17902 17903int 17904main () 17905{ 17906 return 0; 17907} 17908 17909_ACEOF 17910if ac_fn_c_try_link "$LINENO"; then : 17911 gcc_cv_math_func_atan=yes 17912else 17913 gcc_cv_math_func_atan=no 17914fi 17915rm -f core conftest.err conftest.$ac_objext \ 17916 conftest$ac_exeext conftest.$ac_ext 17917fi 17918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan" >&5 17919$as_echo "$gcc_cv_math_func_atan" >&6; } 17920 if test $gcc_cv_math_func_atan = yes; then 17921 17922cat >>confdefs.h <<_ACEOF 17923#define HAVE_ATAN 1 17924_ACEOF 17925 17926 fi 17927 17928 17929 17930 17931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanl" >&5 17932$as_echo_n "checking for atanl... " >&6; } 17933if ${gcc_cv_math_func_atanl+:} false; then : 17934 $as_echo_n "(cached) " >&6 17935else 17936 if test x$gcc_no_link = xyes; then 17937 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 17938fi 17939cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17940/* end confdefs.h. */ 17941 17942#ifdef HAVE_COMPLEX_H 17943#include <complex.h> 17944#endif 17945#ifdef HAVE_MATH_H 17946#include <math.h> 17947#endif 17948 17949int (*ptr)() = (int (*)())atanl; 17950 17951int 17952main () 17953{ 17954 return 0; 17955} 17956 17957_ACEOF 17958if ac_fn_c_try_link "$LINENO"; then : 17959 gcc_cv_math_func_atanl=yes 17960else 17961 gcc_cv_math_func_atanl=no 17962fi 17963rm -f core conftest.err conftest.$ac_objext \ 17964 conftest$ac_exeext conftest.$ac_ext 17965fi 17966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanl" >&5 17967$as_echo "$gcc_cv_math_func_atanl" >&6; } 17968 if test $gcc_cv_math_func_atanl = yes; then 17969 17970cat >>confdefs.h <<_ACEOF 17971#define HAVE_ATANL 1 17972_ACEOF 17973 17974 fi 17975 17976 17977 17978 17979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhf" >&5 17980$as_echo_n "checking for atanhf... " >&6; } 17981if ${gcc_cv_math_func_atanhf+:} false; then : 17982 $as_echo_n "(cached) " >&6 17983else 17984 if test x$gcc_no_link = xyes; then 17985 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 17986fi 17987cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17988/* end confdefs.h. */ 17989 17990#ifdef HAVE_COMPLEX_H 17991#include <complex.h> 17992#endif 17993#ifdef HAVE_MATH_H 17994#include <math.h> 17995#endif 17996 17997int (*ptr)() = (int (*)())atanhf; 17998 17999int 18000main () 18001{ 18002 return 0; 18003} 18004 18005_ACEOF 18006if ac_fn_c_try_link "$LINENO"; then : 18007 gcc_cv_math_func_atanhf=yes 18008else 18009 gcc_cv_math_func_atanhf=no 18010fi 18011rm -f core conftest.err conftest.$ac_objext \ 18012 conftest$ac_exeext conftest.$ac_ext 18013fi 18014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhf" >&5 18015$as_echo "$gcc_cv_math_func_atanhf" >&6; } 18016 if test $gcc_cv_math_func_atanhf = yes; then 18017 18018cat >>confdefs.h <<_ACEOF 18019#define HAVE_ATANHF 1 18020_ACEOF 18021 18022 fi 18023 18024 18025 18026 18027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanh" >&5 18028$as_echo_n "checking for atanh... " >&6; } 18029if ${gcc_cv_math_func_atanh+:} false; then : 18030 $as_echo_n "(cached) " >&6 18031else 18032 if test x$gcc_no_link = xyes; then 18033 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 18034fi 18035cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18036/* end confdefs.h. */ 18037 18038#ifdef HAVE_COMPLEX_H 18039#include <complex.h> 18040#endif 18041#ifdef HAVE_MATH_H 18042#include <math.h> 18043#endif 18044 18045int (*ptr)() = (int (*)())atanh; 18046 18047int 18048main () 18049{ 18050 return 0; 18051} 18052 18053_ACEOF 18054if ac_fn_c_try_link "$LINENO"; then : 18055 gcc_cv_math_func_atanh=yes 18056else 18057 gcc_cv_math_func_atanh=no 18058fi 18059rm -f core conftest.err conftest.$ac_objext \ 18060 conftest$ac_exeext conftest.$ac_ext 18061fi 18062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanh" >&5 18063$as_echo "$gcc_cv_math_func_atanh" >&6; } 18064 if test $gcc_cv_math_func_atanh = yes; then 18065 18066cat >>confdefs.h <<_ACEOF 18067#define HAVE_ATANH 1 18068_ACEOF 18069 18070 fi 18071 18072 18073 18074 18075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhl" >&5 18076$as_echo_n "checking for atanhl... " >&6; } 18077if ${gcc_cv_math_func_atanhl+:} false; then : 18078 $as_echo_n "(cached) " >&6 18079else 18080 if test x$gcc_no_link = xyes; then 18081 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 18082fi 18083cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18084/* end confdefs.h. */ 18085 18086#ifdef HAVE_COMPLEX_H 18087#include <complex.h> 18088#endif 18089#ifdef HAVE_MATH_H 18090#include <math.h> 18091#endif 18092 18093int (*ptr)() = (int (*)())atanhl; 18094 18095int 18096main () 18097{ 18098 return 0; 18099} 18100 18101_ACEOF 18102if ac_fn_c_try_link "$LINENO"; then : 18103 gcc_cv_math_func_atanhl=yes 18104else 18105 gcc_cv_math_func_atanhl=no 18106fi 18107rm -f core conftest.err conftest.$ac_objext \ 18108 conftest$ac_exeext conftest.$ac_ext 18109fi 18110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhl" >&5 18111$as_echo "$gcc_cv_math_func_atanhl" >&6; } 18112 if test $gcc_cv_math_func_atanhl = yes; then 18113 18114cat >>confdefs.h <<_ACEOF 18115#define HAVE_ATANHL 1 18116_ACEOF 18117 18118 fi 18119 18120 18121 18122 18123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargf" >&5 18124$as_echo_n "checking for cargf... " >&6; } 18125if ${gcc_cv_math_func_cargf+:} false; then : 18126 $as_echo_n "(cached) " >&6 18127else 18128 if test x$gcc_no_link = xyes; then 18129 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 18130fi 18131cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18132/* end confdefs.h. */ 18133 18134#ifdef HAVE_COMPLEX_H 18135#include <complex.h> 18136#endif 18137#ifdef HAVE_MATH_H 18138#include <math.h> 18139#endif 18140 18141int (*ptr)() = (int (*)())cargf; 18142 18143int 18144main () 18145{ 18146 return 0; 18147} 18148 18149_ACEOF 18150if ac_fn_c_try_link "$LINENO"; then : 18151 gcc_cv_math_func_cargf=yes 18152else 18153 gcc_cv_math_func_cargf=no 18154fi 18155rm -f core conftest.err conftest.$ac_objext \ 18156 conftest$ac_exeext conftest.$ac_ext 18157fi 18158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargf" >&5 18159$as_echo "$gcc_cv_math_func_cargf" >&6; } 18160 if test $gcc_cv_math_func_cargf = yes; then 18161 18162cat >>confdefs.h <<_ACEOF 18163#define HAVE_CARGF 1 18164_ACEOF 18165 18166 fi 18167 18168 18169 18170 18171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for carg" >&5 18172$as_echo_n "checking for carg... " >&6; } 18173if ${gcc_cv_math_func_carg+:} false; then : 18174 $as_echo_n "(cached) " >&6 18175else 18176 if test x$gcc_no_link = xyes; then 18177 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 18178fi 18179cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18180/* end confdefs.h. */ 18181 18182#ifdef HAVE_COMPLEX_H 18183#include <complex.h> 18184#endif 18185#ifdef HAVE_MATH_H 18186#include <math.h> 18187#endif 18188 18189int (*ptr)() = (int (*)())carg; 18190 18191int 18192main () 18193{ 18194 return 0; 18195} 18196 18197_ACEOF 18198if ac_fn_c_try_link "$LINENO"; then : 18199 gcc_cv_math_func_carg=yes 18200else 18201 gcc_cv_math_func_carg=no 18202fi 18203rm -f core conftest.err conftest.$ac_objext \ 18204 conftest$ac_exeext conftest.$ac_ext 18205fi 18206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_carg" >&5 18207$as_echo "$gcc_cv_math_func_carg" >&6; } 18208 if test $gcc_cv_math_func_carg = yes; then 18209 18210cat >>confdefs.h <<_ACEOF 18211#define HAVE_CARG 1 18212_ACEOF 18213 18214 fi 18215 18216 18217 18218 18219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargl" >&5 18220$as_echo_n "checking for cargl... " >&6; } 18221if ${gcc_cv_math_func_cargl+:} false; then : 18222 $as_echo_n "(cached) " >&6 18223else 18224 if test x$gcc_no_link = xyes; then 18225 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 18226fi 18227cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18228/* end confdefs.h. */ 18229 18230#ifdef HAVE_COMPLEX_H 18231#include <complex.h> 18232#endif 18233#ifdef HAVE_MATH_H 18234#include <math.h> 18235#endif 18236 18237int (*ptr)() = (int (*)())cargl; 18238 18239int 18240main () 18241{ 18242 return 0; 18243} 18244 18245_ACEOF 18246if ac_fn_c_try_link "$LINENO"; then : 18247 gcc_cv_math_func_cargl=yes 18248else 18249 gcc_cv_math_func_cargl=no 18250fi 18251rm -f core conftest.err conftest.$ac_objext \ 18252 conftest$ac_exeext conftest.$ac_ext 18253fi 18254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargl" >&5 18255$as_echo "$gcc_cv_math_func_cargl" >&6; } 18256 if test $gcc_cv_math_func_cargl = yes; then 18257 18258cat >>confdefs.h <<_ACEOF 18259#define HAVE_CARGL 1 18260_ACEOF 18261 18262 fi 18263 18264 18265 18266 18267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceilf" >&5 18268$as_echo_n "checking for ceilf... " >&6; } 18269if ${gcc_cv_math_func_ceilf+:} false; then : 18270 $as_echo_n "(cached) " >&6 18271else 18272 if test x$gcc_no_link = xyes; then 18273 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 18274fi 18275cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18276/* end confdefs.h. */ 18277 18278#ifdef HAVE_COMPLEX_H 18279#include <complex.h> 18280#endif 18281#ifdef HAVE_MATH_H 18282#include <math.h> 18283#endif 18284 18285int (*ptr)() = (int (*)())ceilf; 18286 18287int 18288main () 18289{ 18290 return 0; 18291} 18292 18293_ACEOF 18294if ac_fn_c_try_link "$LINENO"; then : 18295 gcc_cv_math_func_ceilf=yes 18296else 18297 gcc_cv_math_func_ceilf=no 18298fi 18299rm -f core conftest.err conftest.$ac_objext \ 18300 conftest$ac_exeext conftest.$ac_ext 18301fi 18302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceilf" >&5 18303$as_echo "$gcc_cv_math_func_ceilf" >&6; } 18304 if test $gcc_cv_math_func_ceilf = yes; then 18305 18306cat >>confdefs.h <<_ACEOF 18307#define HAVE_CEILF 1 18308_ACEOF 18309 18310 fi 18311 18312 18313 18314 18315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil" >&5 18316$as_echo_n "checking for ceil... " >&6; } 18317if ${gcc_cv_math_func_ceil+:} false; then : 18318 $as_echo_n "(cached) " >&6 18319else 18320 if test x$gcc_no_link = xyes; then 18321 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 18322fi 18323cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18324/* end confdefs.h. */ 18325 18326#ifdef HAVE_COMPLEX_H 18327#include <complex.h> 18328#endif 18329#ifdef HAVE_MATH_H 18330#include <math.h> 18331#endif 18332 18333int (*ptr)() = (int (*)())ceil; 18334 18335int 18336main () 18337{ 18338 return 0; 18339} 18340 18341_ACEOF 18342if ac_fn_c_try_link "$LINENO"; then : 18343 gcc_cv_math_func_ceil=yes 18344else 18345 gcc_cv_math_func_ceil=no 18346fi 18347rm -f core conftest.err conftest.$ac_objext \ 18348 conftest$ac_exeext conftest.$ac_ext 18349fi 18350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceil" >&5 18351$as_echo "$gcc_cv_math_func_ceil" >&6; } 18352 if test $gcc_cv_math_func_ceil = yes; then 18353 18354cat >>confdefs.h <<_ACEOF 18355#define HAVE_CEIL 1 18356_ACEOF 18357 18358 fi 18359 18360 18361 18362 18363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceill" >&5 18364$as_echo_n "checking for ceill... " >&6; } 18365if ${gcc_cv_math_func_ceill+:} false; then : 18366 $as_echo_n "(cached) " >&6 18367else 18368 if test x$gcc_no_link = xyes; then 18369 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 18370fi 18371cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18372/* end confdefs.h. */ 18373 18374#ifdef HAVE_COMPLEX_H 18375#include <complex.h> 18376#endif 18377#ifdef HAVE_MATH_H 18378#include <math.h> 18379#endif 18380 18381int (*ptr)() = (int (*)())ceill; 18382 18383int 18384main () 18385{ 18386 return 0; 18387} 18388 18389_ACEOF 18390if ac_fn_c_try_link "$LINENO"; then : 18391 gcc_cv_math_func_ceill=yes 18392else 18393 gcc_cv_math_func_ceill=no 18394fi 18395rm -f core conftest.err conftest.$ac_objext \ 18396 conftest$ac_exeext conftest.$ac_ext 18397fi 18398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceill" >&5 18399$as_echo "$gcc_cv_math_func_ceill" >&6; } 18400 if test $gcc_cv_math_func_ceill = yes; then 18401 18402cat >>confdefs.h <<_ACEOF 18403#define HAVE_CEILL 1 18404_ACEOF 18405 18406 fi 18407 18408 18409 18410 18411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignf" >&5 18412$as_echo_n "checking for copysignf... " >&6; } 18413if ${gcc_cv_math_func_copysignf+:} false; then : 18414 $as_echo_n "(cached) " >&6 18415else 18416 if test x$gcc_no_link = xyes; then 18417 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 18418fi 18419cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18420/* end confdefs.h. */ 18421 18422#ifdef HAVE_COMPLEX_H 18423#include <complex.h> 18424#endif 18425#ifdef HAVE_MATH_H 18426#include <math.h> 18427#endif 18428 18429int (*ptr)() = (int (*)())copysignf; 18430 18431int 18432main () 18433{ 18434 return 0; 18435} 18436 18437_ACEOF 18438if ac_fn_c_try_link "$LINENO"; then : 18439 gcc_cv_math_func_copysignf=yes 18440else 18441 gcc_cv_math_func_copysignf=no 18442fi 18443rm -f core conftest.err conftest.$ac_objext \ 18444 conftest$ac_exeext conftest.$ac_ext 18445fi 18446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignf" >&5 18447$as_echo "$gcc_cv_math_func_copysignf" >&6; } 18448 if test $gcc_cv_math_func_copysignf = yes; then 18449 18450cat >>confdefs.h <<_ACEOF 18451#define HAVE_COPYSIGNF 1 18452_ACEOF 18453 18454 fi 18455 18456 18457 18458 18459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysign" >&5 18460$as_echo_n "checking for copysign... " >&6; } 18461if ${gcc_cv_math_func_copysign+:} false; then : 18462 $as_echo_n "(cached) " >&6 18463else 18464 if test x$gcc_no_link = xyes; then 18465 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 18466fi 18467cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18468/* end confdefs.h. */ 18469 18470#ifdef HAVE_COMPLEX_H 18471#include <complex.h> 18472#endif 18473#ifdef HAVE_MATH_H 18474#include <math.h> 18475#endif 18476 18477int (*ptr)() = (int (*)())copysign; 18478 18479int 18480main () 18481{ 18482 return 0; 18483} 18484 18485_ACEOF 18486if ac_fn_c_try_link "$LINENO"; then : 18487 gcc_cv_math_func_copysign=yes 18488else 18489 gcc_cv_math_func_copysign=no 18490fi 18491rm -f core conftest.err conftest.$ac_objext \ 18492 conftest$ac_exeext conftest.$ac_ext 18493fi 18494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysign" >&5 18495$as_echo "$gcc_cv_math_func_copysign" >&6; } 18496 if test $gcc_cv_math_func_copysign = yes; then 18497 18498cat >>confdefs.h <<_ACEOF 18499#define HAVE_COPYSIGN 1 18500_ACEOF 18501 18502 fi 18503 18504 18505 18506 18507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignl" >&5 18508$as_echo_n "checking for copysignl... " >&6; } 18509if ${gcc_cv_math_func_copysignl+:} false; then : 18510 $as_echo_n "(cached) " >&6 18511else 18512 if test x$gcc_no_link = xyes; then 18513 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 18514fi 18515cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18516/* end confdefs.h. */ 18517 18518#ifdef HAVE_COMPLEX_H 18519#include <complex.h> 18520#endif 18521#ifdef HAVE_MATH_H 18522#include <math.h> 18523#endif 18524 18525int (*ptr)() = (int (*)())copysignl; 18526 18527int 18528main () 18529{ 18530 return 0; 18531} 18532 18533_ACEOF 18534if ac_fn_c_try_link "$LINENO"; then : 18535 gcc_cv_math_func_copysignl=yes 18536else 18537 gcc_cv_math_func_copysignl=no 18538fi 18539rm -f core conftest.err conftest.$ac_objext \ 18540 conftest$ac_exeext conftest.$ac_ext 18541fi 18542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignl" >&5 18543$as_echo "$gcc_cv_math_func_copysignl" >&6; } 18544 if test $gcc_cv_math_func_copysignl = yes; then 18545 18546cat >>confdefs.h <<_ACEOF 18547#define HAVE_COPYSIGNL 1 18548_ACEOF 18549 18550 fi 18551 18552 18553 18554 18555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosf" >&5 18556$as_echo_n "checking for cosf... " >&6; } 18557if ${gcc_cv_math_func_cosf+:} false; then : 18558 $as_echo_n "(cached) " >&6 18559else 18560 if test x$gcc_no_link = xyes; then 18561 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 18562fi 18563cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18564/* end confdefs.h. */ 18565 18566#ifdef HAVE_COMPLEX_H 18567#include <complex.h> 18568#endif 18569#ifdef HAVE_MATH_H 18570#include <math.h> 18571#endif 18572 18573int (*ptr)() = (int (*)())cosf; 18574 18575int 18576main () 18577{ 18578 return 0; 18579} 18580 18581_ACEOF 18582if ac_fn_c_try_link "$LINENO"; then : 18583 gcc_cv_math_func_cosf=yes 18584else 18585 gcc_cv_math_func_cosf=no 18586fi 18587rm -f core conftest.err conftest.$ac_objext \ 18588 conftest$ac_exeext conftest.$ac_ext 18589fi 18590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosf" >&5 18591$as_echo "$gcc_cv_math_func_cosf" >&6; } 18592 if test $gcc_cv_math_func_cosf = yes; then 18593 18594cat >>confdefs.h <<_ACEOF 18595#define HAVE_COSF 1 18596_ACEOF 18597 18598 fi 18599 18600 18601 18602 18603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos" >&5 18604$as_echo_n "checking for cos... " >&6; } 18605if ${gcc_cv_math_func_cos+:} false; then : 18606 $as_echo_n "(cached) " >&6 18607else 18608 if test x$gcc_no_link = xyes; then 18609 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 18610fi 18611cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18612/* end confdefs.h. */ 18613 18614#ifdef HAVE_COMPLEX_H 18615#include <complex.h> 18616#endif 18617#ifdef HAVE_MATH_H 18618#include <math.h> 18619#endif 18620 18621int (*ptr)() = (int (*)())cos; 18622 18623int 18624main () 18625{ 18626 return 0; 18627} 18628 18629_ACEOF 18630if ac_fn_c_try_link "$LINENO"; then : 18631 gcc_cv_math_func_cos=yes 18632else 18633 gcc_cv_math_func_cos=no 18634fi 18635rm -f core conftest.err conftest.$ac_objext \ 18636 conftest$ac_exeext conftest.$ac_ext 18637fi 18638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cos" >&5 18639$as_echo "$gcc_cv_math_func_cos" >&6; } 18640 if test $gcc_cv_math_func_cos = yes; then 18641 18642cat >>confdefs.h <<_ACEOF 18643#define HAVE_COS 1 18644_ACEOF 18645 18646 fi 18647 18648 18649 18650 18651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosl" >&5 18652$as_echo_n "checking for cosl... " >&6; } 18653if ${gcc_cv_math_func_cosl+:} false; then : 18654 $as_echo_n "(cached) " >&6 18655else 18656 if test x$gcc_no_link = xyes; then 18657 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 18658fi 18659cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18660/* end confdefs.h. */ 18661 18662#ifdef HAVE_COMPLEX_H 18663#include <complex.h> 18664#endif 18665#ifdef HAVE_MATH_H 18666#include <math.h> 18667#endif 18668 18669int (*ptr)() = (int (*)())cosl; 18670 18671int 18672main () 18673{ 18674 return 0; 18675} 18676 18677_ACEOF 18678if ac_fn_c_try_link "$LINENO"; then : 18679 gcc_cv_math_func_cosl=yes 18680else 18681 gcc_cv_math_func_cosl=no 18682fi 18683rm -f core conftest.err conftest.$ac_objext \ 18684 conftest$ac_exeext conftest.$ac_ext 18685fi 18686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosl" >&5 18687$as_echo "$gcc_cv_math_func_cosl" >&6; } 18688 if test $gcc_cv_math_func_cosl = yes; then 18689 18690cat >>confdefs.h <<_ACEOF 18691#define HAVE_COSL 1 18692_ACEOF 18693 18694 fi 18695 18696 18697 18698 18699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosf" >&5 18700$as_echo_n "checking for ccosf... " >&6; } 18701if ${gcc_cv_math_func_ccosf+:} false; then : 18702 $as_echo_n "(cached) " >&6 18703else 18704 if test x$gcc_no_link = xyes; then 18705 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 18706fi 18707cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18708/* end confdefs.h. */ 18709 18710#ifdef HAVE_COMPLEX_H 18711#include <complex.h> 18712#endif 18713#ifdef HAVE_MATH_H 18714#include <math.h> 18715#endif 18716 18717int (*ptr)() = (int (*)())ccosf; 18718 18719int 18720main () 18721{ 18722 return 0; 18723} 18724 18725_ACEOF 18726if ac_fn_c_try_link "$LINENO"; then : 18727 gcc_cv_math_func_ccosf=yes 18728else 18729 gcc_cv_math_func_ccosf=no 18730fi 18731rm -f core conftest.err conftest.$ac_objext \ 18732 conftest$ac_exeext conftest.$ac_ext 18733fi 18734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosf" >&5 18735$as_echo "$gcc_cv_math_func_ccosf" >&6; } 18736 if test $gcc_cv_math_func_ccosf = yes; then 18737 18738cat >>confdefs.h <<_ACEOF 18739#define HAVE_CCOSF 1 18740_ACEOF 18741 18742 fi 18743 18744 18745 18746 18747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccos" >&5 18748$as_echo_n "checking for ccos... " >&6; } 18749if ${gcc_cv_math_func_ccos+:} false; then : 18750 $as_echo_n "(cached) " >&6 18751else 18752 if test x$gcc_no_link = xyes; then 18753 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 18754fi 18755cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18756/* end confdefs.h. */ 18757 18758#ifdef HAVE_COMPLEX_H 18759#include <complex.h> 18760#endif 18761#ifdef HAVE_MATH_H 18762#include <math.h> 18763#endif 18764 18765int (*ptr)() = (int (*)())ccos; 18766 18767int 18768main () 18769{ 18770 return 0; 18771} 18772 18773_ACEOF 18774if ac_fn_c_try_link "$LINENO"; then : 18775 gcc_cv_math_func_ccos=yes 18776else 18777 gcc_cv_math_func_ccos=no 18778fi 18779rm -f core conftest.err conftest.$ac_objext \ 18780 conftest$ac_exeext conftest.$ac_ext 18781fi 18782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccos" >&5 18783$as_echo "$gcc_cv_math_func_ccos" >&6; } 18784 if test $gcc_cv_math_func_ccos = yes; then 18785 18786cat >>confdefs.h <<_ACEOF 18787#define HAVE_CCOS 1 18788_ACEOF 18789 18790 fi 18791 18792 18793 18794 18795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosl" >&5 18796$as_echo_n "checking for ccosl... " >&6; } 18797if ${gcc_cv_math_func_ccosl+:} false; then : 18798 $as_echo_n "(cached) " >&6 18799else 18800 if test x$gcc_no_link = xyes; then 18801 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 18802fi 18803cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18804/* end confdefs.h. */ 18805 18806#ifdef HAVE_COMPLEX_H 18807#include <complex.h> 18808#endif 18809#ifdef HAVE_MATH_H 18810#include <math.h> 18811#endif 18812 18813int (*ptr)() = (int (*)())ccosl; 18814 18815int 18816main () 18817{ 18818 return 0; 18819} 18820 18821_ACEOF 18822if ac_fn_c_try_link "$LINENO"; then : 18823 gcc_cv_math_func_ccosl=yes 18824else 18825 gcc_cv_math_func_ccosl=no 18826fi 18827rm -f core conftest.err conftest.$ac_objext \ 18828 conftest$ac_exeext conftest.$ac_ext 18829fi 18830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosl" >&5 18831$as_echo "$gcc_cv_math_func_ccosl" >&6; } 18832 if test $gcc_cv_math_func_ccosl = yes; then 18833 18834cat >>confdefs.h <<_ACEOF 18835#define HAVE_CCOSL 1 18836_ACEOF 18837 18838 fi 18839 18840 18841 18842 18843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshf" >&5 18844$as_echo_n "checking for coshf... " >&6; } 18845if ${gcc_cv_math_func_coshf+:} false; then : 18846 $as_echo_n "(cached) " >&6 18847else 18848 if test x$gcc_no_link = xyes; then 18849 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 18850fi 18851cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18852/* end confdefs.h. */ 18853 18854#ifdef HAVE_COMPLEX_H 18855#include <complex.h> 18856#endif 18857#ifdef HAVE_MATH_H 18858#include <math.h> 18859#endif 18860 18861int (*ptr)() = (int (*)())coshf; 18862 18863int 18864main () 18865{ 18866 return 0; 18867} 18868 18869_ACEOF 18870if ac_fn_c_try_link "$LINENO"; then : 18871 gcc_cv_math_func_coshf=yes 18872else 18873 gcc_cv_math_func_coshf=no 18874fi 18875rm -f core conftest.err conftest.$ac_objext \ 18876 conftest$ac_exeext conftest.$ac_ext 18877fi 18878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshf" >&5 18879$as_echo "$gcc_cv_math_func_coshf" >&6; } 18880 if test $gcc_cv_math_func_coshf = yes; then 18881 18882cat >>confdefs.h <<_ACEOF 18883#define HAVE_COSHF 1 18884_ACEOF 18885 18886 fi 18887 18888 18889 18890 18891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosh" >&5 18892$as_echo_n "checking for cosh... " >&6; } 18893if ${gcc_cv_math_func_cosh+:} false; then : 18894 $as_echo_n "(cached) " >&6 18895else 18896 if test x$gcc_no_link = xyes; then 18897 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 18898fi 18899cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18900/* end confdefs.h. */ 18901 18902#ifdef HAVE_COMPLEX_H 18903#include <complex.h> 18904#endif 18905#ifdef HAVE_MATH_H 18906#include <math.h> 18907#endif 18908 18909int (*ptr)() = (int (*)())cosh; 18910 18911int 18912main () 18913{ 18914 return 0; 18915} 18916 18917_ACEOF 18918if ac_fn_c_try_link "$LINENO"; then : 18919 gcc_cv_math_func_cosh=yes 18920else 18921 gcc_cv_math_func_cosh=no 18922fi 18923rm -f core conftest.err conftest.$ac_objext \ 18924 conftest$ac_exeext conftest.$ac_ext 18925fi 18926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosh" >&5 18927$as_echo "$gcc_cv_math_func_cosh" >&6; } 18928 if test $gcc_cv_math_func_cosh = yes; then 18929 18930cat >>confdefs.h <<_ACEOF 18931#define HAVE_COSH 1 18932_ACEOF 18933 18934 fi 18935 18936 18937 18938 18939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshl" >&5 18940$as_echo_n "checking for coshl... " >&6; } 18941if ${gcc_cv_math_func_coshl+:} false; then : 18942 $as_echo_n "(cached) " >&6 18943else 18944 if test x$gcc_no_link = xyes; then 18945 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 18946fi 18947cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18948/* end confdefs.h. */ 18949 18950#ifdef HAVE_COMPLEX_H 18951#include <complex.h> 18952#endif 18953#ifdef HAVE_MATH_H 18954#include <math.h> 18955#endif 18956 18957int (*ptr)() = (int (*)())coshl; 18958 18959int 18960main () 18961{ 18962 return 0; 18963} 18964 18965_ACEOF 18966if ac_fn_c_try_link "$LINENO"; then : 18967 gcc_cv_math_func_coshl=yes 18968else 18969 gcc_cv_math_func_coshl=no 18970fi 18971rm -f core conftest.err conftest.$ac_objext \ 18972 conftest$ac_exeext conftest.$ac_ext 18973fi 18974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshl" >&5 18975$as_echo "$gcc_cv_math_func_coshl" >&6; } 18976 if test $gcc_cv_math_func_coshl = yes; then 18977 18978cat >>confdefs.h <<_ACEOF 18979#define HAVE_COSHL 1 18980_ACEOF 18981 18982 fi 18983 18984 18985 18986 18987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshf" >&5 18988$as_echo_n "checking for ccoshf... " >&6; } 18989if ${gcc_cv_math_func_ccoshf+:} false; then : 18990 $as_echo_n "(cached) " >&6 18991else 18992 if test x$gcc_no_link = xyes; then 18993 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 18994fi 18995cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18996/* end confdefs.h. */ 18997 18998#ifdef HAVE_COMPLEX_H 18999#include <complex.h> 19000#endif 19001#ifdef HAVE_MATH_H 19002#include <math.h> 19003#endif 19004 19005int (*ptr)() = (int (*)())ccoshf; 19006 19007int 19008main () 19009{ 19010 return 0; 19011} 19012 19013_ACEOF 19014if ac_fn_c_try_link "$LINENO"; then : 19015 gcc_cv_math_func_ccoshf=yes 19016else 19017 gcc_cv_math_func_ccoshf=no 19018fi 19019rm -f core conftest.err conftest.$ac_objext \ 19020 conftest$ac_exeext conftest.$ac_ext 19021fi 19022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshf" >&5 19023$as_echo "$gcc_cv_math_func_ccoshf" >&6; } 19024 if test $gcc_cv_math_func_ccoshf = yes; then 19025 19026cat >>confdefs.h <<_ACEOF 19027#define HAVE_CCOSHF 1 19028_ACEOF 19029 19030 fi 19031 19032 19033 19034 19035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosh" >&5 19036$as_echo_n "checking for ccosh... " >&6; } 19037if ${gcc_cv_math_func_ccosh+:} false; then : 19038 $as_echo_n "(cached) " >&6 19039else 19040 if test x$gcc_no_link = xyes; then 19041 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 19042fi 19043cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19044/* end confdefs.h. */ 19045 19046#ifdef HAVE_COMPLEX_H 19047#include <complex.h> 19048#endif 19049#ifdef HAVE_MATH_H 19050#include <math.h> 19051#endif 19052 19053int (*ptr)() = (int (*)())ccosh; 19054 19055int 19056main () 19057{ 19058 return 0; 19059} 19060 19061_ACEOF 19062if ac_fn_c_try_link "$LINENO"; then : 19063 gcc_cv_math_func_ccosh=yes 19064else 19065 gcc_cv_math_func_ccosh=no 19066fi 19067rm -f core conftest.err conftest.$ac_objext \ 19068 conftest$ac_exeext conftest.$ac_ext 19069fi 19070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosh" >&5 19071$as_echo "$gcc_cv_math_func_ccosh" >&6; } 19072 if test $gcc_cv_math_func_ccosh = yes; then 19073 19074cat >>confdefs.h <<_ACEOF 19075#define HAVE_CCOSH 1 19076_ACEOF 19077 19078 fi 19079 19080 19081 19082 19083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshl" >&5 19084$as_echo_n "checking for ccoshl... " >&6; } 19085if ${gcc_cv_math_func_ccoshl+:} false; then : 19086 $as_echo_n "(cached) " >&6 19087else 19088 if test x$gcc_no_link = xyes; then 19089 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 19090fi 19091cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19092/* end confdefs.h. */ 19093 19094#ifdef HAVE_COMPLEX_H 19095#include <complex.h> 19096#endif 19097#ifdef HAVE_MATH_H 19098#include <math.h> 19099#endif 19100 19101int (*ptr)() = (int (*)())ccoshl; 19102 19103int 19104main () 19105{ 19106 return 0; 19107} 19108 19109_ACEOF 19110if ac_fn_c_try_link "$LINENO"; then : 19111 gcc_cv_math_func_ccoshl=yes 19112else 19113 gcc_cv_math_func_ccoshl=no 19114fi 19115rm -f core conftest.err conftest.$ac_objext \ 19116 conftest$ac_exeext conftest.$ac_ext 19117fi 19118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshl" >&5 19119$as_echo "$gcc_cv_math_func_ccoshl" >&6; } 19120 if test $gcc_cv_math_func_ccoshl = yes; then 19121 19122cat >>confdefs.h <<_ACEOF 19123#define HAVE_CCOSHL 1 19124_ACEOF 19125 19126 fi 19127 19128 19129 19130 19131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf" >&5 19132$as_echo_n "checking for expf... " >&6; } 19133if ${gcc_cv_math_func_expf+:} false; then : 19134 $as_echo_n "(cached) " >&6 19135else 19136 if test x$gcc_no_link = xyes; then 19137 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 19138fi 19139cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19140/* end confdefs.h. */ 19141 19142#ifdef HAVE_COMPLEX_H 19143#include <complex.h> 19144#endif 19145#ifdef HAVE_MATH_H 19146#include <math.h> 19147#endif 19148 19149int (*ptr)() = (int (*)())expf; 19150 19151int 19152main () 19153{ 19154 return 0; 19155} 19156 19157_ACEOF 19158if ac_fn_c_try_link "$LINENO"; then : 19159 gcc_cv_math_func_expf=yes 19160else 19161 gcc_cv_math_func_expf=no 19162fi 19163rm -f core conftest.err conftest.$ac_objext \ 19164 conftest$ac_exeext conftest.$ac_ext 19165fi 19166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expf" >&5 19167$as_echo "$gcc_cv_math_func_expf" >&6; } 19168 if test $gcc_cv_math_func_expf = yes; then 19169 19170cat >>confdefs.h <<_ACEOF 19171#define HAVE_EXPF 1 19172_ACEOF 19173 19174 fi 19175 19176 19177 19178 19179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp" >&5 19180$as_echo_n "checking for exp... " >&6; } 19181if ${gcc_cv_math_func_exp+:} false; then : 19182 $as_echo_n "(cached) " >&6 19183else 19184 if test x$gcc_no_link = xyes; then 19185 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 19186fi 19187cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19188/* end confdefs.h. */ 19189 19190#ifdef HAVE_COMPLEX_H 19191#include <complex.h> 19192#endif 19193#ifdef HAVE_MATH_H 19194#include <math.h> 19195#endif 19196 19197int (*ptr)() = (int (*)())exp; 19198 19199int 19200main () 19201{ 19202 return 0; 19203} 19204 19205_ACEOF 19206if ac_fn_c_try_link "$LINENO"; then : 19207 gcc_cv_math_func_exp=yes 19208else 19209 gcc_cv_math_func_exp=no 19210fi 19211rm -f core conftest.err conftest.$ac_objext \ 19212 conftest$ac_exeext conftest.$ac_ext 19213fi 19214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_exp" >&5 19215$as_echo "$gcc_cv_math_func_exp" >&6; } 19216 if test $gcc_cv_math_func_exp = yes; then 19217 19218cat >>confdefs.h <<_ACEOF 19219#define HAVE_EXP 1 19220_ACEOF 19221 19222 fi 19223 19224 19225 19226 19227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl" >&5 19228$as_echo_n "checking for expl... " >&6; } 19229if ${gcc_cv_math_func_expl+:} false; then : 19230 $as_echo_n "(cached) " >&6 19231else 19232 if test x$gcc_no_link = xyes; then 19233 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 19234fi 19235cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19236/* end confdefs.h. */ 19237 19238#ifdef HAVE_COMPLEX_H 19239#include <complex.h> 19240#endif 19241#ifdef HAVE_MATH_H 19242#include <math.h> 19243#endif 19244 19245int (*ptr)() = (int (*)())expl; 19246 19247int 19248main () 19249{ 19250 return 0; 19251} 19252 19253_ACEOF 19254if ac_fn_c_try_link "$LINENO"; then : 19255 gcc_cv_math_func_expl=yes 19256else 19257 gcc_cv_math_func_expl=no 19258fi 19259rm -f core conftest.err conftest.$ac_objext \ 19260 conftest$ac_exeext conftest.$ac_ext 19261fi 19262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expl" >&5 19263$as_echo "$gcc_cv_math_func_expl" >&6; } 19264 if test $gcc_cv_math_func_expl = yes; then 19265 19266cat >>confdefs.h <<_ACEOF 19267#define HAVE_EXPL 1 19268_ACEOF 19269 19270 fi 19271 19272 19273 19274 19275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpf" >&5 19276$as_echo_n "checking for cexpf... " >&6; } 19277if ${gcc_cv_math_func_cexpf+:} false; then : 19278 $as_echo_n "(cached) " >&6 19279else 19280 if test x$gcc_no_link = xyes; then 19281 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 19282fi 19283cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19284/* end confdefs.h. */ 19285 19286#ifdef HAVE_COMPLEX_H 19287#include <complex.h> 19288#endif 19289#ifdef HAVE_MATH_H 19290#include <math.h> 19291#endif 19292 19293int (*ptr)() = (int (*)())cexpf; 19294 19295int 19296main () 19297{ 19298 return 0; 19299} 19300 19301_ACEOF 19302if ac_fn_c_try_link "$LINENO"; then : 19303 gcc_cv_math_func_cexpf=yes 19304else 19305 gcc_cv_math_func_cexpf=no 19306fi 19307rm -f core conftest.err conftest.$ac_objext \ 19308 conftest$ac_exeext conftest.$ac_ext 19309fi 19310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpf" >&5 19311$as_echo "$gcc_cv_math_func_cexpf" >&6; } 19312 if test $gcc_cv_math_func_cexpf = yes; then 19313 19314cat >>confdefs.h <<_ACEOF 19315#define HAVE_CEXPF 1 19316_ACEOF 19317 19318 fi 19319 19320 19321 19322 19323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexp" >&5 19324$as_echo_n "checking for cexp... " >&6; } 19325if ${gcc_cv_math_func_cexp+:} false; then : 19326 $as_echo_n "(cached) " >&6 19327else 19328 if test x$gcc_no_link = xyes; then 19329 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 19330fi 19331cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19332/* end confdefs.h. */ 19333 19334#ifdef HAVE_COMPLEX_H 19335#include <complex.h> 19336#endif 19337#ifdef HAVE_MATH_H 19338#include <math.h> 19339#endif 19340 19341int (*ptr)() = (int (*)())cexp; 19342 19343int 19344main () 19345{ 19346 return 0; 19347} 19348 19349_ACEOF 19350if ac_fn_c_try_link "$LINENO"; then : 19351 gcc_cv_math_func_cexp=yes 19352else 19353 gcc_cv_math_func_cexp=no 19354fi 19355rm -f core conftest.err conftest.$ac_objext \ 19356 conftest$ac_exeext conftest.$ac_ext 19357fi 19358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexp" >&5 19359$as_echo "$gcc_cv_math_func_cexp" >&6; } 19360 if test $gcc_cv_math_func_cexp = yes; then 19361 19362cat >>confdefs.h <<_ACEOF 19363#define HAVE_CEXP 1 19364_ACEOF 19365 19366 fi 19367 19368 19369 19370 19371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpl" >&5 19372$as_echo_n "checking for cexpl... " >&6; } 19373if ${gcc_cv_math_func_cexpl+:} false; then : 19374 $as_echo_n "(cached) " >&6 19375else 19376 if test x$gcc_no_link = xyes; then 19377 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 19378fi 19379cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19380/* end confdefs.h. */ 19381 19382#ifdef HAVE_COMPLEX_H 19383#include <complex.h> 19384#endif 19385#ifdef HAVE_MATH_H 19386#include <math.h> 19387#endif 19388 19389int (*ptr)() = (int (*)())cexpl; 19390 19391int 19392main () 19393{ 19394 return 0; 19395} 19396 19397_ACEOF 19398if ac_fn_c_try_link "$LINENO"; then : 19399 gcc_cv_math_func_cexpl=yes 19400else 19401 gcc_cv_math_func_cexpl=no 19402fi 19403rm -f core conftest.err conftest.$ac_objext \ 19404 conftest$ac_exeext conftest.$ac_ext 19405fi 19406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpl" >&5 19407$as_echo "$gcc_cv_math_func_cexpl" >&6; } 19408 if test $gcc_cv_math_func_cexpl = yes; then 19409 19410cat >>confdefs.h <<_ACEOF 19411#define HAVE_CEXPL 1 19412_ACEOF 19413 19414 fi 19415 19416 19417 19418 19419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf" >&5 19420$as_echo_n "checking for fabsf... " >&6; } 19421if ${gcc_cv_math_func_fabsf+:} false; then : 19422 $as_echo_n "(cached) " >&6 19423else 19424 if test x$gcc_no_link = xyes; then 19425 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 19426fi 19427cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19428/* end confdefs.h. */ 19429 19430#ifdef HAVE_COMPLEX_H 19431#include <complex.h> 19432#endif 19433#ifdef HAVE_MATH_H 19434#include <math.h> 19435#endif 19436 19437int (*ptr)() = (int (*)())fabsf; 19438 19439int 19440main () 19441{ 19442 return 0; 19443} 19444 19445_ACEOF 19446if ac_fn_c_try_link "$LINENO"; then : 19447 gcc_cv_math_func_fabsf=yes 19448else 19449 gcc_cv_math_func_fabsf=no 19450fi 19451rm -f core conftest.err conftest.$ac_objext \ 19452 conftest$ac_exeext conftest.$ac_ext 19453fi 19454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsf" >&5 19455$as_echo "$gcc_cv_math_func_fabsf" >&6; } 19456 if test $gcc_cv_math_func_fabsf = yes; then 19457 19458cat >>confdefs.h <<_ACEOF 19459#define HAVE_FABSF 1 19460_ACEOF 19461 19462 fi 19463 19464 19465 19466 19467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs" >&5 19468$as_echo_n "checking for fabs... " >&6; } 19469if ${gcc_cv_math_func_fabs+:} false; then : 19470 $as_echo_n "(cached) " >&6 19471else 19472 if test x$gcc_no_link = xyes; then 19473 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 19474fi 19475cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19476/* end confdefs.h. */ 19477 19478#ifdef HAVE_COMPLEX_H 19479#include <complex.h> 19480#endif 19481#ifdef HAVE_MATH_H 19482#include <math.h> 19483#endif 19484 19485int (*ptr)() = (int (*)())fabs; 19486 19487int 19488main () 19489{ 19490 return 0; 19491} 19492 19493_ACEOF 19494if ac_fn_c_try_link "$LINENO"; then : 19495 gcc_cv_math_func_fabs=yes 19496else 19497 gcc_cv_math_func_fabs=no 19498fi 19499rm -f core conftest.err conftest.$ac_objext \ 19500 conftest$ac_exeext conftest.$ac_ext 19501fi 19502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabs" >&5 19503$as_echo "$gcc_cv_math_func_fabs" >&6; } 19504 if test $gcc_cv_math_func_fabs = yes; then 19505 19506cat >>confdefs.h <<_ACEOF 19507#define HAVE_FABS 1 19508_ACEOF 19509 19510 fi 19511 19512 19513 19514 19515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl" >&5 19516$as_echo_n "checking for fabsl... " >&6; } 19517if ${gcc_cv_math_func_fabsl+:} false; then : 19518 $as_echo_n "(cached) " >&6 19519else 19520 if test x$gcc_no_link = xyes; then 19521 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 19522fi 19523cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19524/* end confdefs.h. */ 19525 19526#ifdef HAVE_COMPLEX_H 19527#include <complex.h> 19528#endif 19529#ifdef HAVE_MATH_H 19530#include <math.h> 19531#endif 19532 19533int (*ptr)() = (int (*)())fabsl; 19534 19535int 19536main () 19537{ 19538 return 0; 19539} 19540 19541_ACEOF 19542if ac_fn_c_try_link "$LINENO"; then : 19543 gcc_cv_math_func_fabsl=yes 19544else 19545 gcc_cv_math_func_fabsl=no 19546fi 19547rm -f core conftest.err conftest.$ac_objext \ 19548 conftest$ac_exeext conftest.$ac_ext 19549fi 19550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsl" >&5 19551$as_echo "$gcc_cv_math_func_fabsl" >&6; } 19552 if test $gcc_cv_math_func_fabsl = yes; then 19553 19554cat >>confdefs.h <<_ACEOF 19555#define HAVE_FABSL 1 19556_ACEOF 19557 19558 fi 19559 19560 19561 19562 19563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsf" >&5 19564$as_echo_n "checking for cabsf... " >&6; } 19565if ${gcc_cv_math_func_cabsf+:} false; then : 19566 $as_echo_n "(cached) " >&6 19567else 19568 if test x$gcc_no_link = xyes; then 19569 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 19570fi 19571cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19572/* end confdefs.h. */ 19573 19574#ifdef HAVE_COMPLEX_H 19575#include <complex.h> 19576#endif 19577#ifdef HAVE_MATH_H 19578#include <math.h> 19579#endif 19580 19581int (*ptr)() = (int (*)())cabsf; 19582 19583int 19584main () 19585{ 19586 return 0; 19587} 19588 19589_ACEOF 19590if ac_fn_c_try_link "$LINENO"; then : 19591 gcc_cv_math_func_cabsf=yes 19592else 19593 gcc_cv_math_func_cabsf=no 19594fi 19595rm -f core conftest.err conftest.$ac_objext \ 19596 conftest$ac_exeext conftest.$ac_ext 19597fi 19598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsf" >&5 19599$as_echo "$gcc_cv_math_func_cabsf" >&6; } 19600 if test $gcc_cv_math_func_cabsf = yes; then 19601 19602cat >>confdefs.h <<_ACEOF 19603#define HAVE_CABSF 1 19604_ACEOF 19605 19606 fi 19607 19608 19609 19610 19611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabs" >&5 19612$as_echo_n "checking for cabs... " >&6; } 19613if ${gcc_cv_math_func_cabs+:} false; then : 19614 $as_echo_n "(cached) " >&6 19615else 19616 if test x$gcc_no_link = xyes; then 19617 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 19618fi 19619cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19620/* end confdefs.h. */ 19621 19622#ifdef HAVE_COMPLEX_H 19623#include <complex.h> 19624#endif 19625#ifdef HAVE_MATH_H 19626#include <math.h> 19627#endif 19628 19629int (*ptr)() = (int (*)())cabs; 19630 19631int 19632main () 19633{ 19634 return 0; 19635} 19636 19637_ACEOF 19638if ac_fn_c_try_link "$LINENO"; then : 19639 gcc_cv_math_func_cabs=yes 19640else 19641 gcc_cv_math_func_cabs=no 19642fi 19643rm -f core conftest.err conftest.$ac_objext \ 19644 conftest$ac_exeext conftest.$ac_ext 19645fi 19646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabs" >&5 19647$as_echo "$gcc_cv_math_func_cabs" >&6; } 19648 if test $gcc_cv_math_func_cabs = yes; then 19649 19650cat >>confdefs.h <<_ACEOF 19651#define HAVE_CABS 1 19652_ACEOF 19653 19654 fi 19655 19656 19657 19658 19659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsl" >&5 19660$as_echo_n "checking for cabsl... " >&6; } 19661if ${gcc_cv_math_func_cabsl+:} false; then : 19662 $as_echo_n "(cached) " >&6 19663else 19664 if test x$gcc_no_link = xyes; then 19665 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 19666fi 19667cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19668/* end confdefs.h. */ 19669 19670#ifdef HAVE_COMPLEX_H 19671#include <complex.h> 19672#endif 19673#ifdef HAVE_MATH_H 19674#include <math.h> 19675#endif 19676 19677int (*ptr)() = (int (*)())cabsl; 19678 19679int 19680main () 19681{ 19682 return 0; 19683} 19684 19685_ACEOF 19686if ac_fn_c_try_link "$LINENO"; then : 19687 gcc_cv_math_func_cabsl=yes 19688else 19689 gcc_cv_math_func_cabsl=no 19690fi 19691rm -f core conftest.err conftest.$ac_objext \ 19692 conftest$ac_exeext conftest.$ac_ext 19693fi 19694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsl" >&5 19695$as_echo "$gcc_cv_math_func_cabsl" >&6; } 19696 if test $gcc_cv_math_func_cabsl = yes; then 19697 19698cat >>confdefs.h <<_ACEOF 19699#define HAVE_CABSL 1 19700_ACEOF 19701 19702 fi 19703 19704 19705 19706 19707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorf" >&5 19708$as_echo_n "checking for floorf... " >&6; } 19709if ${gcc_cv_math_func_floorf+:} false; then : 19710 $as_echo_n "(cached) " >&6 19711else 19712 if test x$gcc_no_link = xyes; then 19713 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 19714fi 19715cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19716/* end confdefs.h. */ 19717 19718#ifdef HAVE_COMPLEX_H 19719#include <complex.h> 19720#endif 19721#ifdef HAVE_MATH_H 19722#include <math.h> 19723#endif 19724 19725int (*ptr)() = (int (*)())floorf; 19726 19727int 19728main () 19729{ 19730 return 0; 19731} 19732 19733_ACEOF 19734if ac_fn_c_try_link "$LINENO"; then : 19735 gcc_cv_math_func_floorf=yes 19736else 19737 gcc_cv_math_func_floorf=no 19738fi 19739rm -f core conftest.err conftest.$ac_objext \ 19740 conftest$ac_exeext conftest.$ac_ext 19741fi 19742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorf" >&5 19743$as_echo "$gcc_cv_math_func_floorf" >&6; } 19744 if test $gcc_cv_math_func_floorf = yes; then 19745 19746cat >>confdefs.h <<_ACEOF 19747#define HAVE_FLOORF 1 19748_ACEOF 19749 19750 fi 19751 19752 19753 19754 19755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor" >&5 19756$as_echo_n "checking for floor... " >&6; } 19757if ${gcc_cv_math_func_floor+:} false; then : 19758 $as_echo_n "(cached) " >&6 19759else 19760 if test x$gcc_no_link = xyes; then 19761 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 19762fi 19763cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19764/* end confdefs.h. */ 19765 19766#ifdef HAVE_COMPLEX_H 19767#include <complex.h> 19768#endif 19769#ifdef HAVE_MATH_H 19770#include <math.h> 19771#endif 19772 19773int (*ptr)() = (int (*)())floor; 19774 19775int 19776main () 19777{ 19778 return 0; 19779} 19780 19781_ACEOF 19782if ac_fn_c_try_link "$LINENO"; then : 19783 gcc_cv_math_func_floor=yes 19784else 19785 gcc_cv_math_func_floor=no 19786fi 19787rm -f core conftest.err conftest.$ac_objext \ 19788 conftest$ac_exeext conftest.$ac_ext 19789fi 19790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floor" >&5 19791$as_echo "$gcc_cv_math_func_floor" >&6; } 19792 if test $gcc_cv_math_func_floor = yes; then 19793 19794cat >>confdefs.h <<_ACEOF 19795#define HAVE_FLOOR 1 19796_ACEOF 19797 19798 fi 19799 19800 19801 19802 19803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorl" >&5 19804$as_echo_n "checking for floorl... " >&6; } 19805if ${gcc_cv_math_func_floorl+:} false; then : 19806 $as_echo_n "(cached) " >&6 19807else 19808 if test x$gcc_no_link = xyes; then 19809 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 19810fi 19811cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19812/* end confdefs.h. */ 19813 19814#ifdef HAVE_COMPLEX_H 19815#include <complex.h> 19816#endif 19817#ifdef HAVE_MATH_H 19818#include <math.h> 19819#endif 19820 19821int (*ptr)() = (int (*)())floorl; 19822 19823int 19824main () 19825{ 19826 return 0; 19827} 19828 19829_ACEOF 19830if ac_fn_c_try_link "$LINENO"; then : 19831 gcc_cv_math_func_floorl=yes 19832else 19833 gcc_cv_math_func_floorl=no 19834fi 19835rm -f core conftest.err conftest.$ac_objext \ 19836 conftest$ac_exeext conftest.$ac_ext 19837fi 19838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorl" >&5 19839$as_echo "$gcc_cv_math_func_floorl" >&6; } 19840 if test $gcc_cv_math_func_floorl = yes; then 19841 19842cat >>confdefs.h <<_ACEOF 19843#define HAVE_FLOORL 1 19844_ACEOF 19845 19846 fi 19847 19848 19849 19850 19851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmaf" >&5 19852$as_echo_n "checking for fmaf... " >&6; } 19853if ${gcc_cv_math_func_fmaf+:} false; then : 19854 $as_echo_n "(cached) " >&6 19855else 19856 if test x$gcc_no_link = xyes; then 19857 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 19858fi 19859cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19860/* end confdefs.h. */ 19861 19862#ifdef HAVE_COMPLEX_H 19863#include <complex.h> 19864#endif 19865#ifdef HAVE_MATH_H 19866#include <math.h> 19867#endif 19868 19869int (*ptr)() = (int (*)())fmaf; 19870 19871int 19872main () 19873{ 19874 return 0; 19875} 19876 19877_ACEOF 19878if ac_fn_c_try_link "$LINENO"; then : 19879 gcc_cv_math_func_fmaf=yes 19880else 19881 gcc_cv_math_func_fmaf=no 19882fi 19883rm -f core conftest.err conftest.$ac_objext \ 19884 conftest$ac_exeext conftest.$ac_ext 19885fi 19886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmaf" >&5 19887$as_echo "$gcc_cv_math_func_fmaf" >&6; } 19888 if test $gcc_cv_math_func_fmaf = yes; then 19889 19890cat >>confdefs.h <<_ACEOF 19891#define HAVE_FMAF 1 19892_ACEOF 19893 19894 fi 19895 19896 19897 19898 19899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fma" >&5 19900$as_echo_n "checking for fma... " >&6; } 19901if ${gcc_cv_math_func_fma+:} false; then : 19902 $as_echo_n "(cached) " >&6 19903else 19904 if test x$gcc_no_link = xyes; then 19905 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 19906fi 19907cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19908/* end confdefs.h. */ 19909 19910#ifdef HAVE_COMPLEX_H 19911#include <complex.h> 19912#endif 19913#ifdef HAVE_MATH_H 19914#include <math.h> 19915#endif 19916 19917int (*ptr)() = (int (*)())fma; 19918 19919int 19920main () 19921{ 19922 return 0; 19923} 19924 19925_ACEOF 19926if ac_fn_c_try_link "$LINENO"; then : 19927 gcc_cv_math_func_fma=yes 19928else 19929 gcc_cv_math_func_fma=no 19930fi 19931rm -f core conftest.err conftest.$ac_objext \ 19932 conftest$ac_exeext conftest.$ac_ext 19933fi 19934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fma" >&5 19935$as_echo "$gcc_cv_math_func_fma" >&6; } 19936 if test $gcc_cv_math_func_fma = yes; then 19937 19938cat >>confdefs.h <<_ACEOF 19939#define HAVE_FMA 1 19940_ACEOF 19941 19942 fi 19943 19944 19945 19946 19947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmal" >&5 19948$as_echo_n "checking for fmal... " >&6; } 19949if ${gcc_cv_math_func_fmal+:} false; then : 19950 $as_echo_n "(cached) " >&6 19951else 19952 if test x$gcc_no_link = xyes; then 19953 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 19954fi 19955cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19956/* end confdefs.h. */ 19957 19958#ifdef HAVE_COMPLEX_H 19959#include <complex.h> 19960#endif 19961#ifdef HAVE_MATH_H 19962#include <math.h> 19963#endif 19964 19965int (*ptr)() = (int (*)())fmal; 19966 19967int 19968main () 19969{ 19970 return 0; 19971} 19972 19973_ACEOF 19974if ac_fn_c_try_link "$LINENO"; then : 19975 gcc_cv_math_func_fmal=yes 19976else 19977 gcc_cv_math_func_fmal=no 19978fi 19979rm -f core conftest.err conftest.$ac_objext \ 19980 conftest$ac_exeext conftest.$ac_ext 19981fi 19982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmal" >&5 19983$as_echo "$gcc_cv_math_func_fmal" >&6; } 19984 if test $gcc_cv_math_func_fmal = yes; then 19985 19986cat >>confdefs.h <<_ACEOF 19987#define HAVE_FMAL 1 19988_ACEOF 19989 19990 fi 19991 19992 19993 19994 19995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf" >&5 19996$as_echo_n "checking for fmodf... " >&6; } 19997if ${gcc_cv_math_func_fmodf+:} false; then : 19998 $as_echo_n "(cached) " >&6 19999else 20000 if test x$gcc_no_link = xyes; then 20001 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 20002fi 20003cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20004/* end confdefs.h. */ 20005 20006#ifdef HAVE_COMPLEX_H 20007#include <complex.h> 20008#endif 20009#ifdef HAVE_MATH_H 20010#include <math.h> 20011#endif 20012 20013int (*ptr)() = (int (*)())fmodf; 20014 20015int 20016main () 20017{ 20018 return 0; 20019} 20020 20021_ACEOF 20022if ac_fn_c_try_link "$LINENO"; then : 20023 gcc_cv_math_func_fmodf=yes 20024else 20025 gcc_cv_math_func_fmodf=no 20026fi 20027rm -f core conftest.err conftest.$ac_objext \ 20028 conftest$ac_exeext conftest.$ac_ext 20029fi 20030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodf" >&5 20031$as_echo "$gcc_cv_math_func_fmodf" >&6; } 20032 if test $gcc_cv_math_func_fmodf = yes; then 20033 20034cat >>confdefs.h <<_ACEOF 20035#define HAVE_FMODF 1 20036_ACEOF 20037 20038 fi 20039 20040 20041 20042 20043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod" >&5 20044$as_echo_n "checking for fmod... " >&6; } 20045if ${gcc_cv_math_func_fmod+:} false; then : 20046 $as_echo_n "(cached) " >&6 20047else 20048 if test x$gcc_no_link = xyes; then 20049 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 20050fi 20051cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20052/* end confdefs.h. */ 20053 20054#ifdef HAVE_COMPLEX_H 20055#include <complex.h> 20056#endif 20057#ifdef HAVE_MATH_H 20058#include <math.h> 20059#endif 20060 20061int (*ptr)() = (int (*)())fmod; 20062 20063int 20064main () 20065{ 20066 return 0; 20067} 20068 20069_ACEOF 20070if ac_fn_c_try_link "$LINENO"; then : 20071 gcc_cv_math_func_fmod=yes 20072else 20073 gcc_cv_math_func_fmod=no 20074fi 20075rm -f core conftest.err conftest.$ac_objext \ 20076 conftest$ac_exeext conftest.$ac_ext 20077fi 20078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmod" >&5 20079$as_echo "$gcc_cv_math_func_fmod" >&6; } 20080 if test $gcc_cv_math_func_fmod = yes; then 20081 20082cat >>confdefs.h <<_ACEOF 20083#define HAVE_FMOD 1 20084_ACEOF 20085 20086 fi 20087 20088 20089 20090 20091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl" >&5 20092$as_echo_n "checking for fmodl... " >&6; } 20093if ${gcc_cv_math_func_fmodl+:} false; then : 20094 $as_echo_n "(cached) " >&6 20095else 20096 if test x$gcc_no_link = xyes; then 20097 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 20098fi 20099cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20100/* end confdefs.h. */ 20101 20102#ifdef HAVE_COMPLEX_H 20103#include <complex.h> 20104#endif 20105#ifdef HAVE_MATH_H 20106#include <math.h> 20107#endif 20108 20109int (*ptr)() = (int (*)())fmodl; 20110 20111int 20112main () 20113{ 20114 return 0; 20115} 20116 20117_ACEOF 20118if ac_fn_c_try_link "$LINENO"; then : 20119 gcc_cv_math_func_fmodl=yes 20120else 20121 gcc_cv_math_func_fmodl=no 20122fi 20123rm -f core conftest.err conftest.$ac_objext \ 20124 conftest$ac_exeext conftest.$ac_ext 20125fi 20126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodl" >&5 20127$as_echo "$gcc_cv_math_func_fmodl" >&6; } 20128 if test $gcc_cv_math_func_fmodl = yes; then 20129 20130cat >>confdefs.h <<_ACEOF 20131#define HAVE_FMODL 1 20132_ACEOF 20133 20134 fi 20135 20136 20137 20138 20139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf" >&5 20140$as_echo_n "checking for frexpf... " >&6; } 20141if ${gcc_cv_math_func_frexpf+:} false; then : 20142 $as_echo_n "(cached) " >&6 20143else 20144 if test x$gcc_no_link = xyes; then 20145 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 20146fi 20147cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20148/* end confdefs.h. */ 20149 20150#ifdef HAVE_COMPLEX_H 20151#include <complex.h> 20152#endif 20153#ifdef HAVE_MATH_H 20154#include <math.h> 20155#endif 20156 20157int (*ptr)() = (int (*)())frexpf; 20158 20159int 20160main () 20161{ 20162 return 0; 20163} 20164 20165_ACEOF 20166if ac_fn_c_try_link "$LINENO"; then : 20167 gcc_cv_math_func_frexpf=yes 20168else 20169 gcc_cv_math_func_frexpf=no 20170fi 20171rm -f core conftest.err conftest.$ac_objext \ 20172 conftest$ac_exeext conftest.$ac_ext 20173fi 20174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpf" >&5 20175$as_echo "$gcc_cv_math_func_frexpf" >&6; } 20176 if test $gcc_cv_math_func_frexpf = yes; then 20177 20178cat >>confdefs.h <<_ACEOF 20179#define HAVE_FREXPF 1 20180_ACEOF 20181 20182 fi 20183 20184 20185 20186 20187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexp" >&5 20188$as_echo_n "checking for frexp... " >&6; } 20189if ${gcc_cv_math_func_frexp+:} false; then : 20190 $as_echo_n "(cached) " >&6 20191else 20192 if test x$gcc_no_link = xyes; then 20193 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 20194fi 20195cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20196/* end confdefs.h. */ 20197 20198#ifdef HAVE_COMPLEX_H 20199#include <complex.h> 20200#endif 20201#ifdef HAVE_MATH_H 20202#include <math.h> 20203#endif 20204 20205int (*ptr)() = (int (*)())frexp; 20206 20207int 20208main () 20209{ 20210 return 0; 20211} 20212 20213_ACEOF 20214if ac_fn_c_try_link "$LINENO"; then : 20215 gcc_cv_math_func_frexp=yes 20216else 20217 gcc_cv_math_func_frexp=no 20218fi 20219rm -f core conftest.err conftest.$ac_objext \ 20220 conftest$ac_exeext conftest.$ac_ext 20221fi 20222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexp" >&5 20223$as_echo "$gcc_cv_math_func_frexp" >&6; } 20224 if test $gcc_cv_math_func_frexp = yes; then 20225 20226cat >>confdefs.h <<_ACEOF 20227#define HAVE_FREXP 1 20228_ACEOF 20229 20230 fi 20231 20232 20233 20234 20235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl" >&5 20236$as_echo_n "checking for frexpl... " >&6; } 20237if ${gcc_cv_math_func_frexpl+:} false; then : 20238 $as_echo_n "(cached) " >&6 20239else 20240 if test x$gcc_no_link = xyes; then 20241 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 20242fi 20243cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20244/* end confdefs.h. */ 20245 20246#ifdef HAVE_COMPLEX_H 20247#include <complex.h> 20248#endif 20249#ifdef HAVE_MATH_H 20250#include <math.h> 20251#endif 20252 20253int (*ptr)() = (int (*)())frexpl; 20254 20255int 20256main () 20257{ 20258 return 0; 20259} 20260 20261_ACEOF 20262if ac_fn_c_try_link "$LINENO"; then : 20263 gcc_cv_math_func_frexpl=yes 20264else 20265 gcc_cv_math_func_frexpl=no 20266fi 20267rm -f core conftest.err conftest.$ac_objext \ 20268 conftest$ac_exeext conftest.$ac_ext 20269fi 20270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpl" >&5 20271$as_echo "$gcc_cv_math_func_frexpl" >&6; } 20272 if test $gcc_cv_math_func_frexpl = yes; then 20273 20274cat >>confdefs.h <<_ACEOF 20275#define HAVE_FREXPL 1 20276_ACEOF 20277 20278 fi 20279 20280 20281 20282 20283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf" >&5 20284$as_echo_n "checking for hypotf... " >&6; } 20285if ${gcc_cv_math_func_hypotf+:} false; then : 20286 $as_echo_n "(cached) " >&6 20287else 20288 if test x$gcc_no_link = xyes; then 20289 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 20290fi 20291cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20292/* end confdefs.h. */ 20293 20294#ifdef HAVE_COMPLEX_H 20295#include <complex.h> 20296#endif 20297#ifdef HAVE_MATH_H 20298#include <math.h> 20299#endif 20300 20301int (*ptr)() = (int (*)())hypotf; 20302 20303int 20304main () 20305{ 20306 return 0; 20307} 20308 20309_ACEOF 20310if ac_fn_c_try_link "$LINENO"; then : 20311 gcc_cv_math_func_hypotf=yes 20312else 20313 gcc_cv_math_func_hypotf=no 20314fi 20315rm -f core conftest.err conftest.$ac_objext \ 20316 conftest$ac_exeext conftest.$ac_ext 20317fi 20318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotf" >&5 20319$as_echo "$gcc_cv_math_func_hypotf" >&6; } 20320 if test $gcc_cv_math_func_hypotf = yes; then 20321 20322cat >>confdefs.h <<_ACEOF 20323#define HAVE_HYPOTF 1 20324_ACEOF 20325 20326 fi 20327 20328 20329 20330 20331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot" >&5 20332$as_echo_n "checking for hypot... " >&6; } 20333if ${gcc_cv_math_func_hypot+:} false; then : 20334 $as_echo_n "(cached) " >&6 20335else 20336 if test x$gcc_no_link = xyes; then 20337 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 20338fi 20339cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20340/* end confdefs.h. */ 20341 20342#ifdef HAVE_COMPLEX_H 20343#include <complex.h> 20344#endif 20345#ifdef HAVE_MATH_H 20346#include <math.h> 20347#endif 20348 20349int (*ptr)() = (int (*)())hypot; 20350 20351int 20352main () 20353{ 20354 return 0; 20355} 20356 20357_ACEOF 20358if ac_fn_c_try_link "$LINENO"; then : 20359 gcc_cv_math_func_hypot=yes 20360else 20361 gcc_cv_math_func_hypot=no 20362fi 20363rm -f core conftest.err conftest.$ac_objext \ 20364 conftest$ac_exeext conftest.$ac_ext 20365fi 20366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypot" >&5 20367$as_echo "$gcc_cv_math_func_hypot" >&6; } 20368 if test $gcc_cv_math_func_hypot = yes; then 20369 20370cat >>confdefs.h <<_ACEOF 20371#define HAVE_HYPOT 1 20372_ACEOF 20373 20374 fi 20375 20376 20377 20378 20379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl" >&5 20380$as_echo_n "checking for hypotl... " >&6; } 20381if ${gcc_cv_math_func_hypotl+:} false; then : 20382 $as_echo_n "(cached) " >&6 20383else 20384 if test x$gcc_no_link = xyes; then 20385 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 20386fi 20387cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20388/* end confdefs.h. */ 20389 20390#ifdef HAVE_COMPLEX_H 20391#include <complex.h> 20392#endif 20393#ifdef HAVE_MATH_H 20394#include <math.h> 20395#endif 20396 20397int (*ptr)() = (int (*)())hypotl; 20398 20399int 20400main () 20401{ 20402 return 0; 20403} 20404 20405_ACEOF 20406if ac_fn_c_try_link "$LINENO"; then : 20407 gcc_cv_math_func_hypotl=yes 20408else 20409 gcc_cv_math_func_hypotl=no 20410fi 20411rm -f core conftest.err conftest.$ac_objext \ 20412 conftest$ac_exeext conftest.$ac_ext 20413fi 20414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotl" >&5 20415$as_echo "$gcc_cv_math_func_hypotl" >&6; } 20416 if test $gcc_cv_math_func_hypotl = yes; then 20417 20418cat >>confdefs.h <<_ACEOF 20419#define HAVE_HYPOTL 1 20420_ACEOF 20421 20422 fi 20423 20424 20425 20426 20427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf" >&5 20428$as_echo_n "checking for ldexpf... " >&6; } 20429if ${gcc_cv_math_func_ldexpf+:} false; then : 20430 $as_echo_n "(cached) " >&6 20431else 20432 if test x$gcc_no_link = xyes; then 20433 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 20434fi 20435cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20436/* end confdefs.h. */ 20437 20438#ifdef HAVE_COMPLEX_H 20439#include <complex.h> 20440#endif 20441#ifdef HAVE_MATH_H 20442#include <math.h> 20443#endif 20444 20445int (*ptr)() = (int (*)())ldexpf; 20446 20447int 20448main () 20449{ 20450 return 0; 20451} 20452 20453_ACEOF 20454if ac_fn_c_try_link "$LINENO"; then : 20455 gcc_cv_math_func_ldexpf=yes 20456else 20457 gcc_cv_math_func_ldexpf=no 20458fi 20459rm -f core conftest.err conftest.$ac_objext \ 20460 conftest$ac_exeext conftest.$ac_ext 20461fi 20462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpf" >&5 20463$as_echo "$gcc_cv_math_func_ldexpf" >&6; } 20464 if test $gcc_cv_math_func_ldexpf = yes; then 20465 20466cat >>confdefs.h <<_ACEOF 20467#define HAVE_LDEXPF 1 20468_ACEOF 20469 20470 fi 20471 20472 20473 20474 20475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexp" >&5 20476$as_echo_n "checking for ldexp... " >&6; } 20477if ${gcc_cv_math_func_ldexp+:} false; then : 20478 $as_echo_n "(cached) " >&6 20479else 20480 if test x$gcc_no_link = xyes; then 20481 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 20482fi 20483cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20484/* end confdefs.h. */ 20485 20486#ifdef HAVE_COMPLEX_H 20487#include <complex.h> 20488#endif 20489#ifdef HAVE_MATH_H 20490#include <math.h> 20491#endif 20492 20493int (*ptr)() = (int (*)())ldexp; 20494 20495int 20496main () 20497{ 20498 return 0; 20499} 20500 20501_ACEOF 20502if ac_fn_c_try_link "$LINENO"; then : 20503 gcc_cv_math_func_ldexp=yes 20504else 20505 gcc_cv_math_func_ldexp=no 20506fi 20507rm -f core conftest.err conftest.$ac_objext \ 20508 conftest$ac_exeext conftest.$ac_ext 20509fi 20510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexp" >&5 20511$as_echo "$gcc_cv_math_func_ldexp" >&6; } 20512 if test $gcc_cv_math_func_ldexp = yes; then 20513 20514cat >>confdefs.h <<_ACEOF 20515#define HAVE_LDEXP 1 20516_ACEOF 20517 20518 fi 20519 20520 20521 20522 20523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl" >&5 20524$as_echo_n "checking for ldexpl... " >&6; } 20525if ${gcc_cv_math_func_ldexpl+:} false; then : 20526 $as_echo_n "(cached) " >&6 20527else 20528 if test x$gcc_no_link = xyes; then 20529 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 20530fi 20531cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20532/* end confdefs.h. */ 20533 20534#ifdef HAVE_COMPLEX_H 20535#include <complex.h> 20536#endif 20537#ifdef HAVE_MATH_H 20538#include <math.h> 20539#endif 20540 20541int (*ptr)() = (int (*)())ldexpl; 20542 20543int 20544main () 20545{ 20546 return 0; 20547} 20548 20549_ACEOF 20550if ac_fn_c_try_link "$LINENO"; then : 20551 gcc_cv_math_func_ldexpl=yes 20552else 20553 gcc_cv_math_func_ldexpl=no 20554fi 20555rm -f core conftest.err conftest.$ac_objext \ 20556 conftest$ac_exeext conftest.$ac_ext 20557fi 20558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpl" >&5 20559$as_echo "$gcc_cv_math_func_ldexpl" >&6; } 20560 if test $gcc_cv_math_func_ldexpl = yes; then 20561 20562cat >>confdefs.h <<_ACEOF 20563#define HAVE_LDEXPL 1 20564_ACEOF 20565 20566 fi 20567 20568 20569 20570 20571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf" >&5 20572$as_echo_n "checking for logf... " >&6; } 20573if ${gcc_cv_math_func_logf+:} false; then : 20574 $as_echo_n "(cached) " >&6 20575else 20576 if test x$gcc_no_link = xyes; then 20577 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 20578fi 20579cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20580/* end confdefs.h. */ 20581 20582#ifdef HAVE_COMPLEX_H 20583#include <complex.h> 20584#endif 20585#ifdef HAVE_MATH_H 20586#include <math.h> 20587#endif 20588 20589int (*ptr)() = (int (*)())logf; 20590 20591int 20592main () 20593{ 20594 return 0; 20595} 20596 20597_ACEOF 20598if ac_fn_c_try_link "$LINENO"; then : 20599 gcc_cv_math_func_logf=yes 20600else 20601 gcc_cv_math_func_logf=no 20602fi 20603rm -f core conftest.err conftest.$ac_objext \ 20604 conftest$ac_exeext conftest.$ac_ext 20605fi 20606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logf" >&5 20607$as_echo "$gcc_cv_math_func_logf" >&6; } 20608 if test $gcc_cv_math_func_logf = yes; then 20609 20610cat >>confdefs.h <<_ACEOF 20611#define HAVE_LOGF 1 20612_ACEOF 20613 20614 fi 20615 20616 20617 20618 20619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log" >&5 20620$as_echo_n "checking for log... " >&6; } 20621if ${gcc_cv_math_func_log+:} false; then : 20622 $as_echo_n "(cached) " >&6 20623else 20624 if test x$gcc_no_link = xyes; then 20625 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 20626fi 20627cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20628/* end confdefs.h. */ 20629 20630#ifdef HAVE_COMPLEX_H 20631#include <complex.h> 20632#endif 20633#ifdef HAVE_MATH_H 20634#include <math.h> 20635#endif 20636 20637int (*ptr)() = (int (*)())log; 20638 20639int 20640main () 20641{ 20642 return 0; 20643} 20644 20645_ACEOF 20646if ac_fn_c_try_link "$LINENO"; then : 20647 gcc_cv_math_func_log=yes 20648else 20649 gcc_cv_math_func_log=no 20650fi 20651rm -f core conftest.err conftest.$ac_objext \ 20652 conftest$ac_exeext conftest.$ac_ext 20653fi 20654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log" >&5 20655$as_echo "$gcc_cv_math_func_log" >&6; } 20656 if test $gcc_cv_math_func_log = yes; then 20657 20658cat >>confdefs.h <<_ACEOF 20659#define HAVE_LOG 1 20660_ACEOF 20661 20662 fi 20663 20664 20665 20666 20667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl" >&5 20668$as_echo_n "checking for logl... " >&6; } 20669if ${gcc_cv_math_func_logl+:} false; then : 20670 $as_echo_n "(cached) " >&6 20671else 20672 if test x$gcc_no_link = xyes; then 20673 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 20674fi 20675cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20676/* end confdefs.h. */ 20677 20678#ifdef HAVE_COMPLEX_H 20679#include <complex.h> 20680#endif 20681#ifdef HAVE_MATH_H 20682#include <math.h> 20683#endif 20684 20685int (*ptr)() = (int (*)())logl; 20686 20687int 20688main () 20689{ 20690 return 0; 20691} 20692 20693_ACEOF 20694if ac_fn_c_try_link "$LINENO"; then : 20695 gcc_cv_math_func_logl=yes 20696else 20697 gcc_cv_math_func_logl=no 20698fi 20699rm -f core conftest.err conftest.$ac_objext \ 20700 conftest$ac_exeext conftest.$ac_ext 20701fi 20702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logl" >&5 20703$as_echo "$gcc_cv_math_func_logl" >&6; } 20704 if test $gcc_cv_math_func_logl = yes; then 20705 20706cat >>confdefs.h <<_ACEOF 20707#define HAVE_LOGL 1 20708_ACEOF 20709 20710 fi 20711 20712 20713 20714 20715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogf" >&5 20716$as_echo_n "checking for clogf... " >&6; } 20717if ${gcc_cv_math_func_clogf+:} false; then : 20718 $as_echo_n "(cached) " >&6 20719else 20720 if test x$gcc_no_link = xyes; then 20721 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 20722fi 20723cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20724/* end confdefs.h. */ 20725 20726#ifdef HAVE_COMPLEX_H 20727#include <complex.h> 20728#endif 20729#ifdef HAVE_MATH_H 20730#include <math.h> 20731#endif 20732 20733int (*ptr)() = (int (*)())clogf; 20734 20735int 20736main () 20737{ 20738 return 0; 20739} 20740 20741_ACEOF 20742if ac_fn_c_try_link "$LINENO"; then : 20743 gcc_cv_math_func_clogf=yes 20744else 20745 gcc_cv_math_func_clogf=no 20746fi 20747rm -f core conftest.err conftest.$ac_objext \ 20748 conftest$ac_exeext conftest.$ac_ext 20749fi 20750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogf" >&5 20751$as_echo "$gcc_cv_math_func_clogf" >&6; } 20752 if test $gcc_cv_math_func_clogf = yes; then 20753 20754cat >>confdefs.h <<_ACEOF 20755#define HAVE_CLOGF 1 20756_ACEOF 20757 20758 fi 20759 20760 20761 20762 20763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog" >&5 20764$as_echo_n "checking for clog... " >&6; } 20765if ${gcc_cv_math_func_clog+:} false; then : 20766 $as_echo_n "(cached) " >&6 20767else 20768 if test x$gcc_no_link = xyes; then 20769 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 20770fi 20771cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20772/* end confdefs.h. */ 20773 20774#ifdef HAVE_COMPLEX_H 20775#include <complex.h> 20776#endif 20777#ifdef HAVE_MATH_H 20778#include <math.h> 20779#endif 20780 20781int (*ptr)() = (int (*)())clog; 20782 20783int 20784main () 20785{ 20786 return 0; 20787} 20788 20789_ACEOF 20790if ac_fn_c_try_link "$LINENO"; then : 20791 gcc_cv_math_func_clog=yes 20792else 20793 gcc_cv_math_func_clog=no 20794fi 20795rm -f core conftest.err conftest.$ac_objext \ 20796 conftest$ac_exeext conftest.$ac_ext 20797fi 20798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog" >&5 20799$as_echo "$gcc_cv_math_func_clog" >&6; } 20800 if test $gcc_cv_math_func_clog = yes; then 20801 20802cat >>confdefs.h <<_ACEOF 20803#define HAVE_CLOG 1 20804_ACEOF 20805 20806 fi 20807 20808 20809 20810 20811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogl" >&5 20812$as_echo_n "checking for clogl... " >&6; } 20813if ${gcc_cv_math_func_clogl+:} false; then : 20814 $as_echo_n "(cached) " >&6 20815else 20816 if test x$gcc_no_link = xyes; then 20817 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 20818fi 20819cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20820/* end confdefs.h. */ 20821 20822#ifdef HAVE_COMPLEX_H 20823#include <complex.h> 20824#endif 20825#ifdef HAVE_MATH_H 20826#include <math.h> 20827#endif 20828 20829int (*ptr)() = (int (*)())clogl; 20830 20831int 20832main () 20833{ 20834 return 0; 20835} 20836 20837_ACEOF 20838if ac_fn_c_try_link "$LINENO"; then : 20839 gcc_cv_math_func_clogl=yes 20840else 20841 gcc_cv_math_func_clogl=no 20842fi 20843rm -f core conftest.err conftest.$ac_objext \ 20844 conftest$ac_exeext conftest.$ac_ext 20845fi 20846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogl" >&5 20847$as_echo "$gcc_cv_math_func_clogl" >&6; } 20848 if test $gcc_cv_math_func_clogl = yes; then 20849 20850cat >>confdefs.h <<_ACEOF 20851#define HAVE_CLOGL 1 20852_ACEOF 20853 20854 fi 20855 20856 20857 20858 20859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f" >&5 20860$as_echo_n "checking for log10f... " >&6; } 20861if ${gcc_cv_math_func_log10f+:} false; then : 20862 $as_echo_n "(cached) " >&6 20863else 20864 if test x$gcc_no_link = xyes; then 20865 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 20866fi 20867cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20868/* end confdefs.h. */ 20869 20870#ifdef HAVE_COMPLEX_H 20871#include <complex.h> 20872#endif 20873#ifdef HAVE_MATH_H 20874#include <math.h> 20875#endif 20876 20877int (*ptr)() = (int (*)())log10f; 20878 20879int 20880main () 20881{ 20882 return 0; 20883} 20884 20885_ACEOF 20886if ac_fn_c_try_link "$LINENO"; then : 20887 gcc_cv_math_func_log10f=yes 20888else 20889 gcc_cv_math_func_log10f=no 20890fi 20891rm -f core conftest.err conftest.$ac_objext \ 20892 conftest$ac_exeext conftest.$ac_ext 20893fi 20894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10f" >&5 20895$as_echo "$gcc_cv_math_func_log10f" >&6; } 20896 if test $gcc_cv_math_func_log10f = yes; then 20897 20898cat >>confdefs.h <<_ACEOF 20899#define HAVE_LOG10F 1 20900_ACEOF 20901 20902 fi 20903 20904 20905 20906 20907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10" >&5 20908$as_echo_n "checking for log10... " >&6; } 20909if ${gcc_cv_math_func_log10+:} false; then : 20910 $as_echo_n "(cached) " >&6 20911else 20912 if test x$gcc_no_link = xyes; then 20913 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 20914fi 20915cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20916/* end confdefs.h. */ 20917 20918#ifdef HAVE_COMPLEX_H 20919#include <complex.h> 20920#endif 20921#ifdef HAVE_MATH_H 20922#include <math.h> 20923#endif 20924 20925int (*ptr)() = (int (*)())log10; 20926 20927int 20928main () 20929{ 20930 return 0; 20931} 20932 20933_ACEOF 20934if ac_fn_c_try_link "$LINENO"; then : 20935 gcc_cv_math_func_log10=yes 20936else 20937 gcc_cv_math_func_log10=no 20938fi 20939rm -f core conftest.err conftest.$ac_objext \ 20940 conftest$ac_exeext conftest.$ac_ext 20941fi 20942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10" >&5 20943$as_echo "$gcc_cv_math_func_log10" >&6; } 20944 if test $gcc_cv_math_func_log10 = yes; then 20945 20946cat >>confdefs.h <<_ACEOF 20947#define HAVE_LOG10 1 20948_ACEOF 20949 20950 fi 20951 20952 20953 20954 20955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l" >&5 20956$as_echo_n "checking for log10l... " >&6; } 20957if ${gcc_cv_math_func_log10l+:} false; then : 20958 $as_echo_n "(cached) " >&6 20959else 20960 if test x$gcc_no_link = xyes; then 20961 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 20962fi 20963cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20964/* end confdefs.h. */ 20965 20966#ifdef HAVE_COMPLEX_H 20967#include <complex.h> 20968#endif 20969#ifdef HAVE_MATH_H 20970#include <math.h> 20971#endif 20972 20973int (*ptr)() = (int (*)())log10l; 20974 20975int 20976main () 20977{ 20978 return 0; 20979} 20980 20981_ACEOF 20982if ac_fn_c_try_link "$LINENO"; then : 20983 gcc_cv_math_func_log10l=yes 20984else 20985 gcc_cv_math_func_log10l=no 20986fi 20987rm -f core conftest.err conftest.$ac_objext \ 20988 conftest$ac_exeext conftest.$ac_ext 20989fi 20990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10l" >&5 20991$as_echo "$gcc_cv_math_func_log10l" >&6; } 20992 if test $gcc_cv_math_func_log10l = yes; then 20993 20994cat >>confdefs.h <<_ACEOF 20995#define HAVE_LOG10L 1 20996_ACEOF 20997 20998 fi 20999 21000 21001 21002 21003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10f" >&5 21004$as_echo_n "checking for clog10f... " >&6; } 21005if ${gcc_cv_math_func_clog10f+:} false; then : 21006 $as_echo_n "(cached) " >&6 21007else 21008 if test x$gcc_no_link = xyes; then 21009 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 21010fi 21011cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21012/* end confdefs.h. */ 21013 21014#ifdef HAVE_COMPLEX_H 21015#include <complex.h> 21016#endif 21017#ifdef HAVE_MATH_H 21018#include <math.h> 21019#endif 21020 21021int (*ptr)() = (int (*)())clog10f; 21022 21023int 21024main () 21025{ 21026 return 0; 21027} 21028 21029_ACEOF 21030if ac_fn_c_try_link "$LINENO"; then : 21031 gcc_cv_math_func_clog10f=yes 21032else 21033 gcc_cv_math_func_clog10f=no 21034fi 21035rm -f core conftest.err conftest.$ac_objext \ 21036 conftest$ac_exeext conftest.$ac_ext 21037fi 21038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10f" >&5 21039$as_echo "$gcc_cv_math_func_clog10f" >&6; } 21040 if test $gcc_cv_math_func_clog10f = yes; then 21041 21042cat >>confdefs.h <<_ACEOF 21043#define HAVE_CLOG10F 1 21044_ACEOF 21045 21046 fi 21047 21048 21049 21050 21051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10" >&5 21052$as_echo_n "checking for clog10... " >&6; } 21053if ${gcc_cv_math_func_clog10+:} false; then : 21054 $as_echo_n "(cached) " >&6 21055else 21056 if test x$gcc_no_link = xyes; then 21057 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 21058fi 21059cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21060/* end confdefs.h. */ 21061 21062#ifdef HAVE_COMPLEX_H 21063#include <complex.h> 21064#endif 21065#ifdef HAVE_MATH_H 21066#include <math.h> 21067#endif 21068 21069int (*ptr)() = (int (*)())clog10; 21070 21071int 21072main () 21073{ 21074 return 0; 21075} 21076 21077_ACEOF 21078if ac_fn_c_try_link "$LINENO"; then : 21079 gcc_cv_math_func_clog10=yes 21080else 21081 gcc_cv_math_func_clog10=no 21082fi 21083rm -f core conftest.err conftest.$ac_objext \ 21084 conftest$ac_exeext conftest.$ac_ext 21085fi 21086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10" >&5 21087$as_echo "$gcc_cv_math_func_clog10" >&6; } 21088 if test $gcc_cv_math_func_clog10 = yes; then 21089 21090cat >>confdefs.h <<_ACEOF 21091#define HAVE_CLOG10 1 21092_ACEOF 21093 21094 fi 21095 21096 21097 21098 21099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10l" >&5 21100$as_echo_n "checking for clog10l... " >&6; } 21101if ${gcc_cv_math_func_clog10l+:} false; then : 21102 $as_echo_n "(cached) " >&6 21103else 21104 if test x$gcc_no_link = xyes; then 21105 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 21106fi 21107cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21108/* end confdefs.h. */ 21109 21110#ifdef HAVE_COMPLEX_H 21111#include <complex.h> 21112#endif 21113#ifdef HAVE_MATH_H 21114#include <math.h> 21115#endif 21116 21117int (*ptr)() = (int (*)())clog10l; 21118 21119int 21120main () 21121{ 21122 return 0; 21123} 21124 21125_ACEOF 21126if ac_fn_c_try_link "$LINENO"; then : 21127 gcc_cv_math_func_clog10l=yes 21128else 21129 gcc_cv_math_func_clog10l=no 21130fi 21131rm -f core conftest.err conftest.$ac_objext \ 21132 conftest$ac_exeext conftest.$ac_ext 21133fi 21134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10l" >&5 21135$as_echo "$gcc_cv_math_func_clog10l" >&6; } 21136 if test $gcc_cv_math_func_clog10l = yes; then 21137 21138cat >>confdefs.h <<_ACEOF 21139#define HAVE_CLOG10L 1 21140_ACEOF 21141 21142 fi 21143 21144 21145 21146 21147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterf" >&5 21148$as_echo_n "checking for nextafterf... " >&6; } 21149if ${gcc_cv_math_func_nextafterf+:} false; then : 21150 $as_echo_n "(cached) " >&6 21151else 21152 if test x$gcc_no_link = xyes; then 21153 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 21154fi 21155cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21156/* end confdefs.h. */ 21157 21158#ifdef HAVE_COMPLEX_H 21159#include <complex.h> 21160#endif 21161#ifdef HAVE_MATH_H 21162#include <math.h> 21163#endif 21164 21165int (*ptr)() = (int (*)())nextafterf; 21166 21167int 21168main () 21169{ 21170 return 0; 21171} 21172 21173_ACEOF 21174if ac_fn_c_try_link "$LINENO"; then : 21175 gcc_cv_math_func_nextafterf=yes 21176else 21177 gcc_cv_math_func_nextafterf=no 21178fi 21179rm -f core conftest.err conftest.$ac_objext \ 21180 conftest$ac_exeext conftest.$ac_ext 21181fi 21182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterf" >&5 21183$as_echo "$gcc_cv_math_func_nextafterf" >&6; } 21184 if test $gcc_cv_math_func_nextafterf = yes; then 21185 21186cat >>confdefs.h <<_ACEOF 21187#define HAVE_NEXTAFTERF 1 21188_ACEOF 21189 21190 fi 21191 21192 21193 21194 21195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafter" >&5 21196$as_echo_n "checking for nextafter... " >&6; } 21197if ${gcc_cv_math_func_nextafter+:} false; then : 21198 $as_echo_n "(cached) " >&6 21199else 21200 if test x$gcc_no_link = xyes; then 21201 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 21202fi 21203cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21204/* end confdefs.h. */ 21205 21206#ifdef HAVE_COMPLEX_H 21207#include <complex.h> 21208#endif 21209#ifdef HAVE_MATH_H 21210#include <math.h> 21211#endif 21212 21213int (*ptr)() = (int (*)())nextafter; 21214 21215int 21216main () 21217{ 21218 return 0; 21219} 21220 21221_ACEOF 21222if ac_fn_c_try_link "$LINENO"; then : 21223 gcc_cv_math_func_nextafter=yes 21224else 21225 gcc_cv_math_func_nextafter=no 21226fi 21227rm -f core conftest.err conftest.$ac_objext \ 21228 conftest$ac_exeext conftest.$ac_ext 21229fi 21230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafter" >&5 21231$as_echo "$gcc_cv_math_func_nextafter" >&6; } 21232 if test $gcc_cv_math_func_nextafter = yes; then 21233 21234cat >>confdefs.h <<_ACEOF 21235#define HAVE_NEXTAFTER 1 21236_ACEOF 21237 21238 fi 21239 21240 21241 21242 21243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterl" >&5 21244$as_echo_n "checking for nextafterl... " >&6; } 21245if ${gcc_cv_math_func_nextafterl+:} false; then : 21246 $as_echo_n "(cached) " >&6 21247else 21248 if test x$gcc_no_link = xyes; then 21249 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 21250fi 21251cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21252/* end confdefs.h. */ 21253 21254#ifdef HAVE_COMPLEX_H 21255#include <complex.h> 21256#endif 21257#ifdef HAVE_MATH_H 21258#include <math.h> 21259#endif 21260 21261int (*ptr)() = (int (*)())nextafterl; 21262 21263int 21264main () 21265{ 21266 return 0; 21267} 21268 21269_ACEOF 21270if ac_fn_c_try_link "$LINENO"; then : 21271 gcc_cv_math_func_nextafterl=yes 21272else 21273 gcc_cv_math_func_nextafterl=no 21274fi 21275rm -f core conftest.err conftest.$ac_objext \ 21276 conftest$ac_exeext conftest.$ac_ext 21277fi 21278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterl" >&5 21279$as_echo "$gcc_cv_math_func_nextafterl" >&6; } 21280 if test $gcc_cv_math_func_nextafterl = yes; then 21281 21282cat >>confdefs.h <<_ACEOF 21283#define HAVE_NEXTAFTERL 1 21284_ACEOF 21285 21286 fi 21287 21288 21289 21290 21291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf" >&5 21292$as_echo_n "checking for powf... " >&6; } 21293if ${gcc_cv_math_func_powf+:} false; then : 21294 $as_echo_n "(cached) " >&6 21295else 21296 if test x$gcc_no_link = xyes; then 21297 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 21298fi 21299cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21300/* end confdefs.h. */ 21301 21302#ifdef HAVE_COMPLEX_H 21303#include <complex.h> 21304#endif 21305#ifdef HAVE_MATH_H 21306#include <math.h> 21307#endif 21308 21309int (*ptr)() = (int (*)())powf; 21310 21311int 21312main () 21313{ 21314 return 0; 21315} 21316 21317_ACEOF 21318if ac_fn_c_try_link "$LINENO"; then : 21319 gcc_cv_math_func_powf=yes 21320else 21321 gcc_cv_math_func_powf=no 21322fi 21323rm -f core conftest.err conftest.$ac_objext \ 21324 conftest$ac_exeext conftest.$ac_ext 21325fi 21326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powf" >&5 21327$as_echo "$gcc_cv_math_func_powf" >&6; } 21328 if test $gcc_cv_math_func_powf = yes; then 21329 21330cat >>confdefs.h <<_ACEOF 21331#define HAVE_POWF 1 21332_ACEOF 21333 21334 fi 21335 21336 21337 21338 21339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow" >&5 21340$as_echo_n "checking for pow... " >&6; } 21341if ${gcc_cv_math_func_pow+:} false; then : 21342 $as_echo_n "(cached) " >&6 21343else 21344 if test x$gcc_no_link = xyes; then 21345 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 21346fi 21347cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21348/* end confdefs.h. */ 21349 21350#ifdef HAVE_COMPLEX_H 21351#include <complex.h> 21352#endif 21353#ifdef HAVE_MATH_H 21354#include <math.h> 21355#endif 21356 21357int (*ptr)() = (int (*)())pow; 21358 21359int 21360main () 21361{ 21362 return 0; 21363} 21364 21365_ACEOF 21366if ac_fn_c_try_link "$LINENO"; then : 21367 gcc_cv_math_func_pow=yes 21368else 21369 gcc_cv_math_func_pow=no 21370fi 21371rm -f core conftest.err conftest.$ac_objext \ 21372 conftest$ac_exeext conftest.$ac_ext 21373fi 21374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_pow" >&5 21375$as_echo "$gcc_cv_math_func_pow" >&6; } 21376 if test $gcc_cv_math_func_pow = yes; then 21377 21378cat >>confdefs.h <<_ACEOF 21379#define HAVE_POW 1 21380_ACEOF 21381 21382 fi 21383 21384 21385 21386 21387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowf" >&5 21388$as_echo_n "checking for cpowf... " >&6; } 21389if ${gcc_cv_math_func_cpowf+:} false; then : 21390 $as_echo_n "(cached) " >&6 21391else 21392 if test x$gcc_no_link = xyes; then 21393 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 21394fi 21395cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21396/* end confdefs.h. */ 21397 21398#ifdef HAVE_COMPLEX_H 21399#include <complex.h> 21400#endif 21401#ifdef HAVE_MATH_H 21402#include <math.h> 21403#endif 21404 21405int (*ptr)() = (int (*)())cpowf; 21406 21407int 21408main () 21409{ 21410 return 0; 21411} 21412 21413_ACEOF 21414if ac_fn_c_try_link "$LINENO"; then : 21415 gcc_cv_math_func_cpowf=yes 21416else 21417 gcc_cv_math_func_cpowf=no 21418fi 21419rm -f core conftest.err conftest.$ac_objext \ 21420 conftest$ac_exeext conftest.$ac_ext 21421fi 21422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowf" >&5 21423$as_echo "$gcc_cv_math_func_cpowf" >&6; } 21424 if test $gcc_cv_math_func_cpowf = yes; then 21425 21426cat >>confdefs.h <<_ACEOF 21427#define HAVE_CPOWF 1 21428_ACEOF 21429 21430 fi 21431 21432 21433 21434 21435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpow" >&5 21436$as_echo_n "checking for cpow... " >&6; } 21437if ${gcc_cv_math_func_cpow+:} false; then : 21438 $as_echo_n "(cached) " >&6 21439else 21440 if test x$gcc_no_link = xyes; then 21441 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 21442fi 21443cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21444/* end confdefs.h. */ 21445 21446#ifdef HAVE_COMPLEX_H 21447#include <complex.h> 21448#endif 21449#ifdef HAVE_MATH_H 21450#include <math.h> 21451#endif 21452 21453int (*ptr)() = (int (*)())cpow; 21454 21455int 21456main () 21457{ 21458 return 0; 21459} 21460 21461_ACEOF 21462if ac_fn_c_try_link "$LINENO"; then : 21463 gcc_cv_math_func_cpow=yes 21464else 21465 gcc_cv_math_func_cpow=no 21466fi 21467rm -f core conftest.err conftest.$ac_objext \ 21468 conftest$ac_exeext conftest.$ac_ext 21469fi 21470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpow" >&5 21471$as_echo "$gcc_cv_math_func_cpow" >&6; } 21472 if test $gcc_cv_math_func_cpow = yes; then 21473 21474cat >>confdefs.h <<_ACEOF 21475#define HAVE_CPOW 1 21476_ACEOF 21477 21478 fi 21479 21480 21481 21482 21483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowl" >&5 21484$as_echo_n "checking for cpowl... " >&6; } 21485if ${gcc_cv_math_func_cpowl+:} false; then : 21486 $as_echo_n "(cached) " >&6 21487else 21488 if test x$gcc_no_link = xyes; then 21489 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 21490fi 21491cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21492/* end confdefs.h. */ 21493 21494#ifdef HAVE_COMPLEX_H 21495#include <complex.h> 21496#endif 21497#ifdef HAVE_MATH_H 21498#include <math.h> 21499#endif 21500 21501int (*ptr)() = (int (*)())cpowl; 21502 21503int 21504main () 21505{ 21506 return 0; 21507} 21508 21509_ACEOF 21510if ac_fn_c_try_link "$LINENO"; then : 21511 gcc_cv_math_func_cpowl=yes 21512else 21513 gcc_cv_math_func_cpowl=no 21514fi 21515rm -f core conftest.err conftest.$ac_objext \ 21516 conftest$ac_exeext conftest.$ac_ext 21517fi 21518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowl" >&5 21519$as_echo "$gcc_cv_math_func_cpowl" >&6; } 21520 if test $gcc_cv_math_func_cpowl = yes; then 21521 21522cat >>confdefs.h <<_ACEOF 21523#define HAVE_CPOWL 1 21524_ACEOF 21525 21526 fi 21527 21528 21529 21530 21531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundf" >&5 21532$as_echo_n "checking for roundf... " >&6; } 21533if ${gcc_cv_math_func_roundf+:} false; then : 21534 $as_echo_n "(cached) " >&6 21535else 21536 if test x$gcc_no_link = xyes; then 21537 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 21538fi 21539cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21540/* end confdefs.h. */ 21541 21542#ifdef HAVE_COMPLEX_H 21543#include <complex.h> 21544#endif 21545#ifdef HAVE_MATH_H 21546#include <math.h> 21547#endif 21548 21549int (*ptr)() = (int (*)())roundf; 21550 21551int 21552main () 21553{ 21554 return 0; 21555} 21556 21557_ACEOF 21558if ac_fn_c_try_link "$LINENO"; then : 21559 gcc_cv_math_func_roundf=yes 21560else 21561 gcc_cv_math_func_roundf=no 21562fi 21563rm -f core conftest.err conftest.$ac_objext \ 21564 conftest$ac_exeext conftest.$ac_ext 21565fi 21566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundf" >&5 21567$as_echo "$gcc_cv_math_func_roundf" >&6; } 21568 if test $gcc_cv_math_func_roundf = yes; then 21569 21570cat >>confdefs.h <<_ACEOF 21571#define HAVE_ROUNDF 1 21572_ACEOF 21573 21574 fi 21575 21576 21577 21578 21579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for round" >&5 21580$as_echo_n "checking for round... " >&6; } 21581if ${gcc_cv_math_func_round+:} false; then : 21582 $as_echo_n "(cached) " >&6 21583else 21584 if test x$gcc_no_link = xyes; then 21585 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 21586fi 21587cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21588/* end confdefs.h. */ 21589 21590#ifdef HAVE_COMPLEX_H 21591#include <complex.h> 21592#endif 21593#ifdef HAVE_MATH_H 21594#include <math.h> 21595#endif 21596 21597int (*ptr)() = (int (*)())round; 21598 21599int 21600main () 21601{ 21602 return 0; 21603} 21604 21605_ACEOF 21606if ac_fn_c_try_link "$LINENO"; then : 21607 gcc_cv_math_func_round=yes 21608else 21609 gcc_cv_math_func_round=no 21610fi 21611rm -f core conftest.err conftest.$ac_objext \ 21612 conftest$ac_exeext conftest.$ac_ext 21613fi 21614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_round" >&5 21615$as_echo "$gcc_cv_math_func_round" >&6; } 21616 if test $gcc_cv_math_func_round = yes; then 21617 21618cat >>confdefs.h <<_ACEOF 21619#define HAVE_ROUND 1 21620_ACEOF 21621 21622 fi 21623 21624 21625 21626 21627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundl" >&5 21628$as_echo_n "checking for roundl... " >&6; } 21629if ${gcc_cv_math_func_roundl+:} false; then : 21630 $as_echo_n "(cached) " >&6 21631else 21632 if test x$gcc_no_link = xyes; then 21633 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 21634fi 21635cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21636/* end confdefs.h. */ 21637 21638#ifdef HAVE_COMPLEX_H 21639#include <complex.h> 21640#endif 21641#ifdef HAVE_MATH_H 21642#include <math.h> 21643#endif 21644 21645int (*ptr)() = (int (*)())roundl; 21646 21647int 21648main () 21649{ 21650 return 0; 21651} 21652 21653_ACEOF 21654if ac_fn_c_try_link "$LINENO"; then : 21655 gcc_cv_math_func_roundl=yes 21656else 21657 gcc_cv_math_func_roundl=no 21658fi 21659rm -f core conftest.err conftest.$ac_objext \ 21660 conftest$ac_exeext conftest.$ac_ext 21661fi 21662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundl" >&5 21663$as_echo "$gcc_cv_math_func_roundl" >&6; } 21664 if test $gcc_cv_math_func_roundl = yes; then 21665 21666cat >>confdefs.h <<_ACEOF 21667#define HAVE_ROUNDL 1 21668_ACEOF 21669 21670 fi 21671 21672 21673 21674 21675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundf" >&5 21676$as_echo_n "checking for lroundf... " >&6; } 21677if ${gcc_cv_math_func_lroundf+:} false; then : 21678 $as_echo_n "(cached) " >&6 21679else 21680 if test x$gcc_no_link = xyes; then 21681 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 21682fi 21683cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21684/* end confdefs.h. */ 21685 21686#ifdef HAVE_COMPLEX_H 21687#include <complex.h> 21688#endif 21689#ifdef HAVE_MATH_H 21690#include <math.h> 21691#endif 21692 21693int (*ptr)() = (int (*)())lroundf; 21694 21695int 21696main () 21697{ 21698 return 0; 21699} 21700 21701_ACEOF 21702if ac_fn_c_try_link "$LINENO"; then : 21703 gcc_cv_math_func_lroundf=yes 21704else 21705 gcc_cv_math_func_lroundf=no 21706fi 21707rm -f core conftest.err conftest.$ac_objext \ 21708 conftest$ac_exeext conftest.$ac_ext 21709fi 21710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundf" >&5 21711$as_echo "$gcc_cv_math_func_lroundf" >&6; } 21712 if test $gcc_cv_math_func_lroundf = yes; then 21713 21714cat >>confdefs.h <<_ACEOF 21715#define HAVE_LROUNDF 1 21716_ACEOF 21717 21718 fi 21719 21720 21721 21722 21723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lround" >&5 21724$as_echo_n "checking for lround... " >&6; } 21725if ${gcc_cv_math_func_lround+:} false; then : 21726 $as_echo_n "(cached) " >&6 21727else 21728 if test x$gcc_no_link = xyes; then 21729 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 21730fi 21731cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21732/* end confdefs.h. */ 21733 21734#ifdef HAVE_COMPLEX_H 21735#include <complex.h> 21736#endif 21737#ifdef HAVE_MATH_H 21738#include <math.h> 21739#endif 21740 21741int (*ptr)() = (int (*)())lround; 21742 21743int 21744main () 21745{ 21746 return 0; 21747} 21748 21749_ACEOF 21750if ac_fn_c_try_link "$LINENO"; then : 21751 gcc_cv_math_func_lround=yes 21752else 21753 gcc_cv_math_func_lround=no 21754fi 21755rm -f core conftest.err conftest.$ac_objext \ 21756 conftest$ac_exeext conftest.$ac_ext 21757fi 21758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lround" >&5 21759$as_echo "$gcc_cv_math_func_lround" >&6; } 21760 if test $gcc_cv_math_func_lround = yes; then 21761 21762cat >>confdefs.h <<_ACEOF 21763#define HAVE_LROUND 1 21764_ACEOF 21765 21766 fi 21767 21768 21769 21770 21771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundl" >&5 21772$as_echo_n "checking for lroundl... " >&6; } 21773if ${gcc_cv_math_func_lroundl+:} false; then : 21774 $as_echo_n "(cached) " >&6 21775else 21776 if test x$gcc_no_link = xyes; then 21777 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 21778fi 21779cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21780/* end confdefs.h. */ 21781 21782#ifdef HAVE_COMPLEX_H 21783#include <complex.h> 21784#endif 21785#ifdef HAVE_MATH_H 21786#include <math.h> 21787#endif 21788 21789int (*ptr)() = (int (*)())lroundl; 21790 21791int 21792main () 21793{ 21794 return 0; 21795} 21796 21797_ACEOF 21798if ac_fn_c_try_link "$LINENO"; then : 21799 gcc_cv_math_func_lroundl=yes 21800else 21801 gcc_cv_math_func_lroundl=no 21802fi 21803rm -f core conftest.err conftest.$ac_objext \ 21804 conftest$ac_exeext conftest.$ac_ext 21805fi 21806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundl" >&5 21807$as_echo "$gcc_cv_math_func_lroundl" >&6; } 21808 if test $gcc_cv_math_func_lroundl = yes; then 21809 21810cat >>confdefs.h <<_ACEOF 21811#define HAVE_LROUNDL 1 21812_ACEOF 21813 21814 fi 21815 21816 21817 21818 21819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundf" >&5 21820$as_echo_n "checking for llroundf... " >&6; } 21821if ${gcc_cv_math_func_llroundf+:} false; then : 21822 $as_echo_n "(cached) " >&6 21823else 21824 if test x$gcc_no_link = xyes; then 21825 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 21826fi 21827cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21828/* end confdefs.h. */ 21829 21830#ifdef HAVE_COMPLEX_H 21831#include <complex.h> 21832#endif 21833#ifdef HAVE_MATH_H 21834#include <math.h> 21835#endif 21836 21837int (*ptr)() = (int (*)())llroundf; 21838 21839int 21840main () 21841{ 21842 return 0; 21843} 21844 21845_ACEOF 21846if ac_fn_c_try_link "$LINENO"; then : 21847 gcc_cv_math_func_llroundf=yes 21848else 21849 gcc_cv_math_func_llroundf=no 21850fi 21851rm -f core conftest.err conftest.$ac_objext \ 21852 conftest$ac_exeext conftest.$ac_ext 21853fi 21854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundf" >&5 21855$as_echo "$gcc_cv_math_func_llroundf" >&6; } 21856 if test $gcc_cv_math_func_llroundf = yes; then 21857 21858cat >>confdefs.h <<_ACEOF 21859#define HAVE_LLROUNDF 1 21860_ACEOF 21861 21862 fi 21863 21864 21865 21866 21867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llround" >&5 21868$as_echo_n "checking for llround... " >&6; } 21869if ${gcc_cv_math_func_llround+:} false; then : 21870 $as_echo_n "(cached) " >&6 21871else 21872 if test x$gcc_no_link = xyes; then 21873 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 21874fi 21875cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21876/* end confdefs.h. */ 21877 21878#ifdef HAVE_COMPLEX_H 21879#include <complex.h> 21880#endif 21881#ifdef HAVE_MATH_H 21882#include <math.h> 21883#endif 21884 21885int (*ptr)() = (int (*)())llround; 21886 21887int 21888main () 21889{ 21890 return 0; 21891} 21892 21893_ACEOF 21894if ac_fn_c_try_link "$LINENO"; then : 21895 gcc_cv_math_func_llround=yes 21896else 21897 gcc_cv_math_func_llround=no 21898fi 21899rm -f core conftest.err conftest.$ac_objext \ 21900 conftest$ac_exeext conftest.$ac_ext 21901fi 21902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llround" >&5 21903$as_echo "$gcc_cv_math_func_llround" >&6; } 21904 if test $gcc_cv_math_func_llround = yes; then 21905 21906cat >>confdefs.h <<_ACEOF 21907#define HAVE_LLROUND 1 21908_ACEOF 21909 21910 fi 21911 21912 21913 21914 21915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundl" >&5 21916$as_echo_n "checking for llroundl... " >&6; } 21917if ${gcc_cv_math_func_llroundl+:} false; then : 21918 $as_echo_n "(cached) " >&6 21919else 21920 if test x$gcc_no_link = xyes; then 21921 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 21922fi 21923cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21924/* end confdefs.h. */ 21925 21926#ifdef HAVE_COMPLEX_H 21927#include <complex.h> 21928#endif 21929#ifdef HAVE_MATH_H 21930#include <math.h> 21931#endif 21932 21933int (*ptr)() = (int (*)())llroundl; 21934 21935int 21936main () 21937{ 21938 return 0; 21939} 21940 21941_ACEOF 21942if ac_fn_c_try_link "$LINENO"; then : 21943 gcc_cv_math_func_llroundl=yes 21944else 21945 gcc_cv_math_func_llroundl=no 21946fi 21947rm -f core conftest.err conftest.$ac_objext \ 21948 conftest$ac_exeext conftest.$ac_ext 21949fi 21950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundl" >&5 21951$as_echo "$gcc_cv_math_func_llroundl" >&6; } 21952 if test $gcc_cv_math_func_llroundl = yes; then 21953 21954cat >>confdefs.h <<_ACEOF 21955#define HAVE_LLROUNDL 1 21956_ACEOF 21957 21958 fi 21959 21960 21961 21962 21963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnf" >&5 21964$as_echo_n "checking for scalbnf... " >&6; } 21965if ${gcc_cv_math_func_scalbnf+:} false; then : 21966 $as_echo_n "(cached) " >&6 21967else 21968 if test x$gcc_no_link = xyes; then 21969 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 21970fi 21971cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21972/* end confdefs.h. */ 21973 21974#ifdef HAVE_COMPLEX_H 21975#include <complex.h> 21976#endif 21977#ifdef HAVE_MATH_H 21978#include <math.h> 21979#endif 21980 21981int (*ptr)() = (int (*)())scalbnf; 21982 21983int 21984main () 21985{ 21986 return 0; 21987} 21988 21989_ACEOF 21990if ac_fn_c_try_link "$LINENO"; then : 21991 gcc_cv_math_func_scalbnf=yes 21992else 21993 gcc_cv_math_func_scalbnf=no 21994fi 21995rm -f core conftest.err conftest.$ac_objext \ 21996 conftest$ac_exeext conftest.$ac_ext 21997fi 21998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnf" >&5 21999$as_echo "$gcc_cv_math_func_scalbnf" >&6; } 22000 if test $gcc_cv_math_func_scalbnf = yes; then 22001 22002cat >>confdefs.h <<_ACEOF 22003#define HAVE_SCALBNF 1 22004_ACEOF 22005 22006 fi 22007 22008 22009 22010 22011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbn" >&5 22012$as_echo_n "checking for scalbn... " >&6; } 22013if ${gcc_cv_math_func_scalbn+:} false; then : 22014 $as_echo_n "(cached) " >&6 22015else 22016 if test x$gcc_no_link = xyes; then 22017 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 22018fi 22019cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22020/* end confdefs.h. */ 22021 22022#ifdef HAVE_COMPLEX_H 22023#include <complex.h> 22024#endif 22025#ifdef HAVE_MATH_H 22026#include <math.h> 22027#endif 22028 22029int (*ptr)() = (int (*)())scalbn; 22030 22031int 22032main () 22033{ 22034 return 0; 22035} 22036 22037_ACEOF 22038if ac_fn_c_try_link "$LINENO"; then : 22039 gcc_cv_math_func_scalbn=yes 22040else 22041 gcc_cv_math_func_scalbn=no 22042fi 22043rm -f core conftest.err conftest.$ac_objext \ 22044 conftest$ac_exeext conftest.$ac_ext 22045fi 22046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbn" >&5 22047$as_echo "$gcc_cv_math_func_scalbn" >&6; } 22048 if test $gcc_cv_math_func_scalbn = yes; then 22049 22050cat >>confdefs.h <<_ACEOF 22051#define HAVE_SCALBN 1 22052_ACEOF 22053 22054 fi 22055 22056 22057 22058 22059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnl" >&5 22060$as_echo_n "checking for scalbnl... " >&6; } 22061if ${gcc_cv_math_func_scalbnl+:} false; then : 22062 $as_echo_n "(cached) " >&6 22063else 22064 if test x$gcc_no_link = xyes; then 22065 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 22066fi 22067cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22068/* end confdefs.h. */ 22069 22070#ifdef HAVE_COMPLEX_H 22071#include <complex.h> 22072#endif 22073#ifdef HAVE_MATH_H 22074#include <math.h> 22075#endif 22076 22077int (*ptr)() = (int (*)())scalbnl; 22078 22079int 22080main () 22081{ 22082 return 0; 22083} 22084 22085_ACEOF 22086if ac_fn_c_try_link "$LINENO"; then : 22087 gcc_cv_math_func_scalbnl=yes 22088else 22089 gcc_cv_math_func_scalbnl=no 22090fi 22091rm -f core conftest.err conftest.$ac_objext \ 22092 conftest$ac_exeext conftest.$ac_ext 22093fi 22094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnl" >&5 22095$as_echo "$gcc_cv_math_func_scalbnl" >&6; } 22096 if test $gcc_cv_math_func_scalbnl = yes; then 22097 22098cat >>confdefs.h <<_ACEOF 22099#define HAVE_SCALBNL 1 22100_ACEOF 22101 22102 fi 22103 22104 22105 22106 22107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinf" >&5 22108$as_echo_n "checking for sinf... " >&6; } 22109if ${gcc_cv_math_func_sinf+:} false; then : 22110 $as_echo_n "(cached) " >&6 22111else 22112 if test x$gcc_no_link = xyes; then 22113 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 22114fi 22115cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22116/* end confdefs.h. */ 22117 22118#ifdef HAVE_COMPLEX_H 22119#include <complex.h> 22120#endif 22121#ifdef HAVE_MATH_H 22122#include <math.h> 22123#endif 22124 22125int (*ptr)() = (int (*)())sinf; 22126 22127int 22128main () 22129{ 22130 return 0; 22131} 22132 22133_ACEOF 22134if ac_fn_c_try_link "$LINENO"; then : 22135 gcc_cv_math_func_sinf=yes 22136else 22137 gcc_cv_math_func_sinf=no 22138fi 22139rm -f core conftest.err conftest.$ac_objext \ 22140 conftest$ac_exeext conftest.$ac_ext 22141fi 22142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinf" >&5 22143$as_echo "$gcc_cv_math_func_sinf" >&6; } 22144 if test $gcc_cv_math_func_sinf = yes; then 22145 22146cat >>confdefs.h <<_ACEOF 22147#define HAVE_SINF 1 22148_ACEOF 22149 22150 fi 22151 22152 22153 22154 22155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin" >&5 22156$as_echo_n "checking for sin... " >&6; } 22157if ${gcc_cv_math_func_sin+:} false; then : 22158 $as_echo_n "(cached) " >&6 22159else 22160 if test x$gcc_no_link = xyes; then 22161 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 22162fi 22163cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22164/* end confdefs.h. */ 22165 22166#ifdef HAVE_COMPLEX_H 22167#include <complex.h> 22168#endif 22169#ifdef HAVE_MATH_H 22170#include <math.h> 22171#endif 22172 22173int (*ptr)() = (int (*)())sin; 22174 22175int 22176main () 22177{ 22178 return 0; 22179} 22180 22181_ACEOF 22182if ac_fn_c_try_link "$LINENO"; then : 22183 gcc_cv_math_func_sin=yes 22184else 22185 gcc_cv_math_func_sin=no 22186fi 22187rm -f core conftest.err conftest.$ac_objext \ 22188 conftest$ac_exeext conftest.$ac_ext 22189fi 22190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sin" >&5 22191$as_echo "$gcc_cv_math_func_sin" >&6; } 22192 if test $gcc_cv_math_func_sin = yes; then 22193 22194cat >>confdefs.h <<_ACEOF 22195#define HAVE_SIN 1 22196_ACEOF 22197 22198 fi 22199 22200 22201 22202 22203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinl" >&5 22204$as_echo_n "checking for sinl... " >&6; } 22205if ${gcc_cv_math_func_sinl+:} false; then : 22206 $as_echo_n "(cached) " >&6 22207else 22208 if test x$gcc_no_link = xyes; then 22209 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 22210fi 22211cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22212/* end confdefs.h. */ 22213 22214#ifdef HAVE_COMPLEX_H 22215#include <complex.h> 22216#endif 22217#ifdef HAVE_MATH_H 22218#include <math.h> 22219#endif 22220 22221int (*ptr)() = (int (*)())sinl; 22222 22223int 22224main () 22225{ 22226 return 0; 22227} 22228 22229_ACEOF 22230if ac_fn_c_try_link "$LINENO"; then : 22231 gcc_cv_math_func_sinl=yes 22232else 22233 gcc_cv_math_func_sinl=no 22234fi 22235rm -f core conftest.err conftest.$ac_objext \ 22236 conftest$ac_exeext conftest.$ac_ext 22237fi 22238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinl" >&5 22239$as_echo "$gcc_cv_math_func_sinl" >&6; } 22240 if test $gcc_cv_math_func_sinl = yes; then 22241 22242cat >>confdefs.h <<_ACEOF 22243#define HAVE_SINL 1 22244_ACEOF 22245 22246 fi 22247 22248 22249 22250 22251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinf" >&5 22252$as_echo_n "checking for csinf... " >&6; } 22253if ${gcc_cv_math_func_csinf+:} false; then : 22254 $as_echo_n "(cached) " >&6 22255else 22256 if test x$gcc_no_link = xyes; then 22257 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 22258fi 22259cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22260/* end confdefs.h. */ 22261 22262#ifdef HAVE_COMPLEX_H 22263#include <complex.h> 22264#endif 22265#ifdef HAVE_MATH_H 22266#include <math.h> 22267#endif 22268 22269int (*ptr)() = (int (*)())csinf; 22270 22271int 22272main () 22273{ 22274 return 0; 22275} 22276 22277_ACEOF 22278if ac_fn_c_try_link "$LINENO"; then : 22279 gcc_cv_math_func_csinf=yes 22280else 22281 gcc_cv_math_func_csinf=no 22282fi 22283rm -f core conftest.err conftest.$ac_objext \ 22284 conftest$ac_exeext conftest.$ac_ext 22285fi 22286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinf" >&5 22287$as_echo "$gcc_cv_math_func_csinf" >&6; } 22288 if test $gcc_cv_math_func_csinf = yes; then 22289 22290cat >>confdefs.h <<_ACEOF 22291#define HAVE_CSINF 1 22292_ACEOF 22293 22294 fi 22295 22296 22297 22298 22299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csin" >&5 22300$as_echo_n "checking for csin... " >&6; } 22301if ${gcc_cv_math_func_csin+:} false; then : 22302 $as_echo_n "(cached) " >&6 22303else 22304 if test x$gcc_no_link = xyes; then 22305 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 22306fi 22307cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22308/* end confdefs.h. */ 22309 22310#ifdef HAVE_COMPLEX_H 22311#include <complex.h> 22312#endif 22313#ifdef HAVE_MATH_H 22314#include <math.h> 22315#endif 22316 22317int (*ptr)() = (int (*)())csin; 22318 22319int 22320main () 22321{ 22322 return 0; 22323} 22324 22325_ACEOF 22326if ac_fn_c_try_link "$LINENO"; then : 22327 gcc_cv_math_func_csin=yes 22328else 22329 gcc_cv_math_func_csin=no 22330fi 22331rm -f core conftest.err conftest.$ac_objext \ 22332 conftest$ac_exeext conftest.$ac_ext 22333fi 22334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csin" >&5 22335$as_echo "$gcc_cv_math_func_csin" >&6; } 22336 if test $gcc_cv_math_func_csin = yes; then 22337 22338cat >>confdefs.h <<_ACEOF 22339#define HAVE_CSIN 1 22340_ACEOF 22341 22342 fi 22343 22344 22345 22346 22347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinl" >&5 22348$as_echo_n "checking for csinl... " >&6; } 22349if ${gcc_cv_math_func_csinl+:} false; then : 22350 $as_echo_n "(cached) " >&6 22351else 22352 if test x$gcc_no_link = xyes; then 22353 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 22354fi 22355cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22356/* end confdefs.h. */ 22357 22358#ifdef HAVE_COMPLEX_H 22359#include <complex.h> 22360#endif 22361#ifdef HAVE_MATH_H 22362#include <math.h> 22363#endif 22364 22365int (*ptr)() = (int (*)())csinl; 22366 22367int 22368main () 22369{ 22370 return 0; 22371} 22372 22373_ACEOF 22374if ac_fn_c_try_link "$LINENO"; then : 22375 gcc_cv_math_func_csinl=yes 22376else 22377 gcc_cv_math_func_csinl=no 22378fi 22379rm -f core conftest.err conftest.$ac_objext \ 22380 conftest$ac_exeext conftest.$ac_ext 22381fi 22382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinl" >&5 22383$as_echo "$gcc_cv_math_func_csinl" >&6; } 22384 if test $gcc_cv_math_func_csinl = yes; then 22385 22386cat >>confdefs.h <<_ACEOF 22387#define HAVE_CSINL 1 22388_ACEOF 22389 22390 fi 22391 22392 22393 22394 22395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhf" >&5 22396$as_echo_n "checking for sinhf... " >&6; } 22397if ${gcc_cv_math_func_sinhf+:} false; then : 22398 $as_echo_n "(cached) " >&6 22399else 22400 if test x$gcc_no_link = xyes; then 22401 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 22402fi 22403cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22404/* end confdefs.h. */ 22405 22406#ifdef HAVE_COMPLEX_H 22407#include <complex.h> 22408#endif 22409#ifdef HAVE_MATH_H 22410#include <math.h> 22411#endif 22412 22413int (*ptr)() = (int (*)())sinhf; 22414 22415int 22416main () 22417{ 22418 return 0; 22419} 22420 22421_ACEOF 22422if ac_fn_c_try_link "$LINENO"; then : 22423 gcc_cv_math_func_sinhf=yes 22424else 22425 gcc_cv_math_func_sinhf=no 22426fi 22427rm -f core conftest.err conftest.$ac_objext \ 22428 conftest$ac_exeext conftest.$ac_ext 22429fi 22430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhf" >&5 22431$as_echo "$gcc_cv_math_func_sinhf" >&6; } 22432 if test $gcc_cv_math_func_sinhf = yes; then 22433 22434cat >>confdefs.h <<_ACEOF 22435#define HAVE_SINHF 1 22436_ACEOF 22437 22438 fi 22439 22440 22441 22442 22443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinh" >&5 22444$as_echo_n "checking for sinh... " >&6; } 22445if ${gcc_cv_math_func_sinh+:} false; then : 22446 $as_echo_n "(cached) " >&6 22447else 22448 if test x$gcc_no_link = xyes; then 22449 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 22450fi 22451cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22452/* end confdefs.h. */ 22453 22454#ifdef HAVE_COMPLEX_H 22455#include <complex.h> 22456#endif 22457#ifdef HAVE_MATH_H 22458#include <math.h> 22459#endif 22460 22461int (*ptr)() = (int (*)())sinh; 22462 22463int 22464main () 22465{ 22466 return 0; 22467} 22468 22469_ACEOF 22470if ac_fn_c_try_link "$LINENO"; then : 22471 gcc_cv_math_func_sinh=yes 22472else 22473 gcc_cv_math_func_sinh=no 22474fi 22475rm -f core conftest.err conftest.$ac_objext \ 22476 conftest$ac_exeext conftest.$ac_ext 22477fi 22478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinh" >&5 22479$as_echo "$gcc_cv_math_func_sinh" >&6; } 22480 if test $gcc_cv_math_func_sinh = yes; then 22481 22482cat >>confdefs.h <<_ACEOF 22483#define HAVE_SINH 1 22484_ACEOF 22485 22486 fi 22487 22488 22489 22490 22491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhl" >&5 22492$as_echo_n "checking for sinhl... " >&6; } 22493if ${gcc_cv_math_func_sinhl+:} false; then : 22494 $as_echo_n "(cached) " >&6 22495else 22496 if test x$gcc_no_link = xyes; then 22497 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 22498fi 22499cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22500/* end confdefs.h. */ 22501 22502#ifdef HAVE_COMPLEX_H 22503#include <complex.h> 22504#endif 22505#ifdef HAVE_MATH_H 22506#include <math.h> 22507#endif 22508 22509int (*ptr)() = (int (*)())sinhl; 22510 22511int 22512main () 22513{ 22514 return 0; 22515} 22516 22517_ACEOF 22518if ac_fn_c_try_link "$LINENO"; then : 22519 gcc_cv_math_func_sinhl=yes 22520else 22521 gcc_cv_math_func_sinhl=no 22522fi 22523rm -f core conftest.err conftest.$ac_objext \ 22524 conftest$ac_exeext conftest.$ac_ext 22525fi 22526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhl" >&5 22527$as_echo "$gcc_cv_math_func_sinhl" >&6; } 22528 if test $gcc_cv_math_func_sinhl = yes; then 22529 22530cat >>confdefs.h <<_ACEOF 22531#define HAVE_SINHL 1 22532_ACEOF 22533 22534 fi 22535 22536 22537 22538 22539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhf" >&5 22540$as_echo_n "checking for csinhf... " >&6; } 22541if ${gcc_cv_math_func_csinhf+:} false; then : 22542 $as_echo_n "(cached) " >&6 22543else 22544 if test x$gcc_no_link = xyes; then 22545 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 22546fi 22547cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22548/* end confdefs.h. */ 22549 22550#ifdef HAVE_COMPLEX_H 22551#include <complex.h> 22552#endif 22553#ifdef HAVE_MATH_H 22554#include <math.h> 22555#endif 22556 22557int (*ptr)() = (int (*)())csinhf; 22558 22559int 22560main () 22561{ 22562 return 0; 22563} 22564 22565_ACEOF 22566if ac_fn_c_try_link "$LINENO"; then : 22567 gcc_cv_math_func_csinhf=yes 22568else 22569 gcc_cv_math_func_csinhf=no 22570fi 22571rm -f core conftest.err conftest.$ac_objext \ 22572 conftest$ac_exeext conftest.$ac_ext 22573fi 22574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhf" >&5 22575$as_echo "$gcc_cv_math_func_csinhf" >&6; } 22576 if test $gcc_cv_math_func_csinhf = yes; then 22577 22578cat >>confdefs.h <<_ACEOF 22579#define HAVE_CSINHF 1 22580_ACEOF 22581 22582 fi 22583 22584 22585 22586 22587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinh" >&5 22588$as_echo_n "checking for csinh... " >&6; } 22589if ${gcc_cv_math_func_csinh+:} false; then : 22590 $as_echo_n "(cached) " >&6 22591else 22592 if test x$gcc_no_link = xyes; then 22593 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 22594fi 22595cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22596/* end confdefs.h. */ 22597 22598#ifdef HAVE_COMPLEX_H 22599#include <complex.h> 22600#endif 22601#ifdef HAVE_MATH_H 22602#include <math.h> 22603#endif 22604 22605int (*ptr)() = (int (*)())csinh; 22606 22607int 22608main () 22609{ 22610 return 0; 22611} 22612 22613_ACEOF 22614if ac_fn_c_try_link "$LINENO"; then : 22615 gcc_cv_math_func_csinh=yes 22616else 22617 gcc_cv_math_func_csinh=no 22618fi 22619rm -f core conftest.err conftest.$ac_objext \ 22620 conftest$ac_exeext conftest.$ac_ext 22621fi 22622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinh" >&5 22623$as_echo "$gcc_cv_math_func_csinh" >&6; } 22624 if test $gcc_cv_math_func_csinh = yes; then 22625 22626cat >>confdefs.h <<_ACEOF 22627#define HAVE_CSINH 1 22628_ACEOF 22629 22630 fi 22631 22632 22633 22634 22635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhl" >&5 22636$as_echo_n "checking for csinhl... " >&6; } 22637if ${gcc_cv_math_func_csinhl+:} false; then : 22638 $as_echo_n "(cached) " >&6 22639else 22640 if test x$gcc_no_link = xyes; then 22641 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 22642fi 22643cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22644/* end confdefs.h. */ 22645 22646#ifdef HAVE_COMPLEX_H 22647#include <complex.h> 22648#endif 22649#ifdef HAVE_MATH_H 22650#include <math.h> 22651#endif 22652 22653int (*ptr)() = (int (*)())csinhl; 22654 22655int 22656main () 22657{ 22658 return 0; 22659} 22660 22661_ACEOF 22662if ac_fn_c_try_link "$LINENO"; then : 22663 gcc_cv_math_func_csinhl=yes 22664else 22665 gcc_cv_math_func_csinhl=no 22666fi 22667rm -f core conftest.err conftest.$ac_objext \ 22668 conftest$ac_exeext conftest.$ac_ext 22669fi 22670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhl" >&5 22671$as_echo "$gcc_cv_math_func_csinhl" >&6; } 22672 if test $gcc_cv_math_func_csinhl = yes; then 22673 22674cat >>confdefs.h <<_ACEOF 22675#define HAVE_CSINHL 1 22676_ACEOF 22677 22678 fi 22679 22680 22681 22682 22683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf" >&5 22684$as_echo_n "checking for sqrtf... " >&6; } 22685if ${gcc_cv_math_func_sqrtf+:} false; then : 22686 $as_echo_n "(cached) " >&6 22687else 22688 if test x$gcc_no_link = xyes; then 22689 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 22690fi 22691cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22692/* end confdefs.h. */ 22693 22694#ifdef HAVE_COMPLEX_H 22695#include <complex.h> 22696#endif 22697#ifdef HAVE_MATH_H 22698#include <math.h> 22699#endif 22700 22701int (*ptr)() = (int (*)())sqrtf; 22702 22703int 22704main () 22705{ 22706 return 0; 22707} 22708 22709_ACEOF 22710if ac_fn_c_try_link "$LINENO"; then : 22711 gcc_cv_math_func_sqrtf=yes 22712else 22713 gcc_cv_math_func_sqrtf=no 22714fi 22715rm -f core conftest.err conftest.$ac_objext \ 22716 conftest$ac_exeext conftest.$ac_ext 22717fi 22718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtf" >&5 22719$as_echo "$gcc_cv_math_func_sqrtf" >&6; } 22720 if test $gcc_cv_math_func_sqrtf = yes; then 22721 22722cat >>confdefs.h <<_ACEOF 22723#define HAVE_SQRTF 1 22724_ACEOF 22725 22726 fi 22727 22728 22729 22730 22731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt" >&5 22732$as_echo_n "checking for sqrt... " >&6; } 22733if ${gcc_cv_math_func_sqrt+:} false; then : 22734 $as_echo_n "(cached) " >&6 22735else 22736 if test x$gcc_no_link = xyes; then 22737 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 22738fi 22739cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22740/* end confdefs.h. */ 22741 22742#ifdef HAVE_COMPLEX_H 22743#include <complex.h> 22744#endif 22745#ifdef HAVE_MATH_H 22746#include <math.h> 22747#endif 22748 22749int (*ptr)() = (int (*)())sqrt; 22750 22751int 22752main () 22753{ 22754 return 0; 22755} 22756 22757_ACEOF 22758if ac_fn_c_try_link "$LINENO"; then : 22759 gcc_cv_math_func_sqrt=yes 22760else 22761 gcc_cv_math_func_sqrt=no 22762fi 22763rm -f core conftest.err conftest.$ac_objext \ 22764 conftest$ac_exeext conftest.$ac_ext 22765fi 22766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrt" >&5 22767$as_echo "$gcc_cv_math_func_sqrt" >&6; } 22768 if test $gcc_cv_math_func_sqrt = yes; then 22769 22770cat >>confdefs.h <<_ACEOF 22771#define HAVE_SQRT 1 22772_ACEOF 22773 22774 fi 22775 22776 22777 22778 22779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl" >&5 22780$as_echo_n "checking for sqrtl... " >&6; } 22781if ${gcc_cv_math_func_sqrtl+:} false; then : 22782 $as_echo_n "(cached) " >&6 22783else 22784 if test x$gcc_no_link = xyes; then 22785 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 22786fi 22787cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22788/* end confdefs.h. */ 22789 22790#ifdef HAVE_COMPLEX_H 22791#include <complex.h> 22792#endif 22793#ifdef HAVE_MATH_H 22794#include <math.h> 22795#endif 22796 22797int (*ptr)() = (int (*)())sqrtl; 22798 22799int 22800main () 22801{ 22802 return 0; 22803} 22804 22805_ACEOF 22806if ac_fn_c_try_link "$LINENO"; then : 22807 gcc_cv_math_func_sqrtl=yes 22808else 22809 gcc_cv_math_func_sqrtl=no 22810fi 22811rm -f core conftest.err conftest.$ac_objext \ 22812 conftest$ac_exeext conftest.$ac_ext 22813fi 22814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtl" >&5 22815$as_echo "$gcc_cv_math_func_sqrtl" >&6; } 22816 if test $gcc_cv_math_func_sqrtl = yes; then 22817 22818cat >>confdefs.h <<_ACEOF 22819#define HAVE_SQRTL 1 22820_ACEOF 22821 22822 fi 22823 22824 22825 22826 22827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtf" >&5 22828$as_echo_n "checking for csqrtf... " >&6; } 22829if ${gcc_cv_math_func_csqrtf+:} false; then : 22830 $as_echo_n "(cached) " >&6 22831else 22832 if test x$gcc_no_link = xyes; then 22833 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 22834fi 22835cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22836/* end confdefs.h. */ 22837 22838#ifdef HAVE_COMPLEX_H 22839#include <complex.h> 22840#endif 22841#ifdef HAVE_MATH_H 22842#include <math.h> 22843#endif 22844 22845int (*ptr)() = (int (*)())csqrtf; 22846 22847int 22848main () 22849{ 22850 return 0; 22851} 22852 22853_ACEOF 22854if ac_fn_c_try_link "$LINENO"; then : 22855 gcc_cv_math_func_csqrtf=yes 22856else 22857 gcc_cv_math_func_csqrtf=no 22858fi 22859rm -f core conftest.err conftest.$ac_objext \ 22860 conftest$ac_exeext conftest.$ac_ext 22861fi 22862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtf" >&5 22863$as_echo "$gcc_cv_math_func_csqrtf" >&6; } 22864 if test $gcc_cv_math_func_csqrtf = yes; then 22865 22866cat >>confdefs.h <<_ACEOF 22867#define HAVE_CSQRTF 1 22868_ACEOF 22869 22870 fi 22871 22872 22873 22874 22875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrt" >&5 22876$as_echo_n "checking for csqrt... " >&6; } 22877if ${gcc_cv_math_func_csqrt+:} false; then : 22878 $as_echo_n "(cached) " >&6 22879else 22880 if test x$gcc_no_link = xyes; then 22881 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 22882fi 22883cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22884/* end confdefs.h. */ 22885 22886#ifdef HAVE_COMPLEX_H 22887#include <complex.h> 22888#endif 22889#ifdef HAVE_MATH_H 22890#include <math.h> 22891#endif 22892 22893int (*ptr)() = (int (*)())csqrt; 22894 22895int 22896main () 22897{ 22898 return 0; 22899} 22900 22901_ACEOF 22902if ac_fn_c_try_link "$LINENO"; then : 22903 gcc_cv_math_func_csqrt=yes 22904else 22905 gcc_cv_math_func_csqrt=no 22906fi 22907rm -f core conftest.err conftest.$ac_objext \ 22908 conftest$ac_exeext conftest.$ac_ext 22909fi 22910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrt" >&5 22911$as_echo "$gcc_cv_math_func_csqrt" >&6; } 22912 if test $gcc_cv_math_func_csqrt = yes; then 22913 22914cat >>confdefs.h <<_ACEOF 22915#define HAVE_CSQRT 1 22916_ACEOF 22917 22918 fi 22919 22920 22921 22922 22923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtl" >&5 22924$as_echo_n "checking for csqrtl... " >&6; } 22925if ${gcc_cv_math_func_csqrtl+:} false; then : 22926 $as_echo_n "(cached) " >&6 22927else 22928 if test x$gcc_no_link = xyes; then 22929 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 22930fi 22931cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22932/* end confdefs.h. */ 22933 22934#ifdef HAVE_COMPLEX_H 22935#include <complex.h> 22936#endif 22937#ifdef HAVE_MATH_H 22938#include <math.h> 22939#endif 22940 22941int (*ptr)() = (int (*)())csqrtl; 22942 22943int 22944main () 22945{ 22946 return 0; 22947} 22948 22949_ACEOF 22950if ac_fn_c_try_link "$LINENO"; then : 22951 gcc_cv_math_func_csqrtl=yes 22952else 22953 gcc_cv_math_func_csqrtl=no 22954fi 22955rm -f core conftest.err conftest.$ac_objext \ 22956 conftest$ac_exeext conftest.$ac_ext 22957fi 22958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtl" >&5 22959$as_echo "$gcc_cv_math_func_csqrtl" >&6; } 22960 if test $gcc_cv_math_func_csqrtl = yes; then 22961 22962cat >>confdefs.h <<_ACEOF 22963#define HAVE_CSQRTL 1 22964_ACEOF 22965 22966 fi 22967 22968 22969 22970 22971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanf" >&5 22972$as_echo_n "checking for tanf... " >&6; } 22973if ${gcc_cv_math_func_tanf+:} false; then : 22974 $as_echo_n "(cached) " >&6 22975else 22976 if test x$gcc_no_link = xyes; then 22977 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 22978fi 22979cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22980/* end confdefs.h. */ 22981 22982#ifdef HAVE_COMPLEX_H 22983#include <complex.h> 22984#endif 22985#ifdef HAVE_MATH_H 22986#include <math.h> 22987#endif 22988 22989int (*ptr)() = (int (*)())tanf; 22990 22991int 22992main () 22993{ 22994 return 0; 22995} 22996 22997_ACEOF 22998if ac_fn_c_try_link "$LINENO"; then : 22999 gcc_cv_math_func_tanf=yes 23000else 23001 gcc_cv_math_func_tanf=no 23002fi 23003rm -f core conftest.err conftest.$ac_objext \ 23004 conftest$ac_exeext conftest.$ac_ext 23005fi 23006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanf" >&5 23007$as_echo "$gcc_cv_math_func_tanf" >&6; } 23008 if test $gcc_cv_math_func_tanf = yes; then 23009 23010cat >>confdefs.h <<_ACEOF 23011#define HAVE_TANF 1 23012_ACEOF 23013 23014 fi 23015 23016 23017 23018 23019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tan" >&5 23020$as_echo_n "checking for tan... " >&6; } 23021if ${gcc_cv_math_func_tan+:} false; then : 23022 $as_echo_n "(cached) " >&6 23023else 23024 if test x$gcc_no_link = xyes; then 23025 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 23026fi 23027cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23028/* end confdefs.h. */ 23029 23030#ifdef HAVE_COMPLEX_H 23031#include <complex.h> 23032#endif 23033#ifdef HAVE_MATH_H 23034#include <math.h> 23035#endif 23036 23037int (*ptr)() = (int (*)())tan; 23038 23039int 23040main () 23041{ 23042 return 0; 23043} 23044 23045_ACEOF 23046if ac_fn_c_try_link "$LINENO"; then : 23047 gcc_cv_math_func_tan=yes 23048else 23049 gcc_cv_math_func_tan=no 23050fi 23051rm -f core conftest.err conftest.$ac_objext \ 23052 conftest$ac_exeext conftest.$ac_ext 23053fi 23054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tan" >&5 23055$as_echo "$gcc_cv_math_func_tan" >&6; } 23056 if test $gcc_cv_math_func_tan = yes; then 23057 23058cat >>confdefs.h <<_ACEOF 23059#define HAVE_TAN 1 23060_ACEOF 23061 23062 fi 23063 23064 23065 23066 23067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanl" >&5 23068$as_echo_n "checking for tanl... " >&6; } 23069if ${gcc_cv_math_func_tanl+:} false; then : 23070 $as_echo_n "(cached) " >&6 23071else 23072 if test x$gcc_no_link = xyes; then 23073 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 23074fi 23075cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23076/* end confdefs.h. */ 23077 23078#ifdef HAVE_COMPLEX_H 23079#include <complex.h> 23080#endif 23081#ifdef HAVE_MATH_H 23082#include <math.h> 23083#endif 23084 23085int (*ptr)() = (int (*)())tanl; 23086 23087int 23088main () 23089{ 23090 return 0; 23091} 23092 23093_ACEOF 23094if ac_fn_c_try_link "$LINENO"; then : 23095 gcc_cv_math_func_tanl=yes 23096else 23097 gcc_cv_math_func_tanl=no 23098fi 23099rm -f core conftest.err conftest.$ac_objext \ 23100 conftest$ac_exeext conftest.$ac_ext 23101fi 23102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanl" >&5 23103$as_echo "$gcc_cv_math_func_tanl" >&6; } 23104 if test $gcc_cv_math_func_tanl = yes; then 23105 23106cat >>confdefs.h <<_ACEOF 23107#define HAVE_TANL 1 23108_ACEOF 23109 23110 fi 23111 23112 23113 23114 23115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanf" >&5 23116$as_echo_n "checking for ctanf... " >&6; } 23117if ${gcc_cv_math_func_ctanf+:} false; then : 23118 $as_echo_n "(cached) " >&6 23119else 23120 if test x$gcc_no_link = xyes; then 23121 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 23122fi 23123cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23124/* end confdefs.h. */ 23125 23126#ifdef HAVE_COMPLEX_H 23127#include <complex.h> 23128#endif 23129#ifdef HAVE_MATH_H 23130#include <math.h> 23131#endif 23132 23133int (*ptr)() = (int (*)())ctanf; 23134 23135int 23136main () 23137{ 23138 return 0; 23139} 23140 23141_ACEOF 23142if ac_fn_c_try_link "$LINENO"; then : 23143 gcc_cv_math_func_ctanf=yes 23144else 23145 gcc_cv_math_func_ctanf=no 23146fi 23147rm -f core conftest.err conftest.$ac_objext \ 23148 conftest$ac_exeext conftest.$ac_ext 23149fi 23150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanf" >&5 23151$as_echo "$gcc_cv_math_func_ctanf" >&6; } 23152 if test $gcc_cv_math_func_ctanf = yes; then 23153 23154cat >>confdefs.h <<_ACEOF 23155#define HAVE_CTANF 1 23156_ACEOF 23157 23158 fi 23159 23160 23161 23162 23163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctan" >&5 23164$as_echo_n "checking for ctan... " >&6; } 23165if ${gcc_cv_math_func_ctan+:} false; then : 23166 $as_echo_n "(cached) " >&6 23167else 23168 if test x$gcc_no_link = xyes; then 23169 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 23170fi 23171cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23172/* end confdefs.h. */ 23173 23174#ifdef HAVE_COMPLEX_H 23175#include <complex.h> 23176#endif 23177#ifdef HAVE_MATH_H 23178#include <math.h> 23179#endif 23180 23181int (*ptr)() = (int (*)())ctan; 23182 23183int 23184main () 23185{ 23186 return 0; 23187} 23188 23189_ACEOF 23190if ac_fn_c_try_link "$LINENO"; then : 23191 gcc_cv_math_func_ctan=yes 23192else 23193 gcc_cv_math_func_ctan=no 23194fi 23195rm -f core conftest.err conftest.$ac_objext \ 23196 conftest$ac_exeext conftest.$ac_ext 23197fi 23198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctan" >&5 23199$as_echo "$gcc_cv_math_func_ctan" >&6; } 23200 if test $gcc_cv_math_func_ctan = yes; then 23201 23202cat >>confdefs.h <<_ACEOF 23203#define HAVE_CTAN 1 23204_ACEOF 23205 23206 fi 23207 23208 23209 23210 23211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanl" >&5 23212$as_echo_n "checking for ctanl... " >&6; } 23213if ${gcc_cv_math_func_ctanl+:} false; then : 23214 $as_echo_n "(cached) " >&6 23215else 23216 if test x$gcc_no_link = xyes; then 23217 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 23218fi 23219cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23220/* end confdefs.h. */ 23221 23222#ifdef HAVE_COMPLEX_H 23223#include <complex.h> 23224#endif 23225#ifdef HAVE_MATH_H 23226#include <math.h> 23227#endif 23228 23229int (*ptr)() = (int (*)())ctanl; 23230 23231int 23232main () 23233{ 23234 return 0; 23235} 23236 23237_ACEOF 23238if ac_fn_c_try_link "$LINENO"; then : 23239 gcc_cv_math_func_ctanl=yes 23240else 23241 gcc_cv_math_func_ctanl=no 23242fi 23243rm -f core conftest.err conftest.$ac_objext \ 23244 conftest$ac_exeext conftest.$ac_ext 23245fi 23246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanl" >&5 23247$as_echo "$gcc_cv_math_func_ctanl" >&6; } 23248 if test $gcc_cv_math_func_ctanl = yes; then 23249 23250cat >>confdefs.h <<_ACEOF 23251#define HAVE_CTANL 1 23252_ACEOF 23253 23254 fi 23255 23256 23257 23258 23259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhf" >&5 23260$as_echo_n "checking for tanhf... " >&6; } 23261if ${gcc_cv_math_func_tanhf+:} false; then : 23262 $as_echo_n "(cached) " >&6 23263else 23264 if test x$gcc_no_link = xyes; then 23265 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 23266fi 23267cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23268/* end confdefs.h. */ 23269 23270#ifdef HAVE_COMPLEX_H 23271#include <complex.h> 23272#endif 23273#ifdef HAVE_MATH_H 23274#include <math.h> 23275#endif 23276 23277int (*ptr)() = (int (*)())tanhf; 23278 23279int 23280main () 23281{ 23282 return 0; 23283} 23284 23285_ACEOF 23286if ac_fn_c_try_link "$LINENO"; then : 23287 gcc_cv_math_func_tanhf=yes 23288else 23289 gcc_cv_math_func_tanhf=no 23290fi 23291rm -f core conftest.err conftest.$ac_objext \ 23292 conftest$ac_exeext conftest.$ac_ext 23293fi 23294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhf" >&5 23295$as_echo "$gcc_cv_math_func_tanhf" >&6; } 23296 if test $gcc_cv_math_func_tanhf = yes; then 23297 23298cat >>confdefs.h <<_ACEOF 23299#define HAVE_TANHF 1 23300_ACEOF 23301 23302 fi 23303 23304 23305 23306 23307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanh" >&5 23308$as_echo_n "checking for tanh... " >&6; } 23309if ${gcc_cv_math_func_tanh+:} false; then : 23310 $as_echo_n "(cached) " >&6 23311else 23312 if test x$gcc_no_link = xyes; then 23313 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 23314fi 23315cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23316/* end confdefs.h. */ 23317 23318#ifdef HAVE_COMPLEX_H 23319#include <complex.h> 23320#endif 23321#ifdef HAVE_MATH_H 23322#include <math.h> 23323#endif 23324 23325int (*ptr)() = (int (*)())tanh; 23326 23327int 23328main () 23329{ 23330 return 0; 23331} 23332 23333_ACEOF 23334if ac_fn_c_try_link "$LINENO"; then : 23335 gcc_cv_math_func_tanh=yes 23336else 23337 gcc_cv_math_func_tanh=no 23338fi 23339rm -f core conftest.err conftest.$ac_objext \ 23340 conftest$ac_exeext conftest.$ac_ext 23341fi 23342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanh" >&5 23343$as_echo "$gcc_cv_math_func_tanh" >&6; } 23344 if test $gcc_cv_math_func_tanh = yes; then 23345 23346cat >>confdefs.h <<_ACEOF 23347#define HAVE_TANH 1 23348_ACEOF 23349 23350 fi 23351 23352 23353 23354 23355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhl" >&5 23356$as_echo_n "checking for tanhl... " >&6; } 23357if ${gcc_cv_math_func_tanhl+:} false; then : 23358 $as_echo_n "(cached) " >&6 23359else 23360 if test x$gcc_no_link = xyes; then 23361 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 23362fi 23363cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23364/* end confdefs.h. */ 23365 23366#ifdef HAVE_COMPLEX_H 23367#include <complex.h> 23368#endif 23369#ifdef HAVE_MATH_H 23370#include <math.h> 23371#endif 23372 23373int (*ptr)() = (int (*)())tanhl; 23374 23375int 23376main () 23377{ 23378 return 0; 23379} 23380 23381_ACEOF 23382if ac_fn_c_try_link "$LINENO"; then : 23383 gcc_cv_math_func_tanhl=yes 23384else 23385 gcc_cv_math_func_tanhl=no 23386fi 23387rm -f core conftest.err conftest.$ac_objext \ 23388 conftest$ac_exeext conftest.$ac_ext 23389fi 23390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhl" >&5 23391$as_echo "$gcc_cv_math_func_tanhl" >&6; } 23392 if test $gcc_cv_math_func_tanhl = yes; then 23393 23394cat >>confdefs.h <<_ACEOF 23395#define HAVE_TANHL 1 23396_ACEOF 23397 23398 fi 23399 23400 23401 23402 23403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhf" >&5 23404$as_echo_n "checking for ctanhf... " >&6; } 23405if ${gcc_cv_math_func_ctanhf+:} false; then : 23406 $as_echo_n "(cached) " >&6 23407else 23408 if test x$gcc_no_link = xyes; then 23409 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 23410fi 23411cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23412/* end confdefs.h. */ 23413 23414#ifdef HAVE_COMPLEX_H 23415#include <complex.h> 23416#endif 23417#ifdef HAVE_MATH_H 23418#include <math.h> 23419#endif 23420 23421int (*ptr)() = (int (*)())ctanhf; 23422 23423int 23424main () 23425{ 23426 return 0; 23427} 23428 23429_ACEOF 23430if ac_fn_c_try_link "$LINENO"; then : 23431 gcc_cv_math_func_ctanhf=yes 23432else 23433 gcc_cv_math_func_ctanhf=no 23434fi 23435rm -f core conftest.err conftest.$ac_objext \ 23436 conftest$ac_exeext conftest.$ac_ext 23437fi 23438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhf" >&5 23439$as_echo "$gcc_cv_math_func_ctanhf" >&6; } 23440 if test $gcc_cv_math_func_ctanhf = yes; then 23441 23442cat >>confdefs.h <<_ACEOF 23443#define HAVE_CTANHF 1 23444_ACEOF 23445 23446 fi 23447 23448 23449 23450 23451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanh" >&5 23452$as_echo_n "checking for ctanh... " >&6; } 23453if ${gcc_cv_math_func_ctanh+:} false; then : 23454 $as_echo_n "(cached) " >&6 23455else 23456 if test x$gcc_no_link = xyes; then 23457 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 23458fi 23459cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23460/* end confdefs.h. */ 23461 23462#ifdef HAVE_COMPLEX_H 23463#include <complex.h> 23464#endif 23465#ifdef HAVE_MATH_H 23466#include <math.h> 23467#endif 23468 23469int (*ptr)() = (int (*)())ctanh; 23470 23471int 23472main () 23473{ 23474 return 0; 23475} 23476 23477_ACEOF 23478if ac_fn_c_try_link "$LINENO"; then : 23479 gcc_cv_math_func_ctanh=yes 23480else 23481 gcc_cv_math_func_ctanh=no 23482fi 23483rm -f core conftest.err conftest.$ac_objext \ 23484 conftest$ac_exeext conftest.$ac_ext 23485fi 23486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanh" >&5 23487$as_echo "$gcc_cv_math_func_ctanh" >&6; } 23488 if test $gcc_cv_math_func_ctanh = yes; then 23489 23490cat >>confdefs.h <<_ACEOF 23491#define HAVE_CTANH 1 23492_ACEOF 23493 23494 fi 23495 23496 23497 23498 23499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhl" >&5 23500$as_echo_n "checking for ctanhl... " >&6; } 23501if ${gcc_cv_math_func_ctanhl+:} false; then : 23502 $as_echo_n "(cached) " >&6 23503else 23504 if test x$gcc_no_link = xyes; then 23505 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 23506fi 23507cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23508/* end confdefs.h. */ 23509 23510#ifdef HAVE_COMPLEX_H 23511#include <complex.h> 23512#endif 23513#ifdef HAVE_MATH_H 23514#include <math.h> 23515#endif 23516 23517int (*ptr)() = (int (*)())ctanhl; 23518 23519int 23520main () 23521{ 23522 return 0; 23523} 23524 23525_ACEOF 23526if ac_fn_c_try_link "$LINENO"; then : 23527 gcc_cv_math_func_ctanhl=yes 23528else 23529 gcc_cv_math_func_ctanhl=no 23530fi 23531rm -f core conftest.err conftest.$ac_objext \ 23532 conftest$ac_exeext conftest.$ac_ext 23533fi 23534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhl" >&5 23535$as_echo "$gcc_cv_math_func_ctanhl" >&6; } 23536 if test $gcc_cv_math_func_ctanhl = yes; then 23537 23538cat >>confdefs.h <<_ACEOF 23539#define HAVE_CTANHL 1 23540_ACEOF 23541 23542 fi 23543 23544 23545 23546 23547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncf" >&5 23548$as_echo_n "checking for truncf... " >&6; } 23549if ${gcc_cv_math_func_truncf+:} false; then : 23550 $as_echo_n "(cached) " >&6 23551else 23552 if test x$gcc_no_link = xyes; then 23553 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 23554fi 23555cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23556/* end confdefs.h. */ 23557 23558#ifdef HAVE_COMPLEX_H 23559#include <complex.h> 23560#endif 23561#ifdef HAVE_MATH_H 23562#include <math.h> 23563#endif 23564 23565int (*ptr)() = (int (*)())truncf; 23566 23567int 23568main () 23569{ 23570 return 0; 23571} 23572 23573_ACEOF 23574if ac_fn_c_try_link "$LINENO"; then : 23575 gcc_cv_math_func_truncf=yes 23576else 23577 gcc_cv_math_func_truncf=no 23578fi 23579rm -f core conftest.err conftest.$ac_objext \ 23580 conftest$ac_exeext conftest.$ac_ext 23581fi 23582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncf" >&5 23583$as_echo "$gcc_cv_math_func_truncf" >&6; } 23584 if test $gcc_cv_math_func_truncf = yes; then 23585 23586cat >>confdefs.h <<_ACEOF 23587#define HAVE_TRUNCF 1 23588_ACEOF 23589 23590 fi 23591 23592 23593 23594 23595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for trunc" >&5 23596$as_echo_n "checking for trunc... " >&6; } 23597if ${gcc_cv_math_func_trunc+:} false; then : 23598 $as_echo_n "(cached) " >&6 23599else 23600 if test x$gcc_no_link = xyes; then 23601 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 23602fi 23603cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23604/* end confdefs.h. */ 23605 23606#ifdef HAVE_COMPLEX_H 23607#include <complex.h> 23608#endif 23609#ifdef HAVE_MATH_H 23610#include <math.h> 23611#endif 23612 23613int (*ptr)() = (int (*)())trunc; 23614 23615int 23616main () 23617{ 23618 return 0; 23619} 23620 23621_ACEOF 23622if ac_fn_c_try_link "$LINENO"; then : 23623 gcc_cv_math_func_trunc=yes 23624else 23625 gcc_cv_math_func_trunc=no 23626fi 23627rm -f core conftest.err conftest.$ac_objext \ 23628 conftest$ac_exeext conftest.$ac_ext 23629fi 23630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_trunc" >&5 23631$as_echo "$gcc_cv_math_func_trunc" >&6; } 23632 if test $gcc_cv_math_func_trunc = yes; then 23633 23634cat >>confdefs.h <<_ACEOF 23635#define HAVE_TRUNC 1 23636_ACEOF 23637 23638 fi 23639 23640 23641 23642 23643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncl" >&5 23644$as_echo_n "checking for truncl... " >&6; } 23645if ${gcc_cv_math_func_truncl+:} false; then : 23646 $as_echo_n "(cached) " >&6 23647else 23648 if test x$gcc_no_link = xyes; then 23649 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 23650fi 23651cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23652/* end confdefs.h. */ 23653 23654#ifdef HAVE_COMPLEX_H 23655#include <complex.h> 23656#endif 23657#ifdef HAVE_MATH_H 23658#include <math.h> 23659#endif 23660 23661int (*ptr)() = (int (*)())truncl; 23662 23663int 23664main () 23665{ 23666 return 0; 23667} 23668 23669_ACEOF 23670if ac_fn_c_try_link "$LINENO"; then : 23671 gcc_cv_math_func_truncl=yes 23672else 23673 gcc_cv_math_func_truncl=no 23674fi 23675rm -f core conftest.err conftest.$ac_objext \ 23676 conftest$ac_exeext conftest.$ac_ext 23677fi 23678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncl" >&5 23679$as_echo "$gcc_cv_math_func_truncl" >&6; } 23680 if test $gcc_cv_math_func_truncl = yes; then 23681 23682cat >>confdefs.h <<_ACEOF 23683#define HAVE_TRUNCL 1 23684_ACEOF 23685 23686 fi 23687 23688 23689 23690 23691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erff" >&5 23692$as_echo_n "checking for erff... " >&6; } 23693if ${gcc_cv_math_func_erff+:} false; then : 23694 $as_echo_n "(cached) " >&6 23695else 23696 if test x$gcc_no_link = xyes; then 23697 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 23698fi 23699cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23700/* end confdefs.h. */ 23701 23702#ifdef HAVE_COMPLEX_H 23703#include <complex.h> 23704#endif 23705#ifdef HAVE_MATH_H 23706#include <math.h> 23707#endif 23708 23709int (*ptr)() = (int (*)())erff; 23710 23711int 23712main () 23713{ 23714 return 0; 23715} 23716 23717_ACEOF 23718if ac_fn_c_try_link "$LINENO"; then : 23719 gcc_cv_math_func_erff=yes 23720else 23721 gcc_cv_math_func_erff=no 23722fi 23723rm -f core conftest.err conftest.$ac_objext \ 23724 conftest$ac_exeext conftest.$ac_ext 23725fi 23726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erff" >&5 23727$as_echo "$gcc_cv_math_func_erff" >&6; } 23728 if test $gcc_cv_math_func_erff = yes; then 23729 23730cat >>confdefs.h <<_ACEOF 23731#define HAVE_ERFF 1 23732_ACEOF 23733 23734 fi 23735 23736 23737 23738 23739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erf" >&5 23740$as_echo_n "checking for erf... " >&6; } 23741if ${gcc_cv_math_func_erf+:} false; then : 23742 $as_echo_n "(cached) " >&6 23743else 23744 if test x$gcc_no_link = xyes; then 23745 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 23746fi 23747cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23748/* end confdefs.h. */ 23749 23750#ifdef HAVE_COMPLEX_H 23751#include <complex.h> 23752#endif 23753#ifdef HAVE_MATH_H 23754#include <math.h> 23755#endif 23756 23757int (*ptr)() = (int (*)())erf; 23758 23759int 23760main () 23761{ 23762 return 0; 23763} 23764 23765_ACEOF 23766if ac_fn_c_try_link "$LINENO"; then : 23767 gcc_cv_math_func_erf=yes 23768else 23769 gcc_cv_math_func_erf=no 23770fi 23771rm -f core conftest.err conftest.$ac_objext \ 23772 conftest$ac_exeext conftest.$ac_ext 23773fi 23774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erf" >&5 23775$as_echo "$gcc_cv_math_func_erf" >&6; } 23776 if test $gcc_cv_math_func_erf = yes; then 23777 23778cat >>confdefs.h <<_ACEOF 23779#define HAVE_ERF 1 23780_ACEOF 23781 23782 fi 23783 23784 23785 23786 23787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcf" >&5 23788$as_echo_n "checking for erfcf... " >&6; } 23789if ${gcc_cv_math_func_erfcf+:} false; then : 23790 $as_echo_n "(cached) " >&6 23791else 23792 if test x$gcc_no_link = xyes; then 23793 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 23794fi 23795cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23796/* end confdefs.h. */ 23797 23798#ifdef HAVE_COMPLEX_H 23799#include <complex.h> 23800#endif 23801#ifdef HAVE_MATH_H 23802#include <math.h> 23803#endif 23804 23805int (*ptr)() = (int (*)())erfcf; 23806 23807int 23808main () 23809{ 23810 return 0; 23811} 23812 23813_ACEOF 23814if ac_fn_c_try_link "$LINENO"; then : 23815 gcc_cv_math_func_erfcf=yes 23816else 23817 gcc_cv_math_func_erfcf=no 23818fi 23819rm -f core conftest.err conftest.$ac_objext \ 23820 conftest$ac_exeext conftest.$ac_ext 23821fi 23822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcf" >&5 23823$as_echo "$gcc_cv_math_func_erfcf" >&6; } 23824 if test $gcc_cv_math_func_erfcf = yes; then 23825 23826cat >>confdefs.h <<_ACEOF 23827#define HAVE_ERFCF 1 23828_ACEOF 23829 23830 fi 23831 23832 23833 23834 23835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfc" >&5 23836$as_echo_n "checking for erfc... " >&6; } 23837if ${gcc_cv_math_func_erfc+:} false; then : 23838 $as_echo_n "(cached) " >&6 23839else 23840 if test x$gcc_no_link = xyes; then 23841 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 23842fi 23843cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23844/* end confdefs.h. */ 23845 23846#ifdef HAVE_COMPLEX_H 23847#include <complex.h> 23848#endif 23849#ifdef HAVE_MATH_H 23850#include <math.h> 23851#endif 23852 23853int (*ptr)() = (int (*)())erfc; 23854 23855int 23856main () 23857{ 23858 return 0; 23859} 23860 23861_ACEOF 23862if ac_fn_c_try_link "$LINENO"; then : 23863 gcc_cv_math_func_erfc=yes 23864else 23865 gcc_cv_math_func_erfc=no 23866fi 23867rm -f core conftest.err conftest.$ac_objext \ 23868 conftest$ac_exeext conftest.$ac_ext 23869fi 23870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfc" >&5 23871$as_echo "$gcc_cv_math_func_erfc" >&6; } 23872 if test $gcc_cv_math_func_erfc = yes; then 23873 23874cat >>confdefs.h <<_ACEOF 23875#define HAVE_ERFC 1 23876_ACEOF 23877 23878 fi 23879 23880 23881 23882 23883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcl" >&5 23884$as_echo_n "checking for erfcl... " >&6; } 23885if ${gcc_cv_math_func_erfcl+:} false; then : 23886 $as_echo_n "(cached) " >&6 23887else 23888 if test x$gcc_no_link = xyes; then 23889 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 23890fi 23891cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23892/* end confdefs.h. */ 23893 23894#ifdef HAVE_COMPLEX_H 23895#include <complex.h> 23896#endif 23897#ifdef HAVE_MATH_H 23898#include <math.h> 23899#endif 23900 23901int (*ptr)() = (int (*)())erfcl; 23902 23903int 23904main () 23905{ 23906 return 0; 23907} 23908 23909_ACEOF 23910if ac_fn_c_try_link "$LINENO"; then : 23911 gcc_cv_math_func_erfcl=yes 23912else 23913 gcc_cv_math_func_erfcl=no 23914fi 23915rm -f core conftest.err conftest.$ac_objext \ 23916 conftest$ac_exeext conftest.$ac_ext 23917fi 23918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcl" >&5 23919$as_echo "$gcc_cv_math_func_erfcl" >&6; } 23920 if test $gcc_cv_math_func_erfcl = yes; then 23921 23922cat >>confdefs.h <<_ACEOF 23923#define HAVE_ERFCL 1 23924_ACEOF 23925 23926 fi 23927 23928 23929 23930 23931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0f" >&5 23932$as_echo_n "checking for j0f... " >&6; } 23933if ${gcc_cv_math_func_j0f+:} false; then : 23934 $as_echo_n "(cached) " >&6 23935else 23936 if test x$gcc_no_link = xyes; then 23937 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 23938fi 23939cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23940/* end confdefs.h. */ 23941 23942#ifdef HAVE_COMPLEX_H 23943#include <complex.h> 23944#endif 23945#ifdef HAVE_MATH_H 23946#include <math.h> 23947#endif 23948 23949int (*ptr)() = (int (*)())j0f; 23950 23951int 23952main () 23953{ 23954 return 0; 23955} 23956 23957_ACEOF 23958if ac_fn_c_try_link "$LINENO"; then : 23959 gcc_cv_math_func_j0f=yes 23960else 23961 gcc_cv_math_func_j0f=no 23962fi 23963rm -f core conftest.err conftest.$ac_objext \ 23964 conftest$ac_exeext conftest.$ac_ext 23965fi 23966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0f" >&5 23967$as_echo "$gcc_cv_math_func_j0f" >&6; } 23968 if test $gcc_cv_math_func_j0f = yes; then 23969 23970cat >>confdefs.h <<_ACEOF 23971#define HAVE_J0F 1 23972_ACEOF 23973 23974 fi 23975 23976 23977 23978 23979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0" >&5 23980$as_echo_n "checking for j0... " >&6; } 23981if ${gcc_cv_math_func_j0+:} false; then : 23982 $as_echo_n "(cached) " >&6 23983else 23984 if test x$gcc_no_link = xyes; then 23985 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 23986fi 23987cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23988/* end confdefs.h. */ 23989 23990#ifdef HAVE_COMPLEX_H 23991#include <complex.h> 23992#endif 23993#ifdef HAVE_MATH_H 23994#include <math.h> 23995#endif 23996 23997int (*ptr)() = (int (*)())j0; 23998 23999int 24000main () 24001{ 24002 return 0; 24003} 24004 24005_ACEOF 24006if ac_fn_c_try_link "$LINENO"; then : 24007 gcc_cv_math_func_j0=yes 24008else 24009 gcc_cv_math_func_j0=no 24010fi 24011rm -f core conftest.err conftest.$ac_objext \ 24012 conftest$ac_exeext conftest.$ac_ext 24013fi 24014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0" >&5 24015$as_echo "$gcc_cv_math_func_j0" >&6; } 24016 if test $gcc_cv_math_func_j0 = yes; then 24017 24018cat >>confdefs.h <<_ACEOF 24019#define HAVE_J0 1 24020_ACEOF 24021 24022 fi 24023 24024 24025 24026 24027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1f" >&5 24028$as_echo_n "checking for j1f... " >&6; } 24029if ${gcc_cv_math_func_j1f+:} false; then : 24030 $as_echo_n "(cached) " >&6 24031else 24032 if test x$gcc_no_link = xyes; then 24033 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 24034fi 24035cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24036/* end confdefs.h. */ 24037 24038#ifdef HAVE_COMPLEX_H 24039#include <complex.h> 24040#endif 24041#ifdef HAVE_MATH_H 24042#include <math.h> 24043#endif 24044 24045int (*ptr)() = (int (*)())j1f; 24046 24047int 24048main () 24049{ 24050 return 0; 24051} 24052 24053_ACEOF 24054if ac_fn_c_try_link "$LINENO"; then : 24055 gcc_cv_math_func_j1f=yes 24056else 24057 gcc_cv_math_func_j1f=no 24058fi 24059rm -f core conftest.err conftest.$ac_objext \ 24060 conftest$ac_exeext conftest.$ac_ext 24061fi 24062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1f" >&5 24063$as_echo "$gcc_cv_math_func_j1f" >&6; } 24064 if test $gcc_cv_math_func_j1f = yes; then 24065 24066cat >>confdefs.h <<_ACEOF 24067#define HAVE_J1F 1 24068_ACEOF 24069 24070 fi 24071 24072 24073 24074 24075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1" >&5 24076$as_echo_n "checking for j1... " >&6; } 24077if ${gcc_cv_math_func_j1+:} false; then : 24078 $as_echo_n "(cached) " >&6 24079else 24080 if test x$gcc_no_link = xyes; then 24081 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 24082fi 24083cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24084/* end confdefs.h. */ 24085 24086#ifdef HAVE_COMPLEX_H 24087#include <complex.h> 24088#endif 24089#ifdef HAVE_MATH_H 24090#include <math.h> 24091#endif 24092 24093int (*ptr)() = (int (*)())j1; 24094 24095int 24096main () 24097{ 24098 return 0; 24099} 24100 24101_ACEOF 24102if ac_fn_c_try_link "$LINENO"; then : 24103 gcc_cv_math_func_j1=yes 24104else 24105 gcc_cv_math_func_j1=no 24106fi 24107rm -f core conftest.err conftest.$ac_objext \ 24108 conftest$ac_exeext conftest.$ac_ext 24109fi 24110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1" >&5 24111$as_echo "$gcc_cv_math_func_j1" >&6; } 24112 if test $gcc_cv_math_func_j1 = yes; then 24113 24114cat >>confdefs.h <<_ACEOF 24115#define HAVE_J1 1 24116_ACEOF 24117 24118 fi 24119 24120 24121 24122 24123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnf" >&5 24124$as_echo_n "checking for jnf... " >&6; } 24125if ${gcc_cv_math_func_jnf+:} false; then : 24126 $as_echo_n "(cached) " >&6 24127else 24128 if test x$gcc_no_link = xyes; then 24129 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 24130fi 24131cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24132/* end confdefs.h. */ 24133 24134#ifdef HAVE_COMPLEX_H 24135#include <complex.h> 24136#endif 24137#ifdef HAVE_MATH_H 24138#include <math.h> 24139#endif 24140 24141int (*ptr)() = (int (*)())jnf; 24142 24143int 24144main () 24145{ 24146 return 0; 24147} 24148 24149_ACEOF 24150if ac_fn_c_try_link "$LINENO"; then : 24151 gcc_cv_math_func_jnf=yes 24152else 24153 gcc_cv_math_func_jnf=no 24154fi 24155rm -f core conftest.err conftest.$ac_objext \ 24156 conftest$ac_exeext conftest.$ac_ext 24157fi 24158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnf" >&5 24159$as_echo "$gcc_cv_math_func_jnf" >&6; } 24160 if test $gcc_cv_math_func_jnf = yes; then 24161 24162cat >>confdefs.h <<_ACEOF 24163#define HAVE_JNF 1 24164_ACEOF 24165 24166 fi 24167 24168 24169 24170 24171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jn" >&5 24172$as_echo_n "checking for jn... " >&6; } 24173if ${gcc_cv_math_func_jn+:} false; then : 24174 $as_echo_n "(cached) " >&6 24175else 24176 if test x$gcc_no_link = xyes; then 24177 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 24178fi 24179cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24180/* end confdefs.h. */ 24181 24182#ifdef HAVE_COMPLEX_H 24183#include <complex.h> 24184#endif 24185#ifdef HAVE_MATH_H 24186#include <math.h> 24187#endif 24188 24189int (*ptr)() = (int (*)())jn; 24190 24191int 24192main () 24193{ 24194 return 0; 24195} 24196 24197_ACEOF 24198if ac_fn_c_try_link "$LINENO"; then : 24199 gcc_cv_math_func_jn=yes 24200else 24201 gcc_cv_math_func_jn=no 24202fi 24203rm -f core conftest.err conftest.$ac_objext \ 24204 conftest$ac_exeext conftest.$ac_ext 24205fi 24206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jn" >&5 24207$as_echo "$gcc_cv_math_func_jn" >&6; } 24208 if test $gcc_cv_math_func_jn = yes; then 24209 24210cat >>confdefs.h <<_ACEOF 24211#define HAVE_JN 1 24212_ACEOF 24213 24214 fi 24215 24216 24217 24218 24219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnl" >&5 24220$as_echo_n "checking for jnl... " >&6; } 24221if ${gcc_cv_math_func_jnl+:} false; then : 24222 $as_echo_n "(cached) " >&6 24223else 24224 if test x$gcc_no_link = xyes; then 24225 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 24226fi 24227cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24228/* end confdefs.h. */ 24229 24230#ifdef HAVE_COMPLEX_H 24231#include <complex.h> 24232#endif 24233#ifdef HAVE_MATH_H 24234#include <math.h> 24235#endif 24236 24237int (*ptr)() = (int (*)())jnl; 24238 24239int 24240main () 24241{ 24242 return 0; 24243} 24244 24245_ACEOF 24246if ac_fn_c_try_link "$LINENO"; then : 24247 gcc_cv_math_func_jnl=yes 24248else 24249 gcc_cv_math_func_jnl=no 24250fi 24251rm -f core conftest.err conftest.$ac_objext \ 24252 conftest$ac_exeext conftest.$ac_ext 24253fi 24254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnl" >&5 24255$as_echo "$gcc_cv_math_func_jnl" >&6; } 24256 if test $gcc_cv_math_func_jnl = yes; then 24257 24258cat >>confdefs.h <<_ACEOF 24259#define HAVE_JNL 1 24260_ACEOF 24261 24262 fi 24263 24264 24265 24266 24267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0f" >&5 24268$as_echo_n "checking for y0f... " >&6; } 24269if ${gcc_cv_math_func_y0f+:} false; then : 24270 $as_echo_n "(cached) " >&6 24271else 24272 if test x$gcc_no_link = xyes; then 24273 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 24274fi 24275cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24276/* end confdefs.h. */ 24277 24278#ifdef HAVE_COMPLEX_H 24279#include <complex.h> 24280#endif 24281#ifdef HAVE_MATH_H 24282#include <math.h> 24283#endif 24284 24285int (*ptr)() = (int (*)())y0f; 24286 24287int 24288main () 24289{ 24290 return 0; 24291} 24292 24293_ACEOF 24294if ac_fn_c_try_link "$LINENO"; then : 24295 gcc_cv_math_func_y0f=yes 24296else 24297 gcc_cv_math_func_y0f=no 24298fi 24299rm -f core conftest.err conftest.$ac_objext \ 24300 conftest$ac_exeext conftest.$ac_ext 24301fi 24302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0f" >&5 24303$as_echo "$gcc_cv_math_func_y0f" >&6; } 24304 if test $gcc_cv_math_func_y0f = yes; then 24305 24306cat >>confdefs.h <<_ACEOF 24307#define HAVE_Y0F 1 24308_ACEOF 24309 24310 fi 24311 24312 24313 24314 24315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0" >&5 24316$as_echo_n "checking for y0... " >&6; } 24317if ${gcc_cv_math_func_y0+:} false; then : 24318 $as_echo_n "(cached) " >&6 24319else 24320 if test x$gcc_no_link = xyes; then 24321 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 24322fi 24323cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24324/* end confdefs.h. */ 24325 24326#ifdef HAVE_COMPLEX_H 24327#include <complex.h> 24328#endif 24329#ifdef HAVE_MATH_H 24330#include <math.h> 24331#endif 24332 24333int (*ptr)() = (int (*)())y0; 24334 24335int 24336main () 24337{ 24338 return 0; 24339} 24340 24341_ACEOF 24342if ac_fn_c_try_link "$LINENO"; then : 24343 gcc_cv_math_func_y0=yes 24344else 24345 gcc_cv_math_func_y0=no 24346fi 24347rm -f core conftest.err conftest.$ac_objext \ 24348 conftest$ac_exeext conftest.$ac_ext 24349fi 24350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0" >&5 24351$as_echo "$gcc_cv_math_func_y0" >&6; } 24352 if test $gcc_cv_math_func_y0 = yes; then 24353 24354cat >>confdefs.h <<_ACEOF 24355#define HAVE_Y0 1 24356_ACEOF 24357 24358 fi 24359 24360 24361 24362 24363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1f" >&5 24364$as_echo_n "checking for y1f... " >&6; } 24365if ${gcc_cv_math_func_y1f+:} false; then : 24366 $as_echo_n "(cached) " >&6 24367else 24368 if test x$gcc_no_link = xyes; then 24369 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 24370fi 24371cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24372/* end confdefs.h. */ 24373 24374#ifdef HAVE_COMPLEX_H 24375#include <complex.h> 24376#endif 24377#ifdef HAVE_MATH_H 24378#include <math.h> 24379#endif 24380 24381int (*ptr)() = (int (*)())y1f; 24382 24383int 24384main () 24385{ 24386 return 0; 24387} 24388 24389_ACEOF 24390if ac_fn_c_try_link "$LINENO"; then : 24391 gcc_cv_math_func_y1f=yes 24392else 24393 gcc_cv_math_func_y1f=no 24394fi 24395rm -f core conftest.err conftest.$ac_objext \ 24396 conftest$ac_exeext conftest.$ac_ext 24397fi 24398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1f" >&5 24399$as_echo "$gcc_cv_math_func_y1f" >&6; } 24400 if test $gcc_cv_math_func_y1f = yes; then 24401 24402cat >>confdefs.h <<_ACEOF 24403#define HAVE_Y1F 1 24404_ACEOF 24405 24406 fi 24407 24408 24409 24410 24411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1" >&5 24412$as_echo_n "checking for y1... " >&6; } 24413if ${gcc_cv_math_func_y1+:} false; then : 24414 $as_echo_n "(cached) " >&6 24415else 24416 if test x$gcc_no_link = xyes; then 24417 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 24418fi 24419cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24420/* end confdefs.h. */ 24421 24422#ifdef HAVE_COMPLEX_H 24423#include <complex.h> 24424#endif 24425#ifdef HAVE_MATH_H 24426#include <math.h> 24427#endif 24428 24429int (*ptr)() = (int (*)())y1; 24430 24431int 24432main () 24433{ 24434 return 0; 24435} 24436 24437_ACEOF 24438if ac_fn_c_try_link "$LINENO"; then : 24439 gcc_cv_math_func_y1=yes 24440else 24441 gcc_cv_math_func_y1=no 24442fi 24443rm -f core conftest.err conftest.$ac_objext \ 24444 conftest$ac_exeext conftest.$ac_ext 24445fi 24446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1" >&5 24447$as_echo "$gcc_cv_math_func_y1" >&6; } 24448 if test $gcc_cv_math_func_y1 = yes; then 24449 24450cat >>confdefs.h <<_ACEOF 24451#define HAVE_Y1 1 24452_ACEOF 24453 24454 fi 24455 24456 24457 24458 24459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynf" >&5 24460$as_echo_n "checking for ynf... " >&6; } 24461if ${gcc_cv_math_func_ynf+:} false; then : 24462 $as_echo_n "(cached) " >&6 24463else 24464 if test x$gcc_no_link = xyes; then 24465 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 24466fi 24467cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24468/* end confdefs.h. */ 24469 24470#ifdef HAVE_COMPLEX_H 24471#include <complex.h> 24472#endif 24473#ifdef HAVE_MATH_H 24474#include <math.h> 24475#endif 24476 24477int (*ptr)() = (int (*)())ynf; 24478 24479int 24480main () 24481{ 24482 return 0; 24483} 24484 24485_ACEOF 24486if ac_fn_c_try_link "$LINENO"; then : 24487 gcc_cv_math_func_ynf=yes 24488else 24489 gcc_cv_math_func_ynf=no 24490fi 24491rm -f core conftest.err conftest.$ac_objext \ 24492 conftest$ac_exeext conftest.$ac_ext 24493fi 24494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynf" >&5 24495$as_echo "$gcc_cv_math_func_ynf" >&6; } 24496 if test $gcc_cv_math_func_ynf = yes; then 24497 24498cat >>confdefs.h <<_ACEOF 24499#define HAVE_YNF 1 24500_ACEOF 24501 24502 fi 24503 24504 24505 24506 24507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yn" >&5 24508$as_echo_n "checking for yn... " >&6; } 24509if ${gcc_cv_math_func_yn+:} false; then : 24510 $as_echo_n "(cached) " >&6 24511else 24512 if test x$gcc_no_link = xyes; then 24513 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 24514fi 24515cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24516/* end confdefs.h. */ 24517 24518#ifdef HAVE_COMPLEX_H 24519#include <complex.h> 24520#endif 24521#ifdef HAVE_MATH_H 24522#include <math.h> 24523#endif 24524 24525int (*ptr)() = (int (*)())yn; 24526 24527int 24528main () 24529{ 24530 return 0; 24531} 24532 24533_ACEOF 24534if ac_fn_c_try_link "$LINENO"; then : 24535 gcc_cv_math_func_yn=yes 24536else 24537 gcc_cv_math_func_yn=no 24538fi 24539rm -f core conftest.err conftest.$ac_objext \ 24540 conftest$ac_exeext conftest.$ac_ext 24541fi 24542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_yn" >&5 24543$as_echo "$gcc_cv_math_func_yn" >&6; } 24544 if test $gcc_cv_math_func_yn = yes; then 24545 24546cat >>confdefs.h <<_ACEOF 24547#define HAVE_YN 1 24548_ACEOF 24549 24550 fi 24551 24552 24553 24554 24555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynl" >&5 24556$as_echo_n "checking for ynl... " >&6; } 24557if ${gcc_cv_math_func_ynl+:} false; then : 24558 $as_echo_n "(cached) " >&6 24559else 24560 if test x$gcc_no_link = xyes; then 24561 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 24562fi 24563cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24564/* end confdefs.h. */ 24565 24566#ifdef HAVE_COMPLEX_H 24567#include <complex.h> 24568#endif 24569#ifdef HAVE_MATH_H 24570#include <math.h> 24571#endif 24572 24573int (*ptr)() = (int (*)())ynl; 24574 24575int 24576main () 24577{ 24578 return 0; 24579} 24580 24581_ACEOF 24582if ac_fn_c_try_link "$LINENO"; then : 24583 gcc_cv_math_func_ynl=yes 24584else 24585 gcc_cv_math_func_ynl=no 24586fi 24587rm -f core conftest.err conftest.$ac_objext \ 24588 conftest$ac_exeext conftest.$ac_ext 24589fi 24590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynl" >&5 24591$as_echo "$gcc_cv_math_func_ynl" >&6; } 24592 if test $gcc_cv_math_func_ynl = yes; then 24593 24594cat >>confdefs.h <<_ACEOF 24595#define HAVE_YNL 1 24596_ACEOF 24597 24598 fi 24599 24600 24601 24602 24603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgamma" >&5 24604$as_echo_n "checking for tgamma... " >&6; } 24605if ${gcc_cv_math_func_tgamma+:} false; then : 24606 $as_echo_n "(cached) " >&6 24607else 24608 if test x$gcc_no_link = xyes; then 24609 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 24610fi 24611cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24612/* end confdefs.h. */ 24613 24614#ifdef HAVE_COMPLEX_H 24615#include <complex.h> 24616#endif 24617#ifdef HAVE_MATH_H 24618#include <math.h> 24619#endif 24620 24621int (*ptr)() = (int (*)())tgamma; 24622 24623int 24624main () 24625{ 24626 return 0; 24627} 24628 24629_ACEOF 24630if ac_fn_c_try_link "$LINENO"; then : 24631 gcc_cv_math_func_tgamma=yes 24632else 24633 gcc_cv_math_func_tgamma=no 24634fi 24635rm -f core conftest.err conftest.$ac_objext \ 24636 conftest$ac_exeext conftest.$ac_ext 24637fi 24638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgamma" >&5 24639$as_echo "$gcc_cv_math_func_tgamma" >&6; } 24640 if test $gcc_cv_math_func_tgamma = yes; then 24641 24642cat >>confdefs.h <<_ACEOF 24643#define HAVE_TGAMMA 1 24644_ACEOF 24645 24646 fi 24647 24648 24649 24650 24651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammaf" >&5 24652$as_echo_n "checking for tgammaf... " >&6; } 24653if ${gcc_cv_math_func_tgammaf+:} false; then : 24654 $as_echo_n "(cached) " >&6 24655else 24656 if test x$gcc_no_link = xyes; then 24657 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 24658fi 24659cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24660/* end confdefs.h. */ 24661 24662#ifdef HAVE_COMPLEX_H 24663#include <complex.h> 24664#endif 24665#ifdef HAVE_MATH_H 24666#include <math.h> 24667#endif 24668 24669int (*ptr)() = (int (*)())tgammaf; 24670 24671int 24672main () 24673{ 24674 return 0; 24675} 24676 24677_ACEOF 24678if ac_fn_c_try_link "$LINENO"; then : 24679 gcc_cv_math_func_tgammaf=yes 24680else 24681 gcc_cv_math_func_tgammaf=no 24682fi 24683rm -f core conftest.err conftest.$ac_objext \ 24684 conftest$ac_exeext conftest.$ac_ext 24685fi 24686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammaf" >&5 24687$as_echo "$gcc_cv_math_func_tgammaf" >&6; } 24688 if test $gcc_cv_math_func_tgammaf = yes; then 24689 24690cat >>confdefs.h <<_ACEOF 24691#define HAVE_TGAMMAF 1 24692_ACEOF 24693 24694 fi 24695 24696 24697 24698 24699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgamma" >&5 24700$as_echo_n "checking for lgamma... " >&6; } 24701if ${gcc_cv_math_func_lgamma+:} false; then : 24702 $as_echo_n "(cached) " >&6 24703else 24704 if test x$gcc_no_link = xyes; then 24705 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 24706fi 24707cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24708/* end confdefs.h. */ 24709 24710#ifdef HAVE_COMPLEX_H 24711#include <complex.h> 24712#endif 24713#ifdef HAVE_MATH_H 24714#include <math.h> 24715#endif 24716 24717int (*ptr)() = (int (*)())lgamma; 24718 24719int 24720main () 24721{ 24722 return 0; 24723} 24724 24725_ACEOF 24726if ac_fn_c_try_link "$LINENO"; then : 24727 gcc_cv_math_func_lgamma=yes 24728else 24729 gcc_cv_math_func_lgamma=no 24730fi 24731rm -f core conftest.err conftest.$ac_objext \ 24732 conftest$ac_exeext conftest.$ac_ext 24733fi 24734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgamma" >&5 24735$as_echo "$gcc_cv_math_func_lgamma" >&6; } 24736 if test $gcc_cv_math_func_lgamma = yes; then 24737 24738cat >>confdefs.h <<_ACEOF 24739#define HAVE_LGAMMA 1 24740_ACEOF 24741 24742 fi 24743 24744 24745 24746 24747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammaf" >&5 24748$as_echo_n "checking for lgammaf... " >&6; } 24749if ${gcc_cv_math_func_lgammaf+:} false; then : 24750 $as_echo_n "(cached) " >&6 24751else 24752 if test x$gcc_no_link = xyes; then 24753 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 24754fi 24755cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24756/* end confdefs.h. */ 24757 24758#ifdef HAVE_COMPLEX_H 24759#include <complex.h> 24760#endif 24761#ifdef HAVE_MATH_H 24762#include <math.h> 24763#endif 24764 24765int (*ptr)() = (int (*)())lgammaf; 24766 24767int 24768main () 24769{ 24770 return 0; 24771} 24772 24773_ACEOF 24774if ac_fn_c_try_link "$LINENO"; then : 24775 gcc_cv_math_func_lgammaf=yes 24776else 24777 gcc_cv_math_func_lgammaf=no 24778fi 24779rm -f core conftest.err conftest.$ac_objext \ 24780 conftest$ac_exeext conftest.$ac_ext 24781fi 24782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammaf" >&5 24783$as_echo "$gcc_cv_math_func_lgammaf" >&6; } 24784 if test $gcc_cv_math_func_lgammaf = yes; then 24785 24786cat >>confdefs.h <<_ACEOF 24787#define HAVE_LGAMMAF 1 24788_ACEOF 24789 24790 fi 24791 24792 24793# Check for GFORTRAN_C99_1.1 funcs 24794 24795 24796 24797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacos" >&5 24798$as_echo_n "checking for cacos... " >&6; } 24799if ${gcc_cv_math_func_cacos+:} false; then : 24800 $as_echo_n "(cached) " >&6 24801else 24802 if test x$gcc_no_link = xyes; then 24803 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 24804fi 24805cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24806/* end confdefs.h. */ 24807 24808#ifdef HAVE_COMPLEX_H 24809#include <complex.h> 24810#endif 24811#ifdef HAVE_MATH_H 24812#include <math.h> 24813#endif 24814 24815int (*ptr)() = (int (*)())cacos; 24816 24817int 24818main () 24819{ 24820 return 0; 24821} 24822 24823_ACEOF 24824if ac_fn_c_try_link "$LINENO"; then : 24825 gcc_cv_math_func_cacos=yes 24826else 24827 gcc_cv_math_func_cacos=no 24828fi 24829rm -f core conftest.err conftest.$ac_objext \ 24830 conftest$ac_exeext conftest.$ac_ext 24831fi 24832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacos" >&5 24833$as_echo "$gcc_cv_math_func_cacos" >&6; } 24834 if test $gcc_cv_math_func_cacos = yes; then 24835 24836cat >>confdefs.h <<_ACEOF 24837#define HAVE_CACOS 1 24838_ACEOF 24839 24840 fi 24841 24842 24843 24844 24845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosf" >&5 24846$as_echo_n "checking for cacosf... " >&6; } 24847if ${gcc_cv_math_func_cacosf+:} false; then : 24848 $as_echo_n "(cached) " >&6 24849else 24850 if test x$gcc_no_link = xyes; then 24851 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 24852fi 24853cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24854/* end confdefs.h. */ 24855 24856#ifdef HAVE_COMPLEX_H 24857#include <complex.h> 24858#endif 24859#ifdef HAVE_MATH_H 24860#include <math.h> 24861#endif 24862 24863int (*ptr)() = (int (*)())cacosf; 24864 24865int 24866main () 24867{ 24868 return 0; 24869} 24870 24871_ACEOF 24872if ac_fn_c_try_link "$LINENO"; then : 24873 gcc_cv_math_func_cacosf=yes 24874else 24875 gcc_cv_math_func_cacosf=no 24876fi 24877rm -f core conftest.err conftest.$ac_objext \ 24878 conftest$ac_exeext conftest.$ac_ext 24879fi 24880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosf" >&5 24881$as_echo "$gcc_cv_math_func_cacosf" >&6; } 24882 if test $gcc_cv_math_func_cacosf = yes; then 24883 24884cat >>confdefs.h <<_ACEOF 24885#define HAVE_CACOSF 1 24886_ACEOF 24887 24888 fi 24889 24890 24891 24892 24893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosh" >&5 24894$as_echo_n "checking for cacosh... " >&6; } 24895if ${gcc_cv_math_func_cacosh+:} false; then : 24896 $as_echo_n "(cached) " >&6 24897else 24898 if test x$gcc_no_link = xyes; then 24899 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 24900fi 24901cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24902/* end confdefs.h. */ 24903 24904#ifdef HAVE_COMPLEX_H 24905#include <complex.h> 24906#endif 24907#ifdef HAVE_MATH_H 24908#include <math.h> 24909#endif 24910 24911int (*ptr)() = (int (*)())cacosh; 24912 24913int 24914main () 24915{ 24916 return 0; 24917} 24918 24919_ACEOF 24920if ac_fn_c_try_link "$LINENO"; then : 24921 gcc_cv_math_func_cacosh=yes 24922else 24923 gcc_cv_math_func_cacosh=no 24924fi 24925rm -f core conftest.err conftest.$ac_objext \ 24926 conftest$ac_exeext conftest.$ac_ext 24927fi 24928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosh" >&5 24929$as_echo "$gcc_cv_math_func_cacosh" >&6; } 24930 if test $gcc_cv_math_func_cacosh = yes; then 24931 24932cat >>confdefs.h <<_ACEOF 24933#define HAVE_CACOSH 1 24934_ACEOF 24935 24936 fi 24937 24938 24939 24940 24941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshf" >&5 24942$as_echo_n "checking for cacoshf... " >&6; } 24943if ${gcc_cv_math_func_cacoshf+:} false; then : 24944 $as_echo_n "(cached) " >&6 24945else 24946 if test x$gcc_no_link = xyes; then 24947 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 24948fi 24949cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24950/* end confdefs.h. */ 24951 24952#ifdef HAVE_COMPLEX_H 24953#include <complex.h> 24954#endif 24955#ifdef HAVE_MATH_H 24956#include <math.h> 24957#endif 24958 24959int (*ptr)() = (int (*)())cacoshf; 24960 24961int 24962main () 24963{ 24964 return 0; 24965} 24966 24967_ACEOF 24968if ac_fn_c_try_link "$LINENO"; then : 24969 gcc_cv_math_func_cacoshf=yes 24970else 24971 gcc_cv_math_func_cacoshf=no 24972fi 24973rm -f core conftest.err conftest.$ac_objext \ 24974 conftest$ac_exeext conftest.$ac_ext 24975fi 24976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshf" >&5 24977$as_echo "$gcc_cv_math_func_cacoshf" >&6; } 24978 if test $gcc_cv_math_func_cacoshf = yes; then 24979 24980cat >>confdefs.h <<_ACEOF 24981#define HAVE_CACOSHF 1 24982_ACEOF 24983 24984 fi 24985 24986 24987 24988 24989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshl" >&5 24990$as_echo_n "checking for cacoshl... " >&6; } 24991if ${gcc_cv_math_func_cacoshl+:} false; then : 24992 $as_echo_n "(cached) " >&6 24993else 24994 if test x$gcc_no_link = xyes; then 24995 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 24996fi 24997cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24998/* end confdefs.h. */ 24999 25000#ifdef HAVE_COMPLEX_H 25001#include <complex.h> 25002#endif 25003#ifdef HAVE_MATH_H 25004#include <math.h> 25005#endif 25006 25007int (*ptr)() = (int (*)())cacoshl; 25008 25009int 25010main () 25011{ 25012 return 0; 25013} 25014 25015_ACEOF 25016if ac_fn_c_try_link "$LINENO"; then : 25017 gcc_cv_math_func_cacoshl=yes 25018else 25019 gcc_cv_math_func_cacoshl=no 25020fi 25021rm -f core conftest.err conftest.$ac_objext \ 25022 conftest$ac_exeext conftest.$ac_ext 25023fi 25024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshl" >&5 25025$as_echo "$gcc_cv_math_func_cacoshl" >&6; } 25026 if test $gcc_cv_math_func_cacoshl = yes; then 25027 25028cat >>confdefs.h <<_ACEOF 25029#define HAVE_CACOSHL 1 25030_ACEOF 25031 25032 fi 25033 25034 25035 25036 25037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosl" >&5 25038$as_echo_n "checking for cacosl... " >&6; } 25039if ${gcc_cv_math_func_cacosl+:} false; then : 25040 $as_echo_n "(cached) " >&6 25041else 25042 if test x$gcc_no_link = xyes; then 25043 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 25044fi 25045cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25046/* end confdefs.h. */ 25047 25048#ifdef HAVE_COMPLEX_H 25049#include <complex.h> 25050#endif 25051#ifdef HAVE_MATH_H 25052#include <math.h> 25053#endif 25054 25055int (*ptr)() = (int (*)())cacosl; 25056 25057int 25058main () 25059{ 25060 return 0; 25061} 25062 25063_ACEOF 25064if ac_fn_c_try_link "$LINENO"; then : 25065 gcc_cv_math_func_cacosl=yes 25066else 25067 gcc_cv_math_func_cacosl=no 25068fi 25069rm -f core conftest.err conftest.$ac_objext \ 25070 conftest$ac_exeext conftest.$ac_ext 25071fi 25072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosl" >&5 25073$as_echo "$gcc_cv_math_func_cacosl" >&6; } 25074 if test $gcc_cv_math_func_cacosl = yes; then 25075 25076cat >>confdefs.h <<_ACEOF 25077#define HAVE_CACOSL 1 25078_ACEOF 25079 25080 fi 25081 25082 25083 25084 25085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casin" >&5 25086$as_echo_n "checking for casin... " >&6; } 25087if ${gcc_cv_math_func_casin+:} false; then : 25088 $as_echo_n "(cached) " >&6 25089else 25090 if test x$gcc_no_link = xyes; then 25091 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 25092fi 25093cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25094/* end confdefs.h. */ 25095 25096#ifdef HAVE_COMPLEX_H 25097#include <complex.h> 25098#endif 25099#ifdef HAVE_MATH_H 25100#include <math.h> 25101#endif 25102 25103int (*ptr)() = (int (*)())casin; 25104 25105int 25106main () 25107{ 25108 return 0; 25109} 25110 25111_ACEOF 25112if ac_fn_c_try_link "$LINENO"; then : 25113 gcc_cv_math_func_casin=yes 25114else 25115 gcc_cv_math_func_casin=no 25116fi 25117rm -f core conftest.err conftest.$ac_objext \ 25118 conftest$ac_exeext conftest.$ac_ext 25119fi 25120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casin" >&5 25121$as_echo "$gcc_cv_math_func_casin" >&6; } 25122 if test $gcc_cv_math_func_casin = yes; then 25123 25124cat >>confdefs.h <<_ACEOF 25125#define HAVE_CASIN 1 25126_ACEOF 25127 25128 fi 25129 25130 25131 25132 25133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinf" >&5 25134$as_echo_n "checking for casinf... " >&6; } 25135if ${gcc_cv_math_func_casinf+:} false; then : 25136 $as_echo_n "(cached) " >&6 25137else 25138 if test x$gcc_no_link = xyes; then 25139 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 25140fi 25141cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25142/* end confdefs.h. */ 25143 25144#ifdef HAVE_COMPLEX_H 25145#include <complex.h> 25146#endif 25147#ifdef HAVE_MATH_H 25148#include <math.h> 25149#endif 25150 25151int (*ptr)() = (int (*)())casinf; 25152 25153int 25154main () 25155{ 25156 return 0; 25157} 25158 25159_ACEOF 25160if ac_fn_c_try_link "$LINENO"; then : 25161 gcc_cv_math_func_casinf=yes 25162else 25163 gcc_cv_math_func_casinf=no 25164fi 25165rm -f core conftest.err conftest.$ac_objext \ 25166 conftest$ac_exeext conftest.$ac_ext 25167fi 25168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinf" >&5 25169$as_echo "$gcc_cv_math_func_casinf" >&6; } 25170 if test $gcc_cv_math_func_casinf = yes; then 25171 25172cat >>confdefs.h <<_ACEOF 25173#define HAVE_CASINF 1 25174_ACEOF 25175 25176 fi 25177 25178 25179 25180 25181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinh" >&5 25182$as_echo_n "checking for casinh... " >&6; } 25183if ${gcc_cv_math_func_casinh+:} false; then : 25184 $as_echo_n "(cached) " >&6 25185else 25186 if test x$gcc_no_link = xyes; then 25187 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 25188fi 25189cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25190/* end confdefs.h. */ 25191 25192#ifdef HAVE_COMPLEX_H 25193#include <complex.h> 25194#endif 25195#ifdef HAVE_MATH_H 25196#include <math.h> 25197#endif 25198 25199int (*ptr)() = (int (*)())casinh; 25200 25201int 25202main () 25203{ 25204 return 0; 25205} 25206 25207_ACEOF 25208if ac_fn_c_try_link "$LINENO"; then : 25209 gcc_cv_math_func_casinh=yes 25210else 25211 gcc_cv_math_func_casinh=no 25212fi 25213rm -f core conftest.err conftest.$ac_objext \ 25214 conftest$ac_exeext conftest.$ac_ext 25215fi 25216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinh" >&5 25217$as_echo "$gcc_cv_math_func_casinh" >&6; } 25218 if test $gcc_cv_math_func_casinh = yes; then 25219 25220cat >>confdefs.h <<_ACEOF 25221#define HAVE_CASINH 1 25222_ACEOF 25223 25224 fi 25225 25226 25227 25228 25229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhf" >&5 25230$as_echo_n "checking for casinhf... " >&6; } 25231if ${gcc_cv_math_func_casinhf+:} false; then : 25232 $as_echo_n "(cached) " >&6 25233else 25234 if test x$gcc_no_link = xyes; then 25235 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 25236fi 25237cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25238/* end confdefs.h. */ 25239 25240#ifdef HAVE_COMPLEX_H 25241#include <complex.h> 25242#endif 25243#ifdef HAVE_MATH_H 25244#include <math.h> 25245#endif 25246 25247int (*ptr)() = (int (*)())casinhf; 25248 25249int 25250main () 25251{ 25252 return 0; 25253} 25254 25255_ACEOF 25256if ac_fn_c_try_link "$LINENO"; then : 25257 gcc_cv_math_func_casinhf=yes 25258else 25259 gcc_cv_math_func_casinhf=no 25260fi 25261rm -f core conftest.err conftest.$ac_objext \ 25262 conftest$ac_exeext conftest.$ac_ext 25263fi 25264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhf" >&5 25265$as_echo "$gcc_cv_math_func_casinhf" >&6; } 25266 if test $gcc_cv_math_func_casinhf = yes; then 25267 25268cat >>confdefs.h <<_ACEOF 25269#define HAVE_CASINHF 1 25270_ACEOF 25271 25272 fi 25273 25274 25275 25276 25277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhl" >&5 25278$as_echo_n "checking for casinhl... " >&6; } 25279if ${gcc_cv_math_func_casinhl+:} false; then : 25280 $as_echo_n "(cached) " >&6 25281else 25282 if test x$gcc_no_link = xyes; then 25283 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 25284fi 25285cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25286/* end confdefs.h. */ 25287 25288#ifdef HAVE_COMPLEX_H 25289#include <complex.h> 25290#endif 25291#ifdef HAVE_MATH_H 25292#include <math.h> 25293#endif 25294 25295int (*ptr)() = (int (*)())casinhl; 25296 25297int 25298main () 25299{ 25300 return 0; 25301} 25302 25303_ACEOF 25304if ac_fn_c_try_link "$LINENO"; then : 25305 gcc_cv_math_func_casinhl=yes 25306else 25307 gcc_cv_math_func_casinhl=no 25308fi 25309rm -f core conftest.err conftest.$ac_objext \ 25310 conftest$ac_exeext conftest.$ac_ext 25311fi 25312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhl" >&5 25313$as_echo "$gcc_cv_math_func_casinhl" >&6; } 25314 if test $gcc_cv_math_func_casinhl = yes; then 25315 25316cat >>confdefs.h <<_ACEOF 25317#define HAVE_CASINHL 1 25318_ACEOF 25319 25320 fi 25321 25322 25323 25324 25325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinl" >&5 25326$as_echo_n "checking for casinl... " >&6; } 25327if ${gcc_cv_math_func_casinl+:} false; then : 25328 $as_echo_n "(cached) " >&6 25329else 25330 if test x$gcc_no_link = xyes; then 25331 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 25332fi 25333cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25334/* end confdefs.h. */ 25335 25336#ifdef HAVE_COMPLEX_H 25337#include <complex.h> 25338#endif 25339#ifdef HAVE_MATH_H 25340#include <math.h> 25341#endif 25342 25343int (*ptr)() = (int (*)())casinl; 25344 25345int 25346main () 25347{ 25348 return 0; 25349} 25350 25351_ACEOF 25352if ac_fn_c_try_link "$LINENO"; then : 25353 gcc_cv_math_func_casinl=yes 25354else 25355 gcc_cv_math_func_casinl=no 25356fi 25357rm -f core conftest.err conftest.$ac_objext \ 25358 conftest$ac_exeext conftest.$ac_ext 25359fi 25360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinl" >&5 25361$as_echo "$gcc_cv_math_func_casinl" >&6; } 25362 if test $gcc_cv_math_func_casinl = yes; then 25363 25364cat >>confdefs.h <<_ACEOF 25365#define HAVE_CASINL 1 25366_ACEOF 25367 25368 fi 25369 25370 25371 25372 25373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catan" >&5 25374$as_echo_n "checking for catan... " >&6; } 25375if ${gcc_cv_math_func_catan+:} false; then : 25376 $as_echo_n "(cached) " >&6 25377else 25378 if test x$gcc_no_link = xyes; then 25379 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 25380fi 25381cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25382/* end confdefs.h. */ 25383 25384#ifdef HAVE_COMPLEX_H 25385#include <complex.h> 25386#endif 25387#ifdef HAVE_MATH_H 25388#include <math.h> 25389#endif 25390 25391int (*ptr)() = (int (*)())catan; 25392 25393int 25394main () 25395{ 25396 return 0; 25397} 25398 25399_ACEOF 25400if ac_fn_c_try_link "$LINENO"; then : 25401 gcc_cv_math_func_catan=yes 25402else 25403 gcc_cv_math_func_catan=no 25404fi 25405rm -f core conftest.err conftest.$ac_objext \ 25406 conftest$ac_exeext conftest.$ac_ext 25407fi 25408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catan" >&5 25409$as_echo "$gcc_cv_math_func_catan" >&6; } 25410 if test $gcc_cv_math_func_catan = yes; then 25411 25412cat >>confdefs.h <<_ACEOF 25413#define HAVE_CATAN 1 25414_ACEOF 25415 25416 fi 25417 25418 25419 25420 25421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanf" >&5 25422$as_echo_n "checking for catanf... " >&6; } 25423if ${gcc_cv_math_func_catanf+:} false; then : 25424 $as_echo_n "(cached) " >&6 25425else 25426 if test x$gcc_no_link = xyes; then 25427 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 25428fi 25429cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25430/* end confdefs.h. */ 25431 25432#ifdef HAVE_COMPLEX_H 25433#include <complex.h> 25434#endif 25435#ifdef HAVE_MATH_H 25436#include <math.h> 25437#endif 25438 25439int (*ptr)() = (int (*)())catanf; 25440 25441int 25442main () 25443{ 25444 return 0; 25445} 25446 25447_ACEOF 25448if ac_fn_c_try_link "$LINENO"; then : 25449 gcc_cv_math_func_catanf=yes 25450else 25451 gcc_cv_math_func_catanf=no 25452fi 25453rm -f core conftest.err conftest.$ac_objext \ 25454 conftest$ac_exeext conftest.$ac_ext 25455fi 25456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanf" >&5 25457$as_echo "$gcc_cv_math_func_catanf" >&6; } 25458 if test $gcc_cv_math_func_catanf = yes; then 25459 25460cat >>confdefs.h <<_ACEOF 25461#define HAVE_CATANF 1 25462_ACEOF 25463 25464 fi 25465 25466 25467 25468 25469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanh" >&5 25470$as_echo_n "checking for catanh... " >&6; } 25471if ${gcc_cv_math_func_catanh+:} false; then : 25472 $as_echo_n "(cached) " >&6 25473else 25474 if test x$gcc_no_link = xyes; then 25475 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 25476fi 25477cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25478/* end confdefs.h. */ 25479 25480#ifdef HAVE_COMPLEX_H 25481#include <complex.h> 25482#endif 25483#ifdef HAVE_MATH_H 25484#include <math.h> 25485#endif 25486 25487int (*ptr)() = (int (*)())catanh; 25488 25489int 25490main () 25491{ 25492 return 0; 25493} 25494 25495_ACEOF 25496if ac_fn_c_try_link "$LINENO"; then : 25497 gcc_cv_math_func_catanh=yes 25498else 25499 gcc_cv_math_func_catanh=no 25500fi 25501rm -f core conftest.err conftest.$ac_objext \ 25502 conftest$ac_exeext conftest.$ac_ext 25503fi 25504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanh" >&5 25505$as_echo "$gcc_cv_math_func_catanh" >&6; } 25506 if test $gcc_cv_math_func_catanh = yes; then 25507 25508cat >>confdefs.h <<_ACEOF 25509#define HAVE_CATANH 1 25510_ACEOF 25511 25512 fi 25513 25514 25515 25516 25517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhf" >&5 25518$as_echo_n "checking for catanhf... " >&6; } 25519if ${gcc_cv_math_func_catanhf+:} false; then : 25520 $as_echo_n "(cached) " >&6 25521else 25522 if test x$gcc_no_link = xyes; then 25523 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 25524fi 25525cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25526/* end confdefs.h. */ 25527 25528#ifdef HAVE_COMPLEX_H 25529#include <complex.h> 25530#endif 25531#ifdef HAVE_MATH_H 25532#include <math.h> 25533#endif 25534 25535int (*ptr)() = (int (*)())catanhf; 25536 25537int 25538main () 25539{ 25540 return 0; 25541} 25542 25543_ACEOF 25544if ac_fn_c_try_link "$LINENO"; then : 25545 gcc_cv_math_func_catanhf=yes 25546else 25547 gcc_cv_math_func_catanhf=no 25548fi 25549rm -f core conftest.err conftest.$ac_objext \ 25550 conftest$ac_exeext conftest.$ac_ext 25551fi 25552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhf" >&5 25553$as_echo "$gcc_cv_math_func_catanhf" >&6; } 25554 if test $gcc_cv_math_func_catanhf = yes; then 25555 25556cat >>confdefs.h <<_ACEOF 25557#define HAVE_CATANHF 1 25558_ACEOF 25559 25560 fi 25561 25562 25563 25564 25565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhl" >&5 25566$as_echo_n "checking for catanhl... " >&6; } 25567if ${gcc_cv_math_func_catanhl+:} false; then : 25568 $as_echo_n "(cached) " >&6 25569else 25570 if test x$gcc_no_link = xyes; then 25571 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 25572fi 25573cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25574/* end confdefs.h. */ 25575 25576#ifdef HAVE_COMPLEX_H 25577#include <complex.h> 25578#endif 25579#ifdef HAVE_MATH_H 25580#include <math.h> 25581#endif 25582 25583int (*ptr)() = (int (*)())catanhl; 25584 25585int 25586main () 25587{ 25588 return 0; 25589} 25590 25591_ACEOF 25592if ac_fn_c_try_link "$LINENO"; then : 25593 gcc_cv_math_func_catanhl=yes 25594else 25595 gcc_cv_math_func_catanhl=no 25596fi 25597rm -f core conftest.err conftest.$ac_objext \ 25598 conftest$ac_exeext conftest.$ac_ext 25599fi 25600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhl" >&5 25601$as_echo "$gcc_cv_math_func_catanhl" >&6; } 25602 if test $gcc_cv_math_func_catanhl = yes; then 25603 25604cat >>confdefs.h <<_ACEOF 25605#define HAVE_CATANHL 1 25606_ACEOF 25607 25608 fi 25609 25610 25611 25612 25613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanl" >&5 25614$as_echo_n "checking for catanl... " >&6; } 25615if ${gcc_cv_math_func_catanl+:} false; then : 25616 $as_echo_n "(cached) " >&6 25617else 25618 if test x$gcc_no_link = xyes; then 25619 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 25620fi 25621cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25622/* end confdefs.h. */ 25623 25624#ifdef HAVE_COMPLEX_H 25625#include <complex.h> 25626#endif 25627#ifdef HAVE_MATH_H 25628#include <math.h> 25629#endif 25630 25631int (*ptr)() = (int (*)())catanl; 25632 25633int 25634main () 25635{ 25636 return 0; 25637} 25638 25639_ACEOF 25640if ac_fn_c_try_link "$LINENO"; then : 25641 gcc_cv_math_func_catanl=yes 25642else 25643 gcc_cv_math_func_catanl=no 25644fi 25645rm -f core conftest.err conftest.$ac_objext \ 25646 conftest$ac_exeext conftest.$ac_ext 25647fi 25648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanl" >&5 25649$as_echo "$gcc_cv_math_func_catanl" >&6; } 25650 if test $gcc_cv_math_func_catanl = yes; then 25651 25652cat >>confdefs.h <<_ACEOF 25653#define HAVE_CATANL 1 25654_ACEOF 25655 25656 fi 25657 25658 25659# On AIX, clog is present in libm as __clog 25660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __clog in -lm" >&5 25661$as_echo_n "checking for __clog in -lm... " >&6; } 25662if ${ac_cv_lib_m___clog+:} false; then : 25663 $as_echo_n "(cached) " >&6 25664else 25665 ac_check_lib_save_LIBS=$LIBS 25666LIBS="-lm $LIBS" 25667if test x$gcc_no_link = xyes; then 25668 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 25669fi 25670cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25671/* end confdefs.h. */ 25672 25673/* Override any GCC internal prototype to avoid an error. 25674 Use char because int might match the return type of a GCC 25675 builtin and then its argument prototype would still apply. */ 25676#ifdef __cplusplus 25677extern "C" 25678#endif 25679char __clog (); 25680int 25681main () 25682{ 25683return __clog (); 25684 ; 25685 return 0; 25686} 25687_ACEOF 25688if ac_fn_c_try_link "$LINENO"; then : 25689 ac_cv_lib_m___clog=yes 25690else 25691 ac_cv_lib_m___clog=no 25692fi 25693rm -f core conftest.err conftest.$ac_objext \ 25694 conftest$ac_exeext conftest.$ac_ext 25695LIBS=$ac_check_lib_save_LIBS 25696fi 25697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m___clog" >&5 25698$as_echo "$ac_cv_lib_m___clog" >&6; } 25699if test "x$ac_cv_lib_m___clog" = xyes; then : 25700 25701$as_echo "#define HAVE_CLOG 1" >>confdefs.h 25702 25703fi 25704 25705 25706 25707 25708if test $gcc_cv_math_func_copysign = no; then 25709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_copysign" >&5 25710$as_echo_n "checking for inline __builtin_copysign... " >&6; } 25711if ${gcc_cv_math_inline_builtin_copysign+:} false; then : 25712 $as_echo_n "(cached) " >&6 25713else 25714 if test x$gcc_no_link = xyes; then 25715 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 25716fi 25717cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25718/* end confdefs.h. */ 25719 25720double 25721copysign_fallback (double x, double y) 25722{ 25723 return __builtin_copysign (x, y); 25724} 25725 25726int 25727main () 25728{ 25729 return 0; 25730} 25731 25732_ACEOF 25733if ac_fn_c_try_link "$LINENO"; then : 25734 gcc_cv_math_inline_builtin_copysign=yes 25735else 25736 gcc_cv_math_inline_builtin_copysign=no 25737fi 25738rm -f core conftest.err conftest.$ac_objext \ 25739 conftest$ac_exeext conftest.$ac_ext 25740fi 25741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_copysign" >&5 25742$as_echo "$gcc_cv_math_inline_builtin_copysign" >&6; } 25743 if test $gcc_cv_math_inline_builtin_copysign = yes; then 25744 25745cat >>confdefs.h <<_ACEOF 25746#define HAVE_INLINE_BUILTIN_COPYSIGN 1 25747_ACEOF 25748 25749 fi 25750fi 25751 25752 25753if test $gcc_cv_math_func_copysignl = no; then 25754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_copysignl" >&5 25755$as_echo_n "checking for inline __builtin_copysignl... " >&6; } 25756if ${gcc_cv_math_inline_builtin_copysignl+:} false; then : 25757 $as_echo_n "(cached) " >&6 25758else 25759 if test x$gcc_no_link = xyes; then 25760 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 25761fi 25762cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25763/* end confdefs.h. */ 25764 25765long double 25766copysignl_fallback (long double x, long double y) 25767{ 25768 return __builtin_copysignl (x, y); 25769} 25770 25771int 25772main () 25773{ 25774 return 0; 25775} 25776 25777_ACEOF 25778if ac_fn_c_try_link "$LINENO"; then : 25779 gcc_cv_math_inline_builtin_copysignl=yes 25780else 25781 gcc_cv_math_inline_builtin_copysignl=no 25782fi 25783rm -f core conftest.err conftest.$ac_objext \ 25784 conftest$ac_exeext conftest.$ac_ext 25785fi 25786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_copysignl" >&5 25787$as_echo "$gcc_cv_math_inline_builtin_copysignl" >&6; } 25788 if test $gcc_cv_math_inline_builtin_copysignl = yes; then 25789 25790cat >>confdefs.h <<_ACEOF 25791#define HAVE_INLINE_BUILTIN_COPYSIGNL 1 25792_ACEOF 25793 25794 fi 25795fi 25796 25797 25798if test $gcc_cv_math_func_fabs = no; then 25799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_fabs" >&5 25800$as_echo_n "checking for inline __builtin_fabs... " >&6; } 25801if ${gcc_cv_math_inline_builtin_fabs+:} false; then : 25802 $as_echo_n "(cached) " >&6 25803else 25804 if test x$gcc_no_link = xyes; then 25805 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 25806fi 25807cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25808/* end confdefs.h. */ 25809 25810double 25811fabs_fallback (double x) 25812{ 25813 return __builtin_fabs (x); 25814} 25815 25816int 25817main () 25818{ 25819 return 0; 25820} 25821 25822_ACEOF 25823if ac_fn_c_try_link "$LINENO"; then : 25824 gcc_cv_math_inline_builtin_fabs=yes 25825else 25826 gcc_cv_math_inline_builtin_fabs=no 25827fi 25828rm -f core conftest.err conftest.$ac_objext \ 25829 conftest$ac_exeext conftest.$ac_ext 25830fi 25831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_fabs" >&5 25832$as_echo "$gcc_cv_math_inline_builtin_fabs" >&6; } 25833 if test $gcc_cv_math_inline_builtin_fabs = yes; then 25834 25835cat >>confdefs.h <<_ACEOF 25836#define HAVE_INLINE_BUILTIN_FABS 1 25837_ACEOF 25838 25839 fi 25840fi 25841 25842 25843if test $gcc_cv_math_func_fabsl = no; then 25844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_fabsl" >&5 25845$as_echo_n "checking for inline __builtin_fabsl... " >&6; } 25846if ${gcc_cv_math_inline_builtin_fabsl+:} false; then : 25847 $as_echo_n "(cached) " >&6 25848else 25849 if test x$gcc_no_link = xyes; then 25850 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 25851fi 25852cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25853/* end confdefs.h. */ 25854 25855long double 25856fabsl_fallback (long double x) 25857{ 25858 return __builtin_fabsl (x); 25859} 25860 25861int 25862main () 25863{ 25864 return 0; 25865} 25866 25867_ACEOF 25868if ac_fn_c_try_link "$LINENO"; then : 25869 gcc_cv_math_inline_builtin_fabsl=yes 25870else 25871 gcc_cv_math_inline_builtin_fabsl=no 25872fi 25873rm -f core conftest.err conftest.$ac_objext \ 25874 conftest$ac_exeext conftest.$ac_ext 25875fi 25876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_fabsl" >&5 25877$as_echo "$gcc_cv_math_inline_builtin_fabsl" >&6; } 25878 if test $gcc_cv_math_inline_builtin_fabsl = yes; then 25879 25880cat >>confdefs.h <<_ACEOF 25881#define HAVE_INLINE_BUILTIN_FABSL 1 25882_ACEOF 25883 25884 fi 25885fi 25886 25887# Check whether the system has a working stat() 25888 25889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target stat is reliable" >&5 25890$as_echo_n "checking whether the target stat is reliable... " >&6; } 25891if ${libgfor_cv_have_working_stat+:} false; then : 25892 $as_echo_n "(cached) " >&6 25893else 25894 25895 if test "$cross_compiling" = yes; then : 25896 25897case "${target}" in 25898 *mingw*) libgfor_cv_have_working_stat=no ;; 25899 *) libgfor_cv_have_working_stat=yes;; 25900esac 25901else 25902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25903/* end confdefs.h. */ 25904 25905#include <stdio.h> 25906#include <sys/types.h> 25907#include <sys/stat.h> 25908#include <unistd.h> 25909 25910int main () 25911{ 25912 FILE *f, *g; 25913 struct stat st1, st2; 25914 25915 f = fopen ("foo", "w"); 25916 g = fopen ("bar", "w"); 25917 if (stat ("foo", &st1) != 0 || stat ("bar", &st2)) 25918 return 1; 25919 if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino) 25920 return 1; 25921 fclose(f); 25922 fclose(g); 25923 return 0; 25924} 25925_ACEOF 25926if ac_fn_c_try_run "$LINENO"; then : 25927 libgfor_cv_have_working_stat=yes 25928else 25929 libgfor_cv_have_working_stat=no 25930fi 25931rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25932 conftest.$ac_objext conftest.beam conftest.$ac_ext 25933fi 25934 25935fi 25936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_working_stat" >&5 25937$as_echo "$libgfor_cv_have_working_stat" >&6; } 25938if test x"$libgfor_cv_have_working_stat" = xyes; then 25939 25940$as_echo "#define HAVE_WORKING_STAT 1" >>confdefs.h 25941 25942fi 25943 25944# Check whether __mingw_snprintf() is present 25945 25946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __mingw_snprintf is present" >&5 25947$as_echo_n "checking whether __mingw_snprintf is present... " >&6; } 25948if ${libgfor_cv_have_mingw_snprintf+:} false; then : 25949 $as_echo_n "(cached) " >&6 25950else 25951 25952 if test x$gcc_no_link = xyes; then 25953 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 25954fi 25955cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25956/* end confdefs.h. */ 25957 25958#include <stdio.h> 25959extern int __mingw_snprintf (char *, size_t, const char *, ...); 25960 25961int 25962main () 25963{ 25964 25965__mingw_snprintf (NULL, 0, "%d\n", 1); 25966 25967 ; 25968 return 0; 25969} 25970_ACEOF 25971if ac_fn_c_try_link "$LINENO"; then : 25972 eval "libgfor_cv_have_mingw_snprintf=yes" 25973else 25974 eval "libgfor_cv_have_mingw_snprintf=no" 25975fi 25976rm -f core conftest.err conftest.$ac_objext \ 25977 conftest$ac_exeext conftest.$ac_ext 25978 25979fi 25980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_mingw_snprintf" >&5 25981$as_echo "$libgfor_cv_have_mingw_snprintf" >&6; } 25982 if test x"$libgfor_cv_have_mingw_snprintf" = xyes; then 25983 25984$as_echo "#define HAVE_MINGW_SNPRINTF 1" >>confdefs.h 25985 25986 fi 25987 25988 25989# Check whether libquadmath should be used 25990# Check whether --enable-libquadmath-support was given. 25991if test "${enable_libquadmath_support+set}" = set; then : 25992 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval 25993else 25994 ENABLE_LIBQUADMATH_SUPPORT=yes 25995fi 25996 25997enable_libquadmath_support= 25998if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then 25999 enable_libquadmath_support=no 26000fi 26001 26002# Check whether we have a __float128 type, depends on enable_libquadmath_support 26003 26004 LIBQUADSPEC= 26005 26006 if test "x$enable_libquadmath_support" != xno; then 26007 26008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a usable __float128 type" >&5 26009$as_echo_n "checking whether we have a usable __float128 type... " >&6; } 26010if ${libgfor_cv_have_float128+:} false; then : 26011 $as_echo_n "(cached) " >&6 26012else 26013 26014 if test x$gcc_no_link = xyes; then 26015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26016/* end confdefs.h. */ 26017 26018 typedef _Complex float __attribute__((mode(TC))) __complex128; 26019 26020 __float128 foo (__float128 x) 26021 { 26022 26023 __complex128 z1, z2; 26024 26025 z1 = x; 26026 z2 = x / 7.Q; 26027 z2 /= z1; 26028 26029 return (__float128) z2; 26030 } 26031 26032 __float128 bar (__float128 x) 26033 { 26034 return x * __builtin_huge_valq (); 26035 } 26036 26037int 26038main () 26039{ 26040 26041 foo (1.2Q); 26042 bar (1.2Q); 26043 26044 ; 26045 return 0; 26046} 26047_ACEOF 26048if ac_fn_c_try_compile "$LINENO"; then : 26049 26050 libgfor_cv_have_float128=yes 26051 26052else 26053 26054 libgfor_cv_have_float128=no 26055 26056fi 26057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26058else 26059 if test x$gcc_no_link = xyes; then 26060 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 26061fi 26062cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26063/* end confdefs.h. */ 26064 26065 typedef _Complex float __attribute__((mode(TC))) __complex128; 26066 26067 __float128 foo (__float128 x) 26068 { 26069 26070 __complex128 z1, z2; 26071 26072 z1 = x; 26073 z2 = x / 7.Q; 26074 z2 /= z1; 26075 26076 return (__float128) z2; 26077 } 26078 26079 __float128 bar (__float128 x) 26080 { 26081 return x * __builtin_huge_valq (); 26082 } 26083 26084int 26085main () 26086{ 26087 26088 foo (1.2Q); 26089 bar (1.2Q); 26090 26091 ; 26092 return 0; 26093} 26094_ACEOF 26095if ac_fn_c_try_link "$LINENO"; then : 26096 26097 libgfor_cv_have_float128=yes 26098 26099else 26100 26101 libgfor_cv_have_float128=no 26102 26103fi 26104rm -f core conftest.err conftest.$ac_objext \ 26105 conftest$ac_exeext conftest.$ac_ext 26106fi 26107fi 26108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_float128" >&5 26109$as_echo "$libgfor_cv_have_float128" >&6; } 26110 26111 if test "x$libgfor_cv_have_float128" = xyes; then 26112 26113$as_echo "#define HAVE_FLOAT128 1" >>confdefs.h 26114 26115 26116 ac_xsave_c_werror_flag=$ac_c_werror_flag 26117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --as-needed/-z ignore works" >&5 26118$as_echo_n "checking whether --as-needed/-z ignore works... " >&6; } 26119if ${libgfor_cv_have_as_needed+:} false; then : 26120 $as_echo_n "(cached) " >&6 26121else 26122 26123 # Test for native Solaris options first. 26124 # No whitespace after -z to pass it through -Wl. 26125 libgfor_cv_as_needed_option="-zignore" 26126 libgfor_cv_no_as_needed_option="-zrecord" 26127 save_LDFLAGS="$LDFLAGS" 26128 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option" 26129 libgfor_cv_have_as_needed=no 26130 26131ac_c_werror_flag=yes 26132 if test x$gcc_no_link = xyes; then 26133 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 26134fi 26135cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26136/* end confdefs.h. */ 26137 26138int 26139main () 26140{ 26141 26142 ; 26143 return 0; 26144} 26145_ACEOF 26146if ac_fn_c_try_link "$LINENO"; then : 26147 libgfor_cv_have_as_needed=yes 26148else 26149 libgfor_cv_have_as_needed=no 26150fi 26151rm -f core conftest.err conftest.$ac_objext \ 26152 conftest$ac_exeext conftest.$ac_ext 26153 LDFLAGS="$save_LDFLAGS" 26154 if test "x$libgfor_cv_have_as_needed" = xno; then 26155 libgfor_cv_as_needed_option="--as-needed" 26156 libgfor_cv_no_as_needed_option="--no-as-needed" 26157 save_LDFLAGS="$LDFLAGS" 26158 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option" 26159 libgfor_cv_have_as_needed=no 26160 26161ac_c_werror_flag=yes 26162 if test x$gcc_no_link = xyes; then 26163 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 26164fi 26165cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26166/* end confdefs.h. */ 26167 26168int 26169main () 26170{ 26171 26172 ; 26173 return 0; 26174} 26175_ACEOF 26176if ac_fn_c_try_link "$LINENO"; then : 26177 libgfor_cv_have_as_needed=yes 26178else 26179 libgfor_cv_have_as_needed=no 26180fi 26181rm -f core conftest.err conftest.$ac_objext \ 26182 conftest$ac_exeext conftest.$ac_ext 26183 LDFLAGS="$save_LDFLAGS" 26184 fi 26185 ac_c_werror_flag=$ac_xsave_c_werror_flag 26186 26187fi 26188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_as_needed" >&5 26189$as_echo "$libgfor_cv_have_as_needed" >&6; } 26190 26191 if test "x$libgfor_cv_have_as_needed" = xyes; then 26192 LIBQUADSPEC="%{static-libgfortran:$libgfor_cv_as_needed_option} -lquadmath %{static-libgfortran:$libgfor_cv_no_as_needed_option}" 26193 else 26194 LIBQUADSPEC="-lquadmath" 26195 fi 26196 if test -f ../libquadmath/libquadmath.la; then 26197 LIBQUADLIB=../libquadmath/libquadmath.la 26198 LIBQUADLIB_DEP=../libquadmath/libquadmath.la 26199 LIBQUADINCLUDE='-I$(srcdir)/../libquadmath' 26200 else 26201 LIBQUADLIB="-lquadmath" 26202 LIBQUADLIB_DEP= 26203 LIBQUADINCLUDE= 26204 fi 26205 fi 26206 else 26207 # for --disable-quadmath 26208 LIBQUADLIB= 26209 LIBQUADLIB_DEP= 26210 LIBQUADINCLUDE= 26211 fi 26212 26213 26214 26215 26216 26217 26218 if test "x$libgfor_cv_have_float128" = xyes; then 26219 LIBGFOR_BUILD_QUAD_TRUE= 26220 LIBGFOR_BUILD_QUAD_FALSE='#' 26221else 26222 LIBGFOR_BUILD_QUAD_TRUE='#' 26223 LIBGFOR_BUILD_QUAD_FALSE= 26224fi 26225 26226 26227 26228# Check for GNU libc feenableexcept 26229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5 26230$as_echo_n "checking for feenableexcept in -lm... " >&6; } 26231if ${ac_cv_lib_m_feenableexcept+:} false; then : 26232 $as_echo_n "(cached) " >&6 26233else 26234 ac_check_lib_save_LIBS=$LIBS 26235LIBS="-lm $LIBS" 26236if test x$gcc_no_link = xyes; then 26237 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 26238fi 26239cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26240/* end confdefs.h. */ 26241 26242/* Override any GCC internal prototype to avoid an error. 26243 Use char because int might match the return type of a GCC 26244 builtin and then its argument prototype would still apply. */ 26245#ifdef __cplusplus 26246extern "C" 26247#endif 26248char feenableexcept (); 26249int 26250main () 26251{ 26252return feenableexcept (); 26253 ; 26254 return 0; 26255} 26256_ACEOF 26257if ac_fn_c_try_link "$LINENO"; then : 26258 ac_cv_lib_m_feenableexcept=yes 26259else 26260 ac_cv_lib_m_feenableexcept=no 26261fi 26262rm -f core conftest.err conftest.$ac_objext \ 26263 conftest$ac_exeext conftest.$ac_ext 26264LIBS=$ac_check_lib_save_LIBS 26265fi 26266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5 26267$as_echo "$ac_cv_lib_m_feenableexcept" >&6; } 26268if test "x$ac_cv_lib_m_feenableexcept" = xyes; then : 26269 have_feenableexcept=yes 26270$as_echo "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h 26271 26272fi 26273 26274 26275# At least for glibc, clock_gettime is in librt. But don't 26276# pull that in if it still doesn't give us the function we want. This 26277# test is copied from libgomp, and modified to not link in -lrt as 26278# libgfortran calls clock_gettime via a weak reference if it's found 26279# in librt. 26280if test "$ac_cv_func_clock_gettime" = no; then 26281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 26282$as_echo_n "checking for clock_gettime in -lrt... " >&6; } 26283if ${ac_cv_lib_rt_clock_gettime+:} false; then : 26284 $as_echo_n "(cached) " >&6 26285else 26286 ac_check_lib_save_LIBS=$LIBS 26287LIBS="-lrt $LIBS" 26288if test x$gcc_no_link = xyes; then 26289 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 26290fi 26291cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26292/* end confdefs.h. */ 26293 26294/* Override any GCC internal prototype to avoid an error. 26295 Use char because int might match the return type of a GCC 26296 builtin and then its argument prototype would still apply. */ 26297#ifdef __cplusplus 26298extern "C" 26299#endif 26300char clock_gettime (); 26301int 26302main () 26303{ 26304return clock_gettime (); 26305 ; 26306 return 0; 26307} 26308_ACEOF 26309if ac_fn_c_try_link "$LINENO"; then : 26310 ac_cv_lib_rt_clock_gettime=yes 26311else 26312 ac_cv_lib_rt_clock_gettime=no 26313fi 26314rm -f core conftest.err conftest.$ac_objext \ 26315 conftest$ac_exeext conftest.$ac_ext 26316LIBS=$ac_check_lib_save_LIBS 26317fi 26318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 26319$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } 26320if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : 26321 26322$as_echo "#define HAVE_CLOCK_GETTIME_LIBRT 1" >>confdefs.h 26323 26324fi 26325 26326fi 26327 26328# Check for SysV fpsetmask 26329 26330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fpsetmask is present" >&5 26331$as_echo_n "checking whether fpsetmask is present... " >&6; } 26332if ${libgfor_cv_have_fpsetmask+:} false; then : 26333 $as_echo_n "(cached) " >&6 26334else 26335 26336 if test x$gcc_no_link = xyes; then 26337 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 26338fi 26339cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26340/* end confdefs.h. */ 26341 26342#if HAVE_FLOATINGPOINT_H 26343# include <floatingpoint.h> 26344#endif /* HAVE_FLOATINGPOINT_H */ 26345#if HAVE_IEEEFP_H 26346# include <ieeefp.h> 26347#endif /* HAVE_IEEEFP_H */ 26348int 26349main () 26350{ 26351fpsetmask(0); 26352 ; 26353 return 0; 26354} 26355_ACEOF 26356if ac_fn_c_try_link "$LINENO"; then : 26357 eval "libgfor_cv_have_fpsetmask=yes" 26358else 26359 eval "libgfor_cv_have_fpsetmask=no" 26360fi 26361rm -f core conftest.err conftest.$ac_objext \ 26362 conftest$ac_exeext conftest.$ac_ext 26363 26364fi 26365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_fpsetmask" >&5 26366$as_echo "$libgfor_cv_have_fpsetmask" >&6; } 26367 if test x"$libgfor_cv_have_fpsetmask" = xyes; then 26368 have_fpsetmask=yes 26369 26370$as_echo "#define HAVE_FPSETMASK 1" >>confdefs.h 26371 26372 fi 26373 26374ac_fn_c_check_type "$LINENO" "fp_except" "ac_cv_type_fp_except" " 26375#ifdef HAVE_IEEEFP_H 26376#include <ieeefp.h> 26377#endif 26378#include <math.h> 26379 26380" 26381if test "x$ac_cv_type_fp_except" = xyes; then : 26382 26383cat >>confdefs.h <<_ACEOF 26384#define HAVE_FP_EXCEPT 1 26385_ACEOF 26386 26387 26388fi 26389ac_fn_c_check_type "$LINENO" "fp_except_t" "ac_cv_type_fp_except_t" " 26390#ifdef HAVE_IEEEFP_H 26391#include <ieeefp.h> 26392#endif 26393#include <math.h> 26394 26395" 26396if test "x$ac_cv_type_fp_except_t" = xyes; then : 26397 26398cat >>confdefs.h <<_ACEOF 26399#define HAVE_FP_EXCEPT_T 1 26400_ACEOF 26401 26402 26403fi 26404 26405ac_fn_c_check_type "$LINENO" "fp_rnd" "ac_cv_type_fp_rnd" " 26406#ifdef HAVE_IEEEFP_H 26407#include <ieeefp.h> 26408#endif 26409#include <math.h> 26410 26411" 26412if test "x$ac_cv_type_fp_rnd" = xyes; then : 26413 26414cat >>confdefs.h <<_ACEOF 26415#define HAVE_FP_RND 1 26416_ACEOF 26417 26418 26419fi 26420ac_fn_c_check_type "$LINENO" "fp_rnd_t" "ac_cv_type_fp_rnd_t" " 26421#ifdef HAVE_IEEEFP_H 26422#include <ieeefp.h> 26423#endif 26424#include <math.h> 26425 26426" 26427if test "x$ac_cv_type_fp_rnd_t" = xyes; then : 26428 26429cat >>confdefs.h <<_ACEOF 26430#define HAVE_FP_RND_T 1 26431_ACEOF 26432 26433 26434fi 26435 26436 26437# Check whether we have fpsetsticky or fpresetsticky 26438ac_fn_c_check_func "$LINENO" "fpsetsticky" "ac_cv_func_fpsetsticky" 26439if test "x$ac_cv_func_fpsetsticky" = xyes; then : 26440 have_fpsetsticky=yes 26441$as_echo "#define HAVE_FPSETSTICKY 1" >>confdefs.h 26442 26443fi 26444 26445ac_fn_c_check_func "$LINENO" "fpresetsticky" "ac_cv_func_fpresetsticky" 26446if test "x$ac_cv_func_fpresetsticky" = xyes; then : 26447 have_fpresetsticky=yes 26448$as_echo "#define HAVE_FPRESETSTICKY 1" >>confdefs.h 26449 26450fi 26451 26452 26453# Check for AIX fp_trap and fp_enable 26454ac_fn_c_check_func "$LINENO" "fp_trap" "ac_cv_func_fp_trap" 26455if test "x$ac_cv_func_fp_trap" = xyes; then : 26456 have_fp_trap=yes 26457$as_echo "#define HAVE_FP_TRAP 1" >>confdefs.h 26458 26459fi 26460 26461ac_fn_c_check_func "$LINENO" "fp_enable" "ac_cv_func_fp_enable" 26462if test "x$ac_cv_func_fp_enable" = xyes; then : 26463 have_fp_enable=yes 26464$as_echo "#define HAVE_FP_ENABLE 1" >>confdefs.h 26465 26466fi 26467 26468 26469# Check if _SOFT_FLOAT is defined 26470 26471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _SOFT_FLOAT defined" >&5 26472$as_echo_n "checking for _SOFT_FLOAT defined... " >&6; } 26473if ${ac_cv_defined__SOFT_FLOAT+:} false; then : 26474 $as_echo_n "(cached) " >&6 26475else 26476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26477/* end confdefs.h. */ 26478 26479int 26480main () 26481{ 26482 26483 #ifdef _SOFT_FLOAT 26484 int ok; 26485 #else 26486 choke me 26487 #endif 26488 26489 ; 26490 return 0; 26491} 26492_ACEOF 26493if ac_fn_c_try_compile "$LINENO"; then : 26494 ac_cv_defined__SOFT_FLOAT=yes 26495else 26496 ac_cv_defined__SOFT_FLOAT=no 26497fi 26498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26499fi 26500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined__SOFT_FLOAT" >&5 26501$as_echo "$ac_cv_defined__SOFT_FLOAT" >&6; } 26502if test $ac_cv_defined__SOFT_FLOAT != "no"; then : 26503 have_soft_float=yes 26504fi 26505 26506# Runs configure.host to set up necessary host-dependent shell variables. 26507# We then display a message about it, and propagate them through the 26508# build chain. 26509. ${srcdir}/configure.host 26510{ $as_echo "$as_me:${as_lineno-$LINENO}: FPU dependent file will be ${fpu_host}.h" >&5 26511$as_echo "$as_me: FPU dependent file will be ${fpu_host}.h" >&6;} 26512{ $as_echo "$as_me:${as_lineno-$LINENO}: Support for IEEE modules: ${ieee_support}" >&5 26513$as_echo "$as_me: Support for IEEE modules: ${ieee_support}" >&6;} 26514FPU_HOST_HEADER=config/${fpu_host}.h 26515 26516 26517# Whether we will build the IEEE modules 26518 if test x${ieee_support} = xyes; then 26519 IEEE_SUPPORT_TRUE= 26520 IEEE_SUPPORT_FALSE='#' 26521else 26522 IEEE_SUPPORT_TRUE='#' 26523 IEEE_SUPPORT_FALSE= 26524fi 26525 26526 26527 26528# Some targets require additional compiler options for IEEE compatibility. 26529IEEE_FLAGS="${ieee_flags}" 26530 26531 26532 26533# Check for POSIX getpwuid_r 26534# 26535# There are two versions of getpwuid_r, the POSIX one with 5 26536# arguments, and another one with 4 arguments used by at least HP-UX 26537# 10.2. 26538if test "$ac_cv_func_getpwuid_r" = "yes"; then 26539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX version of getpwuid_r with 5 arguments" >&5 26540$as_echo_n "checking POSIX version of getpwuid_r with 5 arguments... " >&6; } 26541if ${libgfor_cv_posix_getpwuid_r+:} false; then : 26542 $as_echo_n "(cached) " >&6 26543else 26544 26545 if test x$gcc_no_link = xyes; then 26546 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 26547fi 26548cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26549/* end confdefs.h. */ 26550 26551#include <stdio.h> 26552#include <sys/types.h> 26553#include <pwd.h> 26554int 26555main () 26556{ 26557 26558 getpwuid_r(0, NULL, NULL, 0, NULL); 26559 26560 ; 26561 return 0; 26562} 26563_ACEOF 26564if ac_fn_c_try_link "$LINENO"; then : 26565 libgfor_cv_posix_getpwuid_r="yes" 26566else 26567 libgfor_cv_posix_getpwuid_r="no" 26568fi 26569rm -f core conftest.err conftest.$ac_objext \ 26570 conftest$ac_exeext conftest.$ac_ext 26571fi 26572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_posix_getpwuid_r" >&5 26573$as_echo "$libgfor_cv_posix_getpwuid_r" >&6; } 26574fi 26575if test "$libgfor_cv_posix_getpwuid_r" = "yes"; then 26576 26577$as_echo "#define HAVE_POSIX_GETPWUID_R 1" >>confdefs.h 26578 26579fi 26580 26581 26582# Check out attribute support. 26583 26584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5 26585$as_echo_n "checking whether the target supports hidden visibility... " >&6; } 26586if ${libgfor_cv_have_attribute_visibility+:} false; then : 26587 $as_echo_n "(cached) " >&6 26588else 26589 26590 save_CFLAGS="$CFLAGS" 26591 CFLAGS="$CFLAGS -Werror" 26592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26593/* end confdefs.h. */ 26594void __attribute__((visibility("hidden"))) foo(void) { } 26595int 26596main () 26597{ 26598 26599 ; 26600 return 0; 26601} 26602_ACEOF 26603if ac_fn_c_try_compile "$LINENO"; then : 26604 libgfor_cv_have_attribute_visibility=yes 26605else 26606 libgfor_cv_have_attribute_visibility=no 26607fi 26608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26609 CFLAGS="$save_CFLAGS" 26610fi 26611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_visibility" >&5 26612$as_echo "$libgfor_cv_have_attribute_visibility" >&6; } 26613 if test $libgfor_cv_have_attribute_visibility = yes; then 26614 26615$as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h 26616 26617 fi 26618 26619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5 26620$as_echo_n "checking whether the target supports symbol aliases... " >&6; } 26621if ${libgfor_cv_have_attribute_alias+:} false; then : 26622 $as_echo_n "(cached) " >&6 26623else 26624 26625 if test x$gcc_no_link = xyes; then 26626 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 26627fi 26628cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26629/* end confdefs.h. */ 26630 26631void foo(void) { } 26632extern void bar(void) __attribute__((alias("foo"))); 26633int 26634main () 26635{ 26636bar(); 26637 ; 26638 return 0; 26639} 26640_ACEOF 26641if ac_fn_c_try_link "$LINENO"; then : 26642 libgfor_cv_have_attribute_alias=yes 26643else 26644 libgfor_cv_have_attribute_alias=no 26645fi 26646rm -f core conftest.err conftest.$ac_objext \ 26647 conftest$ac_exeext conftest.$ac_ext 26648fi 26649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_alias" >&5 26650$as_echo "$libgfor_cv_have_attribute_alias" >&6; } 26651 if test $libgfor_cv_have_attribute_alias = yes; then 26652 26653$as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h 26654 26655 fi 26656 26657# Check out atomic builtins support. 26658 26659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __atomic_fetch_add" >&5 26660$as_echo_n "checking whether the target supports __atomic_fetch_add... " >&6; } 26661if ${libgfor_cv_have_atomic_fetch_add+:} false; then : 26662 $as_echo_n "(cached) " >&6 26663else 26664 26665 if test x$gcc_no_link = xyes; then 26666 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 26667fi 26668cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26669/* end confdefs.h. */ 26670int foovar = 0; 26671int 26672main () 26673{ 26674 26675if (foovar <= 0) return __atomic_fetch_add (&foovar, 1, __ATOMIC_ACQ_REL); 26676if (foovar > 10) return __atomic_add_fetch (&foovar, -1, __ATOMIC_ACQ_REL); 26677 ; 26678 return 0; 26679} 26680_ACEOF 26681if ac_fn_c_try_link "$LINENO"; then : 26682 libgfor_cv_have_atomic_fetch_add=yes 26683else 26684 libgfor_cv_have_atomic_fetch_add=no 26685fi 26686rm -f core conftest.err conftest.$ac_objext \ 26687 conftest$ac_exeext conftest.$ac_ext 26688fi 26689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_atomic_fetch_add" >&5 26690$as_echo "$libgfor_cv_have_atomic_fetch_add" >&6; } 26691 if test $libgfor_cv_have_atomic_fetch_add = yes; then 26692 26693$as_echo "#define HAVE_ATOMIC_FETCH_ADD 1" >>confdefs.h 26694 26695 fi 26696 26697# Check out #pragma weak. 26698 26699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pragma weak works" >&5 26700$as_echo_n "checking whether pragma weak works... " >&6; } 26701if ${libgfor_cv_have_pragma_weak+:} false; then : 26702 $as_echo_n "(cached) " >&6 26703else 26704 26705 gfor_save_CFLAGS="$CFLAGS" 26706 CFLAGS="$CFLAGS -Wunknown-pragmas" 26707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26708/* end confdefs.h. */ 26709 26710void foo (void); 26711#pragma weak foo 26712 26713int 26714main () 26715{ 26716if (foo) foo (); 26717 ; 26718 return 0; 26719} 26720_ACEOF 26721if ac_fn_c_try_compile "$LINENO"; then : 26722 libgfor_cv_have_pragma_weak=yes 26723else 26724 libgfor_cv_have_pragma_weak=no 26725fi 26726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26727fi 26728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_pragma_weak" >&5 26729$as_echo "$libgfor_cv_have_pragma_weak" >&6; } 26730 if test $libgfor_cv_have_pragma_weak = yes; then 26731 26732$as_echo "#define SUPPORTS_WEAK 1" >>confdefs.h 26733 26734 fi 26735 case "$host" in 26736 *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* | *-*-musl* ) 26737 26738$as_echo "#define GTHREAD_USE_WEAK 0" >>confdefs.h 26739 26740 ;; 26741 esac 26742 26743# Check out weakref support. 26744 26745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports weakref" >&5 26746$as_echo_n "checking whether the target supports weakref... " >&6; } 26747if ${libgfor_cv_have_weakref+:} false; then : 26748 $as_echo_n "(cached) " >&6 26749else 26750 26751 save_CFLAGS="$CFLAGS" 26752 CFLAGS="$CFLAGS -Wunknown-pragmas -Werror" 26753 if test x$gcc_no_link = xyes; then 26754 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 26755fi 26756cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26757/* end confdefs.h. */ 26758 26759static int mytoto (int) __attribute__((__weakref__("toto"))); 26760 26761int 26762main () 26763{ 26764return (mytoto != 0); 26765 ; 26766 return 0; 26767} 26768_ACEOF 26769if ac_fn_c_try_link "$LINENO"; then : 26770 libgfor_cv_have_weakref=yes 26771else 26772 libgfor_cv_have_weakref=no 26773fi 26774rm -f core conftest.err conftest.$ac_objext \ 26775 conftest$ac_exeext conftest.$ac_ext 26776 CFLAGS="$save_CFLAGS" 26777fi 26778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_weakref" >&5 26779$as_echo "$libgfor_cv_have_weakref" >&6; } 26780 if test $libgfor_cv_have_weakref = yes; then 26781 26782$as_echo "#define SUPPORTS_WEAKREF 1" >>confdefs.h 26783 26784 fi 26785 26786# Various other checks on target 26787 26788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target can unlink an open file" >&5 26789$as_echo_n "checking whether the target can unlink an open file... " >&6; } 26790if ${libgfor_cv_have_unlink_open_file+:} false; then : 26791 $as_echo_n "(cached) " >&6 26792else 26793 26794 if test "$cross_compiling" = yes; then : 26795 26796case "${target}" in 26797 *mingw*) libgfor_cv_have_unlink_open_file=no ;; 26798 *) libgfor_cv_have_unlink_open_file=yes;; 26799esac 26800else 26801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26802/* end confdefs.h. */ 26803 26804#include <errno.h> 26805#include <fcntl.h> 26806#include <unistd.h> 26807#include <sys/stat.h> 26808 26809int main () 26810{ 26811 int fd; 26812 26813 fd = open ("testfile", O_RDWR | O_CREAT, S_IWUSR | S_IRUSR); 26814 if (fd <= 0) 26815 return 0; 26816 if (unlink ("testfile") == -1) 26817 return 1; 26818 write (fd, "This is a test\n", 15); 26819 close (fd); 26820 26821 if (open ("testfile", O_RDONLY) == -1 && errno == ENOENT) 26822 return 0; 26823 else 26824 return 1; 26825} 26826_ACEOF 26827if ac_fn_c_try_run "$LINENO"; then : 26828 libgfor_cv_have_unlink_open_file=yes 26829else 26830 libgfor_cv_have_unlink_open_file=no 26831fi 26832rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 26833 conftest.$ac_objext conftest.beam conftest.$ac_ext 26834fi 26835 26836fi 26837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_unlink_open_file" >&5 26838$as_echo "$libgfor_cv_have_unlink_open_file" >&6; } 26839if test x"$libgfor_cv_have_unlink_open_file" = xyes; then 26840 26841$as_echo "#define HAVE_UNLINK_OPEN_FILE 1" >>confdefs.h 26842 26843fi 26844 26845# Check whether line terminator is LF or CRLF 26846 26847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target has CRLF as line terminator" >&5 26848$as_echo_n "checking whether the target has CRLF as line terminator... " >&6; } 26849if ${libgfor_cv_have_crlf+:} false; then : 26850 $as_echo_n "(cached) " >&6 26851else 26852 26853 if test "$cross_compiling" = yes; then : 26854 26855case "${target}" in 26856 *mingw*) libgfor_cv_have_crlf=yes ;; 26857 *) libgfor_cv_have_crlf=no;; 26858esac 26859else 26860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26861/* end confdefs.h. */ 26862 26863/* This test program should exit with status 0 if system uses a CRLF as 26864 line terminator, and status 1 otherwise. 26865 Since it is used to check for mingw systems, and should return 0 in any 26866 other case, in case of a failure we will not use CRLF. */ 26867#include <sys/stat.h> 26868#include <stdlib.h> 26869#include <fcntl.h> 26870#include <stdio.h> 26871 26872int main () 26873{ 26874#ifndef O_BINARY 26875 exit(1); 26876#else 26877 int fd, bytes; 26878 char buff[5]; 26879 26880 fd = open ("foo", O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU); 26881 if (fd < 0) 26882 exit(1); 26883 if (write (fd, "\n", 1) < 0) 26884 perror ("write"); 26885 26886 close (fd); 26887 26888 if ((fd = open ("foo", O_RDONLY | O_BINARY, S_IRWXU)) < 0) 26889 exit(1); 26890 bytes = read (fd, buff, 5); 26891 if (bytes == 2 && buff[0] == '\r' && buff[1] == '\n') 26892 exit(0); 26893 else 26894 exit(1); 26895#endif 26896} 26897_ACEOF 26898if ac_fn_c_try_run "$LINENO"; then : 26899 libgfor_cv_have_crlf=yes 26900else 26901 libgfor_cv_have_crlf=no 26902fi 26903rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 26904 conftest.$ac_objext conftest.beam conftest.$ac_ext 26905fi 26906 26907fi 26908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_crlf" >&5 26909$as_echo "$libgfor_cv_have_crlf" >&6; } 26910if test x"$libgfor_cv_have_crlf" = xyes; then 26911 26912$as_echo "#define HAVE_CRLF 1" >>confdefs.h 26913 26914fi 26915 26916# Check whether we support AVX extensions 26917 26918 ac_save_CFLAGS="$CFLAGS" 26919 CFLAGS="-O2 -mavx" 26920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26921/* end confdefs.h. */ 26922 26923 void _mm256_zeroall (void) 26924 { 26925 __builtin_ia32_vzeroall (); 26926 } 26927int 26928main () 26929{ 26930 26931 ; 26932 return 0; 26933} 26934_ACEOF 26935if ac_fn_c_try_compile "$LINENO"; then : 26936 26937$as_echo "#define HAVE_AVX 1" >>confdefs.h 26938 26939fi 26940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26941 CFLAGS="$ac_save_CFLAGS" 26942 26943 26944# Check wether we support AVX2 extensions 26945 26946 ac_save_CFLAGS="$CFLAGS" 26947 CFLAGS="-O2 -mavx2" 26948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26949/* end confdefs.h. */ 26950 26951 typedef long long __v4di __attribute__ ((__vector_size__ (32))); 26952 __v4di 26953 mm256_is32_andnotsi256 (__v4di __X, __v4di __Y) 26954 { 26955 return __builtin_ia32_andnotsi256 (__X, __Y); 26956 } 26957int 26958main () 26959{ 26960 26961 ; 26962 return 0; 26963} 26964_ACEOF 26965if ac_fn_c_try_compile "$LINENO"; then : 26966 26967$as_echo "#define HAVE_AVX2 1" >>confdefs.h 26968 26969fi 26970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26971 CFLAGS="$ac_save_CFLAGS" 26972 26973 26974# Check wether we support AVX512f extensions 26975 26976 ac_save_CFLAGS="$CFLAGS" 26977 CFLAGS="-O2 -mavx512f" 26978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26979/* end confdefs.h. */ 26980 26981 typedef double __m512d __attribute__ ((__vector_size__ (64))); 26982 __m512d _mm512_add (__m512d a) 26983 { 26984 __m512d b = __builtin_ia32_addpd512_mask (a, a, a, 1, 4); 26985 /* For -m64/-mx32 also verify that code will work even if 26986 the target uses call saved zmm16+ and needs to emit 26987 unwind info for them (e.g. on mingw). See PR79127. */ 26988#ifdef __x86_64__ 26989 asm volatile ("" : : : "zmm16", "zmm17", "zmm18", "zmm19"); 26990#endif 26991 return b; 26992 } 26993int 26994main () 26995{ 26996 26997 ; 26998 return 0; 26999} 27000_ACEOF 27001if ac_fn_c_try_compile "$LINENO"; then : 27002 27003$as_echo "#define HAVE_AVX512F 1" >>confdefs.h 27004 27005fi 27006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27007 CFLAGS="$ac_save_CFLAGS" 27008 27009 27010# Check for FMA3 extensions 27011 27012 ac_save_CFLAGS="$CFLAGS" 27013 CFLAGS="-O2 -mfma -mno-fma4" 27014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27015/* end confdefs.h. */ 27016 27017 typedef float __m128 __attribute__ ((__vector_size__ (16))); 27018 typedef float __v4sf __attribute__ ((__vector_size__ (16))); 27019 __m128 _mm_macc_ps(__m128 __A, __m128 __B, __m128 __C) 27020 { 27021 return (__m128) __builtin_ia32_vfmaddps ((__v4sf)__A, 27022 (__v4sf)__B, 27023 (__v4sf)__C); 27024 } 27025int 27026main () 27027{ 27028 27029 ; 27030 return 0; 27031} 27032_ACEOF 27033if ac_fn_c_try_compile "$LINENO"; then : 27034 27035$as_echo "#define HAVE_FMA3 1" >>confdefs.h 27036 27037fi 27038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27039 CFLAGS="$ac_save_CFLAGS" 27040 27041 27042# Check for FMA4 extensions 27043 27044 ac_save_CFLAGS="$CFLAGS" 27045 CFLAGS="-O2 -mfma4 -mno-fma" 27046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27047/* end confdefs.h. */ 27048 27049 typedef float __m128 __attribute__ ((__vector_size__ (16))); 27050 typedef float __v4sf __attribute__ ((__vector_size__ (16))); 27051 __m128 _mm_macc_ps(__m128 __A, __m128 __B, __m128 __C) 27052 { 27053 return (__m128) __builtin_ia32_vfmaddps ((__v4sf)__A, 27054 (__v4sf)__B, 27055 (__v4sf)__C); 27056 } 27057int 27058main () 27059{ 27060 27061 ; 27062 return 0; 27063} 27064_ACEOF 27065if ac_fn_c_try_compile "$LINENO"; then : 27066 27067$as_echo "#define HAVE_FMA4 1" >>confdefs.h 27068 27069fi 27070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27071 CFLAGS="$ac_save_CFLAGS" 27072 27073 27074# Check if AVX128 works 27075 27076 ac_save_CFLAGS="$CFLAGS" 27077 CFLAGS="-O2 -mavx -mprefer-avx128" 27078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27079/* end confdefs.h. */ 27080 27081 void foo() 27082 { 27083 } 27084int 27085main () 27086{ 27087 27088 ; 27089 return 0; 27090} 27091_ACEOF 27092if ac_fn_c_try_compile "$LINENO"; then : 27093 27094$as_echo "#define HAVE_AVX128 1" >>confdefs.h 27095 27096 if true; then 27097 HAVE_AVX128_TRUE= 27098 HAVE_AVX128_FALSE='#' 27099else 27100 HAVE_AVX128_TRUE='#' 27101 HAVE_AVX128_FALSE= 27102fi 27103 27104else 27105 if false; then 27106 HAVE_AVX128_TRUE= 27107 HAVE_AVX128_FALSE='#' 27108else 27109 HAVE_AVX128_TRUE='#' 27110 HAVE_AVX128_FALSE= 27111fi 27112 27113fi 27114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27115 CFLAGS="$ac_save_CFLAGS" 27116 27117 27118# Determine what GCC version number to use in filesystem paths. 27119 27120 get_gcc_base_ver="cat" 27121 27122# Check whether --with-gcc-major-version-only was given. 27123if test "${with_gcc_major_version_only+set}" = set; then : 27124 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then 27125 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" 27126 fi 27127 27128fi 27129 27130 27131 27132 27133cat >confcache <<\_ACEOF 27134# This file is a shell script that caches the results of configure 27135# tests run on this system so they can be shared between configure 27136# scripts and configure runs, see configure's option --config-cache. 27137# It is not useful on other systems. If it contains results you don't 27138# want to keep, you may remove or edit it. 27139# 27140# config.status only pays attention to the cache file if you give it 27141# the --recheck option to rerun configure. 27142# 27143# `ac_cv_env_foo' variables (set or unset) will be overridden when 27144# loading this file, other *unset* `ac_cv_foo' will be assigned the 27145# following values. 27146 27147_ACEOF 27148 27149# The following way of writing the cache mishandles newlines in values, 27150# but we know of no workaround that is simple, portable, and efficient. 27151# So, we kill variables containing newlines. 27152# Ultrix sh set writes to stderr and can't be redirected directly, 27153# and sets the high bit in the cache file unless we assign to the vars. 27154( 27155 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 27156 eval ac_val=\$$ac_var 27157 case $ac_val in #( 27158 *${as_nl}*) 27159 case $ac_var in #( 27160 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 27161$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 27162 esac 27163 case $ac_var in #( 27164 _ | IFS | as_nl) ;; #( 27165 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 27166 *) { eval $ac_var=; unset $ac_var;} ;; 27167 esac ;; 27168 esac 27169 done 27170 27171 (set) 2>&1 | 27172 case $as_nl`(ac_space=' '; set) 2>&1` in #( 27173 *${as_nl}ac_space=\ *) 27174 # `set' does not quote correctly, so add quotes: double-quote 27175 # substitution turns \\\\ into \\, and sed turns \\ into \. 27176 sed -n \ 27177 "s/'/'\\\\''/g; 27178 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 27179 ;; #( 27180 *) 27181 # `set' quotes correctly as required by POSIX, so do not add quotes. 27182 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 27183 ;; 27184 esac | 27185 sort 27186) | 27187 sed ' 27188 /^ac_cv_env_/b end 27189 t clear 27190 :clear 27191 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 27192 t end 27193 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 27194 :end' >>confcache 27195if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 27196 if test -w "$cache_file"; then 27197 if test "x$cache_file" != "x/dev/null"; then 27198 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 27199$as_echo "$as_me: updating cache $cache_file" >&6;} 27200 if test ! -f "$cache_file" || test -h "$cache_file"; then 27201 cat confcache >"$cache_file" 27202 else 27203 case $cache_file in #( 27204 */* | ?:*) 27205 mv -f confcache "$cache_file"$$ && 27206 mv -f "$cache_file"$$ "$cache_file" ;; #( 27207 *) 27208 mv -f confcache "$cache_file" ;; 27209 esac 27210 fi 27211 fi 27212 else 27213 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 27214$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 27215 fi 27216fi 27217rm -f confcache 27218 27219if test ${multilib} = yes; then 27220 multilib_arg="--enable-multilib" 27221else 27222 multilib_arg= 27223fi 27224 27225# Write our Makefile and spec file. 27226ac_config_files="$ac_config_files Makefile libgfortran.spec" 27227 27228cat >confcache <<\_ACEOF 27229# This file is a shell script that caches the results of configure 27230# tests run on this system so they can be shared between configure 27231# scripts and configure runs, see configure's option --config-cache. 27232# It is not useful on other systems. If it contains results you don't 27233# want to keep, you may remove or edit it. 27234# 27235# config.status only pays attention to the cache file if you give it 27236# the --recheck option to rerun configure. 27237# 27238# `ac_cv_env_foo' variables (set or unset) will be overridden when 27239# loading this file, other *unset* `ac_cv_foo' will be assigned the 27240# following values. 27241 27242_ACEOF 27243 27244# The following way of writing the cache mishandles newlines in values, 27245# but we know of no workaround that is simple, portable, and efficient. 27246# So, we kill variables containing newlines. 27247# Ultrix sh set writes to stderr and can't be redirected directly, 27248# and sets the high bit in the cache file unless we assign to the vars. 27249( 27250 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 27251 eval ac_val=\$$ac_var 27252 case $ac_val in #( 27253 *${as_nl}*) 27254 case $ac_var in #( 27255 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 27256$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 27257 esac 27258 case $ac_var in #( 27259 _ | IFS | as_nl) ;; #( 27260 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 27261 *) { eval $ac_var=; unset $ac_var;} ;; 27262 esac ;; 27263 esac 27264 done 27265 27266 (set) 2>&1 | 27267 case $as_nl`(ac_space=' '; set) 2>&1` in #( 27268 *${as_nl}ac_space=\ *) 27269 # `set' does not quote correctly, so add quotes: double-quote 27270 # substitution turns \\\\ into \\, and sed turns \\ into \. 27271 sed -n \ 27272 "s/'/'\\\\''/g; 27273 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 27274 ;; #( 27275 *) 27276 # `set' quotes correctly as required by POSIX, so do not add quotes. 27277 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 27278 ;; 27279 esac | 27280 sort 27281) | 27282 sed ' 27283 /^ac_cv_env_/b end 27284 t clear 27285 :clear 27286 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 27287 t end 27288 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 27289 :end' >>confcache 27290if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 27291 if test -w "$cache_file"; then 27292 if test "x$cache_file" != "x/dev/null"; then 27293 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 27294$as_echo "$as_me: updating cache $cache_file" >&6;} 27295 if test ! -f "$cache_file" || test -h "$cache_file"; then 27296 cat confcache >"$cache_file" 27297 else 27298 case $cache_file in #( 27299 */* | ?:*) 27300 mv -f confcache "$cache_file"$$ && 27301 mv -f "$cache_file"$$ "$cache_file" ;; #( 27302 *) 27303 mv -f confcache "$cache_file" ;; 27304 esac 27305 fi 27306 fi 27307 else 27308 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 27309$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 27310 fi 27311fi 27312rm -f confcache 27313 27314test "x$prefix" = xNONE && prefix=$ac_default_prefix 27315# Let make expand exec_prefix. 27316test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 27317 27318DEFS=-DHAVE_CONFIG_H 27319 27320ac_libobjs= 27321ac_ltlibobjs= 27322U= 27323for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 27324 # 1. Remove the extension, and $U if already installed. 27325 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 27326 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 27327 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 27328 # will be set to the directory where LIBOBJS objects are built. 27329 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 27330 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 27331done 27332LIBOBJS=$ac_libobjs 27333 27334LTLIBOBJS=$ac_ltlibobjs 27335 27336 27337if test -z "${onestep_TRUE}" && test -z "${onestep_FALSE}"; then 27338 as_fn_error $? "conditional \"onestep\" was never defined. 27339Usually this means the macro was only invoked conditionally." "$LINENO" 5 27340fi 27341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 27342$as_echo_n "checking that generated files are newer than configure... " >&6; } 27343 if test -n "$am_sleep_pid"; then 27344 # Hide warnings about reused PIDs. 27345 wait $am_sleep_pid 2>/dev/null 27346 fi 27347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 27348$as_echo "done" >&6; } 27349 if test -n "$EXEEXT"; then 27350 am__EXEEXT_TRUE= 27351 am__EXEEXT_FALSE='#' 27352else 27353 am__EXEEXT_TRUE='#' 27354 am__EXEEXT_FALSE= 27355fi 27356 27357if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 27358 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 27359Usually this means the macro was only invoked conditionally." "$LINENO" 5 27360fi 27361if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 27362 as_fn_error $? "conditional \"AMDEP\" was never defined. 27363Usually this means the macro was only invoked conditionally." "$LINENO" 5 27364fi 27365if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 27366 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 27367Usually this means the macro was only invoked conditionally." "$LINENO" 5 27368fi 27369if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 27370 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 27371Usually this means the macro was only invoked conditionally." "$LINENO" 5 27372fi 27373if test -z "${LIBGFOR_USE_SYMVER_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_FALSE}"; then 27374 as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER\" was never defined. 27375Usually this means the macro was only invoked conditionally." "$LINENO" 5 27376fi 27377if test -z "${LIBGFOR_USE_SYMVER_GNU_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_GNU_FALSE}"; then 27378 as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER_GNU\" was never defined. 27379Usually this means the macro was only invoked conditionally." "$LINENO" 5 27380fi 27381if test -z "${LIBGFOR_USE_SYMVER_SUN_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_SUN_FALSE}"; then 27382 as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER_SUN\" was never defined. 27383Usually this means the macro was only invoked conditionally." "$LINENO" 5 27384fi 27385if test -z "${LIBGFOR_MINIMAL_TRUE}" && test -z "${LIBGFOR_MINIMAL_FALSE}"; then 27386 as_fn_error $? "conditional \"LIBGFOR_MINIMAL\" was never defined. 27387Usually this means the macro was only invoked conditionally." "$LINENO" 5 27388fi 27389if test -z "${HAVE_HWCAP_TRUE}" && test -z "${HAVE_HWCAP_FALSE}"; then 27390 as_fn_error $? "conditional \"HAVE_HWCAP\" was never defined. 27391Usually this means the macro was only invoked conditionally." "$LINENO" 5 27392fi 27393if test -z "${LIBGFOR_BUILD_QUAD_TRUE}" && test -z "${LIBGFOR_BUILD_QUAD_FALSE}"; then 27394 as_fn_error $? "conditional \"LIBGFOR_BUILD_QUAD\" was never defined. 27395Usually this means the macro was only invoked conditionally." "$LINENO" 5 27396fi 27397if test -z "${IEEE_SUPPORT_TRUE}" && test -z "${IEEE_SUPPORT_FALSE}"; then 27398 as_fn_error $? "conditional \"IEEE_SUPPORT\" was never defined. 27399Usually this means the macro was only invoked conditionally." "$LINENO" 5 27400fi 27401if test -z "${HAVE_AVX128_TRUE}" && test -z "${HAVE_AVX128_FALSE}"; then 27402 as_fn_error $? "conditional \"HAVE_AVX128\" was never defined. 27403Usually this means the macro was only invoked conditionally." "$LINENO" 5 27404fi 27405if test -z "${HAVE_AVX128_TRUE}" && test -z "${HAVE_AVX128_FALSE}"; then 27406 as_fn_error $? "conditional \"HAVE_AVX128\" was never defined. 27407Usually this means the macro was only invoked conditionally." "$LINENO" 5 27408fi 27409 27410: "${CONFIG_STATUS=./config.status}" 27411ac_write_fail=0 27412ac_clean_files_save=$ac_clean_files 27413ac_clean_files="$ac_clean_files $CONFIG_STATUS" 27414{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 27415$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 27416as_write_fail=0 27417cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 27418#! $SHELL 27419# Generated by $as_me. 27420# Run this file to recreate the current configuration. 27421# Compiler output produced by configure, useful for debugging 27422# configure, is in config.log if it exists. 27423 27424debug=false 27425ac_cs_recheck=false 27426ac_cs_silent=false 27427 27428SHELL=\${CONFIG_SHELL-$SHELL} 27429export SHELL 27430_ASEOF 27431cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 27432## -------------------- ## 27433## M4sh Initialization. ## 27434## -------------------- ## 27435 27436# Be more Bourne compatible 27437DUALCASE=1; export DUALCASE # for MKS sh 27438if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 27439 emulate sh 27440 NULLCMD=: 27441 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 27442 # is contrary to our usage. Disable this feature. 27443 alias -g '${1+"$@"}'='"$@"' 27444 setopt NO_GLOB_SUBST 27445else 27446 case `(set -o) 2>/dev/null` in #( 27447 *posix*) : 27448 set -o posix ;; #( 27449 *) : 27450 ;; 27451esac 27452fi 27453 27454 27455as_nl=' 27456' 27457export as_nl 27458# Printing a long string crashes Solaris 7 /usr/bin/printf. 27459as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 27460as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 27461as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 27462# Prefer a ksh shell builtin over an external printf program on Solaris, 27463# but without wasting forks for bash or zsh. 27464if test -z "$BASH_VERSION$ZSH_VERSION" \ 27465 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 27466 as_echo='print -r --' 27467 as_echo_n='print -rn --' 27468elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 27469 as_echo='printf %s\n' 27470 as_echo_n='printf %s' 27471else 27472 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 27473 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 27474 as_echo_n='/usr/ucb/echo -n' 27475 else 27476 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 27477 as_echo_n_body='eval 27478 arg=$1; 27479 case $arg in #( 27480 *"$as_nl"*) 27481 expr "X$arg" : "X\\(.*\\)$as_nl"; 27482 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 27483 esac; 27484 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 27485 ' 27486 export as_echo_n_body 27487 as_echo_n='sh -c $as_echo_n_body as_echo' 27488 fi 27489 export as_echo_body 27490 as_echo='sh -c $as_echo_body as_echo' 27491fi 27492 27493# The user is always right. 27494if test "${PATH_SEPARATOR+set}" != set; then 27495 PATH_SEPARATOR=: 27496 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 27497 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 27498 PATH_SEPARATOR=';' 27499 } 27500fi 27501 27502 27503# IFS 27504# We need space, tab and new line, in precisely that order. Quoting is 27505# there to prevent editors from complaining about space-tab. 27506# (If _AS_PATH_WALK were called with IFS unset, it would disable word 27507# splitting by setting IFS to empty value.) 27508IFS=" "" $as_nl" 27509 27510# Find who we are. Look in the path if we contain no directory separator. 27511as_myself= 27512case $0 in #(( 27513 *[\\/]* ) as_myself=$0 ;; 27514 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27515for as_dir in $PATH 27516do 27517 IFS=$as_save_IFS 27518 test -z "$as_dir" && as_dir=. 27519 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 27520 done 27521IFS=$as_save_IFS 27522 27523 ;; 27524esac 27525# We did not find ourselves, most probably we were run as `sh COMMAND' 27526# in which case we are not to be found in the path. 27527if test "x$as_myself" = x; then 27528 as_myself=$0 27529fi 27530if test ! -f "$as_myself"; then 27531 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 27532 exit 1 27533fi 27534 27535# Unset variables that we do not need and which cause bugs (e.g. in 27536# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 27537# suppresses any "Segmentation fault" message there. '((' could 27538# trigger a bug in pdksh 5.2.14. 27539for as_var in BASH_ENV ENV MAIL MAILPATH 27540do eval test x\${$as_var+set} = xset \ 27541 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 27542done 27543PS1='$ ' 27544PS2='> ' 27545PS4='+ ' 27546 27547# NLS nuisances. 27548LC_ALL=C 27549export LC_ALL 27550LANGUAGE=C 27551export LANGUAGE 27552 27553# CDPATH. 27554(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 27555 27556 27557# as_fn_error STATUS ERROR [LINENO LOG_FD] 27558# ---------------------------------------- 27559# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 27560# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 27561# script with STATUS, using 1 if that was 0. 27562as_fn_error () 27563{ 27564 as_status=$1; test $as_status -eq 0 && as_status=1 27565 if test "$4"; then 27566 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 27567 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 27568 fi 27569 $as_echo "$as_me: error: $2" >&2 27570 as_fn_exit $as_status 27571} # as_fn_error 27572 27573 27574# as_fn_set_status STATUS 27575# ----------------------- 27576# Set $? to STATUS, without forking. 27577as_fn_set_status () 27578{ 27579 return $1 27580} # as_fn_set_status 27581 27582# as_fn_exit STATUS 27583# ----------------- 27584# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 27585as_fn_exit () 27586{ 27587 set +e 27588 as_fn_set_status $1 27589 exit $1 27590} # as_fn_exit 27591 27592# as_fn_unset VAR 27593# --------------- 27594# Portably unset VAR. 27595as_fn_unset () 27596{ 27597 { eval $1=; unset $1;} 27598} 27599as_unset=as_fn_unset 27600# as_fn_append VAR VALUE 27601# ---------------------- 27602# Append the text in VALUE to the end of the definition contained in VAR. Take 27603# advantage of any shell optimizations that allow amortized linear growth over 27604# repeated appends, instead of the typical quadratic growth present in naive 27605# implementations. 27606if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 27607 eval 'as_fn_append () 27608 { 27609 eval $1+=\$2 27610 }' 27611else 27612 as_fn_append () 27613 { 27614 eval $1=\$$1\$2 27615 } 27616fi # as_fn_append 27617 27618# as_fn_arith ARG... 27619# ------------------ 27620# Perform arithmetic evaluation on the ARGs, and store the result in the 27621# global $as_val. Take advantage of shells that can avoid forks. The arguments 27622# must be portable across $(()) and expr. 27623if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 27624 eval 'as_fn_arith () 27625 { 27626 as_val=$(( $* )) 27627 }' 27628else 27629 as_fn_arith () 27630 { 27631 as_val=`expr "$@" || test $? -eq 1` 27632 } 27633fi # as_fn_arith 27634 27635 27636if expr a : '\(a\)' >/dev/null 2>&1 && 27637 test "X`expr 00001 : '.*\(...\)'`" = X001; then 27638 as_expr=expr 27639else 27640 as_expr=false 27641fi 27642 27643if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 27644 as_basename=basename 27645else 27646 as_basename=false 27647fi 27648 27649if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 27650 as_dirname=dirname 27651else 27652 as_dirname=false 27653fi 27654 27655as_me=`$as_basename -- "$0" || 27656$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 27657 X"$0" : 'X\(//\)$' \| \ 27658 X"$0" : 'X\(/\)' \| . 2>/dev/null || 27659$as_echo X/"$0" | 27660 sed '/^.*\/\([^/][^/]*\)\/*$/{ 27661 s//\1/ 27662 q 27663 } 27664 /^X\/\(\/\/\)$/{ 27665 s//\1/ 27666 q 27667 } 27668 /^X\/\(\/\).*/{ 27669 s//\1/ 27670 q 27671 } 27672 s/.*/./; q'` 27673 27674# Avoid depending upon Character Ranges. 27675as_cr_letters='abcdefghijklmnopqrstuvwxyz' 27676as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 27677as_cr_Letters=$as_cr_letters$as_cr_LETTERS 27678as_cr_digits='0123456789' 27679as_cr_alnum=$as_cr_Letters$as_cr_digits 27680 27681ECHO_C= ECHO_N= ECHO_T= 27682case `echo -n x` in #((((( 27683-n*) 27684 case `echo 'xy\c'` in 27685 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 27686 xy) ECHO_C='\c';; 27687 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 27688 ECHO_T=' ';; 27689 esac;; 27690*) 27691 ECHO_N='-n';; 27692esac 27693 27694rm -f conf$$ conf$$.exe conf$$.file 27695if test -d conf$$.dir; then 27696 rm -f conf$$.dir/conf$$.file 27697else 27698 rm -f conf$$.dir 27699 mkdir conf$$.dir 2>/dev/null 27700fi 27701if (echo >conf$$.file) 2>/dev/null; then 27702 if ln -s conf$$.file conf$$ 2>/dev/null; then 27703 as_ln_s='ln -s' 27704 # ... but there are two gotchas: 27705 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 27706 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 27707 # In both cases, we have to default to `cp -pR'. 27708 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 27709 as_ln_s='cp -pR' 27710 elif ln conf$$.file conf$$ 2>/dev/null; then 27711 as_ln_s=ln 27712 else 27713 as_ln_s='cp -pR' 27714 fi 27715else 27716 as_ln_s='cp -pR' 27717fi 27718rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 27719rmdir conf$$.dir 2>/dev/null 27720 27721 27722# as_fn_mkdir_p 27723# ------------- 27724# Create "$as_dir" as a directory, including parents if necessary. 27725as_fn_mkdir_p () 27726{ 27727 27728 case $as_dir in #( 27729 -*) as_dir=./$as_dir;; 27730 esac 27731 test -d "$as_dir" || eval $as_mkdir_p || { 27732 as_dirs= 27733 while :; do 27734 case $as_dir in #( 27735 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 27736 *) as_qdir=$as_dir;; 27737 esac 27738 as_dirs="'$as_qdir' $as_dirs" 27739 as_dir=`$as_dirname -- "$as_dir" || 27740$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 27741 X"$as_dir" : 'X\(//\)[^/]' \| \ 27742 X"$as_dir" : 'X\(//\)$' \| \ 27743 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 27744$as_echo X"$as_dir" | 27745 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 27746 s//\1/ 27747 q 27748 } 27749 /^X\(\/\/\)[^/].*/{ 27750 s//\1/ 27751 q 27752 } 27753 /^X\(\/\/\)$/{ 27754 s//\1/ 27755 q 27756 } 27757 /^X\(\/\).*/{ 27758 s//\1/ 27759 q 27760 } 27761 s/.*/./; q'` 27762 test -d "$as_dir" && break 27763 done 27764 test -z "$as_dirs" || eval "mkdir $as_dirs" 27765 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 27766 27767 27768} # as_fn_mkdir_p 27769if mkdir -p . 2>/dev/null; then 27770 as_mkdir_p='mkdir -p "$as_dir"' 27771else 27772 test -d ./-p && rmdir ./-p 27773 as_mkdir_p=false 27774fi 27775 27776 27777# as_fn_executable_p FILE 27778# ----------------------- 27779# Test if FILE is an executable regular file. 27780as_fn_executable_p () 27781{ 27782 test -f "$1" && test -x "$1" 27783} # as_fn_executable_p 27784as_test_x='test -x' 27785as_executable_p=as_fn_executable_p 27786 27787# Sed expression to map a string onto a valid CPP name. 27788as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 27789 27790# Sed expression to map a string onto a valid variable name. 27791as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 27792 27793 27794exec 6>&1 27795## ----------------------------------- ## 27796## Main body of $CONFIG_STATUS script. ## 27797## ----------------------------------- ## 27798_ASEOF 27799test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 27800 27801cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27802# Save the log message, to keep $0 and so on meaningful, and to 27803# report actual input values of CONFIG_FILES etc. instead of their 27804# values after options handling. 27805ac_log=" 27806This file was extended by GNU Fortran Runtime Library $as_me 0.3, which was 27807generated by GNU Autoconf 2.69. Invocation command line was 27808 27809 CONFIG_FILES = $CONFIG_FILES 27810 CONFIG_HEADERS = $CONFIG_HEADERS 27811 CONFIG_LINKS = $CONFIG_LINKS 27812 CONFIG_COMMANDS = $CONFIG_COMMANDS 27813 $ $0 $@ 27814 27815on `(hostname || uname -n) 2>/dev/null | sed 1q` 27816" 27817 27818_ACEOF 27819 27820case $ac_config_files in *" 27821"*) set x $ac_config_files; shift; ac_config_files=$*;; 27822esac 27823 27824case $ac_config_headers in *" 27825"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 27826esac 27827 27828 27829cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27830# Files that config.status was made for. 27831config_files="$ac_config_files" 27832config_headers="$ac_config_headers" 27833config_commands="$ac_config_commands" 27834 27835_ACEOF 27836 27837cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27838ac_cs_usage="\ 27839\`$as_me' instantiates files and other configuration actions 27840from templates according to the current configuration. Unless the files 27841and actions are specified as TAGs, all are instantiated by default. 27842 27843Usage: $0 [OPTION]... [TAG]... 27844 27845 -h, --help print this help, then exit 27846 -V, --version print version number and configuration settings, then exit 27847 --config print configuration, then exit 27848 -q, --quiet, --silent 27849 do not print progress messages 27850 -d, --debug don't remove temporary files 27851 --recheck update $as_me by reconfiguring in the same conditions 27852 --file=FILE[:TEMPLATE] 27853 instantiate the configuration file FILE 27854 --header=FILE[:TEMPLATE] 27855 instantiate the configuration header FILE 27856 27857Configuration files: 27858$config_files 27859 27860Configuration headers: 27861$config_headers 27862 27863Configuration commands: 27864$config_commands 27865 27866Report bugs to the package provider. 27867GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>. 27868General help using GNU software: <http://www.gnu.org/gethelp/>." 27869 27870_ACEOF 27871cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27872ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 27873ac_cs_version="\\ 27874GNU Fortran Runtime Library config.status 0.3 27875configured by $0, generated by GNU Autoconf 2.69, 27876 with options \\"\$ac_cs_config\\" 27877 27878Copyright (C) 2012 Free Software Foundation, Inc. 27879This config.status script is free software; the Free Software Foundation 27880gives unlimited permission to copy, distribute and modify it." 27881 27882ac_pwd='$ac_pwd' 27883srcdir='$srcdir' 27884INSTALL='$INSTALL' 27885MKDIR_P='$MKDIR_P' 27886AWK='$AWK' 27887test -n "\$AWK" || AWK=awk 27888_ACEOF 27889 27890cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27891# The default lists apply if the user does not specify any file. 27892ac_need_defaults=: 27893while test $# != 0 27894do 27895 case $1 in 27896 --*=?*) 27897 ac_option=`expr "X$1" : 'X\([^=]*\)='` 27898 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 27899 ac_shift=: 27900 ;; 27901 --*=) 27902 ac_option=`expr "X$1" : 'X\([^=]*\)='` 27903 ac_optarg= 27904 ac_shift=: 27905 ;; 27906 *) 27907 ac_option=$1 27908 ac_optarg=$2 27909 ac_shift=shift 27910 ;; 27911 esac 27912 27913 case $ac_option in 27914 # Handling of the options. 27915 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 27916 ac_cs_recheck=: ;; 27917 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 27918 $as_echo "$ac_cs_version"; exit ;; 27919 --config | --confi | --conf | --con | --co | --c ) 27920 $as_echo "$ac_cs_config"; exit ;; 27921 --debug | --debu | --deb | --de | --d | -d ) 27922 debug=: ;; 27923 --file | --fil | --fi | --f ) 27924 $ac_shift 27925 case $ac_optarg in 27926 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 27927 '') as_fn_error $? "missing file argument" ;; 27928 esac 27929 as_fn_append CONFIG_FILES " '$ac_optarg'" 27930 ac_need_defaults=false;; 27931 --header | --heade | --head | --hea ) 27932 $ac_shift 27933 case $ac_optarg in 27934 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 27935 esac 27936 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 27937 ac_need_defaults=false;; 27938 --he | --h) 27939 # Conflict between --help and --header 27940 as_fn_error $? "ambiguous option: \`$1' 27941Try \`$0 --help' for more information.";; 27942 --help | --hel | -h ) 27943 $as_echo "$ac_cs_usage"; exit ;; 27944 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 27945 | -silent | --silent | --silen | --sile | --sil | --si | --s) 27946 ac_cs_silent=: ;; 27947 27948 # This is an error. 27949 -*) as_fn_error $? "unrecognized option: \`$1' 27950Try \`$0 --help' for more information." ;; 27951 27952 *) as_fn_append ac_config_targets " $1" 27953 ac_need_defaults=false ;; 27954 27955 esac 27956 shift 27957done 27958 27959ac_configure_extra_args= 27960 27961if $ac_cs_silent; then 27962 exec 6>/dev/null 27963 ac_configure_extra_args="$ac_configure_extra_args --silent" 27964fi 27965 27966_ACEOF 27967cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27968if \$ac_cs_recheck; then 27969 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 27970 shift 27971 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 27972 CONFIG_SHELL='$SHELL' 27973 export CONFIG_SHELL 27974 exec "\$@" 27975fi 27976 27977_ACEOF 27978cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27979exec 5>>config.log 27980{ 27981 echo 27982 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 27983## Running $as_me. ## 27984_ASBOX 27985 $as_echo "$ac_log" 27986} >&5 27987 27988_ACEOF 27989cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27990# 27991# INIT-COMMANDS 27992# 27993 27994srcdir="$srcdir" 27995host="$host" 27996target="$target" 27997with_multisubdir="$with_multisubdir" 27998with_multisrctop="$with_multisrctop" 27999with_target_subdir="$with_target_subdir" 28000ac_configure_args="${multilib_arg} ${ac_configure_args}" 28001multi_basedir="$multi_basedir" 28002CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 28003CC="$CC" 28004CXX="$CXX" 28005GFORTRAN="$GFORTRAN" 28006GDC="$GDC" 28007AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 28008 28009 28010# The HP-UX ksh and POSIX shell print the target directory to stdout 28011# if CDPATH is set. 28012(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 28013 28014sed_quote_subst='$sed_quote_subst' 28015double_quote_subst='$double_quote_subst' 28016delay_variable_subst='$delay_variable_subst' 28017SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 28018Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 28019GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 28020EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 28021FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 28022SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 28023ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 28024LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 28025macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 28026macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 28027enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 28028enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 28029pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 28030enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 28031host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 28032host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 28033host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 28034build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 28035build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 28036build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 28037NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 28038LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 28039max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 28040ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 28041exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 28042lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 28043lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 28044lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 28045reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 28046reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 28047OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 28048deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 28049file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 28050AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 28051AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 28052STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 28053RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 28054old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 28055old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 28056old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 28057lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 28058CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 28059CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 28060compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 28061GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 28062lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 28063lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 28064lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 28065lt_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"`' 28066objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 28067MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 28068lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 28069lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 28070lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 28071lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 28072lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 28073need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 28074DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 28075NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 28076LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 28077OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 28078OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 28079libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 28080shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 28081extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 28082archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 28083enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 28084export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 28085whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 28086compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 28087old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 28088old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 28089archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 28090archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 28091module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 28092module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 28093with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 28094allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 28095no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 28096hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 28097hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 28098hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 28099hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 28100hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 28101hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 28102hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 28103hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 28104inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 28105link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 28106fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' 28107always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 28108export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 28109exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 28110include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 28111prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 28112file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 28113variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 28114need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 28115need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 28116version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 28117runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 28118shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 28119shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 28120libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 28121library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 28122soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 28123install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 28124postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 28125postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 28126finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 28127finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 28128hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 28129sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 28130sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 28131hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 28132enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 28133enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 28134enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 28135old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 28136striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 28137compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 28138predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 28139postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 28140predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 28141postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 28142compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 28143LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`' 28144reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`' 28145reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`' 28146old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`' 28147compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`' 28148GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`' 28149lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`' 28150lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`' 28151lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`' 28152lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`' 28153lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`' 28154archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`' 28155enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`' 28156export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`' 28157whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`' 28158compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`' 28159old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`' 28160old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`' 28161archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`' 28162archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`' 28163module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`' 28164module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`' 28165with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`' 28166allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`' 28167no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`' 28168hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`' 28169hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`' 28170hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`' 28171hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`' 28172hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`' 28173hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`' 28174hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`' 28175hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`' 28176inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`' 28177link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`' 28178fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`' 28179always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`' 28180export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`' 28181exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`' 28182include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`' 28183prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`' 28184file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`' 28185hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`' 28186compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`' 28187predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`' 28188postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`' 28189predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`' 28190postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`' 28191compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`' 28192 28193LTCC='$LTCC' 28194LTCFLAGS='$LTCFLAGS' 28195compiler='$compiler_DEFAULT' 28196 28197# A function that is used when there is no print builtin or printf. 28198func_fallback_echo () 28199{ 28200 eval 'cat <<_LTECHO_EOF 28201\$1 28202_LTECHO_EOF' 28203} 28204 28205# Quote evaled strings. 28206for var in SED \ 28207GREP \ 28208EGREP \ 28209FGREP \ 28210SHELL \ 28211ECHO \ 28212LD \ 28213NM \ 28214LN_S \ 28215lt_SP2NL \ 28216lt_NL2SP \ 28217reload_flag \ 28218OBJDUMP \ 28219deplibs_check_method \ 28220file_magic_cmd \ 28221AR \ 28222AR_FLAGS \ 28223STRIP \ 28224RANLIB \ 28225CC \ 28226CFLAGS \ 28227compiler \ 28228lt_cv_sys_global_symbol_pipe \ 28229lt_cv_sys_global_symbol_to_cdecl \ 28230lt_cv_sys_global_symbol_to_c_name_address \ 28231lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 28232lt_prog_compiler_no_builtin_flag \ 28233lt_prog_compiler_wl \ 28234lt_prog_compiler_pic \ 28235lt_prog_compiler_static \ 28236lt_cv_prog_compiler_c_o \ 28237need_locks \ 28238DSYMUTIL \ 28239NMEDIT \ 28240LIPO \ 28241OTOOL \ 28242OTOOL64 \ 28243shrext_cmds \ 28244export_dynamic_flag_spec \ 28245whole_archive_flag_spec \ 28246compiler_needs_object \ 28247with_gnu_ld \ 28248allow_undefined_flag \ 28249no_undefined_flag \ 28250hardcode_libdir_flag_spec \ 28251hardcode_libdir_flag_spec_ld \ 28252hardcode_libdir_separator \ 28253fix_srcfile_path \ 28254exclude_expsyms \ 28255include_expsyms \ 28256file_list_spec \ 28257variables_saved_for_relink \ 28258libname_spec \ 28259library_names_spec \ 28260soname_spec \ 28261install_override_mode \ 28262finish_eval \ 28263old_striplib \ 28264striplib \ 28265compiler_lib_search_dirs \ 28266predep_objects \ 28267postdep_objects \ 28268predeps \ 28269postdeps \ 28270compiler_lib_search_path \ 28271LD_FC \ 28272reload_flag_FC \ 28273compiler_FC \ 28274lt_prog_compiler_no_builtin_flag_FC \ 28275lt_prog_compiler_wl_FC \ 28276lt_prog_compiler_pic_FC \ 28277lt_prog_compiler_static_FC \ 28278lt_cv_prog_compiler_c_o_FC \ 28279export_dynamic_flag_spec_FC \ 28280whole_archive_flag_spec_FC \ 28281compiler_needs_object_FC \ 28282with_gnu_ld_FC \ 28283allow_undefined_flag_FC \ 28284no_undefined_flag_FC \ 28285hardcode_libdir_flag_spec_FC \ 28286hardcode_libdir_flag_spec_ld_FC \ 28287hardcode_libdir_separator_FC \ 28288fix_srcfile_path_FC \ 28289exclude_expsyms_FC \ 28290include_expsyms_FC \ 28291file_list_spec_FC \ 28292compiler_lib_search_dirs_FC \ 28293predep_objects_FC \ 28294postdep_objects_FC \ 28295predeps_FC \ 28296postdeps_FC \ 28297compiler_lib_search_path_FC; do 28298 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 28299 *[\\\\\\\`\\"\\\$]*) 28300 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 28301 ;; 28302 *) 28303 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 28304 ;; 28305 esac 28306done 28307 28308# Double-quote double-evaled strings. 28309for var in reload_cmds \ 28310old_postinstall_cmds \ 28311old_postuninstall_cmds \ 28312old_archive_cmds \ 28313extract_expsyms_cmds \ 28314old_archive_from_new_cmds \ 28315old_archive_from_expsyms_cmds \ 28316archive_cmds \ 28317archive_expsym_cmds \ 28318module_cmds \ 28319module_expsym_cmds \ 28320export_symbols_cmds \ 28321prelink_cmds \ 28322postinstall_cmds \ 28323postuninstall_cmds \ 28324finish_cmds \ 28325sys_lib_search_path_spec \ 28326sys_lib_dlsearch_path_spec \ 28327reload_cmds_FC \ 28328old_archive_cmds_FC \ 28329old_archive_from_new_cmds_FC \ 28330old_archive_from_expsyms_cmds_FC \ 28331archive_cmds_FC \ 28332archive_expsym_cmds_FC \ 28333module_cmds_FC \ 28334module_expsym_cmds_FC \ 28335export_symbols_cmds_FC \ 28336prelink_cmds_FC; do 28337 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 28338 *[\\\\\\\`\\"\\\$]*) 28339 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 28340 ;; 28341 *) 28342 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 28343 ;; 28344 esac 28345done 28346 28347ac_aux_dir='$ac_aux_dir' 28348xsi_shell='$xsi_shell' 28349lt_shell_append='$lt_shell_append' 28350 28351# See if we are running on zsh, and set the options which allow our 28352# commands through without removal of \ escapes INIT. 28353if test -n "\${ZSH_VERSION+set}" ; then 28354 setopt NO_GLOB_SUBST 28355fi 28356 28357 28358 PACKAGE='$PACKAGE' 28359 VERSION='$VERSION' 28360 TIMESTAMP='$TIMESTAMP' 28361 RM='$RM' 28362 ofile='$ofile' 28363 28364 28365 28366 28367 28368 28369GCC="$GCC" 28370CC="$CC" 28371acx_cv_header_stdint="$acx_cv_header_stdint" 28372acx_cv_type_int8_t="$acx_cv_type_int8_t" 28373acx_cv_type_int16_t="$acx_cv_type_int16_t" 28374acx_cv_type_int32_t="$acx_cv_type_int32_t" 28375acx_cv_type_int64_t="$acx_cv_type_int64_t" 28376acx_cv_type_intptr_t="$acx_cv_type_intptr_t" 28377ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t" 28378ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t" 28379ac_cv_type_uint64_t="$ac_cv_type_uint64_t" 28380ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" 28381ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t" 28382ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" 28383ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" 28384ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p" 28385 28386 28387_ACEOF 28388 28389cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 28390 28391# Handling of arguments. 28392for ac_config_target in $ac_config_targets 28393do 28394 case $ac_config_target in 28395 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 28396 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 28397 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 28398 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 28399 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;; 28400 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 28401 "libgfortran.spec") CONFIG_FILES="$CONFIG_FILES libgfortran.spec" ;; 28402 28403 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 28404 esac 28405done 28406 28407 28408# If the user did not use the arguments to specify the items to instantiate, 28409# then the envvar interface is used. Set only those that are not. 28410# We use the long form for the default assignment because of an extremely 28411# bizarre bug on SunOS 4.1.3. 28412if $ac_need_defaults; then 28413 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 28414 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 28415 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 28416fi 28417 28418# Have a temporary directory for convenience. Make it in the build tree 28419# simply because there is no reason against having it here, and in addition, 28420# creating and moving files from /tmp can sometimes cause problems. 28421# Hook for its removal unless debugging. 28422# Note that there is a small window in which the directory will not be cleaned: 28423# after its creation but before its name has been assigned to `$tmp'. 28424$debug || 28425{ 28426 tmp= ac_tmp= 28427 trap 'exit_status=$? 28428 : "${ac_tmp:=$tmp}" 28429 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 28430' 0 28431 trap 'as_fn_exit 1' 1 2 13 15 28432} 28433# Create a (secure) tmp directory for tmp files. 28434 28435{ 28436 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 28437 test -d "$tmp" 28438} || 28439{ 28440 tmp=./conf$$-$RANDOM 28441 (umask 077 && mkdir "$tmp") 28442} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 28443ac_tmp=$tmp 28444 28445# Set up the scripts for CONFIG_FILES section. 28446# No need to generate them if there are no CONFIG_FILES. 28447# This happens for instance with `./config.status config.h'. 28448if test -n "$CONFIG_FILES"; then 28449 28450 28451ac_cr=`echo X | tr X '\015'` 28452# On cygwin, bash can eat \r inside `` if the user requested igncr. 28453# But we know of no other shell where ac_cr would be empty at this 28454# point, so we can use a bashism as a fallback. 28455if test "x$ac_cr" = x; then 28456 eval ac_cr=\$\'\\r\' 28457fi 28458ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 28459if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 28460 ac_cs_awk_cr='\\r' 28461else 28462 ac_cs_awk_cr=$ac_cr 28463fi 28464 28465echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 28466_ACEOF 28467 28468 28469{ 28470 echo "cat >conf$$subs.awk <<_ACEOF" && 28471 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 28472 echo "_ACEOF" 28473} >conf$$subs.sh || 28474 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 28475ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 28476ac_delim='%!_!# ' 28477for ac_last_try in false false false false false :; do 28478 . ./conf$$subs.sh || 28479 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 28480 28481 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 28482 if test $ac_delim_n = $ac_delim_num; then 28483 break 28484 elif $ac_last_try; then 28485 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 28486 else 28487 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 28488 fi 28489done 28490rm -f conf$$subs.sh 28491 28492cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 28493cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 28494_ACEOF 28495sed -n ' 28496h 28497s/^/S["/; s/!.*/"]=/ 28498p 28499g 28500s/^[^!]*!// 28501:repl 28502t repl 28503s/'"$ac_delim"'$// 28504t delim 28505:nl 28506h 28507s/\(.\{148\}\)..*/\1/ 28508t more1 28509s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 28510p 28511n 28512b repl 28513:more1 28514s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 28515p 28516g 28517s/.\{148\}// 28518t nl 28519:delim 28520h 28521s/\(.\{148\}\)..*/\1/ 28522t more2 28523s/["\\]/\\&/g; s/^/"/; s/$/"/ 28524p 28525b 28526:more2 28527s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 28528p 28529g 28530s/.\{148\}// 28531t delim 28532' <conf$$subs.awk | sed ' 28533/^[^""]/{ 28534 N 28535 s/\n// 28536} 28537' >>$CONFIG_STATUS || ac_write_fail=1 28538rm -f conf$$subs.awk 28539cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 28540_ACAWK 28541cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 28542 for (key in S) S_is_set[key] = 1 28543 FS = "" 28544 28545} 28546{ 28547 line = $ 0 28548 nfields = split(line, field, "@") 28549 substed = 0 28550 len = length(field[1]) 28551 for (i = 2; i < nfields; i++) { 28552 key = field[i] 28553 keylen = length(key) 28554 if (S_is_set[key]) { 28555 value = S[key] 28556 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 28557 len += length(value) + length(field[++i]) 28558 substed = 1 28559 } else 28560 len += 1 + keylen 28561 } 28562 28563 print line 28564} 28565 28566_ACAWK 28567_ACEOF 28568cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 28569if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 28570 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 28571else 28572 cat 28573fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 28574 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 28575_ACEOF 28576 28577# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 28578# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 28579# trailing colons and then remove the whole line if VPATH becomes empty 28580# (actually we leave an empty line to preserve line numbers). 28581if test "x$srcdir" = x.; then 28582 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 28583h 28584s/// 28585s/^/:/ 28586s/[ ]*$/:/ 28587s/:\$(srcdir):/:/g 28588s/:\${srcdir}:/:/g 28589s/:@srcdir@:/:/g 28590s/^:*// 28591s/:*$// 28592x 28593s/\(=[ ]*\).*/\1/ 28594G 28595s/\n// 28596s/^[^=]*=[ ]*$// 28597}' 28598fi 28599 28600cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 28601fi # test -n "$CONFIG_FILES" 28602 28603# Set up the scripts for CONFIG_HEADERS section. 28604# No need to generate them if there are no CONFIG_HEADERS. 28605# This happens for instance with `./config.status Makefile'. 28606if test -n "$CONFIG_HEADERS"; then 28607cat >"$ac_tmp/defines.awk" <<\_ACAWK || 28608BEGIN { 28609_ACEOF 28610 28611# Transform confdefs.h into an awk script `defines.awk', embedded as 28612# here-document in config.status, that substitutes the proper values into 28613# config.h.in to produce config.h. 28614 28615# Create a delimiter string that does not exist in confdefs.h, to ease 28616# handling of long lines. 28617ac_delim='%!_!# ' 28618for ac_last_try in false false :; do 28619 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 28620 if test -z "$ac_tt"; then 28621 break 28622 elif $ac_last_try; then 28623 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 28624 else 28625 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 28626 fi 28627done 28628 28629# For the awk script, D is an array of macro values keyed by name, 28630# likewise P contains macro parameters if any. Preserve backslash 28631# newline sequences. 28632 28633ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 28634sed -n ' 28635s/.\{148\}/&'"$ac_delim"'/g 28636t rset 28637:rset 28638s/^[ ]*#[ ]*define[ ][ ]*/ / 28639t def 28640d 28641:def 28642s/\\$// 28643t bsnl 28644s/["\\]/\\&/g 28645s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 28646D["\1"]=" \3"/p 28647s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 28648d 28649:bsnl 28650s/["\\]/\\&/g 28651s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 28652D["\1"]=" \3\\\\\\n"\\/p 28653t cont 28654s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 28655t cont 28656d 28657:cont 28658n 28659s/.\{148\}/&'"$ac_delim"'/g 28660t clear 28661:clear 28662s/\\$// 28663t bsnlc 28664s/["\\]/\\&/g; s/^/"/; s/$/"/p 28665d 28666:bsnlc 28667s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 28668b cont 28669' <confdefs.h | sed ' 28670s/'"$ac_delim"'/"\\\ 28671"/g' >>$CONFIG_STATUS || ac_write_fail=1 28672 28673cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 28674 for (key in D) D_is_set[key] = 1 28675 FS = "" 28676} 28677/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 28678 line = \$ 0 28679 split(line, arg, " ") 28680 if (arg[1] == "#") { 28681 defundef = arg[2] 28682 mac1 = arg[3] 28683 } else { 28684 defundef = substr(arg[1], 2) 28685 mac1 = arg[2] 28686 } 28687 split(mac1, mac2, "(") #) 28688 macro = mac2[1] 28689 prefix = substr(line, 1, index(line, defundef) - 1) 28690 if (D_is_set[macro]) { 28691 # Preserve the white space surrounding the "#". 28692 print prefix "define", macro P[macro] D[macro] 28693 next 28694 } else { 28695 # Replace #undef with comments. This is necessary, for example, 28696 # in the case of _POSIX_SOURCE, which is predefined and required 28697 # on some systems where configure will not decide to define it. 28698 if (defundef == "undef") { 28699 print "/*", prefix defundef, macro, "*/" 28700 next 28701 } 28702 } 28703} 28704{ print } 28705_ACAWK 28706_ACEOF 28707cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 28708 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 28709fi # test -n "$CONFIG_HEADERS" 28710 28711 28712eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 28713shift 28714for ac_tag 28715do 28716 case $ac_tag in 28717 :[FHLC]) ac_mode=$ac_tag; continue;; 28718 esac 28719 case $ac_mode$ac_tag in 28720 :[FHL]*:*);; 28721 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 28722 :[FH]-) ac_tag=-:-;; 28723 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 28724 esac 28725 ac_save_IFS=$IFS 28726 IFS=: 28727 set x $ac_tag 28728 IFS=$ac_save_IFS 28729 shift 28730 ac_file=$1 28731 shift 28732 28733 case $ac_mode in 28734 :L) ac_source=$1;; 28735 :[FH]) 28736 ac_file_inputs= 28737 for ac_f 28738 do 28739 case $ac_f in 28740 -) ac_f="$ac_tmp/stdin";; 28741 *) # Look for the file first in the build tree, then in the source tree 28742 # (if the path is not absolute). The absolute path cannot be DOS-style, 28743 # because $ac_f cannot contain `:'. 28744 test -f "$ac_f" || 28745 case $ac_f in 28746 [\\/$]*) false;; 28747 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 28748 esac || 28749 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 28750 esac 28751 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 28752 as_fn_append ac_file_inputs " '$ac_f'" 28753 done 28754 28755 # Let's still pretend it is `configure' which instantiates (i.e., don't 28756 # use $as_me), people would be surprised to read: 28757 # /* config.h. Generated by config.status. */ 28758 configure_input='Generated from '` 28759 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 28760 `' by configure.' 28761 if test x"$ac_file" != x-; then 28762 configure_input="$ac_file. $configure_input" 28763 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 28764$as_echo "$as_me: creating $ac_file" >&6;} 28765 fi 28766 # Neutralize special characters interpreted by sed in replacement strings. 28767 case $configure_input in #( 28768 *\&* | *\|* | *\\* ) 28769 ac_sed_conf_input=`$as_echo "$configure_input" | 28770 sed 's/[\\\\&|]/\\\\&/g'`;; #( 28771 *) ac_sed_conf_input=$configure_input;; 28772 esac 28773 28774 case $ac_tag in 28775 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 28776 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 28777 esac 28778 ;; 28779 esac 28780 28781 ac_dir=`$as_dirname -- "$ac_file" || 28782$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28783 X"$ac_file" : 'X\(//\)[^/]' \| \ 28784 X"$ac_file" : 'X\(//\)$' \| \ 28785 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 28786$as_echo X"$ac_file" | 28787 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 28788 s//\1/ 28789 q 28790 } 28791 /^X\(\/\/\)[^/].*/{ 28792 s//\1/ 28793 q 28794 } 28795 /^X\(\/\/\)$/{ 28796 s//\1/ 28797 q 28798 } 28799 /^X\(\/\).*/{ 28800 s//\1/ 28801 q 28802 } 28803 s/.*/./; q'` 28804 as_dir="$ac_dir"; as_fn_mkdir_p 28805 ac_builddir=. 28806 28807case "$ac_dir" in 28808.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 28809*) 28810 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 28811 # A ".." for each directory in $ac_dir_suffix. 28812 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 28813 case $ac_top_builddir_sub in 28814 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 28815 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 28816 esac ;; 28817esac 28818ac_abs_top_builddir=$ac_pwd 28819ac_abs_builddir=$ac_pwd$ac_dir_suffix 28820# for backward compatibility: 28821ac_top_builddir=$ac_top_build_prefix 28822 28823case $srcdir in 28824 .) # We are building in place. 28825 ac_srcdir=. 28826 ac_top_srcdir=$ac_top_builddir_sub 28827 ac_abs_top_srcdir=$ac_pwd ;; 28828 [\\/]* | ?:[\\/]* ) # Absolute name. 28829 ac_srcdir=$srcdir$ac_dir_suffix; 28830 ac_top_srcdir=$srcdir 28831 ac_abs_top_srcdir=$srcdir ;; 28832 *) # Relative name. 28833 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 28834 ac_top_srcdir=$ac_top_build_prefix$srcdir 28835 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 28836esac 28837ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 28838 28839 28840 case $ac_mode in 28841 :F) 28842 # 28843 # CONFIG_FILE 28844 # 28845 28846 case $INSTALL in 28847 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 28848 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 28849 esac 28850 ac_MKDIR_P=$MKDIR_P 28851 case $MKDIR_P in 28852 [\\/$]* | ?:[\\/]* ) ;; 28853 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 28854 esac 28855_ACEOF 28856 28857cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 28858# If the template does not know about datarootdir, expand it. 28859# FIXME: This hack should be removed a few years after 2.60. 28860ac_datarootdir_hack=; ac_datarootdir_seen= 28861ac_sed_dataroot=' 28862/datarootdir/ { 28863 p 28864 q 28865} 28866/@datadir@/p 28867/@docdir@/p 28868/@infodir@/p 28869/@localedir@/p 28870/@mandir@/p' 28871case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 28872*datarootdir*) ac_datarootdir_seen=yes;; 28873*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 28874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 28875$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 28876_ACEOF 28877cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 28878 ac_datarootdir_hack=' 28879 s&@datadir@&$datadir&g 28880 s&@docdir@&$docdir&g 28881 s&@infodir@&$infodir&g 28882 s&@localedir@&$localedir&g 28883 s&@mandir@&$mandir&g 28884 s&\\\${datarootdir}&$datarootdir&g' ;; 28885esac 28886_ACEOF 28887 28888# Neutralize VPATH when `$srcdir' = `.'. 28889# Shell code in configure.ac might set extrasub. 28890# FIXME: do we really want to maintain this feature? 28891cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 28892ac_sed_extra="$ac_vpsub 28893$extrasub 28894_ACEOF 28895cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 28896:t 28897/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 28898s|@configure_input@|$ac_sed_conf_input|;t t 28899s&@top_builddir@&$ac_top_builddir_sub&;t t 28900s&@top_build_prefix@&$ac_top_build_prefix&;t t 28901s&@srcdir@&$ac_srcdir&;t t 28902s&@abs_srcdir@&$ac_abs_srcdir&;t t 28903s&@top_srcdir@&$ac_top_srcdir&;t t 28904s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 28905s&@builddir@&$ac_builddir&;t t 28906s&@abs_builddir@&$ac_abs_builddir&;t t 28907s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 28908s&@INSTALL@&$ac_INSTALL&;t t 28909s&@MKDIR_P@&$ac_MKDIR_P&;t t 28910$ac_datarootdir_hack 28911" 28912eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 28913 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 28914 28915test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 28916 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 28917 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 28918 "$ac_tmp/out"`; test -z "$ac_out"; } && 28919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 28920which seems to be undefined. Please make sure it is defined" >&5 28921$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 28922which seems to be undefined. Please make sure it is defined" >&2;} 28923 28924 rm -f "$ac_tmp/stdin" 28925 case $ac_file in 28926 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 28927 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 28928 esac \ 28929 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 28930 ;; 28931 :H) 28932 # 28933 # CONFIG_HEADER 28934 # 28935 if test x"$ac_file" != x-; then 28936 { 28937 $as_echo "/* $configure_input */" \ 28938 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 28939 } >"$ac_tmp/config.h" \ 28940 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 28941 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 28942 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 28943$as_echo "$as_me: $ac_file is unchanged" >&6;} 28944 else 28945 rm -f "$ac_file" 28946 mv "$ac_tmp/config.h" "$ac_file" \ 28947 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 28948 fi 28949 else 28950 $as_echo "/* $configure_input */" \ 28951 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 28952 || as_fn_error $? "could not create -" "$LINENO" 5 28953 fi 28954# Compute "$ac_file"'s index in $config_headers. 28955_am_arg="$ac_file" 28956_am_stamp_count=1 28957for _am_header in $config_headers :; do 28958 case $_am_header in 28959 $_am_arg | $_am_arg:* ) 28960 break ;; 28961 * ) 28962 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 28963 esac 28964done 28965echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 28966$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28967 X"$_am_arg" : 'X\(//\)[^/]' \| \ 28968 X"$_am_arg" : 'X\(//\)$' \| \ 28969 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 28970$as_echo X"$_am_arg" | 28971 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 28972 s//\1/ 28973 q 28974 } 28975 /^X\(\/\/\)[^/].*/{ 28976 s//\1/ 28977 q 28978 } 28979 /^X\(\/\/\)$/{ 28980 s//\1/ 28981 q 28982 } 28983 /^X\(\/\).*/{ 28984 s//\1/ 28985 q 28986 } 28987 s/.*/./; q'`/stamp-h$_am_stamp_count 28988 ;; 28989 28990 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 28991$as_echo "$as_me: executing $ac_file commands" >&6;} 28992 ;; 28993 esac 28994 28995 28996 case $ac_file$ac_mode in 28997 "default-1":C) 28998# Only add multilib support code if we just rebuilt the top-level 28999# Makefile. 29000case " $CONFIG_FILES " in 29001 *" Makefile "*) 29002 ac_file=Makefile . ${multi_basedir}/config-ml.in 29003 ;; 29004esac ;; 29005 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 29006 # Older Autoconf quotes --file arguments for eval, but not when files 29007 # are listed without --file. Let's play safe and only enable the eval 29008 # if we detect the quoting. 29009 case $CONFIG_FILES in 29010 *\'*) eval set x "$CONFIG_FILES" ;; 29011 *) set x $CONFIG_FILES ;; 29012 esac 29013 shift 29014 for mf 29015 do 29016 # Strip MF so we end up with the name of the file. 29017 mf=`echo "$mf" | sed -e 's/:.*$//'` 29018 # Check whether this is an Automake generated Makefile or not. 29019 # We used to match only the files named 'Makefile.in', but 29020 # some people rename them; so instead we look at the file content. 29021 # Grep'ing the first line is not enough: some people post-process 29022 # each Makefile.in and add a new line on top of each file to say so. 29023 # Grep'ing the whole file is not good either: AIX grep has a line 29024 # limit of 2048, but all sed's we know have understand at least 4000. 29025 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 29026 dirpart=`$as_dirname -- "$mf" || 29027$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 29028 X"$mf" : 'X\(//\)[^/]' \| \ 29029 X"$mf" : 'X\(//\)$' \| \ 29030 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 29031$as_echo X"$mf" | 29032 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 29033 s//\1/ 29034 q 29035 } 29036 /^X\(\/\/\)[^/].*/{ 29037 s//\1/ 29038 q 29039 } 29040 /^X\(\/\/\)$/{ 29041 s//\1/ 29042 q 29043 } 29044 /^X\(\/\).*/{ 29045 s//\1/ 29046 q 29047 } 29048 s/.*/./; q'` 29049 else 29050 continue 29051 fi 29052 # Extract the definition of DEPDIR, am__include, and am__quote 29053 # from the Makefile without running 'make'. 29054 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 29055 test -z "$DEPDIR" && continue 29056 am__include=`sed -n 's/^am__include = //p' < "$mf"` 29057 test -z "$am__include" && continue 29058 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 29059 # Find all dependency output files, they are included files with 29060 # $(DEPDIR) in their names. We invoke sed twice because it is the 29061 # simplest approach to changing $(DEPDIR) to its actual value in the 29062 # expansion. 29063 for file in `sed -n " 29064 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 29065 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 29066 # Make sure the directory exists. 29067 test -f "$dirpart/$file" && continue 29068 fdir=`$as_dirname -- "$file" || 29069$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 29070 X"$file" : 'X\(//\)[^/]' \| \ 29071 X"$file" : 'X\(//\)$' \| \ 29072 X"$file" : 'X\(/\)' \| . 2>/dev/null || 29073$as_echo X"$file" | 29074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 29075 s//\1/ 29076 q 29077 } 29078 /^X\(\/\/\)[^/].*/{ 29079 s//\1/ 29080 q 29081 } 29082 /^X\(\/\/\)$/{ 29083 s//\1/ 29084 q 29085 } 29086 /^X\(\/\).*/{ 29087 s//\1/ 29088 q 29089 } 29090 s/.*/./; q'` 29091 as_dir=$dirpart/$fdir; as_fn_mkdir_p 29092 # echo "creating $dirpart/$file" 29093 echo '# dummy' > "$dirpart/$file" 29094 done 29095 done 29096} 29097 ;; 29098 "libtool":C) 29099 29100 # See if we are running on zsh, and set the options which allow our 29101 # commands through without removal of \ escapes. 29102 if test -n "${ZSH_VERSION+set}" ; then 29103 setopt NO_GLOB_SUBST 29104 fi 29105 29106 cfgfile="${ofile}T" 29107 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 29108 $RM "$cfgfile" 29109 29110 cat <<_LT_EOF >> "$cfgfile" 29111#! $SHELL 29112 29113# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 29114# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 29115# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 29116# NOTE: Changes made to this file will be lost: look at ltmain.sh. 29117# 29118# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 29119# 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 29120# Written by Gordon Matzigkeit, 1996 29121# 29122# This file is part of GNU Libtool. 29123# 29124# GNU Libtool is free software; you can redistribute it and/or 29125# modify it under the terms of the GNU General Public License as 29126# published by the Free Software Foundation; either version 2 of 29127# the License, or (at your option) any later version. 29128# 29129# As a special exception to the GNU General Public License, 29130# if you distribute this file as part of a program or library that 29131# is built using GNU Libtool, you may include this file under the 29132# same distribution terms that you use for the rest of that program. 29133# 29134# GNU Libtool is distributed in the hope that it will be useful, 29135# but WITHOUT ANY WARRANTY; without even the implied warranty of 29136# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 29137# GNU General Public License for more details. 29138# 29139# You should have received a copy of the GNU General Public License 29140# along with GNU Libtool; see the file COPYING. If not, a copy 29141# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 29142# obtained by writing to the Free Software Foundation, Inc., 29143# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 29144 29145 29146# The names of the tagged configurations supported by this script. 29147available_tags="FC " 29148 29149# ### BEGIN LIBTOOL CONFIG 29150 29151# A sed program that does not truncate output. 29152SED=$lt_SED 29153 29154# Sed that helps us avoid accidentally triggering echo(1) options like -n. 29155Xsed="\$SED -e 1s/^X//" 29156 29157# A grep program that handles long lines. 29158GREP=$lt_GREP 29159 29160# An ERE matcher. 29161EGREP=$lt_EGREP 29162 29163# A literal string matcher. 29164FGREP=$lt_FGREP 29165 29166# Shell to use when invoking shell scripts. 29167SHELL=$lt_SHELL 29168 29169# An echo program that protects backslashes. 29170ECHO=$lt_ECHO 29171 29172# Which release of libtool.m4 was used? 29173macro_version=$macro_version 29174macro_revision=$macro_revision 29175 29176# Whether or not to build shared libraries. 29177build_libtool_libs=$enable_shared 29178 29179# Whether or not to build static libraries. 29180build_old_libs=$enable_static 29181 29182# What type of objects to build. 29183pic_mode=$pic_mode 29184 29185# Whether or not to optimize for fast installation. 29186fast_install=$enable_fast_install 29187 29188# The host system. 29189host_alias=$host_alias 29190host=$host 29191host_os=$host_os 29192 29193# The build system. 29194build_alias=$build_alias 29195build=$build 29196build_os=$build_os 29197 29198# A BSD- or MS-compatible name lister. 29199NM=$lt_NM 29200 29201# Whether we need soft or hard links. 29202LN_S=$lt_LN_S 29203 29204# What is the maximum length of a command? 29205max_cmd_len=$max_cmd_len 29206 29207# Object file suffix (normally "o"). 29208objext=$ac_objext 29209 29210# Executable file suffix (normally ""). 29211exeext=$exeext 29212 29213# whether the shell understands "unset". 29214lt_unset=$lt_unset 29215 29216# turn spaces into newlines. 29217SP2NL=$lt_lt_SP2NL 29218 29219# turn newlines into spaces. 29220NL2SP=$lt_lt_NL2SP 29221 29222# An object symbol dumper. 29223OBJDUMP=$lt_OBJDUMP 29224 29225# Method to check whether dependent libraries are shared objects. 29226deplibs_check_method=$lt_deplibs_check_method 29227 29228# Command to use when deplibs_check_method == "file_magic". 29229file_magic_cmd=$lt_file_magic_cmd 29230 29231# The archiver. 29232AR=$lt_AR 29233AR_FLAGS=$lt_AR_FLAGS 29234 29235# A symbol stripping program. 29236STRIP=$lt_STRIP 29237 29238# Commands used to install an old-style archive. 29239RANLIB=$lt_RANLIB 29240old_postinstall_cmds=$lt_old_postinstall_cmds 29241old_postuninstall_cmds=$lt_old_postuninstall_cmds 29242 29243# Whether to use a lock for old archive extraction. 29244lock_old_archive_extraction=$lock_old_archive_extraction 29245 29246# A C compiler. 29247LTCC=$lt_CC 29248 29249# LTCC compiler flags. 29250LTCFLAGS=$lt_CFLAGS 29251 29252# Take the output of nm and produce a listing of raw symbols and C names. 29253global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 29254 29255# Transform the output of nm in a proper C declaration. 29256global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 29257 29258# Transform the output of nm in a C name address pair. 29259global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 29260 29261# Transform the output of nm in a C name address pair when lib prefix is needed. 29262global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 29263 29264# The name of the directory that contains temporary libtool files. 29265objdir=$objdir 29266 29267# Used to examine libraries when file_magic_cmd begins with "file". 29268MAGIC_CMD=$MAGIC_CMD 29269 29270# Must we lock files when doing compilation? 29271need_locks=$lt_need_locks 29272 29273# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 29274DSYMUTIL=$lt_DSYMUTIL 29275 29276# Tool to change global to local symbols on Mac OS X. 29277NMEDIT=$lt_NMEDIT 29278 29279# Tool to manipulate fat objects and archives on Mac OS X. 29280LIPO=$lt_LIPO 29281 29282# ldd/readelf like tool for Mach-O binaries on Mac OS X. 29283OTOOL=$lt_OTOOL 29284 29285# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 29286OTOOL64=$lt_OTOOL64 29287 29288# Old archive suffix (normally "a"). 29289libext=$libext 29290 29291# Shared library suffix (normally ".so"). 29292shrext_cmds=$lt_shrext_cmds 29293 29294# The commands to extract the exported symbol list from a shared archive. 29295extract_expsyms_cmds=$lt_extract_expsyms_cmds 29296 29297# Variables whose values should be saved in libtool wrapper scripts and 29298# restored at link time. 29299variables_saved_for_relink=$lt_variables_saved_for_relink 29300 29301# Do we need the "lib" prefix for modules? 29302need_lib_prefix=$need_lib_prefix 29303 29304# Do we need a version for libraries? 29305need_version=$need_version 29306 29307# Library versioning type. 29308version_type=$version_type 29309 29310# Shared library runtime path variable. 29311runpath_var=$runpath_var 29312 29313# Shared library path variable. 29314shlibpath_var=$shlibpath_var 29315 29316# Is shlibpath searched before the hard-coded library search path? 29317shlibpath_overrides_runpath=$shlibpath_overrides_runpath 29318 29319# Format of library name prefix. 29320libname_spec=$lt_libname_spec 29321 29322# List of archive names. First name is the real one, the rest are links. 29323# The last name is the one that the linker finds with -lNAME 29324library_names_spec=$lt_library_names_spec 29325 29326# The coded name of the library, if different from the real name. 29327soname_spec=$lt_soname_spec 29328 29329# Permission mode override for installation of shared libraries. 29330install_override_mode=$lt_install_override_mode 29331 29332# Command to use after installation of a shared archive. 29333postinstall_cmds=$lt_postinstall_cmds 29334 29335# Command to use after uninstallation of a shared archive. 29336postuninstall_cmds=$lt_postuninstall_cmds 29337 29338# Commands used to finish a libtool library installation in a directory. 29339finish_cmds=$lt_finish_cmds 29340 29341# As "finish_cmds", except a single script fragment to be evaled but 29342# not shown. 29343finish_eval=$lt_finish_eval 29344 29345# Whether we should hardcode library paths into libraries. 29346hardcode_into_libs=$hardcode_into_libs 29347 29348# Compile-time system search path for libraries. 29349sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 29350 29351# Run-time system search path for libraries. 29352sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 29353 29354# Whether dlopen is supported. 29355dlopen_support=$enable_dlopen 29356 29357# Whether dlopen of programs is supported. 29358dlopen_self=$enable_dlopen_self 29359 29360# Whether dlopen of statically linked programs is supported. 29361dlopen_self_static=$enable_dlopen_self_static 29362 29363# Commands to strip libraries. 29364old_striplib=$lt_old_striplib 29365striplib=$lt_striplib 29366 29367 29368# The linker used to build libraries. 29369LD=$lt_LD 29370 29371# How to create reloadable object files. 29372reload_flag=$lt_reload_flag 29373reload_cmds=$lt_reload_cmds 29374 29375# Commands used to build an old-style archive. 29376old_archive_cmds=$lt_old_archive_cmds 29377 29378# A language specific compiler. 29379CC=$lt_compiler 29380 29381# Is the compiler the GNU compiler? 29382with_gcc=$GCC 29383 29384# Compiler flag to turn off builtin functions. 29385no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 29386 29387# How to pass a linker flag through the compiler. 29388wl=$lt_lt_prog_compiler_wl 29389 29390# Additional compiler flags for building library objects. 29391pic_flag=$lt_lt_prog_compiler_pic 29392 29393# Compiler flag to prevent dynamic linking. 29394link_static_flag=$lt_lt_prog_compiler_static 29395 29396# Does compiler simultaneously support -c and -o options? 29397compiler_c_o=$lt_lt_cv_prog_compiler_c_o 29398 29399# Whether or not to add -lc for building shared libraries. 29400build_libtool_need_lc=$archive_cmds_need_lc 29401 29402# Whether or not to disallow shared libs when runtime libs are static. 29403allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 29404 29405# Compiler flag to allow reflexive dlopens. 29406export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 29407 29408# Compiler flag to generate shared objects directly from archives. 29409whole_archive_flag_spec=$lt_whole_archive_flag_spec 29410 29411# Whether the compiler copes with passing no objects directly. 29412compiler_needs_object=$lt_compiler_needs_object 29413 29414# Create an old-style archive from a shared archive. 29415old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 29416 29417# Create a temporary old-style archive to link instead of a shared archive. 29418old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 29419 29420# Commands used to build a shared archive. 29421archive_cmds=$lt_archive_cmds 29422archive_expsym_cmds=$lt_archive_expsym_cmds 29423 29424# Commands used to build a loadable module if different from building 29425# a shared archive. 29426module_cmds=$lt_module_cmds 29427module_expsym_cmds=$lt_module_expsym_cmds 29428 29429# Whether we are building with GNU ld or not. 29430with_gnu_ld=$lt_with_gnu_ld 29431 29432# Flag that allows shared libraries with undefined symbols to be built. 29433allow_undefined_flag=$lt_allow_undefined_flag 29434 29435# Flag that enforces no undefined symbols. 29436no_undefined_flag=$lt_no_undefined_flag 29437 29438# Flag to hardcode \$libdir into a binary during linking. 29439# This must work even if \$libdir does not exist 29440hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 29441 29442# If ld is used when linking, flag to hardcode \$libdir into a binary 29443# during linking. This must work even if \$libdir does not exist. 29444hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 29445 29446# Whether we need a single "-rpath" flag with a separated argument. 29447hardcode_libdir_separator=$lt_hardcode_libdir_separator 29448 29449# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 29450# DIR into the resulting binary. 29451hardcode_direct=$hardcode_direct 29452 29453# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 29454# DIR into the resulting binary and the resulting library dependency is 29455# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 29456# library is relocated. 29457hardcode_direct_absolute=$hardcode_direct_absolute 29458 29459# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 29460# into the resulting binary. 29461hardcode_minus_L=$hardcode_minus_L 29462 29463# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 29464# into the resulting binary. 29465hardcode_shlibpath_var=$hardcode_shlibpath_var 29466 29467# Set to "yes" if building a shared library automatically hardcodes DIR 29468# into the library and all subsequent libraries and executables linked 29469# against it. 29470hardcode_automatic=$hardcode_automatic 29471 29472# Set to yes if linker adds runtime paths of dependent libraries 29473# to runtime path list. 29474inherit_rpath=$inherit_rpath 29475 29476# Whether libtool must link a program against all its dependency libraries. 29477link_all_deplibs=$link_all_deplibs 29478 29479# Fix the shell variable \$srcfile for the compiler. 29480fix_srcfile_path=$lt_fix_srcfile_path 29481 29482# Set to "yes" if exported symbols are required. 29483always_export_symbols=$always_export_symbols 29484 29485# The commands to list exported symbols. 29486export_symbols_cmds=$lt_export_symbols_cmds 29487 29488# Symbols that should not be listed in the preloaded symbols. 29489exclude_expsyms=$lt_exclude_expsyms 29490 29491# Symbols that must always be exported. 29492include_expsyms=$lt_include_expsyms 29493 29494# Commands necessary for linking programs (against libraries) with templates. 29495prelink_cmds=$lt_prelink_cmds 29496 29497# Specify filename containing input files. 29498file_list_spec=$lt_file_list_spec 29499 29500# How to hardcode a shared library path into an executable. 29501hardcode_action=$hardcode_action 29502 29503# The directories searched by this compiler when creating a shared library. 29504compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 29505 29506# Dependencies to place before and after the objects being linked to 29507# create a shared library. 29508predep_objects=$lt_predep_objects 29509postdep_objects=$lt_postdep_objects 29510predeps=$lt_predeps 29511postdeps=$lt_postdeps 29512 29513# The library search path used internally by the compiler when linking 29514# a shared library. 29515compiler_lib_search_path=$lt_compiler_lib_search_path 29516 29517# ### END LIBTOOL CONFIG 29518 29519_LT_EOF 29520 29521 case $host_os in 29522 aix3*) 29523 cat <<\_LT_EOF >> "$cfgfile" 29524# AIX sometimes has problems with the GCC collect2 program. For some 29525# reason, if we set the COLLECT_NAMES environment variable, the problems 29526# vanish in a puff of smoke. 29527if test "X${COLLECT_NAMES+set}" != Xset; then 29528 COLLECT_NAMES= 29529 export COLLECT_NAMES 29530fi 29531_LT_EOF 29532 ;; 29533 esac 29534 29535 29536ltmain="$ac_aux_dir/ltmain.sh" 29537 29538 29539 # We use sed instead of cat because bash on DJGPP gets confused if 29540 # if finds mixed CR/LF and LF-only lines. Since sed operates in 29541 # text mode, it properly converts lines to CR/LF. This bash problem 29542 # is reportedly fixed, but why not run on old versions too? 29543 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 29544 || (rm -f "$cfgfile"; exit 1) 29545 29546 case $xsi_shell in 29547 yes) 29548 cat << \_LT_EOF >> "$cfgfile" 29549 29550# func_dirname file append nondir_replacement 29551# Compute the dirname of FILE. If nonempty, add APPEND to the result, 29552# otherwise set result to NONDIR_REPLACEMENT. 29553func_dirname () 29554{ 29555 case ${1} in 29556 */*) func_dirname_result="${1%/*}${2}" ;; 29557 * ) func_dirname_result="${3}" ;; 29558 esac 29559} 29560 29561# func_basename file 29562func_basename () 29563{ 29564 func_basename_result="${1##*/}" 29565} 29566 29567# func_dirname_and_basename file append nondir_replacement 29568# perform func_basename and func_dirname in a single function 29569# call: 29570# dirname: Compute the dirname of FILE. If nonempty, 29571# add APPEND to the result, otherwise set result 29572# to NONDIR_REPLACEMENT. 29573# value returned in "$func_dirname_result" 29574# basename: Compute filename of FILE. 29575# value retuned in "$func_basename_result" 29576# Implementation must be kept synchronized with func_dirname 29577# and func_basename. For efficiency, we do not delegate to 29578# those functions but instead duplicate the functionality here. 29579func_dirname_and_basename () 29580{ 29581 case ${1} in 29582 */*) func_dirname_result="${1%/*}${2}" ;; 29583 * ) func_dirname_result="${3}" ;; 29584 esac 29585 func_basename_result="${1##*/}" 29586} 29587 29588# func_stripname prefix suffix name 29589# strip PREFIX and SUFFIX off of NAME. 29590# PREFIX and SUFFIX must not contain globbing or regex special 29591# characters, hashes, percent signs, but SUFFIX may contain a leading 29592# dot (in which case that matches only a dot). 29593func_stripname () 29594{ 29595 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 29596 # positional parameters, so assign one to ordinary parameter first. 29597 func_stripname_result=${3} 29598 func_stripname_result=${func_stripname_result#"${1}"} 29599 func_stripname_result=${func_stripname_result%"${2}"} 29600} 29601 29602# func_opt_split 29603func_opt_split () 29604{ 29605 func_opt_split_opt=${1%%=*} 29606 func_opt_split_arg=${1#*=} 29607} 29608 29609# func_lo2o object 29610func_lo2o () 29611{ 29612 case ${1} in 29613 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 29614 *) func_lo2o_result=${1} ;; 29615 esac 29616} 29617 29618# func_xform libobj-or-source 29619func_xform () 29620{ 29621 func_xform_result=${1%.*}.lo 29622} 29623 29624# func_arith arithmetic-term... 29625func_arith () 29626{ 29627 func_arith_result=$(( $* )) 29628} 29629 29630# func_len string 29631# STRING may not start with a hyphen. 29632func_len () 29633{ 29634 func_len_result=${#1} 29635} 29636 29637_LT_EOF 29638 ;; 29639 *) # Bourne compatible functions. 29640 cat << \_LT_EOF >> "$cfgfile" 29641 29642# func_dirname file append nondir_replacement 29643# Compute the dirname of FILE. If nonempty, add APPEND to the result, 29644# otherwise set result to NONDIR_REPLACEMENT. 29645func_dirname () 29646{ 29647 # Extract subdirectory from the argument. 29648 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 29649 if test "X$func_dirname_result" = "X${1}"; then 29650 func_dirname_result="${3}" 29651 else 29652 func_dirname_result="$func_dirname_result${2}" 29653 fi 29654} 29655 29656# func_basename file 29657func_basename () 29658{ 29659 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 29660} 29661 29662 29663# func_stripname prefix suffix name 29664# strip PREFIX and SUFFIX off of NAME. 29665# PREFIX and SUFFIX must not contain globbing or regex special 29666# characters, hashes, percent signs, but SUFFIX may contain a leading 29667# dot (in which case that matches only a dot). 29668# func_strip_suffix prefix name 29669func_stripname () 29670{ 29671 case ${2} in 29672 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 29673 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 29674 esac 29675} 29676 29677# sed scripts: 29678my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 29679my_sed_long_arg='1s/^-[^=]*=//' 29680 29681# func_opt_split 29682func_opt_split () 29683{ 29684 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 29685 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 29686} 29687 29688# func_lo2o object 29689func_lo2o () 29690{ 29691 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 29692} 29693 29694# func_xform libobj-or-source 29695func_xform () 29696{ 29697 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 29698} 29699 29700# func_arith arithmetic-term... 29701func_arith () 29702{ 29703 func_arith_result=`expr "$@"` 29704} 29705 29706# func_len string 29707# STRING may not start with a hyphen. 29708func_len () 29709{ 29710 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 29711} 29712 29713_LT_EOF 29714esac 29715 29716case $lt_shell_append in 29717 yes) 29718 cat << \_LT_EOF >> "$cfgfile" 29719 29720# func_append var value 29721# Append VALUE to the end of shell variable VAR. 29722func_append () 29723{ 29724 eval "$1+=\$2" 29725} 29726_LT_EOF 29727 ;; 29728 *) 29729 cat << \_LT_EOF >> "$cfgfile" 29730 29731# func_append var value 29732# Append VALUE to the end of shell variable VAR. 29733func_append () 29734{ 29735 eval "$1=\$$1\$2" 29736} 29737 29738_LT_EOF 29739 ;; 29740 esac 29741 29742 29743 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 29744 || (rm -f "$cfgfile"; exit 1) 29745 29746 mv -f "$cfgfile" "$ofile" || 29747 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 29748 chmod +x "$ofile" 29749 29750 29751 cat <<_LT_EOF >> "$ofile" 29752 29753# ### BEGIN LIBTOOL TAG CONFIG: FC 29754 29755# The linker used to build libraries. 29756LD=$lt_LD_FC 29757 29758# How to create reloadable object files. 29759reload_flag=$lt_reload_flag_FC 29760reload_cmds=$lt_reload_cmds_FC 29761 29762# Commands used to build an old-style archive. 29763old_archive_cmds=$lt_old_archive_cmds_FC 29764 29765# A language specific compiler. 29766CC=$lt_compiler_FC 29767 29768# Is the compiler the GNU compiler? 29769with_gcc=$GCC_FC 29770 29771# Compiler flag to turn off builtin functions. 29772no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC 29773 29774# How to pass a linker flag through the compiler. 29775wl=$lt_lt_prog_compiler_wl_FC 29776 29777# Additional compiler flags for building library objects. 29778pic_flag=$lt_lt_prog_compiler_pic_FC 29779 29780# Compiler flag to prevent dynamic linking. 29781link_static_flag=$lt_lt_prog_compiler_static_FC 29782 29783# Does compiler simultaneously support -c and -o options? 29784compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC 29785 29786# Whether or not to add -lc for building shared libraries. 29787build_libtool_need_lc=$archive_cmds_need_lc_FC 29788 29789# Whether or not to disallow shared libs when runtime libs are static. 29790allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC 29791 29792# Compiler flag to allow reflexive dlopens. 29793export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC 29794 29795# Compiler flag to generate shared objects directly from archives. 29796whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC 29797 29798# Whether the compiler copes with passing no objects directly. 29799compiler_needs_object=$lt_compiler_needs_object_FC 29800 29801# Create an old-style archive from a shared archive. 29802old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC 29803 29804# Create a temporary old-style archive to link instead of a shared archive. 29805old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC 29806 29807# Commands used to build a shared archive. 29808archive_cmds=$lt_archive_cmds_FC 29809archive_expsym_cmds=$lt_archive_expsym_cmds_FC 29810 29811# Commands used to build a loadable module if different from building 29812# a shared archive. 29813module_cmds=$lt_module_cmds_FC 29814module_expsym_cmds=$lt_module_expsym_cmds_FC 29815 29816# Whether we are building with GNU ld or not. 29817with_gnu_ld=$lt_with_gnu_ld_FC 29818 29819# Flag that allows shared libraries with undefined symbols to be built. 29820allow_undefined_flag=$lt_allow_undefined_flag_FC 29821 29822# Flag that enforces no undefined symbols. 29823no_undefined_flag=$lt_no_undefined_flag_FC 29824 29825# Flag to hardcode \$libdir into a binary during linking. 29826# This must work even if \$libdir does not exist 29827hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC 29828 29829# If ld is used when linking, flag to hardcode \$libdir into a binary 29830# during linking. This must work even if \$libdir does not exist. 29831hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC 29832 29833# Whether we need a single "-rpath" flag with a separated argument. 29834hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC 29835 29836# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 29837# DIR into the resulting binary. 29838hardcode_direct=$hardcode_direct_FC 29839 29840# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 29841# DIR into the resulting binary and the resulting library dependency is 29842# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 29843# library is relocated. 29844hardcode_direct_absolute=$hardcode_direct_absolute_FC 29845 29846# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 29847# into the resulting binary. 29848hardcode_minus_L=$hardcode_minus_L_FC 29849 29850# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 29851# into the resulting binary. 29852hardcode_shlibpath_var=$hardcode_shlibpath_var_FC 29853 29854# Set to "yes" if building a shared library automatically hardcodes DIR 29855# into the library and all subsequent libraries and executables linked 29856# against it. 29857hardcode_automatic=$hardcode_automatic_FC 29858 29859# Set to yes if linker adds runtime paths of dependent libraries 29860# to runtime path list. 29861inherit_rpath=$inherit_rpath_FC 29862 29863# Whether libtool must link a program against all its dependency libraries. 29864link_all_deplibs=$link_all_deplibs_FC 29865 29866# Fix the shell variable \$srcfile for the compiler. 29867fix_srcfile_path=$lt_fix_srcfile_path_FC 29868 29869# Set to "yes" if exported symbols are required. 29870always_export_symbols=$always_export_symbols_FC 29871 29872# The commands to list exported symbols. 29873export_symbols_cmds=$lt_export_symbols_cmds_FC 29874 29875# Symbols that should not be listed in the preloaded symbols. 29876exclude_expsyms=$lt_exclude_expsyms_FC 29877 29878# Symbols that must always be exported. 29879include_expsyms=$lt_include_expsyms_FC 29880 29881# Commands necessary for linking programs (against libraries) with templates. 29882prelink_cmds=$lt_prelink_cmds_FC 29883 29884# Specify filename containing input files. 29885file_list_spec=$lt_file_list_spec_FC 29886 29887# How to hardcode a shared library path into an executable. 29888hardcode_action=$hardcode_action_FC 29889 29890# The directories searched by this compiler when creating a shared library. 29891compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC 29892 29893# Dependencies to place before and after the objects being linked to 29894# create a shared library. 29895predep_objects=$lt_predep_objects_FC 29896postdep_objects=$lt_postdep_objects_FC 29897predeps=$lt_predeps_FC 29898postdeps=$lt_postdeps_FC 29899 29900# The library search path used internally by the compiler when linking 29901# a shared library. 29902compiler_lib_search_path=$lt_compiler_lib_search_path_FC 29903 29904# ### END LIBTOOL TAG CONFIG: FC 29905_LT_EOF 29906 29907 ;; 29908 "gstdint.h":C) 29909if test "$GCC" = yes; then 29910 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h 29911else 29912 echo "/* generated for $CC */" > tmp-stdint.h 29913fi 29914 29915sed 's/^ *//' >> tmp-stdint.h <<EOF 29916 29917 #ifndef GCC_GENERATED_STDINT_H 29918 #define GCC_GENERATED_STDINT_H 1 29919 29920 #include <sys/types.h> 29921EOF 29922 29923if test "$acx_cv_header_stdint" != stdint.h; then 29924 echo "#include <stddef.h>" >> tmp-stdint.h 29925fi 29926if test "$acx_cv_header_stdint" != stddef.h; then 29927 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h 29928fi 29929 29930sed 's/^ *//' >> tmp-stdint.h <<EOF 29931 /* glibc uses these symbols as guards to prevent redefinitions. */ 29932 #ifdef __int8_t_defined 29933 #define _INT8_T 29934 #define _INT16_T 29935 #define _INT32_T 29936 #endif 29937 #ifdef __uint32_t_defined 29938 #define _UINT32_T 29939 #endif 29940 29941EOF 29942 29943# ----------------- done header, emit basic int types ------------- 29944if test "$acx_cv_header_stdint" = stddef.h; then 29945 sed 's/^ *//' >> tmp-stdint.h <<EOF 29946 29947 #ifndef _UINT8_T 29948 #define _UINT8_T 29949 #ifndef __uint8_t_defined 29950 #define __uint8_t_defined 29951 #ifndef uint8_t 29952 typedef unsigned $acx_cv_type_int8_t uint8_t; 29953 #endif 29954 #endif 29955 #endif 29956 29957 #ifndef _UINT16_T 29958 #define _UINT16_T 29959 #ifndef __uint16_t_defined 29960 #define __uint16_t_defined 29961 #ifndef uint16_t 29962 typedef unsigned $acx_cv_type_int16_t uint16_t; 29963 #endif 29964 #endif 29965 #endif 29966 29967 #ifndef _UINT32_T 29968 #define _UINT32_T 29969 #ifndef __uint32_t_defined 29970 #define __uint32_t_defined 29971 #ifndef uint32_t 29972 typedef unsigned $acx_cv_type_int32_t uint32_t; 29973 #endif 29974 #endif 29975 #endif 29976 29977 #ifndef _INT8_T 29978 #define _INT8_T 29979 #ifndef __int8_t_defined 29980 #define __int8_t_defined 29981 #ifndef int8_t 29982 typedef $acx_cv_type_int8_t int8_t; 29983 #endif 29984 #endif 29985 #endif 29986 29987 #ifndef _INT16_T 29988 #define _INT16_T 29989 #ifndef __int16_t_defined 29990 #define __int16_t_defined 29991 #ifndef int16_t 29992 typedef $acx_cv_type_int16_t int16_t; 29993 #endif 29994 #endif 29995 #endif 29996 29997 #ifndef _INT32_T 29998 #define _INT32_T 29999 #ifndef __int32_t_defined 30000 #define __int32_t_defined 30001 #ifndef int32_t 30002 typedef $acx_cv_type_int32_t int32_t; 30003 #endif 30004 #endif 30005 #endif 30006EOF 30007elif test "$ac_cv_type_u_int32_t" = yes; then 30008 sed 's/^ *//' >> tmp-stdint.h <<EOF 30009 30010 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */ 30011 #ifndef _INT8_T 30012 #define _INT8_T 30013 #endif 30014 #ifndef _INT16_T 30015 #define _INT16_T 30016 #endif 30017 #ifndef _INT32_T 30018 #define _INT32_T 30019 #endif 30020 30021 #ifndef _UINT8_T 30022 #define _UINT8_T 30023 #ifndef __uint8_t_defined 30024 #define __uint8_t_defined 30025 #ifndef uint8_t 30026 typedef u_int8_t uint8_t; 30027 #endif 30028 #endif 30029 #endif 30030 30031 #ifndef _UINT16_T 30032 #define _UINT16_T 30033 #ifndef __uint16_t_defined 30034 #define __uint16_t_defined 30035 #ifndef uint16_t 30036 typedef u_int16_t uint16_t; 30037 #endif 30038 #endif 30039 #endif 30040 30041 #ifndef _UINT32_T 30042 #define _UINT32_T 30043 #ifndef __uint32_t_defined 30044 #define __uint32_t_defined 30045 #ifndef uint32_t 30046 typedef u_int32_t uint32_t; 30047 #endif 30048 #endif 30049 #endif 30050EOF 30051else 30052 sed 's/^ *//' >> tmp-stdint.h <<EOF 30053 30054 /* Some systems have guard macros to prevent redefinitions, define them. */ 30055 #ifndef _INT8_T 30056 #define _INT8_T 30057 #endif 30058 #ifndef _INT16_T 30059 #define _INT16_T 30060 #endif 30061 #ifndef _INT32_T 30062 #define _INT32_T 30063 #endif 30064 #ifndef _UINT8_T 30065 #define _UINT8_T 30066 #endif 30067 #ifndef _UINT16_T 30068 #define _UINT16_T 30069 #endif 30070 #ifndef _UINT32_T 30071 #define _UINT32_T 30072 #endif 30073EOF 30074fi 30075 30076# ------------- done basic int types, emit int64_t types ------------ 30077if test "$ac_cv_type_uint64_t" = yes; then 30078 sed 's/^ *//' >> tmp-stdint.h <<EOF 30079 30080 /* system headers have good uint64_t and int64_t */ 30081 #ifndef _INT64_T 30082 #define _INT64_T 30083 #endif 30084 #ifndef _UINT64_T 30085 #define _UINT64_T 30086 #endif 30087EOF 30088elif test "$ac_cv_type_u_int64_t" = yes; then 30089 sed 's/^ *//' >> tmp-stdint.h <<EOF 30090 30091 /* system headers have an u_int64_t (and int64_t) */ 30092 #ifndef _INT64_T 30093 #define _INT64_T 30094 #endif 30095 #ifndef _UINT64_T 30096 #define _UINT64_T 30097 #ifndef __uint64_t_defined 30098 #define __uint64_t_defined 30099 #ifndef uint64_t 30100 typedef u_int64_t uint64_t; 30101 #endif 30102 #endif 30103 #endif 30104EOF 30105elif test -n "$acx_cv_type_int64_t"; then 30106 sed 's/^ *//' >> tmp-stdint.h <<EOF 30107 30108 /* architecture has a 64-bit type, $acx_cv_type_int64_t */ 30109 #ifndef _INT64_T 30110 #define _INT64_T 30111 #ifndef int64_t 30112 typedef $acx_cv_type_int64_t int64_t; 30113 #endif 30114 #endif 30115 #ifndef _UINT64_T 30116 #define _UINT64_T 30117 #ifndef __uint64_t_defined 30118 #define __uint64_t_defined 30119 #ifndef uint64_t 30120 typedef unsigned $acx_cv_type_int64_t uint64_t; 30121 #endif 30122 #endif 30123 #endif 30124EOF 30125else 30126 sed 's/^ *//' >> tmp-stdint.h <<EOF 30127 30128 /* some common heuristics for int64_t, using compiler-specific tests */ 30129 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L 30130 #ifndef _INT64_T 30131 #define _INT64_T 30132 #ifndef __int64_t_defined 30133 #ifndef int64_t 30134 typedef long long int64_t; 30135 #endif 30136 #endif 30137 #endif 30138 #ifndef _UINT64_T 30139 #define _UINT64_T 30140 #ifndef uint64_t 30141 typedef unsigned long long uint64_t; 30142 #endif 30143 #endif 30144 30145 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0 30146 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and 30147 does not implement __extension__. But that compiler doesn't define 30148 __GNUC_MINOR__. */ 30149 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__) 30150 # define __extension__ 30151 # endif 30152 30153 # ifndef _INT64_T 30154 # define _INT64_T 30155 # ifndef int64_t 30156 __extension__ typedef long long int64_t; 30157 # endif 30158 # endif 30159 # ifndef _UINT64_T 30160 # define _UINT64_T 30161 # ifndef uint64_t 30162 __extension__ typedef unsigned long long uint64_t; 30163 # endif 30164 # endif 30165 30166 #elif !defined __STRICT_ANSI__ 30167 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ 30168 30169 # ifndef _INT64_T 30170 # define _INT64_T 30171 # ifndef int64_t 30172 typedef __int64 int64_t; 30173 # endif 30174 # endif 30175 # ifndef _UINT64_T 30176 # define _UINT64_T 30177 # ifndef uint64_t 30178 typedef unsigned __int64 uint64_t; 30179 # endif 30180 # endif 30181 # endif /* compiler */ 30182 30183 #endif /* ANSI version */ 30184EOF 30185fi 30186 30187# ------------- done int64_t types, emit intptr types ------------ 30188if test "$ac_cv_type_uintptr_t" != yes; then 30189 sed 's/^ *//' >> tmp-stdint.h <<EOF 30190 30191 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */ 30192 #ifndef __uintptr_t_defined 30193 #ifndef uintptr_t 30194 typedef u$acx_cv_type_intptr_t uintptr_t; 30195 #endif 30196 #endif 30197 #ifndef __intptr_t_defined 30198 #ifndef intptr_t 30199 typedef $acx_cv_type_intptr_t intptr_t; 30200 #endif 30201 #endif 30202EOF 30203fi 30204 30205# ------------- done intptr types, emit int_least types ------------ 30206if test "$ac_cv_type_int_least32_t" != yes; then 30207 sed 's/^ *//' >> tmp-stdint.h <<EOF 30208 30209 /* Define int_least types */ 30210 typedef int8_t int_least8_t; 30211 typedef int16_t int_least16_t; 30212 typedef int32_t int_least32_t; 30213 #ifdef _INT64_T 30214 typedef int64_t int_least64_t; 30215 #endif 30216 30217 typedef uint8_t uint_least8_t; 30218 typedef uint16_t uint_least16_t; 30219 typedef uint32_t uint_least32_t; 30220 #ifdef _UINT64_T 30221 typedef uint64_t uint_least64_t; 30222 #endif 30223EOF 30224fi 30225 30226# ------------- done intptr types, emit int_fast types ------------ 30227if test "$ac_cv_type_int_fast32_t" != yes; then 30228 sed 's/^ *//' >> tmp-stdint.h <<EOF 30229 30230 /* Define int_fast types. short is often slow */ 30231 typedef int8_t int_fast8_t; 30232 typedef int int_fast16_t; 30233 typedef int32_t int_fast32_t; 30234 #ifdef _INT64_T 30235 typedef int64_t int_fast64_t; 30236 #endif 30237 30238 typedef uint8_t uint_fast8_t; 30239 typedef unsigned int uint_fast16_t; 30240 typedef uint32_t uint_fast32_t; 30241 #ifdef _UINT64_T 30242 typedef uint64_t uint_fast64_t; 30243 #endif 30244EOF 30245fi 30246 30247if test "$ac_cv_type_uintmax_t" != yes; then 30248 sed 's/^ *//' >> tmp-stdint.h <<EOF 30249 30250 /* Define intmax based on what we found */ 30251 #ifndef intmax_t 30252 #ifdef _INT64_T 30253 typedef int64_t intmax_t; 30254 #else 30255 typedef long intmax_t; 30256 #endif 30257 #endif 30258 #ifndef uintmax_t 30259 #ifdef _UINT64_T 30260 typedef uint64_t uintmax_t; 30261 #else 30262 typedef unsigned long uintmax_t; 30263 #endif 30264 #endif 30265EOF 30266fi 30267 30268sed 's/^ *//' >> tmp-stdint.h <<EOF 30269 30270 #endif /* GCC_GENERATED_STDINT_H */ 30271EOF 30272 30273if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then 30274 rm -f tmp-stdint.h 30275else 30276 mv -f tmp-stdint.h gstdint.h 30277fi 30278 30279 ;; 30280 30281 esac 30282done # for ac_tag 30283 30284 30285as_fn_exit 0 30286_ACEOF 30287ac_clean_files=$ac_clean_files_save 30288 30289test $ac_write_fail = 0 || 30290 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 30291 30292 30293# configure is writing to config.log, and then calls config.status. 30294# config.status does its own redirection, appending to config.log. 30295# Unfortunately, on DOS this fails, as config.log is still kept open 30296# by configure, so config.status won't be able to write to it; its 30297# output is simply discarded. So we exec the FD to /dev/null, 30298# effectively closing config.log, so it can be properly (re)opened and 30299# appended to by config.status. When coming back to configure, we 30300# need to make the FD available again. 30301if test "$no_create" != yes; then 30302 ac_cs_success=: 30303 ac_config_status_args= 30304 test "$silent" = yes && 30305 ac_config_status_args="$ac_config_status_args --quiet" 30306 exec 5>/dev/null 30307 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 30308 exec 5>>config.log 30309 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 30310 # would make configure fail if this is the last instruction. 30311 $ac_cs_success || as_fn_exit 1 30312fi 30313if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 30314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 30315$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 30316fi 30317 30318