1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for netCDF-Fortran 4.5.3. 4# 5# Report bugs to <support-netcdf@unidata.ucar.edu>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: support-netcdf@unidata.ucar.edu about your system, 279$0: including any error possibly output before this 280$0: message. Then install a modern shell, or manually run 281$0: the script under such a shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='netCDF-Fortran' 592PACKAGE_TARNAME='netcdf-fortran' 593PACKAGE_VERSION='4.5.3' 594PACKAGE_STRING='netCDF-Fortran 4.5.3' 595PACKAGE_BUGREPORT='support-netcdf@unidata.ucar.edu' 596PACKAGE_URL='' 597 598# Factoring default headers for most tests. 599ac_includes_default="\ 600#include <stdio.h> 601#ifdef HAVE_SYS_TYPES_H 602# include <sys/types.h> 603#endif 604#ifdef HAVE_SYS_STAT_H 605# include <sys/stat.h> 606#endif 607#ifdef STDC_HEADERS 608# include <stdlib.h> 609# include <stddef.h> 610#else 611# ifdef HAVE_STDLIB_H 612# include <stdlib.h> 613# endif 614#endif 615#ifdef HAVE_STRING_H 616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 617# include <memory.h> 618# endif 619# include <string.h> 620#endif 621#ifdef HAVE_STRINGS_H 622# include <strings.h> 623#endif 624#ifdef HAVE_INTTYPES_H 625# include <inttypes.h> 626#endif 627#ifdef HAVE_STDINT_H 628# include <stdint.h> 629#endif 630#ifdef HAVE_UNISTD_H 631# include <unistd.h> 632#endif" 633 634ac_subst_vars='am__EXEEXT_FALSE 635am__EXEEXT_TRUE 636LTLIBOBJS 637LIBOBJS 638AM_LDFLAGS 639HAS_PARALLEL 640HAS_NC4_PARALLEL 641HAS_PNETCDF 642HAS_CDF5 643HAS_LOGGING 644HAS_SZIP_WRITE 645HAS_NC4 646HAS_NC2 647HAS_DAP 648HAS_F03 649HAS_F90 650NC_FLIBS 651NC_LIBS 652enable_static 653enable_shared 654ALLOCA 655TEST_FILTERS_FALSE 656TEST_FILTERS_TRUE 657BUILD_PARALLEL_FALSE 658BUILD_PARALLEL_TRUE 659BUILD_PARALLEL4_FALSE 660BUILD_PARALLEL4_TRUE 661BUILD_PNETCDF_FALSE 662BUILD_PNETCDF_TRUE 663BUILD_DAP_FALSE 664BUILD_DAP_TRUE 665USE_LOGGING_FALSE 666USE_LOGGING_TRUE 667HAS_LOGGING_FALSE 668HAS_LOGGING_TRUE 669BUILD_V2_FALSE 670BUILD_V2_TRUE 671USE_NETCDF4_FALSE 672USE_NETCDF4_TRUE 673NMFLAGS 674CPP 675LT_SYS_LIBRARY_PATH 676OTOOL64 677OTOOL 678LIPO 679NMEDIT 680DSYMUTIL 681MANIFEST_TOOL 682RANLIB 683ac_ct_AR 684AR 685DLLTOOL 686OBJDUMP 687LN_S 688NM 689ac_ct_DUMPBIN 690DUMPBIN 691LD 692FGREP 693EGREP 694GREP 695LIBTOOL 696fmoddir 697BUILD_BENCHMARKS_FALSE 698BUILD_BENCHMARKS_TRUE 699LARGE_FILE_TESTS_FALSE 700LARGE_FILE_TESTS_TRUE 701MOD_FLAG 702FCFLAGS_f90 703FC_VERSION 704ac_ct_F77 705FFLAGS 706F77 707ac_ct_FC 708FCFLAGS 709FC 710USE_SED_FALSE 711USE_SED_TRUE 712SED 713HAVE_DOT 714DOT 715DOXYGEN 716BUILD_INTERNAL_DOCS 717BUILD_DOCS_FALSE 718BUILD_DOCS_TRUE 719TEST_PARALLEL_FALSE 720TEST_PARALLEL_TRUE 721ENABLE_VALGRIND_FALSE 722ENABLE_VALGRIND_TRUE 723VALGRIND_CHECK_RULES 724valgrind_enabled_tools 725valgrind_tools 726ENABLE_VALGRIND_sgcheck 727ENABLE_VALGRIND_drd 728ENABLE_VALGRIND_helgrind 729ENABLE_VALGRIND_memcheck 730VALGRIND_ENABLED 731VALGRIND_ENABLED_FALSE 732VALGRIND_ENABLED_TRUE 733VALGRIND 734TEST_SZIP_WRITE_FALSE 735TEST_SZIP_WRITE_TRUE 736am__fastdepCC_FALSE 737am__fastdepCC_TRUE 738CCDEPMODE 739am__nodep 740AMDEPBACKSLASH 741AMDEP_FALSE 742AMDEP_TRUE 743am__include 744DEPDIR 745OBJEXT 746EXEEXT 747ac_ct_CC 748CPPFLAGS 749LDFLAGS 750CFLAGS 751CC 752MAINT 753MAINTAINER_MODE_FALSE 754MAINTAINER_MODE_TRUE 755AM_BACKSLASH 756AM_DEFAULT_VERBOSITY 757AM_DEFAULT_V 758AM_V 759am__untar 760am__tar 761AMTAR 762am__leading_dot 763SET_MAKE 764AWK 765mkdir_p 766MKDIR_P 767INSTALL_STRIP_PROGRAM 768STRIP 769install_sh 770MAKEINFO 771AUTOHEADER 772AUTOMAKE 773AUTOCONF 774ACLOCAL 775VERSION 776PACKAGE 777CYGPATH_W 778am__isrc 779INSTALL_DATA 780INSTALL_SCRIPT 781INSTALL_PROGRAM 782target_os 783target_vendor 784target_cpu 785target 786host_os 787host_vendor 788host_cpu 789host 790build_os 791build_vendor 792build_cpu 793build 794CONFIG_DATE 795target_alias 796host_alias 797build_alias 798LIBS 799ECHO_T 800ECHO_N 801ECHO_C 802DEFS 803mandir 804localedir 805libdir 806psdir 807pdfdir 808dvidir 809htmldir 810infodir 811docdir 812oldincludedir 813includedir 814localstatedir 815sharedstatedir 816sysconfdir 817datadir 818datarootdir 819libexecdir 820sbindir 821bindir 822program_transform_name 823prefix 824exec_prefix 825PACKAGE_URL 826PACKAGE_BUGREPORT 827PACKAGE_STRING 828PACKAGE_VERSION 829PACKAGE_TARNAME 830PACKAGE_NAME 831PATH_SEPARATOR 832SHELL 833am__quote' 834ac_subst_files='' 835ac_user_opts=' 836enable_option_checking 837enable_silent_rules 838enable_maintainer_mode 839enable_dependency_tracking 840enable_valgrind 841enable_valgrind_memcheck 842enable_valgrind_helgrind 843enable_valgrind_drd 844enable_valgrind_sgcheck 845enable_parallel_tests 846enable_doxygen 847enable_dot 848enable_internal_docs 849enable_f03_compiler_check 850enable_fortran_type_check 851enable_large_file_tests 852enable_benchmarks 853with_temp_large 854with_fmoddir 855enable_shared 856enable_static 857with_pic 858enable_fast_install 859with_aix_soname 860with_gnu_ld 861with_sysroot 862enable_libtool_lock 863enable_largefile 864enable_filter_test 865' 866 ac_precious_vars='build_alias 867host_alias 868target_alias 869CC 870CFLAGS 871LDFLAGS 872LIBS 873CPPFLAGS 874FC 875FCFLAGS 876F77 877FFLAGS 878LT_SYS_LIBRARY_PATH 879CPP' 880 881 882# Initialize some variables set by options. 883ac_init_help= 884ac_init_version=false 885ac_unrecognized_opts= 886ac_unrecognized_sep= 887# The variables have the same names as the options, with 888# dashes changed to underlines. 889cache_file=/dev/null 890exec_prefix=NONE 891no_create= 892no_recursion= 893prefix=NONE 894program_prefix=NONE 895program_suffix=NONE 896program_transform_name=s,x,x, 897silent= 898site= 899srcdir= 900verbose= 901x_includes=NONE 902x_libraries=NONE 903 904# Installation directory options. 905# These are left unexpanded so users can "make install exec_prefix=/foo" 906# and all the variables that are supposed to be based on exec_prefix 907# by default will actually change. 908# Use braces instead of parens because sh, perl, etc. also accept them. 909# (The list follows the same order as the GNU Coding Standards.) 910bindir='${exec_prefix}/bin' 911sbindir='${exec_prefix}/sbin' 912libexecdir='${exec_prefix}/libexec' 913datarootdir='${prefix}/share' 914datadir='${datarootdir}' 915sysconfdir='${prefix}/etc' 916sharedstatedir='${prefix}/com' 917localstatedir='${prefix}/var' 918includedir='${prefix}/include' 919oldincludedir='/usr/include' 920docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 921infodir='${datarootdir}/info' 922htmldir='${docdir}' 923dvidir='${docdir}' 924pdfdir='${docdir}' 925psdir='${docdir}' 926libdir='${exec_prefix}/lib' 927localedir='${datarootdir}/locale' 928mandir='${datarootdir}/man' 929 930ac_prev= 931ac_dashdash= 932for ac_option 933do 934 # If the previous option needs an argument, assign it. 935 if test -n "$ac_prev"; then 936 eval $ac_prev=\$ac_option 937 ac_prev= 938 continue 939 fi 940 941 case $ac_option in 942 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 943 *=) ac_optarg= ;; 944 *) ac_optarg=yes ;; 945 esac 946 947 # Accept the important Cygnus configure options, so we can diagnose typos. 948 949 case $ac_dashdash$ac_option in 950 --) 951 ac_dashdash=yes ;; 952 953 -bindir | --bindir | --bindi | --bind | --bin | --bi) 954 ac_prev=bindir ;; 955 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 956 bindir=$ac_optarg ;; 957 958 -build | --build | --buil | --bui | --bu) 959 ac_prev=build_alias ;; 960 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 961 build_alias=$ac_optarg ;; 962 963 -cache-file | --cache-file | --cache-fil | --cache-fi \ 964 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 965 ac_prev=cache_file ;; 966 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 967 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 968 cache_file=$ac_optarg ;; 969 970 --config-cache | -C) 971 cache_file=config.cache ;; 972 973 -datadir | --datadir | --datadi | --datad) 974 ac_prev=datadir ;; 975 -datadir=* | --datadir=* | --datadi=* | --datad=*) 976 datadir=$ac_optarg ;; 977 978 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 979 | --dataroo | --dataro | --datar) 980 ac_prev=datarootdir ;; 981 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 982 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 983 datarootdir=$ac_optarg ;; 984 985 -disable-* | --disable-*) 986 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 987 # Reject names that are not valid shell variable names. 988 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 989 as_fn_error $? "invalid feature name: $ac_useropt" 990 ac_useropt_orig=$ac_useropt 991 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 992 case $ac_user_opts in 993 *" 994"enable_$ac_useropt" 995"*) ;; 996 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 997 ac_unrecognized_sep=', ';; 998 esac 999 eval enable_$ac_useropt=no ;; 1000 1001 -docdir | --docdir | --docdi | --doc | --do) 1002 ac_prev=docdir ;; 1003 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1004 docdir=$ac_optarg ;; 1005 1006 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1007 ac_prev=dvidir ;; 1008 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1009 dvidir=$ac_optarg ;; 1010 1011 -enable-* | --enable-*) 1012 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1013 # Reject names that are not valid shell variable names. 1014 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1015 as_fn_error $? "invalid feature name: $ac_useropt" 1016 ac_useropt_orig=$ac_useropt 1017 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1018 case $ac_user_opts in 1019 *" 1020"enable_$ac_useropt" 1021"*) ;; 1022 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1023 ac_unrecognized_sep=', ';; 1024 esac 1025 eval enable_$ac_useropt=\$ac_optarg ;; 1026 1027 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1028 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1029 | --exec | --exe | --ex) 1030 ac_prev=exec_prefix ;; 1031 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1032 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1033 | --exec=* | --exe=* | --ex=*) 1034 exec_prefix=$ac_optarg ;; 1035 1036 -gas | --gas | --ga | --g) 1037 # Obsolete; use --with-gas. 1038 with_gas=yes ;; 1039 1040 -help | --help | --hel | --he | -h) 1041 ac_init_help=long ;; 1042 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1043 ac_init_help=recursive ;; 1044 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1045 ac_init_help=short ;; 1046 1047 -host | --host | --hos | --ho) 1048 ac_prev=host_alias ;; 1049 -host=* | --host=* | --hos=* | --ho=*) 1050 host_alias=$ac_optarg ;; 1051 1052 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1053 ac_prev=htmldir ;; 1054 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1055 | --ht=*) 1056 htmldir=$ac_optarg ;; 1057 1058 -includedir | --includedir | --includedi | --included | --include \ 1059 | --includ | --inclu | --incl | --inc) 1060 ac_prev=includedir ;; 1061 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1062 | --includ=* | --inclu=* | --incl=* | --inc=*) 1063 includedir=$ac_optarg ;; 1064 1065 -infodir | --infodir | --infodi | --infod | --info | --inf) 1066 ac_prev=infodir ;; 1067 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1068 infodir=$ac_optarg ;; 1069 1070 -libdir | --libdir | --libdi | --libd) 1071 ac_prev=libdir ;; 1072 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1073 libdir=$ac_optarg ;; 1074 1075 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1076 | --libexe | --libex | --libe) 1077 ac_prev=libexecdir ;; 1078 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1079 | --libexe=* | --libex=* | --libe=*) 1080 libexecdir=$ac_optarg ;; 1081 1082 -localedir | --localedir | --localedi | --localed | --locale) 1083 ac_prev=localedir ;; 1084 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1085 localedir=$ac_optarg ;; 1086 1087 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1088 | --localstate | --localstat | --localsta | --localst | --locals) 1089 ac_prev=localstatedir ;; 1090 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1091 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1092 localstatedir=$ac_optarg ;; 1093 1094 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1095 ac_prev=mandir ;; 1096 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1097 mandir=$ac_optarg ;; 1098 1099 -nfp | --nfp | --nf) 1100 # Obsolete; use --without-fp. 1101 with_fp=no ;; 1102 1103 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1104 | --no-cr | --no-c | -n) 1105 no_create=yes ;; 1106 1107 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1108 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1109 no_recursion=yes ;; 1110 1111 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1112 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1113 | --oldin | --oldi | --old | --ol | --o) 1114 ac_prev=oldincludedir ;; 1115 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1116 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1117 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1118 oldincludedir=$ac_optarg ;; 1119 1120 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1121 ac_prev=prefix ;; 1122 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1123 prefix=$ac_optarg ;; 1124 1125 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1126 | --program-pre | --program-pr | --program-p) 1127 ac_prev=program_prefix ;; 1128 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1129 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1130 program_prefix=$ac_optarg ;; 1131 1132 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1133 | --program-suf | --program-su | --program-s) 1134 ac_prev=program_suffix ;; 1135 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1136 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1137 program_suffix=$ac_optarg ;; 1138 1139 -program-transform-name | --program-transform-name \ 1140 | --program-transform-nam | --program-transform-na \ 1141 | --program-transform-n | --program-transform- \ 1142 | --program-transform | --program-transfor \ 1143 | --program-transfo | --program-transf \ 1144 | --program-trans | --program-tran \ 1145 | --progr-tra | --program-tr | --program-t) 1146 ac_prev=program_transform_name ;; 1147 -program-transform-name=* | --program-transform-name=* \ 1148 | --program-transform-nam=* | --program-transform-na=* \ 1149 | --program-transform-n=* | --program-transform-=* \ 1150 | --program-transform=* | --program-transfor=* \ 1151 | --program-transfo=* | --program-transf=* \ 1152 | --program-trans=* | --program-tran=* \ 1153 | --progr-tra=* | --program-tr=* | --program-t=*) 1154 program_transform_name=$ac_optarg ;; 1155 1156 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1157 ac_prev=pdfdir ;; 1158 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1159 pdfdir=$ac_optarg ;; 1160 1161 -psdir | --psdir | --psdi | --psd | --ps) 1162 ac_prev=psdir ;; 1163 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1164 psdir=$ac_optarg ;; 1165 1166 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1167 | -silent | --silent | --silen | --sile | --sil) 1168 silent=yes ;; 1169 1170 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1171 ac_prev=sbindir ;; 1172 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1173 | --sbi=* | --sb=*) 1174 sbindir=$ac_optarg ;; 1175 1176 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1177 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1178 | --sharedst | --shareds | --shared | --share | --shar \ 1179 | --sha | --sh) 1180 ac_prev=sharedstatedir ;; 1181 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1182 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1183 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1184 | --sha=* | --sh=*) 1185 sharedstatedir=$ac_optarg ;; 1186 1187 -site | --site | --sit) 1188 ac_prev=site ;; 1189 -site=* | --site=* | --sit=*) 1190 site=$ac_optarg ;; 1191 1192 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1193 ac_prev=srcdir ;; 1194 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1195 srcdir=$ac_optarg ;; 1196 1197 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1198 | --syscon | --sysco | --sysc | --sys | --sy) 1199 ac_prev=sysconfdir ;; 1200 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1201 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1202 sysconfdir=$ac_optarg ;; 1203 1204 -target | --target | --targe | --targ | --tar | --ta | --t) 1205 ac_prev=target_alias ;; 1206 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1207 target_alias=$ac_optarg ;; 1208 1209 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1210 verbose=yes ;; 1211 1212 -version | --version | --versio | --versi | --vers | -V) 1213 ac_init_version=: ;; 1214 1215 -with-* | --with-*) 1216 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1217 # Reject names that are not valid shell variable names. 1218 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1219 as_fn_error $? "invalid package name: $ac_useropt" 1220 ac_useropt_orig=$ac_useropt 1221 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1222 case $ac_user_opts in 1223 *" 1224"with_$ac_useropt" 1225"*) ;; 1226 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1227 ac_unrecognized_sep=', ';; 1228 esac 1229 eval with_$ac_useropt=\$ac_optarg ;; 1230 1231 -without-* | --without-*) 1232 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1233 # Reject names that are not valid shell variable names. 1234 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1235 as_fn_error $? "invalid package name: $ac_useropt" 1236 ac_useropt_orig=$ac_useropt 1237 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1238 case $ac_user_opts in 1239 *" 1240"with_$ac_useropt" 1241"*) ;; 1242 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1243 ac_unrecognized_sep=', ';; 1244 esac 1245 eval with_$ac_useropt=no ;; 1246 1247 --x) 1248 # Obsolete; use --with-x. 1249 with_x=yes ;; 1250 1251 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1252 | --x-incl | --x-inc | --x-in | --x-i) 1253 ac_prev=x_includes ;; 1254 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1255 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1256 x_includes=$ac_optarg ;; 1257 1258 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1259 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1260 ac_prev=x_libraries ;; 1261 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1262 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1263 x_libraries=$ac_optarg ;; 1264 1265 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1266Try \`$0 --help' for more information" 1267 ;; 1268 1269 *=*) 1270 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1271 # Reject names that are not valid shell variable names. 1272 case $ac_envvar in #( 1273 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1274 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1275 esac 1276 eval $ac_envvar=\$ac_optarg 1277 export $ac_envvar ;; 1278 1279 *) 1280 # FIXME: should be removed in autoconf 3.0. 1281 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1282 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1283 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1284 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1285 ;; 1286 1287 esac 1288done 1289 1290if test -n "$ac_prev"; then 1291 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1292 as_fn_error $? "missing argument to $ac_option" 1293fi 1294 1295if test -n "$ac_unrecognized_opts"; then 1296 case $enable_option_checking in 1297 no) ;; 1298 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1299 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1300 esac 1301fi 1302 1303# Check all directory arguments for consistency. 1304for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1305 datadir sysconfdir sharedstatedir localstatedir includedir \ 1306 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1307 libdir localedir mandir 1308do 1309 eval ac_val=\$$ac_var 1310 # Remove trailing slashes. 1311 case $ac_val in 1312 */ ) 1313 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1314 eval $ac_var=\$ac_val;; 1315 esac 1316 # Be sure to have absolute directory names. 1317 case $ac_val in 1318 [\\/$]* | ?:[\\/]* ) continue;; 1319 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1320 esac 1321 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1322done 1323 1324# There might be people who depend on the old broken behavior: `$host' 1325# used to hold the argument of --host etc. 1326# FIXME: To remove some day. 1327build=$build_alias 1328host=$host_alias 1329target=$target_alias 1330 1331# FIXME: To remove some day. 1332if test "x$host_alias" != x; then 1333 if test "x$build_alias" = x; then 1334 cross_compiling=maybe 1335 elif test "x$build_alias" != "x$host_alias"; then 1336 cross_compiling=yes 1337 fi 1338fi 1339 1340ac_tool_prefix= 1341test -n "$host_alias" && ac_tool_prefix=$host_alias- 1342 1343test "$silent" = yes && exec 6>/dev/null 1344 1345 1346ac_pwd=`pwd` && test -n "$ac_pwd" && 1347ac_ls_di=`ls -di .` && 1348ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1349 as_fn_error $? "working directory cannot be determined" 1350test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1351 as_fn_error $? "pwd does not report name of working directory" 1352 1353 1354# Find the source files, if location was not specified. 1355if test -z "$srcdir"; then 1356 ac_srcdir_defaulted=yes 1357 # Try the directory containing this script, then the parent directory. 1358 ac_confdir=`$as_dirname -- "$as_myself" || 1359$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1360 X"$as_myself" : 'X\(//\)[^/]' \| \ 1361 X"$as_myself" : 'X\(//\)$' \| \ 1362 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1363$as_echo X"$as_myself" | 1364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1365 s//\1/ 1366 q 1367 } 1368 /^X\(\/\/\)[^/].*/{ 1369 s//\1/ 1370 q 1371 } 1372 /^X\(\/\/\)$/{ 1373 s//\1/ 1374 q 1375 } 1376 /^X\(\/\).*/{ 1377 s//\1/ 1378 q 1379 } 1380 s/.*/./; q'` 1381 srcdir=$ac_confdir 1382 if test ! -r "$srcdir/$ac_unique_file"; then 1383 srcdir=.. 1384 fi 1385else 1386 ac_srcdir_defaulted=no 1387fi 1388if test ! -r "$srcdir/$ac_unique_file"; then 1389 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1390 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1391fi 1392ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1393ac_abs_confdir=`( 1394 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1395 pwd)` 1396# When building in place, set srcdir=. 1397if test "$ac_abs_confdir" = "$ac_pwd"; then 1398 srcdir=. 1399fi 1400# Remove unnecessary trailing slashes from srcdir. 1401# Double slashes in file names in object file debugging info 1402# mess up M-x gdb in Emacs. 1403case $srcdir in 1404*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1405esac 1406for ac_var in $ac_precious_vars; do 1407 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1408 eval ac_env_${ac_var}_value=\$${ac_var} 1409 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1410 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1411done 1412 1413# 1414# Report the --help message. 1415# 1416if test "$ac_init_help" = "long"; then 1417 # Omit some internal or obsolete options to make the list less imposing. 1418 # This message is too long to be a string in the A/UX 3.1 sh. 1419 cat <<_ACEOF 1420\`configure' configures netCDF-Fortran 4.5.3 to adapt to many kinds of systems. 1421 1422Usage: $0 [OPTION]... [VAR=VALUE]... 1423 1424To assign environment variables (e.g., CC, CFLAGS...), specify them as 1425VAR=VALUE. See below for descriptions of some of the useful variables. 1426 1427Defaults for the options are specified in brackets. 1428 1429Configuration: 1430 -h, --help display this help and exit 1431 --help=short display options specific to this package 1432 --help=recursive display the short help of all the included packages 1433 -V, --version display version information and exit 1434 -q, --quiet, --silent do not print \`checking ...' messages 1435 --cache-file=FILE cache test results in FILE [disabled] 1436 -C, --config-cache alias for \`--cache-file=config.cache' 1437 -n, --no-create do not create output files 1438 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1439 1440Installation directories: 1441 --prefix=PREFIX install architecture-independent files in PREFIX 1442 [$ac_default_prefix] 1443 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1444 [PREFIX] 1445 1446By default, \`make install' will install all the files in 1447\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1448an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1449for instance \`--prefix=\$HOME'. 1450 1451For better control, use the options below. 1452 1453Fine tuning of the installation directories: 1454 --bindir=DIR user executables [EPREFIX/bin] 1455 --sbindir=DIR system admin executables [EPREFIX/sbin] 1456 --libexecdir=DIR program executables [EPREFIX/libexec] 1457 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1458 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1459 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1460 --libdir=DIR object code libraries [EPREFIX/lib] 1461 --includedir=DIR C header files [PREFIX/include] 1462 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1463 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1464 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1465 --infodir=DIR info documentation [DATAROOTDIR/info] 1466 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1467 --mandir=DIR man documentation [DATAROOTDIR/man] 1468 --docdir=DIR documentation root [DATAROOTDIR/doc/netcdf-fortran] 1469 --htmldir=DIR html documentation [DOCDIR] 1470 --dvidir=DIR dvi documentation [DOCDIR] 1471 --pdfdir=DIR pdf documentation [DOCDIR] 1472 --psdir=DIR ps documentation [DOCDIR] 1473_ACEOF 1474 1475 cat <<\_ACEOF 1476 1477Program names: 1478 --program-prefix=PREFIX prepend PREFIX to installed program names 1479 --program-suffix=SUFFIX append SUFFIX to installed program names 1480 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1481 1482System types: 1483 --build=BUILD configure for building on BUILD [guessed] 1484 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1485 --target=TARGET configure for building compilers for TARGET [HOST] 1486_ACEOF 1487fi 1488 1489if test -n "$ac_init_help"; then 1490 case $ac_init_help in 1491 short | recursive ) echo "Configuration of netCDF-Fortran 4.5.3:";; 1492 esac 1493 cat <<\_ACEOF 1494 1495Optional Features: 1496 --disable-option-checking ignore unrecognized --enable/--with options 1497 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1498 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1499 --enable-silent-rules less verbose build output (undo: "make V=1") 1500 --disable-silent-rules verbose build output (undo: "make V=0") 1501 --enable-maintainer-mode 1502 enable make rules and dependencies not useful (and 1503 sometimes confusing) to the casual installer 1504 --enable-dependency-tracking 1505 do not reject slow dependency extractors 1506 --disable-dependency-tracking 1507 speeds up one-time build 1508 --enable-valgrind Whether to enable Valgrind on the unit tests 1509 --disable-valgrind-memcheck 1510 Whether to skip memcheck during the Valgrind tests 1511 --disable-valgrind-helgrind 1512 Whether to skip helgrind during the Valgrind tests 1513 --disable-valgrind-drd Whether to skip drd during the Valgrind tests 1514 --enable-valgrind-sgcheck 1515 Whether to use sgcheck during the Valgrind tests 1516 --enable-parallel-tests Run extra parallel IO tests. Ignored if netCDF-4 is 1517 not enabled, or built on a system without parallel 1518 I/O support. 1519 --enable-doxygen Enable generation of documentation with doxygen. 1520 --enable-dot Use dot (provided by graphviz) to generate charts 1521 and graphs in the doxygen-based documentation. 1522 --enable-internal-docs Include documentation of library internals. This is 1523 of interest only to those developing the netCDF 1524 library. 1525 --disable-f03-compiler-check 1526 disable check of ISO_C_BINDING support in Fortran 1527 compiler 1528 --disable-fortran-type-check 1529 cause the Fortran type sizes checks to be skipped 1530 --enable-large-file-tests 1531 Run tests which create very large data files (~13 GB 1532 disk space required, but it will be recovered when 1533 tests are complete). See option --with-temp-large to 1534 specify temporary directory 1535 --enable-benchmarks Run benchmarks. 1536 --enable-shared[=PKGS] build shared libraries [default=yes] 1537 --enable-static[=PKGS] build static libraries [default=yes] 1538 --enable-fast-install[=PKGS] 1539 optimize for fast installation [default=yes] 1540 --disable-libtool-lock avoid locking (might break parallel builds) 1541 --disable-largefile omit support for large files 1542 --enable-filter-test Run filter tests: requires access to the plugins 1543 directory in a netcdf-c build. 1544 1545Optional Packages: 1546 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1547 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1548 --with-temp-large=<directory> 1549 specify directory where large files (i.e. >2 GB) 1550 will be written, if large files tests are run with 1551 --enable-large-file-tests 1552 --with-fmoddir=DIR Fortran module install directory 1553 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1554 both] 1555 --with-aix-soname=aix|svr4|both 1556 shared library versioning (aka "SONAME") variant to 1557 provide on AIX, [default=aix]. 1558 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1559 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1560 compiler's sysroot if not specified). 1561 1562Some influential environment variables: 1563 CC C compiler command 1564 CFLAGS C compiler flags 1565 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1566 nonstandard directory <lib dir> 1567 LIBS libraries to pass to the linker, e.g. -l<library> 1568 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1569 you have headers in a nonstandard directory <include dir> 1570 FC Fortran compiler command 1571 FCFLAGS Fortran compiler flags 1572 F77 Fortran 77 compiler command 1573 FFLAGS Fortran 77 compiler flags 1574 LT_SYS_LIBRARY_PATH 1575 User-defined run-time library search path. 1576 CPP C preprocessor 1577 1578Use these variables to override the choices made by `configure' or to help 1579it to find libraries and programs with nonstandard names/locations. 1580 1581Report bugs to <support-netcdf@unidata.ucar.edu>. 1582_ACEOF 1583ac_status=$? 1584fi 1585 1586if test "$ac_init_help" = "recursive"; then 1587 # If there are subdirs, report their specific --help. 1588 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1589 test -d "$ac_dir" || 1590 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1591 continue 1592 ac_builddir=. 1593 1594case "$ac_dir" in 1595.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1596*) 1597 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1598 # A ".." for each directory in $ac_dir_suffix. 1599 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1600 case $ac_top_builddir_sub in 1601 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1602 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1603 esac ;; 1604esac 1605ac_abs_top_builddir=$ac_pwd 1606ac_abs_builddir=$ac_pwd$ac_dir_suffix 1607# for backward compatibility: 1608ac_top_builddir=$ac_top_build_prefix 1609 1610case $srcdir in 1611 .) # We are building in place. 1612 ac_srcdir=. 1613 ac_top_srcdir=$ac_top_builddir_sub 1614 ac_abs_top_srcdir=$ac_pwd ;; 1615 [\\/]* | ?:[\\/]* ) # Absolute name. 1616 ac_srcdir=$srcdir$ac_dir_suffix; 1617 ac_top_srcdir=$srcdir 1618 ac_abs_top_srcdir=$srcdir ;; 1619 *) # Relative name. 1620 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1621 ac_top_srcdir=$ac_top_build_prefix$srcdir 1622 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1623esac 1624ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1625 1626 cd "$ac_dir" || { ac_status=$?; continue; } 1627 # Check for guested configure. 1628 if test -f "$ac_srcdir/configure.gnu"; then 1629 echo && 1630 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1631 elif test -f "$ac_srcdir/configure"; then 1632 echo && 1633 $SHELL "$ac_srcdir/configure" --help=recursive 1634 else 1635 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1636 fi || ac_status=$? 1637 cd "$ac_pwd" || { ac_status=$?; break; } 1638 done 1639fi 1640 1641test -n "$ac_init_help" && exit $ac_status 1642if $ac_init_version; then 1643 cat <<\_ACEOF 1644netCDF-Fortran configure 4.5.3 1645generated by GNU Autoconf 2.69 1646 1647Copyright (C) 2012 Free Software Foundation, Inc. 1648This configure script is free software; the Free Software Foundation 1649gives unlimited permission to copy, distribute and modify it. 1650_ACEOF 1651 exit 1652fi 1653 1654## ------------------------ ## 1655## Autoconf initialization. ## 1656## ------------------------ ## 1657 1658# ac_fn_c_try_compile LINENO 1659# -------------------------- 1660# Try to compile conftest.$ac_ext, and return whether this succeeded. 1661ac_fn_c_try_compile () 1662{ 1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1664 rm -f conftest.$ac_objext 1665 if { { ac_try="$ac_compile" 1666case "(($ac_try" in 1667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1668 *) ac_try_echo=$ac_try;; 1669esac 1670eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1671$as_echo "$ac_try_echo"; } >&5 1672 (eval "$ac_compile") 2>conftest.err 1673 ac_status=$? 1674 if test -s conftest.err; then 1675 grep -v '^ *+' conftest.err >conftest.er1 1676 cat conftest.er1 >&5 1677 mv -f conftest.er1 conftest.err 1678 fi 1679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1680 test $ac_status = 0; } && { 1681 test -z "$ac_c_werror_flag" || 1682 test ! -s conftest.err 1683 } && test -s conftest.$ac_objext; then : 1684 ac_retval=0 1685else 1686 $as_echo "$as_me: failed program was:" >&5 1687sed 's/^/| /' conftest.$ac_ext >&5 1688 1689 ac_retval=1 1690fi 1691 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1692 as_fn_set_status $ac_retval 1693 1694} # ac_fn_c_try_compile 1695 1696# ac_fn_fc_try_compile LINENO 1697# --------------------------- 1698# Try to compile conftest.$ac_ext, and return whether this succeeded. 1699ac_fn_fc_try_compile () 1700{ 1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1702 rm -f conftest.$ac_objext 1703 if { { ac_try="$ac_compile" 1704case "(($ac_try" in 1705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1706 *) ac_try_echo=$ac_try;; 1707esac 1708eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1709$as_echo "$ac_try_echo"; } >&5 1710 (eval "$ac_compile") 2>conftest.err 1711 ac_status=$? 1712 if test -s conftest.err; then 1713 grep -v '^ *+' conftest.err >conftest.er1 1714 cat conftest.er1 >&5 1715 mv -f conftest.er1 conftest.err 1716 fi 1717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1718 test $ac_status = 0; } && { 1719 test -z "$ac_fc_werror_flag" || 1720 test ! -s conftest.err 1721 } && test -s conftest.$ac_objext; then : 1722 ac_retval=0 1723else 1724 $as_echo "$as_me: failed program was:" >&5 1725sed 's/^/| /' conftest.$ac_ext >&5 1726 1727 ac_retval=1 1728fi 1729 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1730 as_fn_set_status $ac_retval 1731 1732} # ac_fn_fc_try_compile 1733 1734# ac_fn_f77_try_compile LINENO 1735# ---------------------------- 1736# Try to compile conftest.$ac_ext, and return whether this succeeded. 1737ac_fn_f77_try_compile () 1738{ 1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1740 rm -f conftest.$ac_objext 1741 if { { ac_try="$ac_compile" 1742case "(($ac_try" in 1743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1744 *) ac_try_echo=$ac_try;; 1745esac 1746eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1747$as_echo "$ac_try_echo"; } >&5 1748 (eval "$ac_compile") 2>conftest.err 1749 ac_status=$? 1750 if test -s conftest.err; then 1751 grep -v '^ *+' conftest.err >conftest.er1 1752 cat conftest.er1 >&5 1753 mv -f conftest.er1 conftest.err 1754 fi 1755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1756 test $ac_status = 0; } && { 1757 test -z "$ac_f77_werror_flag" || 1758 test ! -s conftest.err 1759 } && test -s conftest.$ac_objext; then : 1760 ac_retval=0 1761else 1762 $as_echo "$as_me: failed program was:" >&5 1763sed 's/^/| /' conftest.$ac_ext >&5 1764 1765 ac_retval=1 1766fi 1767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1768 as_fn_set_status $ac_retval 1769 1770} # ac_fn_f77_try_compile 1771 1772# ac_fn_c_try_link LINENO 1773# ----------------------- 1774# Try to link conftest.$ac_ext, and return whether this succeeded. 1775ac_fn_c_try_link () 1776{ 1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1778 rm -f conftest.$ac_objext conftest$ac_exeext 1779 if { { ac_try="$ac_link" 1780case "(($ac_try" in 1781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1782 *) ac_try_echo=$ac_try;; 1783esac 1784eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1785$as_echo "$ac_try_echo"; } >&5 1786 (eval "$ac_link") 2>conftest.err 1787 ac_status=$? 1788 if test -s conftest.err; then 1789 grep -v '^ *+' conftest.err >conftest.er1 1790 cat conftest.er1 >&5 1791 mv -f conftest.er1 conftest.err 1792 fi 1793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1794 test $ac_status = 0; } && { 1795 test -z "$ac_c_werror_flag" || 1796 test ! -s conftest.err 1797 } && test -s conftest$ac_exeext && { 1798 test "$cross_compiling" = yes || 1799 test -x conftest$ac_exeext 1800 }; then : 1801 ac_retval=0 1802else 1803 $as_echo "$as_me: failed program was:" >&5 1804sed 's/^/| /' conftest.$ac_ext >&5 1805 1806 ac_retval=1 1807fi 1808 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1809 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1810 # interfere with the next link command; also delete a directory that is 1811 # left behind by Apple's compiler. We do this before executing the actions. 1812 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1813 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1814 as_fn_set_status $ac_retval 1815 1816} # ac_fn_c_try_link 1817 1818# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1819# ------------------------------------------------------- 1820# Tests whether HEADER exists and can be compiled using the include files in 1821# INCLUDES, setting the cache variable VAR accordingly. 1822ac_fn_c_check_header_compile () 1823{ 1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1826$as_echo_n "checking for $2... " >&6; } 1827if eval \${$3+:} false; then : 1828 $as_echo_n "(cached) " >&6 1829else 1830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1831/* end confdefs.h. */ 1832$4 1833#include <$2> 1834_ACEOF 1835if ac_fn_c_try_compile "$LINENO"; then : 1836 eval "$3=yes" 1837else 1838 eval "$3=no" 1839fi 1840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1841fi 1842eval ac_res=\$$3 1843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1844$as_echo "$ac_res" >&6; } 1845 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1846 1847} # ac_fn_c_check_header_compile 1848 1849# ac_fn_c_try_cpp LINENO 1850# ---------------------- 1851# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1852ac_fn_c_try_cpp () 1853{ 1854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1855 if { { ac_try="$ac_cpp conftest.$ac_ext" 1856case "(($ac_try" in 1857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1858 *) ac_try_echo=$ac_try;; 1859esac 1860eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1861$as_echo "$ac_try_echo"; } >&5 1862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1863 ac_status=$? 1864 if test -s conftest.err; then 1865 grep -v '^ *+' conftest.err >conftest.er1 1866 cat conftest.er1 >&5 1867 mv -f conftest.er1 conftest.err 1868 fi 1869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1870 test $ac_status = 0; } > conftest.i && { 1871 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1872 test ! -s conftest.err 1873 }; then : 1874 ac_retval=0 1875else 1876 $as_echo "$as_me: failed program was:" >&5 1877sed 's/^/| /' conftest.$ac_ext >&5 1878 1879 ac_retval=1 1880fi 1881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1882 as_fn_set_status $ac_retval 1883 1884} # ac_fn_c_try_cpp 1885 1886# ac_fn_c_try_run LINENO 1887# ---------------------- 1888# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1889# that executables *can* be run. 1890ac_fn_c_try_run () 1891{ 1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1893 if { { ac_try="$ac_link" 1894case "(($ac_try" in 1895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1896 *) ac_try_echo=$ac_try;; 1897esac 1898eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1899$as_echo "$ac_try_echo"; } >&5 1900 (eval "$ac_link") 2>&5 1901 ac_status=$? 1902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1903 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1904 { { case "(($ac_try" in 1905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1906 *) ac_try_echo=$ac_try;; 1907esac 1908eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1909$as_echo "$ac_try_echo"; } >&5 1910 (eval "$ac_try") 2>&5 1911 ac_status=$? 1912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1913 test $ac_status = 0; }; }; then : 1914 ac_retval=0 1915else 1916 $as_echo "$as_me: program exited with status $ac_status" >&5 1917 $as_echo "$as_me: failed program was:" >&5 1918sed 's/^/| /' conftest.$ac_ext >&5 1919 1920 ac_retval=$ac_status 1921fi 1922 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1923 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1924 as_fn_set_status $ac_retval 1925 1926} # ac_fn_c_try_run 1927 1928# ac_fn_c_check_func LINENO FUNC VAR 1929# ---------------------------------- 1930# Tests whether FUNC exists, setting the cache variable VAR accordingly 1931ac_fn_c_check_func () 1932{ 1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1935$as_echo_n "checking for $2... " >&6; } 1936if eval \${$3+:} false; then : 1937 $as_echo_n "(cached) " >&6 1938else 1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1940/* end confdefs.h. */ 1941/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1942 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1943#define $2 innocuous_$2 1944 1945/* System header to define __stub macros and hopefully few prototypes, 1946 which can conflict with char $2 (); below. 1947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1948 <limits.h> exists even on freestanding compilers. */ 1949 1950#ifdef __STDC__ 1951# include <limits.h> 1952#else 1953# include <assert.h> 1954#endif 1955 1956#undef $2 1957 1958/* Override any GCC internal prototype to avoid an error. 1959 Use char because int might match the return type of a GCC 1960 builtin and then its argument prototype would still apply. */ 1961#ifdef __cplusplus 1962extern "C" 1963#endif 1964char $2 (); 1965/* The GNU C library defines this for functions which it implements 1966 to always fail with ENOSYS. Some functions are actually named 1967 something starting with __ and the normal name is an alias. */ 1968#if defined __stub_$2 || defined __stub___$2 1969choke me 1970#endif 1971 1972int 1973main () 1974{ 1975return $2 (); 1976 ; 1977 return 0; 1978} 1979_ACEOF 1980if ac_fn_c_try_link "$LINENO"; then : 1981 eval "$3=yes" 1982else 1983 eval "$3=no" 1984fi 1985rm -f core conftest.err conftest.$ac_objext \ 1986 conftest$ac_exeext conftest.$ac_ext 1987fi 1988eval ac_res=\$$3 1989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1990$as_echo "$ac_res" >&6; } 1991 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1992 1993} # ac_fn_c_check_func 1994 1995# ac_fn_f77_try_link LINENO 1996# ------------------------- 1997# Try to link conftest.$ac_ext, and return whether this succeeded. 1998ac_fn_f77_try_link () 1999{ 2000 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2001 rm -f conftest.$ac_objext conftest$ac_exeext 2002 if { { ac_try="$ac_link" 2003case "(($ac_try" in 2004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2005 *) ac_try_echo=$ac_try;; 2006esac 2007eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2008$as_echo "$ac_try_echo"; } >&5 2009 (eval "$ac_link") 2>conftest.err 2010 ac_status=$? 2011 if test -s conftest.err; then 2012 grep -v '^ *+' conftest.err >conftest.er1 2013 cat conftest.er1 >&5 2014 mv -f conftest.er1 conftest.err 2015 fi 2016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2017 test $ac_status = 0; } && { 2018 test -z "$ac_f77_werror_flag" || 2019 test ! -s conftest.err 2020 } && test -s conftest$ac_exeext && { 2021 test "$cross_compiling" = yes || 2022 test -x conftest$ac_exeext 2023 }; then : 2024 ac_retval=0 2025else 2026 $as_echo "$as_me: failed program was:" >&5 2027sed 's/^/| /' conftest.$ac_ext >&5 2028 2029 ac_retval=1 2030fi 2031 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2032 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2033 # interfere with the next link command; also delete a directory that is 2034 # left behind by Apple's compiler. We do this before executing the actions. 2035 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2036 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2037 as_fn_set_status $ac_retval 2038 2039} # ac_fn_f77_try_link 2040 2041# ac_fn_fc_try_link LINENO 2042# ------------------------ 2043# Try to link conftest.$ac_ext, and return whether this succeeded. 2044ac_fn_fc_try_link () 2045{ 2046 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2047 rm -f conftest.$ac_objext conftest$ac_exeext 2048 if { { ac_try="$ac_link" 2049case "(($ac_try" in 2050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2051 *) ac_try_echo=$ac_try;; 2052esac 2053eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2054$as_echo "$ac_try_echo"; } >&5 2055 (eval "$ac_link") 2>conftest.err 2056 ac_status=$? 2057 if test -s conftest.err; then 2058 grep -v '^ *+' conftest.err >conftest.er1 2059 cat conftest.er1 >&5 2060 mv -f conftest.er1 conftest.err 2061 fi 2062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2063 test $ac_status = 0; } && { 2064 test -z "$ac_fc_werror_flag" || 2065 test ! -s conftest.err 2066 } && test -s conftest$ac_exeext && { 2067 test "$cross_compiling" = yes || 2068 test -x conftest$ac_exeext 2069 }; then : 2070 ac_retval=0 2071else 2072 $as_echo "$as_me: failed program was:" >&5 2073sed 's/^/| /' conftest.$ac_ext >&5 2074 2075 ac_retval=1 2076fi 2077 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2078 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2079 # interfere with the next link command; also delete a directory that is 2080 # left behind by Apple's compiler. We do this before executing the actions. 2081 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2082 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2083 as_fn_set_status $ac_retval 2084 2085} # ac_fn_fc_try_link 2086 2087# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2088# ------------------------------------------------------- 2089# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2090# the include files in INCLUDES and setting the cache variable VAR 2091# accordingly. 2092ac_fn_c_check_header_mongrel () 2093{ 2094 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2095 if eval \${$3+:} false; then : 2096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2097$as_echo_n "checking for $2... " >&6; } 2098if eval \${$3+:} false; then : 2099 $as_echo_n "(cached) " >&6 2100fi 2101eval ac_res=\$$3 2102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2103$as_echo "$ac_res" >&6; } 2104else 2105 # Is the header compilable? 2106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2107$as_echo_n "checking $2 usability... " >&6; } 2108cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2109/* end confdefs.h. */ 2110$4 2111#include <$2> 2112_ACEOF 2113if ac_fn_c_try_compile "$LINENO"; then : 2114 ac_header_compiler=yes 2115else 2116 ac_header_compiler=no 2117fi 2118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2120$as_echo "$ac_header_compiler" >&6; } 2121 2122# Is the header present? 2123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2124$as_echo_n "checking $2 presence... " >&6; } 2125cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2126/* end confdefs.h. */ 2127#include <$2> 2128_ACEOF 2129if ac_fn_c_try_cpp "$LINENO"; then : 2130 ac_header_preproc=yes 2131else 2132 ac_header_preproc=no 2133fi 2134rm -f conftest.err conftest.i conftest.$ac_ext 2135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2136$as_echo "$ac_header_preproc" >&6; } 2137 2138# So? What about this header? 2139case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2140 yes:no: ) 2141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2142$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2144$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2145 ;; 2146 no:yes:* ) 2147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2148$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2150$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2152$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2154$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2156$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2157( $as_echo "## ---------------------------------------------- ## 2158## Report this to support-netcdf@unidata.ucar.edu ## 2159## ---------------------------------------------- ##" 2160 ) | sed "s/^/$as_me: WARNING: /" >&2 2161 ;; 2162esac 2163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2164$as_echo_n "checking for $2... " >&6; } 2165if eval \${$3+:} false; then : 2166 $as_echo_n "(cached) " >&6 2167else 2168 eval "$3=\$ac_header_compiler" 2169fi 2170eval ac_res=\$$3 2171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2172$as_echo "$ac_res" >&6; } 2173fi 2174 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2175 2176} # ac_fn_c_check_header_mongrel 2177 2178# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2179# ------------------------------------------- 2180# Tests whether TYPE exists after having included INCLUDES, setting cache 2181# variable VAR accordingly. 2182ac_fn_c_check_type () 2183{ 2184 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2186$as_echo_n "checking for $2... " >&6; } 2187if eval \${$3+:} false; then : 2188 $as_echo_n "(cached) " >&6 2189else 2190 eval "$3=no" 2191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2192/* end confdefs.h. */ 2193$4 2194int 2195main () 2196{ 2197if (sizeof ($2)) 2198 return 0; 2199 ; 2200 return 0; 2201} 2202_ACEOF 2203if ac_fn_c_try_compile "$LINENO"; then : 2204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2205/* end confdefs.h. */ 2206$4 2207int 2208main () 2209{ 2210if (sizeof (($2))) 2211 return 0; 2212 ; 2213 return 0; 2214} 2215_ACEOF 2216if ac_fn_c_try_compile "$LINENO"; then : 2217 2218else 2219 eval "$3=yes" 2220fi 2221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2222fi 2223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2224fi 2225eval ac_res=\$$3 2226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2227$as_echo "$ac_res" >&6; } 2228 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2229 2230} # ac_fn_c_check_type 2231 2232# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2233# -------------------------------------------- 2234# Tries to find the compile-time value of EXPR in a program that includes 2235# INCLUDES, setting VAR accordingly. Returns whether the value could be 2236# computed 2237ac_fn_c_compute_int () 2238{ 2239 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2240 if test "$cross_compiling" = yes; then 2241 # Depending upon the size, compute the lo and hi bounds. 2242cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2243/* end confdefs.h. */ 2244$4 2245int 2246main () 2247{ 2248static int test_array [1 - 2 * !(($2) >= 0)]; 2249test_array [0] = 0; 2250return test_array [0]; 2251 2252 ; 2253 return 0; 2254} 2255_ACEOF 2256if ac_fn_c_try_compile "$LINENO"; then : 2257 ac_lo=0 ac_mid=0 2258 while :; do 2259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2260/* end confdefs.h. */ 2261$4 2262int 2263main () 2264{ 2265static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2266test_array [0] = 0; 2267return test_array [0]; 2268 2269 ; 2270 return 0; 2271} 2272_ACEOF 2273if ac_fn_c_try_compile "$LINENO"; then : 2274 ac_hi=$ac_mid; break 2275else 2276 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2277 if test $ac_lo -le $ac_mid; then 2278 ac_lo= ac_hi= 2279 break 2280 fi 2281 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2282fi 2283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2284 done 2285else 2286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2287/* end confdefs.h. */ 2288$4 2289int 2290main () 2291{ 2292static int test_array [1 - 2 * !(($2) < 0)]; 2293test_array [0] = 0; 2294return test_array [0]; 2295 2296 ; 2297 return 0; 2298} 2299_ACEOF 2300if ac_fn_c_try_compile "$LINENO"; then : 2301 ac_hi=-1 ac_mid=-1 2302 while :; do 2303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2304/* end confdefs.h. */ 2305$4 2306int 2307main () 2308{ 2309static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2310test_array [0] = 0; 2311return test_array [0]; 2312 2313 ; 2314 return 0; 2315} 2316_ACEOF 2317if ac_fn_c_try_compile "$LINENO"; then : 2318 ac_lo=$ac_mid; break 2319else 2320 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2321 if test $ac_mid -le $ac_hi; then 2322 ac_lo= ac_hi= 2323 break 2324 fi 2325 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2326fi 2327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2328 done 2329else 2330 ac_lo= ac_hi= 2331fi 2332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2333fi 2334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2335# Binary search between lo and hi bounds. 2336while test "x$ac_lo" != "x$ac_hi"; do 2337 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2339/* end confdefs.h. */ 2340$4 2341int 2342main () 2343{ 2344static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2345test_array [0] = 0; 2346return test_array [0]; 2347 2348 ; 2349 return 0; 2350} 2351_ACEOF 2352if ac_fn_c_try_compile "$LINENO"; then : 2353 ac_hi=$ac_mid 2354else 2355 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2356fi 2357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2358done 2359case $ac_lo in #(( 2360?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2361'') ac_retval=1 ;; 2362esac 2363 else 2364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2365/* end confdefs.h. */ 2366$4 2367static long int longval () { return $2; } 2368static unsigned long int ulongval () { return $2; } 2369#include <stdio.h> 2370#include <stdlib.h> 2371int 2372main () 2373{ 2374 2375 FILE *f = fopen ("conftest.val", "w"); 2376 if (! f) 2377 return 1; 2378 if (($2) < 0) 2379 { 2380 long int i = longval (); 2381 if (i != ($2)) 2382 return 1; 2383 fprintf (f, "%ld", i); 2384 } 2385 else 2386 { 2387 unsigned long int i = ulongval (); 2388 if (i != ($2)) 2389 return 1; 2390 fprintf (f, "%lu", i); 2391 } 2392 /* Do not output a trailing newline, as this causes \r\n confusion 2393 on some platforms. */ 2394 return ferror (f) || fclose (f) != 0; 2395 2396 ; 2397 return 0; 2398} 2399_ACEOF 2400if ac_fn_c_try_run "$LINENO"; then : 2401 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2402else 2403 ac_retval=1 2404fi 2405rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2406 conftest.$ac_objext conftest.beam conftest.$ac_ext 2407rm -f conftest.val 2408 2409 fi 2410 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2411 as_fn_set_status $ac_retval 2412 2413} # ac_fn_c_compute_int 2414cat >config.log <<_ACEOF 2415This file contains any messages produced by compilers while 2416running configure, to aid debugging if configure makes a mistake. 2417 2418It was created by netCDF-Fortran $as_me 4.5.3, which was 2419generated by GNU Autoconf 2.69. Invocation command line was 2420 2421 $ $0 $@ 2422 2423_ACEOF 2424exec 5>>config.log 2425{ 2426cat <<_ASUNAME 2427## --------- ## 2428## Platform. ## 2429## --------- ## 2430 2431hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2432uname -m = `(uname -m) 2>/dev/null || echo unknown` 2433uname -r = `(uname -r) 2>/dev/null || echo unknown` 2434uname -s = `(uname -s) 2>/dev/null || echo unknown` 2435uname -v = `(uname -v) 2>/dev/null || echo unknown` 2436 2437/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2438/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2439 2440/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2441/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2442/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2443/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2444/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2445/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2446/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2447 2448_ASUNAME 2449 2450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2451for as_dir in $PATH 2452do 2453 IFS=$as_save_IFS 2454 test -z "$as_dir" && as_dir=. 2455 $as_echo "PATH: $as_dir" 2456 done 2457IFS=$as_save_IFS 2458 2459} >&5 2460 2461cat >&5 <<_ACEOF 2462 2463 2464## ----------- ## 2465## Core tests. ## 2466## ----------- ## 2467 2468_ACEOF 2469 2470 2471# Keep a trace of the command line. 2472# Strip out --no-create and --no-recursion so they do not pile up. 2473# Strip out --silent because we don't want to record it for future runs. 2474# Also quote any args containing shell meta-characters. 2475# Make two passes to allow for proper duplicate-argument suppression. 2476ac_configure_args= 2477ac_configure_args0= 2478ac_configure_args1= 2479ac_must_keep_next=false 2480for ac_pass in 1 2 2481do 2482 for ac_arg 2483 do 2484 case $ac_arg in 2485 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2486 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2487 | -silent | --silent | --silen | --sile | --sil) 2488 continue ;; 2489 *\'*) 2490 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2491 esac 2492 case $ac_pass in 2493 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2494 2) 2495 as_fn_append ac_configure_args1 " '$ac_arg'" 2496 if test $ac_must_keep_next = true; then 2497 ac_must_keep_next=false # Got value, back to normal. 2498 else 2499 case $ac_arg in 2500 *=* | --config-cache | -C | -disable-* | --disable-* \ 2501 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2502 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2503 | -with-* | --with-* | -without-* | --without-* | --x) 2504 case "$ac_configure_args0 " in 2505 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2506 esac 2507 ;; 2508 -* ) ac_must_keep_next=true ;; 2509 esac 2510 fi 2511 as_fn_append ac_configure_args " '$ac_arg'" 2512 ;; 2513 esac 2514 done 2515done 2516{ ac_configure_args0=; unset ac_configure_args0;} 2517{ ac_configure_args1=; unset ac_configure_args1;} 2518 2519# When interrupted or exit'd, cleanup temporary files, and complete 2520# config.log. We remove comments because anyway the quotes in there 2521# would cause problems or look ugly. 2522# WARNING: Use '\'' to represent an apostrophe within the trap. 2523# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2524trap 'exit_status=$? 2525 # Save into config.log some information that might help in debugging. 2526 { 2527 echo 2528 2529 $as_echo "## ---------------- ## 2530## Cache variables. ## 2531## ---------------- ##" 2532 echo 2533 # The following way of writing the cache mishandles newlines in values, 2534( 2535 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2536 eval ac_val=\$$ac_var 2537 case $ac_val in #( 2538 *${as_nl}*) 2539 case $ac_var in #( 2540 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2541$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2542 esac 2543 case $ac_var in #( 2544 _ | IFS | as_nl) ;; #( 2545 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2546 *) { eval $ac_var=; unset $ac_var;} ;; 2547 esac ;; 2548 esac 2549 done 2550 (set) 2>&1 | 2551 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2552 *${as_nl}ac_space=\ *) 2553 sed -n \ 2554 "s/'\''/'\''\\\\'\'''\''/g; 2555 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2556 ;; #( 2557 *) 2558 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2559 ;; 2560 esac | 2561 sort 2562) 2563 echo 2564 2565 $as_echo "## ----------------- ## 2566## Output variables. ## 2567## ----------------- ##" 2568 echo 2569 for ac_var in $ac_subst_vars 2570 do 2571 eval ac_val=\$$ac_var 2572 case $ac_val in 2573 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2574 esac 2575 $as_echo "$ac_var='\''$ac_val'\''" 2576 done | sort 2577 echo 2578 2579 if test -n "$ac_subst_files"; then 2580 $as_echo "## ------------------- ## 2581## File substitutions. ## 2582## ------------------- ##" 2583 echo 2584 for ac_var in $ac_subst_files 2585 do 2586 eval ac_val=\$$ac_var 2587 case $ac_val in 2588 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2589 esac 2590 $as_echo "$ac_var='\''$ac_val'\''" 2591 done | sort 2592 echo 2593 fi 2594 2595 if test -s confdefs.h; then 2596 $as_echo "## ----------- ## 2597## confdefs.h. ## 2598## ----------- ##" 2599 echo 2600 cat confdefs.h 2601 echo 2602 fi 2603 test "$ac_signal" != 0 && 2604 $as_echo "$as_me: caught signal $ac_signal" 2605 $as_echo "$as_me: exit $exit_status" 2606 } >&5 2607 rm -f core *.core core.conftest.* && 2608 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2609 exit $exit_status 2610' 0 2611for ac_signal in 1 2 13 15; do 2612 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2613done 2614ac_signal=0 2615 2616# confdefs.h avoids OS command line length limits that DEFS can exceed. 2617rm -f -r conftest* confdefs.h 2618 2619$as_echo "/* confdefs.h */" > confdefs.h 2620 2621# Predefined preprocessor variables. 2622 2623cat >>confdefs.h <<_ACEOF 2624#define PACKAGE_NAME "$PACKAGE_NAME" 2625_ACEOF 2626 2627cat >>confdefs.h <<_ACEOF 2628#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2629_ACEOF 2630 2631cat >>confdefs.h <<_ACEOF 2632#define PACKAGE_VERSION "$PACKAGE_VERSION" 2633_ACEOF 2634 2635cat >>confdefs.h <<_ACEOF 2636#define PACKAGE_STRING "$PACKAGE_STRING" 2637_ACEOF 2638 2639cat >>confdefs.h <<_ACEOF 2640#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2641_ACEOF 2642 2643cat >>confdefs.h <<_ACEOF 2644#define PACKAGE_URL "$PACKAGE_URL" 2645_ACEOF 2646 2647 2648# Let the site file select an alternate cache file if it wants to. 2649# Prefer an explicitly selected file to automatically selected ones. 2650ac_site_file1=NONE 2651ac_site_file2=NONE 2652if test -n "$CONFIG_SITE"; then 2653 # We do not want a PATH search for config.site. 2654 case $CONFIG_SITE in #(( 2655 -*) ac_site_file1=./$CONFIG_SITE;; 2656 */*) ac_site_file1=$CONFIG_SITE;; 2657 *) ac_site_file1=./$CONFIG_SITE;; 2658 esac 2659elif test "x$prefix" != xNONE; then 2660 ac_site_file1=$prefix/share/config.site 2661 ac_site_file2=$prefix/etc/config.site 2662else 2663 ac_site_file1=$ac_default_prefix/share/config.site 2664 ac_site_file2=$ac_default_prefix/etc/config.site 2665fi 2666for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2667do 2668 test "x$ac_site_file" = xNONE && continue 2669 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2670 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2671$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2672 sed 's/^/| /' "$ac_site_file" >&5 2673 . "$ac_site_file" \ 2674 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2675$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2676as_fn_error $? "failed to load site script $ac_site_file 2677See \`config.log' for more details" "$LINENO" 5; } 2678 fi 2679done 2680 2681if test -r "$cache_file"; then 2682 # Some versions of bash will fail to source /dev/null (special files 2683 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2684 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2685 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2686$as_echo "$as_me: loading cache $cache_file" >&6;} 2687 case $cache_file in 2688 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2689 *) . "./$cache_file";; 2690 esac 2691 fi 2692else 2693 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2694$as_echo "$as_me: creating cache $cache_file" >&6;} 2695 >$cache_file 2696fi 2697 2698# Check that the precious variables saved in the cache have kept the same 2699# value. 2700ac_cache_corrupted=false 2701for ac_var in $ac_precious_vars; do 2702 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2703 eval ac_new_set=\$ac_env_${ac_var}_set 2704 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2705 eval ac_new_val=\$ac_env_${ac_var}_value 2706 case $ac_old_set,$ac_new_set in 2707 set,) 2708 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2709$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2710 ac_cache_corrupted=: ;; 2711 ,set) 2712 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2713$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2714 ac_cache_corrupted=: ;; 2715 ,);; 2716 *) 2717 if test "x$ac_old_val" != "x$ac_new_val"; then 2718 # differences in whitespace do not lead to failure. 2719 ac_old_val_w=`echo x $ac_old_val` 2720 ac_new_val_w=`echo x $ac_new_val` 2721 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2722 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2723$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2724 ac_cache_corrupted=: 2725 else 2726 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2727$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2728 eval $ac_var=\$ac_old_val 2729 fi 2730 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2731$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2732 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2733$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2734 fi;; 2735 esac 2736 # Pass precious variables to config.status. 2737 if test "$ac_new_set" = set; then 2738 case $ac_new_val in 2739 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2740 *) ac_arg=$ac_var=$ac_new_val ;; 2741 esac 2742 case " $ac_configure_args " in 2743 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2744 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2745 esac 2746 fi 2747done 2748if $ac_cache_corrupted; then 2749 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2750$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2751 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2752$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2753 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2754fi 2755## -------------------- ## 2756## Main body of script. ## 2757## -------------------- ## 2758 2759ac_ext=c 2760ac_cpp='$CPP $CPPFLAGS' 2761ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2762ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2763ac_compiler_gnu=$ac_cv_c_compiler_gnu 2764 2765 2766 2767# Create the VERSION file, which contains the package version from 2768# AC_INIT. 2769echo -n 4.5.3>VERSION 2770 2771{ $as_echo "$as_me:${as_lineno-$LINENO}: netCDF-Fortran 4.5.3" >&5 2772$as_echo "$as_me: netCDF-Fortran 4.5.3" >&6;} 2773 2774# Configuration Date 2775if test "x$SOURCE_DATE_EPOCH" != "x" ; then 2776 CONFIG_DATE="`date -u -d "${SOURCE_DATE_EPOCH}"`" 2777else 2778 CONFIG_DATE="`date`" 2779fi 2780 2781# Keep libtool macros in an m4 directory. 2782 2783 2784# Find out about the host we're building on. 2785ac_aux_dir= 2786for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2787 if test -f "$ac_dir/install-sh"; then 2788 ac_aux_dir=$ac_dir 2789 ac_install_sh="$ac_aux_dir/install-sh -c" 2790 break 2791 elif test -f "$ac_dir/install.sh"; then 2792 ac_aux_dir=$ac_dir 2793 ac_install_sh="$ac_aux_dir/install.sh -c" 2794 break 2795 elif test -f "$ac_dir/shtool"; then 2796 ac_aux_dir=$ac_dir 2797 ac_install_sh="$ac_aux_dir/shtool install -c" 2798 break 2799 fi 2800done 2801if test -z "$ac_aux_dir"; then 2802 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2803fi 2804 2805# These three variables are undocumented and unsupported, 2806# and are intended to be withdrawn in a future Autoconf release. 2807# They can cause serious problems if a builder's source tree is in a directory 2808# whose full name contains unusual characters. 2809ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2810ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2811ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2812 2813 2814# Make sure we can run config.sub. 2815$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2816 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2817 2818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2819$as_echo_n "checking build system type... " >&6; } 2820if ${ac_cv_build+:} false; then : 2821 $as_echo_n "(cached) " >&6 2822else 2823 ac_build_alias=$build_alias 2824test "x$ac_build_alias" = x && 2825 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2826test "x$ac_build_alias" = x && 2827 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2828ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2829 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2830 2831fi 2832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2833$as_echo "$ac_cv_build" >&6; } 2834case $ac_cv_build in 2835*-*-*) ;; 2836*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2837esac 2838build=$ac_cv_build 2839ac_save_IFS=$IFS; IFS='-' 2840set x $ac_cv_build 2841shift 2842build_cpu=$1 2843build_vendor=$2 2844shift; shift 2845# Remember, the first character of IFS is used to create $*, 2846# except with old shells: 2847build_os=$* 2848IFS=$ac_save_IFS 2849case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2850 2851 2852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2853$as_echo_n "checking host system type... " >&6; } 2854if ${ac_cv_host+:} false; then : 2855 $as_echo_n "(cached) " >&6 2856else 2857 if test "x$host_alias" = x; then 2858 ac_cv_host=$ac_cv_build 2859else 2860 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2861 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2862fi 2863 2864fi 2865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2866$as_echo "$ac_cv_host" >&6; } 2867case $ac_cv_host in 2868*-*-*) ;; 2869*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2870esac 2871host=$ac_cv_host 2872ac_save_IFS=$IFS; IFS='-' 2873set x $ac_cv_host 2874shift 2875host_cpu=$1 2876host_vendor=$2 2877shift; shift 2878# Remember, the first character of IFS is used to create $*, 2879# except with old shells: 2880host_os=$* 2881IFS=$ac_save_IFS 2882case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2883 2884 2885 2886# Find out about the target we're building for. 2887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2888$as_echo_n "checking target system type... " >&6; } 2889if ${ac_cv_target+:} false; then : 2890 $as_echo_n "(cached) " >&6 2891else 2892 if test "x$target_alias" = x; then 2893 ac_cv_target=$ac_cv_host 2894else 2895 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2896 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2897fi 2898 2899fi 2900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2901$as_echo "$ac_cv_target" >&6; } 2902case $ac_cv_target in 2903*-*-*) ;; 2904*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2905esac 2906target=$ac_cv_target 2907ac_save_IFS=$IFS; IFS='-' 2908set x $ac_cv_target 2909shift 2910target_cpu=$1 2911target_vendor=$2 2912shift; shift 2913# Remember, the first character of IFS is used to create $*, 2914# except with old shells: 2915target_os=$* 2916IFS=$ac_save_IFS 2917case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2918 2919 2920# The aliases save the names the user supplied, while $host etc. 2921# will get canonicalized. 2922test -n "$target_alias" && 2923 test "$program_prefix$program_suffix$program_transform_name" = \ 2924 NONENONEs,x,x, && 2925 program_prefix=${target_alias}- 2926 2927# This call is required by automake. 2928am__api_version='1.16' 2929 2930# Find a good install program. We prefer a C program (faster), 2931# so one script is as good as another. But avoid the broken or 2932# incompatible versions: 2933# SysV /etc/install, /usr/sbin/install 2934# SunOS /usr/etc/install 2935# IRIX /sbin/install 2936# AIX /bin/install 2937# AmigaOS /C/install, which installs bootblocks on floppy discs 2938# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2939# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2940# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2941# OS/2's system install, which has a completely different semantic 2942# ./install, which can be erroneously created by make from ./install.sh. 2943# Reject install programs that cannot install multiple files. 2944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2945$as_echo_n "checking for a BSD-compatible install... " >&6; } 2946if test -z "$INSTALL"; then 2947if ${ac_cv_path_install+:} false; then : 2948 $as_echo_n "(cached) " >&6 2949else 2950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2951for as_dir in $PATH 2952do 2953 IFS=$as_save_IFS 2954 test -z "$as_dir" && as_dir=. 2955 # Account for people who put trailing slashes in PATH elements. 2956case $as_dir/ in #(( 2957 ./ | .// | /[cC]/* | \ 2958 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2959 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2960 /usr/ucb/* ) ;; 2961 *) 2962 # OSF1 and SCO ODT 3.0 have their own names for install. 2963 # Don't use installbsd from OSF since it installs stuff as root 2964 # by default. 2965 for ac_prog in ginstall scoinst install; do 2966 for ac_exec_ext in '' $ac_executable_extensions; do 2967 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2968 if test $ac_prog = install && 2969 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2970 # AIX install. It has an incompatible calling convention. 2971 : 2972 elif test $ac_prog = install && 2973 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2974 # program-specific install script used by HP pwplus--don't use. 2975 : 2976 else 2977 rm -rf conftest.one conftest.two conftest.dir 2978 echo one > conftest.one 2979 echo two > conftest.two 2980 mkdir conftest.dir 2981 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2982 test -s conftest.one && test -s conftest.two && 2983 test -s conftest.dir/conftest.one && 2984 test -s conftest.dir/conftest.two 2985 then 2986 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2987 break 3 2988 fi 2989 fi 2990 fi 2991 done 2992 done 2993 ;; 2994esac 2995 2996 done 2997IFS=$as_save_IFS 2998 2999rm -rf conftest.one conftest.two conftest.dir 3000 3001fi 3002 if test "${ac_cv_path_install+set}" = set; then 3003 INSTALL=$ac_cv_path_install 3004 else 3005 # As a last resort, use the slow shell script. Don't cache a 3006 # value for INSTALL within a source directory, because that will 3007 # break other packages using the cache if that directory is 3008 # removed, or if the value is a relative name. 3009 INSTALL=$ac_install_sh 3010 fi 3011fi 3012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3013$as_echo "$INSTALL" >&6; } 3014 3015# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3016# It thinks the first close brace ends the variable substitution. 3017test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3018 3019test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3020 3021test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3022 3023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3024$as_echo_n "checking whether build environment is sane... " >&6; } 3025# Reject unsafe characters in $srcdir or the absolute working directory 3026# name. Accept space and tab only in the latter. 3027am_lf=' 3028' 3029case `pwd` in 3030 *[\\\"\#\$\&\'\`$am_lf]*) 3031 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3032esac 3033case $srcdir in 3034 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3035 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3036esac 3037 3038# Do 'set' in a subshell so we don't clobber the current shell's 3039# arguments. Must try -L first in case configure is actually a 3040# symlink; some systems play weird games with the mod time of symlinks 3041# (eg FreeBSD returns the mod time of the symlink's containing 3042# directory). 3043if ( 3044 am_has_slept=no 3045 for am_try in 1 2; do 3046 echo "timestamp, slept: $am_has_slept" > conftest.file 3047 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3048 if test "$*" = "X"; then 3049 # -L didn't work. 3050 set X `ls -t "$srcdir/configure" conftest.file` 3051 fi 3052 if test "$*" != "X $srcdir/configure conftest.file" \ 3053 && test "$*" != "X conftest.file $srcdir/configure"; then 3054 3055 # If neither matched, then we have a broken ls. This can happen 3056 # if, for instance, CONFIG_SHELL is bash and it inherits a 3057 # broken ls alias from the environment. This has actually 3058 # happened. Such a system could not be considered "sane". 3059 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3060 alias in your environment" "$LINENO" 5 3061 fi 3062 if test "$2" = conftest.file || test $am_try -eq 2; then 3063 break 3064 fi 3065 # Just in case. 3066 sleep 1 3067 am_has_slept=yes 3068 done 3069 test "$2" = conftest.file 3070 ) 3071then 3072 # Ok. 3073 : 3074else 3075 as_fn_error $? "newly created file is older than distributed files! 3076Check your system clock" "$LINENO" 5 3077fi 3078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3079$as_echo "yes" >&6; } 3080# If we didn't sleep, we still need to ensure time stamps of config.status and 3081# generated files are strictly newer. 3082am_sleep_pid= 3083if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3084 ( sleep 1 ) & 3085 am_sleep_pid=$! 3086fi 3087 3088rm -f conftest.file 3089 3090test "$program_prefix" != NONE && 3091 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3092# Use a double $ so make ignores it. 3093test "$program_suffix" != NONE && 3094 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3095# Double any \ or $. 3096# By default was `s,x,x', remove it if useless. 3097ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3098program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3099 3100# Expand $ac_aux_dir to an absolute path. 3101am_aux_dir=`cd "$ac_aux_dir" && pwd` 3102 3103if test x"${MISSING+set}" != xset; then 3104 case $am_aux_dir in 3105 *\ * | *\ *) 3106 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3107 *) 3108 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3109 esac 3110fi 3111# Use eval to expand $SHELL 3112if eval "$MISSING --is-lightweight"; then 3113 am_missing_run="$MISSING " 3114else 3115 am_missing_run= 3116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3117$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3118fi 3119 3120if test x"${install_sh+set}" != xset; then 3121 case $am_aux_dir in 3122 *\ * | *\ *) 3123 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3124 *) 3125 install_sh="\${SHELL} $am_aux_dir/install-sh" 3126 esac 3127fi 3128 3129# Installed binaries are usually stripped using 'strip' when the user 3130# run "make install-strip". However 'strip' might not be the right 3131# tool to use in cross-compilation environments, therefore Automake 3132# will honor the 'STRIP' environment variable to overrule this program. 3133if test "$cross_compiling" != no; then 3134 if test -n "$ac_tool_prefix"; then 3135 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3136set dummy ${ac_tool_prefix}strip; ac_word=$2 3137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3138$as_echo_n "checking for $ac_word... " >&6; } 3139if ${ac_cv_prog_STRIP+:} false; then : 3140 $as_echo_n "(cached) " >&6 3141else 3142 if test -n "$STRIP"; then 3143 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3144else 3145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3146for as_dir in $PATH 3147do 3148 IFS=$as_save_IFS 3149 test -z "$as_dir" && as_dir=. 3150 for ac_exec_ext in '' $ac_executable_extensions; do 3151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3152 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3154 break 2 3155 fi 3156done 3157 done 3158IFS=$as_save_IFS 3159 3160fi 3161fi 3162STRIP=$ac_cv_prog_STRIP 3163if test -n "$STRIP"; then 3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3165$as_echo "$STRIP" >&6; } 3166else 3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3168$as_echo "no" >&6; } 3169fi 3170 3171 3172fi 3173if test -z "$ac_cv_prog_STRIP"; then 3174 ac_ct_STRIP=$STRIP 3175 # Extract the first word of "strip", so it can be a program name with args. 3176set dummy strip; ac_word=$2 3177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3178$as_echo_n "checking for $ac_word... " >&6; } 3179if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3180 $as_echo_n "(cached) " >&6 3181else 3182 if test -n "$ac_ct_STRIP"; then 3183 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3184else 3185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3186for as_dir in $PATH 3187do 3188 IFS=$as_save_IFS 3189 test -z "$as_dir" && as_dir=. 3190 for ac_exec_ext in '' $ac_executable_extensions; do 3191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3192 ac_cv_prog_ac_ct_STRIP="strip" 3193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3194 break 2 3195 fi 3196done 3197 done 3198IFS=$as_save_IFS 3199 3200fi 3201fi 3202ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3203if test -n "$ac_ct_STRIP"; then 3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3205$as_echo "$ac_ct_STRIP" >&6; } 3206else 3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3208$as_echo "no" >&6; } 3209fi 3210 3211 if test "x$ac_ct_STRIP" = x; then 3212 STRIP=":" 3213 else 3214 case $cross_compiling:$ac_tool_warned in 3215yes:) 3216{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3217$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3218ac_tool_warned=yes ;; 3219esac 3220 STRIP=$ac_ct_STRIP 3221 fi 3222else 3223 STRIP="$ac_cv_prog_STRIP" 3224fi 3225 3226fi 3227INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3228 3229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3230$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3231if test -z "$MKDIR_P"; then 3232 if ${ac_cv_path_mkdir+:} false; then : 3233 $as_echo_n "(cached) " >&6 3234else 3235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3236for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3237do 3238 IFS=$as_save_IFS 3239 test -z "$as_dir" && as_dir=. 3240 for ac_prog in mkdir gmkdir; do 3241 for ac_exec_ext in '' $ac_executable_extensions; do 3242 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3243 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3244 'mkdir (GNU coreutils) '* | \ 3245 'mkdir (coreutils) '* | \ 3246 'mkdir (fileutils) '4.1*) 3247 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3248 break 3;; 3249 esac 3250 done 3251 done 3252 done 3253IFS=$as_save_IFS 3254 3255fi 3256 3257 test -d ./--version && rmdir ./--version 3258 if test "${ac_cv_path_mkdir+set}" = set; then 3259 MKDIR_P="$ac_cv_path_mkdir -p" 3260 else 3261 # As a last resort, use the slow shell script. Don't cache a 3262 # value for MKDIR_P within a source directory, because that will 3263 # break other packages using the cache if that directory is 3264 # removed, or if the value is a relative name. 3265 MKDIR_P="$ac_install_sh -d" 3266 fi 3267fi 3268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3269$as_echo "$MKDIR_P" >&6; } 3270 3271for ac_prog in gawk mawk nawk awk 3272do 3273 # Extract the first word of "$ac_prog", so it can be a program name with args. 3274set dummy $ac_prog; ac_word=$2 3275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3276$as_echo_n "checking for $ac_word... " >&6; } 3277if ${ac_cv_prog_AWK+:} false; then : 3278 $as_echo_n "(cached) " >&6 3279else 3280 if test -n "$AWK"; then 3281 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3282else 3283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3284for as_dir in $PATH 3285do 3286 IFS=$as_save_IFS 3287 test -z "$as_dir" && as_dir=. 3288 for ac_exec_ext in '' $ac_executable_extensions; do 3289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3290 ac_cv_prog_AWK="$ac_prog" 3291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3292 break 2 3293 fi 3294done 3295 done 3296IFS=$as_save_IFS 3297 3298fi 3299fi 3300AWK=$ac_cv_prog_AWK 3301if test -n "$AWK"; then 3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3303$as_echo "$AWK" >&6; } 3304else 3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3306$as_echo "no" >&6; } 3307fi 3308 3309 3310 test -n "$AWK" && break 3311done 3312 3313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3314$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3315set x ${MAKE-make} 3316ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3317if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3318 $as_echo_n "(cached) " >&6 3319else 3320 cat >conftest.make <<\_ACEOF 3321SHELL = /bin/sh 3322all: 3323 @echo '@@@%%%=$(MAKE)=@@@%%%' 3324_ACEOF 3325# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3326case `${MAKE-make} -f conftest.make 2>/dev/null` in 3327 *@@@%%%=?*=@@@%%%*) 3328 eval ac_cv_prog_make_${ac_make}_set=yes;; 3329 *) 3330 eval ac_cv_prog_make_${ac_make}_set=no;; 3331esac 3332rm -f conftest.make 3333fi 3334if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3336$as_echo "yes" >&6; } 3337 SET_MAKE= 3338else 3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3340$as_echo "no" >&6; } 3341 SET_MAKE="MAKE=${MAKE-make}" 3342fi 3343 3344rm -rf .tst 2>/dev/null 3345mkdir .tst 2>/dev/null 3346if test -d .tst; then 3347 am__leading_dot=. 3348else 3349 am__leading_dot=_ 3350fi 3351rmdir .tst 2>/dev/null 3352 3353# Check whether --enable-silent-rules was given. 3354if test "${enable_silent_rules+set}" = set; then : 3355 enableval=$enable_silent_rules; 3356fi 3357 3358case $enable_silent_rules in # ((( 3359 yes) AM_DEFAULT_VERBOSITY=0;; 3360 no) AM_DEFAULT_VERBOSITY=1;; 3361 *) AM_DEFAULT_VERBOSITY=1;; 3362esac 3363am_make=${MAKE-make} 3364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3365$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3366if ${am_cv_make_support_nested_variables+:} false; then : 3367 $as_echo_n "(cached) " >&6 3368else 3369 if $as_echo 'TRUE=$(BAR$(V)) 3370BAR0=false 3371BAR1=true 3372V=1 3373am__doit: 3374 @$(TRUE) 3375.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3376 am_cv_make_support_nested_variables=yes 3377else 3378 am_cv_make_support_nested_variables=no 3379fi 3380fi 3381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3382$as_echo "$am_cv_make_support_nested_variables" >&6; } 3383if test $am_cv_make_support_nested_variables = yes; then 3384 AM_V='$(V)' 3385 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3386else 3387 AM_V=$AM_DEFAULT_VERBOSITY 3388 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3389fi 3390AM_BACKSLASH='\' 3391 3392if test "`cd $srcdir && pwd`" != "`pwd`"; then 3393 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3394 # is not polluted with repeated "-I." 3395 am__isrc=' -I$(srcdir)' 3396 # test to see if srcdir already configured 3397 if test -f $srcdir/config.status; then 3398 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3399 fi 3400fi 3401 3402# test whether we have cygpath 3403if test -z "$CYGPATH_W"; then 3404 if (cygpath --version) >/dev/null 2>/dev/null; then 3405 CYGPATH_W='cygpath -w' 3406 else 3407 CYGPATH_W=echo 3408 fi 3409fi 3410 3411 3412# Define the identity of the package. 3413 PACKAGE='netcdf-fortran' 3414 VERSION='4.5.3' 3415 3416 3417cat >>confdefs.h <<_ACEOF 3418#define PACKAGE "$PACKAGE" 3419_ACEOF 3420 3421 3422cat >>confdefs.h <<_ACEOF 3423#define VERSION "$VERSION" 3424_ACEOF 3425 3426# Some tools Automake needs. 3427 3428ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3429 3430 3431AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3432 3433 3434AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3435 3436 3437AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3438 3439 3440MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3441 3442# For better backward compatibility. To be removed once Automake 1.9.x 3443# dies out for good. For more background, see: 3444# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3445# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3446mkdir_p='$(MKDIR_P)' 3447 3448# We need awk for the "check" target (and possibly the TAP driver). The 3449# system "awk" is bad on some platforms. 3450# Always define AMTAR for backward compatibility. Yes, it's still used 3451# in the wild :-( We should find a proper way to deprecate it ... 3452AMTAR='$${TAR-tar}' 3453 3454 3455# We'll loop over all known methods to create a tar archive until one works. 3456_am_tools='gnutar pax cpio none' 3457 3458am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3459 3460 3461 3462 3463 3464 3465# POSIX will say in a future version that running "rm -f" with no argument 3466# is OK; and we want to be able to make that assumption in our Makefile 3467# recipes. So use an aggressive probe to check that the usage we want is 3468# actually supported "in the wild" to an acceptable degree. 3469# See automake bug#10828. 3470# To make any issue more visible, cause the running configure to be aborted 3471# by default if the 'rm' program in use doesn't match our expectations; the 3472# user can still override this though. 3473if rm -f && rm -fr && rm -rf; then : OK; else 3474 cat >&2 <<'END' 3475Oops! 3476 3477Your 'rm' program seems unable to run without file operands specified 3478on the command line, even when the '-f' option is present. This is contrary 3479to the behaviour of most rm programs out there, and not conforming with 3480the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3481 3482Please tell bug-automake@gnu.org about your system, including the value 3483of your $PATH and any error possibly output before this message. This 3484can help us improve future automake versions. 3485 3486END 3487 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3488 echo 'Configuration will proceed anyway, since you have set the' >&2 3489 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3490 echo >&2 3491 else 3492 cat >&2 <<'END' 3493Aborting the configuration process, to ensure you take notice of the issue. 3494 3495You can download and install GNU coreutils to get an 'rm' implementation 3496that behaves properly: <https://www.gnu.org/software/coreutils/>. 3497 3498If you want to complete the configuration process using your problematic 3499'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3500to "yes", and re-run configure. 3501 3502END 3503 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3504 fi 3505fi 3506 3507 3508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3509$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3510 # Check whether --enable-maintainer-mode was given. 3511if test "${enable_maintainer_mode+set}" = set; then : 3512 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3513else 3514 USE_MAINTAINER_MODE=no 3515fi 3516 3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3518$as_echo "$USE_MAINTAINER_MODE" >&6; } 3519 if test $USE_MAINTAINER_MODE = yes; then 3520 MAINTAINER_MODE_TRUE= 3521 MAINTAINER_MODE_FALSE='#' 3522else 3523 MAINTAINER_MODE_TRUE='#' 3524 MAINTAINER_MODE_FALSE= 3525fi 3526 3527 MAINT=$MAINTAINER_MODE_TRUE 3528 3529 3530 3531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking user options" >&5 3532$as_echo "$as_me: checking user options" >&6;} 3533 3534DEPDIR="${am__leading_dot}deps" 3535 3536ac_config_commands="$ac_config_commands depfiles" 3537 3538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3539$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3540cat > confinc.mk << 'END' 3541am__doit: 3542 @echo this is the am__doit target >confinc.out 3543.PHONY: am__doit 3544END 3545am__include="#" 3546am__quote= 3547# BSD make does it like this. 3548echo '.include "confinc.mk" # ignored' > confmf.BSD 3549# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3550echo 'include confinc.mk # ignored' > confmf.GNU 3551_am_result=no 3552for s in GNU BSD; do 3553 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3554 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3555 ac_status=$? 3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3557 (exit $ac_status); } 3558 case $?:`cat confinc.out 2>/dev/null` in #( 3559 '0:this is the am__doit target') : 3560 case $s in #( 3561 BSD) : 3562 am__include='.include' am__quote='"' ;; #( 3563 *) : 3564 am__include='include' am__quote='' ;; 3565esac ;; #( 3566 *) : 3567 ;; 3568esac 3569 if test "$am__include" != "#"; then 3570 _am_result="yes ($s style)" 3571 break 3572 fi 3573done 3574rm -f confinc.* confmf.* 3575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3576$as_echo "${_am_result}" >&6; } 3577 3578# Check whether --enable-dependency-tracking was given. 3579if test "${enable_dependency_tracking+set}" = set; then : 3580 enableval=$enable_dependency_tracking; 3581fi 3582 3583if test "x$enable_dependency_tracking" != xno; then 3584 am_depcomp="$ac_aux_dir/depcomp" 3585 AMDEPBACKSLASH='\' 3586 am__nodep='_no' 3587fi 3588 if test "x$enable_dependency_tracking" != xno; then 3589 AMDEP_TRUE= 3590 AMDEP_FALSE='#' 3591else 3592 AMDEP_TRUE='#' 3593 AMDEP_FALSE= 3594fi 3595 3596 3597ac_ext=c 3598ac_cpp='$CPP $CPPFLAGS' 3599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3601ac_compiler_gnu=$ac_cv_c_compiler_gnu 3602if test -n "$ac_tool_prefix"; then 3603 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3604set dummy ${ac_tool_prefix}gcc; ac_word=$2 3605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3606$as_echo_n "checking for $ac_word... " >&6; } 3607if ${ac_cv_prog_CC+:} false; then : 3608 $as_echo_n "(cached) " >&6 3609else 3610 if test -n "$CC"; then 3611 ac_cv_prog_CC="$CC" # Let the user override the test. 3612else 3613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3614for as_dir in $PATH 3615do 3616 IFS=$as_save_IFS 3617 test -z "$as_dir" && as_dir=. 3618 for ac_exec_ext in '' $ac_executable_extensions; do 3619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3620 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3622 break 2 3623 fi 3624done 3625 done 3626IFS=$as_save_IFS 3627 3628fi 3629fi 3630CC=$ac_cv_prog_CC 3631if test -n "$CC"; then 3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3633$as_echo "$CC" >&6; } 3634else 3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3636$as_echo "no" >&6; } 3637fi 3638 3639 3640fi 3641if test -z "$ac_cv_prog_CC"; then 3642 ac_ct_CC=$CC 3643 # Extract the first word of "gcc", so it can be a program name with args. 3644set dummy gcc; ac_word=$2 3645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3646$as_echo_n "checking for $ac_word... " >&6; } 3647if ${ac_cv_prog_ac_ct_CC+:} false; then : 3648 $as_echo_n "(cached) " >&6 3649else 3650 if test -n "$ac_ct_CC"; then 3651 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3652else 3653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3654for as_dir in $PATH 3655do 3656 IFS=$as_save_IFS 3657 test -z "$as_dir" && as_dir=. 3658 for ac_exec_ext in '' $ac_executable_extensions; do 3659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3660 ac_cv_prog_ac_ct_CC="gcc" 3661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3662 break 2 3663 fi 3664done 3665 done 3666IFS=$as_save_IFS 3667 3668fi 3669fi 3670ac_ct_CC=$ac_cv_prog_ac_ct_CC 3671if test -n "$ac_ct_CC"; then 3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3673$as_echo "$ac_ct_CC" >&6; } 3674else 3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3676$as_echo "no" >&6; } 3677fi 3678 3679 if test "x$ac_ct_CC" = x; then 3680 CC="" 3681 else 3682 case $cross_compiling:$ac_tool_warned in 3683yes:) 3684{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3685$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3686ac_tool_warned=yes ;; 3687esac 3688 CC=$ac_ct_CC 3689 fi 3690else 3691 CC="$ac_cv_prog_CC" 3692fi 3693 3694if test -z "$CC"; then 3695 if test -n "$ac_tool_prefix"; then 3696 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3697set dummy ${ac_tool_prefix}cc; ac_word=$2 3698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3699$as_echo_n "checking for $ac_word... " >&6; } 3700if ${ac_cv_prog_CC+:} false; then : 3701 $as_echo_n "(cached) " >&6 3702else 3703 if test -n "$CC"; then 3704 ac_cv_prog_CC="$CC" # Let the user override the test. 3705else 3706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3707for as_dir in $PATH 3708do 3709 IFS=$as_save_IFS 3710 test -z "$as_dir" && as_dir=. 3711 for ac_exec_ext in '' $ac_executable_extensions; do 3712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3713 ac_cv_prog_CC="${ac_tool_prefix}cc" 3714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3715 break 2 3716 fi 3717done 3718 done 3719IFS=$as_save_IFS 3720 3721fi 3722fi 3723CC=$ac_cv_prog_CC 3724if test -n "$CC"; then 3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3726$as_echo "$CC" >&6; } 3727else 3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3729$as_echo "no" >&6; } 3730fi 3731 3732 3733 fi 3734fi 3735if test -z "$CC"; then 3736 # Extract the first word of "cc", so it can be a program name with args. 3737set dummy cc; ac_word=$2 3738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3739$as_echo_n "checking for $ac_word... " >&6; } 3740if ${ac_cv_prog_CC+:} false; then : 3741 $as_echo_n "(cached) " >&6 3742else 3743 if test -n "$CC"; then 3744 ac_cv_prog_CC="$CC" # Let the user override the test. 3745else 3746 ac_prog_rejected=no 3747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3748for as_dir in $PATH 3749do 3750 IFS=$as_save_IFS 3751 test -z "$as_dir" && as_dir=. 3752 for ac_exec_ext in '' $ac_executable_extensions; do 3753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3754 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3755 ac_prog_rejected=yes 3756 continue 3757 fi 3758 ac_cv_prog_CC="cc" 3759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3760 break 2 3761 fi 3762done 3763 done 3764IFS=$as_save_IFS 3765 3766if test $ac_prog_rejected = yes; then 3767 # We found a bogon in the path, so make sure we never use it. 3768 set dummy $ac_cv_prog_CC 3769 shift 3770 if test $# != 0; then 3771 # We chose a different compiler from the bogus one. 3772 # However, it has the same basename, so the bogon will be chosen 3773 # first if we set CC to just the basename; use the full file name. 3774 shift 3775 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3776 fi 3777fi 3778fi 3779fi 3780CC=$ac_cv_prog_CC 3781if test -n "$CC"; then 3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3783$as_echo "$CC" >&6; } 3784else 3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3786$as_echo "no" >&6; } 3787fi 3788 3789 3790fi 3791if test -z "$CC"; then 3792 if test -n "$ac_tool_prefix"; then 3793 for ac_prog in cl.exe 3794 do 3795 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3796set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3798$as_echo_n "checking for $ac_word... " >&6; } 3799if ${ac_cv_prog_CC+:} false; then : 3800 $as_echo_n "(cached) " >&6 3801else 3802 if test -n "$CC"; then 3803 ac_cv_prog_CC="$CC" # Let the user override the test. 3804else 3805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3806for as_dir in $PATH 3807do 3808 IFS=$as_save_IFS 3809 test -z "$as_dir" && as_dir=. 3810 for ac_exec_ext in '' $ac_executable_extensions; do 3811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3812 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3814 break 2 3815 fi 3816done 3817 done 3818IFS=$as_save_IFS 3819 3820fi 3821fi 3822CC=$ac_cv_prog_CC 3823if test -n "$CC"; then 3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3825$as_echo "$CC" >&6; } 3826else 3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3828$as_echo "no" >&6; } 3829fi 3830 3831 3832 test -n "$CC" && break 3833 done 3834fi 3835if test -z "$CC"; then 3836 ac_ct_CC=$CC 3837 for ac_prog in cl.exe 3838do 3839 # Extract the first word of "$ac_prog", so it can be a program name with args. 3840set dummy $ac_prog; ac_word=$2 3841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3842$as_echo_n "checking for $ac_word... " >&6; } 3843if ${ac_cv_prog_ac_ct_CC+:} false; then : 3844 $as_echo_n "(cached) " >&6 3845else 3846 if test -n "$ac_ct_CC"; then 3847 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3848else 3849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3850for as_dir in $PATH 3851do 3852 IFS=$as_save_IFS 3853 test -z "$as_dir" && as_dir=. 3854 for ac_exec_ext in '' $ac_executable_extensions; do 3855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3856 ac_cv_prog_ac_ct_CC="$ac_prog" 3857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3858 break 2 3859 fi 3860done 3861 done 3862IFS=$as_save_IFS 3863 3864fi 3865fi 3866ac_ct_CC=$ac_cv_prog_ac_ct_CC 3867if test -n "$ac_ct_CC"; then 3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3869$as_echo "$ac_ct_CC" >&6; } 3870else 3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3872$as_echo "no" >&6; } 3873fi 3874 3875 3876 test -n "$ac_ct_CC" && break 3877done 3878 3879 if test "x$ac_ct_CC" = x; then 3880 CC="" 3881 else 3882 case $cross_compiling:$ac_tool_warned in 3883yes:) 3884{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3885$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3886ac_tool_warned=yes ;; 3887esac 3888 CC=$ac_ct_CC 3889 fi 3890fi 3891 3892fi 3893 3894 3895test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3896$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3897as_fn_error $? "no acceptable C compiler found in \$PATH 3898See \`config.log' for more details" "$LINENO" 5; } 3899 3900# Provide some information about the compiler. 3901$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3902set X $ac_compile 3903ac_compiler=$2 3904for ac_option in --version -v -V -qversion; do 3905 { { ac_try="$ac_compiler $ac_option >&5" 3906case "(($ac_try" in 3907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3908 *) ac_try_echo=$ac_try;; 3909esac 3910eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3911$as_echo "$ac_try_echo"; } >&5 3912 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3913 ac_status=$? 3914 if test -s conftest.err; then 3915 sed '10a\ 3916... rest of stderr output deleted ... 3917 10q' conftest.err >conftest.er1 3918 cat conftest.er1 >&5 3919 fi 3920 rm -f conftest.er1 conftest.err 3921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3922 test $ac_status = 0; } 3923done 3924 3925cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3926/* end confdefs.h. */ 3927 3928int 3929main () 3930{ 3931 3932 ; 3933 return 0; 3934} 3935_ACEOF 3936ac_clean_files_save=$ac_clean_files 3937ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3938# Try to create an executable without -o first, disregard a.out. 3939# It will help us diagnose broken compilers, and finding out an intuition 3940# of exeext. 3941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3942$as_echo_n "checking whether the C compiler works... " >&6; } 3943ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3944 3945# The possible output files: 3946ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3947 3948ac_rmfiles= 3949for ac_file in $ac_files 3950do 3951 case $ac_file in 3952 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3953 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3954 esac 3955done 3956rm -f $ac_rmfiles 3957 3958if { { ac_try="$ac_link_default" 3959case "(($ac_try" in 3960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3961 *) ac_try_echo=$ac_try;; 3962esac 3963eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3964$as_echo "$ac_try_echo"; } >&5 3965 (eval "$ac_link_default") 2>&5 3966 ac_status=$? 3967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3968 test $ac_status = 0; }; then : 3969 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3970# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3971# in a Makefile. We should not override ac_cv_exeext if it was cached, 3972# so that the user can short-circuit this test for compilers unknown to 3973# Autoconf. 3974for ac_file in $ac_files '' 3975do 3976 test -f "$ac_file" || continue 3977 case $ac_file in 3978 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3979 ;; 3980 [ab].out ) 3981 # We found the default executable, but exeext='' is most 3982 # certainly right. 3983 break;; 3984 *.* ) 3985 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3986 then :; else 3987 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3988 fi 3989 # We set ac_cv_exeext here because the later test for it is not 3990 # safe: cross compilers may not add the suffix if given an `-o' 3991 # argument, so we may need to know it at that point already. 3992 # Even if this section looks crufty: it has the advantage of 3993 # actually working. 3994 break;; 3995 * ) 3996 break;; 3997 esac 3998done 3999test "$ac_cv_exeext" = no && ac_cv_exeext= 4000 4001else 4002 ac_file='' 4003fi 4004if test -z "$ac_file"; then : 4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4006$as_echo "no" >&6; } 4007$as_echo "$as_me: failed program was:" >&5 4008sed 's/^/| /' conftest.$ac_ext >&5 4009 4010{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4011$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4012as_fn_error 77 "C compiler cannot create executables 4013See \`config.log' for more details" "$LINENO" 5; } 4014else 4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4016$as_echo "yes" >&6; } 4017fi 4018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4019$as_echo_n "checking for C compiler default output file name... " >&6; } 4020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4021$as_echo "$ac_file" >&6; } 4022ac_exeext=$ac_cv_exeext 4023 4024rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4025ac_clean_files=$ac_clean_files_save 4026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4027$as_echo_n "checking for suffix of executables... " >&6; } 4028if { { ac_try="$ac_link" 4029case "(($ac_try" in 4030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4031 *) ac_try_echo=$ac_try;; 4032esac 4033eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4034$as_echo "$ac_try_echo"; } >&5 4035 (eval "$ac_link") 2>&5 4036 ac_status=$? 4037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4038 test $ac_status = 0; }; then : 4039 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4040# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4041# work properly (i.e., refer to `conftest.exe'), while it won't with 4042# `rm'. 4043for ac_file in conftest.exe conftest conftest.*; do 4044 test -f "$ac_file" || continue 4045 case $ac_file in 4046 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4047 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4048 break;; 4049 * ) break;; 4050 esac 4051done 4052else 4053 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4054$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4055as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4056See \`config.log' for more details" "$LINENO" 5; } 4057fi 4058rm -f conftest conftest$ac_cv_exeext 4059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4060$as_echo "$ac_cv_exeext" >&6; } 4061 4062rm -f conftest.$ac_ext 4063EXEEXT=$ac_cv_exeext 4064ac_exeext=$EXEEXT 4065cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4066/* end confdefs.h. */ 4067#include <stdio.h> 4068int 4069main () 4070{ 4071FILE *f = fopen ("conftest.out", "w"); 4072 return ferror (f) || fclose (f) != 0; 4073 4074 ; 4075 return 0; 4076} 4077_ACEOF 4078ac_clean_files="$ac_clean_files conftest.out" 4079# Check that the compiler produces executables we can run. If not, either 4080# the compiler is broken, or we cross compile. 4081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4082$as_echo_n "checking whether we are cross compiling... " >&6; } 4083if test "$cross_compiling" != yes; then 4084 { { ac_try="$ac_link" 4085case "(($ac_try" in 4086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4087 *) ac_try_echo=$ac_try;; 4088esac 4089eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4090$as_echo "$ac_try_echo"; } >&5 4091 (eval "$ac_link") 2>&5 4092 ac_status=$? 4093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4094 test $ac_status = 0; } 4095 if { ac_try='./conftest$ac_cv_exeext' 4096 { { case "(($ac_try" in 4097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4098 *) ac_try_echo=$ac_try;; 4099esac 4100eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4101$as_echo "$ac_try_echo"; } >&5 4102 (eval "$ac_try") 2>&5 4103 ac_status=$? 4104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4105 test $ac_status = 0; }; }; then 4106 cross_compiling=no 4107 else 4108 if test "$cross_compiling" = maybe; then 4109 cross_compiling=yes 4110 else 4111 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4112$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4113as_fn_error $? "cannot run C compiled programs. 4114If you meant to cross compile, use \`--host'. 4115See \`config.log' for more details" "$LINENO" 5; } 4116 fi 4117 fi 4118fi 4119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4120$as_echo "$cross_compiling" >&6; } 4121 4122rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4123ac_clean_files=$ac_clean_files_save 4124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4125$as_echo_n "checking for suffix of object files... " >&6; } 4126if ${ac_cv_objext+:} false; then : 4127 $as_echo_n "(cached) " >&6 4128else 4129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4130/* end confdefs.h. */ 4131 4132int 4133main () 4134{ 4135 4136 ; 4137 return 0; 4138} 4139_ACEOF 4140rm -f conftest.o conftest.obj 4141if { { ac_try="$ac_compile" 4142case "(($ac_try" in 4143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4144 *) ac_try_echo=$ac_try;; 4145esac 4146eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4147$as_echo "$ac_try_echo"; } >&5 4148 (eval "$ac_compile") 2>&5 4149 ac_status=$? 4150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4151 test $ac_status = 0; }; then : 4152 for ac_file in conftest.o conftest.obj conftest.*; do 4153 test -f "$ac_file" || continue; 4154 case $ac_file in 4155 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4156 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4157 break;; 4158 esac 4159done 4160else 4161 $as_echo "$as_me: failed program was:" >&5 4162sed 's/^/| /' conftest.$ac_ext >&5 4163 4164{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4165$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4166as_fn_error $? "cannot compute suffix of object files: cannot compile 4167See \`config.log' for more details" "$LINENO" 5; } 4168fi 4169rm -f conftest.$ac_cv_objext conftest.$ac_ext 4170fi 4171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4172$as_echo "$ac_cv_objext" >&6; } 4173OBJEXT=$ac_cv_objext 4174ac_objext=$OBJEXT 4175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4176$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4177if ${ac_cv_c_compiler_gnu+:} false; then : 4178 $as_echo_n "(cached) " >&6 4179else 4180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4181/* end confdefs.h. */ 4182 4183int 4184main () 4185{ 4186#ifndef __GNUC__ 4187 choke me 4188#endif 4189 4190 ; 4191 return 0; 4192} 4193_ACEOF 4194if ac_fn_c_try_compile "$LINENO"; then : 4195 ac_compiler_gnu=yes 4196else 4197 ac_compiler_gnu=no 4198fi 4199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4200ac_cv_c_compiler_gnu=$ac_compiler_gnu 4201 4202fi 4203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4204$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4205if test $ac_compiler_gnu = yes; then 4206 GCC=yes 4207else 4208 GCC= 4209fi 4210ac_test_CFLAGS=${CFLAGS+set} 4211ac_save_CFLAGS=$CFLAGS 4212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4213$as_echo_n "checking whether $CC accepts -g... " >&6; } 4214if ${ac_cv_prog_cc_g+:} false; then : 4215 $as_echo_n "(cached) " >&6 4216else 4217 ac_save_c_werror_flag=$ac_c_werror_flag 4218 ac_c_werror_flag=yes 4219 ac_cv_prog_cc_g=no 4220 CFLAGS="-g" 4221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4222/* end confdefs.h. */ 4223 4224int 4225main () 4226{ 4227 4228 ; 4229 return 0; 4230} 4231_ACEOF 4232if ac_fn_c_try_compile "$LINENO"; then : 4233 ac_cv_prog_cc_g=yes 4234else 4235 CFLAGS="" 4236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4237/* end confdefs.h. */ 4238 4239int 4240main () 4241{ 4242 4243 ; 4244 return 0; 4245} 4246_ACEOF 4247if ac_fn_c_try_compile "$LINENO"; then : 4248 4249else 4250 ac_c_werror_flag=$ac_save_c_werror_flag 4251 CFLAGS="-g" 4252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4253/* end confdefs.h. */ 4254 4255int 4256main () 4257{ 4258 4259 ; 4260 return 0; 4261} 4262_ACEOF 4263if ac_fn_c_try_compile "$LINENO"; then : 4264 ac_cv_prog_cc_g=yes 4265fi 4266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4267fi 4268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4269fi 4270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4271 ac_c_werror_flag=$ac_save_c_werror_flag 4272fi 4273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4274$as_echo "$ac_cv_prog_cc_g" >&6; } 4275if test "$ac_test_CFLAGS" = set; then 4276 CFLAGS=$ac_save_CFLAGS 4277elif test $ac_cv_prog_cc_g = yes; then 4278 if test "$GCC" = yes; then 4279 CFLAGS="-g -O2" 4280 else 4281 CFLAGS="-g" 4282 fi 4283else 4284 if test "$GCC" = yes; then 4285 CFLAGS="-O2" 4286 else 4287 CFLAGS= 4288 fi 4289fi 4290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4291$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4292if ${ac_cv_prog_cc_c89+:} false; then : 4293 $as_echo_n "(cached) " >&6 4294else 4295 ac_cv_prog_cc_c89=no 4296ac_save_CC=$CC 4297cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4298/* end confdefs.h. */ 4299#include <stdarg.h> 4300#include <stdio.h> 4301struct stat; 4302/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4303struct buf { int x; }; 4304FILE * (*rcsopen) (struct buf *, struct stat *, int); 4305static char *e (p, i) 4306 char **p; 4307 int i; 4308{ 4309 return p[i]; 4310} 4311static char *f (char * (*g) (char **, int), char **p, ...) 4312{ 4313 char *s; 4314 va_list v; 4315 va_start (v,p); 4316 s = g (p, va_arg (v,int)); 4317 va_end (v); 4318 return s; 4319} 4320 4321/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4322 function prototypes and stuff, but not '\xHH' hex character constants. 4323 These don't provoke an error unfortunately, instead are silently treated 4324 as 'x'. The following induces an error, until -std is added to get 4325 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4326 array size at least. It's necessary to write '\x00'==0 to get something 4327 that's true only with -std. */ 4328int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4329 4330/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4331 inside strings and character constants. */ 4332#define FOO(x) 'x' 4333int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4334 4335int test (int i, double x); 4336struct s1 {int (*f) (int a);}; 4337struct s2 {int (*f) (double a);}; 4338int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4339int argc; 4340char **argv; 4341int 4342main () 4343{ 4344return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4345 ; 4346 return 0; 4347} 4348_ACEOF 4349for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4350 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4351do 4352 CC="$ac_save_CC $ac_arg" 4353 if ac_fn_c_try_compile "$LINENO"; then : 4354 ac_cv_prog_cc_c89=$ac_arg 4355fi 4356rm -f core conftest.err conftest.$ac_objext 4357 test "x$ac_cv_prog_cc_c89" != "xno" && break 4358done 4359rm -f conftest.$ac_ext 4360CC=$ac_save_CC 4361 4362fi 4363# AC_CACHE_VAL 4364case "x$ac_cv_prog_cc_c89" in 4365 x) 4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4367$as_echo "none needed" >&6; } ;; 4368 xno) 4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4370$as_echo "unsupported" >&6; } ;; 4371 *) 4372 CC="$CC $ac_cv_prog_cc_c89" 4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4374$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4375esac 4376if test "x$ac_cv_prog_cc_c89" != xno; then : 4377 4378fi 4379 4380ac_ext=c 4381ac_cpp='$CPP $CPPFLAGS' 4382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4384ac_compiler_gnu=$ac_cv_c_compiler_gnu 4385 4386ac_ext=c 4387ac_cpp='$CPP $CPPFLAGS' 4388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4390ac_compiler_gnu=$ac_cv_c_compiler_gnu 4391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4392$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4393if ${am_cv_prog_cc_c_o+:} false; then : 4394 $as_echo_n "(cached) " >&6 4395else 4396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4397/* end confdefs.h. */ 4398 4399int 4400main () 4401{ 4402 4403 ; 4404 return 0; 4405} 4406_ACEOF 4407 # Make sure it works both with $CC and with simple cc. 4408 # Following AC_PROG_CC_C_O, we do the test twice because some 4409 # compilers refuse to overwrite an existing .o file with -o, 4410 # though they will create one. 4411 am_cv_prog_cc_c_o=yes 4412 for am_i in 1 2; do 4413 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4414 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4415 ac_status=$? 4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4417 (exit $ac_status); } \ 4418 && test -f conftest2.$ac_objext; then 4419 : OK 4420 else 4421 am_cv_prog_cc_c_o=no 4422 break 4423 fi 4424 done 4425 rm -f core conftest* 4426 unset am_i 4427fi 4428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4429$as_echo "$am_cv_prog_cc_c_o" >&6; } 4430if test "$am_cv_prog_cc_c_o" != yes; then 4431 # Losing compiler, so override with the script. 4432 # FIXME: It is wrong to rewrite CC. 4433 # But if we don't then we get into trouble of one sort or another. 4434 # A longer-term fix would be to have automake use am__CC in this case, 4435 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4436 CC="$am_aux_dir/compile $CC" 4437fi 4438ac_ext=c 4439ac_cpp='$CPP $CPPFLAGS' 4440ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4441ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4442ac_compiler_gnu=$ac_cv_c_compiler_gnu 4443 4444 4445depcc="$CC" am_compiler_list= 4446 4447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4448$as_echo_n "checking dependency style of $depcc... " >&6; } 4449if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4450 $as_echo_n "(cached) " >&6 4451else 4452 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4453 # We make a subdir and do the tests there. Otherwise we can end up 4454 # making bogus files that we don't know about and never remove. For 4455 # instance it was reported that on HP-UX the gcc test will end up 4456 # making a dummy file named 'D' -- because '-MD' means "put the output 4457 # in D". 4458 rm -rf conftest.dir 4459 mkdir conftest.dir 4460 # Copy depcomp to subdir because otherwise we won't find it if we're 4461 # using a relative directory. 4462 cp "$am_depcomp" conftest.dir 4463 cd conftest.dir 4464 # We will build objects and dependencies in a subdirectory because 4465 # it helps to detect inapplicable dependency modes. For instance 4466 # both Tru64's cc and ICC support -MD to output dependencies as a 4467 # side effect of compilation, but ICC will put the dependencies in 4468 # the current directory while Tru64 will put them in the object 4469 # directory. 4470 mkdir sub 4471 4472 am_cv_CC_dependencies_compiler_type=none 4473 if test "$am_compiler_list" = ""; then 4474 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4475 fi 4476 am__universal=false 4477 case " $depcc " in #( 4478 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4479 esac 4480 4481 for depmode in $am_compiler_list; do 4482 # Setup a source with many dependencies, because some compilers 4483 # like to wrap large dependency lists on column 80 (with \), and 4484 # we should not choose a depcomp mode which is confused by this. 4485 # 4486 # We need to recreate these files for each test, as the compiler may 4487 # overwrite some of them when testing with obscure command lines. 4488 # This happens at least with the AIX C compiler. 4489 : > sub/conftest.c 4490 for i in 1 2 3 4 5 6; do 4491 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4492 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4493 # Solaris 10 /bin/sh. 4494 echo '/* dummy */' > sub/conftst$i.h 4495 done 4496 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4497 4498 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4499 # mode. It turns out that the SunPro C++ compiler does not properly 4500 # handle '-M -o', and we need to detect this. Also, some Intel 4501 # versions had trouble with output in subdirs. 4502 am__obj=sub/conftest.${OBJEXT-o} 4503 am__minus_obj="-o $am__obj" 4504 case $depmode in 4505 gcc) 4506 # This depmode causes a compiler race in universal mode. 4507 test "$am__universal" = false || continue 4508 ;; 4509 nosideeffect) 4510 # After this tag, mechanisms are not by side-effect, so they'll 4511 # only be used when explicitly requested. 4512 if test "x$enable_dependency_tracking" = xyes; then 4513 continue 4514 else 4515 break 4516 fi 4517 ;; 4518 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4519 # This compiler won't grok '-c -o', but also, the minuso test has 4520 # not run yet. These depmodes are late enough in the game, and 4521 # so weak that their functioning should not be impacted. 4522 am__obj=conftest.${OBJEXT-o} 4523 am__minus_obj= 4524 ;; 4525 none) break ;; 4526 esac 4527 if depmode=$depmode \ 4528 source=sub/conftest.c object=$am__obj \ 4529 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4530 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4531 >/dev/null 2>conftest.err && 4532 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4533 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4534 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4535 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4536 # icc doesn't choke on unknown options, it will just issue warnings 4537 # or remarks (even with -Werror). So we grep stderr for any message 4538 # that says an option was ignored or not supported. 4539 # When given -MP, icc 7.0 and 7.1 complain thusly: 4540 # icc: Command line warning: ignoring option '-M'; no argument required 4541 # The diagnosis changed in icc 8.0: 4542 # icc: Command line remark: option '-MP' not supported 4543 if (grep 'ignoring option' conftest.err || 4544 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4545 am_cv_CC_dependencies_compiler_type=$depmode 4546 break 4547 fi 4548 fi 4549 done 4550 4551 cd .. 4552 rm -rf conftest.dir 4553else 4554 am_cv_CC_dependencies_compiler_type=none 4555fi 4556 4557fi 4558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4559$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4560CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4561 4562 if 4563 test "x$enable_dependency_tracking" != xno \ 4564 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4565 am__fastdepCC_TRUE= 4566 am__fastdepCC_FALSE='#' 4567else 4568 am__fastdepCC_TRUE='#' 4569 am__fastdepCC_FALSE= 4570fi 4571 4572 4573 4574cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4575/* end confdefs.h. */ 4576 4577int 4578main () 4579{ 4580 4581#include <netcdf_meta.h> 4582#if !defined(NC_RELAX_COORD_BOUND) || NC_RELAX_COORD_BOUND == 0 4583 choke me 4584#endif 4585 ; 4586 return 0; 4587} 4588_ACEOF 4589if ac_fn_c_try_compile "$LINENO"; then : 4590 nc_relax_coord_bound=yes 4591else 4592 nc_relax_coord_bound=no 4593fi 4594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4595if test "x$nc_relax_coord_bound" = xyes; then 4596 4597$as_echo "#define NF_RELAX_COORD_BOUND 1" >>confdefs.h 4598 4599fi 4600 4601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if netCDF was built with CDF5" >&5 4602$as_echo_n "checking if netCDF was built with CDF5... " >&6; } 4603cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4604/* end confdefs.h. */ 4605 4606int 4607main () 4608{ 4609 4610#include <netcdf_meta.h> 4611#if !defined(NC_HAS_CDF5) || NC_HAS_CDF5 == 0 4612 choke me 4613#endif 4614 ; 4615 return 0; 4616} 4617_ACEOF 4618if ac_fn_c_try_compile "$LINENO"; then : 4619 nc_has_cdf5=yes 4620else 4621 nc_has_cdf5=no 4622fi 4623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4624if test "x$nc_has_cdf5" = xyes; then 4625 4626$as_echo "#define ENABLE_CDF5 1" >>confdefs.h 4627 4628fi 4629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $nc_has_cdf5" >&5 4630$as_echo "$nc_has_cdf5" >&6; } 4631 4632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if netCDF was built with pnetcdf" >&5 4633$as_echo_n "checking if netCDF was built with pnetcdf... " >&6; } 4634cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4635/* end confdefs.h. */ 4636 4637int 4638main () 4639{ 4640 4641#include <netcdf_meta.h> 4642#if !defined(NC_HAS_PNETCDF) || NC_HAS_PNETCDF == 0 4643 choke me 4644#endif 4645 ; 4646 return 0; 4647} 4648_ACEOF 4649if ac_fn_c_try_compile "$LINENO"; then : 4650 nc_has_pnetcdf=yes 4651else 4652 nc_has_pnetcdf=no 4653fi 4654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4655if test "x$nc_has_pnetcdf" = xyes; then 4656 4657$as_echo "#define NF_HAS_PNETCDF 1" >>confdefs.h 4658 4659fi 4660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $nc_has_pnetcdf" >&5 4661$as_echo "$nc_has_pnetcdf" >&6; } 4662 4663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if netCDF was built with HDF5 parallel I/O features" >&5 4664$as_echo_n "checking if netCDF was built with HDF5 parallel I/O features... " >&6; } 4665cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4666/* end confdefs.h. */ 4667 4668int 4669main () 4670{ 4671 4672#include <netcdf_meta.h> 4673#if !defined(NC_HAS_PARALLEL4) || NC_HAS_PARALLEL4 == 0 4674 choke me 4675#endif 4676 ; 4677 return 0; 4678} 4679_ACEOF 4680if ac_fn_c_try_compile "$LINENO"; then : 4681 nc_has_parallel4=yes 4682else 4683 nc_has_parallel4=no 4684fi 4685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $nc_has_parallel4" >&5 4687$as_echo "$nc_has_parallel4" >&6; } 4688 4689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if netCDF was built with any parallel I/O features" >&5 4690$as_echo_n "checking if netCDF was built with any parallel I/O features... " >&6; } 4691cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4692/* end confdefs.h. */ 4693 4694int 4695main () 4696{ 4697 4698#include <netcdf_meta.h> 4699#if !defined(NC_HAS_PARALLEL) || NC_HAS_PARALLEL == 0 4700 choke me 4701#endif 4702 ; 4703 return 0; 4704} 4705_ACEOF 4706if ac_fn_c_try_compile "$LINENO"; then : 4707 nc_has_parallel=yes 4708else 4709 nc_has_parallel=no 4710fi 4711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $nc_has_parallel" >&5 4713$as_echo "$nc_has_parallel" >&6; } 4714 4715# Version 4.6.1 does not have NC_HAS_PARALLEL4 but does have 4716# NC_HAS_PARALLEL. 4717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if netCDF-fortran should be built with HDF5 parallel I/O features" >&5 4718$as_echo_n "checking if netCDF-fortran should be built with HDF5 parallel I/O features... " >&6; } 4719if test "x$nc_has_parallel" = xyes -a "x$nc_has_parallel4" = xno -a "x$nc_has_pnetcdf" = xno; then 4720 nc_has_parallel4=yes 4721fi 4722if test "x$nc_has_parallel4" = xyes; then 4723 4724$as_echo "#define NF_HAS_PARALLEL4 1" >>confdefs.h 4725 4726fi 4727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $nc_has_parallel4" >&5 4728$as_echo "$nc_has_parallel4" >&6; } 4729 4730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if netCDF was built with support for szip writes" >&5 4731$as_echo_n "checking if netCDF was built with support for szip writes... " >&6; } 4732cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4733/* end confdefs.h. */ 4734 4735int 4736main () 4737{ 4738 4739#include <netcdf_meta.h> 4740#if !(NC_HAS_SZIP_WRITE) 4741 choke me 4742#endif 4743 ; 4744 return 0; 4745} 4746_ACEOF 4747if ac_fn_c_try_compile "$LINENO"; then : 4748 nc_has_szip_write=yes 4749else 4750 nc_has_szip_write=no 4751fi 4752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $nc_has_szip_write" >&5 4754$as_echo "$nc_has_szip_write" >&6; } 4755 if test "x$nc_has_szip_write" = xyes; then 4756 TEST_SZIP_WRITE_TRUE= 4757 TEST_SZIP_WRITE_FALSE='#' 4758else 4759 TEST_SZIP_WRITE_TRUE='#' 4760 TEST_SZIP_WRITE_FALSE= 4761fi 4762 4763 4764# Find valgrind, if available, and add targets for it (ex: 4765# check-valgrind). 4766 4767 4768 4769 4770 # Check whether --enable-valgrind was given. 4771if test "${enable_valgrind+set}" = set; then : 4772 enableval=$enable_valgrind; enable_valgrind=$enableval 4773else 4774 enable_valgrind= 4775fi 4776 4777 4778 if test "$enable_valgrind" != "no"; then : 4779 4780 # Check for Valgrind. 4781 # Extract the first word of "valgrind", so it can be a program name with args. 4782set dummy valgrind; ac_word=$2 4783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4784$as_echo_n "checking for $ac_word... " >&6; } 4785if ${ac_cv_prog_VALGRIND+:} false; then : 4786 $as_echo_n "(cached) " >&6 4787else 4788 if test -n "$VALGRIND"; then 4789 ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test. 4790else 4791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4792for as_dir in $PATH 4793do 4794 IFS=$as_save_IFS 4795 test -z "$as_dir" && as_dir=. 4796 for ac_exec_ext in '' $ac_executable_extensions; do 4797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4798 ac_cv_prog_VALGRIND="valgrind" 4799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4800 break 2 4801 fi 4802done 4803 done 4804IFS=$as_save_IFS 4805 4806fi 4807fi 4808VALGRIND=$ac_cv_prog_VALGRIND 4809if test -n "$VALGRIND"; then 4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5 4811$as_echo "$VALGRIND" >&6; } 4812else 4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4814$as_echo "no" >&6; } 4815fi 4816 4817 4818 if test "$VALGRIND" = ""; then : 4819 4820 if test "$enable_valgrind" = "yes"; then : 4821 4822 as_fn_error $? "Could not find valgrind; either install it or reconfigure with --disable-valgrind" "$LINENO" 5 4823 4824else 4825 4826 enable_valgrind=no 4827 4828fi 4829 4830else 4831 4832 enable_valgrind=yes 4833 4834fi 4835 4836fi 4837 4838 if test "$enable_valgrind" = "yes"; then 4839 VALGRIND_ENABLED_TRUE= 4840 VALGRIND_ENABLED_FALSE='#' 4841else 4842 VALGRIND_ENABLED_TRUE='#' 4843 VALGRIND_ENABLED_FALSE= 4844fi 4845 4846 VALGRIND_ENABLED=$enable_valgrind 4847 4848 4849 # Check for Valgrind tools we care about. 4850 valgrind_enabled_tools= 4851 4852 # Check whether --enable-valgrind-memcheck was given. 4853if test "${enable_valgrind_memcheck+set}" = set; then : 4854 enableval=$enable_valgrind_memcheck; enable_valgrind_memcheck=$enableval 4855else 4856 enable_valgrind_memcheck= 4857fi 4858 4859 if test "$enable_valgrind" = "no"; then : 4860 4861 enable_valgrind_memcheck=no 4862elif test "$enable_valgrind_memcheck" != "no"; then : 4863 4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Valgrind tool memcheck" >&5 4865$as_echo_n "checking for Valgrind tool memcheck... " >&6; } 4866if ${ax_cv_valgrind_tool_memcheck+:} false; then : 4867 $as_echo_n "(cached) " >&6 4868else 4869 4870 ax_cv_valgrind_tool_memcheck=no 4871 4872 if `$VALGRIND --tool=memcheck --help >/dev/null 2>&1`; then : 4873 4874 ax_cv_valgrind_tool_memcheck=yes 4875 4876fi 4877 4878fi 4879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_valgrind_tool_memcheck" >&5 4880$as_echo "$ax_cv_valgrind_tool_memcheck" >&6; } 4881 if test "$ax_cv_valgrind_tool_memcheck" = "no"; then : 4882 4883 if test "$enable_valgrind_memcheck" = "yes"; then : 4884 4885 as_fn_error $? "Valgrind does not support memcheck; reconfigure with --disable-valgrind-memcheck" "$LINENO" 5 4886 4887else 4888 4889 enable_valgrind_memcheck=no 4890 4891fi 4892 4893else 4894 4895 enable_valgrind_memcheck=yes 4896 4897fi 4898 4899fi 4900 if test "$enable_valgrind_memcheck" = "yes"; then : 4901 4902 valgrind_enabled_tools="$valgrind_enabled_tools memcheck" 4903 4904fi 4905 ENABLE_VALGRIND_memcheck=$enable_valgrind_memcheck 4906 4907 4908 # Check whether --enable-valgrind-helgrind was given. 4909if test "${enable_valgrind_helgrind+set}" = set; then : 4910 enableval=$enable_valgrind_helgrind; enable_valgrind_helgrind=$enableval 4911else 4912 enable_valgrind_helgrind= 4913fi 4914 4915 if test "$enable_valgrind" = "no"; then : 4916 4917 enable_valgrind_helgrind=no 4918elif test "$enable_valgrind_helgrind" != "no"; then : 4919 4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Valgrind tool helgrind" >&5 4921$as_echo_n "checking for Valgrind tool helgrind... " >&6; } 4922if ${ax_cv_valgrind_tool_helgrind+:} false; then : 4923 $as_echo_n "(cached) " >&6 4924else 4925 4926 ax_cv_valgrind_tool_helgrind=no 4927 4928 if `$VALGRIND --tool=helgrind --help >/dev/null 2>&1`; then : 4929 4930 ax_cv_valgrind_tool_helgrind=yes 4931 4932fi 4933 4934fi 4935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_valgrind_tool_helgrind" >&5 4936$as_echo "$ax_cv_valgrind_tool_helgrind" >&6; } 4937 if test "$ax_cv_valgrind_tool_helgrind" = "no"; then : 4938 4939 if test "$enable_valgrind_helgrind" = "yes"; then : 4940 4941 as_fn_error $? "Valgrind does not support helgrind; reconfigure with --disable-valgrind-helgrind" "$LINENO" 5 4942 4943else 4944 4945 enable_valgrind_helgrind=no 4946 4947fi 4948 4949else 4950 4951 enable_valgrind_helgrind=yes 4952 4953fi 4954 4955fi 4956 if test "$enable_valgrind_helgrind" = "yes"; then : 4957 4958 valgrind_enabled_tools="$valgrind_enabled_tools helgrind" 4959 4960fi 4961 ENABLE_VALGRIND_helgrind=$enable_valgrind_helgrind 4962 4963 4964 # Check whether --enable-valgrind-drd was given. 4965if test "${enable_valgrind_drd+set}" = set; then : 4966 enableval=$enable_valgrind_drd; enable_valgrind_drd=$enableval 4967else 4968 enable_valgrind_drd= 4969fi 4970 4971 if test "$enable_valgrind" = "no"; then : 4972 4973 enable_valgrind_drd=no 4974elif test "$enable_valgrind_drd" != "no"; then : 4975 4976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Valgrind tool drd" >&5 4977$as_echo_n "checking for Valgrind tool drd... " >&6; } 4978if ${ax_cv_valgrind_tool_drd+:} false; then : 4979 $as_echo_n "(cached) " >&6 4980else 4981 4982 ax_cv_valgrind_tool_drd=no 4983 4984 if `$VALGRIND --tool=drd --help >/dev/null 2>&1`; then : 4985 4986 ax_cv_valgrind_tool_drd=yes 4987 4988fi 4989 4990fi 4991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_valgrind_tool_drd" >&5 4992$as_echo "$ax_cv_valgrind_tool_drd" >&6; } 4993 if test "$ax_cv_valgrind_tool_drd" = "no"; then : 4994 4995 if test "$enable_valgrind_drd" = "yes"; then : 4996 4997 as_fn_error $? "Valgrind does not support drd; reconfigure with --disable-valgrind-drd" "$LINENO" 5 4998 4999else 5000 5001 enable_valgrind_drd=no 5002 5003fi 5004 5005else 5006 5007 enable_valgrind_drd=yes 5008 5009fi 5010 5011fi 5012 if test "$enable_valgrind_drd" = "yes"; then : 5013 5014 valgrind_enabled_tools="$valgrind_enabled_tools drd" 5015 5016fi 5017 ENABLE_VALGRIND_drd=$enable_valgrind_drd 5018 5019 5020 # Check whether --enable-valgrind-sgcheck was given. 5021if test "${enable_valgrind_sgcheck+set}" = set; then : 5022 enableval=$enable_valgrind_sgcheck; enable_valgrind_sgcheck=$enableval 5023else 5024 enable_valgrind_sgcheck= 5025fi 5026 5027 if test "$enable_valgrind" = "no"; then : 5028 5029 enable_valgrind_sgcheck=no 5030elif test "$enable_valgrind_sgcheck" = "yes"; then : 5031 5032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Valgrind tool sgcheck" >&5 5033$as_echo_n "checking for Valgrind tool sgcheck... " >&6; } 5034if ${ax_cv_valgrind_tool_sgcheck+:} false; then : 5035 $as_echo_n "(cached) " >&6 5036else 5037 5038 ax_cv_valgrind_tool_sgcheck=no 5039 5040 if `$VALGRIND --tool=exp-sgcheck --help >/dev/null 2>&1`; then : 5041 5042 ax_cv_valgrind_tool_sgcheck=yes 5043 5044fi 5045 5046fi 5047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_valgrind_tool_sgcheck" >&5 5048$as_echo "$ax_cv_valgrind_tool_sgcheck" >&6; } 5049 if test "$ax_cv_valgrind_tool_sgcheck" = "no"; then : 5050 5051 if test "$enable_valgrind_sgcheck" = "yes"; then : 5052 5053 as_fn_error $? "Valgrind does not support sgcheck; reconfigure with --disable-valgrind-sgcheck" "$LINENO" 5 5054 5055else 5056 5057 enable_valgrind_sgcheck=no 5058 5059fi 5060 5061else 5062 5063 enable_valgrind_sgcheck=yes 5064 5065fi 5066 5067fi 5068 if test "$enable_valgrind_sgcheck" = "yes"; then : 5069 5070 valgrind_enabled_tools="$valgrind_enabled_tools sgcheck" 5071 5072fi 5073 ENABLE_VALGRIND_sgcheck=$enable_valgrind_sgcheck 5074 5075 5076 valgrind_tools="memcheck helgrind drd sgcheck" 5077 5078 valgrind_enabled_tools=$valgrind_enabled_tools 5079 5080 5081VALGRIND_CHECK_RULES=' 5082# Valgrind check 5083# 5084# Optional: 5085# - VALGRIND_SUPPRESSIONS_FILES: Space-separated list of Valgrind suppressions 5086# files to load. (Default: empty) 5087# - VALGRIND_FLAGS: General flags to pass to all Valgrind tools. 5088# (Default: --num-callers=30) 5089# - VALGRIND_$toolname_FLAGS: Flags to pass to Valgrind $toolname (one of: 5090# memcheck, helgrind, drd, sgcheck). (Default: various) 5091 5092# Optional variables 5093VALGRIND_SUPPRESSIONS ?= $(addprefix --suppressions=,$(VALGRIND_SUPPRESSIONS_FILES)) 5094VALGRIND_FLAGS ?= --num-callers=30 5095VALGRIND_memcheck_FLAGS ?= --leak-check=full --show-reachable=no 5096VALGRIND_helgrind_FLAGS ?= --history-level=approx 5097VALGRIND_drd_FLAGS ?= 5098VALGRIND_sgcheck_FLAGS ?= 5099 5100# Internal use 5101valgrind_log_files = $(addprefix test-suite-,$(addsuffix .log,$(valgrind_tools))) 5102 5103valgrind_memcheck_flags = --tool=memcheck $(VALGRIND_memcheck_FLAGS) 5104valgrind_helgrind_flags = --tool=helgrind $(VALGRIND_helgrind_FLAGS) 5105valgrind_drd_flags = --tool=drd $(VALGRIND_drd_FLAGS) 5106valgrind_sgcheck_flags = --tool=exp-sgcheck $(VALGRIND_sgcheck_FLAGS) 5107 5108valgrind_quiet = $(valgrind_quiet_$(V)) 5109valgrind_quiet_ = $(valgrind_quiet_$(AM_DEFAULT_VERBOSITY)) 5110valgrind_quiet_0 = --quiet 5111valgrind_v_use = $(valgrind_v_use_$(V)) 5112valgrind_v_use_ = $(valgrind_v_use_$(AM_DEFAULT_VERBOSITY)) 5113valgrind_v_use_0 = @echo " USE " $(patsubst check-valgrind-%-am,%,$''@):; 5114 5115# Support running with and without libtool. 5116ifneq ($(LIBTOOL),) 5117valgrind_lt = $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=execute 5118else 5119valgrind_lt = 5120endif 5121 5122# Use recursive makes in order to ignore errors during check 5123check-valgrind-am: 5124ifeq ($(VALGRIND_ENABLED),yes) 5125 $(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) -k \ 5126 $(foreach tool, $(valgrind_enabled_tools), check-valgrind-$(tool)) 5127else 5128 @echo "Need to reconfigure with --enable-valgrind" 5129endif 5130 5131# Valgrind running 5132VALGRIND_TESTS_ENVIRONMENT = \ 5133 $(TESTS_ENVIRONMENT) \ 5134 env VALGRIND=$(VALGRIND) \ 5135 G_SLICE=always-malloc,debug-blocks \ 5136 G_DEBUG=fatal-warnings,fatal-criticals,gc-friendly 5137 5138VALGRIND_LOG_COMPILER = \ 5139 $(valgrind_lt) \ 5140 $(VALGRIND) $(VALGRIND_SUPPRESSIONS) --error-exitcode=1 $(VALGRIND_FLAGS) 5141 5142define valgrind_tool_rule 5143check-valgrind-$(1)-am: 5144ifeq ($$(VALGRIND_ENABLED)-$$(ENABLE_VALGRIND_$(1)),yes-yes) 5145ifneq ($$(TESTS),) 5146 $$(valgrind_v_use)$$(MAKE) check-TESTS \ 5147 TESTS_ENVIRONMENT="$$(VALGRIND_TESTS_ENVIRONMENT)" \ 5148 LOG_COMPILER="$$(VALGRIND_LOG_COMPILER)" \ 5149 LOG_FLAGS="$$(valgrind_$(1)_flags)" \ 5150 TEST_SUITE_LOG=test-suite-$(1).log 5151endif 5152else ifeq ($$(VALGRIND_ENABLED),yes) 5153 @echo "Need to reconfigure with --enable-valgrind-$(1)" 5154else 5155 @echo "Need to reconfigure with --enable-valgrind" 5156endif 5157endef 5158 5159$(foreach tool,$(valgrind_tools),$(eval $(call valgrind_tool_rule,$(tool)))) 5160 5161A''M_DISTCHECK_CONFIGURE_FLAGS ?= 5162A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-valgrind 5163 5164MOSTLYCLEANFILES ?= 5165MOSTLYCLEANFILES += $(valgrind_log_files) 5166 5167.PHONY: check-valgrind $(add-prefix check-valgrind-,$(valgrind_tools)) 5168' 5169 5170 5171 5172 5173 if test "x$VALGRIND_ENABLED" = xyes; then 5174 ENABLE_VALGRIND_TRUE= 5175 ENABLE_VALGRIND_FALSE='#' 5176else 5177 ENABLE_VALGRIND_TRUE='#' 5178 ENABLE_VALGRIND_FALSE= 5179fi 5180 5181 5182# Does the user want to run extra parallel tests when parallel 5183# netCDF-4 is built? 5184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether parallel IO tests should be run" >&5 5185$as_echo_n "checking whether parallel IO tests should be run... " >&6; } 5186# Check whether --enable-parallel-tests was given. 5187if test "${enable_parallel_tests+set}" = set; then : 5188 enableval=$enable_parallel_tests; 5189fi 5190 5191test "x$enable_parallel_tests" = xyes || enable_parallel_tests=no 5192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_parallel_tests" >&5 5193$as_echo "$enable_parallel_tests" >&6; } 5194if test $enable_parallel_tests = yes -a "x$nc_has_pnetcdf" = xno -a "x$nc_has_parallel4" = xno ; then 5195 # paralle I/O is not enabled 5196 as_fn_error $? "Parallel I/O tests requested, but netcdf-c does not support parallel I/O." "$LINENO" 5 5197fi 5198 if test "x$enable_parallel_tests" = xyes; then 5199 TEST_PARALLEL_TRUE= 5200 TEST_PARALLEL_FALSE='#' 5201else 5202 TEST_PARALLEL_TRUE='#' 5203 TEST_PARALLEL_FALSE= 5204fi 5205 5206 5207# Determine if we want to enable doxygen-generated documentation. Any 5208# new documentation input files should be inserted into 5209# docs/Doxyfile.in and possibly docs/Makefile.am 5210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netCDF documentation should be generated" >&5 5211$as_echo_n "checking whether netCDF documentation should be generated... " >&6; } 5212# Check whether --enable-doxygen was given. 5213if test "${enable_doxygen+set}" = set; then : 5214 enableval=$enable_doxygen; 5215fi 5216 5217test "x$enable_doxygen" = xyes || enable_doxygen=no 5218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_doxygen" >&5 5219$as_echo "$enable_doxygen" >&6; } 5220 if test "x$enable_doxygen" = xyes; then 5221 BUILD_DOCS_TRUE= 5222 BUILD_DOCS_FALSE='#' 5223else 5224 BUILD_DOCS_TRUE='#' 5225 BUILD_DOCS_FALSE= 5226fi 5227 5228 5229# Does the user want to generate dot-based documentation? 5230# Check whether --enable-dot was given. 5231if test "${enable_dot+set}" = set; then : 5232 enableval=$enable_dot; 5233fi 5234 5235 test "x$enable_dot" = xyes || enable_dot=no 5236 5237# Does the user want to generate internal documentation? 5238# Check whether --enable-internal-docs was given. 5239if test "${enable_internal_docs+set}" = set; then : 5240 enableval=$enable_internal_docs; 5241fi 5242 5243test "x$enable_internal_docs" = xyes || enable_internal_docs=no 5244BUILD_INTERNAL_DOCS=$enable_internal_docs 5245 5246 5247# Is doxygen installed? If so, have configure construct the Doxyfile. 5248for ac_prog in doxygen 5249do 5250 # Extract the first word of "$ac_prog", so it can be a program name with args. 5251set dummy $ac_prog; ac_word=$2 5252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5253$as_echo_n "checking for $ac_word... " >&6; } 5254if ${ac_cv_prog_DOXYGEN+:} false; then : 5255 $as_echo_n "(cached) " >&6 5256else 5257 if test -n "$DOXYGEN"; then 5258 ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test. 5259else 5260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5261for as_dir in $PATH 5262do 5263 IFS=$as_save_IFS 5264 test -z "$as_dir" && as_dir=. 5265 for ac_exec_ext in '' $ac_executable_extensions; do 5266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5267 ac_cv_prog_DOXYGEN="$ac_prog" 5268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5269 break 2 5270 fi 5271done 5272 done 5273IFS=$as_save_IFS 5274 5275fi 5276fi 5277DOXYGEN=$ac_cv_prog_DOXYGEN 5278if test -n "$DOXYGEN"; then 5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 5280$as_echo "$DOXYGEN" >&6; } 5281else 5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5283$as_echo "no" >&6; } 5284fi 5285 5286 5287 test -n "$DOXYGEN" && break 5288done 5289 5290if test -z "$DOXYGEN"; then 5291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Doxygen not found - documentation will not be built" >&5 5292$as_echo "$as_me: WARNING: Doxygen not found - documentation will not be built" >&2;} 5293fi 5294 5295# Is graphviz/dot installed? If so, we'll use dot to create 5296# graphs in the documentation. 5297for ac_prog in dot 5298do 5299 # Extract the first word of "$ac_prog", so it can be a program name with args. 5300set dummy $ac_prog; ac_word=$2 5301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5302$as_echo_n "checking for $ac_word... " >&6; } 5303if ${ac_cv_prog_DOT+:} false; then : 5304 $as_echo_n "(cached) " >&6 5305else 5306 if test -n "$DOT"; then 5307 ac_cv_prog_DOT="$DOT" # Let the user override the test. 5308else 5309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5310for as_dir in $PATH 5311do 5312 IFS=$as_save_IFS 5313 test -z "$as_dir" && as_dir=. 5314 for ac_exec_ext in '' $ac_executable_extensions; do 5315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5316 ac_cv_prog_DOT="$ac_prog" 5317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5318 break 2 5319 fi 5320done 5321 done 5322IFS=$as_save_IFS 5323 5324fi 5325fi 5326DOT=$ac_cv_prog_DOT 5327if test -n "$DOT"; then 5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5 5329$as_echo "$DOT" >&6; } 5330else 5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5332$as_echo "no" >&6; } 5333fi 5334 5335 5336 test -n "$DOT" && break 5337done 5338 5339if test -z "$DOT"; then 5340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dot not found - will use simple charts in documentation" >&5 5341$as_echo "$as_me: WARNING: dot not found - will use simple charts in documentation" >&2;} 5342 HAVE_DOT=NO 5343elif test "x$enable_dot" = xno; then 5344 HAVE_DOT=NO 5345else 5346 HAVE_DOT=YES 5347fi 5348 5349# If we have doxygen, and it's enabled, then process the file. 5350if test "x$enable_doxygen" != xno; then 5351 if test -n "$DOXYGEN"; then 5352 5353 ac_config_files="$ac_config_files docs/Doxyfile" 5354 5355 fi 5356fi 5357 5358# Find the C compiler. 5359{ $as_echo "$as_me:${as_lineno-$LINENO}: finding C compiler" >&5 5360$as_echo "$as_me: finding C compiler" >&6;} 5361 5362ac_ext=c 5363ac_cpp='$CPP $CPPFLAGS' 5364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5366ac_compiler_gnu=$ac_cv_c_compiler_gnu 5367if test -n "$ac_tool_prefix"; then 5368 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 5369set dummy ${ac_tool_prefix}gcc; ac_word=$2 5370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5371$as_echo_n "checking for $ac_word... " >&6; } 5372if ${ac_cv_prog_CC+:} false; then : 5373 $as_echo_n "(cached) " >&6 5374else 5375 if test -n "$CC"; then 5376 ac_cv_prog_CC="$CC" # Let the user override the test. 5377else 5378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5379for as_dir in $PATH 5380do 5381 IFS=$as_save_IFS 5382 test -z "$as_dir" && as_dir=. 5383 for ac_exec_ext in '' $ac_executable_extensions; do 5384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5385 ac_cv_prog_CC="${ac_tool_prefix}gcc" 5386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5387 break 2 5388 fi 5389done 5390 done 5391IFS=$as_save_IFS 5392 5393fi 5394fi 5395CC=$ac_cv_prog_CC 5396if test -n "$CC"; then 5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5398$as_echo "$CC" >&6; } 5399else 5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5401$as_echo "no" >&6; } 5402fi 5403 5404 5405fi 5406if test -z "$ac_cv_prog_CC"; then 5407 ac_ct_CC=$CC 5408 # Extract the first word of "gcc", so it can be a program name with args. 5409set dummy gcc; ac_word=$2 5410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5411$as_echo_n "checking for $ac_word... " >&6; } 5412if ${ac_cv_prog_ac_ct_CC+:} false; then : 5413 $as_echo_n "(cached) " >&6 5414else 5415 if test -n "$ac_ct_CC"; then 5416 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5417else 5418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5419for as_dir in $PATH 5420do 5421 IFS=$as_save_IFS 5422 test -z "$as_dir" && as_dir=. 5423 for ac_exec_ext in '' $ac_executable_extensions; do 5424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5425 ac_cv_prog_ac_ct_CC="gcc" 5426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5427 break 2 5428 fi 5429done 5430 done 5431IFS=$as_save_IFS 5432 5433fi 5434fi 5435ac_ct_CC=$ac_cv_prog_ac_ct_CC 5436if test -n "$ac_ct_CC"; then 5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5438$as_echo "$ac_ct_CC" >&6; } 5439else 5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5441$as_echo "no" >&6; } 5442fi 5443 5444 if test "x$ac_ct_CC" = x; then 5445 CC="" 5446 else 5447 case $cross_compiling:$ac_tool_warned in 5448yes:) 5449{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5450$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5451ac_tool_warned=yes ;; 5452esac 5453 CC=$ac_ct_CC 5454 fi 5455else 5456 CC="$ac_cv_prog_CC" 5457fi 5458 5459if test -z "$CC"; then 5460 if test -n "$ac_tool_prefix"; then 5461 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 5462set dummy ${ac_tool_prefix}cc; ac_word=$2 5463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5464$as_echo_n "checking for $ac_word... " >&6; } 5465if ${ac_cv_prog_CC+:} false; then : 5466 $as_echo_n "(cached) " >&6 5467else 5468 if test -n "$CC"; then 5469 ac_cv_prog_CC="$CC" # Let the user override the test. 5470else 5471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5472for as_dir in $PATH 5473do 5474 IFS=$as_save_IFS 5475 test -z "$as_dir" && as_dir=. 5476 for ac_exec_ext in '' $ac_executable_extensions; do 5477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5478 ac_cv_prog_CC="${ac_tool_prefix}cc" 5479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5480 break 2 5481 fi 5482done 5483 done 5484IFS=$as_save_IFS 5485 5486fi 5487fi 5488CC=$ac_cv_prog_CC 5489if test -n "$CC"; then 5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5491$as_echo "$CC" >&6; } 5492else 5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5494$as_echo "no" >&6; } 5495fi 5496 5497 5498 fi 5499fi 5500if test -z "$CC"; then 5501 # Extract the first word of "cc", so it can be a program name with args. 5502set dummy cc; ac_word=$2 5503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5504$as_echo_n "checking for $ac_word... " >&6; } 5505if ${ac_cv_prog_CC+:} false; then : 5506 $as_echo_n "(cached) " >&6 5507else 5508 if test -n "$CC"; then 5509 ac_cv_prog_CC="$CC" # Let the user override the test. 5510else 5511 ac_prog_rejected=no 5512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5513for as_dir in $PATH 5514do 5515 IFS=$as_save_IFS 5516 test -z "$as_dir" && as_dir=. 5517 for ac_exec_ext in '' $ac_executable_extensions; do 5518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5519 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 5520 ac_prog_rejected=yes 5521 continue 5522 fi 5523 ac_cv_prog_CC="cc" 5524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5525 break 2 5526 fi 5527done 5528 done 5529IFS=$as_save_IFS 5530 5531if test $ac_prog_rejected = yes; then 5532 # We found a bogon in the path, so make sure we never use it. 5533 set dummy $ac_cv_prog_CC 5534 shift 5535 if test $# != 0; then 5536 # We chose a different compiler from the bogus one. 5537 # However, it has the same basename, so the bogon will be chosen 5538 # first if we set CC to just the basename; use the full file name. 5539 shift 5540 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 5541 fi 5542fi 5543fi 5544fi 5545CC=$ac_cv_prog_CC 5546if test -n "$CC"; then 5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5548$as_echo "$CC" >&6; } 5549else 5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5551$as_echo "no" >&6; } 5552fi 5553 5554 5555fi 5556if test -z "$CC"; then 5557 if test -n "$ac_tool_prefix"; then 5558 for ac_prog in cl.exe 5559 do 5560 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5561set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5563$as_echo_n "checking for $ac_word... " >&6; } 5564if ${ac_cv_prog_CC+:} false; then : 5565 $as_echo_n "(cached) " >&6 5566else 5567 if test -n "$CC"; then 5568 ac_cv_prog_CC="$CC" # Let the user override the test. 5569else 5570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5571for as_dir in $PATH 5572do 5573 IFS=$as_save_IFS 5574 test -z "$as_dir" && as_dir=. 5575 for ac_exec_ext in '' $ac_executable_extensions; do 5576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5577 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 5578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5579 break 2 5580 fi 5581done 5582 done 5583IFS=$as_save_IFS 5584 5585fi 5586fi 5587CC=$ac_cv_prog_CC 5588if test -n "$CC"; then 5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5590$as_echo "$CC" >&6; } 5591else 5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5593$as_echo "no" >&6; } 5594fi 5595 5596 5597 test -n "$CC" && break 5598 done 5599fi 5600if test -z "$CC"; then 5601 ac_ct_CC=$CC 5602 for ac_prog in cl.exe 5603do 5604 # Extract the first word of "$ac_prog", so it can be a program name with args. 5605set dummy $ac_prog; ac_word=$2 5606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5607$as_echo_n "checking for $ac_word... " >&6; } 5608if ${ac_cv_prog_ac_ct_CC+:} false; then : 5609 $as_echo_n "(cached) " >&6 5610else 5611 if test -n "$ac_ct_CC"; then 5612 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5613else 5614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5615for as_dir in $PATH 5616do 5617 IFS=$as_save_IFS 5618 test -z "$as_dir" && as_dir=. 5619 for ac_exec_ext in '' $ac_executable_extensions; do 5620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5621 ac_cv_prog_ac_ct_CC="$ac_prog" 5622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5623 break 2 5624 fi 5625done 5626 done 5627IFS=$as_save_IFS 5628 5629fi 5630fi 5631ac_ct_CC=$ac_cv_prog_ac_ct_CC 5632if test -n "$ac_ct_CC"; then 5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5634$as_echo "$ac_ct_CC" >&6; } 5635else 5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5637$as_echo "no" >&6; } 5638fi 5639 5640 5641 test -n "$ac_ct_CC" && break 5642done 5643 5644 if test "x$ac_ct_CC" = x; then 5645 CC="" 5646 else 5647 case $cross_compiling:$ac_tool_warned in 5648yes:) 5649{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5650$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5651ac_tool_warned=yes ;; 5652esac 5653 CC=$ac_ct_CC 5654 fi 5655fi 5656 5657fi 5658 5659 5660test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5661$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5662as_fn_error $? "no acceptable C compiler found in \$PATH 5663See \`config.log' for more details" "$LINENO" 5; } 5664 5665# Provide some information about the compiler. 5666$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 5667set X $ac_compile 5668ac_compiler=$2 5669for ac_option in --version -v -V -qversion; do 5670 { { ac_try="$ac_compiler $ac_option >&5" 5671case "(($ac_try" in 5672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5673 *) ac_try_echo=$ac_try;; 5674esac 5675eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5676$as_echo "$ac_try_echo"; } >&5 5677 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5678 ac_status=$? 5679 if test -s conftest.err; then 5680 sed '10a\ 5681... rest of stderr output deleted ... 5682 10q' conftest.err >conftest.er1 5683 cat conftest.er1 >&5 5684 fi 5685 rm -f conftest.er1 conftest.err 5686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5687 test $ac_status = 0; } 5688done 5689 5690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 5691$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 5692if ${ac_cv_c_compiler_gnu+:} false; then : 5693 $as_echo_n "(cached) " >&6 5694else 5695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5696/* end confdefs.h. */ 5697 5698int 5699main () 5700{ 5701#ifndef __GNUC__ 5702 choke me 5703#endif 5704 5705 ; 5706 return 0; 5707} 5708_ACEOF 5709if ac_fn_c_try_compile "$LINENO"; then : 5710 ac_compiler_gnu=yes 5711else 5712 ac_compiler_gnu=no 5713fi 5714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5715ac_cv_c_compiler_gnu=$ac_compiler_gnu 5716 5717fi 5718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5719$as_echo "$ac_cv_c_compiler_gnu" >&6; } 5720if test $ac_compiler_gnu = yes; then 5721 GCC=yes 5722else 5723 GCC= 5724fi 5725ac_test_CFLAGS=${CFLAGS+set} 5726ac_save_CFLAGS=$CFLAGS 5727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5728$as_echo_n "checking whether $CC accepts -g... " >&6; } 5729if ${ac_cv_prog_cc_g+:} false; then : 5730 $as_echo_n "(cached) " >&6 5731else 5732 ac_save_c_werror_flag=$ac_c_werror_flag 5733 ac_c_werror_flag=yes 5734 ac_cv_prog_cc_g=no 5735 CFLAGS="-g" 5736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5737/* end confdefs.h. */ 5738 5739int 5740main () 5741{ 5742 5743 ; 5744 return 0; 5745} 5746_ACEOF 5747if ac_fn_c_try_compile "$LINENO"; then : 5748 ac_cv_prog_cc_g=yes 5749else 5750 CFLAGS="" 5751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5752/* end confdefs.h. */ 5753 5754int 5755main () 5756{ 5757 5758 ; 5759 return 0; 5760} 5761_ACEOF 5762if ac_fn_c_try_compile "$LINENO"; then : 5763 5764else 5765 ac_c_werror_flag=$ac_save_c_werror_flag 5766 CFLAGS="-g" 5767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5768/* end confdefs.h. */ 5769 5770int 5771main () 5772{ 5773 5774 ; 5775 return 0; 5776} 5777_ACEOF 5778if ac_fn_c_try_compile "$LINENO"; then : 5779 ac_cv_prog_cc_g=yes 5780fi 5781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5782fi 5783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5784fi 5785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5786 ac_c_werror_flag=$ac_save_c_werror_flag 5787fi 5788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5789$as_echo "$ac_cv_prog_cc_g" >&6; } 5790if test "$ac_test_CFLAGS" = set; then 5791 CFLAGS=$ac_save_CFLAGS 5792elif test $ac_cv_prog_cc_g = yes; then 5793 if test "$GCC" = yes; then 5794 CFLAGS="-g -O2" 5795 else 5796 CFLAGS="-g" 5797 fi 5798else 5799 if test "$GCC" = yes; then 5800 CFLAGS="-O2" 5801 else 5802 CFLAGS= 5803 fi 5804fi 5805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5806$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5807if ${ac_cv_prog_cc_c89+:} false; then : 5808 $as_echo_n "(cached) " >&6 5809else 5810 ac_cv_prog_cc_c89=no 5811ac_save_CC=$CC 5812cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5813/* end confdefs.h. */ 5814#include <stdarg.h> 5815#include <stdio.h> 5816struct stat; 5817/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5818struct buf { int x; }; 5819FILE * (*rcsopen) (struct buf *, struct stat *, int); 5820static char *e (p, i) 5821 char **p; 5822 int i; 5823{ 5824 return p[i]; 5825} 5826static char *f (char * (*g) (char **, int), char **p, ...) 5827{ 5828 char *s; 5829 va_list v; 5830 va_start (v,p); 5831 s = g (p, va_arg (v,int)); 5832 va_end (v); 5833 return s; 5834} 5835 5836/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5837 function prototypes and stuff, but not '\xHH' hex character constants. 5838 These don't provoke an error unfortunately, instead are silently treated 5839 as 'x'. The following induces an error, until -std is added to get 5840 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5841 array size at least. It's necessary to write '\x00'==0 to get something 5842 that's true only with -std. */ 5843int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5844 5845/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5846 inside strings and character constants. */ 5847#define FOO(x) 'x' 5848int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5849 5850int test (int i, double x); 5851struct s1 {int (*f) (int a);}; 5852struct s2 {int (*f) (double a);}; 5853int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5854int argc; 5855char **argv; 5856int 5857main () 5858{ 5859return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5860 ; 5861 return 0; 5862} 5863_ACEOF 5864for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5865 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5866do 5867 CC="$ac_save_CC $ac_arg" 5868 if ac_fn_c_try_compile "$LINENO"; then : 5869 ac_cv_prog_cc_c89=$ac_arg 5870fi 5871rm -f core conftest.err conftest.$ac_objext 5872 test "x$ac_cv_prog_cc_c89" != "xno" && break 5873done 5874rm -f conftest.$ac_ext 5875CC=$ac_save_CC 5876 5877fi 5878# AC_CACHE_VAL 5879case "x$ac_cv_prog_cc_c89" in 5880 x) 5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5882$as_echo "none needed" >&6; } ;; 5883 xno) 5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5885$as_echo "unsupported" >&6; } ;; 5886 *) 5887 CC="$CC $ac_cv_prog_cc_c89" 5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5889$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5890esac 5891if test "x$ac_cv_prog_cc_c89" != xno; then : 5892 5893fi 5894 5895ac_ext=c 5896ac_cpp='$CPP $CPPFLAGS' 5897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5899ac_compiler_gnu=$ac_cv_c_compiler_gnu 5900 5901ac_ext=c 5902ac_cpp='$CPP $CPPFLAGS' 5903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5905ac_compiler_gnu=$ac_cv_c_compiler_gnu 5906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 5907$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 5908if ${am_cv_prog_cc_c_o+:} false; then : 5909 $as_echo_n "(cached) " >&6 5910else 5911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5912/* end confdefs.h. */ 5913 5914int 5915main () 5916{ 5917 5918 ; 5919 return 0; 5920} 5921_ACEOF 5922 # Make sure it works both with $CC and with simple cc. 5923 # Following AC_PROG_CC_C_O, we do the test twice because some 5924 # compilers refuse to overwrite an existing .o file with -o, 5925 # though they will create one. 5926 am_cv_prog_cc_c_o=yes 5927 for am_i in 1 2; do 5928 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 5929 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 5930 ac_status=$? 5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5932 (exit $ac_status); } \ 5933 && test -f conftest2.$ac_objext; then 5934 : OK 5935 else 5936 am_cv_prog_cc_c_o=no 5937 break 5938 fi 5939 done 5940 rm -f core conftest* 5941 unset am_i 5942fi 5943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 5944$as_echo "$am_cv_prog_cc_c_o" >&6; } 5945if test "$am_cv_prog_cc_c_o" != yes; then 5946 # Losing compiler, so override with the script. 5947 # FIXME: It is wrong to rewrite CC. 5948 # But if we don't then we get into trouble of one sort or another. 5949 # A longer-term fix would be to have automake use am__CC in this case, 5950 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5951 CC="$am_aux_dir/compile $CC" 5952fi 5953ac_ext=c 5954ac_cpp='$CPP $CPPFLAGS' 5955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5957ac_compiler_gnu=$ac_cv_c_compiler_gnu 5958 5959 5960depcc="$CC" am_compiler_list= 5961 5962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5963$as_echo_n "checking dependency style of $depcc... " >&6; } 5964if ${am_cv_CC_dependencies_compiler_type+:} false; then : 5965 $as_echo_n "(cached) " >&6 5966else 5967 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5968 # We make a subdir and do the tests there. Otherwise we can end up 5969 # making bogus files that we don't know about and never remove. For 5970 # instance it was reported that on HP-UX the gcc test will end up 5971 # making a dummy file named 'D' -- because '-MD' means "put the output 5972 # in D". 5973 rm -rf conftest.dir 5974 mkdir conftest.dir 5975 # Copy depcomp to subdir because otherwise we won't find it if we're 5976 # using a relative directory. 5977 cp "$am_depcomp" conftest.dir 5978 cd conftest.dir 5979 # We will build objects and dependencies in a subdirectory because 5980 # it helps to detect inapplicable dependency modes. For instance 5981 # both Tru64's cc and ICC support -MD to output dependencies as a 5982 # side effect of compilation, but ICC will put the dependencies in 5983 # the current directory while Tru64 will put them in the object 5984 # directory. 5985 mkdir sub 5986 5987 am_cv_CC_dependencies_compiler_type=none 5988 if test "$am_compiler_list" = ""; then 5989 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5990 fi 5991 am__universal=false 5992 case " $depcc " in #( 5993 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5994 esac 5995 5996 for depmode in $am_compiler_list; do 5997 # Setup a source with many dependencies, because some compilers 5998 # like to wrap large dependency lists on column 80 (with \), and 5999 # we should not choose a depcomp mode which is confused by this. 6000 # 6001 # We need to recreate these files for each test, as the compiler may 6002 # overwrite some of them when testing with obscure command lines. 6003 # This happens at least with the AIX C compiler. 6004 : > sub/conftest.c 6005 for i in 1 2 3 4 5 6; do 6006 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6007 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 6008 # Solaris 10 /bin/sh. 6009 echo '/* dummy */' > sub/conftst$i.h 6010 done 6011 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6012 6013 # We check with '-c' and '-o' for the sake of the "dashmstdout" 6014 # mode. It turns out that the SunPro C++ compiler does not properly 6015 # handle '-M -o', and we need to detect this. Also, some Intel 6016 # versions had trouble with output in subdirs. 6017 am__obj=sub/conftest.${OBJEXT-o} 6018 am__minus_obj="-o $am__obj" 6019 case $depmode in 6020 gcc) 6021 # This depmode causes a compiler race in universal mode. 6022 test "$am__universal" = false || continue 6023 ;; 6024 nosideeffect) 6025 # After this tag, mechanisms are not by side-effect, so they'll 6026 # only be used when explicitly requested. 6027 if test "x$enable_dependency_tracking" = xyes; then 6028 continue 6029 else 6030 break 6031 fi 6032 ;; 6033 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 6034 # This compiler won't grok '-c -o', but also, the minuso test has 6035 # not run yet. These depmodes are late enough in the game, and 6036 # so weak that their functioning should not be impacted. 6037 am__obj=conftest.${OBJEXT-o} 6038 am__minus_obj= 6039 ;; 6040 none) break ;; 6041 esac 6042 if depmode=$depmode \ 6043 source=sub/conftest.c object=$am__obj \ 6044 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6045 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 6046 >/dev/null 2>conftest.err && 6047 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 6048 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6049 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 6050 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6051 # icc doesn't choke on unknown options, it will just issue warnings 6052 # or remarks (even with -Werror). So we grep stderr for any message 6053 # that says an option was ignored or not supported. 6054 # When given -MP, icc 7.0 and 7.1 complain thusly: 6055 # icc: Command line warning: ignoring option '-M'; no argument required 6056 # The diagnosis changed in icc 8.0: 6057 # icc: Command line remark: option '-MP' not supported 6058 if (grep 'ignoring option' conftest.err || 6059 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6060 am_cv_CC_dependencies_compiler_type=$depmode 6061 break 6062 fi 6063 fi 6064 done 6065 6066 cd .. 6067 rm -rf conftest.dir 6068else 6069 am_cv_CC_dependencies_compiler_type=none 6070fi 6071 6072fi 6073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 6074$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 6075CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 6076 6077 if 6078 test "x$enable_dependency_tracking" != xno \ 6079 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 6080 am__fastdepCC_TRUE= 6081 am__fastdepCC_FALSE='#' 6082else 6083 am__fastdepCC_TRUE='#' 6084 am__fastdepCC_FALSE= 6085fi 6086 6087 6088 6089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 6090$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 6091if ${ac_cv_c_const+:} false; then : 6092 $as_echo_n "(cached) " >&6 6093else 6094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6095/* end confdefs.h. */ 6096 6097int 6098main () 6099{ 6100 6101#ifndef __cplusplus 6102 /* Ultrix mips cc rejects this sort of thing. */ 6103 typedef int charset[2]; 6104 const charset cs = { 0, 0 }; 6105 /* SunOS 4.1.1 cc rejects this. */ 6106 char const *const *pcpcc; 6107 char **ppc; 6108 /* NEC SVR4.0.2 mips cc rejects this. */ 6109 struct point {int x, y;}; 6110 static struct point const zero = {0,0}; 6111 /* AIX XL C 1.02.0.0 rejects this. 6112 It does not let you subtract one const X* pointer from another in 6113 an arm of an if-expression whose if-part is not a constant 6114 expression */ 6115 const char *g = "string"; 6116 pcpcc = &g + (g ? g-g : 0); 6117 /* HPUX 7.0 cc rejects these. */ 6118 ++pcpcc; 6119 ppc = (char**) pcpcc; 6120 pcpcc = (char const *const *) ppc; 6121 { /* SCO 3.2v4 cc rejects this sort of thing. */ 6122 char tx; 6123 char *t = &tx; 6124 char const *s = 0 ? (char *) 0 : (char const *) 0; 6125 6126 *t++ = 0; 6127 if (s) return 0; 6128 } 6129 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 6130 int x[] = {25, 17}; 6131 const int *foo = &x[0]; 6132 ++foo; 6133 } 6134 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 6135 typedef const int *iptr; 6136 iptr p = 0; 6137 ++p; 6138 } 6139 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 6140 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 6141 struct s { int j; const int *ap[3]; } bx; 6142 struct s *b = &bx; b->j = 5; 6143 } 6144 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 6145 const int foo = 10; 6146 if (!foo) return 0; 6147 } 6148 return !cs[0] && !zero.x; 6149#endif 6150 6151 ; 6152 return 0; 6153} 6154_ACEOF 6155if ac_fn_c_try_compile "$LINENO"; then : 6156 ac_cv_c_const=yes 6157else 6158 ac_cv_c_const=no 6159fi 6160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6161fi 6162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 6163$as_echo "$ac_cv_c_const" >&6; } 6164if test $ac_cv_c_const = no; then 6165 6166$as_echo "#define const /**/" >>confdefs.h 6167 6168fi 6169 6170 6171# Sed is needed to construct tests. 6172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 6173$as_echo_n "checking for a sed that does not truncate output... " >&6; } 6174if ${ac_cv_path_SED+:} false; then : 6175 $as_echo_n "(cached) " >&6 6176else 6177 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 6178 for ac_i in 1 2 3 4 5 6 7; do 6179 ac_script="$ac_script$as_nl$ac_script" 6180 done 6181 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 6182 { ac_script=; unset ac_script;} 6183 if test -z "$SED"; then 6184 ac_path_SED_found=false 6185 # Loop through the user's path and test for each of PROGNAME-LIST 6186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6187for as_dir in $PATH 6188do 6189 IFS=$as_save_IFS 6190 test -z "$as_dir" && as_dir=. 6191 for ac_prog in sed gsed; do 6192 for ac_exec_ext in '' $ac_executable_extensions; do 6193 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 6194 as_fn_executable_p "$ac_path_SED" || continue 6195# Check for GNU ac_path_SED and select it if it is found. 6196 # Check for GNU $ac_path_SED 6197case `"$ac_path_SED" --version 2>&1` in 6198*GNU*) 6199 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 6200*) 6201 ac_count=0 6202 $as_echo_n 0123456789 >"conftest.in" 6203 while : 6204 do 6205 cat "conftest.in" "conftest.in" >"conftest.tmp" 6206 mv "conftest.tmp" "conftest.in" 6207 cp "conftest.in" "conftest.nl" 6208 $as_echo '' >> "conftest.nl" 6209 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 6210 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6211 as_fn_arith $ac_count + 1 && ac_count=$as_val 6212 if test $ac_count -gt ${ac_path_SED_max-0}; then 6213 # Best one so far, save it but keep looking for a better one 6214 ac_cv_path_SED="$ac_path_SED" 6215 ac_path_SED_max=$ac_count 6216 fi 6217 # 10*(2^10) chars as input seems more than enough 6218 test $ac_count -gt 10 && break 6219 done 6220 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6221esac 6222 6223 $ac_path_SED_found && break 3 6224 done 6225 done 6226 done 6227IFS=$as_save_IFS 6228 if test -z "$ac_cv_path_SED"; then 6229 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 6230 fi 6231else 6232 ac_cv_path_SED=$SED 6233fi 6234 6235fi 6236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6237$as_echo "$ac_cv_path_SED" >&6; } 6238 SED="$ac_cv_path_SED" 6239 rm -f conftest.sed 6240 6241if test -z "$SED"; then 6242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: sed not found - some tests will not be built" >&5 6243$as_echo "$as_me: WARNING: sed not found - some tests will not be built" >&2;} 6244fi 6245 if test -n "${SED+1}"; then 6246 USE_SED_TRUE= 6247 USE_SED_FALSE='#' 6248else 6249 USE_SED_TRUE='#' 6250 USE_SED_FALSE= 6251fi 6252 6253 6254# Find fortran compiler. If FC isn't set after AC_PROG_FC, we couldn't 6255# find a fortran compiler. If the user requested the fortran API, and 6256# has told us not to recover from a missing compiler, then bail out 6257# right here. 6258{ $as_echo "$as_me:${as_lineno-$LINENO}: finding Fortran compiler" >&5 6259$as_echo "$as_me: finding Fortran compiler" >&6;} 6260 6261ac_ext=${ac_fc_srcext-f} 6262ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 6263ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 6264ac_compiler_gnu=$ac_cv_fc_compiler_gnu 6265if test -n "$ac_tool_prefix"; then 6266 for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 6267 do 6268 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6269set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6271$as_echo_n "checking for $ac_word... " >&6; } 6272if ${ac_cv_prog_FC+:} false; then : 6273 $as_echo_n "(cached) " >&6 6274else 6275 if test -n "$FC"; then 6276 ac_cv_prog_FC="$FC" # Let the user override the test. 6277else 6278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6279for as_dir in $PATH 6280do 6281 IFS=$as_save_IFS 6282 test -z "$as_dir" && as_dir=. 6283 for ac_exec_ext in '' $ac_executable_extensions; do 6284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6285 ac_cv_prog_FC="$ac_tool_prefix$ac_prog" 6286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6287 break 2 6288 fi 6289done 6290 done 6291IFS=$as_save_IFS 6292 6293fi 6294fi 6295FC=$ac_cv_prog_FC 6296if test -n "$FC"; then 6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 6298$as_echo "$FC" >&6; } 6299else 6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6301$as_echo "no" >&6; } 6302fi 6303 6304 6305 test -n "$FC" && break 6306 done 6307fi 6308if test -z "$FC"; then 6309 ac_ct_FC=$FC 6310 for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 6311do 6312 # Extract the first word of "$ac_prog", so it can be a program name with args. 6313set dummy $ac_prog; ac_word=$2 6314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6315$as_echo_n "checking for $ac_word... " >&6; } 6316if ${ac_cv_prog_ac_ct_FC+:} false; then : 6317 $as_echo_n "(cached) " >&6 6318else 6319 if test -n "$ac_ct_FC"; then 6320 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. 6321else 6322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6323for as_dir in $PATH 6324do 6325 IFS=$as_save_IFS 6326 test -z "$as_dir" && as_dir=. 6327 for ac_exec_ext in '' $ac_executable_extensions; do 6328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6329 ac_cv_prog_ac_ct_FC="$ac_prog" 6330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6331 break 2 6332 fi 6333done 6334 done 6335IFS=$as_save_IFS 6336 6337fi 6338fi 6339ac_ct_FC=$ac_cv_prog_ac_ct_FC 6340if test -n "$ac_ct_FC"; then 6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5 6342$as_echo "$ac_ct_FC" >&6; } 6343else 6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6345$as_echo "no" >&6; } 6346fi 6347 6348 6349 test -n "$ac_ct_FC" && break 6350done 6351 6352 if test "x$ac_ct_FC" = x; then 6353 FC="" 6354 else 6355 case $cross_compiling:$ac_tool_warned in 6356yes:) 6357{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6358$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6359ac_tool_warned=yes ;; 6360esac 6361 FC=$ac_ct_FC 6362 fi 6363fi 6364 6365 6366# Provide some information about the compiler. 6367$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5 6368set X $ac_compile 6369ac_compiler=$2 6370for ac_option in --version -v -V -qversion; do 6371 { { ac_try="$ac_compiler $ac_option >&5" 6372case "(($ac_try" in 6373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6374 *) ac_try_echo=$ac_try;; 6375esac 6376eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6377$as_echo "$ac_try_echo"; } >&5 6378 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 6379 ac_status=$? 6380 if test -s conftest.err; then 6381 sed '10a\ 6382... rest of stderr output deleted ... 6383 10q' conftest.err >conftest.er1 6384 cat conftest.er1 >&5 6385 fi 6386 rm -f conftest.er1 conftest.err 6387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6388 test $ac_status = 0; } 6389done 6390rm -f a.out 6391 6392# If we don't use `.F' as extension, the preprocessor is not run on the 6393# input file. (Note that this only needs to work for GNU compilers.) 6394ac_save_ext=$ac_ext 6395ac_ext=F 6396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5 6397$as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; } 6398if ${ac_cv_fc_compiler_gnu+:} false; then : 6399 $as_echo_n "(cached) " >&6 6400else 6401 cat > conftest.$ac_ext <<_ACEOF 6402 program main 6403#ifndef __GNUC__ 6404 choke me 6405#endif 6406 6407 end 6408_ACEOF 6409if ac_fn_fc_try_compile "$LINENO"; then : 6410 ac_compiler_gnu=yes 6411else 6412 ac_compiler_gnu=no 6413fi 6414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6415ac_cv_fc_compiler_gnu=$ac_compiler_gnu 6416 6417fi 6418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5 6419$as_echo "$ac_cv_fc_compiler_gnu" >&6; } 6420ac_ext=$ac_save_ext 6421ac_test_FCFLAGS=${FCFLAGS+set} 6422ac_save_FCFLAGS=$FCFLAGS 6423FCFLAGS= 6424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5 6425$as_echo_n "checking whether $FC accepts -g... " >&6; } 6426if ${ac_cv_prog_fc_g+:} false; then : 6427 $as_echo_n "(cached) " >&6 6428else 6429 FCFLAGS=-g 6430cat > conftest.$ac_ext <<_ACEOF 6431 program main 6432 6433 end 6434_ACEOF 6435if ac_fn_fc_try_compile "$LINENO"; then : 6436 ac_cv_prog_fc_g=yes 6437else 6438 ac_cv_prog_fc_g=no 6439fi 6440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6441 6442fi 6443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5 6444$as_echo "$ac_cv_prog_fc_g" >&6; } 6445if test "$ac_test_FCFLAGS" = set; then 6446 FCFLAGS=$ac_save_FCFLAGS 6447elif test $ac_cv_prog_fc_g = yes; then 6448 if test "x$ac_cv_fc_compiler_gnu" = xyes; then 6449 FCFLAGS="-g -O2" 6450 else 6451 FCFLAGS="-g" 6452 fi 6453else 6454 if test "x$ac_cv_fc_compiler_gnu" = xyes; then 6455 FCFLAGS="-O2" 6456 else 6457 FCFLAGS= 6458 fi 6459fi 6460 6461if test $ac_compiler_gnu = yes; then 6462 GFC=yes 6463else 6464 GFC= 6465fi 6466ac_ext=c 6467ac_cpp='$CPP $CPPFLAGS' 6468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6470ac_compiler_gnu=$ac_cv_c_compiler_gnu 6471 6472ac_ext=f 6473ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6474ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6475ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6476if test -n "$ac_tool_prefix"; then 6477 for ac_prog in $FC 6478 do 6479 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6480set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6482$as_echo_n "checking for $ac_word... " >&6; } 6483if ${ac_cv_prog_F77+:} false; then : 6484 $as_echo_n "(cached) " >&6 6485else 6486 if test -n "$F77"; then 6487 ac_cv_prog_F77="$F77" # Let the user override the test. 6488else 6489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6490for as_dir in $PATH 6491do 6492 IFS=$as_save_IFS 6493 test -z "$as_dir" && as_dir=. 6494 for ac_exec_ext in '' $ac_executable_extensions; do 6495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6496 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 6497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6498 break 2 6499 fi 6500done 6501 done 6502IFS=$as_save_IFS 6503 6504fi 6505fi 6506F77=$ac_cv_prog_F77 6507if test -n "$F77"; then 6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5 6509$as_echo "$F77" >&6; } 6510else 6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6512$as_echo "no" >&6; } 6513fi 6514 6515 6516 test -n "$F77" && break 6517 done 6518fi 6519if test -z "$F77"; then 6520 ac_ct_F77=$F77 6521 for ac_prog in $FC 6522do 6523 # Extract the first word of "$ac_prog", so it can be a program name with args. 6524set dummy $ac_prog; ac_word=$2 6525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6526$as_echo_n "checking for $ac_word... " >&6; } 6527if ${ac_cv_prog_ac_ct_F77+:} false; then : 6528 $as_echo_n "(cached) " >&6 6529else 6530 if test -n "$ac_ct_F77"; then 6531 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 6532else 6533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6534for as_dir in $PATH 6535do 6536 IFS=$as_save_IFS 6537 test -z "$as_dir" && as_dir=. 6538 for ac_exec_ext in '' $ac_executable_extensions; do 6539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6540 ac_cv_prog_ac_ct_F77="$ac_prog" 6541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6542 break 2 6543 fi 6544done 6545 done 6546IFS=$as_save_IFS 6547 6548fi 6549fi 6550ac_ct_F77=$ac_cv_prog_ac_ct_F77 6551if test -n "$ac_ct_F77"; then 6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5 6553$as_echo "$ac_ct_F77" >&6; } 6554else 6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6556$as_echo "no" >&6; } 6557fi 6558 6559 6560 test -n "$ac_ct_F77" && break 6561done 6562 6563 if test "x$ac_ct_F77" = x; then 6564 F77="" 6565 else 6566 case $cross_compiling:$ac_tool_warned in 6567yes:) 6568{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6569$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6570ac_tool_warned=yes ;; 6571esac 6572 F77=$ac_ct_F77 6573 fi 6574fi 6575 6576 6577# Provide some information about the compiler. 6578$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5 6579set X $ac_compile 6580ac_compiler=$2 6581for ac_option in --version -v -V -qversion; do 6582 { { ac_try="$ac_compiler $ac_option >&5" 6583case "(($ac_try" in 6584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6585 *) ac_try_echo=$ac_try;; 6586esac 6587eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6588$as_echo "$ac_try_echo"; } >&5 6589 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 6590 ac_status=$? 6591 if test -s conftest.err; then 6592 sed '10a\ 6593... rest of stderr output deleted ... 6594 10q' conftest.err >conftest.er1 6595 cat conftest.er1 >&5 6596 fi 6597 rm -f conftest.er1 conftest.err 6598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6599 test $ac_status = 0; } 6600done 6601rm -f a.out 6602 6603# If we don't use `.F' as extension, the preprocessor is not run on the 6604# input file. (Note that this only needs to work for GNU compilers.) 6605ac_save_ext=$ac_ext 6606ac_ext=F 6607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5 6608$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; } 6609if ${ac_cv_f77_compiler_gnu+:} false; then : 6610 $as_echo_n "(cached) " >&6 6611else 6612 cat > conftest.$ac_ext <<_ACEOF 6613 program main 6614#ifndef __GNUC__ 6615 choke me 6616#endif 6617 6618 end 6619_ACEOF 6620if ac_fn_f77_try_compile "$LINENO"; then : 6621 ac_compiler_gnu=yes 6622else 6623 ac_compiler_gnu=no 6624fi 6625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6626ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6627 6628fi 6629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5 6630$as_echo "$ac_cv_f77_compiler_gnu" >&6; } 6631ac_ext=$ac_save_ext 6632ac_test_FFLAGS=${FFLAGS+set} 6633ac_save_FFLAGS=$FFLAGS 6634FFLAGS= 6635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5 6636$as_echo_n "checking whether $F77 accepts -g... " >&6; } 6637if ${ac_cv_prog_f77_g+:} false; then : 6638 $as_echo_n "(cached) " >&6 6639else 6640 FFLAGS=-g 6641cat > conftest.$ac_ext <<_ACEOF 6642 program main 6643 6644 end 6645_ACEOF 6646if ac_fn_f77_try_compile "$LINENO"; then : 6647 ac_cv_prog_f77_g=yes 6648else 6649 ac_cv_prog_f77_g=no 6650fi 6651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6652 6653fi 6654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5 6655$as_echo "$ac_cv_prog_f77_g" >&6; } 6656if test "$ac_test_FFLAGS" = set; then 6657 FFLAGS=$ac_save_FFLAGS 6658elif test $ac_cv_prog_f77_g = yes; then 6659 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6660 FFLAGS="-g -O2" 6661 else 6662 FFLAGS="-g" 6663 fi 6664else 6665 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6666 FFLAGS="-O2" 6667 else 6668 FFLAGS= 6669 fi 6670fi 6671 6672if test $ac_compiler_gnu = yes; then 6673 G77=yes 6674else 6675 G77= 6676fi 6677ac_ext=c 6678ac_cpp='$CPP $CPPFLAGS' 6679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6681ac_compiler_gnu=$ac_cv_c_compiler_gnu 6682 6683 6684## Compiler with version information. This consists of the full path 6685## name of the compiler and the reported version number. 6686 6687## Strip anything that looks like a flag off of $FC 6688FC_NOFLAGS=`echo $FC | sed 's/ -.*//'` 6689 6690if `echo $FC_NOFLAGS | grep ^/ >/dev/null 2>&1`; then 6691 FC_VERSION="$FC" 6692else 6693 FC_VERSION="$FC" 6694 FC_VERSION="$(dirname $(which $FC))/$FC" 6695fi 6696if test -n "$fc_version_info"; then 6697 FC_VERSION="$FC_VERSION ( $fc_version_info)" 6698fi 6699 6700 6701# If we couldn't find an F90 compiler, deal with it. 6702if test "${FC+set}" = set && test "x$FC" = x; then 6703 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6704$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6705as_fn_error $? "Can't find F90 compiler. 6706See \`config.log' for more details" "$LINENO" 5; } 6707fi 6708 6709# Does the user want to test for Fortran 2003 compiler. 6710# Added to get around NAG evaluation compiler error turning off F03 6711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Fortran compiler is checked for ISO_C_BINDING support" >&5 6712$as_echo_n "checking whether Fortran compiler is checked for ISO_C_BINDING support... " >&6; } 6713# Check whether --enable-f03-compiler-check was given. 6714if test "${enable_f03_compiler_check+set}" = set; then : 6715 enableval=$enable_f03_compiler_check; 6716fi 6717 6718test "x$enable_f03_compiler_check" = xno || enable_f03_compiler_check=yes 6719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_f03_compiler_check" >&5 6720$as_echo "$enable_f03_compiler_check" >&6; } 6721 6722# next check to see if the Fortran compiler will support 6723# ISO_C_BINDING 6724nc_iso_c_binding=yes 6725 6726# Some f90 compilers change the case of the mod file names. Others 6727# require special flags to be set to deal with .f90 files. Find out 6728# about this compiler. 6729ac_ext=${ac_fc_srcext-f} 6730ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 6731ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 6732ac_compiler_gnu=$ac_cv_fc_compiler_gnu 6733 6734 6735ac_ext=${ac_fc_srcext-f} 6736ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 6737ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 6738ac_compiler_gnu=$ac_cv_fc_compiler_gnu 6739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran flag to compile .f90 files" >&5 6740$as_echo_n "checking for Fortran flag to compile .f90 files... " >&6; } 6741if ${ac_cv_fc_srcext_f90+:} false; then : 6742 $as_echo_n "(cached) " >&6 6743else 6744 ac_ext=f90 6745ac_fcflags_srcext_save=$ac_fcflags_srcext 6746ac_fcflags_srcext= 6747ac_cv_fc_srcext_f90=unknown 6748case $ac_ext in #( 6749 [fF]77) ac_try=f77;; #( 6750 *) ac_try=f95;; 6751esac 6752for ac_flag in none -qsuffix=f=f90 -Tf "-x $ac_try"; do 6753 test "x$ac_flag" != xnone && ac_fcflags_srcext="$ac_flag" 6754 cat > conftest.$ac_ext <<_ACEOF 6755 program main 6756 6757 end 6758_ACEOF 6759if ac_fn_fc_try_compile "$LINENO"; then : 6760 ac_cv_fc_srcext_f90=$ac_flag; break 6761fi 6762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6763done 6764rm -f conftest.$ac_objext conftest.f90 6765ac_fcflags_srcext=$ac_fcflags_srcext_save 6766 6767fi 6768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_srcext_f90" >&5 6769$as_echo "$ac_cv_fc_srcext_f90" >&6; } 6770if test "x$ac_cv_fc_srcext_f90" = xunknown; then 6771 as_fn_error $? "Fortran could not compile .f90 files" "$LINENO" 5 6772else 6773 ac_fc_srcext=f90 6774 if test "x$ac_cv_fc_srcext_f90" = xnone; then 6775 ac_fcflags_srcext="" 6776 FCFLAGS_f90="" 6777 else 6778 ac_fcflags_srcext=$ac_cv_fc_srcext_f90 6779 FCFLAGS_f90=$ac_cv_fc_srcext_f90 6780 fi 6781 6782 6783fi 6784ac_ext=${ac_fc_srcext-f} 6785ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 6786ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 6787ac_compiler_gnu=$ac_cv_fc_compiler_gnu 6788 6789ac_ext=c 6790ac_cpp='$CPP $CPPFLAGS' 6791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6793ac_compiler_gnu=$ac_cv_c_compiler_gnu 6794 6795 6796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking fortran 90 modules inclusion flag" >&5 6797$as_echo_n "checking fortran 90 modules inclusion flag... " >&6; } 6798if ${ax_cv_f90_modflag+:} false; then : 6799 $as_echo_n "(cached) " >&6 6800else 6801 ac_ext=${ac_fc_srcext-f} 6802ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 6803ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 6804ac_compiler_gnu=$ac_cv_fc_compiler_gnu 6805 6806i=0 6807while test \( -f tmpdir_$i \) -o \( -d tmpdir_$i \) ; do 6808 i=`expr $i + 1` 6809done 6810mkdir tmpdir_$i 6811cd tmpdir_$i 6812cat > conftest.$ac_ext <<_ACEOF 6813module conftest_module 6814 contains 6815 subroutine conftest_routine 6816 write(*,'(a)') 'gotcha!' 6817 end subroutine conftest_routine 6818 end module conftest_module 6819 6820_ACEOF 6821if ac_fn_fc_try_compile "$LINENO"; then : 6822 6823fi 6824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6825cd .. 6826ax_cv_f90_modflag="not found" 6827for ax_flag in "-I" "-M" "-p"; do 6828 if test "$ax_cv_f90_modflag" = "not found" ; then 6829 ax_save_FCFLAGS="$FCFLAGS" 6830 FCFLAGS="$ax_save_FCFLAGS ${ax_flag}tmpdir_$i" 6831 cat > conftest.$ac_ext <<_ACEOF 6832program conftest_program 6833 use conftest_module 6834 call conftest_routine 6835 end program conftest_program 6836 6837_ACEOF 6838if ac_fn_fc_try_compile "$LINENO"; then : 6839 ax_cv_f90_modflag="$ax_flag" 6840fi 6841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6842 FCFLAGS="$ax_save_FCFLAGS" 6843 fi 6844done 6845rm -fr tmpdir_$i 6846if test "$ax_flag" = "not found" ; then 6847 as_fn_error $? "unable to find compiler flag for modules inclusion" "$LINENO" 5 6848fi 6849ac_ext=c 6850ac_cpp='$CPP $CPPFLAGS' 6851ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6852ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6853ac_compiler_gnu=$ac_cv_c_compiler_gnu 6854 6855 6856fi 6857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_f90_modflag" >&5 6858$as_echo "$ax_cv_f90_modflag" >&6; } 6859MOD_FLAG=${ax_cv_f90_modflag} 6860 6861if test "x$enable_f03_compiler_check" = xyes; then 6862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports Fortran 2003 ISO_C_BINDING" >&5 6863$as_echo_n "checking if Fortran compiler supports Fortran 2003 ISO_C_BINDING... " >&6; } 6864 cat <<EOF >conftest.f90 6865module conftest_module 6866USE ISO_C_BINDING 6867end module conftest_module 6868EOF 6869 doit='$FC -c ${FCFLAGS} ${FCFLAGS_f90} conftest.f90' 6870 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 6871 (eval $doit) 2>&5 6872 ac_status=$? 6873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6874 test $ac_status = 0; }; then 6875 nc_iso_c_binding=yes 6876 else 6877 nc_iso_c_binding=no 6878 fi 6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nc_iso_c_binding" >&5 6880$as_echo "$nc_iso_c_binding" >&6; } 6881 6882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports Fortran 2008 ISO_FORTRAN_ENV additions" >&5 6883$as_echo_n "checking if Fortran compiler supports Fortran 2008 ISO_FORTRAN_ENV additions... " >&6; } 6884 cat <<EOF >conftest.f90 6885Program test 6886USE ISO_FORTRAN_ENV, ONLY: REAL32, REAL64, INT8, INT16, INT32, INT64 6887End Program 6888EOF 6889 doit='$FC -c ${FCFLAGS} ${FCFLAGS_f90} conftest.f90' 6890 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 6891 (eval $doit) 2>&5 6892 ac_status=$? 6893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6894 test $ac_status = 0; }; then 6895 nc_f2008_is0_env_additions=yes 6896 6897$as_echo "#define HAVE_F2008 1" >>confdefs.h 6898 6899 else 6900 nc_f2008_is0_env_additions=no 6901 fi 6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nc_f2008_is0_env_additions" >&5 6903$as_echo "$nc_f2008_is0_env_additions" >&6; } 6904 6905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports TS29113 standard extension" >&5 6906$as_echo_n "checking if Fortran compiler supports TS29113 standard extension... " >&6; } 6907 cat <<EOF >conftest.f90 6908Program test 6909USE ISO_C_BINDING, ONLY: C_PTRDIFF_T 6910End Program 6911EOF 6912 doit='$FC -c ${FCFLAGS} ${FCFLAGS_f90} conftest.f90' 6913 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 6914 (eval $doit) 2>&5 6915 ac_status=$? 6916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6917 test $ac_status = 0; }; then 6918 nc_ts29113_support=yes 6919 6920$as_echo "#define HAVE_TS29113_SUPPORT 1" >>confdefs.h 6921 6922 else 6923 nc_ts29113_support=no 6924 fi 6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nc_ts29113_support" >&5 6926$as_echo "$nc_ts29113_support" >&6; } 6927 6928 if test "x$nc_iso_c_binding" = xno; then 6929 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6930$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6931as_fn_error $? "Can't use build F03 interfaces 6932See \`config.log' for more details" "$LINENO" 5; } 6933 fi 6934fi 6935 6936# Test to see if fortran compiler supports the flag 6937# -fallow-argument-mismatch flag introduced in gfortran 10. 6938# 6939# Also allow support for NAG compiler using the -mismatch_all flag. 6940# 6941# See https://github.com/Unidata/netcdf-fortran/issues/212 6942# See https://github.com/Unidata/netcdf-fortran/issues/218 6943ac_save_FCFLAGS="$FCFLAGS" 6944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports allow-mismatch flag" >&5 6945$as_echo_n "checking if Fortran compiler supports allow-mismatch flag... " >&6; } 6946cat <<EOF >conftest.f90 6947Program test 6948USE ISO_C_BINDING, ONLY: C_PTRDIFF_T 6949End Program 6950EOF 6951doit='$FC -c ${FCFLAGS} ${FCFLAGS_f90} -fallow-argument-mismatch conftest.f90' 6952if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 6953 (eval $doit) 2>&5 6954 ac_status=$? 6955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6956 test $ac_status = 0; }; then 6957 nf_allow_mismatch=yes 6958 FCFLAGS="${FCFLAGS} -fallow-argument-mismatch" 6959 else 6960 nf_allow_mismatch=no 6961fi 6962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $nf_allow_mismatch" >&5 6963$as_echo "$nf_allow_mismatch" >&6; } 6964# End testing of gfortan allow-mismatch flags. 6965 6966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports mismatch_all flag" >&5 6967$as_echo_n "checking if Fortran compiler supports mismatch_all flag... " >&6; } 6968cat <<EOF >conftest.f90 6969Program test 6970USE ISO_C_BINDING, ONLY: C_PTRDIFF_T 6971End Program 6972EOF 6973doit='$FC -c ${FCFLAGS} ${FCFLAGS_f90} -mismatch_all conftest.f90' 6974if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 6975 (eval $doit) 2>&5 6976 ac_status=$? 6977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6978 test $ac_status = 0; }; then 6979 nf_mismatch_all=yes 6980 FCFLAGS="${FCFLAGS} -mismatch_all" 6981 else 6982 nf_mismatch_all=no 6983fi 6984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $nf_mismatch_all" >&5 6985$as_echo "$nf_mismatch_all" >&6; } 6986 6987#end testing of NAG mismatch_all flag. 6988 6989## 6990# End mismatch checks 6991## 6992 6993 6994# We must have F2003 ISO bindings to build. 6995if test "x$nc_iso_c_binding" = xno; then 6996 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6997$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6998as_fn_error $? "Fortran 2003 interface not supported 6999See \`config.log' for more details" "$LINENO" 5; } 7000fi 7001nc_build_f03=yes 7002 7003 7004# Does the user want to check into fortran type information? 7005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fortran type sizes should be checked" >&5 7006$as_echo_n "checking whether fortran type sizes should be checked... " >&6; } 7007# Check whether --enable-fortran-type-check was given. 7008if test "${enable_fortran_type_check+set}" = set; then : 7009 enableval=$enable_fortran_type_check; 7010fi 7011 7012test "x$enable_fortran_type_check" = xno || enable_fortran_type_check=yes 7013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_fortran_type_check" >&5 7014$as_echo "$enable_fortran_type_check" >&6; } 7015 7016# Does the user want to run tests for large files (> 2GiB)? 7017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether large file (> 2GB) tests should be run" >&5 7018$as_echo_n "checking whether large file (> 2GB) tests should be run... " >&6; } 7019# Check whether --enable-large-file-tests was given. 7020if test "${enable_large_file_tests+set}" = set; then : 7021 enableval=$enable_large_file_tests; 7022fi 7023 7024test "x$enable_large_file_tests" = xyes || enable_large_file_tests=no 7025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_large_file_tests" >&5 7026$as_echo "$enable_large_file_tests" >&6; } 7027 if test x$enable_large_file_tests = xyes; then 7028 LARGE_FILE_TESTS_TRUE= 7029 LARGE_FILE_TESTS_FALSE='#' 7030else 7031 LARGE_FILE_TESTS_TRUE='#' 7032 LARGE_FILE_TESTS_FALSE= 7033fi 7034 7035if test "x$enable_large_file_tests" = xyes; then 7036 7037$as_echo "#define LARGE_FILE_TESTS 1" >>confdefs.h 7038 7039fi 7040 7041# Does the user want to run benchmarks? 7042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether benchmarks should be run" >&5 7043$as_echo_n "checking whether benchmarks should be run... " >&6; } 7044# Check whether --enable-benchmarks was given. 7045if test "${enable_benchmarks+set}" = set; then : 7046 enableval=$enable_benchmarks; 7047fi 7048 7049test "x$enable_benchmarks" = xno || enable_benchmarks=yes 7050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_benchmarks" >&5 7051$as_echo "$enable_benchmarks" >&6; } 7052 if test x$enable_benchmarks = xyes; then 7053 BUILD_BENCHMARKS_TRUE= 7054 BUILD_BENCHMARKS_FALSE='#' 7055else 7056 BUILD_BENCHMARKS_TRUE='#' 7057 BUILD_BENCHMARKS_FALSE= 7058fi 7059 7060 7061# If the env. variable TEMP_LARGE is set, or if 7062# --with-temp-large=<directory>, use it as a place for the large 7063# (i.e. > 2 GiB) files created during the large file testing. 7064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to put large temp files if large file tests are run" >&5 7065$as_echo_n "checking where to put large temp files if large file tests are run... " >&6; } 7066 7067# Check whether --with-temp-large was given. 7068if test "${with_temp_large+set}" = set; then : 7069 withval=$with_temp_large; TEMP_LARGE=$with_temp_large 7070fi 7071 7072TEMP_LARGE=${TEMP_LARGE-.} 7073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEMP_LARGE" >&5 7074$as_echo "$TEMP_LARGE" >&6; } 7075 7076cat >>confdefs.h <<_ACEOF 7077#define TEMP_LARGE "$TEMP_LARGE" 7078_ACEOF 7079 7080 7081# Allow setting the fortran module install dir 7082 7083# Check whether --with-fmoddir was given. 7084if test "${with_fmoddir+set}" = set; then : 7085 withval=$with_fmoddir; fmoddir=$withval 7086else 7087 fmoddir="\${includedir}" 7088fi 7089 7090fmoddir=$fmoddir 7091 7092 7093# Set up libtool. 7094{ $as_echo "$as_me:${as_lineno-$LINENO}: setting up libtool" >&5 7095$as_echo "$as_me: setting up libtool" >&6;} 7096 7097case `pwd` in 7098 *\ * | *\ *) 7099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 7100$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 7101esac 7102 7103 7104 7105macro_version='2.4.6' 7106macro_revision='2.4.6' 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120ltmain=$ac_aux_dir/ltmain.sh 7121 7122# Backslashify metacharacters that are still active within 7123# double-quoted strings. 7124sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7125 7126# Same as above, but do not quote variable references. 7127double_quote_subst='s/\(["`\\]\)/\\\1/g' 7128 7129# Sed substitution to delay expansion of an escaped shell variable in a 7130# double_quote_subst'ed string. 7131delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7132 7133# Sed substitution to delay expansion of an escaped single quote. 7134delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7135 7136# Sed substitution to avoid accidental globbing in evaled expressions 7137no_glob_subst='s/\*/\\\*/g' 7138 7139ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 7140ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 7141ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 7142 7143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 7144$as_echo_n "checking how to print strings... " >&6; } 7145# Test print first, because it will be a builtin if present. 7146if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 7147 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 7148 ECHO='print -r --' 7149elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 7150 ECHO='printf %s\n' 7151else 7152 # Use this function as a fallback that always works. 7153 func_fallback_echo () 7154 { 7155 eval 'cat <<_LTECHO_EOF 7156$1 7157_LTECHO_EOF' 7158 } 7159 ECHO='func_fallback_echo' 7160fi 7161 7162# func_echo_all arg... 7163# Invoke $ECHO with all args, space-separated. 7164func_echo_all () 7165{ 7166 $ECHO "" 7167} 7168 7169case $ECHO in 7170 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 7171$as_echo "printf" >&6; } ;; 7172 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 7173$as_echo "print -r" >&6; } ;; 7174 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 7175$as_echo "cat" >&6; } ;; 7176esac 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 7192$as_echo_n "checking for a sed that does not truncate output... " >&6; } 7193if ${ac_cv_path_SED+:} false; then : 7194 $as_echo_n "(cached) " >&6 7195else 7196 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 7197 for ac_i in 1 2 3 4 5 6 7; do 7198 ac_script="$ac_script$as_nl$ac_script" 7199 done 7200 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 7201 { ac_script=; unset ac_script;} 7202 if test -z "$SED"; then 7203 ac_path_SED_found=false 7204 # Loop through the user's path and test for each of PROGNAME-LIST 7205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7206for as_dir in $PATH 7207do 7208 IFS=$as_save_IFS 7209 test -z "$as_dir" && as_dir=. 7210 for ac_prog in sed gsed; do 7211 for ac_exec_ext in '' $ac_executable_extensions; do 7212 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 7213 as_fn_executable_p "$ac_path_SED" || continue 7214# Check for GNU ac_path_SED and select it if it is found. 7215 # Check for GNU $ac_path_SED 7216case `"$ac_path_SED" --version 2>&1` in 7217*GNU*) 7218 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 7219*) 7220 ac_count=0 7221 $as_echo_n 0123456789 >"conftest.in" 7222 while : 7223 do 7224 cat "conftest.in" "conftest.in" >"conftest.tmp" 7225 mv "conftest.tmp" "conftest.in" 7226 cp "conftest.in" "conftest.nl" 7227 $as_echo '' >> "conftest.nl" 7228 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 7229 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7230 as_fn_arith $ac_count + 1 && ac_count=$as_val 7231 if test $ac_count -gt ${ac_path_SED_max-0}; then 7232 # Best one so far, save it but keep looking for a better one 7233 ac_cv_path_SED="$ac_path_SED" 7234 ac_path_SED_max=$ac_count 7235 fi 7236 # 10*(2^10) chars as input seems more than enough 7237 test $ac_count -gt 10 && break 7238 done 7239 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7240esac 7241 7242 $ac_path_SED_found && break 3 7243 done 7244 done 7245 done 7246IFS=$as_save_IFS 7247 if test -z "$ac_cv_path_SED"; then 7248 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 7249 fi 7250else 7251 ac_cv_path_SED=$SED 7252fi 7253 7254fi 7255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 7256$as_echo "$ac_cv_path_SED" >&6; } 7257 SED="$ac_cv_path_SED" 7258 rm -f conftest.sed 7259 7260test -z "$SED" && SED=sed 7261Xsed="$SED -e 1s/^X//" 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 7274$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 7275if ${ac_cv_path_GREP+:} false; then : 7276 $as_echo_n "(cached) " >&6 7277else 7278 if test -z "$GREP"; then 7279 ac_path_GREP_found=false 7280 # Loop through the user's path and test for each of PROGNAME-LIST 7281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7282for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7283do 7284 IFS=$as_save_IFS 7285 test -z "$as_dir" && as_dir=. 7286 for ac_prog in grep ggrep; do 7287 for ac_exec_ext in '' $ac_executable_extensions; do 7288 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 7289 as_fn_executable_p "$ac_path_GREP" || continue 7290# Check for GNU ac_path_GREP and select it if it is found. 7291 # Check for GNU $ac_path_GREP 7292case `"$ac_path_GREP" --version 2>&1` in 7293*GNU*) 7294 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 7295*) 7296 ac_count=0 7297 $as_echo_n 0123456789 >"conftest.in" 7298 while : 7299 do 7300 cat "conftest.in" "conftest.in" >"conftest.tmp" 7301 mv "conftest.tmp" "conftest.in" 7302 cp "conftest.in" "conftest.nl" 7303 $as_echo 'GREP' >> "conftest.nl" 7304 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 7305 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7306 as_fn_arith $ac_count + 1 && ac_count=$as_val 7307 if test $ac_count -gt ${ac_path_GREP_max-0}; then 7308 # Best one so far, save it but keep looking for a better one 7309 ac_cv_path_GREP="$ac_path_GREP" 7310 ac_path_GREP_max=$ac_count 7311 fi 7312 # 10*(2^10) chars as input seems more than enough 7313 test $ac_count -gt 10 && break 7314 done 7315 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7316esac 7317 7318 $ac_path_GREP_found && break 3 7319 done 7320 done 7321 done 7322IFS=$as_save_IFS 7323 if test -z "$ac_cv_path_GREP"; then 7324 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7325 fi 7326else 7327 ac_cv_path_GREP=$GREP 7328fi 7329 7330fi 7331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 7332$as_echo "$ac_cv_path_GREP" >&6; } 7333 GREP="$ac_cv_path_GREP" 7334 7335 7336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 7337$as_echo_n "checking for egrep... " >&6; } 7338if ${ac_cv_path_EGREP+:} false; then : 7339 $as_echo_n "(cached) " >&6 7340else 7341 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 7342 then ac_cv_path_EGREP="$GREP -E" 7343 else 7344 if test -z "$EGREP"; then 7345 ac_path_EGREP_found=false 7346 # Loop through the user's path and test for each of PROGNAME-LIST 7347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7348for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7349do 7350 IFS=$as_save_IFS 7351 test -z "$as_dir" && as_dir=. 7352 for ac_prog in egrep; do 7353 for ac_exec_ext in '' $ac_executable_extensions; do 7354 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 7355 as_fn_executable_p "$ac_path_EGREP" || continue 7356# Check for GNU ac_path_EGREP and select it if it is found. 7357 # Check for GNU $ac_path_EGREP 7358case `"$ac_path_EGREP" --version 2>&1` in 7359*GNU*) 7360 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 7361*) 7362 ac_count=0 7363 $as_echo_n 0123456789 >"conftest.in" 7364 while : 7365 do 7366 cat "conftest.in" "conftest.in" >"conftest.tmp" 7367 mv "conftest.tmp" "conftest.in" 7368 cp "conftest.in" "conftest.nl" 7369 $as_echo 'EGREP' >> "conftest.nl" 7370 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 7371 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7372 as_fn_arith $ac_count + 1 && ac_count=$as_val 7373 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 7374 # Best one so far, save it but keep looking for a better one 7375 ac_cv_path_EGREP="$ac_path_EGREP" 7376 ac_path_EGREP_max=$ac_count 7377 fi 7378 # 10*(2^10) chars as input seems more than enough 7379 test $ac_count -gt 10 && break 7380 done 7381 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7382esac 7383 7384 $ac_path_EGREP_found && break 3 7385 done 7386 done 7387 done 7388IFS=$as_save_IFS 7389 if test -z "$ac_cv_path_EGREP"; then 7390 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7391 fi 7392else 7393 ac_cv_path_EGREP=$EGREP 7394fi 7395 7396 fi 7397fi 7398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 7399$as_echo "$ac_cv_path_EGREP" >&6; } 7400 EGREP="$ac_cv_path_EGREP" 7401 7402 7403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 7404$as_echo_n "checking for fgrep... " >&6; } 7405if ${ac_cv_path_FGREP+:} false; then : 7406 $as_echo_n "(cached) " >&6 7407else 7408 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 7409 then ac_cv_path_FGREP="$GREP -F" 7410 else 7411 if test -z "$FGREP"; then 7412 ac_path_FGREP_found=false 7413 # Loop through the user's path and test for each of PROGNAME-LIST 7414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7415for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7416do 7417 IFS=$as_save_IFS 7418 test -z "$as_dir" && as_dir=. 7419 for ac_prog in fgrep; do 7420 for ac_exec_ext in '' $ac_executable_extensions; do 7421 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 7422 as_fn_executable_p "$ac_path_FGREP" || continue 7423# Check for GNU ac_path_FGREP and select it if it is found. 7424 # Check for GNU $ac_path_FGREP 7425case `"$ac_path_FGREP" --version 2>&1` in 7426*GNU*) 7427 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 7428*) 7429 ac_count=0 7430 $as_echo_n 0123456789 >"conftest.in" 7431 while : 7432 do 7433 cat "conftest.in" "conftest.in" >"conftest.tmp" 7434 mv "conftest.tmp" "conftest.in" 7435 cp "conftest.in" "conftest.nl" 7436 $as_echo 'FGREP' >> "conftest.nl" 7437 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 7438 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7439 as_fn_arith $ac_count + 1 && ac_count=$as_val 7440 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 7441 # Best one so far, save it but keep looking for a better one 7442 ac_cv_path_FGREP="$ac_path_FGREP" 7443 ac_path_FGREP_max=$ac_count 7444 fi 7445 # 10*(2^10) chars as input seems more than enough 7446 test $ac_count -gt 10 && break 7447 done 7448 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7449esac 7450 7451 $ac_path_FGREP_found && break 3 7452 done 7453 done 7454 done 7455IFS=$as_save_IFS 7456 if test -z "$ac_cv_path_FGREP"; then 7457 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7458 fi 7459else 7460 ac_cv_path_FGREP=$FGREP 7461fi 7462 7463 fi 7464fi 7465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 7466$as_echo "$ac_cv_path_FGREP" >&6; } 7467 FGREP="$ac_cv_path_FGREP" 7468 7469 7470test -z "$GREP" && GREP=grep 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490# Check whether --with-gnu-ld was given. 7491if test "${with_gnu_ld+set}" = set; then : 7492 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 7493else 7494 with_gnu_ld=no 7495fi 7496 7497ac_prog=ld 7498if test yes = "$GCC"; then 7499 # Check if gcc -print-prog-name=ld gives a path. 7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 7501$as_echo_n "checking for ld used by $CC... " >&6; } 7502 case $host in 7503 *-*-mingw*) 7504 # gcc leaves a trailing carriage return, which upsets mingw 7505 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 7506 *) 7507 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 7508 esac 7509 case $ac_prog in 7510 # Accept absolute paths. 7511 [\\/]* | ?:[\\/]*) 7512 re_direlt='/[^/][^/]*/\.\./' 7513 # Canonicalize the pathname of ld 7514 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 7515 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 7516 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 7517 done 7518 test -z "$LD" && LD=$ac_prog 7519 ;; 7520 "") 7521 # If it fails, then pretend we aren't using GCC. 7522 ac_prog=ld 7523 ;; 7524 *) 7525 # If it is relative, then search for the first ld in PATH. 7526 with_gnu_ld=unknown 7527 ;; 7528 esac 7529elif test yes = "$with_gnu_ld"; then 7530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 7531$as_echo_n "checking for GNU ld... " >&6; } 7532else 7533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 7534$as_echo_n "checking for non-GNU ld... " >&6; } 7535fi 7536if ${lt_cv_path_LD+:} false; then : 7537 $as_echo_n "(cached) " >&6 7538else 7539 if test -z "$LD"; then 7540 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 7541 for ac_dir in $PATH; do 7542 IFS=$lt_save_ifs 7543 test -z "$ac_dir" && ac_dir=. 7544 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 7545 lt_cv_path_LD=$ac_dir/$ac_prog 7546 # Check to see if the program is GNU ld. I'd rather use --version, 7547 # but apparently some variants of GNU ld only accept -v. 7548 # Break only if it was the GNU/non-GNU ld that we prefer. 7549 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 7550 *GNU* | *'with BFD'*) 7551 test no != "$with_gnu_ld" && break 7552 ;; 7553 *) 7554 test yes != "$with_gnu_ld" && break 7555 ;; 7556 esac 7557 fi 7558 done 7559 IFS=$lt_save_ifs 7560else 7561 lt_cv_path_LD=$LD # Let the user override the test with a path. 7562fi 7563fi 7564 7565LD=$lt_cv_path_LD 7566if test -n "$LD"; then 7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 7568$as_echo "$LD" >&6; } 7569else 7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7571$as_echo "no" >&6; } 7572fi 7573test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 7574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 7575$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 7576if ${lt_cv_prog_gnu_ld+:} false; then : 7577 $as_echo_n "(cached) " >&6 7578else 7579 # I'd rather use --version here, but apparently some GNU lds only accept -v. 7580case `$LD -v 2>&1 </dev/null` in 7581*GNU* | *'with BFD'*) 7582 lt_cv_prog_gnu_ld=yes 7583 ;; 7584*) 7585 lt_cv_prog_gnu_ld=no 7586 ;; 7587esac 7588fi 7589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 7590$as_echo "$lt_cv_prog_gnu_ld" >&6; } 7591with_gnu_ld=$lt_cv_prog_gnu_ld 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 7602$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 7603if ${lt_cv_path_NM+:} false; then : 7604 $as_echo_n "(cached) " >&6 7605else 7606 if test -n "$NM"; then 7607 # Let the user override the test. 7608 lt_cv_path_NM=$NM 7609else 7610 lt_nm_to_check=${ac_tool_prefix}nm 7611 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 7612 lt_nm_to_check="$lt_nm_to_check nm" 7613 fi 7614 for lt_tmp_nm in $lt_nm_to_check; do 7615 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 7616 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 7617 IFS=$lt_save_ifs 7618 test -z "$ac_dir" && ac_dir=. 7619 tmp_nm=$ac_dir/$lt_tmp_nm 7620 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 7621 # Check to see if the nm accepts a BSD-compat flag. 7622 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 7623 # nm: unknown option "B" ignored 7624 # Tru64's nm complains that /dev/null is an invalid object file 7625 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 7626 case $build_os in 7627 mingw*) lt_bad_file=conftest.nm/nofile ;; 7628 *) lt_bad_file=/dev/null ;; 7629 esac 7630 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 7631 *$lt_bad_file* | *'Invalid file or object type'*) 7632 lt_cv_path_NM="$tmp_nm -B" 7633 break 2 7634 ;; 7635 *) 7636 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 7637 */dev/null*) 7638 lt_cv_path_NM="$tmp_nm -p" 7639 break 2 7640 ;; 7641 *) 7642 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 7643 continue # so that we can try to find one that supports BSD flags 7644 ;; 7645 esac 7646 ;; 7647 esac 7648 fi 7649 done 7650 IFS=$lt_save_ifs 7651 done 7652 : ${lt_cv_path_NM=no} 7653fi 7654fi 7655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 7656$as_echo "$lt_cv_path_NM" >&6; } 7657if test no != "$lt_cv_path_NM"; then 7658 NM=$lt_cv_path_NM 7659else 7660 # Didn't find any BSD compatible name lister, look for dumpbin. 7661 if test -n "$DUMPBIN"; then : 7662 # Let the user override the test. 7663 else 7664 if test -n "$ac_tool_prefix"; then 7665 for ac_prog in dumpbin "link -dump" 7666 do 7667 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7668set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7670$as_echo_n "checking for $ac_word... " >&6; } 7671if ${ac_cv_prog_DUMPBIN+:} false; then : 7672 $as_echo_n "(cached) " >&6 7673else 7674 if test -n "$DUMPBIN"; then 7675 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 7676else 7677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7678for as_dir in $PATH 7679do 7680 IFS=$as_save_IFS 7681 test -z "$as_dir" && as_dir=. 7682 for ac_exec_ext in '' $ac_executable_extensions; do 7683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7684 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 7685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7686 break 2 7687 fi 7688done 7689 done 7690IFS=$as_save_IFS 7691 7692fi 7693fi 7694DUMPBIN=$ac_cv_prog_DUMPBIN 7695if test -n "$DUMPBIN"; then 7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 7697$as_echo "$DUMPBIN" >&6; } 7698else 7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7700$as_echo "no" >&6; } 7701fi 7702 7703 7704 test -n "$DUMPBIN" && break 7705 done 7706fi 7707if test -z "$DUMPBIN"; then 7708 ac_ct_DUMPBIN=$DUMPBIN 7709 for ac_prog in dumpbin "link -dump" 7710do 7711 # Extract the first word of "$ac_prog", so it can be a program name with args. 7712set dummy $ac_prog; ac_word=$2 7713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7714$as_echo_n "checking for $ac_word... " >&6; } 7715if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 7716 $as_echo_n "(cached) " >&6 7717else 7718 if test -n "$ac_ct_DUMPBIN"; then 7719 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 7720else 7721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7722for as_dir in $PATH 7723do 7724 IFS=$as_save_IFS 7725 test -z "$as_dir" && as_dir=. 7726 for ac_exec_ext in '' $ac_executable_extensions; do 7727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7728 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 7729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7730 break 2 7731 fi 7732done 7733 done 7734IFS=$as_save_IFS 7735 7736fi 7737fi 7738ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 7739if test -n "$ac_ct_DUMPBIN"; then 7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 7741$as_echo "$ac_ct_DUMPBIN" >&6; } 7742else 7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7744$as_echo "no" >&6; } 7745fi 7746 7747 7748 test -n "$ac_ct_DUMPBIN" && break 7749done 7750 7751 if test "x$ac_ct_DUMPBIN" = x; then 7752 DUMPBIN=":" 7753 else 7754 case $cross_compiling:$ac_tool_warned in 7755yes:) 7756{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7757$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7758ac_tool_warned=yes ;; 7759esac 7760 DUMPBIN=$ac_ct_DUMPBIN 7761 fi 7762fi 7763 7764 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 7765 *COFF*) 7766 DUMPBIN="$DUMPBIN -symbols -headers" 7767 ;; 7768 *) 7769 DUMPBIN=: 7770 ;; 7771 esac 7772 fi 7773 7774 if test : != "$DUMPBIN"; then 7775 NM=$DUMPBIN 7776 fi 7777fi 7778test -z "$NM" && NM=nm 7779 7780 7781 7782 7783 7784 7785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 7786$as_echo_n "checking the name lister ($NM) interface... " >&6; } 7787if ${lt_cv_nm_interface+:} false; then : 7788 $as_echo_n "(cached) " >&6 7789else 7790 lt_cv_nm_interface="BSD nm" 7791 echo "int some_variable = 0;" > conftest.$ac_ext 7792 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 7793 (eval "$ac_compile" 2>conftest.err) 7794 cat conftest.err >&5 7795 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 7796 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 7797 cat conftest.err >&5 7798 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 7799 cat conftest.out >&5 7800 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 7801 lt_cv_nm_interface="MS dumpbin" 7802 fi 7803 rm -f conftest* 7804fi 7805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 7806$as_echo "$lt_cv_nm_interface" >&6; } 7807 7808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 7809$as_echo_n "checking whether ln -s works... " >&6; } 7810LN_S=$as_ln_s 7811if test "$LN_S" = "ln -s"; then 7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7813$as_echo "yes" >&6; } 7814else 7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 7816$as_echo "no, using $LN_S" >&6; } 7817fi 7818 7819# find the maximum length of command line arguments 7820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 7821$as_echo_n "checking the maximum length of command line arguments... " >&6; } 7822if ${lt_cv_sys_max_cmd_len+:} false; then : 7823 $as_echo_n "(cached) " >&6 7824else 7825 i=0 7826 teststring=ABCD 7827 7828 case $build_os in 7829 msdosdjgpp*) 7830 # On DJGPP, this test can blow up pretty badly due to problems in libc 7831 # (any single argument exceeding 2000 bytes causes a buffer overrun 7832 # during glob expansion). Even if it were fixed, the result of this 7833 # check would be larger than it should be. 7834 lt_cv_sys_max_cmd_len=12288; # 12K is about right 7835 ;; 7836 7837 gnu*) 7838 # Under GNU Hurd, this test is not required because there is 7839 # no limit to the length of command line arguments. 7840 # Libtool will interpret -1 as no limit whatsoever 7841 lt_cv_sys_max_cmd_len=-1; 7842 ;; 7843 7844 cygwin* | mingw* | cegcc*) 7845 # On Win9x/ME, this test blows up -- it succeeds, but takes 7846 # about 5 minutes as the teststring grows exponentially. 7847 # Worse, since 9x/ME are not pre-emptively multitasking, 7848 # you end up with a "frozen" computer, even though with patience 7849 # the test eventually succeeds (with a max line length of 256k). 7850 # Instead, let's just punt: use the minimum linelength reported by 7851 # all of the supported platforms: 8192 (on NT/2K/XP). 7852 lt_cv_sys_max_cmd_len=8192; 7853 ;; 7854 7855 mint*) 7856 # On MiNT this can take a long time and run out of memory. 7857 lt_cv_sys_max_cmd_len=8192; 7858 ;; 7859 7860 amigaos*) 7861 # On AmigaOS with pdksh, this test takes hours, literally. 7862 # So we just punt and use a minimum line length of 8192. 7863 lt_cv_sys_max_cmd_len=8192; 7864 ;; 7865 7866 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 7867 # This has been around since 386BSD, at least. Likely further. 7868 if test -x /sbin/sysctl; then 7869 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 7870 elif test -x /usr/sbin/sysctl; then 7871 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 7872 else 7873 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 7874 fi 7875 # And add a safety zone 7876 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7877 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7878 ;; 7879 7880 interix*) 7881 # We know the value 262144 and hardcode it with a safety zone (like BSD) 7882 lt_cv_sys_max_cmd_len=196608 7883 ;; 7884 7885 os2*) 7886 # The test takes a long time on OS/2. 7887 lt_cv_sys_max_cmd_len=8192 7888 ;; 7889 7890 osf*) 7891 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 7892 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 7893 # nice to cause kernel panics so lets avoid the loop below. 7894 # First set a reasonable default. 7895 lt_cv_sys_max_cmd_len=16384 7896 # 7897 if test -x /sbin/sysconfig; then 7898 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 7899 *1*) lt_cv_sys_max_cmd_len=-1 ;; 7900 esac 7901 fi 7902 ;; 7903 sco3.2v5*) 7904 lt_cv_sys_max_cmd_len=102400 7905 ;; 7906 sysv5* | sco5v6* | sysv4.2uw2*) 7907 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 7908 if test -n "$kargmax"; then 7909 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 7910 else 7911 lt_cv_sys_max_cmd_len=32768 7912 fi 7913 ;; 7914 *) 7915 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 7916 if test -n "$lt_cv_sys_max_cmd_len" && \ 7917 test undefined != "$lt_cv_sys_max_cmd_len"; then 7918 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7919 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7920 else 7921 # Make teststring a little bigger before we do anything with it. 7922 # a 1K string should be a reasonable start. 7923 for i in 1 2 3 4 5 6 7 8; do 7924 teststring=$teststring$teststring 7925 done 7926 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 7927 # If test is not a shell built-in, we'll probably end up computing a 7928 # maximum length that is only half of the actual maximum length, but 7929 # we can't tell. 7930 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 7931 = "X$teststring$teststring"; } >/dev/null 2>&1 && 7932 test 17 != "$i" # 1/2 MB should be enough 7933 do 7934 i=`expr $i + 1` 7935 teststring=$teststring$teststring 7936 done 7937 # Only check the string length outside the loop. 7938 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 7939 teststring= 7940 # Add a significant safety factor because C++ compilers can tack on 7941 # massive amounts of additional arguments before passing them to the 7942 # linker. It appears as though 1/2 is a usable value. 7943 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 7944 fi 7945 ;; 7946 esac 7947 7948fi 7949 7950if test -n "$lt_cv_sys_max_cmd_len"; then 7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 7952$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 7953else 7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 7955$as_echo "none" >&6; } 7956fi 7957max_cmd_len=$lt_cv_sys_max_cmd_len 7958 7959 7960 7961 7962 7963 7964: ${CP="cp -f"} 7965: ${MV="mv -f"} 7966: ${RM="rm -f"} 7967 7968if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 7969 lt_unset=unset 7970else 7971 lt_unset=false 7972fi 7973 7974 7975 7976 7977 7978# test EBCDIC or ASCII 7979case `echo X|tr X '\101'` in 7980 A) # ASCII based system 7981 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 7982 lt_SP2NL='tr \040 \012' 7983 lt_NL2SP='tr \015\012 \040\040' 7984 ;; 7985 *) # EBCDIC based system 7986 lt_SP2NL='tr \100 \n' 7987 lt_NL2SP='tr \r\n \100\100' 7988 ;; 7989esac 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 8000$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 8001if ${lt_cv_to_host_file_cmd+:} false; then : 8002 $as_echo_n "(cached) " >&6 8003else 8004 case $host in 8005 *-*-mingw* ) 8006 case $build in 8007 *-*-mingw* ) # actually msys 8008 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 8009 ;; 8010 *-*-cygwin* ) 8011 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 8012 ;; 8013 * ) # otherwise, assume *nix 8014 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 8015 ;; 8016 esac 8017 ;; 8018 *-*-cygwin* ) 8019 case $build in 8020 *-*-mingw* ) # actually msys 8021 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 8022 ;; 8023 *-*-cygwin* ) 8024 lt_cv_to_host_file_cmd=func_convert_file_noop 8025 ;; 8026 * ) # otherwise, assume *nix 8027 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 8028 ;; 8029 esac 8030 ;; 8031 * ) # unhandled hosts (and "normal" native builds) 8032 lt_cv_to_host_file_cmd=func_convert_file_noop 8033 ;; 8034esac 8035 8036fi 8037 8038to_host_file_cmd=$lt_cv_to_host_file_cmd 8039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 8040$as_echo "$lt_cv_to_host_file_cmd" >&6; } 8041 8042 8043 8044 8045 8046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 8047$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 8048if ${lt_cv_to_tool_file_cmd+:} false; then : 8049 $as_echo_n "(cached) " >&6 8050else 8051 #assume ordinary cross tools, or native build. 8052lt_cv_to_tool_file_cmd=func_convert_file_noop 8053case $host in 8054 *-*-mingw* ) 8055 case $build in 8056 *-*-mingw* ) # actually msys 8057 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 8058 ;; 8059 esac 8060 ;; 8061esac 8062 8063fi 8064 8065to_tool_file_cmd=$lt_cv_to_tool_file_cmd 8066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 8067$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 8068 8069 8070 8071 8072 8073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 8074$as_echo_n "checking for $LD option to reload object files... " >&6; } 8075if ${lt_cv_ld_reload_flag+:} false; then : 8076 $as_echo_n "(cached) " >&6 8077else 8078 lt_cv_ld_reload_flag='-r' 8079fi 8080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 8081$as_echo "$lt_cv_ld_reload_flag" >&6; } 8082reload_flag=$lt_cv_ld_reload_flag 8083case $reload_flag in 8084"" | " "*) ;; 8085*) reload_flag=" $reload_flag" ;; 8086esac 8087reload_cmds='$LD$reload_flag -o $output$reload_objs' 8088case $host_os in 8089 cygwin* | mingw* | pw32* | cegcc*) 8090 if test yes != "$GCC"; then 8091 reload_cmds=false 8092 fi 8093 ;; 8094 darwin*) 8095 if test yes = "$GCC"; then 8096 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 8097 else 8098 reload_cmds='$LD$reload_flag -o $output$reload_objs' 8099 fi 8100 ;; 8101esac 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111if test -n "$ac_tool_prefix"; then 8112 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 8113set dummy ${ac_tool_prefix}objdump; ac_word=$2 8114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8115$as_echo_n "checking for $ac_word... " >&6; } 8116if ${ac_cv_prog_OBJDUMP+:} false; then : 8117 $as_echo_n "(cached) " >&6 8118else 8119 if test -n "$OBJDUMP"; then 8120 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 8121else 8122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8123for as_dir in $PATH 8124do 8125 IFS=$as_save_IFS 8126 test -z "$as_dir" && as_dir=. 8127 for ac_exec_ext in '' $ac_executable_extensions; do 8128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8129 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 8130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8131 break 2 8132 fi 8133done 8134 done 8135IFS=$as_save_IFS 8136 8137fi 8138fi 8139OBJDUMP=$ac_cv_prog_OBJDUMP 8140if test -n "$OBJDUMP"; then 8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 8142$as_echo "$OBJDUMP" >&6; } 8143else 8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8145$as_echo "no" >&6; } 8146fi 8147 8148 8149fi 8150if test -z "$ac_cv_prog_OBJDUMP"; then 8151 ac_ct_OBJDUMP=$OBJDUMP 8152 # Extract the first word of "objdump", so it can be a program name with args. 8153set dummy objdump; ac_word=$2 8154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8155$as_echo_n "checking for $ac_word... " >&6; } 8156if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 8157 $as_echo_n "(cached) " >&6 8158else 8159 if test -n "$ac_ct_OBJDUMP"; then 8160 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 8161else 8162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8163for as_dir in $PATH 8164do 8165 IFS=$as_save_IFS 8166 test -z "$as_dir" && as_dir=. 8167 for ac_exec_ext in '' $ac_executable_extensions; do 8168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8169 ac_cv_prog_ac_ct_OBJDUMP="objdump" 8170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8171 break 2 8172 fi 8173done 8174 done 8175IFS=$as_save_IFS 8176 8177fi 8178fi 8179ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 8180if test -n "$ac_ct_OBJDUMP"; then 8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 8182$as_echo "$ac_ct_OBJDUMP" >&6; } 8183else 8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8185$as_echo "no" >&6; } 8186fi 8187 8188 if test "x$ac_ct_OBJDUMP" = x; then 8189 OBJDUMP="false" 8190 else 8191 case $cross_compiling:$ac_tool_warned in 8192yes:) 8193{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8194$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8195ac_tool_warned=yes ;; 8196esac 8197 OBJDUMP=$ac_ct_OBJDUMP 8198 fi 8199else 8200 OBJDUMP="$ac_cv_prog_OBJDUMP" 8201fi 8202 8203test -z "$OBJDUMP" && OBJDUMP=objdump 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 8214$as_echo_n "checking how to recognize dependent libraries... " >&6; } 8215if ${lt_cv_deplibs_check_method+:} false; then : 8216 $as_echo_n "(cached) " >&6 8217else 8218 lt_cv_file_magic_cmd='$MAGIC_CMD' 8219lt_cv_file_magic_test_file= 8220lt_cv_deplibs_check_method='unknown' 8221# Need to set the preceding variable on all platforms that support 8222# interlibrary dependencies. 8223# 'none' -- dependencies not supported. 8224# 'unknown' -- same as none, but documents that we really don't know. 8225# 'pass_all' -- all dependencies passed with no checks. 8226# 'test_compile' -- check by making test program. 8227# 'file_magic [[regex]]' -- check by looking for files in library path 8228# that responds to the $file_magic_cmd with a given extended regex. 8229# If you have 'file' or equivalent on your system and you're not sure 8230# whether 'pass_all' will *always* work, you probably want this one. 8231 8232case $host_os in 8233aix[4-9]*) 8234 lt_cv_deplibs_check_method=pass_all 8235 ;; 8236 8237beos*) 8238 lt_cv_deplibs_check_method=pass_all 8239 ;; 8240 8241bsdi[45]*) 8242 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 8243 lt_cv_file_magic_cmd='/usr/bin/file -L' 8244 lt_cv_file_magic_test_file=/shlib/libc.so 8245 ;; 8246 8247cygwin*) 8248 # func_win32_libid is a shell function defined in ltmain.sh 8249 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 8250 lt_cv_file_magic_cmd='func_win32_libid' 8251 ;; 8252 8253mingw* | pw32*) 8254 # Base MSYS/MinGW do not provide the 'file' command needed by 8255 # func_win32_libid shell function, so use a weaker test based on 'objdump', 8256 # unless we find 'file', for example because we are cross-compiling. 8257 if ( file / ) >/dev/null 2>&1; then 8258 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 8259 lt_cv_file_magic_cmd='func_win32_libid' 8260 else 8261 # Keep this pattern in sync with the one in func_win32_libid. 8262 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 8263 lt_cv_file_magic_cmd='$OBJDUMP -f' 8264 fi 8265 ;; 8266 8267cegcc*) 8268 # use the weaker test based on 'objdump'. See mingw*. 8269 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 8270 lt_cv_file_magic_cmd='$OBJDUMP -f' 8271 ;; 8272 8273darwin* | rhapsody*) 8274 lt_cv_deplibs_check_method=pass_all 8275 ;; 8276 8277freebsd* | dragonfly*) 8278 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 8279 case $host_cpu in 8280 i*86 ) 8281 # Not sure whether the presence of OpenBSD here was a mistake. 8282 # Let's accept both of them until this is cleared up. 8283 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 8284 lt_cv_file_magic_cmd=/usr/bin/file 8285 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 8286 ;; 8287 esac 8288 else 8289 lt_cv_deplibs_check_method=pass_all 8290 fi 8291 ;; 8292 8293haiku*) 8294 lt_cv_deplibs_check_method=pass_all 8295 ;; 8296 8297hpux10.20* | hpux11*) 8298 lt_cv_file_magic_cmd=/usr/bin/file 8299 case $host_cpu in 8300 ia64*) 8301 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 8302 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 8303 ;; 8304 hppa*64*) 8305 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]' 8306 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 8307 ;; 8308 *) 8309 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 8310 lt_cv_file_magic_test_file=/usr/lib/libc.sl 8311 ;; 8312 esac 8313 ;; 8314 8315interix[3-9]*) 8316 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 8317 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 8318 ;; 8319 8320irix5* | irix6* | nonstopux*) 8321 case $LD in 8322 *-32|*"-32 ") libmagic=32-bit;; 8323 *-n32|*"-n32 ") libmagic=N32;; 8324 *-64|*"-64 ") libmagic=64-bit;; 8325 *) libmagic=never-match;; 8326 esac 8327 lt_cv_deplibs_check_method=pass_all 8328 ;; 8329 8330# This must be glibc/ELF. 8331linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8332 lt_cv_deplibs_check_method=pass_all 8333 ;; 8334 8335netbsd*) 8336 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 8337 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8338 else 8339 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 8340 fi 8341 ;; 8342 8343newos6*) 8344 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 8345 lt_cv_file_magic_cmd=/usr/bin/file 8346 lt_cv_file_magic_test_file=/usr/lib/libnls.so 8347 ;; 8348 8349*nto* | *qnx*) 8350 lt_cv_deplibs_check_method=pass_all 8351 ;; 8352 8353openbsd* | bitrig*) 8354 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 8355 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 8356 else 8357 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8358 fi 8359 ;; 8360 8361osf3* | osf4* | osf5*) 8362 lt_cv_deplibs_check_method=pass_all 8363 ;; 8364 8365rdos*) 8366 lt_cv_deplibs_check_method=pass_all 8367 ;; 8368 8369solaris*) 8370 lt_cv_deplibs_check_method=pass_all 8371 ;; 8372 8373sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 8374 lt_cv_deplibs_check_method=pass_all 8375 ;; 8376 8377sysv4 | sysv4.3*) 8378 case $host_vendor in 8379 motorola) 8380 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]' 8381 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 8382 ;; 8383 ncr) 8384 lt_cv_deplibs_check_method=pass_all 8385 ;; 8386 sequent) 8387 lt_cv_file_magic_cmd='/bin/file' 8388 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 8389 ;; 8390 sni) 8391 lt_cv_file_magic_cmd='/bin/file' 8392 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 8393 lt_cv_file_magic_test_file=/lib/libc.so 8394 ;; 8395 siemens) 8396 lt_cv_deplibs_check_method=pass_all 8397 ;; 8398 pc) 8399 lt_cv_deplibs_check_method=pass_all 8400 ;; 8401 esac 8402 ;; 8403 8404tpf*) 8405 lt_cv_deplibs_check_method=pass_all 8406 ;; 8407os2*) 8408 lt_cv_deplibs_check_method=pass_all 8409 ;; 8410esac 8411 8412fi 8413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 8414$as_echo "$lt_cv_deplibs_check_method" >&6; } 8415 8416file_magic_glob= 8417want_nocaseglob=no 8418if test "$build" = "$host"; then 8419 case $host_os in 8420 mingw* | pw32*) 8421 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 8422 want_nocaseglob=yes 8423 else 8424 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 8425 fi 8426 ;; 8427 esac 8428fi 8429 8430file_magic_cmd=$lt_cv_file_magic_cmd 8431deplibs_check_method=$lt_cv_deplibs_check_method 8432test -z "$deplibs_check_method" && deplibs_check_method=unknown 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455if test -n "$ac_tool_prefix"; then 8456 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8457set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8459$as_echo_n "checking for $ac_word... " >&6; } 8460if ${ac_cv_prog_DLLTOOL+:} false; then : 8461 $as_echo_n "(cached) " >&6 8462else 8463 if test -n "$DLLTOOL"; then 8464 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8465else 8466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8467for as_dir in $PATH 8468do 8469 IFS=$as_save_IFS 8470 test -z "$as_dir" && as_dir=. 8471 for ac_exec_ext in '' $ac_executable_extensions; do 8472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8473 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 8474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8475 break 2 8476 fi 8477done 8478 done 8479IFS=$as_save_IFS 8480 8481fi 8482fi 8483DLLTOOL=$ac_cv_prog_DLLTOOL 8484if test -n "$DLLTOOL"; then 8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8486$as_echo "$DLLTOOL" >&6; } 8487else 8488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8489$as_echo "no" >&6; } 8490fi 8491 8492 8493fi 8494if test -z "$ac_cv_prog_DLLTOOL"; then 8495 ac_ct_DLLTOOL=$DLLTOOL 8496 # Extract the first word of "dlltool", so it can be a program name with args. 8497set dummy dlltool; ac_word=$2 8498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8499$as_echo_n "checking for $ac_word... " >&6; } 8500if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 8501 $as_echo_n "(cached) " >&6 8502else 8503 if test -n "$ac_ct_DLLTOOL"; then 8504 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 8505else 8506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8507for as_dir in $PATH 8508do 8509 IFS=$as_save_IFS 8510 test -z "$as_dir" && as_dir=. 8511 for ac_exec_ext in '' $ac_executable_extensions; do 8512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8513 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 8514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8515 break 2 8516 fi 8517done 8518 done 8519IFS=$as_save_IFS 8520 8521fi 8522fi 8523ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 8524if test -n "$ac_ct_DLLTOOL"; then 8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 8526$as_echo "$ac_ct_DLLTOOL" >&6; } 8527else 8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8529$as_echo "no" >&6; } 8530fi 8531 8532 if test "x$ac_ct_DLLTOOL" = x; then 8533 DLLTOOL="false" 8534 else 8535 case $cross_compiling:$ac_tool_warned in 8536yes:) 8537{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8538$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8539ac_tool_warned=yes ;; 8540esac 8541 DLLTOOL=$ac_ct_DLLTOOL 8542 fi 8543else 8544 DLLTOOL="$ac_cv_prog_DLLTOOL" 8545fi 8546 8547test -z "$DLLTOOL" && DLLTOOL=dlltool 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557 8558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 8559$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 8560if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 8561 $as_echo_n "(cached) " >&6 8562else 8563 lt_cv_sharedlib_from_linklib_cmd='unknown' 8564 8565case $host_os in 8566cygwin* | mingw* | pw32* | cegcc*) 8567 # two different shell functions defined in ltmain.sh; 8568 # decide which one to use based on capabilities of $DLLTOOL 8569 case `$DLLTOOL --help 2>&1` in 8570 *--identify-strict*) 8571 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 8572 ;; 8573 *) 8574 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 8575 ;; 8576 esac 8577 ;; 8578*) 8579 # fallback: assume linklib IS sharedlib 8580 lt_cv_sharedlib_from_linklib_cmd=$ECHO 8581 ;; 8582esac 8583 8584fi 8585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 8586$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 8587sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 8588test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 8589 8590 8591 8592 8593 8594 8595 8596if test -n "$ac_tool_prefix"; then 8597 for ac_prog in ar 8598 do 8599 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8600set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8602$as_echo_n "checking for $ac_word... " >&6; } 8603if ${ac_cv_prog_AR+:} false; then : 8604 $as_echo_n "(cached) " >&6 8605else 8606 if test -n "$AR"; then 8607 ac_cv_prog_AR="$AR" # Let the user override the test. 8608else 8609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8610for as_dir in $PATH 8611do 8612 IFS=$as_save_IFS 8613 test -z "$as_dir" && as_dir=. 8614 for ac_exec_ext in '' $ac_executable_extensions; do 8615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8616 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 8617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8618 break 2 8619 fi 8620done 8621 done 8622IFS=$as_save_IFS 8623 8624fi 8625fi 8626AR=$ac_cv_prog_AR 8627if test -n "$AR"; then 8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 8629$as_echo "$AR" >&6; } 8630else 8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8632$as_echo "no" >&6; } 8633fi 8634 8635 8636 test -n "$AR" && break 8637 done 8638fi 8639if test -z "$AR"; then 8640 ac_ct_AR=$AR 8641 for ac_prog in ar 8642do 8643 # Extract the first word of "$ac_prog", so it can be a program name with args. 8644set dummy $ac_prog; ac_word=$2 8645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8646$as_echo_n "checking for $ac_word... " >&6; } 8647if ${ac_cv_prog_ac_ct_AR+:} false; then : 8648 $as_echo_n "(cached) " >&6 8649else 8650 if test -n "$ac_ct_AR"; then 8651 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 8652else 8653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8654for as_dir in $PATH 8655do 8656 IFS=$as_save_IFS 8657 test -z "$as_dir" && as_dir=. 8658 for ac_exec_ext in '' $ac_executable_extensions; do 8659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8660 ac_cv_prog_ac_ct_AR="$ac_prog" 8661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8662 break 2 8663 fi 8664done 8665 done 8666IFS=$as_save_IFS 8667 8668fi 8669fi 8670ac_ct_AR=$ac_cv_prog_ac_ct_AR 8671if test -n "$ac_ct_AR"; then 8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 8673$as_echo "$ac_ct_AR" >&6; } 8674else 8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8676$as_echo "no" >&6; } 8677fi 8678 8679 8680 test -n "$ac_ct_AR" && break 8681done 8682 8683 if test "x$ac_ct_AR" = x; then 8684 AR="false" 8685 else 8686 case $cross_compiling:$ac_tool_warned in 8687yes:) 8688{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8689$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8690ac_tool_warned=yes ;; 8691esac 8692 AR=$ac_ct_AR 8693 fi 8694fi 8695 8696: ${AR=ar} 8697: ${AR_FLAGS=cru} 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 8710$as_echo_n "checking for archiver @FILE support... " >&6; } 8711if ${lt_cv_ar_at_file+:} false; then : 8712 $as_echo_n "(cached) " >&6 8713else 8714 lt_cv_ar_at_file=no 8715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8716/* end confdefs.h. */ 8717 8718int 8719main () 8720{ 8721 8722 ; 8723 return 0; 8724} 8725_ACEOF 8726if ac_fn_c_try_compile "$LINENO"; then : 8727 echo conftest.$ac_objext > conftest.lst 8728 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 8729 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8730 (eval $lt_ar_try) 2>&5 8731 ac_status=$? 8732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8733 test $ac_status = 0; } 8734 if test 0 -eq "$ac_status"; then 8735 # Ensure the archiver fails upon bogus file names. 8736 rm -f conftest.$ac_objext libconftest.a 8737 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8738 (eval $lt_ar_try) 2>&5 8739 ac_status=$? 8740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8741 test $ac_status = 0; } 8742 if test 0 -ne "$ac_status"; then 8743 lt_cv_ar_at_file=@ 8744 fi 8745 fi 8746 rm -f conftest.* libconftest.a 8747 8748fi 8749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8750 8751fi 8752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 8753$as_echo "$lt_cv_ar_at_file" >&6; } 8754 8755if test no = "$lt_cv_ar_at_file"; then 8756 archiver_list_spec= 8757else 8758 archiver_list_spec=$lt_cv_ar_at_file 8759fi 8760 8761 8762 8763 8764 8765 8766 8767if test -n "$ac_tool_prefix"; then 8768 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 8769set dummy ${ac_tool_prefix}strip; ac_word=$2 8770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8771$as_echo_n "checking for $ac_word... " >&6; } 8772if ${ac_cv_prog_STRIP+:} false; then : 8773 $as_echo_n "(cached) " >&6 8774else 8775 if test -n "$STRIP"; then 8776 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 8777else 8778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8779for as_dir in $PATH 8780do 8781 IFS=$as_save_IFS 8782 test -z "$as_dir" && as_dir=. 8783 for ac_exec_ext in '' $ac_executable_extensions; do 8784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8785 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 8786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8787 break 2 8788 fi 8789done 8790 done 8791IFS=$as_save_IFS 8792 8793fi 8794fi 8795STRIP=$ac_cv_prog_STRIP 8796if test -n "$STRIP"; then 8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 8798$as_echo "$STRIP" >&6; } 8799else 8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8801$as_echo "no" >&6; } 8802fi 8803 8804 8805fi 8806if test -z "$ac_cv_prog_STRIP"; then 8807 ac_ct_STRIP=$STRIP 8808 # Extract the first word of "strip", so it can be a program name with args. 8809set dummy strip; ac_word=$2 8810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8811$as_echo_n "checking for $ac_word... " >&6; } 8812if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 8813 $as_echo_n "(cached) " >&6 8814else 8815 if test -n "$ac_ct_STRIP"; then 8816 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 8817else 8818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8819for as_dir in $PATH 8820do 8821 IFS=$as_save_IFS 8822 test -z "$as_dir" && as_dir=. 8823 for ac_exec_ext in '' $ac_executable_extensions; do 8824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8825 ac_cv_prog_ac_ct_STRIP="strip" 8826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8827 break 2 8828 fi 8829done 8830 done 8831IFS=$as_save_IFS 8832 8833fi 8834fi 8835ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 8836if test -n "$ac_ct_STRIP"; then 8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 8838$as_echo "$ac_ct_STRIP" >&6; } 8839else 8840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8841$as_echo "no" >&6; } 8842fi 8843 8844 if test "x$ac_ct_STRIP" = x; then 8845 STRIP=":" 8846 else 8847 case $cross_compiling:$ac_tool_warned in 8848yes:) 8849{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8850$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8851ac_tool_warned=yes ;; 8852esac 8853 STRIP=$ac_ct_STRIP 8854 fi 8855else 8856 STRIP="$ac_cv_prog_STRIP" 8857fi 8858 8859test -z "$STRIP" && STRIP=: 8860 8861 8862 8863 8864 8865 8866if test -n "$ac_tool_prefix"; then 8867 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 8868set dummy ${ac_tool_prefix}ranlib; ac_word=$2 8869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8870$as_echo_n "checking for $ac_word... " >&6; } 8871if ${ac_cv_prog_RANLIB+:} false; then : 8872 $as_echo_n "(cached) " >&6 8873else 8874 if test -n "$RANLIB"; then 8875 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 8876else 8877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8878for as_dir in $PATH 8879do 8880 IFS=$as_save_IFS 8881 test -z "$as_dir" && as_dir=. 8882 for ac_exec_ext in '' $ac_executable_extensions; do 8883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8884 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 8885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8886 break 2 8887 fi 8888done 8889 done 8890IFS=$as_save_IFS 8891 8892fi 8893fi 8894RANLIB=$ac_cv_prog_RANLIB 8895if test -n "$RANLIB"; then 8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 8897$as_echo "$RANLIB" >&6; } 8898else 8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8900$as_echo "no" >&6; } 8901fi 8902 8903 8904fi 8905if test -z "$ac_cv_prog_RANLIB"; then 8906 ac_ct_RANLIB=$RANLIB 8907 # Extract the first word of "ranlib", so it can be a program name with args. 8908set dummy ranlib; ac_word=$2 8909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8910$as_echo_n "checking for $ac_word... " >&6; } 8911if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 8912 $as_echo_n "(cached) " >&6 8913else 8914 if test -n "$ac_ct_RANLIB"; then 8915 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 8916else 8917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8918for as_dir in $PATH 8919do 8920 IFS=$as_save_IFS 8921 test -z "$as_dir" && as_dir=. 8922 for ac_exec_ext in '' $ac_executable_extensions; do 8923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8924 ac_cv_prog_ac_ct_RANLIB="ranlib" 8925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8926 break 2 8927 fi 8928done 8929 done 8930IFS=$as_save_IFS 8931 8932fi 8933fi 8934ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 8935if test -n "$ac_ct_RANLIB"; then 8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 8937$as_echo "$ac_ct_RANLIB" >&6; } 8938else 8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8940$as_echo "no" >&6; } 8941fi 8942 8943 if test "x$ac_ct_RANLIB" = x; then 8944 RANLIB=":" 8945 else 8946 case $cross_compiling:$ac_tool_warned in 8947yes:) 8948{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8949$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8950ac_tool_warned=yes ;; 8951esac 8952 RANLIB=$ac_ct_RANLIB 8953 fi 8954else 8955 RANLIB="$ac_cv_prog_RANLIB" 8956fi 8957 8958test -z "$RANLIB" && RANLIB=: 8959 8960 8961 8962 8963 8964 8965# Determine commands to create old-style static archives. 8966old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 8967old_postinstall_cmds='chmod 644 $oldlib' 8968old_postuninstall_cmds= 8969 8970if test -n "$RANLIB"; then 8971 case $host_os in 8972 bitrig* | openbsd*) 8973 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 8974 ;; 8975 *) 8976 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 8977 ;; 8978 esac 8979 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 8980fi 8981 8982case $host_os in 8983 darwin*) 8984 lock_old_archive_extraction=yes ;; 8985 *) 8986 lock_old_archive_extraction=no ;; 8987esac 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027# If no C compiler was specified, use CC. 9028LTCC=${LTCC-"$CC"} 9029 9030# If no C compiler flags were specified, use CFLAGS. 9031LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9032 9033# Allow CC to be a program name with arguments. 9034compiler=$CC 9035 9036 9037# Check for command to grab the raw symbol name followed by C symbol from nm. 9038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 9039$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 9040if ${lt_cv_sys_global_symbol_pipe+:} false; then : 9041 $as_echo_n "(cached) " >&6 9042else 9043 9044# These are sane defaults that work on at least a few old systems. 9045# [They come from Ultrix. What could be older than Ultrix?!! ;)] 9046 9047# Character class describing NM global symbol codes. 9048symcode='[BCDEGRST]' 9049 9050# Regexp to match symbols that can be accessed directly from C. 9051sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 9052 9053# Define system-specific variables. 9054case $host_os in 9055aix*) 9056 symcode='[BCDT]' 9057 ;; 9058cygwin* | mingw* | pw32* | cegcc*) 9059 symcode='[ABCDGISTW]' 9060 ;; 9061hpux*) 9062 if test ia64 = "$host_cpu"; then 9063 symcode='[ABCDEGRST]' 9064 fi 9065 ;; 9066irix* | nonstopux*) 9067 symcode='[BCDEGRST]' 9068 ;; 9069osf*) 9070 symcode='[BCDEGQRST]' 9071 ;; 9072solaris*) 9073 symcode='[BDRT]' 9074 ;; 9075sco3.2v5*) 9076 symcode='[DT]' 9077 ;; 9078sysv4.2uw2*) 9079 symcode='[DT]' 9080 ;; 9081sysv5* | sco5v6* | unixware* | OpenUNIX*) 9082 symcode='[ABDT]' 9083 ;; 9084sysv4) 9085 symcode='[DFNSTU]' 9086 ;; 9087esac 9088 9089# If we're using GNU nm, then use its standard symbol codes. 9090case `$NM -V 2>&1` in 9091*GNU* | *'with BFD'*) 9092 symcode='[ABCDGIRSTW]' ;; 9093esac 9094 9095if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9096 # Gets list of data symbols to import. 9097 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 9098 # Adjust the below global symbol transforms to fixup imported variables. 9099 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 9100 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 9101 lt_c_name_lib_hook="\ 9102 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 9103 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 9104else 9105 # Disable hooks by default. 9106 lt_cv_sys_global_symbol_to_import= 9107 lt_cdecl_hook= 9108 lt_c_name_hook= 9109 lt_c_name_lib_hook= 9110fi 9111 9112# Transform an extracted symbol line into a proper C declaration. 9113# Some systems (esp. on ia64) link data and code symbols differently, 9114# so use this general approach. 9115lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 9116$lt_cdecl_hook\ 9117" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 9118" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 9119 9120# Transform an extracted symbol line into symbol name and symbol address 9121lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 9122$lt_c_name_hook\ 9123" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 9124" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 9125 9126# Transform an extracted symbol line into symbol name with lib prefix and 9127# symbol address. 9128lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 9129$lt_c_name_lib_hook\ 9130" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 9131" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 9132" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 9133 9134# Handle CRLF in mingw tool chain 9135opt_cr= 9136case $build_os in 9137mingw*) 9138 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 9139 ;; 9140esac 9141 9142# Try without a prefix underscore, then with it. 9143for ac_symprfx in "" "_"; do 9144 9145 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 9146 symxfrm="\\1 $ac_symprfx\\2 \\2" 9147 9148 # Write the raw and C identifiers. 9149 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9150 # Fake it for dumpbin and say T for any non-static function, 9151 # D for any global variable and I for any imported variable. 9152 # Also find C++ and __fastcall symbols from MSVC++, 9153 # which start with @ or ?. 9154 lt_cv_sys_global_symbol_pipe="$AWK '"\ 9155" {last_section=section; section=\$ 3};"\ 9156" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 9157" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 9158" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 9159" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 9160" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 9161" \$ 0!~/External *\|/{next};"\ 9162" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 9163" {if(hide[section]) next};"\ 9164" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 9165" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 9166" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 9167" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 9168" ' prfx=^$ac_symprfx" 9169 else 9170 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 9171 fi 9172 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 9173 9174 # Check to see that the pipe works correctly. 9175 pipe_works=no 9176 9177 rm -f conftest* 9178 cat > conftest.$ac_ext <<_LT_EOF 9179#ifdef __cplusplus 9180extern "C" { 9181#endif 9182char nm_test_var; 9183void nm_test_func(void); 9184void nm_test_func(void){} 9185#ifdef __cplusplus 9186} 9187#endif 9188int main(){nm_test_var='a';nm_test_func();return(0);} 9189_LT_EOF 9190 9191 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9192 (eval $ac_compile) 2>&5 9193 ac_status=$? 9194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9195 test $ac_status = 0; }; then 9196 # Now try to grab the symbols. 9197 nlist=conftest.nm 9198 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 9199 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 9200 ac_status=$? 9201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9202 test $ac_status = 0; } && test -s "$nlist"; then 9203 # Try sorting and uniquifying the output. 9204 if sort "$nlist" | uniq > "$nlist"T; then 9205 mv -f "$nlist"T "$nlist" 9206 else 9207 rm -f "$nlist"T 9208 fi 9209 9210 # Make sure that we snagged all the symbols we need. 9211 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 9212 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 9213 cat <<_LT_EOF > conftest.$ac_ext 9214/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 9215#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 9216/* DATA imports from DLLs on WIN32 can't be const, because runtime 9217 relocations are performed -- see ld's documentation on pseudo-relocs. */ 9218# define LT_DLSYM_CONST 9219#elif defined __osf__ 9220/* This system does not cope well with relocations in const data. */ 9221# define LT_DLSYM_CONST 9222#else 9223# define LT_DLSYM_CONST const 9224#endif 9225 9226#ifdef __cplusplus 9227extern "C" { 9228#endif 9229 9230_LT_EOF 9231 # Now generate the symbol file. 9232 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 9233 9234 cat <<_LT_EOF >> conftest.$ac_ext 9235 9236/* The mapping between symbol names and symbols. */ 9237LT_DLSYM_CONST struct { 9238 const char *name; 9239 void *address; 9240} 9241lt__PROGRAM__LTX_preloaded_symbols[] = 9242{ 9243 { "@PROGRAM@", (void *) 0 }, 9244_LT_EOF 9245 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 9246 cat <<\_LT_EOF >> conftest.$ac_ext 9247 {0, (void *) 0} 9248}; 9249 9250/* This works around a problem in FreeBSD linker */ 9251#ifdef FREEBSD_WORKAROUND 9252static const void *lt_preloaded_setup() { 9253 return lt__PROGRAM__LTX_preloaded_symbols; 9254} 9255#endif 9256 9257#ifdef __cplusplus 9258} 9259#endif 9260_LT_EOF 9261 # Now try linking the two files. 9262 mv conftest.$ac_objext conftstm.$ac_objext 9263 lt_globsym_save_LIBS=$LIBS 9264 lt_globsym_save_CFLAGS=$CFLAGS 9265 LIBS=conftstm.$ac_objext 9266 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 9267 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 9268 (eval $ac_link) 2>&5 9269 ac_status=$? 9270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9271 test $ac_status = 0; } && test -s conftest$ac_exeext; then 9272 pipe_works=yes 9273 fi 9274 LIBS=$lt_globsym_save_LIBS 9275 CFLAGS=$lt_globsym_save_CFLAGS 9276 else 9277 echo "cannot find nm_test_func in $nlist" >&5 9278 fi 9279 else 9280 echo "cannot find nm_test_var in $nlist" >&5 9281 fi 9282 else 9283 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 9284 fi 9285 else 9286 echo "$progname: failed program was:" >&5 9287 cat conftest.$ac_ext >&5 9288 fi 9289 rm -rf conftest* conftst* 9290 9291 # Do not use the global_symbol_pipe unless it works. 9292 if test yes = "$pipe_works"; then 9293 break 9294 else 9295 lt_cv_sys_global_symbol_pipe= 9296 fi 9297done 9298 9299fi 9300 9301if test -z "$lt_cv_sys_global_symbol_pipe"; then 9302 lt_cv_sys_global_symbol_to_cdecl= 9303fi 9304if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 9305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 9306$as_echo "failed" >&6; } 9307else 9308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 9309$as_echo "ok" >&6; } 9310fi 9311 9312# Response file support. 9313if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9314 nm_file_list_spec='@' 9315elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 9316 nm_file_list_spec='@' 9317fi 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 9356$as_echo_n "checking for sysroot... " >&6; } 9357 9358# Check whether --with-sysroot was given. 9359if test "${with_sysroot+set}" = set; then : 9360 withval=$with_sysroot; 9361else 9362 with_sysroot=no 9363fi 9364 9365 9366lt_sysroot= 9367case $with_sysroot in #( 9368 yes) 9369 if test yes = "$GCC"; then 9370 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 9371 fi 9372 ;; #( 9373 /*) 9374 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 9375 ;; #( 9376 no|'') 9377 ;; #( 9378 *) 9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 9380$as_echo "$with_sysroot" >&6; } 9381 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 9382 ;; 9383esac 9384 9385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 9386$as_echo "${lt_sysroot:-no}" >&6; } 9387 9388 9389 9390 9391 9392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 9393$as_echo_n "checking for a working dd... " >&6; } 9394if ${ac_cv_path_lt_DD+:} false; then : 9395 $as_echo_n "(cached) " >&6 9396else 9397 printf 0123456789abcdef0123456789abcdef >conftest.i 9398cat conftest.i conftest.i >conftest2.i 9399: ${lt_DD:=$DD} 9400if test -z "$lt_DD"; then 9401 ac_path_lt_DD_found=false 9402 # Loop through the user's path and test for each of PROGNAME-LIST 9403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9404for as_dir in $PATH 9405do 9406 IFS=$as_save_IFS 9407 test -z "$as_dir" && as_dir=. 9408 for ac_prog in dd; do 9409 for ac_exec_ext in '' $ac_executable_extensions; do 9410 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 9411 as_fn_executable_p "$ac_path_lt_DD" || continue 9412if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 9413 cmp -s conftest.i conftest.out \ 9414 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 9415fi 9416 $ac_path_lt_DD_found && break 3 9417 done 9418 done 9419 done 9420IFS=$as_save_IFS 9421 if test -z "$ac_cv_path_lt_DD"; then 9422 : 9423 fi 9424else 9425 ac_cv_path_lt_DD=$lt_DD 9426fi 9427 9428rm -f conftest.i conftest2.i conftest.out 9429fi 9430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 9431$as_echo "$ac_cv_path_lt_DD" >&6; } 9432 9433 9434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 9435$as_echo_n "checking how to truncate binary pipes... " >&6; } 9436if ${lt_cv_truncate_bin+:} false; then : 9437 $as_echo_n "(cached) " >&6 9438else 9439 printf 0123456789abcdef0123456789abcdef >conftest.i 9440cat conftest.i conftest.i >conftest2.i 9441lt_cv_truncate_bin= 9442if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 9443 cmp -s conftest.i conftest.out \ 9444 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 9445fi 9446rm -f conftest.i conftest2.i conftest.out 9447test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 9448fi 9449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 9450$as_echo "$lt_cv_truncate_bin" >&6; } 9451 9452 9453 9454 9455 9456 9457 9458# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 9459func_cc_basename () 9460{ 9461 for cc_temp in $*""; do 9462 case $cc_temp in 9463 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9464 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9465 \-*) ;; 9466 *) break;; 9467 esac 9468 done 9469 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 9470} 9471 9472# Check whether --enable-libtool-lock was given. 9473if test "${enable_libtool_lock+set}" = set; then : 9474 enableval=$enable_libtool_lock; 9475fi 9476 9477test no = "$enable_libtool_lock" || enable_libtool_lock=yes 9478 9479# Some flags need to be propagated to the compiler or linker for good 9480# libtool support. 9481case $host in 9482ia64-*-hpux*) 9483 # Find out what ABI is being produced by ac_compile, and set mode 9484 # options accordingly. 9485 echo 'int i;' > conftest.$ac_ext 9486 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9487 (eval $ac_compile) 2>&5 9488 ac_status=$? 9489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9490 test $ac_status = 0; }; then 9491 case `/usr/bin/file conftest.$ac_objext` in 9492 *ELF-32*) 9493 HPUX_IA64_MODE=32 9494 ;; 9495 *ELF-64*) 9496 HPUX_IA64_MODE=64 9497 ;; 9498 esac 9499 fi 9500 rm -rf conftest* 9501 ;; 9502*-*-irix6*) 9503 # Find out what ABI is being produced by ac_compile, and set linker 9504 # options accordingly. 9505 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 9506 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9507 (eval $ac_compile) 2>&5 9508 ac_status=$? 9509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9510 test $ac_status = 0; }; then 9511 if test yes = "$lt_cv_prog_gnu_ld"; then 9512 case `/usr/bin/file conftest.$ac_objext` in 9513 *32-bit*) 9514 LD="${LD-ld} -melf32bsmip" 9515 ;; 9516 *N32*) 9517 LD="${LD-ld} -melf32bmipn32" 9518 ;; 9519 *64-bit*) 9520 LD="${LD-ld} -melf64bmip" 9521 ;; 9522 esac 9523 else 9524 case `/usr/bin/file conftest.$ac_objext` in 9525 *32-bit*) 9526 LD="${LD-ld} -32" 9527 ;; 9528 *N32*) 9529 LD="${LD-ld} -n32" 9530 ;; 9531 *64-bit*) 9532 LD="${LD-ld} -64" 9533 ;; 9534 esac 9535 fi 9536 fi 9537 rm -rf conftest* 9538 ;; 9539 9540mips64*-*linux*) 9541 # Find out what ABI is being produced by ac_compile, and set linker 9542 # options accordingly. 9543 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 9544 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9545 (eval $ac_compile) 2>&5 9546 ac_status=$? 9547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9548 test $ac_status = 0; }; then 9549 emul=elf 9550 case `/usr/bin/file conftest.$ac_objext` in 9551 *32-bit*) 9552 emul="${emul}32" 9553 ;; 9554 *64-bit*) 9555 emul="${emul}64" 9556 ;; 9557 esac 9558 case `/usr/bin/file conftest.$ac_objext` in 9559 *MSB*) 9560 emul="${emul}btsmip" 9561 ;; 9562 *LSB*) 9563 emul="${emul}ltsmip" 9564 ;; 9565 esac 9566 case `/usr/bin/file conftest.$ac_objext` in 9567 *N32*) 9568 emul="${emul}n32" 9569 ;; 9570 esac 9571 LD="${LD-ld} -m $emul" 9572 fi 9573 rm -rf conftest* 9574 ;; 9575 9576x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 9577s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 9578 # Find out what ABI is being produced by ac_compile, and set linker 9579 # options accordingly. Note that the listed cases only cover the 9580 # situations where additional linker options are needed (such as when 9581 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 9582 # vice versa); the common cases where no linker options are needed do 9583 # not appear in the list. 9584 echo 'int i;' > conftest.$ac_ext 9585 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9586 (eval $ac_compile) 2>&5 9587 ac_status=$? 9588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9589 test $ac_status = 0; }; then 9590 case `/usr/bin/file conftest.o` in 9591 *32-bit*) 9592 case $host in 9593 x86_64-*kfreebsd*-gnu) 9594 LD="${LD-ld} -m elf_i386_fbsd" 9595 ;; 9596 x86_64-*linux*) 9597 case `/usr/bin/file conftest.o` in 9598 *x86-64*) 9599 LD="${LD-ld} -m elf32_x86_64" 9600 ;; 9601 *) 9602 LD="${LD-ld} -m elf_i386" 9603 ;; 9604 esac 9605 ;; 9606 powerpc64le-*linux*) 9607 LD="${LD-ld} -m elf32lppclinux" 9608 ;; 9609 powerpc64-*linux*) 9610 LD="${LD-ld} -m elf32ppclinux" 9611 ;; 9612 s390x-*linux*) 9613 LD="${LD-ld} -m elf_s390" 9614 ;; 9615 sparc64-*linux*) 9616 LD="${LD-ld} -m elf32_sparc" 9617 ;; 9618 esac 9619 ;; 9620 *64-bit*) 9621 case $host in 9622 x86_64-*kfreebsd*-gnu) 9623 LD="${LD-ld} -m elf_x86_64_fbsd" 9624 ;; 9625 x86_64-*linux*) 9626 LD="${LD-ld} -m elf_x86_64" 9627 ;; 9628 powerpcle-*linux*) 9629 LD="${LD-ld} -m elf64lppc" 9630 ;; 9631 powerpc-*linux*) 9632 LD="${LD-ld} -m elf64ppc" 9633 ;; 9634 s390*-*linux*|s390*-*tpf*) 9635 LD="${LD-ld} -m elf64_s390" 9636 ;; 9637 sparc*-*linux*) 9638 LD="${LD-ld} -m elf64_sparc" 9639 ;; 9640 esac 9641 ;; 9642 esac 9643 fi 9644 rm -rf conftest* 9645 ;; 9646 9647*-*-sco3.2v5*) 9648 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 9649 SAVE_CFLAGS=$CFLAGS 9650 CFLAGS="$CFLAGS -belf" 9651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 9652$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 9653if ${lt_cv_cc_needs_belf+:} false; then : 9654 $as_echo_n "(cached) " >&6 9655else 9656 ac_ext=c 9657ac_cpp='$CPP $CPPFLAGS' 9658ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9659ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9660ac_compiler_gnu=$ac_cv_c_compiler_gnu 9661 9662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9663/* end confdefs.h. */ 9664 9665int 9666main () 9667{ 9668 9669 ; 9670 return 0; 9671} 9672_ACEOF 9673if ac_fn_c_try_link "$LINENO"; then : 9674 lt_cv_cc_needs_belf=yes 9675else 9676 lt_cv_cc_needs_belf=no 9677fi 9678rm -f core conftest.err conftest.$ac_objext \ 9679 conftest$ac_exeext conftest.$ac_ext 9680 ac_ext=c 9681ac_cpp='$CPP $CPPFLAGS' 9682ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9683ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9684ac_compiler_gnu=$ac_cv_c_compiler_gnu 9685 9686fi 9687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 9688$as_echo "$lt_cv_cc_needs_belf" >&6; } 9689 if test yes != "$lt_cv_cc_needs_belf"; then 9690 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 9691 CFLAGS=$SAVE_CFLAGS 9692 fi 9693 ;; 9694*-*solaris*) 9695 # Find out what ABI is being produced by ac_compile, and set linker 9696 # options accordingly. 9697 echo 'int i;' > conftest.$ac_ext 9698 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9699 (eval $ac_compile) 2>&5 9700 ac_status=$? 9701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9702 test $ac_status = 0; }; then 9703 case `/usr/bin/file conftest.o` in 9704 *64-bit*) 9705 case $lt_cv_prog_gnu_ld in 9706 yes*) 9707 case $host in 9708 i?86-*-solaris*|x86_64-*-solaris*) 9709 LD="${LD-ld} -m elf_x86_64" 9710 ;; 9711 sparc*-*-solaris*) 9712 LD="${LD-ld} -m elf64_sparc" 9713 ;; 9714 esac 9715 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 9716 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 9717 LD=${LD-ld}_sol2 9718 fi 9719 ;; 9720 *) 9721 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 9722 LD="${LD-ld} -64" 9723 fi 9724 ;; 9725 esac 9726 ;; 9727 esac 9728 fi 9729 rm -rf conftest* 9730 ;; 9731esac 9732 9733need_locks=$enable_libtool_lock 9734 9735if test -n "$ac_tool_prefix"; then 9736 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 9737set dummy ${ac_tool_prefix}mt; ac_word=$2 9738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9739$as_echo_n "checking for $ac_word... " >&6; } 9740if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 9741 $as_echo_n "(cached) " >&6 9742else 9743 if test -n "$MANIFEST_TOOL"; then 9744 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 9745else 9746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9747for as_dir in $PATH 9748do 9749 IFS=$as_save_IFS 9750 test -z "$as_dir" && as_dir=. 9751 for ac_exec_ext in '' $ac_executable_extensions; do 9752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9753 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 9754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9755 break 2 9756 fi 9757done 9758 done 9759IFS=$as_save_IFS 9760 9761fi 9762fi 9763MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 9764if test -n "$MANIFEST_TOOL"; then 9765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 9766$as_echo "$MANIFEST_TOOL" >&6; } 9767else 9768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9769$as_echo "no" >&6; } 9770fi 9771 9772 9773fi 9774if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 9775 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 9776 # Extract the first word of "mt", so it can be a program name with args. 9777set dummy mt; ac_word=$2 9778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9779$as_echo_n "checking for $ac_word... " >&6; } 9780if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 9781 $as_echo_n "(cached) " >&6 9782else 9783 if test -n "$ac_ct_MANIFEST_TOOL"; then 9784 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 9785else 9786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9787for as_dir in $PATH 9788do 9789 IFS=$as_save_IFS 9790 test -z "$as_dir" && as_dir=. 9791 for ac_exec_ext in '' $ac_executable_extensions; do 9792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9793 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 9794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9795 break 2 9796 fi 9797done 9798 done 9799IFS=$as_save_IFS 9800 9801fi 9802fi 9803ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 9804if test -n "$ac_ct_MANIFEST_TOOL"; then 9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 9806$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 9807else 9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9809$as_echo "no" >&6; } 9810fi 9811 9812 if test "x$ac_ct_MANIFEST_TOOL" = x; then 9813 MANIFEST_TOOL=":" 9814 else 9815 case $cross_compiling:$ac_tool_warned in 9816yes:) 9817{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9818$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9819ac_tool_warned=yes ;; 9820esac 9821 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 9822 fi 9823else 9824 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 9825fi 9826 9827test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 9828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 9829$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 9830if ${lt_cv_path_mainfest_tool+:} false; then : 9831 $as_echo_n "(cached) " >&6 9832else 9833 lt_cv_path_mainfest_tool=no 9834 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 9835 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 9836 cat conftest.err >&5 9837 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 9838 lt_cv_path_mainfest_tool=yes 9839 fi 9840 rm -f conftest* 9841fi 9842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 9843$as_echo "$lt_cv_path_mainfest_tool" >&6; } 9844if test yes != "$lt_cv_path_mainfest_tool"; then 9845 MANIFEST_TOOL=: 9846fi 9847 9848 9849 9850 9851 9852 9853 case $host_os in 9854 rhapsody* | darwin*) 9855 if test -n "$ac_tool_prefix"; then 9856 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 9857set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 9858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9859$as_echo_n "checking for $ac_word... " >&6; } 9860if ${ac_cv_prog_DSYMUTIL+:} false; then : 9861 $as_echo_n "(cached) " >&6 9862else 9863 if test -n "$DSYMUTIL"; then 9864 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 9865else 9866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9867for as_dir in $PATH 9868do 9869 IFS=$as_save_IFS 9870 test -z "$as_dir" && as_dir=. 9871 for ac_exec_ext in '' $ac_executable_extensions; do 9872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9873 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 9874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9875 break 2 9876 fi 9877done 9878 done 9879IFS=$as_save_IFS 9880 9881fi 9882fi 9883DSYMUTIL=$ac_cv_prog_DSYMUTIL 9884if test -n "$DSYMUTIL"; then 9885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 9886$as_echo "$DSYMUTIL" >&6; } 9887else 9888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9889$as_echo "no" >&6; } 9890fi 9891 9892 9893fi 9894if test -z "$ac_cv_prog_DSYMUTIL"; then 9895 ac_ct_DSYMUTIL=$DSYMUTIL 9896 # Extract the first word of "dsymutil", so it can be a program name with args. 9897set dummy dsymutil; ac_word=$2 9898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9899$as_echo_n "checking for $ac_word... " >&6; } 9900if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 9901 $as_echo_n "(cached) " >&6 9902else 9903 if test -n "$ac_ct_DSYMUTIL"; then 9904 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 9905else 9906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9907for as_dir in $PATH 9908do 9909 IFS=$as_save_IFS 9910 test -z "$as_dir" && as_dir=. 9911 for ac_exec_ext in '' $ac_executable_extensions; do 9912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9913 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 9914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9915 break 2 9916 fi 9917done 9918 done 9919IFS=$as_save_IFS 9920 9921fi 9922fi 9923ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 9924if test -n "$ac_ct_DSYMUTIL"; then 9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 9926$as_echo "$ac_ct_DSYMUTIL" >&6; } 9927else 9928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9929$as_echo "no" >&6; } 9930fi 9931 9932 if test "x$ac_ct_DSYMUTIL" = x; then 9933 DSYMUTIL=":" 9934 else 9935 case $cross_compiling:$ac_tool_warned in 9936yes:) 9937{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9938$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9939ac_tool_warned=yes ;; 9940esac 9941 DSYMUTIL=$ac_ct_DSYMUTIL 9942 fi 9943else 9944 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 9945fi 9946 9947 if test -n "$ac_tool_prefix"; then 9948 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 9949set dummy ${ac_tool_prefix}nmedit; ac_word=$2 9950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9951$as_echo_n "checking for $ac_word... " >&6; } 9952if ${ac_cv_prog_NMEDIT+:} false; then : 9953 $as_echo_n "(cached) " >&6 9954else 9955 if test -n "$NMEDIT"; then 9956 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 9957else 9958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9959for as_dir in $PATH 9960do 9961 IFS=$as_save_IFS 9962 test -z "$as_dir" && as_dir=. 9963 for ac_exec_ext in '' $ac_executable_extensions; do 9964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9965 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 9966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9967 break 2 9968 fi 9969done 9970 done 9971IFS=$as_save_IFS 9972 9973fi 9974fi 9975NMEDIT=$ac_cv_prog_NMEDIT 9976if test -n "$NMEDIT"; then 9977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 9978$as_echo "$NMEDIT" >&6; } 9979else 9980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9981$as_echo "no" >&6; } 9982fi 9983 9984 9985fi 9986if test -z "$ac_cv_prog_NMEDIT"; then 9987 ac_ct_NMEDIT=$NMEDIT 9988 # Extract the first word of "nmedit", so it can be a program name with args. 9989set dummy nmedit; ac_word=$2 9990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9991$as_echo_n "checking for $ac_word... " >&6; } 9992if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 9993 $as_echo_n "(cached) " >&6 9994else 9995 if test -n "$ac_ct_NMEDIT"; then 9996 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 9997else 9998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9999for as_dir in $PATH 10000do 10001 IFS=$as_save_IFS 10002 test -z "$as_dir" && as_dir=. 10003 for ac_exec_ext in '' $ac_executable_extensions; do 10004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10005 ac_cv_prog_ac_ct_NMEDIT="nmedit" 10006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10007 break 2 10008 fi 10009done 10010 done 10011IFS=$as_save_IFS 10012 10013fi 10014fi 10015ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 10016if test -n "$ac_ct_NMEDIT"; then 10017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 10018$as_echo "$ac_ct_NMEDIT" >&6; } 10019else 10020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10021$as_echo "no" >&6; } 10022fi 10023 10024 if test "x$ac_ct_NMEDIT" = x; then 10025 NMEDIT=":" 10026 else 10027 case $cross_compiling:$ac_tool_warned in 10028yes:) 10029{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10030$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10031ac_tool_warned=yes ;; 10032esac 10033 NMEDIT=$ac_ct_NMEDIT 10034 fi 10035else 10036 NMEDIT="$ac_cv_prog_NMEDIT" 10037fi 10038 10039 if test -n "$ac_tool_prefix"; then 10040 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 10041set dummy ${ac_tool_prefix}lipo; ac_word=$2 10042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10043$as_echo_n "checking for $ac_word... " >&6; } 10044if ${ac_cv_prog_LIPO+:} false; then : 10045 $as_echo_n "(cached) " >&6 10046else 10047 if test -n "$LIPO"; then 10048 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 10049else 10050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10051for as_dir in $PATH 10052do 10053 IFS=$as_save_IFS 10054 test -z "$as_dir" && as_dir=. 10055 for ac_exec_ext in '' $ac_executable_extensions; do 10056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10057 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 10058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10059 break 2 10060 fi 10061done 10062 done 10063IFS=$as_save_IFS 10064 10065fi 10066fi 10067LIPO=$ac_cv_prog_LIPO 10068if test -n "$LIPO"; then 10069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 10070$as_echo "$LIPO" >&6; } 10071else 10072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10073$as_echo "no" >&6; } 10074fi 10075 10076 10077fi 10078if test -z "$ac_cv_prog_LIPO"; then 10079 ac_ct_LIPO=$LIPO 10080 # Extract the first word of "lipo", so it can be a program name with args. 10081set dummy lipo; ac_word=$2 10082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10083$as_echo_n "checking for $ac_word... " >&6; } 10084if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 10085 $as_echo_n "(cached) " >&6 10086else 10087 if test -n "$ac_ct_LIPO"; then 10088 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 10089else 10090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10091for as_dir in $PATH 10092do 10093 IFS=$as_save_IFS 10094 test -z "$as_dir" && as_dir=. 10095 for ac_exec_ext in '' $ac_executable_extensions; do 10096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10097 ac_cv_prog_ac_ct_LIPO="lipo" 10098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10099 break 2 10100 fi 10101done 10102 done 10103IFS=$as_save_IFS 10104 10105fi 10106fi 10107ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 10108if test -n "$ac_ct_LIPO"; then 10109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 10110$as_echo "$ac_ct_LIPO" >&6; } 10111else 10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10113$as_echo "no" >&6; } 10114fi 10115 10116 if test "x$ac_ct_LIPO" = x; then 10117 LIPO=":" 10118 else 10119 case $cross_compiling:$ac_tool_warned in 10120yes:) 10121{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10122$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10123ac_tool_warned=yes ;; 10124esac 10125 LIPO=$ac_ct_LIPO 10126 fi 10127else 10128 LIPO="$ac_cv_prog_LIPO" 10129fi 10130 10131 if test -n "$ac_tool_prefix"; then 10132 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 10133set dummy ${ac_tool_prefix}otool; ac_word=$2 10134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10135$as_echo_n "checking for $ac_word... " >&6; } 10136if ${ac_cv_prog_OTOOL+:} false; then : 10137 $as_echo_n "(cached) " >&6 10138else 10139 if test -n "$OTOOL"; then 10140 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 10141else 10142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10143for as_dir in $PATH 10144do 10145 IFS=$as_save_IFS 10146 test -z "$as_dir" && as_dir=. 10147 for ac_exec_ext in '' $ac_executable_extensions; do 10148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10149 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 10150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10151 break 2 10152 fi 10153done 10154 done 10155IFS=$as_save_IFS 10156 10157fi 10158fi 10159OTOOL=$ac_cv_prog_OTOOL 10160if test -n "$OTOOL"; then 10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 10162$as_echo "$OTOOL" >&6; } 10163else 10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10165$as_echo "no" >&6; } 10166fi 10167 10168 10169fi 10170if test -z "$ac_cv_prog_OTOOL"; then 10171 ac_ct_OTOOL=$OTOOL 10172 # Extract the first word of "otool", so it can be a program name with args. 10173set dummy otool; ac_word=$2 10174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10175$as_echo_n "checking for $ac_word... " >&6; } 10176if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 10177 $as_echo_n "(cached) " >&6 10178else 10179 if test -n "$ac_ct_OTOOL"; then 10180 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 10181else 10182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10183for as_dir in $PATH 10184do 10185 IFS=$as_save_IFS 10186 test -z "$as_dir" && as_dir=. 10187 for ac_exec_ext in '' $ac_executable_extensions; do 10188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10189 ac_cv_prog_ac_ct_OTOOL="otool" 10190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10191 break 2 10192 fi 10193done 10194 done 10195IFS=$as_save_IFS 10196 10197fi 10198fi 10199ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 10200if test -n "$ac_ct_OTOOL"; then 10201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 10202$as_echo "$ac_ct_OTOOL" >&6; } 10203else 10204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10205$as_echo "no" >&6; } 10206fi 10207 10208 if test "x$ac_ct_OTOOL" = x; then 10209 OTOOL=":" 10210 else 10211 case $cross_compiling:$ac_tool_warned in 10212yes:) 10213{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10214$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10215ac_tool_warned=yes ;; 10216esac 10217 OTOOL=$ac_ct_OTOOL 10218 fi 10219else 10220 OTOOL="$ac_cv_prog_OTOOL" 10221fi 10222 10223 if test -n "$ac_tool_prefix"; then 10224 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 10225set dummy ${ac_tool_prefix}otool64; ac_word=$2 10226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10227$as_echo_n "checking for $ac_word... " >&6; } 10228if ${ac_cv_prog_OTOOL64+:} false; then : 10229 $as_echo_n "(cached) " >&6 10230else 10231 if test -n "$OTOOL64"; then 10232 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 10233else 10234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10235for as_dir in $PATH 10236do 10237 IFS=$as_save_IFS 10238 test -z "$as_dir" && as_dir=. 10239 for ac_exec_ext in '' $ac_executable_extensions; do 10240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10241 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 10242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10243 break 2 10244 fi 10245done 10246 done 10247IFS=$as_save_IFS 10248 10249fi 10250fi 10251OTOOL64=$ac_cv_prog_OTOOL64 10252if test -n "$OTOOL64"; then 10253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 10254$as_echo "$OTOOL64" >&6; } 10255else 10256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10257$as_echo "no" >&6; } 10258fi 10259 10260 10261fi 10262if test -z "$ac_cv_prog_OTOOL64"; then 10263 ac_ct_OTOOL64=$OTOOL64 10264 # Extract the first word of "otool64", so it can be a program name with args. 10265set dummy otool64; ac_word=$2 10266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10267$as_echo_n "checking for $ac_word... " >&6; } 10268if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 10269 $as_echo_n "(cached) " >&6 10270else 10271 if test -n "$ac_ct_OTOOL64"; then 10272 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 10273else 10274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10275for as_dir in $PATH 10276do 10277 IFS=$as_save_IFS 10278 test -z "$as_dir" && as_dir=. 10279 for ac_exec_ext in '' $ac_executable_extensions; do 10280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10281 ac_cv_prog_ac_ct_OTOOL64="otool64" 10282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10283 break 2 10284 fi 10285done 10286 done 10287IFS=$as_save_IFS 10288 10289fi 10290fi 10291ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 10292if test -n "$ac_ct_OTOOL64"; then 10293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 10294$as_echo "$ac_ct_OTOOL64" >&6; } 10295else 10296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10297$as_echo "no" >&6; } 10298fi 10299 10300 if test "x$ac_ct_OTOOL64" = x; then 10301 OTOOL64=":" 10302 else 10303 case $cross_compiling:$ac_tool_warned in 10304yes:) 10305{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10306$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10307ac_tool_warned=yes ;; 10308esac 10309 OTOOL64=$ac_ct_OTOOL64 10310 fi 10311else 10312 OTOOL64="$ac_cv_prog_OTOOL64" 10313fi 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 10342$as_echo_n "checking for -single_module linker flag... " >&6; } 10343if ${lt_cv_apple_cc_single_mod+:} false; then : 10344 $as_echo_n "(cached) " >&6 10345else 10346 lt_cv_apple_cc_single_mod=no 10347 if test -z "$LT_MULTI_MODULE"; then 10348 # By default we will add the -single_module flag. You can override 10349 # by either setting the environment variable LT_MULTI_MODULE 10350 # non-empty at configure time, or by adding -multi_module to the 10351 # link flags. 10352 rm -rf libconftest.dylib* 10353 echo "int foo(void){return 1;}" > conftest.c 10354 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 10355-dynamiclib -Wl,-single_module conftest.c" >&5 10356 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 10357 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 10358 _lt_result=$? 10359 # If there is a non-empty error log, and "single_module" 10360 # appears in it, assume the flag caused a linker warning 10361 if test -s conftest.err && $GREP single_module conftest.err; then 10362 cat conftest.err >&5 10363 # Otherwise, if the output was created with a 0 exit code from 10364 # the compiler, it worked. 10365 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 10366 lt_cv_apple_cc_single_mod=yes 10367 else 10368 cat conftest.err >&5 10369 fi 10370 rm -rf libconftest.dylib* 10371 rm -f conftest.* 10372 fi 10373fi 10374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 10375$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 10376 10377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 10378$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 10379if ${lt_cv_ld_exported_symbols_list+:} false; then : 10380 $as_echo_n "(cached) " >&6 10381else 10382 lt_cv_ld_exported_symbols_list=no 10383 save_LDFLAGS=$LDFLAGS 10384 echo "_main" > conftest.sym 10385 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 10386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10387/* end confdefs.h. */ 10388 10389int 10390main () 10391{ 10392 10393 ; 10394 return 0; 10395} 10396_ACEOF 10397if ac_fn_c_try_link "$LINENO"; then : 10398 lt_cv_ld_exported_symbols_list=yes 10399else 10400 lt_cv_ld_exported_symbols_list=no 10401fi 10402rm -f core conftest.err conftest.$ac_objext \ 10403 conftest$ac_exeext conftest.$ac_ext 10404 LDFLAGS=$save_LDFLAGS 10405 10406fi 10407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 10408$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 10409 10410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 10411$as_echo_n "checking for -force_load linker flag... " >&6; } 10412if ${lt_cv_ld_force_load+:} false; then : 10413 $as_echo_n "(cached) " >&6 10414else 10415 lt_cv_ld_force_load=no 10416 cat > conftest.c << _LT_EOF 10417int forced_loaded() { return 2;} 10418_LT_EOF 10419 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 10420 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 10421 echo "$AR cru libconftest.a conftest.o" >&5 10422 $AR cru libconftest.a conftest.o 2>&5 10423 echo "$RANLIB libconftest.a" >&5 10424 $RANLIB libconftest.a 2>&5 10425 cat > conftest.c << _LT_EOF 10426int main() { return 0;} 10427_LT_EOF 10428 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 10429 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 10430 _lt_result=$? 10431 if test -s conftest.err && $GREP force_load conftest.err; then 10432 cat conftest.err >&5 10433 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 10434 lt_cv_ld_force_load=yes 10435 else 10436 cat conftest.err >&5 10437 fi 10438 rm -f conftest.err libconftest.a conftest conftest.c 10439 rm -rf conftest.dSYM 10440 10441fi 10442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 10443$as_echo "$lt_cv_ld_force_load" >&6; } 10444 case $host_os in 10445 rhapsody* | darwin1.[012]) 10446 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 10447 darwin1.*) 10448 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 10449 darwin*) # darwin 5.x on 10450 # if running on 10.5 or later, the deployment target defaults 10451 # to the OS version, if on x86, and 10.4, the deployment 10452 # target defaults to 10.4. Don't you love it? 10453 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10454 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 10455 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 10456 10.[012][,.]*) 10457 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 10458 10.*) 10459 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 10460 esac 10461 ;; 10462 esac 10463 if test yes = "$lt_cv_apple_cc_single_mod"; then 10464 _lt_dar_single_mod='$single_module' 10465 fi 10466 if test yes = "$lt_cv_ld_exported_symbols_list"; then 10467 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 10468 else 10469 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 10470 fi 10471 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 10472 _lt_dsymutil='~$DSYMUTIL $lib || :' 10473 else 10474 _lt_dsymutil= 10475 fi 10476 ;; 10477 esac 10478 10479# func_munge_path_list VARIABLE PATH 10480# ----------------------------------- 10481# VARIABLE is name of variable containing _space_ separated list of 10482# directories to be munged by the contents of PATH, which is string 10483# having a format: 10484# "DIR[:DIR]:" 10485# string "DIR[ DIR]" will be prepended to VARIABLE 10486# ":DIR[:DIR]" 10487# string "DIR[ DIR]" will be appended to VARIABLE 10488# "DIRP[:DIRP]::[DIRA:]DIRA" 10489# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 10490# "DIRA[ DIRA]" will be appended to VARIABLE 10491# "DIR[:DIR]" 10492# VARIABLE will be replaced by "DIR[ DIR]" 10493func_munge_path_list () 10494{ 10495 case x$2 in 10496 x) 10497 ;; 10498 *:) 10499 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 10500 ;; 10501 x:*) 10502 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 10503 ;; 10504 *::*) 10505 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 10506 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 10507 ;; 10508 *) 10509 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 10510 ;; 10511 esac 10512} 10513 10514ac_ext=c 10515ac_cpp='$CPP $CPPFLAGS' 10516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10518ac_compiler_gnu=$ac_cv_c_compiler_gnu 10519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 10520$as_echo_n "checking how to run the C preprocessor... " >&6; } 10521# On Suns, sometimes $CPP names a directory. 10522if test -n "$CPP" && test -d "$CPP"; then 10523 CPP= 10524fi 10525if test -z "$CPP"; then 10526 if ${ac_cv_prog_CPP+:} false; then : 10527 $as_echo_n "(cached) " >&6 10528else 10529 # Double quotes because CPP needs to be expanded 10530 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 10531 do 10532 ac_preproc_ok=false 10533for ac_c_preproc_warn_flag in '' yes 10534do 10535 # Use a header file that comes with gcc, so configuring glibc 10536 # with a fresh cross-compiler works. 10537 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10538 # <limits.h> exists even on freestanding compilers. 10539 # On the NeXT, cc -E runs the code through the compiler's parser, 10540 # not just through cpp. "Syntax error" is here to catch this case. 10541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10542/* end confdefs.h. */ 10543#ifdef __STDC__ 10544# include <limits.h> 10545#else 10546# include <assert.h> 10547#endif 10548 Syntax error 10549_ACEOF 10550if ac_fn_c_try_cpp "$LINENO"; then : 10551 10552else 10553 # Broken: fails on valid input. 10554continue 10555fi 10556rm -f conftest.err conftest.i conftest.$ac_ext 10557 10558 # OK, works on sane cases. Now check whether nonexistent headers 10559 # can be detected and how. 10560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10561/* end confdefs.h. */ 10562#include <ac_nonexistent.h> 10563_ACEOF 10564if ac_fn_c_try_cpp "$LINENO"; then : 10565 # Broken: success on invalid input. 10566continue 10567else 10568 # Passes both tests. 10569ac_preproc_ok=: 10570break 10571fi 10572rm -f conftest.err conftest.i conftest.$ac_ext 10573 10574done 10575# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 10576rm -f conftest.i conftest.err conftest.$ac_ext 10577if $ac_preproc_ok; then : 10578 break 10579fi 10580 10581 done 10582 ac_cv_prog_CPP=$CPP 10583 10584fi 10585 CPP=$ac_cv_prog_CPP 10586else 10587 ac_cv_prog_CPP=$CPP 10588fi 10589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 10590$as_echo "$CPP" >&6; } 10591ac_preproc_ok=false 10592for ac_c_preproc_warn_flag in '' yes 10593do 10594 # Use a header file that comes with gcc, so configuring glibc 10595 # with a fresh cross-compiler works. 10596 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10597 # <limits.h> exists even on freestanding compilers. 10598 # On the NeXT, cc -E runs the code through the compiler's parser, 10599 # not just through cpp. "Syntax error" is here to catch this case. 10600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10601/* end confdefs.h. */ 10602#ifdef __STDC__ 10603# include <limits.h> 10604#else 10605# include <assert.h> 10606#endif 10607 Syntax error 10608_ACEOF 10609if ac_fn_c_try_cpp "$LINENO"; then : 10610 10611else 10612 # Broken: fails on valid input. 10613continue 10614fi 10615rm -f conftest.err conftest.i conftest.$ac_ext 10616 10617 # OK, works on sane cases. Now check whether nonexistent headers 10618 # can be detected and how. 10619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10620/* end confdefs.h. */ 10621#include <ac_nonexistent.h> 10622_ACEOF 10623if ac_fn_c_try_cpp "$LINENO"; then : 10624 # Broken: success on invalid input. 10625continue 10626else 10627 # Passes both tests. 10628ac_preproc_ok=: 10629break 10630fi 10631rm -f conftest.err conftest.i conftest.$ac_ext 10632 10633done 10634# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 10635rm -f conftest.i conftest.err conftest.$ac_ext 10636if $ac_preproc_ok; then : 10637 10638else 10639 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10640$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10641as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 10642See \`config.log' for more details" "$LINENO" 5; } 10643fi 10644 10645ac_ext=c 10646ac_cpp='$CPP $CPPFLAGS' 10647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10649ac_compiler_gnu=$ac_cv_c_compiler_gnu 10650 10651 10652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 10653$as_echo_n "checking for ANSI C header files... " >&6; } 10654if ${ac_cv_header_stdc+:} false; then : 10655 $as_echo_n "(cached) " >&6 10656else 10657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10658/* end confdefs.h. */ 10659#include <stdlib.h> 10660#include <stdarg.h> 10661#include <string.h> 10662#include <float.h> 10663 10664int 10665main () 10666{ 10667 10668 ; 10669 return 0; 10670} 10671_ACEOF 10672if ac_fn_c_try_compile "$LINENO"; then : 10673 ac_cv_header_stdc=yes 10674else 10675 ac_cv_header_stdc=no 10676fi 10677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10678 10679if test $ac_cv_header_stdc = yes; then 10680 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 10681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10682/* end confdefs.h. */ 10683#include <string.h> 10684 10685_ACEOF 10686if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10687 $EGREP "memchr" >/dev/null 2>&1; then : 10688 10689else 10690 ac_cv_header_stdc=no 10691fi 10692rm -f conftest* 10693 10694fi 10695 10696if test $ac_cv_header_stdc = yes; then 10697 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 10698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10699/* end confdefs.h. */ 10700#include <stdlib.h> 10701 10702_ACEOF 10703if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10704 $EGREP "free" >/dev/null 2>&1; then : 10705 10706else 10707 ac_cv_header_stdc=no 10708fi 10709rm -f conftest* 10710 10711fi 10712 10713if test $ac_cv_header_stdc = yes; then 10714 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 10715 if test "$cross_compiling" = yes; then : 10716 : 10717else 10718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10719/* end confdefs.h. */ 10720#include <ctype.h> 10721#include <stdlib.h> 10722#if ((' ' & 0x0FF) == 0x020) 10723# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 10724# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 10725#else 10726# define ISLOWER(c) \ 10727 (('a' <= (c) && (c) <= 'i') \ 10728 || ('j' <= (c) && (c) <= 'r') \ 10729 || ('s' <= (c) && (c) <= 'z')) 10730# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 10731#endif 10732 10733#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 10734int 10735main () 10736{ 10737 int i; 10738 for (i = 0; i < 256; i++) 10739 if (XOR (islower (i), ISLOWER (i)) 10740 || toupper (i) != TOUPPER (i)) 10741 return 2; 10742 return 0; 10743} 10744_ACEOF 10745if ac_fn_c_try_run "$LINENO"; then : 10746 10747else 10748 ac_cv_header_stdc=no 10749fi 10750rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10751 conftest.$ac_objext conftest.beam conftest.$ac_ext 10752fi 10753 10754fi 10755fi 10756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 10757$as_echo "$ac_cv_header_stdc" >&6; } 10758if test $ac_cv_header_stdc = yes; then 10759 10760$as_echo "#define STDC_HEADERS 1" >>confdefs.h 10761 10762fi 10763 10764# On IRIX 5.3, sys/types and inttypes.h are conflicting. 10765for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 10766 inttypes.h stdint.h unistd.h 10767do : 10768 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10769ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 10770" 10771if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10772 cat >>confdefs.h <<_ACEOF 10773#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10774_ACEOF 10775 10776fi 10777 10778done 10779 10780 10781for ac_header in dlfcn.h 10782do : 10783 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 10784" 10785if test "x$ac_cv_header_dlfcn_h" = xyes; then : 10786 cat >>confdefs.h <<_ACEOF 10787#define HAVE_DLFCN_H 1 10788_ACEOF 10789 10790fi 10791 10792done 10793 10794 10795 10796 10797func_stripname_cnf () 10798{ 10799 case $2 in 10800 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 10801 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 10802 esac 10803} # func_stripname_cnf 10804 10805 10806 10807 10808 10809# Set options 10810 10811 10812 10813 enable_dlopen=no 10814 10815 10816 enable_win32_dll=no 10817 10818 10819 # Check whether --enable-shared was given. 10820if test "${enable_shared+set}" = set; then : 10821 enableval=$enable_shared; p=${PACKAGE-default} 10822 case $enableval in 10823 yes) enable_shared=yes ;; 10824 no) enable_shared=no ;; 10825 *) 10826 enable_shared=no 10827 # Look at the argument we got. We use all the common list separators. 10828 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10829 for pkg in $enableval; do 10830 IFS=$lt_save_ifs 10831 if test "X$pkg" = "X$p"; then 10832 enable_shared=yes 10833 fi 10834 done 10835 IFS=$lt_save_ifs 10836 ;; 10837 esac 10838else 10839 enable_shared=yes 10840fi 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 # Check whether --enable-static was given. 10851if test "${enable_static+set}" = set; then : 10852 enableval=$enable_static; p=${PACKAGE-default} 10853 case $enableval in 10854 yes) enable_static=yes ;; 10855 no) enable_static=no ;; 10856 *) 10857 enable_static=no 10858 # Look at the argument we got. We use all the common list separators. 10859 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10860 for pkg in $enableval; do 10861 IFS=$lt_save_ifs 10862 if test "X$pkg" = "X$p"; then 10863 enable_static=yes 10864 fi 10865 done 10866 IFS=$lt_save_ifs 10867 ;; 10868 esac 10869else 10870 enable_static=yes 10871fi 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882# Check whether --with-pic was given. 10883if test "${with_pic+set}" = set; then : 10884 withval=$with_pic; lt_p=${PACKAGE-default} 10885 case $withval in 10886 yes|no) pic_mode=$withval ;; 10887 *) 10888 pic_mode=default 10889 # Look at the argument we got. We use all the common list separators. 10890 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10891 for lt_pkg in $withval; do 10892 IFS=$lt_save_ifs 10893 if test "X$lt_pkg" = "X$lt_p"; then 10894 pic_mode=yes 10895 fi 10896 done 10897 IFS=$lt_save_ifs 10898 ;; 10899 esac 10900else 10901 pic_mode=default 10902fi 10903 10904 10905 10906 10907 10908 10909 10910 10911 # Check whether --enable-fast-install was given. 10912if test "${enable_fast_install+set}" = set; then : 10913 enableval=$enable_fast_install; p=${PACKAGE-default} 10914 case $enableval in 10915 yes) enable_fast_install=yes ;; 10916 no) enable_fast_install=no ;; 10917 *) 10918 enable_fast_install=no 10919 # Look at the argument we got. We use all the common list separators. 10920 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10921 for pkg in $enableval; do 10922 IFS=$lt_save_ifs 10923 if test "X$pkg" = "X$p"; then 10924 enable_fast_install=yes 10925 fi 10926 done 10927 IFS=$lt_save_ifs 10928 ;; 10929 esac 10930else 10931 enable_fast_install=yes 10932fi 10933 10934 10935 10936 10937 10938 10939 10940 10941 shared_archive_member_spec= 10942case $host,$enable_shared in 10943power*-*-aix[5-9]*,yes) 10944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 10945$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 10946 10947# Check whether --with-aix-soname was given. 10948if test "${with_aix_soname+set}" = set; then : 10949 withval=$with_aix_soname; case $withval in 10950 aix|svr4|both) 10951 ;; 10952 *) 10953 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 10954 ;; 10955 esac 10956 lt_cv_with_aix_soname=$with_aix_soname 10957else 10958 if ${lt_cv_with_aix_soname+:} false; then : 10959 $as_echo_n "(cached) " >&6 10960else 10961 lt_cv_with_aix_soname=aix 10962fi 10963 10964 with_aix_soname=$lt_cv_with_aix_soname 10965fi 10966 10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 10968$as_echo "$with_aix_soname" >&6; } 10969 if test aix != "$with_aix_soname"; then 10970 # For the AIX way of multilib, we name the shared archive member 10971 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 10972 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 10973 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 10974 # the AIX toolchain works better with OBJECT_MODE set (default 32). 10975 if test 64 = "${OBJECT_MODE-32}"; then 10976 shared_archive_member_spec=shr_64 10977 else 10978 shared_archive_member_spec=shr 10979 fi 10980 fi 10981 ;; 10982*) 10983 with_aix_soname=aix 10984 ;; 10985esac 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996# This can be used to rebuild libtool when needed 10997LIBTOOL_DEPS=$ltmain 10998 10999# Always use our own libtool. 11000LIBTOOL='$(SHELL) $(top_builddir)/libtool' 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031test -z "$LN_S" && LN_S="ln -s" 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046if test -n "${ZSH_VERSION+set}"; then 11047 setopt NO_GLOB_SUBST 11048fi 11049 11050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 11051$as_echo_n "checking for objdir... " >&6; } 11052if ${lt_cv_objdir+:} false; then : 11053 $as_echo_n "(cached) " >&6 11054else 11055 rm -f .libs 2>/dev/null 11056mkdir .libs 2>/dev/null 11057if test -d .libs; then 11058 lt_cv_objdir=.libs 11059else 11060 # MS-DOS does not allow filenames that begin with a dot. 11061 lt_cv_objdir=_libs 11062fi 11063rmdir .libs 2>/dev/null 11064fi 11065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 11066$as_echo "$lt_cv_objdir" >&6; } 11067objdir=$lt_cv_objdir 11068 11069 11070 11071 11072 11073cat >>confdefs.h <<_ACEOF 11074#define LT_OBJDIR "$lt_cv_objdir/" 11075_ACEOF 11076 11077 11078 11079 11080case $host_os in 11081aix3*) 11082 # AIX sometimes has problems with the GCC collect2 program. For some 11083 # reason, if we set the COLLECT_NAMES environment variable, the problems 11084 # vanish in a puff of smoke. 11085 if test set != "${COLLECT_NAMES+set}"; then 11086 COLLECT_NAMES= 11087 export COLLECT_NAMES 11088 fi 11089 ;; 11090esac 11091 11092# Global variables: 11093ofile=libtool 11094can_build_shared=yes 11095 11096# All known linkers require a '.a' archive for static linking (except MSVC, 11097# which needs '.lib'). 11098libext=a 11099 11100with_gnu_ld=$lt_cv_prog_gnu_ld 11101 11102old_CC=$CC 11103old_CFLAGS=$CFLAGS 11104 11105# Set sane defaults for various variables 11106test -z "$CC" && CC=cc 11107test -z "$LTCC" && LTCC=$CC 11108test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 11109test -z "$LD" && LD=ld 11110test -z "$ac_objext" && ac_objext=o 11111 11112func_cc_basename $compiler 11113cc_basename=$func_cc_basename_result 11114 11115 11116# Only perform the check for file, if the check method requires it 11117test -z "$MAGIC_CMD" && MAGIC_CMD=file 11118case $deplibs_check_method in 11119file_magic*) 11120 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 11121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 11122$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 11123if ${lt_cv_path_MAGIC_CMD+:} false; then : 11124 $as_echo_n "(cached) " >&6 11125else 11126 case $MAGIC_CMD in 11127[\\/*] | ?:[\\/]*) 11128 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 11129 ;; 11130*) 11131 lt_save_MAGIC_CMD=$MAGIC_CMD 11132 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11133 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 11134 for ac_dir in $ac_dummy; do 11135 IFS=$lt_save_ifs 11136 test -z "$ac_dir" && ac_dir=. 11137 if test -f "$ac_dir/${ac_tool_prefix}file"; then 11138 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 11139 if test -n "$file_magic_test_file"; then 11140 case $deplibs_check_method in 11141 "file_magic "*) 11142 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 11143 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 11144 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 11145 $EGREP "$file_magic_regex" > /dev/null; then 11146 : 11147 else 11148 cat <<_LT_EOF 1>&2 11149 11150*** Warning: the command libtool uses to detect shared libraries, 11151*** $file_magic_cmd, produces output that libtool cannot recognize. 11152*** The result is that libtool may fail to recognize shared libraries 11153*** as such. This will affect the creation of libtool libraries that 11154*** depend on shared libraries, but programs linked with such libtool 11155*** libraries will work regardless of this problem. Nevertheless, you 11156*** may want to report the problem to your system manager and/or to 11157*** bug-libtool@gnu.org 11158 11159_LT_EOF 11160 fi ;; 11161 esac 11162 fi 11163 break 11164 fi 11165 done 11166 IFS=$lt_save_ifs 11167 MAGIC_CMD=$lt_save_MAGIC_CMD 11168 ;; 11169esac 11170fi 11171 11172MAGIC_CMD=$lt_cv_path_MAGIC_CMD 11173if test -n "$MAGIC_CMD"; then 11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 11175$as_echo "$MAGIC_CMD" >&6; } 11176else 11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11178$as_echo "no" >&6; } 11179fi 11180 11181 11182 11183 11184 11185if test -z "$lt_cv_path_MAGIC_CMD"; then 11186 if test -n "$ac_tool_prefix"; then 11187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 11188$as_echo_n "checking for file... " >&6; } 11189if ${lt_cv_path_MAGIC_CMD+:} false; then : 11190 $as_echo_n "(cached) " >&6 11191else 11192 case $MAGIC_CMD in 11193[\\/*] | ?:[\\/]*) 11194 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 11195 ;; 11196*) 11197 lt_save_MAGIC_CMD=$MAGIC_CMD 11198 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11199 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 11200 for ac_dir in $ac_dummy; do 11201 IFS=$lt_save_ifs 11202 test -z "$ac_dir" && ac_dir=. 11203 if test -f "$ac_dir/file"; then 11204 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 11205 if test -n "$file_magic_test_file"; then 11206 case $deplibs_check_method in 11207 "file_magic "*) 11208 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 11209 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 11210 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 11211 $EGREP "$file_magic_regex" > /dev/null; then 11212 : 11213 else 11214 cat <<_LT_EOF 1>&2 11215 11216*** Warning: the command libtool uses to detect shared libraries, 11217*** $file_magic_cmd, produces output that libtool cannot recognize. 11218*** The result is that libtool may fail to recognize shared libraries 11219*** as such. This will affect the creation of libtool libraries that 11220*** depend on shared libraries, but programs linked with such libtool 11221*** libraries will work regardless of this problem. Nevertheless, you 11222*** may want to report the problem to your system manager and/or to 11223*** bug-libtool@gnu.org 11224 11225_LT_EOF 11226 fi ;; 11227 esac 11228 fi 11229 break 11230 fi 11231 done 11232 IFS=$lt_save_ifs 11233 MAGIC_CMD=$lt_save_MAGIC_CMD 11234 ;; 11235esac 11236fi 11237 11238MAGIC_CMD=$lt_cv_path_MAGIC_CMD 11239if test -n "$MAGIC_CMD"; then 11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 11241$as_echo "$MAGIC_CMD" >&6; } 11242else 11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11244$as_echo "no" >&6; } 11245fi 11246 11247 11248 else 11249 MAGIC_CMD=: 11250 fi 11251fi 11252 11253 fi 11254 ;; 11255esac 11256 11257# Use C for the default configuration in the libtool script 11258 11259lt_save_CC=$CC 11260ac_ext=c 11261ac_cpp='$CPP $CPPFLAGS' 11262ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11263ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11264ac_compiler_gnu=$ac_cv_c_compiler_gnu 11265 11266 11267# Source file extension for C test sources. 11268ac_ext=c 11269 11270# Object file extension for compiled C test sources. 11271objext=o 11272objext=$objext 11273 11274# Code to be used in simple compile tests 11275lt_simple_compile_test_code="int some_variable = 0;" 11276 11277# Code to be used in simple link tests 11278lt_simple_link_test_code='int main(){return(0);}' 11279 11280 11281 11282 11283 11284 11285 11286# If no C compiler was specified, use CC. 11287LTCC=${LTCC-"$CC"} 11288 11289# If no C compiler flags were specified, use CFLAGS. 11290LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11291 11292# Allow CC to be a program name with arguments. 11293compiler=$CC 11294 11295# Save the default compiler, since it gets overwritten when the other 11296# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 11297compiler_DEFAULT=$CC 11298 11299# save warnings/boilerplate of simple test code 11300ac_outfile=conftest.$ac_objext 11301echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11302eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11303_lt_compiler_boilerplate=`cat conftest.err` 11304$RM conftest* 11305 11306ac_outfile=conftest.$ac_objext 11307echo "$lt_simple_link_test_code" >conftest.$ac_ext 11308eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11309_lt_linker_boilerplate=`cat conftest.err` 11310$RM -r conftest* 11311 11312 11313## CAVEAT EMPTOR: 11314## There is no encapsulation within the following macros, do not change 11315## the running order or otherwise move them around unless you know exactly 11316## what you are doing... 11317if test -n "$compiler"; then 11318 11319lt_prog_compiler_no_builtin_flag= 11320 11321if test yes = "$GCC"; then 11322 case $cc_basename in 11323 nvcc*) 11324 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 11325 *) 11326 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 11327 esac 11328 11329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 11330$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 11331if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 11332 $as_echo_n "(cached) " >&6 11333else 11334 lt_cv_prog_compiler_rtti_exceptions=no 11335 ac_outfile=conftest.$ac_objext 11336 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11337 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 11338 # Insert the option either (1) after the last *FLAGS variable, or 11339 # (2) before a word containing "conftest.", or (3) at the end. 11340 # Note that $ac_compile itself does not contain backslashes and begins 11341 # with a dollar sign (not a hyphen), so the echo should work correctly. 11342 # The option is referenced via a variable to avoid confusing sed. 11343 lt_compile=`echo "$ac_compile" | $SED \ 11344 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11345 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11346 -e 's:$: $lt_compiler_flag:'` 11347 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11348 (eval "$lt_compile" 2>conftest.err) 11349 ac_status=$? 11350 cat conftest.err >&5 11351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11352 if (exit $ac_status) && test -s "$ac_outfile"; then 11353 # The compiler can only warn and ignore the option if not recognized 11354 # So say no if there are warnings other than the usual output. 11355 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 11356 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11357 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11358 lt_cv_prog_compiler_rtti_exceptions=yes 11359 fi 11360 fi 11361 $RM conftest* 11362 11363fi 11364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 11365$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 11366 11367if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 11368 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 11369else 11370 : 11371fi 11372 11373fi 11374 11375 11376 11377 11378 11379 11380 lt_prog_compiler_wl= 11381lt_prog_compiler_pic= 11382lt_prog_compiler_static= 11383 11384 11385 if test yes = "$GCC"; then 11386 lt_prog_compiler_wl='-Wl,' 11387 lt_prog_compiler_static='-static' 11388 11389 case $host_os in 11390 aix*) 11391 # All AIX code is PIC. 11392 if test ia64 = "$host_cpu"; then 11393 # AIX 5 now supports IA64 processor 11394 lt_prog_compiler_static='-Bstatic' 11395 fi 11396 lt_prog_compiler_pic='-fPIC' 11397 ;; 11398 11399 amigaos*) 11400 case $host_cpu in 11401 powerpc) 11402 # see comment about AmigaOS4 .so support 11403 lt_prog_compiler_pic='-fPIC' 11404 ;; 11405 m68k) 11406 # FIXME: we need at least 68020 code to build shared libraries, but 11407 # adding the '-m68020' flag to GCC prevents building anything better, 11408 # like '-m68040'. 11409 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 11410 ;; 11411 esac 11412 ;; 11413 11414 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 11415 # PIC is the default for these OSes. 11416 ;; 11417 11418 mingw* | cygwin* | pw32* | os2* | cegcc*) 11419 # This hack is so that the source file can tell whether it is being 11420 # built for inclusion in a dll (and should export symbols for example). 11421 # Although the cygwin gcc ignores -fPIC, still need this for old-style 11422 # (--disable-auto-import) libraries 11423 lt_prog_compiler_pic='-DDLL_EXPORT' 11424 case $host_os in 11425 os2*) 11426 lt_prog_compiler_static='$wl-static' 11427 ;; 11428 esac 11429 ;; 11430 11431 darwin* | rhapsody*) 11432 # PIC is the default on this platform 11433 # Common symbols not allowed in MH_DYLIB files 11434 lt_prog_compiler_pic='-fno-common' 11435 ;; 11436 11437 haiku*) 11438 # PIC is the default for Haiku. 11439 # The "-static" flag exists, but is broken. 11440 lt_prog_compiler_static= 11441 ;; 11442 11443 hpux*) 11444 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 11445 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 11446 # sets the default TLS model and affects inlining. 11447 case $host_cpu in 11448 hppa*64*) 11449 # +Z the default 11450 ;; 11451 *) 11452 lt_prog_compiler_pic='-fPIC' 11453 ;; 11454 esac 11455 ;; 11456 11457 interix[3-9]*) 11458 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 11459 # Instead, we relocate shared libraries at runtime. 11460 ;; 11461 11462 msdosdjgpp*) 11463 # Just because we use GCC doesn't mean we suddenly get shared libraries 11464 # on systems that don't support them. 11465 lt_prog_compiler_can_build_shared=no 11466 enable_shared=no 11467 ;; 11468 11469 *nto* | *qnx*) 11470 # QNX uses GNU C++, but need to define -shared option too, otherwise 11471 # it will coredump. 11472 lt_prog_compiler_pic='-fPIC -shared' 11473 ;; 11474 11475 sysv4*MP*) 11476 if test -d /usr/nec; then 11477 lt_prog_compiler_pic=-Kconform_pic 11478 fi 11479 ;; 11480 11481 *) 11482 lt_prog_compiler_pic='-fPIC' 11483 ;; 11484 esac 11485 11486 case $cc_basename in 11487 nvcc*) # Cuda Compiler Driver 2.2 11488 lt_prog_compiler_wl='-Xlinker ' 11489 if test -n "$lt_prog_compiler_pic"; then 11490 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 11491 fi 11492 ;; 11493 esac 11494 else 11495 # PORTME Check for flag to pass linker flags through the system compiler. 11496 case $host_os in 11497 aix*) 11498 lt_prog_compiler_wl='-Wl,' 11499 if test ia64 = "$host_cpu"; then 11500 # AIX 5 now supports IA64 processor 11501 lt_prog_compiler_static='-Bstatic' 11502 else 11503 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 11504 fi 11505 ;; 11506 11507 darwin* | rhapsody*) 11508 # PIC is the default on this platform 11509 # Common symbols not allowed in MH_DYLIB files 11510 lt_prog_compiler_pic='-fno-common' 11511 case $cc_basename in 11512 nagfor*) 11513 # NAG Fortran compiler 11514 lt_prog_compiler_wl='-Wl,-Wl,,' 11515 lt_prog_compiler_pic='-PIC' 11516 lt_prog_compiler_static='-Bstatic' 11517 ;; 11518 esac 11519 ;; 11520 11521 mingw* | cygwin* | pw32* | os2* | cegcc*) 11522 # This hack is so that the source file can tell whether it is being 11523 # built for inclusion in a dll (and should export symbols for example). 11524 lt_prog_compiler_pic='-DDLL_EXPORT' 11525 case $host_os in 11526 os2*) 11527 lt_prog_compiler_static='$wl-static' 11528 ;; 11529 esac 11530 ;; 11531 11532 hpux9* | hpux10* | hpux11*) 11533 lt_prog_compiler_wl='-Wl,' 11534 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11535 # not for PA HP-UX. 11536 case $host_cpu in 11537 hppa*64*|ia64*) 11538 # +Z the default 11539 ;; 11540 *) 11541 lt_prog_compiler_pic='+Z' 11542 ;; 11543 esac 11544 # Is there a better lt_prog_compiler_static that works with the bundled CC? 11545 lt_prog_compiler_static='$wl-a ${wl}archive' 11546 ;; 11547 11548 irix5* | irix6* | nonstopux*) 11549 lt_prog_compiler_wl='-Wl,' 11550 # PIC (with -KPIC) is the default. 11551 lt_prog_compiler_static='-non_shared' 11552 ;; 11553 11554 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11555 case $cc_basename in 11556 # old Intel for x86_64, which still supported -KPIC. 11557 ecc*) 11558 lt_prog_compiler_wl='-Wl,' 11559 lt_prog_compiler_pic='-KPIC' 11560 lt_prog_compiler_static='-static' 11561 ;; 11562 # icc used to be incompatible with GCC. 11563 # ICC 10 doesn't accept -KPIC any more. 11564 icc* | ifort*) 11565 lt_prog_compiler_wl='-Wl,' 11566 lt_prog_compiler_pic='-fPIC' 11567 lt_prog_compiler_static='-static' 11568 ;; 11569 # Lahey Fortran 8.1. 11570 lf95*) 11571 lt_prog_compiler_wl='-Wl,' 11572 lt_prog_compiler_pic='--shared' 11573 lt_prog_compiler_static='--static' 11574 ;; 11575 nagfor*) 11576 # NAG Fortran compiler 11577 lt_prog_compiler_wl='-Wl,-Wl,,' 11578 lt_prog_compiler_pic='-PIC' 11579 lt_prog_compiler_static='-Bstatic' 11580 ;; 11581 tcc*) 11582 # Fabrice Bellard et al's Tiny C Compiler 11583 lt_prog_compiler_wl='-Wl,' 11584 lt_prog_compiler_pic='-fPIC' 11585 lt_prog_compiler_static='-static' 11586 ;; 11587 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 11588 # Portland Group compilers (*not* the Pentium gcc compiler, 11589 # which looks to be a dead project) 11590 lt_prog_compiler_wl='-Wl,' 11591 lt_prog_compiler_pic='-fpic' 11592 lt_prog_compiler_static='-Bstatic' 11593 ;; 11594 ccc*) 11595 lt_prog_compiler_wl='-Wl,' 11596 # All Alpha code is PIC. 11597 lt_prog_compiler_static='-non_shared' 11598 ;; 11599 xl* | bgxl* | bgf* | mpixl*) 11600 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 11601 lt_prog_compiler_wl='-Wl,' 11602 lt_prog_compiler_pic='-qpic' 11603 lt_prog_compiler_static='-qstaticlink' 11604 ;; 11605 *) 11606 case `$CC -V 2>&1 | sed 5q` in 11607 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 11608 # Sun Fortran 8.3 passes all unrecognized flags to the linker 11609 lt_prog_compiler_pic='-KPIC' 11610 lt_prog_compiler_static='-Bstatic' 11611 lt_prog_compiler_wl='' 11612 ;; 11613 *Sun\ F* | *Sun*Fortran*) 11614 lt_prog_compiler_pic='-KPIC' 11615 lt_prog_compiler_static='-Bstatic' 11616 lt_prog_compiler_wl='-Qoption ld ' 11617 ;; 11618 *Sun\ C*) 11619 # Sun C 5.9 11620 lt_prog_compiler_pic='-KPIC' 11621 lt_prog_compiler_static='-Bstatic' 11622 lt_prog_compiler_wl='-Wl,' 11623 ;; 11624 *Intel*\ [CF]*Compiler*) 11625 lt_prog_compiler_wl='-Wl,' 11626 lt_prog_compiler_pic='-fPIC' 11627 lt_prog_compiler_static='-static' 11628 ;; 11629 *Portland\ Group*) 11630 lt_prog_compiler_wl='-Wl,' 11631 lt_prog_compiler_pic='-fpic' 11632 lt_prog_compiler_static='-Bstatic' 11633 ;; 11634 esac 11635 ;; 11636 esac 11637 ;; 11638 11639 newsos6) 11640 lt_prog_compiler_pic='-KPIC' 11641 lt_prog_compiler_static='-Bstatic' 11642 ;; 11643 11644 *nto* | *qnx*) 11645 # QNX uses GNU C++, but need to define -shared option too, otherwise 11646 # it will coredump. 11647 lt_prog_compiler_pic='-fPIC -shared' 11648 ;; 11649 11650 osf3* | osf4* | osf5*) 11651 lt_prog_compiler_wl='-Wl,' 11652 # All OSF/1 code is PIC. 11653 lt_prog_compiler_static='-non_shared' 11654 ;; 11655 11656 rdos*) 11657 lt_prog_compiler_static='-non_shared' 11658 ;; 11659 11660 solaris*) 11661 lt_prog_compiler_pic='-KPIC' 11662 lt_prog_compiler_static='-Bstatic' 11663 case $cc_basename in 11664 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 11665 lt_prog_compiler_wl='-Qoption ld ';; 11666 *) 11667 lt_prog_compiler_wl='-Wl,';; 11668 esac 11669 ;; 11670 11671 sunos4*) 11672 lt_prog_compiler_wl='-Qoption ld ' 11673 lt_prog_compiler_pic='-PIC' 11674 lt_prog_compiler_static='-Bstatic' 11675 ;; 11676 11677 sysv4 | sysv4.2uw2* | sysv4.3*) 11678 lt_prog_compiler_wl='-Wl,' 11679 lt_prog_compiler_pic='-KPIC' 11680 lt_prog_compiler_static='-Bstatic' 11681 ;; 11682 11683 sysv4*MP*) 11684 if test -d /usr/nec; then 11685 lt_prog_compiler_pic='-Kconform_pic' 11686 lt_prog_compiler_static='-Bstatic' 11687 fi 11688 ;; 11689 11690 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 11691 lt_prog_compiler_wl='-Wl,' 11692 lt_prog_compiler_pic='-KPIC' 11693 lt_prog_compiler_static='-Bstatic' 11694 ;; 11695 11696 unicos*) 11697 lt_prog_compiler_wl='-Wl,' 11698 lt_prog_compiler_can_build_shared=no 11699 ;; 11700 11701 uts4*) 11702 lt_prog_compiler_pic='-pic' 11703 lt_prog_compiler_static='-Bstatic' 11704 ;; 11705 11706 *) 11707 lt_prog_compiler_can_build_shared=no 11708 ;; 11709 esac 11710 fi 11711 11712case $host_os in 11713 # For platforms that do not support PIC, -DPIC is meaningless: 11714 *djgpp*) 11715 lt_prog_compiler_pic= 11716 ;; 11717 *) 11718 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 11719 ;; 11720esac 11721 11722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 11723$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 11724if ${lt_cv_prog_compiler_pic+:} false; then : 11725 $as_echo_n "(cached) " >&6 11726else 11727 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 11728fi 11729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 11730$as_echo "$lt_cv_prog_compiler_pic" >&6; } 11731lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 11732 11733# 11734# Check to make sure the PIC flag actually works. 11735# 11736if test -n "$lt_prog_compiler_pic"; then 11737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 11738$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 11739if ${lt_cv_prog_compiler_pic_works+:} false; then : 11740 $as_echo_n "(cached) " >&6 11741else 11742 lt_cv_prog_compiler_pic_works=no 11743 ac_outfile=conftest.$ac_objext 11744 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11745 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 11746 # Insert the option either (1) after the last *FLAGS variable, or 11747 # (2) before a word containing "conftest.", or (3) at the end. 11748 # Note that $ac_compile itself does not contain backslashes and begins 11749 # with a dollar sign (not a hyphen), so the echo should work correctly. 11750 # The option is referenced via a variable to avoid confusing sed. 11751 lt_compile=`echo "$ac_compile" | $SED \ 11752 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11753 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11754 -e 's:$: $lt_compiler_flag:'` 11755 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11756 (eval "$lt_compile" 2>conftest.err) 11757 ac_status=$? 11758 cat conftest.err >&5 11759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11760 if (exit $ac_status) && test -s "$ac_outfile"; then 11761 # The compiler can only warn and ignore the option if not recognized 11762 # So say no if there are warnings other than the usual output. 11763 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 11764 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11765 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11766 lt_cv_prog_compiler_pic_works=yes 11767 fi 11768 fi 11769 $RM conftest* 11770 11771fi 11772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 11773$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 11774 11775if test yes = "$lt_cv_prog_compiler_pic_works"; then 11776 case $lt_prog_compiler_pic in 11777 "" | " "*) ;; 11778 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 11779 esac 11780else 11781 lt_prog_compiler_pic= 11782 lt_prog_compiler_can_build_shared=no 11783fi 11784 11785fi 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797# 11798# Check to make sure the static flag actually works. 11799# 11800wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 11801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 11802$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 11803if ${lt_cv_prog_compiler_static_works+:} false; then : 11804 $as_echo_n "(cached) " >&6 11805else 11806 lt_cv_prog_compiler_static_works=no 11807 save_LDFLAGS=$LDFLAGS 11808 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 11809 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11810 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11811 # The linker can only warn and ignore the option if not recognized 11812 # So say no if there are warnings 11813 if test -s conftest.err; then 11814 # Append any errors to the config.log. 11815 cat conftest.err 1>&5 11816 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11817 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11818 if diff conftest.exp conftest.er2 >/dev/null; then 11819 lt_cv_prog_compiler_static_works=yes 11820 fi 11821 else 11822 lt_cv_prog_compiler_static_works=yes 11823 fi 11824 fi 11825 $RM -r conftest* 11826 LDFLAGS=$save_LDFLAGS 11827 11828fi 11829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 11830$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 11831 11832if test yes = "$lt_cv_prog_compiler_static_works"; then 11833 : 11834else 11835 lt_prog_compiler_static= 11836fi 11837 11838 11839 11840 11841 11842 11843 11844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11845$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11846if ${lt_cv_prog_compiler_c_o+:} false; then : 11847 $as_echo_n "(cached) " >&6 11848else 11849 lt_cv_prog_compiler_c_o=no 11850 $RM -r conftest 2>/dev/null 11851 mkdir conftest 11852 cd conftest 11853 mkdir out 11854 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11855 11856 lt_compiler_flag="-o out/conftest2.$ac_objext" 11857 # Insert the option either (1) after the last *FLAGS variable, or 11858 # (2) before a word containing "conftest.", or (3) at the end. 11859 # Note that $ac_compile itself does not contain backslashes and begins 11860 # with a dollar sign (not a hyphen), so the echo should work correctly. 11861 lt_compile=`echo "$ac_compile" | $SED \ 11862 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11863 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11864 -e 's:$: $lt_compiler_flag:'` 11865 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11866 (eval "$lt_compile" 2>out/conftest.err) 11867 ac_status=$? 11868 cat out/conftest.err >&5 11869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11870 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11871 then 11872 # The compiler can only warn and ignore the option if not recognized 11873 # So say no if there are warnings 11874 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 11875 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11876 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11877 lt_cv_prog_compiler_c_o=yes 11878 fi 11879 fi 11880 chmod u+w . 2>&5 11881 $RM conftest* 11882 # SGI C++ compiler will create directory out/ii_files/ for 11883 # template instantiation 11884 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11885 $RM out/* && rmdir out 11886 cd .. 11887 $RM -r conftest 11888 $RM conftest* 11889 11890fi 11891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 11892$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 11893 11894 11895 11896 11897 11898 11899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11900$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11901if ${lt_cv_prog_compiler_c_o+:} false; then : 11902 $as_echo_n "(cached) " >&6 11903else 11904 lt_cv_prog_compiler_c_o=no 11905 $RM -r conftest 2>/dev/null 11906 mkdir conftest 11907 cd conftest 11908 mkdir out 11909 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11910 11911 lt_compiler_flag="-o out/conftest2.$ac_objext" 11912 # Insert the option either (1) after the last *FLAGS variable, or 11913 # (2) before a word containing "conftest.", or (3) at the end. 11914 # Note that $ac_compile itself does not contain backslashes and begins 11915 # with a dollar sign (not a hyphen), so the echo should work correctly. 11916 lt_compile=`echo "$ac_compile" | $SED \ 11917 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11918 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11919 -e 's:$: $lt_compiler_flag:'` 11920 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11921 (eval "$lt_compile" 2>out/conftest.err) 11922 ac_status=$? 11923 cat out/conftest.err >&5 11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11925 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11926 then 11927 # The compiler can only warn and ignore the option if not recognized 11928 # So say no if there are warnings 11929 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 11930 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11931 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11932 lt_cv_prog_compiler_c_o=yes 11933 fi 11934 fi 11935 chmod u+w . 2>&5 11936 $RM conftest* 11937 # SGI C++ compiler will create directory out/ii_files/ for 11938 # template instantiation 11939 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11940 $RM out/* && rmdir out 11941 cd .. 11942 $RM -r conftest 11943 $RM conftest* 11944 11945fi 11946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 11947$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 11948 11949 11950 11951 11952hard_links=nottested 11953if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 11954 # do not overwrite the value of need_locks provided by the user 11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 11956$as_echo_n "checking if we can lock with hard links... " >&6; } 11957 hard_links=yes 11958 $RM conftest* 11959 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11960 touch conftest.a 11961 ln conftest.a conftest.b 2>&5 || hard_links=no 11962 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 11964$as_echo "$hard_links" >&6; } 11965 if test no = "$hard_links"; then 11966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 11967$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 11968 need_locks=warn 11969 fi 11970else 11971 need_locks=no 11972fi 11973 11974 11975 11976 11977 11978 11979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11980$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11981 11982 runpath_var= 11983 allow_undefined_flag= 11984 always_export_symbols=no 11985 archive_cmds= 11986 archive_expsym_cmds= 11987 compiler_needs_object=no 11988 enable_shared_with_static_runtimes=no 11989 export_dynamic_flag_spec= 11990 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11991 hardcode_automatic=no 11992 hardcode_direct=no 11993 hardcode_direct_absolute=no 11994 hardcode_libdir_flag_spec= 11995 hardcode_libdir_separator= 11996 hardcode_minus_L=no 11997 hardcode_shlibpath_var=unsupported 11998 inherit_rpath=no 11999 link_all_deplibs=unknown 12000 module_cmds= 12001 module_expsym_cmds= 12002 old_archive_from_new_cmds= 12003 old_archive_from_expsyms_cmds= 12004 thread_safe_flag_spec= 12005 whole_archive_flag_spec= 12006 # include_expsyms should be a list of space-separated symbols to be *always* 12007 # included in the symbol list 12008 include_expsyms= 12009 # exclude_expsyms can be an extended regexp of symbols to exclude 12010 # it will be wrapped by ' (' and ')$', so one must not match beginning or 12011 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 12012 # as well as any symbol that contains 'd'. 12013 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 12014 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 12015 # platforms (ab)use it in PIC code, but their linkers get confused if 12016 # the symbol is explicitly referenced. Since portable code cannot 12017 # rely on this symbol name, it's probably fine to never include it in 12018 # preloaded symbol tables. 12019 # Exclude shared library initialization/finalization symbols. 12020 extract_expsyms_cmds= 12021 12022 case $host_os in 12023 cygwin* | mingw* | pw32* | cegcc*) 12024 # FIXME: the MSVC++ port hasn't been tested in a loooong time 12025 # When not using gcc, we currently assume that we are using 12026 # Microsoft Visual C++. 12027 if test yes != "$GCC"; then 12028 with_gnu_ld=no 12029 fi 12030 ;; 12031 interix*) 12032 # we just hope/assume this is gcc and not c89 (= MSVC++) 12033 with_gnu_ld=yes 12034 ;; 12035 openbsd* | bitrig*) 12036 with_gnu_ld=no 12037 ;; 12038 esac 12039 12040 ld_shlibs=yes 12041 12042 # On some targets, GNU ld is compatible enough with the native linker 12043 # that we're better off using the native interface for both. 12044 lt_use_gnu_ld_interface=no 12045 if test yes = "$with_gnu_ld"; then 12046 case $host_os in 12047 aix*) 12048 # The AIX port of GNU ld has always aspired to compatibility 12049 # with the native linker. However, as the warning in the GNU ld 12050 # block says, versions before 2.19.5* couldn't really create working 12051 # shared libraries, regardless of the interface used. 12052 case `$LD -v 2>&1` in 12053 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 12054 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 12055 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 12056 *) 12057 lt_use_gnu_ld_interface=yes 12058 ;; 12059 esac 12060 ;; 12061 *) 12062 lt_use_gnu_ld_interface=yes 12063 ;; 12064 esac 12065 fi 12066 12067 if test yes = "$lt_use_gnu_ld_interface"; then 12068 # If archive_cmds runs LD, not CC, wlarc should be empty 12069 wlarc='$wl' 12070 12071 # Set some defaults for GNU ld with shared library support. These 12072 # are reset later if shared libraries are not supported. Putting them 12073 # here allows them to be overridden if necessary. 12074 runpath_var=LD_RUN_PATH 12075 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12076 export_dynamic_flag_spec='$wl--export-dynamic' 12077 # ancient GNU ld didn't support --whole-archive et. al. 12078 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 12079 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 12080 else 12081 whole_archive_flag_spec= 12082 fi 12083 supports_anon_versioning=no 12084 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 12085 *GNU\ gold*) supports_anon_versioning=yes ;; 12086 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 12087 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 12088 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 12089 *\ 2.11.*) ;; # other 2.11 versions 12090 *) supports_anon_versioning=yes ;; 12091 esac 12092 12093 # See if GNU ld supports shared libraries. 12094 case $host_os in 12095 aix[3-9]*) 12096 # On AIX/PPC, the GNU linker is very broken 12097 if test ia64 != "$host_cpu"; then 12098 ld_shlibs=no 12099 cat <<_LT_EOF 1>&2 12100 12101*** Warning: the GNU linker, at least up to release 2.19, is reported 12102*** to be unable to reliably create shared libraries on AIX. 12103*** Therefore, libtool is disabling shared libraries support. If you 12104*** really care for shared libraries, you may want to install binutils 12105*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 12106*** You will then need to restart the configuration process. 12107 12108_LT_EOF 12109 fi 12110 ;; 12111 12112 amigaos*) 12113 case $host_cpu in 12114 powerpc) 12115 # see comment about AmigaOS4 .so support 12116 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12117 archive_expsym_cmds='' 12118 ;; 12119 m68k) 12120 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)' 12121 hardcode_libdir_flag_spec='-L$libdir' 12122 hardcode_minus_L=yes 12123 ;; 12124 esac 12125 ;; 12126 12127 beos*) 12128 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12129 allow_undefined_flag=unsupported 12130 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 12131 # support --undefined. This deserves some investigation. FIXME 12132 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12133 else 12134 ld_shlibs=no 12135 fi 12136 ;; 12137 12138 cygwin* | mingw* | pw32* | cegcc*) 12139 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 12140 # as there is no search path for DLLs. 12141 hardcode_libdir_flag_spec='-L$libdir' 12142 export_dynamic_flag_spec='$wl--export-all-symbols' 12143 allow_undefined_flag=unsupported 12144 always_export_symbols=no 12145 enable_shared_with_static_runtimes=yes 12146 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 12147 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 12148 12149 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 12150 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12151 # If the export-symbols file already is a .def file, use it as 12152 # is; otherwise, prepend EXPORTS... 12153 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 12154 cp $export_symbols $output_objdir/$soname.def; 12155 else 12156 echo EXPORTS > $output_objdir/$soname.def; 12157 cat $export_symbols >> $output_objdir/$soname.def; 12158 fi~ 12159 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12160 else 12161 ld_shlibs=no 12162 fi 12163 ;; 12164 12165 haiku*) 12166 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12167 link_all_deplibs=yes 12168 ;; 12169 12170 os2*) 12171 hardcode_libdir_flag_spec='-L$libdir' 12172 hardcode_minus_L=yes 12173 allow_undefined_flag=unsupported 12174 shrext_cmds=.dll 12175 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12176 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12177 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12178 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12179 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 12180 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12181 emximp -o $lib $output_objdir/$libname.def' 12182 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12183 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12184 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12185 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12186 prefix_cmds="$SED"~ 12187 if test EXPORTS = "`$SED 1q $export_symbols`"; then 12188 prefix_cmds="$prefix_cmds -e 1d"; 12189 fi~ 12190 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 12191 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 12192 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12193 emximp -o $lib $output_objdir/$libname.def' 12194 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 12195 enable_shared_with_static_runtimes=yes 12196 ;; 12197 12198 interix[3-9]*) 12199 hardcode_direct=no 12200 hardcode_shlibpath_var=no 12201 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 12202 export_dynamic_flag_spec='$wl-E' 12203 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12204 # Instead, shared libraries are loaded at an image base (0x10000000 by 12205 # default) and relocated if they conflict, which is a slow very memory 12206 # consuming and fragmenting process. To avoid this, we pick a random, 12207 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12208 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12209 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 12210 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' 12211 ;; 12212 12213 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 12214 tmp_diet=no 12215 if test linux-dietlibc = "$host_os"; then 12216 case $cc_basename in 12217 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 12218 esac 12219 fi 12220 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 12221 && test no = "$tmp_diet" 12222 then 12223 tmp_addflag=' $pic_flag' 12224 tmp_sharedflag='-shared' 12225 case $cc_basename,$host_cpu in 12226 pgcc*) # Portland Group C compiler 12227 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' 12228 tmp_addflag=' $pic_flag' 12229 ;; 12230 pgf77* | pgf90* | pgf95* | pgfortran*) 12231 # Portland Group f77 and f90 compilers 12232 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' 12233 tmp_addflag=' $pic_flag -Mnomain' ;; 12234 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 12235 tmp_addflag=' -i_dynamic' ;; 12236 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 12237 tmp_addflag=' -i_dynamic -nofor_main' ;; 12238 ifc* | ifort*) # Intel Fortran compiler 12239 tmp_addflag=' -nofor_main' ;; 12240 lf95*) # Lahey Fortran 8.1 12241 whole_archive_flag_spec= 12242 tmp_sharedflag='--shared' ;; 12243 nagfor*) # NAGFOR 5.3 12244 tmp_sharedflag='-Wl,-shared' ;; 12245 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 12246 tmp_sharedflag='-qmkshrobj' 12247 tmp_addflag= ;; 12248 nvcc*) # Cuda Compiler Driver 2.2 12249 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' 12250 compiler_needs_object=yes 12251 ;; 12252 esac 12253 case `$CC -V 2>&1 | sed 5q` in 12254 *Sun\ C*) # Sun C 5.9 12255 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' 12256 compiler_needs_object=yes 12257 tmp_sharedflag='-G' ;; 12258 *Sun\ F*) # Sun Fortran 8.3 12259 tmp_sharedflag='-G' ;; 12260 esac 12261 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12262 12263 if test yes = "$supports_anon_versioning"; then 12264 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 12265 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12266 echo "local: *; };" >> $output_objdir/$libname.ver~ 12267 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 12268 fi 12269 12270 case $cc_basename in 12271 tcc*) 12272 export_dynamic_flag_spec='-rdynamic' 12273 ;; 12274 xlf* | bgf* | bgxlf* | mpixlf*) 12275 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 12276 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 12277 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12278 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 12279 if test yes = "$supports_anon_versioning"; then 12280 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 12281 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12282 echo "local: *; };" >> $output_objdir/$libname.ver~ 12283 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 12284 fi 12285 ;; 12286 esac 12287 else 12288 ld_shlibs=no 12289 fi 12290 ;; 12291 12292 netbsd*) 12293 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12294 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 12295 wlarc= 12296 else 12297 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12298 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 12299 fi 12300 ;; 12301 12302 solaris*) 12303 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 12304 ld_shlibs=no 12305 cat <<_LT_EOF 1>&2 12306 12307*** Warning: The releases 2.8.* of the GNU linker cannot reliably 12308*** create shared libraries on Solaris systems. Therefore, libtool 12309*** is disabling shared libraries support. We urge you to upgrade GNU 12310*** binutils to release 2.9.1 or newer. Another option is to modify 12311*** your PATH or compiler configuration so that the native linker is 12312*** used, and then restart. 12313 12314_LT_EOF 12315 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12316 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12317 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 12318 else 12319 ld_shlibs=no 12320 fi 12321 ;; 12322 12323 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 12324 case `$LD -v 2>&1` in 12325 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 12326 ld_shlibs=no 12327 cat <<_LT_EOF 1>&2 12328 12329*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 12330*** reliably create shared libraries on SCO systems. Therefore, libtool 12331*** is disabling shared libraries support. We urge you to upgrade GNU 12332*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 12333*** your PATH or compiler configuration so that the native linker is 12334*** used, and then restart. 12335 12336_LT_EOF 12337 ;; 12338 *) 12339 # For security reasons, it is highly recommended that you always 12340 # use absolute paths for naming shared libraries, and exclude the 12341 # DT_RUNPATH tag from executables and libraries. But doing so 12342 # requires that you compile everything twice, which is a pain. 12343 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12344 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12345 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12346 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 12347 else 12348 ld_shlibs=no 12349 fi 12350 ;; 12351 esac 12352 ;; 12353 12354 sunos4*) 12355 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12356 wlarc= 12357 hardcode_direct=yes 12358 hardcode_shlibpath_var=no 12359 ;; 12360 12361 *) 12362 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12363 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12364 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 12365 else 12366 ld_shlibs=no 12367 fi 12368 ;; 12369 esac 12370 12371 if test no = "$ld_shlibs"; then 12372 runpath_var= 12373 hardcode_libdir_flag_spec= 12374 export_dynamic_flag_spec= 12375 whole_archive_flag_spec= 12376 fi 12377 else 12378 # PORTME fill in a description of your system's linker (not GNU ld) 12379 case $host_os in 12380 aix3*) 12381 allow_undefined_flag=unsupported 12382 always_export_symbols=yes 12383 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' 12384 # Note: this linker hardcodes the directories in LIBPATH if there 12385 # are no directories specified by -L. 12386 hardcode_minus_L=yes 12387 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 12388 # Neither direct hardcoding nor static linking is supported with a 12389 # broken collect2. 12390 hardcode_direct=unsupported 12391 fi 12392 ;; 12393 12394 aix[4-9]*) 12395 if test ia64 = "$host_cpu"; then 12396 # On IA64, the linker does run time linking by default, so we don't 12397 # have to do anything special. 12398 aix_use_runtimelinking=no 12399 exp_sym_flag='-Bexport' 12400 no_entry_flag= 12401 else 12402 # If we're using GNU nm, then we don't want the "-C" option. 12403 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 12404 # Without the "-l" option, or with the "-B" option, AIX nm treats 12405 # weak defined symbols like other global defined symbols, whereas 12406 # GNU nm marks them as "W". 12407 # While the 'weak' keyword is ignored in the Export File, we need 12408 # it in the Import File for the 'aix-soname' feature, so we have 12409 # to replace the "-B" option with "-P" for AIX nm. 12410 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 12411 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 12412 else 12413 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 12414 fi 12415 aix_use_runtimelinking=no 12416 12417 # Test if we are trying to use run time linking or normal 12418 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12419 # have runtime linking enabled, and use it for executables. 12420 # For shared libraries, we enable/disable runtime linking 12421 # depending on the kind of the shared library created - 12422 # when "with_aix_soname,aix_use_runtimelinking" is: 12423 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 12424 # "aix,yes" lib.so shared, rtl:yes, for executables 12425 # lib.a static archive 12426 # "both,no" lib.so.V(shr.o) shared, rtl:yes 12427 # lib.a(lib.so.V) shared, rtl:no, for executables 12428 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 12429 # lib.a(lib.so.V) shared, rtl:no 12430 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 12431 # lib.a static archive 12432 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 12433 for ld_flag in $LDFLAGS; do 12434 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 12435 aix_use_runtimelinking=yes 12436 break 12437 fi 12438 done 12439 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 12440 # With aix-soname=svr4, we create the lib.so.V shared archives only, 12441 # so we don't have lib.a shared libs to link our executables. 12442 # We have to force runtime linking in this case. 12443 aix_use_runtimelinking=yes 12444 LDFLAGS="$LDFLAGS -Wl,-brtl" 12445 fi 12446 ;; 12447 esac 12448 12449 exp_sym_flag='-bexport' 12450 no_entry_flag='-bnoentry' 12451 fi 12452 12453 # When large executables or shared objects are built, AIX ld can 12454 # have problems creating the table of contents. If linking a library 12455 # or program results in "error TOC overflow" add -mminimal-toc to 12456 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12457 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12458 12459 archive_cmds='' 12460 hardcode_direct=yes 12461 hardcode_direct_absolute=yes 12462 hardcode_libdir_separator=':' 12463 link_all_deplibs=yes 12464 file_list_spec='$wl-f,' 12465 case $with_aix_soname,$aix_use_runtimelinking in 12466 aix,*) ;; # traditional, no import file 12467 svr4,* | *,yes) # use import file 12468 # The Import File defines what to hardcode. 12469 hardcode_direct=no 12470 hardcode_direct_absolute=no 12471 ;; 12472 esac 12473 12474 if test yes = "$GCC"; then 12475 case $host_os in aix4.[012]|aix4.[012].*) 12476 # We only want to do this on AIX 4.2 and lower, the check 12477 # below for broken collect2 doesn't work under 4.3+ 12478 collect2name=`$CC -print-prog-name=collect2` 12479 if test -f "$collect2name" && 12480 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 12481 then 12482 # We have reworked collect2 12483 : 12484 else 12485 # We have old collect2 12486 hardcode_direct=unsupported 12487 # It fails to find uninstalled libraries when the uninstalled 12488 # path is not listed in the libpath. Setting hardcode_minus_L 12489 # to unsupported forces relinking 12490 hardcode_minus_L=yes 12491 hardcode_libdir_flag_spec='-L$libdir' 12492 hardcode_libdir_separator= 12493 fi 12494 ;; 12495 esac 12496 shared_flag='-shared' 12497 if test yes = "$aix_use_runtimelinking"; then 12498 shared_flag="$shared_flag "'$wl-G' 12499 fi 12500 # Need to ensure runtime linking is disabled for the traditional 12501 # shared library, or the linker may eventually find shared libraries 12502 # /with/ Import File - we do not want to mix them. 12503 shared_flag_aix='-shared' 12504 shared_flag_svr4='-shared $wl-G' 12505 else 12506 # not using gcc 12507 if test ia64 = "$host_cpu"; then 12508 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12509 # chokes on -Wl,-G. The following line is correct: 12510 shared_flag='-G' 12511 else 12512 if test yes = "$aix_use_runtimelinking"; then 12513 shared_flag='$wl-G' 12514 else 12515 shared_flag='$wl-bM:SRE' 12516 fi 12517 shared_flag_aix='$wl-bM:SRE' 12518 shared_flag_svr4='$wl-G' 12519 fi 12520 fi 12521 12522 export_dynamic_flag_spec='$wl-bexpall' 12523 # It seems that -bexpall does not export symbols beginning with 12524 # underscore (_), so it is better to generate a list of symbols to export. 12525 always_export_symbols=yes 12526 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 12527 # Warning - without using the other runtime loading flags (-brtl), 12528 # -berok will link without error, but may produce a broken library. 12529 allow_undefined_flag='-berok' 12530 # Determine the default libpath from the value encoded in an 12531 # empty executable. 12532 if test set = "${lt_cv_aix_libpath+set}"; then 12533 aix_libpath=$lt_cv_aix_libpath 12534else 12535 if ${lt_cv_aix_libpath_+:} false; then : 12536 $as_echo_n "(cached) " >&6 12537else 12538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12539/* end confdefs.h. */ 12540 12541int 12542main () 12543{ 12544 12545 ; 12546 return 0; 12547} 12548_ACEOF 12549if ac_fn_c_try_link "$LINENO"; then : 12550 12551 lt_aix_libpath_sed=' 12552 /Import File Strings/,/^$/ { 12553 /^0/ { 12554 s/^0 *\([^ ]*\) *$/\1/ 12555 p 12556 } 12557 }' 12558 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12559 # Check for a 64-bit object if we didn't find anything. 12560 if test -z "$lt_cv_aix_libpath_"; then 12561 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12562 fi 12563fi 12564rm -f core conftest.err conftest.$ac_objext \ 12565 conftest$ac_exeext conftest.$ac_ext 12566 if test -z "$lt_cv_aix_libpath_"; then 12567 lt_cv_aix_libpath_=/usr/lib:/lib 12568 fi 12569 12570fi 12571 12572 aix_libpath=$lt_cv_aix_libpath_ 12573fi 12574 12575 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 12576 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 12577 else 12578 if test ia64 = "$host_cpu"; then 12579 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 12580 allow_undefined_flag="-z nodefs" 12581 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" 12582 else 12583 # Determine the default libpath from the value encoded in an 12584 # empty executable. 12585 if test set = "${lt_cv_aix_libpath+set}"; then 12586 aix_libpath=$lt_cv_aix_libpath 12587else 12588 if ${lt_cv_aix_libpath_+:} false; then : 12589 $as_echo_n "(cached) " >&6 12590else 12591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12592/* end confdefs.h. */ 12593 12594int 12595main () 12596{ 12597 12598 ; 12599 return 0; 12600} 12601_ACEOF 12602if ac_fn_c_try_link "$LINENO"; then : 12603 12604 lt_aix_libpath_sed=' 12605 /Import File Strings/,/^$/ { 12606 /^0/ { 12607 s/^0 *\([^ ]*\) *$/\1/ 12608 p 12609 } 12610 }' 12611 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12612 # Check for a 64-bit object if we didn't find anything. 12613 if test -z "$lt_cv_aix_libpath_"; then 12614 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12615 fi 12616fi 12617rm -f core conftest.err conftest.$ac_objext \ 12618 conftest$ac_exeext conftest.$ac_ext 12619 if test -z "$lt_cv_aix_libpath_"; then 12620 lt_cv_aix_libpath_=/usr/lib:/lib 12621 fi 12622 12623fi 12624 12625 aix_libpath=$lt_cv_aix_libpath_ 12626fi 12627 12628 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 12629 # Warning - without using the other run time loading flags, 12630 # -berok will link without error, but may produce a broken library. 12631 no_undefined_flag=' $wl-bernotok' 12632 allow_undefined_flag=' $wl-berok' 12633 if test yes = "$with_gnu_ld"; then 12634 # We only use this code for GNU lds that support --whole-archive. 12635 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 12636 else 12637 # Exported symbols can be pulled into shared objects from archives 12638 whole_archive_flag_spec='$convenience' 12639 fi 12640 archive_cmds_need_lc=yes 12641 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 12642 # -brtl affects multiple linker settings, -berok does not and is overridden later 12643 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 12644 if test svr4 != "$with_aix_soname"; then 12645 # This is similar to how AIX traditionally builds its shared libraries. 12646 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 12647 fi 12648 if test aix != "$with_aix_soname"; then 12649 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 12650 else 12651 # used by -dlpreopen to get the symbols 12652 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 12653 fi 12654 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 12655 fi 12656 fi 12657 ;; 12658 12659 amigaos*) 12660 case $host_cpu in 12661 powerpc) 12662 # see comment about AmigaOS4 .so support 12663 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12664 archive_expsym_cmds='' 12665 ;; 12666 m68k) 12667 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)' 12668 hardcode_libdir_flag_spec='-L$libdir' 12669 hardcode_minus_L=yes 12670 ;; 12671 esac 12672 ;; 12673 12674 bsdi[45]*) 12675 export_dynamic_flag_spec=-rdynamic 12676 ;; 12677 12678 cygwin* | mingw* | pw32* | cegcc*) 12679 # When not using gcc, we currently assume that we are using 12680 # Microsoft Visual C++. 12681 # hardcode_libdir_flag_spec is actually meaningless, as there is 12682 # no search path for DLLs. 12683 case $cc_basename in 12684 cl*) 12685 # Native MSVC 12686 hardcode_libdir_flag_spec=' ' 12687 allow_undefined_flag=unsupported 12688 always_export_symbols=yes 12689 file_list_spec='@' 12690 # Tell ltmain to make .lib files, not .a files. 12691 libext=lib 12692 # Tell ltmain to make .dll files, not .so files. 12693 shrext_cmds=.dll 12694 # FIXME: Setting linknames here is a bad hack. 12695 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 12696 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 12697 cp "$export_symbols" "$output_objdir/$soname.def"; 12698 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 12699 else 12700 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 12701 fi~ 12702 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 12703 linknames=' 12704 # The linker will not automatically build a static lib if we build a DLL. 12705 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 12706 enable_shared_with_static_runtimes=yes 12707 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 12708 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 12709 # Don't use ranlib 12710 old_postinstall_cmds='chmod 644 $oldlib' 12711 postlink_cmds='lt_outputfile="@OUTPUT@"~ 12712 lt_tool_outputfile="@TOOL_OUTPUT@"~ 12713 case $lt_outputfile in 12714 *.exe|*.EXE) ;; 12715 *) 12716 lt_outputfile=$lt_outputfile.exe 12717 lt_tool_outputfile=$lt_tool_outputfile.exe 12718 ;; 12719 esac~ 12720 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 12721 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 12722 $RM "$lt_outputfile.manifest"; 12723 fi' 12724 ;; 12725 *) 12726 # Assume MSVC wrapper 12727 hardcode_libdir_flag_spec=' ' 12728 allow_undefined_flag=unsupported 12729 # Tell ltmain to make .lib files, not .a files. 12730 libext=lib 12731 # Tell ltmain to make .dll files, not .so files. 12732 shrext_cmds=.dll 12733 # FIXME: Setting linknames here is a bad hack. 12734 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 12735 # The linker will automatically build a .lib file if we build a DLL. 12736 old_archive_from_new_cmds='true' 12737 # FIXME: Should let the user specify the lib program. 12738 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 12739 enable_shared_with_static_runtimes=yes 12740 ;; 12741 esac 12742 ;; 12743 12744 darwin* | rhapsody*) 12745 12746 12747 archive_cmds_need_lc=no 12748 hardcode_direct=no 12749 hardcode_automatic=yes 12750 hardcode_shlibpath_var=unsupported 12751 if test yes = "$lt_cv_ld_force_load"; then 12752 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\"`' 12753 12754 else 12755 whole_archive_flag_spec='' 12756 fi 12757 link_all_deplibs=yes 12758 allow_undefined_flag=$_lt_dar_allow_undefined 12759 case $cc_basename in 12760 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 12761 *) _lt_dar_can_shared=$GCC ;; 12762 esac 12763 if test yes = "$_lt_dar_can_shared"; then 12764 output_verbose_link_cmd=func_echo_all 12765 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 12766 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 12767 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" 12768 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" 12769 12770 else 12771 ld_shlibs=no 12772 fi 12773 12774 ;; 12775 12776 dgux*) 12777 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12778 hardcode_libdir_flag_spec='-L$libdir' 12779 hardcode_shlibpath_var=no 12780 ;; 12781 12782 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 12783 # support. Future versions do this automatically, but an explicit c++rt0.o 12784 # does not break anything, and helps significantly (at the cost of a little 12785 # extra space). 12786 freebsd2.2*) 12787 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 12788 hardcode_libdir_flag_spec='-R$libdir' 12789 hardcode_direct=yes 12790 hardcode_shlibpath_var=no 12791 ;; 12792 12793 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 12794 freebsd2.*) 12795 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12796 hardcode_direct=yes 12797 hardcode_minus_L=yes 12798 hardcode_shlibpath_var=no 12799 ;; 12800 12801 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 12802 freebsd* | dragonfly*) 12803 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12804 hardcode_libdir_flag_spec='-R$libdir' 12805 hardcode_direct=yes 12806 hardcode_shlibpath_var=no 12807 ;; 12808 12809 hpux9*) 12810 if test yes = "$GCC"; then 12811 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 12812 else 12813 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 12814 fi 12815 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12816 hardcode_libdir_separator=: 12817 hardcode_direct=yes 12818 12819 # hardcode_minus_L: Not really in the search PATH, 12820 # but as the default location of the library. 12821 hardcode_minus_L=yes 12822 export_dynamic_flag_spec='$wl-E' 12823 ;; 12824 12825 hpux10*) 12826 if test yes,no = "$GCC,$with_gnu_ld"; then 12827 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12828 else 12829 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12830 fi 12831 if test no = "$with_gnu_ld"; then 12832 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12833 hardcode_libdir_separator=: 12834 hardcode_direct=yes 12835 hardcode_direct_absolute=yes 12836 export_dynamic_flag_spec='$wl-E' 12837 # hardcode_minus_L: Not really in the search PATH, 12838 # but as the default location of the library. 12839 hardcode_minus_L=yes 12840 fi 12841 ;; 12842 12843 hpux11*) 12844 if test yes,no = "$GCC,$with_gnu_ld"; then 12845 case $host_cpu in 12846 hppa*64*) 12847 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 12848 ;; 12849 ia64*) 12850 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12851 ;; 12852 *) 12853 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12854 ;; 12855 esac 12856 else 12857 case $host_cpu in 12858 hppa*64*) 12859 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 12860 ;; 12861 ia64*) 12862 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12863 ;; 12864 *) 12865 12866 # Older versions of the 11.00 compiler do not understand -b yet 12867 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 12868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 12869$as_echo_n "checking if $CC understands -b... " >&6; } 12870if ${lt_cv_prog_compiler__b+:} false; then : 12871 $as_echo_n "(cached) " >&6 12872else 12873 lt_cv_prog_compiler__b=no 12874 save_LDFLAGS=$LDFLAGS 12875 LDFLAGS="$LDFLAGS -b" 12876 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12877 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12878 # The linker can only warn and ignore the option if not recognized 12879 # So say no if there are warnings 12880 if test -s conftest.err; then 12881 # Append any errors to the config.log. 12882 cat conftest.err 1>&5 12883 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 12884 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12885 if diff conftest.exp conftest.er2 >/dev/null; then 12886 lt_cv_prog_compiler__b=yes 12887 fi 12888 else 12889 lt_cv_prog_compiler__b=yes 12890 fi 12891 fi 12892 $RM -r conftest* 12893 LDFLAGS=$save_LDFLAGS 12894 12895fi 12896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 12897$as_echo "$lt_cv_prog_compiler__b" >&6; } 12898 12899if test yes = "$lt_cv_prog_compiler__b"; then 12900 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12901else 12902 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12903fi 12904 12905 ;; 12906 esac 12907 fi 12908 if test no = "$with_gnu_ld"; then 12909 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12910 hardcode_libdir_separator=: 12911 12912 case $host_cpu in 12913 hppa*64*|ia64*) 12914 hardcode_direct=no 12915 hardcode_shlibpath_var=no 12916 ;; 12917 *) 12918 hardcode_direct=yes 12919 hardcode_direct_absolute=yes 12920 export_dynamic_flag_spec='$wl-E' 12921 12922 # hardcode_minus_L: Not really in the search PATH, 12923 # but as the default location of the library. 12924 hardcode_minus_L=yes 12925 ;; 12926 esac 12927 fi 12928 ;; 12929 12930 irix5* | irix6* | nonstopux*) 12931 if test yes = "$GCC"; then 12932 archive_cmds='$CC -shared $pic_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' 12933 # Try to use the -exported_symbol ld option, if it does not 12934 # work, assume that -exports_file does not work either and 12935 # implicitly export all symbols. 12936 # This should be the same for all languages, so no per-tag cache variable. 12937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 12938$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 12939if ${lt_cv_irix_exported_symbol+:} false; then : 12940 $as_echo_n "(cached) " >&6 12941else 12942 save_LDFLAGS=$LDFLAGS 12943 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 12944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12945/* end confdefs.h. */ 12946int foo (void) { return 0; } 12947_ACEOF 12948if ac_fn_c_try_link "$LINENO"; then : 12949 lt_cv_irix_exported_symbol=yes 12950else 12951 lt_cv_irix_exported_symbol=no 12952fi 12953rm -f core conftest.err conftest.$ac_objext \ 12954 conftest$ac_exeext conftest.$ac_ext 12955 LDFLAGS=$save_LDFLAGS 12956fi 12957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 12958$as_echo "$lt_cv_irix_exported_symbol" >&6; } 12959 if test yes = "$lt_cv_irix_exported_symbol"; then 12960 archive_expsym_cmds='$CC -shared $pic_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 $wl-exports_file $wl$export_symbols -o $lib' 12961 fi 12962 else 12963 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' 12964 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' 12965 fi 12966 archive_cmds_need_lc='no' 12967 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12968 hardcode_libdir_separator=: 12969 inherit_rpath=yes 12970 link_all_deplibs=yes 12971 ;; 12972 12973 linux*) 12974 case $cc_basename in 12975 tcc*) 12976 # Fabrice Bellard et al's Tiny C Compiler 12977 ld_shlibs=yes 12978 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12979 ;; 12980 esac 12981 ;; 12982 12983 netbsd*) 12984 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12985 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 12986 else 12987 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 12988 fi 12989 hardcode_libdir_flag_spec='-R$libdir' 12990 hardcode_direct=yes 12991 hardcode_shlibpath_var=no 12992 ;; 12993 12994 newsos6) 12995 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12996 hardcode_direct=yes 12997 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12998 hardcode_libdir_separator=: 12999 hardcode_shlibpath_var=no 13000 ;; 13001 13002 *nto* | *qnx*) 13003 ;; 13004 13005 openbsd* | bitrig*) 13006 if test -f /usr/libexec/ld.so; then 13007 hardcode_direct=yes 13008 hardcode_shlibpath_var=no 13009 hardcode_direct_absolute=yes 13010 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 13011 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13012 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 13013 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 13014 export_dynamic_flag_spec='$wl-E' 13015 else 13016 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13017 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 13018 fi 13019 else 13020 ld_shlibs=no 13021 fi 13022 ;; 13023 13024 os2*) 13025 hardcode_libdir_flag_spec='-L$libdir' 13026 hardcode_minus_L=yes 13027 allow_undefined_flag=unsupported 13028 shrext_cmds=.dll 13029 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13030 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13031 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13032 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13033 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 13034 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13035 emximp -o $lib $output_objdir/$libname.def' 13036 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13037 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13038 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13039 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13040 prefix_cmds="$SED"~ 13041 if test EXPORTS = "`$SED 1q $export_symbols`"; then 13042 prefix_cmds="$prefix_cmds -e 1d"; 13043 fi~ 13044 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 13045 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 13046 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13047 emximp -o $lib $output_objdir/$libname.def' 13048 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 13049 enable_shared_with_static_runtimes=yes 13050 ;; 13051 13052 osf3*) 13053 if test yes = "$GCC"; then 13054 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 13055 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' 13056 else 13057 allow_undefined_flag=' -expect_unresolved \*' 13058 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' 13059 fi 13060 archive_cmds_need_lc='no' 13061 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13062 hardcode_libdir_separator=: 13063 ;; 13064 13065 osf4* | osf5*) # as osf3* with the addition of -msym flag 13066 if test yes = "$GCC"; then 13067 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 13068 archive_cmds='$CC -shared$allow_undefined_flag $pic_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' 13069 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13070 else 13071 allow_undefined_flag=' -expect_unresolved \*' 13072 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' 13073 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~ 13074 $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' 13075 13076 # Both c and cxx compiler support -rpath directly 13077 hardcode_libdir_flag_spec='-rpath $libdir' 13078 fi 13079 archive_cmds_need_lc='no' 13080 hardcode_libdir_separator=: 13081 ;; 13082 13083 solaris*) 13084 no_undefined_flag=' -z defs' 13085 if test yes = "$GCC"; then 13086 wlarc='$wl' 13087 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 13088 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13089 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 13090 else 13091 case `$CC -V 2>&1` in 13092 *"Compilers 5.0"*) 13093 wlarc='' 13094 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 13095 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13096 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 13097 ;; 13098 *) 13099 wlarc='$wl' 13100 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 13101 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13102 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 13103 ;; 13104 esac 13105 fi 13106 hardcode_libdir_flag_spec='-R$libdir' 13107 hardcode_shlibpath_var=no 13108 case $host_os in 13109 solaris2.[0-5] | solaris2.[0-5].*) ;; 13110 *) 13111 # The compiler driver will combine and reorder linker options, 13112 # but understands '-z linker_flag'. GCC discards it without '$wl', 13113 # but is careful enough not to reorder. 13114 # Supported since Solaris 2.6 (maybe 2.5.1?) 13115 if test yes = "$GCC"; then 13116 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 13117 else 13118 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 13119 fi 13120 ;; 13121 esac 13122 link_all_deplibs=yes 13123 ;; 13124 13125 sunos4*) 13126 if test sequent = "$host_vendor"; then 13127 # Use $CC to link under sequent, because it throws in some extra .o 13128 # files that make .init and .fini sections work. 13129 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 13130 else 13131 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 13132 fi 13133 hardcode_libdir_flag_spec='-L$libdir' 13134 hardcode_direct=yes 13135 hardcode_minus_L=yes 13136 hardcode_shlibpath_var=no 13137 ;; 13138 13139 sysv4) 13140 case $host_vendor in 13141 sni) 13142 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13143 hardcode_direct=yes # is this really true??? 13144 ;; 13145 siemens) 13146 ## LD is ld it makes a PLAMLIB 13147 ## CC just makes a GrossModule. 13148 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 13149 reload_cmds='$CC -r -o $output$reload_objs' 13150 hardcode_direct=no 13151 ;; 13152 motorola) 13153 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13154 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 13155 ;; 13156 esac 13157 runpath_var='LD_RUN_PATH' 13158 hardcode_shlibpath_var=no 13159 ;; 13160 13161 sysv4.3*) 13162 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13163 hardcode_shlibpath_var=no 13164 export_dynamic_flag_spec='-Bexport' 13165 ;; 13166 13167 sysv4*MP*) 13168 if test -d /usr/nec; then 13169 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13170 hardcode_shlibpath_var=no 13171 runpath_var=LD_RUN_PATH 13172 hardcode_runpath_var=yes 13173 ld_shlibs=yes 13174 fi 13175 ;; 13176 13177 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13178 no_undefined_flag='$wl-z,text' 13179 archive_cmds_need_lc=no 13180 hardcode_shlibpath_var=no 13181 runpath_var='LD_RUN_PATH' 13182 13183 if test yes = "$GCC"; then 13184 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13185 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13186 else 13187 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13188 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13189 fi 13190 ;; 13191 13192 sysv5* | sco3.2v5* | sco5v6*) 13193 # Note: We CANNOT use -z defs as we might desire, because we do not 13194 # link with -lc, and that would cause any symbols used from libc to 13195 # always be unresolved, which means just about no library would 13196 # ever link correctly. If we're not using GNU ld we use -z text 13197 # though, which does catch some bad symbols but isn't as heavy-handed 13198 # as -z defs. 13199 no_undefined_flag='$wl-z,text' 13200 allow_undefined_flag='$wl-z,nodefs' 13201 archive_cmds_need_lc=no 13202 hardcode_shlibpath_var=no 13203 hardcode_libdir_flag_spec='$wl-R,$libdir' 13204 hardcode_libdir_separator=':' 13205 link_all_deplibs=yes 13206 export_dynamic_flag_spec='$wl-Bexport' 13207 runpath_var='LD_RUN_PATH' 13208 13209 if test yes = "$GCC"; then 13210 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13211 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13212 else 13213 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13214 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13215 fi 13216 ;; 13217 13218 uts4*) 13219 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13220 hardcode_libdir_flag_spec='-L$libdir' 13221 hardcode_shlibpath_var=no 13222 ;; 13223 13224 *) 13225 ld_shlibs=no 13226 ;; 13227 esac 13228 13229 if test sni = "$host_vendor"; then 13230 case $host in 13231 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 13232 export_dynamic_flag_spec='$wl-Blargedynsym' 13233 ;; 13234 esac 13235 fi 13236 fi 13237 13238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 13239$as_echo "$ld_shlibs" >&6; } 13240test no = "$ld_shlibs" && can_build_shared=no 13241 13242with_gnu_ld=$with_gnu_ld 13243 13244 13245 13246 13247 13248 13249 13250 13251 13252 13253 13254 13255 13256 13257 13258# 13259# Do we need to explicitly link libc? 13260# 13261case "x$archive_cmds_need_lc" in 13262x|xyes) 13263 # Assume -lc should be added 13264 archive_cmds_need_lc=yes 13265 13266 if test yes,yes = "$GCC,$enable_shared"; then 13267 case $archive_cmds in 13268 *'~'*) 13269 # FIXME: we may have to deal with multi-command sequences. 13270 ;; 13271 '$CC '*) 13272 # Test whether the compiler implicitly links with -lc since on some 13273 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13274 # to ld, don't add -lc before -lgcc. 13275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 13276$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 13277if ${lt_cv_archive_cmds_need_lc+:} false; then : 13278 $as_echo_n "(cached) " >&6 13279else 13280 $RM conftest* 13281 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13282 13283 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13284 (eval $ac_compile) 2>&5 13285 ac_status=$? 13286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13287 test $ac_status = 0; } 2>conftest.err; then 13288 soname=conftest 13289 lib=conftest 13290 libobjs=conftest.$ac_objext 13291 deplibs= 13292 wl=$lt_prog_compiler_wl 13293 pic_flag=$lt_prog_compiler_pic 13294 compiler_flags=-v 13295 linker_flags=-v 13296 verstring= 13297 output_objdir=. 13298 libname=conftest 13299 lt_save_allow_undefined_flag=$allow_undefined_flag 13300 allow_undefined_flag= 13301 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 13302 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 13303 ac_status=$? 13304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13305 test $ac_status = 0; } 13306 then 13307 lt_cv_archive_cmds_need_lc=no 13308 else 13309 lt_cv_archive_cmds_need_lc=yes 13310 fi 13311 allow_undefined_flag=$lt_save_allow_undefined_flag 13312 else 13313 cat conftest.err 1>&5 13314 fi 13315 $RM conftest* 13316 13317fi 13318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 13319$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 13320 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 13321 ;; 13322 esac 13323 fi 13324 ;; 13325esac 13326 13327 13328 13329 13330 13331 13332 13333 13334 13335 13336 13337 13338 13339 13340 13341 13342 13343 13344 13345 13346 13347 13348 13349 13350 13351 13352 13353 13354 13355 13356 13357 13358 13359 13360 13361 13362 13363 13364 13365 13366 13367 13368 13369 13370 13371 13372 13373 13374 13375 13376 13377 13378 13379 13380 13381 13382 13383 13384 13385 13386 13387 13388 13389 13390 13391 13392 13393 13394 13395 13396 13397 13398 13399 13400 13401 13402 13403 13404 13405 13406 13407 13408 13409 13410 13411 13412 13413 13414 13415 13416 13417 13418 13419 13420 13421 13422 13423 13424 13425 13426 13427 13428 13429 13430 13431 13432 13433 13434 13435 13436 13437 13438 13439 13440 13441 13442 13443 13444 13445 13446 13447 13448 13449 13450 13451 13452 13453 13454 13455 13456 13457 13458 13459 13460 13461 13462 13463 13464 13465 13466 13467 13468 13469 13470 13471 13472 13473 13474 13475 13476 13477 13478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 13479$as_echo_n "checking dynamic linker characteristics... " >&6; } 13480 13481if test yes = "$GCC"; then 13482 case $host_os in 13483 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 13484 *) lt_awk_arg='/^libraries:/' ;; 13485 esac 13486 case $host_os in 13487 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 13488 *) lt_sed_strip_eq='s|=/|/|g' ;; 13489 esac 13490 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 13491 case $lt_search_path_spec in 13492 *\;*) 13493 # if the path contains ";" then we assume it to be the separator 13494 # otherwise default to the standard path separator (i.e. ":") - it is 13495 # assumed that no part of a normal pathname contains ";" but that should 13496 # okay in the real world where ";" in dirpaths is itself problematic. 13497 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 13498 ;; 13499 *) 13500 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 13501 ;; 13502 esac 13503 # Ok, now we have the path, separated by spaces, we can step through it 13504 # and add multilib dir if necessary... 13505 lt_tmp_lt_search_path_spec= 13506 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 13507 # ...but if some path component already ends with the multilib dir we assume 13508 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 13509 case "$lt_multi_os_dir; $lt_search_path_spec " in 13510 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 13511 lt_multi_os_dir= 13512 ;; 13513 esac 13514 for lt_sys_path in $lt_search_path_spec; do 13515 if test -d "$lt_sys_path$lt_multi_os_dir"; then 13516 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 13517 elif test -n "$lt_multi_os_dir"; then 13518 test -d "$lt_sys_path" && \ 13519 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 13520 fi 13521 done 13522 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 13523BEGIN {RS = " "; FS = "/|\n";} { 13524 lt_foo = ""; 13525 lt_count = 0; 13526 for (lt_i = NF; lt_i > 0; lt_i--) { 13527 if ($lt_i != "" && $lt_i != ".") { 13528 if ($lt_i == "..") { 13529 lt_count++; 13530 } else { 13531 if (lt_count == 0) { 13532 lt_foo = "/" $lt_i lt_foo; 13533 } else { 13534 lt_count--; 13535 } 13536 } 13537 } 13538 } 13539 if (lt_foo != "") { lt_freq[lt_foo]++; } 13540 if (lt_freq[lt_foo] == 1) { print lt_foo; } 13541}'` 13542 # AWK program above erroneously prepends '/' to C:/dos/paths 13543 # for these hosts. 13544 case $host_os in 13545 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 13546 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 13547 esac 13548 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 13549else 13550 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13551fi 13552library_names_spec= 13553libname_spec='lib$name' 13554soname_spec= 13555shrext_cmds=.so 13556postinstall_cmds= 13557postuninstall_cmds= 13558finish_cmds= 13559finish_eval= 13560shlibpath_var= 13561shlibpath_overrides_runpath=unknown 13562version_type=none 13563dynamic_linker="$host_os ld.so" 13564sys_lib_dlsearch_path_spec="/lib /usr/lib" 13565need_lib_prefix=unknown 13566hardcode_into_libs=no 13567 13568# when you set need_version to no, make sure it does not cause -set_version 13569# flags to be left without arguments 13570need_version=unknown 13571 13572 13573 13574case $host_os in 13575aix3*) 13576 version_type=linux # correct to gnu/linux during the next big refactor 13577 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 13578 shlibpath_var=LIBPATH 13579 13580 # AIX 3 has no versioning support, so we append a major version to the name. 13581 soname_spec='$libname$release$shared_ext$major' 13582 ;; 13583 13584aix[4-9]*) 13585 version_type=linux # correct to gnu/linux during the next big refactor 13586 need_lib_prefix=no 13587 need_version=no 13588 hardcode_into_libs=yes 13589 if test ia64 = "$host_cpu"; then 13590 # AIX 5 supports IA64 13591 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 13592 shlibpath_var=LD_LIBRARY_PATH 13593 else 13594 # With GCC up to 2.95.x, collect2 would create an import file 13595 # for dependence libraries. The import file would start with 13596 # the line '#! .'. This would cause the generated library to 13597 # depend on '.', always an invalid library. This was fixed in 13598 # development snapshots of GCC prior to 3.0. 13599 case $host_os in 13600 aix4 | aix4.[01] | aix4.[01].*) 13601 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13602 echo ' yes ' 13603 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 13604 : 13605 else 13606 can_build_shared=no 13607 fi 13608 ;; 13609 esac 13610 # Using Import Files as archive members, it is possible to support 13611 # filename-based versioning of shared library archives on AIX. While 13612 # this would work for both with and without runtime linking, it will 13613 # prevent static linking of such archives. So we do filename-based 13614 # shared library versioning with .so extension only, which is used 13615 # when both runtime linking and shared linking is enabled. 13616 # Unfortunately, runtime linking may impact performance, so we do 13617 # not want this to be the default eventually. Also, we use the 13618 # versioned .so libs for executables only if there is the -brtl 13619 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 13620 # To allow for filename-based versioning support, we need to create 13621 # libNAME.so.V as an archive file, containing: 13622 # *) an Import File, referring to the versioned filename of the 13623 # archive as well as the shared archive member, telling the 13624 # bitwidth (32 or 64) of that shared object, and providing the 13625 # list of exported symbols of that shared object, eventually 13626 # decorated with the 'weak' keyword 13627 # *) the shared object with the F_LOADONLY flag set, to really avoid 13628 # it being seen by the linker. 13629 # At run time we better use the real file rather than another symlink, 13630 # but for link time we create the symlink libNAME.so -> libNAME.so.V 13631 13632 case $with_aix_soname,$aix_use_runtimelinking in 13633 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 13634 # soname into executable. Probably we can add versioning support to 13635 # collect2, so additional links can be useful in future. 13636 aix,yes) # traditional libtool 13637 dynamic_linker='AIX unversionable lib.so' 13638 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13639 # instead of lib<name>.a to let people know that these are not 13640 # typical AIX shared libraries. 13641 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13642 ;; 13643 aix,no) # traditional AIX only 13644 dynamic_linker='AIX lib.a(lib.so.V)' 13645 # We preserve .a as extension for shared libraries through AIX4.2 13646 # and later when we are not doing run time linking. 13647 library_names_spec='$libname$release.a $libname.a' 13648 soname_spec='$libname$release$shared_ext$major' 13649 ;; 13650 svr4,*) # full svr4 only 13651 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 13652 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 13653 # We do not specify a path in Import Files, so LIBPATH fires. 13654 shlibpath_overrides_runpath=yes 13655 ;; 13656 *,yes) # both, prefer svr4 13657 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 13658 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 13659 # unpreferred sharedlib libNAME.a needs extra handling 13660 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 13661 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 13662 # We do not specify a path in Import Files, so LIBPATH fires. 13663 shlibpath_overrides_runpath=yes 13664 ;; 13665 *,no) # both, prefer aix 13666 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 13667 library_names_spec='$libname$release.a $libname.a' 13668 soname_spec='$libname$release$shared_ext$major' 13669 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 13670 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 13671 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 13672 ;; 13673 esac 13674 shlibpath_var=LIBPATH 13675 fi 13676 ;; 13677 13678amigaos*) 13679 case $host_cpu in 13680 powerpc) 13681 # Since July 2007 AmigaOS4 officially supports .so libraries. 13682 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 13683 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13684 ;; 13685 m68k) 13686 library_names_spec='$libname.ixlibrary $libname.a' 13687 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13688 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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' 13689 ;; 13690 esac 13691 ;; 13692 13693beos*) 13694 library_names_spec='$libname$shared_ext' 13695 dynamic_linker="$host_os ld.so" 13696 shlibpath_var=LIBRARY_PATH 13697 ;; 13698 13699bsdi[45]*) 13700 version_type=linux # correct to gnu/linux during the next big refactor 13701 need_version=no 13702 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13703 soname_spec='$libname$release$shared_ext$major' 13704 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13705 shlibpath_var=LD_LIBRARY_PATH 13706 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13707 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13708 # the default ld.so.conf also contains /usr/contrib/lib and 13709 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13710 # libtool to hard-code these into programs 13711 ;; 13712 13713cygwin* | mingw* | pw32* | cegcc*) 13714 version_type=windows 13715 shrext_cmds=.dll 13716 need_version=no 13717 need_lib_prefix=no 13718 13719 case $GCC,$cc_basename in 13720 yes,*) 13721 # gcc 13722 library_names_spec='$libname.dll.a' 13723 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13724 postinstall_cmds='base_file=`basename \$file`~ 13725 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 13726 dldir=$destdir/`dirname \$dlpath`~ 13727 test -d \$dldir || mkdir -p \$dldir~ 13728 $install_prog $dir/$dlname \$dldir/$dlname~ 13729 chmod a+x \$dldir/$dlname~ 13730 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 13731 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 13732 fi' 13733 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13734 dlpath=$dir/\$dldll~ 13735 $RM \$dlpath' 13736 shlibpath_overrides_runpath=yes 13737 13738 case $host_os in 13739 cygwin*) 13740 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13741 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13742 13743 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 13744 ;; 13745 mingw* | cegcc*) 13746 # MinGW DLLs use traditional 'lib' prefix 13747 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13748 ;; 13749 pw32*) 13750 # pw32 DLLs use 'pw' prefix rather than 'lib' 13751 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13752 ;; 13753 esac 13754 dynamic_linker='Win32 ld.exe' 13755 ;; 13756 13757 *,cl*) 13758 # Native MSVC 13759 libname_spec='$name' 13760 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13761 library_names_spec='$libname.dll.lib' 13762 13763 case $build_os in 13764 mingw*) 13765 sys_lib_search_path_spec= 13766 lt_save_ifs=$IFS 13767 IFS=';' 13768 for lt_path in $LIB 13769 do 13770 IFS=$lt_save_ifs 13771 # Let DOS variable expansion print the short 8.3 style file name. 13772 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 13773 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 13774 done 13775 IFS=$lt_save_ifs 13776 # Convert to MSYS style. 13777 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 13778 ;; 13779 cygwin*) 13780 # Convert to unix form, then to dos form, then back to unix form 13781 # but this time dos style (no spaces!) so that the unix form looks 13782 # like /cygdrive/c/PROGRA~1:/cygdr... 13783 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 13784 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 13785 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13786 ;; 13787 *) 13788 sys_lib_search_path_spec=$LIB 13789 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 13790 # It is most probably a Windows format PATH. 13791 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13792 else 13793 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13794 fi 13795 # FIXME: find the short name or the path components, as spaces are 13796 # common. (e.g. "Program Files" -> "PROGRA~1") 13797 ;; 13798 esac 13799 13800 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13801 postinstall_cmds='base_file=`basename \$file`~ 13802 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 13803 dldir=$destdir/`dirname \$dlpath`~ 13804 test -d \$dldir || mkdir -p \$dldir~ 13805 $install_prog $dir/$dlname \$dldir/$dlname' 13806 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13807 dlpath=$dir/\$dldll~ 13808 $RM \$dlpath' 13809 shlibpath_overrides_runpath=yes 13810 dynamic_linker='Win32 link.exe' 13811 ;; 13812 13813 *) 13814 # Assume MSVC wrapper 13815 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 13816 dynamic_linker='Win32 ld.exe' 13817 ;; 13818 esac 13819 # FIXME: first we should search . and the directory the executable is in 13820 shlibpath_var=PATH 13821 ;; 13822 13823darwin* | rhapsody*) 13824 dynamic_linker="$host_os dyld" 13825 version_type=darwin 13826 need_lib_prefix=no 13827 need_version=no 13828 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 13829 soname_spec='$libname$release$major$shared_ext' 13830 shlibpath_overrides_runpath=yes 13831 shlibpath_var=DYLD_LIBRARY_PATH 13832 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13833 13834 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 13835 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13836 ;; 13837 13838dgux*) 13839 version_type=linux # correct to gnu/linux during the next big refactor 13840 need_lib_prefix=no 13841 need_version=no 13842 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13843 soname_spec='$libname$release$shared_ext$major' 13844 shlibpath_var=LD_LIBRARY_PATH 13845 ;; 13846 13847freebsd* | dragonfly*) 13848 # DragonFly does not have aout. When/if they implement a new 13849 # versioning mechanism, adjust this. 13850 if test -x /usr/bin/objformat; then 13851 objformat=`/usr/bin/objformat` 13852 else 13853 case $host_os in 13854 freebsd[23].*) objformat=aout ;; 13855 *) objformat=elf ;; 13856 esac 13857 fi 13858 version_type=freebsd-$objformat 13859 case $version_type in 13860 freebsd-elf*) 13861 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13862 soname_spec='$libname$release$shared_ext$major' 13863 need_version=no 13864 need_lib_prefix=no 13865 ;; 13866 freebsd-*) 13867 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13868 need_version=yes 13869 ;; 13870 esac 13871 shlibpath_var=LD_LIBRARY_PATH 13872 case $host_os in 13873 freebsd2.*) 13874 shlibpath_overrides_runpath=yes 13875 ;; 13876 freebsd3.[01]* | freebsdelf3.[01]*) 13877 shlibpath_overrides_runpath=yes 13878 hardcode_into_libs=yes 13879 ;; 13880 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13881 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13882 shlibpath_overrides_runpath=no 13883 hardcode_into_libs=yes 13884 ;; 13885 *) # from 4.6 on, and DragonFly 13886 shlibpath_overrides_runpath=yes 13887 hardcode_into_libs=yes 13888 ;; 13889 esac 13890 ;; 13891 13892haiku*) 13893 version_type=linux # correct to gnu/linux during the next big refactor 13894 need_lib_prefix=no 13895 need_version=no 13896 dynamic_linker="$host_os runtime_loader" 13897 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13898 soname_spec='$libname$release$shared_ext$major' 13899 shlibpath_var=LIBRARY_PATH 13900 shlibpath_overrides_runpath=no 13901 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 13902 hardcode_into_libs=yes 13903 ;; 13904 13905hpux9* | hpux10* | hpux11*) 13906 # Give a soname corresponding to the major version so that dld.sl refuses to 13907 # link against other versions. 13908 version_type=sunos 13909 need_lib_prefix=no 13910 need_version=no 13911 case $host_cpu in 13912 ia64*) 13913 shrext_cmds='.so' 13914 hardcode_into_libs=yes 13915 dynamic_linker="$host_os dld.so" 13916 shlibpath_var=LD_LIBRARY_PATH 13917 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13918 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13919 soname_spec='$libname$release$shared_ext$major' 13920 if test 32 = "$HPUX_IA64_MODE"; then 13921 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13922 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 13923 else 13924 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13925 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 13926 fi 13927 ;; 13928 hppa*64*) 13929 shrext_cmds='.sl' 13930 hardcode_into_libs=yes 13931 dynamic_linker="$host_os dld.sl" 13932 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13933 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13934 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13935 soname_spec='$libname$release$shared_ext$major' 13936 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13937 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13938 ;; 13939 *) 13940 shrext_cmds='.sl' 13941 dynamic_linker="$host_os dld.sl" 13942 shlibpath_var=SHLIB_PATH 13943 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13944 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13945 soname_spec='$libname$release$shared_ext$major' 13946 ;; 13947 esac 13948 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 13949 postinstall_cmds='chmod 555 $lib' 13950 # or fails outright, so override atomically: 13951 install_override_mode=555 13952 ;; 13953 13954interix[3-9]*) 13955 version_type=linux # correct to gnu/linux during the next big refactor 13956 need_lib_prefix=no 13957 need_version=no 13958 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13959 soname_spec='$libname$release$shared_ext$major' 13960 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13961 shlibpath_var=LD_LIBRARY_PATH 13962 shlibpath_overrides_runpath=no 13963 hardcode_into_libs=yes 13964 ;; 13965 13966irix5* | irix6* | nonstopux*) 13967 case $host_os in 13968 nonstopux*) version_type=nonstopux ;; 13969 *) 13970 if test yes = "$lt_cv_prog_gnu_ld"; then 13971 version_type=linux # correct to gnu/linux during the next big refactor 13972 else 13973 version_type=irix 13974 fi ;; 13975 esac 13976 need_lib_prefix=no 13977 need_version=no 13978 soname_spec='$libname$release$shared_ext$major' 13979 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 13980 case $host_os in 13981 irix5* | nonstopux*) 13982 libsuff= shlibsuff= 13983 ;; 13984 *) 13985 case $LD in # libtool.m4 will add one of these switches to LD 13986 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13987 libsuff= shlibsuff= libmagic=32-bit;; 13988 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13989 libsuff=32 shlibsuff=N32 libmagic=N32;; 13990 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13991 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13992 *) libsuff= shlibsuff= libmagic=never-match;; 13993 esac 13994 ;; 13995 esac 13996 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13997 shlibpath_overrides_runpath=no 13998 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 13999 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 14000 hardcode_into_libs=yes 14001 ;; 14002 14003# No shared lib support for Linux oldld, aout, or coff. 14004linux*oldld* | linux*aout* | linux*coff*) 14005 dynamic_linker=no 14006 ;; 14007 14008linux*android*) 14009 version_type=none # Android doesn't support versioned libraries. 14010 need_lib_prefix=no 14011 need_version=no 14012 library_names_spec='$libname$release$shared_ext' 14013 soname_spec='$libname$release$shared_ext' 14014 finish_cmds= 14015 shlibpath_var=LD_LIBRARY_PATH 14016 shlibpath_overrides_runpath=yes 14017 14018 # This implies no fast_install, which is unacceptable. 14019 # Some rework will be needed to allow for fast_install 14020 # before this can be enabled. 14021 hardcode_into_libs=yes 14022 14023 dynamic_linker='Android linker' 14024 # Don't embed -rpath directories since the linker doesn't support them. 14025 hardcode_libdir_flag_spec='-L$libdir' 14026 ;; 14027 14028# This must be glibc/ELF. 14029linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14030 version_type=linux # correct to gnu/linux during the next big refactor 14031 need_lib_prefix=no 14032 need_version=no 14033 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14034 soname_spec='$libname$release$shared_ext$major' 14035 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14036 shlibpath_var=LD_LIBRARY_PATH 14037 shlibpath_overrides_runpath=no 14038 14039 # Some binutils ld are patched to set DT_RUNPATH 14040 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 14041 $as_echo_n "(cached) " >&6 14042else 14043 lt_cv_shlibpath_overrides_runpath=no 14044 save_LDFLAGS=$LDFLAGS 14045 save_libdir=$libdir 14046 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 14047 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 14048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14049/* end confdefs.h. */ 14050 14051int 14052main () 14053{ 14054 14055 ; 14056 return 0; 14057} 14058_ACEOF 14059if ac_fn_c_try_link "$LINENO"; then : 14060 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 14061 lt_cv_shlibpath_overrides_runpath=yes 14062fi 14063fi 14064rm -f core conftest.err conftest.$ac_objext \ 14065 conftest$ac_exeext conftest.$ac_ext 14066 LDFLAGS=$save_LDFLAGS 14067 libdir=$save_libdir 14068 14069fi 14070 14071 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 14072 14073 # This implies no fast_install, which is unacceptable. 14074 # Some rework will be needed to allow for fast_install 14075 # before this can be enabled. 14076 hardcode_into_libs=yes 14077 14078 # Ideally, we could use ldconfig to report *all* directores which are 14079 # searched for libraries, however this is still not possible. Aside from not 14080 # being certain /sbin/ldconfig is available, command 14081 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 14082 # even though it is searched at run-time. Try to do the best guess by 14083 # appending ld.so.conf contents (and includes) to the search path. 14084 if test -f /etc/ld.so.conf; then 14085 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' ' '` 14086 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 14087 fi 14088 14089 # We used to test for /lib/ld.so.1 and disable shared libraries on 14090 # powerpc, because MkLinux only supported shared libraries with the 14091 # GNU dynamic linker. Since this was broken with cross compilers, 14092 # most powerpc-linux boxes support dynamic linking these days and 14093 # people can always --disable-shared, the test was removed, and we 14094 # assume the GNU/Linux dynamic linker is in use. 14095 dynamic_linker='GNU/Linux ld.so' 14096 ;; 14097 14098netbsd*) 14099 version_type=sunos 14100 need_lib_prefix=no 14101 need_version=no 14102 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14103 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 14104 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14105 dynamic_linker='NetBSD (a.out) ld.so' 14106 else 14107 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14108 soname_spec='$libname$release$shared_ext$major' 14109 dynamic_linker='NetBSD ld.elf_so' 14110 fi 14111 shlibpath_var=LD_LIBRARY_PATH 14112 shlibpath_overrides_runpath=yes 14113 hardcode_into_libs=yes 14114 ;; 14115 14116newsos6) 14117 version_type=linux # correct to gnu/linux during the next big refactor 14118 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14119 shlibpath_var=LD_LIBRARY_PATH 14120 shlibpath_overrides_runpath=yes 14121 ;; 14122 14123*nto* | *qnx*) 14124 version_type=qnx 14125 need_lib_prefix=no 14126 need_version=no 14127 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14128 soname_spec='$libname$release$shared_ext$major' 14129 shlibpath_var=LD_LIBRARY_PATH 14130 shlibpath_overrides_runpath=no 14131 hardcode_into_libs=yes 14132 dynamic_linker='ldqnx.so' 14133 ;; 14134 14135openbsd* | bitrig*) 14136 version_type=sunos 14137 sys_lib_dlsearch_path_spec=/usr/lib 14138 need_lib_prefix=no 14139 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 14140 need_version=no 14141 else 14142 need_version=yes 14143 fi 14144 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 14145 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14146 shlibpath_var=LD_LIBRARY_PATH 14147 shlibpath_overrides_runpath=yes 14148 ;; 14149 14150os2*) 14151 libname_spec='$name' 14152 version_type=windows 14153 shrext_cmds=.dll 14154 need_version=no 14155 need_lib_prefix=no 14156 # OS/2 can only load a DLL with a base name of 8 characters or less. 14157 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 14158 v=$($ECHO $release$versuffix | tr -d .-); 14159 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 14160 $ECHO $n$v`$shared_ext' 14161 library_names_spec='${libname}_dll.$libext' 14162 dynamic_linker='OS/2 ld.exe' 14163 shlibpath_var=BEGINLIBPATH 14164 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 14165 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14166 postinstall_cmds='base_file=`basename \$file`~ 14167 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 14168 dldir=$destdir/`dirname \$dlpath`~ 14169 test -d \$dldir || mkdir -p \$dldir~ 14170 $install_prog $dir/$dlname \$dldir/$dlname~ 14171 chmod a+x \$dldir/$dlname~ 14172 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 14173 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 14174 fi' 14175 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 14176 dlpath=$dir/\$dldll~ 14177 $RM \$dlpath' 14178 ;; 14179 14180osf3* | osf4* | osf5*) 14181 version_type=osf 14182 need_lib_prefix=no 14183 need_version=no 14184 soname_spec='$libname$release$shared_ext$major' 14185 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14186 shlibpath_var=LD_LIBRARY_PATH 14187 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14188 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14189 ;; 14190 14191rdos*) 14192 dynamic_linker=no 14193 ;; 14194 14195solaris*) 14196 version_type=linux # correct to gnu/linux during the next big refactor 14197 need_lib_prefix=no 14198 need_version=no 14199 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14200 soname_spec='$libname$release$shared_ext$major' 14201 shlibpath_var=LD_LIBRARY_PATH 14202 shlibpath_overrides_runpath=yes 14203 hardcode_into_libs=yes 14204 # ldd complains unless libraries are executable 14205 postinstall_cmds='chmod +x $lib' 14206 ;; 14207 14208sunos4*) 14209 version_type=sunos 14210 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 14211 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14212 shlibpath_var=LD_LIBRARY_PATH 14213 shlibpath_overrides_runpath=yes 14214 if test yes = "$with_gnu_ld"; then 14215 need_lib_prefix=no 14216 fi 14217 need_version=yes 14218 ;; 14219 14220sysv4 | sysv4.3*) 14221 version_type=linux # correct to gnu/linux during the next big refactor 14222 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14223 soname_spec='$libname$release$shared_ext$major' 14224 shlibpath_var=LD_LIBRARY_PATH 14225 case $host_vendor in 14226 sni) 14227 shlibpath_overrides_runpath=no 14228 need_lib_prefix=no 14229 runpath_var=LD_RUN_PATH 14230 ;; 14231 siemens) 14232 need_lib_prefix=no 14233 ;; 14234 motorola) 14235 need_lib_prefix=no 14236 need_version=no 14237 shlibpath_overrides_runpath=no 14238 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14239 ;; 14240 esac 14241 ;; 14242 14243sysv4*MP*) 14244 if test -d /usr/nec; then 14245 version_type=linux # correct to gnu/linux during the next big refactor 14246 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 14247 soname_spec='$libname$shared_ext.$major' 14248 shlibpath_var=LD_LIBRARY_PATH 14249 fi 14250 ;; 14251 14252sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14253 version_type=sco 14254 need_lib_prefix=no 14255 need_version=no 14256 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 14257 soname_spec='$libname$release$shared_ext$major' 14258 shlibpath_var=LD_LIBRARY_PATH 14259 shlibpath_overrides_runpath=yes 14260 hardcode_into_libs=yes 14261 if test yes = "$with_gnu_ld"; then 14262 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14263 else 14264 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 14265 case $host_os in 14266 sco3.2v5*) 14267 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 14268 ;; 14269 esac 14270 fi 14271 sys_lib_dlsearch_path_spec='/usr/lib' 14272 ;; 14273 14274tpf*) 14275 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 14276 version_type=linux # correct to gnu/linux during the next big refactor 14277 need_lib_prefix=no 14278 need_version=no 14279 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14280 shlibpath_var=LD_LIBRARY_PATH 14281 shlibpath_overrides_runpath=no 14282 hardcode_into_libs=yes 14283 ;; 14284 14285uts4*) 14286 version_type=linux # correct to gnu/linux during the next big refactor 14287 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14288 soname_spec='$libname$release$shared_ext$major' 14289 shlibpath_var=LD_LIBRARY_PATH 14290 ;; 14291 14292*) 14293 dynamic_linker=no 14294 ;; 14295esac 14296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 14297$as_echo "$dynamic_linker" >&6; } 14298test no = "$dynamic_linker" && can_build_shared=no 14299 14300variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14301if test yes = "$GCC"; then 14302 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14303fi 14304 14305if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 14306 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 14307fi 14308 14309if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 14310 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 14311fi 14312 14313# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 14314configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 14315 14316# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 14317func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 14318 14319# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 14320configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 14321 14322 14323 14324 14325 14326 14327 14328 14329 14330 14331 14332 14333 14334 14335 14336 14337 14338 14339 14340 14341 14342 14343 14344 14345 14346 14347 14348 14349 14350 14351 14352 14353 14354 14355 14356 14357 14358 14359 14360 14361 14362 14363 14364 14365 14366 14367 14368 14369 14370 14371 14372 14373 14374 14375 14376 14377 14378 14379 14380 14381 14382 14383 14384 14385 14386 14387 14388 14389 14390 14391 14392 14393 14394 14395 14396 14397 14398 14399 14400 14401 14402 14403 14404 14405 14406 14407 14408 14409 14410 14411 14412 14413 14414 14415 14416 14417 14418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 14419$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 14420hardcode_action= 14421if test -n "$hardcode_libdir_flag_spec" || 14422 test -n "$runpath_var" || 14423 test yes = "$hardcode_automatic"; then 14424 14425 # We can hardcode non-existent directories. 14426 if test no != "$hardcode_direct" && 14427 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14428 # have to relink, otherwise we might link with an installed library 14429 # when we should be linking with a yet-to-be-installed one 14430 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 14431 test no != "$hardcode_minus_L"; then 14432 # Linking always hardcodes the temporary library directory. 14433 hardcode_action=relink 14434 else 14435 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14436 hardcode_action=immediate 14437 fi 14438else 14439 # We cannot hardcode anything, or else we can only hardcode existing 14440 # directories. 14441 hardcode_action=unsupported 14442fi 14443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 14444$as_echo "$hardcode_action" >&6; } 14445 14446if test relink = "$hardcode_action" || 14447 test yes = "$inherit_rpath"; then 14448 # Fast installation is not supported 14449 enable_fast_install=no 14450elif test yes = "$shlibpath_overrides_runpath" || 14451 test no = "$enable_shared"; then 14452 # Fast installation is not necessary 14453 enable_fast_install=needless 14454fi 14455 14456 14457 14458 14459 14460 14461 if test yes != "$enable_dlopen"; then 14462 enable_dlopen=unknown 14463 enable_dlopen_self=unknown 14464 enable_dlopen_self_static=unknown 14465else 14466 lt_cv_dlopen=no 14467 lt_cv_dlopen_libs= 14468 14469 case $host_os in 14470 beos*) 14471 lt_cv_dlopen=load_add_on 14472 lt_cv_dlopen_libs= 14473 lt_cv_dlopen_self=yes 14474 ;; 14475 14476 mingw* | pw32* | cegcc*) 14477 lt_cv_dlopen=LoadLibrary 14478 lt_cv_dlopen_libs= 14479 ;; 14480 14481 cygwin*) 14482 lt_cv_dlopen=dlopen 14483 lt_cv_dlopen_libs= 14484 ;; 14485 14486 darwin*) 14487 # if libdl is installed we need to link against it 14488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 14489$as_echo_n "checking for dlopen in -ldl... " >&6; } 14490if ${ac_cv_lib_dl_dlopen+:} false; then : 14491 $as_echo_n "(cached) " >&6 14492else 14493 ac_check_lib_save_LIBS=$LIBS 14494LIBS="-ldl $LIBS" 14495cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14496/* end confdefs.h. */ 14497 14498/* Override any GCC internal prototype to avoid an error. 14499 Use char because int might match the return type of a GCC 14500 builtin and then its argument prototype would still apply. */ 14501#ifdef __cplusplus 14502extern "C" 14503#endif 14504char dlopen (); 14505int 14506main () 14507{ 14508return dlopen (); 14509 ; 14510 return 0; 14511} 14512_ACEOF 14513if ac_fn_c_try_link "$LINENO"; then : 14514 ac_cv_lib_dl_dlopen=yes 14515else 14516 ac_cv_lib_dl_dlopen=no 14517fi 14518rm -f core conftest.err conftest.$ac_objext \ 14519 conftest$ac_exeext conftest.$ac_ext 14520LIBS=$ac_check_lib_save_LIBS 14521fi 14522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 14523$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 14524if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 14525 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 14526else 14527 14528 lt_cv_dlopen=dyld 14529 lt_cv_dlopen_libs= 14530 lt_cv_dlopen_self=yes 14531 14532fi 14533 14534 ;; 14535 14536 tpf*) 14537 # Don't try to run any link tests for TPF. We know it's impossible 14538 # because TPF is a cross-compiler, and we know how we open DSOs. 14539 lt_cv_dlopen=dlopen 14540 lt_cv_dlopen_libs= 14541 lt_cv_dlopen_self=no 14542 ;; 14543 14544 *) 14545 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 14546if test "x$ac_cv_func_shl_load" = xyes; then : 14547 lt_cv_dlopen=shl_load 14548else 14549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 14550$as_echo_n "checking for shl_load in -ldld... " >&6; } 14551if ${ac_cv_lib_dld_shl_load+:} false; then : 14552 $as_echo_n "(cached) " >&6 14553else 14554 ac_check_lib_save_LIBS=$LIBS 14555LIBS="-ldld $LIBS" 14556cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14557/* end confdefs.h. */ 14558 14559/* Override any GCC internal prototype to avoid an error. 14560 Use char because int might match the return type of a GCC 14561 builtin and then its argument prototype would still apply. */ 14562#ifdef __cplusplus 14563extern "C" 14564#endif 14565char shl_load (); 14566int 14567main () 14568{ 14569return shl_load (); 14570 ; 14571 return 0; 14572} 14573_ACEOF 14574if ac_fn_c_try_link "$LINENO"; then : 14575 ac_cv_lib_dld_shl_load=yes 14576else 14577 ac_cv_lib_dld_shl_load=no 14578fi 14579rm -f core conftest.err conftest.$ac_objext \ 14580 conftest$ac_exeext conftest.$ac_ext 14581LIBS=$ac_check_lib_save_LIBS 14582fi 14583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 14584$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 14585if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 14586 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 14587else 14588 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 14589if test "x$ac_cv_func_dlopen" = xyes; then : 14590 lt_cv_dlopen=dlopen 14591else 14592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 14593$as_echo_n "checking for dlopen in -ldl... " >&6; } 14594if ${ac_cv_lib_dl_dlopen+:} false; then : 14595 $as_echo_n "(cached) " >&6 14596else 14597 ac_check_lib_save_LIBS=$LIBS 14598LIBS="-ldl $LIBS" 14599cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14600/* end confdefs.h. */ 14601 14602/* Override any GCC internal prototype to avoid an error. 14603 Use char because int might match the return type of a GCC 14604 builtin and then its argument prototype would still apply. */ 14605#ifdef __cplusplus 14606extern "C" 14607#endif 14608char dlopen (); 14609int 14610main () 14611{ 14612return dlopen (); 14613 ; 14614 return 0; 14615} 14616_ACEOF 14617if ac_fn_c_try_link "$LINENO"; then : 14618 ac_cv_lib_dl_dlopen=yes 14619else 14620 ac_cv_lib_dl_dlopen=no 14621fi 14622rm -f core conftest.err conftest.$ac_objext \ 14623 conftest$ac_exeext conftest.$ac_ext 14624LIBS=$ac_check_lib_save_LIBS 14625fi 14626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 14627$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 14628if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 14629 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 14630else 14631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 14632$as_echo_n "checking for dlopen in -lsvld... " >&6; } 14633if ${ac_cv_lib_svld_dlopen+:} false; then : 14634 $as_echo_n "(cached) " >&6 14635else 14636 ac_check_lib_save_LIBS=$LIBS 14637LIBS="-lsvld $LIBS" 14638cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14639/* end confdefs.h. */ 14640 14641/* Override any GCC internal prototype to avoid an error. 14642 Use char because int might match the return type of a GCC 14643 builtin and then its argument prototype would still apply. */ 14644#ifdef __cplusplus 14645extern "C" 14646#endif 14647char dlopen (); 14648int 14649main () 14650{ 14651return dlopen (); 14652 ; 14653 return 0; 14654} 14655_ACEOF 14656if ac_fn_c_try_link "$LINENO"; then : 14657 ac_cv_lib_svld_dlopen=yes 14658else 14659 ac_cv_lib_svld_dlopen=no 14660fi 14661rm -f core conftest.err conftest.$ac_objext \ 14662 conftest$ac_exeext conftest.$ac_ext 14663LIBS=$ac_check_lib_save_LIBS 14664fi 14665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 14666$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 14667if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 14668 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 14669else 14670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 14671$as_echo_n "checking for dld_link in -ldld... " >&6; } 14672if ${ac_cv_lib_dld_dld_link+:} false; then : 14673 $as_echo_n "(cached) " >&6 14674else 14675 ac_check_lib_save_LIBS=$LIBS 14676LIBS="-ldld $LIBS" 14677cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14678/* end confdefs.h. */ 14679 14680/* Override any GCC internal prototype to avoid an error. 14681 Use char because int might match the return type of a GCC 14682 builtin and then its argument prototype would still apply. */ 14683#ifdef __cplusplus 14684extern "C" 14685#endif 14686char dld_link (); 14687int 14688main () 14689{ 14690return dld_link (); 14691 ; 14692 return 0; 14693} 14694_ACEOF 14695if ac_fn_c_try_link "$LINENO"; then : 14696 ac_cv_lib_dld_dld_link=yes 14697else 14698 ac_cv_lib_dld_dld_link=no 14699fi 14700rm -f core conftest.err conftest.$ac_objext \ 14701 conftest$ac_exeext conftest.$ac_ext 14702LIBS=$ac_check_lib_save_LIBS 14703fi 14704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 14705$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 14706if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 14707 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 14708fi 14709 14710 14711fi 14712 14713 14714fi 14715 14716 14717fi 14718 14719 14720fi 14721 14722 14723fi 14724 14725 ;; 14726 esac 14727 14728 if test no = "$lt_cv_dlopen"; then 14729 enable_dlopen=no 14730 else 14731 enable_dlopen=yes 14732 fi 14733 14734 case $lt_cv_dlopen in 14735 dlopen) 14736 save_CPPFLAGS=$CPPFLAGS 14737 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 14738 14739 save_LDFLAGS=$LDFLAGS 14740 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 14741 14742 save_LIBS=$LIBS 14743 LIBS="$lt_cv_dlopen_libs $LIBS" 14744 14745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 14746$as_echo_n "checking whether a program can dlopen itself... " >&6; } 14747if ${lt_cv_dlopen_self+:} false; then : 14748 $as_echo_n "(cached) " >&6 14749else 14750 if test yes = "$cross_compiling"; then : 14751 lt_cv_dlopen_self=cross 14752else 14753 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 14754 lt_status=$lt_dlunknown 14755 cat > conftest.$ac_ext <<_LT_EOF 14756#line $LINENO "configure" 14757#include "confdefs.h" 14758 14759#if HAVE_DLFCN_H 14760#include <dlfcn.h> 14761#endif 14762 14763#include <stdio.h> 14764 14765#ifdef RTLD_GLOBAL 14766# define LT_DLGLOBAL RTLD_GLOBAL 14767#else 14768# ifdef DL_GLOBAL 14769# define LT_DLGLOBAL DL_GLOBAL 14770# else 14771# define LT_DLGLOBAL 0 14772# endif 14773#endif 14774 14775/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14776 find out it does not work in some platform. */ 14777#ifndef LT_DLLAZY_OR_NOW 14778# ifdef RTLD_LAZY 14779# define LT_DLLAZY_OR_NOW RTLD_LAZY 14780# else 14781# ifdef DL_LAZY 14782# define LT_DLLAZY_OR_NOW DL_LAZY 14783# else 14784# ifdef RTLD_NOW 14785# define LT_DLLAZY_OR_NOW RTLD_NOW 14786# else 14787# ifdef DL_NOW 14788# define LT_DLLAZY_OR_NOW DL_NOW 14789# else 14790# define LT_DLLAZY_OR_NOW 0 14791# endif 14792# endif 14793# endif 14794# endif 14795#endif 14796 14797/* When -fvisibility=hidden is used, assume the code has been annotated 14798 correspondingly for the symbols needed. */ 14799#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 14800int fnord () __attribute__((visibility("default"))); 14801#endif 14802 14803int fnord () { return 42; } 14804int main () 14805{ 14806 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14807 int status = $lt_dlunknown; 14808 14809 if (self) 14810 { 14811 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14812 else 14813 { 14814 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14815 else puts (dlerror ()); 14816 } 14817 /* dlclose (self); */ 14818 } 14819 else 14820 puts (dlerror ()); 14821 14822 return status; 14823} 14824_LT_EOF 14825 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14826 (eval $ac_link) 2>&5 14827 ac_status=$? 14828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14829 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 14830 (./conftest; exit; ) >&5 2>/dev/null 14831 lt_status=$? 14832 case x$lt_status in 14833 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 14834 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 14835 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 14836 esac 14837 else : 14838 # compilation failed 14839 lt_cv_dlopen_self=no 14840 fi 14841fi 14842rm -fr conftest* 14843 14844 14845fi 14846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 14847$as_echo "$lt_cv_dlopen_self" >&6; } 14848 14849 if test yes = "$lt_cv_dlopen_self"; then 14850 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 14851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 14852$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 14853if ${lt_cv_dlopen_self_static+:} false; then : 14854 $as_echo_n "(cached) " >&6 14855else 14856 if test yes = "$cross_compiling"; then : 14857 lt_cv_dlopen_self_static=cross 14858else 14859 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 14860 lt_status=$lt_dlunknown 14861 cat > conftest.$ac_ext <<_LT_EOF 14862#line $LINENO "configure" 14863#include "confdefs.h" 14864 14865#if HAVE_DLFCN_H 14866#include <dlfcn.h> 14867#endif 14868 14869#include <stdio.h> 14870 14871#ifdef RTLD_GLOBAL 14872# define LT_DLGLOBAL RTLD_GLOBAL 14873#else 14874# ifdef DL_GLOBAL 14875# define LT_DLGLOBAL DL_GLOBAL 14876# else 14877# define LT_DLGLOBAL 0 14878# endif 14879#endif 14880 14881/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14882 find out it does not work in some platform. */ 14883#ifndef LT_DLLAZY_OR_NOW 14884# ifdef RTLD_LAZY 14885# define LT_DLLAZY_OR_NOW RTLD_LAZY 14886# else 14887# ifdef DL_LAZY 14888# define LT_DLLAZY_OR_NOW DL_LAZY 14889# else 14890# ifdef RTLD_NOW 14891# define LT_DLLAZY_OR_NOW RTLD_NOW 14892# else 14893# ifdef DL_NOW 14894# define LT_DLLAZY_OR_NOW DL_NOW 14895# else 14896# define LT_DLLAZY_OR_NOW 0 14897# endif 14898# endif 14899# endif 14900# endif 14901#endif 14902 14903/* When -fvisibility=hidden is used, assume the code has been annotated 14904 correspondingly for the symbols needed. */ 14905#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 14906int fnord () __attribute__((visibility("default"))); 14907#endif 14908 14909int fnord () { return 42; } 14910int main () 14911{ 14912 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14913 int status = $lt_dlunknown; 14914 14915 if (self) 14916 { 14917 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14918 else 14919 { 14920 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14921 else puts (dlerror ()); 14922 } 14923 /* dlclose (self); */ 14924 } 14925 else 14926 puts (dlerror ()); 14927 14928 return status; 14929} 14930_LT_EOF 14931 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14932 (eval $ac_link) 2>&5 14933 ac_status=$? 14934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14935 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 14936 (./conftest; exit; ) >&5 2>/dev/null 14937 lt_status=$? 14938 case x$lt_status in 14939 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 14940 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 14941 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 14942 esac 14943 else : 14944 # compilation failed 14945 lt_cv_dlopen_self_static=no 14946 fi 14947fi 14948rm -fr conftest* 14949 14950 14951fi 14952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 14953$as_echo "$lt_cv_dlopen_self_static" >&6; } 14954 fi 14955 14956 CPPFLAGS=$save_CPPFLAGS 14957 LDFLAGS=$save_LDFLAGS 14958 LIBS=$save_LIBS 14959 ;; 14960 esac 14961 14962 case $lt_cv_dlopen_self in 14963 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 14964 *) enable_dlopen_self=unknown ;; 14965 esac 14966 14967 case $lt_cv_dlopen_self_static in 14968 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 14969 *) enable_dlopen_self_static=unknown ;; 14970 esac 14971fi 14972 14973 14974 14975 14976 14977 14978 14979 14980 14981 14982 14983 14984 14985 14986 14987 14988 14989striplib= 14990old_striplib= 14991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 14992$as_echo_n "checking whether stripping libraries is possible... " >&6; } 14993if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 14994 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 14995 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 14996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14997$as_echo "yes" >&6; } 14998else 14999# FIXME - insert some real tests, host_os isn't really good enough 15000 case $host_os in 15001 darwin*) 15002 if test -n "$STRIP"; then 15003 striplib="$STRIP -x" 15004 old_striplib="$STRIP -S" 15005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15006$as_echo "yes" >&6; } 15007 else 15008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15009$as_echo "no" >&6; } 15010 fi 15011 ;; 15012 *) 15013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15014$as_echo "no" >&6; } 15015 ;; 15016 esac 15017fi 15018 15019 15020 15021 15022 15023 15024 15025 15026 15027 15028 15029 15030 # Report what library types will actually be built 15031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 15032$as_echo_n "checking if libtool supports shared libraries... " >&6; } 15033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 15034$as_echo "$can_build_shared" >&6; } 15035 15036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 15037$as_echo_n "checking whether to build shared libraries... " >&6; } 15038 test no = "$can_build_shared" && enable_shared=no 15039 15040 # On AIX, shared libraries and static libraries use the same namespace, and 15041 # are all built from PIC. 15042 case $host_os in 15043 aix3*) 15044 test yes = "$enable_shared" && enable_static=no 15045 if test -n "$RANLIB"; then 15046 archive_cmds="$archive_cmds~\$RANLIB \$lib" 15047 postinstall_cmds='$RANLIB $lib' 15048 fi 15049 ;; 15050 15051 aix[4-9]*) 15052 if test ia64 != "$host_cpu"; then 15053 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 15054 yes,aix,yes) ;; # shared object as lib.so file only 15055 yes,svr4,*) ;; # shared object as lib.so archive member only 15056 yes,*) enable_static=no ;; # shared object in lib.a archive as well 15057 esac 15058 fi 15059 ;; 15060 esac 15061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 15062$as_echo "$enable_shared" >&6; } 15063 15064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 15065$as_echo_n "checking whether to build static libraries... " >&6; } 15066 # Make sure either enable_shared or enable_static is yes. 15067 test yes = "$enable_shared" || enable_static=yes 15068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 15069$as_echo "$enable_static" >&6; } 15070 15071 15072 15073 15074fi 15075ac_ext=c 15076ac_cpp='$CPP $CPPFLAGS' 15077ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15078ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15079ac_compiler_gnu=$ac_cv_c_compiler_gnu 15080 15081CC=$lt_save_CC 15082 15083 15084 15085 ac_ext=f 15086ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 15087ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15088ac_compiler_gnu=$ac_cv_f77_compiler_gnu 15089 15090if test -z "$F77" || test no = "$F77"; then 15091 _lt_disable_F77=yes 15092fi 15093 15094archive_cmds_need_lc_F77=no 15095allow_undefined_flag_F77= 15096always_export_symbols_F77=no 15097archive_expsym_cmds_F77= 15098export_dynamic_flag_spec_F77= 15099hardcode_direct_F77=no 15100hardcode_direct_absolute_F77=no 15101hardcode_libdir_flag_spec_F77= 15102hardcode_libdir_separator_F77= 15103hardcode_minus_L_F77=no 15104hardcode_automatic_F77=no 15105inherit_rpath_F77=no 15106module_cmds_F77= 15107module_expsym_cmds_F77= 15108link_all_deplibs_F77=unknown 15109old_archive_cmds_F77=$old_archive_cmds 15110reload_flag_F77=$reload_flag 15111reload_cmds_F77=$reload_cmds 15112no_undefined_flag_F77= 15113whole_archive_flag_spec_F77= 15114enable_shared_with_static_runtimes_F77=no 15115 15116# Source file extension for f77 test sources. 15117ac_ext=f 15118 15119# Object file extension for compiled f77 test sources. 15120objext=o 15121objext_F77=$objext 15122 15123# No sense in running all these tests if we already determined that 15124# the F77 compiler isn't working. Some variables (like enable_shared) 15125# are currently assumed to apply to all compilers on this platform, 15126# and will be corrupted by setting them based on a non-working compiler. 15127if test yes != "$_lt_disable_F77"; then 15128 # Code to be used in simple compile tests 15129 lt_simple_compile_test_code="\ 15130 subroutine t 15131 return 15132 end 15133" 15134 15135 # Code to be used in simple link tests 15136 lt_simple_link_test_code="\ 15137 program t 15138 end 15139" 15140 15141 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 15142 15143 15144 15145 15146 15147 15148# If no C compiler was specified, use CC. 15149LTCC=${LTCC-"$CC"} 15150 15151# If no C compiler flags were specified, use CFLAGS. 15152LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15153 15154# Allow CC to be a program name with arguments. 15155compiler=$CC 15156 15157 15158 # save warnings/boilerplate of simple test code 15159 ac_outfile=conftest.$ac_objext 15160echo "$lt_simple_compile_test_code" >conftest.$ac_ext 15161eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15162_lt_compiler_boilerplate=`cat conftest.err` 15163$RM conftest* 15164 15165 ac_outfile=conftest.$ac_objext 15166echo "$lt_simple_link_test_code" >conftest.$ac_ext 15167eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15168_lt_linker_boilerplate=`cat conftest.err` 15169$RM -r conftest* 15170 15171 15172 # Allow CC to be a program name with arguments. 15173 lt_save_CC=$CC 15174 lt_save_GCC=$GCC 15175 lt_save_CFLAGS=$CFLAGS 15176 CC=${F77-"f77"} 15177 CFLAGS=$FFLAGS 15178 compiler=$CC 15179 compiler_F77=$CC 15180 func_cc_basename $compiler 15181cc_basename=$func_cc_basename_result 15182 15183 GCC=$G77 15184 if test -n "$compiler"; then 15185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 15186$as_echo_n "checking if libtool supports shared libraries... " >&6; } 15187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 15188$as_echo "$can_build_shared" >&6; } 15189 15190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 15191$as_echo_n "checking whether to build shared libraries... " >&6; } 15192 test no = "$can_build_shared" && enable_shared=no 15193 15194 # On AIX, shared libraries and static libraries use the same namespace, and 15195 # are all built from PIC. 15196 case $host_os in 15197 aix3*) 15198 test yes = "$enable_shared" && enable_static=no 15199 if test -n "$RANLIB"; then 15200 archive_cmds="$archive_cmds~\$RANLIB \$lib" 15201 postinstall_cmds='$RANLIB $lib' 15202 fi 15203 ;; 15204 aix[4-9]*) 15205 if test ia64 != "$host_cpu"; then 15206 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 15207 yes,aix,yes) ;; # shared object as lib.so file only 15208 yes,svr4,*) ;; # shared object as lib.so archive member only 15209 yes,*) enable_static=no ;; # shared object in lib.a archive as well 15210 esac 15211 fi 15212 ;; 15213 esac 15214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 15215$as_echo "$enable_shared" >&6; } 15216 15217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 15218$as_echo_n "checking whether to build static libraries... " >&6; } 15219 # Make sure either enable_shared or enable_static is yes. 15220 test yes = "$enable_shared" || enable_static=yes 15221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 15222$as_echo "$enable_static" >&6; } 15223 15224 GCC_F77=$G77 15225 LD_F77=$LD 15226 15227 ## CAVEAT EMPTOR: 15228 ## There is no encapsulation within the following macros, do not change 15229 ## the running order or otherwise move them around unless you know exactly 15230 ## what you are doing... 15231 lt_prog_compiler_wl_F77= 15232lt_prog_compiler_pic_F77= 15233lt_prog_compiler_static_F77= 15234 15235 15236 if test yes = "$GCC"; then 15237 lt_prog_compiler_wl_F77='-Wl,' 15238 lt_prog_compiler_static_F77='-static' 15239 15240 case $host_os in 15241 aix*) 15242 # All AIX code is PIC. 15243 if test ia64 = "$host_cpu"; then 15244 # AIX 5 now supports IA64 processor 15245 lt_prog_compiler_static_F77='-Bstatic' 15246 fi 15247 lt_prog_compiler_pic_F77='-fPIC' 15248 ;; 15249 15250 amigaos*) 15251 case $host_cpu in 15252 powerpc) 15253 # see comment about AmigaOS4 .so support 15254 lt_prog_compiler_pic_F77='-fPIC' 15255 ;; 15256 m68k) 15257 # FIXME: we need at least 68020 code to build shared libraries, but 15258 # adding the '-m68020' flag to GCC prevents building anything better, 15259 # like '-m68040'. 15260 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 15261 ;; 15262 esac 15263 ;; 15264 15265 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15266 # PIC is the default for these OSes. 15267 ;; 15268 15269 mingw* | cygwin* | pw32* | os2* | cegcc*) 15270 # This hack is so that the source file can tell whether it is being 15271 # built for inclusion in a dll (and should export symbols for example). 15272 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15273 # (--disable-auto-import) libraries 15274 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 15275 case $host_os in 15276 os2*) 15277 lt_prog_compiler_static_F77='$wl-static' 15278 ;; 15279 esac 15280 ;; 15281 15282 darwin* | rhapsody*) 15283 # PIC is the default on this platform 15284 # Common symbols not allowed in MH_DYLIB files 15285 lt_prog_compiler_pic_F77='-fno-common' 15286 ;; 15287 15288 haiku*) 15289 # PIC is the default for Haiku. 15290 # The "-static" flag exists, but is broken. 15291 lt_prog_compiler_static_F77= 15292 ;; 15293 15294 hpux*) 15295 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15296 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15297 # sets the default TLS model and affects inlining. 15298 case $host_cpu in 15299 hppa*64*) 15300 # +Z the default 15301 ;; 15302 *) 15303 lt_prog_compiler_pic_F77='-fPIC' 15304 ;; 15305 esac 15306 ;; 15307 15308 interix[3-9]*) 15309 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15310 # Instead, we relocate shared libraries at runtime. 15311 ;; 15312 15313 msdosdjgpp*) 15314 # Just because we use GCC doesn't mean we suddenly get shared libraries 15315 # on systems that don't support them. 15316 lt_prog_compiler_can_build_shared_F77=no 15317 enable_shared=no 15318 ;; 15319 15320 *nto* | *qnx*) 15321 # QNX uses GNU C++, but need to define -shared option too, otherwise 15322 # it will coredump. 15323 lt_prog_compiler_pic_F77='-fPIC -shared' 15324 ;; 15325 15326 sysv4*MP*) 15327 if test -d /usr/nec; then 15328 lt_prog_compiler_pic_F77=-Kconform_pic 15329 fi 15330 ;; 15331 15332 *) 15333 lt_prog_compiler_pic_F77='-fPIC' 15334 ;; 15335 esac 15336 15337 case $cc_basename in 15338 nvcc*) # Cuda Compiler Driver 2.2 15339 lt_prog_compiler_wl_F77='-Xlinker ' 15340 if test -n "$lt_prog_compiler_pic_F77"; then 15341 lt_prog_compiler_pic_F77="-Xcompiler $lt_prog_compiler_pic_F77" 15342 fi 15343 ;; 15344 esac 15345 else 15346 # PORTME Check for flag to pass linker flags through the system compiler. 15347 case $host_os in 15348 aix*) 15349 lt_prog_compiler_wl_F77='-Wl,' 15350 if test ia64 = "$host_cpu"; then 15351 # AIX 5 now supports IA64 processor 15352 lt_prog_compiler_static_F77='-Bstatic' 15353 else 15354 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 15355 fi 15356 ;; 15357 15358 darwin* | rhapsody*) 15359 # PIC is the default on this platform 15360 # Common symbols not allowed in MH_DYLIB files 15361 lt_prog_compiler_pic_F77='-fno-common' 15362 case $cc_basename in 15363 nagfor*) 15364 # NAG Fortran compiler 15365 lt_prog_compiler_wl_F77='-Wl,-Wl,,' 15366 lt_prog_compiler_pic_F77='-PIC' 15367 lt_prog_compiler_static_F77='-Bstatic' 15368 ;; 15369 esac 15370 ;; 15371 15372 mingw* | cygwin* | pw32* | os2* | cegcc*) 15373 # This hack is so that the source file can tell whether it is being 15374 # built for inclusion in a dll (and should export symbols for example). 15375 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 15376 case $host_os in 15377 os2*) 15378 lt_prog_compiler_static_F77='$wl-static' 15379 ;; 15380 esac 15381 ;; 15382 15383 hpux9* | hpux10* | hpux11*) 15384 lt_prog_compiler_wl_F77='-Wl,' 15385 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15386 # not for PA HP-UX. 15387 case $host_cpu in 15388 hppa*64*|ia64*) 15389 # +Z the default 15390 ;; 15391 *) 15392 lt_prog_compiler_pic_F77='+Z' 15393 ;; 15394 esac 15395 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15396 lt_prog_compiler_static_F77='$wl-a ${wl}archive' 15397 ;; 15398 15399 irix5* | irix6* | nonstopux*) 15400 lt_prog_compiler_wl_F77='-Wl,' 15401 # PIC (with -KPIC) is the default. 15402 lt_prog_compiler_static_F77='-non_shared' 15403 ;; 15404 15405 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15406 case $cc_basename in 15407 # old Intel for x86_64, which still supported -KPIC. 15408 ecc*) 15409 lt_prog_compiler_wl_F77='-Wl,' 15410 lt_prog_compiler_pic_F77='-KPIC' 15411 lt_prog_compiler_static_F77='-static' 15412 ;; 15413 # icc used to be incompatible with GCC. 15414 # ICC 10 doesn't accept -KPIC any more. 15415 icc* | ifort*) 15416 lt_prog_compiler_wl_F77='-Wl,' 15417 lt_prog_compiler_pic_F77='-fPIC' 15418 lt_prog_compiler_static_F77='-static' 15419 ;; 15420 # Lahey Fortran 8.1. 15421 lf95*) 15422 lt_prog_compiler_wl_F77='-Wl,' 15423 lt_prog_compiler_pic_F77='--shared' 15424 lt_prog_compiler_static_F77='--static' 15425 ;; 15426 nagfor*) 15427 # NAG Fortran compiler 15428 lt_prog_compiler_wl_F77='-Wl,-Wl,,' 15429 lt_prog_compiler_pic_F77='-PIC' 15430 lt_prog_compiler_static_F77='-Bstatic' 15431 ;; 15432 tcc*) 15433 # Fabrice Bellard et al's Tiny C Compiler 15434 lt_prog_compiler_wl_F77='-Wl,' 15435 lt_prog_compiler_pic_F77='-fPIC' 15436 lt_prog_compiler_static_F77='-static' 15437 ;; 15438 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 15439 # Portland Group compilers (*not* the Pentium gcc compiler, 15440 # which looks to be a dead project) 15441 lt_prog_compiler_wl_F77='-Wl,' 15442 lt_prog_compiler_pic_F77='-fpic' 15443 lt_prog_compiler_static_F77='-Bstatic' 15444 ;; 15445 ccc*) 15446 lt_prog_compiler_wl_F77='-Wl,' 15447 # All Alpha code is PIC. 15448 lt_prog_compiler_static_F77='-non_shared' 15449 ;; 15450 xl* | bgxl* | bgf* | mpixl*) 15451 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 15452 lt_prog_compiler_wl_F77='-Wl,' 15453 lt_prog_compiler_pic_F77='-qpic' 15454 lt_prog_compiler_static_F77='-qstaticlink' 15455 ;; 15456 *) 15457 case `$CC -V 2>&1 | sed 5q` in 15458 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 15459 # Sun Fortran 8.3 passes all unrecognized flags to the linker 15460 lt_prog_compiler_pic_F77='-KPIC' 15461 lt_prog_compiler_static_F77='-Bstatic' 15462 lt_prog_compiler_wl_F77='' 15463 ;; 15464 *Sun\ F* | *Sun*Fortran*) 15465 lt_prog_compiler_pic_F77='-KPIC' 15466 lt_prog_compiler_static_F77='-Bstatic' 15467 lt_prog_compiler_wl_F77='-Qoption ld ' 15468 ;; 15469 *Sun\ C*) 15470 # Sun C 5.9 15471 lt_prog_compiler_pic_F77='-KPIC' 15472 lt_prog_compiler_static_F77='-Bstatic' 15473 lt_prog_compiler_wl_F77='-Wl,' 15474 ;; 15475 *Intel*\ [CF]*Compiler*) 15476 lt_prog_compiler_wl_F77='-Wl,' 15477 lt_prog_compiler_pic_F77='-fPIC' 15478 lt_prog_compiler_static_F77='-static' 15479 ;; 15480 *Portland\ Group*) 15481 lt_prog_compiler_wl_F77='-Wl,' 15482 lt_prog_compiler_pic_F77='-fpic' 15483 lt_prog_compiler_static_F77='-Bstatic' 15484 ;; 15485 esac 15486 ;; 15487 esac 15488 ;; 15489 15490 newsos6) 15491 lt_prog_compiler_pic_F77='-KPIC' 15492 lt_prog_compiler_static_F77='-Bstatic' 15493 ;; 15494 15495 *nto* | *qnx*) 15496 # QNX uses GNU C++, but need to define -shared option too, otherwise 15497 # it will coredump. 15498 lt_prog_compiler_pic_F77='-fPIC -shared' 15499 ;; 15500 15501 osf3* | osf4* | osf5*) 15502 lt_prog_compiler_wl_F77='-Wl,' 15503 # All OSF/1 code is PIC. 15504 lt_prog_compiler_static_F77='-non_shared' 15505 ;; 15506 15507 rdos*) 15508 lt_prog_compiler_static_F77='-non_shared' 15509 ;; 15510 15511 solaris*) 15512 lt_prog_compiler_pic_F77='-KPIC' 15513 lt_prog_compiler_static_F77='-Bstatic' 15514 case $cc_basename in 15515 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 15516 lt_prog_compiler_wl_F77='-Qoption ld ';; 15517 *) 15518 lt_prog_compiler_wl_F77='-Wl,';; 15519 esac 15520 ;; 15521 15522 sunos4*) 15523 lt_prog_compiler_wl_F77='-Qoption ld ' 15524 lt_prog_compiler_pic_F77='-PIC' 15525 lt_prog_compiler_static_F77='-Bstatic' 15526 ;; 15527 15528 sysv4 | sysv4.2uw2* | sysv4.3*) 15529 lt_prog_compiler_wl_F77='-Wl,' 15530 lt_prog_compiler_pic_F77='-KPIC' 15531 lt_prog_compiler_static_F77='-Bstatic' 15532 ;; 15533 15534 sysv4*MP*) 15535 if test -d /usr/nec; then 15536 lt_prog_compiler_pic_F77='-Kconform_pic' 15537 lt_prog_compiler_static_F77='-Bstatic' 15538 fi 15539 ;; 15540 15541 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15542 lt_prog_compiler_wl_F77='-Wl,' 15543 lt_prog_compiler_pic_F77='-KPIC' 15544 lt_prog_compiler_static_F77='-Bstatic' 15545 ;; 15546 15547 unicos*) 15548 lt_prog_compiler_wl_F77='-Wl,' 15549 lt_prog_compiler_can_build_shared_F77=no 15550 ;; 15551 15552 uts4*) 15553 lt_prog_compiler_pic_F77='-pic' 15554 lt_prog_compiler_static_F77='-Bstatic' 15555 ;; 15556 15557 *) 15558 lt_prog_compiler_can_build_shared_F77=no 15559 ;; 15560 esac 15561 fi 15562 15563case $host_os in 15564 # For platforms that do not support PIC, -DPIC is meaningless: 15565 *djgpp*) 15566 lt_prog_compiler_pic_F77= 15567 ;; 15568 *) 15569 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 15570 ;; 15571esac 15572 15573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15574$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15575if ${lt_cv_prog_compiler_pic_F77+:} false; then : 15576 $as_echo_n "(cached) " >&6 15577else 15578 lt_cv_prog_compiler_pic_F77=$lt_prog_compiler_pic_F77 15579fi 15580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_F77" >&5 15581$as_echo "$lt_cv_prog_compiler_pic_F77" >&6; } 15582lt_prog_compiler_pic_F77=$lt_cv_prog_compiler_pic_F77 15583 15584# 15585# Check to make sure the PIC flag actually works. 15586# 15587if test -n "$lt_prog_compiler_pic_F77"; then 15588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 15589$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; } 15590if ${lt_cv_prog_compiler_pic_works_F77+:} false; then : 15591 $as_echo_n "(cached) " >&6 15592else 15593 lt_cv_prog_compiler_pic_works_F77=no 15594 ac_outfile=conftest.$ac_objext 15595 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15596 lt_compiler_flag="$lt_prog_compiler_pic_F77" ## exclude from sc_useless_quotes_in_assignment 15597 # Insert the option either (1) after the last *FLAGS variable, or 15598 # (2) before a word containing "conftest.", or (3) at the end. 15599 # Note that $ac_compile itself does not contain backslashes and begins 15600 # with a dollar sign (not a hyphen), so the echo should work correctly. 15601 # The option is referenced via a variable to avoid confusing sed. 15602 lt_compile=`echo "$ac_compile" | $SED \ 15603 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15604 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15605 -e 's:$: $lt_compiler_flag:'` 15606 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15607 (eval "$lt_compile" 2>conftest.err) 15608 ac_status=$? 15609 cat conftest.err >&5 15610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15611 if (exit $ac_status) && test -s "$ac_outfile"; then 15612 # The compiler can only warn and ignore the option if not recognized 15613 # So say no if there are warnings other than the usual output. 15614 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15615 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15616 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15617 lt_cv_prog_compiler_pic_works_F77=yes 15618 fi 15619 fi 15620 $RM conftest* 15621 15622fi 15623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5 15624$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; } 15625 15626if test yes = "$lt_cv_prog_compiler_pic_works_F77"; then 15627 case $lt_prog_compiler_pic_F77 in 15628 "" | " "*) ;; 15629 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 15630 esac 15631else 15632 lt_prog_compiler_pic_F77= 15633 lt_prog_compiler_can_build_shared_F77=no 15634fi 15635 15636fi 15637 15638 15639 15640 15641 15642# 15643# Check to make sure the static flag actually works. 15644# 15645wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 15646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15647$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15648if ${lt_cv_prog_compiler_static_works_F77+:} false; then : 15649 $as_echo_n "(cached) " >&6 15650else 15651 lt_cv_prog_compiler_static_works_F77=no 15652 save_LDFLAGS=$LDFLAGS 15653 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15654 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15655 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15656 # The linker can only warn and ignore the option if not recognized 15657 # So say no if there are warnings 15658 if test -s conftest.err; then 15659 # Append any errors to the config.log. 15660 cat conftest.err 1>&5 15661 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15662 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15663 if diff conftest.exp conftest.er2 >/dev/null; then 15664 lt_cv_prog_compiler_static_works_F77=yes 15665 fi 15666 else 15667 lt_cv_prog_compiler_static_works_F77=yes 15668 fi 15669 fi 15670 $RM -r conftest* 15671 LDFLAGS=$save_LDFLAGS 15672 15673fi 15674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5 15675$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; } 15676 15677if test yes = "$lt_cv_prog_compiler_static_works_F77"; then 15678 : 15679else 15680 lt_prog_compiler_static_F77= 15681fi 15682 15683 15684 15685 15686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15687$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15688if ${lt_cv_prog_compiler_c_o_F77+:} false; then : 15689 $as_echo_n "(cached) " >&6 15690else 15691 lt_cv_prog_compiler_c_o_F77=no 15692 $RM -r conftest 2>/dev/null 15693 mkdir conftest 15694 cd conftest 15695 mkdir out 15696 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15697 15698 lt_compiler_flag="-o out/conftest2.$ac_objext" 15699 # Insert the option either (1) after the last *FLAGS variable, or 15700 # (2) before a word containing "conftest.", or (3) at the end. 15701 # Note that $ac_compile itself does not contain backslashes and begins 15702 # with a dollar sign (not a hyphen), so the echo should work correctly. 15703 lt_compile=`echo "$ac_compile" | $SED \ 15704 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15705 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15706 -e 's:$: $lt_compiler_flag:'` 15707 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15708 (eval "$lt_compile" 2>out/conftest.err) 15709 ac_status=$? 15710 cat out/conftest.err >&5 15711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15712 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15713 then 15714 # The compiler can only warn and ignore the option if not recognized 15715 # So say no if there are warnings 15716 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15717 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15718 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15719 lt_cv_prog_compiler_c_o_F77=yes 15720 fi 15721 fi 15722 chmod u+w . 2>&5 15723 $RM conftest* 15724 # SGI C++ compiler will create directory out/ii_files/ for 15725 # template instantiation 15726 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15727 $RM out/* && rmdir out 15728 cd .. 15729 $RM -r conftest 15730 $RM conftest* 15731 15732fi 15733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5 15734$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; } 15735 15736 15737 15738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15739$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15740if ${lt_cv_prog_compiler_c_o_F77+:} false; then : 15741 $as_echo_n "(cached) " >&6 15742else 15743 lt_cv_prog_compiler_c_o_F77=no 15744 $RM -r conftest 2>/dev/null 15745 mkdir conftest 15746 cd conftest 15747 mkdir out 15748 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15749 15750 lt_compiler_flag="-o out/conftest2.$ac_objext" 15751 # Insert the option either (1) after the last *FLAGS variable, or 15752 # (2) before a word containing "conftest.", or (3) at the end. 15753 # Note that $ac_compile itself does not contain backslashes and begins 15754 # with a dollar sign (not a hyphen), so the echo should work correctly. 15755 lt_compile=`echo "$ac_compile" | $SED \ 15756 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15757 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15758 -e 's:$: $lt_compiler_flag:'` 15759 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15760 (eval "$lt_compile" 2>out/conftest.err) 15761 ac_status=$? 15762 cat out/conftest.err >&5 15763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15764 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15765 then 15766 # The compiler can only warn and ignore the option if not recognized 15767 # So say no if there are warnings 15768 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15769 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15770 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15771 lt_cv_prog_compiler_c_o_F77=yes 15772 fi 15773 fi 15774 chmod u+w . 2>&5 15775 $RM conftest* 15776 # SGI C++ compiler will create directory out/ii_files/ for 15777 # template instantiation 15778 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15779 $RM out/* && rmdir out 15780 cd .. 15781 $RM -r conftest 15782 $RM conftest* 15783 15784fi 15785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5 15786$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; } 15787 15788 15789 15790 15791hard_links=nottested 15792if test no = "$lt_cv_prog_compiler_c_o_F77" && test no != "$need_locks"; then 15793 # do not overwrite the value of need_locks provided by the user 15794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15795$as_echo_n "checking if we can lock with hard links... " >&6; } 15796 hard_links=yes 15797 $RM conftest* 15798 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15799 touch conftest.a 15800 ln conftest.a conftest.b 2>&5 || hard_links=no 15801 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15803$as_echo "$hard_links" >&6; } 15804 if test no = "$hard_links"; then 15805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 15806$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 15807 need_locks=warn 15808 fi 15809else 15810 need_locks=no 15811fi 15812 15813 15814 15815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15816$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15817 15818 runpath_var= 15819 allow_undefined_flag_F77= 15820 always_export_symbols_F77=no 15821 archive_cmds_F77= 15822 archive_expsym_cmds_F77= 15823 compiler_needs_object_F77=no 15824 enable_shared_with_static_runtimes_F77=no 15825 export_dynamic_flag_spec_F77= 15826 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15827 hardcode_automatic_F77=no 15828 hardcode_direct_F77=no 15829 hardcode_direct_absolute_F77=no 15830 hardcode_libdir_flag_spec_F77= 15831 hardcode_libdir_separator_F77= 15832 hardcode_minus_L_F77=no 15833 hardcode_shlibpath_var_F77=unsupported 15834 inherit_rpath_F77=no 15835 link_all_deplibs_F77=unknown 15836 module_cmds_F77= 15837 module_expsym_cmds_F77= 15838 old_archive_from_new_cmds_F77= 15839 old_archive_from_expsyms_cmds_F77= 15840 thread_safe_flag_spec_F77= 15841 whole_archive_flag_spec_F77= 15842 # include_expsyms should be a list of space-separated symbols to be *always* 15843 # included in the symbol list 15844 include_expsyms_F77= 15845 # exclude_expsyms can be an extended regexp of symbols to exclude 15846 # it will be wrapped by ' (' and ')$', so one must not match beginning or 15847 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 15848 # as well as any symbol that contains 'd'. 15849 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15850 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 15851 # platforms (ab)use it in PIC code, but their linkers get confused if 15852 # the symbol is explicitly referenced. Since portable code cannot 15853 # rely on this symbol name, it's probably fine to never include it in 15854 # preloaded symbol tables. 15855 # Exclude shared library initialization/finalization symbols. 15856 extract_expsyms_cmds= 15857 15858 case $host_os in 15859 cygwin* | mingw* | pw32* | cegcc*) 15860 # FIXME: the MSVC++ port hasn't been tested in a loooong time 15861 # When not using gcc, we currently assume that we are using 15862 # Microsoft Visual C++. 15863 if test yes != "$GCC"; then 15864 with_gnu_ld=no 15865 fi 15866 ;; 15867 interix*) 15868 # we just hope/assume this is gcc and not c89 (= MSVC++) 15869 with_gnu_ld=yes 15870 ;; 15871 openbsd* | bitrig*) 15872 with_gnu_ld=no 15873 ;; 15874 esac 15875 15876 ld_shlibs_F77=yes 15877 15878 # On some targets, GNU ld is compatible enough with the native linker 15879 # that we're better off using the native interface for both. 15880 lt_use_gnu_ld_interface=no 15881 if test yes = "$with_gnu_ld"; then 15882 case $host_os in 15883 aix*) 15884 # The AIX port of GNU ld has always aspired to compatibility 15885 # with the native linker. However, as the warning in the GNU ld 15886 # block says, versions before 2.19.5* couldn't really create working 15887 # shared libraries, regardless of the interface used. 15888 case `$LD -v 2>&1` in 15889 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 15890 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 15891 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 15892 *) 15893 lt_use_gnu_ld_interface=yes 15894 ;; 15895 esac 15896 ;; 15897 *) 15898 lt_use_gnu_ld_interface=yes 15899 ;; 15900 esac 15901 fi 15902 15903 if test yes = "$lt_use_gnu_ld_interface"; then 15904 # If archive_cmds runs LD, not CC, wlarc should be empty 15905 wlarc='$wl' 15906 15907 # Set some defaults for GNU ld with shared library support. These 15908 # are reset later if shared libraries are not supported. Putting them 15909 # here allows them to be overridden if necessary. 15910 runpath_var=LD_RUN_PATH 15911 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir' 15912 export_dynamic_flag_spec_F77='$wl--export-dynamic' 15913 # ancient GNU ld didn't support --whole-archive et. al. 15914 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 15915 whole_archive_flag_spec_F77=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 15916 else 15917 whole_archive_flag_spec_F77= 15918 fi 15919 supports_anon_versioning=no 15920 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 15921 *GNU\ gold*) supports_anon_versioning=yes ;; 15922 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 15923 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 15924 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 15925 *\ 2.11.*) ;; # other 2.11 versions 15926 *) supports_anon_versioning=yes ;; 15927 esac 15928 15929 # See if GNU ld supports shared libraries. 15930 case $host_os in 15931 aix[3-9]*) 15932 # On AIX/PPC, the GNU linker is very broken 15933 if test ia64 != "$host_cpu"; then 15934 ld_shlibs_F77=no 15935 cat <<_LT_EOF 1>&2 15936 15937*** Warning: the GNU linker, at least up to release 2.19, is reported 15938*** to be unable to reliably create shared libraries on AIX. 15939*** Therefore, libtool is disabling shared libraries support. If you 15940*** really care for shared libraries, you may want to install binutils 15941*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 15942*** You will then need to restart the configuration process. 15943 15944_LT_EOF 15945 fi 15946 ;; 15947 15948 amigaos*) 15949 case $host_cpu in 15950 powerpc) 15951 # see comment about AmigaOS4 .so support 15952 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15953 archive_expsym_cmds_F77='' 15954 ;; 15955 m68k) 15956 archive_cmds_F77='$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)' 15957 hardcode_libdir_flag_spec_F77='-L$libdir' 15958 hardcode_minus_L_F77=yes 15959 ;; 15960 esac 15961 ;; 15962 15963 beos*) 15964 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15965 allow_undefined_flag_F77=unsupported 15966 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15967 # support --undefined. This deserves some investigation. FIXME 15968 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15969 else 15970 ld_shlibs_F77=no 15971 fi 15972 ;; 15973 15974 cygwin* | mingw* | pw32* | cegcc*) 15975 # _LT_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 15976 # as there is no search path for DLLs. 15977 hardcode_libdir_flag_spec_F77='-L$libdir' 15978 export_dynamic_flag_spec_F77='$wl--export-all-symbols' 15979 allow_undefined_flag_F77=unsupported 15980 always_export_symbols_F77=no 15981 enable_shared_with_static_runtimes_F77=yes 15982 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 15983 exclude_expsyms_F77='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15984 15985 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 15986 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15987 # If the export-symbols file already is a .def file, use it as 15988 # is; otherwise, prepend EXPORTS... 15989 archive_expsym_cmds_F77='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 15990 cp $export_symbols $output_objdir/$soname.def; 15991 else 15992 echo EXPORTS > $output_objdir/$soname.def; 15993 cat $export_symbols >> $output_objdir/$soname.def; 15994 fi~ 15995 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15996 else 15997 ld_shlibs_F77=no 15998 fi 15999 ;; 16000 16001 haiku*) 16002 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16003 link_all_deplibs_F77=yes 16004 ;; 16005 16006 os2*) 16007 hardcode_libdir_flag_spec_F77='-L$libdir' 16008 hardcode_minus_L_F77=yes 16009 allow_undefined_flag_F77=unsupported 16010 shrext_cmds=.dll 16011 archive_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16012 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16013 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16014 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16015 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 16016 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16017 emximp -o $lib $output_objdir/$libname.def' 16018 archive_expsym_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16019 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16020 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16021 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16022 prefix_cmds="$SED"~ 16023 if test EXPORTS = "`$SED 1q $export_symbols`"; then 16024 prefix_cmds="$prefix_cmds -e 1d"; 16025 fi~ 16026 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 16027 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 16028 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16029 emximp -o $lib $output_objdir/$libname.def' 16030 old_archive_From_new_cmds_F77='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 16031 enable_shared_with_static_runtimes_F77=yes 16032 ;; 16033 16034 interix[3-9]*) 16035 hardcode_direct_F77=no 16036 hardcode_shlibpath_var_F77=no 16037 hardcode_libdir_flag_spec_F77='$wl-rpath,$libdir' 16038 export_dynamic_flag_spec_F77='$wl-E' 16039 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16040 # Instead, shared libraries are loaded at an image base (0x10000000 by 16041 # default) and relocated if they conflict, which is a slow very memory 16042 # consuming and fragmenting process. To avoid this, we pick a random, 16043 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16044 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16045 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 16046 archive_expsym_cmds_F77='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' 16047 ;; 16048 16049 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 16050 tmp_diet=no 16051 if test linux-dietlibc = "$host_os"; then 16052 case $cc_basename in 16053 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 16054 esac 16055 fi 16056 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 16057 && test no = "$tmp_diet" 16058 then 16059 tmp_addflag=' $pic_flag' 16060 tmp_sharedflag='-shared' 16061 case $cc_basename,$host_cpu in 16062 pgcc*) # Portland Group C compiler 16063 whole_archive_flag_spec_F77='$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' 16064 tmp_addflag=' $pic_flag' 16065 ;; 16066 pgf77* | pgf90* | pgf95* | pgfortran*) 16067 # Portland Group f77 and f90 compilers 16068 whole_archive_flag_spec_F77='$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' 16069 tmp_addflag=' $pic_flag -Mnomain' ;; 16070 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16071 tmp_addflag=' -i_dynamic' ;; 16072 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16073 tmp_addflag=' -i_dynamic -nofor_main' ;; 16074 ifc* | ifort*) # Intel Fortran compiler 16075 tmp_addflag=' -nofor_main' ;; 16076 lf95*) # Lahey Fortran 8.1 16077 whole_archive_flag_spec_F77= 16078 tmp_sharedflag='--shared' ;; 16079 nagfor*) # NAGFOR 5.3 16080 tmp_sharedflag='-Wl,-shared' ;; 16081 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 16082 tmp_sharedflag='-qmkshrobj' 16083 tmp_addflag= ;; 16084 nvcc*) # Cuda Compiler Driver 2.2 16085 whole_archive_flag_spec_F77='$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' 16086 compiler_needs_object_F77=yes 16087 ;; 16088 esac 16089 case `$CC -V 2>&1 | sed 5q` in 16090 *Sun\ C*) # Sun C 5.9 16091 whole_archive_flag_spec_F77='$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' 16092 compiler_needs_object_F77=yes 16093 tmp_sharedflag='-G' ;; 16094 *Sun\ F*) # Sun Fortran 8.3 16095 tmp_sharedflag='-G' ;; 16096 esac 16097 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16098 16099 if test yes = "$supports_anon_versioning"; then 16100 archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~ 16101 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16102 echo "local: *; };" >> $output_objdir/$libname.ver~ 16103 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 16104 fi 16105 16106 case $cc_basename in 16107 tcc*) 16108 export_dynamic_flag_spec_F77='-rdynamic' 16109 ;; 16110 xlf* | bgf* | bgxlf* | mpixlf*) 16111 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 16112 whole_archive_flag_spec_F77='--whole-archive$convenience --no-whole-archive' 16113 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir' 16114 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 16115 if test yes = "$supports_anon_versioning"; then 16116 archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~ 16117 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16118 echo "local: *; };" >> $output_objdir/$libname.ver~ 16119 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 16120 fi 16121 ;; 16122 esac 16123 else 16124 ld_shlibs_F77=no 16125 fi 16126 ;; 16127 16128 netbsd*) 16129 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16130 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16131 wlarc= 16132 else 16133 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16134 archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16135 fi 16136 ;; 16137 16138 solaris*) 16139 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 16140 ld_shlibs_F77=no 16141 cat <<_LT_EOF 1>&2 16142 16143*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16144*** create shared libraries on Solaris systems. Therefore, libtool 16145*** is disabling shared libraries support. We urge you to upgrade GNU 16146*** binutils to release 2.9.1 or newer. Another option is to modify 16147*** your PATH or compiler configuration so that the native linker is 16148*** used, and then restart. 16149 16150_LT_EOF 16151 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16152 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16153 archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16154 else 16155 ld_shlibs_F77=no 16156 fi 16157 ;; 16158 16159 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16160 case `$LD -v 2>&1` in 16161 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16162 ld_shlibs_F77=no 16163 cat <<_LT_EOF 1>&2 16164 16165*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 16166*** reliably create shared libraries on SCO systems. Therefore, libtool 16167*** is disabling shared libraries support. We urge you to upgrade GNU 16168*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16169*** your PATH or compiler configuration so that the native linker is 16170*** used, and then restart. 16171 16172_LT_EOF 16173 ;; 16174 *) 16175 # For security reasons, it is highly recommended that you always 16176 # use absolute paths for naming shared libraries, and exclude the 16177 # DT_RUNPATH tag from executables and libraries. But doing so 16178 # requires that you compile everything twice, which is a pain. 16179 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16180 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir' 16181 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16182 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16183 else 16184 ld_shlibs_F77=no 16185 fi 16186 ;; 16187 esac 16188 ;; 16189 16190 sunos4*) 16191 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16192 wlarc= 16193 hardcode_direct_F77=yes 16194 hardcode_shlibpath_var_F77=no 16195 ;; 16196 16197 *) 16198 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16199 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16200 archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16201 else 16202 ld_shlibs_F77=no 16203 fi 16204 ;; 16205 esac 16206 16207 if test no = "$ld_shlibs_F77"; then 16208 runpath_var= 16209 hardcode_libdir_flag_spec_F77= 16210 export_dynamic_flag_spec_F77= 16211 whole_archive_flag_spec_F77= 16212 fi 16213 else 16214 # PORTME fill in a description of your system's linker (not GNU ld) 16215 case $host_os in 16216 aix3*) 16217 allow_undefined_flag_F77=unsupported 16218 always_export_symbols_F77=yes 16219 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 16220 # Note: this linker hardcodes the directories in LIBPATH if there 16221 # are no directories specified by -L. 16222 hardcode_minus_L_F77=yes 16223 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 16224 # Neither direct hardcoding nor static linking is supported with a 16225 # broken collect2. 16226 hardcode_direct_F77=unsupported 16227 fi 16228 ;; 16229 16230 aix[4-9]*) 16231 if test ia64 = "$host_cpu"; then 16232 # On IA64, the linker does run time linking by default, so we don't 16233 # have to do anything special. 16234 aix_use_runtimelinking=no 16235 exp_sym_flag='-Bexport' 16236 no_entry_flag= 16237 else 16238 # If we're using GNU nm, then we don't want the "-C" option. 16239 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 16240 # Without the "-l" option, or with the "-B" option, AIX nm treats 16241 # weak defined symbols like other global defined symbols, whereas 16242 # GNU nm marks them as "W". 16243 # While the 'weak' keyword is ignored in the Export File, we need 16244 # it in the Import File for the 'aix-soname' feature, so we have 16245 # to replace the "-B" option with "-P" for AIX nm. 16246 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 16247 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 16248 else 16249 export_symbols_cmds_F77='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 16250 fi 16251 aix_use_runtimelinking=no 16252 16253 # Test if we are trying to use run time linking or normal 16254 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16255 # have runtime linking enabled, and use it for executables. 16256 # For shared libraries, we enable/disable runtime linking 16257 # depending on the kind of the shared library created - 16258 # when "with_aix_soname,aix_use_runtimelinking" is: 16259 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 16260 # "aix,yes" lib.so shared, rtl:yes, for executables 16261 # lib.a static archive 16262 # "both,no" lib.so.V(shr.o) shared, rtl:yes 16263 # lib.a(lib.so.V) shared, rtl:no, for executables 16264 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 16265 # lib.a(lib.so.V) shared, rtl:no 16266 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 16267 # lib.a static archive 16268 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 16269 for ld_flag in $LDFLAGS; do 16270 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 16271 aix_use_runtimelinking=yes 16272 break 16273 fi 16274 done 16275 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 16276 # With aix-soname=svr4, we create the lib.so.V shared archives only, 16277 # so we don't have lib.a shared libs to link our executables. 16278 # We have to force runtime linking in this case. 16279 aix_use_runtimelinking=yes 16280 LDFLAGS="$LDFLAGS -Wl,-brtl" 16281 fi 16282 ;; 16283 esac 16284 16285 exp_sym_flag='-bexport' 16286 no_entry_flag='-bnoentry' 16287 fi 16288 16289 # When large executables or shared objects are built, AIX ld can 16290 # have problems creating the table of contents. If linking a library 16291 # or program results in "error TOC overflow" add -mminimal-toc to 16292 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16293 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16294 16295 archive_cmds_F77='' 16296 hardcode_direct_F77=yes 16297 hardcode_direct_absolute_F77=yes 16298 hardcode_libdir_separator_F77=':' 16299 link_all_deplibs_F77=yes 16300 file_list_spec_F77='$wl-f,' 16301 case $with_aix_soname,$aix_use_runtimelinking in 16302 aix,*) ;; # traditional, no import file 16303 svr4,* | *,yes) # use import file 16304 # The Import File defines what to hardcode. 16305 hardcode_direct_F77=no 16306 hardcode_direct_absolute_F77=no 16307 ;; 16308 esac 16309 16310 if test yes = "$GCC"; then 16311 case $host_os in aix4.[012]|aix4.[012].*) 16312 # We only want to do this on AIX 4.2 and lower, the check 16313 # below for broken collect2 doesn't work under 4.3+ 16314 collect2name=`$CC -print-prog-name=collect2` 16315 if test -f "$collect2name" && 16316 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 16317 then 16318 # We have reworked collect2 16319 : 16320 else 16321 # We have old collect2 16322 hardcode_direct_F77=unsupported 16323 # It fails to find uninstalled libraries when the uninstalled 16324 # path is not listed in the libpath. Setting hardcode_minus_L 16325 # to unsupported forces relinking 16326 hardcode_minus_L_F77=yes 16327 hardcode_libdir_flag_spec_F77='-L$libdir' 16328 hardcode_libdir_separator_F77= 16329 fi 16330 ;; 16331 esac 16332 shared_flag='-shared' 16333 if test yes = "$aix_use_runtimelinking"; then 16334 shared_flag="$shared_flag "'$wl-G' 16335 fi 16336 # Need to ensure runtime linking is disabled for the traditional 16337 # shared library, or the linker may eventually find shared libraries 16338 # /with/ Import File - we do not want to mix them. 16339 shared_flag_aix='-shared' 16340 shared_flag_svr4='-shared $wl-G' 16341 else 16342 # not using gcc 16343 if test ia64 = "$host_cpu"; then 16344 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16345 # chokes on -Wl,-G. The following line is correct: 16346 shared_flag='-G' 16347 else 16348 if test yes = "$aix_use_runtimelinking"; then 16349 shared_flag='$wl-G' 16350 else 16351 shared_flag='$wl-bM:SRE' 16352 fi 16353 shared_flag_aix='$wl-bM:SRE' 16354 shared_flag_svr4='$wl-G' 16355 fi 16356 fi 16357 16358 export_dynamic_flag_spec_F77='$wl-bexpall' 16359 # It seems that -bexpall does not export symbols beginning with 16360 # underscore (_), so it is better to generate a list of symbols to export. 16361 always_export_symbols_F77=yes 16362 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 16363 # Warning - without using the other runtime loading flags (-brtl), 16364 # -berok will link without error, but may produce a broken library. 16365 allow_undefined_flag_F77='-berok' 16366 # Determine the default libpath from the value encoded in an 16367 # empty executable. 16368 if test set = "${lt_cv_aix_libpath+set}"; then 16369 aix_libpath=$lt_cv_aix_libpath 16370else 16371 if ${lt_cv_aix_libpath__F77+:} false; then : 16372 $as_echo_n "(cached) " >&6 16373else 16374 cat > conftest.$ac_ext <<_ACEOF 16375 program main 16376 16377 end 16378_ACEOF 16379if ac_fn_f77_try_link "$LINENO"; then : 16380 16381 lt_aix_libpath_sed=' 16382 /Import File Strings/,/^$/ { 16383 /^0/ { 16384 s/^0 *\([^ ]*\) *$/\1/ 16385 p 16386 } 16387 }' 16388 lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16389 # Check for a 64-bit object if we didn't find anything. 16390 if test -z "$lt_cv_aix_libpath__F77"; then 16391 lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16392 fi 16393fi 16394rm -f core conftest.err conftest.$ac_objext \ 16395 conftest$ac_exeext conftest.$ac_ext 16396 if test -z "$lt_cv_aix_libpath__F77"; then 16397 lt_cv_aix_libpath__F77=/usr/lib:/lib 16398 fi 16399 16400fi 16401 16402 aix_libpath=$lt_cv_aix_libpath__F77 16403fi 16404 16405 hardcode_libdir_flag_spec_F77='$wl-blibpath:$libdir:'"$aix_libpath" 16406 archive_expsym_cmds_F77='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 16407 else 16408 if test ia64 = "$host_cpu"; then 16409 hardcode_libdir_flag_spec_F77='$wl-R $libdir:/usr/lib:/lib' 16410 allow_undefined_flag_F77="-z nodefs" 16411 archive_expsym_cmds_F77="\$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" 16412 else 16413 # Determine the default libpath from the value encoded in an 16414 # empty executable. 16415 if test set = "${lt_cv_aix_libpath+set}"; then 16416 aix_libpath=$lt_cv_aix_libpath 16417else 16418 if ${lt_cv_aix_libpath__F77+:} false; then : 16419 $as_echo_n "(cached) " >&6 16420else 16421 cat > conftest.$ac_ext <<_ACEOF 16422 program main 16423 16424 end 16425_ACEOF 16426if ac_fn_f77_try_link "$LINENO"; then : 16427 16428 lt_aix_libpath_sed=' 16429 /Import File Strings/,/^$/ { 16430 /^0/ { 16431 s/^0 *\([^ ]*\) *$/\1/ 16432 p 16433 } 16434 }' 16435 lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16436 # Check for a 64-bit object if we didn't find anything. 16437 if test -z "$lt_cv_aix_libpath__F77"; then 16438 lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16439 fi 16440fi 16441rm -f core conftest.err conftest.$ac_objext \ 16442 conftest$ac_exeext conftest.$ac_ext 16443 if test -z "$lt_cv_aix_libpath__F77"; then 16444 lt_cv_aix_libpath__F77=/usr/lib:/lib 16445 fi 16446 16447fi 16448 16449 aix_libpath=$lt_cv_aix_libpath__F77 16450fi 16451 16452 hardcode_libdir_flag_spec_F77='$wl-blibpath:$libdir:'"$aix_libpath" 16453 # Warning - without using the other run time loading flags, 16454 # -berok will link without error, but may produce a broken library. 16455 no_undefined_flag_F77=' $wl-bernotok' 16456 allow_undefined_flag_F77=' $wl-berok' 16457 if test yes = "$with_gnu_ld"; then 16458 # We only use this code for GNU lds that support --whole-archive. 16459 whole_archive_flag_spec_F77='$wl--whole-archive$convenience $wl--no-whole-archive' 16460 else 16461 # Exported symbols can be pulled into shared objects from archives 16462 whole_archive_flag_spec_F77='$convenience' 16463 fi 16464 archive_cmds_need_lc_F77=yes 16465 archive_expsym_cmds_F77='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 16466 # -brtl affects multiple linker settings, -berok does not and is overridden later 16467 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 16468 if test svr4 != "$with_aix_soname"; then 16469 # This is similar to how AIX traditionally builds its shared libraries. 16470 archive_expsym_cmds_F77="$archive_expsym_cmds_F77"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 16471 fi 16472 if test aix != "$with_aix_soname"; then 16473 archive_expsym_cmds_F77="$archive_expsym_cmds_F77"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 16474 else 16475 # used by -dlpreopen to get the symbols 16476 archive_expsym_cmds_F77="$archive_expsym_cmds_F77"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 16477 fi 16478 archive_expsym_cmds_F77="$archive_expsym_cmds_F77"'~$RM -r $output_objdir/$realname.d' 16479 fi 16480 fi 16481 ;; 16482 16483 amigaos*) 16484 case $host_cpu in 16485 powerpc) 16486 # see comment about AmigaOS4 .so support 16487 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16488 archive_expsym_cmds_F77='' 16489 ;; 16490 m68k) 16491 archive_cmds_F77='$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)' 16492 hardcode_libdir_flag_spec_F77='-L$libdir' 16493 hardcode_minus_L_F77=yes 16494 ;; 16495 esac 16496 ;; 16497 16498 bsdi[45]*) 16499 export_dynamic_flag_spec_F77=-rdynamic 16500 ;; 16501 16502 cygwin* | mingw* | pw32* | cegcc*) 16503 # When not using gcc, we currently assume that we are using 16504 # Microsoft Visual C++. 16505 # hardcode_libdir_flag_spec is actually meaningless, as there is 16506 # no search path for DLLs. 16507 case $cc_basename in 16508 cl*) 16509 # Native MSVC 16510 hardcode_libdir_flag_spec_F77=' ' 16511 allow_undefined_flag_F77=unsupported 16512 always_export_symbols_F77=yes 16513 file_list_spec_F77='@' 16514 # Tell ltmain to make .lib files, not .a files. 16515 libext=lib 16516 # Tell ltmain to make .dll files, not .so files. 16517 shrext_cmds=.dll 16518 # FIXME: Setting linknames here is a bad hack. 16519 archive_cmds_F77='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 16520 archive_expsym_cmds_F77='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16521 cp "$export_symbols" "$output_objdir/$soname.def"; 16522 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 16523 else 16524 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 16525 fi~ 16526 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 16527 linknames=' 16528 # The linker will not automatically build a static lib if we build a DLL. 16529 # _LT_TAGVAR(old_archive_from_new_cmds, F77)='true' 16530 enable_shared_with_static_runtimes_F77=yes 16531 exclude_expsyms_F77='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 16532 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 16533 # Don't use ranlib 16534 old_postinstall_cmds_F77='chmod 644 $oldlib' 16535 postlink_cmds_F77='lt_outputfile="@OUTPUT@"~ 16536 lt_tool_outputfile="@TOOL_OUTPUT@"~ 16537 case $lt_outputfile in 16538 *.exe|*.EXE) ;; 16539 *) 16540 lt_outputfile=$lt_outputfile.exe 16541 lt_tool_outputfile=$lt_tool_outputfile.exe 16542 ;; 16543 esac~ 16544 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 16545 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 16546 $RM "$lt_outputfile.manifest"; 16547 fi' 16548 ;; 16549 *) 16550 # Assume MSVC wrapper 16551 hardcode_libdir_flag_spec_F77=' ' 16552 allow_undefined_flag_F77=unsupported 16553 # Tell ltmain to make .lib files, not .a files. 16554 libext=lib 16555 # Tell ltmain to make .dll files, not .so files. 16556 shrext_cmds=.dll 16557 # FIXME: Setting linknames here is a bad hack. 16558 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 16559 # The linker will automatically build a .lib file if we build a DLL. 16560 old_archive_from_new_cmds_F77='true' 16561 # FIXME: Should let the user specify the lib program. 16562 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' 16563 enable_shared_with_static_runtimes_F77=yes 16564 ;; 16565 esac 16566 ;; 16567 16568 darwin* | rhapsody*) 16569 16570 16571 archive_cmds_need_lc_F77=no 16572 hardcode_direct_F77=no 16573 hardcode_automatic_F77=yes 16574 hardcode_shlibpath_var_F77=unsupported 16575 if test yes = "$lt_cv_ld_force_load"; then 16576 whole_archive_flag_spec_F77='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 16577 compiler_needs_object_F77=yes 16578 else 16579 whole_archive_flag_spec_F77='' 16580 fi 16581 link_all_deplibs_F77=yes 16582 allow_undefined_flag_F77=$_lt_dar_allow_undefined 16583 case $cc_basename in 16584 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 16585 *) _lt_dar_can_shared=$GCC ;; 16586 esac 16587 if test yes = "$_lt_dar_can_shared"; then 16588 output_verbose_link_cmd=func_echo_all 16589 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 16590 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 16591 archive_expsym_cmds_F77="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" 16592 module_expsym_cmds_F77="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" 16593 16594 else 16595 ld_shlibs_F77=no 16596 fi 16597 16598 ;; 16599 16600 dgux*) 16601 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16602 hardcode_libdir_flag_spec_F77='-L$libdir' 16603 hardcode_shlibpath_var_F77=no 16604 ;; 16605 16606 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16607 # support. Future versions do this automatically, but an explicit c++rt0.o 16608 # does not break anything, and helps significantly (at the cost of a little 16609 # extra space). 16610 freebsd2.2*) 16611 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16612 hardcode_libdir_flag_spec_F77='-R$libdir' 16613 hardcode_direct_F77=yes 16614 hardcode_shlibpath_var_F77=no 16615 ;; 16616 16617 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16618 freebsd2.*) 16619 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16620 hardcode_direct_F77=yes 16621 hardcode_minus_L_F77=yes 16622 hardcode_shlibpath_var_F77=no 16623 ;; 16624 16625 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16626 freebsd* | dragonfly*) 16627 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16628 hardcode_libdir_flag_spec_F77='-R$libdir' 16629 hardcode_direct_F77=yes 16630 hardcode_shlibpath_var_F77=no 16631 ;; 16632 16633 hpux9*) 16634 if test yes = "$GCC"; then 16635 archive_cmds_F77='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 16636 else 16637 archive_cmds_F77='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 16638 fi 16639 hardcode_libdir_flag_spec_F77='$wl+b $wl$libdir' 16640 hardcode_libdir_separator_F77=: 16641 hardcode_direct_F77=yes 16642 16643 # hardcode_minus_L: Not really in the search PATH, 16644 # but as the default location of the library. 16645 hardcode_minus_L_F77=yes 16646 export_dynamic_flag_spec_F77='$wl-E' 16647 ;; 16648 16649 hpux10*) 16650 if test yes,no = "$GCC,$with_gnu_ld"; then 16651 archive_cmds_F77='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16652 else 16653 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16654 fi 16655 if test no = "$with_gnu_ld"; then 16656 hardcode_libdir_flag_spec_F77='$wl+b $wl$libdir' 16657 hardcode_libdir_separator_F77=: 16658 hardcode_direct_F77=yes 16659 hardcode_direct_absolute_F77=yes 16660 export_dynamic_flag_spec_F77='$wl-E' 16661 # hardcode_minus_L: Not really in the search PATH, 16662 # but as the default location of the library. 16663 hardcode_minus_L_F77=yes 16664 fi 16665 ;; 16666 16667 hpux11*) 16668 if test yes,no = "$GCC,$with_gnu_ld"; then 16669 case $host_cpu in 16670 hppa*64*) 16671 archive_cmds_F77='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16672 ;; 16673 ia64*) 16674 archive_cmds_F77='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16675 ;; 16676 *) 16677 archive_cmds_F77='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16678 ;; 16679 esac 16680 else 16681 case $host_cpu in 16682 hppa*64*) 16683 archive_cmds_F77='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16684 ;; 16685 ia64*) 16686 archive_cmds_F77='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16687 ;; 16688 *) 16689 archive_cmds_F77='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16690 ;; 16691 esac 16692 fi 16693 if test no = "$with_gnu_ld"; then 16694 hardcode_libdir_flag_spec_F77='$wl+b $wl$libdir' 16695 hardcode_libdir_separator_F77=: 16696 16697 case $host_cpu in 16698 hppa*64*|ia64*) 16699 hardcode_direct_F77=no 16700 hardcode_shlibpath_var_F77=no 16701 ;; 16702 *) 16703 hardcode_direct_F77=yes 16704 hardcode_direct_absolute_F77=yes 16705 export_dynamic_flag_spec_F77='$wl-E' 16706 16707 # hardcode_minus_L: Not really in the search PATH, 16708 # but as the default location of the library. 16709 hardcode_minus_L_F77=yes 16710 ;; 16711 esac 16712 fi 16713 ;; 16714 16715 irix5* | irix6* | nonstopux*) 16716 if test yes = "$GCC"; then 16717 archive_cmds_F77='$CC -shared $pic_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' 16718 # Try to use the -exported_symbol ld option, if it does not 16719 # work, assume that -exports_file does not work either and 16720 # implicitly export all symbols. 16721 # This should be the same for all languages, so no per-tag cache variable. 16722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 16723$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 16724if ${lt_cv_irix_exported_symbol+:} false; then : 16725 $as_echo_n "(cached) " >&6 16726else 16727 save_LDFLAGS=$LDFLAGS 16728 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 16729 cat > conftest.$ac_ext <<_ACEOF 16730 16731 subroutine foo 16732 end 16733_ACEOF 16734if ac_fn_f77_try_link "$LINENO"; then : 16735 lt_cv_irix_exported_symbol=yes 16736else 16737 lt_cv_irix_exported_symbol=no 16738fi 16739rm -f core conftest.err conftest.$ac_objext \ 16740 conftest$ac_exeext conftest.$ac_ext 16741 LDFLAGS=$save_LDFLAGS 16742fi 16743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 16744$as_echo "$lt_cv_irix_exported_symbol" >&6; } 16745 if test yes = "$lt_cv_irix_exported_symbol"; then 16746 archive_expsym_cmds_F77='$CC -shared $pic_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 $wl-exports_file $wl$export_symbols -o $lib' 16747 fi 16748 else 16749 archive_cmds_F77='$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' 16750 archive_expsym_cmds_F77='$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' 16751 fi 16752 archive_cmds_need_lc_F77='no' 16753 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir' 16754 hardcode_libdir_separator_F77=: 16755 inherit_rpath_F77=yes 16756 link_all_deplibs_F77=yes 16757 ;; 16758 16759 linux*) 16760 case $cc_basename in 16761 tcc*) 16762 # Fabrice Bellard et al's Tiny C Compiler 16763 ld_shlibs_F77=yes 16764 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16765 ;; 16766 esac 16767 ;; 16768 16769 netbsd*) 16770 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16771 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16772 else 16773 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16774 fi 16775 hardcode_libdir_flag_spec_F77='-R$libdir' 16776 hardcode_direct_F77=yes 16777 hardcode_shlibpath_var_F77=no 16778 ;; 16779 16780 newsos6) 16781 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16782 hardcode_direct_F77=yes 16783 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir' 16784 hardcode_libdir_separator_F77=: 16785 hardcode_shlibpath_var_F77=no 16786 ;; 16787 16788 *nto* | *qnx*) 16789 ;; 16790 16791 openbsd* | bitrig*) 16792 if test -f /usr/libexec/ld.so; then 16793 hardcode_direct_F77=yes 16794 hardcode_shlibpath_var_F77=no 16795 hardcode_direct_absolute_F77=yes 16796 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 16797 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16798 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 16799 hardcode_libdir_flag_spec_F77='$wl-rpath,$libdir' 16800 export_dynamic_flag_spec_F77='$wl-E' 16801 else 16802 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16803 hardcode_libdir_flag_spec_F77='$wl-rpath,$libdir' 16804 fi 16805 else 16806 ld_shlibs_F77=no 16807 fi 16808 ;; 16809 16810 os2*) 16811 hardcode_libdir_flag_spec_F77='-L$libdir' 16812 hardcode_minus_L_F77=yes 16813 allow_undefined_flag_F77=unsupported 16814 shrext_cmds=.dll 16815 archive_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16816 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16817 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16818 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16819 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 16820 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16821 emximp -o $lib $output_objdir/$libname.def' 16822 archive_expsym_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16823 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16824 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16825 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16826 prefix_cmds="$SED"~ 16827 if test EXPORTS = "`$SED 1q $export_symbols`"; then 16828 prefix_cmds="$prefix_cmds -e 1d"; 16829 fi~ 16830 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 16831 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 16832 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16833 emximp -o $lib $output_objdir/$libname.def' 16834 old_archive_From_new_cmds_F77='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 16835 enable_shared_with_static_runtimes_F77=yes 16836 ;; 16837 16838 osf3*) 16839 if test yes = "$GCC"; then 16840 allow_undefined_flag_F77=' $wl-expect_unresolved $wl\*' 16841 archive_cmds_F77='$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' 16842 else 16843 allow_undefined_flag_F77=' -expect_unresolved \*' 16844 archive_cmds_F77='$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' 16845 fi 16846 archive_cmds_need_lc_F77='no' 16847 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir' 16848 hardcode_libdir_separator_F77=: 16849 ;; 16850 16851 osf4* | osf5*) # as osf3* with the addition of -msym flag 16852 if test yes = "$GCC"; then 16853 allow_undefined_flag_F77=' $wl-expect_unresolved $wl\*' 16854 archive_cmds_F77='$CC -shared$allow_undefined_flag $pic_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' 16855 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir' 16856 else 16857 allow_undefined_flag_F77=' -expect_unresolved \*' 16858 archive_cmds_F77='$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' 16859 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 16860 $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' 16861 16862 # Both c and cxx compiler support -rpath directly 16863 hardcode_libdir_flag_spec_F77='-rpath $libdir' 16864 fi 16865 archive_cmds_need_lc_F77='no' 16866 hardcode_libdir_separator_F77=: 16867 ;; 16868 16869 solaris*) 16870 no_undefined_flag_F77=' -z defs' 16871 if test yes = "$GCC"; then 16872 wlarc='$wl' 16873 archive_cmds_F77='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16874 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16875 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 16876 else 16877 case `$CC -V 2>&1` in 16878 *"Compilers 5.0"*) 16879 wlarc='' 16880 archive_cmds_F77='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 16881 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16882 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 16883 ;; 16884 *) 16885 wlarc='$wl' 16886 archive_cmds_F77='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 16887 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16888 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 16889 ;; 16890 esac 16891 fi 16892 hardcode_libdir_flag_spec_F77='-R$libdir' 16893 hardcode_shlibpath_var_F77=no 16894 case $host_os in 16895 solaris2.[0-5] | solaris2.[0-5].*) ;; 16896 *) 16897 # The compiler driver will combine and reorder linker options, 16898 # but understands '-z linker_flag'. GCC discards it without '$wl', 16899 # but is careful enough not to reorder. 16900 # Supported since Solaris 2.6 (maybe 2.5.1?) 16901 if test yes = "$GCC"; then 16902 whole_archive_flag_spec_F77='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 16903 else 16904 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' 16905 fi 16906 ;; 16907 esac 16908 link_all_deplibs_F77=yes 16909 ;; 16910 16911 sunos4*) 16912 if test sequent = "$host_vendor"; then 16913 # Use $CC to link under sequent, because it throws in some extra .o 16914 # files that make .init and .fini sections work. 16915 archive_cmds_F77='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16916 else 16917 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16918 fi 16919 hardcode_libdir_flag_spec_F77='-L$libdir' 16920 hardcode_direct_F77=yes 16921 hardcode_minus_L_F77=yes 16922 hardcode_shlibpath_var_F77=no 16923 ;; 16924 16925 sysv4) 16926 case $host_vendor in 16927 sni) 16928 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16929 hardcode_direct_F77=yes # is this really true??? 16930 ;; 16931 siemens) 16932 ## LD is ld it makes a PLAMLIB 16933 ## CC just makes a GrossModule. 16934 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16935 reload_cmds_F77='$CC -r -o $output$reload_objs' 16936 hardcode_direct_F77=no 16937 ;; 16938 motorola) 16939 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16940 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 16941 ;; 16942 esac 16943 runpath_var='LD_RUN_PATH' 16944 hardcode_shlibpath_var_F77=no 16945 ;; 16946 16947 sysv4.3*) 16948 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16949 hardcode_shlibpath_var_F77=no 16950 export_dynamic_flag_spec_F77='-Bexport' 16951 ;; 16952 16953 sysv4*MP*) 16954 if test -d /usr/nec; then 16955 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16956 hardcode_shlibpath_var_F77=no 16957 runpath_var=LD_RUN_PATH 16958 hardcode_runpath_var=yes 16959 ld_shlibs_F77=yes 16960 fi 16961 ;; 16962 16963 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 16964 no_undefined_flag_F77='$wl-z,text' 16965 archive_cmds_need_lc_F77=no 16966 hardcode_shlibpath_var_F77=no 16967 runpath_var='LD_RUN_PATH' 16968 16969 if test yes = "$GCC"; then 16970 archive_cmds_F77='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16971 archive_expsym_cmds_F77='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16972 else 16973 archive_cmds_F77='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16974 archive_expsym_cmds_F77='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16975 fi 16976 ;; 16977 16978 sysv5* | sco3.2v5* | sco5v6*) 16979 # Note: We CANNOT use -z defs as we might desire, because we do not 16980 # link with -lc, and that would cause any symbols used from libc to 16981 # always be unresolved, which means just about no library would 16982 # ever link correctly. If we're not using GNU ld we use -z text 16983 # though, which does catch some bad symbols but isn't as heavy-handed 16984 # as -z defs. 16985 no_undefined_flag_F77='$wl-z,text' 16986 allow_undefined_flag_F77='$wl-z,nodefs' 16987 archive_cmds_need_lc_F77=no 16988 hardcode_shlibpath_var_F77=no 16989 hardcode_libdir_flag_spec_F77='$wl-R,$libdir' 16990 hardcode_libdir_separator_F77=':' 16991 link_all_deplibs_F77=yes 16992 export_dynamic_flag_spec_F77='$wl-Bexport' 16993 runpath_var='LD_RUN_PATH' 16994 16995 if test yes = "$GCC"; then 16996 archive_cmds_F77='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16997 archive_expsym_cmds_F77='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16998 else 16999 archive_cmds_F77='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17000 archive_expsym_cmds_F77='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17001 fi 17002 ;; 17003 17004 uts4*) 17005 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17006 hardcode_libdir_flag_spec_F77='-L$libdir' 17007 hardcode_shlibpath_var_F77=no 17008 ;; 17009 17010 *) 17011 ld_shlibs_F77=no 17012 ;; 17013 esac 17014 17015 if test sni = "$host_vendor"; then 17016 case $host in 17017 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 17018 export_dynamic_flag_spec_F77='$wl-Blargedynsym' 17019 ;; 17020 esac 17021 fi 17022 fi 17023 17024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5 17025$as_echo "$ld_shlibs_F77" >&6; } 17026test no = "$ld_shlibs_F77" && can_build_shared=no 17027 17028with_gnu_ld_F77=$with_gnu_ld 17029 17030 17031 17032 17033 17034 17035# 17036# Do we need to explicitly link libc? 17037# 17038case "x$archive_cmds_need_lc_F77" in 17039x|xyes) 17040 # Assume -lc should be added 17041 archive_cmds_need_lc_F77=yes 17042 17043 if test yes,yes = "$GCC,$enable_shared"; then 17044 case $archive_cmds_F77 in 17045 *'~'*) 17046 # FIXME: we may have to deal with multi-command sequences. 17047 ;; 17048 '$CC '*) 17049 # Test whether the compiler implicitly links with -lc since on some 17050 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17051 # to ld, don't add -lc before -lgcc. 17052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 17053$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 17054if ${lt_cv_archive_cmds_need_lc_F77+:} false; then : 17055 $as_echo_n "(cached) " >&6 17056else 17057 $RM conftest* 17058 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17059 17060 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17061 (eval $ac_compile) 2>&5 17062 ac_status=$? 17063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17064 test $ac_status = 0; } 2>conftest.err; then 17065 soname=conftest 17066 lib=conftest 17067 libobjs=conftest.$ac_objext 17068 deplibs= 17069 wl=$lt_prog_compiler_wl_F77 17070 pic_flag=$lt_prog_compiler_pic_F77 17071 compiler_flags=-v 17072 linker_flags=-v 17073 verstring= 17074 output_objdir=. 17075 libname=conftest 17076 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 17077 allow_undefined_flag_F77= 17078 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 17079 (eval $archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 17080 ac_status=$? 17081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17082 test $ac_status = 0; } 17083 then 17084 lt_cv_archive_cmds_need_lc_F77=no 17085 else 17086 lt_cv_archive_cmds_need_lc_F77=yes 17087 fi 17088 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 17089 else 17090 cat conftest.err 1>&5 17091 fi 17092 $RM conftest* 17093 17094fi 17095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_F77" >&5 17096$as_echo "$lt_cv_archive_cmds_need_lc_F77" >&6; } 17097 archive_cmds_need_lc_F77=$lt_cv_archive_cmds_need_lc_F77 17098 ;; 17099 esac 17100 fi 17101 ;; 17102esac 17103 17104 17105 17106 17107 17108 17109 17110 17111 17112 17113 17114 17115 17116 17117 17118 17119 17120 17121 17122 17123 17124 17125 17126 17127 17128 17129 17130 17131 17132 17133 17134 17135 17136 17137 17138 17139 17140 17141 17142 17143 17144 17145 17146 17147 17148 17149 17150 17151 17152 17153 17154 17155 17156 17157 17158 17159 17160 17161 17162 17163 17164 17165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 17166$as_echo_n "checking dynamic linker characteristics... " >&6; } 17167 17168library_names_spec= 17169libname_spec='lib$name' 17170soname_spec= 17171shrext_cmds=.so 17172postinstall_cmds= 17173postuninstall_cmds= 17174finish_cmds= 17175finish_eval= 17176shlibpath_var= 17177shlibpath_overrides_runpath=unknown 17178version_type=none 17179dynamic_linker="$host_os ld.so" 17180sys_lib_dlsearch_path_spec="/lib /usr/lib" 17181need_lib_prefix=unknown 17182hardcode_into_libs=no 17183 17184# when you set need_version to no, make sure it does not cause -set_version 17185# flags to be left without arguments 17186need_version=unknown 17187 17188 17189 17190case $host_os in 17191aix3*) 17192 version_type=linux # correct to gnu/linux during the next big refactor 17193 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 17194 shlibpath_var=LIBPATH 17195 17196 # AIX 3 has no versioning support, so we append a major version to the name. 17197 soname_spec='$libname$release$shared_ext$major' 17198 ;; 17199 17200aix[4-9]*) 17201 version_type=linux # correct to gnu/linux during the next big refactor 17202 need_lib_prefix=no 17203 need_version=no 17204 hardcode_into_libs=yes 17205 if test ia64 = "$host_cpu"; then 17206 # AIX 5 supports IA64 17207 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 17208 shlibpath_var=LD_LIBRARY_PATH 17209 else 17210 # With GCC up to 2.95.x, collect2 would create an import file 17211 # for dependence libraries. The import file would start with 17212 # the line '#! .'. This would cause the generated library to 17213 # depend on '.', always an invalid library. This was fixed in 17214 # development snapshots of GCC prior to 3.0. 17215 case $host_os in 17216 aix4 | aix4.[01] | aix4.[01].*) 17217 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17218 echo ' yes ' 17219 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 17220 : 17221 else 17222 can_build_shared=no 17223 fi 17224 ;; 17225 esac 17226 # Using Import Files as archive members, it is possible to support 17227 # filename-based versioning of shared library archives on AIX. While 17228 # this would work for both with and without runtime linking, it will 17229 # prevent static linking of such archives. So we do filename-based 17230 # shared library versioning with .so extension only, which is used 17231 # when both runtime linking and shared linking is enabled. 17232 # Unfortunately, runtime linking may impact performance, so we do 17233 # not want this to be the default eventually. Also, we use the 17234 # versioned .so libs for executables only if there is the -brtl 17235 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 17236 # To allow for filename-based versioning support, we need to create 17237 # libNAME.so.V as an archive file, containing: 17238 # *) an Import File, referring to the versioned filename of the 17239 # archive as well as the shared archive member, telling the 17240 # bitwidth (32 or 64) of that shared object, and providing the 17241 # list of exported symbols of that shared object, eventually 17242 # decorated with the 'weak' keyword 17243 # *) the shared object with the F_LOADONLY flag set, to really avoid 17244 # it being seen by the linker. 17245 # At run time we better use the real file rather than another symlink, 17246 # but for link time we create the symlink libNAME.so -> libNAME.so.V 17247 17248 case $with_aix_soname,$aix_use_runtimelinking in 17249 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 17250 # soname into executable. Probably we can add versioning support to 17251 # collect2, so additional links can be useful in future. 17252 aix,yes) # traditional libtool 17253 dynamic_linker='AIX unversionable lib.so' 17254 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17255 # instead of lib<name>.a to let people know that these are not 17256 # typical AIX shared libraries. 17257 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17258 ;; 17259 aix,no) # traditional AIX only 17260 dynamic_linker='AIX lib.a(lib.so.V)' 17261 # We preserve .a as extension for shared libraries through AIX4.2 17262 # and later when we are not doing run time linking. 17263 library_names_spec='$libname$release.a $libname.a' 17264 soname_spec='$libname$release$shared_ext$major' 17265 ;; 17266 svr4,*) # full svr4 only 17267 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 17268 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17269 # We do not specify a path in Import Files, so LIBPATH fires. 17270 shlibpath_overrides_runpath=yes 17271 ;; 17272 *,yes) # both, prefer svr4 17273 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 17274 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17275 # unpreferred sharedlib libNAME.a needs extra handling 17276 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 17277 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 17278 # We do not specify a path in Import Files, so LIBPATH fires. 17279 shlibpath_overrides_runpath=yes 17280 ;; 17281 *,no) # both, prefer aix 17282 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 17283 library_names_spec='$libname$release.a $libname.a' 17284 soname_spec='$libname$release$shared_ext$major' 17285 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 17286 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 17287 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 17288 ;; 17289 esac 17290 shlibpath_var=LIBPATH 17291 fi 17292 ;; 17293 17294amigaos*) 17295 case $host_cpu in 17296 powerpc) 17297 # Since July 2007 AmigaOS4 officially supports .so libraries. 17298 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 17299 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17300 ;; 17301 m68k) 17302 library_names_spec='$libname.ixlibrary $libname.a' 17303 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17304 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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' 17305 ;; 17306 esac 17307 ;; 17308 17309beos*) 17310 library_names_spec='$libname$shared_ext' 17311 dynamic_linker="$host_os ld.so" 17312 shlibpath_var=LIBRARY_PATH 17313 ;; 17314 17315bsdi[45]*) 17316 version_type=linux # correct to gnu/linux during the next big refactor 17317 need_version=no 17318 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17319 soname_spec='$libname$release$shared_ext$major' 17320 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17321 shlibpath_var=LD_LIBRARY_PATH 17322 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17323 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17324 # the default ld.so.conf also contains /usr/contrib/lib and 17325 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17326 # libtool to hard-code these into programs 17327 ;; 17328 17329cygwin* | mingw* | pw32* | cegcc*) 17330 version_type=windows 17331 shrext_cmds=.dll 17332 need_version=no 17333 need_lib_prefix=no 17334 17335 case $GCC,$cc_basename in 17336 yes,*) 17337 # gcc 17338 library_names_spec='$libname.dll.a' 17339 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17340 postinstall_cmds='base_file=`basename \$file`~ 17341 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17342 dldir=$destdir/`dirname \$dlpath`~ 17343 test -d \$dldir || mkdir -p \$dldir~ 17344 $install_prog $dir/$dlname \$dldir/$dlname~ 17345 chmod a+x \$dldir/$dlname~ 17346 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17347 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17348 fi' 17349 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17350 dlpath=$dir/\$dldll~ 17351 $RM \$dlpath' 17352 shlibpath_overrides_runpath=yes 17353 17354 case $host_os in 17355 cygwin*) 17356 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17357 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17358 17359 ;; 17360 mingw* | cegcc*) 17361 # MinGW DLLs use traditional 'lib' prefix 17362 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17363 ;; 17364 pw32*) 17365 # pw32 DLLs use 'pw' prefix rather than 'lib' 17366 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17367 ;; 17368 esac 17369 dynamic_linker='Win32 ld.exe' 17370 ;; 17371 17372 *,cl*) 17373 # Native MSVC 17374 libname_spec='$name' 17375 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17376 library_names_spec='$libname.dll.lib' 17377 17378 case $build_os in 17379 mingw*) 17380 sys_lib_search_path_spec= 17381 lt_save_ifs=$IFS 17382 IFS=';' 17383 for lt_path in $LIB 17384 do 17385 IFS=$lt_save_ifs 17386 # Let DOS variable expansion print the short 8.3 style file name. 17387 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 17388 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 17389 done 17390 IFS=$lt_save_ifs 17391 # Convert to MSYS style. 17392 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 17393 ;; 17394 cygwin*) 17395 # Convert to unix form, then to dos form, then back to unix form 17396 # but this time dos style (no spaces!) so that the unix form looks 17397 # like /cygdrive/c/PROGRA~1:/cygdr... 17398 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 17399 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 17400 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17401 ;; 17402 *) 17403 sys_lib_search_path_spec=$LIB 17404 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 17405 # It is most probably a Windows format PATH. 17406 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17407 else 17408 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17409 fi 17410 # FIXME: find the short name or the path components, as spaces are 17411 # common. (e.g. "Program Files" -> "PROGRA~1") 17412 ;; 17413 esac 17414 17415 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17416 postinstall_cmds='base_file=`basename \$file`~ 17417 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17418 dldir=$destdir/`dirname \$dlpath`~ 17419 test -d \$dldir || mkdir -p \$dldir~ 17420 $install_prog $dir/$dlname \$dldir/$dlname' 17421 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17422 dlpath=$dir/\$dldll~ 17423 $RM \$dlpath' 17424 shlibpath_overrides_runpath=yes 17425 dynamic_linker='Win32 link.exe' 17426 ;; 17427 17428 *) 17429 # Assume MSVC wrapper 17430 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 17431 dynamic_linker='Win32 ld.exe' 17432 ;; 17433 esac 17434 # FIXME: first we should search . and the directory the executable is in 17435 shlibpath_var=PATH 17436 ;; 17437 17438darwin* | rhapsody*) 17439 dynamic_linker="$host_os dyld" 17440 version_type=darwin 17441 need_lib_prefix=no 17442 need_version=no 17443 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 17444 soname_spec='$libname$release$major$shared_ext' 17445 shlibpath_overrides_runpath=yes 17446 shlibpath_var=DYLD_LIBRARY_PATH 17447 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17448 17449 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17450 ;; 17451 17452dgux*) 17453 version_type=linux # correct to gnu/linux during the next big refactor 17454 need_lib_prefix=no 17455 need_version=no 17456 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17457 soname_spec='$libname$release$shared_ext$major' 17458 shlibpath_var=LD_LIBRARY_PATH 17459 ;; 17460 17461freebsd* | dragonfly*) 17462 # DragonFly does not have aout. When/if they implement a new 17463 # versioning mechanism, adjust this. 17464 if test -x /usr/bin/objformat; then 17465 objformat=`/usr/bin/objformat` 17466 else 17467 case $host_os in 17468 freebsd[23].*) objformat=aout ;; 17469 *) objformat=elf ;; 17470 esac 17471 fi 17472 version_type=freebsd-$objformat 17473 case $version_type in 17474 freebsd-elf*) 17475 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17476 soname_spec='$libname$release$shared_ext$major' 17477 need_version=no 17478 need_lib_prefix=no 17479 ;; 17480 freebsd-*) 17481 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17482 need_version=yes 17483 ;; 17484 esac 17485 shlibpath_var=LD_LIBRARY_PATH 17486 case $host_os in 17487 freebsd2.*) 17488 shlibpath_overrides_runpath=yes 17489 ;; 17490 freebsd3.[01]* | freebsdelf3.[01]*) 17491 shlibpath_overrides_runpath=yes 17492 hardcode_into_libs=yes 17493 ;; 17494 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17495 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17496 shlibpath_overrides_runpath=no 17497 hardcode_into_libs=yes 17498 ;; 17499 *) # from 4.6 on, and DragonFly 17500 shlibpath_overrides_runpath=yes 17501 hardcode_into_libs=yes 17502 ;; 17503 esac 17504 ;; 17505 17506haiku*) 17507 version_type=linux # correct to gnu/linux during the next big refactor 17508 need_lib_prefix=no 17509 need_version=no 17510 dynamic_linker="$host_os runtime_loader" 17511 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17512 soname_spec='$libname$release$shared_ext$major' 17513 shlibpath_var=LIBRARY_PATH 17514 shlibpath_overrides_runpath=no 17515 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 17516 hardcode_into_libs=yes 17517 ;; 17518 17519hpux9* | hpux10* | hpux11*) 17520 # Give a soname corresponding to the major version so that dld.sl refuses to 17521 # link against other versions. 17522 version_type=sunos 17523 need_lib_prefix=no 17524 need_version=no 17525 case $host_cpu in 17526 ia64*) 17527 shrext_cmds='.so' 17528 hardcode_into_libs=yes 17529 dynamic_linker="$host_os dld.so" 17530 shlibpath_var=LD_LIBRARY_PATH 17531 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17532 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17533 soname_spec='$libname$release$shared_ext$major' 17534 if test 32 = "$HPUX_IA64_MODE"; then 17535 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17536 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 17537 else 17538 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17539 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 17540 fi 17541 ;; 17542 hppa*64*) 17543 shrext_cmds='.sl' 17544 hardcode_into_libs=yes 17545 dynamic_linker="$host_os dld.sl" 17546 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17547 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17548 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17549 soname_spec='$libname$release$shared_ext$major' 17550 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17551 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17552 ;; 17553 *) 17554 shrext_cmds='.sl' 17555 dynamic_linker="$host_os dld.sl" 17556 shlibpath_var=SHLIB_PATH 17557 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17558 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17559 soname_spec='$libname$release$shared_ext$major' 17560 ;; 17561 esac 17562 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 17563 postinstall_cmds='chmod 555 $lib' 17564 # or fails outright, so override atomically: 17565 install_override_mode=555 17566 ;; 17567 17568interix[3-9]*) 17569 version_type=linux # correct to gnu/linux during the next big refactor 17570 need_lib_prefix=no 17571 need_version=no 17572 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17573 soname_spec='$libname$release$shared_ext$major' 17574 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17575 shlibpath_var=LD_LIBRARY_PATH 17576 shlibpath_overrides_runpath=no 17577 hardcode_into_libs=yes 17578 ;; 17579 17580irix5* | irix6* | nonstopux*) 17581 case $host_os in 17582 nonstopux*) version_type=nonstopux ;; 17583 *) 17584 if test yes = "$lt_cv_prog_gnu_ld"; then 17585 version_type=linux # correct to gnu/linux during the next big refactor 17586 else 17587 version_type=irix 17588 fi ;; 17589 esac 17590 need_lib_prefix=no 17591 need_version=no 17592 soname_spec='$libname$release$shared_ext$major' 17593 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 17594 case $host_os in 17595 irix5* | nonstopux*) 17596 libsuff= shlibsuff= 17597 ;; 17598 *) 17599 case $LD in # libtool.m4 will add one of these switches to LD 17600 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17601 libsuff= shlibsuff= libmagic=32-bit;; 17602 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17603 libsuff=32 shlibsuff=N32 libmagic=N32;; 17604 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17605 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17606 *) libsuff= shlibsuff= libmagic=never-match;; 17607 esac 17608 ;; 17609 esac 17610 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17611 shlibpath_overrides_runpath=no 17612 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 17613 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 17614 hardcode_into_libs=yes 17615 ;; 17616 17617# No shared lib support for Linux oldld, aout, or coff. 17618linux*oldld* | linux*aout* | linux*coff*) 17619 dynamic_linker=no 17620 ;; 17621 17622linux*android*) 17623 version_type=none # Android doesn't support versioned libraries. 17624 need_lib_prefix=no 17625 need_version=no 17626 library_names_spec='$libname$release$shared_ext' 17627 soname_spec='$libname$release$shared_ext' 17628 finish_cmds= 17629 shlibpath_var=LD_LIBRARY_PATH 17630 shlibpath_overrides_runpath=yes 17631 17632 # This implies no fast_install, which is unacceptable. 17633 # Some rework will be needed to allow for fast_install 17634 # before this can be enabled. 17635 hardcode_into_libs=yes 17636 17637 dynamic_linker='Android linker' 17638 # Don't embed -rpath directories since the linker doesn't support them. 17639 hardcode_libdir_flag_spec_F77='-L$libdir' 17640 ;; 17641 17642# This must be glibc/ELF. 17643linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 17644 version_type=linux # correct to gnu/linux during the next big refactor 17645 need_lib_prefix=no 17646 need_version=no 17647 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17648 soname_spec='$libname$release$shared_ext$major' 17649 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17650 shlibpath_var=LD_LIBRARY_PATH 17651 shlibpath_overrides_runpath=no 17652 17653 # Some binutils ld are patched to set DT_RUNPATH 17654 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 17655 $as_echo_n "(cached) " >&6 17656else 17657 lt_cv_shlibpath_overrides_runpath=no 17658 save_LDFLAGS=$LDFLAGS 17659 save_libdir=$libdir 17660 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_F77\"; \ 17661 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_F77\"" 17662 cat > conftest.$ac_ext <<_ACEOF 17663 program main 17664 17665 end 17666_ACEOF 17667if ac_fn_f77_try_link "$LINENO"; then : 17668 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 17669 lt_cv_shlibpath_overrides_runpath=yes 17670fi 17671fi 17672rm -f core conftest.err conftest.$ac_objext \ 17673 conftest$ac_exeext conftest.$ac_ext 17674 LDFLAGS=$save_LDFLAGS 17675 libdir=$save_libdir 17676 17677fi 17678 17679 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 17680 17681 # This implies no fast_install, which is unacceptable. 17682 # Some rework will be needed to allow for fast_install 17683 # before this can be enabled. 17684 hardcode_into_libs=yes 17685 17686 # Ideally, we could use ldconfig to report *all* directores which are 17687 # searched for libraries, however this is still not possible. Aside from not 17688 # being certain /sbin/ldconfig is available, command 17689 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 17690 # even though it is searched at run-time. Try to do the best guess by 17691 # appending ld.so.conf contents (and includes) to the search path. 17692 if test -f /etc/ld.so.conf; then 17693 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' ' '` 17694 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 17695 fi 17696 17697 # We used to test for /lib/ld.so.1 and disable shared libraries on 17698 # powerpc, because MkLinux only supported shared libraries with the 17699 # GNU dynamic linker. Since this was broken with cross compilers, 17700 # most powerpc-linux boxes support dynamic linking these days and 17701 # people can always --disable-shared, the test was removed, and we 17702 # assume the GNU/Linux dynamic linker is in use. 17703 dynamic_linker='GNU/Linux ld.so' 17704 ;; 17705 17706netbsd*) 17707 version_type=sunos 17708 need_lib_prefix=no 17709 need_version=no 17710 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17711 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17712 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17713 dynamic_linker='NetBSD (a.out) ld.so' 17714 else 17715 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17716 soname_spec='$libname$release$shared_ext$major' 17717 dynamic_linker='NetBSD ld.elf_so' 17718 fi 17719 shlibpath_var=LD_LIBRARY_PATH 17720 shlibpath_overrides_runpath=yes 17721 hardcode_into_libs=yes 17722 ;; 17723 17724newsos6) 17725 version_type=linux # correct to gnu/linux during the next big refactor 17726 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17727 shlibpath_var=LD_LIBRARY_PATH 17728 shlibpath_overrides_runpath=yes 17729 ;; 17730 17731*nto* | *qnx*) 17732 version_type=qnx 17733 need_lib_prefix=no 17734 need_version=no 17735 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17736 soname_spec='$libname$release$shared_ext$major' 17737 shlibpath_var=LD_LIBRARY_PATH 17738 shlibpath_overrides_runpath=no 17739 hardcode_into_libs=yes 17740 dynamic_linker='ldqnx.so' 17741 ;; 17742 17743openbsd* | bitrig*) 17744 version_type=sunos 17745 sys_lib_dlsearch_path_spec=/usr/lib 17746 need_lib_prefix=no 17747 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 17748 need_version=no 17749 else 17750 need_version=yes 17751 fi 17752 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17753 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17754 shlibpath_var=LD_LIBRARY_PATH 17755 shlibpath_overrides_runpath=yes 17756 ;; 17757 17758os2*) 17759 libname_spec='$name' 17760 version_type=windows 17761 shrext_cmds=.dll 17762 need_version=no 17763 need_lib_prefix=no 17764 # OS/2 can only load a DLL with a base name of 8 characters or less. 17765 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 17766 v=$($ECHO $release$versuffix | tr -d .-); 17767 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 17768 $ECHO $n$v`$shared_ext' 17769 library_names_spec='${libname}_dll.$libext' 17770 dynamic_linker='OS/2 ld.exe' 17771 shlibpath_var=BEGINLIBPATH 17772 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17773 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17774 postinstall_cmds='base_file=`basename \$file`~ 17775 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 17776 dldir=$destdir/`dirname \$dlpath`~ 17777 test -d \$dldir || mkdir -p \$dldir~ 17778 $install_prog $dir/$dlname \$dldir/$dlname~ 17779 chmod a+x \$dldir/$dlname~ 17780 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17781 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17782 fi' 17783 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 17784 dlpath=$dir/\$dldll~ 17785 $RM \$dlpath' 17786 ;; 17787 17788osf3* | osf4* | osf5*) 17789 version_type=osf 17790 need_lib_prefix=no 17791 need_version=no 17792 soname_spec='$libname$release$shared_ext$major' 17793 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17794 shlibpath_var=LD_LIBRARY_PATH 17795 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17796 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17797 ;; 17798 17799rdos*) 17800 dynamic_linker=no 17801 ;; 17802 17803solaris*) 17804 version_type=linux # correct to gnu/linux during the next big refactor 17805 need_lib_prefix=no 17806 need_version=no 17807 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17808 soname_spec='$libname$release$shared_ext$major' 17809 shlibpath_var=LD_LIBRARY_PATH 17810 shlibpath_overrides_runpath=yes 17811 hardcode_into_libs=yes 17812 # ldd complains unless libraries are executable 17813 postinstall_cmds='chmod +x $lib' 17814 ;; 17815 17816sunos4*) 17817 version_type=sunos 17818 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17819 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17820 shlibpath_var=LD_LIBRARY_PATH 17821 shlibpath_overrides_runpath=yes 17822 if test yes = "$with_gnu_ld"; then 17823 need_lib_prefix=no 17824 fi 17825 need_version=yes 17826 ;; 17827 17828sysv4 | sysv4.3*) 17829 version_type=linux # correct to gnu/linux during the next big refactor 17830 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17831 soname_spec='$libname$release$shared_ext$major' 17832 shlibpath_var=LD_LIBRARY_PATH 17833 case $host_vendor in 17834 sni) 17835 shlibpath_overrides_runpath=no 17836 need_lib_prefix=no 17837 runpath_var=LD_RUN_PATH 17838 ;; 17839 siemens) 17840 need_lib_prefix=no 17841 ;; 17842 motorola) 17843 need_lib_prefix=no 17844 need_version=no 17845 shlibpath_overrides_runpath=no 17846 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17847 ;; 17848 esac 17849 ;; 17850 17851sysv4*MP*) 17852 if test -d /usr/nec; then 17853 version_type=linux # correct to gnu/linux during the next big refactor 17854 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 17855 soname_spec='$libname$shared_ext.$major' 17856 shlibpath_var=LD_LIBRARY_PATH 17857 fi 17858 ;; 17859 17860sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 17861 version_type=sco 17862 need_lib_prefix=no 17863 need_version=no 17864 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 17865 soname_spec='$libname$release$shared_ext$major' 17866 shlibpath_var=LD_LIBRARY_PATH 17867 shlibpath_overrides_runpath=yes 17868 hardcode_into_libs=yes 17869 if test yes = "$with_gnu_ld"; then 17870 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 17871 else 17872 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 17873 case $host_os in 17874 sco3.2v5*) 17875 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 17876 ;; 17877 esac 17878 fi 17879 sys_lib_dlsearch_path_spec='/usr/lib' 17880 ;; 17881 17882tpf*) 17883 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 17884 version_type=linux # correct to gnu/linux during the next big refactor 17885 need_lib_prefix=no 17886 need_version=no 17887 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17888 shlibpath_var=LD_LIBRARY_PATH 17889 shlibpath_overrides_runpath=no 17890 hardcode_into_libs=yes 17891 ;; 17892 17893uts4*) 17894 version_type=linux # correct to gnu/linux during the next big refactor 17895 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17896 soname_spec='$libname$release$shared_ext$major' 17897 shlibpath_var=LD_LIBRARY_PATH 17898 ;; 17899 17900*) 17901 dynamic_linker=no 17902 ;; 17903esac 17904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 17905$as_echo "$dynamic_linker" >&6; } 17906test no = "$dynamic_linker" && can_build_shared=no 17907 17908variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17909if test yes = "$GCC"; then 17910 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17911fi 17912 17913if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 17914 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 17915fi 17916 17917if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 17918 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 17919fi 17920 17921# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 17922configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 17923 17924# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 17925func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 17926 17927# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 17928configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 17929 17930 17931 17932 17933 17934 17935 17936 17937 17938 17939 17940 17941 17942 17943 17944 17945 17946 17947 17948 17949 17950 17951 17952 17953 17954 17955 17956 17957 17958 17959 17960 17961 17962 17963 17964 17965 17966 17967 17968 17969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 17970$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 17971hardcode_action_F77= 17972if test -n "$hardcode_libdir_flag_spec_F77" || 17973 test -n "$runpath_var_F77" || 17974 test yes = "$hardcode_automatic_F77"; then 17975 17976 # We can hardcode non-existent directories. 17977 if test no != "$hardcode_direct_F77" && 17978 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17979 # have to relink, otherwise we might link with an installed library 17980 # when we should be linking with a yet-to-be-installed one 17981 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, F77)" && 17982 test no != "$hardcode_minus_L_F77"; then 17983 # Linking always hardcodes the temporary library directory. 17984 hardcode_action_F77=relink 17985 else 17986 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17987 hardcode_action_F77=immediate 17988 fi 17989else 17990 # We cannot hardcode anything, or else we can only hardcode existing 17991 # directories. 17992 hardcode_action_F77=unsupported 17993fi 17994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5 17995$as_echo "$hardcode_action_F77" >&6; } 17996 17997if test relink = "$hardcode_action_F77" || 17998 test yes = "$inherit_rpath_F77"; then 17999 # Fast installation is not supported 18000 enable_fast_install=no 18001elif test yes = "$shlibpath_overrides_runpath" || 18002 test no = "$enable_shared"; then 18003 # Fast installation is not necessary 18004 enable_fast_install=needless 18005fi 18006 18007 18008 18009 18010 18011 18012 18013 fi # test -n "$compiler" 18014 18015 GCC=$lt_save_GCC 18016 CC=$lt_save_CC 18017 CFLAGS=$lt_save_CFLAGS 18018fi # test yes != "$_lt_disable_F77" 18019 18020ac_ext=c 18021ac_cpp='$CPP $CPPFLAGS' 18022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18024ac_compiler_gnu=$ac_cv_c_compiler_gnu 18025 18026 18027 18028 ac_ext=${ac_fc_srcext-f} 18029ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 18030ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 18031ac_compiler_gnu=$ac_cv_fc_compiler_gnu 18032 18033 18034if test -z "$FC" || test no = "$FC"; then 18035 _lt_disable_FC=yes 18036fi 18037 18038archive_cmds_need_lc_FC=no 18039allow_undefined_flag_FC= 18040always_export_symbols_FC=no 18041archive_expsym_cmds_FC= 18042export_dynamic_flag_spec_FC= 18043hardcode_direct_FC=no 18044hardcode_direct_absolute_FC=no 18045hardcode_libdir_flag_spec_FC= 18046hardcode_libdir_separator_FC= 18047hardcode_minus_L_FC=no 18048hardcode_automatic_FC=no 18049inherit_rpath_FC=no 18050module_cmds_FC= 18051module_expsym_cmds_FC= 18052link_all_deplibs_FC=unknown 18053old_archive_cmds_FC=$old_archive_cmds 18054reload_flag_FC=$reload_flag 18055reload_cmds_FC=$reload_cmds 18056no_undefined_flag_FC= 18057whole_archive_flag_spec_FC= 18058enable_shared_with_static_runtimes_FC=no 18059 18060# Source file extension for fc test sources. 18061ac_ext=${ac_fc_srcext-f} 18062 18063# Object file extension for compiled fc test sources. 18064objext=o 18065objext_FC=$objext 18066 18067# No sense in running all these tests if we already determined that 18068# the FC compiler isn't working. Some variables (like enable_shared) 18069# are currently assumed to apply to all compilers on this platform, 18070# and will be corrupted by setting them based on a non-working compiler. 18071if test yes != "$_lt_disable_FC"; then 18072 # Code to be used in simple compile tests 18073 lt_simple_compile_test_code="\ 18074 subroutine t 18075 return 18076 end 18077" 18078 18079 # Code to be used in simple link tests 18080 lt_simple_link_test_code="\ 18081 program t 18082 end 18083" 18084 18085 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 18086 18087 18088 18089 18090 18091 18092# If no C compiler was specified, use CC. 18093LTCC=${LTCC-"$CC"} 18094 18095# If no C compiler flags were specified, use CFLAGS. 18096LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 18097 18098# Allow CC to be a program name with arguments. 18099compiler=$CC 18100 18101 18102 # save warnings/boilerplate of simple test code 18103 ac_outfile=conftest.$ac_objext 18104echo "$lt_simple_compile_test_code" >conftest.$ac_ext 18105eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18106_lt_compiler_boilerplate=`cat conftest.err` 18107$RM conftest* 18108 18109 ac_outfile=conftest.$ac_objext 18110echo "$lt_simple_link_test_code" >conftest.$ac_ext 18111eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18112_lt_linker_boilerplate=`cat conftest.err` 18113$RM -r conftest* 18114 18115 18116 # Allow CC to be a program name with arguments. 18117 lt_save_CC=$CC 18118 lt_save_GCC=$GCC 18119 lt_save_CFLAGS=$CFLAGS 18120 CC=${FC-"f95"} 18121 CFLAGS=$FCFLAGS 18122 compiler=$CC 18123 GCC=$ac_cv_fc_compiler_gnu 18124 18125 compiler_FC=$CC 18126 func_cc_basename $compiler 18127cc_basename=$func_cc_basename_result 18128 18129 18130 if test -n "$compiler"; then 18131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 18132$as_echo_n "checking if libtool supports shared libraries... " >&6; } 18133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 18134$as_echo "$can_build_shared" >&6; } 18135 18136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 18137$as_echo_n "checking whether to build shared libraries... " >&6; } 18138 test no = "$can_build_shared" && enable_shared=no 18139 18140 # On AIX, shared libraries and static libraries use the same namespace, and 18141 # are all built from PIC. 18142 case $host_os in 18143 aix3*) 18144 test yes = "$enable_shared" && enable_static=no 18145 if test -n "$RANLIB"; then 18146 archive_cmds="$archive_cmds~\$RANLIB \$lib" 18147 postinstall_cmds='$RANLIB $lib' 18148 fi 18149 ;; 18150 aix[4-9]*) 18151 if test ia64 != "$host_cpu"; then 18152 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 18153 yes,aix,yes) ;; # shared object as lib.so file only 18154 yes,svr4,*) ;; # shared object as lib.so archive member only 18155 yes,*) enable_static=no ;; # shared object in lib.a archive as well 18156 esac 18157 fi 18158 ;; 18159 esac 18160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 18161$as_echo "$enable_shared" >&6; } 18162 18163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 18164$as_echo_n "checking whether to build static libraries... " >&6; } 18165 # Make sure either enable_shared or enable_static is yes. 18166 test yes = "$enable_shared" || enable_static=yes 18167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 18168$as_echo "$enable_static" >&6; } 18169 18170 GCC_FC=$ac_cv_fc_compiler_gnu 18171 LD_FC=$LD 18172 18173 ## CAVEAT EMPTOR: 18174 ## There is no encapsulation within the following macros, do not change 18175 ## the running order or otherwise move them around unless you know exactly 18176 ## what you are doing... 18177 # Dependencies to place before and after the object being linked: 18178predep_objects_FC= 18179postdep_objects_FC= 18180predeps_FC= 18181postdeps_FC= 18182compiler_lib_search_path_FC= 18183 18184cat > conftest.$ac_ext <<_LT_EOF 18185 subroutine foo 18186 implicit none 18187 integer a 18188 a=0 18189 return 18190 end 18191_LT_EOF 18192 18193 18194_lt_libdeps_save_CFLAGS=$CFLAGS 18195case "$CC $CFLAGS " in #( 18196*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 18197*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 18198*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 18199esac 18200 18201if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 18202 (eval $ac_compile) 2>&5 18203 ac_status=$? 18204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18205 test $ac_status = 0; }; then 18206 # Parse the compiler output and extract the necessary 18207 # objects, libraries and library flags. 18208 18209 # Sentinel used to keep track of whether or not we are before 18210 # the conftest object file. 18211 pre_test_object_deps_done=no 18212 18213 for p in `eval "$output_verbose_link_cmd"`; do 18214 case $prev$p in 18215 18216 -L* | -R* | -l*) 18217 # Some compilers place space between "-{L,R}" and the path. 18218 # Remove the space. 18219 if test x-L = "$p" || 18220 test x-R = "$p"; then 18221 prev=$p 18222 continue 18223 fi 18224 18225 # Expand the sysroot to ease extracting the directories later. 18226 if test -z "$prev"; then 18227 case $p in 18228 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 18229 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 18230 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 18231 esac 18232 fi 18233 case $p in 18234 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 18235 esac 18236 if test no = "$pre_test_object_deps_done"; then 18237 case $prev in 18238 -L | -R) 18239 # Internal compiler library paths should come after those 18240 # provided the user. The postdeps already come after the 18241 # user supplied libs so there is no need to process them. 18242 if test -z "$compiler_lib_search_path_FC"; then 18243 compiler_lib_search_path_FC=$prev$p 18244 else 18245 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} $prev$p" 18246 fi 18247 ;; 18248 # The "-l" case would never come before the object being 18249 # linked, so don't bother handling this case. 18250 esac 18251 else 18252 if test -z "$postdeps_FC"; then 18253 postdeps_FC=$prev$p 18254 else 18255 postdeps_FC="${postdeps_FC} $prev$p" 18256 fi 18257 fi 18258 prev= 18259 ;; 18260 18261 *.lto.$objext) ;; # Ignore GCC LTO objects 18262 *.$objext) 18263 # This assumes that the test object file only shows up 18264 # once in the compiler output. 18265 if test "$p" = "conftest.$objext"; then 18266 pre_test_object_deps_done=yes 18267 continue 18268 fi 18269 18270 if test no = "$pre_test_object_deps_done"; then 18271 if test -z "$predep_objects_FC"; then 18272 predep_objects_FC=$p 18273 else 18274 predep_objects_FC="$predep_objects_FC $p" 18275 fi 18276 else 18277 if test -z "$postdep_objects_FC"; then 18278 postdep_objects_FC=$p 18279 else 18280 postdep_objects_FC="$postdep_objects_FC $p" 18281 fi 18282 fi 18283 ;; 18284 18285 *) ;; # Ignore the rest. 18286 18287 esac 18288 done 18289 18290 # Clean up. 18291 rm -f a.out a.exe 18292else 18293 echo "libtool.m4: error: problem compiling FC test program" 18294fi 18295 18296$RM -f confest.$objext 18297CFLAGS=$_lt_libdeps_save_CFLAGS 18298 18299# PORTME: override above test on systems where it is broken 18300 18301 18302case " $postdeps_FC " in 18303*" -lc "*) archive_cmds_need_lc_FC=no ;; 18304esac 18305 compiler_lib_search_dirs_FC= 18306if test -n "${compiler_lib_search_path_FC}"; then 18307 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | $SED -e 's! -L! !g' -e 's!^ !!'` 18308fi 18309 18310 18311 18312 18313 18314 18315 18316 18317 18318 18319 18320 18321 18322 18323 18324 18325 18326 18327 18328 18329 18330 18331 18332 18333 18334 18335 18336 18337 18338 18339 18340 lt_prog_compiler_wl_FC= 18341lt_prog_compiler_pic_FC= 18342lt_prog_compiler_static_FC= 18343 18344 18345 if test yes = "$GCC"; then 18346 lt_prog_compiler_wl_FC='-Wl,' 18347 lt_prog_compiler_static_FC='-static' 18348 18349 case $host_os in 18350 aix*) 18351 # All AIX code is PIC. 18352 if test ia64 = "$host_cpu"; then 18353 # AIX 5 now supports IA64 processor 18354 lt_prog_compiler_static_FC='-Bstatic' 18355 fi 18356 lt_prog_compiler_pic_FC='-fPIC' 18357 ;; 18358 18359 amigaos*) 18360 case $host_cpu in 18361 powerpc) 18362 # see comment about AmigaOS4 .so support 18363 lt_prog_compiler_pic_FC='-fPIC' 18364 ;; 18365 m68k) 18366 # FIXME: we need at least 68020 code to build shared libraries, but 18367 # adding the '-m68020' flag to GCC prevents building anything better, 18368 # like '-m68040'. 18369 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4' 18370 ;; 18371 esac 18372 ;; 18373 18374 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 18375 # PIC is the default for these OSes. 18376 ;; 18377 18378 mingw* | cygwin* | pw32* | os2* | cegcc*) 18379 # This hack is so that the source file can tell whether it is being 18380 # built for inclusion in a dll (and should export symbols for example). 18381 # Although the cygwin gcc ignores -fPIC, still need this for old-style 18382 # (--disable-auto-import) libraries 18383 lt_prog_compiler_pic_FC='-DDLL_EXPORT' 18384 case $host_os in 18385 os2*) 18386 lt_prog_compiler_static_FC='$wl-static' 18387 ;; 18388 esac 18389 ;; 18390 18391 darwin* | rhapsody*) 18392 # PIC is the default on this platform 18393 # Common symbols not allowed in MH_DYLIB files 18394 lt_prog_compiler_pic_FC='-fno-common' 18395 ;; 18396 18397 haiku*) 18398 # PIC is the default for Haiku. 18399 # The "-static" flag exists, but is broken. 18400 lt_prog_compiler_static_FC= 18401 ;; 18402 18403 hpux*) 18404 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 18405 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 18406 # sets the default TLS model and affects inlining. 18407 case $host_cpu in 18408 hppa*64*) 18409 # +Z the default 18410 ;; 18411 *) 18412 lt_prog_compiler_pic_FC='-fPIC' 18413 ;; 18414 esac 18415 ;; 18416 18417 interix[3-9]*) 18418 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 18419 # Instead, we relocate shared libraries at runtime. 18420 ;; 18421 18422 msdosdjgpp*) 18423 # Just because we use GCC doesn't mean we suddenly get shared libraries 18424 # on systems that don't support them. 18425 lt_prog_compiler_can_build_shared_FC=no 18426 enable_shared=no 18427 ;; 18428 18429 *nto* | *qnx*) 18430 # QNX uses GNU C++, but need to define -shared option too, otherwise 18431 # it will coredump. 18432 lt_prog_compiler_pic_FC='-fPIC -shared' 18433 ;; 18434 18435 sysv4*MP*) 18436 if test -d /usr/nec; then 18437 lt_prog_compiler_pic_FC=-Kconform_pic 18438 fi 18439 ;; 18440 18441 *) 18442 lt_prog_compiler_pic_FC='-fPIC' 18443 ;; 18444 esac 18445 18446 case $cc_basename in 18447 nvcc*) # Cuda Compiler Driver 2.2 18448 lt_prog_compiler_wl_FC='-Xlinker ' 18449 if test -n "$lt_prog_compiler_pic_FC"; then 18450 lt_prog_compiler_pic_FC="-Xcompiler $lt_prog_compiler_pic_FC" 18451 fi 18452 ;; 18453 esac 18454 else 18455 # PORTME Check for flag to pass linker flags through the system compiler. 18456 case $host_os in 18457 aix*) 18458 lt_prog_compiler_wl_FC='-Wl,' 18459 if test ia64 = "$host_cpu"; then 18460 # AIX 5 now supports IA64 processor 18461 lt_prog_compiler_static_FC='-Bstatic' 18462 else 18463 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp' 18464 fi 18465 ;; 18466 18467 darwin* | rhapsody*) 18468 # PIC is the default on this platform 18469 # Common symbols not allowed in MH_DYLIB files 18470 lt_prog_compiler_pic_FC='-fno-common' 18471 case $cc_basename in 18472 nagfor*) 18473 # NAG Fortran compiler 18474 lt_prog_compiler_wl_FC='-Wl,-Wl,,' 18475 lt_prog_compiler_pic_FC='-PIC' 18476 lt_prog_compiler_static_FC='-Bstatic' 18477 ;; 18478 esac 18479 ;; 18480 18481 mingw* | cygwin* | pw32* | os2* | cegcc*) 18482 # This hack is so that the source file can tell whether it is being 18483 # built for inclusion in a dll (and should export symbols for example). 18484 lt_prog_compiler_pic_FC='-DDLL_EXPORT' 18485 case $host_os in 18486 os2*) 18487 lt_prog_compiler_static_FC='$wl-static' 18488 ;; 18489 esac 18490 ;; 18491 18492 hpux9* | hpux10* | hpux11*) 18493 lt_prog_compiler_wl_FC='-Wl,' 18494 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 18495 # not for PA HP-UX. 18496 case $host_cpu in 18497 hppa*64*|ia64*) 18498 # +Z the default 18499 ;; 18500 *) 18501 lt_prog_compiler_pic_FC='+Z' 18502 ;; 18503 esac 18504 # Is there a better lt_prog_compiler_static that works with the bundled CC? 18505 lt_prog_compiler_static_FC='$wl-a ${wl}archive' 18506 ;; 18507 18508 irix5* | irix6* | nonstopux*) 18509 lt_prog_compiler_wl_FC='-Wl,' 18510 # PIC (with -KPIC) is the default. 18511 lt_prog_compiler_static_FC='-non_shared' 18512 ;; 18513 18514 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 18515 case $cc_basename in 18516 # old Intel for x86_64, which still supported -KPIC. 18517 ecc*) 18518 lt_prog_compiler_wl_FC='-Wl,' 18519 lt_prog_compiler_pic_FC='-KPIC' 18520 lt_prog_compiler_static_FC='-static' 18521 ;; 18522 # icc used to be incompatible with GCC. 18523 # ICC 10 doesn't accept -KPIC any more. 18524 icc* | ifort*) 18525 lt_prog_compiler_wl_FC='-Wl,' 18526 lt_prog_compiler_pic_FC='-fPIC' 18527 lt_prog_compiler_static_FC='-static' 18528 ;; 18529 # Lahey Fortran 8.1. 18530 lf95*) 18531 lt_prog_compiler_wl_FC='-Wl,' 18532 lt_prog_compiler_pic_FC='--shared' 18533 lt_prog_compiler_static_FC='--static' 18534 ;; 18535 nagfor*) 18536 # NAG Fortran compiler 18537 lt_prog_compiler_wl_FC='-Wl,-Wl,,' 18538 lt_prog_compiler_pic_FC='-PIC' 18539 lt_prog_compiler_static_FC='-Bstatic' 18540 ;; 18541 tcc*) 18542 # Fabrice Bellard et al's Tiny C Compiler 18543 lt_prog_compiler_wl_FC='-Wl,' 18544 lt_prog_compiler_pic_FC='-fPIC' 18545 lt_prog_compiler_static_FC='-static' 18546 ;; 18547 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 18548 # Portland Group compilers (*not* the Pentium gcc compiler, 18549 # which looks to be a dead project) 18550 lt_prog_compiler_wl_FC='-Wl,' 18551 lt_prog_compiler_pic_FC='-fpic' 18552 lt_prog_compiler_static_FC='-Bstatic' 18553 ;; 18554 ccc*) 18555 lt_prog_compiler_wl_FC='-Wl,' 18556 # All Alpha code is PIC. 18557 lt_prog_compiler_static_FC='-non_shared' 18558 ;; 18559 xl* | bgxl* | bgf* | mpixl*) 18560 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 18561 lt_prog_compiler_wl_FC='-Wl,' 18562 lt_prog_compiler_pic_FC='-qpic' 18563 lt_prog_compiler_static_FC='-qstaticlink' 18564 ;; 18565 *) 18566 case `$CC -V 2>&1 | sed 5q` in 18567 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 18568 # Sun Fortran 8.3 passes all unrecognized flags to the linker 18569 lt_prog_compiler_pic_FC='-KPIC' 18570 lt_prog_compiler_static_FC='-Bstatic' 18571 lt_prog_compiler_wl_FC='' 18572 ;; 18573 *Sun\ F* | *Sun*Fortran*) 18574 lt_prog_compiler_pic_FC='-KPIC' 18575 lt_prog_compiler_static_FC='-Bstatic' 18576 lt_prog_compiler_wl_FC='-Qoption ld ' 18577 ;; 18578 *Sun\ C*) 18579 # Sun C 5.9 18580 lt_prog_compiler_pic_FC='-KPIC' 18581 lt_prog_compiler_static_FC='-Bstatic' 18582 lt_prog_compiler_wl_FC='-Wl,' 18583 ;; 18584 *Intel*\ [CF]*Compiler*) 18585 lt_prog_compiler_wl_FC='-Wl,' 18586 lt_prog_compiler_pic_FC='-fPIC' 18587 lt_prog_compiler_static_FC='-static' 18588 ;; 18589 *Portland\ Group*) 18590 lt_prog_compiler_wl_FC='-Wl,' 18591 lt_prog_compiler_pic_FC='-fpic' 18592 lt_prog_compiler_static_FC='-Bstatic' 18593 ;; 18594 esac 18595 ;; 18596 esac 18597 ;; 18598 18599 newsos6) 18600 lt_prog_compiler_pic_FC='-KPIC' 18601 lt_prog_compiler_static_FC='-Bstatic' 18602 ;; 18603 18604 *nto* | *qnx*) 18605 # QNX uses GNU C++, but need to define -shared option too, otherwise 18606 # it will coredump. 18607 lt_prog_compiler_pic_FC='-fPIC -shared' 18608 ;; 18609 18610 osf3* | osf4* | osf5*) 18611 lt_prog_compiler_wl_FC='-Wl,' 18612 # All OSF/1 code is PIC. 18613 lt_prog_compiler_static_FC='-non_shared' 18614 ;; 18615 18616 rdos*) 18617 lt_prog_compiler_static_FC='-non_shared' 18618 ;; 18619 18620 solaris*) 18621 lt_prog_compiler_pic_FC='-KPIC' 18622 lt_prog_compiler_static_FC='-Bstatic' 18623 case $cc_basename in 18624 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 18625 lt_prog_compiler_wl_FC='-Qoption ld ';; 18626 *) 18627 lt_prog_compiler_wl_FC='-Wl,';; 18628 esac 18629 ;; 18630 18631 sunos4*) 18632 lt_prog_compiler_wl_FC='-Qoption ld ' 18633 lt_prog_compiler_pic_FC='-PIC' 18634 lt_prog_compiler_static_FC='-Bstatic' 18635 ;; 18636 18637 sysv4 | sysv4.2uw2* | sysv4.3*) 18638 lt_prog_compiler_wl_FC='-Wl,' 18639 lt_prog_compiler_pic_FC='-KPIC' 18640 lt_prog_compiler_static_FC='-Bstatic' 18641 ;; 18642 18643 sysv4*MP*) 18644 if test -d /usr/nec; then 18645 lt_prog_compiler_pic_FC='-Kconform_pic' 18646 lt_prog_compiler_static_FC='-Bstatic' 18647 fi 18648 ;; 18649 18650 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 18651 lt_prog_compiler_wl_FC='-Wl,' 18652 lt_prog_compiler_pic_FC='-KPIC' 18653 lt_prog_compiler_static_FC='-Bstatic' 18654 ;; 18655 18656 unicos*) 18657 lt_prog_compiler_wl_FC='-Wl,' 18658 lt_prog_compiler_can_build_shared_FC=no 18659 ;; 18660 18661 uts4*) 18662 lt_prog_compiler_pic_FC='-pic' 18663 lt_prog_compiler_static_FC='-Bstatic' 18664 ;; 18665 18666 *) 18667 lt_prog_compiler_can_build_shared_FC=no 18668 ;; 18669 esac 18670 fi 18671 18672case $host_os in 18673 # For platforms that do not support PIC, -DPIC is meaningless: 18674 *djgpp*) 18675 lt_prog_compiler_pic_FC= 18676 ;; 18677 *) 18678 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC" 18679 ;; 18680esac 18681 18682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 18683$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 18684if ${lt_cv_prog_compiler_pic_FC+:} false; then : 18685 $as_echo_n "(cached) " >&6 18686else 18687 lt_cv_prog_compiler_pic_FC=$lt_prog_compiler_pic_FC 18688fi 18689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_FC" >&5 18690$as_echo "$lt_cv_prog_compiler_pic_FC" >&6; } 18691lt_prog_compiler_pic_FC=$lt_cv_prog_compiler_pic_FC 18692 18693# 18694# Check to make sure the PIC flag actually works. 18695# 18696if test -n "$lt_prog_compiler_pic_FC"; then 18697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5 18698$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; } 18699if ${lt_cv_prog_compiler_pic_works_FC+:} false; then : 18700 $as_echo_n "(cached) " >&6 18701else 18702 lt_cv_prog_compiler_pic_works_FC=no 18703 ac_outfile=conftest.$ac_objext 18704 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18705 lt_compiler_flag="$lt_prog_compiler_pic_FC" ## exclude from sc_useless_quotes_in_assignment 18706 # Insert the option either (1) after the last *FLAGS variable, or 18707 # (2) before a word containing "conftest.", or (3) at the end. 18708 # Note that $ac_compile itself does not contain backslashes and begins 18709 # with a dollar sign (not a hyphen), so the echo should work correctly. 18710 # The option is referenced via a variable to avoid confusing sed. 18711 lt_compile=`echo "$ac_compile" | $SED \ 18712 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 18713 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 18714 -e 's:$: $lt_compiler_flag:'` 18715 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 18716 (eval "$lt_compile" 2>conftest.err) 18717 ac_status=$? 18718 cat conftest.err >&5 18719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18720 if (exit $ac_status) && test -s "$ac_outfile"; then 18721 # The compiler can only warn and ignore the option if not recognized 18722 # So say no if there are warnings other than the usual output. 18723 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 18724 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 18725 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 18726 lt_cv_prog_compiler_pic_works_FC=yes 18727 fi 18728 fi 18729 $RM conftest* 18730 18731fi 18732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5 18733$as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; } 18734 18735if test yes = "$lt_cv_prog_compiler_pic_works_FC"; then 18736 case $lt_prog_compiler_pic_FC in 18737 "" | " "*) ;; 18738 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;; 18739 esac 18740else 18741 lt_prog_compiler_pic_FC= 18742 lt_prog_compiler_can_build_shared_FC=no 18743fi 18744 18745fi 18746 18747 18748 18749 18750 18751# 18752# Check to make sure the static flag actually works. 18753# 18754wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\" 18755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 18756$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 18757if ${lt_cv_prog_compiler_static_works_FC+:} false; then : 18758 $as_echo_n "(cached) " >&6 18759else 18760 lt_cv_prog_compiler_static_works_FC=no 18761 save_LDFLAGS=$LDFLAGS 18762 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 18763 echo "$lt_simple_link_test_code" > conftest.$ac_ext 18764 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 18765 # The linker can only warn and ignore the option if not recognized 18766 # So say no if there are warnings 18767 if test -s conftest.err; then 18768 # Append any errors to the config.log. 18769 cat conftest.err 1>&5 18770 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 18771 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 18772 if diff conftest.exp conftest.er2 >/dev/null; then 18773 lt_cv_prog_compiler_static_works_FC=yes 18774 fi 18775 else 18776 lt_cv_prog_compiler_static_works_FC=yes 18777 fi 18778 fi 18779 $RM -r conftest* 18780 LDFLAGS=$save_LDFLAGS 18781 18782fi 18783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5 18784$as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; } 18785 18786if test yes = "$lt_cv_prog_compiler_static_works_FC"; then 18787 : 18788else 18789 lt_prog_compiler_static_FC= 18790fi 18791 18792 18793 18794 18795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 18796$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 18797if ${lt_cv_prog_compiler_c_o_FC+:} false; then : 18798 $as_echo_n "(cached) " >&6 18799else 18800 lt_cv_prog_compiler_c_o_FC=no 18801 $RM -r conftest 2>/dev/null 18802 mkdir conftest 18803 cd conftest 18804 mkdir out 18805 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18806 18807 lt_compiler_flag="-o out/conftest2.$ac_objext" 18808 # Insert the option either (1) after the last *FLAGS variable, or 18809 # (2) before a word containing "conftest.", or (3) at the end. 18810 # Note that $ac_compile itself does not contain backslashes and begins 18811 # with a dollar sign (not a hyphen), so the echo should work correctly. 18812 lt_compile=`echo "$ac_compile" | $SED \ 18813 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 18814 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 18815 -e 's:$: $lt_compiler_flag:'` 18816 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 18817 (eval "$lt_compile" 2>out/conftest.err) 18818 ac_status=$? 18819 cat out/conftest.err >&5 18820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18821 if (exit $ac_status) && test -s out/conftest2.$ac_objext 18822 then 18823 # The compiler can only warn and ignore the option if not recognized 18824 # So say no if there are warnings 18825 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 18826 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 18827 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 18828 lt_cv_prog_compiler_c_o_FC=yes 18829 fi 18830 fi 18831 chmod u+w . 2>&5 18832 $RM conftest* 18833 # SGI C++ compiler will create directory out/ii_files/ for 18834 # template instantiation 18835 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 18836 $RM out/* && rmdir out 18837 cd .. 18838 $RM -r conftest 18839 $RM conftest* 18840 18841fi 18842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5 18843$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; } 18844 18845 18846 18847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 18848$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 18849if ${lt_cv_prog_compiler_c_o_FC+:} false; then : 18850 $as_echo_n "(cached) " >&6 18851else 18852 lt_cv_prog_compiler_c_o_FC=no 18853 $RM -r conftest 2>/dev/null 18854 mkdir conftest 18855 cd conftest 18856 mkdir out 18857 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18858 18859 lt_compiler_flag="-o out/conftest2.$ac_objext" 18860 # Insert the option either (1) after the last *FLAGS variable, or 18861 # (2) before a word containing "conftest.", or (3) at the end. 18862 # Note that $ac_compile itself does not contain backslashes and begins 18863 # with a dollar sign (not a hyphen), so the echo should work correctly. 18864 lt_compile=`echo "$ac_compile" | $SED \ 18865 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 18866 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 18867 -e 's:$: $lt_compiler_flag:'` 18868 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 18869 (eval "$lt_compile" 2>out/conftest.err) 18870 ac_status=$? 18871 cat out/conftest.err >&5 18872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18873 if (exit $ac_status) && test -s out/conftest2.$ac_objext 18874 then 18875 # The compiler can only warn and ignore the option if not recognized 18876 # So say no if there are warnings 18877 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 18878 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 18879 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 18880 lt_cv_prog_compiler_c_o_FC=yes 18881 fi 18882 fi 18883 chmod u+w . 2>&5 18884 $RM conftest* 18885 # SGI C++ compiler will create directory out/ii_files/ for 18886 # template instantiation 18887 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 18888 $RM out/* && rmdir out 18889 cd .. 18890 $RM -r conftest 18891 $RM conftest* 18892 18893fi 18894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5 18895$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; } 18896 18897 18898 18899 18900hard_links=nottested 18901if test no = "$lt_cv_prog_compiler_c_o_FC" && test no != "$need_locks"; then 18902 # do not overwrite the value of need_locks provided by the user 18903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 18904$as_echo_n "checking if we can lock with hard links... " >&6; } 18905 hard_links=yes 18906 $RM conftest* 18907 ln conftest.a conftest.b 2>/dev/null && hard_links=no 18908 touch conftest.a 18909 ln conftest.a conftest.b 2>&5 || hard_links=no 18910 ln conftest.a conftest.b 2>/dev/null && hard_links=no 18911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 18912$as_echo "$hard_links" >&6; } 18913 if test no = "$hard_links"; then 18914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 18915$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 18916 need_locks=warn 18917 fi 18918else 18919 need_locks=no 18920fi 18921 18922 18923 18924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 18925$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 18926 18927 runpath_var= 18928 allow_undefined_flag_FC= 18929 always_export_symbols_FC=no 18930 archive_cmds_FC= 18931 archive_expsym_cmds_FC= 18932 compiler_needs_object_FC=no 18933 enable_shared_with_static_runtimes_FC=no 18934 export_dynamic_flag_spec_FC= 18935 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 18936 hardcode_automatic_FC=no 18937 hardcode_direct_FC=no 18938 hardcode_direct_absolute_FC=no 18939 hardcode_libdir_flag_spec_FC= 18940 hardcode_libdir_separator_FC= 18941 hardcode_minus_L_FC=no 18942 hardcode_shlibpath_var_FC=unsupported 18943 inherit_rpath_FC=no 18944 link_all_deplibs_FC=unknown 18945 module_cmds_FC= 18946 module_expsym_cmds_FC= 18947 old_archive_from_new_cmds_FC= 18948 old_archive_from_expsyms_cmds_FC= 18949 thread_safe_flag_spec_FC= 18950 whole_archive_flag_spec_FC= 18951 # include_expsyms should be a list of space-separated symbols to be *always* 18952 # included in the symbol list 18953 include_expsyms_FC= 18954 # exclude_expsyms can be an extended regexp of symbols to exclude 18955 # it will be wrapped by ' (' and ')$', so one must not match beginning or 18956 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 18957 # as well as any symbol that contains 'd'. 18958 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 18959 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 18960 # platforms (ab)use it in PIC code, but their linkers get confused if 18961 # the symbol is explicitly referenced. Since portable code cannot 18962 # rely on this symbol name, it's probably fine to never include it in 18963 # preloaded symbol tables. 18964 # Exclude shared library initialization/finalization symbols. 18965 extract_expsyms_cmds= 18966 18967 case $host_os in 18968 cygwin* | mingw* | pw32* | cegcc*) 18969 # FIXME: the MSVC++ port hasn't been tested in a loooong time 18970 # When not using gcc, we currently assume that we are using 18971 # Microsoft Visual C++. 18972 if test yes != "$GCC"; then 18973 with_gnu_ld=no 18974 fi 18975 ;; 18976 interix*) 18977 # we just hope/assume this is gcc and not c89 (= MSVC++) 18978 with_gnu_ld=yes 18979 ;; 18980 openbsd* | bitrig*) 18981 with_gnu_ld=no 18982 ;; 18983 esac 18984 18985 ld_shlibs_FC=yes 18986 18987 # On some targets, GNU ld is compatible enough with the native linker 18988 # that we're better off using the native interface for both. 18989 lt_use_gnu_ld_interface=no 18990 if test yes = "$with_gnu_ld"; then 18991 case $host_os in 18992 aix*) 18993 # The AIX port of GNU ld has always aspired to compatibility 18994 # with the native linker. However, as the warning in the GNU ld 18995 # block says, versions before 2.19.5* couldn't really create working 18996 # shared libraries, regardless of the interface used. 18997 case `$LD -v 2>&1` in 18998 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 18999 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 19000 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 19001 *) 19002 lt_use_gnu_ld_interface=yes 19003 ;; 19004 esac 19005 ;; 19006 *) 19007 lt_use_gnu_ld_interface=yes 19008 ;; 19009 esac 19010 fi 19011 19012 if test yes = "$lt_use_gnu_ld_interface"; then 19013 # If archive_cmds runs LD, not CC, wlarc should be empty 19014 wlarc='$wl' 19015 19016 # Set some defaults for GNU ld with shared library support. These 19017 # are reset later if shared libraries are not supported. Putting them 19018 # here allows them to be overridden if necessary. 19019 runpath_var=LD_RUN_PATH 19020 hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir' 19021 export_dynamic_flag_spec_FC='$wl--export-dynamic' 19022 # ancient GNU ld didn't support --whole-archive et. al. 19023 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 19024 whole_archive_flag_spec_FC=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 19025 else 19026 whole_archive_flag_spec_FC= 19027 fi 19028 supports_anon_versioning=no 19029 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 19030 *GNU\ gold*) supports_anon_versioning=yes ;; 19031 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 19032 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 19033 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 19034 *\ 2.11.*) ;; # other 2.11 versions 19035 *) supports_anon_versioning=yes ;; 19036 esac 19037 19038 # See if GNU ld supports shared libraries. 19039 case $host_os in 19040 aix[3-9]*) 19041 # On AIX/PPC, the GNU linker is very broken 19042 if test ia64 != "$host_cpu"; then 19043 ld_shlibs_FC=no 19044 cat <<_LT_EOF 1>&2 19045 19046*** Warning: the GNU linker, at least up to release 2.19, is reported 19047*** to be unable to reliably create shared libraries on AIX. 19048*** Therefore, libtool is disabling shared libraries support. If you 19049*** really care for shared libraries, you may want to install binutils 19050*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 19051*** You will then need to restart the configuration process. 19052 19053_LT_EOF 19054 fi 19055 ;; 19056 19057 amigaos*) 19058 case $host_cpu in 19059 powerpc) 19060 # see comment about AmigaOS4 .so support 19061 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19062 archive_expsym_cmds_FC='' 19063 ;; 19064 m68k) 19065 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)' 19066 hardcode_libdir_flag_spec_FC='-L$libdir' 19067 hardcode_minus_L_FC=yes 19068 ;; 19069 esac 19070 ;; 19071 19072 beos*) 19073 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 19074 allow_undefined_flag_FC=unsupported 19075 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 19076 # support --undefined. This deserves some investigation. FIXME 19077 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19078 else 19079 ld_shlibs_FC=no 19080 fi 19081 ;; 19082 19083 cygwin* | mingw* | pw32* | cegcc*) 19084 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless, 19085 # as there is no search path for DLLs. 19086 hardcode_libdir_flag_spec_FC='-L$libdir' 19087 export_dynamic_flag_spec_FC='$wl--export-all-symbols' 19088 allow_undefined_flag_FC=unsupported 19089 always_export_symbols_FC=no 19090 enable_shared_with_static_runtimes_FC=yes 19091 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 19092 exclude_expsyms_FC='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 19093 19094 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 19095 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 19096 # If the export-symbols file already is a .def file, use it as 19097 # is; otherwise, prepend EXPORTS... 19098 archive_expsym_cmds_FC='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 19099 cp $export_symbols $output_objdir/$soname.def; 19100 else 19101 echo EXPORTS > $output_objdir/$soname.def; 19102 cat $export_symbols >> $output_objdir/$soname.def; 19103 fi~ 19104 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 19105 else 19106 ld_shlibs_FC=no 19107 fi 19108 ;; 19109 19110 haiku*) 19111 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19112 link_all_deplibs_FC=yes 19113 ;; 19114 19115 os2*) 19116 hardcode_libdir_flag_spec_FC='-L$libdir' 19117 hardcode_minus_L_FC=yes 19118 allow_undefined_flag_FC=unsupported 19119 shrext_cmds=.dll 19120 archive_cmds_FC='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 19121 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 19122 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 19123 $ECHO EXPORTS >> $output_objdir/$libname.def~ 19124 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 19125 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 19126 emximp -o $lib $output_objdir/$libname.def' 19127 archive_expsym_cmds_FC='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 19128 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 19129 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 19130 $ECHO EXPORTS >> $output_objdir/$libname.def~ 19131 prefix_cmds="$SED"~ 19132 if test EXPORTS = "`$SED 1q $export_symbols`"; then 19133 prefix_cmds="$prefix_cmds -e 1d"; 19134 fi~ 19135 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 19136 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 19137 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 19138 emximp -o $lib $output_objdir/$libname.def' 19139 old_archive_From_new_cmds_FC='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 19140 enable_shared_with_static_runtimes_FC=yes 19141 ;; 19142 19143 interix[3-9]*) 19144 hardcode_direct_FC=no 19145 hardcode_shlibpath_var_FC=no 19146 hardcode_libdir_flag_spec_FC='$wl-rpath,$libdir' 19147 export_dynamic_flag_spec_FC='$wl-E' 19148 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 19149 # Instead, shared libraries are loaded at an image base (0x10000000 by 19150 # default) and relocated if they conflict, which is a slow very memory 19151 # consuming and fragmenting process. To avoid this, we pick a random, 19152 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 19153 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 19154 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' 19155 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' 19156 ;; 19157 19158 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 19159 tmp_diet=no 19160 if test linux-dietlibc = "$host_os"; then 19161 case $cc_basename in 19162 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 19163 esac 19164 fi 19165 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 19166 && test no = "$tmp_diet" 19167 then 19168 tmp_addflag=' $pic_flag' 19169 tmp_sharedflag='-shared' 19170 case $cc_basename,$host_cpu in 19171 pgcc*) # Portland Group C compiler 19172 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' 19173 tmp_addflag=' $pic_flag' 19174 ;; 19175 pgf77* | pgf90* | pgf95* | pgfortran*) 19176 # Portland Group f77 and f90 compilers 19177 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' 19178 tmp_addflag=' $pic_flag -Mnomain' ;; 19179 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 19180 tmp_addflag=' -i_dynamic' ;; 19181 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 19182 tmp_addflag=' -i_dynamic -nofor_main' ;; 19183 ifc* | ifort*) # Intel Fortran compiler 19184 tmp_addflag=' -nofor_main' ;; 19185 lf95*) # Lahey Fortran 8.1 19186 whole_archive_flag_spec_FC= 19187 tmp_sharedflag='--shared' ;; 19188 nagfor*) # NAGFOR 5.3 19189 tmp_sharedflag='-Wl,-shared' ;; 19190 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 19191 tmp_sharedflag='-qmkshrobj' 19192 tmp_addflag= ;; 19193 nvcc*) # Cuda Compiler Driver 2.2 19194 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' 19195 compiler_needs_object_FC=yes 19196 ;; 19197 esac 19198 case `$CC -V 2>&1 | sed 5q` in 19199 *Sun\ C*) # Sun C 5.9 19200 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' 19201 compiler_needs_object_FC=yes 19202 tmp_sharedflag='-G' ;; 19203 *Sun\ F*) # Sun Fortran 8.3 19204 tmp_sharedflag='-G' ;; 19205 esac 19206 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19207 19208 if test yes = "$supports_anon_versioning"; then 19209 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~ 19210 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 19211 echo "local: *; };" >> $output_objdir/$libname.ver~ 19212 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 19213 fi 19214 19215 case $cc_basename in 19216 tcc*) 19217 export_dynamic_flag_spec_FC='-rdynamic' 19218 ;; 19219 xlf* | bgf* | bgxlf* | mpixlf*) 19220 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 19221 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive' 19222 hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir' 19223 archive_cmds_FC='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 19224 if test yes = "$supports_anon_versioning"; then 19225 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~ 19226 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 19227 echo "local: *; };" >> $output_objdir/$libname.ver~ 19228 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 19229 fi 19230 ;; 19231 esac 19232 else 19233 ld_shlibs_FC=no 19234 fi 19235 ;; 19236 19237 netbsd*) 19238 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 19239 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 19240 wlarc= 19241 else 19242 archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19243 archive_expsym_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 19244 fi 19245 ;; 19246 19247 solaris*) 19248 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 19249 ld_shlibs_FC=no 19250 cat <<_LT_EOF 1>&2 19251 19252*** Warning: The releases 2.8.* of the GNU linker cannot reliably 19253*** create shared libraries on Solaris systems. Therefore, libtool 19254*** is disabling shared libraries support. We urge you to upgrade GNU 19255*** binutils to release 2.9.1 or newer. Another option is to modify 19256*** your PATH or compiler configuration so that the native linker is 19257*** used, and then restart. 19258 19259_LT_EOF 19260 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 19261 archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19262 archive_expsym_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 19263 else 19264 ld_shlibs_FC=no 19265 fi 19266 ;; 19267 19268 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 19269 case `$LD -v 2>&1` in 19270 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 19271 ld_shlibs_FC=no 19272 cat <<_LT_EOF 1>&2 19273 19274*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 19275*** reliably create shared libraries on SCO systems. Therefore, libtool 19276*** is disabling shared libraries support. We urge you to upgrade GNU 19277*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 19278*** your PATH or compiler configuration so that the native linker is 19279*** used, and then restart. 19280 19281_LT_EOF 19282 ;; 19283 *) 19284 # For security reasons, it is highly recommended that you always 19285 # use absolute paths for naming shared libraries, and exclude the 19286 # DT_RUNPATH tag from executables and libraries. But doing so 19287 # requires that you compile everything twice, which is a pain. 19288 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 19289 hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir' 19290 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19291 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 19292 else 19293 ld_shlibs_FC=no 19294 fi 19295 ;; 19296 esac 19297 ;; 19298 19299 sunos4*) 19300 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 19301 wlarc= 19302 hardcode_direct_FC=yes 19303 hardcode_shlibpath_var_FC=no 19304 ;; 19305 19306 *) 19307 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 19308 archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19309 archive_expsym_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 19310 else 19311 ld_shlibs_FC=no 19312 fi 19313 ;; 19314 esac 19315 19316 if test no = "$ld_shlibs_FC"; then 19317 runpath_var= 19318 hardcode_libdir_flag_spec_FC= 19319 export_dynamic_flag_spec_FC= 19320 whole_archive_flag_spec_FC= 19321 fi 19322 else 19323 # PORTME fill in a description of your system's linker (not GNU ld) 19324 case $host_os in 19325 aix3*) 19326 allow_undefined_flag_FC=unsupported 19327 always_export_symbols_FC=yes 19328 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' 19329 # Note: this linker hardcodes the directories in LIBPATH if there 19330 # are no directories specified by -L. 19331 hardcode_minus_L_FC=yes 19332 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 19333 # Neither direct hardcoding nor static linking is supported with a 19334 # broken collect2. 19335 hardcode_direct_FC=unsupported 19336 fi 19337 ;; 19338 19339 aix[4-9]*) 19340 if test ia64 = "$host_cpu"; then 19341 # On IA64, the linker does run time linking by default, so we don't 19342 # have to do anything special. 19343 aix_use_runtimelinking=no 19344 exp_sym_flag='-Bexport' 19345 no_entry_flag= 19346 else 19347 # If we're using GNU nm, then we don't want the "-C" option. 19348 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 19349 # Without the "-l" option, or with the "-B" option, AIX nm treats 19350 # weak defined symbols like other global defined symbols, whereas 19351 # GNU nm marks them as "W". 19352 # While the 'weak' keyword is ignored in the Export File, we need 19353 # it in the Import File for the 'aix-soname' feature, so we have 19354 # to replace the "-B" option with "-P" for AIX nm. 19355 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 19356 export_symbols_cmds_FC='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 19357 else 19358 export_symbols_cmds_FC='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 19359 fi 19360 aix_use_runtimelinking=no 19361 19362 # Test if we are trying to use run time linking or normal 19363 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 19364 # have runtime linking enabled, and use it for executables. 19365 # For shared libraries, we enable/disable runtime linking 19366 # depending on the kind of the shared library created - 19367 # when "with_aix_soname,aix_use_runtimelinking" is: 19368 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 19369 # "aix,yes" lib.so shared, rtl:yes, for executables 19370 # lib.a static archive 19371 # "both,no" lib.so.V(shr.o) shared, rtl:yes 19372 # lib.a(lib.so.V) shared, rtl:no, for executables 19373 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 19374 # lib.a(lib.so.V) shared, rtl:no 19375 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 19376 # lib.a static archive 19377 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 19378 for ld_flag in $LDFLAGS; do 19379 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 19380 aix_use_runtimelinking=yes 19381 break 19382 fi 19383 done 19384 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 19385 # With aix-soname=svr4, we create the lib.so.V shared archives only, 19386 # so we don't have lib.a shared libs to link our executables. 19387 # We have to force runtime linking in this case. 19388 aix_use_runtimelinking=yes 19389 LDFLAGS="$LDFLAGS -Wl,-brtl" 19390 fi 19391 ;; 19392 esac 19393 19394 exp_sym_flag='-bexport' 19395 no_entry_flag='-bnoentry' 19396 fi 19397 19398 # When large executables or shared objects are built, AIX ld can 19399 # have problems creating the table of contents. If linking a library 19400 # or program results in "error TOC overflow" add -mminimal-toc to 19401 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 19402 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 19403 19404 archive_cmds_FC='' 19405 hardcode_direct_FC=yes 19406 hardcode_direct_absolute_FC=yes 19407 hardcode_libdir_separator_FC=':' 19408 link_all_deplibs_FC=yes 19409 file_list_spec_FC='$wl-f,' 19410 case $with_aix_soname,$aix_use_runtimelinking in 19411 aix,*) ;; # traditional, no import file 19412 svr4,* | *,yes) # use import file 19413 # The Import File defines what to hardcode. 19414 hardcode_direct_FC=no 19415 hardcode_direct_absolute_FC=no 19416 ;; 19417 esac 19418 19419 if test yes = "$GCC"; then 19420 case $host_os in aix4.[012]|aix4.[012].*) 19421 # We only want to do this on AIX 4.2 and lower, the check 19422 # below for broken collect2 doesn't work under 4.3+ 19423 collect2name=`$CC -print-prog-name=collect2` 19424 if test -f "$collect2name" && 19425 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 19426 then 19427 # We have reworked collect2 19428 : 19429 else 19430 # We have old collect2 19431 hardcode_direct_FC=unsupported 19432 # It fails to find uninstalled libraries when the uninstalled 19433 # path is not listed in the libpath. Setting hardcode_minus_L 19434 # to unsupported forces relinking 19435 hardcode_minus_L_FC=yes 19436 hardcode_libdir_flag_spec_FC='-L$libdir' 19437 hardcode_libdir_separator_FC= 19438 fi 19439 ;; 19440 esac 19441 shared_flag='-shared' 19442 if test yes = "$aix_use_runtimelinking"; then 19443 shared_flag="$shared_flag "'$wl-G' 19444 fi 19445 # Need to ensure runtime linking is disabled for the traditional 19446 # shared library, or the linker may eventually find shared libraries 19447 # /with/ Import File - we do not want to mix them. 19448 shared_flag_aix='-shared' 19449 shared_flag_svr4='-shared $wl-G' 19450 else 19451 # not using gcc 19452 if test ia64 = "$host_cpu"; then 19453 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 19454 # chokes on -Wl,-G. The following line is correct: 19455 shared_flag='-G' 19456 else 19457 if test yes = "$aix_use_runtimelinking"; then 19458 shared_flag='$wl-G' 19459 else 19460 shared_flag='$wl-bM:SRE' 19461 fi 19462 shared_flag_aix='$wl-bM:SRE' 19463 shared_flag_svr4='$wl-G' 19464 fi 19465 fi 19466 19467 export_dynamic_flag_spec_FC='$wl-bexpall' 19468 # It seems that -bexpall does not export symbols beginning with 19469 # underscore (_), so it is better to generate a list of symbols to export. 19470 always_export_symbols_FC=yes 19471 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 19472 # Warning - without using the other runtime loading flags (-brtl), 19473 # -berok will link without error, but may produce a broken library. 19474 allow_undefined_flag_FC='-berok' 19475 # Determine the default libpath from the value encoded in an 19476 # empty executable. 19477 if test set = "${lt_cv_aix_libpath+set}"; then 19478 aix_libpath=$lt_cv_aix_libpath 19479else 19480 if ${lt_cv_aix_libpath__FC+:} false; then : 19481 $as_echo_n "(cached) " >&6 19482else 19483 cat > conftest.$ac_ext <<_ACEOF 19484 program main 19485 19486 end 19487_ACEOF 19488if ac_fn_fc_try_link "$LINENO"; then : 19489 19490 lt_aix_libpath_sed=' 19491 /Import File Strings/,/^$/ { 19492 /^0/ { 19493 s/^0 *\([^ ]*\) *$/\1/ 19494 p 19495 } 19496 }' 19497 lt_cv_aix_libpath__FC=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 19498 # Check for a 64-bit object if we didn't find anything. 19499 if test -z "$lt_cv_aix_libpath__FC"; then 19500 lt_cv_aix_libpath__FC=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 19501 fi 19502fi 19503rm -f core conftest.err conftest.$ac_objext \ 19504 conftest$ac_exeext conftest.$ac_ext 19505 if test -z "$lt_cv_aix_libpath__FC"; then 19506 lt_cv_aix_libpath__FC=/usr/lib:/lib 19507 fi 19508 19509fi 19510 19511 aix_libpath=$lt_cv_aix_libpath__FC 19512fi 19513 19514 hardcode_libdir_flag_spec_FC='$wl-blibpath:$libdir:'"$aix_libpath" 19515 archive_expsym_cmds_FC='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 19516 else 19517 if test ia64 = "$host_cpu"; then 19518 hardcode_libdir_flag_spec_FC='$wl-R $libdir:/usr/lib:/lib' 19519 allow_undefined_flag_FC="-z nodefs" 19520 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" 19521 else 19522 # Determine the default libpath from the value encoded in an 19523 # empty executable. 19524 if test set = "${lt_cv_aix_libpath+set}"; then 19525 aix_libpath=$lt_cv_aix_libpath 19526else 19527 if ${lt_cv_aix_libpath__FC+:} false; then : 19528 $as_echo_n "(cached) " >&6 19529else 19530 cat > conftest.$ac_ext <<_ACEOF 19531 program main 19532 19533 end 19534_ACEOF 19535if ac_fn_fc_try_link "$LINENO"; then : 19536 19537 lt_aix_libpath_sed=' 19538 /Import File Strings/,/^$/ { 19539 /^0/ { 19540 s/^0 *\([^ ]*\) *$/\1/ 19541 p 19542 } 19543 }' 19544 lt_cv_aix_libpath__FC=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 19545 # Check for a 64-bit object if we didn't find anything. 19546 if test -z "$lt_cv_aix_libpath__FC"; then 19547 lt_cv_aix_libpath__FC=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 19548 fi 19549fi 19550rm -f core conftest.err conftest.$ac_objext \ 19551 conftest$ac_exeext conftest.$ac_ext 19552 if test -z "$lt_cv_aix_libpath__FC"; then 19553 lt_cv_aix_libpath__FC=/usr/lib:/lib 19554 fi 19555 19556fi 19557 19558 aix_libpath=$lt_cv_aix_libpath__FC 19559fi 19560 19561 hardcode_libdir_flag_spec_FC='$wl-blibpath:$libdir:'"$aix_libpath" 19562 # Warning - without using the other run time loading flags, 19563 # -berok will link without error, but may produce a broken library. 19564 no_undefined_flag_FC=' $wl-bernotok' 19565 allow_undefined_flag_FC=' $wl-berok' 19566 if test yes = "$with_gnu_ld"; then 19567 # We only use this code for GNU lds that support --whole-archive. 19568 whole_archive_flag_spec_FC='$wl--whole-archive$convenience $wl--no-whole-archive' 19569 else 19570 # Exported symbols can be pulled into shared objects from archives 19571 whole_archive_flag_spec_FC='$convenience' 19572 fi 19573 archive_cmds_need_lc_FC=yes 19574 archive_expsym_cmds_FC='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 19575 # -brtl affects multiple linker settings, -berok does not and is overridden later 19576 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 19577 if test svr4 != "$with_aix_soname"; then 19578 # This is similar to how AIX traditionally builds its shared libraries. 19579 archive_expsym_cmds_FC="$archive_expsym_cmds_FC"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 19580 fi 19581 if test aix != "$with_aix_soname"; then 19582 archive_expsym_cmds_FC="$archive_expsym_cmds_FC"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 19583 else 19584 # used by -dlpreopen to get the symbols 19585 archive_expsym_cmds_FC="$archive_expsym_cmds_FC"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 19586 fi 19587 archive_expsym_cmds_FC="$archive_expsym_cmds_FC"'~$RM -r $output_objdir/$realname.d' 19588 fi 19589 fi 19590 ;; 19591 19592 amigaos*) 19593 case $host_cpu in 19594 powerpc) 19595 # see comment about AmigaOS4 .so support 19596 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19597 archive_expsym_cmds_FC='' 19598 ;; 19599 m68k) 19600 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)' 19601 hardcode_libdir_flag_spec_FC='-L$libdir' 19602 hardcode_minus_L_FC=yes 19603 ;; 19604 esac 19605 ;; 19606 19607 bsdi[45]*) 19608 export_dynamic_flag_spec_FC=-rdynamic 19609 ;; 19610 19611 cygwin* | mingw* | pw32* | cegcc*) 19612 # When not using gcc, we currently assume that we are using 19613 # Microsoft Visual C++. 19614 # hardcode_libdir_flag_spec is actually meaningless, as there is 19615 # no search path for DLLs. 19616 case $cc_basename in 19617 cl*) 19618 # Native MSVC 19619 hardcode_libdir_flag_spec_FC=' ' 19620 allow_undefined_flag_FC=unsupported 19621 always_export_symbols_FC=yes 19622 file_list_spec_FC='@' 19623 # Tell ltmain to make .lib files, not .a files. 19624 libext=lib 19625 # Tell ltmain to make .dll files, not .so files. 19626 shrext_cmds=.dll 19627 # FIXME: Setting linknames here is a bad hack. 19628 archive_cmds_FC='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 19629 archive_expsym_cmds_FC='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 19630 cp "$export_symbols" "$output_objdir/$soname.def"; 19631 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 19632 else 19633 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 19634 fi~ 19635 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 19636 linknames=' 19637 # The linker will not automatically build a static lib if we build a DLL. 19638 # _LT_TAGVAR(old_archive_from_new_cmds, FC)='true' 19639 enable_shared_with_static_runtimes_FC=yes 19640 exclude_expsyms_FC='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 19641 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 19642 # Don't use ranlib 19643 old_postinstall_cmds_FC='chmod 644 $oldlib' 19644 postlink_cmds_FC='lt_outputfile="@OUTPUT@"~ 19645 lt_tool_outputfile="@TOOL_OUTPUT@"~ 19646 case $lt_outputfile in 19647 *.exe|*.EXE) ;; 19648 *) 19649 lt_outputfile=$lt_outputfile.exe 19650 lt_tool_outputfile=$lt_tool_outputfile.exe 19651 ;; 19652 esac~ 19653 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 19654 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 19655 $RM "$lt_outputfile.manifest"; 19656 fi' 19657 ;; 19658 *) 19659 # Assume MSVC wrapper 19660 hardcode_libdir_flag_spec_FC=' ' 19661 allow_undefined_flag_FC=unsupported 19662 # Tell ltmain to make .lib files, not .a files. 19663 libext=lib 19664 # Tell ltmain to make .dll files, not .so files. 19665 shrext_cmds=.dll 19666 # FIXME: Setting linknames here is a bad hack. 19667 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 19668 # The linker will automatically build a .lib file if we build a DLL. 19669 old_archive_from_new_cmds_FC='true' 19670 # FIXME: Should let the user specify the lib program. 19671 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs' 19672 enable_shared_with_static_runtimes_FC=yes 19673 ;; 19674 esac 19675 ;; 19676 19677 darwin* | rhapsody*) 19678 19679 19680 archive_cmds_need_lc_FC=no 19681 hardcode_direct_FC=no 19682 hardcode_automatic_FC=yes 19683 hardcode_shlibpath_var_FC=unsupported 19684 if test yes = "$lt_cv_ld_force_load"; then 19685 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\"`' 19686 compiler_needs_object_FC=yes 19687 else 19688 whole_archive_flag_spec_FC='' 19689 fi 19690 link_all_deplibs_FC=yes 19691 allow_undefined_flag_FC=$_lt_dar_allow_undefined 19692 case $cc_basename in 19693 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 19694 *) _lt_dar_can_shared=$GCC ;; 19695 esac 19696 if test yes = "$_lt_dar_can_shared"; then 19697 output_verbose_link_cmd=func_echo_all 19698 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" 19699 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 19700 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" 19701 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" 19702 19703 else 19704 ld_shlibs_FC=no 19705 fi 19706 19707 ;; 19708 19709 dgux*) 19710 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19711 hardcode_libdir_flag_spec_FC='-L$libdir' 19712 hardcode_shlibpath_var_FC=no 19713 ;; 19714 19715 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 19716 # support. Future versions do this automatically, but an explicit c++rt0.o 19717 # does not break anything, and helps significantly (at the cost of a little 19718 # extra space). 19719 freebsd2.2*) 19720 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 19721 hardcode_libdir_flag_spec_FC='-R$libdir' 19722 hardcode_direct_FC=yes 19723 hardcode_shlibpath_var_FC=no 19724 ;; 19725 19726 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 19727 freebsd2.*) 19728 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 19729 hardcode_direct_FC=yes 19730 hardcode_minus_L_FC=yes 19731 hardcode_shlibpath_var_FC=no 19732 ;; 19733 19734 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 19735 freebsd* | dragonfly*) 19736 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 19737 hardcode_libdir_flag_spec_FC='-R$libdir' 19738 hardcode_direct_FC=yes 19739 hardcode_shlibpath_var_FC=no 19740 ;; 19741 19742 hpux9*) 19743 if test yes = "$GCC"; then 19744 archive_cmds_FC='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 19745 else 19746 archive_cmds_FC='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 19747 fi 19748 hardcode_libdir_flag_spec_FC='$wl+b $wl$libdir' 19749 hardcode_libdir_separator_FC=: 19750 hardcode_direct_FC=yes 19751 19752 # hardcode_minus_L: Not really in the search PATH, 19753 # but as the default location of the library. 19754 hardcode_minus_L_FC=yes 19755 export_dynamic_flag_spec_FC='$wl-E' 19756 ;; 19757 19758 hpux10*) 19759 if test yes,no = "$GCC,$with_gnu_ld"; then 19760 archive_cmds_FC='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 19761 else 19762 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 19763 fi 19764 if test no = "$with_gnu_ld"; then 19765 hardcode_libdir_flag_spec_FC='$wl+b $wl$libdir' 19766 hardcode_libdir_separator_FC=: 19767 hardcode_direct_FC=yes 19768 hardcode_direct_absolute_FC=yes 19769 export_dynamic_flag_spec_FC='$wl-E' 19770 # hardcode_minus_L: Not really in the search PATH, 19771 # but as the default location of the library. 19772 hardcode_minus_L_FC=yes 19773 fi 19774 ;; 19775 19776 hpux11*) 19777 if test yes,no = "$GCC,$with_gnu_ld"; then 19778 case $host_cpu in 19779 hppa*64*) 19780 archive_cmds_FC='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 19781 ;; 19782 ia64*) 19783 archive_cmds_FC='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 19784 ;; 19785 *) 19786 archive_cmds_FC='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 19787 ;; 19788 esac 19789 else 19790 case $host_cpu in 19791 hppa*64*) 19792 archive_cmds_FC='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 19793 ;; 19794 ia64*) 19795 archive_cmds_FC='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 19796 ;; 19797 *) 19798 archive_cmds_FC='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 19799 ;; 19800 esac 19801 fi 19802 if test no = "$with_gnu_ld"; then 19803 hardcode_libdir_flag_spec_FC='$wl+b $wl$libdir' 19804 hardcode_libdir_separator_FC=: 19805 19806 case $host_cpu in 19807 hppa*64*|ia64*) 19808 hardcode_direct_FC=no 19809 hardcode_shlibpath_var_FC=no 19810 ;; 19811 *) 19812 hardcode_direct_FC=yes 19813 hardcode_direct_absolute_FC=yes 19814 export_dynamic_flag_spec_FC='$wl-E' 19815 19816 # hardcode_minus_L: Not really in the search PATH, 19817 # but as the default location of the library. 19818 hardcode_minus_L_FC=yes 19819 ;; 19820 esac 19821 fi 19822 ;; 19823 19824 irix5* | irix6* | nonstopux*) 19825 if test yes = "$GCC"; then 19826 archive_cmds_FC='$CC -shared $pic_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' 19827 # Try to use the -exported_symbol ld option, if it does not 19828 # work, assume that -exports_file does not work either and 19829 # implicitly export all symbols. 19830 # This should be the same for all languages, so no per-tag cache variable. 19831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 19832$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 19833if ${lt_cv_irix_exported_symbol+:} false; then : 19834 $as_echo_n "(cached) " >&6 19835else 19836 save_LDFLAGS=$LDFLAGS 19837 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 19838 cat > conftest.$ac_ext <<_ACEOF 19839 19840 subroutine foo 19841 end 19842_ACEOF 19843if ac_fn_fc_try_link "$LINENO"; then : 19844 lt_cv_irix_exported_symbol=yes 19845else 19846 lt_cv_irix_exported_symbol=no 19847fi 19848rm -f core conftest.err conftest.$ac_objext \ 19849 conftest$ac_exeext conftest.$ac_ext 19850 LDFLAGS=$save_LDFLAGS 19851fi 19852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 19853$as_echo "$lt_cv_irix_exported_symbol" >&6; } 19854 if test yes = "$lt_cv_irix_exported_symbol"; then 19855 archive_expsym_cmds_FC='$CC -shared $pic_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 $wl-exports_file $wl$export_symbols -o $lib' 19856 fi 19857 else 19858 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' 19859 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' 19860 fi 19861 archive_cmds_need_lc_FC='no' 19862 hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir' 19863 hardcode_libdir_separator_FC=: 19864 inherit_rpath_FC=yes 19865 link_all_deplibs_FC=yes 19866 ;; 19867 19868 linux*) 19869 case $cc_basename in 19870 tcc*) 19871 # Fabrice Bellard et al's Tiny C Compiler 19872 ld_shlibs_FC=yes 19873 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 19874 ;; 19875 esac 19876 ;; 19877 19878 netbsd*) 19879 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 19880 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 19881 else 19882 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 19883 fi 19884 hardcode_libdir_flag_spec_FC='-R$libdir' 19885 hardcode_direct_FC=yes 19886 hardcode_shlibpath_var_FC=no 19887 ;; 19888 19889 newsos6) 19890 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19891 hardcode_direct_FC=yes 19892 hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir' 19893 hardcode_libdir_separator_FC=: 19894 hardcode_shlibpath_var_FC=no 19895 ;; 19896 19897 *nto* | *qnx*) 19898 ;; 19899 19900 openbsd* | bitrig*) 19901 if test -f /usr/libexec/ld.so; then 19902 hardcode_direct_FC=yes 19903 hardcode_shlibpath_var_FC=no 19904 hardcode_direct_absolute_FC=yes 19905 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 19906 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 19907 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 19908 hardcode_libdir_flag_spec_FC='$wl-rpath,$libdir' 19909 export_dynamic_flag_spec_FC='$wl-E' 19910 else 19911 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 19912 hardcode_libdir_flag_spec_FC='$wl-rpath,$libdir' 19913 fi 19914 else 19915 ld_shlibs_FC=no 19916 fi 19917 ;; 19918 19919 os2*) 19920 hardcode_libdir_flag_spec_FC='-L$libdir' 19921 hardcode_minus_L_FC=yes 19922 allow_undefined_flag_FC=unsupported 19923 shrext_cmds=.dll 19924 archive_cmds_FC='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 19925 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 19926 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 19927 $ECHO EXPORTS >> $output_objdir/$libname.def~ 19928 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 19929 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 19930 emximp -o $lib $output_objdir/$libname.def' 19931 archive_expsym_cmds_FC='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 19932 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 19933 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 19934 $ECHO EXPORTS >> $output_objdir/$libname.def~ 19935 prefix_cmds="$SED"~ 19936 if test EXPORTS = "`$SED 1q $export_symbols`"; then 19937 prefix_cmds="$prefix_cmds -e 1d"; 19938 fi~ 19939 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 19940 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 19941 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 19942 emximp -o $lib $output_objdir/$libname.def' 19943 old_archive_From_new_cmds_FC='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 19944 enable_shared_with_static_runtimes_FC=yes 19945 ;; 19946 19947 osf3*) 19948 if test yes = "$GCC"; then 19949 allow_undefined_flag_FC=' $wl-expect_unresolved $wl\*' 19950 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' 19951 else 19952 allow_undefined_flag_FC=' -expect_unresolved \*' 19953 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' 19954 fi 19955 archive_cmds_need_lc_FC='no' 19956 hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir' 19957 hardcode_libdir_separator_FC=: 19958 ;; 19959 19960 osf4* | osf5*) # as osf3* with the addition of -msym flag 19961 if test yes = "$GCC"; then 19962 allow_undefined_flag_FC=' $wl-expect_unresolved $wl\*' 19963 archive_cmds_FC='$CC -shared$allow_undefined_flag $pic_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' 19964 hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir' 19965 else 19966 allow_undefined_flag_FC=' -expect_unresolved \*' 19967 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' 19968 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~ 19969 $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' 19970 19971 # Both c and cxx compiler support -rpath directly 19972 hardcode_libdir_flag_spec_FC='-rpath $libdir' 19973 fi 19974 archive_cmds_need_lc_FC='no' 19975 hardcode_libdir_separator_FC=: 19976 ;; 19977 19978 solaris*) 19979 no_undefined_flag_FC=' -z defs' 19980 if test yes = "$GCC"; then 19981 wlarc='$wl' 19982 archive_cmds_FC='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 19983 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 19984 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 19985 else 19986 case `$CC -V 2>&1` in 19987 *"Compilers 5.0"*) 19988 wlarc='' 19989 archive_cmds_FC='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 19990 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 19991 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 19992 ;; 19993 *) 19994 wlarc='$wl' 19995 archive_cmds_FC='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 19996 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 19997 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 19998 ;; 19999 esac 20000 fi 20001 hardcode_libdir_flag_spec_FC='-R$libdir' 20002 hardcode_shlibpath_var_FC=no 20003 case $host_os in 20004 solaris2.[0-5] | solaris2.[0-5].*) ;; 20005 *) 20006 # The compiler driver will combine and reorder linker options, 20007 # but understands '-z linker_flag'. GCC discards it without '$wl', 20008 # but is careful enough not to reorder. 20009 # Supported since Solaris 2.6 (maybe 2.5.1?) 20010 if test yes = "$GCC"; then 20011 whole_archive_flag_spec_FC='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 20012 else 20013 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract' 20014 fi 20015 ;; 20016 esac 20017 link_all_deplibs_FC=yes 20018 ;; 20019 20020 sunos4*) 20021 if test sequent = "$host_vendor"; then 20022 # Use $CC to link under sequent, because it throws in some extra .o 20023 # files that make .init and .fini sections work. 20024 archive_cmds_FC='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 20025 else 20026 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 20027 fi 20028 hardcode_libdir_flag_spec_FC='-L$libdir' 20029 hardcode_direct_FC=yes 20030 hardcode_minus_L_FC=yes 20031 hardcode_shlibpath_var_FC=no 20032 ;; 20033 20034 sysv4) 20035 case $host_vendor in 20036 sni) 20037 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20038 hardcode_direct_FC=yes # is this really true??? 20039 ;; 20040 siemens) 20041 ## LD is ld it makes a PLAMLIB 20042 ## CC just makes a GrossModule. 20043 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags' 20044 reload_cmds_FC='$CC -r -o $output$reload_objs' 20045 hardcode_direct_FC=no 20046 ;; 20047 motorola) 20048 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20049 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie 20050 ;; 20051 esac 20052 runpath_var='LD_RUN_PATH' 20053 hardcode_shlibpath_var_FC=no 20054 ;; 20055 20056 sysv4.3*) 20057 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20058 hardcode_shlibpath_var_FC=no 20059 export_dynamic_flag_spec_FC='-Bexport' 20060 ;; 20061 20062 sysv4*MP*) 20063 if test -d /usr/nec; then 20064 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20065 hardcode_shlibpath_var_FC=no 20066 runpath_var=LD_RUN_PATH 20067 hardcode_runpath_var=yes 20068 ld_shlibs_FC=yes 20069 fi 20070 ;; 20071 20072 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 20073 no_undefined_flag_FC='$wl-z,text' 20074 archive_cmds_need_lc_FC=no 20075 hardcode_shlibpath_var_FC=no 20076 runpath_var='LD_RUN_PATH' 20077 20078 if test yes = "$GCC"; then 20079 archive_cmds_FC='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20080 archive_expsym_cmds_FC='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20081 else 20082 archive_cmds_FC='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20083 archive_expsym_cmds_FC='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20084 fi 20085 ;; 20086 20087 sysv5* | sco3.2v5* | sco5v6*) 20088 # Note: We CANNOT use -z defs as we might desire, because we do not 20089 # link with -lc, and that would cause any symbols used from libc to 20090 # always be unresolved, which means just about no library would 20091 # ever link correctly. If we're not using GNU ld we use -z text 20092 # though, which does catch some bad symbols but isn't as heavy-handed 20093 # as -z defs. 20094 no_undefined_flag_FC='$wl-z,text' 20095 allow_undefined_flag_FC='$wl-z,nodefs' 20096 archive_cmds_need_lc_FC=no 20097 hardcode_shlibpath_var_FC=no 20098 hardcode_libdir_flag_spec_FC='$wl-R,$libdir' 20099 hardcode_libdir_separator_FC=':' 20100 link_all_deplibs_FC=yes 20101 export_dynamic_flag_spec_FC='$wl-Bexport' 20102 runpath_var='LD_RUN_PATH' 20103 20104 if test yes = "$GCC"; then 20105 archive_cmds_FC='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20106 archive_expsym_cmds_FC='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20107 else 20108 archive_cmds_FC='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20109 archive_expsym_cmds_FC='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20110 fi 20111 ;; 20112 20113 uts4*) 20114 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20115 hardcode_libdir_flag_spec_FC='-L$libdir' 20116 hardcode_shlibpath_var_FC=no 20117 ;; 20118 20119 *) 20120 ld_shlibs_FC=no 20121 ;; 20122 esac 20123 20124 if test sni = "$host_vendor"; then 20125 case $host in 20126 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 20127 export_dynamic_flag_spec_FC='$wl-Blargedynsym' 20128 ;; 20129 esac 20130 fi 20131 fi 20132 20133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5 20134$as_echo "$ld_shlibs_FC" >&6; } 20135test no = "$ld_shlibs_FC" && can_build_shared=no 20136 20137with_gnu_ld_FC=$with_gnu_ld 20138 20139 20140 20141 20142 20143 20144# 20145# Do we need to explicitly link libc? 20146# 20147case "x$archive_cmds_need_lc_FC" in 20148x|xyes) 20149 # Assume -lc should be added 20150 archive_cmds_need_lc_FC=yes 20151 20152 if test yes,yes = "$GCC,$enable_shared"; then 20153 case $archive_cmds_FC in 20154 *'~'*) 20155 # FIXME: we may have to deal with multi-command sequences. 20156 ;; 20157 '$CC '*) 20158 # Test whether the compiler implicitly links with -lc since on some 20159 # systems, -lgcc has to come before -lc. If gcc already passes -lc 20160 # to ld, don't add -lc before -lgcc. 20161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 20162$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 20163if ${lt_cv_archive_cmds_need_lc_FC+:} false; then : 20164 $as_echo_n "(cached) " >&6 20165else 20166 $RM conftest* 20167 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 20168 20169 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 20170 (eval $ac_compile) 2>&5 20171 ac_status=$? 20172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20173 test $ac_status = 0; } 2>conftest.err; then 20174 soname=conftest 20175 lib=conftest 20176 libobjs=conftest.$ac_objext 20177 deplibs= 20178 wl=$lt_prog_compiler_wl_FC 20179 pic_flag=$lt_prog_compiler_pic_FC 20180 compiler_flags=-v 20181 linker_flags=-v 20182 verstring= 20183 output_objdir=. 20184 libname=conftest 20185 lt_save_allow_undefined_flag=$allow_undefined_flag_FC 20186 allow_undefined_flag_FC= 20187 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 20188 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 20189 ac_status=$? 20190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20191 test $ac_status = 0; } 20192 then 20193 lt_cv_archive_cmds_need_lc_FC=no 20194 else 20195 lt_cv_archive_cmds_need_lc_FC=yes 20196 fi 20197 allow_undefined_flag_FC=$lt_save_allow_undefined_flag 20198 else 20199 cat conftest.err 1>&5 20200 fi 20201 $RM conftest* 20202 20203fi 20204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5 20205$as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; } 20206 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC 20207 ;; 20208 esac 20209 fi 20210 ;; 20211esac 20212 20213 20214 20215 20216 20217 20218 20219 20220 20221 20222 20223 20224 20225 20226 20227 20228 20229 20230 20231 20232 20233 20234 20235 20236 20237 20238 20239 20240 20241 20242 20243 20244 20245 20246 20247 20248 20249 20250 20251 20252 20253 20254 20255 20256 20257 20258 20259 20260 20261 20262 20263 20264 20265 20266 20267 20268 20269 20270 20271 20272 20273 20274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 20275$as_echo_n "checking dynamic linker characteristics... " >&6; } 20276 20277library_names_spec= 20278libname_spec='lib$name' 20279soname_spec= 20280shrext_cmds=.so 20281postinstall_cmds= 20282postuninstall_cmds= 20283finish_cmds= 20284finish_eval= 20285shlibpath_var= 20286shlibpath_overrides_runpath=unknown 20287version_type=none 20288dynamic_linker="$host_os ld.so" 20289sys_lib_dlsearch_path_spec="/lib /usr/lib" 20290need_lib_prefix=unknown 20291hardcode_into_libs=no 20292 20293# when you set need_version to no, make sure it does not cause -set_version 20294# flags to be left without arguments 20295need_version=unknown 20296 20297 20298 20299case $host_os in 20300aix3*) 20301 version_type=linux # correct to gnu/linux during the next big refactor 20302 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 20303 shlibpath_var=LIBPATH 20304 20305 # AIX 3 has no versioning support, so we append a major version to the name. 20306 soname_spec='$libname$release$shared_ext$major' 20307 ;; 20308 20309aix[4-9]*) 20310 version_type=linux # correct to gnu/linux during the next big refactor 20311 need_lib_prefix=no 20312 need_version=no 20313 hardcode_into_libs=yes 20314 if test ia64 = "$host_cpu"; then 20315 # AIX 5 supports IA64 20316 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 20317 shlibpath_var=LD_LIBRARY_PATH 20318 else 20319 # With GCC up to 2.95.x, collect2 would create an import file 20320 # for dependence libraries. The import file would start with 20321 # the line '#! .'. This would cause the generated library to 20322 # depend on '.', always an invalid library. This was fixed in 20323 # development snapshots of GCC prior to 3.0. 20324 case $host_os in 20325 aix4 | aix4.[01] | aix4.[01].*) 20326 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 20327 echo ' yes ' 20328 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 20329 : 20330 else 20331 can_build_shared=no 20332 fi 20333 ;; 20334 esac 20335 # Using Import Files as archive members, it is possible to support 20336 # filename-based versioning of shared library archives on AIX. While 20337 # this would work for both with and without runtime linking, it will 20338 # prevent static linking of such archives. So we do filename-based 20339 # shared library versioning with .so extension only, which is used 20340 # when both runtime linking and shared linking is enabled. 20341 # Unfortunately, runtime linking may impact performance, so we do 20342 # not want this to be the default eventually. Also, we use the 20343 # versioned .so libs for executables only if there is the -brtl 20344 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 20345 # To allow for filename-based versioning support, we need to create 20346 # libNAME.so.V as an archive file, containing: 20347 # *) an Import File, referring to the versioned filename of the 20348 # archive as well as the shared archive member, telling the 20349 # bitwidth (32 or 64) of that shared object, and providing the 20350 # list of exported symbols of that shared object, eventually 20351 # decorated with the 'weak' keyword 20352 # *) the shared object with the F_LOADONLY flag set, to really avoid 20353 # it being seen by the linker. 20354 # At run time we better use the real file rather than another symlink, 20355 # but for link time we create the symlink libNAME.so -> libNAME.so.V 20356 20357 case $with_aix_soname,$aix_use_runtimelinking in 20358 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 20359 # soname into executable. Probably we can add versioning support to 20360 # collect2, so additional links can be useful in future. 20361 aix,yes) # traditional libtool 20362 dynamic_linker='AIX unversionable lib.so' 20363 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 20364 # instead of lib<name>.a to let people know that these are not 20365 # typical AIX shared libraries. 20366 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20367 ;; 20368 aix,no) # traditional AIX only 20369 dynamic_linker='AIX lib.a(lib.so.V)' 20370 # We preserve .a as extension for shared libraries through AIX4.2 20371 # and later when we are not doing run time linking. 20372 library_names_spec='$libname$release.a $libname.a' 20373 soname_spec='$libname$release$shared_ext$major' 20374 ;; 20375 svr4,*) # full svr4 only 20376 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 20377 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 20378 # We do not specify a path in Import Files, so LIBPATH fires. 20379 shlibpath_overrides_runpath=yes 20380 ;; 20381 *,yes) # both, prefer svr4 20382 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 20383 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 20384 # unpreferred sharedlib libNAME.a needs extra handling 20385 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 20386 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 20387 # We do not specify a path in Import Files, so LIBPATH fires. 20388 shlibpath_overrides_runpath=yes 20389 ;; 20390 *,no) # both, prefer aix 20391 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 20392 library_names_spec='$libname$release.a $libname.a' 20393 soname_spec='$libname$release$shared_ext$major' 20394 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 20395 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 20396 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 20397 ;; 20398 esac 20399 shlibpath_var=LIBPATH 20400 fi 20401 ;; 20402 20403amigaos*) 20404 case $host_cpu in 20405 powerpc) 20406 # Since July 2007 AmigaOS4 officially supports .so libraries. 20407 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 20408 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20409 ;; 20410 m68k) 20411 library_names_spec='$libname.ixlibrary $libname.a' 20412 # Create ${libname}_ixlibrary.a entries in /sys/libs. 20413 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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' 20414 ;; 20415 esac 20416 ;; 20417 20418beos*) 20419 library_names_spec='$libname$shared_ext' 20420 dynamic_linker="$host_os ld.so" 20421 shlibpath_var=LIBRARY_PATH 20422 ;; 20423 20424bsdi[45]*) 20425 version_type=linux # correct to gnu/linux during the next big refactor 20426 need_version=no 20427 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20428 soname_spec='$libname$release$shared_ext$major' 20429 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 20430 shlibpath_var=LD_LIBRARY_PATH 20431 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 20432 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 20433 # the default ld.so.conf also contains /usr/contrib/lib and 20434 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 20435 # libtool to hard-code these into programs 20436 ;; 20437 20438cygwin* | mingw* | pw32* | cegcc*) 20439 version_type=windows 20440 shrext_cmds=.dll 20441 need_version=no 20442 need_lib_prefix=no 20443 20444 case $GCC,$cc_basename in 20445 yes,*) 20446 # gcc 20447 library_names_spec='$libname.dll.a' 20448 # DLL is installed to $(libdir)/../bin by postinstall_cmds 20449 postinstall_cmds='base_file=`basename \$file`~ 20450 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 20451 dldir=$destdir/`dirname \$dlpath`~ 20452 test -d \$dldir || mkdir -p \$dldir~ 20453 $install_prog $dir/$dlname \$dldir/$dlname~ 20454 chmod a+x \$dldir/$dlname~ 20455 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 20456 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 20457 fi' 20458 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 20459 dlpath=$dir/\$dldll~ 20460 $RM \$dlpath' 20461 shlibpath_overrides_runpath=yes 20462 20463 case $host_os in 20464 cygwin*) 20465 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 20466 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 20467 20468 ;; 20469 mingw* | cegcc*) 20470 # MinGW DLLs use traditional 'lib' prefix 20471 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 20472 ;; 20473 pw32*) 20474 # pw32 DLLs use 'pw' prefix rather than 'lib' 20475 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 20476 ;; 20477 esac 20478 dynamic_linker='Win32 ld.exe' 20479 ;; 20480 20481 *,cl*) 20482 # Native MSVC 20483 libname_spec='$name' 20484 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 20485 library_names_spec='$libname.dll.lib' 20486 20487 case $build_os in 20488 mingw*) 20489 sys_lib_search_path_spec= 20490 lt_save_ifs=$IFS 20491 IFS=';' 20492 for lt_path in $LIB 20493 do 20494 IFS=$lt_save_ifs 20495 # Let DOS variable expansion print the short 8.3 style file name. 20496 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 20497 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 20498 done 20499 IFS=$lt_save_ifs 20500 # Convert to MSYS style. 20501 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 20502 ;; 20503 cygwin*) 20504 # Convert to unix form, then to dos form, then back to unix form 20505 # but this time dos style (no spaces!) so that the unix form looks 20506 # like /cygdrive/c/PROGRA~1:/cygdr... 20507 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 20508 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 20509 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 20510 ;; 20511 *) 20512 sys_lib_search_path_spec=$LIB 20513 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 20514 # It is most probably a Windows format PATH. 20515 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 20516 else 20517 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 20518 fi 20519 # FIXME: find the short name or the path components, as spaces are 20520 # common. (e.g. "Program Files" -> "PROGRA~1") 20521 ;; 20522 esac 20523 20524 # DLL is installed to $(libdir)/../bin by postinstall_cmds 20525 postinstall_cmds='base_file=`basename \$file`~ 20526 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 20527 dldir=$destdir/`dirname \$dlpath`~ 20528 test -d \$dldir || mkdir -p \$dldir~ 20529 $install_prog $dir/$dlname \$dldir/$dlname' 20530 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 20531 dlpath=$dir/\$dldll~ 20532 $RM \$dlpath' 20533 shlibpath_overrides_runpath=yes 20534 dynamic_linker='Win32 link.exe' 20535 ;; 20536 20537 *) 20538 # Assume MSVC wrapper 20539 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 20540 dynamic_linker='Win32 ld.exe' 20541 ;; 20542 esac 20543 # FIXME: first we should search . and the directory the executable is in 20544 shlibpath_var=PATH 20545 ;; 20546 20547darwin* | rhapsody*) 20548 dynamic_linker="$host_os dyld" 20549 version_type=darwin 20550 need_lib_prefix=no 20551 need_version=no 20552 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 20553 soname_spec='$libname$release$major$shared_ext' 20554 shlibpath_overrides_runpath=yes 20555 shlibpath_var=DYLD_LIBRARY_PATH 20556 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 20557 20558 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 20559 ;; 20560 20561dgux*) 20562 version_type=linux # correct to gnu/linux during the next big refactor 20563 need_lib_prefix=no 20564 need_version=no 20565 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20566 soname_spec='$libname$release$shared_ext$major' 20567 shlibpath_var=LD_LIBRARY_PATH 20568 ;; 20569 20570freebsd* | dragonfly*) 20571 # DragonFly does not have aout. When/if they implement a new 20572 # versioning mechanism, adjust this. 20573 if test -x /usr/bin/objformat; then 20574 objformat=`/usr/bin/objformat` 20575 else 20576 case $host_os in 20577 freebsd[23].*) objformat=aout ;; 20578 *) objformat=elf ;; 20579 esac 20580 fi 20581 version_type=freebsd-$objformat 20582 case $version_type in 20583 freebsd-elf*) 20584 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20585 soname_spec='$libname$release$shared_ext$major' 20586 need_version=no 20587 need_lib_prefix=no 20588 ;; 20589 freebsd-*) 20590 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 20591 need_version=yes 20592 ;; 20593 esac 20594 shlibpath_var=LD_LIBRARY_PATH 20595 case $host_os in 20596 freebsd2.*) 20597 shlibpath_overrides_runpath=yes 20598 ;; 20599 freebsd3.[01]* | freebsdelf3.[01]*) 20600 shlibpath_overrides_runpath=yes 20601 hardcode_into_libs=yes 20602 ;; 20603 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 20604 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 20605 shlibpath_overrides_runpath=no 20606 hardcode_into_libs=yes 20607 ;; 20608 *) # from 4.6 on, and DragonFly 20609 shlibpath_overrides_runpath=yes 20610 hardcode_into_libs=yes 20611 ;; 20612 esac 20613 ;; 20614 20615haiku*) 20616 version_type=linux # correct to gnu/linux during the next big refactor 20617 need_lib_prefix=no 20618 need_version=no 20619 dynamic_linker="$host_os runtime_loader" 20620 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20621 soname_spec='$libname$release$shared_ext$major' 20622 shlibpath_var=LIBRARY_PATH 20623 shlibpath_overrides_runpath=no 20624 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 20625 hardcode_into_libs=yes 20626 ;; 20627 20628hpux9* | hpux10* | hpux11*) 20629 # Give a soname corresponding to the major version so that dld.sl refuses to 20630 # link against other versions. 20631 version_type=sunos 20632 need_lib_prefix=no 20633 need_version=no 20634 case $host_cpu in 20635 ia64*) 20636 shrext_cmds='.so' 20637 hardcode_into_libs=yes 20638 dynamic_linker="$host_os dld.so" 20639 shlibpath_var=LD_LIBRARY_PATH 20640 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 20641 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20642 soname_spec='$libname$release$shared_ext$major' 20643 if test 32 = "$HPUX_IA64_MODE"; then 20644 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 20645 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 20646 else 20647 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 20648 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 20649 fi 20650 ;; 20651 hppa*64*) 20652 shrext_cmds='.sl' 20653 hardcode_into_libs=yes 20654 dynamic_linker="$host_os dld.sl" 20655 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 20656 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 20657 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20658 soname_spec='$libname$release$shared_ext$major' 20659 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 20660 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 20661 ;; 20662 *) 20663 shrext_cmds='.sl' 20664 dynamic_linker="$host_os dld.sl" 20665 shlibpath_var=SHLIB_PATH 20666 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 20667 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20668 soname_spec='$libname$release$shared_ext$major' 20669 ;; 20670 esac 20671 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 20672 postinstall_cmds='chmod 555 $lib' 20673 # or fails outright, so override atomically: 20674 install_override_mode=555 20675 ;; 20676 20677interix[3-9]*) 20678 version_type=linux # correct to gnu/linux during the next big refactor 20679 need_lib_prefix=no 20680 need_version=no 20681 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20682 soname_spec='$libname$release$shared_ext$major' 20683 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 20684 shlibpath_var=LD_LIBRARY_PATH 20685 shlibpath_overrides_runpath=no 20686 hardcode_into_libs=yes 20687 ;; 20688 20689irix5* | irix6* | nonstopux*) 20690 case $host_os in 20691 nonstopux*) version_type=nonstopux ;; 20692 *) 20693 if test yes = "$lt_cv_prog_gnu_ld"; then 20694 version_type=linux # correct to gnu/linux during the next big refactor 20695 else 20696 version_type=irix 20697 fi ;; 20698 esac 20699 need_lib_prefix=no 20700 need_version=no 20701 soname_spec='$libname$release$shared_ext$major' 20702 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 20703 case $host_os in 20704 irix5* | nonstopux*) 20705 libsuff= shlibsuff= 20706 ;; 20707 *) 20708 case $LD in # libtool.m4 will add one of these switches to LD 20709 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 20710 libsuff= shlibsuff= libmagic=32-bit;; 20711 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 20712 libsuff=32 shlibsuff=N32 libmagic=N32;; 20713 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 20714 libsuff=64 shlibsuff=64 libmagic=64-bit;; 20715 *) libsuff= shlibsuff= libmagic=never-match;; 20716 esac 20717 ;; 20718 esac 20719 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 20720 shlibpath_overrides_runpath=no 20721 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 20722 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 20723 hardcode_into_libs=yes 20724 ;; 20725 20726# No shared lib support for Linux oldld, aout, or coff. 20727linux*oldld* | linux*aout* | linux*coff*) 20728 dynamic_linker=no 20729 ;; 20730 20731linux*android*) 20732 version_type=none # Android doesn't support versioned libraries. 20733 need_lib_prefix=no 20734 need_version=no 20735 library_names_spec='$libname$release$shared_ext' 20736 soname_spec='$libname$release$shared_ext' 20737 finish_cmds= 20738 shlibpath_var=LD_LIBRARY_PATH 20739 shlibpath_overrides_runpath=yes 20740 20741 # This implies no fast_install, which is unacceptable. 20742 # Some rework will be needed to allow for fast_install 20743 # before this can be enabled. 20744 hardcode_into_libs=yes 20745 20746 dynamic_linker='Android linker' 20747 # Don't embed -rpath directories since the linker doesn't support them. 20748 hardcode_libdir_flag_spec_FC='-L$libdir' 20749 ;; 20750 20751# This must be glibc/ELF. 20752linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 20753 version_type=linux # correct to gnu/linux during the next big refactor 20754 need_lib_prefix=no 20755 need_version=no 20756 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20757 soname_spec='$libname$release$shared_ext$major' 20758 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 20759 shlibpath_var=LD_LIBRARY_PATH 20760 shlibpath_overrides_runpath=no 20761 20762 # Some binutils ld are patched to set DT_RUNPATH 20763 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 20764 $as_echo_n "(cached) " >&6 20765else 20766 lt_cv_shlibpath_overrides_runpath=no 20767 save_LDFLAGS=$LDFLAGS 20768 save_libdir=$libdir 20769 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \ 20770 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\"" 20771 cat > conftest.$ac_ext <<_ACEOF 20772 program main 20773 20774 end 20775_ACEOF 20776if ac_fn_fc_try_link "$LINENO"; then : 20777 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 20778 lt_cv_shlibpath_overrides_runpath=yes 20779fi 20780fi 20781rm -f core conftest.err conftest.$ac_objext \ 20782 conftest$ac_exeext conftest.$ac_ext 20783 LDFLAGS=$save_LDFLAGS 20784 libdir=$save_libdir 20785 20786fi 20787 20788 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 20789 20790 # This implies no fast_install, which is unacceptable. 20791 # Some rework will be needed to allow for fast_install 20792 # before this can be enabled. 20793 hardcode_into_libs=yes 20794 20795 # Ideally, we could use ldconfig to report *all* directores which are 20796 # searched for libraries, however this is still not possible. Aside from not 20797 # being certain /sbin/ldconfig is available, command 20798 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 20799 # even though it is searched at run-time. Try to do the best guess by 20800 # appending ld.so.conf contents (and includes) to the search path. 20801 if test -f /etc/ld.so.conf; then 20802 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' ' '` 20803 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 20804 fi 20805 20806 # We used to test for /lib/ld.so.1 and disable shared libraries on 20807 # powerpc, because MkLinux only supported shared libraries with the 20808 # GNU dynamic linker. Since this was broken with cross compilers, 20809 # most powerpc-linux boxes support dynamic linking these days and 20810 # people can always --disable-shared, the test was removed, and we 20811 # assume the GNU/Linux dynamic linker is in use. 20812 dynamic_linker='GNU/Linux ld.so' 20813 ;; 20814 20815netbsd*) 20816 version_type=sunos 20817 need_lib_prefix=no 20818 need_version=no 20819 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 20820 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 20821 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 20822 dynamic_linker='NetBSD (a.out) ld.so' 20823 else 20824 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20825 soname_spec='$libname$release$shared_ext$major' 20826 dynamic_linker='NetBSD ld.elf_so' 20827 fi 20828 shlibpath_var=LD_LIBRARY_PATH 20829 shlibpath_overrides_runpath=yes 20830 hardcode_into_libs=yes 20831 ;; 20832 20833newsos6) 20834 version_type=linux # correct to gnu/linux during the next big refactor 20835 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20836 shlibpath_var=LD_LIBRARY_PATH 20837 shlibpath_overrides_runpath=yes 20838 ;; 20839 20840*nto* | *qnx*) 20841 version_type=qnx 20842 need_lib_prefix=no 20843 need_version=no 20844 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20845 soname_spec='$libname$release$shared_ext$major' 20846 shlibpath_var=LD_LIBRARY_PATH 20847 shlibpath_overrides_runpath=no 20848 hardcode_into_libs=yes 20849 dynamic_linker='ldqnx.so' 20850 ;; 20851 20852openbsd* | bitrig*) 20853 version_type=sunos 20854 sys_lib_dlsearch_path_spec=/usr/lib 20855 need_lib_prefix=no 20856 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 20857 need_version=no 20858 else 20859 need_version=yes 20860 fi 20861 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 20862 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 20863 shlibpath_var=LD_LIBRARY_PATH 20864 shlibpath_overrides_runpath=yes 20865 ;; 20866 20867os2*) 20868 libname_spec='$name' 20869 version_type=windows 20870 shrext_cmds=.dll 20871 need_version=no 20872 need_lib_prefix=no 20873 # OS/2 can only load a DLL with a base name of 8 characters or less. 20874 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 20875 v=$($ECHO $release$versuffix | tr -d .-); 20876 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 20877 $ECHO $n$v`$shared_ext' 20878 library_names_spec='${libname}_dll.$libext' 20879 dynamic_linker='OS/2 ld.exe' 20880 shlibpath_var=BEGINLIBPATH 20881 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 20882 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 20883 postinstall_cmds='base_file=`basename \$file`~ 20884 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 20885 dldir=$destdir/`dirname \$dlpath`~ 20886 test -d \$dldir || mkdir -p \$dldir~ 20887 $install_prog $dir/$dlname \$dldir/$dlname~ 20888 chmod a+x \$dldir/$dlname~ 20889 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 20890 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 20891 fi' 20892 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 20893 dlpath=$dir/\$dldll~ 20894 $RM \$dlpath' 20895 ;; 20896 20897osf3* | osf4* | osf5*) 20898 version_type=osf 20899 need_lib_prefix=no 20900 need_version=no 20901 soname_spec='$libname$release$shared_ext$major' 20902 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20903 shlibpath_var=LD_LIBRARY_PATH 20904 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 20905 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 20906 ;; 20907 20908rdos*) 20909 dynamic_linker=no 20910 ;; 20911 20912solaris*) 20913 version_type=linux # correct to gnu/linux during the next big refactor 20914 need_lib_prefix=no 20915 need_version=no 20916 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20917 soname_spec='$libname$release$shared_ext$major' 20918 shlibpath_var=LD_LIBRARY_PATH 20919 shlibpath_overrides_runpath=yes 20920 hardcode_into_libs=yes 20921 # ldd complains unless libraries are executable 20922 postinstall_cmds='chmod +x $lib' 20923 ;; 20924 20925sunos4*) 20926 version_type=sunos 20927 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 20928 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 20929 shlibpath_var=LD_LIBRARY_PATH 20930 shlibpath_overrides_runpath=yes 20931 if test yes = "$with_gnu_ld"; then 20932 need_lib_prefix=no 20933 fi 20934 need_version=yes 20935 ;; 20936 20937sysv4 | sysv4.3*) 20938 version_type=linux # correct to gnu/linux during the next big refactor 20939 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20940 soname_spec='$libname$release$shared_ext$major' 20941 shlibpath_var=LD_LIBRARY_PATH 20942 case $host_vendor in 20943 sni) 20944 shlibpath_overrides_runpath=no 20945 need_lib_prefix=no 20946 runpath_var=LD_RUN_PATH 20947 ;; 20948 siemens) 20949 need_lib_prefix=no 20950 ;; 20951 motorola) 20952 need_lib_prefix=no 20953 need_version=no 20954 shlibpath_overrides_runpath=no 20955 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 20956 ;; 20957 esac 20958 ;; 20959 20960sysv4*MP*) 20961 if test -d /usr/nec; then 20962 version_type=linux # correct to gnu/linux during the next big refactor 20963 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 20964 soname_spec='$libname$shared_ext.$major' 20965 shlibpath_var=LD_LIBRARY_PATH 20966 fi 20967 ;; 20968 20969sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 20970 version_type=sco 20971 need_lib_prefix=no 20972 need_version=no 20973 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 20974 soname_spec='$libname$release$shared_ext$major' 20975 shlibpath_var=LD_LIBRARY_PATH 20976 shlibpath_overrides_runpath=yes 20977 hardcode_into_libs=yes 20978 if test yes = "$with_gnu_ld"; then 20979 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 20980 else 20981 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 20982 case $host_os in 20983 sco3.2v5*) 20984 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 20985 ;; 20986 esac 20987 fi 20988 sys_lib_dlsearch_path_spec='/usr/lib' 20989 ;; 20990 20991tpf*) 20992 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 20993 version_type=linux # correct to gnu/linux during the next big refactor 20994 need_lib_prefix=no 20995 need_version=no 20996 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20997 shlibpath_var=LD_LIBRARY_PATH 20998 shlibpath_overrides_runpath=no 20999 hardcode_into_libs=yes 21000 ;; 21001 21002uts4*) 21003 version_type=linux # correct to gnu/linux during the next big refactor 21004 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21005 soname_spec='$libname$release$shared_ext$major' 21006 shlibpath_var=LD_LIBRARY_PATH 21007 ;; 21008 21009*) 21010 dynamic_linker=no 21011 ;; 21012esac 21013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 21014$as_echo "$dynamic_linker" >&6; } 21015test no = "$dynamic_linker" && can_build_shared=no 21016 21017variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 21018if test yes = "$GCC"; then 21019 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 21020fi 21021 21022if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 21023 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 21024fi 21025 21026if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 21027 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 21028fi 21029 21030# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 21031configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 21032 21033# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 21034func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 21035 21036# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 21037configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 21038 21039 21040 21041 21042 21043 21044 21045 21046 21047 21048 21049 21050 21051 21052 21053 21054 21055 21056 21057 21058 21059 21060 21061 21062 21063 21064 21065 21066 21067 21068 21069 21070 21071 21072 21073 21074 21075 21076 21077 21078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 21079$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 21080hardcode_action_FC= 21081if test -n "$hardcode_libdir_flag_spec_FC" || 21082 test -n "$runpath_var_FC" || 21083 test yes = "$hardcode_automatic_FC"; then 21084 21085 # We can hardcode non-existent directories. 21086 if test no != "$hardcode_direct_FC" && 21087 # If the only mechanism to avoid hardcoding is shlibpath_var, we 21088 # have to relink, otherwise we might link with an installed library 21089 # when we should be linking with a yet-to-be-installed one 21090 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" && 21091 test no != "$hardcode_minus_L_FC"; then 21092 # Linking always hardcodes the temporary library directory. 21093 hardcode_action_FC=relink 21094 else 21095 # We can link without hardcoding, and we can hardcode nonexisting dirs. 21096 hardcode_action_FC=immediate 21097 fi 21098else 21099 # We cannot hardcode anything, or else we can only hardcode existing 21100 # directories. 21101 hardcode_action_FC=unsupported 21102fi 21103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5 21104$as_echo "$hardcode_action_FC" >&6; } 21105 21106if test relink = "$hardcode_action_FC" || 21107 test yes = "$inherit_rpath_FC"; then 21108 # Fast installation is not supported 21109 enable_fast_install=no 21110elif test yes = "$shlibpath_overrides_runpath" || 21111 test no = "$enable_shared"; then 21112 # Fast installation is not necessary 21113 enable_fast_install=needless 21114fi 21115 21116 21117 21118 21119 21120 21121 21122 fi # test -n "$compiler" 21123 21124 GCC=$lt_save_GCC 21125 CC=$lt_save_CC 21126 CFLAGS=$lt_save_CFLAGS 21127fi # test yes != "$_lt_disable_FC" 21128 21129ac_ext=c 21130ac_cpp='$CPP $CPPFLAGS' 21131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21133ac_compiler_gnu=$ac_cv_c_compiler_gnu 21134 21135 21136 21137 21138 21139 21140 21141 21142 21143 21144 21145 ac_config_commands="$ac_config_commands libtool" 21146 21147 21148 21149 21150# Only expand once: 21151 21152 21153 21154{ $as_echo "$as_me:${as_lineno-$LINENO}: finding other utilities" >&5 21155$as_echo "$as_me: finding other utilities" >&6;} 21156 21157# Find the install program. 21158 21159 21160{ $as_echo "$as_me:${as_lineno-$LINENO}: trying to set fortran flags for this platform" >&5 21161$as_echo "$as_me: trying to set fortran flags for this platform" >&6;} 21162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what FC is set to" >&5 21163$as_echo_n "checking what FC is set to... " >&6; } 21164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 21165$as_echo "$FC" >&6; } 21166 21167# Check to see if any macros must be set to enable large (>2GB) files. 21168# Check whether --enable-largefile was given. 21169if test "${enable_largefile+set}" = set; then : 21170 enableval=$enable_largefile; 21171fi 21172 21173if test "$enable_largefile" != no; then 21174 21175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 21176$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 21177if ${ac_cv_sys_largefile_CC+:} false; then : 21178 $as_echo_n "(cached) " >&6 21179else 21180 ac_cv_sys_largefile_CC=no 21181 if test "$GCC" != yes; then 21182 ac_save_CC=$CC 21183 while :; do 21184 # IRIX 6.2 and later do not support large files by default, 21185 # so use the C compiler's -n32 option if that helps. 21186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21187/* end confdefs.h. */ 21188#include <sys/types.h> 21189 /* Check that off_t can represent 2**63 - 1 correctly. 21190 We can't simply define LARGE_OFF_T to be 9223372036854775807, 21191 since some C++ compilers masquerading as C compilers 21192 incorrectly reject 9223372036854775807. */ 21193#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 21194 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 21195 && LARGE_OFF_T % 2147483647 == 1) 21196 ? 1 : -1]; 21197int 21198main () 21199{ 21200 21201 ; 21202 return 0; 21203} 21204_ACEOF 21205 if ac_fn_c_try_compile "$LINENO"; then : 21206 break 21207fi 21208rm -f core conftest.err conftest.$ac_objext 21209 CC="$CC -n32" 21210 if ac_fn_c_try_compile "$LINENO"; then : 21211 ac_cv_sys_largefile_CC=' -n32'; break 21212fi 21213rm -f core conftest.err conftest.$ac_objext 21214 break 21215 done 21216 CC=$ac_save_CC 21217 rm -f conftest.$ac_ext 21218 fi 21219fi 21220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 21221$as_echo "$ac_cv_sys_largefile_CC" >&6; } 21222 if test "$ac_cv_sys_largefile_CC" != no; then 21223 CC=$CC$ac_cv_sys_largefile_CC 21224 fi 21225 21226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 21227$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 21228if ${ac_cv_sys_file_offset_bits+:} false; then : 21229 $as_echo_n "(cached) " >&6 21230else 21231 while :; do 21232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21233/* end confdefs.h. */ 21234#include <sys/types.h> 21235 /* Check that off_t can represent 2**63 - 1 correctly. 21236 We can't simply define LARGE_OFF_T to be 9223372036854775807, 21237 since some C++ compilers masquerading as C compilers 21238 incorrectly reject 9223372036854775807. */ 21239#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 21240 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 21241 && LARGE_OFF_T % 2147483647 == 1) 21242 ? 1 : -1]; 21243int 21244main () 21245{ 21246 21247 ; 21248 return 0; 21249} 21250_ACEOF 21251if ac_fn_c_try_compile "$LINENO"; then : 21252 ac_cv_sys_file_offset_bits=no; break 21253fi 21254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21256/* end confdefs.h. */ 21257#define _FILE_OFFSET_BITS 64 21258#include <sys/types.h> 21259 /* Check that off_t can represent 2**63 - 1 correctly. 21260 We can't simply define LARGE_OFF_T to be 9223372036854775807, 21261 since some C++ compilers masquerading as C compilers 21262 incorrectly reject 9223372036854775807. */ 21263#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 21264 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 21265 && LARGE_OFF_T % 2147483647 == 1) 21266 ? 1 : -1]; 21267int 21268main () 21269{ 21270 21271 ; 21272 return 0; 21273} 21274_ACEOF 21275if ac_fn_c_try_compile "$LINENO"; then : 21276 ac_cv_sys_file_offset_bits=64; break 21277fi 21278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21279 ac_cv_sys_file_offset_bits=unknown 21280 break 21281done 21282fi 21283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 21284$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 21285case $ac_cv_sys_file_offset_bits in #( 21286 no | unknown) ;; 21287 *) 21288cat >>confdefs.h <<_ACEOF 21289#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 21290_ACEOF 21291;; 21292esac 21293rm -rf conftest* 21294 if test $ac_cv_sys_file_offset_bits = unknown; then 21295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 21296$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 21297if ${ac_cv_sys_large_files+:} false; then : 21298 $as_echo_n "(cached) " >&6 21299else 21300 while :; do 21301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21302/* end confdefs.h. */ 21303#include <sys/types.h> 21304 /* Check that off_t can represent 2**63 - 1 correctly. 21305 We can't simply define LARGE_OFF_T to be 9223372036854775807, 21306 since some C++ compilers masquerading as C compilers 21307 incorrectly reject 9223372036854775807. */ 21308#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 21309 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 21310 && LARGE_OFF_T % 2147483647 == 1) 21311 ? 1 : -1]; 21312int 21313main () 21314{ 21315 21316 ; 21317 return 0; 21318} 21319_ACEOF 21320if ac_fn_c_try_compile "$LINENO"; then : 21321 ac_cv_sys_large_files=no; break 21322fi 21323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21325/* end confdefs.h. */ 21326#define _LARGE_FILES 1 21327#include <sys/types.h> 21328 /* Check that off_t can represent 2**63 - 1 correctly. 21329 We can't simply define LARGE_OFF_T to be 9223372036854775807, 21330 since some C++ compilers masquerading as C compilers 21331 incorrectly reject 9223372036854775807. */ 21332#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 21333 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 21334 && LARGE_OFF_T % 2147483647 == 1) 21335 ? 1 : -1]; 21336int 21337main () 21338{ 21339 21340 ; 21341 return 0; 21342} 21343_ACEOF 21344if ac_fn_c_try_compile "$LINENO"; then : 21345 ac_cv_sys_large_files=1; break 21346fi 21347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21348 ac_cv_sys_large_files=unknown 21349 break 21350done 21351fi 21352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 21353$as_echo "$ac_cv_sys_large_files" >&6; } 21354case $ac_cv_sys_large_files in #( 21355 no | unknown) ;; 21356 *) 21357cat >>confdefs.h <<_ACEOF 21358#define _LARGE_FILES $ac_cv_sys_large_files 21359_ACEOF 21360;; 21361esac 21362rm -rf conftest* 21363 fi 21364 21365 21366fi 21367 21368 21369# This will test the f77 compiler, as well as check some fortran types. 21370if test "$enable_fortran_type_check" = yes; then 21371 21372 case "${NM-unset}" in 21373 unset) for ac_prog in nm 21374do 21375 # Extract the first word of "$ac_prog", so it can be a program name with args. 21376set dummy $ac_prog; ac_word=$2 21377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21378$as_echo_n "checking for $ac_word... " >&6; } 21379if ${ac_cv_prog_NM+:} false; then : 21380 $as_echo_n "(cached) " >&6 21381else 21382 if test -n "$NM"; then 21383 ac_cv_prog_NM="$NM" # Let the user override the test. 21384else 21385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21386for as_dir in $PATH 21387do 21388 IFS=$as_save_IFS 21389 test -z "$as_dir" && as_dir=. 21390 for ac_exec_ext in '' $ac_executable_extensions; do 21391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21392 ac_cv_prog_NM="$ac_prog" 21393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21394 break 2 21395 fi 21396done 21397 done 21398IFS=$as_save_IFS 21399 21400fi 21401fi 21402NM=$ac_cv_prog_NM 21403if test -n "$NM"; then 21404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 21405$as_echo "$NM" >&6; } 21406else 21407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21408$as_echo "no" >&6; } 21409fi 21410 21411 21412 test -n "$NM" && break 21413done 21414test -n "$NM" || NM="nm" 21415 ;; 21416 *) for ac_prog in $NM nm 21417do 21418 # Extract the first word of "$ac_prog", so it can be a program name with args. 21419set dummy $ac_prog; ac_word=$2 21420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21421$as_echo_n "checking for $ac_word... " >&6; } 21422if ${ac_cv_prog_NM+:} false; then : 21423 $as_echo_n "(cached) " >&6 21424else 21425 if test -n "$NM"; then 21426 ac_cv_prog_NM="$NM" # Let the user override the test. 21427else 21428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21429for as_dir in $PATH 21430do 21431 IFS=$as_save_IFS 21432 test -z "$as_dir" && as_dir=. 21433 for ac_exec_ext in '' $ac_executable_extensions; do 21434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21435 ac_cv_prog_NM="$ac_prog" 21436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21437 break 2 21438 fi 21439done 21440 done 21441IFS=$as_save_IFS 21442 21443fi 21444fi 21445NM=$ac_cv_prog_NM 21446if test -n "$NM"; then 21447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 21448$as_echo "$NM" >&6; } 21449else 21450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21451$as_echo "no" >&6; } 21452fi 21453 21454 21455 test -n "$NM" && break 21456done 21457test -n "$NM" || NM="nm" 21458 ;; 21459 esac 21460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking nm flags" >&5 21461$as_echo_n "checking nm flags... " >&6; } 21462 case "${NMFLAGS-unset}" in 21463 unset) NMFLAGS= ;; 21464 esac 21465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMFLAGS" >&5 21466$as_echo "$NMFLAGS" >&6; } 21467 21468 21469 21470# AC_REQUIRE([UD_PROG_FC]) 21471 case "$FC" in 21472 '') ;; 21473 *) 21474 21475 21476 21477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C-equivalent to Fortran routine \"SUB\"" >&5 21478$as_echo_n "checking for C-equivalent to Fortran routine \"SUB\"... " >&6; } 21479 cat >conftest.f <<\EOF 21480 call sub() 21481 end 21482EOF 21483 doit='$FC -c ${FFLAGS} conftest.f' 21484 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 21485 (eval $doit) 2>&5 21486 ac_status=$? 21487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21488 test $ac_status = 0; }; then 21489 FCALLSCSUB=`$NM $NMFLAGS conftest.o | awk ' 21490 /SUB_/{print "SUB_";exit} 21491 /SUB/ {print "SUB"; exit} 21492 /sub_/{print "sub_";exit} 21493 /sub/ {print "sub"; exit}'` 21494 case "$FCALLSCSUB" in 21495 '') as_fn_error $? "not found" "$LINENO" 5 21496 ;; 21497 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FCALLSCSUB" >&5 21498$as_echo "$FCALLSCSUB" >&6; } 21499 ;; 21500 esac 21501 else 21502 as_fn_error $? "Could not compile conftest.f" "$LINENO" 5 21503 fi 21504 rm -f conftest* 21505 ;; 21506 esac 21507 21508 21509# AC_REQUIRE([UD_PROG_FC]) 21510 case "$FC" in 21511 '') 21512 ;; 21513 *) 21514 21515 21516 for ftype in byte integer*1 "integer(kind=1)" "integer(selected_int_kind(2))"; do 21517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran \"$ftype\"" >&5 21518$as_echo_n "checking for Fortran \"$ftype\"... " >&6; } 21519 cat >conftest.f <<EOF 21520 subroutine sub(value) 21521 $ftype value 21522 end 21523EOF 21524 doit='$FC -c ${FFLAGS} conftest.f' 21525 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 21526 (eval $doit) 2>&5 21527 ac_status=$? 21528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21529 test $ac_status = 0; }; then 21530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21531$as_echo "yes" >&6; } 21532 NF_INT1_T=$ftype 21533 21534cat >>confdefs.h <<_ACEOF 21535#define NF_INT1_T $ftype 21536_ACEOF 21537 21538 break 21539 else 21540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21541$as_echo "no" >&6; } 21542 fi 21543 done 21544 rm -f conftest* 21545 21546 21547 for ftype in integer*2 "integer(kind=2)" "integer(selected_int_kind(4))"; do 21548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran \"$ftype\"" >&5 21549$as_echo_n "checking for Fortran \"$ftype\"... " >&6; } 21550 cat >conftest.f <<EOF 21551 subroutine sub(value) 21552 $ftype value 21553 end 21554EOF 21555 doit='$FC -c ${FFLAGS} conftest.f' 21556 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 21557 (eval $doit) 2>&5 21558 ac_status=$? 21559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21560 test $ac_status = 0; }; then 21561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21562$as_echo "yes" >&6; } 21563 NF_INT2_T=$ftype 21564 21565cat >>confdefs.h <<_ACEOF 21566#define NF_INT2_T $ftype 21567_ACEOF 21568 21569 break 21570 else 21571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21572$as_echo "no" >&6; } 21573 fi 21574 done 21575 rm -f conftest* 21576 21577 21578 for ftype in integer*8 "integer(kind=8)" "integer(selected_int_kind(18))"; do 21579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran \"$ftype\"" >&5 21580$as_echo_n "checking for Fortran \"$ftype\"... " >&6; } 21581 cat >conftest.f <<EOF 21582 subroutine sub(value) 21583 $ftype value 21584 end 21585EOF 21586 doit='$FC -c ${FFLAGS} conftest.f' 21587 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 21588 (eval $doit) 2>&5 21589 ac_status=$? 21590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21591 test $ac_status = 0; }; then 21592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21593$as_echo "yes" >&6; } 21594 NF_INT8_T=$ftype 21595 21596cat >>confdefs.h <<_ACEOF 21597#define NF_INT8_T $ftype 21598_ACEOF 21599 21600 break 21601 else 21602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21603$as_echo "no" >&6; } 21604 fi 21605 done 21606 rm -f conftest* 21607 21608 21609 case "${NF_INT1_T}" in 21610 '') ;; 21611 *) 21612 cat >conftestf.f <<EOF 21613 $NF_INT1_T values(4) 21614 data values /-1, -2, -3, -4/ 21615 call sub(values) 21616 end 21617EOF 21618 for ctype in "signed char"; do 21619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran \"$NF_INT1_T\" is C \"$ctype\"" >&5 21620$as_echo_n "checking if Fortran \"$NF_INT1_T\" is C \"$ctype\"... " >&6; } 21621 cat >conftest.c <<EOF 21622 #include <stdlib.h> 21623 void $FCALLSCSUB(values) 21624 $ctype values[4]; 21625 { 21626 exit(values[1] != -2 || values[2] != -3); 21627 } 21628EOF 21629 doit='$CC -c ${CPPFLAGS} ${CFLAGS} conftest.c' 21630 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 21631 (eval $doit) 2>&5 21632 ac_status=$? 21633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21634 test $ac_status = 0; }; then 21635 doit='$FC ${FFLAGS} -c conftestf.f' 21636 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 21637 (eval $doit) 2>&5 21638 ac_status=$? 21639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21640 test $ac_status = 0; }; then 21641 doit='$FC -o conftest ${FFLAGS} ${LDFLAGS} conftestf.o conftest.o ${FLIBS} ${LIBS}' 21642 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 21643 (eval $doit) 2>&5 21644 ac_status=$? 21645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21646 test $ac_status = 0; }; then 21647 doit=./conftest 21648 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 21649 (eval $doit) 2>&5 21650 ac_status=$? 21651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21652 test $ac_status = 0; }; then 21653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21654$as_echo "yes" >&6; } 21655 cname=`echo $ctype | tr ' abcdefghijklmnopqrstuvwxyz' \ 21656 _ABCDEFGHIJKLMNOPQRSTUVWXYZ` 21657 21658cat >>confdefs.h <<_ACEOF 21659#define NF_INT1_IS_C_$cname 1 21660_ACEOF 21661 21662 break 21663 else 21664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21665$as_echo "no" >&6; } 21666 fi 21667 else 21668 as_fn_error $? "Could not link conftestf.o and conftest.o" "$LINENO" 5 21669 fi 21670 else 21671 as_fn_error $? "Could not compile conftestf.f" "$LINENO" 5 21672 fi 21673 else 21674 as_fn_error $? "Could not compile conftest.c" "$LINENO" 5 21675 fi 21676 done 21677 rm -f conftest* 21678 21679 21680 cat >conftestf.f <<EOF 21681 $NF_INT1_T values(4) 21682 data values /-1, -2, -3, -4/ 21683 call sub(values) 21684 end 21685EOF 21686 for ctype in "short"; do 21687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran \"$NF_INT1_T\" is C \"$ctype\"" >&5 21688$as_echo_n "checking if Fortran \"$NF_INT1_T\" is C \"$ctype\"... " >&6; } 21689 cat >conftest.c <<EOF 21690 #include <stdlib.h> 21691 void $FCALLSCSUB(values) 21692 $ctype values[4]; 21693 { 21694 exit(values[1] != -2 || values[2] != -3); 21695 } 21696EOF 21697 doit='$CC -c ${CPPFLAGS} ${CFLAGS} conftest.c' 21698 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 21699 (eval $doit) 2>&5 21700 ac_status=$? 21701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21702 test $ac_status = 0; }; then 21703 doit='$FC ${FFLAGS} -c conftestf.f' 21704 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 21705 (eval $doit) 2>&5 21706 ac_status=$? 21707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21708 test $ac_status = 0; }; then 21709 doit='$FC -o conftest ${FFLAGS} ${LDFLAGS} conftestf.o conftest.o ${FLIBS} ${LIBS}' 21710 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 21711 (eval $doit) 2>&5 21712 ac_status=$? 21713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21714 test $ac_status = 0; }; then 21715 doit=./conftest 21716 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 21717 (eval $doit) 2>&5 21718 ac_status=$? 21719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21720 test $ac_status = 0; }; then 21721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21722$as_echo "yes" >&6; } 21723 cname=`echo $ctype | tr ' abcdefghijklmnopqrstuvwxyz' \ 21724 _ABCDEFGHIJKLMNOPQRSTUVWXYZ` 21725 21726cat >>confdefs.h <<_ACEOF 21727#define NF_INT1_IS_C_$cname 1 21728_ACEOF 21729 21730 break 21731 else 21732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21733$as_echo "no" >&6; } 21734 fi 21735 else 21736 as_fn_error $? "Could not link conftestf.o and conftest.o" "$LINENO" 5 21737 fi 21738 else 21739 as_fn_error $? "Could not compile conftestf.f" "$LINENO" 5 21740 fi 21741 else 21742 as_fn_error $? "Could not compile conftest.c" "$LINENO" 5 21743 fi 21744 done 21745 rm -f conftest* 21746 21747 21748 cat >conftestf.f <<EOF 21749 $NF_INT1_T values(4) 21750 data values /-1, -2, -3, -4/ 21751 call sub(values) 21752 end 21753EOF 21754 for ctype in "int"; do 21755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran \"$NF_INT1_T\" is C \"$ctype\"" >&5 21756$as_echo_n "checking if Fortran \"$NF_INT1_T\" is C \"$ctype\"... " >&6; } 21757 cat >conftest.c <<EOF 21758 #include <stdlib.h> 21759 void $FCALLSCSUB(values) 21760 $ctype values[4]; 21761 { 21762 exit(values[1] != -2 || values[2] != -3); 21763 } 21764EOF 21765 doit='$CC -c ${CPPFLAGS} ${CFLAGS} conftest.c' 21766 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 21767 (eval $doit) 2>&5 21768 ac_status=$? 21769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21770 test $ac_status = 0; }; then 21771 doit='$FC ${FFLAGS} -c conftestf.f' 21772 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 21773 (eval $doit) 2>&5 21774 ac_status=$? 21775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21776 test $ac_status = 0; }; then 21777 doit='$FC -o conftest ${FFLAGS} ${LDFLAGS} conftestf.o conftest.o ${FLIBS} ${LIBS}' 21778 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 21779 (eval $doit) 2>&5 21780 ac_status=$? 21781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21782 test $ac_status = 0; }; then 21783 doit=./conftest 21784 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 21785 (eval $doit) 2>&5 21786 ac_status=$? 21787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21788 test $ac_status = 0; }; then 21789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21790$as_echo "yes" >&6; } 21791 cname=`echo $ctype | tr ' abcdefghijklmnopqrstuvwxyz' \ 21792 _ABCDEFGHIJKLMNOPQRSTUVWXYZ` 21793 21794cat >>confdefs.h <<_ACEOF 21795#define NF_INT1_IS_C_$cname 1 21796_ACEOF 21797 21798 break 21799 else 21800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21801$as_echo "no" >&6; } 21802 fi 21803 else 21804 as_fn_error $? "Could not link conftestf.o and conftest.o" "$LINENO" 5 21805 fi 21806 else 21807 as_fn_error $? "Could not compile conftestf.f" "$LINENO" 5 21808 fi 21809 else 21810 as_fn_error $? "Could not compile conftest.c" "$LINENO" 5 21811 fi 21812 done 21813 rm -f conftest* 21814 21815 21816 cat >conftestf.f <<EOF 21817 $NF_INT1_T values(4) 21818 data values /-1, -2, -3, -4/ 21819 call sub(values) 21820 end 21821EOF 21822 for ctype in "long"; do 21823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran \"$NF_INT1_T\" is C \"$ctype\"" >&5 21824$as_echo_n "checking if Fortran \"$NF_INT1_T\" is C \"$ctype\"... " >&6; } 21825 cat >conftest.c <<EOF 21826 #include <stdlib.h> 21827 void $FCALLSCSUB(values) 21828 $ctype values[4]; 21829 { 21830 exit(values[1] != -2 || values[2] != -3); 21831 } 21832EOF 21833 doit='$CC -c ${CPPFLAGS} ${CFLAGS} conftest.c' 21834 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 21835 (eval $doit) 2>&5 21836 ac_status=$? 21837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21838 test $ac_status = 0; }; then 21839 doit='$FC ${FFLAGS} -c conftestf.f' 21840 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 21841 (eval $doit) 2>&5 21842 ac_status=$? 21843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21844 test $ac_status = 0; }; then 21845 doit='$FC -o conftest ${FFLAGS} ${LDFLAGS} conftestf.o conftest.o ${FLIBS} ${LIBS}' 21846 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 21847 (eval $doit) 2>&5 21848 ac_status=$? 21849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21850 test $ac_status = 0; }; then 21851 doit=./conftest 21852 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 21853 (eval $doit) 2>&5 21854 ac_status=$? 21855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21856 test $ac_status = 0; }; then 21857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21858$as_echo "yes" >&6; } 21859 cname=`echo $ctype | tr ' abcdefghijklmnopqrstuvwxyz' \ 21860 _ABCDEFGHIJKLMNOPQRSTUVWXYZ` 21861 21862cat >>confdefs.h <<_ACEOF 21863#define NF_INT1_IS_C_$cname 1 21864_ACEOF 21865 21866 break 21867 else 21868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21869$as_echo "no" >&6; } 21870 fi 21871 else 21872 as_fn_error $? "Could not link conftestf.o and conftest.o" "$LINENO" 5 21873 fi 21874 else 21875 as_fn_error $? "Could not compile conftestf.f" "$LINENO" 5 21876 fi 21877 else 21878 as_fn_error $? "Could not compile conftest.c" "$LINENO" 5 21879 fi 21880 done 21881 rm -f conftest* 21882 21883 ;; 21884 esac 21885 case "${NF_INT2_T}" in 21886 '') ;; 21887 *) 21888 cat >conftestf.f <<EOF 21889 $NF_INT2_T values(4) 21890 data values /-1, -2, -3, -4/ 21891 call sub(values) 21892 end 21893EOF 21894 for ctype in short; do 21895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran \"$NF_INT2_T\" is C \"$ctype\"" >&5 21896$as_echo_n "checking if Fortran \"$NF_INT2_T\" is C \"$ctype\"... " >&6; } 21897 cat >conftest.c <<EOF 21898 #include <stdlib.h> 21899 void $FCALLSCSUB(values) 21900 $ctype values[4]; 21901 { 21902 exit(values[1] != -2 || values[2] != -3); 21903 } 21904EOF 21905 doit='$CC -c ${CPPFLAGS} ${CFLAGS} conftest.c' 21906 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 21907 (eval $doit) 2>&5 21908 ac_status=$? 21909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21910 test $ac_status = 0; }; then 21911 doit='$FC ${FFLAGS} -c conftestf.f' 21912 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 21913 (eval $doit) 2>&5 21914 ac_status=$? 21915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21916 test $ac_status = 0; }; then 21917 doit='$FC -o conftest ${FFLAGS} ${LDFLAGS} conftestf.o conftest.o ${FLIBS} ${LIBS}' 21918 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 21919 (eval $doit) 2>&5 21920 ac_status=$? 21921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21922 test $ac_status = 0; }; then 21923 doit=./conftest 21924 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 21925 (eval $doit) 2>&5 21926 ac_status=$? 21927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21928 test $ac_status = 0; }; then 21929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21930$as_echo "yes" >&6; } 21931 cname=`echo $ctype | tr ' abcdefghijklmnopqrstuvwxyz' \ 21932 _ABCDEFGHIJKLMNOPQRSTUVWXYZ` 21933 21934cat >>confdefs.h <<_ACEOF 21935#define NF_INT2_IS_C_$cname 1 21936_ACEOF 21937 21938 break 21939 else 21940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21941$as_echo "no" >&6; } 21942 fi 21943 else 21944 as_fn_error $? "Could not link conftestf.o and conftest.o" "$LINENO" 5 21945 fi 21946 else 21947 as_fn_error $? "Could not compile conftestf.f" "$LINENO" 5 21948 fi 21949 else 21950 as_fn_error $? "Could not compile conftest.c" "$LINENO" 5 21951 fi 21952 done 21953 rm -f conftest* 21954 21955 21956 cat >conftestf.f <<EOF 21957 $NF_INT2_T values(4) 21958 data values /-1, -2, -3, -4/ 21959 call sub(values) 21960 end 21961EOF 21962 for ctype in int; do 21963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran \"$NF_INT2_T\" is C \"$ctype\"" >&5 21964$as_echo_n "checking if Fortran \"$NF_INT2_T\" is C \"$ctype\"... " >&6; } 21965 cat >conftest.c <<EOF 21966 #include <stdlib.h> 21967 void $FCALLSCSUB(values) 21968 $ctype values[4]; 21969 { 21970 exit(values[1] != -2 || values[2] != -3); 21971 } 21972EOF 21973 doit='$CC -c ${CPPFLAGS} ${CFLAGS} conftest.c' 21974 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 21975 (eval $doit) 2>&5 21976 ac_status=$? 21977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21978 test $ac_status = 0; }; then 21979 doit='$FC ${FFLAGS} -c conftestf.f' 21980 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 21981 (eval $doit) 2>&5 21982 ac_status=$? 21983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21984 test $ac_status = 0; }; then 21985 doit='$FC -o conftest ${FFLAGS} ${LDFLAGS} conftestf.o conftest.o ${FLIBS} ${LIBS}' 21986 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 21987 (eval $doit) 2>&5 21988 ac_status=$? 21989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21990 test $ac_status = 0; }; then 21991 doit=./conftest 21992 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 21993 (eval $doit) 2>&5 21994 ac_status=$? 21995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21996 test $ac_status = 0; }; then 21997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21998$as_echo "yes" >&6; } 21999 cname=`echo $ctype | tr ' abcdefghijklmnopqrstuvwxyz' \ 22000 _ABCDEFGHIJKLMNOPQRSTUVWXYZ` 22001 22002cat >>confdefs.h <<_ACEOF 22003#define NF_INT2_IS_C_$cname 1 22004_ACEOF 22005 22006 break 22007 else 22008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22009$as_echo "no" >&6; } 22010 fi 22011 else 22012 as_fn_error $? "Could not link conftestf.o and conftest.o" "$LINENO" 5 22013 fi 22014 else 22015 as_fn_error $? "Could not compile conftestf.f" "$LINENO" 5 22016 fi 22017 else 22018 as_fn_error $? "Could not compile conftest.c" "$LINENO" 5 22019 fi 22020 done 22021 rm -f conftest* 22022 22023 22024 cat >conftestf.f <<EOF 22025 $NF_INT2_T values(4) 22026 data values /-1, -2, -3, -4/ 22027 call sub(values) 22028 end 22029EOF 22030 for ctype in long; do 22031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran \"$NF_INT2_T\" is C \"$ctype\"" >&5 22032$as_echo_n "checking if Fortran \"$NF_INT2_T\" is C \"$ctype\"... " >&6; } 22033 cat >conftest.c <<EOF 22034 #include <stdlib.h> 22035 void $FCALLSCSUB(values) 22036 $ctype values[4]; 22037 { 22038 exit(values[1] != -2 || values[2] != -3); 22039 } 22040EOF 22041 doit='$CC -c ${CPPFLAGS} ${CFLAGS} conftest.c' 22042 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 22043 (eval $doit) 2>&5 22044 ac_status=$? 22045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22046 test $ac_status = 0; }; then 22047 doit='$FC ${FFLAGS} -c conftestf.f' 22048 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 22049 (eval $doit) 2>&5 22050 ac_status=$? 22051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22052 test $ac_status = 0; }; then 22053 doit='$FC -o conftest ${FFLAGS} ${LDFLAGS} conftestf.o conftest.o ${FLIBS} ${LIBS}' 22054 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 22055 (eval $doit) 2>&5 22056 ac_status=$? 22057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22058 test $ac_status = 0; }; then 22059 doit=./conftest 22060 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 22061 (eval $doit) 2>&5 22062 ac_status=$? 22063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22064 test $ac_status = 0; }; then 22065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22066$as_echo "yes" >&6; } 22067 cname=`echo $ctype | tr ' abcdefghijklmnopqrstuvwxyz' \ 22068 _ABCDEFGHIJKLMNOPQRSTUVWXYZ` 22069 22070cat >>confdefs.h <<_ACEOF 22071#define NF_INT2_IS_C_$cname 1 22072_ACEOF 22073 22074 break 22075 else 22076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22077$as_echo "no" >&6; } 22078 fi 22079 else 22080 as_fn_error $? "Could not link conftestf.o and conftest.o" "$LINENO" 5 22081 fi 22082 else 22083 as_fn_error $? "Could not compile conftestf.f" "$LINENO" 5 22084 fi 22085 else 22086 as_fn_error $? "Could not compile conftest.c" "$LINENO" 5 22087 fi 22088 done 22089 rm -f conftest* 22090 22091 ;; 22092 esac 22093 case "${NF_INT8_T}" in 22094 '') ;; 22095 *) 22096 cat >conftestf.f <<EOF 22097 $NF_INT8_T values(4) 22098 data values /-1, -2, -3, -4/ 22099 call sub(values) 22100 end 22101EOF 22102 for ctype in "short"; do 22103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran \"$NF_INT8_T\" is C \"$ctype\"" >&5 22104$as_echo_n "checking if Fortran \"$NF_INT8_T\" is C \"$ctype\"... " >&6; } 22105 cat >conftest.c <<EOF 22106 #include <stdlib.h> 22107 void $FCALLSCSUB(values) 22108 $ctype values[4]; 22109 { 22110 exit(values[1] != -2 || values[2] != -3); 22111 } 22112EOF 22113 doit='$CC -c ${CPPFLAGS} ${CFLAGS} conftest.c' 22114 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 22115 (eval $doit) 2>&5 22116 ac_status=$? 22117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22118 test $ac_status = 0; }; then 22119 doit='$FC ${FFLAGS} -c conftestf.f' 22120 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 22121 (eval $doit) 2>&5 22122 ac_status=$? 22123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22124 test $ac_status = 0; }; then 22125 doit='$FC -o conftest ${FFLAGS} ${LDFLAGS} conftestf.o conftest.o ${FLIBS} ${LIBS}' 22126 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 22127 (eval $doit) 2>&5 22128 ac_status=$? 22129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22130 test $ac_status = 0; }; then 22131 doit=./conftest 22132 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 22133 (eval $doit) 2>&5 22134 ac_status=$? 22135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22136 test $ac_status = 0; }; then 22137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22138$as_echo "yes" >&6; } 22139 cname=`echo $ctype | tr ' abcdefghijklmnopqrstuvwxyz' \ 22140 _ABCDEFGHIJKLMNOPQRSTUVWXYZ` 22141 22142cat >>confdefs.h <<_ACEOF 22143#define NF_INT8_IS_C_$cname 1 22144_ACEOF 22145 22146 break 22147 else 22148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22149$as_echo "no" >&6; } 22150 fi 22151 else 22152 as_fn_error $? "Could not link conftestf.o and conftest.o" "$LINENO" 5 22153 fi 22154 else 22155 as_fn_error $? "Could not compile conftestf.f" "$LINENO" 5 22156 fi 22157 else 22158 as_fn_error $? "Could not compile conftest.c" "$LINENO" 5 22159 fi 22160 done 22161 rm -f conftest* 22162 22163 22164 cat >conftestf.f <<EOF 22165 $NF_INT8_T values(4) 22166 data values /-1, -2, -3, -4/ 22167 call sub(values) 22168 end 22169EOF 22170 for ctype in "int"; do 22171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran \"$NF_INT8_T\" is C \"$ctype\"" >&5 22172$as_echo_n "checking if Fortran \"$NF_INT8_T\" is C \"$ctype\"... " >&6; } 22173 cat >conftest.c <<EOF 22174 #include <stdlib.h> 22175 void $FCALLSCSUB(values) 22176 $ctype values[4]; 22177 { 22178 exit(values[1] != -2 || values[2] != -3); 22179 } 22180EOF 22181 doit='$CC -c ${CPPFLAGS} ${CFLAGS} conftest.c' 22182 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 22183 (eval $doit) 2>&5 22184 ac_status=$? 22185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22186 test $ac_status = 0; }; then 22187 doit='$FC ${FFLAGS} -c conftestf.f' 22188 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 22189 (eval $doit) 2>&5 22190 ac_status=$? 22191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22192 test $ac_status = 0; }; then 22193 doit='$FC -o conftest ${FFLAGS} ${LDFLAGS} conftestf.o conftest.o ${FLIBS} ${LIBS}' 22194 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 22195 (eval $doit) 2>&5 22196 ac_status=$? 22197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22198 test $ac_status = 0; }; then 22199 doit=./conftest 22200 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 22201 (eval $doit) 2>&5 22202 ac_status=$? 22203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22204 test $ac_status = 0; }; then 22205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22206$as_echo "yes" >&6; } 22207 cname=`echo $ctype | tr ' abcdefghijklmnopqrstuvwxyz' \ 22208 _ABCDEFGHIJKLMNOPQRSTUVWXYZ` 22209 22210cat >>confdefs.h <<_ACEOF 22211#define NF_INT8_IS_C_$cname 1 22212_ACEOF 22213 22214 break 22215 else 22216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22217$as_echo "no" >&6; } 22218 fi 22219 else 22220 as_fn_error $? "Could not link conftestf.o and conftest.o" "$LINENO" 5 22221 fi 22222 else 22223 as_fn_error $? "Could not compile conftestf.f" "$LINENO" 5 22224 fi 22225 else 22226 as_fn_error $? "Could not compile conftest.c" "$LINENO" 5 22227 fi 22228 done 22229 rm -f conftest* 22230 22231 22232 cat >conftestf.f <<EOF 22233 $NF_INT8_T values(4) 22234 data values /-1, -2, -3, -4/ 22235 call sub(values) 22236 end 22237EOF 22238 for ctype in "long long"; do 22239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran \"$NF_INT8_T\" is C \"$ctype\"" >&5 22240$as_echo_n "checking if Fortran \"$NF_INT8_T\" is C \"$ctype\"... " >&6; } 22241 cat >conftest.c <<EOF 22242 #include <stdlib.h> 22243 void $FCALLSCSUB(values) 22244 $ctype values[4]; 22245 { 22246 exit(values[1] != -2 || values[2] != -3); 22247 } 22248EOF 22249 doit='$CC -c ${CPPFLAGS} ${CFLAGS} conftest.c' 22250 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 22251 (eval $doit) 2>&5 22252 ac_status=$? 22253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22254 test $ac_status = 0; }; then 22255 doit='$FC ${FFLAGS} -c conftestf.f' 22256 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 22257 (eval $doit) 2>&5 22258 ac_status=$? 22259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22260 test $ac_status = 0; }; then 22261 doit='$FC -o conftest ${FFLAGS} ${LDFLAGS} conftestf.o conftest.o ${FLIBS} ${LIBS}' 22262 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 22263 (eval $doit) 2>&5 22264 ac_status=$? 22265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22266 test $ac_status = 0; }; then 22267 doit=./conftest 22268 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 22269 (eval $doit) 2>&5 22270 ac_status=$? 22271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22272 test $ac_status = 0; }; then 22273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22274$as_echo "yes" >&6; } 22275 cname=`echo $ctype | tr ' abcdefghijklmnopqrstuvwxyz' \ 22276 _ABCDEFGHIJKLMNOPQRSTUVWXYZ` 22277 22278cat >>confdefs.h <<_ACEOF 22279#define NF_INT8_IS_C_$cname 1 22280_ACEOF 22281 22282 break 22283 else 22284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22285$as_echo "no" >&6; } 22286 fi 22287 else 22288 as_fn_error $? "Could not link conftestf.o and conftest.o" "$LINENO" 5 22289 fi 22290 else 22291 as_fn_error $? "Could not compile conftestf.f" "$LINENO" 5 22292 fi 22293 else 22294 as_fn_error $? "Could not compile conftest.c" "$LINENO" 5 22295 fi 22296 done 22297 rm -f conftest* 22298 22299 ;; 22300 esac 22301 22302 cat >conftestf.f <<EOF 22303 integer values(4) 22304 data values /-1, -2, -3, -4/ 22305 call sub(values) 22306 end 22307EOF 22308 for ctype in int long; do 22309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran \"integer\" is C \"$ctype\"" >&5 22310$as_echo_n "checking if Fortran \"integer\" is C \"$ctype\"... " >&6; } 22311 cat >conftest.c <<EOF 22312 #include <stdlib.h> 22313 void $FCALLSCSUB(values) 22314 $ctype values[4]; 22315 { 22316 exit(values[1] != -2 || values[2] != -3); 22317 } 22318EOF 22319 doit='$CC -c ${CPPFLAGS} ${CFLAGS} conftest.c' 22320 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 22321 (eval $doit) 2>&5 22322 ac_status=$? 22323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22324 test $ac_status = 0; }; then 22325 doit='$FC ${FFLAGS} -c conftestf.f' 22326 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 22327 (eval $doit) 2>&5 22328 ac_status=$? 22329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22330 test $ac_status = 0; }; then 22331 doit='$FC -o conftest ${FFLAGS} ${LDFLAGS} conftestf.o conftest.o ${FLIBS} ${LIBS}' 22332 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 22333 (eval $doit) 2>&5 22334 ac_status=$? 22335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22336 test $ac_status = 0; }; then 22337 doit=./conftest 22338 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 22339 (eval $doit) 2>&5 22340 ac_status=$? 22341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22342 test $ac_status = 0; }; then 22343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22344$as_echo "yes" >&6; } 22345 cname=`echo $ctype | tr ' abcdefghijklmnopqrstuvwxyz' \ 22346 _ABCDEFGHIJKLMNOPQRSTUVWXYZ` 22347 22348cat >>confdefs.h <<_ACEOF 22349#define NF_INT_IS_C_$cname 1 22350_ACEOF 22351 22352 break 22353 else 22354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22355$as_echo "no" >&6; } 22356 fi 22357 else 22358 as_fn_error $? "Could not link conftestf.o and conftest.o" "$LINENO" 5 22359 fi 22360 else 22361 as_fn_error $? "Could not compile conftestf.f" "$LINENO" 5 22362 fi 22363 else 22364 as_fn_error $? "Could not compile conftest.c" "$LINENO" 5 22365 fi 22366 done 22367 rm -f conftest* 22368 22369 22370 cat >conftestf.f <<EOF 22371 real values(4) 22372 data values /-1, -2, -3, -4/ 22373 call sub(values) 22374 end 22375EOF 22376 for ctype in float double; do 22377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran \"real\" is C \"$ctype\"" >&5 22378$as_echo_n "checking if Fortran \"real\" is C \"$ctype\"... " >&6; } 22379 cat >conftest.c <<EOF 22380 #include <stdlib.h> 22381 void $FCALLSCSUB(values) 22382 $ctype values[4]; 22383 { 22384 exit(values[1] != -2 || values[2] != -3); 22385 } 22386EOF 22387 doit='$CC -c ${CPPFLAGS} ${CFLAGS} conftest.c' 22388 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 22389 (eval $doit) 2>&5 22390 ac_status=$? 22391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22392 test $ac_status = 0; }; then 22393 doit='$FC ${FFLAGS} -c conftestf.f' 22394 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 22395 (eval $doit) 2>&5 22396 ac_status=$? 22397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22398 test $ac_status = 0; }; then 22399 doit='$FC -o conftest ${FFLAGS} ${LDFLAGS} conftestf.o conftest.o ${FLIBS} ${LIBS}' 22400 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 22401 (eval $doit) 2>&5 22402 ac_status=$? 22403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22404 test $ac_status = 0; }; then 22405 doit=./conftest 22406 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 22407 (eval $doit) 2>&5 22408 ac_status=$? 22409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22410 test $ac_status = 0; }; then 22411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22412$as_echo "yes" >&6; } 22413 cname=`echo $ctype | tr ' abcdefghijklmnopqrstuvwxyz' \ 22414 _ABCDEFGHIJKLMNOPQRSTUVWXYZ` 22415 22416cat >>confdefs.h <<_ACEOF 22417#define NF_REAL_IS_C_$cname 1 22418_ACEOF 22419 22420 break 22421 else 22422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22423$as_echo "no" >&6; } 22424 fi 22425 else 22426 as_fn_error $? "Could not link conftestf.o and conftest.o" "$LINENO" 5 22427 fi 22428 else 22429 as_fn_error $? "Could not compile conftestf.f" "$LINENO" 5 22430 fi 22431 else 22432 as_fn_error $? "Could not compile conftest.c" "$LINENO" 5 22433 fi 22434 done 22435 rm -f conftest* 22436 22437 22438 cat >conftestf.f <<EOF 22439 doubleprecision values(4) 22440 data values /-1, -2, -3, -4/ 22441 call sub(values) 22442 end 22443EOF 22444 for ctype in double float; do 22445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran \"doubleprecision\" is C \"$ctype\"" >&5 22446$as_echo_n "checking if Fortran \"doubleprecision\" is C \"$ctype\"... " >&6; } 22447 cat >conftest.c <<EOF 22448 #include <stdlib.h> 22449 void $FCALLSCSUB(values) 22450 $ctype values[4]; 22451 { 22452 exit(values[1] != -2 || values[2] != -3); 22453 } 22454EOF 22455 doit='$CC -c ${CPPFLAGS} ${CFLAGS} conftest.c' 22456 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 22457 (eval $doit) 2>&5 22458 ac_status=$? 22459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22460 test $ac_status = 0; }; then 22461 doit='$FC ${FFLAGS} -c conftestf.f' 22462 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 22463 (eval $doit) 2>&5 22464 ac_status=$? 22465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22466 test $ac_status = 0; }; then 22467 doit='$FC -o conftest ${FFLAGS} ${LDFLAGS} conftestf.o conftest.o ${FLIBS} ${LIBS}' 22468 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 22469 (eval $doit) 2>&5 22470 ac_status=$? 22471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22472 test $ac_status = 0; }; then 22473 doit=./conftest 22474 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 22475 (eval $doit) 2>&5 22476 ac_status=$? 22477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22478 test $ac_status = 0; }; then 22479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22480$as_echo "yes" >&6; } 22481 cname=`echo $ctype | tr ' abcdefghijklmnopqrstuvwxyz' \ 22482 _ABCDEFGHIJKLMNOPQRSTUVWXYZ` 22483 22484cat >>confdefs.h <<_ACEOF 22485#define NF_DOUBLEPRECISION_IS_C_$cname 1 22486_ACEOF 22487 22488 break 22489 else 22490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22491$as_echo "no" >&6; } 22492 fi 22493 else 22494 as_fn_error $? "Could not link conftestf.o and conftest.o" "$LINENO" 5 22495 fi 22496 else 22497 as_fn_error $? "Could not compile conftestf.f" "$LINENO" 5 22498 fi 22499 else 22500 as_fn_error $? "Could not compile conftest.c" "$LINENO" 5 22501 fi 22502 done 22503 rm -f conftest* 22504 22505 22506 22507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran-equivalent to netCDF \"byte\"" >&5 22508$as_echo_n "checking for Fortran-equivalent to netCDF \"byte\"... " >&6; } 22509 for type in byte integer*1 "integer(kind=1)" "integer(selected_int_kind(2))" integer; do 22510 cat >conftest.f <<EOF 22511 $type foo 22512 end 22513EOF 22514 doit='$FC -c ${FFLAGS} conftest.f' 22515 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 22516 (eval $doit) 2>&5 22517 ac_status=$? 22518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22519 test $ac_status = 0; }; then 22520 break; 22521 fi 22522 done 22523 rm -f conftest.f conftest.o 22524 22525cat >>confdefs.h <<_ACEOF 22526#define NCBYTE_T $type 22527_ACEOF 22528 22529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $type" >&5 22530$as_echo "$type" >&6; } 22531 NCBYTE_T=$type 22532 22533 22534 22535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran-equivalent to netCDF \"short\"" >&5 22536$as_echo_n "checking for Fortran-equivalent to netCDF \"short\"... " >&6; } 22537 for type in integer*2 "integer(kind=2)" "integer(selected_int_kind(4))" integer; do 22538 cat >conftest.f <<EOF 22539 $type foo 22540 end 22541EOF 22542 doit='$FC -c ${FFLAGS} conftest.f' 22543 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 22544 (eval $doit) 2>&5 22545 ac_status=$? 22546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22547 test $ac_status = 0; }; then 22548 break; 22549 fi 22550 done 22551 rm -f conftest.f conftest.o 22552 22553cat >>confdefs.h <<_ACEOF 22554#define NCSHORT_T $type 22555_ACEOF 22556 22557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $type" >&5 22558$as_echo "$type" >&6; } 22559 NCSHORT_T=$type 22560 22561 22562 22563 22564 ;; 22565 esac 22566 22567 if test "x$ud_fc_failed" = xyes; then 22568 as_fn_error $? "F77 compiler doesn't work." "$LINENO" 5 22569 fi 22570else 22571 $as_echo "#define NCBYTE_T byte" >>confdefs.h 22572 22573 $as_echo "#define NCSHORT_T integer*2" >>confdefs.h 22574 22575 $as_echo "#define NF_INT1_T byte" >>confdefs.h 22576 22577 $as_echo "#define NF_INT2_T integer*2" >>confdefs.h 22578 22579 $as_echo "#define NF_INT8_T integer*8" >>confdefs.h 22580 22581 22582$as_echo "#define NF_INT1_IS_C_SIGNED_CHAR 1" >>confdefs.h 22583 22584 22585$as_echo "#define NF_INT2_IS_C_SHORT 1" >>confdefs.h 22586 22587 22588$as_echo "#define NF_INT_IS_C_INT 1" >>confdefs.h 22589 22590 22591$as_echo "#define NF_INT8_IS_C_LONG_LONG 1" >>confdefs.h 22592 22593 22594$as_echo "#define NF_REAL_IS_C_FLOAT 1" >>confdefs.h 22595 22596 22597$as_echo "#define NF_DOUBLEPRECISION_IS_C_DOUBLE 1" >>confdefs.h 22598 22599fi 22600 22601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types, headers, and functions" >&5 22602$as_echo "$as_me: checking types, headers, and functions" >&6;} 22603 22604# We must check for all these, because they may be used by the netCDF 22605# C library. 22606# Removing the checks for some of the libraries because of issues 22607# observed when they are detected, are not needed, and an attempt to 22608# link against is made anyways. 22609# See https://github.com/Unidata/netcdf-fortran/issues/164 22610# 22611# Specifying LDFLAGS="$(nc-config --libs [--static])" should 22612# let downstream developers link more reliably against libnetcdf. 22613 22614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5 22615$as_echo_n "checking for floor in -lm... " >&6; } 22616if ${ac_cv_lib_m_floor+:} false; then : 22617 $as_echo_n "(cached) " >&6 22618else 22619 ac_check_lib_save_LIBS=$LIBS 22620LIBS="-lm $LIBS" 22621cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22622/* end confdefs.h. */ 22623 22624/* Override any GCC internal prototype to avoid an error. 22625 Use char because int might match the return type of a GCC 22626 builtin and then its argument prototype would still apply. */ 22627#ifdef __cplusplus 22628extern "C" 22629#endif 22630char floor (); 22631int 22632main () 22633{ 22634return floor (); 22635 ; 22636 return 0; 22637} 22638_ACEOF 22639if ac_fn_c_try_link "$LINENO"; then : 22640 ac_cv_lib_m_floor=yes 22641else 22642 ac_cv_lib_m_floor=no 22643fi 22644rm -f core conftest.err conftest.$ac_objext \ 22645 conftest$ac_exeext conftest.$ac_ext 22646LIBS=$ac_check_lib_save_LIBS 22647fi 22648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5 22649$as_echo "$ac_cv_lib_m_floor" >&6; } 22650if test "x$ac_cv_lib_m_floor" = xyes; then : 22651 cat >>confdefs.h <<_ACEOF 22652#define HAVE_LIBM 1 22653_ACEOF 22654 22655 LIBS="-lm $LIBS" 22656 22657fi 22658 22659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 22660$as_echo_n "checking for library containing dlopen... " >&6; } 22661if ${ac_cv_search_dlopen+:} false; then : 22662 $as_echo_n "(cached) " >&6 22663else 22664 ac_func_search_save_LIBS=$LIBS 22665cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22666/* end confdefs.h. */ 22667 22668/* Override any GCC internal prototype to avoid an error. 22669 Use char because int might match the return type of a GCC 22670 builtin and then its argument prototype would still apply. */ 22671#ifdef __cplusplus 22672extern "C" 22673#endif 22674char dlopen (); 22675int 22676main () 22677{ 22678return dlopen (); 22679 ; 22680 return 0; 22681} 22682_ACEOF 22683for ac_lib in '' dl dld; do 22684 if test -z "$ac_lib"; then 22685 ac_res="none required" 22686 else 22687 ac_res=-l$ac_lib 22688 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 22689 fi 22690 if ac_fn_c_try_link "$LINENO"; then : 22691 ac_cv_search_dlopen=$ac_res 22692fi 22693rm -f core conftest.err conftest.$ac_objext \ 22694 conftest$ac_exeext 22695 if ${ac_cv_search_dlopen+:} false; then : 22696 break 22697fi 22698done 22699if ${ac_cv_search_dlopen+:} false; then : 22700 22701else 22702 ac_cv_search_dlopen=no 22703fi 22704rm conftest.$ac_ext 22705LIBS=$ac_func_search_save_LIBS 22706fi 22707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 22708$as_echo "$ac_cv_search_dlopen" >&6; } 22709ac_res=$ac_cv_search_dlopen 22710if test "$ac_res" != no; then : 22711 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22712 22713fi 22714 22715 22716# When the underneath NetCDF C library was built with parallel I/O enables, 22717# check if the Fortran compiler supports parallel I/O. Abort if not. 22718#if test "x$nc_has_parallel4" = xyes -o "x$nc_has_pnetcdf" = xyes; then 22719# AC_LANG_PUSH([Fortran]) 22720# AC_CHECK_FUNC([MPI_File_open], [], 22721# [AC_SEARCH_LIBS([MPI_File_open], [], [], 22722# [AC_MSG_ERROR([ 22723# ----------------------------------------------------------------------- 22724# The NetCDF C library is built with parallel I/O feature enabled, but 22725# the Fortran compiler '$FC' supplied in this configure command 22726# does not support MPI-IO. Please use one that does. If parallel I/O 22727# feature is not desired, please use a NetCDF C library with parallel 22728# I/O feature disabled. Abort. 22729# -----------------------------------------------------------------------]) 22730# ])]) 22731# AC_LANG_POP([Fortran]) 22732#fi 22733 22734# Find the netCDF header and library. 22735for ac_header in netcdf.h 22736do : 22737 ac_fn_c_check_header_mongrel "$LINENO" "netcdf.h" "ac_cv_header_netcdf_h" "$ac_includes_default" 22738if test "x$ac_cv_header_netcdf_h" = xyes; then : 22739 cat >>confdefs.h <<_ACEOF 22740#define HAVE_NETCDF_H 1 22741_ACEOF 22742 22743else 22744 as_fn_error $? "netcdf.h could not be found. Please set CPPFLAGS." "$LINENO" 5 22745fi 22746 22747done 22748 22749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nc_open" >&5 22750$as_echo_n "checking for library containing nc_open... " >&6; } 22751if ${ac_cv_search_nc_open+:} false; then : 22752 $as_echo_n "(cached) " >&6 22753else 22754 ac_func_search_save_LIBS=$LIBS 22755cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22756/* end confdefs.h. */ 22757 22758/* Override any GCC internal prototype to avoid an error. 22759 Use char because int might match the return type of a GCC 22760 builtin and then its argument prototype would still apply. */ 22761#ifdef __cplusplus 22762extern "C" 22763#endif 22764char nc_open (); 22765int 22766main () 22767{ 22768return nc_open (); 22769 ; 22770 return 0; 22771} 22772_ACEOF 22773for ac_lib in '' netcdf; do 22774 if test -z "$ac_lib"; then 22775 ac_res="none required" 22776 else 22777 ac_res=-l$ac_lib 22778 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 22779 fi 22780 if ac_fn_c_try_link "$LINENO"; then : 22781 ac_cv_search_nc_open=$ac_res 22782fi 22783rm -f core conftest.err conftest.$ac_objext \ 22784 conftest$ac_exeext 22785 if ${ac_cv_search_nc_open+:} false; then : 22786 break 22787fi 22788done 22789if ${ac_cv_search_nc_open+:} false; then : 22790 22791else 22792 ac_cv_search_nc_open=no 22793fi 22794rm conftest.$ac_ext 22795LIBS=$ac_func_search_save_LIBS 22796fi 22797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nc_open" >&5 22798$as_echo "$ac_cv_search_nc_open" >&6; } 22799ac_res=$ac_cv_search_nc_open 22800if test "$ac_res" != no; then : 22801 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22802 22803else 22804 as_fn_error $? "Could not link to netcdf C library. Please set LDFLAGS; for static builds set LIBS to the results of nc-config --libs." "$LINENO" 5 22805fi 22806 22807 22808# See if various functions are available 22809for ac_func in nc_def_opaque nccreate nc_set_log_level oc_open nc_def_var_szip 22810do : 22811 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 22812ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 22813if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 22814 cat >>confdefs.h <<_ACEOF 22815#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 22816_ACEOF 22817 22818fi 22819done 22820 22821 22822# Starting with version 4.7.4, netcdf-c has function nc_def_var_szip(). 22823if test "x$ac_cv_func_nc_def_var_szip" != xyes; then 22824 as_fn_error $? "netcdf-c version 4.7.4 or greater is required" "$LINENO" 5 22825fi 22826 22827nc_build_v2=no 22828nc_build_v4=no 22829nc_has_logging=no 22830nc_has_dap=no 22831 22832for ac_func in nc_get_chunk_cache_ints 22833do : 22834 ac_fn_c_check_func "$LINENO" "nc_get_chunk_cache_ints" "ac_cv_func_nc_get_chunk_cache_ints" 22835if test "x$ac_cv_func_nc_get_chunk_cache_ints" = xyes; then : 22836 cat >>confdefs.h <<_ACEOF 22837#define HAVE_NC_GET_CHUNK_CACHE_INTS 1 22838_ACEOF 22839 nc_build_v4=yes 22840else 22841 nc_build_v4=no 22842fi 22843done 22844 22845test "x$ac_cv_func_nccreate" = xyes && nc_build_v2=yes 22846test "x$ac_cv_func_nc_set_log_level" = xyes && nc_has_logging=yes 22847test "x$ac_cv_func_oc_open" = xyes && nc_has_dap=yes 22848 22849if test "x$nc_build_v4" = xyes; then 22850 22851$as_echo "#define USE_NETCDF4 1" >>confdefs.h 22852 22853fi 22854 22855if test "x$nc_has_logging" = xyes; then 22856 22857$as_echo "#define LOGGING 1" >>confdefs.h 22858 22859fi 22860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking netCDF logging present" >&5 22861$as_echo_n "checking netCDF logging present... " >&6; } 22862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $nc_has_logging" >&5 22863$as_echo "$nc_has_logging" >&6; } 22864 22865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking netCDF v2 API present" >&5 22866$as_echo_n "checking netCDF v2 API present... " >&6; } 22867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $nc_build_v2" >&5 22868$as_echo "$nc_build_v2" >&6; } 22869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking netCDF-4 present" >&5 22870$as_echo_n "checking netCDF-4 present... " >&6; } 22871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $nc_build_v4" >&5 22872$as_echo "$nc_build_v4" >&6; } 22873 22874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to test the filter API" >&5 22875$as_echo_n "checking whether to test the filter API... " >&6; } 22876# Check whether --enable-filter-test was given. 22877if test "${enable_filter_test+set}" = set; then : 22878 enableval=$enable_filter_test; 22879fi 22880 22881test "x$enable_filter_test" = xyes || enable_filter_test=no 22882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_filter_test" >&5 22883$as_echo "$enable_filter_test" >&6; } 22884 22885 if test "x$nc_build_v4" = xyes; then 22886 USE_NETCDF4_TRUE= 22887 USE_NETCDF4_FALSE='#' 22888else 22889 USE_NETCDF4_TRUE='#' 22890 USE_NETCDF4_FALSE= 22891fi 22892 22893 if test "x$nc_build_v2" = xyes; then 22894 BUILD_V2_TRUE= 22895 BUILD_V2_FALSE='#' 22896else 22897 BUILD_V2_TRUE='#' 22898 BUILD_V2_FALSE= 22899fi 22900 22901 if test "x$nc_has_logging" = xyes; then 22902 HAS_LOGGING_TRUE= 22903 HAS_LOGGING_FALSE='#' 22904else 22905 HAS_LOGGING_TRUE='#' 22906 HAS_LOGGING_FALSE= 22907fi 22908 22909 if test "x$nc_has_logging" = xyes; then 22910 USE_LOGGING_TRUE= 22911 USE_LOGGING_FALSE='#' 22912else 22913 USE_LOGGING_TRUE='#' 22914 USE_LOGGING_FALSE= 22915fi 22916 22917 if test "x$nc_has_dap" = xyes; then 22918 BUILD_DAP_TRUE= 22919 BUILD_DAP_FALSE='#' 22920else 22921 BUILD_DAP_TRUE='#' 22922 BUILD_DAP_FALSE= 22923fi 22924 22925 if test "x$nc_has_pnetcdf" = xyes; then 22926 BUILD_PNETCDF_TRUE= 22927 BUILD_PNETCDF_FALSE='#' 22928else 22929 BUILD_PNETCDF_TRUE='#' 22930 BUILD_PNETCDF_FALSE= 22931fi 22932 22933 if test "x$nc_has_parallel4" = xyes; then 22934 BUILD_PARALLEL4_TRUE= 22935 BUILD_PARALLEL4_FALSE='#' 22936else 22937 BUILD_PARALLEL4_TRUE='#' 22938 BUILD_PARALLEL4_FALSE= 22939fi 22940 22941 if test "x$nc_has_pnetcdf" = xyes -o "x$nc_has_parallel4" = xyes; then 22942 BUILD_PARALLEL_TRUE= 22943 BUILD_PARALLEL_FALSE='#' 22944else 22945 BUILD_PARALLEL_TRUE='#' 22946 BUILD_PARALLEL_FALSE= 22947fi 22948 22949 if test "x$enable_filter_test" = xyes; then 22950 TEST_FILTERS_TRUE= 22951 TEST_FILTERS_FALSE='#' 22952else 22953 TEST_FILTERS_TRUE='#' 22954 TEST_FILTERS_FALSE= 22955fi 22956 22957 22958ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 22959if test "x$ac_cv_header_stdlib_h" = xyes; then : 22960 22961else 22962 22963$as_echo "#define NO_STDLIB_H /**/" >>confdefs.h 22964 22965fi 22966 22967 22968ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" 22969if test "x$ac_cv_header_sys_types_h" = xyes; then : 22970 22971else 22972 22973$as_echo "#define NO_SYS_TYPES_H /**/" >>confdefs.h 22974 22975fi 22976 22977 22978for ac_header in sys/param.h 22979do : 22980 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" 22981if test "x$ac_cv_header_sys_param_h" = xyes; then : 22982 cat >>confdefs.h <<_ACEOF 22983#define HAVE_SYS_PARAM_H 1 22984_ACEOF 22985 22986fi 22987 22988done 22989 22990for ac_header in locale.h stdio.h stdarg.h errno.h ctype.h fcntl.h malloc.h stdlib.h string.h \ 22991 strings.h unistd.h sys/stat.h getopt.h sys/time.h sys/resource.h 22992do : 22993 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 22994ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 22995if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 22996 cat >>confdefs.h <<_ACEOF 22997#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 22998_ACEOF 22999 23000fi 23001 23002done 23003 23004ac_header_dirent=no 23005for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 23006 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 23007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 23008$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 23009if eval \${$as_ac_Header+:} false; then : 23010 $as_echo_n "(cached) " >&6 23011else 23012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23013/* end confdefs.h. */ 23014#include <sys/types.h> 23015#include <$ac_hdr> 23016 23017int 23018main () 23019{ 23020if ((DIR *) 0) 23021return 0; 23022 ; 23023 return 0; 23024} 23025_ACEOF 23026if ac_fn_c_try_compile "$LINENO"; then : 23027 eval "$as_ac_Header=yes" 23028else 23029 eval "$as_ac_Header=no" 23030fi 23031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23032fi 23033eval ac_res=\$$as_ac_Header 23034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 23035$as_echo "$ac_res" >&6; } 23036if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 23037 cat >>confdefs.h <<_ACEOF 23038#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 23039_ACEOF 23040 23041ac_header_dirent=$ac_hdr; break 23042fi 23043 23044done 23045# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 23046if test $ac_header_dirent = dirent.h; then 23047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 23048$as_echo_n "checking for library containing opendir... " >&6; } 23049if ${ac_cv_search_opendir+:} false; then : 23050 $as_echo_n "(cached) " >&6 23051else 23052 ac_func_search_save_LIBS=$LIBS 23053cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23054/* end confdefs.h. */ 23055 23056/* Override any GCC internal prototype to avoid an error. 23057 Use char because int might match the return type of a GCC 23058 builtin and then its argument prototype would still apply. */ 23059#ifdef __cplusplus 23060extern "C" 23061#endif 23062char opendir (); 23063int 23064main () 23065{ 23066return opendir (); 23067 ; 23068 return 0; 23069} 23070_ACEOF 23071for ac_lib in '' dir; do 23072 if test -z "$ac_lib"; then 23073 ac_res="none required" 23074 else 23075 ac_res=-l$ac_lib 23076 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 23077 fi 23078 if ac_fn_c_try_link "$LINENO"; then : 23079 ac_cv_search_opendir=$ac_res 23080fi 23081rm -f core conftest.err conftest.$ac_objext \ 23082 conftest$ac_exeext 23083 if ${ac_cv_search_opendir+:} false; then : 23084 break 23085fi 23086done 23087if ${ac_cv_search_opendir+:} false; then : 23088 23089else 23090 ac_cv_search_opendir=no 23091fi 23092rm conftest.$ac_ext 23093LIBS=$ac_func_search_save_LIBS 23094fi 23095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 23096$as_echo "$ac_cv_search_opendir" >&6; } 23097ac_res=$ac_cv_search_opendir 23098if test "$ac_res" != no; then : 23099 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 23100 23101fi 23102 23103else 23104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 23105$as_echo_n "checking for library containing opendir... " >&6; } 23106if ${ac_cv_search_opendir+:} false; then : 23107 $as_echo_n "(cached) " >&6 23108else 23109 ac_func_search_save_LIBS=$LIBS 23110cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23111/* end confdefs.h. */ 23112 23113/* Override any GCC internal prototype to avoid an error. 23114 Use char because int might match the return type of a GCC 23115 builtin and then its argument prototype would still apply. */ 23116#ifdef __cplusplus 23117extern "C" 23118#endif 23119char opendir (); 23120int 23121main () 23122{ 23123return opendir (); 23124 ; 23125 return 0; 23126} 23127_ACEOF 23128for ac_lib in '' x; do 23129 if test -z "$ac_lib"; then 23130 ac_res="none required" 23131 else 23132 ac_res=-l$ac_lib 23133 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 23134 fi 23135 if ac_fn_c_try_link "$LINENO"; then : 23136 ac_cv_search_opendir=$ac_res 23137fi 23138rm -f core conftest.err conftest.$ac_objext \ 23139 conftest$ac_exeext 23140 if ${ac_cv_search_opendir+:} false; then : 23141 break 23142fi 23143done 23144if ${ac_cv_search_opendir+:} false; then : 23145 23146else 23147 ac_cv_search_opendir=no 23148fi 23149rm conftest.$ac_ext 23150LIBS=$ac_func_search_save_LIBS 23151fi 23152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 23153$as_echo "$ac_cv_search_opendir" >&6; } 23154ac_res=$ac_cv_search_opendir 23155if test "$ac_res" != no; then : 23156 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 23157 23158fi 23159 23160fi 23161 23162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 23163$as_echo_n "checking for ANSI C header files... " >&6; } 23164if ${ac_cv_header_stdc+:} false; then : 23165 $as_echo_n "(cached) " >&6 23166else 23167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23168/* end confdefs.h. */ 23169#include <stdlib.h> 23170#include <stdarg.h> 23171#include <string.h> 23172#include <float.h> 23173 23174int 23175main () 23176{ 23177 23178 ; 23179 return 0; 23180} 23181_ACEOF 23182if ac_fn_c_try_compile "$LINENO"; then : 23183 ac_cv_header_stdc=yes 23184else 23185 ac_cv_header_stdc=no 23186fi 23187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23188 23189if test $ac_cv_header_stdc = yes; then 23190 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 23191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23192/* end confdefs.h. */ 23193#include <string.h> 23194 23195_ACEOF 23196if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23197 $EGREP "memchr" >/dev/null 2>&1; then : 23198 23199else 23200 ac_cv_header_stdc=no 23201fi 23202rm -f conftest* 23203 23204fi 23205 23206if test $ac_cv_header_stdc = yes; then 23207 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 23208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23209/* end confdefs.h. */ 23210#include <stdlib.h> 23211 23212_ACEOF 23213if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23214 $EGREP "free" >/dev/null 2>&1; then : 23215 23216else 23217 ac_cv_header_stdc=no 23218fi 23219rm -f conftest* 23220 23221fi 23222 23223if test $ac_cv_header_stdc = yes; then 23224 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 23225 if test "$cross_compiling" = yes; then : 23226 : 23227else 23228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23229/* end confdefs.h. */ 23230#include <ctype.h> 23231#include <stdlib.h> 23232#if ((' ' & 0x0FF) == 0x020) 23233# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 23234# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 23235#else 23236# define ISLOWER(c) \ 23237 (('a' <= (c) && (c) <= 'i') \ 23238 || ('j' <= (c) && (c) <= 'r') \ 23239 || ('s' <= (c) && (c) <= 'z')) 23240# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 23241#endif 23242 23243#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 23244int 23245main () 23246{ 23247 int i; 23248 for (i = 0; i < 256; i++) 23249 if (XOR (islower (i), ISLOWER (i)) 23250 || toupper (i) != TOUPPER (i)) 23251 return 2; 23252 return 0; 23253} 23254_ACEOF 23255if ac_fn_c_try_run "$LINENO"; then : 23256 23257else 23258 ac_cv_header_stdc=no 23259fi 23260rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23261 conftest.$ac_objext conftest.beam conftest.$ac_ext 23262fi 23263 23264fi 23265fi 23266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 23267$as_echo "$ac_cv_header_stdc" >&6; } 23268if test $ac_cv_header_stdc = yes; then 23269 23270$as_echo "#define STDC_HEADERS 1" >>confdefs.h 23271 23272fi 23273 23274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 23275$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 23276if ${ac_cv_header_sys_wait_h+:} false; then : 23277 $as_echo_n "(cached) " >&6 23278else 23279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23280/* end confdefs.h. */ 23281#include <sys/types.h> 23282#include <sys/wait.h> 23283#ifndef WEXITSTATUS 23284# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 23285#endif 23286#ifndef WIFEXITED 23287# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 23288#endif 23289 23290int 23291main () 23292{ 23293 int s; 23294 wait (&s); 23295 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 23296 ; 23297 return 0; 23298} 23299_ACEOF 23300if ac_fn_c_try_compile "$LINENO"; then : 23301 ac_cv_header_sys_wait_h=yes 23302else 23303 ac_cv_header_sys_wait_h=no 23304fi 23305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23306fi 23307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 23308$as_echo "$ac_cv_header_sys_wait_h" >&6; } 23309if test $ac_cv_header_sys_wait_h = yes; then 23310 23311$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 23312 23313fi 23314 23315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 23316$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 23317if ${ac_cv_header_time+:} false; then : 23318 $as_echo_n "(cached) " >&6 23319else 23320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23321/* end confdefs.h. */ 23322#include <sys/types.h> 23323#include <sys/time.h> 23324#include <time.h> 23325 23326int 23327main () 23328{ 23329if ((struct tm *) 0) 23330return 0; 23331 ; 23332 return 0; 23333} 23334_ACEOF 23335if ac_fn_c_try_compile "$LINENO"; then : 23336 ac_cv_header_time=yes 23337else 23338 ac_cv_header_time=no 23339fi 23340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23341fi 23342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 23343$as_echo "$ac_cv_header_time" >&6; } 23344if test $ac_cv_header_time = yes; then 23345 23346$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 23347 23348fi 23349 23350 23351for ac_func in vprintf 23352do : 23353 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" 23354if test "x$ac_cv_func_vprintf" = xyes; then : 23355 cat >>confdefs.h <<_ACEOF 23356#define HAVE_VPRINTF 1 23357_ACEOF 23358 23359ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" 23360if test "x$ac_cv_func__doprnt" = xyes; then : 23361 23362$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h 23363 23364fi 23365 23366fi 23367done 23368 23369 23370 23371# Check for <stdbool.h> that conforms to C99 requirements 23372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 23373$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 23374if ${ac_cv_header_stdbool_h+:} false; then : 23375 $as_echo_n "(cached) " >&6 23376else 23377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23378/* end confdefs.h. */ 23379 23380 #include <stdbool.h> 23381 #ifndef bool 23382 "error: bool is not defined" 23383 #endif 23384 #ifndef false 23385 "error: false is not defined" 23386 #endif 23387 #if false 23388 "error: false is not 0" 23389 #endif 23390 #ifndef true 23391 "error: true is not defined" 23392 #endif 23393 #if true != 1 23394 "error: true is not 1" 23395 #endif 23396 #ifndef __bool_true_false_are_defined 23397 "error: __bool_true_false_are_defined is not defined" 23398 #endif 23399 23400 struct s { _Bool s: 1; _Bool t; } s; 23401 23402 char a[true == 1 ? 1 : -1]; 23403 char b[false == 0 ? 1 : -1]; 23404 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 23405 char d[(bool) 0.5 == true ? 1 : -1]; 23406 /* See body of main program for 'e'. */ 23407 char f[(_Bool) 0.0 == false ? 1 : -1]; 23408 char g[true]; 23409 char h[sizeof (_Bool)]; 23410 char i[sizeof s.t]; 23411 enum { j = false, k = true, l = false * true, m = true * 256 }; 23412 /* The following fails for 23413 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 23414 _Bool n[m]; 23415 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 23416 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 23417 /* Catch a bug in an HP-UX C compiler. See 23418 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 23419 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 23420 */ 23421 _Bool q = true; 23422 _Bool *pq = &q; 23423 23424int 23425main () 23426{ 23427 23428 bool e = &s; 23429 *pq |= q; 23430 *pq |= ! q; 23431 /* Refer to every declared value, to avoid compiler optimizations. */ 23432 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 23433 + !m + !n + !o + !p + !q + !pq); 23434 23435 ; 23436 return 0; 23437} 23438_ACEOF 23439if ac_fn_c_try_compile "$LINENO"; then : 23440 ac_cv_header_stdbool_h=yes 23441else 23442 ac_cv_header_stdbool_h=no 23443fi 23444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23445fi 23446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 23447$as_echo "$ac_cv_header_stdbool_h" >&6; } 23448 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 23449if test "x$ac_cv_type__Bool" = xyes; then : 23450 23451cat >>confdefs.h <<_ACEOF 23452#define HAVE__BOOL 1 23453_ACEOF 23454 23455 23456fi 23457 23458 23459if test $ac_cv_header_stdbool_h = yes; then 23460 23461$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h 23462 23463fi 23464 23465 23466# Check for these functions... 23467ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 23468if test "x$ac_cv_type_size_t" = xyes; then : 23469 23470else 23471 23472cat >>confdefs.h <<_ACEOF 23473#define size_t unsigned int 23474_ACEOF 23475 23476fi 23477 23478# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 23479# for constant arguments. Useless! 23480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 23481$as_echo_n "checking for working alloca.h... " >&6; } 23482if ${ac_cv_working_alloca_h+:} false; then : 23483 $as_echo_n "(cached) " >&6 23484else 23485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23486/* end confdefs.h. */ 23487#include <alloca.h> 23488int 23489main () 23490{ 23491char *p = (char *) alloca (2 * sizeof (int)); 23492 if (p) return 0; 23493 ; 23494 return 0; 23495} 23496_ACEOF 23497if ac_fn_c_try_link "$LINENO"; then : 23498 ac_cv_working_alloca_h=yes 23499else 23500 ac_cv_working_alloca_h=no 23501fi 23502rm -f core conftest.err conftest.$ac_objext \ 23503 conftest$ac_exeext conftest.$ac_ext 23504fi 23505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 23506$as_echo "$ac_cv_working_alloca_h" >&6; } 23507if test $ac_cv_working_alloca_h = yes; then 23508 23509$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 23510 23511fi 23512 23513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 23514$as_echo_n "checking for alloca... " >&6; } 23515if ${ac_cv_func_alloca_works+:} false; then : 23516 $as_echo_n "(cached) " >&6 23517else 23518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23519/* end confdefs.h. */ 23520#ifdef __GNUC__ 23521# define alloca __builtin_alloca 23522#else 23523# ifdef _MSC_VER 23524# include <malloc.h> 23525# define alloca _alloca 23526# else 23527# ifdef HAVE_ALLOCA_H 23528# include <alloca.h> 23529# else 23530# ifdef _AIX 23531 #pragma alloca 23532# else 23533# ifndef alloca /* predefined by HP cc +Olibcalls */ 23534void *alloca (size_t); 23535# endif 23536# endif 23537# endif 23538# endif 23539#endif 23540 23541int 23542main () 23543{ 23544char *p = (char *) alloca (1); 23545 if (p) return 0; 23546 ; 23547 return 0; 23548} 23549_ACEOF 23550if ac_fn_c_try_link "$LINENO"; then : 23551 ac_cv_func_alloca_works=yes 23552else 23553 ac_cv_func_alloca_works=no 23554fi 23555rm -f core conftest.err conftest.$ac_objext \ 23556 conftest$ac_exeext conftest.$ac_ext 23557fi 23558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 23559$as_echo "$ac_cv_func_alloca_works" >&6; } 23560 23561if test $ac_cv_func_alloca_works = yes; then 23562 23563$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 23564 23565else 23566 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 23567# that cause trouble. Some versions do not even contain alloca or 23568# contain a buggy version. If you still want to use their alloca, 23569# use ar to extract alloca.o from them instead of compiling alloca.c. 23570 23571ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 23572 23573$as_echo "#define C_ALLOCA 1" >>confdefs.h 23574 23575 23576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 23577$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 23578if ${ac_cv_os_cray+:} false; then : 23579 $as_echo_n "(cached) " >&6 23580else 23581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23582/* end confdefs.h. */ 23583#if defined CRAY && ! defined CRAY2 23584webecray 23585#else 23586wenotbecray 23587#endif 23588 23589_ACEOF 23590if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23591 $EGREP "webecray" >/dev/null 2>&1; then : 23592 ac_cv_os_cray=yes 23593else 23594 ac_cv_os_cray=no 23595fi 23596rm -f conftest* 23597 23598fi 23599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 23600$as_echo "$ac_cv_os_cray" >&6; } 23601if test $ac_cv_os_cray = yes; then 23602 for ac_func in _getb67 GETB67 getb67; do 23603 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 23604ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 23605if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 23606 23607cat >>confdefs.h <<_ACEOF 23608#define CRAY_STACKSEG_END $ac_func 23609_ACEOF 23610 23611 break 23612fi 23613 23614 done 23615fi 23616 23617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 23618$as_echo_n "checking stack direction for C alloca... " >&6; } 23619if ${ac_cv_c_stack_direction+:} false; then : 23620 $as_echo_n "(cached) " >&6 23621else 23622 if test "$cross_compiling" = yes; then : 23623 ac_cv_c_stack_direction=0 23624else 23625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23626/* end confdefs.h. */ 23627$ac_includes_default 23628int 23629find_stack_direction (int *addr, int depth) 23630{ 23631 int dir, dummy = 0; 23632 if (! addr) 23633 addr = &dummy; 23634 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; 23635 dir = depth ? find_stack_direction (addr, depth - 1) : 0; 23636 return dir + dummy; 23637} 23638 23639int 23640main (int argc, char **argv) 23641{ 23642 return find_stack_direction (0, argc + !argv + 20) < 0; 23643} 23644_ACEOF 23645if ac_fn_c_try_run "$LINENO"; then : 23646 ac_cv_c_stack_direction=1 23647else 23648 ac_cv_c_stack_direction=-1 23649fi 23650rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23651 conftest.$ac_objext conftest.beam conftest.$ac_ext 23652fi 23653 23654fi 23655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 23656$as_echo "$ac_cv_c_stack_direction" >&6; } 23657cat >>confdefs.h <<_ACEOF 23658#define STACK_DIRECTION $ac_cv_c_stack_direction 23659_ACEOF 23660 23661 23662fi 23663 23664ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 23665if test "x$ac_cv_type_size_t" = xyes; then : 23666 23667else 23668 23669cat >>confdefs.h <<_ACEOF 23670#define size_t unsigned int 23671_ACEOF 23672 23673fi 23674 23675ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 23676if test "x$ac_cv_type_off_t" = xyes; then : 23677 23678else 23679 23680cat >>confdefs.h <<_ACEOF 23681#define off_t long int 23682_ACEOF 23683 23684fi 23685 23686ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 23687if test "x$ac_cv_type_ssize_t" = xyes; then : 23688 23689cat >>confdefs.h <<_ACEOF 23690#define HAVE_SSIZE_T 1 23691_ACEOF 23692 23693 23694fi 23695ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" 23696if test "x$ac_cv_type_ptrdiff_t" = xyes; then : 23697 23698cat >>confdefs.h <<_ACEOF 23699#define HAVE_PTRDIFF_T 1 23700_ACEOF 23701 23702 23703fi 23704ac_fn_c_check_type "$LINENO" "uchar" "ac_cv_type_uchar" "$ac_includes_default" 23705if test "x$ac_cv_type_uchar" = xyes; then : 23706 23707cat >>confdefs.h <<_ACEOF 23708#define HAVE_UCHAR 1 23709_ACEOF 23710 23711 23712fi 23713ac_fn_c_check_type "$LINENO" "longlong" "ac_cv_type_longlong" "$ac_includes_default" 23714if test "x$ac_cv_type_longlong" = xyes; then : 23715 23716cat >>confdefs.h <<_ACEOF 23717#define HAVE_LONGLONG 1 23718_ACEOF 23719 23720 23721fi 23722 23723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 23724$as_echo_n "checking whether char is unsigned... " >&6; } 23725if ${ac_cv_c_char_unsigned+:} false; then : 23726 $as_echo_n "(cached) " >&6 23727else 23728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23729/* end confdefs.h. */ 23730$ac_includes_default 23731int 23732main () 23733{ 23734static int test_array [1 - 2 * !(((char) -1) < 0)]; 23735test_array [0] = 0; 23736return test_array [0]; 23737 23738 ; 23739 return 0; 23740} 23741_ACEOF 23742if ac_fn_c_try_compile "$LINENO"; then : 23743 ac_cv_c_char_unsigned=no 23744else 23745 ac_cv_c_char_unsigned=yes 23746fi 23747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23748fi 23749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 23750$as_echo "$ac_cv_c_char_unsigned" >&6; } 23751if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then 23752 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h 23753 23754fi 23755 23756# The cast to long int works around a bug in the HP C Compiler 23757# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23758# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23759# This bug is HP SR number 8606223364. 23760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 23761$as_echo_n "checking size of short... " >&6; } 23762if ${ac_cv_sizeof_short+:} false; then : 23763 $as_echo_n "(cached) " >&6 23764else 23765 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 23766 23767else 23768 if test "$ac_cv_type_short" = yes; then 23769 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23770$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23771as_fn_error 77 "cannot compute sizeof (short) 23772See \`config.log' for more details" "$LINENO" 5; } 23773 else 23774 ac_cv_sizeof_short=0 23775 fi 23776fi 23777 23778fi 23779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 23780$as_echo "$ac_cv_sizeof_short" >&6; } 23781 23782 23783 23784cat >>confdefs.h <<_ACEOF 23785#define SIZEOF_SHORT $ac_cv_sizeof_short 23786_ACEOF 23787 23788 23789# The cast to long int works around a bug in the HP C Compiler 23790# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23791# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23792# This bug is HP SR number 8606223364. 23793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 23794$as_echo_n "checking size of int... " >&6; } 23795if ${ac_cv_sizeof_int+:} false; then : 23796 $as_echo_n "(cached) " >&6 23797else 23798 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 23799 23800else 23801 if test "$ac_cv_type_int" = yes; then 23802 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23803$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23804as_fn_error 77 "cannot compute sizeof (int) 23805See \`config.log' for more details" "$LINENO" 5; } 23806 else 23807 ac_cv_sizeof_int=0 23808 fi 23809fi 23810 23811fi 23812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 23813$as_echo "$ac_cv_sizeof_int" >&6; } 23814 23815 23816 23817cat >>confdefs.h <<_ACEOF 23818#define SIZEOF_INT $ac_cv_sizeof_int 23819_ACEOF 23820 23821 23822# The cast to long int works around a bug in the HP C Compiler 23823# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23824# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23825# This bug is HP SR number 8606223364. 23826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 23827$as_echo_n "checking size of long... " >&6; } 23828if ${ac_cv_sizeof_long+:} false; then : 23829 $as_echo_n "(cached) " >&6 23830else 23831 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 23832 23833else 23834 if test "$ac_cv_type_long" = yes; then 23835 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23836$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23837as_fn_error 77 "cannot compute sizeof (long) 23838See \`config.log' for more details" "$LINENO" 5; } 23839 else 23840 ac_cv_sizeof_long=0 23841 fi 23842fi 23843 23844fi 23845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 23846$as_echo "$ac_cv_sizeof_long" >&6; } 23847 23848 23849 23850cat >>confdefs.h <<_ACEOF 23851#define SIZEOF_LONG $ac_cv_sizeof_long 23852_ACEOF 23853 23854 23855# The cast to long int works around a bug in the HP C Compiler 23856# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23857# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23858# This bug is HP SR number 8606223364. 23859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 23860$as_echo_n "checking size of float... " >&6; } 23861if ${ac_cv_sizeof_float+:} false; then : 23862 $as_echo_n "(cached) " >&6 23863else 23864 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then : 23865 23866else 23867 if test "$ac_cv_type_float" = yes; then 23868 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23869$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23870as_fn_error 77 "cannot compute sizeof (float) 23871See \`config.log' for more details" "$LINENO" 5; } 23872 else 23873 ac_cv_sizeof_float=0 23874 fi 23875fi 23876 23877fi 23878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 23879$as_echo "$ac_cv_sizeof_float" >&6; } 23880 23881 23882 23883cat >>confdefs.h <<_ACEOF 23884#define SIZEOF_FLOAT $ac_cv_sizeof_float 23885_ACEOF 23886 23887 23888# The cast to long int works around a bug in the HP C Compiler 23889# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23890# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23891# This bug is HP SR number 8606223364. 23892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 23893$as_echo_n "checking size of double... " >&6; } 23894if ${ac_cv_sizeof_double+:} false; then : 23895 $as_echo_n "(cached) " >&6 23896else 23897 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then : 23898 23899else 23900 if test "$ac_cv_type_double" = yes; then 23901 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23902$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23903as_fn_error 77 "cannot compute sizeof (double) 23904See \`config.log' for more details" "$LINENO" 5; } 23905 else 23906 ac_cv_sizeof_double=0 23907 fi 23908fi 23909 23910fi 23911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 23912$as_echo "$ac_cv_sizeof_double" >&6; } 23913 23914 23915 23916cat >>confdefs.h <<_ACEOF 23917#define SIZEOF_DOUBLE $ac_cv_sizeof_double 23918_ACEOF 23919 23920 23921# The cast to long int works around a bug in the HP C Compiler 23922# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23923# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23924# This bug is HP SR number 8606223364. 23925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 23926$as_echo_n "checking size of off_t... " >&6; } 23927if ${ac_cv_sizeof_off_t+:} false; then : 23928 $as_echo_n "(cached) " >&6 23929else 23930 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : 23931 23932else 23933 if test "$ac_cv_type_off_t" = yes; then 23934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23935$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23936as_fn_error 77 "cannot compute sizeof (off_t) 23937See \`config.log' for more details" "$LINENO" 5; } 23938 else 23939 ac_cv_sizeof_off_t=0 23940 fi 23941fi 23942 23943fi 23944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 23945$as_echo "$ac_cv_sizeof_off_t" >&6; } 23946 23947 23948 23949cat >>confdefs.h <<_ACEOF 23950#define SIZEOF_OFF_T $ac_cv_sizeof_off_t 23951_ACEOF 23952 23953 23954# The cast to long int works around a bug in the HP C Compiler 23955# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23956# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23957# This bug is HP SR number 8606223364. 23958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 23959$as_echo_n "checking size of size_t... " >&6; } 23960if ${ac_cv_sizeof_size_t+:} false; then : 23961 $as_echo_n "(cached) " >&6 23962else 23963 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : 23964 23965else 23966 if test "$ac_cv_type_size_t" = yes; then 23967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23968$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23969as_fn_error 77 "cannot compute sizeof (size_t) 23970See \`config.log' for more details" "$LINENO" 5; } 23971 else 23972 ac_cv_sizeof_size_t=0 23973 fi 23974fi 23975 23976fi 23977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 23978$as_echo "$ac_cv_sizeof_size_t" >&6; } 23979 23980 23981 23982cat >>confdefs.h <<_ACEOF 23983#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t 23984_ACEOF 23985 23986 23987# The cast to long int works around a bug in the HP C Compiler 23988# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23989# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23990# This bug is HP SR number 8606223364. 23991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ptrdiff_t" >&5 23992$as_echo_n "checking size of ptrdiff_t... " >&6; } 23993if ${ac_cv_sizeof_ptrdiff_t+:} false; then : 23994 $as_echo_n "(cached) " >&6 23995else 23996 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ptrdiff_t))" "ac_cv_sizeof_ptrdiff_t" "$ac_includes_default"; then : 23997 23998else 23999 if test "$ac_cv_type_ptrdiff_t" = yes; then 24000 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24001$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 24002as_fn_error 77 "cannot compute sizeof (ptrdiff_t) 24003See \`config.log' for more details" "$LINENO" 5; } 24004 else 24005 ac_cv_sizeof_ptrdiff_t=0 24006 fi 24007fi 24008 24009fi 24010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ptrdiff_t" >&5 24011$as_echo "$ac_cv_sizeof_ptrdiff_t" >&6; } 24012 24013 24014 24015cat >>confdefs.h <<_ACEOF 24016#define SIZEOF_PTRDIFF_T $ac_cv_sizeof_ptrdiff_t 24017_ACEOF 24018 24019 24020if ac_fn_c_compute_int "$LINENO" "sizeof(long long) == sizeof(long)" "longlong_is_long" ""; then : 24021 24022else 24023 longlong_is_long=0 24024fi 24025 24026if test $longlong_is_long = 1; then 24027 CFLAGS="$CFLAGS -DLONGLONG_IS_LONG" 24028fi 24029 24030# Flags for nf-config script; by design $prefix, $includir, $libdir, 24031# etc. are left as shell variables in the script so as to facilitate 24032# relocation 24033NC_LIBS="-lnetcdf" 24034NC_LIBS="$LDFLAGS $NC_LIBS $LIBS" 24035 24036case "x$target_os" in 24037xsolaris*) 24038 NEWNCLIBS="" 24039 for x in $NC_LIBS ; do 24040 case "$x" in 24041 -L*) r=`echo "$x" | sed -e 's|^-L|-R|'` 24042 NEWNCLIBS="$NEWNCLIBS $x $r" 24043 ;; 24044 *) NEWNCLIBS="$NEWNCLIBS $x" ;; 24045 esac 24046 done 24047 NC_LIBS="$NEWNCLIBS" 24048 ;; 24049*);; 24050esac 24051 24052NC_FLIBS="-lnetcdff $NC_FLIBS" 24053 24054 24055 24056NC_LIBS=$NC_LIBS 24057 24058NC_FLIBS=$NC_FLIBS 24059 24060HAS_F90=$nc_build_f90 24061 24062HAS_F03=$nc_build_f03 24063 24064HAS_DAP=$nc_has_dap 24065 24066HAS_NC2=$nc_build_v2 24067 24068HAS_NC4=$nc_build_v4 24069 24070HAS_SZIP_WRITE=$nc_has_szip_write 24071 24072HAS_LOGGING=$nc_has_logging 24073 24074HAS_CDF5=$nc_has_cdf5 24075 24076HAS_PNETCDF=$nc_has_pnetcdf 24077 24078HAS_NC4_PARALLEL=$nc_has_parallel4 24079 24080HAS_PARALLEL=$nc_has_parallel 24081 24082 24083 24084# Some files need to exist in build directories that do not correspond 24085# to their source directory, or the test program makes an assumption 24086# about where files live. AC_CONFIG_LINKS provides a mechanism to 24087# link/copy files if an out-of-source build is happening. 24088ac_config_links="$ac_config_links nf_test/fills.nc:nf_test/ref_fills.nc" 24089 24090 24091{ $as_echo "$as_me:${as_lineno-$LINENO}: generating header files and makefiles" >&5 24092$as_echo "$as_me: generating header files and makefiles" >&6;} 24093 24094ac_config_files="$ac_config_files Makefile nf-config netcdf-fortran.pc libnetcdff.settings docs/Makefile fortran/Makefile nf_test/Makefile nf_test4/Makefile nf03_test/Makefile nf03_test4/Makefile CMakeExtras/Makefile libsrc/Makefile examples/Makefile examples/F90/Makefile examples/F77/Makefile" 24095 24096 24097cat >confcache <<\_ACEOF 24098# This file is a shell script that caches the results of configure 24099# tests run on this system so they can be shared between configure 24100# scripts and configure runs, see configure's option --config-cache. 24101# It is not useful on other systems. If it contains results you don't 24102# want to keep, you may remove or edit it. 24103# 24104# config.status only pays attention to the cache file if you give it 24105# the --recheck option to rerun configure. 24106# 24107# `ac_cv_env_foo' variables (set or unset) will be overridden when 24108# loading this file, other *unset* `ac_cv_foo' will be assigned the 24109# following values. 24110 24111_ACEOF 24112 24113# The following way of writing the cache mishandles newlines in values, 24114# but we know of no workaround that is simple, portable, and efficient. 24115# So, we kill variables containing newlines. 24116# Ultrix sh set writes to stderr and can't be redirected directly, 24117# and sets the high bit in the cache file unless we assign to the vars. 24118( 24119 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 24120 eval ac_val=\$$ac_var 24121 case $ac_val in #( 24122 *${as_nl}*) 24123 case $ac_var in #( 24124 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 24125$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 24126 esac 24127 case $ac_var in #( 24128 _ | IFS | as_nl) ;; #( 24129 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 24130 *) { eval $ac_var=; unset $ac_var;} ;; 24131 esac ;; 24132 esac 24133 done 24134 24135 (set) 2>&1 | 24136 case $as_nl`(ac_space=' '; set) 2>&1` in #( 24137 *${as_nl}ac_space=\ *) 24138 # `set' does not quote correctly, so add quotes: double-quote 24139 # substitution turns \\\\ into \\, and sed turns \\ into \. 24140 sed -n \ 24141 "s/'/'\\\\''/g; 24142 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 24143 ;; #( 24144 *) 24145 # `set' quotes correctly as required by POSIX, so do not add quotes. 24146 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 24147 ;; 24148 esac | 24149 sort 24150) | 24151 sed ' 24152 /^ac_cv_env_/b end 24153 t clear 24154 :clear 24155 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 24156 t end 24157 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 24158 :end' >>confcache 24159if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 24160 if test -w "$cache_file"; then 24161 if test "x$cache_file" != "x/dev/null"; then 24162 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 24163$as_echo "$as_me: updating cache $cache_file" >&6;} 24164 if test ! -f "$cache_file" || test -h "$cache_file"; then 24165 cat confcache >"$cache_file" 24166 else 24167 case $cache_file in #( 24168 */* | ?:*) 24169 mv -f confcache "$cache_file"$$ && 24170 mv -f "$cache_file"$$ "$cache_file" ;; #( 24171 *) 24172 mv -f confcache "$cache_file" ;; 24173 esac 24174 fi 24175 fi 24176 else 24177 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 24178$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 24179 fi 24180fi 24181rm -f confcache 24182 24183test "x$prefix" = xNONE && prefix=$ac_default_prefix 24184# Let make expand exec_prefix. 24185test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 24186 24187# Transform confdefs.h into DEFS. 24188# Protect against shell expansion while executing Makefile rules. 24189# Protect against Makefile macro expansion. 24190# 24191# If the first sed substitution is executed (which looks for macros that 24192# take arguments), then branch to the quote section. Otherwise, 24193# look for a macro that doesn't take arguments. 24194ac_script=' 24195:mline 24196/\\$/{ 24197 N 24198 s,\\\n,, 24199 b mline 24200} 24201t clear 24202:clear 24203s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 24204t quote 24205s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 24206t quote 24207b any 24208:quote 24209s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 24210s/\[/\\&/g 24211s/\]/\\&/g 24212s/\$/$$/g 24213H 24214:any 24215${ 24216 g 24217 s/^\n// 24218 s/\n/ /g 24219 p 24220} 24221' 24222DEFS=`sed -n "$ac_script" confdefs.h` 24223 24224 24225ac_libobjs= 24226ac_ltlibobjs= 24227U= 24228for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 24229 # 1. Remove the extension, and $U if already installed. 24230 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 24231 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 24232 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 24233 # will be set to the directory where LIBOBJS objects are built. 24234 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 24235 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 24236done 24237LIBOBJS=$ac_libobjs 24238 24239LTLIBOBJS=$ac_ltlibobjs 24240 24241 24242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 24243$as_echo_n "checking that generated files are newer than configure... " >&6; } 24244 if test -n "$am_sleep_pid"; then 24245 # Hide warnings about reused PIDs. 24246 wait $am_sleep_pid 2>/dev/null 24247 fi 24248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 24249$as_echo "done" >&6; } 24250 if test -n "$EXEEXT"; then 24251 am__EXEEXT_TRUE= 24252 am__EXEEXT_FALSE='#' 24253else 24254 am__EXEEXT_TRUE='#' 24255 am__EXEEXT_FALSE= 24256fi 24257 24258if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 24259 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 24260Usually this means the macro was only invoked conditionally." "$LINENO" 5 24261fi 24262if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 24263 as_fn_error $? "conditional \"AMDEP\" was never defined. 24264Usually this means the macro was only invoked conditionally." "$LINENO" 5 24265fi 24266if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 24267 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 24268Usually this means the macro was only invoked conditionally." "$LINENO" 5 24269fi 24270if test -z "${TEST_SZIP_WRITE_TRUE}" && test -z "${TEST_SZIP_WRITE_FALSE}"; then 24271 as_fn_error $? "conditional \"TEST_SZIP_WRITE\" was never defined. 24272Usually this means the macro was only invoked conditionally." "$LINENO" 5 24273fi 24274if test -z "${VALGRIND_ENABLED_TRUE}" && test -z "${VALGRIND_ENABLED_FALSE}"; then 24275 as_fn_error $? "conditional \"VALGRIND_ENABLED\" was never defined. 24276Usually this means the macro was only invoked conditionally." "$LINENO" 5 24277fi 24278if test -z "${ENABLE_VALGRIND_TRUE}" && test -z "${ENABLE_VALGRIND_FALSE}"; then 24279 as_fn_error $? "conditional \"ENABLE_VALGRIND\" was never defined. 24280Usually this means the macro was only invoked conditionally." "$LINENO" 5 24281fi 24282if test -z "${TEST_PARALLEL_TRUE}" && test -z "${TEST_PARALLEL_FALSE}"; then 24283 as_fn_error $? "conditional \"TEST_PARALLEL\" was never defined. 24284Usually this means the macro was only invoked conditionally." "$LINENO" 5 24285fi 24286if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then 24287 as_fn_error $? "conditional \"BUILD_DOCS\" was never defined. 24288Usually this means the macro was only invoked conditionally." "$LINENO" 5 24289fi 24290if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 24291 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 24292Usually this means the macro was only invoked conditionally." "$LINENO" 5 24293fi 24294if test -z "${USE_SED_TRUE}" && test -z "${USE_SED_FALSE}"; then 24295 as_fn_error $? "conditional \"USE_SED\" was never defined. 24296Usually this means the macro was only invoked conditionally." "$LINENO" 5 24297fi 24298if test -z "${LARGE_FILE_TESTS_TRUE}" && test -z "${LARGE_FILE_TESTS_FALSE}"; then 24299 as_fn_error $? "conditional \"LARGE_FILE_TESTS\" was never defined. 24300Usually this means the macro was only invoked conditionally." "$LINENO" 5 24301fi 24302if test -z "${BUILD_BENCHMARKS_TRUE}" && test -z "${BUILD_BENCHMARKS_FALSE}"; then 24303 as_fn_error $? "conditional \"BUILD_BENCHMARKS\" was never defined. 24304Usually this means the macro was only invoked conditionally." "$LINENO" 5 24305fi 24306if test -z "${USE_NETCDF4_TRUE}" && test -z "${USE_NETCDF4_FALSE}"; then 24307 as_fn_error $? "conditional \"USE_NETCDF4\" was never defined. 24308Usually this means the macro was only invoked conditionally." "$LINENO" 5 24309fi 24310if test -z "${BUILD_V2_TRUE}" && test -z "${BUILD_V2_FALSE}"; then 24311 as_fn_error $? "conditional \"BUILD_V2\" was never defined. 24312Usually this means the macro was only invoked conditionally." "$LINENO" 5 24313fi 24314if test -z "${HAS_LOGGING_TRUE}" && test -z "${HAS_LOGGING_FALSE}"; then 24315 as_fn_error $? "conditional \"HAS_LOGGING\" was never defined. 24316Usually this means the macro was only invoked conditionally." "$LINENO" 5 24317fi 24318if test -z "${USE_LOGGING_TRUE}" && test -z "${USE_LOGGING_FALSE}"; then 24319 as_fn_error $? "conditional \"USE_LOGGING\" was never defined. 24320Usually this means the macro was only invoked conditionally." "$LINENO" 5 24321fi 24322if test -z "${BUILD_DAP_TRUE}" && test -z "${BUILD_DAP_FALSE}"; then 24323 as_fn_error $? "conditional \"BUILD_DAP\" was never defined. 24324Usually this means the macro was only invoked conditionally." "$LINENO" 5 24325fi 24326if test -z "${BUILD_PNETCDF_TRUE}" && test -z "${BUILD_PNETCDF_FALSE}"; then 24327 as_fn_error $? "conditional \"BUILD_PNETCDF\" was never defined. 24328Usually this means the macro was only invoked conditionally." "$LINENO" 5 24329fi 24330if test -z "${BUILD_PARALLEL4_TRUE}" && test -z "${BUILD_PARALLEL4_FALSE}"; then 24331 as_fn_error $? "conditional \"BUILD_PARALLEL4\" was never defined. 24332Usually this means the macro was only invoked conditionally." "$LINENO" 5 24333fi 24334if test -z "${BUILD_PARALLEL_TRUE}" && test -z "${BUILD_PARALLEL_FALSE}"; then 24335 as_fn_error $? "conditional \"BUILD_PARALLEL\" was never defined. 24336Usually this means the macro was only invoked conditionally." "$LINENO" 5 24337fi 24338if test -z "${TEST_FILTERS_TRUE}" && test -z "${TEST_FILTERS_FALSE}"; then 24339 as_fn_error $? "conditional \"TEST_FILTERS\" was never defined. 24340Usually this means the macro was only invoked conditionally." "$LINENO" 5 24341fi 24342 24343: "${CONFIG_STATUS=./config.status}" 24344ac_write_fail=0 24345ac_clean_files_save=$ac_clean_files 24346ac_clean_files="$ac_clean_files $CONFIG_STATUS" 24347{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 24348$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 24349as_write_fail=0 24350cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 24351#! $SHELL 24352# Generated by $as_me. 24353# Run this file to recreate the current configuration. 24354# Compiler output produced by configure, useful for debugging 24355# configure, is in config.log if it exists. 24356 24357debug=false 24358ac_cs_recheck=false 24359ac_cs_silent=false 24360 24361SHELL=\${CONFIG_SHELL-$SHELL} 24362export SHELL 24363_ASEOF 24364cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 24365## -------------------- ## 24366## M4sh Initialization. ## 24367## -------------------- ## 24368 24369# Be more Bourne compatible 24370DUALCASE=1; export DUALCASE # for MKS sh 24371if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 24372 emulate sh 24373 NULLCMD=: 24374 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 24375 # is contrary to our usage. Disable this feature. 24376 alias -g '${1+"$@"}'='"$@"' 24377 setopt NO_GLOB_SUBST 24378else 24379 case `(set -o) 2>/dev/null` in #( 24380 *posix*) : 24381 set -o posix ;; #( 24382 *) : 24383 ;; 24384esac 24385fi 24386 24387 24388as_nl=' 24389' 24390export as_nl 24391# Printing a long string crashes Solaris 7 /usr/bin/printf. 24392as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 24393as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 24394as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 24395# Prefer a ksh shell builtin over an external printf program on Solaris, 24396# but without wasting forks for bash or zsh. 24397if test -z "$BASH_VERSION$ZSH_VERSION" \ 24398 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 24399 as_echo='print -r --' 24400 as_echo_n='print -rn --' 24401elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 24402 as_echo='printf %s\n' 24403 as_echo_n='printf %s' 24404else 24405 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 24406 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 24407 as_echo_n='/usr/ucb/echo -n' 24408 else 24409 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 24410 as_echo_n_body='eval 24411 arg=$1; 24412 case $arg in #( 24413 *"$as_nl"*) 24414 expr "X$arg" : "X\\(.*\\)$as_nl"; 24415 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 24416 esac; 24417 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 24418 ' 24419 export as_echo_n_body 24420 as_echo_n='sh -c $as_echo_n_body as_echo' 24421 fi 24422 export as_echo_body 24423 as_echo='sh -c $as_echo_body as_echo' 24424fi 24425 24426# The user is always right. 24427if test "${PATH_SEPARATOR+set}" != set; then 24428 PATH_SEPARATOR=: 24429 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 24430 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 24431 PATH_SEPARATOR=';' 24432 } 24433fi 24434 24435 24436# IFS 24437# We need space, tab and new line, in precisely that order. Quoting is 24438# there to prevent editors from complaining about space-tab. 24439# (If _AS_PATH_WALK were called with IFS unset, it would disable word 24440# splitting by setting IFS to empty value.) 24441IFS=" "" $as_nl" 24442 24443# Find who we are. Look in the path if we contain no directory separator. 24444as_myself= 24445case $0 in #(( 24446 *[\\/]* ) as_myself=$0 ;; 24447 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24448for as_dir in $PATH 24449do 24450 IFS=$as_save_IFS 24451 test -z "$as_dir" && as_dir=. 24452 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 24453 done 24454IFS=$as_save_IFS 24455 24456 ;; 24457esac 24458# We did not find ourselves, most probably we were run as `sh COMMAND' 24459# in which case we are not to be found in the path. 24460if test "x$as_myself" = x; then 24461 as_myself=$0 24462fi 24463if test ! -f "$as_myself"; then 24464 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 24465 exit 1 24466fi 24467 24468# Unset variables that we do not need and which cause bugs (e.g. in 24469# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 24470# suppresses any "Segmentation fault" message there. '((' could 24471# trigger a bug in pdksh 5.2.14. 24472for as_var in BASH_ENV ENV MAIL MAILPATH 24473do eval test x\${$as_var+set} = xset \ 24474 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 24475done 24476PS1='$ ' 24477PS2='> ' 24478PS4='+ ' 24479 24480# NLS nuisances. 24481LC_ALL=C 24482export LC_ALL 24483LANGUAGE=C 24484export LANGUAGE 24485 24486# CDPATH. 24487(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 24488 24489 24490# as_fn_error STATUS ERROR [LINENO LOG_FD] 24491# ---------------------------------------- 24492# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 24493# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 24494# script with STATUS, using 1 if that was 0. 24495as_fn_error () 24496{ 24497 as_status=$1; test $as_status -eq 0 && as_status=1 24498 if test "$4"; then 24499 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 24500 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 24501 fi 24502 $as_echo "$as_me: error: $2" >&2 24503 as_fn_exit $as_status 24504} # as_fn_error 24505 24506 24507# as_fn_set_status STATUS 24508# ----------------------- 24509# Set $? to STATUS, without forking. 24510as_fn_set_status () 24511{ 24512 return $1 24513} # as_fn_set_status 24514 24515# as_fn_exit STATUS 24516# ----------------- 24517# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 24518as_fn_exit () 24519{ 24520 set +e 24521 as_fn_set_status $1 24522 exit $1 24523} # as_fn_exit 24524 24525# as_fn_unset VAR 24526# --------------- 24527# Portably unset VAR. 24528as_fn_unset () 24529{ 24530 { eval $1=; unset $1;} 24531} 24532as_unset=as_fn_unset 24533# as_fn_append VAR VALUE 24534# ---------------------- 24535# Append the text in VALUE to the end of the definition contained in VAR. Take 24536# advantage of any shell optimizations that allow amortized linear growth over 24537# repeated appends, instead of the typical quadratic growth present in naive 24538# implementations. 24539if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 24540 eval 'as_fn_append () 24541 { 24542 eval $1+=\$2 24543 }' 24544else 24545 as_fn_append () 24546 { 24547 eval $1=\$$1\$2 24548 } 24549fi # as_fn_append 24550 24551# as_fn_arith ARG... 24552# ------------------ 24553# Perform arithmetic evaluation on the ARGs, and store the result in the 24554# global $as_val. Take advantage of shells that can avoid forks. The arguments 24555# must be portable across $(()) and expr. 24556if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 24557 eval 'as_fn_arith () 24558 { 24559 as_val=$(( $* )) 24560 }' 24561else 24562 as_fn_arith () 24563 { 24564 as_val=`expr "$@" || test $? -eq 1` 24565 } 24566fi # as_fn_arith 24567 24568 24569if expr a : '\(a\)' >/dev/null 2>&1 && 24570 test "X`expr 00001 : '.*\(...\)'`" = X001; then 24571 as_expr=expr 24572else 24573 as_expr=false 24574fi 24575 24576if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 24577 as_basename=basename 24578else 24579 as_basename=false 24580fi 24581 24582if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 24583 as_dirname=dirname 24584else 24585 as_dirname=false 24586fi 24587 24588as_me=`$as_basename -- "$0" || 24589$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 24590 X"$0" : 'X\(//\)$' \| \ 24591 X"$0" : 'X\(/\)' \| . 2>/dev/null || 24592$as_echo X/"$0" | 24593 sed '/^.*\/\([^/][^/]*\)\/*$/{ 24594 s//\1/ 24595 q 24596 } 24597 /^X\/\(\/\/\)$/{ 24598 s//\1/ 24599 q 24600 } 24601 /^X\/\(\/\).*/{ 24602 s//\1/ 24603 q 24604 } 24605 s/.*/./; q'` 24606 24607# Avoid depending upon Character Ranges. 24608as_cr_letters='abcdefghijklmnopqrstuvwxyz' 24609as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 24610as_cr_Letters=$as_cr_letters$as_cr_LETTERS 24611as_cr_digits='0123456789' 24612as_cr_alnum=$as_cr_Letters$as_cr_digits 24613 24614ECHO_C= ECHO_N= ECHO_T= 24615case `echo -n x` in #((((( 24616-n*) 24617 case `echo 'xy\c'` in 24618 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 24619 xy) ECHO_C='\c';; 24620 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 24621 ECHO_T=' ';; 24622 esac;; 24623*) 24624 ECHO_N='-n';; 24625esac 24626 24627rm -f conf$$ conf$$.exe conf$$.file 24628if test -d conf$$.dir; then 24629 rm -f conf$$.dir/conf$$.file 24630else 24631 rm -f conf$$.dir 24632 mkdir conf$$.dir 2>/dev/null 24633fi 24634if (echo >conf$$.file) 2>/dev/null; then 24635 if ln -s conf$$.file conf$$ 2>/dev/null; then 24636 as_ln_s='ln -s' 24637 # ... but there are two gotchas: 24638 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 24639 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 24640 # In both cases, we have to default to `cp -pR'. 24641 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 24642 as_ln_s='cp -pR' 24643 elif ln conf$$.file conf$$ 2>/dev/null; then 24644 as_ln_s=ln 24645 else 24646 as_ln_s='cp -pR' 24647 fi 24648else 24649 as_ln_s='cp -pR' 24650fi 24651rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 24652rmdir conf$$.dir 2>/dev/null 24653 24654 24655# as_fn_mkdir_p 24656# ------------- 24657# Create "$as_dir" as a directory, including parents if necessary. 24658as_fn_mkdir_p () 24659{ 24660 24661 case $as_dir in #( 24662 -*) as_dir=./$as_dir;; 24663 esac 24664 test -d "$as_dir" || eval $as_mkdir_p || { 24665 as_dirs= 24666 while :; do 24667 case $as_dir in #( 24668 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 24669 *) as_qdir=$as_dir;; 24670 esac 24671 as_dirs="'$as_qdir' $as_dirs" 24672 as_dir=`$as_dirname -- "$as_dir" || 24673$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24674 X"$as_dir" : 'X\(//\)[^/]' \| \ 24675 X"$as_dir" : 'X\(//\)$' \| \ 24676 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 24677$as_echo X"$as_dir" | 24678 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24679 s//\1/ 24680 q 24681 } 24682 /^X\(\/\/\)[^/].*/{ 24683 s//\1/ 24684 q 24685 } 24686 /^X\(\/\/\)$/{ 24687 s//\1/ 24688 q 24689 } 24690 /^X\(\/\).*/{ 24691 s//\1/ 24692 q 24693 } 24694 s/.*/./; q'` 24695 test -d "$as_dir" && break 24696 done 24697 test -z "$as_dirs" || eval "mkdir $as_dirs" 24698 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 24699 24700 24701} # as_fn_mkdir_p 24702if mkdir -p . 2>/dev/null; then 24703 as_mkdir_p='mkdir -p "$as_dir"' 24704else 24705 test -d ./-p && rmdir ./-p 24706 as_mkdir_p=false 24707fi 24708 24709 24710# as_fn_executable_p FILE 24711# ----------------------- 24712# Test if FILE is an executable regular file. 24713as_fn_executable_p () 24714{ 24715 test -f "$1" && test -x "$1" 24716} # as_fn_executable_p 24717as_test_x='test -x' 24718as_executable_p=as_fn_executable_p 24719 24720# Sed expression to map a string onto a valid CPP name. 24721as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 24722 24723# Sed expression to map a string onto a valid variable name. 24724as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 24725 24726 24727exec 6>&1 24728## ----------------------------------- ## 24729## Main body of $CONFIG_STATUS script. ## 24730## ----------------------------------- ## 24731_ASEOF 24732test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 24733 24734cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24735# Save the log message, to keep $0 and so on meaningful, and to 24736# report actual input values of CONFIG_FILES etc. instead of their 24737# values after options handling. 24738ac_log=" 24739This file was extended by netCDF-Fortran $as_me 4.5.3, which was 24740generated by GNU Autoconf 2.69. Invocation command line was 24741 24742 CONFIG_FILES = $CONFIG_FILES 24743 CONFIG_HEADERS = $CONFIG_HEADERS 24744 CONFIG_LINKS = $CONFIG_LINKS 24745 CONFIG_COMMANDS = $CONFIG_COMMANDS 24746 $ $0 $@ 24747 24748on `(hostname || uname -n) 2>/dev/null | sed 1q` 24749" 24750 24751_ACEOF 24752 24753case $ac_config_files in *" 24754"*) set x $ac_config_files; shift; ac_config_files=$*;; 24755esac 24756 24757 24758 24759cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24760# Files that config.status was made for. 24761config_files="$ac_config_files" 24762config_links="$ac_config_links" 24763config_commands="$ac_config_commands" 24764 24765_ACEOF 24766 24767cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24768ac_cs_usage="\ 24769\`$as_me' instantiates files and other configuration actions 24770from templates according to the current configuration. Unless the files 24771and actions are specified as TAGs, all are instantiated by default. 24772 24773Usage: $0 [OPTION]... [TAG]... 24774 24775 -h, --help print this help, then exit 24776 -V, --version print version number and configuration settings, then exit 24777 --config print configuration, then exit 24778 -q, --quiet, --silent 24779 do not print progress messages 24780 -d, --debug don't remove temporary files 24781 --recheck update $as_me by reconfiguring in the same conditions 24782 --file=FILE[:TEMPLATE] 24783 instantiate the configuration file FILE 24784 24785Configuration files: 24786$config_files 24787 24788Configuration links: 24789$config_links 24790 24791Configuration commands: 24792$config_commands 24793 24794Report bugs to <support-netcdf@unidata.ucar.edu>." 24795 24796_ACEOF 24797cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24798ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 24799ac_cs_version="\\ 24800netCDF-Fortran config.status 4.5.3 24801configured by $0, generated by GNU Autoconf 2.69, 24802 with options \\"\$ac_cs_config\\" 24803 24804Copyright (C) 2012 Free Software Foundation, Inc. 24805This config.status script is free software; the Free Software Foundation 24806gives unlimited permission to copy, distribute and modify it." 24807 24808ac_pwd='$ac_pwd' 24809srcdir='$srcdir' 24810INSTALL='$INSTALL' 24811MKDIR_P='$MKDIR_P' 24812AWK='$AWK' 24813test -n "\$AWK" || AWK=awk 24814_ACEOF 24815 24816cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24817# The default lists apply if the user does not specify any file. 24818ac_need_defaults=: 24819while test $# != 0 24820do 24821 case $1 in 24822 --*=?*) 24823 ac_option=`expr "X$1" : 'X\([^=]*\)='` 24824 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 24825 ac_shift=: 24826 ;; 24827 --*=) 24828 ac_option=`expr "X$1" : 'X\([^=]*\)='` 24829 ac_optarg= 24830 ac_shift=: 24831 ;; 24832 *) 24833 ac_option=$1 24834 ac_optarg=$2 24835 ac_shift=shift 24836 ;; 24837 esac 24838 24839 case $ac_option in 24840 # Handling of the options. 24841 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 24842 ac_cs_recheck=: ;; 24843 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 24844 $as_echo "$ac_cs_version"; exit ;; 24845 --config | --confi | --conf | --con | --co | --c ) 24846 $as_echo "$ac_cs_config"; exit ;; 24847 --debug | --debu | --deb | --de | --d | -d ) 24848 debug=: ;; 24849 --file | --fil | --fi | --f ) 24850 $ac_shift 24851 case $ac_optarg in 24852 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 24853 '') as_fn_error $? "missing file argument" ;; 24854 esac 24855 as_fn_append CONFIG_FILES " '$ac_optarg'" 24856 ac_need_defaults=false;; 24857 --he | --h | --help | --hel | -h ) 24858 $as_echo "$ac_cs_usage"; exit ;; 24859 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 24860 | -silent | --silent | --silen | --sile | --sil | --si | --s) 24861 ac_cs_silent=: ;; 24862 24863 # This is an error. 24864 -*) as_fn_error $? "unrecognized option: \`$1' 24865Try \`$0 --help' for more information." ;; 24866 24867 *) as_fn_append ac_config_targets " $1" 24868 ac_need_defaults=false ;; 24869 24870 esac 24871 shift 24872done 24873 24874ac_configure_extra_args= 24875 24876if $ac_cs_silent; then 24877 exec 6>/dev/null 24878 ac_configure_extra_args="$ac_configure_extra_args --silent" 24879fi 24880 24881_ACEOF 24882cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24883if \$ac_cs_recheck; then 24884 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 24885 shift 24886 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 24887 CONFIG_SHELL='$SHELL' 24888 export CONFIG_SHELL 24889 exec "\$@" 24890fi 24891 24892_ACEOF 24893cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24894exec 5>>config.log 24895{ 24896 echo 24897 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 24898## Running $as_me. ## 24899_ASBOX 24900 $as_echo "$ac_log" 24901} >&5 24902 24903_ACEOF 24904cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24905# 24906# INIT-COMMANDS 24907# 24908AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 24909 24910 24911# The HP-UX ksh and POSIX shell print the target directory to stdout 24912# if CDPATH is set. 24913(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 24914 24915sed_quote_subst='$sed_quote_subst' 24916double_quote_subst='$double_quote_subst' 24917delay_variable_subst='$delay_variable_subst' 24918macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 24919macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 24920enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 24921enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 24922pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 24923enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 24924shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 24925SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 24926ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 24927PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 24928host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 24929host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 24930host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 24931build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 24932build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 24933build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 24934SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 24935Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 24936GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 24937EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 24938FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 24939LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 24940NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 24941LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 24942max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 24943ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 24944exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 24945lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 24946lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 24947lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 24948lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 24949lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 24950reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 24951reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 24952OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 24953deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 24954file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 24955file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 24956want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 24957DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 24958sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 24959AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 24960AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 24961archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 24962STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 24963RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 24964old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 24965old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 24966old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 24967lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 24968CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 24969CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 24970compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 24971GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 24972lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 24973lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 24974lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 24975lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 24976lt_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"`' 24977lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 24978nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 24979lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 24980lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 24981objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 24982MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 24983lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 24984lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 24985lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 24986lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 24987lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 24988need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 24989MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 24990DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 24991NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 24992LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 24993OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 24994OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 24995libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 24996shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 24997extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 24998archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 24999enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 25000export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 25001whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 25002compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 25003old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 25004old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 25005archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 25006archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 25007module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 25008module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 25009with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 25010allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 25011no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 25012hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 25013hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 25014hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 25015hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 25016hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 25017hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 25018hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 25019inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 25020link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 25021always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 25022export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 25023exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 25024include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 25025prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 25026postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 25027file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 25028variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 25029need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 25030need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 25031version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 25032runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 25033shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 25034shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 25035libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 25036library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 25037soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 25038install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 25039postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 25040postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 25041finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 25042finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 25043hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 25044sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 25045configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 25046configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 25047hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 25048enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 25049enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 25050enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 25051old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 25052striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 25053compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 25054predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 25055postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 25056predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 25057postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 25058compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 25059LD_F77='`$ECHO "$LD_F77" | $SED "$delay_single_quote_subst"`' 25060LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`' 25061reload_flag_F77='`$ECHO "$reload_flag_F77" | $SED "$delay_single_quote_subst"`' 25062reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`' 25063reload_cmds_F77='`$ECHO "$reload_cmds_F77" | $SED "$delay_single_quote_subst"`' 25064reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`' 25065old_archive_cmds_F77='`$ECHO "$old_archive_cmds_F77" | $SED "$delay_single_quote_subst"`' 25066old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`' 25067compiler_F77='`$ECHO "$compiler_F77" | $SED "$delay_single_quote_subst"`' 25068compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`' 25069GCC_F77='`$ECHO "$GCC_F77" | $SED "$delay_single_quote_subst"`' 25070GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`' 25071lt_prog_compiler_no_builtin_flag_F77='`$ECHO "$lt_prog_compiler_no_builtin_flag_F77" | $SED "$delay_single_quote_subst"`' 25072lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`' 25073lt_prog_compiler_pic_F77='`$ECHO "$lt_prog_compiler_pic_F77" | $SED "$delay_single_quote_subst"`' 25074lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`' 25075lt_prog_compiler_wl_F77='`$ECHO "$lt_prog_compiler_wl_F77" | $SED "$delay_single_quote_subst"`' 25076lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`' 25077lt_prog_compiler_static_F77='`$ECHO "$lt_prog_compiler_static_F77" | $SED "$delay_single_quote_subst"`' 25078lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`' 25079lt_cv_prog_compiler_c_o_F77='`$ECHO "$lt_cv_prog_compiler_c_o_F77" | $SED "$delay_single_quote_subst"`' 25080lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`' 25081archive_cmds_need_lc_F77='`$ECHO "$archive_cmds_need_lc_F77" | $SED "$delay_single_quote_subst"`' 25082archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`' 25083enable_shared_with_static_runtimes_F77='`$ECHO "$enable_shared_with_static_runtimes_F77" | $SED "$delay_single_quote_subst"`' 25084enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`' 25085export_dynamic_flag_spec_F77='`$ECHO "$export_dynamic_flag_spec_F77" | $SED "$delay_single_quote_subst"`' 25086export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`' 25087whole_archive_flag_spec_F77='`$ECHO "$whole_archive_flag_spec_F77" | $SED "$delay_single_quote_subst"`' 25088whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`' 25089compiler_needs_object_F77='`$ECHO "$compiler_needs_object_F77" | $SED "$delay_single_quote_subst"`' 25090compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`' 25091old_archive_from_new_cmds_F77='`$ECHO "$old_archive_from_new_cmds_F77" | $SED "$delay_single_quote_subst"`' 25092old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`' 25093old_archive_from_expsyms_cmds_F77='`$ECHO "$old_archive_from_expsyms_cmds_F77" | $SED "$delay_single_quote_subst"`' 25094old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`' 25095archive_cmds_F77='`$ECHO "$archive_cmds_F77" | $SED "$delay_single_quote_subst"`' 25096archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`' 25097archive_expsym_cmds_F77='`$ECHO "$archive_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`' 25098archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`' 25099module_cmds_F77='`$ECHO "$module_cmds_F77" | $SED "$delay_single_quote_subst"`' 25100module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`' 25101module_expsym_cmds_F77='`$ECHO "$module_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`' 25102module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`' 25103with_gnu_ld_F77='`$ECHO "$with_gnu_ld_F77" | $SED "$delay_single_quote_subst"`' 25104with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`' 25105allow_undefined_flag_F77='`$ECHO "$allow_undefined_flag_F77" | $SED "$delay_single_quote_subst"`' 25106allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`' 25107no_undefined_flag_F77='`$ECHO "$no_undefined_flag_F77" | $SED "$delay_single_quote_subst"`' 25108no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`' 25109hardcode_libdir_flag_spec_F77='`$ECHO "$hardcode_libdir_flag_spec_F77" | $SED "$delay_single_quote_subst"`' 25110hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`' 25111hardcode_libdir_separator_F77='`$ECHO "$hardcode_libdir_separator_F77" | $SED "$delay_single_quote_subst"`' 25112hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`' 25113hardcode_direct_F77='`$ECHO "$hardcode_direct_F77" | $SED "$delay_single_quote_subst"`' 25114hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`' 25115hardcode_direct_absolute_F77='`$ECHO "$hardcode_direct_absolute_F77" | $SED "$delay_single_quote_subst"`' 25116hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`' 25117hardcode_minus_L_F77='`$ECHO "$hardcode_minus_L_F77" | $SED "$delay_single_quote_subst"`' 25118hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`' 25119hardcode_shlibpath_var_F77='`$ECHO "$hardcode_shlibpath_var_F77" | $SED "$delay_single_quote_subst"`' 25120hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`' 25121hardcode_automatic_F77='`$ECHO "$hardcode_automatic_F77" | $SED "$delay_single_quote_subst"`' 25122hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`' 25123inherit_rpath_F77='`$ECHO "$inherit_rpath_F77" | $SED "$delay_single_quote_subst"`' 25124inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`' 25125link_all_deplibs_F77='`$ECHO "$link_all_deplibs_F77" | $SED "$delay_single_quote_subst"`' 25126link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`' 25127always_export_symbols_F77='`$ECHO "$always_export_symbols_F77" | $SED "$delay_single_quote_subst"`' 25128always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`' 25129export_symbols_cmds_F77='`$ECHO "$export_symbols_cmds_F77" | $SED "$delay_single_quote_subst"`' 25130export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`' 25131exclude_expsyms_F77='`$ECHO "$exclude_expsyms_F77" | $SED "$delay_single_quote_subst"`' 25132exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`' 25133include_expsyms_F77='`$ECHO "$include_expsyms_F77" | $SED "$delay_single_quote_subst"`' 25134include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`' 25135prelink_cmds_F77='`$ECHO "$prelink_cmds_F77" | $SED "$delay_single_quote_subst"`' 25136prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`' 25137postlink_cmds_F77='`$ECHO "$postlink_cmds_F77" | $SED "$delay_single_quote_subst"`' 25138postlink_cmds_FC='`$ECHO "$postlink_cmds_FC" | $SED "$delay_single_quote_subst"`' 25139file_list_spec_F77='`$ECHO "$file_list_spec_F77" | $SED "$delay_single_quote_subst"`' 25140file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`' 25141hardcode_action_F77='`$ECHO "$hardcode_action_F77" | $SED "$delay_single_quote_subst"`' 25142hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`' 25143compiler_lib_search_dirs_F77='`$ECHO "$compiler_lib_search_dirs_F77" | $SED "$delay_single_quote_subst"`' 25144compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`' 25145predep_objects_F77='`$ECHO "$predep_objects_F77" | $SED "$delay_single_quote_subst"`' 25146predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`' 25147postdep_objects_F77='`$ECHO "$postdep_objects_F77" | $SED "$delay_single_quote_subst"`' 25148postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`' 25149predeps_F77='`$ECHO "$predeps_F77" | $SED "$delay_single_quote_subst"`' 25150predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`' 25151postdeps_F77='`$ECHO "$postdeps_F77" | $SED "$delay_single_quote_subst"`' 25152postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`' 25153compiler_lib_search_path_F77='`$ECHO "$compiler_lib_search_path_F77" | $SED "$delay_single_quote_subst"`' 25154compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`' 25155 25156LTCC='$LTCC' 25157LTCFLAGS='$LTCFLAGS' 25158compiler='$compiler_DEFAULT' 25159 25160# A function that is used when there is no print builtin or printf. 25161func_fallback_echo () 25162{ 25163 eval 'cat <<_LTECHO_EOF 25164\$1 25165_LTECHO_EOF' 25166} 25167 25168# Quote evaled strings. 25169for var in SHELL \ 25170ECHO \ 25171PATH_SEPARATOR \ 25172SED \ 25173GREP \ 25174EGREP \ 25175FGREP \ 25176LD \ 25177NM \ 25178LN_S \ 25179lt_SP2NL \ 25180lt_NL2SP \ 25181reload_flag \ 25182OBJDUMP \ 25183deplibs_check_method \ 25184file_magic_cmd \ 25185file_magic_glob \ 25186want_nocaseglob \ 25187DLLTOOL \ 25188sharedlib_from_linklib_cmd \ 25189AR \ 25190AR_FLAGS \ 25191archiver_list_spec \ 25192STRIP \ 25193RANLIB \ 25194CC \ 25195CFLAGS \ 25196compiler \ 25197lt_cv_sys_global_symbol_pipe \ 25198lt_cv_sys_global_symbol_to_cdecl \ 25199lt_cv_sys_global_symbol_to_import \ 25200lt_cv_sys_global_symbol_to_c_name_address \ 25201lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 25202lt_cv_nm_interface \ 25203nm_file_list_spec \ 25204lt_cv_truncate_bin \ 25205lt_prog_compiler_no_builtin_flag \ 25206lt_prog_compiler_pic \ 25207lt_prog_compiler_wl \ 25208lt_prog_compiler_static \ 25209lt_cv_prog_compiler_c_o \ 25210need_locks \ 25211MANIFEST_TOOL \ 25212DSYMUTIL \ 25213NMEDIT \ 25214LIPO \ 25215OTOOL \ 25216OTOOL64 \ 25217shrext_cmds \ 25218export_dynamic_flag_spec \ 25219whole_archive_flag_spec \ 25220compiler_needs_object \ 25221with_gnu_ld \ 25222allow_undefined_flag \ 25223no_undefined_flag \ 25224hardcode_libdir_flag_spec \ 25225hardcode_libdir_separator \ 25226exclude_expsyms \ 25227include_expsyms \ 25228file_list_spec \ 25229variables_saved_for_relink \ 25230libname_spec \ 25231library_names_spec \ 25232soname_spec \ 25233install_override_mode \ 25234finish_eval \ 25235old_striplib \ 25236striplib \ 25237compiler_lib_search_dirs \ 25238predep_objects \ 25239postdep_objects \ 25240predeps \ 25241postdeps \ 25242compiler_lib_search_path \ 25243LD_F77 \ 25244LD_FC \ 25245reload_flag_F77 \ 25246reload_flag_FC \ 25247compiler_F77 \ 25248compiler_FC \ 25249lt_prog_compiler_no_builtin_flag_F77 \ 25250lt_prog_compiler_no_builtin_flag_FC \ 25251lt_prog_compiler_pic_F77 \ 25252lt_prog_compiler_pic_FC \ 25253lt_prog_compiler_wl_F77 \ 25254lt_prog_compiler_wl_FC \ 25255lt_prog_compiler_static_F77 \ 25256lt_prog_compiler_static_FC \ 25257lt_cv_prog_compiler_c_o_F77 \ 25258lt_cv_prog_compiler_c_o_FC \ 25259export_dynamic_flag_spec_F77 \ 25260export_dynamic_flag_spec_FC \ 25261whole_archive_flag_spec_F77 \ 25262whole_archive_flag_spec_FC \ 25263compiler_needs_object_F77 \ 25264compiler_needs_object_FC \ 25265with_gnu_ld_F77 \ 25266with_gnu_ld_FC \ 25267allow_undefined_flag_F77 \ 25268allow_undefined_flag_FC \ 25269no_undefined_flag_F77 \ 25270no_undefined_flag_FC \ 25271hardcode_libdir_flag_spec_F77 \ 25272hardcode_libdir_flag_spec_FC \ 25273hardcode_libdir_separator_F77 \ 25274hardcode_libdir_separator_FC \ 25275exclude_expsyms_F77 \ 25276exclude_expsyms_FC \ 25277include_expsyms_F77 \ 25278include_expsyms_FC \ 25279file_list_spec_F77 \ 25280file_list_spec_FC \ 25281compiler_lib_search_dirs_F77 \ 25282compiler_lib_search_dirs_FC \ 25283predep_objects_F77 \ 25284predep_objects_FC \ 25285postdep_objects_F77 \ 25286postdep_objects_FC \ 25287predeps_F77 \ 25288predeps_FC \ 25289postdeps_F77 \ 25290postdeps_FC \ 25291compiler_lib_search_path_F77 \ 25292compiler_lib_search_path_FC; do 25293 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 25294 *[\\\\\\\`\\"\\\$]*) 25295 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 25296 ;; 25297 *) 25298 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 25299 ;; 25300 esac 25301done 25302 25303# Double-quote double-evaled strings. 25304for var in reload_cmds \ 25305old_postinstall_cmds \ 25306old_postuninstall_cmds \ 25307old_archive_cmds \ 25308extract_expsyms_cmds \ 25309old_archive_from_new_cmds \ 25310old_archive_from_expsyms_cmds \ 25311archive_cmds \ 25312archive_expsym_cmds \ 25313module_cmds \ 25314module_expsym_cmds \ 25315export_symbols_cmds \ 25316prelink_cmds \ 25317postlink_cmds \ 25318postinstall_cmds \ 25319postuninstall_cmds \ 25320finish_cmds \ 25321sys_lib_search_path_spec \ 25322configure_time_dlsearch_path \ 25323configure_time_lt_sys_library_path \ 25324reload_cmds_F77 \ 25325reload_cmds_FC \ 25326old_archive_cmds_F77 \ 25327old_archive_cmds_FC \ 25328old_archive_from_new_cmds_F77 \ 25329old_archive_from_new_cmds_FC \ 25330old_archive_from_expsyms_cmds_F77 \ 25331old_archive_from_expsyms_cmds_FC \ 25332archive_cmds_F77 \ 25333archive_cmds_FC \ 25334archive_expsym_cmds_F77 \ 25335archive_expsym_cmds_FC \ 25336module_cmds_F77 \ 25337module_cmds_FC \ 25338module_expsym_cmds_F77 \ 25339module_expsym_cmds_FC \ 25340export_symbols_cmds_F77 \ 25341export_symbols_cmds_FC \ 25342prelink_cmds_F77 \ 25343prelink_cmds_FC \ 25344postlink_cmds_F77 \ 25345postlink_cmds_FC; do 25346 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 25347 *[\\\\\\\`\\"\\\$]*) 25348 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 25349 ;; 25350 *) 25351 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 25352 ;; 25353 esac 25354done 25355 25356ac_aux_dir='$ac_aux_dir' 25357 25358# See if we are running on zsh, and set the options that allow our 25359# commands through without removal of \ escapes INIT. 25360if test -n "\${ZSH_VERSION+set}"; then 25361 setopt NO_GLOB_SUBST 25362fi 25363 25364 25365 PACKAGE='$PACKAGE' 25366 VERSION='$VERSION' 25367 RM='$RM' 25368 ofile='$ofile' 25369 25370 25371 25372 25373 25374 25375 25376 25377_ACEOF 25378 25379cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25380 25381# Handling of arguments. 25382for ac_config_target in $ac_config_targets 25383do 25384 case $ac_config_target in 25385 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 25386 "docs/Doxyfile") CONFIG_FILES="$CONFIG_FILES docs/Doxyfile" ;; 25387 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 25388 "nf_test/fills.nc") CONFIG_LINKS="$CONFIG_LINKS nf_test/fills.nc:nf_test/ref_fills.nc" ;; 25389 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 25390 "nf-config") CONFIG_FILES="$CONFIG_FILES nf-config" ;; 25391 "netcdf-fortran.pc") CONFIG_FILES="$CONFIG_FILES netcdf-fortran.pc" ;; 25392 "libnetcdff.settings") CONFIG_FILES="$CONFIG_FILES libnetcdff.settings" ;; 25393 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;; 25394 "fortran/Makefile") CONFIG_FILES="$CONFIG_FILES fortran/Makefile" ;; 25395 "nf_test/Makefile") CONFIG_FILES="$CONFIG_FILES nf_test/Makefile" ;; 25396 "nf_test4/Makefile") CONFIG_FILES="$CONFIG_FILES nf_test4/Makefile" ;; 25397 "nf03_test/Makefile") CONFIG_FILES="$CONFIG_FILES nf03_test/Makefile" ;; 25398 "nf03_test4/Makefile") CONFIG_FILES="$CONFIG_FILES nf03_test4/Makefile" ;; 25399 "CMakeExtras/Makefile") CONFIG_FILES="$CONFIG_FILES CMakeExtras/Makefile" ;; 25400 "libsrc/Makefile") CONFIG_FILES="$CONFIG_FILES libsrc/Makefile" ;; 25401 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; 25402 "examples/F90/Makefile") CONFIG_FILES="$CONFIG_FILES examples/F90/Makefile" ;; 25403 "examples/F77/Makefile") CONFIG_FILES="$CONFIG_FILES examples/F77/Makefile" ;; 25404 25405 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 25406 esac 25407done 25408 25409 25410# If the user did not use the arguments to specify the items to instantiate, 25411# then the envvar interface is used. Set only those that are not. 25412# We use the long form for the default assignment because of an extremely 25413# bizarre bug on SunOS 4.1.3. 25414if $ac_need_defaults; then 25415 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 25416 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links 25417 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 25418fi 25419 25420# Have a temporary directory for convenience. Make it in the build tree 25421# simply because there is no reason against having it here, and in addition, 25422# creating and moving files from /tmp can sometimes cause problems. 25423# Hook for its removal unless debugging. 25424# Note that there is a small window in which the directory will not be cleaned: 25425# after its creation but before its name has been assigned to `$tmp'. 25426$debug || 25427{ 25428 tmp= ac_tmp= 25429 trap 'exit_status=$? 25430 : "${ac_tmp:=$tmp}" 25431 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 25432' 0 25433 trap 'as_fn_exit 1' 1 2 13 15 25434} 25435# Create a (secure) tmp directory for tmp files. 25436 25437{ 25438 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 25439 test -d "$tmp" 25440} || 25441{ 25442 tmp=./conf$$-$RANDOM 25443 (umask 077 && mkdir "$tmp") 25444} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 25445ac_tmp=$tmp 25446 25447# Set up the scripts for CONFIG_FILES section. 25448# No need to generate them if there are no CONFIG_FILES. 25449# This happens for instance with `./config.status config.h'. 25450if test -n "$CONFIG_FILES"; then 25451 25452 25453ac_cr=`echo X | tr X '\015'` 25454# On cygwin, bash can eat \r inside `` if the user requested igncr. 25455# But we know of no other shell where ac_cr would be empty at this 25456# point, so we can use a bashism as a fallback. 25457if test "x$ac_cr" = x; then 25458 eval ac_cr=\$\'\\r\' 25459fi 25460ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 25461if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 25462 ac_cs_awk_cr='\\r' 25463else 25464 ac_cs_awk_cr=$ac_cr 25465fi 25466 25467echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 25468_ACEOF 25469 25470 25471{ 25472 echo "cat >conf$$subs.awk <<_ACEOF" && 25473 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 25474 echo "_ACEOF" 25475} >conf$$subs.sh || 25476 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 25477ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 25478ac_delim='%!_!# ' 25479for ac_last_try in false false false false false :; do 25480 . ./conf$$subs.sh || 25481 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 25482 25483 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 25484 if test $ac_delim_n = $ac_delim_num; then 25485 break 25486 elif $ac_last_try; then 25487 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 25488 else 25489 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 25490 fi 25491done 25492rm -f conf$$subs.sh 25493 25494cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25495cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 25496_ACEOF 25497sed -n ' 25498h 25499s/^/S["/; s/!.*/"]=/ 25500p 25501g 25502s/^[^!]*!// 25503:repl 25504t repl 25505s/'"$ac_delim"'$// 25506t delim 25507:nl 25508h 25509s/\(.\{148\}\)..*/\1/ 25510t more1 25511s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 25512p 25513n 25514b repl 25515:more1 25516s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 25517p 25518g 25519s/.\{148\}// 25520t nl 25521:delim 25522h 25523s/\(.\{148\}\)..*/\1/ 25524t more2 25525s/["\\]/\\&/g; s/^/"/; s/$/"/ 25526p 25527b 25528:more2 25529s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 25530p 25531g 25532s/.\{148\}// 25533t delim 25534' <conf$$subs.awk | sed ' 25535/^[^""]/{ 25536 N 25537 s/\n// 25538} 25539' >>$CONFIG_STATUS || ac_write_fail=1 25540rm -f conf$$subs.awk 25541cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25542_ACAWK 25543cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 25544 for (key in S) S_is_set[key] = 1 25545 FS = "" 25546 25547} 25548{ 25549 line = $ 0 25550 nfields = split(line, field, "@") 25551 substed = 0 25552 len = length(field[1]) 25553 for (i = 2; i < nfields; i++) { 25554 key = field[i] 25555 keylen = length(key) 25556 if (S_is_set[key]) { 25557 value = S[key] 25558 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 25559 len += length(value) + length(field[++i]) 25560 substed = 1 25561 } else 25562 len += 1 + keylen 25563 } 25564 25565 print line 25566} 25567 25568_ACAWK 25569_ACEOF 25570cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25571if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 25572 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 25573else 25574 cat 25575fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 25576 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 25577_ACEOF 25578 25579# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 25580# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 25581# trailing colons and then remove the whole line if VPATH becomes empty 25582# (actually we leave an empty line to preserve line numbers). 25583if test "x$srcdir" = x.; then 25584 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 25585h 25586s/// 25587s/^/:/ 25588s/[ ]*$/:/ 25589s/:\$(srcdir):/:/g 25590s/:\${srcdir}:/:/g 25591s/:@srcdir@:/:/g 25592s/^:*// 25593s/:*$// 25594x 25595s/\(=[ ]*\).*/\1/ 25596G 25597s/\n// 25598s/^[^=]*=[ ]*$// 25599}' 25600fi 25601 25602cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25603fi # test -n "$CONFIG_FILES" 25604 25605 25606eval set X " :F $CONFIG_FILES :L $CONFIG_LINKS :C $CONFIG_COMMANDS" 25607shift 25608for ac_tag 25609do 25610 case $ac_tag in 25611 :[FHLC]) ac_mode=$ac_tag; continue;; 25612 esac 25613 case $ac_mode$ac_tag in 25614 :[FHL]*:*);; 25615 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 25616 :[FH]-) ac_tag=-:-;; 25617 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 25618 esac 25619 ac_save_IFS=$IFS 25620 IFS=: 25621 set x $ac_tag 25622 IFS=$ac_save_IFS 25623 shift 25624 ac_file=$1 25625 shift 25626 25627 case $ac_mode in 25628 :L) ac_source=$1;; 25629 :[FH]) 25630 ac_file_inputs= 25631 for ac_f 25632 do 25633 case $ac_f in 25634 -) ac_f="$ac_tmp/stdin";; 25635 *) # Look for the file first in the build tree, then in the source tree 25636 # (if the path is not absolute). The absolute path cannot be DOS-style, 25637 # because $ac_f cannot contain `:'. 25638 test -f "$ac_f" || 25639 case $ac_f in 25640 [\\/$]*) false;; 25641 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 25642 esac || 25643 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 25644 esac 25645 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 25646 as_fn_append ac_file_inputs " '$ac_f'" 25647 done 25648 25649 # Let's still pretend it is `configure' which instantiates (i.e., don't 25650 # use $as_me), people would be surprised to read: 25651 # /* config.h. Generated by config.status. */ 25652 configure_input='Generated from '` 25653 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 25654 `' by configure.' 25655 if test x"$ac_file" != x-; then 25656 configure_input="$ac_file. $configure_input" 25657 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 25658$as_echo "$as_me: creating $ac_file" >&6;} 25659 fi 25660 # Neutralize special characters interpreted by sed in replacement strings. 25661 case $configure_input in #( 25662 *\&* | *\|* | *\\* ) 25663 ac_sed_conf_input=`$as_echo "$configure_input" | 25664 sed 's/[\\\\&|]/\\\\&/g'`;; #( 25665 *) ac_sed_conf_input=$configure_input;; 25666 esac 25667 25668 case $ac_tag in 25669 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 25670 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 25671 esac 25672 ;; 25673 esac 25674 25675 ac_dir=`$as_dirname -- "$ac_file" || 25676$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25677 X"$ac_file" : 'X\(//\)[^/]' \| \ 25678 X"$ac_file" : 'X\(//\)$' \| \ 25679 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 25680$as_echo X"$ac_file" | 25681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 25682 s//\1/ 25683 q 25684 } 25685 /^X\(\/\/\)[^/].*/{ 25686 s//\1/ 25687 q 25688 } 25689 /^X\(\/\/\)$/{ 25690 s//\1/ 25691 q 25692 } 25693 /^X\(\/\).*/{ 25694 s//\1/ 25695 q 25696 } 25697 s/.*/./; q'` 25698 as_dir="$ac_dir"; as_fn_mkdir_p 25699 ac_builddir=. 25700 25701case "$ac_dir" in 25702.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 25703*) 25704 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 25705 # A ".." for each directory in $ac_dir_suffix. 25706 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 25707 case $ac_top_builddir_sub in 25708 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 25709 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 25710 esac ;; 25711esac 25712ac_abs_top_builddir=$ac_pwd 25713ac_abs_builddir=$ac_pwd$ac_dir_suffix 25714# for backward compatibility: 25715ac_top_builddir=$ac_top_build_prefix 25716 25717case $srcdir in 25718 .) # We are building in place. 25719 ac_srcdir=. 25720 ac_top_srcdir=$ac_top_builddir_sub 25721 ac_abs_top_srcdir=$ac_pwd ;; 25722 [\\/]* | ?:[\\/]* ) # Absolute name. 25723 ac_srcdir=$srcdir$ac_dir_suffix; 25724 ac_top_srcdir=$srcdir 25725 ac_abs_top_srcdir=$srcdir ;; 25726 *) # Relative name. 25727 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 25728 ac_top_srcdir=$ac_top_build_prefix$srcdir 25729 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 25730esac 25731ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 25732 25733 25734 case $ac_mode in 25735 :F) 25736 # 25737 # CONFIG_FILE 25738 # 25739 25740 case $INSTALL in 25741 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 25742 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 25743 esac 25744 ac_MKDIR_P=$MKDIR_P 25745 case $MKDIR_P in 25746 [\\/$]* | ?:[\\/]* ) ;; 25747 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 25748 esac 25749_ACEOF 25750 25751cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25752# If the template does not know about datarootdir, expand it. 25753# FIXME: This hack should be removed a few years after 2.60. 25754ac_datarootdir_hack=; ac_datarootdir_seen= 25755ac_sed_dataroot=' 25756/datarootdir/ { 25757 p 25758 q 25759} 25760/@datadir@/p 25761/@docdir@/p 25762/@infodir@/p 25763/@localedir@/p 25764/@mandir@/p' 25765case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 25766*datarootdir*) ac_datarootdir_seen=yes;; 25767*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 25768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 25769$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 25770_ACEOF 25771cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25772 ac_datarootdir_hack=' 25773 s&@datadir@&$datadir&g 25774 s&@docdir@&$docdir&g 25775 s&@infodir@&$infodir&g 25776 s&@localedir@&$localedir&g 25777 s&@mandir@&$mandir&g 25778 s&\\\${datarootdir}&$datarootdir&g' ;; 25779esac 25780_ACEOF 25781 25782# Neutralize VPATH when `$srcdir' = `.'. 25783# Shell code in configure.ac might set extrasub. 25784# FIXME: do we really want to maintain this feature? 25785cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25786ac_sed_extra="$ac_vpsub 25787$extrasub 25788_ACEOF 25789cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25790:t 25791/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 25792s|@configure_input@|$ac_sed_conf_input|;t t 25793s&@top_builddir@&$ac_top_builddir_sub&;t t 25794s&@top_build_prefix@&$ac_top_build_prefix&;t t 25795s&@srcdir@&$ac_srcdir&;t t 25796s&@abs_srcdir@&$ac_abs_srcdir&;t t 25797s&@top_srcdir@&$ac_top_srcdir&;t t 25798s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 25799s&@builddir@&$ac_builddir&;t t 25800s&@abs_builddir@&$ac_abs_builddir&;t t 25801s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 25802s&@INSTALL@&$ac_INSTALL&;t t 25803s&@MKDIR_P@&$ac_MKDIR_P&;t t 25804$ac_datarootdir_hack 25805" 25806eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 25807 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 25808 25809test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 25810 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 25811 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 25812 "$ac_tmp/out"`; test -z "$ac_out"; } && 25813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 25814which seems to be undefined. Please make sure it is defined" >&5 25815$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 25816which seems to be undefined. Please make sure it is defined" >&2;} 25817 25818 rm -f "$ac_tmp/stdin" 25819 case $ac_file in 25820 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 25821 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 25822 esac \ 25823 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 25824 ;; 25825 25826 :L) 25827 # 25828 # CONFIG_LINK 25829 # 25830 25831 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then 25832 : 25833 else 25834 # Prefer the file from the source tree if names are identical. 25835 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then 25836 ac_source=$srcdir/$ac_source 25837 fi 25838 25839 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5 25840$as_echo "$as_me: linking $ac_source to $ac_file" >&6;} 25841 25842 if test ! -r "$ac_source"; then 25843 as_fn_error $? "$ac_source: file not found" "$LINENO" 5 25844 fi 25845 rm -f "$ac_file" 25846 25847 # Try a relative symlink, then a hard link, then a copy. 25848 case $ac_source in 25849 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;; 25850 *) ac_rel_source=$ac_top_build_prefix$ac_source ;; 25851 esac 25852 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null || 25853 ln "$ac_source" "$ac_file" 2>/dev/null || 25854 cp -p "$ac_source" "$ac_file" || 25855 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5 25856 fi 25857 ;; 25858 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 25859$as_echo "$as_me: executing $ac_file commands" >&6;} 25860 ;; 25861 esac 25862 25863 25864 case $ac_file$ac_mode in 25865 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 25866 # Older Autoconf quotes --file arguments for eval, but not when files 25867 # are listed without --file. Let's play safe and only enable the eval 25868 # if we detect the quoting. 25869 # TODO: see whether this extra hack can be removed once we start 25870 # requiring Autoconf 2.70 or later. 25871 case $CONFIG_FILES in #( 25872 *\'*) : 25873 eval set x "$CONFIG_FILES" ;; #( 25874 *) : 25875 set x $CONFIG_FILES ;; #( 25876 *) : 25877 ;; 25878esac 25879 shift 25880 # Used to flag and report bootstrapping failures. 25881 am_rc=0 25882 for am_mf 25883 do 25884 # Strip MF so we end up with the name of the file. 25885 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 25886 # Check whether this is an Automake generated Makefile which includes 25887 # dependency-tracking related rules and includes. 25888 # Grep'ing the whole file directly is not great: AIX grep has a line 25889 # limit of 2048, but all sed's we know have understand at least 4000. 25890 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 25891 || continue 25892 am_dirpart=`$as_dirname -- "$am_mf" || 25893$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25894 X"$am_mf" : 'X\(//\)[^/]' \| \ 25895 X"$am_mf" : 'X\(//\)$' \| \ 25896 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 25897$as_echo X"$am_mf" | 25898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 25899 s//\1/ 25900 q 25901 } 25902 /^X\(\/\/\)[^/].*/{ 25903 s//\1/ 25904 q 25905 } 25906 /^X\(\/\/\)$/{ 25907 s//\1/ 25908 q 25909 } 25910 /^X\(\/\).*/{ 25911 s//\1/ 25912 q 25913 } 25914 s/.*/./; q'` 25915 am_filepart=`$as_basename -- "$am_mf" || 25916$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 25917 X"$am_mf" : 'X\(//\)$' \| \ 25918 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 25919$as_echo X/"$am_mf" | 25920 sed '/^.*\/\([^/][^/]*\)\/*$/{ 25921 s//\1/ 25922 q 25923 } 25924 /^X\/\(\/\/\)$/{ 25925 s//\1/ 25926 q 25927 } 25928 /^X\/\(\/\).*/{ 25929 s//\1/ 25930 q 25931 } 25932 s/.*/./; q'` 25933 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 25934 && sed -e '/# am--include-marker/d' "$am_filepart" \ 25935 | $MAKE -f - am--depfiles" >&5 25936 (cd "$am_dirpart" \ 25937 && sed -e '/# am--include-marker/d' "$am_filepart" \ 25938 | $MAKE -f - am--depfiles) >&5 2>&5 25939 ac_status=$? 25940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25941 (exit $ac_status); } || am_rc=$? 25942 done 25943 if test $am_rc -ne 0; then 25944 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 25945$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 25946as_fn_error $? "Something went wrong bootstrapping makefile fragments 25947 for automatic dependency tracking. If GNU make was not used, consider 25948 re-running the configure script with MAKE=\"gmake\" (or whatever is 25949 necessary). You can also try re-running configure with the 25950 '--disable-dependency-tracking' option to at least be able to build 25951 the package (albeit without support for automatic dependency tracking). 25952See \`config.log' for more details" "$LINENO" 5; } 25953 fi 25954 { am_dirpart=; unset am_dirpart;} 25955 { am_filepart=; unset am_filepart;} 25956 { am_mf=; unset am_mf;} 25957 { am_rc=; unset am_rc;} 25958 rm -f conftest-deps.mk 25959} 25960 ;; 25961 "libtool":C) 25962 25963 # See if we are running on zsh, and set the options that allow our 25964 # commands through without removal of \ escapes. 25965 if test -n "${ZSH_VERSION+set}"; then 25966 setopt NO_GLOB_SUBST 25967 fi 25968 25969 cfgfile=${ofile}T 25970 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 25971 $RM "$cfgfile" 25972 25973 cat <<_LT_EOF >> "$cfgfile" 25974#! $SHELL 25975# Generated automatically by $as_me ($PACKAGE) $VERSION 25976# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 25977# NOTE: Changes made to this file will be lost: look at ltmain.sh. 25978 25979# Provide generalized library-building support services. 25980# Written by Gordon Matzigkeit, 1996 25981 25982# Copyright (C) 2014 Free Software Foundation, Inc. 25983# This is free software; see the source for copying conditions. There is NO 25984# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 25985 25986# GNU Libtool is free software; you can redistribute it and/or modify 25987# it under the terms of the GNU General Public License as published by 25988# the Free Software Foundation; either version 2 of of the License, or 25989# (at your option) any later version. 25990# 25991# As a special exception to the GNU General Public License, if you 25992# distribute this file as part of a program or library that is built 25993# using GNU Libtool, you may include this file under the same 25994# distribution terms that you use for the rest of that program. 25995# 25996# GNU Libtool is distributed in the hope that it will be useful, but 25997# WITHOUT ANY WARRANTY; without even the implied warranty of 25998# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25999# GNU General Public License for more details. 26000# 26001# You should have received a copy of the GNU General Public License 26002# along with this program. If not, see <http://www.gnu.org/licenses/>. 26003 26004 26005# The names of the tagged configurations supported by this script. 26006available_tags='F77 FC ' 26007 26008# Configured defaults for sys_lib_dlsearch_path munging. 26009: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 26010 26011# ### BEGIN LIBTOOL CONFIG 26012 26013# Which release of libtool.m4 was used? 26014macro_version=$macro_version 26015macro_revision=$macro_revision 26016 26017# Whether or not to build shared libraries. 26018build_libtool_libs=$enable_shared 26019 26020# Whether or not to build static libraries. 26021build_old_libs=$enable_static 26022 26023# What type of objects to build. 26024pic_mode=$pic_mode 26025 26026# Whether or not to optimize for fast installation. 26027fast_install=$enable_fast_install 26028 26029# Shared archive member basename,for filename based shared library versioning on AIX. 26030shared_archive_member_spec=$shared_archive_member_spec 26031 26032# Shell to use when invoking shell scripts. 26033SHELL=$lt_SHELL 26034 26035# An echo program that protects backslashes. 26036ECHO=$lt_ECHO 26037 26038# The PATH separator for the build system. 26039PATH_SEPARATOR=$lt_PATH_SEPARATOR 26040 26041# The host system. 26042host_alias=$host_alias 26043host=$host 26044host_os=$host_os 26045 26046# The build system. 26047build_alias=$build_alias 26048build=$build 26049build_os=$build_os 26050 26051# A sed program that does not truncate output. 26052SED=$lt_SED 26053 26054# Sed that helps us avoid accidentally triggering echo(1) options like -n. 26055Xsed="\$SED -e 1s/^X//" 26056 26057# A grep program that handles long lines. 26058GREP=$lt_GREP 26059 26060# An ERE matcher. 26061EGREP=$lt_EGREP 26062 26063# A literal string matcher. 26064FGREP=$lt_FGREP 26065 26066# A BSD- or MS-compatible name lister. 26067NM=$lt_NM 26068 26069# Whether we need soft or hard links. 26070LN_S=$lt_LN_S 26071 26072# What is the maximum length of a command? 26073max_cmd_len=$max_cmd_len 26074 26075# Object file suffix (normally "o"). 26076objext=$ac_objext 26077 26078# Executable file suffix (normally ""). 26079exeext=$exeext 26080 26081# whether the shell understands "unset". 26082lt_unset=$lt_unset 26083 26084# turn spaces into newlines. 26085SP2NL=$lt_lt_SP2NL 26086 26087# turn newlines into spaces. 26088NL2SP=$lt_lt_NL2SP 26089 26090# convert \$build file names to \$host format. 26091to_host_file_cmd=$lt_cv_to_host_file_cmd 26092 26093# convert \$build files to toolchain format. 26094to_tool_file_cmd=$lt_cv_to_tool_file_cmd 26095 26096# An object symbol dumper. 26097OBJDUMP=$lt_OBJDUMP 26098 26099# Method to check whether dependent libraries are shared objects. 26100deplibs_check_method=$lt_deplibs_check_method 26101 26102# Command to use when deplibs_check_method = "file_magic". 26103file_magic_cmd=$lt_file_magic_cmd 26104 26105# How to find potential files when deplibs_check_method = "file_magic". 26106file_magic_glob=$lt_file_magic_glob 26107 26108# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 26109want_nocaseglob=$lt_want_nocaseglob 26110 26111# DLL creation program. 26112DLLTOOL=$lt_DLLTOOL 26113 26114# Command to associate shared and link libraries. 26115sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 26116 26117# The archiver. 26118AR=$lt_AR 26119 26120# Flags to create an archive. 26121AR_FLAGS=$lt_AR_FLAGS 26122 26123# How to feed a file listing to the archiver. 26124archiver_list_spec=$lt_archiver_list_spec 26125 26126# A symbol stripping program. 26127STRIP=$lt_STRIP 26128 26129# Commands used to install an old-style archive. 26130RANLIB=$lt_RANLIB 26131old_postinstall_cmds=$lt_old_postinstall_cmds 26132old_postuninstall_cmds=$lt_old_postuninstall_cmds 26133 26134# Whether to use a lock for old archive extraction. 26135lock_old_archive_extraction=$lock_old_archive_extraction 26136 26137# A C compiler. 26138LTCC=$lt_CC 26139 26140# LTCC compiler flags. 26141LTCFLAGS=$lt_CFLAGS 26142 26143# Take the output of nm and produce a listing of raw symbols and C names. 26144global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 26145 26146# Transform the output of nm in a proper C declaration. 26147global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 26148 26149# Transform the output of nm into a list of symbols to manually relocate. 26150global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 26151 26152# Transform the output of nm in a C name address pair. 26153global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 26154 26155# Transform the output of nm in a C name address pair when lib prefix is needed. 26156global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 26157 26158# The name lister interface. 26159nm_interface=$lt_lt_cv_nm_interface 26160 26161# Specify filename containing input files for \$NM. 26162nm_file_list_spec=$lt_nm_file_list_spec 26163 26164# The root where to search for dependent libraries,and where our libraries should be installed. 26165lt_sysroot=$lt_sysroot 26166 26167# Command to truncate a binary pipe. 26168lt_truncate_bin=$lt_lt_cv_truncate_bin 26169 26170# The name of the directory that contains temporary libtool files. 26171objdir=$objdir 26172 26173# Used to examine libraries when file_magic_cmd begins with "file". 26174MAGIC_CMD=$MAGIC_CMD 26175 26176# Must we lock files when doing compilation? 26177need_locks=$lt_need_locks 26178 26179# Manifest tool. 26180MANIFEST_TOOL=$lt_MANIFEST_TOOL 26181 26182# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 26183DSYMUTIL=$lt_DSYMUTIL 26184 26185# Tool to change global to local symbols on Mac OS X. 26186NMEDIT=$lt_NMEDIT 26187 26188# Tool to manipulate fat objects and archives on Mac OS X. 26189LIPO=$lt_LIPO 26190 26191# ldd/readelf like tool for Mach-O binaries on Mac OS X. 26192OTOOL=$lt_OTOOL 26193 26194# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 26195OTOOL64=$lt_OTOOL64 26196 26197# Old archive suffix (normally "a"). 26198libext=$libext 26199 26200# Shared library suffix (normally ".so"). 26201shrext_cmds=$lt_shrext_cmds 26202 26203# The commands to extract the exported symbol list from a shared archive. 26204extract_expsyms_cmds=$lt_extract_expsyms_cmds 26205 26206# Variables whose values should be saved in libtool wrapper scripts and 26207# restored at link time. 26208variables_saved_for_relink=$lt_variables_saved_for_relink 26209 26210# Do we need the "lib" prefix for modules? 26211need_lib_prefix=$need_lib_prefix 26212 26213# Do we need a version for libraries? 26214need_version=$need_version 26215 26216# Library versioning type. 26217version_type=$version_type 26218 26219# Shared library runtime path variable. 26220runpath_var=$runpath_var 26221 26222# Shared library path variable. 26223shlibpath_var=$shlibpath_var 26224 26225# Is shlibpath searched before the hard-coded library search path? 26226shlibpath_overrides_runpath=$shlibpath_overrides_runpath 26227 26228# Format of library name prefix. 26229libname_spec=$lt_libname_spec 26230 26231# List of archive names. First name is the real one, the rest are links. 26232# The last name is the one that the linker finds with -lNAME 26233library_names_spec=$lt_library_names_spec 26234 26235# The coded name of the library, if different from the real name. 26236soname_spec=$lt_soname_spec 26237 26238# Permission mode override for installation of shared libraries. 26239install_override_mode=$lt_install_override_mode 26240 26241# Command to use after installation of a shared archive. 26242postinstall_cmds=$lt_postinstall_cmds 26243 26244# Command to use after uninstallation of a shared archive. 26245postuninstall_cmds=$lt_postuninstall_cmds 26246 26247# Commands used to finish a libtool library installation in a directory. 26248finish_cmds=$lt_finish_cmds 26249 26250# As "finish_cmds", except a single script fragment to be evaled but 26251# not shown. 26252finish_eval=$lt_finish_eval 26253 26254# Whether we should hardcode library paths into libraries. 26255hardcode_into_libs=$hardcode_into_libs 26256 26257# Compile-time system search path for libraries. 26258sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 26259 26260# Detected run-time system search path for libraries. 26261sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 26262 26263# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 26264configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 26265 26266# Whether dlopen is supported. 26267dlopen_support=$enable_dlopen 26268 26269# Whether dlopen of programs is supported. 26270dlopen_self=$enable_dlopen_self 26271 26272# Whether dlopen of statically linked programs is supported. 26273dlopen_self_static=$enable_dlopen_self_static 26274 26275# Commands to strip libraries. 26276old_striplib=$lt_old_striplib 26277striplib=$lt_striplib 26278 26279 26280# The linker used to build libraries. 26281LD=$lt_LD 26282 26283# How to create reloadable object files. 26284reload_flag=$lt_reload_flag 26285reload_cmds=$lt_reload_cmds 26286 26287# Commands used to build an old-style archive. 26288old_archive_cmds=$lt_old_archive_cmds 26289 26290# A language specific compiler. 26291CC=$lt_compiler 26292 26293# Is the compiler the GNU compiler? 26294with_gcc=$GCC 26295 26296# Compiler flag to turn off builtin functions. 26297no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 26298 26299# Additional compiler flags for building library objects. 26300pic_flag=$lt_lt_prog_compiler_pic 26301 26302# How to pass a linker flag through the compiler. 26303wl=$lt_lt_prog_compiler_wl 26304 26305# Compiler flag to prevent dynamic linking. 26306link_static_flag=$lt_lt_prog_compiler_static 26307 26308# Does compiler simultaneously support -c and -o options? 26309compiler_c_o=$lt_lt_cv_prog_compiler_c_o 26310 26311# Whether or not to add -lc for building shared libraries. 26312build_libtool_need_lc=$archive_cmds_need_lc 26313 26314# Whether or not to disallow shared libs when runtime libs are static. 26315allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 26316 26317# Compiler flag to allow reflexive dlopens. 26318export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 26319 26320# Compiler flag to generate shared objects directly from archives. 26321whole_archive_flag_spec=$lt_whole_archive_flag_spec 26322 26323# Whether the compiler copes with passing no objects directly. 26324compiler_needs_object=$lt_compiler_needs_object 26325 26326# Create an old-style archive from a shared archive. 26327old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 26328 26329# Create a temporary old-style archive to link instead of a shared archive. 26330old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 26331 26332# Commands used to build a shared archive. 26333archive_cmds=$lt_archive_cmds 26334archive_expsym_cmds=$lt_archive_expsym_cmds 26335 26336# Commands used to build a loadable module if different from building 26337# a shared archive. 26338module_cmds=$lt_module_cmds 26339module_expsym_cmds=$lt_module_expsym_cmds 26340 26341# Whether we are building with GNU ld or not. 26342with_gnu_ld=$lt_with_gnu_ld 26343 26344# Flag that allows shared libraries with undefined symbols to be built. 26345allow_undefined_flag=$lt_allow_undefined_flag 26346 26347# Flag that enforces no undefined symbols. 26348no_undefined_flag=$lt_no_undefined_flag 26349 26350# Flag to hardcode \$libdir into a binary during linking. 26351# This must work even if \$libdir does not exist 26352hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 26353 26354# Whether we need a single "-rpath" flag with a separated argument. 26355hardcode_libdir_separator=$lt_hardcode_libdir_separator 26356 26357# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 26358# DIR into the resulting binary. 26359hardcode_direct=$hardcode_direct 26360 26361# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 26362# DIR into the resulting binary and the resulting library dependency is 26363# "absolute",i.e impossible to change by setting \$shlibpath_var if the 26364# library is relocated. 26365hardcode_direct_absolute=$hardcode_direct_absolute 26366 26367# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 26368# into the resulting binary. 26369hardcode_minus_L=$hardcode_minus_L 26370 26371# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 26372# into the resulting binary. 26373hardcode_shlibpath_var=$hardcode_shlibpath_var 26374 26375# Set to "yes" if building a shared library automatically hardcodes DIR 26376# into the library and all subsequent libraries and executables linked 26377# against it. 26378hardcode_automatic=$hardcode_automatic 26379 26380# Set to yes if linker adds runtime paths of dependent libraries 26381# to runtime path list. 26382inherit_rpath=$inherit_rpath 26383 26384# Whether libtool must link a program against all its dependency libraries. 26385link_all_deplibs=$link_all_deplibs 26386 26387# Set to "yes" if exported symbols are required. 26388always_export_symbols=$always_export_symbols 26389 26390# The commands to list exported symbols. 26391export_symbols_cmds=$lt_export_symbols_cmds 26392 26393# Symbols that should not be listed in the preloaded symbols. 26394exclude_expsyms=$lt_exclude_expsyms 26395 26396# Symbols that must always be exported. 26397include_expsyms=$lt_include_expsyms 26398 26399# Commands necessary for linking programs (against libraries) with templates. 26400prelink_cmds=$lt_prelink_cmds 26401 26402# Commands necessary for finishing linking programs. 26403postlink_cmds=$lt_postlink_cmds 26404 26405# Specify filename containing input files. 26406file_list_spec=$lt_file_list_spec 26407 26408# How to hardcode a shared library path into an executable. 26409hardcode_action=$hardcode_action 26410 26411# The directories searched by this compiler when creating a shared library. 26412compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 26413 26414# Dependencies to place before and after the objects being linked to 26415# create a shared library. 26416predep_objects=$lt_predep_objects 26417postdep_objects=$lt_postdep_objects 26418predeps=$lt_predeps 26419postdeps=$lt_postdeps 26420 26421# The library search path used internally by the compiler when linking 26422# a shared library. 26423compiler_lib_search_path=$lt_compiler_lib_search_path 26424 26425# ### END LIBTOOL CONFIG 26426 26427_LT_EOF 26428 26429 cat <<'_LT_EOF' >> "$cfgfile" 26430 26431# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 26432 26433# func_munge_path_list VARIABLE PATH 26434# ----------------------------------- 26435# VARIABLE is name of variable containing _space_ separated list of 26436# directories to be munged by the contents of PATH, which is string 26437# having a format: 26438# "DIR[:DIR]:" 26439# string "DIR[ DIR]" will be prepended to VARIABLE 26440# ":DIR[:DIR]" 26441# string "DIR[ DIR]" will be appended to VARIABLE 26442# "DIRP[:DIRP]::[DIRA:]DIRA" 26443# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 26444# "DIRA[ DIRA]" will be appended to VARIABLE 26445# "DIR[:DIR]" 26446# VARIABLE will be replaced by "DIR[ DIR]" 26447func_munge_path_list () 26448{ 26449 case x$2 in 26450 x) 26451 ;; 26452 *:) 26453 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 26454 ;; 26455 x:*) 26456 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 26457 ;; 26458 *::*) 26459 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 26460 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 26461 ;; 26462 *) 26463 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 26464 ;; 26465 esac 26466} 26467 26468 26469# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 26470func_cc_basename () 26471{ 26472 for cc_temp in $*""; do 26473 case $cc_temp in 26474 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 26475 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 26476 \-*) ;; 26477 *) break;; 26478 esac 26479 done 26480 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 26481} 26482 26483 26484# ### END FUNCTIONS SHARED WITH CONFIGURE 26485 26486_LT_EOF 26487 26488 case $host_os in 26489 aix3*) 26490 cat <<\_LT_EOF >> "$cfgfile" 26491# AIX sometimes has problems with the GCC collect2 program. For some 26492# reason, if we set the COLLECT_NAMES environment variable, the problems 26493# vanish in a puff of smoke. 26494if test set != "${COLLECT_NAMES+set}"; then 26495 COLLECT_NAMES= 26496 export COLLECT_NAMES 26497fi 26498_LT_EOF 26499 ;; 26500 esac 26501 26502 26503ltmain=$ac_aux_dir/ltmain.sh 26504 26505 26506 # We use sed instead of cat because bash on DJGPP gets confused if 26507 # if finds mixed CR/LF and LF-only lines. Since sed operates in 26508 # text mode, it properly converts lines to CR/LF. This bash problem 26509 # is reportedly fixed, but why not run on old versions too? 26510 sed '$q' "$ltmain" >> "$cfgfile" \ 26511 || (rm -f "$cfgfile"; exit 1) 26512 26513 mv -f "$cfgfile" "$ofile" || 26514 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 26515 chmod +x "$ofile" 26516 26517 26518 cat <<_LT_EOF >> "$ofile" 26519 26520# ### BEGIN LIBTOOL TAG CONFIG: F77 26521 26522# The linker used to build libraries. 26523LD=$lt_LD_F77 26524 26525# How to create reloadable object files. 26526reload_flag=$lt_reload_flag_F77 26527reload_cmds=$lt_reload_cmds_F77 26528 26529# Commands used to build an old-style archive. 26530old_archive_cmds=$lt_old_archive_cmds_F77 26531 26532# A language specific compiler. 26533CC=$lt_compiler_F77 26534 26535# Is the compiler the GNU compiler? 26536with_gcc=$GCC_F77 26537 26538# Compiler flag to turn off builtin functions. 26539no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 26540 26541# Additional compiler flags for building library objects. 26542pic_flag=$lt_lt_prog_compiler_pic_F77 26543 26544# How to pass a linker flag through the compiler. 26545wl=$lt_lt_prog_compiler_wl_F77 26546 26547# Compiler flag to prevent dynamic linking. 26548link_static_flag=$lt_lt_prog_compiler_static_F77 26549 26550# Does compiler simultaneously support -c and -o options? 26551compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 26552 26553# Whether or not to add -lc for building shared libraries. 26554build_libtool_need_lc=$archive_cmds_need_lc_F77 26555 26556# Whether or not to disallow shared libs when runtime libs are static. 26557allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 26558 26559# Compiler flag to allow reflexive dlopens. 26560export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 26561 26562# Compiler flag to generate shared objects directly from archives. 26563whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 26564 26565# Whether the compiler copes with passing no objects directly. 26566compiler_needs_object=$lt_compiler_needs_object_F77 26567 26568# Create an old-style archive from a shared archive. 26569old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 26570 26571# Create a temporary old-style archive to link instead of a shared archive. 26572old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 26573 26574# Commands used to build a shared archive. 26575archive_cmds=$lt_archive_cmds_F77 26576archive_expsym_cmds=$lt_archive_expsym_cmds_F77 26577 26578# Commands used to build a loadable module if different from building 26579# a shared archive. 26580module_cmds=$lt_module_cmds_F77 26581module_expsym_cmds=$lt_module_expsym_cmds_F77 26582 26583# Whether we are building with GNU ld or not. 26584with_gnu_ld=$lt_with_gnu_ld_F77 26585 26586# Flag that allows shared libraries with undefined symbols to be built. 26587allow_undefined_flag=$lt_allow_undefined_flag_F77 26588 26589# Flag that enforces no undefined symbols. 26590no_undefined_flag=$lt_no_undefined_flag_F77 26591 26592# Flag to hardcode \$libdir into a binary during linking. 26593# This must work even if \$libdir does not exist 26594hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 26595 26596# Whether we need a single "-rpath" flag with a separated argument. 26597hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 26598 26599# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 26600# DIR into the resulting binary. 26601hardcode_direct=$hardcode_direct_F77 26602 26603# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 26604# DIR into the resulting binary and the resulting library dependency is 26605# "absolute",i.e impossible to change by setting \$shlibpath_var if the 26606# library is relocated. 26607hardcode_direct_absolute=$hardcode_direct_absolute_F77 26608 26609# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 26610# into the resulting binary. 26611hardcode_minus_L=$hardcode_minus_L_F77 26612 26613# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 26614# into the resulting binary. 26615hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 26616 26617# Set to "yes" if building a shared library automatically hardcodes DIR 26618# into the library and all subsequent libraries and executables linked 26619# against it. 26620hardcode_automatic=$hardcode_automatic_F77 26621 26622# Set to yes if linker adds runtime paths of dependent libraries 26623# to runtime path list. 26624inherit_rpath=$inherit_rpath_F77 26625 26626# Whether libtool must link a program against all its dependency libraries. 26627link_all_deplibs=$link_all_deplibs_F77 26628 26629# Set to "yes" if exported symbols are required. 26630always_export_symbols=$always_export_symbols_F77 26631 26632# The commands to list exported symbols. 26633export_symbols_cmds=$lt_export_symbols_cmds_F77 26634 26635# Symbols that should not be listed in the preloaded symbols. 26636exclude_expsyms=$lt_exclude_expsyms_F77 26637 26638# Symbols that must always be exported. 26639include_expsyms=$lt_include_expsyms_F77 26640 26641# Commands necessary for linking programs (against libraries) with templates. 26642prelink_cmds=$lt_prelink_cmds_F77 26643 26644# Commands necessary for finishing linking programs. 26645postlink_cmds=$lt_postlink_cmds_F77 26646 26647# Specify filename containing input files. 26648file_list_spec=$lt_file_list_spec_F77 26649 26650# How to hardcode a shared library path into an executable. 26651hardcode_action=$hardcode_action_F77 26652 26653# The directories searched by this compiler when creating a shared library. 26654compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77 26655 26656# Dependencies to place before and after the objects being linked to 26657# create a shared library. 26658predep_objects=$lt_predep_objects_F77 26659postdep_objects=$lt_postdep_objects_F77 26660predeps=$lt_predeps_F77 26661postdeps=$lt_postdeps_F77 26662 26663# The library search path used internally by the compiler when linking 26664# a shared library. 26665compiler_lib_search_path=$lt_compiler_lib_search_path_F77 26666 26667# ### END LIBTOOL TAG CONFIG: F77 26668_LT_EOF 26669 26670 26671 cat <<_LT_EOF >> "$ofile" 26672 26673# ### BEGIN LIBTOOL TAG CONFIG: FC 26674 26675# The linker used to build libraries. 26676LD=$lt_LD_FC 26677 26678# How to create reloadable object files. 26679reload_flag=$lt_reload_flag_FC 26680reload_cmds=$lt_reload_cmds_FC 26681 26682# Commands used to build an old-style archive. 26683old_archive_cmds=$lt_old_archive_cmds_FC 26684 26685# A language specific compiler. 26686CC=$lt_compiler_FC 26687 26688# Is the compiler the GNU compiler? 26689with_gcc=$GCC_FC 26690 26691# Compiler flag to turn off builtin functions. 26692no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC 26693 26694# Additional compiler flags for building library objects. 26695pic_flag=$lt_lt_prog_compiler_pic_FC 26696 26697# How to pass a linker flag through the compiler. 26698wl=$lt_lt_prog_compiler_wl_FC 26699 26700# Compiler flag to prevent dynamic linking. 26701link_static_flag=$lt_lt_prog_compiler_static_FC 26702 26703# Does compiler simultaneously support -c and -o options? 26704compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC 26705 26706# Whether or not to add -lc for building shared libraries. 26707build_libtool_need_lc=$archive_cmds_need_lc_FC 26708 26709# Whether or not to disallow shared libs when runtime libs are static. 26710allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC 26711 26712# Compiler flag to allow reflexive dlopens. 26713export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC 26714 26715# Compiler flag to generate shared objects directly from archives. 26716whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC 26717 26718# Whether the compiler copes with passing no objects directly. 26719compiler_needs_object=$lt_compiler_needs_object_FC 26720 26721# Create an old-style archive from a shared archive. 26722old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC 26723 26724# Create a temporary old-style archive to link instead of a shared archive. 26725old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC 26726 26727# Commands used to build a shared archive. 26728archive_cmds=$lt_archive_cmds_FC 26729archive_expsym_cmds=$lt_archive_expsym_cmds_FC 26730 26731# Commands used to build a loadable module if different from building 26732# a shared archive. 26733module_cmds=$lt_module_cmds_FC 26734module_expsym_cmds=$lt_module_expsym_cmds_FC 26735 26736# Whether we are building with GNU ld or not. 26737with_gnu_ld=$lt_with_gnu_ld_FC 26738 26739# Flag that allows shared libraries with undefined symbols to be built. 26740allow_undefined_flag=$lt_allow_undefined_flag_FC 26741 26742# Flag that enforces no undefined symbols. 26743no_undefined_flag=$lt_no_undefined_flag_FC 26744 26745# Flag to hardcode \$libdir into a binary during linking. 26746# This must work even if \$libdir does not exist 26747hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC 26748 26749# Whether we need a single "-rpath" flag with a separated argument. 26750hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC 26751 26752# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 26753# DIR into the resulting binary. 26754hardcode_direct=$hardcode_direct_FC 26755 26756# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 26757# DIR into the resulting binary and the resulting library dependency is 26758# "absolute",i.e impossible to change by setting \$shlibpath_var if the 26759# library is relocated. 26760hardcode_direct_absolute=$hardcode_direct_absolute_FC 26761 26762# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 26763# into the resulting binary. 26764hardcode_minus_L=$hardcode_minus_L_FC 26765 26766# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 26767# into the resulting binary. 26768hardcode_shlibpath_var=$hardcode_shlibpath_var_FC 26769 26770# Set to "yes" if building a shared library automatically hardcodes DIR 26771# into the library and all subsequent libraries and executables linked 26772# against it. 26773hardcode_automatic=$hardcode_automatic_FC 26774 26775# Set to yes if linker adds runtime paths of dependent libraries 26776# to runtime path list. 26777inherit_rpath=$inherit_rpath_FC 26778 26779# Whether libtool must link a program against all its dependency libraries. 26780link_all_deplibs=$link_all_deplibs_FC 26781 26782# Set to "yes" if exported symbols are required. 26783always_export_symbols=$always_export_symbols_FC 26784 26785# The commands to list exported symbols. 26786export_symbols_cmds=$lt_export_symbols_cmds_FC 26787 26788# Symbols that should not be listed in the preloaded symbols. 26789exclude_expsyms=$lt_exclude_expsyms_FC 26790 26791# Symbols that must always be exported. 26792include_expsyms=$lt_include_expsyms_FC 26793 26794# Commands necessary for linking programs (against libraries) with templates. 26795prelink_cmds=$lt_prelink_cmds_FC 26796 26797# Commands necessary for finishing linking programs. 26798postlink_cmds=$lt_postlink_cmds_FC 26799 26800# Specify filename containing input files. 26801file_list_spec=$lt_file_list_spec_FC 26802 26803# How to hardcode a shared library path into an executable. 26804hardcode_action=$hardcode_action_FC 26805 26806# The directories searched by this compiler when creating a shared library. 26807compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC 26808 26809# Dependencies to place before and after the objects being linked to 26810# create a shared library. 26811predep_objects=$lt_predep_objects_FC 26812postdep_objects=$lt_postdep_objects_FC 26813predeps=$lt_predeps_FC 26814postdeps=$lt_postdeps_FC 26815 26816# The library search path used internally by the compiler when linking 26817# a shared library. 26818compiler_lib_search_path=$lt_compiler_lib_search_path_FC 26819 26820# ### END LIBTOOL TAG CONFIG: FC 26821_LT_EOF 26822 26823 ;; 26824 "Makefile":F) test -f nf-config && chmod 755 nf-config ;; 26825 "nf-config":F) test -f nf-config && chmod 755 nf-config ;; 26826 "netcdf-fortran.pc":F) test -f nf-config && chmod 755 nf-config ;; 26827 "libnetcdff.settings":F) test -f nf-config && chmod 755 nf-config ;; 26828 "docs/Makefile":F) test -f nf-config && chmod 755 nf-config ;; 26829 "fortran/Makefile":F) test -f nf-config && chmod 755 nf-config ;; 26830 "nf_test/Makefile":F) test -f nf-config && chmod 755 nf-config ;; 26831 "nf_test4/Makefile":F) test -f nf-config && chmod 755 nf-config ;; 26832 "nf03_test/Makefile":F) test -f nf-config && chmod 755 nf-config ;; 26833 "nf03_test4/Makefile":F) test -f nf-config && chmod 755 nf-config ;; 26834 "CMakeExtras/Makefile":F) test -f nf-config && chmod 755 nf-config ;; 26835 "libsrc/Makefile":F) test -f nf-config && chmod 755 nf-config ;; 26836 "examples/Makefile":F) test -f nf-config && chmod 755 nf-config ;; 26837 "examples/F90/Makefile":F) test -f nf-config && chmod 755 nf-config ;; 26838 "examples/F77/Makefile":F) test -f nf-config && chmod 755 nf-config ;; 26839 26840 esac 26841done # for ac_tag 26842 26843 26844as_fn_exit 0 26845_ACEOF 26846ac_clean_files=$ac_clean_files_save 26847 26848test $ac_write_fail = 0 || 26849 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 26850 26851 26852# configure is writing to config.log, and then calls config.status. 26853# config.status does its own redirection, appending to config.log. 26854# Unfortunately, on DOS this fails, as config.log is still kept open 26855# by configure, so config.status won't be able to write to it; its 26856# output is simply discarded. So we exec the FD to /dev/null, 26857# effectively closing config.log, so it can be properly (re)opened and 26858# appended to by config.status. When coming back to configure, we 26859# need to make the FD available again. 26860if test "$no_create" != yes; then 26861 ac_cs_success=: 26862 ac_config_status_args= 26863 test "$silent" = yes && 26864 ac_config_status_args="$ac_config_status_args --quiet" 26865 exec 5>/dev/null 26866 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 26867 exec 5>>config.log 26868 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 26869 # would make configure fail if this is the last instruction. 26870 $ac_cs_success || as_fn_exit 1 26871fi 26872if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 26873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 26874$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 26875fi 26876 26877 26878cat libnetcdff.settings 26879