1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for MED Fichier 4.0.0. 4# 5# Report bugs to <eric.fayolle@edf.fr>. 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: eric.fayolle@edf.fr about your system, including any 279$0: error possibly output before this message. Then install 280$0: a modern shell, or manually run the script under such a 281$0: 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='MED Fichier' 592PACKAGE_TARNAME='med' 593PACKAGE_VERSION='4.0.0' 594PACKAGE_STRING='MED Fichier 4.0.0' 595PACKAGE_BUGREPORT='eric.fayolle@edf.fr' 596PACKAGE_URL='' 597 598ac_unique_file="src/ci/MEDmeshCr.c" 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635ac_subst_vars='am__EXEEXT_FALSE 636am__EXEEXT_TRUE 637LTLIBOBJS 638LIBOBJS 639STATIC_SHARED 640CC_VERSION 641enable_static 642enable_shared 643UNAME_INFO 644CONFIG_USER 645CONFIG_DATE 646WITH_PYTHON_FALSE 647WITH_PYTHON_TRUE 648BUILD_PYTHONTESTS_CONDITIONAL_FALSE 649BUILD_PYTHONTESTS_CONDITIONAL_TRUE 650pkgpyexecdir 651pyexecdir 652pkgpythondir 653pythondir 654PYTHON_PLATFORM 655PYTHON_EXEC_PREFIX 656PYTHON_PREFIX 657MED_HAVE_PYTHON3_FALSE 658MED_HAVE_PYTHON3_TRUE 659MED_SWIG_GT_30008_FALSE 660MED_SWIG_GT_30008_TRUE 661WITH_SWIG_FALSE 662WITH_SWIG_TRUE 663SWIG_PYTHON_CPPFLAGS 664SWIG_PYTHON_OPT 665PYTHON_EXTRA_LDFLAGS 666PYTHON_EXTRA_LIBS 667PYTHON_SITE_PKG 668PYTHON_LDFLAGS 669PYTHON_CPPFLAGS 670PYTHON 671PYTHON_VERSION 672SWIG_LIB 673SWIG 674SWIGFLAGS 675MED_INT32 676MED_INT64 677HAVE_INT64_FALSE 678HAVE_INT64_TRUE 679MED_SWIG_INT64_FALSE 680MED_SWIG_INT64_TRUE 681WISH 682CP 683DIFF 684CXXCPP 685LT_SYS_LIBRARY_PATH 686OTOOL64 687OTOOL 688LIPO 689NMEDIT 690DSYMUTIL 691MANIFEST_TOOL 692RANLIB 693ac_ct_AR 694AR 695LN_S 696NM 697ac_ct_DUMPBIN 698DUMPBIN 699LD 700FGREP 701LIBTOOL 702OBJDUMP 703DLLTOOL 704AS 705ENABLE_API23_FALSE 706ENABLE_API23_TRUE 707MED_API_23 708CXXOK 709am__fastdepCXX_FALSE 710am__fastdepCXX_TRUE 711CXXDEPMODE 712CXXFLAGS 713ac_ct_CXX 714CXX 715MPICXX 716LONG_OR_INT 717HIDT_I8_OR_I4 718FLIBS 719BUILD_F77TESTS_CONDITIONAL_FALSE 720BUILD_F77TESTS_CONDITIONAL_TRUE 721FFLAGS 722ac_ct_F77 723F77 724MPIF77 725INSTALLTEST_FALSE 726INSTALLTEST_TRUE 727MED_CHECK_23FORMAT 728MESGERR 729FTLIBS 730FTLDFLAGS 731WITHF90_FALSE 732WITHF90_TRUE 733HDF5_TYPEDEF_HSIZE_T 734HDF5_TYPEDEF_HID_T 735HDF5_TYPEDEF_HERR_T 736HDF5_LIBS 737HDF5_USED_VER 738HDF5_LDFLAGS 739HDF5_CPPFLAGS 740H5DUMP 741EGREP 742CPP 743GREP 744BUILD_WITH_PMED 745MED_DEFINE_MED_HAVE_MPI 746WITHPMED_FALSE 747WITHPMED_TRUE 748BUILD_F90TESTS_CONDITIONAL_FALSE 749BUILD_F90TESTS_CONDITIONAL_TRUE 750FC_DEFINE 751FCFLAGS_F 752FCFLAGS_F90 753WITHFCPP_FALSE 754WITHFCPP_TRUE 755FCLIBS 756host_os 757host_vendor 758host_cpu 759host 760build_os 761build_vendor 762build_cpu 763build 764FCFLAGS 765ac_ct_FC 766FC 767MPIFC 768ENABLE_FORTRAN_FALSE 769ENABLE_FORTRAN_TRUE 770am__fastdepCC_FALSE 771am__fastdepCC_TRUE 772CCDEPMODE 773am__nodep 774AMDEPBACKSLASH 775AMDEP_FALSE 776AMDEP_TRUE 777am__quote 778am__include 779DEPDIR 780OBJEXT 781EXEEXT 782CPPFLAGS 783LDFLAGS 784CFLAGS 785ac_ct_CC 786CC 787MPICC 788SED 789AM_BACKSLASH 790AM_DEFAULT_VERBOSITY 791AM_DEFAULT_V 792AM_V 793am__untar 794am__tar 795AMTAR 796am__leading_dot 797SET_MAKE 798AWK 799mkdir_p 800MKDIR_P 801INSTALL_STRIP_PROGRAM 802STRIP 803install_sh 804MAKEINFO 805AUTOHEADER 806AUTOMAKE 807AUTOCONF 808ACLOCAL 809VERSION 810PACKAGE 811CYGPATH_W 812am__isrc 813INSTALL_DATA 814INSTALL_SCRIPT 815INSTALL_PROGRAM 816ac_aux_dir 817MED_PYTHON2_VERSION_REF 818MED_PYTHON3_VERSION_REF 819MED_PYTHON_VERSION_REF 820MED_SWIG_MIN_VERSION_REF 821MED_SWIG_VERSION_REF 822HDF_VERSION_RELEASE_REF 823HDF_VERSION_MINOR_REF 824HDF_VERSION_MAJOR_REF 825HDF_VERSION_REF 826MEDIMPORT_CMAKE_SO_VERSION 827MEDIMPORT_CMAKE_SO_REL 828MEDIMPORT_CMAKE_SO_MIN 829MEDIMPORT_CMAKE_SO_MAJ 830MEDIMPORT_LIBTOOL_REL 831MEDIMPORT_LIBTOOL_MIN 832MEDIMPORT_LIBTOOL_MAJ 833MED_CMAKE_SO_VERSION 834MED_CMAKE_SO_REL 835MED_CMAKE_SO_MIN 836MED_CMAKE_SO_MAJ 837MED_LIBTOOL_REL 838MED_LIBTOOL_MIN 839MED_LIBTOOL_MAJ 840MED_3_LATEST_MINOR 841MED_NUM_RELEASE 842MED_NUM_MINEUR 843MED_NUM_MAJEUR 844target_alias 845host_alias 846build_alias 847LIBS 848ECHO_T 849ECHO_N 850ECHO_C 851DEFS 852mandir 853localedir 854libdir 855psdir 856pdfdir 857dvidir 858htmldir 859infodir 860docdir 861oldincludedir 862includedir 863localstatedir 864sharedstatedir 865sysconfdir 866datadir 867datarootdir 868libexecdir 869sbindir 870bindir 871program_transform_name 872prefix 873exec_prefix 874PACKAGE_URL 875PACKAGE_BUGREPORT 876PACKAGE_STRING 877PACKAGE_VERSION 878PACKAGE_TARNAME 879PACKAGE_NAME 880PATH_SEPARATOR 881SHELL' 882ac_subst_files='DOXYMEDFILE 883DOXYMEDMESH 884DOXYMEDSUPPORTMESH 885DOXYMEDFILTER 886DOXYMEDLIBRARY 887DOXYMEDFIELD 888DOXYMEDFAMILY 889DOXYMEDEQUIVALENCE 890DOXYMEDLINK 891DOXYMEDJOINT 892DOXYMEDLOCALIZATION 893DOXYMEDINTERP 894DOXYMEDSTRUCTELEMENT 895DOXYMEDPARAMETER 896DOXYMEDPROFILE 897DOXYALIASES' 898ac_user_opts=' 899enable_option_checking 900enable_silent_rules 901with_hdf5 902with_hdf5_include 903with_hdf5_lib 904with_hdf5_bin 905enable_dependency_tracking 906enable_fortran 907with_f90 908enable_mesgerr 909enable_check23 910enable_installtest 911with_hid_t 912with_med_int 913enable_api23 914enable_shared 915enable_static 916with_pic 917enable_fast_install 918with_aix_soname 919with_gnu_ld 920with_sysroot 921enable_libtool_lock 922with_int64 923with_swig 924enable_python 925' 926 ac_precious_vars='build_alias 927host_alias 928target_alias 929MPICC 930CC 931CFLAGS 932LDFLAGS 933LIBS 934CPPFLAGS 935MPIFC 936FC 937FCFLAGS 938CPP 939FTLDFLAGS 940FTLIBS 941MPIF77 942F77 943FFLAGS 944MPICXX 945CXX 946CXXFLAGS 947CCC 948LT_SYS_LIBRARY_PATH 949CXXCPP 950SWIGFLAGS 951PYTHON_VERSION 952PYTHON' 953 954 955# Initialize some variables set by options. 956ac_init_help= 957ac_init_version=false 958ac_unrecognized_opts= 959ac_unrecognized_sep= 960# The variables have the same names as the options, with 961# dashes changed to underlines. 962cache_file=/dev/null 963exec_prefix=NONE 964no_create= 965no_recursion= 966prefix=NONE 967program_prefix=NONE 968program_suffix=NONE 969program_transform_name=s,x,x, 970silent= 971site= 972srcdir= 973verbose= 974x_includes=NONE 975x_libraries=NONE 976 977# Installation directory options. 978# These are left unexpanded so users can "make install exec_prefix=/foo" 979# and all the variables that are supposed to be based on exec_prefix 980# by default will actually change. 981# Use braces instead of parens because sh, perl, etc. also accept them. 982# (The list follows the same order as the GNU Coding Standards.) 983bindir='${exec_prefix}/bin' 984sbindir='${exec_prefix}/sbin' 985libexecdir='${exec_prefix}/libexec' 986datarootdir='${prefix}/share' 987datadir='${datarootdir}' 988sysconfdir='${prefix}/etc' 989sharedstatedir='${prefix}/com' 990localstatedir='${prefix}/var' 991includedir='${prefix}/include' 992oldincludedir='/usr/include' 993docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 994infodir='${datarootdir}/info' 995htmldir='${docdir}' 996dvidir='${docdir}' 997pdfdir='${docdir}' 998psdir='${docdir}' 999libdir='${exec_prefix}/lib' 1000localedir='${datarootdir}/locale' 1001mandir='${datarootdir}/man' 1002 1003ac_prev= 1004ac_dashdash= 1005for ac_option 1006do 1007 # If the previous option needs an argument, assign it. 1008 if test -n "$ac_prev"; then 1009 eval $ac_prev=\$ac_option 1010 ac_prev= 1011 continue 1012 fi 1013 1014 case $ac_option in 1015 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1016 *=) ac_optarg= ;; 1017 *) ac_optarg=yes ;; 1018 esac 1019 1020 # Accept the important Cygnus configure options, so we can diagnose typos. 1021 1022 case $ac_dashdash$ac_option in 1023 --) 1024 ac_dashdash=yes ;; 1025 1026 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1027 ac_prev=bindir ;; 1028 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1029 bindir=$ac_optarg ;; 1030 1031 -build | --build | --buil | --bui | --bu) 1032 ac_prev=build_alias ;; 1033 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1034 build_alias=$ac_optarg ;; 1035 1036 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1037 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1038 ac_prev=cache_file ;; 1039 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1040 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1041 cache_file=$ac_optarg ;; 1042 1043 --config-cache | -C) 1044 cache_file=config.cache ;; 1045 1046 -datadir | --datadir | --datadi | --datad) 1047 ac_prev=datadir ;; 1048 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1049 datadir=$ac_optarg ;; 1050 1051 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1052 | --dataroo | --dataro | --datar) 1053 ac_prev=datarootdir ;; 1054 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1055 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1056 datarootdir=$ac_optarg ;; 1057 1058 -disable-* | --disable-*) 1059 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1060 # Reject names that are not valid shell variable names. 1061 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1062 as_fn_error $? "invalid feature name: $ac_useropt" 1063 ac_useropt_orig=$ac_useropt 1064 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1065 case $ac_user_opts in 1066 *" 1067"enable_$ac_useropt" 1068"*) ;; 1069 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1070 ac_unrecognized_sep=', ';; 1071 esac 1072 eval enable_$ac_useropt=no ;; 1073 1074 -docdir | --docdir | --docdi | --doc | --do) 1075 ac_prev=docdir ;; 1076 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1077 docdir=$ac_optarg ;; 1078 1079 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1080 ac_prev=dvidir ;; 1081 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1082 dvidir=$ac_optarg ;; 1083 1084 -enable-* | --enable-*) 1085 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1086 # Reject names that are not valid shell variable names. 1087 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1088 as_fn_error $? "invalid feature name: $ac_useropt" 1089 ac_useropt_orig=$ac_useropt 1090 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1091 case $ac_user_opts in 1092 *" 1093"enable_$ac_useropt" 1094"*) ;; 1095 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1096 ac_unrecognized_sep=', ';; 1097 esac 1098 eval enable_$ac_useropt=\$ac_optarg ;; 1099 1100 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1101 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1102 | --exec | --exe | --ex) 1103 ac_prev=exec_prefix ;; 1104 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1105 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1106 | --exec=* | --exe=* | --ex=*) 1107 exec_prefix=$ac_optarg ;; 1108 1109 -gas | --gas | --ga | --g) 1110 # Obsolete; use --with-gas. 1111 with_gas=yes ;; 1112 1113 -help | --help | --hel | --he | -h) 1114 ac_init_help=long ;; 1115 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1116 ac_init_help=recursive ;; 1117 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1118 ac_init_help=short ;; 1119 1120 -host | --host | --hos | --ho) 1121 ac_prev=host_alias ;; 1122 -host=* | --host=* | --hos=* | --ho=*) 1123 host_alias=$ac_optarg ;; 1124 1125 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1126 ac_prev=htmldir ;; 1127 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1128 | --ht=*) 1129 htmldir=$ac_optarg ;; 1130 1131 -includedir | --includedir | --includedi | --included | --include \ 1132 | --includ | --inclu | --incl | --inc) 1133 ac_prev=includedir ;; 1134 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1135 | --includ=* | --inclu=* | --incl=* | --inc=*) 1136 includedir=$ac_optarg ;; 1137 1138 -infodir | --infodir | --infodi | --infod | --info | --inf) 1139 ac_prev=infodir ;; 1140 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1141 infodir=$ac_optarg ;; 1142 1143 -libdir | --libdir | --libdi | --libd) 1144 ac_prev=libdir ;; 1145 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1146 libdir=$ac_optarg ;; 1147 1148 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1149 | --libexe | --libex | --libe) 1150 ac_prev=libexecdir ;; 1151 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1152 | --libexe=* | --libex=* | --libe=*) 1153 libexecdir=$ac_optarg ;; 1154 1155 -localedir | --localedir | --localedi | --localed | --locale) 1156 ac_prev=localedir ;; 1157 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1158 localedir=$ac_optarg ;; 1159 1160 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1161 | --localstate | --localstat | --localsta | --localst | --locals) 1162 ac_prev=localstatedir ;; 1163 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1164 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1165 localstatedir=$ac_optarg ;; 1166 1167 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1168 ac_prev=mandir ;; 1169 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1170 mandir=$ac_optarg ;; 1171 1172 -nfp | --nfp | --nf) 1173 # Obsolete; use --without-fp. 1174 with_fp=no ;; 1175 1176 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1177 | --no-cr | --no-c | -n) 1178 no_create=yes ;; 1179 1180 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1181 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1182 no_recursion=yes ;; 1183 1184 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1185 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1186 | --oldin | --oldi | --old | --ol | --o) 1187 ac_prev=oldincludedir ;; 1188 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1189 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1190 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1191 oldincludedir=$ac_optarg ;; 1192 1193 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1194 ac_prev=prefix ;; 1195 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1196 prefix=$ac_optarg ;; 1197 1198 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1199 | --program-pre | --program-pr | --program-p) 1200 ac_prev=program_prefix ;; 1201 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1202 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1203 program_prefix=$ac_optarg ;; 1204 1205 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1206 | --program-suf | --program-su | --program-s) 1207 ac_prev=program_suffix ;; 1208 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1209 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1210 program_suffix=$ac_optarg ;; 1211 1212 -program-transform-name | --program-transform-name \ 1213 | --program-transform-nam | --program-transform-na \ 1214 | --program-transform-n | --program-transform- \ 1215 | --program-transform | --program-transfor \ 1216 | --program-transfo | --program-transf \ 1217 | --program-trans | --program-tran \ 1218 | --progr-tra | --program-tr | --program-t) 1219 ac_prev=program_transform_name ;; 1220 -program-transform-name=* | --program-transform-name=* \ 1221 | --program-transform-nam=* | --program-transform-na=* \ 1222 | --program-transform-n=* | --program-transform-=* \ 1223 | --program-transform=* | --program-transfor=* \ 1224 | --program-transfo=* | --program-transf=* \ 1225 | --program-trans=* | --program-tran=* \ 1226 | --progr-tra=* | --program-tr=* | --program-t=*) 1227 program_transform_name=$ac_optarg ;; 1228 1229 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1230 ac_prev=pdfdir ;; 1231 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1232 pdfdir=$ac_optarg ;; 1233 1234 -psdir | --psdir | --psdi | --psd | --ps) 1235 ac_prev=psdir ;; 1236 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1237 psdir=$ac_optarg ;; 1238 1239 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1240 | -silent | --silent | --silen | --sile | --sil) 1241 silent=yes ;; 1242 1243 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1244 ac_prev=sbindir ;; 1245 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1246 | --sbi=* | --sb=*) 1247 sbindir=$ac_optarg ;; 1248 1249 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1250 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1251 | --sharedst | --shareds | --shared | --share | --shar \ 1252 | --sha | --sh) 1253 ac_prev=sharedstatedir ;; 1254 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1255 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1256 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1257 | --sha=* | --sh=*) 1258 sharedstatedir=$ac_optarg ;; 1259 1260 -site | --site | --sit) 1261 ac_prev=site ;; 1262 -site=* | --site=* | --sit=*) 1263 site=$ac_optarg ;; 1264 1265 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1266 ac_prev=srcdir ;; 1267 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1268 srcdir=$ac_optarg ;; 1269 1270 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1271 | --syscon | --sysco | --sysc | --sys | --sy) 1272 ac_prev=sysconfdir ;; 1273 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1274 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1275 sysconfdir=$ac_optarg ;; 1276 1277 -target | --target | --targe | --targ | --tar | --ta | --t) 1278 ac_prev=target_alias ;; 1279 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1280 target_alias=$ac_optarg ;; 1281 1282 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1283 verbose=yes ;; 1284 1285 -version | --version | --versio | --versi | --vers | -V) 1286 ac_init_version=: ;; 1287 1288 -with-* | --with-*) 1289 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1290 # Reject names that are not valid shell variable names. 1291 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1292 as_fn_error $? "invalid package name: $ac_useropt" 1293 ac_useropt_orig=$ac_useropt 1294 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1295 case $ac_user_opts in 1296 *" 1297"with_$ac_useropt" 1298"*) ;; 1299 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1300 ac_unrecognized_sep=', ';; 1301 esac 1302 eval with_$ac_useropt=\$ac_optarg ;; 1303 1304 -without-* | --without-*) 1305 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1306 # Reject names that are not valid shell variable names. 1307 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1308 as_fn_error $? "invalid package name: $ac_useropt" 1309 ac_useropt_orig=$ac_useropt 1310 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1311 case $ac_user_opts in 1312 *" 1313"with_$ac_useropt" 1314"*) ;; 1315 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1316 ac_unrecognized_sep=', ';; 1317 esac 1318 eval with_$ac_useropt=no ;; 1319 1320 --x) 1321 # Obsolete; use --with-x. 1322 with_x=yes ;; 1323 1324 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1325 | --x-incl | --x-inc | --x-in | --x-i) 1326 ac_prev=x_includes ;; 1327 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1328 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1329 x_includes=$ac_optarg ;; 1330 1331 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1332 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1333 ac_prev=x_libraries ;; 1334 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1335 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1336 x_libraries=$ac_optarg ;; 1337 1338 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1339Try \`$0 --help' for more information" 1340 ;; 1341 1342 *=*) 1343 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1344 # Reject names that are not valid shell variable names. 1345 case $ac_envvar in #( 1346 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1347 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1348 esac 1349 eval $ac_envvar=\$ac_optarg 1350 export $ac_envvar ;; 1351 1352 *) 1353 # FIXME: should be removed in autoconf 3.0. 1354 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1355 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1356 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1357 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1358 ;; 1359 1360 esac 1361done 1362 1363if test -n "$ac_prev"; then 1364 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1365 as_fn_error $? "missing argument to $ac_option" 1366fi 1367 1368if test -n "$ac_unrecognized_opts"; then 1369 case $enable_option_checking in 1370 no) ;; 1371 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1372 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1373 esac 1374fi 1375 1376# Check all directory arguments for consistency. 1377for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1378 datadir sysconfdir sharedstatedir localstatedir includedir \ 1379 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1380 libdir localedir mandir 1381do 1382 eval ac_val=\$$ac_var 1383 # Remove trailing slashes. 1384 case $ac_val in 1385 */ ) 1386 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1387 eval $ac_var=\$ac_val;; 1388 esac 1389 # Be sure to have absolute directory names. 1390 case $ac_val in 1391 [\\/$]* | ?:[\\/]* ) continue;; 1392 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1393 esac 1394 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1395done 1396 1397# There might be people who depend on the old broken behavior: `$host' 1398# used to hold the argument of --host etc. 1399# FIXME: To remove some day. 1400build=$build_alias 1401host=$host_alias 1402target=$target_alias 1403 1404# FIXME: To remove some day. 1405if test "x$host_alias" != x; then 1406 if test "x$build_alias" = x; then 1407 cross_compiling=maybe 1408 elif test "x$build_alias" != "x$host_alias"; then 1409 cross_compiling=yes 1410 fi 1411fi 1412 1413ac_tool_prefix= 1414test -n "$host_alias" && ac_tool_prefix=$host_alias- 1415 1416test "$silent" = yes && exec 6>/dev/null 1417 1418 1419ac_pwd=`pwd` && test -n "$ac_pwd" && 1420ac_ls_di=`ls -di .` && 1421ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1422 as_fn_error $? "working directory cannot be determined" 1423test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1424 as_fn_error $? "pwd does not report name of working directory" 1425 1426 1427# Find the source files, if location was not specified. 1428if test -z "$srcdir"; then 1429 ac_srcdir_defaulted=yes 1430 # Try the directory containing this script, then the parent directory. 1431 ac_confdir=`$as_dirname -- "$as_myself" || 1432$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1433 X"$as_myself" : 'X\(//\)[^/]' \| \ 1434 X"$as_myself" : 'X\(//\)$' \| \ 1435 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1436$as_echo X"$as_myself" | 1437 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1438 s//\1/ 1439 q 1440 } 1441 /^X\(\/\/\)[^/].*/{ 1442 s//\1/ 1443 q 1444 } 1445 /^X\(\/\/\)$/{ 1446 s//\1/ 1447 q 1448 } 1449 /^X\(\/\).*/{ 1450 s//\1/ 1451 q 1452 } 1453 s/.*/./; q'` 1454 srcdir=$ac_confdir 1455 if test ! -r "$srcdir/$ac_unique_file"; then 1456 srcdir=.. 1457 fi 1458else 1459 ac_srcdir_defaulted=no 1460fi 1461if test ! -r "$srcdir/$ac_unique_file"; then 1462 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1463 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1464fi 1465ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1466ac_abs_confdir=`( 1467 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1468 pwd)` 1469# When building in place, set srcdir=. 1470if test "$ac_abs_confdir" = "$ac_pwd"; then 1471 srcdir=. 1472fi 1473# Remove unnecessary trailing slashes from srcdir. 1474# Double slashes in file names in object file debugging info 1475# mess up M-x gdb in Emacs. 1476case $srcdir in 1477*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1478esac 1479for ac_var in $ac_precious_vars; do 1480 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1481 eval ac_env_${ac_var}_value=\$${ac_var} 1482 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1483 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1484done 1485 1486# 1487# Report the --help message. 1488# 1489if test "$ac_init_help" = "long"; then 1490 # Omit some internal or obsolete options to make the list less imposing. 1491 # This message is too long to be a string in the A/UX 3.1 sh. 1492 cat <<_ACEOF 1493\`configure' configures MED Fichier 4.0.0 to adapt to many kinds of systems. 1494 1495Usage: $0 [OPTION]... [VAR=VALUE]... 1496 1497To assign environment variables (e.g., CC, CFLAGS...), specify them as 1498VAR=VALUE. See below for descriptions of some of the useful variables. 1499 1500Defaults for the options are specified in brackets. 1501 1502Configuration: 1503 -h, --help display this help and exit 1504 --help=short display options specific to this package 1505 --help=recursive display the short help of all the included packages 1506 -V, --version display version information and exit 1507 -q, --quiet, --silent do not print \`checking ...' messages 1508 --cache-file=FILE cache test results in FILE [disabled] 1509 -C, --config-cache alias for \`--cache-file=config.cache' 1510 -n, --no-create do not create output files 1511 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1512 1513Installation directories: 1514 --prefix=PREFIX install architecture-independent files in PREFIX 1515 [$ac_default_prefix] 1516 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1517 [PREFIX] 1518 1519By default, \`make install' will install all the files in 1520\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1521an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1522for instance \`--prefix=\$HOME'. 1523 1524For better control, use the options below. 1525 1526Fine tuning of the installation directories: 1527 --bindir=DIR user executables [EPREFIX/bin] 1528 --sbindir=DIR system admin executables [EPREFIX/sbin] 1529 --libexecdir=DIR program executables [EPREFIX/libexec] 1530 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1531 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1532 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1533 --libdir=DIR object code libraries [EPREFIX/lib] 1534 --includedir=DIR C header files [PREFIX/include] 1535 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1536 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1537 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1538 --infodir=DIR info documentation [DATAROOTDIR/info] 1539 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1540 --mandir=DIR man documentation [DATAROOTDIR/man] 1541 --docdir=DIR documentation root [DATAROOTDIR/doc/med] 1542 --htmldir=DIR html documentation [DOCDIR] 1543 --dvidir=DIR dvi documentation [DOCDIR] 1544 --pdfdir=DIR pdf documentation [DOCDIR] 1545 --psdir=DIR ps documentation [DOCDIR] 1546_ACEOF 1547 1548 cat <<\_ACEOF 1549 1550Program names: 1551 --program-prefix=PREFIX prepend PREFIX to installed program names 1552 --program-suffix=SUFFIX append SUFFIX to installed program names 1553 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1554 1555System types: 1556 --build=BUILD configure for building on BUILD [guessed] 1557 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1558_ACEOF 1559fi 1560 1561if test -n "$ac_init_help"; then 1562 case $ac_init_help in 1563 short | recursive ) echo "Configuration of MED Fichier 4.0.0:";; 1564 esac 1565 cat <<\_ACEOF 1566 1567Optional Features: 1568 --disable-option-checking ignore unrecognized --enable/--with options 1569 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1570 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1571 --enable-silent-rules less verbose build output (undo: "make V=1") 1572 --disable-silent-rules verbose build output (undo: "make V=0") 1573 --enable-dependency-tracking 1574 do not reject slow dependency extractors 1575 --disable-dependency-tracking 1576 speeds up one-time build 1577 --enable-fortran Compile the MED FORTRAN library. Default: enabled 1578 1579 --enable-mesgerr MED library display error messages [default=yes] 1580 --enable-check23 Return an error if a MED file contains an object of 1581 a previous data model version which is not managable 1582 by a MED3.0 function. [default = enabled] 1583 --enable-installtest Install test programs. [default = disabled] 1584 --enable-api23 Provide the complete 2.3.6 MED API. [default = 1585 enabled] 1586 --enable-shared[=PKGS] build shared libraries [default=yes] 1587 --enable-static[=PKGS] build static libraries [default=yes] 1588 --enable-fast-install[=PKGS] 1589 optimize for fast installation [default=yes] 1590 --disable-libtool-lock avoid locking (might break parallel builds) 1591 --enable-python Install the MED python library. Default: enabled 1592 1593 1594Optional Packages: 1595 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1596 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1597 --with-hdf5=<path> Use <path> for HDF5 path. 1598 --with-hdf5-include=<include path> 1599 Use <include path> for HDF5 include path. 1600 --with-hdf5-lib=<lib path> 1601 Use <lib path> for lib HDF5 path. 1602 --with-hdf5-bin=<bin path> 1603 Use <bin path> for bin HDF5 path. 1604 --with-f90=<compiler> Use <compiler> for F90 compiler (default:no) 1605 --with-hid_t=<C type> Use <C type int or long> for hid_t (autodetect by 1606 default) 1607 --with-med_int=<C type> Use <C type int or long> for med_int 1608 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1609 both] 1610 --with-aix-soname=aix|svr4|both 1611 shared library versioning (aka "SONAME") variant to 1612 provide on AIX, [default=aix]. 1613 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1614 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1615 compiler's sysroot if not specified). 1616 --with-int64=<C type> Use <C type int64_t or long> for int64 1617 --with-swig[=DIR] set SWIG installation directory. [/usr] 1618 1619Some influential environment variables: 1620 MPICC MPI C compiler command 1621 CC C compiler command 1622 CFLAGS C compiler flags 1623 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1624 nonstandard directory <lib dir> 1625 LIBS libraries to pass to the linker, e.g. -l<library> 1626 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1627 you have headers in a nonstandard directory <include dir> 1628 MPIFC MPI Fortran compiler command 1629 FC Fortran compiler command 1630 FCFLAGS Fortran compiler flags 1631 CPP C preprocessor 1632 FTLDFLAGS Fortran specific flags for linking fortran tests 1633 FTLIBS Fortran specific flags for linking fortran tests 1634 MPIF77 MPI Fortran77 compiler command 1635 F77 Fortran 77 compiler command 1636 FFLAGS Fortran 77 compiler flags 1637 MPICXX MPI C++ compiler command 1638 CXX C++ compiler command 1639 CXXFLAGS C++ compiler flags 1640 LT_SYS_LIBRARY_PATH 1641 User-defined run-time library search path. 1642 CXXCPP C++ preprocessor 1643 SWIGFLAGS The list of flags that should be passed to SWIG. 1644 PYTHON_VERSION 1645 The installed Python version to use, for example '2.3'. This 1646 string will be appended to the Python interpreter canonical 1647 name. 1648 PYTHON the Python interpreter 1649 1650Use these variables to override the choices made by `configure' or to help 1651it to find libraries and programs with nonstandard names/locations. 1652 1653Report bugs to <eric.fayolle@edf.fr>. 1654_ACEOF 1655ac_status=$? 1656fi 1657 1658if test "$ac_init_help" = "recursive"; then 1659 # If there are subdirs, report their specific --help. 1660 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1661 test -d "$ac_dir" || 1662 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1663 continue 1664 ac_builddir=. 1665 1666case "$ac_dir" in 1667.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1668*) 1669 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1670 # A ".." for each directory in $ac_dir_suffix. 1671 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1672 case $ac_top_builddir_sub in 1673 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1674 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1675 esac ;; 1676esac 1677ac_abs_top_builddir=$ac_pwd 1678ac_abs_builddir=$ac_pwd$ac_dir_suffix 1679# for backward compatibility: 1680ac_top_builddir=$ac_top_build_prefix 1681 1682case $srcdir in 1683 .) # We are building in place. 1684 ac_srcdir=. 1685 ac_top_srcdir=$ac_top_builddir_sub 1686 ac_abs_top_srcdir=$ac_pwd ;; 1687 [\\/]* | ?:[\\/]* ) # Absolute name. 1688 ac_srcdir=$srcdir$ac_dir_suffix; 1689 ac_top_srcdir=$srcdir 1690 ac_abs_top_srcdir=$srcdir ;; 1691 *) # Relative name. 1692 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1693 ac_top_srcdir=$ac_top_build_prefix$srcdir 1694 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1695esac 1696ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1697 1698 cd "$ac_dir" || { ac_status=$?; continue; } 1699 # Check for guested configure. 1700 if test -f "$ac_srcdir/configure.gnu"; then 1701 echo && 1702 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1703 elif test -f "$ac_srcdir/configure"; then 1704 echo && 1705 $SHELL "$ac_srcdir/configure" --help=recursive 1706 else 1707 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1708 fi || ac_status=$? 1709 cd "$ac_pwd" || { ac_status=$?; break; } 1710 done 1711fi 1712 1713test -n "$ac_init_help" && exit $ac_status 1714if $ac_init_version; then 1715 cat <<\_ACEOF 1716MED Fichier configure 4.0.0 1717generated by GNU Autoconf 2.69 1718 1719Copyright (C) 2012 Free Software Foundation, Inc. 1720This configure script is free software; the Free Software Foundation 1721gives unlimited permission to copy, distribute and modify it. 1722_ACEOF 1723 exit 1724fi 1725 1726## ------------------------ ## 1727## Autoconf initialization. ## 1728## ------------------------ ## 1729 1730# ac_fn_c_try_compile LINENO 1731# -------------------------- 1732# Try to compile conftest.$ac_ext, and return whether this succeeded. 1733ac_fn_c_try_compile () 1734{ 1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1736 rm -f conftest.$ac_objext 1737 if { { ac_try="$ac_compile" 1738case "(($ac_try" in 1739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1740 *) ac_try_echo=$ac_try;; 1741esac 1742eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1743$as_echo "$ac_try_echo"; } >&5 1744 (eval "$ac_compile") 2>conftest.err 1745 ac_status=$? 1746 if test -s conftest.err; then 1747 grep -v '^ *+' conftest.err >conftest.er1 1748 cat conftest.er1 >&5 1749 mv -f conftest.er1 conftest.err 1750 fi 1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1752 test $ac_status = 0; } && { 1753 test -z "$ac_c_werror_flag" || 1754 test ! -s conftest.err 1755 } && test -s conftest.$ac_objext; then : 1756 ac_retval=0 1757else 1758 $as_echo "$as_me: failed program was:" >&5 1759sed 's/^/| /' conftest.$ac_ext >&5 1760 1761 ac_retval=1 1762fi 1763 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1764 as_fn_set_status $ac_retval 1765 1766} # ac_fn_c_try_compile 1767 1768# ac_fn_c_try_link LINENO 1769# ----------------------- 1770# Try to link conftest.$ac_ext, and return whether this succeeded. 1771ac_fn_c_try_link () 1772{ 1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1774 rm -f conftest.$ac_objext conftest$ac_exeext 1775 if { { ac_try="$ac_link" 1776case "(($ac_try" in 1777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1778 *) ac_try_echo=$ac_try;; 1779esac 1780eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1781$as_echo "$ac_try_echo"; } >&5 1782 (eval "$ac_link") 2>conftest.err 1783 ac_status=$? 1784 if test -s conftest.err; then 1785 grep -v '^ *+' conftest.err >conftest.er1 1786 cat conftest.er1 >&5 1787 mv -f conftest.er1 conftest.err 1788 fi 1789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1790 test $ac_status = 0; } && { 1791 test -z "$ac_c_werror_flag" || 1792 test ! -s conftest.err 1793 } && test -s conftest$ac_exeext && { 1794 test "$cross_compiling" = yes || 1795 test -x conftest$ac_exeext 1796 }; then : 1797 ac_retval=0 1798else 1799 $as_echo "$as_me: failed program was:" >&5 1800sed 's/^/| /' conftest.$ac_ext >&5 1801 1802 ac_retval=1 1803fi 1804 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1805 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1806 # interfere with the next link command; also delete a directory that is 1807 # left behind by Apple's compiler. We do this before executing the actions. 1808 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1809 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1810 as_fn_set_status $ac_retval 1811 1812} # ac_fn_c_try_link 1813 1814# ac_fn_fc_try_compile LINENO 1815# --------------------------- 1816# Try to compile conftest.$ac_ext, and return whether this succeeded. 1817ac_fn_fc_try_compile () 1818{ 1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1820 rm -f conftest.$ac_objext 1821 if { { ac_try="$ac_compile" 1822case "(($ac_try" in 1823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1824 *) ac_try_echo=$ac_try;; 1825esac 1826eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1827$as_echo "$ac_try_echo"; } >&5 1828 (eval "$ac_compile") 2>conftest.err 1829 ac_status=$? 1830 if test -s conftest.err; then 1831 grep -v '^ *+' conftest.err >conftest.er1 1832 cat conftest.er1 >&5 1833 mv -f conftest.er1 conftest.err 1834 fi 1835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1836 test $ac_status = 0; } && { 1837 test -z "$ac_fc_werror_flag" || 1838 test ! -s conftest.err 1839 } && test -s conftest.$ac_objext; then : 1840 ac_retval=0 1841else 1842 $as_echo "$as_me: failed program was:" >&5 1843sed 's/^/| /' conftest.$ac_ext >&5 1844 1845 ac_retval=1 1846fi 1847 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1848 as_fn_set_status $ac_retval 1849 1850} # ac_fn_fc_try_compile 1851 1852# ac_fn_fc_try_link LINENO 1853# ------------------------ 1854# Try to link conftest.$ac_ext, and return whether this succeeded. 1855ac_fn_fc_try_link () 1856{ 1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1858 rm -f conftest.$ac_objext conftest$ac_exeext 1859 if { { ac_try="$ac_link" 1860case "(($ac_try" in 1861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1862 *) ac_try_echo=$ac_try;; 1863esac 1864eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1865$as_echo "$ac_try_echo"; } >&5 1866 (eval "$ac_link") 2>conftest.err 1867 ac_status=$? 1868 if test -s conftest.err; then 1869 grep -v '^ *+' conftest.err >conftest.er1 1870 cat conftest.er1 >&5 1871 mv -f conftest.er1 conftest.err 1872 fi 1873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1874 test $ac_status = 0; } && { 1875 test -z "$ac_fc_werror_flag" || 1876 test ! -s conftest.err 1877 } && test -s conftest$ac_exeext && { 1878 test "$cross_compiling" = yes || 1879 test -x conftest$ac_exeext 1880 }; then : 1881 ac_retval=0 1882else 1883 $as_echo "$as_me: failed program was:" >&5 1884sed 's/^/| /' conftest.$ac_ext >&5 1885 1886 ac_retval=1 1887fi 1888 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1889 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1890 # interfere with the next link command; also delete a directory that is 1891 # left behind by Apple's compiler. We do this before executing the actions. 1892 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1893 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1894 as_fn_set_status $ac_retval 1895 1896} # ac_fn_fc_try_link 1897 1898# ac_fn_c_try_cpp LINENO 1899# ---------------------- 1900# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1901ac_fn_c_try_cpp () 1902{ 1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1904 if { { ac_try="$ac_cpp conftest.$ac_ext" 1905case "(($ac_try" in 1906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1907 *) ac_try_echo=$ac_try;; 1908esac 1909eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1910$as_echo "$ac_try_echo"; } >&5 1911 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1912 ac_status=$? 1913 if test -s conftest.err; then 1914 grep -v '^ *+' conftest.err >conftest.er1 1915 cat conftest.er1 >&5 1916 mv -f conftest.er1 conftest.err 1917 fi 1918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1919 test $ac_status = 0; } > conftest.i && { 1920 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1921 test ! -s conftest.err 1922 }; then : 1923 ac_retval=0 1924else 1925 $as_echo "$as_me: failed program was:" >&5 1926sed 's/^/| /' conftest.$ac_ext >&5 1927 1928 ac_retval=1 1929fi 1930 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1931 as_fn_set_status $ac_retval 1932 1933} # ac_fn_c_try_cpp 1934 1935# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1936# ------------------------------------------------------- 1937# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1938# the include files in INCLUDES and setting the cache variable VAR 1939# accordingly. 1940ac_fn_c_check_header_mongrel () 1941{ 1942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1943 if eval \${$3+:} false; then : 1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1945$as_echo_n "checking for $2... " >&6; } 1946if eval \${$3+:} false; then : 1947 $as_echo_n "(cached) " >&6 1948fi 1949eval ac_res=\$$3 1950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1951$as_echo "$ac_res" >&6; } 1952else 1953 # Is the header compilable? 1954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1955$as_echo_n "checking $2 usability... " >&6; } 1956cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1957/* end confdefs.h. */ 1958$4 1959#include <$2> 1960_ACEOF 1961if ac_fn_c_try_compile "$LINENO"; then : 1962 ac_header_compiler=yes 1963else 1964 ac_header_compiler=no 1965fi 1966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1968$as_echo "$ac_header_compiler" >&6; } 1969 1970# Is the header present? 1971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1972$as_echo_n "checking $2 presence... " >&6; } 1973cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1974/* end confdefs.h. */ 1975#include <$2> 1976_ACEOF 1977if ac_fn_c_try_cpp "$LINENO"; then : 1978 ac_header_preproc=yes 1979else 1980 ac_header_preproc=no 1981fi 1982rm -f conftest.err conftest.i conftest.$ac_ext 1983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1984$as_echo "$ac_header_preproc" >&6; } 1985 1986# So? What about this header? 1987case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1988 yes:no: ) 1989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1990$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1992$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1993 ;; 1994 no:yes:* ) 1995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1996$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1998$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2000$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2002$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2004$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2005( $as_echo "## ---------------------------------- ## 2006## Report this to eric.fayolle@edf.fr ## 2007## ---------------------------------- ##" 2008 ) | sed "s/^/$as_me: WARNING: /" >&2 2009 ;; 2010esac 2011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2012$as_echo_n "checking for $2... " >&6; } 2013if eval \${$3+:} false; then : 2014 $as_echo_n "(cached) " >&6 2015else 2016 eval "$3=\$ac_header_compiler" 2017fi 2018eval ac_res=\$$3 2019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2020$as_echo "$ac_res" >&6; } 2021fi 2022 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2023 2024} # ac_fn_c_check_header_mongrel 2025 2026# ac_fn_c_try_run LINENO 2027# ---------------------- 2028# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2029# that executables *can* be run. 2030ac_fn_c_try_run () 2031{ 2032 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2033 if { { ac_try="$ac_link" 2034case "(($ac_try" in 2035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2036 *) ac_try_echo=$ac_try;; 2037esac 2038eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2039$as_echo "$ac_try_echo"; } >&5 2040 (eval "$ac_link") 2>&5 2041 ac_status=$? 2042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2043 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2044 { { case "(($ac_try" in 2045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2046 *) ac_try_echo=$ac_try;; 2047esac 2048eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2049$as_echo "$ac_try_echo"; } >&5 2050 (eval "$ac_try") 2>&5 2051 ac_status=$? 2052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2053 test $ac_status = 0; }; }; then : 2054 ac_retval=0 2055else 2056 $as_echo "$as_me: program exited with status $ac_status" >&5 2057 $as_echo "$as_me: failed program was:" >&5 2058sed 's/^/| /' conftest.$ac_ext >&5 2059 2060 ac_retval=$ac_status 2061fi 2062 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2063 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2064 as_fn_set_status $ac_retval 2065 2066} # ac_fn_c_try_run 2067 2068# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2069# ------------------------------------------------------- 2070# Tests whether HEADER exists and can be compiled using the include files in 2071# INCLUDES, setting the cache variable VAR accordingly. 2072ac_fn_c_check_header_compile () 2073{ 2074 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2076$as_echo_n "checking for $2... " >&6; } 2077if eval \${$3+:} false; then : 2078 $as_echo_n "(cached) " >&6 2079else 2080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2081/* end confdefs.h. */ 2082$4 2083#include <$2> 2084_ACEOF 2085if ac_fn_c_try_compile "$LINENO"; then : 2086 eval "$3=yes" 2087else 2088 eval "$3=no" 2089fi 2090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2091fi 2092eval ac_res=\$$3 2093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2094$as_echo "$ac_res" >&6; } 2095 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2096 2097} # ac_fn_c_check_header_compile 2098 2099# ac_fn_c_check_func LINENO FUNC VAR 2100# ---------------------------------- 2101# Tests whether FUNC exists, setting the cache variable VAR accordingly 2102ac_fn_c_check_func () 2103{ 2104 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2106$as_echo_n "checking for $2... " >&6; } 2107if eval \${$3+:} false; then : 2108 $as_echo_n "(cached) " >&6 2109else 2110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2111/* end confdefs.h. */ 2112/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2113 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2114#define $2 innocuous_$2 2115 2116/* System header to define __stub macros and hopefully few prototypes, 2117 which can conflict with char $2 (); below. 2118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2119 <limits.h> exists even on freestanding compilers. */ 2120 2121#ifdef __STDC__ 2122# include <limits.h> 2123#else 2124# include <assert.h> 2125#endif 2126 2127#undef $2 2128 2129/* Override any GCC internal prototype to avoid an error. 2130 Use char because int might match the return type of a GCC 2131 builtin and then its argument prototype would still apply. */ 2132#ifdef __cplusplus 2133extern "C" 2134#endif 2135char $2 (); 2136/* The GNU C library defines this for functions which it implements 2137 to always fail with ENOSYS. Some functions are actually named 2138 something starting with __ and the normal name is an alias. */ 2139#if defined __stub_$2 || defined __stub___$2 2140choke me 2141#endif 2142 2143int 2144main () 2145{ 2146return $2 (); 2147 ; 2148 return 0; 2149} 2150_ACEOF 2151if ac_fn_c_try_link "$LINENO"; then : 2152 eval "$3=yes" 2153else 2154 eval "$3=no" 2155fi 2156rm -f core conftest.err conftest.$ac_objext \ 2157 conftest$ac_exeext conftest.$ac_ext 2158fi 2159eval ac_res=\$$3 2160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2161$as_echo "$ac_res" >&6; } 2162 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2163 2164} # ac_fn_c_check_func 2165 2166# ac_fn_f77_try_compile LINENO 2167# ---------------------------- 2168# Try to compile conftest.$ac_ext, and return whether this succeeded. 2169ac_fn_f77_try_compile () 2170{ 2171 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2172 rm -f conftest.$ac_objext 2173 if { { ac_try="$ac_compile" 2174case "(($ac_try" in 2175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2176 *) ac_try_echo=$ac_try;; 2177esac 2178eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2179$as_echo "$ac_try_echo"; } >&5 2180 (eval "$ac_compile") 2>conftest.err 2181 ac_status=$? 2182 if test -s conftest.err; then 2183 grep -v '^ *+' conftest.err >conftest.er1 2184 cat conftest.er1 >&5 2185 mv -f conftest.er1 conftest.err 2186 fi 2187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2188 test $ac_status = 0; } && { 2189 test -z "$ac_f77_werror_flag" || 2190 test ! -s conftest.err 2191 } && test -s conftest.$ac_objext; then : 2192 ac_retval=0 2193else 2194 $as_echo "$as_me: failed program was:" >&5 2195sed 's/^/| /' conftest.$ac_ext >&5 2196 2197 ac_retval=1 2198fi 2199 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2200 as_fn_set_status $ac_retval 2201 2202} # ac_fn_f77_try_compile 2203 2204# ac_fn_f77_try_link LINENO 2205# ------------------------- 2206# Try to link conftest.$ac_ext, and return whether this succeeded. 2207ac_fn_f77_try_link () 2208{ 2209 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2210 rm -f conftest.$ac_objext conftest$ac_exeext 2211 if { { ac_try="$ac_link" 2212case "(($ac_try" in 2213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2214 *) ac_try_echo=$ac_try;; 2215esac 2216eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2217$as_echo "$ac_try_echo"; } >&5 2218 (eval "$ac_link") 2>conftest.err 2219 ac_status=$? 2220 if test -s conftest.err; then 2221 grep -v '^ *+' conftest.err >conftest.er1 2222 cat conftest.er1 >&5 2223 mv -f conftest.er1 conftest.err 2224 fi 2225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2226 test $ac_status = 0; } && { 2227 test -z "$ac_f77_werror_flag" || 2228 test ! -s conftest.err 2229 } && test -s conftest$ac_exeext && { 2230 test "$cross_compiling" = yes || 2231 test -x conftest$ac_exeext 2232 }; then : 2233 ac_retval=0 2234else 2235 $as_echo "$as_me: failed program was:" >&5 2236sed 's/^/| /' conftest.$ac_ext >&5 2237 2238 ac_retval=1 2239fi 2240 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2241 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2242 # interfere with the next link command; also delete a directory that is 2243 # left behind by Apple's compiler. We do this before executing the actions. 2244 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2245 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2246 as_fn_set_status $ac_retval 2247 2248} # ac_fn_f77_try_link 2249 2250# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2251# -------------------------------------------- 2252# Tries to find the compile-time value of EXPR in a program that includes 2253# INCLUDES, setting VAR accordingly. Returns whether the value could be 2254# computed 2255ac_fn_c_compute_int () 2256{ 2257 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2258 if test "$cross_compiling" = yes; then 2259 # Depending upon the size, compute the lo and hi bounds. 2260cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2261/* end confdefs.h. */ 2262$4 2263#ifdef F77_DUMMY_MAIN 2264 2265# ifdef __cplusplus 2266 extern "C" 2267# endif 2268 int F77_DUMMY_MAIN() { return 1; } 2269 2270#endif 2271int 2272main () 2273{ 2274static int test_array [1 - 2 * !(($2) >= 0)]; 2275test_array [0] = 0; 2276return test_array [0]; 2277 2278 ; 2279 return 0; 2280} 2281_ACEOF 2282if ac_fn_c_try_compile "$LINENO"; then : 2283 ac_lo=0 ac_mid=0 2284 while :; do 2285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2286/* end confdefs.h. */ 2287$4 2288#ifdef F77_DUMMY_MAIN 2289 2290# ifdef __cplusplus 2291 extern "C" 2292# endif 2293 int F77_DUMMY_MAIN() { return 1; } 2294 2295#endif 2296int 2297main () 2298{ 2299static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2300test_array [0] = 0; 2301return test_array [0]; 2302 2303 ; 2304 return 0; 2305} 2306_ACEOF 2307if ac_fn_c_try_compile "$LINENO"; then : 2308 ac_hi=$ac_mid; break 2309else 2310 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2311 if test $ac_lo -le $ac_mid; then 2312 ac_lo= ac_hi= 2313 break 2314 fi 2315 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2316fi 2317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2318 done 2319else 2320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2321/* end confdefs.h. */ 2322$4 2323#ifdef F77_DUMMY_MAIN 2324 2325# ifdef __cplusplus 2326 extern "C" 2327# endif 2328 int F77_DUMMY_MAIN() { return 1; } 2329 2330#endif 2331int 2332main () 2333{ 2334static int test_array [1 - 2 * !(($2) < 0)]; 2335test_array [0] = 0; 2336return test_array [0]; 2337 2338 ; 2339 return 0; 2340} 2341_ACEOF 2342if ac_fn_c_try_compile "$LINENO"; then : 2343 ac_hi=-1 ac_mid=-1 2344 while :; do 2345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2346/* end confdefs.h. */ 2347$4 2348#ifdef F77_DUMMY_MAIN 2349 2350# ifdef __cplusplus 2351 extern "C" 2352# endif 2353 int F77_DUMMY_MAIN() { return 1; } 2354 2355#endif 2356int 2357main () 2358{ 2359static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2360test_array [0] = 0; 2361return test_array [0]; 2362 2363 ; 2364 return 0; 2365} 2366_ACEOF 2367if ac_fn_c_try_compile "$LINENO"; then : 2368 ac_lo=$ac_mid; break 2369else 2370 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2371 if test $ac_mid -le $ac_hi; then 2372 ac_lo= ac_hi= 2373 break 2374 fi 2375 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2376fi 2377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2378 done 2379else 2380 ac_lo= ac_hi= 2381fi 2382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2383fi 2384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2385# Binary search between lo and hi bounds. 2386while test "x$ac_lo" != "x$ac_hi"; do 2387 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2389/* end confdefs.h. */ 2390$4 2391#ifdef F77_DUMMY_MAIN 2392 2393# ifdef __cplusplus 2394 extern "C" 2395# endif 2396 int F77_DUMMY_MAIN() { return 1; } 2397 2398#endif 2399int 2400main () 2401{ 2402static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2403test_array [0] = 0; 2404return test_array [0]; 2405 2406 ; 2407 return 0; 2408} 2409_ACEOF 2410if ac_fn_c_try_compile "$LINENO"; then : 2411 ac_hi=$ac_mid 2412else 2413 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2414fi 2415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2416done 2417case $ac_lo in #(( 2418?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2419'') ac_retval=1 ;; 2420esac 2421 else 2422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2423/* end confdefs.h. */ 2424$4 2425static long int longval () { return $2; } 2426static unsigned long int ulongval () { return $2; } 2427#include <stdio.h> 2428#include <stdlib.h> 2429#ifdef F77_DUMMY_MAIN 2430 2431# ifdef __cplusplus 2432 extern "C" 2433# endif 2434 int F77_DUMMY_MAIN() { return 1; } 2435 2436#endif 2437int 2438main () 2439{ 2440 2441 FILE *f = fopen ("conftest.val", "w"); 2442 if (! f) 2443 return 1; 2444 if (($2) < 0) 2445 { 2446 long int i = longval (); 2447 if (i != ($2)) 2448 return 1; 2449 fprintf (f, "%ld", i); 2450 } 2451 else 2452 { 2453 unsigned long int i = ulongval (); 2454 if (i != ($2)) 2455 return 1; 2456 fprintf (f, "%lu", i); 2457 } 2458 /* Do not output a trailing newline, as this causes \r\n confusion 2459 on some platforms. */ 2460 return ferror (f) || fclose (f) != 0; 2461 2462 ; 2463 return 0; 2464} 2465_ACEOF 2466if ac_fn_c_try_run "$LINENO"; then : 2467 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2468else 2469 ac_retval=1 2470fi 2471rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2472 conftest.$ac_objext conftest.beam conftest.$ac_ext 2473rm -f conftest.val 2474 2475 fi 2476 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2477 as_fn_set_status $ac_retval 2478 2479} # ac_fn_c_compute_int 2480 2481# ac_fn_cxx_try_compile LINENO 2482# ---------------------------- 2483# Try to compile conftest.$ac_ext, and return whether this succeeded. 2484ac_fn_cxx_try_compile () 2485{ 2486 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2487 rm -f conftest.$ac_objext 2488 if { { ac_try="$ac_compile" 2489case "(($ac_try" in 2490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2491 *) ac_try_echo=$ac_try;; 2492esac 2493eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2494$as_echo "$ac_try_echo"; } >&5 2495 (eval "$ac_compile") 2>conftest.err 2496 ac_status=$? 2497 if test -s conftest.err; then 2498 grep -v '^ *+' conftest.err >conftest.er1 2499 cat conftest.er1 >&5 2500 mv -f conftest.er1 conftest.err 2501 fi 2502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2503 test $ac_status = 0; } && { 2504 test -z "$ac_cxx_werror_flag" || 2505 test ! -s conftest.err 2506 } && test -s conftest.$ac_objext; then : 2507 ac_retval=0 2508else 2509 $as_echo "$as_me: failed program was:" >&5 2510sed 's/^/| /' conftest.$ac_ext >&5 2511 2512 ac_retval=1 2513fi 2514 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2515 as_fn_set_status $ac_retval 2516 2517} # ac_fn_cxx_try_compile 2518 2519# ac_fn_cxx_try_link LINENO 2520# ------------------------- 2521# Try to link conftest.$ac_ext, and return whether this succeeded. 2522ac_fn_cxx_try_link () 2523{ 2524 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2525 rm -f conftest.$ac_objext conftest$ac_exeext 2526 if { { ac_try="$ac_link" 2527case "(($ac_try" in 2528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2529 *) ac_try_echo=$ac_try;; 2530esac 2531eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2532$as_echo "$ac_try_echo"; } >&5 2533 (eval "$ac_link") 2>conftest.err 2534 ac_status=$? 2535 if test -s conftest.err; then 2536 grep -v '^ *+' conftest.err >conftest.er1 2537 cat conftest.er1 >&5 2538 mv -f conftest.er1 conftest.err 2539 fi 2540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2541 test $ac_status = 0; } && { 2542 test -z "$ac_cxx_werror_flag" || 2543 test ! -s conftest.err 2544 } && test -s conftest$ac_exeext && { 2545 test "$cross_compiling" = yes || 2546 test -x conftest$ac_exeext 2547 }; then : 2548 ac_retval=0 2549else 2550 $as_echo "$as_me: failed program was:" >&5 2551sed 's/^/| /' conftest.$ac_ext >&5 2552 2553 ac_retval=1 2554fi 2555 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2556 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2557 # interfere with the next link command; also delete a directory that is 2558 # left behind by Apple's compiler. We do this before executing the actions. 2559 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2560 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2561 as_fn_set_status $ac_retval 2562 2563} # ac_fn_cxx_try_link 2564 2565# ac_fn_cxx_try_cpp LINENO 2566# ------------------------ 2567# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2568ac_fn_cxx_try_cpp () 2569{ 2570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2571 if { { ac_try="$ac_cpp conftest.$ac_ext" 2572case "(($ac_try" in 2573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2574 *) ac_try_echo=$ac_try;; 2575esac 2576eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2577$as_echo "$ac_try_echo"; } >&5 2578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2579 ac_status=$? 2580 if test -s conftest.err; then 2581 grep -v '^ *+' conftest.err >conftest.er1 2582 cat conftest.er1 >&5 2583 mv -f conftest.er1 conftest.err 2584 fi 2585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2586 test $ac_status = 0; } > conftest.i && { 2587 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2588 test ! -s conftest.err 2589 }; then : 2590 ac_retval=0 2591else 2592 $as_echo "$as_me: failed program was:" >&5 2593sed 's/^/| /' conftest.$ac_ext >&5 2594 2595 ac_retval=1 2596fi 2597 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2598 as_fn_set_status $ac_retval 2599 2600} # ac_fn_cxx_try_cpp 2601 2602# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2603# ------------------------------------------- 2604# Tests whether TYPE exists after having included INCLUDES, setting cache 2605# variable VAR accordingly. 2606ac_fn_c_check_type () 2607{ 2608 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2610$as_echo_n "checking for $2... " >&6; } 2611if eval \${$3+:} false; then : 2612 $as_echo_n "(cached) " >&6 2613else 2614 eval "$3=no" 2615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2616/* end confdefs.h. */ 2617$4 2618#ifdef F77_DUMMY_MAIN 2619 2620# ifdef __cplusplus 2621 extern "C" 2622# endif 2623 int F77_DUMMY_MAIN() { return 1; } 2624 2625#endif 2626int 2627main () 2628{ 2629if (sizeof ($2)) 2630 return 0; 2631 ; 2632 return 0; 2633} 2634_ACEOF 2635if ac_fn_c_try_compile "$LINENO"; then : 2636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2637/* end confdefs.h. */ 2638$4 2639#ifdef F77_DUMMY_MAIN 2640 2641# ifdef __cplusplus 2642 extern "C" 2643# endif 2644 int F77_DUMMY_MAIN() { return 1; } 2645 2646#endif 2647int 2648main () 2649{ 2650if (sizeof (($2))) 2651 return 0; 2652 ; 2653 return 0; 2654} 2655_ACEOF 2656if ac_fn_c_try_compile "$LINENO"; then : 2657 2658else 2659 eval "$3=yes" 2660fi 2661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2662fi 2663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2664fi 2665eval ac_res=\$$3 2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2667$as_echo "$ac_res" >&6; } 2668 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2669 2670} # ac_fn_c_check_type 2671 2672# ac_fn_c_find_intX_t LINENO BITS VAR 2673# ----------------------------------- 2674# Finds a signed integer type with width BITS, setting cache variable VAR 2675# accordingly. 2676ac_fn_c_find_intX_t () 2677{ 2678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 2680$as_echo_n "checking for int$2_t... " >&6; } 2681if eval \${$3+:} false; then : 2682 $as_echo_n "(cached) " >&6 2683else 2684 eval "$3=no" 2685 # Order is important - never check a type that is potentially smaller 2686 # than half of the expected target width. 2687 for ac_type in int$2_t 'int' 'long int' \ 2688 'long long int' 'short int' 'signed char'; do 2689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2690/* end confdefs.h. */ 2691$ac_includes_default 2692 enum { N = $2 / 2 - 1 }; 2693#ifdef F77_DUMMY_MAIN 2694 2695# ifdef __cplusplus 2696 extern "C" 2697# endif 2698 int F77_DUMMY_MAIN() { return 1; } 2699 2700#endif 2701int 2702main () 2703{ 2704static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; 2705test_array [0] = 0; 2706return test_array [0]; 2707 2708 ; 2709 return 0; 2710} 2711_ACEOF 2712if ac_fn_c_try_compile "$LINENO"; then : 2713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2714/* end confdefs.h. */ 2715$ac_includes_default 2716 enum { N = $2 / 2 - 1 }; 2717#ifdef F77_DUMMY_MAIN 2718 2719# ifdef __cplusplus 2720 extern "C" 2721# endif 2722 int F77_DUMMY_MAIN() { return 1; } 2723 2724#endif 2725int 2726main () 2727{ 2728static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) 2729 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; 2730test_array [0] = 0; 2731return test_array [0]; 2732 2733 ; 2734 return 0; 2735} 2736_ACEOF 2737if ac_fn_c_try_compile "$LINENO"; then : 2738 2739else 2740 case $ac_type in #( 2741 int$2_t) : 2742 eval "$3=yes" ;; #( 2743 *) : 2744 eval "$3=\$ac_type" ;; 2745esac 2746fi 2747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2748fi 2749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2750 if eval test \"x\$"$3"\" = x"no"; then : 2751 2752else 2753 break 2754fi 2755 done 2756fi 2757eval ac_res=\$$3 2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2759$as_echo "$ac_res" >&6; } 2760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2761 2762} # ac_fn_c_find_intX_t 2763cat >config.log <<_ACEOF 2764This file contains any messages produced by compilers while 2765running configure, to aid debugging if configure makes a mistake. 2766 2767It was created by MED Fichier $as_me 4.0.0, which was 2768generated by GNU Autoconf 2.69. Invocation command line was 2769 2770 $ $0 $@ 2771 2772_ACEOF 2773exec 5>>config.log 2774{ 2775cat <<_ASUNAME 2776## --------- ## 2777## Platform. ## 2778## --------- ## 2779 2780hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2781uname -m = `(uname -m) 2>/dev/null || echo unknown` 2782uname -r = `(uname -r) 2>/dev/null || echo unknown` 2783uname -s = `(uname -s) 2>/dev/null || echo unknown` 2784uname -v = `(uname -v) 2>/dev/null || echo unknown` 2785 2786/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2787/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2788 2789/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2790/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2791/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2792/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2793/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2794/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2795/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2796 2797_ASUNAME 2798 2799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2800for as_dir in $PATH 2801do 2802 IFS=$as_save_IFS 2803 test -z "$as_dir" && as_dir=. 2804 $as_echo "PATH: $as_dir" 2805 done 2806IFS=$as_save_IFS 2807 2808} >&5 2809 2810cat >&5 <<_ACEOF 2811 2812 2813## ----------- ## 2814## Core tests. ## 2815## ----------- ## 2816 2817_ACEOF 2818 2819 2820# Keep a trace of the command line. 2821# Strip out --no-create and --no-recursion so they do not pile up. 2822# Strip out --silent because we don't want to record it for future runs. 2823# Also quote any args containing shell meta-characters. 2824# Make two passes to allow for proper duplicate-argument suppression. 2825ac_configure_args= 2826ac_configure_args0= 2827ac_configure_args1= 2828ac_must_keep_next=false 2829for ac_pass in 1 2 2830do 2831 for ac_arg 2832 do 2833 case $ac_arg in 2834 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2835 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2836 | -silent | --silent | --silen | --sile | --sil) 2837 continue ;; 2838 *\'*) 2839 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2840 esac 2841 case $ac_pass in 2842 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2843 2) 2844 as_fn_append ac_configure_args1 " '$ac_arg'" 2845 if test $ac_must_keep_next = true; then 2846 ac_must_keep_next=false # Got value, back to normal. 2847 else 2848 case $ac_arg in 2849 *=* | --config-cache | -C | -disable-* | --disable-* \ 2850 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2851 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2852 | -with-* | --with-* | -without-* | --without-* | --x) 2853 case "$ac_configure_args0 " in 2854 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2855 esac 2856 ;; 2857 -* ) ac_must_keep_next=true ;; 2858 esac 2859 fi 2860 as_fn_append ac_configure_args " '$ac_arg'" 2861 ;; 2862 esac 2863 done 2864done 2865{ ac_configure_args0=; unset ac_configure_args0;} 2866{ ac_configure_args1=; unset ac_configure_args1;} 2867 2868# When interrupted or exit'd, cleanup temporary files, and complete 2869# config.log. We remove comments because anyway the quotes in there 2870# would cause problems or look ugly. 2871# WARNING: Use '\'' to represent an apostrophe within the trap. 2872# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2873trap 'exit_status=$? 2874 # Save into config.log some information that might help in debugging. 2875 { 2876 echo 2877 2878 $as_echo "## ---------------- ## 2879## Cache variables. ## 2880## ---------------- ##" 2881 echo 2882 # The following way of writing the cache mishandles newlines in values, 2883( 2884 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2885 eval ac_val=\$$ac_var 2886 case $ac_val in #( 2887 *${as_nl}*) 2888 case $ac_var in #( 2889 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2890$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2891 esac 2892 case $ac_var in #( 2893 _ | IFS | as_nl) ;; #( 2894 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2895 *) { eval $ac_var=; unset $ac_var;} ;; 2896 esac ;; 2897 esac 2898 done 2899 (set) 2>&1 | 2900 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2901 *${as_nl}ac_space=\ *) 2902 sed -n \ 2903 "s/'\''/'\''\\\\'\'''\''/g; 2904 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2905 ;; #( 2906 *) 2907 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2908 ;; 2909 esac | 2910 sort 2911) 2912 echo 2913 2914 $as_echo "## ----------------- ## 2915## Output variables. ## 2916## ----------------- ##" 2917 echo 2918 for ac_var in $ac_subst_vars 2919 do 2920 eval ac_val=\$$ac_var 2921 case $ac_val in 2922 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2923 esac 2924 $as_echo "$ac_var='\''$ac_val'\''" 2925 done | sort 2926 echo 2927 2928 if test -n "$ac_subst_files"; then 2929 $as_echo "## ------------------- ## 2930## File substitutions. ## 2931## ------------------- ##" 2932 echo 2933 for ac_var in $ac_subst_files 2934 do 2935 eval ac_val=\$$ac_var 2936 case $ac_val in 2937 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2938 esac 2939 $as_echo "$ac_var='\''$ac_val'\''" 2940 done | sort 2941 echo 2942 fi 2943 2944 if test -s confdefs.h; then 2945 $as_echo "## ----------- ## 2946## confdefs.h. ## 2947## ----------- ##" 2948 echo 2949 cat confdefs.h 2950 echo 2951 fi 2952 test "$ac_signal" != 0 && 2953 $as_echo "$as_me: caught signal $ac_signal" 2954 $as_echo "$as_me: exit $exit_status" 2955 } >&5 2956 rm -f core *.core core.conftest.* && 2957 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2958 exit $exit_status 2959' 0 2960for ac_signal in 1 2 13 15; do 2961 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2962done 2963ac_signal=0 2964 2965# confdefs.h avoids OS command line length limits that DEFS can exceed. 2966rm -f -r conftest* confdefs.h 2967 2968$as_echo "/* confdefs.h */" > confdefs.h 2969 2970# Predefined preprocessor variables. 2971 2972cat >>confdefs.h <<_ACEOF 2973#define PACKAGE_NAME "$PACKAGE_NAME" 2974_ACEOF 2975 2976cat >>confdefs.h <<_ACEOF 2977#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2978_ACEOF 2979 2980cat >>confdefs.h <<_ACEOF 2981#define PACKAGE_VERSION "$PACKAGE_VERSION" 2982_ACEOF 2983 2984cat >>confdefs.h <<_ACEOF 2985#define PACKAGE_STRING "$PACKAGE_STRING" 2986_ACEOF 2987 2988cat >>confdefs.h <<_ACEOF 2989#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2990_ACEOF 2991 2992cat >>confdefs.h <<_ACEOF 2993#define PACKAGE_URL "$PACKAGE_URL" 2994_ACEOF 2995 2996 2997# Let the site file select an alternate cache file if it wants to. 2998# Prefer an explicitly selected file to automatically selected ones. 2999ac_site_file1=NONE 3000ac_site_file2=NONE 3001if test -n "$CONFIG_SITE"; then 3002 # We do not want a PATH search for config.site. 3003 case $CONFIG_SITE in #(( 3004 -*) ac_site_file1=./$CONFIG_SITE;; 3005 */*) ac_site_file1=$CONFIG_SITE;; 3006 *) ac_site_file1=./$CONFIG_SITE;; 3007 esac 3008elif test "x$prefix" != xNONE; then 3009 ac_site_file1=$prefix/share/config.site 3010 ac_site_file2=$prefix/etc/config.site 3011else 3012 ac_site_file1=$ac_default_prefix/share/config.site 3013 ac_site_file2=$ac_default_prefix/etc/config.site 3014fi 3015for ac_site_file in "$ac_site_file1" "$ac_site_file2" 3016do 3017 test "x$ac_site_file" = xNONE && continue 3018 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 3019 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3020$as_echo "$as_me: loading site script $ac_site_file" >&6;} 3021 sed 's/^/| /' "$ac_site_file" >&5 3022 . "$ac_site_file" \ 3023 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3024$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3025as_fn_error $? "failed to load site script $ac_site_file 3026See \`config.log' for more details" "$LINENO" 5; } 3027 fi 3028done 3029 3030if test -r "$cache_file"; then 3031 # Some versions of bash will fail to source /dev/null (special files 3032 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3033 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3034 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3035$as_echo "$as_me: loading cache $cache_file" >&6;} 3036 case $cache_file in 3037 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3038 *) . "./$cache_file";; 3039 esac 3040 fi 3041else 3042 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3043$as_echo "$as_me: creating cache $cache_file" >&6;} 3044 >$cache_file 3045fi 3046 3047# Check that the precious variables saved in the cache have kept the same 3048# value. 3049ac_cache_corrupted=false 3050for ac_var in $ac_precious_vars; do 3051 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3052 eval ac_new_set=\$ac_env_${ac_var}_set 3053 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3054 eval ac_new_val=\$ac_env_${ac_var}_value 3055 case $ac_old_set,$ac_new_set in 3056 set,) 3057 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3058$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3059 ac_cache_corrupted=: ;; 3060 ,set) 3061 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3062$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3063 ac_cache_corrupted=: ;; 3064 ,);; 3065 *) 3066 if test "x$ac_old_val" != "x$ac_new_val"; then 3067 # differences in whitespace do not lead to failure. 3068 ac_old_val_w=`echo x $ac_old_val` 3069 ac_new_val_w=`echo x $ac_new_val` 3070 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3071 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3072$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3073 ac_cache_corrupted=: 3074 else 3075 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3076$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3077 eval $ac_var=\$ac_old_val 3078 fi 3079 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3080$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3081 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3082$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3083 fi;; 3084 esac 3085 # Pass precious variables to config.status. 3086 if test "$ac_new_set" = set; then 3087 case $ac_new_val in 3088 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3089 *) ac_arg=$ac_var=$ac_new_val ;; 3090 esac 3091 case " $ac_configure_args " in 3092 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3093 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3094 esac 3095 fi 3096done 3097if $ac_cache_corrupted; then 3098 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3099$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3100 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3101$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3102 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3103fi 3104## -------------------- ## 3105## Main body of script. ## 3106## -------------------- ## 3107 3108ac_ext=c 3109ac_cpp='$CPP $CPPFLAGS' 3110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3112ac_compiler_gnu=$ac_cv_c_compiler_gnu 3113 3114 3115 3116##Lors de la sortie d'une nouvelle release mettre à jour les champs suivants 3117##Ne pas oubliez de modifier -version-info x:y:z dans src/Makefile.am tools/medimport/Makefile.am 3118##Modifiez si necessaire les numéros de versions dans la documentation 3119##Ne pas oublier d'utiliser la dernière version des autotools 3120##Mettre à jour le ChangeLog et le README 3121##Mettre à jour la table de versionement des APIs internes (en C et en F) 3122##Mettre à jour les tests de compatibilité dans MEDfileCompatibility (chgt de majeur/mineur) 3123MED_NUM_MAJEUR=4 3124MED_NUM_MINEUR=0 3125MED_NUM_RELEASE=0 3126#Mettre à jour à chaque nouvelle release de version 4 pour prendre en compte les dernières évlotions des versions med-3 (après intégration des developpements de la version 3 dans la version 4) 3127MED_3_LATEST_MINOR=3 3128 3129 3130 3131 3132 3133 3134# info libtool/versioning: 3135# 3. If the library source code has changed at all since the last 3136# update, then increment REVISION (`C:R:A' becomes `C:r+1:A'). 3137# 4. If any interfaces have been added, removed, or changed since the 3138# last update, increment CURRENT, and set REVISION to 0. 3139# 5. If any interfaces have been added since the last public release, 3140# then increment AGE. 3141# 6. If any interfaces have been removed or changed since the last 3142# public release, then set AGE to 0. 3143# 3144# A la mise à jour du mineur de la bibliothèque med, on a x+1:0:z+1 pour la version libtool 3145# ce qui permet aux programmes liés à l'ancienne bibliothèque de mineur-1 3146# d'utiliser la nouvelle bibliothèque pour lire/modifier les anciens fichiers 3147# et en créer de nouveaux en version mineur courante. 3148# Les anciennes bibliothèques refuseront de lire un fichier dont le mineur est supérieur à celui 3149# de la bibliothèque 3150# 3151#MAJ : Changer le versionement libtool et mettre à jour celui de cmake 3152MED_LIBTOOL_MAJ=11 3153MED_LIBTOOL_MIN=0 3154MED_LIBTOOL_REL=0 3155 3156 3157 3158#Libtool version propose an abstraction of .so versionement whatever the unix is 3159#CMake must use the numbers generated by libtool not the numbers given to libtool 3160#Don't try to have the same numbers below and before this comment 3161#Don't use med-fichier product number for .so numbers, this a nonsense 3162#The .so numbers defined for CMake are for Linux 3163MED_CMAKE_SO_MAJ=11 3164MED_CMAKE_SO_MIN=0 3165MED_CMAKE_SO_REL=0 3166MED_CMAKE_SO_VERSION="11.0.0" 3167 3168 3169 3170 3171 3172#MAJ : Changer le versionement libtool et mettre à jour celui de cmake 3173MEDIMPORT_LIBTOOL_MAJ=3 3174MEDIMPORT_LIBTOOL_MIN=0 3175MEDIMPORT_LIBTOOL_REL=3 3176 3177 3178 3179 3180#Libtool version propose an abstraction of .so versionement whatever the unix is 3181#CMake must use the numbers generated by libtool not the numbers given to libtool 3182#Don't try to have the same numbers below and before this comment 3183#Don't use med-fichier product number for .so numbers, this a nonsense 3184#The .so numbers defined for CMake are for Linux 3185MEDIMPORT_CMAKE_SO_MAJ=0 3186MEDIMPORT_CMAKE_SO_MIN=3 3187MEDIMPORT_CMAKE_SO_REL=0 3188MEDIMPORT_CMAKE_SO_VERSION="0.3.0" 3189 3190 3191 3192 3193 3194#Une modification de HDF_VERSION_NUM 3195#demande une modification du test de version ds 3196#med_check_hdf5.m4 3197HDF_VERSION_REF=5-1.10.5 3198HDF_VERSION_MAJOR_REF=1 3199HDF_VERSION_MINOR_REF=10 3200HDF_VERSION_RELEASE_REF=5 3201 3202 3203 3204 3205 3206#This the swig version prefered by this version of medfichier 3207#If we can't find at least this version, we will try older ones 3208 3209 3210MED_SWIG_VERSION_REF=3.0.8 3211MED_SWIG_MIN_VERSION_REF=2.0.8 3212 3213 3214#This the python version prefered by this version of medfichier 3215#If we can't find at least this version, we will try python version ref. 3216 3217 3218 3219MED_PYTHON_VERSION_REF=3.0 3220MED_PYTHON3_VERSION_REF=3.0 3221MED_PYTHON2_VERSION_REF=2.7 3222 3223 3224 3225 3226## Require Automake 1.7.9 or better. 3227## AM_INIT_AUTOMAKE(1.7.9) 3228 3229## Guess we have a correct src directory by verifying we get the following file 3230 3231 3232 3233## Use the config directory for libtool stuff ... 3234ac_aux_dir= 3235for ac_dir in config "$srcdir"/config; do 3236 if test -f "$ac_dir/install-sh"; then 3237 ac_aux_dir=$ac_dir 3238 ac_install_sh="$ac_aux_dir/install-sh -c" 3239 break 3240 elif test -f "$ac_dir/install.sh"; then 3241 ac_aux_dir=$ac_dir 3242 ac_install_sh="$ac_aux_dir/install.sh -c" 3243 break 3244 elif test -f "$ac_dir/shtool"; then 3245 ac_aux_dir=$ac_dir 3246 ac_install_sh="$ac_aux_dir/shtool install -c" 3247 break 3248 fi 3249done 3250if test -z "$ac_aux_dir"; then 3251 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 3252fi 3253 3254# These three variables are undocumented and unsupported, 3255# and are intended to be withdrawn in a future Autoconf release. 3256# They can cause serious problems if a builder's source tree is in a directory 3257# whose full name contains unusual characters. 3258ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3259ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3260ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3261 3262 3263 3264 3265 3266 3267## Initialize Automake 3268am__api_version='1.15' 3269 3270# Find a good install program. We prefer a C program (faster), 3271# so one script is as good as another. But avoid the broken or 3272# incompatible versions: 3273# SysV /etc/install, /usr/sbin/install 3274# SunOS /usr/etc/install 3275# IRIX /sbin/install 3276# AIX /bin/install 3277# AmigaOS /C/install, which installs bootblocks on floppy discs 3278# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3279# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3280# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3281# OS/2's system install, which has a completely different semantic 3282# ./install, which can be erroneously created by make from ./install.sh. 3283# Reject install programs that cannot install multiple files. 3284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3285$as_echo_n "checking for a BSD-compatible install... " >&6; } 3286if test -z "$INSTALL"; then 3287if ${ac_cv_path_install+:} false; then : 3288 $as_echo_n "(cached) " >&6 3289else 3290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3291for as_dir in $PATH 3292do 3293 IFS=$as_save_IFS 3294 test -z "$as_dir" && as_dir=. 3295 # Account for people who put trailing slashes in PATH elements. 3296case $as_dir/ in #(( 3297 ./ | .// | /[cC]/* | \ 3298 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3299 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3300 /usr/ucb/* ) ;; 3301 *) 3302 # OSF1 and SCO ODT 3.0 have their own names for install. 3303 # Don't use installbsd from OSF since it installs stuff as root 3304 # by default. 3305 for ac_prog in ginstall scoinst install; do 3306 for ac_exec_ext in '' $ac_executable_extensions; do 3307 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3308 if test $ac_prog = install && 3309 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3310 # AIX install. It has an incompatible calling convention. 3311 : 3312 elif test $ac_prog = install && 3313 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3314 # program-specific install script used by HP pwplus--don't use. 3315 : 3316 else 3317 rm -rf conftest.one conftest.two conftest.dir 3318 echo one > conftest.one 3319 echo two > conftest.two 3320 mkdir conftest.dir 3321 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3322 test -s conftest.one && test -s conftest.two && 3323 test -s conftest.dir/conftest.one && 3324 test -s conftest.dir/conftest.two 3325 then 3326 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3327 break 3 3328 fi 3329 fi 3330 fi 3331 done 3332 done 3333 ;; 3334esac 3335 3336 done 3337IFS=$as_save_IFS 3338 3339rm -rf conftest.one conftest.two conftest.dir 3340 3341fi 3342 if test "${ac_cv_path_install+set}" = set; then 3343 INSTALL=$ac_cv_path_install 3344 else 3345 # As a last resort, use the slow shell script. Don't cache a 3346 # value for INSTALL within a source directory, because that will 3347 # break other packages using the cache if that directory is 3348 # removed, or if the value is a relative name. 3349 INSTALL=$ac_install_sh 3350 fi 3351fi 3352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3353$as_echo "$INSTALL" >&6; } 3354 3355# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3356# It thinks the first close brace ends the variable substitution. 3357test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3358 3359test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3360 3361test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3362 3363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3364$as_echo_n "checking whether build environment is sane... " >&6; } 3365# Reject unsafe characters in $srcdir or the absolute working directory 3366# name. Accept space and tab only in the latter. 3367am_lf=' 3368' 3369case `pwd` in 3370 *[\\\"\#\$\&\'\`$am_lf]*) 3371 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3372esac 3373case $srcdir in 3374 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3375 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3376esac 3377 3378# Do 'set' in a subshell so we don't clobber the current shell's 3379# arguments. Must try -L first in case configure is actually a 3380# symlink; some systems play weird games with the mod time of symlinks 3381# (eg FreeBSD returns the mod time of the symlink's containing 3382# directory). 3383if ( 3384 am_has_slept=no 3385 for am_try in 1 2; do 3386 echo "timestamp, slept: $am_has_slept" > conftest.file 3387 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3388 if test "$*" = "X"; then 3389 # -L didn't work. 3390 set X `ls -t "$srcdir/configure" conftest.file` 3391 fi 3392 if test "$*" != "X $srcdir/configure conftest.file" \ 3393 && test "$*" != "X conftest.file $srcdir/configure"; then 3394 3395 # If neither matched, then we have a broken ls. This can happen 3396 # if, for instance, CONFIG_SHELL is bash and it inherits a 3397 # broken ls alias from the environment. This has actually 3398 # happened. Such a system could not be considered "sane". 3399 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3400 alias in your environment" "$LINENO" 5 3401 fi 3402 if test "$2" = conftest.file || test $am_try -eq 2; then 3403 break 3404 fi 3405 # Just in case. 3406 sleep 1 3407 am_has_slept=yes 3408 done 3409 test "$2" = conftest.file 3410 ) 3411then 3412 # Ok. 3413 : 3414else 3415 as_fn_error $? "newly created file is older than distributed files! 3416Check your system clock" "$LINENO" 5 3417fi 3418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3419$as_echo "yes" >&6; } 3420# If we didn't sleep, we still need to ensure time stamps of config.status and 3421# generated files are strictly newer. 3422am_sleep_pid= 3423if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3424 ( sleep 1 ) & 3425 am_sleep_pid=$! 3426fi 3427 3428rm -f conftest.file 3429 3430test "$program_prefix" != NONE && 3431 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3432# Use a double $ so make ignores it. 3433test "$program_suffix" != NONE && 3434 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3435# Double any \ or $. 3436# By default was `s,x,x', remove it if useless. 3437ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3438program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3439 3440# Expand $ac_aux_dir to an absolute path. 3441am_aux_dir=`cd "$ac_aux_dir" && pwd` 3442 3443if test x"${MISSING+set}" != xset; then 3444 case $am_aux_dir in 3445 *\ * | *\ *) 3446 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3447 *) 3448 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3449 esac 3450fi 3451# Use eval to expand $SHELL 3452if eval "$MISSING --is-lightweight"; then 3453 am_missing_run="$MISSING " 3454else 3455 am_missing_run= 3456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3457$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3458fi 3459 3460if test x"${install_sh+set}" != xset; then 3461 case $am_aux_dir in 3462 *\ * | *\ *) 3463 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3464 *) 3465 install_sh="\${SHELL} $am_aux_dir/install-sh" 3466 esac 3467fi 3468 3469# Installed binaries are usually stripped using 'strip' when the user 3470# run "make install-strip". However 'strip' might not be the right 3471# tool to use in cross-compilation environments, therefore Automake 3472# will honor the 'STRIP' environment variable to overrule this program. 3473if test "$cross_compiling" != no; then 3474 if test -n "$ac_tool_prefix"; then 3475 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3476set dummy ${ac_tool_prefix}strip; ac_word=$2 3477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3478$as_echo_n "checking for $ac_word... " >&6; } 3479if ${ac_cv_prog_STRIP+:} false; then : 3480 $as_echo_n "(cached) " >&6 3481else 3482 if test -n "$STRIP"; then 3483 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3484else 3485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3486for as_dir in $PATH 3487do 3488 IFS=$as_save_IFS 3489 test -z "$as_dir" && as_dir=. 3490 for ac_exec_ext in '' $ac_executable_extensions; do 3491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3492 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3494 break 2 3495 fi 3496done 3497 done 3498IFS=$as_save_IFS 3499 3500fi 3501fi 3502STRIP=$ac_cv_prog_STRIP 3503if test -n "$STRIP"; then 3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3505$as_echo "$STRIP" >&6; } 3506else 3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3508$as_echo "no" >&6; } 3509fi 3510 3511 3512fi 3513if test -z "$ac_cv_prog_STRIP"; then 3514 ac_ct_STRIP=$STRIP 3515 # Extract the first word of "strip", so it can be a program name with args. 3516set dummy strip; ac_word=$2 3517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3518$as_echo_n "checking for $ac_word... " >&6; } 3519if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3520 $as_echo_n "(cached) " >&6 3521else 3522 if test -n "$ac_ct_STRIP"; then 3523 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3524else 3525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3526for as_dir in $PATH 3527do 3528 IFS=$as_save_IFS 3529 test -z "$as_dir" && as_dir=. 3530 for ac_exec_ext in '' $ac_executable_extensions; do 3531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3532 ac_cv_prog_ac_ct_STRIP="strip" 3533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3534 break 2 3535 fi 3536done 3537 done 3538IFS=$as_save_IFS 3539 3540fi 3541fi 3542ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3543if test -n "$ac_ct_STRIP"; then 3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3545$as_echo "$ac_ct_STRIP" >&6; } 3546else 3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3548$as_echo "no" >&6; } 3549fi 3550 3551 if test "x$ac_ct_STRIP" = x; then 3552 STRIP=":" 3553 else 3554 case $cross_compiling:$ac_tool_warned in 3555yes:) 3556{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3557$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3558ac_tool_warned=yes ;; 3559esac 3560 STRIP=$ac_ct_STRIP 3561 fi 3562else 3563 STRIP="$ac_cv_prog_STRIP" 3564fi 3565 3566fi 3567INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3568 3569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3570$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3571if test -z "$MKDIR_P"; then 3572 if ${ac_cv_path_mkdir+:} false; then : 3573 $as_echo_n "(cached) " >&6 3574else 3575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3576for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3577do 3578 IFS=$as_save_IFS 3579 test -z "$as_dir" && as_dir=. 3580 for ac_prog in mkdir gmkdir; do 3581 for ac_exec_ext in '' $ac_executable_extensions; do 3582 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3583 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3584 'mkdir (GNU coreutils) '* | \ 3585 'mkdir (coreutils) '* | \ 3586 'mkdir (fileutils) '4.1*) 3587 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3588 break 3;; 3589 esac 3590 done 3591 done 3592 done 3593IFS=$as_save_IFS 3594 3595fi 3596 3597 test -d ./--version && rmdir ./--version 3598 if test "${ac_cv_path_mkdir+set}" = set; then 3599 MKDIR_P="$ac_cv_path_mkdir -p" 3600 else 3601 # As a last resort, use the slow shell script. Don't cache a 3602 # value for MKDIR_P within a source directory, because that will 3603 # break other packages using the cache if that directory is 3604 # removed, or if the value is a relative name. 3605 MKDIR_P="$ac_install_sh -d" 3606 fi 3607fi 3608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3609$as_echo "$MKDIR_P" >&6; } 3610 3611for ac_prog in gawk mawk nawk awk 3612do 3613 # Extract the first word of "$ac_prog", so it can be a program name with args. 3614set dummy $ac_prog; ac_word=$2 3615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3616$as_echo_n "checking for $ac_word... " >&6; } 3617if ${ac_cv_prog_AWK+:} false; then : 3618 $as_echo_n "(cached) " >&6 3619else 3620 if test -n "$AWK"; then 3621 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3622else 3623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3624for as_dir in $PATH 3625do 3626 IFS=$as_save_IFS 3627 test -z "$as_dir" && as_dir=. 3628 for ac_exec_ext in '' $ac_executable_extensions; do 3629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3630 ac_cv_prog_AWK="$ac_prog" 3631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3632 break 2 3633 fi 3634done 3635 done 3636IFS=$as_save_IFS 3637 3638fi 3639fi 3640AWK=$ac_cv_prog_AWK 3641if test -n "$AWK"; then 3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3643$as_echo "$AWK" >&6; } 3644else 3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3646$as_echo "no" >&6; } 3647fi 3648 3649 3650 test -n "$AWK" && break 3651done 3652 3653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3654$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3655set x ${MAKE-make} 3656ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3657if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3658 $as_echo_n "(cached) " >&6 3659else 3660 cat >conftest.make <<\_ACEOF 3661SHELL = /bin/sh 3662all: 3663 @echo '@@@%%%=$(MAKE)=@@@%%%' 3664_ACEOF 3665# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3666case `${MAKE-make} -f conftest.make 2>/dev/null` in 3667 *@@@%%%=?*=@@@%%%*) 3668 eval ac_cv_prog_make_${ac_make}_set=yes;; 3669 *) 3670 eval ac_cv_prog_make_${ac_make}_set=no;; 3671esac 3672rm -f conftest.make 3673fi 3674if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3676$as_echo "yes" >&6; } 3677 SET_MAKE= 3678else 3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3680$as_echo "no" >&6; } 3681 SET_MAKE="MAKE=${MAKE-make}" 3682fi 3683 3684rm -rf .tst 2>/dev/null 3685mkdir .tst 2>/dev/null 3686if test -d .tst; then 3687 am__leading_dot=. 3688else 3689 am__leading_dot=_ 3690fi 3691rmdir .tst 2>/dev/null 3692 3693# Check whether --enable-silent-rules was given. 3694if test "${enable_silent_rules+set}" = set; then : 3695 enableval=$enable_silent_rules; 3696fi 3697 3698case $enable_silent_rules in # ((( 3699 yes) AM_DEFAULT_VERBOSITY=0;; 3700 no) AM_DEFAULT_VERBOSITY=1;; 3701 *) AM_DEFAULT_VERBOSITY=1;; 3702esac 3703am_make=${MAKE-make} 3704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3705$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3706if ${am_cv_make_support_nested_variables+:} false; then : 3707 $as_echo_n "(cached) " >&6 3708else 3709 if $as_echo 'TRUE=$(BAR$(V)) 3710BAR0=false 3711BAR1=true 3712V=1 3713am__doit: 3714 @$(TRUE) 3715.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3716 am_cv_make_support_nested_variables=yes 3717else 3718 am_cv_make_support_nested_variables=no 3719fi 3720fi 3721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3722$as_echo "$am_cv_make_support_nested_variables" >&6; } 3723if test $am_cv_make_support_nested_variables = yes; then 3724 AM_V='$(V)' 3725 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3726else 3727 AM_V=$AM_DEFAULT_VERBOSITY 3728 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3729fi 3730AM_BACKSLASH='\' 3731 3732if test "`cd $srcdir && pwd`" != "`pwd`"; then 3733 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3734 # is not polluted with repeated "-I." 3735 am__isrc=' -I$(srcdir)' 3736 # test to see if srcdir already configured 3737 if test -f $srcdir/config.status; then 3738 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3739 fi 3740fi 3741 3742# test whether we have cygpath 3743if test -z "$CYGPATH_W"; then 3744 if (cygpath --version) >/dev/null 2>/dev/null; then 3745 CYGPATH_W='cygpath -w' 3746 else 3747 CYGPATH_W=echo 3748 fi 3749fi 3750 3751 3752# Define the identity of the package. 3753 PACKAGE='med' 3754 VERSION='4.0.0' 3755 3756 3757cat >>confdefs.h <<_ACEOF 3758#define PACKAGE "$PACKAGE" 3759_ACEOF 3760 3761 3762cat >>confdefs.h <<_ACEOF 3763#define VERSION "$VERSION" 3764_ACEOF 3765 3766# Some tools Automake needs. 3767 3768ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3769 3770 3771AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3772 3773 3774AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3775 3776 3777AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3778 3779 3780MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3781 3782# For better backward compatibility. To be removed once Automake 1.9.x 3783# dies out for good. For more background, see: 3784# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3785# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3786mkdir_p='$(MKDIR_P)' 3787 3788# We need awk for the "check" target (and possibly the TAP driver). The 3789# system "awk" is bad on some platforms. 3790# Always define AMTAR for backward compatibility. Yes, it's still used 3791# in the wild :-( We should find a proper way to deprecate it ... 3792AMTAR='$${TAR-tar}' 3793 3794 3795# We'll loop over all known methods to create a tar archive until one works. 3796_am_tools='gnutar plaintar pax cpio none' 3797 3798# The POSIX 1988 'ustar' format is defined with fixed-size fields. 3799 # There is notably a 21 bits limit for the UID and the GID. In fact, 3800 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 3801 # and bug#13588). 3802 am_max_uid=2097151 # 2^21 - 1 3803 am_max_gid=$am_max_uid 3804 # The $UID and $GID variables are not portable, so we need to resort 3805 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 3806 # below are definitely unexpected, so allow the users to see them 3807 # (that is, avoid stderr redirection). 3808 am_uid=`id -u || echo unknown` 3809 am_gid=`id -g || echo unknown` 3810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5 3811$as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; } 3812 if test $am_uid -le $am_max_uid; then 3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3814$as_echo "yes" >&6; } 3815 else 3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3817$as_echo "no" >&6; } 3818 _am_tools=none 3819 fi 3820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5 3821$as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; } 3822 if test $am_gid -le $am_max_gid; then 3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3824$as_echo "yes" >&6; } 3825 else 3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3827$as_echo "no" >&6; } 3828 _am_tools=none 3829 fi 3830 3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 3832$as_echo_n "checking how to create a ustar tar archive... " >&6; } 3833 3834 # Go ahead even if we have the value already cached. We do so because we 3835 # need to set the values for the 'am__tar' and 'am__untar' variables. 3836 _am_tools=${am_cv_prog_tar_ustar-$_am_tools} 3837 3838 for _am_tool in $_am_tools; do 3839 case $_am_tool in 3840 gnutar) 3841 for _am_tar in tar gnutar gtar; do 3842 { echo "$as_me:$LINENO: $_am_tar --version" >&5 3843 ($_am_tar --version) >&5 2>&5 3844 ac_status=$? 3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3846 (exit $ac_status); } && break 3847 done 3848 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' 3849 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' 3850 am__untar="$_am_tar -xf -" 3851 ;; 3852 plaintar) 3853 # Must skip GNU tar: if it does not support --format= it doesn't create 3854 # ustar tarball either. 3855 (tar --version) >/dev/null 2>&1 && continue 3856 am__tar='tar chf - "$$tardir"' 3857 am__tar_='tar chf - "$tardir"' 3858 am__untar='tar xf -' 3859 ;; 3860 pax) 3861 am__tar='pax -L -x ustar -w "$$tardir"' 3862 am__tar_='pax -L -x ustar -w "$tardir"' 3863 am__untar='pax -r' 3864 ;; 3865 cpio) 3866 am__tar='find "$$tardir" -print | cpio -o -H ustar -L' 3867 am__tar_='find "$tardir" -print | cpio -o -H ustar -L' 3868 am__untar='cpio -i -H ustar -d' 3869 ;; 3870 none) 3871 am__tar=false 3872 am__tar_=false 3873 am__untar=false 3874 ;; 3875 esac 3876 3877 # If the value was cached, stop now. We just wanted to have am__tar 3878 # and am__untar set. 3879 test -n "${am_cv_prog_tar_ustar}" && break 3880 3881 # tar/untar a dummy directory, and stop if the command works. 3882 rm -rf conftest.dir 3883 mkdir conftest.dir 3884 echo GrepMe > conftest.dir/file 3885 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 3886 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 3887 ac_status=$? 3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3889 (exit $ac_status); } 3890 rm -rf conftest.dir 3891 if test -s conftest.tar; then 3892 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 3893 ($am__untar <conftest.tar) >&5 2>&5 3894 ac_status=$? 3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3896 (exit $ac_status); } 3897 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5 3898 (cat conftest.dir/file) >&5 2>&5 3899 ac_status=$? 3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3901 (exit $ac_status); } 3902 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 3903 fi 3904 done 3905 rm -rf conftest.dir 3906 3907 if ${am_cv_prog_tar_ustar+:} false; then : 3908 $as_echo_n "(cached) " >&6 3909else 3910 am_cv_prog_tar_ustar=$_am_tool 3911fi 3912 3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 3914$as_echo "$am_cv_prog_tar_ustar" >&6; } 3915 3916 3917 3918 3919 3920 3921# POSIX will say in a future version that running "rm -f" with no argument 3922# is OK; and we want to be able to make that assumption in our Makefile 3923# recipes. So use an aggressive probe to check that the usage we want is 3924# actually supported "in the wild" to an acceptable degree. 3925# See automake bug#10828. 3926# To make any issue more visible, cause the running configure to be aborted 3927# by default if the 'rm' program in use doesn't match our expectations; the 3928# user can still override this though. 3929if rm -f && rm -fr && rm -rf; then : OK; else 3930 cat >&2 <<'END' 3931Oops! 3932 3933Your 'rm' program seems unable to run without file operands specified 3934on the command line, even when the '-f' option is present. This is contrary 3935to the behaviour of most rm programs out there, and not conforming with 3936the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3937 3938Please tell bug-automake@gnu.org about your system, including the value 3939of your $PATH and any error possibly output before this message. This 3940can help us improve future automake versions. 3941 3942END 3943 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3944 echo 'Configuration will proceed anyway, since you have set the' >&2 3945 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3946 echo >&2 3947 else 3948 cat >&2 <<'END' 3949Aborting the configuration process, to ensure you take notice of the issue. 3950 3951You can download and install GNU coreutils to get an 'rm' implementation 3952that behaves properly: <http://www.gnu.org/software/coreutils/>. 3953 3954If you want to complete the configuration process using your problematic 3955'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3956to "yes", and re-run configure. 3957 3958END 3959 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3960 fi 3961fi 3962 3963 3964## 3965ac_config_headers="$ac_config_headers include/med_config.h" 3966 3967 3968 3969 3970## Check For HDF5 3971## Check if HDF5 is parallel or not before choosing the compilers to use 3972## if HDF5 is parallel we try to use the frontends mpi compilers 3973 3974## Guess where as hdf5 is located by the HDF5HOME environement variable 3975## or by the --with-hdf5 option 3976 3977# Check whether --with-hdf5 was given. 3978if test "${with_hdf5+set}" = set; then : 3979 withval=$with_hdf5; 3980else 3981 with_hdf5=yes 3982fi 3983 3984 3985 3986# Check whether --with-hdf5-include was given. 3987if test "${with_hdf5_include+set}" = set; then : 3988 withval=$with_hdf5_include; 3989else 3990 with_hdf5_include=no 3991fi 3992 3993 3994 3995# Check whether --with-hdf5-lib was given. 3996if test "${with_hdf5_lib+set}" = set; then : 3997 withval=$with_hdf5_lib; 3998else 3999 with_hdf5_lib=no 4000fi 4001 4002 4003 4004# Check whether --with-hdf5-bin was given. 4005if test "${with_hdf5_bin+set}" = set; then : 4006 withval=$with_hdf5_bin; hdf5bin=$with_hdf5_bin 4007else 4008 with_hdf5_bin=no 4009fi 4010 4011 4012 4013 4014 4015 4016 test "x$with_hdf5" = "xyes" && hdf5home=${HDF5HOME} || hdf5home=$with_hdf5 4017 4018 if test ! "x$with_hdf5" = "xno"; then 4019 test -z "$hdf5home" && test "x$with_hdf5_include" = "xno" && test "x$with_hdf5_lib" = "xno" && hdf5home="/usr/" 4020 4021 if test -z "$hdf5home" && (test "x$with_hdf5_include" = "xno" || test "x$with_hdf5_lib" = "xno") ; then 4022 as_fn_error $? "The hdf5 path |$hdf5home| isn't specified, please verify either HDF5HOME or --with-hdf5=<path>. You may also use --with-hdf5-include and --with-hdf5-lib." "$LINENO" 5 4023 fi 4024 if test ! -d "$hdf5home" && (test "x$with_hdf5_include" = "xno" || test "x$with_hdf5_lib" = "xno") ; then 4025 as_fn_error $? "The directory hdf5 home |$hdf5home| doesn't exist, please verify either HDF5HOME or --with-hdf5=<path>" "$LINENO" 5 4026 fi 4027 4028 found_H5pubconf_h=no 4029 hdf5home_save=$hdf5home 4030 #if user has provided a specific hdf5 path for include or lib don't try to guess specific system path 4031 if test "x$with_hdf5_include" = "xno" && test "x$with_hdf5_lib" = "xno"; then 4032 #Search for H5pubconf.h in $hdf5home and some other standard paths if user doesn't provide hdf5_include 4033 # H5pubconf.h is used further to detect serial or parallel hdf5 4034 #Cette approche ne prend pas en compte CPPFLAGS, inconvénient mineur de au vu du test d'arborescence précédent 4035 for hdf5home in "$hdf5home_save" "$hdf5home_save/lib/x86_64-linux-gnu/hdf5/serial/" "$hdf5home_save/lib/x86_64-linux-gnu/hdf5/parallel/" 4036 do 4037 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying $hdf5home home path for searching H5pubconf.h file." >&5 4038$as_echo "$as_me: Trying $hdf5home home path for searching H5pubconf.h file." >&6;} 4039 test -e $hdf5home/include/H5pubconf.h && found_H5pubconf_h=yes && break 4040 done 4041 fi 4042 4043 test "x$with_hdf5_include" = "xno" && hdf5include=$hdf5home/include || hdf5include=$with_hdf5_include 4044 if test ! -d "$hdf5include" ; then 4045 as_fn_error $? "The directory hdf5 include |$hdf5include| doesn't exist, please verify either HDF5HOME, --with-hdf5=<path> or --with-hdf5-include" "$LINENO" 5 4046 fi 4047 4048 test ! "x$found_H5pubconf_h" = "xyes" || test -e ${hdf5include}/H5pubconf.h || as_fn_error $? "Can't find H5pubconf.h file, please verify either HDF5HOME, --with-hdf5=<path> or --with-hdf5-include." "$LINENO" 5 4049 4050 test "x$with_hdf5_lib" = "xno" && hdf5lib=$hdf5home/lib || hdf5lib=$with_hdf5_lib 4051 if test ! -d "$hdf5lib" ; then 4052 as_fn_error $? "The directory hdf5 lib |$hdf5lib| doesn't exist, please verify either HDF5HOME, --with-hdf5=<path> or --with-hdf5-lib" "$LINENO" 5 4053 fi 4054 4055 test "x$with_hdf5_bin" = "xno" && hdf5bin=$hdf5home_save/bin || hdf5bin=$with_hdf5_bin 4056 if test ! -d "$hdf5bin" ; then 4057 as_fn_error $? "The directory hdf5 bin |$hdf5bin| doesn't exist, please verify either HDF5HOME, --with-hdf5=<path> or --with-hdf5-bin" "$LINENO" 5 4058 fi 4059 4060 else 4061## In case user explicitly ask to not use hdf5 ! 4062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't compile MED without hdf5" >&5 4063$as_echo "$as_me: WARNING: Can't compile MED without hdf5" >&2;} 4064 as_fn_error $? "either use HDF5HOME env. var. or --with-hdf5=<path> even if you use all the specific --with-hdf5-... paths." "$LINENO" 5 4065 fi 4066 4067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4068$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4069if ${ac_cv_path_SED+:} false; then : 4070 $as_echo_n "(cached) " >&6 4071else 4072 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4073 for ac_i in 1 2 3 4 5 6 7; do 4074 ac_script="$ac_script$as_nl$ac_script" 4075 done 4076 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4077 { ac_script=; unset ac_script;} 4078 if test -z "$SED"; then 4079 ac_path_SED_found=false 4080 # Loop through the user's path and test for each of PROGNAME-LIST 4081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4082for as_dir in $PATH 4083do 4084 IFS=$as_save_IFS 4085 test -z "$as_dir" && as_dir=. 4086 for ac_prog in sed gsed; do 4087 for ac_exec_ext in '' $ac_executable_extensions; do 4088 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4089 as_fn_executable_p "$ac_path_SED" || continue 4090# Check for GNU ac_path_SED and select it if it is found. 4091 # Check for GNU $ac_path_SED 4092case `"$ac_path_SED" --version 2>&1` in 4093*GNU*) 4094 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4095*) 4096 ac_count=0 4097 $as_echo_n 0123456789 >"conftest.in" 4098 while : 4099 do 4100 cat "conftest.in" "conftest.in" >"conftest.tmp" 4101 mv "conftest.tmp" "conftest.in" 4102 cp "conftest.in" "conftest.nl" 4103 $as_echo '' >> "conftest.nl" 4104 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4105 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4106 as_fn_arith $ac_count + 1 && ac_count=$as_val 4107 if test $ac_count -gt ${ac_path_SED_max-0}; then 4108 # Best one so far, save it but keep looking for a better one 4109 ac_cv_path_SED="$ac_path_SED" 4110 ac_path_SED_max=$ac_count 4111 fi 4112 # 10*(2^10) chars as input seems more than enough 4113 test $ac_count -gt 10 && break 4114 done 4115 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4116esac 4117 4118 $ac_path_SED_found && break 3 4119 done 4120 done 4121 done 4122IFS=$as_save_IFS 4123 if test -z "$ac_cv_path_SED"; then 4124 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4125 fi 4126else 4127 ac_cv_path_SED=$SED 4128fi 4129 4130fi 4131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4132$as_echo "$ac_cv_path_SED" >&6; } 4133 SED="$ac_cv_path_SED" 4134 rm -f conftest.sed 4135 4136 4137 4138 4139if test "x`sed -n '/^#define *H5_HAVE_PARALLEL *1\{0,1\}/{s/.*/MED_CATCH_H5_HAVE_PARALLEL/p;}' ${hdf5include}/H5pubconf.h`" = "xMED_CATCH_H5_HAVE_PARALLEL" 4140then 4141 mpi_wanted_test="yes" 4142else 4143 mpi_wanted_test="no" 4144fi 4145 4146 4147 4148 4149 4150 4151 4152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile C using MPI" >&5 4153$as_echo_n "checking whether to compile C using MPI... " >&6; } 4154 if test "x$mpi_wanted_test" = "xyes"; then 4155 _ax_prog_cc_mpi_mpi_wanted=yes 4156 else 4157 _ax_prog_cc_mpi_mpi_wanted=no 4158 fi 4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_ax_prog_cc_mpi_mpi_wanted" >&5 4160$as_echo "$_ax_prog_cc_mpi_mpi_wanted" >&6; } 4161 4162 if test x"$_ax_prog_cc_mpi_mpi_wanted" = xyes; then 4163 if test -z "$CC" && test -n "$MPICC"; then 4164 CC="$MPICC" 4165 elif test -z "$CC"; then 4166 if test -n "$ac_tool_prefix"; then 4167 for ac_prog in mpicc mpixlc_r mpixlc hcc mpxlc_r mpxlc sxmpicc mpifcc mpgcc mpcc cmpicc cc gcc 4168 do 4169 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4170set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4172$as_echo_n "checking for $ac_word... " >&6; } 4173if ${ac_cv_prog_CC+:} false; then : 4174 $as_echo_n "(cached) " >&6 4175else 4176 if test -n "$CC"; then 4177 ac_cv_prog_CC="$CC" # Let the user override the test. 4178else 4179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4180for as_dir in $PATH 4181do 4182 IFS=$as_save_IFS 4183 test -z "$as_dir" && as_dir=. 4184 for ac_exec_ext in '' $ac_executable_extensions; do 4185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4186 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4188 break 2 4189 fi 4190done 4191 done 4192IFS=$as_save_IFS 4193 4194fi 4195fi 4196CC=$ac_cv_prog_CC 4197if test -n "$CC"; then 4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4199$as_echo "$CC" >&6; } 4200else 4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4202$as_echo "no" >&6; } 4203fi 4204 4205 4206 test -n "$CC" && break 4207 done 4208fi 4209if test -z "$CC"; then 4210 ac_ct_CC=$CC 4211 for ac_prog in mpicc mpixlc_r mpixlc hcc mpxlc_r mpxlc sxmpicc mpifcc mpgcc mpcc cmpicc cc gcc 4212do 4213 # Extract the first word of "$ac_prog", so it can be a program name with args. 4214set dummy $ac_prog; ac_word=$2 4215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4216$as_echo_n "checking for $ac_word... " >&6; } 4217if ${ac_cv_prog_ac_ct_CC+:} false; then : 4218 $as_echo_n "(cached) " >&6 4219else 4220 if test -n "$ac_ct_CC"; then 4221 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4222else 4223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4224for as_dir in $PATH 4225do 4226 IFS=$as_save_IFS 4227 test -z "$as_dir" && as_dir=. 4228 for ac_exec_ext in '' $ac_executable_extensions; do 4229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4230 ac_cv_prog_ac_ct_CC="$ac_prog" 4231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4232 break 2 4233 fi 4234done 4235 done 4236IFS=$as_save_IFS 4237 4238fi 4239fi 4240ac_ct_CC=$ac_cv_prog_ac_ct_CC 4241if test -n "$ac_ct_CC"; then 4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4243$as_echo "$ac_ct_CC" >&6; } 4244else 4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4246$as_echo "no" >&6; } 4247fi 4248 4249 4250 test -n "$ac_ct_CC" && break 4251done 4252 4253 if test "x$ac_ct_CC" = x; then 4254 CC="" 4255 else 4256 case $cross_compiling:$ac_tool_warned in 4257yes:) 4258{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4259$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4260ac_tool_warned=yes ;; 4261esac 4262 CC=$ac_ct_CC 4263 fi 4264fi 4265 4266 fi 4267 fi 4268 4269DEPDIR="${am__leading_dot}deps" 4270 4271ac_config_commands="$ac_config_commands depfiles" 4272 4273 4274am_make=${MAKE-make} 4275cat > confinc << 'END' 4276am__doit: 4277 @echo this is the am__doit target 4278.PHONY: am__doit 4279END 4280# If we don't find an include directive, just comment out the code. 4281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4282$as_echo_n "checking for style of include used by $am_make... " >&6; } 4283am__include="#" 4284am__quote= 4285_am_result=none 4286# First try GNU make style include. 4287echo "include confinc" > confmf 4288# Ignore all kinds of additional output from 'make'. 4289case `$am_make -s -f confmf 2> /dev/null` in #( 4290*the\ am__doit\ target*) 4291 am__include=include 4292 am__quote= 4293 _am_result=GNU 4294 ;; 4295esac 4296# Now try BSD make style include. 4297if test "$am__include" = "#"; then 4298 echo '.include "confinc"' > confmf 4299 case `$am_make -s -f confmf 2> /dev/null` in #( 4300 *the\ am__doit\ target*) 4301 am__include=.include 4302 am__quote="\"" 4303 _am_result=BSD 4304 ;; 4305 esac 4306fi 4307 4308 4309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4310$as_echo "$_am_result" >&6; } 4311rm -f confinc confmf 4312 4313# Check whether --enable-dependency-tracking was given. 4314if test "${enable_dependency_tracking+set}" = set; then : 4315 enableval=$enable_dependency_tracking; 4316fi 4317 4318if test "x$enable_dependency_tracking" != xno; then 4319 am_depcomp="$ac_aux_dir/depcomp" 4320 AMDEPBACKSLASH='\' 4321 am__nodep='_no' 4322fi 4323 if test "x$enable_dependency_tracking" != xno; then 4324 AMDEP_TRUE= 4325 AMDEP_FALSE='#' 4326else 4327 AMDEP_TRUE='#' 4328 AMDEP_FALSE= 4329fi 4330 4331 4332ac_ext=c 4333ac_cpp='$CPP $CPPFLAGS' 4334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4336ac_compiler_gnu=$ac_cv_c_compiler_gnu 4337if test -n "$ac_tool_prefix"; then 4338 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4339set dummy ${ac_tool_prefix}gcc; ac_word=$2 4340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4341$as_echo_n "checking for $ac_word... " >&6; } 4342if ${ac_cv_prog_CC+:} false; then : 4343 $as_echo_n "(cached) " >&6 4344else 4345 if test -n "$CC"; then 4346 ac_cv_prog_CC="$CC" # Let the user override the test. 4347else 4348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4349for as_dir in $PATH 4350do 4351 IFS=$as_save_IFS 4352 test -z "$as_dir" && as_dir=. 4353 for ac_exec_ext in '' $ac_executable_extensions; do 4354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4355 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4357 break 2 4358 fi 4359done 4360 done 4361IFS=$as_save_IFS 4362 4363fi 4364fi 4365CC=$ac_cv_prog_CC 4366if test -n "$CC"; then 4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4368$as_echo "$CC" >&6; } 4369else 4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4371$as_echo "no" >&6; } 4372fi 4373 4374 4375fi 4376if test -z "$ac_cv_prog_CC"; then 4377 ac_ct_CC=$CC 4378 # Extract the first word of "gcc", so it can be a program name with args. 4379set dummy gcc; ac_word=$2 4380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4381$as_echo_n "checking for $ac_word... " >&6; } 4382if ${ac_cv_prog_ac_ct_CC+:} false; then : 4383 $as_echo_n "(cached) " >&6 4384else 4385 if test -n "$ac_ct_CC"; then 4386 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4387else 4388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4389for as_dir in $PATH 4390do 4391 IFS=$as_save_IFS 4392 test -z "$as_dir" && as_dir=. 4393 for ac_exec_ext in '' $ac_executable_extensions; do 4394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4395 ac_cv_prog_ac_ct_CC="gcc" 4396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4397 break 2 4398 fi 4399done 4400 done 4401IFS=$as_save_IFS 4402 4403fi 4404fi 4405ac_ct_CC=$ac_cv_prog_ac_ct_CC 4406if test -n "$ac_ct_CC"; then 4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4408$as_echo "$ac_ct_CC" >&6; } 4409else 4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4411$as_echo "no" >&6; } 4412fi 4413 4414 if test "x$ac_ct_CC" = x; then 4415 CC="" 4416 else 4417 case $cross_compiling:$ac_tool_warned in 4418yes:) 4419{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4420$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4421ac_tool_warned=yes ;; 4422esac 4423 CC=$ac_ct_CC 4424 fi 4425else 4426 CC="$ac_cv_prog_CC" 4427fi 4428 4429if test -z "$CC"; then 4430 if test -n "$ac_tool_prefix"; then 4431 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4432set dummy ${ac_tool_prefix}cc; ac_word=$2 4433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4434$as_echo_n "checking for $ac_word... " >&6; } 4435if ${ac_cv_prog_CC+:} false; then : 4436 $as_echo_n "(cached) " >&6 4437else 4438 if test -n "$CC"; then 4439 ac_cv_prog_CC="$CC" # Let the user override the test. 4440else 4441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4442for as_dir in $PATH 4443do 4444 IFS=$as_save_IFS 4445 test -z "$as_dir" && as_dir=. 4446 for ac_exec_ext in '' $ac_executable_extensions; do 4447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4448 ac_cv_prog_CC="${ac_tool_prefix}cc" 4449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4450 break 2 4451 fi 4452done 4453 done 4454IFS=$as_save_IFS 4455 4456fi 4457fi 4458CC=$ac_cv_prog_CC 4459if test -n "$CC"; then 4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4461$as_echo "$CC" >&6; } 4462else 4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4464$as_echo "no" >&6; } 4465fi 4466 4467 4468 fi 4469fi 4470if test -z "$CC"; then 4471 # Extract the first word of "cc", so it can be a program name with args. 4472set dummy cc; ac_word=$2 4473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4474$as_echo_n "checking for $ac_word... " >&6; } 4475if ${ac_cv_prog_CC+:} false; then : 4476 $as_echo_n "(cached) " >&6 4477else 4478 if test -n "$CC"; then 4479 ac_cv_prog_CC="$CC" # Let the user override the test. 4480else 4481 ac_prog_rejected=no 4482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4483for as_dir in $PATH 4484do 4485 IFS=$as_save_IFS 4486 test -z "$as_dir" && as_dir=. 4487 for ac_exec_ext in '' $ac_executable_extensions; do 4488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4489 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4490 ac_prog_rejected=yes 4491 continue 4492 fi 4493 ac_cv_prog_CC="cc" 4494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4495 break 2 4496 fi 4497done 4498 done 4499IFS=$as_save_IFS 4500 4501if test $ac_prog_rejected = yes; then 4502 # We found a bogon in the path, so make sure we never use it. 4503 set dummy $ac_cv_prog_CC 4504 shift 4505 if test $# != 0; then 4506 # We chose a different compiler from the bogus one. 4507 # However, it has the same basename, so the bogon will be chosen 4508 # first if we set CC to just the basename; use the full file name. 4509 shift 4510 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4511 fi 4512fi 4513fi 4514fi 4515CC=$ac_cv_prog_CC 4516if test -n "$CC"; then 4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4518$as_echo "$CC" >&6; } 4519else 4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4521$as_echo "no" >&6; } 4522fi 4523 4524 4525fi 4526if test -z "$CC"; then 4527 if test -n "$ac_tool_prefix"; then 4528 for ac_prog in cl.exe 4529 do 4530 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4531set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4533$as_echo_n "checking for $ac_word... " >&6; } 4534if ${ac_cv_prog_CC+:} false; then : 4535 $as_echo_n "(cached) " >&6 4536else 4537 if test -n "$CC"; then 4538 ac_cv_prog_CC="$CC" # Let the user override the test. 4539else 4540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4541for as_dir in $PATH 4542do 4543 IFS=$as_save_IFS 4544 test -z "$as_dir" && as_dir=. 4545 for ac_exec_ext in '' $ac_executable_extensions; do 4546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4547 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4549 break 2 4550 fi 4551done 4552 done 4553IFS=$as_save_IFS 4554 4555fi 4556fi 4557CC=$ac_cv_prog_CC 4558if test -n "$CC"; then 4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4560$as_echo "$CC" >&6; } 4561else 4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4563$as_echo "no" >&6; } 4564fi 4565 4566 4567 test -n "$CC" && break 4568 done 4569fi 4570if test -z "$CC"; then 4571 ac_ct_CC=$CC 4572 for ac_prog in cl.exe 4573do 4574 # Extract the first word of "$ac_prog", so it can be a program name with args. 4575set dummy $ac_prog; ac_word=$2 4576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4577$as_echo_n "checking for $ac_word... " >&6; } 4578if ${ac_cv_prog_ac_ct_CC+:} false; then : 4579 $as_echo_n "(cached) " >&6 4580else 4581 if test -n "$ac_ct_CC"; then 4582 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4583else 4584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4585for as_dir in $PATH 4586do 4587 IFS=$as_save_IFS 4588 test -z "$as_dir" && as_dir=. 4589 for ac_exec_ext in '' $ac_executable_extensions; do 4590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4591 ac_cv_prog_ac_ct_CC="$ac_prog" 4592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4593 break 2 4594 fi 4595done 4596 done 4597IFS=$as_save_IFS 4598 4599fi 4600fi 4601ac_ct_CC=$ac_cv_prog_ac_ct_CC 4602if test -n "$ac_ct_CC"; then 4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4604$as_echo "$ac_ct_CC" >&6; } 4605else 4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4607$as_echo "no" >&6; } 4608fi 4609 4610 4611 test -n "$ac_ct_CC" && break 4612done 4613 4614 if test "x$ac_ct_CC" = x; then 4615 CC="" 4616 else 4617 case $cross_compiling:$ac_tool_warned in 4618yes:) 4619{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4620$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4621ac_tool_warned=yes ;; 4622esac 4623 CC=$ac_ct_CC 4624 fi 4625fi 4626 4627fi 4628 4629 4630test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4631$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4632as_fn_error $? "no acceptable C compiler found in \$PATH 4633See \`config.log' for more details" "$LINENO" 5; } 4634 4635# Provide some information about the compiler. 4636$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4637set X $ac_compile 4638ac_compiler=$2 4639for ac_option in --version -v -V -qversion; do 4640 { { ac_try="$ac_compiler $ac_option >&5" 4641case "(($ac_try" in 4642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4643 *) ac_try_echo=$ac_try;; 4644esac 4645eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4646$as_echo "$ac_try_echo"; } >&5 4647 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4648 ac_status=$? 4649 if test -s conftest.err; then 4650 sed '10a\ 4651... rest of stderr output deleted ... 4652 10q' conftest.err >conftest.er1 4653 cat conftest.er1 >&5 4654 fi 4655 rm -f conftest.er1 conftest.err 4656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4657 test $ac_status = 0; } 4658done 4659 4660cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4661/* end confdefs.h. */ 4662 4663int 4664main () 4665{ 4666 4667 ; 4668 return 0; 4669} 4670_ACEOF 4671ac_clean_files_save=$ac_clean_files 4672ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4673# Try to create an executable without -o first, disregard a.out. 4674# It will help us diagnose broken compilers, and finding out an intuition 4675# of exeext. 4676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4677$as_echo_n "checking whether the C compiler works... " >&6; } 4678ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4679 4680# The possible output files: 4681ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4682 4683ac_rmfiles= 4684for ac_file in $ac_files 4685do 4686 case $ac_file in 4687 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4688 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4689 esac 4690done 4691rm -f $ac_rmfiles 4692 4693if { { ac_try="$ac_link_default" 4694case "(($ac_try" in 4695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4696 *) ac_try_echo=$ac_try;; 4697esac 4698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4699$as_echo "$ac_try_echo"; } >&5 4700 (eval "$ac_link_default") 2>&5 4701 ac_status=$? 4702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4703 test $ac_status = 0; }; then : 4704 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4705# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4706# in a Makefile. We should not override ac_cv_exeext if it was cached, 4707# so that the user can short-circuit this test for compilers unknown to 4708# Autoconf. 4709for ac_file in $ac_files '' 4710do 4711 test -f "$ac_file" || continue 4712 case $ac_file in 4713 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4714 ;; 4715 [ab].out ) 4716 # We found the default executable, but exeext='' is most 4717 # certainly right. 4718 break;; 4719 *.* ) 4720 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4721 then :; else 4722 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4723 fi 4724 # We set ac_cv_exeext here because the later test for it is not 4725 # safe: cross compilers may not add the suffix if given an `-o' 4726 # argument, so we may need to know it at that point already. 4727 # Even if this section looks crufty: it has the advantage of 4728 # actually working. 4729 break;; 4730 * ) 4731 break;; 4732 esac 4733done 4734test "$ac_cv_exeext" = no && ac_cv_exeext= 4735 4736else 4737 ac_file='' 4738fi 4739if test -z "$ac_file"; then : 4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4741$as_echo "no" >&6; } 4742$as_echo "$as_me: failed program was:" >&5 4743sed 's/^/| /' conftest.$ac_ext >&5 4744 4745{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4746$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4747as_fn_error 77 "C compiler cannot create executables 4748See \`config.log' for more details" "$LINENO" 5; } 4749else 4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4751$as_echo "yes" >&6; } 4752fi 4753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4754$as_echo_n "checking for C compiler default output file name... " >&6; } 4755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4756$as_echo "$ac_file" >&6; } 4757ac_exeext=$ac_cv_exeext 4758 4759rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4760ac_clean_files=$ac_clean_files_save 4761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4762$as_echo_n "checking for suffix of executables... " >&6; } 4763if { { ac_try="$ac_link" 4764case "(($ac_try" in 4765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4766 *) ac_try_echo=$ac_try;; 4767esac 4768eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4769$as_echo "$ac_try_echo"; } >&5 4770 (eval "$ac_link") 2>&5 4771 ac_status=$? 4772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4773 test $ac_status = 0; }; then : 4774 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4775# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4776# work properly (i.e., refer to `conftest.exe'), while it won't with 4777# `rm'. 4778for ac_file in conftest.exe conftest conftest.*; do 4779 test -f "$ac_file" || continue 4780 case $ac_file in 4781 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4782 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4783 break;; 4784 * ) break;; 4785 esac 4786done 4787else 4788 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4789$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4790as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4791See \`config.log' for more details" "$LINENO" 5; } 4792fi 4793rm -f conftest conftest$ac_cv_exeext 4794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4795$as_echo "$ac_cv_exeext" >&6; } 4796 4797rm -f conftest.$ac_ext 4798EXEEXT=$ac_cv_exeext 4799ac_exeext=$EXEEXT 4800cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4801/* end confdefs.h. */ 4802#include <stdio.h> 4803int 4804main () 4805{ 4806FILE *f = fopen ("conftest.out", "w"); 4807 return ferror (f) || fclose (f) != 0; 4808 4809 ; 4810 return 0; 4811} 4812_ACEOF 4813ac_clean_files="$ac_clean_files conftest.out" 4814# Check that the compiler produces executables we can run. If not, either 4815# the compiler is broken, or we cross compile. 4816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4817$as_echo_n "checking whether we are cross compiling... " >&6; } 4818if test "$cross_compiling" != yes; then 4819 { { ac_try="$ac_link" 4820case "(($ac_try" in 4821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4822 *) ac_try_echo=$ac_try;; 4823esac 4824eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4825$as_echo "$ac_try_echo"; } >&5 4826 (eval "$ac_link") 2>&5 4827 ac_status=$? 4828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4829 test $ac_status = 0; } 4830 if { ac_try='./conftest$ac_cv_exeext' 4831 { { case "(($ac_try" in 4832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4833 *) ac_try_echo=$ac_try;; 4834esac 4835eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4836$as_echo "$ac_try_echo"; } >&5 4837 (eval "$ac_try") 2>&5 4838 ac_status=$? 4839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4840 test $ac_status = 0; }; }; then 4841 cross_compiling=no 4842 else 4843 if test "$cross_compiling" = maybe; then 4844 cross_compiling=yes 4845 else 4846 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4847$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4848as_fn_error $? "cannot run C compiled programs. 4849If you meant to cross compile, use \`--host'. 4850See \`config.log' for more details" "$LINENO" 5; } 4851 fi 4852 fi 4853fi 4854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4855$as_echo "$cross_compiling" >&6; } 4856 4857rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4858ac_clean_files=$ac_clean_files_save 4859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4860$as_echo_n "checking for suffix of object files... " >&6; } 4861if ${ac_cv_objext+:} false; then : 4862 $as_echo_n "(cached) " >&6 4863else 4864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4865/* end confdefs.h. */ 4866 4867int 4868main () 4869{ 4870 4871 ; 4872 return 0; 4873} 4874_ACEOF 4875rm -f conftest.o conftest.obj 4876if { { ac_try="$ac_compile" 4877case "(($ac_try" in 4878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4879 *) ac_try_echo=$ac_try;; 4880esac 4881eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4882$as_echo "$ac_try_echo"; } >&5 4883 (eval "$ac_compile") 2>&5 4884 ac_status=$? 4885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4886 test $ac_status = 0; }; then : 4887 for ac_file in conftest.o conftest.obj conftest.*; do 4888 test -f "$ac_file" || continue; 4889 case $ac_file in 4890 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4891 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4892 break;; 4893 esac 4894done 4895else 4896 $as_echo "$as_me: failed program was:" >&5 4897sed 's/^/| /' conftest.$ac_ext >&5 4898 4899{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4900$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4901as_fn_error $? "cannot compute suffix of object files: cannot compile 4902See \`config.log' for more details" "$LINENO" 5; } 4903fi 4904rm -f conftest.$ac_cv_objext conftest.$ac_ext 4905fi 4906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4907$as_echo "$ac_cv_objext" >&6; } 4908OBJEXT=$ac_cv_objext 4909ac_objext=$OBJEXT 4910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4911$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4912if ${ac_cv_c_compiler_gnu+:} false; then : 4913 $as_echo_n "(cached) " >&6 4914else 4915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4916/* end confdefs.h. */ 4917 4918int 4919main () 4920{ 4921#ifndef __GNUC__ 4922 choke me 4923#endif 4924 4925 ; 4926 return 0; 4927} 4928_ACEOF 4929if ac_fn_c_try_compile "$LINENO"; then : 4930 ac_compiler_gnu=yes 4931else 4932 ac_compiler_gnu=no 4933fi 4934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4935ac_cv_c_compiler_gnu=$ac_compiler_gnu 4936 4937fi 4938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4939$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4940if test $ac_compiler_gnu = yes; then 4941 GCC=yes 4942else 4943 GCC= 4944fi 4945ac_test_CFLAGS=${CFLAGS+set} 4946ac_save_CFLAGS=$CFLAGS 4947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4948$as_echo_n "checking whether $CC accepts -g... " >&6; } 4949if ${ac_cv_prog_cc_g+:} false; then : 4950 $as_echo_n "(cached) " >&6 4951else 4952 ac_save_c_werror_flag=$ac_c_werror_flag 4953 ac_c_werror_flag=yes 4954 ac_cv_prog_cc_g=no 4955 CFLAGS="-g" 4956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4957/* end confdefs.h. */ 4958 4959int 4960main () 4961{ 4962 4963 ; 4964 return 0; 4965} 4966_ACEOF 4967if ac_fn_c_try_compile "$LINENO"; then : 4968 ac_cv_prog_cc_g=yes 4969else 4970 CFLAGS="" 4971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4972/* end confdefs.h. */ 4973 4974int 4975main () 4976{ 4977 4978 ; 4979 return 0; 4980} 4981_ACEOF 4982if ac_fn_c_try_compile "$LINENO"; then : 4983 4984else 4985 ac_c_werror_flag=$ac_save_c_werror_flag 4986 CFLAGS="-g" 4987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4988/* end confdefs.h. */ 4989 4990int 4991main () 4992{ 4993 4994 ; 4995 return 0; 4996} 4997_ACEOF 4998if ac_fn_c_try_compile "$LINENO"; then : 4999 ac_cv_prog_cc_g=yes 5000fi 5001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5002fi 5003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5004fi 5005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5006 ac_c_werror_flag=$ac_save_c_werror_flag 5007fi 5008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5009$as_echo "$ac_cv_prog_cc_g" >&6; } 5010if test "$ac_test_CFLAGS" = set; then 5011 CFLAGS=$ac_save_CFLAGS 5012elif test $ac_cv_prog_cc_g = yes; then 5013 if test "$GCC" = yes; then 5014 CFLAGS="-g -O2" 5015 else 5016 CFLAGS="-g" 5017 fi 5018else 5019 if test "$GCC" = yes; then 5020 CFLAGS="-O2" 5021 else 5022 CFLAGS= 5023 fi 5024fi 5025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5026$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5027if ${ac_cv_prog_cc_c89+:} false; then : 5028 $as_echo_n "(cached) " >&6 5029else 5030 ac_cv_prog_cc_c89=no 5031ac_save_CC=$CC 5032cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5033/* end confdefs.h. */ 5034#include <stdarg.h> 5035#include <stdio.h> 5036struct stat; 5037/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5038struct buf { int x; }; 5039FILE * (*rcsopen) (struct buf *, struct stat *, int); 5040static char *e (p, i) 5041 char **p; 5042 int i; 5043{ 5044 return p[i]; 5045} 5046static char *f (char * (*g) (char **, int), char **p, ...) 5047{ 5048 char *s; 5049 va_list v; 5050 va_start (v,p); 5051 s = g (p, va_arg (v,int)); 5052 va_end (v); 5053 return s; 5054} 5055 5056/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5057 function prototypes and stuff, but not '\xHH' hex character constants. 5058 These don't provoke an error unfortunately, instead are silently treated 5059 as 'x'. The following induces an error, until -std is added to get 5060 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5061 array size at least. It's necessary to write '\x00'==0 to get something 5062 that's true only with -std. */ 5063int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5064 5065/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5066 inside strings and character constants. */ 5067#define FOO(x) 'x' 5068int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5069 5070int test (int i, double x); 5071struct s1 {int (*f) (int a);}; 5072struct s2 {int (*f) (double a);}; 5073int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5074int argc; 5075char **argv; 5076int 5077main () 5078{ 5079return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5080 ; 5081 return 0; 5082} 5083_ACEOF 5084for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5085 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5086do 5087 CC="$ac_save_CC $ac_arg" 5088 if ac_fn_c_try_compile "$LINENO"; then : 5089 ac_cv_prog_cc_c89=$ac_arg 5090fi 5091rm -f core conftest.err conftest.$ac_objext 5092 test "x$ac_cv_prog_cc_c89" != "xno" && break 5093done 5094rm -f conftest.$ac_ext 5095CC=$ac_save_CC 5096 5097fi 5098# AC_CACHE_VAL 5099case "x$ac_cv_prog_cc_c89" in 5100 x) 5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5102$as_echo "none needed" >&6; } ;; 5103 xno) 5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5105$as_echo "unsupported" >&6; } ;; 5106 *) 5107 CC="$CC $ac_cv_prog_cc_c89" 5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5109$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5110esac 5111if test "x$ac_cv_prog_cc_c89" != xno; then : 5112 5113fi 5114 5115ac_ext=c 5116ac_cpp='$CPP $CPPFLAGS' 5117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5119ac_compiler_gnu=$ac_cv_c_compiler_gnu 5120 5121ac_ext=c 5122ac_cpp='$CPP $CPPFLAGS' 5123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5125ac_compiler_gnu=$ac_cv_c_compiler_gnu 5126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 5127$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 5128if ${am_cv_prog_cc_c_o+:} false; then : 5129 $as_echo_n "(cached) " >&6 5130else 5131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5132/* end confdefs.h. */ 5133 5134int 5135main () 5136{ 5137 5138 ; 5139 return 0; 5140} 5141_ACEOF 5142 # Make sure it works both with $CC and with simple cc. 5143 # Following AC_PROG_CC_C_O, we do the test twice because some 5144 # compilers refuse to overwrite an existing .o file with -o, 5145 # though they will create one. 5146 am_cv_prog_cc_c_o=yes 5147 for am_i in 1 2; do 5148 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 5149 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 5150 ac_status=$? 5151 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5152 (exit $ac_status); } \ 5153 && test -f conftest2.$ac_objext; then 5154 : OK 5155 else 5156 am_cv_prog_cc_c_o=no 5157 break 5158 fi 5159 done 5160 rm -f core conftest* 5161 unset am_i 5162fi 5163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 5164$as_echo "$am_cv_prog_cc_c_o" >&6; } 5165if test "$am_cv_prog_cc_c_o" != yes; then 5166 # Losing compiler, so override with the script. 5167 # FIXME: It is wrong to rewrite CC. 5168 # But if we don't then we get into trouble of one sort or another. 5169 # A longer-term fix would be to have automake use am__CC in this case, 5170 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5171 CC="$am_aux_dir/compile $CC" 5172fi 5173ac_ext=c 5174ac_cpp='$CPP $CPPFLAGS' 5175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5177ac_compiler_gnu=$ac_cv_c_compiler_gnu 5178 5179 5180depcc="$CC" am_compiler_list= 5181 5182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5183$as_echo_n "checking dependency style of $depcc... " >&6; } 5184if ${am_cv_CC_dependencies_compiler_type+:} false; then : 5185 $as_echo_n "(cached) " >&6 5186else 5187 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5188 # We make a subdir and do the tests there. Otherwise we can end up 5189 # making bogus files that we don't know about and never remove. For 5190 # instance it was reported that on HP-UX the gcc test will end up 5191 # making a dummy file named 'D' -- because '-MD' means "put the output 5192 # in D". 5193 rm -rf conftest.dir 5194 mkdir conftest.dir 5195 # Copy depcomp to subdir because otherwise we won't find it if we're 5196 # using a relative directory. 5197 cp "$am_depcomp" conftest.dir 5198 cd conftest.dir 5199 # We will build objects and dependencies in a subdirectory because 5200 # it helps to detect inapplicable dependency modes. For instance 5201 # both Tru64's cc and ICC support -MD to output dependencies as a 5202 # side effect of compilation, but ICC will put the dependencies in 5203 # the current directory while Tru64 will put them in the object 5204 # directory. 5205 mkdir sub 5206 5207 am_cv_CC_dependencies_compiler_type=none 5208 if test "$am_compiler_list" = ""; then 5209 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5210 fi 5211 am__universal=false 5212 case " $depcc " in #( 5213 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5214 esac 5215 5216 for depmode in $am_compiler_list; do 5217 # Setup a source with many dependencies, because some compilers 5218 # like to wrap large dependency lists on column 80 (with \), and 5219 # we should not choose a depcomp mode which is confused by this. 5220 # 5221 # We need to recreate these files for each test, as the compiler may 5222 # overwrite some of them when testing with obscure command lines. 5223 # This happens at least with the AIX C compiler. 5224 : > sub/conftest.c 5225 for i in 1 2 3 4 5 6; do 5226 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5227 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5228 # Solaris 10 /bin/sh. 5229 echo '/* dummy */' > sub/conftst$i.h 5230 done 5231 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5232 5233 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5234 # mode. It turns out that the SunPro C++ compiler does not properly 5235 # handle '-M -o', and we need to detect this. Also, some Intel 5236 # versions had trouble with output in subdirs. 5237 am__obj=sub/conftest.${OBJEXT-o} 5238 am__minus_obj="-o $am__obj" 5239 case $depmode in 5240 gcc) 5241 # This depmode causes a compiler race in universal mode. 5242 test "$am__universal" = false || continue 5243 ;; 5244 nosideeffect) 5245 # After this tag, mechanisms are not by side-effect, so they'll 5246 # only be used when explicitly requested. 5247 if test "x$enable_dependency_tracking" = xyes; then 5248 continue 5249 else 5250 break 5251 fi 5252 ;; 5253 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5254 # This compiler won't grok '-c -o', but also, the minuso test has 5255 # not run yet. These depmodes are late enough in the game, and 5256 # so weak that their functioning should not be impacted. 5257 am__obj=conftest.${OBJEXT-o} 5258 am__minus_obj= 5259 ;; 5260 none) break ;; 5261 esac 5262 if depmode=$depmode \ 5263 source=sub/conftest.c object=$am__obj \ 5264 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5265 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5266 >/dev/null 2>conftest.err && 5267 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5268 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5269 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5270 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5271 # icc doesn't choke on unknown options, it will just issue warnings 5272 # or remarks (even with -Werror). So we grep stderr for any message 5273 # that says an option was ignored or not supported. 5274 # When given -MP, icc 7.0 and 7.1 complain thusly: 5275 # icc: Command line warning: ignoring option '-M'; no argument required 5276 # The diagnosis changed in icc 8.0: 5277 # icc: Command line remark: option '-MP' not supported 5278 if (grep 'ignoring option' conftest.err || 5279 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5280 am_cv_CC_dependencies_compiler_type=$depmode 5281 break 5282 fi 5283 fi 5284 done 5285 5286 cd .. 5287 rm -rf conftest.dir 5288else 5289 am_cv_CC_dependencies_compiler_type=none 5290fi 5291 5292fi 5293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5294$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5295CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5296 5297 if 5298 test "x$enable_dependency_tracking" != xno \ 5299 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5300 am__fastdepCC_TRUE= 5301 am__fastdepCC_FALSE='#' 5302else 5303 am__fastdepCC_TRUE='#' 5304 am__fastdepCC_FALSE= 5305fi 5306 5307 5308 5309 5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 5311$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 5312if ${ac_cv_prog_cc_c99+:} false; then : 5313 $as_echo_n "(cached) " >&6 5314else 5315 ac_cv_prog_cc_c99=no 5316ac_save_CC=$CC 5317cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5318/* end confdefs.h. */ 5319#include <stdarg.h> 5320#include <stdbool.h> 5321#include <stdlib.h> 5322#include <wchar.h> 5323#include <stdio.h> 5324 5325// Check varargs macros. These examples are taken from C99 6.10.3.5. 5326#define debug(...) fprintf (stderr, __VA_ARGS__) 5327#define showlist(...) puts (#__VA_ARGS__) 5328#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 5329static void 5330test_varargs_macros (void) 5331{ 5332 int x = 1234; 5333 int y = 5678; 5334 debug ("Flag"); 5335 debug ("X = %d\n", x); 5336 showlist (The first, second, and third items.); 5337 report (x>y, "x is %d but y is %d", x, y); 5338} 5339 5340// Check long long types. 5341#define BIG64 18446744073709551615ull 5342#define BIG32 4294967295ul 5343#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 5344#if !BIG_OK 5345 your preprocessor is broken; 5346#endif 5347#if BIG_OK 5348#else 5349 your preprocessor is broken; 5350#endif 5351static long long int bignum = -9223372036854775807LL; 5352static unsigned long long int ubignum = BIG64; 5353 5354struct incomplete_array 5355{ 5356 int datasize; 5357 double data[]; 5358}; 5359 5360struct named_init { 5361 int number; 5362 const wchar_t *name; 5363 double average; 5364}; 5365 5366typedef const char *ccp; 5367 5368static inline int 5369test_restrict (ccp restrict text) 5370{ 5371 // See if C++-style comments work. 5372 // Iterate through items via the restricted pointer. 5373 // Also check for declarations in for loops. 5374 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 5375 continue; 5376 return 0; 5377} 5378 5379// Check varargs and va_copy. 5380static void 5381test_varargs (const char *format, ...) 5382{ 5383 va_list args; 5384 va_start (args, format); 5385 va_list args_copy; 5386 va_copy (args_copy, args); 5387 5388 const char *str; 5389 int number; 5390 float fnumber; 5391 5392 while (*format) 5393 { 5394 switch (*format++) 5395 { 5396 case 's': // string 5397 str = va_arg (args_copy, const char *); 5398 break; 5399 case 'd': // int 5400 number = va_arg (args_copy, int); 5401 break; 5402 case 'f': // float 5403 fnumber = va_arg (args_copy, double); 5404 break; 5405 default: 5406 break; 5407 } 5408 } 5409 va_end (args_copy); 5410 va_end (args); 5411} 5412 5413int 5414main () 5415{ 5416 5417 // Check bool. 5418 _Bool success = false; 5419 5420 // Check restrict. 5421 if (test_restrict ("String literal") == 0) 5422 success = true; 5423 char *restrict newvar = "Another string"; 5424 5425 // Check varargs. 5426 test_varargs ("s, d' f .", "string", 65, 34.234); 5427 test_varargs_macros (); 5428 5429 // Check flexible array members. 5430 struct incomplete_array *ia = 5431 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 5432 ia->datasize = 10; 5433 for (int i = 0; i < ia->datasize; ++i) 5434 ia->data[i] = i * 1.234; 5435 5436 // Check named initializers. 5437 struct named_init ni = { 5438 .number = 34, 5439 .name = L"Test wide string", 5440 .average = 543.34343, 5441 }; 5442 5443 ni.number = 58; 5444 5445 int dynamic_array[ni.number]; 5446 dynamic_array[ni.number - 1] = 543; 5447 5448 // work around unused variable warnings 5449 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 5450 || dynamic_array[ni.number - 1] != 543); 5451 5452 ; 5453 return 0; 5454} 5455_ACEOF 5456for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 5457do 5458 CC="$ac_save_CC $ac_arg" 5459 if ac_fn_c_try_compile "$LINENO"; then : 5460 ac_cv_prog_cc_c99=$ac_arg 5461fi 5462rm -f core conftest.err conftest.$ac_objext 5463 test "x$ac_cv_prog_cc_c99" != "xno" && break 5464done 5465rm -f conftest.$ac_ext 5466CC=$ac_save_CC 5467 5468fi 5469# AC_CACHE_VAL 5470case "x$ac_cv_prog_cc_c99" in 5471 x) 5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5473$as_echo "none needed" >&6; } ;; 5474 xno) 5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5476$as_echo "unsupported" >&6; } ;; 5477 *) 5478 CC="$CC $ac_cv_prog_cc_c99" 5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 5480$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 5481esac 5482if test "x$ac_cv_prog_cc_c99" != xno; then : 5483 5484fi 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497# Check for compiler 5498# Needs to be split off into an extra macro to ensure right expansion 5499# order. 5500 5501if test x"$_ax_prog_cc_mpi_mpi_wanted" = xno; then : 5502 _ax_prog_cc_mpi_mpi_found=no 5503else 5504 5505 ac_ext=c 5506ac_cpp='$CPP $CPPFLAGS' 5507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5509ac_compiler_gnu=$ac_cv_c_compiler_gnu 5510 5511 # test whether MPI_Init is available 5512 # We do not use AC_SEARCH_LIBS here, as it caches its outcome and 5513 # thus disallows corresponding calls in the other AX_PROG_*_MPI 5514 # macros. 5515 for lib in NONE mpi mpich; do 5516 save_LIBS=$LIBS 5517 if test x"$lib" = xNONE; then 5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function MPI_Init" >&5 5519$as_echo_n "checking for function MPI_Init... " >&6; } 5520 else 5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function MPI_Init in -l$lib" >&5 5522$as_echo_n "checking for function MPI_Init in -l$lib... " >&6; } 5523 LIBS="-l$lib $LIBS" 5524 fi 5525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5526/* end confdefs.h. */ 5527 5528/* Override any GCC internal prototype to avoid an error. 5529 Use char because int might match the return type of a GCC 5530 builtin and then its argument prototype would still apply. */ 5531#ifdef __cplusplus 5532extern "C" 5533#endif 5534char MPI_Init (); 5535int 5536main () 5537{ 5538return MPI_Init (); 5539 ; 5540 return 0; 5541} 5542_ACEOF 5543if ac_fn_c_try_link "$LINENO"; then : 5544 _ax_prog_cc_mpi_mpi_found=yes 5545else 5546 _ax_prog_cc_mpi_mpi_found=no 5547fi 5548rm -f core conftest.err conftest.$ac_objext \ 5549 conftest$ac_exeext conftest.$ac_ext 5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_ax_prog_cc_mpi_mpi_found" >&5 5551$as_echo "$_ax_prog_cc_mpi_mpi_found" >&6; } 5552 if test "x$_ax_prog_cc_mpi_mpi_found" = "xyes"; then 5553 break; 5554 fi 5555 LIBS=$save_LIBS 5556 done 5557 5558 # Check for header 5559 if test x"$_ax_prog_cc_mpi_mpi_found" = xyes; then : 5560 5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5 5562$as_echo_n "checking for mpi.h... " >&6; } 5563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5564/* end confdefs.h. */ 5565#include <mpi.h> 5566int 5567main () 5568{ 5569 5570 ; 5571 return 0; 5572} 5573_ACEOF 5574if ac_fn_c_try_compile "$LINENO"; then : 5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5576$as_echo "yes" >&6; } 5577else 5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5579$as_echo "no" >&6; } 5580 _ax_prog_cc_mpi_mpi_found=no 5581 5582fi 5583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5584 5585fi 5586 ac_ext=c 5587ac_cpp='$CPP $CPPFLAGS' 5588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5590ac_compiler_gnu=$ac_cv_c_compiler_gnu 5591 5592 5593fi 5594 5595# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 5596if test x"$_ax_prog_cc_mpi_mpi_found" = xyes; then : 5597 5598 5599$as_echo "#define HAVE_MPI 1" >>confdefs.h 5600 5601 : 5602 5603else 5604 5605 5606 if test x"$mpi_wanted_test" = xyes; then 5607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5608$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5609as_fn_error $? "MPI CC compiler requested, but couldn't use it. 5610See \`config.log' for more details" "$LINENO" 5; } 5611 fi 5612 5613 : 5614 5615fi 5616 5617 5618 5619 5620 5621 # Check whether --enable-fortran was given. 5622if test "${enable_fortran+set}" = set; then : 5623 enableval=$enable_fortran; 5624enable_fortran=$enableval 5625 5626else 5627 5628 enable_fortran=yes 5629 5630fi 5631 5632 if test x"$enable_fortran" = xyes ; then 5633 ENABLE_FORTRAN_TRUE= 5634 ENABLE_FORTRAN_FALSE='#' 5635else 5636 ENABLE_FORTRAN_TRUE='#' 5637 ENABLE_FORTRAN_FALSE= 5638fi 5639 5640 test x"$enable_fortran" = xyes && 5641$as_echo "#define MED_HAVE_FORTRAN 1" >>confdefs.h 5642 5643 test ! x"$enable_fortran" = xyes && 5644$as_echo "#define MED_HAVE_FORTRAN 0" >>confdefs.h 5645 5646 5647 5648 5649## Guess where as f90prog is defined by the F90 environement variable 5650## or by the --with-f90 option 5651 5652# Check whether --with-f90 was given. 5653if test "${with_f90+set}" = set; then : 5654 withval=$with_f90; 5655 5656else 5657 with_f90=no 5658 5659fi 5660 5661 5662 5663 5664#We must check if the user want the Fortran interface 5665#before testing a mpi fortran frontend 5666 5667#Pour des raisons historiques prend en compte la variable utilisateur F90 5668test x"$with_f90" = xyes && f90prog=${F90} 5669#La variable f90prog m�morise le choix de compilateur F90 fait par l'utilisateur, mais les variables MPIFC et FC restent proritaires 5670#Ces deux veriables sont utilis�es dans ax__prog__fc__mpi 5671test ! x"$with_f90" = xyes && test ! x"$with_f90" = xno && f90prog=$with_f90 5672#Faut-il lancer la d�tection du compilateur (par d�faut non) 5673med_check_f90="no" 5674#Si l'activation de f90 a �t� explicitement demand�e ou si l'une des variables FC, MPIFC est position�e la d�tection du compilateur doit �tre activ�e 5675(test ! x"$with_f90" = xno||(test x"$with_f90" = xno &&(test ! x"$FC" = x||test ! x"$MPIFC" = x )))&&med_check_f90="yes" 5676#Si l'utilisateur a explicitement demand� de ne pas contruire l'interface Fortran par l'option --enable-fortran=no, il ne faut pas lance la d�tection du compilateur 5677test x"$enable_fortran" = xno && med_check_f90="no" 5678 5679 5680 5681 5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile FC using MPI" >&5 5683$as_echo_n "checking whether to compile FC using MPI... " >&6; } 5684 if test "x$mpi_wanted_test" = "xyes"; then 5685 _ax_prog_fc_mpi_mpi_wanted=yes 5686 else 5687 _ax_prog_fc_mpi_mpi_wanted=no 5688 fi 5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_ax_prog_fc_mpi_mpi_wanted" >&5 5690$as_echo "$_ax_prog_fc_mpi_mpi_wanted" >&6; } 5691 5692 if (test x"$_ax_prog_fc_mpi_mpi_wanted" = xyes && test x"$med_check_f90" = xyes) ; then 5693 if test -z "$FC" && test -z "$f90prog" && test -n "$MPIFC"; then 5694 FC="$MPIFC" 5695 elif test -z "$FC" && test -n "$f90prog"; then 5696 FC="$f90prog" 5697 elif test -z "$FC"; then 5698 if test -n "$ac_tool_prefix"; then 5699 for ac_prog in mpif95 mpxlf95_r mpxlf95 ftn mpif90 mpxlf90_r mpxlf90 mpf90 cmpif90c sxmpif90 mpif77 hf77 mpxlf_r mpxlf mpifrt mpf77 cmpifc xlf95 pgf95 pathf95 ifort g95 f95 fort ifc efc openf95 sunf95 crayftn gfortran lf95 ftn xlf90 f90 pgf90 pghpf pathf90 epcf90 sxf90 openf90 sunf90 xlf f77 frt pgf77 pathf77 g77 cf77 fort77 fl32 af77 5700 do 5701 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5702set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5704$as_echo_n "checking for $ac_word... " >&6; } 5705if ${ac_cv_prog_FC+:} false; then : 5706 $as_echo_n "(cached) " >&6 5707else 5708 if test -n "$FC"; then 5709 ac_cv_prog_FC="$FC" # Let the user override the test. 5710else 5711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5712for as_dir in $PATH 5713do 5714 IFS=$as_save_IFS 5715 test -z "$as_dir" && as_dir=. 5716 for ac_exec_ext in '' $ac_executable_extensions; do 5717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5718 ac_cv_prog_FC="$ac_tool_prefix$ac_prog" 5719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5720 break 2 5721 fi 5722done 5723 done 5724IFS=$as_save_IFS 5725 5726fi 5727fi 5728FC=$ac_cv_prog_FC 5729if test -n "$FC"; then 5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 5731$as_echo "$FC" >&6; } 5732else 5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5734$as_echo "no" >&6; } 5735fi 5736 5737 5738 test -n "$FC" && break 5739 done 5740fi 5741if test -z "$FC"; then 5742 ac_ct_FC=$FC 5743 for ac_prog in mpif95 mpxlf95_r mpxlf95 ftn mpif90 mpxlf90_r mpxlf90 mpf90 cmpif90c sxmpif90 mpif77 hf77 mpxlf_r mpxlf mpifrt mpf77 cmpifc xlf95 pgf95 pathf95 ifort g95 f95 fort ifc efc openf95 sunf95 crayftn gfortran lf95 ftn xlf90 f90 pgf90 pghpf pathf90 epcf90 sxf90 openf90 sunf90 xlf f77 frt pgf77 pathf77 g77 cf77 fort77 fl32 af77 5744do 5745 # Extract the first word of "$ac_prog", so it can be a program name with args. 5746set dummy $ac_prog; ac_word=$2 5747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5748$as_echo_n "checking for $ac_word... " >&6; } 5749if ${ac_cv_prog_ac_ct_FC+:} false; then : 5750 $as_echo_n "(cached) " >&6 5751else 5752 if test -n "$ac_ct_FC"; then 5753 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. 5754else 5755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5756for as_dir in $PATH 5757do 5758 IFS=$as_save_IFS 5759 test -z "$as_dir" && as_dir=. 5760 for ac_exec_ext in '' $ac_executable_extensions; do 5761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5762 ac_cv_prog_ac_ct_FC="$ac_prog" 5763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5764 break 2 5765 fi 5766done 5767 done 5768IFS=$as_save_IFS 5769 5770fi 5771fi 5772ac_ct_FC=$ac_cv_prog_ac_ct_FC 5773if test -n "$ac_ct_FC"; then 5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5 5775$as_echo "$ac_ct_FC" >&6; } 5776else 5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5778$as_echo "no" >&6; } 5779fi 5780 5781 5782 test -n "$ac_ct_FC" && break 5783done 5784 5785 if test "x$ac_ct_FC" = x; then 5786 FC="" 5787 else 5788 case $cross_compiling:$ac_tool_warned in 5789yes:) 5790{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5791$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5792ac_tool_warned=yes ;; 5793esac 5794 FC=$ac_ct_FC 5795 fi 5796fi 5797 5798 fi 5799 fi 5800 5801 5802 5803#echo "---------FC 3-----------------------" 5804 if test -n "${f90prog}"; then : 5805 5806 if test x"$med_check_f90" = xyes; then 5807 ac_ext=${ac_fc_srcext-f} 5808ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 5809ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 5810ac_compiler_gnu=$ac_cv_fc_compiler_gnu 5811if test -n "$ac_tool_prefix"; then 5812 for ac_prog in ${f90prog} 5813 do 5814 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5815set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5817$as_echo_n "checking for $ac_word... " >&6; } 5818if ${ac_cv_prog_FC+:} false; then : 5819 $as_echo_n "(cached) " >&6 5820else 5821 if test -n "$FC"; then 5822 ac_cv_prog_FC="$FC" # Let the user override the test. 5823else 5824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5825for as_dir in $PATH 5826do 5827 IFS=$as_save_IFS 5828 test -z "$as_dir" && as_dir=. 5829 for ac_exec_ext in '' $ac_executable_extensions; do 5830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5831 ac_cv_prog_FC="$ac_tool_prefix$ac_prog" 5832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5833 break 2 5834 fi 5835done 5836 done 5837IFS=$as_save_IFS 5838 5839fi 5840fi 5841FC=$ac_cv_prog_FC 5842if test -n "$FC"; then 5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 5844$as_echo "$FC" >&6; } 5845else 5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5847$as_echo "no" >&6; } 5848fi 5849 5850 5851 test -n "$FC" && break 5852 done 5853fi 5854if test -z "$FC"; then 5855 ac_ct_FC=$FC 5856 for ac_prog in ${f90prog} 5857do 5858 # Extract the first word of "$ac_prog", so it can be a program name with args. 5859set dummy $ac_prog; ac_word=$2 5860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5861$as_echo_n "checking for $ac_word... " >&6; } 5862if ${ac_cv_prog_ac_ct_FC+:} false; then : 5863 $as_echo_n "(cached) " >&6 5864else 5865 if test -n "$ac_ct_FC"; then 5866 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. 5867else 5868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5869for as_dir in $PATH 5870do 5871 IFS=$as_save_IFS 5872 test -z "$as_dir" && as_dir=. 5873 for ac_exec_ext in '' $ac_executable_extensions; do 5874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5875 ac_cv_prog_ac_ct_FC="$ac_prog" 5876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5877 break 2 5878 fi 5879done 5880 done 5881IFS=$as_save_IFS 5882 5883fi 5884fi 5885ac_ct_FC=$ac_cv_prog_ac_ct_FC 5886if test -n "$ac_ct_FC"; then 5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5 5888$as_echo "$ac_ct_FC" >&6; } 5889else 5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5891$as_echo "no" >&6; } 5892fi 5893 5894 5895 test -n "$ac_ct_FC" && break 5896done 5897 5898 if test "x$ac_ct_FC" = x; then 5899 FC="" 5900 else 5901 case $cross_compiling:$ac_tool_warned in 5902yes:) 5903{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5904$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5905ac_tool_warned=yes ;; 5906esac 5907 FC=$ac_ct_FC 5908 fi 5909fi 5910 5911 5912# Provide some information about the compiler. 5913$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5 5914set X $ac_compile 5915ac_compiler=$2 5916for ac_option in --version -v -V -qversion; do 5917 { { ac_try="$ac_compiler $ac_option >&5" 5918case "(($ac_try" in 5919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5920 *) ac_try_echo=$ac_try;; 5921esac 5922eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5923$as_echo "$ac_try_echo"; } >&5 5924 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5925 ac_status=$? 5926 if test -s conftest.err; then 5927 sed '10a\ 5928... rest of stderr output deleted ... 5929 10q' conftest.err >conftest.er1 5930 cat conftest.er1 >&5 5931 fi 5932 rm -f conftest.er1 conftest.err 5933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5934 test $ac_status = 0; } 5935done 5936rm -f a.out 5937 5938# If we don't use `.F' as extension, the preprocessor is not run on the 5939# input file. (Note that this only needs to work for GNU compilers.) 5940ac_save_ext=$ac_ext 5941ac_ext=F 5942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5 5943$as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; } 5944if ${ac_cv_fc_compiler_gnu+:} false; then : 5945 $as_echo_n "(cached) " >&6 5946else 5947 cat > conftest.$ac_ext <<_ACEOF 5948 program main 5949#ifndef __GNUC__ 5950 choke me 5951#endif 5952 5953 end 5954_ACEOF 5955if ac_fn_fc_try_compile "$LINENO"; then : 5956 ac_compiler_gnu=yes 5957else 5958 ac_compiler_gnu=no 5959fi 5960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5961ac_cv_fc_compiler_gnu=$ac_compiler_gnu 5962 5963fi 5964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5 5965$as_echo "$ac_cv_fc_compiler_gnu" >&6; } 5966ac_ext=$ac_save_ext 5967ac_test_FCFLAGS=${FCFLAGS+set} 5968ac_save_FCFLAGS=$FCFLAGS 5969FCFLAGS= 5970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5 5971$as_echo_n "checking whether $FC accepts -g... " >&6; } 5972if ${ac_cv_prog_fc_g+:} false; then : 5973 $as_echo_n "(cached) " >&6 5974else 5975 FCFLAGS=-g 5976cat > conftest.$ac_ext <<_ACEOF 5977 program main 5978 5979 end 5980_ACEOF 5981if ac_fn_fc_try_compile "$LINENO"; then : 5982 ac_cv_prog_fc_g=yes 5983else 5984 ac_cv_prog_fc_g=no 5985fi 5986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5987 5988fi 5989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5 5990$as_echo "$ac_cv_prog_fc_g" >&6; } 5991if test "$ac_test_FCFLAGS" = set; then 5992 FCFLAGS=$ac_save_FCFLAGS 5993elif test $ac_cv_prog_fc_g = yes; then 5994 if test "x$ac_cv_fc_compiler_gnu" = xyes; then 5995 FCFLAGS="-g -O2" 5996 else 5997 FCFLAGS="-g" 5998 fi 5999else 6000 if test "x$ac_cv_fc_compiler_gnu" = xyes; then 6001 FCFLAGS="-O2" 6002 else 6003 FCFLAGS= 6004 fi 6005fi 6006 6007if test $ac_compiler_gnu = yes; then 6008 GFC=yes 6009else 6010 GFC= 6011fi 6012ac_ext=c 6013ac_cpp='$CPP $CPPFLAGS' 6014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6016ac_compiler_gnu=$ac_cv_c_compiler_gnu 6017 6018 fi 6019 6020else 6021 6022 if test x"$med_check_f90" = xyes ; then 6023 ac_ext=${ac_fc_srcext-f} 6024ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 6025ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 6026ac_compiler_gnu=$ac_cv_fc_compiler_gnu 6027if test -n "$ac_tool_prefix"; then 6028 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 6029 do 6030 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6031set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6033$as_echo_n "checking for $ac_word... " >&6; } 6034if ${ac_cv_prog_FC+:} false; then : 6035 $as_echo_n "(cached) " >&6 6036else 6037 if test -n "$FC"; then 6038 ac_cv_prog_FC="$FC" # Let the user override the test. 6039else 6040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6041for as_dir in $PATH 6042do 6043 IFS=$as_save_IFS 6044 test -z "$as_dir" && as_dir=. 6045 for ac_exec_ext in '' $ac_executable_extensions; do 6046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6047 ac_cv_prog_FC="$ac_tool_prefix$ac_prog" 6048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6049 break 2 6050 fi 6051done 6052 done 6053IFS=$as_save_IFS 6054 6055fi 6056fi 6057FC=$ac_cv_prog_FC 6058if test -n "$FC"; then 6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 6060$as_echo "$FC" >&6; } 6061else 6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6063$as_echo "no" >&6; } 6064fi 6065 6066 6067 test -n "$FC" && break 6068 done 6069fi 6070if test -z "$FC"; then 6071 ac_ct_FC=$FC 6072 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 6073do 6074 # Extract the first word of "$ac_prog", so it can be a program name with args. 6075set dummy $ac_prog; ac_word=$2 6076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6077$as_echo_n "checking for $ac_word... " >&6; } 6078if ${ac_cv_prog_ac_ct_FC+:} false; then : 6079 $as_echo_n "(cached) " >&6 6080else 6081 if test -n "$ac_ct_FC"; then 6082 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. 6083else 6084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6085for as_dir in $PATH 6086do 6087 IFS=$as_save_IFS 6088 test -z "$as_dir" && as_dir=. 6089 for ac_exec_ext in '' $ac_executable_extensions; do 6090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6091 ac_cv_prog_ac_ct_FC="$ac_prog" 6092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6093 break 2 6094 fi 6095done 6096 done 6097IFS=$as_save_IFS 6098 6099fi 6100fi 6101ac_ct_FC=$ac_cv_prog_ac_ct_FC 6102if test -n "$ac_ct_FC"; then 6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5 6104$as_echo "$ac_ct_FC" >&6; } 6105else 6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6107$as_echo "no" >&6; } 6108fi 6109 6110 6111 test -n "$ac_ct_FC" && break 6112done 6113 6114 if test "x$ac_ct_FC" = x; then 6115 FC="" 6116 else 6117 case $cross_compiling:$ac_tool_warned in 6118yes:) 6119{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6120$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6121ac_tool_warned=yes ;; 6122esac 6123 FC=$ac_ct_FC 6124 fi 6125fi 6126 6127 6128# Provide some information about the compiler. 6129$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5 6130set X $ac_compile 6131ac_compiler=$2 6132for ac_option in --version -v -V -qversion; do 6133 { { ac_try="$ac_compiler $ac_option >&5" 6134case "(($ac_try" in 6135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6136 *) ac_try_echo=$ac_try;; 6137esac 6138eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6139$as_echo "$ac_try_echo"; } >&5 6140 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 6141 ac_status=$? 6142 if test -s conftest.err; then 6143 sed '10a\ 6144... rest of stderr output deleted ... 6145 10q' conftest.err >conftest.er1 6146 cat conftest.er1 >&5 6147 fi 6148 rm -f conftest.er1 conftest.err 6149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6150 test $ac_status = 0; } 6151done 6152rm -f a.out 6153 6154# If we don't use `.F' as extension, the preprocessor is not run on the 6155# input file. (Note that this only needs to work for GNU compilers.) 6156ac_save_ext=$ac_ext 6157ac_ext=F 6158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5 6159$as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; } 6160if ${ac_cv_fc_compiler_gnu+:} false; then : 6161 $as_echo_n "(cached) " >&6 6162else 6163 cat > conftest.$ac_ext <<_ACEOF 6164 program main 6165#ifndef __GNUC__ 6166 choke me 6167#endif 6168 6169 end 6170_ACEOF 6171if ac_fn_fc_try_compile "$LINENO"; then : 6172 ac_compiler_gnu=yes 6173else 6174 ac_compiler_gnu=no 6175fi 6176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6177ac_cv_fc_compiler_gnu=$ac_compiler_gnu 6178 6179fi 6180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5 6181$as_echo "$ac_cv_fc_compiler_gnu" >&6; } 6182ac_ext=$ac_save_ext 6183ac_test_FCFLAGS=${FCFLAGS+set} 6184ac_save_FCFLAGS=$FCFLAGS 6185FCFLAGS= 6186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5 6187$as_echo_n "checking whether $FC accepts -g... " >&6; } 6188if ${ac_cv_prog_fc_g+:} false; then : 6189 $as_echo_n "(cached) " >&6 6190else 6191 FCFLAGS=-g 6192cat > conftest.$ac_ext <<_ACEOF 6193 program main 6194 6195 end 6196_ACEOF 6197if ac_fn_fc_try_compile "$LINENO"; then : 6198 ac_cv_prog_fc_g=yes 6199else 6200 ac_cv_prog_fc_g=no 6201fi 6202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6203 6204fi 6205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5 6206$as_echo "$ac_cv_prog_fc_g" >&6; } 6207if test "$ac_test_FCFLAGS" = set; then 6208 FCFLAGS=$ac_save_FCFLAGS 6209elif test $ac_cv_prog_fc_g = yes; then 6210 if test "x$ac_cv_fc_compiler_gnu" = xyes; then 6211 FCFLAGS="-g -O2" 6212 else 6213 FCFLAGS="-g" 6214 fi 6215else 6216 if test "x$ac_cv_fc_compiler_gnu" = xyes; then 6217 FCFLAGS="-O2" 6218 else 6219 FCFLAGS= 6220 fi 6221fi 6222 6223if test $ac_compiler_gnu = yes; then 6224 GFC=yes 6225else 6226 GFC= 6227fi 6228ac_ext=c 6229ac_cpp='$CPP $CPPFLAGS' 6230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6232ac_compiler_gnu=$ac_cv_c_compiler_gnu 6233 6234 fi 6235 6236fi 6237#echo "---------FC 4-----------------------" 6238 6239 6240# Make sure we can run config.sub. 6241$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 6242 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 6243 6244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 6245$as_echo_n "checking build system type... " >&6; } 6246if ${ac_cv_build+:} false; then : 6247 $as_echo_n "(cached) " >&6 6248else 6249 ac_build_alias=$build_alias 6250test "x$ac_build_alias" = x && 6251 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 6252test "x$ac_build_alias" = x && 6253 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 6254ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 6255 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 6256 6257fi 6258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 6259$as_echo "$ac_cv_build" >&6; } 6260case $ac_cv_build in 6261*-*-*) ;; 6262*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 6263esac 6264build=$ac_cv_build 6265ac_save_IFS=$IFS; IFS='-' 6266set x $ac_cv_build 6267shift 6268build_cpu=$1 6269build_vendor=$2 6270shift; shift 6271# Remember, the first character of IFS is used to create $*, 6272# except with old shells: 6273build_os=$* 6274IFS=$ac_save_IFS 6275case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 6276 6277 6278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 6279$as_echo_n "checking host system type... " >&6; } 6280if ${ac_cv_host+:} false; then : 6281 $as_echo_n "(cached) " >&6 6282else 6283 if test "x$host_alias" = x; then 6284 ac_cv_host=$ac_cv_build 6285else 6286 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 6287 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 6288fi 6289 6290fi 6291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 6292$as_echo "$ac_cv_host" >&6; } 6293case $ac_cv_host in 6294*-*-*) ;; 6295*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 6296esac 6297host=$ac_cv_host 6298ac_save_IFS=$IFS; IFS='-' 6299set x $ac_cv_host 6300shift 6301host_cpu=$1 6302host_vendor=$2 6303shift; shift 6304# Remember, the first character of IFS is used to create $*, 6305# except with old shells: 6306host_os=$* 6307IFS=$ac_save_IFS 6308case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 6309 6310 6311 6312#The macro for detecting Fortran compilers must not be called before 6313# testing mpi fortran compiler frontend 6314 6315 6316 6317 6318 6319#la macro de d�tection du compilateur f90 cherchera le compilateur s�quentiel si mpi_wanted_test == no 6320#Elle prend en compte les variables f90prog, FC et MPIFC et mpi_wanted_test pour d�finir et tester le compilateur dont le nom sera forc�ment FC en retour (parallel ou s�quentiel) 6321 6322 6323 6324 6325# Check for compiler 6326# Needs to be split off into an extra macro to ensure right expansion 6327# order. 6328 6329 6330test x"$med_check_f90" = xyes && \ 6331if test x"$_ax_prog_fc_mpi_mpi_wanted" = xno; then : 6332 _ax_prog_fc_mpi_mpi_found=no 6333else 6334 6335 ac_ext=${ac_fc_srcext-f} 6336ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 6337ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 6338ac_compiler_gnu=$ac_cv_fc_compiler_gnu 6339 6340 6341 # test whether MPI_INIT is available 6342 # We do not use AC_SEARCH_LIBS here, as it caches its outcome and 6343 # thus disallows corresponding calls in the other AX_PROG_*_MPI 6344 # macros. 6345 for lib in NONE mpichf90 fmpi fmpich; do 6346 save_LIBS=$LIBS 6347 if test x"$lib" = xNONE; then 6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function MPI_INIT" >&5 6349$as_echo_n "checking for function MPI_INIT... " >&6; } 6350 else 6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function MPI_INIT in -l$lib" >&5 6352$as_echo_n "checking for function MPI_INIT in -l$lib... " >&6; } 6353 LIBS="-l$lib $LIBS" 6354 fi 6355 cat > conftest.$ac_ext <<_ACEOF 6356 program main 6357 call MPI_INIT 6358 end 6359_ACEOF 6360if ac_fn_fc_try_link "$LINENO"; then : 6361 _ax_prog_fc_mpi_mpi_found=yes 6362else 6363 _ax_prog_fc_mpi_mpi_found=no 6364fi 6365rm -f core conftest.err conftest.$ac_objext \ 6366 conftest$ac_exeext conftest.$ac_ext 6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_ax_prog_fc_mpi_mpi_found" >&5 6368$as_echo "$_ax_prog_fc_mpi_mpi_found" >&6; } 6369 if test "x$_ax_prog_fc_mpi_mpi_found" = "xyes"; then 6370 break; 6371 fi 6372 LIBS=$save_LIBS 6373 done 6374 6375 # Check for header 6376 if test x"$_ax_prog_fc_mpi_mpi_found" = xyes; then : 6377 6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpif.h" >&5 6379$as_echo_n "checking for mpif.h... " >&6; } 6380 cat > conftest.$ac_ext <<_ACEOF 6381 program main 6382 6383 include 'mpif.h' 6384 6385 end 6386_ACEOF 6387if ac_fn_fc_try_compile "$LINENO"; then : 6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6389$as_echo "yes" >&6; } 6390else 6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6392$as_echo "no" >&6; } 6393 _ax_prog_fc_mpi_mpi_found=no 6394 6395fi 6396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6397 6398fi 6399 ac_ext=c 6400ac_cpp='$CPP $CPPFLAGS' 6401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6403ac_compiler_gnu=$ac_cv_c_compiler_gnu 6404 6405 6406fi 6407 6408# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 6409if test x"$_ax_prog_fc_mpi_mpi_found" = xyes; then : 6410 6411 6412$as_echo "#define HAVE_MPI 1" >>confdefs.h 6413 6414 : 6415 6416else 6417 6418 6419 if test x"$mpi_wanted_test" = xyes && test x"$med_check_f90" = xyes ; then 6420 as_fn_error $? "MPI F90 compiler requested, but couldn't use MPI." "$LINENO" 5 6421 fi 6422 6423 : 6424 6425fi 6426 6427 6428#Si aucun compilateur n'a �t� trouv� et que le F90 est requis, on g�n�re une erreur 6429 test x"$FC" = x && test x"$med_check_f90" = xyes && as_fn_error $? "Can't find a valid FC compiler, check your configure switches or the FC var..." "$LINENO" 5 6430 6431 6432if test x"$FC" != x && test x"$med_check_f90" = xyes ; then : 6433 6434#Le compilateur FC �tant d�fini, on positionne maintenant les LDFLAGS 6435 ac_ext=${ac_fc_srcext-f} 6436ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 6437ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 6438ac_compiler_gnu=$ac_cv_fc_compiler_gnu 6439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $FC" >&5 6440$as_echo_n "checking how to get verbose linking output from $FC... " >&6; } 6441if ${ac_cv_prog_fc_v+:} false; then : 6442 $as_echo_n "(cached) " >&6 6443else 6444 cat > conftest.$ac_ext <<_ACEOF 6445 program main 6446 6447 end 6448_ACEOF 6449if ac_fn_fc_try_compile "$LINENO"; then : 6450 ac_cv_prog_fc_v= 6451# Try some options frequently used verbose output 6452for ac_verb in -v -verbose --verbose -V -\#\#\#; do 6453 cat > conftest.$ac_ext <<_ACEOF 6454 program main 6455 6456 end 6457_ACEOF 6458 6459# Compile and link our simple test program by passing a flag (argument 6460# 1 to this macro) to the Fortran compiler in order to get 6461# "verbose" output that we can then parse for the Fortran linker 6462# flags. 6463ac_save_FCFLAGS=$FCFLAGS 6464FCFLAGS="$FCFLAGS $ac_verb" 6465eval "set x $ac_link" 6466shift 6467$as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5 6468# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH, 6469# LIBRARY_PATH; skip all such settings. 6470ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | 6471 sed '/^Driving:/d; /^Configured with:/d; 6472 '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"` 6473$as_echo "$ac_fc_v_output" >&5 6474FCFLAGS=$ac_save_FCFLAGS 6475 6476rm -rf conftest* 6477 6478# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where 6479# /foo, /bar, and /baz are search directories for the Fortran linker. 6480# Here, we change these into -L/foo -L/bar -L/baz (and put it first): 6481ac_fc_v_output="`echo $ac_fc_v_output | 6482 grep 'LPATH is:' | 6483 sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output" 6484 6485# FIXME: we keep getting bitten by quoted arguments; a more general fix 6486# that detects unbalanced quotes in FLIBS should be implemented 6487# and (ugh) tested at some point. 6488case $ac_fc_v_output in 6489 # With xlf replace commas with spaces, 6490 # and remove "-link" and closing parenthesis. 6491 *xlfentry*) 6492 ac_fc_v_output=`echo $ac_fc_v_output | 6493 sed ' 6494 s/,/ /g 6495 s/ -link / /g 6496 s/) *$// 6497 ' 6498 ` ;; 6499 6500 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted 6501 # $LIBS confuse us, and the libraries appear later in the output anyway). 6502 *mGLOB_options_string*) 6503 ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;; 6504 6505 # Portland Group compiler has singly- or doubly-quoted -cmdline argument 6506 # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4. 6507 # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2". 6508 *-cmdline\ * | *-ignore\ * | *-def\ *) 6509 ac_fc_v_output=`echo $ac_fc_v_output | sed "\ 6510 s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g 6511 s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g 6512 s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;; 6513 6514 # If we are using fort77 (the f2c wrapper) then filter output and delete quotes. 6515 *fort77*f2c*gcc*) 6516 ac_fc_v_output=`echo "$ac_fc_v_output" | sed -n ' 6517 /:[ ]\+Running[ ]\{1,\}"gcc"/{ 6518 /"-c"/d 6519 /[.]c"*/d 6520 s/^.*"gcc"/"gcc"/ 6521 s/"//gp 6522 }'` ;; 6523 6524 # If we are using Cray Fortran then delete quotes. 6525 *cft90*) 6526 ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;; 6527esac 6528 6529 6530 # look for -l* and *.a constructs in the output 6531 for ac_arg in $ac_fc_v_output; do 6532 case $ac_arg in 6533 [\\/]*.a | ?:[\\/]*.a | -[lLRu]*) 6534 ac_cv_prog_fc_v=$ac_verb 6535 break 2 ;; 6536 esac 6537 done 6538done 6539if test -z "$ac_cv_prog_fc_v"; then 6540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $FC" >&5 6541$as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $FC" >&2;} 6542fi 6543else 6544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5 6545$as_echo "$as_me: WARNING: compilation failed" >&2;} 6546fi 6547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6548 6549fi 6550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_v" >&5 6551$as_echo "$ac_cv_prog_fc_v" >&6; } 6552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran libraries of $FC" >&5 6553$as_echo_n "checking for Fortran libraries of $FC... " >&6; } 6554if ${ac_cv_fc_libs+:} false; then : 6555 $as_echo_n "(cached) " >&6 6556else 6557 if test "x$FCLIBS" != "x"; then 6558 ac_cv_fc_libs="$FCLIBS" # Let the user override the test. 6559else 6560 6561cat > conftest.$ac_ext <<_ACEOF 6562 program main 6563 6564 end 6565_ACEOF 6566 6567# Compile and link our simple test program by passing a flag (argument 6568# 1 to this macro) to the Fortran compiler in order to get 6569# "verbose" output that we can then parse for the Fortran linker 6570# flags. 6571ac_save_FCFLAGS=$FCFLAGS 6572FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v" 6573eval "set x $ac_link" 6574shift 6575$as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5 6576# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH, 6577# LIBRARY_PATH; skip all such settings. 6578ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | 6579 sed '/^Driving:/d; /^Configured with:/d; 6580 '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"` 6581$as_echo "$ac_fc_v_output" >&5 6582FCFLAGS=$ac_save_FCFLAGS 6583 6584rm -rf conftest* 6585 6586# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where 6587# /foo, /bar, and /baz are search directories for the Fortran linker. 6588# Here, we change these into -L/foo -L/bar -L/baz (and put it first): 6589ac_fc_v_output="`echo $ac_fc_v_output | 6590 grep 'LPATH is:' | 6591 sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output" 6592 6593# FIXME: we keep getting bitten by quoted arguments; a more general fix 6594# that detects unbalanced quotes in FLIBS should be implemented 6595# and (ugh) tested at some point. 6596case $ac_fc_v_output in 6597 # With xlf replace commas with spaces, 6598 # and remove "-link" and closing parenthesis. 6599 *xlfentry*) 6600 ac_fc_v_output=`echo $ac_fc_v_output | 6601 sed ' 6602 s/,/ /g 6603 s/ -link / /g 6604 s/) *$// 6605 ' 6606 ` ;; 6607 6608 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted 6609 # $LIBS confuse us, and the libraries appear later in the output anyway). 6610 *mGLOB_options_string*) 6611 ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;; 6612 6613 # Portland Group compiler has singly- or doubly-quoted -cmdline argument 6614 # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4. 6615 # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2". 6616 *-cmdline\ * | *-ignore\ * | *-def\ *) 6617 ac_fc_v_output=`echo $ac_fc_v_output | sed "\ 6618 s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g 6619 s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g 6620 s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;; 6621 6622 # If we are using fort77 (the f2c wrapper) then filter output and delete quotes. 6623 *fort77*f2c*gcc*) 6624 ac_fc_v_output=`echo "$ac_fc_v_output" | sed -n ' 6625 /:[ ]\+Running[ ]\{1,\}"gcc"/{ 6626 /"-c"/d 6627 /[.]c"*/d 6628 s/^.*"gcc"/"gcc"/ 6629 s/"//gp 6630 }'` ;; 6631 6632 # If we are using Cray Fortran then delete quotes. 6633 *cft90*) 6634 ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;; 6635esac 6636 6637 6638 6639ac_cv_fc_libs= 6640 6641# Save positional arguments (if any) 6642ac_save_positional="$@" 6643 6644set X $ac_fc_v_output 6645while test $# != 1; do 6646 shift 6647 ac_arg=$1 6648 case $ac_arg in 6649 [\\/]*.a | ?:[\\/]*.a) 6650 ac_exists=false 6651 for ac_i in $ac_cv_fc_libs; do 6652 if test x"$ac_arg" = x"$ac_i"; then 6653 ac_exists=true 6654 break 6655 fi 6656 done 6657 6658 if test x"$ac_exists" = xtrue; then : 6659 6660else 6661 ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" 6662fi 6663 ;; 6664 -bI:*) 6665 ac_exists=false 6666 for ac_i in $ac_cv_fc_libs; do 6667 if test x"$ac_arg" = x"$ac_i"; then 6668 ac_exists=true 6669 break 6670 fi 6671 done 6672 6673 if test x"$ac_exists" = xtrue; then : 6674 6675else 6676 if test "$ac_compiler_gnu" = yes; then 6677 for ac_link_opt in $ac_arg; do 6678 ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt" 6679 done 6680else 6681 ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" 6682fi 6683fi 6684 ;; 6685 # Ignore these flags. 6686 -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \ 6687 |-LANG:=* | -LIST:* | -LNO:* | -link) 6688 ;; 6689 -lkernel32) 6690 case $host_os in 6691 *cygwin*) ;; 6692 *) ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" 6693 ;; 6694 esac 6695 ;; 6696 -[LRuYz]) 6697 # These flags, when seen by themselves, take an argument. 6698 # We remove the space between option and argument and re-iterate 6699 # unless we find an empty arg or a new option (starting with -) 6700 case $2 in 6701 "" | -*);; 6702 *) 6703 ac_arg="$ac_arg$2" 6704 shift; shift 6705 set X $ac_arg "$@" 6706 ;; 6707 esac 6708 ;; 6709 -YP,*) 6710 for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do 6711 ac_exists=false 6712 for ac_i in $ac_cv_fc_libs; do 6713 if test x"$ac_j" = x"$ac_i"; then 6714 ac_exists=true 6715 break 6716 fi 6717 done 6718 6719 if test x"$ac_exists" = xtrue; then : 6720 6721else 6722 ac_arg="$ac_arg $ac_j" 6723 ac_cv_fc_libs="$ac_cv_fc_libs $ac_j" 6724fi 6725 done 6726 ;; 6727 -[lLR]*) 6728 ac_exists=false 6729 for ac_i in $ac_cv_fc_libs; do 6730 if test x"$ac_arg" = x"$ac_i"; then 6731 ac_exists=true 6732 break 6733 fi 6734 done 6735 6736 if test x"$ac_exists" = xtrue; then : 6737 6738else 6739 ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" 6740fi 6741 ;; 6742 -zallextract*| -zdefaultextract) 6743 ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" 6744 ;; 6745 # Ignore everything else. 6746 esac 6747done 6748# restore positional arguments 6749set X $ac_save_positional; shift 6750 6751# We only consider "LD_RUN_PATH" on Solaris systems. If this is seen, 6752# then we insist that the "run path" must be an absolute path (i.e. it 6753# must begin with a "/"). 6754case `(uname -sr) 2>/dev/null` in 6755 "SunOS 5"*) 6756 ac_ld_run_path=`$as_echo "$ac_fc_v_output" | 6757 sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'` 6758 test "x$ac_ld_run_path" != x && 6759 if test "$ac_compiler_gnu" = yes; then 6760 for ac_link_opt in $ac_ld_run_path; do 6761 ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt" 6762 done 6763else 6764 ac_cv_fc_libs="$ac_cv_fc_libs $ac_ld_run_path" 6765fi 6766 ;; 6767esac 6768fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x" 6769 6770fi 6771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_libs" >&5 6772$as_echo "$ac_cv_fc_libs" >&6; } 6773FCLIBS="$ac_cv_fc_libs" 6774 6775 6776ac_ext=c 6777ac_cpp='$CPP $CPPFLAGS' 6778ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6779ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6780ac_compiler_gnu=$ac_cv_c_compiler_gnu 6781 6782 ##AC_FC_WRAPPERS Inutile car pas d'interface sp�cifique f90 6783 6784# Ce test semble obsol�te : A v�rifier. 6785 if test -z "$FC" ; then 6786 as_fn_error $? "Can't find $f90prog command, please verify your env. var. PATH" "$LINENO" 5 6787 fi 6788 6789#Si HDF5 n'est pas parallel, la macro ax__prog__fc__mpi n'a pas test� de compilation en F90 6790if test x"$mpi_wanted_test" = xno; then 6791 ac_ext=${ac_fc_srcext-f} 6792ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 6793ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 6794ac_compiler_gnu=$ac_cv_fc_compiler_gnu 6795 6796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking a F90 compilation" >&5 6797$as_echo_n "checking a F90 compilation... " >&6; } 6798 cat > conftest.$ac_ext <<_ACEOF 6799 program main 6800 6801 print *,"Testing a F90 compilation..." 6802 6803 end 6804_ACEOF 6805if ac_fn_fc_try_compile "$LINENO"; then : 6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6807$as_echo "ok" >&6; } 6808else 6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ko" >&5 6810$as_echo "ko" >&6; } 6811 as_fn_error $? "Can't find a valid FC compiler, check your configure switches or the FC var..." "$LINENO" 5 6812 6813 6814fi 6815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6816 ac_ext=c 6817ac_cpp='$CPP $CPPFLAGS' 6818ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6819ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6820ac_compiler_gnu=$ac_cv_c_compiler_gnu 6821 6822fi 6823 6824#Test la capacit� du compilateur F90 a g�rer le pr�-processing 6825 ac_ext=${ac_fc_srcext-f} 6826ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 6827ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 6828ac_compiler_gnu=$ac_cv_fc_compiler_gnu 6829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran flag to compile preprocessed .F90 files" >&5 6830$as_echo_n "checking for Fortran flag to compile preprocessed .F90 files... " >&6; } 6831if ${ac_cv_fc_pp_srcext_F90+:} false; then : 6832 $as_echo_n "(cached) " >&6 6833else 6834 ac_ext=F90 6835ac_fcflags_pp_srcext_save=$ac_fcflags_srcext 6836ac_fcflags_srcext= 6837ac_cv_fc_pp_srcext_F90=unknown 6838case $ac_ext in #( 6839 [fF]77) ac_try=f77-cpp-input;; #( 6840 *) ac_try=f95-cpp-input;; 6841esac 6842for ac_flag in none -ftpp -fpp -Tf "-fpp -Tf" -xpp=fpp -Mpreprocess "-e Z" \ 6843 -cpp -xpp=cpp -qsuffix=cpp=F90 "-x $ac_try" +cpp -Cpp; do 6844 test "x$ac_flag" != xnone && ac_fcflags_srcext="$ac_flag" 6845 cat > conftest.$ac_ext <<_ACEOF 6846 program main 6847 6848#if 0 6849#include <ac_nonexistent.h> 6850 choke me 6851#endif 6852 end 6853_ACEOF 6854if ac_fn_fc_try_compile "$LINENO"; then : 6855 cat > conftest.$ac_ext <<_ACEOF 6856 program main 6857 6858#if 1 6859#include <ac_nonexistent.h> 6860 choke me 6861#endif 6862 end 6863_ACEOF 6864if ac_fn_fc_try_compile "$LINENO"; then : 6865 6866else 6867 ac_cv_fc_pp_srcext_F90=$ac_flag; break 6868fi 6869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6870fi 6871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6872done 6873rm -f conftest.$ac_objext conftest.F90 6874ac_fcflags_srcext=$ac_fcflags_pp_srcext_save 6875 6876fi 6877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_pp_srcext_F90" >&5 6878$as_echo "$ac_cv_fc_pp_srcext_F90" >&6; } 6879if test "x$ac_cv_fc_pp_srcext_F90" = xunknown; then 6880 if false; then 6881 WITHFCPP_TRUE= 6882 WITHFCPP_FALSE='#' 6883else 6884 WITHFCPP_TRUE='#' 6885 WITHFCPP_FALSE= 6886fi 6887 6888 6889else 6890 ac_fc_srcext=F90 6891 if test "x$ac_cv_fc_pp_srcext_F90" = xnone; then 6892 ac_fcflags_srcext="" 6893 FCFLAGS_F90="" 6894 else 6895 ac_fcflags_srcext=$ac_cv_fc_pp_srcext_F90 6896 FCFLAGS_F90=$ac_cv_fc_pp_srcext_F90 6897 fi 6898 6899 ac_ext=${ac_fc_srcext-f} 6900ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 6901ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 6902ac_compiler_gnu=$ac_cv_fc_compiler_gnu 6903ac_fc_pp_define_srcext_save=$ac_fc_srcext 6904ac_ext=${ac_fc_srcext-f} 6905ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 6906ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 6907ac_compiler_gnu=$ac_cv_fc_compiler_gnu 6908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran flag to compile preprocessed .F files" >&5 6909$as_echo_n "checking for Fortran flag to compile preprocessed .F files... " >&6; } 6910if ${ac_cv_fc_pp_srcext_F+:} false; then : 6911 $as_echo_n "(cached) " >&6 6912else 6913 ac_ext=F 6914ac_fcflags_pp_srcext_save=$ac_fcflags_srcext 6915ac_fcflags_srcext= 6916ac_cv_fc_pp_srcext_F=unknown 6917case $ac_ext in #( 6918 [fF]77) ac_try=f77-cpp-input;; #( 6919 *) ac_try=f95-cpp-input;; 6920esac 6921for ac_flag in none -ftpp -fpp -Tf "-fpp -Tf" -xpp=fpp -Mpreprocess "-e Z" \ 6922 -cpp -xpp=cpp -qsuffix=cpp=F "-x $ac_try" +cpp -Cpp; do 6923 test "x$ac_flag" != xnone && ac_fcflags_srcext="$ac_flag" 6924 cat > conftest.$ac_ext <<_ACEOF 6925 program main 6926 6927#if 0 6928#include <ac_nonexistent.h> 6929 choke me 6930#endif 6931 end 6932_ACEOF 6933if ac_fn_fc_try_compile "$LINENO"; then : 6934 cat > conftest.$ac_ext <<_ACEOF 6935 program main 6936 6937#if 1 6938#include <ac_nonexistent.h> 6939 choke me 6940#endif 6941 end 6942_ACEOF 6943if ac_fn_fc_try_compile "$LINENO"; then : 6944 6945else 6946 ac_cv_fc_pp_srcext_F=$ac_flag; break 6947fi 6948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6949fi 6950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6951done 6952rm -f conftest.$ac_objext conftest.F 6953ac_fcflags_srcext=$ac_fcflags_pp_srcext_save 6954 6955fi 6956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_pp_srcext_F" >&5 6957$as_echo "$ac_cv_fc_pp_srcext_F" >&6; } 6958if test "x$ac_cv_fc_pp_srcext_F" = xunknown; then 6959 as_fn_error $? "Fortran could not compile preprocessed .F files" "$LINENO" 5 6960else 6961 ac_fc_srcext=F 6962 if test "x$ac_cv_fc_pp_srcext_F" = xnone; then 6963 ac_fcflags_srcext="" 6964 FCFLAGS_F="" 6965 else 6966 ac_fcflags_srcext=$ac_cv_fc_pp_srcext_F 6967 FCFLAGS_F=$ac_cv_fc_pp_srcext_F 6968 fi 6969 6970 6971fi 6972ac_ext=${ac_fc_srcext-f} 6973ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 6974ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 6975ac_compiler_gnu=$ac_cv_fc_compiler_gnu 6976 6977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define symbols for preprocessed Fortran" >&5 6978$as_echo_n "checking how to define symbols for preprocessed Fortran... " >&6; } 6979if ${ac_cv_fc_pp_define+:} false; then : 6980 $as_echo_n "(cached) " >&6 6981else 6982 ac_fc_pp_define_srcext_save=$ac_fc_srcext 6983ac_cv_fc_pp_define=unknown 6984ac_fc_pp_define_FCFLAGS_save=$FCFLAGS 6985for ac_flag in -D -WF,-D -Wp,-D -Wc,-D 6986do 6987 FCFLAGS="$ac_fc_pp_define_FCFLAGS_save ${ac_flag}FOOBAR ${ac_flag}ZORK=42" 6988 cat > conftest.$ac_ext <<_ACEOF 6989 program main 6990 6991#ifndef FOOBAR 6992 choke me 6993#endif 6994#if ZORK != 42 6995 choke me 6996#endif 6997 end 6998_ACEOF 6999if ac_fn_fc_try_compile "$LINENO"; then : 7000 ac_cv_fc_pp_define=$ac_flag 7001fi 7002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7003 test x"$ac_cv_fc_pp_define" != xunknown && break 7004done 7005FCFLAGS=$ac_fc_pp_define_FCFLAGS_save 7006 7007fi 7008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_pp_define" >&5 7009$as_echo "$ac_cv_fc_pp_define" >&6; } 7010ac_fc_srcext=$ac_fc_pp_define_srcext_save 7011if test "x$ac_cv_fc_pp_define" = xunknown; then 7012 FC_DEFINE= 7013 if false; then 7014 WITHFCPP_TRUE= 7015 WITHFCPP_FALSE='#' 7016else 7017 WITHFCPP_TRUE='#' 7018 WITHFCPP_FALSE= 7019fi 7020 7021else 7022 FC_DEFINE=$ac_cv_fc_pp_define 7023 if true; then 7024 WITHFCPP_TRUE= 7025 WITHFCPP_FALSE='#' 7026else 7027 WITHFCPP_TRUE='#' 7028 WITHFCPP_FALSE= 7029fi 7030 7031fi 7032ac_ext=${ac_fc_srcext-f} 7033ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 7034ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 7035ac_compiler_gnu=$ac_cv_fc_compiler_gnu 7036 7037 7038fi 7039ac_ext=c 7040ac_cpp='$CPP $CPPFLAGS' 7041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7043ac_compiler_gnu=$ac_cv_c_compiler_gnu 7044 7045 7046# Pour l'affichage du Summary 7047 BUILD_F90TESTS_CONDITIONAL_TRUE= 7048 BUILD_F90TESTS_CONDITIONAL_FALSE='#' 7049 7050else 7051 7052 FC="" 7053# Pour l'affichage du Summary 7054 BUILD_F90TESTS_CONDITIONAL_TRUE='#' 7055 BUILD_F90TESTS_CONDITIONAL_FALSE= 7056 if false; then 7057 WITHFCPP_TRUE= 7058 WITHFCPP_FALSE='#' 7059else 7060 WITHFCPP_TRUE='#' 7061 WITHFCPP_FALSE= 7062fi 7063 7064 7065 7066fi 7067 7068 7069 7070 7071 7072 7073 7074#We must check if the user want the Fortran interface 7075#before testing a mpi fortran frontend 7076#On devrait pouvoir le désactiver ici car il a été 7077#requis ds le check f90 7078 7079 7080#The parallel fortran test must have a f90 compiler if fortran interface is activated 7081 7082 7083if test "x$mpi_wanted_test" = "xyes" 7084then 7085 if true ; then 7086 WITHPMED_TRUE= 7087 WITHPMED_FALSE='#' 7088else 7089 WITHPMED_TRUE='#' 7090 WITHPMED_FALSE= 7091fi 7092 7093 7094#Mécanisme pour exporter le #define MED_HAVE_MPI 7095#dans med.h.in et non dans med_config.h.in 7096 MED_DEFINE_MED_HAVE_MPI="#define MED_HAVE_MPI" 7097 BUILD_WITH_PMED="yes" 7098else 7099 BUILD_WITH_PMED="no" 7100 { $as_echo "$as_me:${as_lineno-$LINENO}: HDF version is not a parallel one." >&5 7101$as_echo "$as_me: HDF version is not a parallel one." >&6;} 7102 if false ; then 7103 WITHPMED_TRUE= 7104 WITHPMED_FALSE='#' 7105else 7106 WITHPMED_TRUE='#' 7107 WITHPMED_FALSE= 7108fi 7109 7110fi 7111 7112 7113 7114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 7115$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 7116if ${ac_cv_path_GREP+:} false; then : 7117 $as_echo_n "(cached) " >&6 7118else 7119 if test -z "$GREP"; then 7120 ac_path_GREP_found=false 7121 # Loop through the user's path and test for each of PROGNAME-LIST 7122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7123for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7124do 7125 IFS=$as_save_IFS 7126 test -z "$as_dir" && as_dir=. 7127 for ac_prog in grep ggrep; do 7128 for ac_exec_ext in '' $ac_executable_extensions; do 7129 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 7130 as_fn_executable_p "$ac_path_GREP" || continue 7131# Check for GNU ac_path_GREP and select it if it is found. 7132 # Check for GNU $ac_path_GREP 7133case `"$ac_path_GREP" --version 2>&1` in 7134*GNU*) 7135 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 7136*) 7137 ac_count=0 7138 $as_echo_n 0123456789 >"conftest.in" 7139 while : 7140 do 7141 cat "conftest.in" "conftest.in" >"conftest.tmp" 7142 mv "conftest.tmp" "conftest.in" 7143 cp "conftest.in" "conftest.nl" 7144 $as_echo 'GREP' >> "conftest.nl" 7145 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 7146 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7147 as_fn_arith $ac_count + 1 && ac_count=$as_val 7148 if test $ac_count -gt ${ac_path_GREP_max-0}; then 7149 # Best one so far, save it but keep looking for a better one 7150 ac_cv_path_GREP="$ac_path_GREP" 7151 ac_path_GREP_max=$ac_count 7152 fi 7153 # 10*(2^10) chars as input seems more than enough 7154 test $ac_count -gt 10 && break 7155 done 7156 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7157esac 7158 7159 $ac_path_GREP_found && break 3 7160 done 7161 done 7162 done 7163IFS=$as_save_IFS 7164 if test -z "$ac_cv_path_GREP"; then 7165 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7166 fi 7167else 7168 ac_cv_path_GREP=$GREP 7169fi 7170 7171fi 7172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 7173$as_echo "$ac_cv_path_GREP" >&6; } 7174 GREP="$ac_cv_path_GREP" 7175 7176 7177ac_ext=c 7178ac_cpp='$CPP $CPPFLAGS' 7179ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7180ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7181ac_compiler_gnu=$ac_cv_c_compiler_gnu 7182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7183$as_echo_n "checking how to run the C preprocessor... " >&6; } 7184# On Suns, sometimes $CPP names a directory. 7185if test -n "$CPP" && test -d "$CPP"; then 7186 CPP= 7187fi 7188if test -z "$CPP"; then 7189 if ${ac_cv_prog_CPP+:} false; then : 7190 $as_echo_n "(cached) " >&6 7191else 7192 # Double quotes because CPP needs to be expanded 7193 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7194 do 7195 ac_preproc_ok=false 7196for ac_c_preproc_warn_flag in '' yes 7197do 7198 # Use a header file that comes with gcc, so configuring glibc 7199 # with a fresh cross-compiler works. 7200 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7201 # <limits.h> exists even on freestanding compilers. 7202 # On the NeXT, cc -E runs the code through the compiler's parser, 7203 # not just through cpp. "Syntax error" is here to catch this case. 7204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7205/* end confdefs.h. */ 7206#ifdef __STDC__ 7207# include <limits.h> 7208#else 7209# include <assert.h> 7210#endif 7211 Syntax error 7212_ACEOF 7213if ac_fn_c_try_cpp "$LINENO"; then : 7214 7215else 7216 # Broken: fails on valid input. 7217continue 7218fi 7219rm -f conftest.err conftest.i conftest.$ac_ext 7220 7221 # OK, works on sane cases. Now check whether nonexistent headers 7222 # can be detected and how. 7223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7224/* end confdefs.h. */ 7225#include <ac_nonexistent.h> 7226_ACEOF 7227if ac_fn_c_try_cpp "$LINENO"; then : 7228 # Broken: success on invalid input. 7229continue 7230else 7231 # Passes both tests. 7232ac_preproc_ok=: 7233break 7234fi 7235rm -f conftest.err conftest.i conftest.$ac_ext 7236 7237done 7238# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7239rm -f conftest.i conftest.err conftest.$ac_ext 7240if $ac_preproc_ok; then : 7241 break 7242fi 7243 7244 done 7245 ac_cv_prog_CPP=$CPP 7246 7247fi 7248 CPP=$ac_cv_prog_CPP 7249else 7250 ac_cv_prog_CPP=$CPP 7251fi 7252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7253$as_echo "$CPP" >&6; } 7254ac_preproc_ok=false 7255for ac_c_preproc_warn_flag in '' yes 7256do 7257 # Use a header file that comes with gcc, so configuring glibc 7258 # with a fresh cross-compiler works. 7259 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7260 # <limits.h> exists even on freestanding compilers. 7261 # On the NeXT, cc -E runs the code through the compiler's parser, 7262 # not just through cpp. "Syntax error" is here to catch this case. 7263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7264/* end confdefs.h. */ 7265#ifdef __STDC__ 7266# include <limits.h> 7267#else 7268# include <assert.h> 7269#endif 7270 Syntax error 7271_ACEOF 7272if ac_fn_c_try_cpp "$LINENO"; then : 7273 7274else 7275 # Broken: fails on valid input. 7276continue 7277fi 7278rm -f conftest.err conftest.i conftest.$ac_ext 7279 7280 # OK, works on sane cases. Now check whether nonexistent headers 7281 # can be detected and how. 7282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7283/* end confdefs.h. */ 7284#include <ac_nonexistent.h> 7285_ACEOF 7286if ac_fn_c_try_cpp "$LINENO"; then : 7287 # Broken: success on invalid input. 7288continue 7289else 7290 # Passes both tests. 7291ac_preproc_ok=: 7292break 7293fi 7294rm -f conftest.err conftest.i conftest.$ac_ext 7295 7296done 7297# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7298rm -f conftest.i conftest.err conftest.$ac_ext 7299if $ac_preproc_ok; then : 7300 7301else 7302 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7303$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7304as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7305See \`config.log' for more details" "$LINENO" 5; } 7306fi 7307 7308ac_ext=c 7309ac_cpp='$CPP $CPPFLAGS' 7310ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7311ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7312ac_compiler_gnu=$ac_cv_c_compiler_gnu 7313 7314 7315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 7316$as_echo_n "checking for egrep... " >&6; } 7317if ${ac_cv_path_EGREP+:} false; then : 7318 $as_echo_n "(cached) " >&6 7319else 7320 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 7321 then ac_cv_path_EGREP="$GREP -E" 7322 else 7323 if test -z "$EGREP"; then 7324 ac_path_EGREP_found=false 7325 # Loop through the user's path and test for each of PROGNAME-LIST 7326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7327for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7328do 7329 IFS=$as_save_IFS 7330 test -z "$as_dir" && as_dir=. 7331 for ac_prog in egrep; do 7332 for ac_exec_ext in '' $ac_executable_extensions; do 7333 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 7334 as_fn_executable_p "$ac_path_EGREP" || continue 7335# Check for GNU ac_path_EGREP and select it if it is found. 7336 # Check for GNU $ac_path_EGREP 7337case `"$ac_path_EGREP" --version 2>&1` in 7338*GNU*) 7339 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 7340*) 7341 ac_count=0 7342 $as_echo_n 0123456789 >"conftest.in" 7343 while : 7344 do 7345 cat "conftest.in" "conftest.in" >"conftest.tmp" 7346 mv "conftest.tmp" "conftest.in" 7347 cp "conftest.in" "conftest.nl" 7348 $as_echo 'EGREP' >> "conftest.nl" 7349 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 7350 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7351 as_fn_arith $ac_count + 1 && ac_count=$as_val 7352 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 7353 # Best one so far, save it but keep looking for a better one 7354 ac_cv_path_EGREP="$ac_path_EGREP" 7355 ac_path_EGREP_max=$ac_count 7356 fi 7357 # 10*(2^10) chars as input seems more than enough 7358 test $ac_count -gt 10 && break 7359 done 7360 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7361esac 7362 7363 $ac_path_EGREP_found && break 3 7364 done 7365 done 7366 done 7367IFS=$as_save_IFS 7368 if test -z "$ac_cv_path_EGREP"; then 7369 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7370 fi 7371else 7372 ac_cv_path_EGREP=$EGREP 7373fi 7374 7375 fi 7376fi 7377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 7378$as_echo "$ac_cv_path_EGREP" >&6; } 7379 EGREP="$ac_cv_path_EGREP" 7380 7381 7382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7383$as_echo_n "checking for ANSI C header files... " >&6; } 7384if ${ac_cv_header_stdc+:} false; then : 7385 $as_echo_n "(cached) " >&6 7386else 7387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7388/* end confdefs.h. */ 7389#include <stdlib.h> 7390#include <stdarg.h> 7391#include <string.h> 7392#include <float.h> 7393 7394int 7395main () 7396{ 7397 7398 ; 7399 return 0; 7400} 7401_ACEOF 7402if ac_fn_c_try_compile "$LINENO"; then : 7403 ac_cv_header_stdc=yes 7404else 7405 ac_cv_header_stdc=no 7406fi 7407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7408 7409if test $ac_cv_header_stdc = yes; then 7410 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7412/* end confdefs.h. */ 7413#include <string.h> 7414 7415_ACEOF 7416if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7417 $EGREP "memchr" >/dev/null 2>&1; then : 7418 7419else 7420 ac_cv_header_stdc=no 7421fi 7422rm -f conftest* 7423 7424fi 7425 7426if test $ac_cv_header_stdc = yes; then 7427 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7429/* end confdefs.h. */ 7430#include <stdlib.h> 7431 7432_ACEOF 7433if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7434 $EGREP "free" >/dev/null 2>&1; then : 7435 7436else 7437 ac_cv_header_stdc=no 7438fi 7439rm -f conftest* 7440 7441fi 7442 7443if test $ac_cv_header_stdc = yes; then 7444 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7445 if test "$cross_compiling" = yes; then : 7446 : 7447else 7448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7449/* end confdefs.h. */ 7450#include <ctype.h> 7451#include <stdlib.h> 7452#if ((' ' & 0x0FF) == 0x020) 7453# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7454# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7455#else 7456# define ISLOWER(c) \ 7457 (('a' <= (c) && (c) <= 'i') \ 7458 || ('j' <= (c) && (c) <= 'r') \ 7459 || ('s' <= (c) && (c) <= 'z')) 7460# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7461#endif 7462 7463#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7464int 7465main () 7466{ 7467 int i; 7468 for (i = 0; i < 256; i++) 7469 if (XOR (islower (i), ISLOWER (i)) 7470 || toupper (i) != TOUPPER (i)) 7471 return 2; 7472 return 0; 7473} 7474_ACEOF 7475if ac_fn_c_try_run "$LINENO"; then : 7476 7477else 7478 ac_cv_header_stdc=no 7479fi 7480rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7481 conftest.$ac_objext conftest.beam conftest.$ac_ext 7482fi 7483 7484fi 7485fi 7486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7487$as_echo "$ac_cv_header_stdc" >&6; } 7488if test $ac_cv_header_stdc = yes; then 7489 7490$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7491 7492fi 7493 7494# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7495for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7496 inttypes.h stdint.h unistd.h 7497do : 7498 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7499ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7500" 7501if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7502 cat >>confdefs.h <<_ACEOF 7503#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7504_ACEOF 7505 7506fi 7507 7508done 7509 7510 7511 7512#La localisation d'hdf5 doit être établie avant 7513 7514#de tester l'aspect parallel de la bibliothèque (H5pubconf.h). 7515 7516 7517 7518 7519 7520 7521 LDFLAGS_save="$LDFLAGS" 7522 LIBS_save="$LIBS" 7523 CPPFLAGS_save="$CPPFLAGS" 7524 7525 #Cette macro a au minimum besoin du préprocesseur dont la detection appelle malheureusement aussi la detection du compilateur 7526 #Elle ne peut donc pas être appelée avant de connaître l'aspect serial/parallel d'hdf (pour le choix du frontend mpi ou compilateur direct). 7527 #On ne test donc la version d'HDF qu'après l'aspect // ou séquentiel 7528 LDFLAGS="-L$hdf5lib $LDFLAGS" 7529 CPPFLAGS="-I$hdf5include $CPPFLAGS" 7530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <H5public.h>" >&5 7531$as_echo_n "checking absolute name of <H5public.h>... " >&6; } 7532if ${gl_cv_absolute_H5public_h+:} false; then : 7533 $as_echo_n "(cached) " >&6 7534else 7535 for ac_header in H5public.h 7536do : 7537 ac_fn_c_check_header_mongrel "$LINENO" "H5public.h" "ac_cv_header_H5public_h" "$ac_includes_default" 7538if test "x$ac_cv_header_H5public_h" = xyes; then : 7539 cat >>confdefs.h <<_ACEOF 7540#define HAVE_H5PUBLIC_H 1 7541_ACEOF 7542 7543fi 7544 7545done 7546 if test $ac_cv_header_H5public_h = yes; then 7547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7548/* end confdefs.h. */ 7549#include <H5public.h> 7550_ACEOF 7551 gl_cv_absolute_H5public_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7552sed -n '\#/H5public.h#{ 7553 s#.*"\(.*/H5public.h\)".*#\1# 7554 s#^/[^/]#//&# 7555 p 7556 q 7557}'` 7558 fi 7559 7560fi 7561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_absolute_H5public_h" >&5 7562$as_echo "$gl_cv_absolute_H5public_h" >&6; } 7563cat >>confdefs.h <<_ACEOF 7564#define ABSOLUTE_H5PUBLIC_H "$gl_cv_absolute_H5public_h" 7565_ACEOF 7566 7567 7568 7569 #Use H5public.h in order to find the HDF version we are using. 7570 HDF5_ABS_PATH="$gl_cv_absolute_H5public_h" 7571 HDF5_USED_VER="unknown" 7572 HDF5_VERSION="0" 7573 if test -n "$HDF5_ABS_PATH" ; then 7574 HDF5_USED_VER=` grep H5_VERS_INFO $HDF5_ABS_PATH | sed 's/\([^"]*\)\(".*"\)\([^"]*\)/\2/g' ` 7575 H5_VER_MAJOR=` grep '#define *H5_VERS_MAJOR' $HDF5_ABS_PATH | gsed 's/^.*H5_VERS_MAJOR[[ \t]]*\([0-9]*\)[[ \t]]*.*$/\1/g' ` 7576 H5_VER_MINOR=` grep '#define *H5_VERS_MINOR' $HDF5_ABS_PATH | gsed 's/^.*H5_VERS_MINOR[[ \t]]*\([0-9]*\)[[ \t]]*.*$/\1/g' ` 7577 H5_VER_RELEASE=`grep '#define *H5_VERS_RELEASE' $HDF5_ABS_PATH | gsed 's/^.*H5_VERS_RELEASE[[ \t]]*\([0-9]*\)[[ \t]]*.*$/\1/g' ` 7578 HDF5_VERSION=` expr 10000 \* ${H5_VER_MAJOR} + 100 \* ${H5_VER_MINOR} + ${H5_VER_RELEASE} ` 7579 test "0${HDF5_VERSION}" -gt "11100" || test "0${HDF5_VERSION}" -lt "11002" && as_fn_error $? " 7580This HDF5 version ${H5_VER_MAJOR}.${H5_VER_MINOR}.${H5_VER_RELEASE} must not be used with med-fichier${MED_NUM_MAJEUR}.${MED_NUM_MINEUR}.${MED_NUM_RELEASE}. 7581The HDF5 library version used by med-fichier${MED_NUM_MAJEUR}.y.z MUST NOT be > 1.10 and have to be at least HDF${HDF_VERSION_REF}. 7582DO NOT TRY TO COMPILE med-fichier${MED_NUM_MAJEUR}.${MED_NUM_MINEUR}.${MED_NUM_RELEASE} version with an HDF5 library which would generate an hdf5 file not compliant with HDF5-${HDF_VERSION_MAJOR_REF}.${HDF_VERSION_MINOR_REF}.z library. 7583This would BREAK med-fichier compatibility between files with the same revision number ! 7584 " "$LINENO" 5 7585 else 7586## In case user explicitly ask to not use hdf5 ! 7587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't compile MED without hdf5" >&5 7588$as_echo "$as_me: WARNING: Can't compile MED without hdf5" >&2;} 7589 as_fn_error $? "either use HDF5HOME env. var. or --with-hdf5=<path>." "$LINENO" 5 7590 fi 7591 7592 HDF5_TYPEDEF_HERR_T=` sed -n '/^[ \t]*typedef .*herr_t[ \t]*;/p' $HDF5_ABS_PATH ` 7593 HDF5_TYPEDEF_HSIZE_T=` sed -n '/^[ \t]*typedef .*hsize_t[ \t]*;/p' $HDF5_ABS_PATH ` 7594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <H5Ipublic.h>" >&5 7595$as_echo_n "checking absolute name of <H5Ipublic.h>... " >&6; } 7596if ${gl_cv_absolute_H5Ipublic_h+:} false; then : 7597 $as_echo_n "(cached) " >&6 7598else 7599 for ac_header in H5Ipublic.h 7600do : 7601 ac_fn_c_check_header_mongrel "$LINENO" "H5Ipublic.h" "ac_cv_header_H5Ipublic_h" "$ac_includes_default" 7602if test "x$ac_cv_header_H5Ipublic_h" = xyes; then : 7603 cat >>confdefs.h <<_ACEOF 7604#define HAVE_H5IPUBLIC_H 1 7605_ACEOF 7606 7607fi 7608 7609done 7610 if test $ac_cv_header_H5Ipublic_h = yes; then 7611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7612/* end confdefs.h. */ 7613#include <H5Ipublic.h> 7614_ACEOF 7615 gl_cv_absolute_H5Ipublic_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7616sed -n '\#/H5Ipublic.h#{ 7617 s#.*"\(.*/H5Ipublic.h\)".*#\1# 7618 s#^/[^/]#//&# 7619 p 7620 q 7621}'` 7622 fi 7623 7624fi 7625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_absolute_H5Ipublic_h" >&5 7626$as_echo "$gl_cv_absolute_H5Ipublic_h" >&6; } 7627cat >>confdefs.h <<_ACEOF 7628#define ABSOLUTE_H5IPUBLIC_H "$gl_cv_absolute_H5Ipublic_h" 7629_ACEOF 7630 7631 7632 HDF5_TYPEDEF_HID_T=` sed -n '/^[ \t]*typedef .*hid_t[ \t]*;/p' $gl_cv_absolute_H5Ipublic_h ` 7633 7634# AC_CHECK_LIB([m],[sin],[],[AC_MSG_ERROR([Can't find C math library.])],[]) 7635# AC_CHECK_LIB([z],[compress],[],[AC_MSG_ERROR([Can't find z library.])],[]) 7636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for H5open in -lhdf5" >&5 7637$as_echo_n "checking for H5open in -lhdf5... " >&6; } 7638if ${ac_cv_lib_hdf5_H5open+:} false; then : 7639 $as_echo_n "(cached) " >&6 7640else 7641 ac_check_lib_save_LIBS=$LIBS 7642LIBS="-lhdf5 -lm -lz $LIBS" 7643cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7644/* end confdefs.h. */ 7645 7646/* Override any GCC internal prototype to avoid an error. 7647 Use char because int might match the return type of a GCC 7648 builtin and then its argument prototype would still apply. */ 7649#ifdef __cplusplus 7650extern "C" 7651#endif 7652char H5open (); 7653int 7654main () 7655{ 7656return H5open (); 7657 ; 7658 return 0; 7659} 7660_ACEOF 7661if ac_fn_c_try_link "$LINENO"; then : 7662 ac_cv_lib_hdf5_H5open=yes 7663else 7664 ac_cv_lib_hdf5_H5open=no 7665fi 7666rm -f core conftest.err conftest.$ac_objext \ 7667 conftest$ac_exeext conftest.$ac_ext 7668LIBS=$ac_check_lib_save_LIBS 7669fi 7670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hdf5_H5open" >&5 7671$as_echo "$ac_cv_lib_hdf5_H5open" >&6; } 7672if test "x$ac_cv_lib_hdf5_H5open" = xyes; then : 7673 cat >>confdefs.h <<_ACEOF 7674#define HAVE_LIBHDF5 1 7675_ACEOF 7676 7677 LIBS="-lhdf5 $LIBS" 7678 7679else 7680 as_fn_error $? "Can't find hdf5 library, either use HDF5HOME env. var. , --with-hdf5=<path> or --with-hdf5-lib=<libpath>" "$LINENO" 5 7681fi 7682 7683 test "x$mpi_wanted_test" = "xyes" && for ac_func in H5Pset_fapl_mpio 7684do : 7685 ac_fn_c_check_func "$LINENO" "H5Pset_fapl_mpio" "ac_cv_func_H5Pset_fapl_mpio" 7686if test "x$ac_cv_func_H5Pset_fapl_mpio" = xyes; then : 7687 cat >>confdefs.h <<_ACEOF 7688#define HAVE_H5PSET_FAPL_MPIO 1 7689_ACEOF 7690 7691else 7692 as_fn_error $? "HDF5 is detected as a parallel version but can't find H5Pset_fapl_mpio function." "$LINENO" 5 7693fi 7694done 7695 7696 7697 if test "x$with_hdf5_include" = "xno"; then 7698 # Extract the first word of "h5dump", so it can be a program name with args. 7699set dummy h5dump; ac_word=$2 7700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7701$as_echo_n "checking for $ac_word... " >&6; } 7702if ${ac_cv_path_H5DUMP+:} false; then : 7703 $as_echo_n "(cached) " >&6 7704else 7705 case $H5DUMP in 7706 [\\/]* | ?:[\\/]*) 7707 ac_cv_path_H5DUMP="$H5DUMP" # Let the user override the test with a path. 7708 ;; 7709 *) 7710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7711for as_dir in $hdf5bin$PATH_SEPARATOR$PATH$PATH_SEPARATOR 7712do 7713 IFS=$as_save_IFS 7714 test -z "$as_dir" && as_dir=. 7715 for ac_exec_ext in '' $ac_executable_extensions; do 7716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7717 ac_cv_path_H5DUMP="$as_dir/$ac_word$ac_exec_ext" 7718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7719 break 2 7720 fi 7721done 7722 done 7723IFS=$as_save_IFS 7724 7725 test -z "$ac_cv_path_H5DUMP" && ac_cv_path_H5DUMP="no" 7726 ;; 7727esac 7728fi 7729H5DUMP=$ac_cv_path_H5DUMP 7730if test -n "$H5DUMP"; then 7731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $H5DUMP" >&5 7732$as_echo "$H5DUMP" >&6; } 7733else 7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7735$as_echo "no" >&6; } 7736fi 7737 7738 7739 else 7740 # Extract the first word of "h5dump", so it can be a program name with args. 7741set dummy h5dump; ac_word=$2 7742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7743$as_echo_n "checking for $ac_word... " >&6; } 7744if ${ac_cv_path_H5DUMP+:} false; then : 7745 $as_echo_n "(cached) " >&6 7746else 7747 case $H5DUMP in 7748 [\\/]* | ?:[\\/]*) 7749 ac_cv_path_H5DUMP="$H5DUMP" # Let the user override the test with a path. 7750 ;; 7751 *) 7752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7753for as_dir in $hdf5bin 7754do 7755 IFS=$as_save_IFS 7756 test -z "$as_dir" && as_dir=. 7757 for ac_exec_ext in '' $ac_executable_extensions; do 7758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7759 ac_cv_path_H5DUMP="$as_dir/$ac_word$ac_exec_ext" 7760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7761 break 2 7762 fi 7763done 7764 done 7765IFS=$as_save_IFS 7766 7767 test -z "$ac_cv_path_H5DUMP" && ac_cv_path_H5DUMP="no" 7768 ;; 7769esac 7770fi 7771H5DUMP=$ac_cv_path_H5DUMP 7772if test -n "$H5DUMP"; then 7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $H5DUMP" >&5 7774$as_echo "$H5DUMP" >&6; } 7775else 7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7777$as_echo "no" >&6; } 7778fi 7779 7780 7781 fi 7782 if test "X$H5DUMP" = "Xno"; then 7783 as_fn_error $? "Can't find h5dump, please verify your env. var. PATH or use of --with-hdf5bin=<binpath>." "$LINENO" 5 7784 fi 7785 7786 7787# AC_DEFINE(H5_USE_16_API,[],[Using HDF5-1.6 API compatibility with HDF5 1.8 libraries]) 7788 HDF5_CPPFLAGS="-DH5_USE_16_API" 7789 HDF5_CPPFLAGS="$HDF5_CPPFLAGS -I$hdf5include" 7790 HDF5_LDFLAGS="-L$hdf5lib" 7791 LDFLAGS="$LDFLAGS_save" 7792 CPPFLAGS="$CPPFLAGS_save" 7793 LIBS="$LIBS_save" 7794 7795 7796 7797#La ligne suivante est inutile car effectuée par AC_CHECK_PROG 7798# AC_SUBST(H5DUMP) 7799 7800 HDF5_LIBS="-lhdf5" 7801 7802 7803 7804 7805 7806 7807## -> MED_ENABLE_PMED 7808## --> AX_PROG_CC_MPI 7809## --> MED_CHECK_F90 7810## -->AX_PROG_FC_MPI 7811 7812 7813## Configure le choix du compilateur Fortran 90 et active les tests correspondants 7814 if test -n "$FC" ; then 7815 WITHF90_TRUE= 7816 WITHF90_FALSE='#' 7817else 7818 WITHF90_TRUE='#' 7819 WITHF90_FALSE= 7820fi 7821 7822 7823 7824 7825 7826 7827## Check if user want to disable explicit error messages 7828 7829 7830## Guess if we have to deactivate explicit error messages 7831 7832# Check whether --enable-mesgerr was given. 7833if test "${enable_mesgerr+set}" = set; then : 7834 enableval=$enable_mesgerr; med_check_mesgerr=$enableval 7835else 7836 med_check_mesgerr=yes 7837fi 7838 7839 7840if test "x$med_check_mesgerr" = "xyes" 7841then 7842 7843$as_echo "#define MESGERR 1" >>confdefs.h 7844 7845 { $as_echo "$as_me:${as_lineno-$LINENO}: MED library display error messages is activated." >&5 7846$as_echo "$as_me: MED library display error messages is activated." >&6;} 7847 7848else 7849## In case user explicitly ask not to use mesgerr ! 7850 med_check_mesgerr="no" 7851 7852$as_echo "#define MESGERR 0" >>confdefs.h 7853 7854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MED library display error messages is desactivated." >&5 7855$as_echo "$as_me: WARNING: MED library display error messages is desactivated." >&2;} 7856fi 7857MESGERR="$med_check_mesgerr" 7858 7859 7860 7861## Check For MED2.x Objects Not Readable By New3.x API 7862 7863 7864# Check whether --enable-check23 was given. 7865if test "${enable_check23+set}" = set; then : 7866 enableval=$enable_check23; med_check23=$enableval 7867else 7868 med_check23=yes 7869fi 7870 7871if test "x$med_check23" = "xyes" 7872then 7873 7874$as_echo "#define MED_CHECK_23FORMAT 1" >>confdefs.h 7875 7876 { $as_echo "$as_me:${as_lineno-$LINENO}: Checking previous data model objects not strictly API3.0 compatible is activated." >&5 7877$as_echo "$as_me: Checking previous data model objects not strictly API3.0 compatible is activated." >&6;} 7878else 7879 7880$as_echo "#define MED_CHECK_23FORMAT 0" >>confdefs.h 7881 7882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Checking previous data model objects not strictly API3.0 compatible is deactivated." >&5 7883$as_echo "$as_me: WARNING: Checking previous data model objects not strictly API3.0 compatible is deactivated." >&2;} 7884fi 7885MED_CHECK_23FORMAT="$med_check23" 7886 7887 7888 7889## Check For installing test programs or not 7890 7891# Check whether --enable-installtest was given. 7892if test "${enable_installtest+set}" = set; then : 7893 enableval=$enable_installtest; med_installtest=$enableval 7894else 7895 med_installtest=no 7896fi 7897 7898if test "x$med_installtest" = "xyes" 7899then 7900 if true ; then 7901 INSTALLTEST_TRUE= 7902 INSTALLTEST_FALSE='#' 7903else 7904 INSTALLTEST_TRUE='#' 7905 INSTALLTEST_FALSE= 7906fi 7907 7908 { $as_echo "$as_me:${as_lineno-$LINENO}: Test programs will be installed." >&5 7909$as_echo "$as_me: Test programs will be installed." >&6;} 7910else 7911 if false ; then 7912 INSTALLTEST_TRUE= 7913 INSTALLTEST_FALSE='#' 7914else 7915 INSTALLTEST_TRUE='#' 7916 INSTALLTEST_FALSE= 7917fi 7918 7919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Test programs will not be installed." >&5 7920$as_echo "$as_me: WARNING: Test programs will not be installed." >&2;} 7921fi 7922 7923 7924# Checks for programs. 7925test "x$ac_cv_prog_cc_c99" = "xno" || 7926$as_echo "#define HAVE_CC_C99 1" >>confdefs.h 7927 7928 7929 7930 7931 7932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile F77 using MPI" >&5 7933$as_echo_n "checking whether to compile F77 using MPI... " >&6; } 7934 if test "x$mpi_wanted_test" = "xyes"; then 7935 _ax_prog_f77_mpi_mpi_wanted=yes 7936 else 7937 _ax_prog_f77_mpi_mpi_wanted=no 7938 fi 7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_ax_prog_f77_mpi_mpi_wanted" >&5 7940$as_echo "$_ax_prog_f77_mpi_mpi_wanted" >&6; } 7941 7942 if test x"$_ax_prog_f77_mpi_mpi_wanted" = xyes && test x"$enable_fortran" = xyes; then 7943 if test -z "$F77" && test -n "$MPIF77"; then 7944 F77="$MPIF77" 7945 elif test -z "$F77"; then 7946 if test -n "$ac_tool_prefix"; then 7947 for ac_prog in mpif77 hf77 mpxlf_r mpxlf mpifrt mpf77 cmpifc xlf f77 frt pgf77 pathf77 g77 cf77 fort77 fl32 af77 7948 do 7949 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7950set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7952$as_echo_n "checking for $ac_word... " >&6; } 7953if ${ac_cv_prog_F77+:} false; then : 7954 $as_echo_n "(cached) " >&6 7955else 7956 if test -n "$F77"; then 7957 ac_cv_prog_F77="$F77" # Let the user override the test. 7958else 7959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7960for as_dir in $PATH 7961do 7962 IFS=$as_save_IFS 7963 test -z "$as_dir" && as_dir=. 7964 for ac_exec_ext in '' $ac_executable_extensions; do 7965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7966 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 7967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7968 break 2 7969 fi 7970done 7971 done 7972IFS=$as_save_IFS 7973 7974fi 7975fi 7976F77=$ac_cv_prog_F77 7977if test -n "$F77"; then 7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5 7979$as_echo "$F77" >&6; } 7980else 7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7982$as_echo "no" >&6; } 7983fi 7984 7985 7986 test -n "$F77" && break 7987 done 7988fi 7989if test -z "$F77"; then 7990 ac_ct_F77=$F77 7991 for ac_prog in mpif77 hf77 mpxlf_r mpxlf mpifrt mpf77 cmpifc xlf f77 frt pgf77 pathf77 g77 cf77 fort77 fl32 af77 7992do 7993 # Extract the first word of "$ac_prog", so it can be a program name with args. 7994set dummy $ac_prog; ac_word=$2 7995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7996$as_echo_n "checking for $ac_word... " >&6; } 7997if ${ac_cv_prog_ac_ct_F77+:} false; then : 7998 $as_echo_n "(cached) " >&6 7999else 8000 if test -n "$ac_ct_F77"; then 8001 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 8002else 8003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8004for as_dir in $PATH 8005do 8006 IFS=$as_save_IFS 8007 test -z "$as_dir" && as_dir=. 8008 for ac_exec_ext in '' $ac_executable_extensions; do 8009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8010 ac_cv_prog_ac_ct_F77="$ac_prog" 8011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8012 break 2 8013 fi 8014done 8015 done 8016IFS=$as_save_IFS 8017 8018fi 8019fi 8020ac_ct_F77=$ac_cv_prog_ac_ct_F77 8021if test -n "$ac_ct_F77"; then 8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5 8023$as_echo "$ac_ct_F77" >&6; } 8024else 8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8026$as_echo "no" >&6; } 8027fi 8028 8029 8030 test -n "$ac_ct_F77" && break 8031done 8032 8033 if test "x$ac_ct_F77" = x; then 8034 F77="" 8035 else 8036 case $cross_compiling:$ac_tool_warned in 8037yes:) 8038{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8039$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8040ac_tool_warned=yes ;; 8041esac 8042 F77=$ac_ct_F77 8043 fi 8044fi 8045 8046 fi 8047 fi 8048 8049 8050 8051#echo "---------F77 3-$enable_fortran----------------------" 8052 if test x"$enable_fortran" = xyes ; then 8053 ac_ext=f 8054ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 8055ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8056ac_compiler_gnu=$ac_cv_f77_compiler_gnu 8057if test -n "$ac_tool_prefix"; then 8058 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor 8059 do 8060 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8061set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8063$as_echo_n "checking for $ac_word... " >&6; } 8064if ${ac_cv_prog_F77+:} false; then : 8065 $as_echo_n "(cached) " >&6 8066else 8067 if test -n "$F77"; then 8068 ac_cv_prog_F77="$F77" # Let the user override the test. 8069else 8070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8071for as_dir in $PATH 8072do 8073 IFS=$as_save_IFS 8074 test -z "$as_dir" && as_dir=. 8075 for ac_exec_ext in '' $ac_executable_extensions; do 8076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8077 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 8078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8079 break 2 8080 fi 8081done 8082 done 8083IFS=$as_save_IFS 8084 8085fi 8086fi 8087F77=$ac_cv_prog_F77 8088if test -n "$F77"; then 8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5 8090$as_echo "$F77" >&6; } 8091else 8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8093$as_echo "no" >&6; } 8094fi 8095 8096 8097 test -n "$F77" && break 8098 done 8099fi 8100if test -z "$F77"; then 8101 ac_ct_F77=$F77 8102 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor 8103do 8104 # Extract the first word of "$ac_prog", so it can be a program name with args. 8105set dummy $ac_prog; ac_word=$2 8106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8107$as_echo_n "checking for $ac_word... " >&6; } 8108if ${ac_cv_prog_ac_ct_F77+:} false; then : 8109 $as_echo_n "(cached) " >&6 8110else 8111 if test -n "$ac_ct_F77"; then 8112 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 8113else 8114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8115for as_dir in $PATH 8116do 8117 IFS=$as_save_IFS 8118 test -z "$as_dir" && as_dir=. 8119 for ac_exec_ext in '' $ac_executable_extensions; do 8120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8121 ac_cv_prog_ac_ct_F77="$ac_prog" 8122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8123 break 2 8124 fi 8125done 8126 done 8127IFS=$as_save_IFS 8128 8129fi 8130fi 8131ac_ct_F77=$ac_cv_prog_ac_ct_F77 8132if test -n "$ac_ct_F77"; then 8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5 8134$as_echo "$ac_ct_F77" >&6; } 8135else 8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8137$as_echo "no" >&6; } 8138fi 8139 8140 8141 test -n "$ac_ct_F77" && break 8142done 8143 8144 if test "x$ac_ct_F77" = x; then 8145 F77="" 8146 else 8147 case $cross_compiling:$ac_tool_warned in 8148yes:) 8149{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8150$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8151ac_tool_warned=yes ;; 8152esac 8153 F77=$ac_ct_F77 8154 fi 8155fi 8156 8157 8158# Provide some information about the compiler. 8159$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5 8160set X $ac_compile 8161ac_compiler=$2 8162for ac_option in --version -v -V -qversion; do 8163 { { ac_try="$ac_compiler $ac_option >&5" 8164case "(($ac_try" in 8165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8166 *) ac_try_echo=$ac_try;; 8167esac 8168eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 8169$as_echo "$ac_try_echo"; } >&5 8170 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 8171 ac_status=$? 8172 if test -s conftest.err; then 8173 sed '10a\ 8174... rest of stderr output deleted ... 8175 10q' conftest.err >conftest.er1 8176 cat conftest.er1 >&5 8177 fi 8178 rm -f conftest.er1 conftest.err 8179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8180 test $ac_status = 0; } 8181done 8182rm -f a.out 8183 8184# If we don't use `.F' as extension, the preprocessor is not run on the 8185# input file. (Note that this only needs to work for GNU compilers.) 8186ac_save_ext=$ac_ext 8187ac_ext=F 8188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5 8189$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; } 8190if ${ac_cv_f77_compiler_gnu+:} false; then : 8191 $as_echo_n "(cached) " >&6 8192else 8193 cat > conftest.$ac_ext <<_ACEOF 8194 program main 8195#ifndef __GNUC__ 8196 choke me 8197#endif 8198 8199 end 8200_ACEOF 8201if ac_fn_f77_try_compile "$LINENO"; then : 8202 ac_compiler_gnu=yes 8203else 8204 ac_compiler_gnu=no 8205fi 8206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8207ac_cv_f77_compiler_gnu=$ac_compiler_gnu 8208 8209fi 8210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5 8211$as_echo "$ac_cv_f77_compiler_gnu" >&6; } 8212ac_ext=$ac_save_ext 8213ac_test_FFLAGS=${FFLAGS+set} 8214ac_save_FFLAGS=$FFLAGS 8215FFLAGS= 8216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5 8217$as_echo_n "checking whether $F77 accepts -g... " >&6; } 8218if ${ac_cv_prog_f77_g+:} false; then : 8219 $as_echo_n "(cached) " >&6 8220else 8221 FFLAGS=-g 8222cat > conftest.$ac_ext <<_ACEOF 8223 program main 8224 8225 end 8226_ACEOF 8227if ac_fn_f77_try_compile "$LINENO"; then : 8228 ac_cv_prog_f77_g=yes 8229else 8230 ac_cv_prog_f77_g=no 8231fi 8232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8233 8234fi 8235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5 8236$as_echo "$ac_cv_prog_f77_g" >&6; } 8237if test "$ac_test_FFLAGS" = set; then 8238 FFLAGS=$ac_save_FFLAGS 8239elif test $ac_cv_prog_f77_g = yes; then 8240 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 8241 FFLAGS="-g -O2" 8242 else 8243 FFLAGS="-g" 8244 fi 8245else 8246 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 8247 FFLAGS="-O2" 8248 else 8249 FFLAGS= 8250 fi 8251fi 8252 8253if test $ac_compiler_gnu = yes; then 8254 G77=yes 8255else 8256 G77= 8257fi 8258ac_ext=c 8259ac_cpp='$CPP $CPPFLAGS' 8260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8262ac_compiler_gnu=$ac_cv_c_compiler_gnu 8263 8264 fi 8265#echo "---------F77 4-$enable_fortran----------------------" 8266 8267 8268 8269 8270 8271#la macro de détection du compilateur f77 cherchera le compilateur séquentiel 8272#si mpi_wanted_test == no 8273 8274 8275 8276 8277# Check for compiler 8278# Needs to be split off into an extra macro to ensure right expansion 8279# order. 8280 8281 8282test x"$enable_fortran" = xyes && \ 8283if test x"$_ax_prog_f77_mpi_mpi_wanted" = xno; then : 8284 _ax_prog_f77_mpi_mpi_found=no 8285else 8286 8287 ac_ext=f 8288ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 8289ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8290ac_compiler_gnu=$ac_cv_f77_compiler_gnu 8291 8292 8293 # test whether MPI_INIT is available 8294 # We do not use AC_SEARCH_LIBS here, as it caches its outcome and 8295 # thus disallows corresponding calls in the other AX_PROG_*_MPI 8296 # macros. 8297 for lib in NONE fmpi fmpich; do 8298 save_LIBS=$LIBS 8299 if test x"$lib" = xNONE; then 8300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function MPI_INIT" >&5 8301$as_echo_n "checking for function MPI_INIT... " >&6; } 8302 else 8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function MPI_INIT in -l$lib" >&5 8304$as_echo_n "checking for function MPI_INIT in -l$lib... " >&6; } 8305 LIBS="-l$lib $LIBS" 8306 fi 8307 cat > conftest.$ac_ext <<_ACEOF 8308 program main 8309 call MPI_INIT 8310 end 8311_ACEOF 8312if ac_fn_f77_try_link "$LINENO"; then : 8313 _ax_prog_f77_mpi_mpi_found=yes 8314else 8315 _ax_prog_f77_mpi_mpi_found=no 8316fi 8317rm -f core conftest.err conftest.$ac_objext \ 8318 conftest$ac_exeext conftest.$ac_ext 8319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_ax_prog_f77_mpi_mpi_found" >&5 8320$as_echo "$_ax_prog_f77_mpi_mpi_found" >&6; } 8321 if test "x$_ax_prog_f77_mpi_mpi_found" = "xyes"; then 8322 break; 8323 fi 8324 LIBS=$save_LIBS 8325 done 8326 8327 # Check for header 8328 if test x"$_ax_prog_f77_mpi_mpi_found" = xyes; then : 8329 8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpif.h" >&5 8331$as_echo_n "checking for mpif.h... " >&6; } 8332 cat > conftest.$ac_ext <<_ACEOF 8333 program main 8334 8335 include 'mpif.h' 8336 8337 end 8338_ACEOF 8339if ac_fn_f77_try_compile "$LINENO"; then : 8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8341$as_echo "yes" >&6; } 8342else 8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8344$as_echo "no" >&6; } 8345 _ax_prog_f77_mpi_mpi_found=no 8346 8347fi 8348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8349 8350fi 8351 ac_ext=c 8352ac_cpp='$CPP $CPPFLAGS' 8353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8355ac_compiler_gnu=$ac_cv_c_compiler_gnu 8356 8357 8358fi 8359 8360# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 8361if test x"$_ax_prog_f77_mpi_mpi_found" = xyes; then : 8362 8363 8364$as_echo "#define HAVE_MPI 1" >>confdefs.h 8365 8366 : 8367 8368else 8369 8370 8371 if test x"$mpi_wanted_test" = xyes && test x"$enable_fortran" = xyes ; then 8372 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8373$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8374as_fn_error $? "MPI F77 compiler requested, but couldn't use MPI. 8375See \`config.log' for more details" "$LINENO" 5; } 8376 fi 8377 8378 : 8379 8380fi 8381 8382 8383 8384 8385 8386#The macro for detecting Fortran compilers must not be called before 8387# testing mpi fortran compiler frontend 8388 8389 8390 8391if test x"$enable_fortran" = xyes ; then : 8392 8393## Looking for "$f77prog" presence 8394 8395# Pour l'affichage du Summary 8396 BUILD_F77TESTS_CONDITIONAL_TRUE= 8397 BUILD_F77TESTS_CONDITIONAL_FALSE='#' 8398 8399else 8400 8401 FC="" 8402# Pour l'affichage du Summary 8403 BUILD_F77TESTS_CONDITIONAL_TRUE='#' 8404 BUILD_F77TESTS_CONDITIONAL_FALSE= 8405 8406fi 8407 8408 8409 8410 8411 8412if test x"$enable_fortran" = xyes; then 8413 ac_ext=f 8414ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 8415ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8416ac_compiler_gnu=$ac_cv_f77_compiler_gnu 8417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $F77" >&5 8418$as_echo_n "checking how to get verbose linking output from $F77... " >&6; } 8419if ${ac_cv_prog_f77_v+:} false; then : 8420 $as_echo_n "(cached) " >&6 8421else 8422 cat > conftest.$ac_ext <<_ACEOF 8423 program main 8424 8425 end 8426_ACEOF 8427if ac_fn_f77_try_compile "$LINENO"; then : 8428 ac_cv_prog_f77_v= 8429# Try some options frequently used verbose output 8430for ac_verb in -v -verbose --verbose -V -\#\#\#; do 8431 cat > conftest.$ac_ext <<_ACEOF 8432 program main 8433 8434 end 8435_ACEOF 8436 8437# Compile and link our simple test program by passing a flag (argument 8438# 1 to this macro) to the Fortran compiler in order to get 8439# "verbose" output that we can then parse for the Fortran linker 8440# flags. 8441ac_save_FFLAGS=$FFLAGS 8442FFLAGS="$FFLAGS $ac_verb" 8443eval "set x $ac_link" 8444shift 8445$as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5 8446# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH, 8447# LIBRARY_PATH; skip all such settings. 8448ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | 8449 sed '/^Driving:/d; /^Configured with:/d; 8450 '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"` 8451$as_echo "$ac_f77_v_output" >&5 8452FFLAGS=$ac_save_FFLAGS 8453 8454rm -rf conftest* 8455 8456# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where 8457# /foo, /bar, and /baz are search directories for the Fortran linker. 8458# Here, we change these into -L/foo -L/bar -L/baz (and put it first): 8459ac_f77_v_output="`echo $ac_f77_v_output | 8460 grep 'LPATH is:' | 8461 sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output" 8462 8463# FIXME: we keep getting bitten by quoted arguments; a more general fix 8464# that detects unbalanced quotes in FLIBS should be implemented 8465# and (ugh) tested at some point. 8466case $ac_f77_v_output in 8467 # With xlf replace commas with spaces, 8468 # and remove "-link" and closing parenthesis. 8469 *xlfentry*) 8470 ac_f77_v_output=`echo $ac_f77_v_output | 8471 sed ' 8472 s/,/ /g 8473 s/ -link / /g 8474 s/) *$// 8475 ' 8476 ` ;; 8477 8478 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted 8479 # $LIBS confuse us, and the libraries appear later in the output anyway). 8480 *mGLOB_options_string*) 8481 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;; 8482 8483 # Portland Group compiler has singly- or doubly-quoted -cmdline argument 8484 # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4. 8485 # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2". 8486 *-cmdline\ * | *-ignore\ * | *-def\ *) 8487 ac_f77_v_output=`echo $ac_f77_v_output | sed "\ 8488 s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g 8489 s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g 8490 s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;; 8491 8492 # If we are using fort77 (the f2c wrapper) then filter output and delete quotes. 8493 *fort77*f2c*gcc*) 8494 ac_f77_v_output=`echo "$ac_f77_v_output" | sed -n ' 8495 /:[ ]\+Running[ ]\{1,\}"gcc"/{ 8496 /"-c"/d 8497 /[.]c"*/d 8498 s/^.*"gcc"/"gcc"/ 8499 s/"//gp 8500 }'` ;; 8501 8502 # If we are using Cray Fortran then delete quotes. 8503 *cft90*) 8504 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;; 8505esac 8506 8507 8508 # look for -l* and *.a constructs in the output 8509 for ac_arg in $ac_f77_v_output; do 8510 case $ac_arg in 8511 [\\/]*.a | ?:[\\/]*.a | -[lLRu]*) 8512 ac_cv_prog_f77_v=$ac_verb 8513 break 2 ;; 8514 esac 8515 done 8516done 8517if test -z "$ac_cv_prog_f77_v"; then 8518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $F77" >&5 8519$as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;} 8520fi 8521else 8522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5 8523$as_echo "$as_me: WARNING: compilation failed" >&2;} 8524fi 8525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8526 8527fi 8528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_v" >&5 8529$as_echo "$ac_cv_prog_f77_v" >&6; } 8530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 libraries of $F77" >&5 8531$as_echo_n "checking for Fortran 77 libraries of $F77... " >&6; } 8532if ${ac_cv_f77_libs+:} false; then : 8533 $as_echo_n "(cached) " >&6 8534else 8535 if test "x$FLIBS" != "x"; then 8536 ac_cv_f77_libs="$FLIBS" # Let the user override the test. 8537else 8538 8539cat > conftest.$ac_ext <<_ACEOF 8540 program main 8541 8542 end 8543_ACEOF 8544 8545# Compile and link our simple test program by passing a flag (argument 8546# 1 to this macro) to the Fortran compiler in order to get 8547# "verbose" output that we can then parse for the Fortran linker 8548# flags. 8549ac_save_FFLAGS=$FFLAGS 8550FFLAGS="$FFLAGS $ac_cv_prog_f77_v" 8551eval "set x $ac_link" 8552shift 8553$as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5 8554# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH, 8555# LIBRARY_PATH; skip all such settings. 8556ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | 8557 sed '/^Driving:/d; /^Configured with:/d; 8558 '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"` 8559$as_echo "$ac_f77_v_output" >&5 8560FFLAGS=$ac_save_FFLAGS 8561 8562rm -rf conftest* 8563 8564# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where 8565# /foo, /bar, and /baz are search directories for the Fortran linker. 8566# Here, we change these into -L/foo -L/bar -L/baz (and put it first): 8567ac_f77_v_output="`echo $ac_f77_v_output | 8568 grep 'LPATH is:' | 8569 sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output" 8570 8571# FIXME: we keep getting bitten by quoted arguments; a more general fix 8572# that detects unbalanced quotes in FLIBS should be implemented 8573# and (ugh) tested at some point. 8574case $ac_f77_v_output in 8575 # With xlf replace commas with spaces, 8576 # and remove "-link" and closing parenthesis. 8577 *xlfentry*) 8578 ac_f77_v_output=`echo $ac_f77_v_output | 8579 sed ' 8580 s/,/ /g 8581 s/ -link / /g 8582 s/) *$// 8583 ' 8584 ` ;; 8585 8586 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted 8587 # $LIBS confuse us, and the libraries appear later in the output anyway). 8588 *mGLOB_options_string*) 8589 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;; 8590 8591 # Portland Group compiler has singly- or doubly-quoted -cmdline argument 8592 # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4. 8593 # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2". 8594 *-cmdline\ * | *-ignore\ * | *-def\ *) 8595 ac_f77_v_output=`echo $ac_f77_v_output | sed "\ 8596 s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g 8597 s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g 8598 s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;; 8599 8600 # If we are using fort77 (the f2c wrapper) then filter output and delete quotes. 8601 *fort77*f2c*gcc*) 8602 ac_f77_v_output=`echo "$ac_f77_v_output" | sed -n ' 8603 /:[ ]\+Running[ ]\{1,\}"gcc"/{ 8604 /"-c"/d 8605 /[.]c"*/d 8606 s/^.*"gcc"/"gcc"/ 8607 s/"//gp 8608 }'` ;; 8609 8610 # If we are using Cray Fortran then delete quotes. 8611 *cft90*) 8612 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;; 8613esac 8614 8615 8616 8617ac_cv_f77_libs= 8618 8619# Save positional arguments (if any) 8620ac_save_positional="$@" 8621 8622set X $ac_f77_v_output 8623while test $# != 1; do 8624 shift 8625 ac_arg=$1 8626 case $ac_arg in 8627 [\\/]*.a | ?:[\\/]*.a) 8628 ac_exists=false 8629 for ac_i in $ac_cv_f77_libs; do 8630 if test x"$ac_arg" = x"$ac_i"; then 8631 ac_exists=true 8632 break 8633 fi 8634 done 8635 8636 if test x"$ac_exists" = xtrue; then : 8637 8638else 8639 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" 8640fi 8641 ;; 8642 -bI:*) 8643 ac_exists=false 8644 for ac_i in $ac_cv_f77_libs; do 8645 if test x"$ac_arg" = x"$ac_i"; then 8646 ac_exists=true 8647 break 8648 fi 8649 done 8650 8651 if test x"$ac_exists" = xtrue; then : 8652 8653else 8654 if test "$ac_compiler_gnu" = yes; then 8655 for ac_link_opt in $ac_arg; do 8656 ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt" 8657 done 8658else 8659 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" 8660fi 8661fi 8662 ;; 8663 # Ignore these flags. 8664 -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \ 8665 |-LANG:=* | -LIST:* | -LNO:* | -link) 8666 ;; 8667 -lkernel32) 8668 case $host_os in 8669 *cygwin*) ;; 8670 *) ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" 8671 ;; 8672 esac 8673 ;; 8674 -[LRuYz]) 8675 # These flags, when seen by themselves, take an argument. 8676 # We remove the space between option and argument and re-iterate 8677 # unless we find an empty arg or a new option (starting with -) 8678 case $2 in 8679 "" | -*);; 8680 *) 8681 ac_arg="$ac_arg$2" 8682 shift; shift 8683 set X $ac_arg "$@" 8684 ;; 8685 esac 8686 ;; 8687 -YP,*) 8688 for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do 8689 ac_exists=false 8690 for ac_i in $ac_cv_f77_libs; do 8691 if test x"$ac_j" = x"$ac_i"; then 8692 ac_exists=true 8693 break 8694 fi 8695 done 8696 8697 if test x"$ac_exists" = xtrue; then : 8698 8699else 8700 ac_arg="$ac_arg $ac_j" 8701 ac_cv_f77_libs="$ac_cv_f77_libs $ac_j" 8702fi 8703 done 8704 ;; 8705 -[lLR]*) 8706 ac_exists=false 8707 for ac_i in $ac_cv_f77_libs; do 8708 if test x"$ac_arg" = x"$ac_i"; then 8709 ac_exists=true 8710 break 8711 fi 8712 done 8713 8714 if test x"$ac_exists" = xtrue; then : 8715 8716else 8717 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" 8718fi 8719 ;; 8720 -zallextract*| -zdefaultextract) 8721 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" 8722 ;; 8723 # Ignore everything else. 8724 esac 8725done 8726# restore positional arguments 8727set X $ac_save_positional; shift 8728 8729# We only consider "LD_RUN_PATH" on Solaris systems. If this is seen, 8730# then we insist that the "run path" must be an absolute path (i.e. it 8731# must begin with a "/"). 8732case `(uname -sr) 2>/dev/null` in 8733 "SunOS 5"*) 8734 ac_ld_run_path=`$as_echo "$ac_f77_v_output" | 8735 sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'` 8736 test "x$ac_ld_run_path" != x && 8737 if test "$ac_compiler_gnu" = yes; then 8738 for ac_link_opt in $ac_ld_run_path; do 8739 ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt" 8740 done 8741else 8742 ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path" 8743fi 8744 ;; 8745esac 8746fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x" 8747 8748fi 8749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_libs" >&5 8750$as_echo "$ac_cv_f77_libs" >&6; } 8751FLIBS="$ac_cv_f77_libs" 8752 8753 8754ac_ext=c 8755ac_cpp='$CPP $CPPFLAGS' 8756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8758ac_compiler_gnu=$ac_cv_c_compiler_gnu 8759 8760ac_ext=f 8761ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 8762ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8763ac_compiler_gnu=$ac_cv_f77_compiler_gnu 8764 8765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dummy main to link with Fortran 77 libraries" >&5 8766$as_echo_n "checking for dummy main to link with Fortran 77 libraries... " >&6; } 8767if ${ac_cv_f77_dummy_main+:} false; then : 8768 $as_echo_n "(cached) " >&6 8769else 8770 ac_f77_dm_save_LIBS=$LIBS 8771 LIBS="$LIBS $FLIBS" 8772 ac_fortran_dm_var=F77_DUMMY_MAIN 8773 ac_ext=c 8774ac_cpp='$CPP $CPPFLAGS' 8775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8777ac_compiler_gnu=$ac_cv_c_compiler_gnu 8778 8779 # First, try linking without a dummy main: 8780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8781/* end confdefs.h. */ 8782 8783#ifdef F77_DUMMY_MAIN 8784 8785# ifdef __cplusplus 8786 extern "C" 8787# endif 8788 int F77_DUMMY_MAIN() { return 1; } 8789 8790#endif 8791int 8792main () 8793{ 8794 8795 ; 8796 return 0; 8797} 8798_ACEOF 8799if ac_fn_c_try_link "$LINENO"; then : 8800 ac_cv_fortran_dummy_main=none 8801else 8802 ac_cv_fortran_dummy_main=unknown 8803fi 8804rm -f core conftest.err conftest.$ac_objext \ 8805 conftest$ac_exeext conftest.$ac_ext 8806 8807 if test $ac_cv_fortran_dummy_main = unknown; then 8808 for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do 8809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8810/* end confdefs.h. */ 8811#define $ac_fortran_dm_var $ac_func 8812#ifdef F77_DUMMY_MAIN 8813 8814# ifdef __cplusplus 8815 extern "C" 8816# endif 8817 int F77_DUMMY_MAIN() { return 1; } 8818 8819#endif 8820int 8821main () 8822{ 8823 8824 ; 8825 return 0; 8826} 8827_ACEOF 8828if ac_fn_c_try_link "$LINENO"; then : 8829 ac_cv_fortran_dummy_main=$ac_func; break 8830fi 8831rm -f core conftest.err conftest.$ac_objext \ 8832 conftest$ac_exeext conftest.$ac_ext 8833 done 8834 fi 8835 ac_ext=f 8836ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 8837ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8838ac_compiler_gnu=$ac_cv_f77_compiler_gnu 8839 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main 8840 rm -rf conftest* 8841 LIBS=$ac_f77_dm_save_LIBS 8842 8843fi 8844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_dummy_main" >&5 8845$as_echo "$ac_cv_f77_dummy_main" >&6; } 8846F77_DUMMY_MAIN=$ac_cv_f77_dummy_main 8847if test "$F77_DUMMY_MAIN" != unknown; then : 8848 if test $F77_DUMMY_MAIN != none; then 8849 8850cat >>confdefs.h <<_ACEOF 8851#define F77_DUMMY_MAIN $F77_DUMMY_MAIN 8852_ACEOF 8853 8854 if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then 8855 8856$as_echo "#define FC_DUMMY_MAIN_EQ_F77 1" >>confdefs.h 8857 8858 fi 8859fi 8860else 8861 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8862$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8863as_fn_error $? "linking to Fortran libraries from C fails 8864See \`config.log' for more details" "$LINENO" 5; } 8865fi 8866 8867ac_ext=c 8868ac_cpp='$CPP $CPPFLAGS' 8869ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8870ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8871ac_compiler_gnu=$ac_cv_c_compiler_gnu 8872 8873ac_ext=f 8874ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 8875ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8876ac_compiler_gnu=$ac_cv_f77_compiler_gnu 8877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 name-mangling scheme" >&5 8878$as_echo_n "checking for Fortran 77 name-mangling scheme... " >&6; } 8879if ${ac_cv_f77_mangling+:} false; then : 8880 $as_echo_n "(cached) " >&6 8881else 8882 cat > conftest.$ac_ext <<_ACEOF 8883 subroutine foobar() 8884 return 8885 end 8886 subroutine foo_bar() 8887 return 8888 end 8889_ACEOF 8890if ac_fn_f77_try_compile "$LINENO"; then : 8891 mv conftest.$ac_objext cfortran_test.$ac_objext 8892 8893 ac_save_LIBS=$LIBS 8894 LIBS="cfortran_test.$ac_objext $LIBS $FLIBS" 8895 8896 ac_ext=c 8897ac_cpp='$CPP $CPPFLAGS' 8898ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8899ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8900ac_compiler_gnu=$ac_cv_c_compiler_gnu 8901 ac_success=no 8902 for ac_foobar in foobar FOOBAR; do 8903 for ac_underscore in "" "_"; do 8904 ac_func="$ac_foobar$ac_underscore" 8905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8906/* end confdefs.h. */ 8907 8908/* Override any GCC internal prototype to avoid an error. 8909 Use char because int might match the return type of a GCC 8910 builtin and then its argument prototype would still apply. */ 8911#ifdef __cplusplus 8912extern "C" 8913#endif 8914char $ac_func (); 8915#ifdef F77_DUMMY_MAIN 8916 8917# ifdef __cplusplus 8918 extern "C" 8919# endif 8920 int F77_DUMMY_MAIN() { return 1; } 8921 8922#endif 8923int 8924main () 8925{ 8926return $ac_func (); 8927 ; 8928 return 0; 8929} 8930_ACEOF 8931if ac_fn_c_try_link "$LINENO"; then : 8932 ac_success=yes; break 2 8933fi 8934rm -f core conftest.err conftest.$ac_objext \ 8935 conftest$ac_exeext conftest.$ac_ext 8936 done 8937 done 8938 ac_ext=f 8939ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 8940ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8941ac_compiler_gnu=$ac_cv_f77_compiler_gnu 8942 8943 if test "$ac_success" = "yes"; then 8944 case $ac_foobar in 8945 foobar) 8946 ac_case=lower 8947 ac_foo_bar=foo_bar 8948 ;; 8949 FOOBAR) 8950 ac_case=upper 8951 ac_foo_bar=FOO_BAR 8952 ;; 8953 esac 8954 8955 ac_ext=c 8956ac_cpp='$CPP $CPPFLAGS' 8957ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8958ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8959ac_compiler_gnu=$ac_cv_c_compiler_gnu 8960 ac_success_extra=no 8961 for ac_extra in "" "_"; do 8962 ac_func="$ac_foo_bar$ac_underscore$ac_extra" 8963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8964/* end confdefs.h. */ 8965 8966/* Override any GCC internal prototype to avoid an error. 8967 Use char because int might match the return type of a GCC 8968 builtin and then its argument prototype would still apply. */ 8969#ifdef __cplusplus 8970extern "C" 8971#endif 8972char $ac_func (); 8973#ifdef F77_DUMMY_MAIN 8974 8975# ifdef __cplusplus 8976 extern "C" 8977# endif 8978 int F77_DUMMY_MAIN() { return 1; } 8979 8980#endif 8981int 8982main () 8983{ 8984return $ac_func (); 8985 ; 8986 return 0; 8987} 8988_ACEOF 8989if ac_fn_c_try_link "$LINENO"; then : 8990 ac_success_extra=yes; break 8991fi 8992rm -f core conftest.err conftest.$ac_objext \ 8993 conftest$ac_exeext conftest.$ac_ext 8994 done 8995 ac_ext=f 8996ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 8997ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8998ac_compiler_gnu=$ac_cv_f77_compiler_gnu 8999 9000 if test "$ac_success_extra" = "yes"; then 9001 ac_cv_f77_mangling="$ac_case case" 9002 if test -z "$ac_underscore"; then 9003 ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore" 9004 else 9005 ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore" 9006 fi 9007 if test -z "$ac_extra"; then 9008 ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore" 9009 else 9010 ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore" 9011 fi 9012 else 9013 ac_cv_f77_mangling="unknown" 9014 fi 9015 else 9016 ac_cv_f77_mangling="unknown" 9017 fi 9018 9019 LIBS=$ac_save_LIBS 9020 rm -rf conftest* 9021 rm -f cfortran_test* 9022else 9023 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9024$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9025as_fn_error $? "cannot compile a simple Fortran program 9026See \`config.log' for more details" "$LINENO" 5; } 9027fi 9028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9029 9030fi 9031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_mangling" >&5 9032$as_echo "$ac_cv_f77_mangling" >&6; } 9033 9034ac_ext=c 9035ac_cpp='$CPP $CPPFLAGS' 9036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9038ac_compiler_gnu=$ac_cv_c_compiler_gnu 9039 9040ac_ext=f 9041ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 9042ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9043ac_compiler_gnu=$ac_cv_f77_compiler_gnu 9044case $ac_cv_f77_mangling in 9045 "lower case, no underscore, no extra underscore") 9046 $as_echo "#define F77_FUNC(name,NAME) name" >>confdefs.h 9047 9048 $as_echo "#define F77_FUNC_(name,NAME) name" >>confdefs.h 9049 ;; 9050 "lower case, no underscore, extra underscore") 9051 $as_echo "#define F77_FUNC(name,NAME) name" >>confdefs.h 9052 9053 $as_echo "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h 9054 ;; 9055 "lower case, underscore, no extra underscore") 9056 $as_echo "#define F77_FUNC(name,NAME) name ## _" >>confdefs.h 9057 9058 $as_echo "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h 9059 ;; 9060 "lower case, underscore, extra underscore") 9061 $as_echo "#define F77_FUNC(name,NAME) name ## _" >>confdefs.h 9062 9063 $as_echo "#define F77_FUNC_(name,NAME) name ## __" >>confdefs.h 9064 ;; 9065 "upper case, no underscore, no extra underscore") 9066 $as_echo "#define F77_FUNC(name,NAME) NAME" >>confdefs.h 9067 9068 $as_echo "#define F77_FUNC_(name,NAME) NAME" >>confdefs.h 9069 ;; 9070 "upper case, no underscore, extra underscore") 9071 $as_echo "#define F77_FUNC(name,NAME) NAME" >>confdefs.h 9072 9073 $as_echo "#define F77_FUNC_(name,NAME) NAME ## _" >>confdefs.h 9074 ;; 9075 "upper case, underscore, no extra underscore") 9076 $as_echo "#define F77_FUNC(name,NAME) NAME ## _" >>confdefs.h 9077 9078 $as_echo "#define F77_FUNC_(name,NAME) NAME ## _" >>confdefs.h 9079 ;; 9080 "upper case, underscore, extra underscore") 9081 $as_echo "#define F77_FUNC(name,NAME) NAME ## _" >>confdefs.h 9082 9083 $as_echo "#define F77_FUNC_(name,NAME) NAME ## __" >>confdefs.h 9084 ;; 9085 *) 9086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown Fortran name-mangling scheme" >&5 9087$as_echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;} 9088 ;; 9089esac 9090 9091ac_ext=c 9092ac_cpp='$CPP $CPPFLAGS' 9093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9095ac_compiler_gnu=$ac_cv_c_compiler_gnu 9096 9097 ac_ext=f 9098ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 9099ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9100ac_compiler_gnu=$ac_cv_f77_compiler_gnu 9101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $F77" >&5 9102$as_echo_n "checking how to get verbose linking output from $F77... " >&6; } 9103if ${ac_cv_prog_f77_v+:} false; then : 9104 $as_echo_n "(cached) " >&6 9105else 9106 cat > conftest.$ac_ext <<_ACEOF 9107 program main 9108 9109 end 9110_ACEOF 9111if ac_fn_f77_try_compile "$LINENO"; then : 9112 ac_cv_prog_f77_v= 9113# Try some options frequently used verbose output 9114for ac_verb in -v -verbose --verbose -V -\#\#\#; do 9115 cat > conftest.$ac_ext <<_ACEOF 9116 program main 9117 9118 end 9119_ACEOF 9120 9121# Compile and link our simple test program by passing a flag (argument 9122# 1 to this macro) to the Fortran compiler in order to get 9123# "verbose" output that we can then parse for the Fortran linker 9124# flags. 9125ac_save_FFLAGS=$FFLAGS 9126FFLAGS="$FFLAGS $ac_verb" 9127eval "set x $ac_link" 9128shift 9129$as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5 9130# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH, 9131# LIBRARY_PATH; skip all such settings. 9132ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | 9133 sed '/^Driving:/d; /^Configured with:/d; 9134 '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"` 9135$as_echo "$ac_f77_v_output" >&5 9136FFLAGS=$ac_save_FFLAGS 9137 9138rm -rf conftest* 9139 9140# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where 9141# /foo, /bar, and /baz are search directories for the Fortran linker. 9142# Here, we change these into -L/foo -L/bar -L/baz (and put it first): 9143ac_f77_v_output="`echo $ac_f77_v_output | 9144 grep 'LPATH is:' | 9145 sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output" 9146 9147# FIXME: we keep getting bitten by quoted arguments; a more general fix 9148# that detects unbalanced quotes in FLIBS should be implemented 9149# and (ugh) tested at some point. 9150case $ac_f77_v_output in 9151 # With xlf replace commas with spaces, 9152 # and remove "-link" and closing parenthesis. 9153 *xlfentry*) 9154 ac_f77_v_output=`echo $ac_f77_v_output | 9155 sed ' 9156 s/,/ /g 9157 s/ -link / /g 9158 s/) *$// 9159 ' 9160 ` ;; 9161 9162 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted 9163 # $LIBS confuse us, and the libraries appear later in the output anyway). 9164 *mGLOB_options_string*) 9165 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;; 9166 9167 # Portland Group compiler has singly- or doubly-quoted -cmdline argument 9168 # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4. 9169 # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2". 9170 *-cmdline\ * | *-ignore\ * | *-def\ *) 9171 ac_f77_v_output=`echo $ac_f77_v_output | sed "\ 9172 s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g 9173 s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g 9174 s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;; 9175 9176 # If we are using fort77 (the f2c wrapper) then filter output and delete quotes. 9177 *fort77*f2c*gcc*) 9178 ac_f77_v_output=`echo "$ac_f77_v_output" | sed -n ' 9179 /:[ ]\+Running[ ]\{1,\}"gcc"/{ 9180 /"-c"/d 9181 /[.]c"*/d 9182 s/^.*"gcc"/"gcc"/ 9183 s/"//gp 9184 }'` ;; 9185 9186 # If we are using Cray Fortran then delete quotes. 9187 *cft90*) 9188 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;; 9189esac 9190 9191 9192 # look for -l* and *.a constructs in the output 9193 for ac_arg in $ac_f77_v_output; do 9194 case $ac_arg in 9195 [\\/]*.a | ?:[\\/]*.a | -[lLRu]*) 9196 ac_cv_prog_f77_v=$ac_verb 9197 break 2 ;; 9198 esac 9199 done 9200done 9201if test -z "$ac_cv_prog_f77_v"; then 9202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $F77" >&5 9203$as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;} 9204fi 9205else 9206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5 9207$as_echo "$as_me: WARNING: compilation failed" >&2;} 9208fi 9209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9210 9211fi 9212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_v" >&5 9213$as_echo "$ac_cv_prog_f77_v" >&6; } 9214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 libraries of $F77" >&5 9215$as_echo_n "checking for Fortran 77 libraries of $F77... " >&6; } 9216if ${ac_cv_f77_libs+:} false; then : 9217 $as_echo_n "(cached) " >&6 9218else 9219 if test "x$FLIBS" != "x"; then 9220 ac_cv_f77_libs="$FLIBS" # Let the user override the test. 9221else 9222 9223cat > conftest.$ac_ext <<_ACEOF 9224 program main 9225 9226 end 9227_ACEOF 9228 9229# Compile and link our simple test program by passing a flag (argument 9230# 1 to this macro) to the Fortran compiler in order to get 9231# "verbose" output that we can then parse for the Fortran linker 9232# flags. 9233ac_save_FFLAGS=$FFLAGS 9234FFLAGS="$FFLAGS $ac_cv_prog_f77_v" 9235eval "set x $ac_link" 9236shift 9237$as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5 9238# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH, 9239# LIBRARY_PATH; skip all such settings. 9240ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | 9241 sed '/^Driving:/d; /^Configured with:/d; 9242 '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"` 9243$as_echo "$ac_f77_v_output" >&5 9244FFLAGS=$ac_save_FFLAGS 9245 9246rm -rf conftest* 9247 9248# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where 9249# /foo, /bar, and /baz are search directories for the Fortran linker. 9250# Here, we change these into -L/foo -L/bar -L/baz (and put it first): 9251ac_f77_v_output="`echo $ac_f77_v_output | 9252 grep 'LPATH is:' | 9253 sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output" 9254 9255# FIXME: we keep getting bitten by quoted arguments; a more general fix 9256# that detects unbalanced quotes in FLIBS should be implemented 9257# and (ugh) tested at some point. 9258case $ac_f77_v_output in 9259 # With xlf replace commas with spaces, 9260 # and remove "-link" and closing parenthesis. 9261 *xlfentry*) 9262 ac_f77_v_output=`echo $ac_f77_v_output | 9263 sed ' 9264 s/,/ /g 9265 s/ -link / /g 9266 s/) *$// 9267 ' 9268 ` ;; 9269 9270 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted 9271 # $LIBS confuse us, and the libraries appear later in the output anyway). 9272 *mGLOB_options_string*) 9273 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;; 9274 9275 # Portland Group compiler has singly- or doubly-quoted -cmdline argument 9276 # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4. 9277 # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2". 9278 *-cmdline\ * | *-ignore\ * | *-def\ *) 9279 ac_f77_v_output=`echo $ac_f77_v_output | sed "\ 9280 s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g 9281 s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g 9282 s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;; 9283 9284 # If we are using fort77 (the f2c wrapper) then filter output and delete quotes. 9285 *fort77*f2c*gcc*) 9286 ac_f77_v_output=`echo "$ac_f77_v_output" | sed -n ' 9287 /:[ ]\+Running[ ]\{1,\}"gcc"/{ 9288 /"-c"/d 9289 /[.]c"*/d 9290 s/^.*"gcc"/"gcc"/ 9291 s/"//gp 9292 }'` ;; 9293 9294 # If we are using Cray Fortran then delete quotes. 9295 *cft90*) 9296 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;; 9297esac 9298 9299 9300 9301ac_cv_f77_libs= 9302 9303# Save positional arguments (if any) 9304ac_save_positional="$@" 9305 9306set X $ac_f77_v_output 9307while test $# != 1; do 9308 shift 9309 ac_arg=$1 9310 case $ac_arg in 9311 [\\/]*.a | ?:[\\/]*.a) 9312 ac_exists=false 9313 for ac_i in $ac_cv_f77_libs; do 9314 if test x"$ac_arg" = x"$ac_i"; then 9315 ac_exists=true 9316 break 9317 fi 9318 done 9319 9320 if test x"$ac_exists" = xtrue; then : 9321 9322else 9323 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" 9324fi 9325 ;; 9326 -bI:*) 9327 ac_exists=false 9328 for ac_i in $ac_cv_f77_libs; do 9329 if test x"$ac_arg" = x"$ac_i"; then 9330 ac_exists=true 9331 break 9332 fi 9333 done 9334 9335 if test x"$ac_exists" = xtrue; then : 9336 9337else 9338 if test "$ac_compiler_gnu" = yes; then 9339 for ac_link_opt in $ac_arg; do 9340 ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt" 9341 done 9342else 9343 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" 9344fi 9345fi 9346 ;; 9347 # Ignore these flags. 9348 -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \ 9349 |-LANG:=* | -LIST:* | -LNO:* | -link) 9350 ;; 9351 -lkernel32) 9352 case $host_os in 9353 *cygwin*) ;; 9354 *) ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" 9355 ;; 9356 esac 9357 ;; 9358 -[LRuYz]) 9359 # These flags, when seen by themselves, take an argument. 9360 # We remove the space between option and argument and re-iterate 9361 # unless we find an empty arg or a new option (starting with -) 9362 case $2 in 9363 "" | -*);; 9364 *) 9365 ac_arg="$ac_arg$2" 9366 shift; shift 9367 set X $ac_arg "$@" 9368 ;; 9369 esac 9370 ;; 9371 -YP,*) 9372 for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do 9373 ac_exists=false 9374 for ac_i in $ac_cv_f77_libs; do 9375 if test x"$ac_j" = x"$ac_i"; then 9376 ac_exists=true 9377 break 9378 fi 9379 done 9380 9381 if test x"$ac_exists" = xtrue; then : 9382 9383else 9384 ac_arg="$ac_arg $ac_j" 9385 ac_cv_f77_libs="$ac_cv_f77_libs $ac_j" 9386fi 9387 done 9388 ;; 9389 -[lLR]*) 9390 ac_exists=false 9391 for ac_i in $ac_cv_f77_libs; do 9392 if test x"$ac_arg" = x"$ac_i"; then 9393 ac_exists=true 9394 break 9395 fi 9396 done 9397 9398 if test x"$ac_exists" = xtrue; then : 9399 9400else 9401 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" 9402fi 9403 ;; 9404 -zallextract*| -zdefaultextract) 9405 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" 9406 ;; 9407 # Ignore everything else. 9408 esac 9409done 9410# restore positional arguments 9411set X $ac_save_positional; shift 9412 9413# We only consider "LD_RUN_PATH" on Solaris systems. If this is seen, 9414# then we insist that the "run path" must be an absolute path (i.e. it 9415# must begin with a "/"). 9416case `(uname -sr) 2>/dev/null` in 9417 "SunOS 5"*) 9418 ac_ld_run_path=`$as_echo "$ac_f77_v_output" | 9419 sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'` 9420 test "x$ac_ld_run_path" != x && 9421 if test "$ac_compiler_gnu" = yes; then 9422 for ac_link_opt in $ac_ld_run_path; do 9423 ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt" 9424 done 9425else 9426 ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path" 9427fi 9428 ;; 9429esac 9430fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x" 9431 9432fi 9433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_libs" >&5 9434$as_echo "$ac_cv_f77_libs" >&6; } 9435FLIBS="$ac_cv_f77_libs" 9436 9437 9438ac_ext=c 9439ac_cpp='$CPP $CPPFLAGS' 9440ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9441ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9442ac_compiler_gnu=$ac_cv_c_compiler_gnu 9443 9444 9445 9446 9447## Guess where as hid_t type is provided by --with-hid_t option 9448## or auto-detection must be used 9449 9450 9451# Check whether --with-hid_t was given. 9452if test "${with_hid_t+set}" = set; then : 9453 withval=$with_hid_t; 9454else 9455 withval=no 9456fi 9457 9458 9459#Si l'interface fortran n'est pas générée ne lance pas les tests avec compilation 9460#La taille du hid_t est déduite de la version d'HDF. 9461#A partir d'HDF 1.10 hid_t est 64 bits 9462test x"$withval" = xno && test x"$enable_fortran" && ( test "0${HDF5_VERSION}" -gt "10899" && withval=long || withval=int ) 9463 9464if test x"$withval" = xno 9465then 9466 ## Guess the fortran int size 9467 CPPFLAGS_save="$CPPFLAGS" 9468 CPPFLAGS="-I$hdf5include $CPPFLAGS " 9469 # The cast to long int works around a bug in the HP C Compiler 9470# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9471# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9472# This bug is HP SR number 8606223364. 9473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of hid_t" >&5 9474$as_echo_n "checking size of hid_t... " >&6; } 9475if ${ac_cv_sizeof_hid_t+:} false; then : 9476 $as_echo_n "(cached) " >&6 9477else 9478 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (hid_t))" "ac_cv_sizeof_hid_t" "#include <H5Ipublic.h> 9479"; then : 9480 9481else 9482 if test "$ac_cv_type_hid_t" = yes; then 9483 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9484$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9485as_fn_error 77 "cannot compute sizeof (hid_t) 9486See \`config.log' for more details" "$LINENO" 5; } 9487 else 9488 ac_cv_sizeof_hid_t=0 9489 fi 9490fi 9491 9492fi 9493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_hid_t" >&5 9494$as_echo "$ac_cv_sizeof_hid_t" >&6; } 9495 9496 9497 9498cat >>confdefs.h <<_ACEOF 9499#define SIZEOF_HID_T $ac_cv_sizeof_hid_t 9500_ACEOF 9501 9502 9503 CPPFLAGS="$CPPFLAGS_save" 9504 if test "x$ac_cv_sizeof_hid_t" = "x8" ; then 9505 test "0${HDF5_VERSION}" -lt "11000" && as_fn_error $? "Size of the hid_t HDF5 type should not be eight bytes for HDF5 version < 1.10" "$LINENO" 5 9506 9507$as_echo "#define HAVE_F77HIDT64 /**/" >>confdefs.h 9508 9509 9510 9511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran integer*8" >&5 9512$as_echo_n "checking size of Fortran integer*8... " >&6; } 9513if ${ac_cv_sizeof_fortran_integerp8+:} false; then : 9514 $as_echo_n "(cached) " >&6 9515else 9516 9517 9518 ac_ext=f 9519ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 9520ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9521ac_compiler_gnu=$ac_cv_f77_compiler_gnu 9522 9523 cat > conftest.$ac_ext <<_ACEOF 9524 9525 9526 subroutine fsize() 9527 integer*8 i(2) 9528 call csize(i(1), i(2)) 9529 end 9530 9531 9532_ACEOF 9533if ac_fn_f77_try_compile "$LINENO"; then : 9534 9535 ac_ext=c 9536ac_cpp='$CPP $CPPFLAGS' 9537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9539ac_compiler_gnu=$ac_cv_c_compiler_gnu 9540 9541 cp conftest.$ac_objext conftestf.$ac_objext 9542 old_LDFLAGS="$LDFLAGS" 9543 LDFLAGS="conftestf.$ac_objext $LDFLAGS" 9544#"$ac_cv_f77_libs" 9545 if test "$cross_compiling" = yes; then : 9546 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9547$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9548as_fn_error $? "cannot run test program while cross compiling 9549See \`config.log' for more details" "$LINENO" 5; } 9550else 9551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9552/* end confdefs.h. */ 9553 9554# include <stdio.h> 9555# define CSIZE F77_FUNC(csize,CSIZE) 9556# define FSIZE F77_FUNC(fsize,FSIZE) 9557 void FSIZE(); 9558 static long size_val; 9559 /* Called by Fortran */ 9560 void CSIZE (i1p, i2p) 9561 char *i1p, *i2p; 9562 { 9563 size_val = (i2p - i1p); 9564 } 9565 int main() { 9566 FILE *f=fopen ("conftestval","w"); 9567 if (!f) return 1; 9568 /* Call the Fortran function */ 9569 FSIZE (); 9570 fprintf (f, "%ld\n", size_val); 9571 return 0; 9572 } 9573 9574_ACEOF 9575if ac_fn_c_try_run "$LINENO"; then : 9576 9577fi 9578rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9579 conftest.$ac_objext conftest.beam conftest.$ac_ext 9580fi 9581 9582 LDFLAGS="$old_LDFLAGS" 9583 ac_cv_sizeof_fortran_integerp8=`cat conftestval` 9584 rm -f conftestval conftestf.$ac_objext 9585 9586fi 9587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9588 ac_ext=c 9589ac_cpp='$CPP $CPPFLAGS' 9590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9592ac_compiler_gnu=$ac_cv_c_compiler_gnu 9593 9594 9595fi 9596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fortran_integerp8" >&5 9597$as_echo "$ac_cv_sizeof_fortran_integerp8" >&6; } 9598 9599cat >>confdefs.h <<_ACEOF 9600#define SIZEOF_FORTRAN_INTEGERp8 $ac_cv_sizeof_fortran_integerp8 9601_ACEOF 9602 9603 9604 9605 test "x$ac_cv_sizeof_fortran_integerp8" = "x8" || as_fn_error $? "Size of integer*8 F type is expected to be eight bytes" "$LINENO" 5 9606 HIDT_I8_OR_I4="integer*8" 9607 elif test "x$ac_cv_sizeof_hid_t" = "x4" ; then 9608 test "0${HDF5_VERSION}" -ge "11000" && as_fn_error $? "Size of the hid_t HDF5 type should not be four bytes for HDF5 version >= 1.10" "$LINENO" 5 9609 9610 9611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran integer*4" >&5 9612$as_echo_n "checking size of Fortran integer*4... " >&6; } 9613if ${ac_cv_sizeof_fortran_integerp4+:} false; then : 9614 $as_echo_n "(cached) " >&6 9615else 9616 9617 9618 ac_ext=f 9619ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 9620ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9621ac_compiler_gnu=$ac_cv_f77_compiler_gnu 9622 9623 cat > conftest.$ac_ext <<_ACEOF 9624 9625 9626 subroutine fsize() 9627 integer*4 i(2) 9628 call csize(i(1), i(2)) 9629 end 9630 9631 9632_ACEOF 9633if ac_fn_f77_try_compile "$LINENO"; then : 9634 9635 ac_ext=c 9636ac_cpp='$CPP $CPPFLAGS' 9637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9639ac_compiler_gnu=$ac_cv_c_compiler_gnu 9640 9641 cp conftest.$ac_objext conftestf.$ac_objext 9642 old_LDFLAGS="$LDFLAGS" 9643 LDFLAGS="conftestf.$ac_objext $LDFLAGS" 9644#"$ac_cv_f77_libs" 9645 if test "$cross_compiling" = yes; then : 9646 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9647$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9648as_fn_error $? "cannot run test program while cross compiling 9649See \`config.log' for more details" "$LINENO" 5; } 9650else 9651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9652/* end confdefs.h. */ 9653 9654# include <stdio.h> 9655# define CSIZE F77_FUNC(csize,CSIZE) 9656# define FSIZE F77_FUNC(fsize,FSIZE) 9657 void FSIZE(); 9658 static long size_val; 9659 /* Called by Fortran */ 9660 void CSIZE (i1p, i2p) 9661 char *i1p, *i2p; 9662 { 9663 size_val = (i2p - i1p); 9664 } 9665 int main() { 9666 FILE *f=fopen ("conftestval","w"); 9667 if (!f) return 1; 9668 /* Call the Fortran function */ 9669 FSIZE (); 9670 fprintf (f, "%ld\n", size_val); 9671 return 0; 9672 } 9673 9674_ACEOF 9675if ac_fn_c_try_run "$LINENO"; then : 9676 9677fi 9678rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9679 conftest.$ac_objext conftest.beam conftest.$ac_ext 9680fi 9681 9682 LDFLAGS="$old_LDFLAGS" 9683 ac_cv_sizeof_fortran_integerp4=`cat conftestval` 9684 rm -f conftestval conftestf.$ac_objext 9685 9686fi 9687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9688 ac_ext=c 9689ac_cpp='$CPP $CPPFLAGS' 9690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9691ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9692ac_compiler_gnu=$ac_cv_c_compiler_gnu 9693 9694 9695fi 9696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fortran_integerp4" >&5 9697$as_echo "$ac_cv_sizeof_fortran_integerp4" >&6; } 9698 9699cat >>confdefs.h <<_ACEOF 9700#define SIZEOF_FORTRAN_INTEGERp4 $ac_cv_sizeof_fortran_integerp4 9701_ACEOF 9702 9703 9704 9705 test "x$ac_cv_sizeof_fortran_integerp4" = "x4" || as_fn_error $? "Size of integer*4 F type is expected to be four bytes" "$LINENO" 5 9706 HIDT_I8_OR_I4="integer*4" 9707 else 9708 as_fn_error $? "Size of hid_t HDF5 type is neither four nor eight bytes" "$LINENO" 5 9709 fi 9710 9711else 9712 if test "x$withval" = "xlong" ; then 9713 test "0${HDF5_VERSION}" -lt "11000" && as_fn_error $? "Size of the hid_t HDF5 type should not be eight bytes for HDF5 version < 1.10" "$LINENO" 5 9714 9715$as_echo "#define HAVE_F77HIDT64 /**/" >>confdefs.h 9716 9717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Be careful that --with-hid_t=long implies using HDF 1.10.z" >&5 9718$as_echo "$as_me: WARNING: Be careful that --with-hid_t=long implies using HDF 1.10.z" >&2;} 9719 elif test ! "x$withval" = "xint" ; then 9720 as_fn_error $? "--with-hid_t must be equal to int or long !" "$LINENO" 5 9721 fi 9722 test ! "x$withval" = "xint" && test "0${HDF5_VERSION}" -ge "11000" && as_fn_error $? "Size of the hid_t HDF5 type should not be four bytes for HDF5 version >= 1.10" "$LINENO" 5 9723 9724 HID_LONG_OR_INT="$withval" 9725 { $as_echo "$as_me:${as_lineno-$LINENO}: Using type $withval for hid_t" >&5 9726$as_echo "$as_me: Using type $withval for hid_t" >&6;} 9727fi 9728 9729 9730 9731 9732fi 9733 9734 9735## Choose default med_int type between {int,long} 9736 9737 9738## Guess where as med_int type is provided by --with-med_int option 9739## or auto-detection must be used 9740 9741 9742# Check whether --with-med_int was given. 9743if test "${with_med_int+set}" = set; then : 9744 withval=$with_med_int; 9745else 9746 withval=no 9747fi 9748 9749 9750test x"$withval" = xno && test x"$enable_fortran" = xno && withval=int 9751 9752if test x"$withval" = xno 9753then 9754 9755 ## Guess the fortran int size 9756 9757 9758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Fortran integer" >&5 9759$as_echo_n "checking size of Fortran integer... " >&6; } 9760if ${ac_cv_sizeof_fortran_integer+:} false; then : 9761 $as_echo_n "(cached) " >&6 9762else 9763 9764 9765 ac_ext=f 9766ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 9767ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9768ac_compiler_gnu=$ac_cv_f77_compiler_gnu 9769 9770 cat > conftest.$ac_ext <<_ACEOF 9771 9772 9773 subroutine fsize() 9774 integer i(2) 9775 call csize(i(1), i(2)) 9776 end 9777 9778 9779_ACEOF 9780if ac_fn_f77_try_compile "$LINENO"; then : 9781 9782 ac_ext=c 9783ac_cpp='$CPP $CPPFLAGS' 9784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9786ac_compiler_gnu=$ac_cv_c_compiler_gnu 9787 9788 cp conftest.$ac_objext conftestf.$ac_objext 9789 old_LDFLAGS="$LDFLAGS" 9790 LDFLAGS="conftestf.$ac_objext $LDFLAGS" 9791#"$ac_cv_f77_libs" 9792 if test "$cross_compiling" = yes; then : 9793 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9794$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9795as_fn_error $? "cannot run test program while cross compiling 9796See \`config.log' for more details" "$LINENO" 5; } 9797else 9798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9799/* end confdefs.h. */ 9800 9801# include <stdio.h> 9802# define CSIZE F77_FUNC(csize,CSIZE) 9803# define FSIZE F77_FUNC(fsize,FSIZE) 9804 void FSIZE(); 9805 static long size_val; 9806 /* Called by Fortran */ 9807 void CSIZE (i1p, i2p) 9808 char *i1p, *i2p; 9809 { 9810 size_val = (i2p - i1p); 9811 } 9812 int main() { 9813 FILE *f=fopen ("conftestval","w"); 9814 if (!f) return 1; 9815 /* Call the Fortran function */ 9816 FSIZE (); 9817 fprintf (f, "%ld\n", size_val); 9818 return 0; 9819 } 9820 9821_ACEOF 9822if ac_fn_c_try_run "$LINENO"; then : 9823 9824fi 9825rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9826 conftest.$ac_objext conftest.beam conftest.$ac_ext 9827fi 9828 9829 LDFLAGS="$old_LDFLAGS" 9830 ac_cv_sizeof_fortran_integer=`cat conftestval` 9831 rm -f conftestval conftestf.$ac_objext 9832 9833fi 9834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9835 ac_ext=c 9836ac_cpp='$CPP $CPPFLAGS' 9837ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9838ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9839ac_compiler_gnu=$ac_cv_c_compiler_gnu 9840 9841 9842fi 9843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fortran_integer" >&5 9844$as_echo "$ac_cv_sizeof_fortran_integer" >&6; } 9845 9846cat >>confdefs.h <<_ACEOF 9847#define SIZEOF_FORTRAN_INTEGER $ac_cv_sizeof_fortran_integer 9848_ACEOF 9849 9850 9851 9852 if test "x$ac_cv_sizeof_fortran_integer" = "x8" ; then 9853 9854$as_echo "#define HAVE_F77INT64 /**/" >>confdefs.h 9855 9856 # The cast to long int works around a bug in the HP C Compiler 9857# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9858# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9859# This bug is HP SR number 8606223364. 9860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 9861$as_echo_n "checking size of long... " >&6; } 9862if ${ac_cv_sizeof_long+:} false; then : 9863 $as_echo_n "(cached) " >&6 9864else 9865 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 9866 9867else 9868 if test "$ac_cv_type_long" = yes; then 9869 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9870$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9871as_fn_error 77 "cannot compute sizeof (long) 9872See \`config.log' for more details" "$LINENO" 5; } 9873 else 9874 ac_cv_sizeof_long=0 9875 fi 9876fi 9877 9878fi 9879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 9880$as_echo "$ac_cv_sizeof_long" >&6; } 9881 9882 9883 9884cat >>confdefs.h <<_ACEOF 9885#define SIZEOF_LONG $ac_cv_sizeof_long 9886_ACEOF 9887 9888 9889 test "x$ac_cv_sizeof_long" = "x8" || as_fn_error $? "Size of C type long expected to be eight bytes" "$LINENO" 5 9890 LONG_OR_INT="long" 9891 #pour le module python qui est le meme pour int/long on a besoin des deux définitions 9892 # The cast to long int works around a bug in the HP C Compiler 9893# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9894# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9895# This bug is HP SR number 8606223364. 9896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 9897$as_echo_n "checking size of int... " >&6; } 9898if ${ac_cv_sizeof_int+:} false; then : 9899 $as_echo_n "(cached) " >&6 9900else 9901 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 9902 9903else 9904 if test "$ac_cv_type_int" = yes; then 9905 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9906$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9907as_fn_error 77 "cannot compute sizeof (int) 9908See \`config.log' for more details" "$LINENO" 5; } 9909 else 9910 ac_cv_sizeof_int=0 9911 fi 9912fi 9913 9914fi 9915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 9916$as_echo "$ac_cv_sizeof_int" >&6; } 9917 9918 9919 9920cat >>confdefs.h <<_ACEOF 9921#define SIZEOF_INT $ac_cv_sizeof_int 9922_ACEOF 9923 9924 9925 elif test "x$ac_cv_sizeof_fortran_integer" = "x4" ; then 9926 # The cast to long int works around a bug in the HP C Compiler 9927# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9928# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9929# This bug is HP SR number 8606223364. 9930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 9931$as_echo_n "checking size of int... " >&6; } 9932if ${ac_cv_sizeof_int+:} false; then : 9933 $as_echo_n "(cached) " >&6 9934else 9935 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 9936 9937else 9938 if test "$ac_cv_type_int" = yes; then 9939 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9940$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9941as_fn_error 77 "cannot compute sizeof (int) 9942See \`config.log' for more details" "$LINENO" 5; } 9943 else 9944 ac_cv_sizeof_int=0 9945 fi 9946fi 9947 9948fi 9949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 9950$as_echo "$ac_cv_sizeof_int" >&6; } 9951 9952 9953 9954cat >>confdefs.h <<_ACEOF 9955#define SIZEOF_INT $ac_cv_sizeof_int 9956_ACEOF 9957 9958 9959 test "x$ac_cv_sizeof_int" = "x4" || as_fn_error $? "Size of C type int expected to be four bytes" "$LINENO" 5 9960 LONG_OR_INT="int" 9961 #pour le module python qui est le meme pour int/long on a besoin des deux définitions 9962 # The cast to long int works around a bug in the HP C Compiler 9963# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9964# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9965# This bug is HP SR number 8606223364. 9966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 9967$as_echo_n "checking size of long... " >&6; } 9968if ${ac_cv_sizeof_long+:} false; then : 9969 $as_echo_n "(cached) " >&6 9970else 9971 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 9972 9973else 9974 if test "$ac_cv_type_long" = yes; then 9975 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9976$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9977as_fn_error 77 "cannot compute sizeof (long) 9978See \`config.log' for more details" "$LINENO" 5; } 9979 else 9980 ac_cv_sizeof_long=0 9981 fi 9982fi 9983 9984fi 9985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 9986$as_echo "$ac_cv_sizeof_long" >&6; } 9987 9988 9989 9990cat >>confdefs.h <<_ACEOF 9991#define SIZEOF_LONG $ac_cv_sizeof_long 9992_ACEOF 9993 9994 9995 else 9996 as_fn_error $? "Size of Fortran type integer is neither four nor eigth bytes" "$LINENO" 5 9997 fi 9998 9999else 10000 if test "x$withval" = "xlong" ; then 10001 10002$as_echo "#define HAVE_F77INT64 /**/" >>confdefs.h 10003 10004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Be careful that --with-med_int=long implies some FFLAGS && FCFLAGS settings for using integer*8 fortran integers." >&5 10005$as_echo "$as_me: WARNING: Be careful that --with-med_int=long implies some FFLAGS && FCFLAGS settings for using integer*8 fortran integers." >&2;} 10006 elif test ! "x$withval" = "xint" ; then 10007 as_fn_error $? "--with-med_int must be equal to int or long !" "$LINENO" 5 10008 fi 10009 LONG_OR_INT="$withval" 10010 { $as_echo "$as_me:${as_lineno-$LINENO}: Using type $withval for med_int" >&5 10011$as_echo "$as_me: Using type $withval for med_int" >&6;} 10012fi 10013 10014 10015 10016 10017 10018 10019 10020 10021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile using MPI" >&5 10022$as_echo_n "checking whether to compile using MPI... " >&6; } 10023 if test "x$mpi_wanted_test" = "xyes"; then 10024 _ax_prog_cxx_mpi_mpi_wanted=yes 10025 else 10026 _ax_prog_cxx_mpi_mpi_wanted=no 10027 fi 10028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_ax_prog_cxx_mpi_mpi_wanted" >&5 10029$as_echo "$_ax_prog_cxx_mpi_mpi_wanted" >&6; } 10030 10031 if test x"$_ax_prog_cxx_mpi_mpi_wanted" = xyes; then 10032 if test -z "$CXX" && test -n "$MPICXX"; then 10033 CXX="$MPICXX" 10034 elif test -z "$CXX"; then 10035 if test -n "$ac_tool_prefix"; then 10036 for ac_prog in mpic++ mpicxx mpiCC sxmpic++ hcp mpxlC_r mpxlC mpixlcxx_r mpixlcxx mpg++ mpc++ mpCC cmpic++ mpiFCC CCicpc pgCC pathCC sxc++ xlC_r xlC bgxlC_r bgxlC openCC sunCC crayCC g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC 10037 do 10038 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 10039set dummy $ac_tool_prefix$ac_prog; ac_word=$2 10040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10041$as_echo_n "checking for $ac_word... " >&6; } 10042if ${ac_cv_prog_CXX+:} false; then : 10043 $as_echo_n "(cached) " >&6 10044else 10045 if test -n "$CXX"; then 10046 ac_cv_prog_CXX="$CXX" # Let the user override the test. 10047else 10048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10049for as_dir in $PATH 10050do 10051 IFS=$as_save_IFS 10052 test -z "$as_dir" && as_dir=. 10053 for ac_exec_ext in '' $ac_executable_extensions; do 10054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10055 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 10056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10057 break 2 10058 fi 10059done 10060 done 10061IFS=$as_save_IFS 10062 10063fi 10064fi 10065CXX=$ac_cv_prog_CXX 10066if test -n "$CXX"; then 10067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 10068$as_echo "$CXX" >&6; } 10069else 10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10071$as_echo "no" >&6; } 10072fi 10073 10074 10075 test -n "$CXX" && break 10076 done 10077fi 10078if test -z "$CXX"; then 10079 ac_ct_CXX=$CXX 10080 for ac_prog in mpic++ mpicxx mpiCC sxmpic++ hcp mpxlC_r mpxlC mpixlcxx_r mpixlcxx mpg++ mpc++ mpCC cmpic++ mpiFCC CCicpc pgCC pathCC sxc++ xlC_r xlC bgxlC_r bgxlC openCC sunCC crayCC g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC 10081do 10082 # Extract the first word of "$ac_prog", so it can be a program name with args. 10083set dummy $ac_prog; ac_word=$2 10084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10085$as_echo_n "checking for $ac_word... " >&6; } 10086if ${ac_cv_prog_ac_ct_CXX+:} false; then : 10087 $as_echo_n "(cached) " >&6 10088else 10089 if test -n "$ac_ct_CXX"; then 10090 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 10091else 10092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10093for as_dir in $PATH 10094do 10095 IFS=$as_save_IFS 10096 test -z "$as_dir" && as_dir=. 10097 for ac_exec_ext in '' $ac_executable_extensions; do 10098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10099 ac_cv_prog_ac_ct_CXX="$ac_prog" 10100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10101 break 2 10102 fi 10103done 10104 done 10105IFS=$as_save_IFS 10106 10107fi 10108fi 10109ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 10110if test -n "$ac_ct_CXX"; then 10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 10112$as_echo "$ac_ct_CXX" >&6; } 10113else 10114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10115$as_echo "no" >&6; } 10116fi 10117 10118 10119 test -n "$ac_ct_CXX" && break 10120done 10121 10122 if test "x$ac_ct_CXX" = x; then 10123 CXX="" 10124 else 10125 case $cross_compiling:$ac_tool_warned in 10126yes:) 10127{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10128$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10129ac_tool_warned=yes ;; 10130esac 10131 CXX=$ac_ct_CXX 10132 fi 10133fi 10134 10135 fi 10136 fi 10137 10138 10139 10140 ac_ext=cpp 10141ac_cpp='$CXXCPP $CPPFLAGS' 10142ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10143ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10144ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10145if test -z "$CXX"; then 10146 if test -n "$CCC"; then 10147 CXX=$CCC 10148 else 10149 if test -n "$ac_tool_prefix"; then 10150 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 10151 do 10152 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 10153set dummy $ac_tool_prefix$ac_prog; ac_word=$2 10154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10155$as_echo_n "checking for $ac_word... " >&6; } 10156if ${ac_cv_prog_CXX+:} false; then : 10157 $as_echo_n "(cached) " >&6 10158else 10159 if test -n "$CXX"; then 10160 ac_cv_prog_CXX="$CXX" # Let the user override the test. 10161else 10162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10163for as_dir in $PATH 10164do 10165 IFS=$as_save_IFS 10166 test -z "$as_dir" && as_dir=. 10167 for ac_exec_ext in '' $ac_executable_extensions; do 10168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10169 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 10170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10171 break 2 10172 fi 10173done 10174 done 10175IFS=$as_save_IFS 10176 10177fi 10178fi 10179CXX=$ac_cv_prog_CXX 10180if test -n "$CXX"; then 10181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 10182$as_echo "$CXX" >&6; } 10183else 10184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10185$as_echo "no" >&6; } 10186fi 10187 10188 10189 test -n "$CXX" && break 10190 done 10191fi 10192if test -z "$CXX"; then 10193 ac_ct_CXX=$CXX 10194 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 10195do 10196 # Extract the first word of "$ac_prog", so it can be a program name with args. 10197set dummy $ac_prog; ac_word=$2 10198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10199$as_echo_n "checking for $ac_word... " >&6; } 10200if ${ac_cv_prog_ac_ct_CXX+:} false; then : 10201 $as_echo_n "(cached) " >&6 10202else 10203 if test -n "$ac_ct_CXX"; then 10204 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 10205else 10206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10207for as_dir in $PATH 10208do 10209 IFS=$as_save_IFS 10210 test -z "$as_dir" && as_dir=. 10211 for ac_exec_ext in '' $ac_executable_extensions; do 10212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10213 ac_cv_prog_ac_ct_CXX="$ac_prog" 10214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10215 break 2 10216 fi 10217done 10218 done 10219IFS=$as_save_IFS 10220 10221fi 10222fi 10223ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 10224if test -n "$ac_ct_CXX"; then 10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 10226$as_echo "$ac_ct_CXX" >&6; } 10227else 10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10229$as_echo "no" >&6; } 10230fi 10231 10232 10233 test -n "$ac_ct_CXX" && break 10234done 10235 10236 if test "x$ac_ct_CXX" = x; then 10237 CXX="g++" 10238 else 10239 case $cross_compiling:$ac_tool_warned in 10240yes:) 10241{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10242$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10243ac_tool_warned=yes ;; 10244esac 10245 CXX=$ac_ct_CXX 10246 fi 10247fi 10248 10249 fi 10250fi 10251# Provide some information about the compiler. 10252$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 10253set X $ac_compile 10254ac_compiler=$2 10255for ac_option in --version -v -V -qversion; do 10256 { { ac_try="$ac_compiler $ac_option >&5" 10257case "(($ac_try" in 10258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10259 *) ac_try_echo=$ac_try;; 10260esac 10261eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 10262$as_echo "$ac_try_echo"; } >&5 10263 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 10264 ac_status=$? 10265 if test -s conftest.err; then 10266 sed '10a\ 10267... rest of stderr output deleted ... 10268 10q' conftest.err >conftest.er1 10269 cat conftest.er1 >&5 10270 fi 10271 rm -f conftest.er1 conftest.err 10272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10273 test $ac_status = 0; } 10274done 10275 10276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 10277$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 10278if ${ac_cv_cxx_compiler_gnu+:} false; then : 10279 $as_echo_n "(cached) " >&6 10280else 10281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10282/* end confdefs.h. */ 10283 10284#ifdef F77_DUMMY_MAIN 10285 10286# ifdef __cplusplus 10287 extern "C" 10288# endif 10289 int F77_DUMMY_MAIN() { return 1; } 10290 10291#endif 10292int 10293main () 10294{ 10295#ifndef __GNUC__ 10296 choke me 10297#endif 10298 10299 ; 10300 return 0; 10301} 10302_ACEOF 10303if ac_fn_cxx_try_compile "$LINENO"; then : 10304 ac_compiler_gnu=yes 10305else 10306 ac_compiler_gnu=no 10307fi 10308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10309ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 10310 10311fi 10312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 10313$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 10314if test $ac_compiler_gnu = yes; then 10315 GXX=yes 10316else 10317 GXX= 10318fi 10319ac_test_CXXFLAGS=${CXXFLAGS+set} 10320ac_save_CXXFLAGS=$CXXFLAGS 10321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 10322$as_echo_n "checking whether $CXX accepts -g... " >&6; } 10323if ${ac_cv_prog_cxx_g+:} false; then : 10324 $as_echo_n "(cached) " >&6 10325else 10326 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 10327 ac_cxx_werror_flag=yes 10328 ac_cv_prog_cxx_g=no 10329 CXXFLAGS="-g" 10330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10331/* end confdefs.h. */ 10332 10333#ifdef F77_DUMMY_MAIN 10334 10335# ifdef __cplusplus 10336 extern "C" 10337# endif 10338 int F77_DUMMY_MAIN() { return 1; } 10339 10340#endif 10341int 10342main () 10343{ 10344 10345 ; 10346 return 0; 10347} 10348_ACEOF 10349if ac_fn_cxx_try_compile "$LINENO"; then : 10350 ac_cv_prog_cxx_g=yes 10351else 10352 CXXFLAGS="" 10353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10354/* end confdefs.h. */ 10355 10356#ifdef F77_DUMMY_MAIN 10357 10358# ifdef __cplusplus 10359 extern "C" 10360# endif 10361 int F77_DUMMY_MAIN() { return 1; } 10362 10363#endif 10364int 10365main () 10366{ 10367 10368 ; 10369 return 0; 10370} 10371_ACEOF 10372if ac_fn_cxx_try_compile "$LINENO"; then : 10373 10374else 10375 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 10376 CXXFLAGS="-g" 10377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10378/* end confdefs.h. */ 10379 10380#ifdef F77_DUMMY_MAIN 10381 10382# ifdef __cplusplus 10383 extern "C" 10384# endif 10385 int F77_DUMMY_MAIN() { return 1; } 10386 10387#endif 10388int 10389main () 10390{ 10391 10392 ; 10393 return 0; 10394} 10395_ACEOF 10396if ac_fn_cxx_try_compile "$LINENO"; then : 10397 ac_cv_prog_cxx_g=yes 10398fi 10399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10400fi 10401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10402fi 10403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10404 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 10405fi 10406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 10407$as_echo "$ac_cv_prog_cxx_g" >&6; } 10408if test "$ac_test_CXXFLAGS" = set; then 10409 CXXFLAGS=$ac_save_CXXFLAGS 10410elif test $ac_cv_prog_cxx_g = yes; then 10411 if test "$GXX" = yes; then 10412 CXXFLAGS="-g -O2" 10413 else 10414 CXXFLAGS="-g" 10415 fi 10416else 10417 if test "$GXX" = yes; then 10418 CXXFLAGS="-O2" 10419 else 10420 CXXFLAGS= 10421 fi 10422fi 10423ac_ext=c 10424ac_cpp='$CPP $CPPFLAGS' 10425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10427ac_compiler_gnu=$ac_cv_c_compiler_gnu 10428 10429depcc="$CXX" am_compiler_list= 10430 10431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 10432$as_echo_n "checking dependency style of $depcc... " >&6; } 10433if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 10434 $as_echo_n "(cached) " >&6 10435else 10436 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 10437 # We make a subdir and do the tests there. Otherwise we can end up 10438 # making bogus files that we don't know about and never remove. For 10439 # instance it was reported that on HP-UX the gcc test will end up 10440 # making a dummy file named 'D' -- because '-MD' means "put the output 10441 # in D". 10442 rm -rf conftest.dir 10443 mkdir conftest.dir 10444 # Copy depcomp to subdir because otherwise we won't find it if we're 10445 # using a relative directory. 10446 cp "$am_depcomp" conftest.dir 10447 cd conftest.dir 10448 # We will build objects and dependencies in a subdirectory because 10449 # it helps to detect inapplicable dependency modes. For instance 10450 # both Tru64's cc and ICC support -MD to output dependencies as a 10451 # side effect of compilation, but ICC will put the dependencies in 10452 # the current directory while Tru64 will put them in the object 10453 # directory. 10454 mkdir sub 10455 10456 am_cv_CXX_dependencies_compiler_type=none 10457 if test "$am_compiler_list" = ""; then 10458 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 10459 fi 10460 am__universal=false 10461 case " $depcc " in #( 10462 *\ -arch\ *\ -arch\ *) am__universal=true ;; 10463 esac 10464 10465 for depmode in $am_compiler_list; do 10466 # Setup a source with many dependencies, because some compilers 10467 # like to wrap large dependency lists on column 80 (with \), and 10468 # we should not choose a depcomp mode which is confused by this. 10469 # 10470 # We need to recreate these files for each test, as the compiler may 10471 # overwrite some of them when testing with obscure command lines. 10472 # This happens at least with the AIX C compiler. 10473 : > sub/conftest.c 10474 for i in 1 2 3 4 5 6; do 10475 echo '#include "conftst'$i'.h"' >> sub/conftest.c 10476 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 10477 # Solaris 10 /bin/sh. 10478 echo '/* dummy */' > sub/conftst$i.h 10479 done 10480 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 10481 10482 # We check with '-c' and '-o' for the sake of the "dashmstdout" 10483 # mode. It turns out that the SunPro C++ compiler does not properly 10484 # handle '-M -o', and we need to detect this. Also, some Intel 10485 # versions had trouble with output in subdirs. 10486 am__obj=sub/conftest.${OBJEXT-o} 10487 am__minus_obj="-o $am__obj" 10488 case $depmode in 10489 gcc) 10490 # This depmode causes a compiler race in universal mode. 10491 test "$am__universal" = false || continue 10492 ;; 10493 nosideeffect) 10494 # After this tag, mechanisms are not by side-effect, so they'll 10495 # only be used when explicitly requested. 10496 if test "x$enable_dependency_tracking" = xyes; then 10497 continue 10498 else 10499 break 10500 fi 10501 ;; 10502 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 10503 # This compiler won't grok '-c -o', but also, the minuso test has 10504 # not run yet. These depmodes are late enough in the game, and 10505 # so weak that their functioning should not be impacted. 10506 am__obj=conftest.${OBJEXT-o} 10507 am__minus_obj= 10508 ;; 10509 none) break ;; 10510 esac 10511 if depmode=$depmode \ 10512 source=sub/conftest.c object=$am__obj \ 10513 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 10514 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 10515 >/dev/null 2>conftest.err && 10516 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 10517 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 10518 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 10519 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 10520 # icc doesn't choke on unknown options, it will just issue warnings 10521 # or remarks (even with -Werror). So we grep stderr for any message 10522 # that says an option was ignored or not supported. 10523 # When given -MP, icc 7.0 and 7.1 complain thusly: 10524 # icc: Command line warning: ignoring option '-M'; no argument required 10525 # The diagnosis changed in icc 8.0: 10526 # icc: Command line remark: option '-MP' not supported 10527 if (grep 'ignoring option' conftest.err || 10528 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 10529 am_cv_CXX_dependencies_compiler_type=$depmode 10530 break 10531 fi 10532 fi 10533 done 10534 10535 cd .. 10536 rm -rf conftest.dir 10537else 10538 am_cv_CXX_dependencies_compiler_type=none 10539fi 10540 10541fi 10542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 10543$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 10544CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 10545 10546 if 10547 test "x$enable_dependency_tracking" != xno \ 10548 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 10549 am__fastdepCXX_TRUE= 10550 am__fastdepCXX_FALSE='#' 10551else 10552 am__fastdepCXX_TRUE='#' 10553 am__fastdepCXX_FALSE= 10554fi 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565# Check for compiler 10566# Needs to be split off into an extra macro to ensure right expansion 10567# order. 10568 10569 10570if test x"$_ax_prog_cxx_mpi_mpi_wanted" = xno; then : 10571 _ax_prog_cxx_mpi_mpi_found=no 10572else 10573 10574 ac_ext=cpp 10575ac_cpp='$CXXCPP $CPPFLAGS' 10576ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10577ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10578ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10579 10580 10581 # test whether MPI::Init is available 10582 # We do not use AC_SEARCH_LIBS here, as it caches its outcome and 10583 # thus disallows corresponding calls in the other AX_PROG_*_MPI 10584 # macros. 10585 for lib in NONE mpi mpich; do 10586 save_LIBS=$LIBS 10587 if test x"$lib" = xNONE; then 10588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function MPI::Init" >&5 10589$as_echo_n "checking for function MPI::Init... " >&6; } 10590 else 10591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function MPI::Init in -l$lib" >&5 10592$as_echo_n "checking for function MPI::Init in -l$lib... " >&6; } 10593 LIBS="-l$lib $LIBS" 10594 fi 10595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10596/* end confdefs.h. */ 10597 10598 10599namespace MPI { 10600char Init(); 10601}; 10602using MPI::Init; 10603#ifdef F77_DUMMY_MAIN 10604 10605# ifdef __cplusplus 10606 extern "C" 10607# endif 10608 int F77_DUMMY_MAIN() { return 1; } 10609 10610#endif 10611int 10612main () 10613{ 10614MPI::Init; 10615 ; 10616 return 0; 10617} 10618_ACEOF 10619if ac_fn_cxx_try_link "$LINENO"; then : 10620 _ax_prog_cxx_mpi_mpi_found=yes 10621else 10622 _ax_prog_cxx_mpi_mpi_found=no 10623fi 10624rm -f core conftest.err conftest.$ac_objext \ 10625 conftest$ac_exeext conftest.$ac_ext 10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_ax_prog_cxx_mpi_mpi_found" >&5 10627$as_echo "$_ax_prog_cxx_mpi_mpi_found" >&6; } 10628 if test "x$_ax_prog_cxx_mpi_mpi_found" = "xyes"; then 10629 break; 10630 fi 10631 LIBS=$save_LIBS 10632 done 10633 10634 # Check for header 10635 if test x"$_ax_prog_cxx_mpi_mpi_found" = xyes; then : 10636 10637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5 10638$as_echo_n "checking for mpi.h... " >&6; } 10639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10640/* end confdefs.h. */ 10641#include <mpi.h> 10642#ifdef F77_DUMMY_MAIN 10643 10644# ifdef __cplusplus 10645 extern "C" 10646# endif 10647 int F77_DUMMY_MAIN() { return 1; } 10648 10649#endif 10650int 10651main () 10652{ 10653 10654 ; 10655 return 0; 10656} 10657_ACEOF 10658if ac_fn_cxx_try_compile "$LINENO"; then : 10659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10660$as_echo "yes" >&6; } 10661else 10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10663$as_echo "no" >&6; } 10664 _ax_prog_cxx_mpi_mpi_found=no 10665 10666fi 10667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10668 10669fi 10670 ac_ext=c 10671ac_cpp='$CPP $CPPFLAGS' 10672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10674ac_compiler_gnu=$ac_cv_c_compiler_gnu 10675 10676 10677fi 10678 10679# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 10680if test x"$_ax_prog_cxx_mpi_mpi_found" = xyes; then : 10681 10682 10683$as_echo "#define HAVE_MPI 1" >>confdefs.h 10684 10685 : 10686 10687else 10688 10689 10690 : 10691 10692fi 10693 10694 10695CXX_DIRNAME=`$as_dirname -- "$CXX" || 10696$as_expr X"$CXX" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10697 X"$CXX" : 'X\(//\)[^/]' \| \ 10698 X"$CXX" : 'X\(//\)$' \| \ 10699 X"$CXX" : 'X\(/\)' \| . 2>/dev/null || 10700$as_echo X"$CXX" | 10701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 10702 s//\1/ 10703 q 10704 } 10705 /^X\(\/\/\)[^/].*/{ 10706 s//\1/ 10707 q 10708 } 10709 /^X\(\/\/\)$/{ 10710 s//\1/ 10711 q 10712 } 10713 /^X\(\/\).*/{ 10714 s//\1/ 10715 q 10716 } 10717 s/.*/./; q'` 10718CXX_BASENAME=`$as_basename -- "$CXX" || 10719$as_expr X/"$CXX" : '.*/\([^/][^/]*\)/*$' \| \ 10720 X"$CXX" : 'X\(//\)$' \| \ 10721 X"$CXX" : 'X\(/\)' \| . 2>/dev/null || 10722$as_echo X/"$CXX" | 10723 sed '/^.*\/\([^/][^/]*\)\/*$/{ 10724 s//\1/ 10725 q 10726 } 10727 /^X\/\(\/\/\)$/{ 10728 s//\1/ 10729 q 10730 } 10731 /^X\/\(\/\).*/{ 10732 s//\1/ 10733 q 10734 } 10735 s/.*/./; q'` 10736# Extract the first word of "$CXX_BASENAME", so it can be a program name with args. 10737set dummy $CXX_BASENAME; ac_word=$2 10738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10739$as_echo_n "checking for $ac_word... " >&6; } 10740if ${ac_cv_prog_CXXOK+:} false; then : 10741 $as_echo_n "(cached) " >&6 10742else 10743 if test -n "$CXXOK"; then 10744 ac_cv_prog_CXXOK="$CXXOK" # Let the user override the test. 10745else 10746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10747for as_dir in $PATH$PATH_SEPARATOR$CXX_DIRNAME$PATH_SEPARATOR 10748do 10749 IFS=$as_save_IFS 10750 test -z "$as_dir" && as_dir=. 10751 for ac_exec_ext in '' $ac_executable_extensions; do 10752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10753 ac_cv_prog_CXXOK="yes" 10754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10755 break 2 10756 fi 10757done 10758 done 10759IFS=$as_save_IFS 10760 10761 test -z "$ac_cv_prog_CXXOK" && ac_cv_prog_CXXOK="no" 10762fi 10763fi 10764CXXOK=$ac_cv_prog_CXXOK 10765if test -n "$CXXOK"; then 10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXOK" >&5 10767$as_echo "$CXXOK" >&6; } 10768else 10769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10770$as_echo "no" >&6; } 10771fi 10772 10773 10774if test "X$CXXOK" = "Xno"; then 10775 as_fn_error $? "Can't find a valid CXX compiler, please verify your env. var. PATH" "$LINENO" 5 10776fi 10777 10778## Provide MED2.3 API symbols 10779 10780 10781# Check whether --enable-api23 was given. 10782if test "${enable_api23+set}" = set; then : 10783 enableval=$enable_api23; med_api23=$enableval 10784else 10785 med_api23=yes 10786fi 10787 10788if test "x$med_api23" = "xyes" 10789then 10790 MED_API_23="-DMED_API_23=1" 10791 10792$as_echo "#define MED_API_23 1" >>confdefs.h 10793 10794 { $as_echo "$as_me:${as_lineno-$LINENO}: The complete 2.3.6 API is provided." >&5 10795$as_echo "$as_me: The complete 2.3.6 API is provided." >&6;} 10796else 10797 MED_API_23="-DMED_API_23=0" 10798 10799$as_echo "#define MED_API_23 0" >>confdefs.h 10800 10801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The complete 2.3.6 API is not provided." >&5 10802$as_echo "$as_me: WARNING: The complete 2.3.6 API is not provided." >&2;} 10803fi 10804 10805 10806 if test "x$med_api23" = "xyes" ; then 10807 ENABLE_API23_TRUE= 10808 ENABLE_API23_FALSE='#' 10809else 10810 ENABLE_API23_TRUE='#' 10811 ENABLE_API23_FALSE= 10812fi 10813 10814 10815 10816 10817# Libtool 10818enable_win32_dll=yes 10819 10820case $host in 10821*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 10822 if test -n "$ac_tool_prefix"; then 10823 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 10824set dummy ${ac_tool_prefix}as; ac_word=$2 10825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10826$as_echo_n "checking for $ac_word... " >&6; } 10827if ${ac_cv_prog_AS+:} false; then : 10828 $as_echo_n "(cached) " >&6 10829else 10830 if test -n "$AS"; then 10831 ac_cv_prog_AS="$AS" # Let the user override the test. 10832else 10833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10834for as_dir in $PATH 10835do 10836 IFS=$as_save_IFS 10837 test -z "$as_dir" && as_dir=. 10838 for ac_exec_ext in '' $ac_executable_extensions; do 10839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10840 ac_cv_prog_AS="${ac_tool_prefix}as" 10841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10842 break 2 10843 fi 10844done 10845 done 10846IFS=$as_save_IFS 10847 10848fi 10849fi 10850AS=$ac_cv_prog_AS 10851if test -n "$AS"; then 10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 10853$as_echo "$AS" >&6; } 10854else 10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10856$as_echo "no" >&6; } 10857fi 10858 10859 10860fi 10861if test -z "$ac_cv_prog_AS"; then 10862 ac_ct_AS=$AS 10863 # Extract the first word of "as", so it can be a program name with args. 10864set dummy as; ac_word=$2 10865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10866$as_echo_n "checking for $ac_word... " >&6; } 10867if ${ac_cv_prog_ac_ct_AS+:} false; then : 10868 $as_echo_n "(cached) " >&6 10869else 10870 if test -n "$ac_ct_AS"; then 10871 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 10872else 10873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10874for as_dir in $PATH 10875do 10876 IFS=$as_save_IFS 10877 test -z "$as_dir" && as_dir=. 10878 for ac_exec_ext in '' $ac_executable_extensions; do 10879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10880 ac_cv_prog_ac_ct_AS="as" 10881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10882 break 2 10883 fi 10884done 10885 done 10886IFS=$as_save_IFS 10887 10888fi 10889fi 10890ac_ct_AS=$ac_cv_prog_ac_ct_AS 10891if test -n "$ac_ct_AS"; then 10892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 10893$as_echo "$ac_ct_AS" >&6; } 10894else 10895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10896$as_echo "no" >&6; } 10897fi 10898 10899 if test "x$ac_ct_AS" = x; then 10900 AS="false" 10901 else 10902 case $cross_compiling:$ac_tool_warned in 10903yes:) 10904{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10905$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10906ac_tool_warned=yes ;; 10907esac 10908 AS=$ac_ct_AS 10909 fi 10910else 10911 AS="$ac_cv_prog_AS" 10912fi 10913 10914 if test -n "$ac_tool_prefix"; then 10915 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 10916set dummy ${ac_tool_prefix}dlltool; ac_word=$2 10917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10918$as_echo_n "checking for $ac_word... " >&6; } 10919if ${ac_cv_prog_DLLTOOL+:} false; then : 10920 $as_echo_n "(cached) " >&6 10921else 10922 if test -n "$DLLTOOL"; then 10923 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 10924else 10925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10926for as_dir in $PATH 10927do 10928 IFS=$as_save_IFS 10929 test -z "$as_dir" && as_dir=. 10930 for ac_exec_ext in '' $ac_executable_extensions; do 10931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10932 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 10933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10934 break 2 10935 fi 10936done 10937 done 10938IFS=$as_save_IFS 10939 10940fi 10941fi 10942DLLTOOL=$ac_cv_prog_DLLTOOL 10943if test -n "$DLLTOOL"; then 10944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 10945$as_echo "$DLLTOOL" >&6; } 10946else 10947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10948$as_echo "no" >&6; } 10949fi 10950 10951 10952fi 10953if test -z "$ac_cv_prog_DLLTOOL"; then 10954 ac_ct_DLLTOOL=$DLLTOOL 10955 # Extract the first word of "dlltool", so it can be a program name with args. 10956set dummy dlltool; ac_word=$2 10957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10958$as_echo_n "checking for $ac_word... " >&6; } 10959if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 10960 $as_echo_n "(cached) " >&6 10961else 10962 if test -n "$ac_ct_DLLTOOL"; then 10963 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 10964else 10965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10966for as_dir in $PATH 10967do 10968 IFS=$as_save_IFS 10969 test -z "$as_dir" && as_dir=. 10970 for ac_exec_ext in '' $ac_executable_extensions; do 10971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10972 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 10973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10974 break 2 10975 fi 10976done 10977 done 10978IFS=$as_save_IFS 10979 10980fi 10981fi 10982ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 10983if test -n "$ac_ct_DLLTOOL"; then 10984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 10985$as_echo "$ac_ct_DLLTOOL" >&6; } 10986else 10987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10988$as_echo "no" >&6; } 10989fi 10990 10991 if test "x$ac_ct_DLLTOOL" = x; then 10992 DLLTOOL="false" 10993 else 10994 case $cross_compiling:$ac_tool_warned in 10995yes:) 10996{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10997$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10998ac_tool_warned=yes ;; 10999esac 11000 DLLTOOL=$ac_ct_DLLTOOL 11001 fi 11002else 11003 DLLTOOL="$ac_cv_prog_DLLTOOL" 11004fi 11005 11006 if test -n "$ac_tool_prefix"; then 11007 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 11008set dummy ${ac_tool_prefix}objdump; ac_word=$2 11009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11010$as_echo_n "checking for $ac_word... " >&6; } 11011if ${ac_cv_prog_OBJDUMP+:} false; then : 11012 $as_echo_n "(cached) " >&6 11013else 11014 if test -n "$OBJDUMP"; then 11015 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 11016else 11017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11018for as_dir in $PATH 11019do 11020 IFS=$as_save_IFS 11021 test -z "$as_dir" && as_dir=. 11022 for ac_exec_ext in '' $ac_executable_extensions; do 11023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11024 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 11025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11026 break 2 11027 fi 11028done 11029 done 11030IFS=$as_save_IFS 11031 11032fi 11033fi 11034OBJDUMP=$ac_cv_prog_OBJDUMP 11035if test -n "$OBJDUMP"; then 11036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 11037$as_echo "$OBJDUMP" >&6; } 11038else 11039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11040$as_echo "no" >&6; } 11041fi 11042 11043 11044fi 11045if test -z "$ac_cv_prog_OBJDUMP"; then 11046 ac_ct_OBJDUMP=$OBJDUMP 11047 # Extract the first word of "objdump", so it can be a program name with args. 11048set dummy objdump; ac_word=$2 11049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11050$as_echo_n "checking for $ac_word... " >&6; } 11051if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 11052 $as_echo_n "(cached) " >&6 11053else 11054 if test -n "$ac_ct_OBJDUMP"; then 11055 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 11056else 11057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11058for as_dir in $PATH 11059do 11060 IFS=$as_save_IFS 11061 test -z "$as_dir" && as_dir=. 11062 for ac_exec_ext in '' $ac_executable_extensions; do 11063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11064 ac_cv_prog_ac_ct_OBJDUMP="objdump" 11065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11066 break 2 11067 fi 11068done 11069 done 11070IFS=$as_save_IFS 11071 11072fi 11073fi 11074ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 11075if test -n "$ac_ct_OBJDUMP"; then 11076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 11077$as_echo "$ac_ct_OBJDUMP" >&6; } 11078else 11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11080$as_echo "no" >&6; } 11081fi 11082 11083 if test "x$ac_ct_OBJDUMP" = x; then 11084 OBJDUMP="false" 11085 else 11086 case $cross_compiling:$ac_tool_warned in 11087yes:) 11088{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11089$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11090ac_tool_warned=yes ;; 11091esac 11092 OBJDUMP=$ac_ct_OBJDUMP 11093 fi 11094else 11095 OBJDUMP="$ac_cv_prog_OBJDUMP" 11096fi 11097 11098 ;; 11099esac 11100 11101test -z "$AS" && AS=as 11102 11103 11104 11105 11106 11107test -z "$DLLTOOL" && DLLTOOL=dlltool 11108 11109 11110 11111 11112 11113test -z "$OBJDUMP" && OBJDUMP=objdump 11114 11115 11116 11117 11118 11119 11120 11121case `pwd` in 11122 *\ * | *\ *) 11123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 11124$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 11125esac 11126 11127 11128 11129macro_version='2.4.6' 11130macro_revision='2.4.6' 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144ltmain=$ac_aux_dir/ltmain.sh 11145 11146# Backslashify metacharacters that are still active within 11147# double-quoted strings. 11148sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 11149 11150# Same as above, but do not quote variable references. 11151double_quote_subst='s/\(["`\\]\)/\\\1/g' 11152 11153# Sed substitution to delay expansion of an escaped shell variable in a 11154# double_quote_subst'ed string. 11155delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 11156 11157# Sed substitution to delay expansion of an escaped single quote. 11158delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 11159 11160# Sed substitution to avoid accidental globbing in evaled expressions 11161no_glob_subst='s/\*/\\\*/g' 11162 11163ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11164ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 11165ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 11166 11167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 11168$as_echo_n "checking how to print strings... " >&6; } 11169# Test print first, because it will be a builtin if present. 11170if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 11171 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 11172 ECHO='print -r --' 11173elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 11174 ECHO='printf %s\n' 11175else 11176 # Use this function as a fallback that always works. 11177 func_fallback_echo () 11178 { 11179 eval 'cat <<_LTECHO_EOF 11180$1 11181_LTECHO_EOF' 11182 } 11183 ECHO='func_fallback_echo' 11184fi 11185 11186# func_echo_all arg... 11187# Invoke $ECHO with all args, space-separated. 11188func_echo_all () 11189{ 11190 $ECHO "" 11191} 11192 11193case $ECHO in 11194 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 11195$as_echo "printf" >&6; } ;; 11196 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 11197$as_echo "print -r" >&6; } ;; 11198 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 11199$as_echo "cat" >&6; } ;; 11200esac 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 11216$as_echo_n "checking for a sed that does not truncate output... " >&6; } 11217if ${ac_cv_path_SED+:} false; then : 11218 $as_echo_n "(cached) " >&6 11219else 11220 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 11221 for ac_i in 1 2 3 4 5 6 7; do 11222 ac_script="$ac_script$as_nl$ac_script" 11223 done 11224 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 11225 { ac_script=; unset ac_script;} 11226 if test -z "$SED"; then 11227 ac_path_SED_found=false 11228 # Loop through the user's path and test for each of PROGNAME-LIST 11229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11230for as_dir in $PATH 11231do 11232 IFS=$as_save_IFS 11233 test -z "$as_dir" && as_dir=. 11234 for ac_prog in sed gsed; do 11235 for ac_exec_ext in '' $ac_executable_extensions; do 11236 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 11237 as_fn_executable_p "$ac_path_SED" || continue 11238# Check for GNU ac_path_SED and select it if it is found. 11239 # Check for GNU $ac_path_SED 11240case `"$ac_path_SED" --version 2>&1` in 11241*GNU*) 11242 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 11243*) 11244 ac_count=0 11245 $as_echo_n 0123456789 >"conftest.in" 11246 while : 11247 do 11248 cat "conftest.in" "conftest.in" >"conftest.tmp" 11249 mv "conftest.tmp" "conftest.in" 11250 cp "conftest.in" "conftest.nl" 11251 $as_echo '' >> "conftest.nl" 11252 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 11253 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11254 as_fn_arith $ac_count + 1 && ac_count=$as_val 11255 if test $ac_count -gt ${ac_path_SED_max-0}; then 11256 # Best one so far, save it but keep looking for a better one 11257 ac_cv_path_SED="$ac_path_SED" 11258 ac_path_SED_max=$ac_count 11259 fi 11260 # 10*(2^10) chars as input seems more than enough 11261 test $ac_count -gt 10 && break 11262 done 11263 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11264esac 11265 11266 $ac_path_SED_found && break 3 11267 done 11268 done 11269 done 11270IFS=$as_save_IFS 11271 if test -z "$ac_cv_path_SED"; then 11272 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 11273 fi 11274else 11275 ac_cv_path_SED=$SED 11276fi 11277 11278fi 11279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 11280$as_echo "$ac_cv_path_SED" >&6; } 11281 SED="$ac_cv_path_SED" 11282 rm -f conftest.sed 11283 11284test -z "$SED" && SED=sed 11285Xsed="$SED -e 1s/^X//" 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 11298$as_echo_n "checking for fgrep... " >&6; } 11299if ${ac_cv_path_FGREP+:} false; then : 11300 $as_echo_n "(cached) " >&6 11301else 11302 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 11303 then ac_cv_path_FGREP="$GREP -F" 11304 else 11305 if test -z "$FGREP"; then 11306 ac_path_FGREP_found=false 11307 # Loop through the user's path and test for each of PROGNAME-LIST 11308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11309for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11310do 11311 IFS=$as_save_IFS 11312 test -z "$as_dir" && as_dir=. 11313 for ac_prog in fgrep; do 11314 for ac_exec_ext in '' $ac_executable_extensions; do 11315 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 11316 as_fn_executable_p "$ac_path_FGREP" || continue 11317# Check for GNU ac_path_FGREP and select it if it is found. 11318 # Check for GNU $ac_path_FGREP 11319case `"$ac_path_FGREP" --version 2>&1` in 11320*GNU*) 11321 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 11322*) 11323 ac_count=0 11324 $as_echo_n 0123456789 >"conftest.in" 11325 while : 11326 do 11327 cat "conftest.in" "conftest.in" >"conftest.tmp" 11328 mv "conftest.tmp" "conftest.in" 11329 cp "conftest.in" "conftest.nl" 11330 $as_echo 'FGREP' >> "conftest.nl" 11331 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 11332 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11333 as_fn_arith $ac_count + 1 && ac_count=$as_val 11334 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 11335 # Best one so far, save it but keep looking for a better one 11336 ac_cv_path_FGREP="$ac_path_FGREP" 11337 ac_path_FGREP_max=$ac_count 11338 fi 11339 # 10*(2^10) chars as input seems more than enough 11340 test $ac_count -gt 10 && break 11341 done 11342 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11343esac 11344 11345 $ac_path_FGREP_found && break 3 11346 done 11347 done 11348 done 11349IFS=$as_save_IFS 11350 if test -z "$ac_cv_path_FGREP"; then 11351 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11352 fi 11353else 11354 ac_cv_path_FGREP=$FGREP 11355fi 11356 11357 fi 11358fi 11359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 11360$as_echo "$ac_cv_path_FGREP" >&6; } 11361 FGREP="$ac_cv_path_FGREP" 11362 11363 11364test -z "$GREP" && GREP=grep 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384# Check whether --with-gnu-ld was given. 11385if test "${with_gnu_ld+set}" = set; then : 11386 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 11387else 11388 with_gnu_ld=no 11389fi 11390 11391ac_prog=ld 11392if test yes = "$GCC"; then 11393 # Check if gcc -print-prog-name=ld gives a path. 11394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 11395$as_echo_n "checking for ld used by $CC... " >&6; } 11396 case $host in 11397 *-*-mingw*) 11398 # gcc leaves a trailing carriage return, which upsets mingw 11399 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11400 *) 11401 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11402 esac 11403 case $ac_prog in 11404 # Accept absolute paths. 11405 [\\/]* | ?:[\\/]*) 11406 re_direlt='/[^/][^/]*/\.\./' 11407 # Canonicalize the pathname of ld 11408 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 11409 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 11410 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 11411 done 11412 test -z "$LD" && LD=$ac_prog 11413 ;; 11414 "") 11415 # If it fails, then pretend we aren't using GCC. 11416 ac_prog=ld 11417 ;; 11418 *) 11419 # If it is relative, then search for the first ld in PATH. 11420 with_gnu_ld=unknown 11421 ;; 11422 esac 11423elif test yes = "$with_gnu_ld"; then 11424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11425$as_echo_n "checking for GNU ld... " >&6; } 11426else 11427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11428$as_echo_n "checking for non-GNU ld... " >&6; } 11429fi 11430if ${lt_cv_path_LD+:} false; then : 11431 $as_echo_n "(cached) " >&6 11432else 11433 if test -z "$LD"; then 11434 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11435 for ac_dir in $PATH; do 11436 IFS=$lt_save_ifs 11437 test -z "$ac_dir" && ac_dir=. 11438 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11439 lt_cv_path_LD=$ac_dir/$ac_prog 11440 # Check to see if the program is GNU ld. I'd rather use --version, 11441 # but apparently some variants of GNU ld only accept -v. 11442 # Break only if it was the GNU/non-GNU ld that we prefer. 11443 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11444 *GNU* | *'with BFD'*) 11445 test no != "$with_gnu_ld" && break 11446 ;; 11447 *) 11448 test yes != "$with_gnu_ld" && break 11449 ;; 11450 esac 11451 fi 11452 done 11453 IFS=$lt_save_ifs 11454else 11455 lt_cv_path_LD=$LD # Let the user override the test with a path. 11456fi 11457fi 11458 11459LD=$lt_cv_path_LD 11460if test -n "$LD"; then 11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11462$as_echo "$LD" >&6; } 11463else 11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11465$as_echo "no" >&6; } 11466fi 11467test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 11468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11469$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11470if ${lt_cv_prog_gnu_ld+:} false; then : 11471 $as_echo_n "(cached) " >&6 11472else 11473 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11474case `$LD -v 2>&1 </dev/null` in 11475*GNU* | *'with BFD'*) 11476 lt_cv_prog_gnu_ld=yes 11477 ;; 11478*) 11479 lt_cv_prog_gnu_ld=no 11480 ;; 11481esac 11482fi 11483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 11484$as_echo "$lt_cv_prog_gnu_ld" >&6; } 11485with_gnu_ld=$lt_cv_prog_gnu_ld 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 11496$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 11497if ${lt_cv_path_NM+:} false; then : 11498 $as_echo_n "(cached) " >&6 11499else 11500 if test -n "$NM"; then 11501 # Let the user override the test. 11502 lt_cv_path_NM=$NM 11503else 11504 lt_nm_to_check=${ac_tool_prefix}nm 11505 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 11506 lt_nm_to_check="$lt_nm_to_check nm" 11507 fi 11508 for lt_tmp_nm in $lt_nm_to_check; do 11509 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11510 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 11511 IFS=$lt_save_ifs 11512 test -z "$ac_dir" && ac_dir=. 11513 tmp_nm=$ac_dir/$lt_tmp_nm 11514 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 11515 # Check to see if the nm accepts a BSD-compat flag. 11516 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 11517 # nm: unknown option "B" ignored 11518 # Tru64's nm complains that /dev/null is an invalid object file 11519 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 11520 case $build_os in 11521 mingw*) lt_bad_file=conftest.nm/nofile ;; 11522 *) lt_bad_file=/dev/null ;; 11523 esac 11524 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 11525 *$lt_bad_file* | *'Invalid file or object type'*) 11526 lt_cv_path_NM="$tmp_nm -B" 11527 break 2 11528 ;; 11529 *) 11530 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 11531 */dev/null*) 11532 lt_cv_path_NM="$tmp_nm -p" 11533 break 2 11534 ;; 11535 *) 11536 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 11537 continue # so that we can try to find one that supports BSD flags 11538 ;; 11539 esac 11540 ;; 11541 esac 11542 fi 11543 done 11544 IFS=$lt_save_ifs 11545 done 11546 : ${lt_cv_path_NM=no} 11547fi 11548fi 11549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 11550$as_echo "$lt_cv_path_NM" >&6; } 11551if test no != "$lt_cv_path_NM"; then 11552 NM=$lt_cv_path_NM 11553else 11554 # Didn't find any BSD compatible name lister, look for dumpbin. 11555 if test -n "$DUMPBIN"; then : 11556 # Let the user override the test. 11557 else 11558 if test -n "$ac_tool_prefix"; then 11559 for ac_prog in dumpbin "link -dump" 11560 do 11561 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11562set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11564$as_echo_n "checking for $ac_word... " >&6; } 11565if ${ac_cv_prog_DUMPBIN+:} false; then : 11566 $as_echo_n "(cached) " >&6 11567else 11568 if test -n "$DUMPBIN"; then 11569 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 11570else 11571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11572for as_dir in $PATH 11573do 11574 IFS=$as_save_IFS 11575 test -z "$as_dir" && as_dir=. 11576 for ac_exec_ext in '' $ac_executable_extensions; do 11577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11578 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 11579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11580 break 2 11581 fi 11582done 11583 done 11584IFS=$as_save_IFS 11585 11586fi 11587fi 11588DUMPBIN=$ac_cv_prog_DUMPBIN 11589if test -n "$DUMPBIN"; then 11590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 11591$as_echo "$DUMPBIN" >&6; } 11592else 11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11594$as_echo "no" >&6; } 11595fi 11596 11597 11598 test -n "$DUMPBIN" && break 11599 done 11600fi 11601if test -z "$DUMPBIN"; then 11602 ac_ct_DUMPBIN=$DUMPBIN 11603 for ac_prog in dumpbin "link -dump" 11604do 11605 # Extract the first word of "$ac_prog", so it can be a program name with args. 11606set dummy $ac_prog; ac_word=$2 11607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11608$as_echo_n "checking for $ac_word... " >&6; } 11609if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 11610 $as_echo_n "(cached) " >&6 11611else 11612 if test -n "$ac_ct_DUMPBIN"; then 11613 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 11614else 11615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11616for as_dir in $PATH 11617do 11618 IFS=$as_save_IFS 11619 test -z "$as_dir" && as_dir=. 11620 for ac_exec_ext in '' $ac_executable_extensions; do 11621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11622 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 11623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11624 break 2 11625 fi 11626done 11627 done 11628IFS=$as_save_IFS 11629 11630fi 11631fi 11632ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 11633if test -n "$ac_ct_DUMPBIN"; then 11634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 11635$as_echo "$ac_ct_DUMPBIN" >&6; } 11636else 11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11638$as_echo "no" >&6; } 11639fi 11640 11641 11642 test -n "$ac_ct_DUMPBIN" && break 11643done 11644 11645 if test "x$ac_ct_DUMPBIN" = x; then 11646 DUMPBIN=":" 11647 else 11648 case $cross_compiling:$ac_tool_warned in 11649yes:) 11650{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11651$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11652ac_tool_warned=yes ;; 11653esac 11654 DUMPBIN=$ac_ct_DUMPBIN 11655 fi 11656fi 11657 11658 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 11659 *COFF*) 11660 DUMPBIN="$DUMPBIN -symbols -headers" 11661 ;; 11662 *) 11663 DUMPBIN=: 11664 ;; 11665 esac 11666 fi 11667 11668 if test : != "$DUMPBIN"; then 11669 NM=$DUMPBIN 11670 fi 11671fi 11672test -z "$NM" && NM=nm 11673 11674 11675 11676 11677 11678 11679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 11680$as_echo_n "checking the name lister ($NM) interface... " >&6; } 11681if ${lt_cv_nm_interface+:} false; then : 11682 $as_echo_n "(cached) " >&6 11683else 11684 lt_cv_nm_interface="BSD nm" 11685 echo "int some_variable = 0;" > conftest.$ac_ext 11686 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 11687 (eval "$ac_compile" 2>conftest.err) 11688 cat conftest.err >&5 11689 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 11690 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 11691 cat conftest.err >&5 11692 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 11693 cat conftest.out >&5 11694 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 11695 lt_cv_nm_interface="MS dumpbin" 11696 fi 11697 rm -f conftest* 11698fi 11699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 11700$as_echo "$lt_cv_nm_interface" >&6; } 11701 11702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 11703$as_echo_n "checking whether ln -s works... " >&6; } 11704LN_S=$as_ln_s 11705if test "$LN_S" = "ln -s"; then 11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11707$as_echo "yes" >&6; } 11708else 11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 11710$as_echo "no, using $LN_S" >&6; } 11711fi 11712 11713# find the maximum length of command line arguments 11714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 11715$as_echo_n "checking the maximum length of command line arguments... " >&6; } 11716if ${lt_cv_sys_max_cmd_len+:} false; then : 11717 $as_echo_n "(cached) " >&6 11718else 11719 i=0 11720 teststring=ABCD 11721 11722 case $build_os in 11723 msdosdjgpp*) 11724 # On DJGPP, this test can blow up pretty badly due to problems in libc 11725 # (any single argument exceeding 2000 bytes causes a buffer overrun 11726 # during glob expansion). Even if it were fixed, the result of this 11727 # check would be larger than it should be. 11728 lt_cv_sys_max_cmd_len=12288; # 12K is about right 11729 ;; 11730 11731 gnu*) 11732 # Under GNU Hurd, this test is not required because there is 11733 # no limit to the length of command line arguments. 11734 # Libtool will interpret -1 as no limit whatsoever 11735 lt_cv_sys_max_cmd_len=-1; 11736 ;; 11737 11738 cygwin* | mingw* | cegcc*) 11739 # On Win9x/ME, this test blows up -- it succeeds, but takes 11740 # about 5 minutes as the teststring grows exponentially. 11741 # Worse, since 9x/ME are not pre-emptively multitasking, 11742 # you end up with a "frozen" computer, even though with patience 11743 # the test eventually succeeds (with a max line length of 256k). 11744 # Instead, let's just punt: use the minimum linelength reported by 11745 # all of the supported platforms: 8192 (on NT/2K/XP). 11746 lt_cv_sys_max_cmd_len=8192; 11747 ;; 11748 11749 mint*) 11750 # On MiNT this can take a long time and run out of memory. 11751 lt_cv_sys_max_cmd_len=8192; 11752 ;; 11753 11754 amigaos*) 11755 # On AmigaOS with pdksh, this test takes hours, literally. 11756 # So we just punt and use a minimum line length of 8192. 11757 lt_cv_sys_max_cmd_len=8192; 11758 ;; 11759 11760 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 11761 # This has been around since 386BSD, at least. Likely further. 11762 if test -x /sbin/sysctl; then 11763 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 11764 elif test -x /usr/sbin/sysctl; then 11765 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 11766 else 11767 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 11768 fi 11769 # And add a safety zone 11770 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11771 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11772 ;; 11773 11774 interix*) 11775 # We know the value 262144 and hardcode it with a safety zone (like BSD) 11776 lt_cv_sys_max_cmd_len=196608 11777 ;; 11778 11779 os2*) 11780 # The test takes a long time on OS/2. 11781 lt_cv_sys_max_cmd_len=8192 11782 ;; 11783 11784 osf*) 11785 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 11786 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 11787 # nice to cause kernel panics so lets avoid the loop below. 11788 # First set a reasonable default. 11789 lt_cv_sys_max_cmd_len=16384 11790 # 11791 if test -x /sbin/sysconfig; then 11792 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 11793 *1*) lt_cv_sys_max_cmd_len=-1 ;; 11794 esac 11795 fi 11796 ;; 11797 sco3.2v5*) 11798 lt_cv_sys_max_cmd_len=102400 11799 ;; 11800 sysv5* | sco5v6* | sysv4.2uw2*) 11801 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 11802 if test -n "$kargmax"; then 11803 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 11804 else 11805 lt_cv_sys_max_cmd_len=32768 11806 fi 11807 ;; 11808 *) 11809 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 11810 if test -n "$lt_cv_sys_max_cmd_len" && \ 11811 test undefined != "$lt_cv_sys_max_cmd_len"; then 11812 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11813 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11814 else 11815 # Make teststring a little bigger before we do anything with it. 11816 # a 1K string should be a reasonable start. 11817 for i in 1 2 3 4 5 6 7 8; do 11818 teststring=$teststring$teststring 11819 done 11820 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 11821 # If test is not a shell built-in, we'll probably end up computing a 11822 # maximum length that is only half of the actual maximum length, but 11823 # we can't tell. 11824 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 11825 = "X$teststring$teststring"; } >/dev/null 2>&1 && 11826 test 17 != "$i" # 1/2 MB should be enough 11827 do 11828 i=`expr $i + 1` 11829 teststring=$teststring$teststring 11830 done 11831 # Only check the string length outside the loop. 11832 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 11833 teststring= 11834 # Add a significant safety factor because C++ compilers can tack on 11835 # massive amounts of additional arguments before passing them to the 11836 # linker. It appears as though 1/2 is a usable value. 11837 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 11838 fi 11839 ;; 11840 esac 11841 11842fi 11843 11844if test -n "$lt_cv_sys_max_cmd_len"; then 11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 11846$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 11847else 11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 11849$as_echo "none" >&6; } 11850fi 11851max_cmd_len=$lt_cv_sys_max_cmd_len 11852 11853 11854 11855 11856 11857 11858: ${CP="cp -f"} 11859: ${MV="mv -f"} 11860: ${RM="rm -f"} 11861 11862if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 11863 lt_unset=unset 11864else 11865 lt_unset=false 11866fi 11867 11868 11869 11870 11871 11872# test EBCDIC or ASCII 11873case `echo X|tr X '\101'` in 11874 A) # ASCII based system 11875 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 11876 lt_SP2NL='tr \040 \012' 11877 lt_NL2SP='tr \015\012 \040\040' 11878 ;; 11879 *) # EBCDIC based system 11880 lt_SP2NL='tr \100 \n' 11881 lt_NL2SP='tr \r\n \100\100' 11882 ;; 11883esac 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 11894$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 11895if ${lt_cv_to_host_file_cmd+:} false; then : 11896 $as_echo_n "(cached) " >&6 11897else 11898 case $host in 11899 *-*-mingw* ) 11900 case $build in 11901 *-*-mingw* ) # actually msys 11902 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 11903 ;; 11904 *-*-cygwin* ) 11905 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 11906 ;; 11907 * ) # otherwise, assume *nix 11908 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 11909 ;; 11910 esac 11911 ;; 11912 *-*-cygwin* ) 11913 case $build in 11914 *-*-mingw* ) # actually msys 11915 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 11916 ;; 11917 *-*-cygwin* ) 11918 lt_cv_to_host_file_cmd=func_convert_file_noop 11919 ;; 11920 * ) # otherwise, assume *nix 11921 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 11922 ;; 11923 esac 11924 ;; 11925 * ) # unhandled hosts (and "normal" native builds) 11926 lt_cv_to_host_file_cmd=func_convert_file_noop 11927 ;; 11928esac 11929 11930fi 11931 11932to_host_file_cmd=$lt_cv_to_host_file_cmd 11933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 11934$as_echo "$lt_cv_to_host_file_cmd" >&6; } 11935 11936 11937 11938 11939 11940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 11941$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 11942if ${lt_cv_to_tool_file_cmd+:} false; then : 11943 $as_echo_n "(cached) " >&6 11944else 11945 #assume ordinary cross tools, or native build. 11946lt_cv_to_tool_file_cmd=func_convert_file_noop 11947case $host in 11948 *-*-mingw* ) 11949 case $build in 11950 *-*-mingw* ) # actually msys 11951 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 11952 ;; 11953 esac 11954 ;; 11955esac 11956 11957fi 11958 11959to_tool_file_cmd=$lt_cv_to_tool_file_cmd 11960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 11961$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 11962 11963 11964 11965 11966 11967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 11968$as_echo_n "checking for $LD option to reload object files... " >&6; } 11969if ${lt_cv_ld_reload_flag+:} false; then : 11970 $as_echo_n "(cached) " >&6 11971else 11972 lt_cv_ld_reload_flag='-r' 11973fi 11974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 11975$as_echo "$lt_cv_ld_reload_flag" >&6; } 11976reload_flag=$lt_cv_ld_reload_flag 11977case $reload_flag in 11978"" | " "*) ;; 11979*) reload_flag=" $reload_flag" ;; 11980esac 11981reload_cmds='$LD$reload_flag -o $output$reload_objs' 11982case $host_os in 11983 cygwin* | mingw* | pw32* | cegcc*) 11984 if test yes != "$GCC"; then 11985 reload_cmds=false 11986 fi 11987 ;; 11988 darwin*) 11989 if test yes = "$GCC"; then 11990 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 11991 else 11992 reload_cmds='$LD$reload_flag -o $output$reload_objs' 11993 fi 11994 ;; 11995esac 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005if test -n "$ac_tool_prefix"; then 12006 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 12007set dummy ${ac_tool_prefix}objdump; ac_word=$2 12008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12009$as_echo_n "checking for $ac_word... " >&6; } 12010if ${ac_cv_prog_OBJDUMP+:} false; then : 12011 $as_echo_n "(cached) " >&6 12012else 12013 if test -n "$OBJDUMP"; then 12014 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 12015else 12016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12017for as_dir in $PATH 12018do 12019 IFS=$as_save_IFS 12020 test -z "$as_dir" && as_dir=. 12021 for ac_exec_ext in '' $ac_executable_extensions; do 12022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12023 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 12024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12025 break 2 12026 fi 12027done 12028 done 12029IFS=$as_save_IFS 12030 12031fi 12032fi 12033OBJDUMP=$ac_cv_prog_OBJDUMP 12034if test -n "$OBJDUMP"; then 12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 12036$as_echo "$OBJDUMP" >&6; } 12037else 12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12039$as_echo "no" >&6; } 12040fi 12041 12042 12043fi 12044if test -z "$ac_cv_prog_OBJDUMP"; then 12045 ac_ct_OBJDUMP=$OBJDUMP 12046 # Extract the first word of "objdump", so it can be a program name with args. 12047set dummy objdump; ac_word=$2 12048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12049$as_echo_n "checking for $ac_word... " >&6; } 12050if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 12051 $as_echo_n "(cached) " >&6 12052else 12053 if test -n "$ac_ct_OBJDUMP"; then 12054 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 12055else 12056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12057for as_dir in $PATH 12058do 12059 IFS=$as_save_IFS 12060 test -z "$as_dir" && as_dir=. 12061 for ac_exec_ext in '' $ac_executable_extensions; do 12062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12063 ac_cv_prog_ac_ct_OBJDUMP="objdump" 12064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12065 break 2 12066 fi 12067done 12068 done 12069IFS=$as_save_IFS 12070 12071fi 12072fi 12073ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 12074if test -n "$ac_ct_OBJDUMP"; then 12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 12076$as_echo "$ac_ct_OBJDUMP" >&6; } 12077else 12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12079$as_echo "no" >&6; } 12080fi 12081 12082 if test "x$ac_ct_OBJDUMP" = x; then 12083 OBJDUMP="false" 12084 else 12085 case $cross_compiling:$ac_tool_warned in 12086yes:) 12087{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12088$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12089ac_tool_warned=yes ;; 12090esac 12091 OBJDUMP=$ac_ct_OBJDUMP 12092 fi 12093else 12094 OBJDUMP="$ac_cv_prog_OBJDUMP" 12095fi 12096 12097test -z "$OBJDUMP" && OBJDUMP=objdump 12098 12099 12100 12101 12102 12103 12104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 12105$as_echo_n "checking how to recognize dependent libraries... " >&6; } 12106if ${lt_cv_deplibs_check_method+:} false; then : 12107 $as_echo_n "(cached) " >&6 12108else 12109 lt_cv_file_magic_cmd='$MAGIC_CMD' 12110lt_cv_file_magic_test_file= 12111lt_cv_deplibs_check_method='unknown' 12112# Need to set the preceding variable on all platforms that support 12113# interlibrary dependencies. 12114# 'none' -- dependencies not supported. 12115# 'unknown' -- same as none, but documents that we really don't know. 12116# 'pass_all' -- all dependencies passed with no checks. 12117# 'test_compile' -- check by making test program. 12118# 'file_magic [[regex]]' -- check by looking for files in library path 12119# that responds to the $file_magic_cmd with a given extended regex. 12120# If you have 'file' or equivalent on your system and you're not sure 12121# whether 'pass_all' will *always* work, you probably want this one. 12122 12123case $host_os in 12124aix[4-9]*) 12125 lt_cv_deplibs_check_method=pass_all 12126 ;; 12127 12128beos*) 12129 lt_cv_deplibs_check_method=pass_all 12130 ;; 12131 12132bsdi[45]*) 12133 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 12134 lt_cv_file_magic_cmd='/usr/bin/file -L' 12135 lt_cv_file_magic_test_file=/shlib/libc.so 12136 ;; 12137 12138cygwin*) 12139 # func_win32_libid is a shell function defined in ltmain.sh 12140 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12141 lt_cv_file_magic_cmd='func_win32_libid' 12142 ;; 12143 12144mingw* | pw32*) 12145 # Base MSYS/MinGW do not provide the 'file' command needed by 12146 # func_win32_libid shell function, so use a weaker test based on 'objdump', 12147 # unless we find 'file', for example because we are cross-compiling. 12148 if ( file / ) >/dev/null 2>&1; then 12149 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12150 lt_cv_file_magic_cmd='func_win32_libid' 12151 else 12152 # Keep this pattern in sync with the one in func_win32_libid. 12153 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 12154 lt_cv_file_magic_cmd='$OBJDUMP -f' 12155 fi 12156 ;; 12157 12158cegcc*) 12159 # use the weaker test based on 'objdump'. See mingw*. 12160 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 12161 lt_cv_file_magic_cmd='$OBJDUMP -f' 12162 ;; 12163 12164darwin* | rhapsody*) 12165 lt_cv_deplibs_check_method=pass_all 12166 ;; 12167 12168freebsd* | dragonfly*) 12169 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12170 case $host_cpu in 12171 i*86 ) 12172 # Not sure whether the presence of OpenBSD here was a mistake. 12173 # Let's accept both of them until this is cleared up. 12174 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 12175 lt_cv_file_magic_cmd=/usr/bin/file 12176 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 12177 ;; 12178 esac 12179 else 12180 lt_cv_deplibs_check_method=pass_all 12181 fi 12182 ;; 12183 12184haiku*) 12185 lt_cv_deplibs_check_method=pass_all 12186 ;; 12187 12188hpux10.20* | hpux11*) 12189 lt_cv_file_magic_cmd=/usr/bin/file 12190 case $host_cpu in 12191 ia64*) 12192 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 12193 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 12194 ;; 12195 hppa*64*) 12196 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]' 12197 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 12198 ;; 12199 *) 12200 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 12201 lt_cv_file_magic_test_file=/usr/lib/libc.sl 12202 ;; 12203 esac 12204 ;; 12205 12206interix[3-9]*) 12207 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 12208 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 12209 ;; 12210 12211irix5* | irix6* | nonstopux*) 12212 case $LD in 12213 *-32|*"-32 ") libmagic=32-bit;; 12214 *-n32|*"-n32 ") libmagic=N32;; 12215 *-64|*"-64 ") libmagic=64-bit;; 12216 *) libmagic=never-match;; 12217 esac 12218 lt_cv_deplibs_check_method=pass_all 12219 ;; 12220 12221# This must be glibc/ELF. 12222linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12223 lt_cv_deplibs_check_method=pass_all 12224 ;; 12225 12226netbsd*) 12227 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12228 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12229 else 12230 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 12231 fi 12232 ;; 12233 12234newos6*) 12235 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 12236 lt_cv_file_magic_cmd=/usr/bin/file 12237 lt_cv_file_magic_test_file=/usr/lib/libnls.so 12238 ;; 12239 12240*nto* | *qnx*) 12241 lt_cv_deplibs_check_method=pass_all 12242 ;; 12243 12244openbsd* | bitrig*) 12245 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12246 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 12247 else 12248 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12249 fi 12250 ;; 12251 12252osf3* | osf4* | osf5*) 12253 lt_cv_deplibs_check_method=pass_all 12254 ;; 12255 12256rdos*) 12257 lt_cv_deplibs_check_method=pass_all 12258 ;; 12259 12260solaris*) 12261 lt_cv_deplibs_check_method=pass_all 12262 ;; 12263 12264sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12265 lt_cv_deplibs_check_method=pass_all 12266 ;; 12267 12268sysv4 | sysv4.3*) 12269 case $host_vendor in 12270 motorola) 12271 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]' 12272 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 12273 ;; 12274 ncr) 12275 lt_cv_deplibs_check_method=pass_all 12276 ;; 12277 sequent) 12278 lt_cv_file_magic_cmd='/bin/file' 12279 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 12280 ;; 12281 sni) 12282 lt_cv_file_magic_cmd='/bin/file' 12283 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 12284 lt_cv_file_magic_test_file=/lib/libc.so 12285 ;; 12286 siemens) 12287 lt_cv_deplibs_check_method=pass_all 12288 ;; 12289 pc) 12290 lt_cv_deplibs_check_method=pass_all 12291 ;; 12292 esac 12293 ;; 12294 12295tpf*) 12296 lt_cv_deplibs_check_method=pass_all 12297 ;; 12298os2*) 12299 lt_cv_deplibs_check_method=pass_all 12300 ;; 12301esac 12302 12303fi 12304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 12305$as_echo "$lt_cv_deplibs_check_method" >&6; } 12306 12307file_magic_glob= 12308want_nocaseglob=no 12309if test "$build" = "$host"; then 12310 case $host_os in 12311 mingw* | pw32*) 12312 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 12313 want_nocaseglob=yes 12314 else 12315 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 12316 fi 12317 ;; 12318 esac 12319fi 12320 12321file_magic_cmd=$lt_cv_file_magic_cmd 12322deplibs_check_method=$lt_cv_deplibs_check_method 12323test -z "$deplibs_check_method" && deplibs_check_method=unknown 12324 12325 12326 12327 12328 12329 12330 12331 12332 12333 12334 12335 12336 12337 12338 12339 12340 12341 12342 12343 12344 12345 12346if test -n "$ac_tool_prefix"; then 12347 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 12348set dummy ${ac_tool_prefix}dlltool; ac_word=$2 12349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12350$as_echo_n "checking for $ac_word... " >&6; } 12351if ${ac_cv_prog_DLLTOOL+:} false; then : 12352 $as_echo_n "(cached) " >&6 12353else 12354 if test -n "$DLLTOOL"; then 12355 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 12356else 12357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12358for as_dir in $PATH 12359do 12360 IFS=$as_save_IFS 12361 test -z "$as_dir" && as_dir=. 12362 for ac_exec_ext in '' $ac_executable_extensions; do 12363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12364 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 12365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12366 break 2 12367 fi 12368done 12369 done 12370IFS=$as_save_IFS 12371 12372fi 12373fi 12374DLLTOOL=$ac_cv_prog_DLLTOOL 12375if test -n "$DLLTOOL"; then 12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 12377$as_echo "$DLLTOOL" >&6; } 12378else 12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12380$as_echo "no" >&6; } 12381fi 12382 12383 12384fi 12385if test -z "$ac_cv_prog_DLLTOOL"; then 12386 ac_ct_DLLTOOL=$DLLTOOL 12387 # Extract the first word of "dlltool", so it can be a program name with args. 12388set dummy dlltool; ac_word=$2 12389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12390$as_echo_n "checking for $ac_word... " >&6; } 12391if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 12392 $as_echo_n "(cached) " >&6 12393else 12394 if test -n "$ac_ct_DLLTOOL"; then 12395 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 12396else 12397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12398for as_dir in $PATH 12399do 12400 IFS=$as_save_IFS 12401 test -z "$as_dir" && as_dir=. 12402 for ac_exec_ext in '' $ac_executable_extensions; do 12403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12404 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 12405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12406 break 2 12407 fi 12408done 12409 done 12410IFS=$as_save_IFS 12411 12412fi 12413fi 12414ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 12415if test -n "$ac_ct_DLLTOOL"; then 12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 12417$as_echo "$ac_ct_DLLTOOL" >&6; } 12418else 12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12420$as_echo "no" >&6; } 12421fi 12422 12423 if test "x$ac_ct_DLLTOOL" = x; then 12424 DLLTOOL="false" 12425 else 12426 case $cross_compiling:$ac_tool_warned in 12427yes:) 12428{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12429$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12430ac_tool_warned=yes ;; 12431esac 12432 DLLTOOL=$ac_ct_DLLTOOL 12433 fi 12434else 12435 DLLTOOL="$ac_cv_prog_DLLTOOL" 12436fi 12437 12438test -z "$DLLTOOL" && DLLTOOL=dlltool 12439 12440 12441 12442 12443 12444 12445 12446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 12447$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 12448if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 12449 $as_echo_n "(cached) " >&6 12450else 12451 lt_cv_sharedlib_from_linklib_cmd='unknown' 12452 12453case $host_os in 12454cygwin* | mingw* | pw32* | cegcc*) 12455 # two different shell functions defined in ltmain.sh; 12456 # decide which one to use based on capabilities of $DLLTOOL 12457 case `$DLLTOOL --help 2>&1` in 12458 *--identify-strict*) 12459 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 12460 ;; 12461 *) 12462 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 12463 ;; 12464 esac 12465 ;; 12466*) 12467 # fallback: assume linklib IS sharedlib 12468 lt_cv_sharedlib_from_linklib_cmd=$ECHO 12469 ;; 12470esac 12471 12472fi 12473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 12474$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 12475sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 12476test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 12477 12478 12479 12480 12481 12482 12483 12484if test -n "$ac_tool_prefix"; then 12485 for ac_prog in ar 12486 do 12487 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12488set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12490$as_echo_n "checking for $ac_word... " >&6; } 12491if ${ac_cv_prog_AR+:} false; then : 12492 $as_echo_n "(cached) " >&6 12493else 12494 if test -n "$AR"; then 12495 ac_cv_prog_AR="$AR" # Let the user override the test. 12496else 12497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12498for as_dir in $PATH 12499do 12500 IFS=$as_save_IFS 12501 test -z "$as_dir" && as_dir=. 12502 for ac_exec_ext in '' $ac_executable_extensions; do 12503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12504 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 12505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12506 break 2 12507 fi 12508done 12509 done 12510IFS=$as_save_IFS 12511 12512fi 12513fi 12514AR=$ac_cv_prog_AR 12515if test -n "$AR"; then 12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 12517$as_echo "$AR" >&6; } 12518else 12519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12520$as_echo "no" >&6; } 12521fi 12522 12523 12524 test -n "$AR" && break 12525 done 12526fi 12527if test -z "$AR"; then 12528 ac_ct_AR=$AR 12529 for ac_prog in ar 12530do 12531 # Extract the first word of "$ac_prog", so it can be a program name with args. 12532set dummy $ac_prog; ac_word=$2 12533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12534$as_echo_n "checking for $ac_word... " >&6; } 12535if ${ac_cv_prog_ac_ct_AR+:} false; then : 12536 $as_echo_n "(cached) " >&6 12537else 12538 if test -n "$ac_ct_AR"; then 12539 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 12540else 12541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12542for as_dir in $PATH 12543do 12544 IFS=$as_save_IFS 12545 test -z "$as_dir" && as_dir=. 12546 for ac_exec_ext in '' $ac_executable_extensions; do 12547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12548 ac_cv_prog_ac_ct_AR="$ac_prog" 12549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12550 break 2 12551 fi 12552done 12553 done 12554IFS=$as_save_IFS 12555 12556fi 12557fi 12558ac_ct_AR=$ac_cv_prog_ac_ct_AR 12559if test -n "$ac_ct_AR"; then 12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 12561$as_echo "$ac_ct_AR" >&6; } 12562else 12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12564$as_echo "no" >&6; } 12565fi 12566 12567 12568 test -n "$ac_ct_AR" && break 12569done 12570 12571 if test "x$ac_ct_AR" = x; then 12572 AR="false" 12573 else 12574 case $cross_compiling:$ac_tool_warned in 12575yes:) 12576{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12577$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12578ac_tool_warned=yes ;; 12579esac 12580 AR=$ac_ct_AR 12581 fi 12582fi 12583 12584: ${AR=ar} 12585: ${AR_FLAGS=cru} 12586 12587 12588 12589 12590 12591 12592 12593 12594 12595 12596 12597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 12598$as_echo_n "checking for archiver @FILE support... " >&6; } 12599if ${lt_cv_ar_at_file+:} false; then : 12600 $as_echo_n "(cached) " >&6 12601else 12602 lt_cv_ar_at_file=no 12603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12604/* end confdefs.h. */ 12605 12606#ifdef F77_DUMMY_MAIN 12607 12608# ifdef __cplusplus 12609 extern "C" 12610# endif 12611 int F77_DUMMY_MAIN() { return 1; } 12612 12613#endif 12614int 12615main () 12616{ 12617 12618 ; 12619 return 0; 12620} 12621_ACEOF 12622if ac_fn_c_try_compile "$LINENO"; then : 12623 echo conftest.$ac_objext > conftest.lst 12624 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 12625 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12626 (eval $lt_ar_try) 2>&5 12627 ac_status=$? 12628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12629 test $ac_status = 0; } 12630 if test 0 -eq "$ac_status"; then 12631 # Ensure the archiver fails upon bogus file names. 12632 rm -f conftest.$ac_objext libconftest.a 12633 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12634 (eval $lt_ar_try) 2>&5 12635 ac_status=$? 12636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12637 test $ac_status = 0; } 12638 if test 0 -ne "$ac_status"; then 12639 lt_cv_ar_at_file=@ 12640 fi 12641 fi 12642 rm -f conftest.* libconftest.a 12643 12644fi 12645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12646 12647fi 12648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 12649$as_echo "$lt_cv_ar_at_file" >&6; } 12650 12651if test no = "$lt_cv_ar_at_file"; then 12652 archiver_list_spec= 12653else 12654 archiver_list_spec=$lt_cv_ar_at_file 12655fi 12656 12657 12658 12659 12660 12661 12662 12663if test -n "$ac_tool_prefix"; then 12664 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 12665set dummy ${ac_tool_prefix}strip; ac_word=$2 12666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12667$as_echo_n "checking for $ac_word... " >&6; } 12668if ${ac_cv_prog_STRIP+:} false; then : 12669 $as_echo_n "(cached) " >&6 12670else 12671 if test -n "$STRIP"; then 12672 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 12673else 12674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12675for as_dir in $PATH 12676do 12677 IFS=$as_save_IFS 12678 test -z "$as_dir" && as_dir=. 12679 for ac_exec_ext in '' $ac_executable_extensions; do 12680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12681 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 12682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12683 break 2 12684 fi 12685done 12686 done 12687IFS=$as_save_IFS 12688 12689fi 12690fi 12691STRIP=$ac_cv_prog_STRIP 12692if test -n "$STRIP"; then 12693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 12694$as_echo "$STRIP" >&6; } 12695else 12696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12697$as_echo "no" >&6; } 12698fi 12699 12700 12701fi 12702if test -z "$ac_cv_prog_STRIP"; then 12703 ac_ct_STRIP=$STRIP 12704 # Extract the first word of "strip", so it can be a program name with args. 12705set dummy strip; ac_word=$2 12706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12707$as_echo_n "checking for $ac_word... " >&6; } 12708if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 12709 $as_echo_n "(cached) " >&6 12710else 12711 if test -n "$ac_ct_STRIP"; then 12712 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 12713else 12714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12715for as_dir in $PATH 12716do 12717 IFS=$as_save_IFS 12718 test -z "$as_dir" && as_dir=. 12719 for ac_exec_ext in '' $ac_executable_extensions; do 12720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12721 ac_cv_prog_ac_ct_STRIP="strip" 12722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12723 break 2 12724 fi 12725done 12726 done 12727IFS=$as_save_IFS 12728 12729fi 12730fi 12731ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 12732if test -n "$ac_ct_STRIP"; then 12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 12734$as_echo "$ac_ct_STRIP" >&6; } 12735else 12736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12737$as_echo "no" >&6; } 12738fi 12739 12740 if test "x$ac_ct_STRIP" = x; then 12741 STRIP=":" 12742 else 12743 case $cross_compiling:$ac_tool_warned in 12744yes:) 12745{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12746$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12747ac_tool_warned=yes ;; 12748esac 12749 STRIP=$ac_ct_STRIP 12750 fi 12751else 12752 STRIP="$ac_cv_prog_STRIP" 12753fi 12754 12755test -z "$STRIP" && STRIP=: 12756 12757 12758 12759 12760 12761 12762if test -n "$ac_tool_prefix"; then 12763 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 12764set dummy ${ac_tool_prefix}ranlib; ac_word=$2 12765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12766$as_echo_n "checking for $ac_word... " >&6; } 12767if ${ac_cv_prog_RANLIB+:} false; then : 12768 $as_echo_n "(cached) " >&6 12769else 12770 if test -n "$RANLIB"; then 12771 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 12772else 12773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12774for as_dir in $PATH 12775do 12776 IFS=$as_save_IFS 12777 test -z "$as_dir" && as_dir=. 12778 for ac_exec_ext in '' $ac_executable_extensions; do 12779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12780 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 12781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12782 break 2 12783 fi 12784done 12785 done 12786IFS=$as_save_IFS 12787 12788fi 12789fi 12790RANLIB=$ac_cv_prog_RANLIB 12791if test -n "$RANLIB"; then 12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 12793$as_echo "$RANLIB" >&6; } 12794else 12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12796$as_echo "no" >&6; } 12797fi 12798 12799 12800fi 12801if test -z "$ac_cv_prog_RANLIB"; then 12802 ac_ct_RANLIB=$RANLIB 12803 # Extract the first word of "ranlib", so it can be a program name with args. 12804set dummy ranlib; ac_word=$2 12805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12806$as_echo_n "checking for $ac_word... " >&6; } 12807if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 12808 $as_echo_n "(cached) " >&6 12809else 12810 if test -n "$ac_ct_RANLIB"; then 12811 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 12812else 12813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12814for as_dir in $PATH 12815do 12816 IFS=$as_save_IFS 12817 test -z "$as_dir" && as_dir=. 12818 for ac_exec_ext in '' $ac_executable_extensions; do 12819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12820 ac_cv_prog_ac_ct_RANLIB="ranlib" 12821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12822 break 2 12823 fi 12824done 12825 done 12826IFS=$as_save_IFS 12827 12828fi 12829fi 12830ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 12831if test -n "$ac_ct_RANLIB"; then 12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 12833$as_echo "$ac_ct_RANLIB" >&6; } 12834else 12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12836$as_echo "no" >&6; } 12837fi 12838 12839 if test "x$ac_ct_RANLIB" = x; then 12840 RANLIB=":" 12841 else 12842 case $cross_compiling:$ac_tool_warned in 12843yes:) 12844{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12845$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12846ac_tool_warned=yes ;; 12847esac 12848 RANLIB=$ac_ct_RANLIB 12849 fi 12850else 12851 RANLIB="$ac_cv_prog_RANLIB" 12852fi 12853 12854test -z "$RANLIB" && RANLIB=: 12855 12856 12857 12858 12859 12860 12861# Determine commands to create old-style static archives. 12862old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 12863old_postinstall_cmds='chmod 644 $oldlib' 12864old_postuninstall_cmds= 12865 12866if test -n "$RANLIB"; then 12867 case $host_os in 12868 bitrig* | openbsd*) 12869 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 12870 ;; 12871 *) 12872 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 12873 ;; 12874 esac 12875 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 12876fi 12877 12878case $host_os in 12879 darwin*) 12880 lock_old_archive_extraction=yes ;; 12881 *) 12882 lock_old_archive_extraction=no ;; 12883esac 12884 12885 12886 12887 12888 12889 12890 12891 12892 12893 12894 12895 12896 12897 12898 12899 12900 12901 12902 12903 12904 12905 12906 12907 12908 12909 12910 12911 12912 12913 12914 12915 12916 12917 12918 12919 12920 12921 12922 12923# If no C compiler was specified, use CC. 12924LTCC=${LTCC-"$CC"} 12925 12926# If no C compiler flags were specified, use CFLAGS. 12927LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12928 12929# Allow CC to be a program name with arguments. 12930compiler=$CC 12931 12932 12933# Check for command to grab the raw symbol name followed by C symbol from nm. 12934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 12935$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 12936if ${lt_cv_sys_global_symbol_pipe+:} false; then : 12937 $as_echo_n "(cached) " >&6 12938else 12939 12940# These are sane defaults that work on at least a few old systems. 12941# [They come from Ultrix. What could be older than Ultrix?!! ;)] 12942 12943# Character class describing NM global symbol codes. 12944symcode='[BCDEGRST]' 12945 12946# Regexp to match symbols that can be accessed directly from C. 12947sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 12948 12949# Define system-specific variables. 12950case $host_os in 12951aix*) 12952 symcode='[BCDT]' 12953 ;; 12954cygwin* | mingw* | pw32* | cegcc*) 12955 symcode='[ABCDGISTW]' 12956 ;; 12957hpux*) 12958 if test ia64 = "$host_cpu"; then 12959 symcode='[ABCDEGRST]' 12960 fi 12961 ;; 12962irix* | nonstopux*) 12963 symcode='[BCDEGRST]' 12964 ;; 12965osf*) 12966 symcode='[BCDEGQRST]' 12967 ;; 12968solaris*) 12969 symcode='[BDRT]' 12970 ;; 12971sco3.2v5*) 12972 symcode='[DT]' 12973 ;; 12974sysv4.2uw2*) 12975 symcode='[DT]' 12976 ;; 12977sysv5* | sco5v6* | unixware* | OpenUNIX*) 12978 symcode='[ABDT]' 12979 ;; 12980sysv4) 12981 symcode='[DFNSTU]' 12982 ;; 12983esac 12984 12985# If we're using GNU nm, then use its standard symbol codes. 12986case `$NM -V 2>&1` in 12987*GNU* | *'with BFD'*) 12988 symcode='[ABCDGIRSTW]' ;; 12989esac 12990 12991if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12992 # Gets list of data symbols to import. 12993 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 12994 # Adjust the below global symbol transforms to fixup imported variables. 12995 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 12996 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 12997 lt_c_name_lib_hook="\ 12998 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 12999 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 13000else 13001 # Disable hooks by default. 13002 lt_cv_sys_global_symbol_to_import= 13003 lt_cdecl_hook= 13004 lt_c_name_hook= 13005 lt_c_name_lib_hook= 13006fi 13007 13008# Transform an extracted symbol line into a proper C declaration. 13009# Some systems (esp. on ia64) link data and code symbols differently, 13010# so use this general approach. 13011lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 13012$lt_cdecl_hook\ 13013" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 13014" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 13015 13016# Transform an extracted symbol line into symbol name and symbol address 13017lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 13018$lt_c_name_hook\ 13019" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 13020" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 13021 13022# Transform an extracted symbol line into symbol name with lib prefix and 13023# symbol address. 13024lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 13025$lt_c_name_lib_hook\ 13026" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 13027" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 13028" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 13029 13030# Handle CRLF in mingw tool chain 13031opt_cr= 13032case $build_os in 13033mingw*) 13034 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 13035 ;; 13036esac 13037 13038# Try without a prefix underscore, then with it. 13039for ac_symprfx in "" "_"; do 13040 13041 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 13042 symxfrm="\\1 $ac_symprfx\\2 \\2" 13043 13044 # Write the raw and C identifiers. 13045 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13046 # Fake it for dumpbin and say T for any non-static function, 13047 # D for any global variable and I for any imported variable. 13048 # Also find C++ and __fastcall symbols from MSVC++, 13049 # which start with @ or ?. 13050 lt_cv_sys_global_symbol_pipe="$AWK '"\ 13051" {last_section=section; section=\$ 3};"\ 13052" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 13053" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 13054" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 13055" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 13056" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 13057" \$ 0!~/External *\|/{next};"\ 13058" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 13059" {if(hide[section]) next};"\ 13060" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 13061" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 13062" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 13063" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 13064" ' prfx=^$ac_symprfx" 13065 else 13066 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 13067 fi 13068 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 13069 13070 # Check to see that the pipe works correctly. 13071 pipe_works=no 13072 13073 rm -f conftest* 13074 cat > conftest.$ac_ext <<_LT_EOF 13075#ifdef __cplusplus 13076extern "C" { 13077#endif 13078char nm_test_var; 13079void nm_test_func(void); 13080void nm_test_func(void){} 13081#ifdef __cplusplus 13082} 13083#endif 13084int main(){nm_test_var='a';nm_test_func();return(0);} 13085_LT_EOF 13086 13087 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13088 (eval $ac_compile) 2>&5 13089 ac_status=$? 13090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13091 test $ac_status = 0; }; then 13092 # Now try to grab the symbols. 13093 nlist=conftest.nm 13094 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 13095 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 13096 ac_status=$? 13097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13098 test $ac_status = 0; } && test -s "$nlist"; then 13099 # Try sorting and uniquifying the output. 13100 if sort "$nlist" | uniq > "$nlist"T; then 13101 mv -f "$nlist"T "$nlist" 13102 else 13103 rm -f "$nlist"T 13104 fi 13105 13106 # Make sure that we snagged all the symbols we need. 13107 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 13108 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 13109 cat <<_LT_EOF > conftest.$ac_ext 13110/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 13111#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 13112/* DATA imports from DLLs on WIN32 can't be const, because runtime 13113 relocations are performed -- see ld's documentation on pseudo-relocs. */ 13114# define LT_DLSYM_CONST 13115#elif defined __osf__ 13116/* This system does not cope well with relocations in const data. */ 13117# define LT_DLSYM_CONST 13118#else 13119# define LT_DLSYM_CONST const 13120#endif 13121 13122#ifdef __cplusplus 13123extern "C" { 13124#endif 13125 13126_LT_EOF 13127 # Now generate the symbol file. 13128 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 13129 13130 cat <<_LT_EOF >> conftest.$ac_ext 13131 13132/* The mapping between symbol names and symbols. */ 13133LT_DLSYM_CONST struct { 13134 const char *name; 13135 void *address; 13136} 13137lt__PROGRAM__LTX_preloaded_symbols[] = 13138{ 13139 { "@PROGRAM@", (void *) 0 }, 13140_LT_EOF 13141 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 13142 cat <<\_LT_EOF >> conftest.$ac_ext 13143 {0, (void *) 0} 13144}; 13145 13146/* This works around a problem in FreeBSD linker */ 13147#ifdef FREEBSD_WORKAROUND 13148static const void *lt_preloaded_setup() { 13149 return lt__PROGRAM__LTX_preloaded_symbols; 13150} 13151#endif 13152 13153#ifdef __cplusplus 13154} 13155#endif 13156_LT_EOF 13157 # Now try linking the two files. 13158 mv conftest.$ac_objext conftstm.$ac_objext 13159 lt_globsym_save_LIBS=$LIBS 13160 lt_globsym_save_CFLAGS=$CFLAGS 13161 LIBS=conftstm.$ac_objext 13162 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 13163 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13164 (eval $ac_link) 2>&5 13165 ac_status=$? 13166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13167 test $ac_status = 0; } && test -s conftest$ac_exeext; then 13168 pipe_works=yes 13169 fi 13170 LIBS=$lt_globsym_save_LIBS 13171 CFLAGS=$lt_globsym_save_CFLAGS 13172 else 13173 echo "cannot find nm_test_func in $nlist" >&5 13174 fi 13175 else 13176 echo "cannot find nm_test_var in $nlist" >&5 13177 fi 13178 else 13179 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 13180 fi 13181 else 13182 echo "$progname: failed program was:" >&5 13183 cat conftest.$ac_ext >&5 13184 fi 13185 rm -rf conftest* conftst* 13186 13187 # Do not use the global_symbol_pipe unless it works. 13188 if test yes = "$pipe_works"; then 13189 break 13190 else 13191 lt_cv_sys_global_symbol_pipe= 13192 fi 13193done 13194 13195fi 13196 13197if test -z "$lt_cv_sys_global_symbol_pipe"; then 13198 lt_cv_sys_global_symbol_to_cdecl= 13199fi 13200if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 13202$as_echo "failed" >&6; } 13203else 13204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 13205$as_echo "ok" >&6; } 13206fi 13207 13208# Response file support. 13209if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13210 nm_file_list_spec='@' 13211elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 13212 nm_file_list_spec='@' 13213fi 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245 13246 13247 13248 13249 13250 13251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 13252$as_echo_n "checking for sysroot... " >&6; } 13253 13254# Check whether --with-sysroot was given. 13255if test "${with_sysroot+set}" = set; then : 13256 withval=$with_sysroot; 13257else 13258 with_sysroot=no 13259fi 13260 13261 13262lt_sysroot= 13263case $with_sysroot in #( 13264 yes) 13265 if test yes = "$GCC"; then 13266 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 13267 fi 13268 ;; #( 13269 /*) 13270 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 13271 ;; #( 13272 no|'') 13273 ;; #( 13274 *) 13275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 13276$as_echo "$with_sysroot" >&6; } 13277 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 13278 ;; 13279esac 13280 13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 13282$as_echo "${lt_sysroot:-no}" >&6; } 13283 13284 13285 13286 13287 13288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 13289$as_echo_n "checking for a working dd... " >&6; } 13290if ${ac_cv_path_lt_DD+:} false; then : 13291 $as_echo_n "(cached) " >&6 13292else 13293 printf 0123456789abcdef0123456789abcdef >conftest.i 13294cat conftest.i conftest.i >conftest2.i 13295: ${lt_DD:=$DD} 13296if test -z "$lt_DD"; then 13297 ac_path_lt_DD_found=false 13298 # Loop through the user's path and test for each of PROGNAME-LIST 13299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13300for as_dir in $PATH 13301do 13302 IFS=$as_save_IFS 13303 test -z "$as_dir" && as_dir=. 13304 for ac_prog in dd; do 13305 for ac_exec_ext in '' $ac_executable_extensions; do 13306 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 13307 as_fn_executable_p "$ac_path_lt_DD" || continue 13308if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13309 cmp -s conftest.i conftest.out \ 13310 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 13311fi 13312 $ac_path_lt_DD_found && break 3 13313 done 13314 done 13315 done 13316IFS=$as_save_IFS 13317 if test -z "$ac_cv_path_lt_DD"; then 13318 : 13319 fi 13320else 13321 ac_cv_path_lt_DD=$lt_DD 13322fi 13323 13324rm -f conftest.i conftest2.i conftest.out 13325fi 13326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 13327$as_echo "$ac_cv_path_lt_DD" >&6; } 13328 13329 13330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 13331$as_echo_n "checking how to truncate binary pipes... " >&6; } 13332if ${lt_cv_truncate_bin+:} false; then : 13333 $as_echo_n "(cached) " >&6 13334else 13335 printf 0123456789abcdef0123456789abcdef >conftest.i 13336cat conftest.i conftest.i >conftest2.i 13337lt_cv_truncate_bin= 13338if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13339 cmp -s conftest.i conftest.out \ 13340 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 13341fi 13342rm -f conftest.i conftest2.i conftest.out 13343test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 13344fi 13345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 13346$as_echo "$lt_cv_truncate_bin" >&6; } 13347 13348 13349 13350 13351 13352 13353 13354# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 13355func_cc_basename () 13356{ 13357 for cc_temp in $*""; do 13358 case $cc_temp in 13359 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13360 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13361 \-*) ;; 13362 *) break;; 13363 esac 13364 done 13365 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 13366} 13367 13368# Check whether --enable-libtool-lock was given. 13369if test "${enable_libtool_lock+set}" = set; then : 13370 enableval=$enable_libtool_lock; 13371fi 13372 13373test no = "$enable_libtool_lock" || enable_libtool_lock=yes 13374 13375# Some flags need to be propagated to the compiler or linker for good 13376# libtool support. 13377case $host in 13378ia64-*-hpux*) 13379 # Find out what ABI is being produced by ac_compile, and set mode 13380 # options accordingly. 13381 echo 'int i;' > conftest.$ac_ext 13382 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13383 (eval $ac_compile) 2>&5 13384 ac_status=$? 13385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13386 test $ac_status = 0; }; then 13387 case `/usr/bin/file conftest.$ac_objext` in 13388 *ELF-32*) 13389 HPUX_IA64_MODE=32 13390 ;; 13391 *ELF-64*) 13392 HPUX_IA64_MODE=64 13393 ;; 13394 esac 13395 fi 13396 rm -rf conftest* 13397 ;; 13398*-*-irix6*) 13399 # Find out what ABI is being produced by ac_compile, and set linker 13400 # options accordingly. 13401 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13402 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13403 (eval $ac_compile) 2>&5 13404 ac_status=$? 13405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13406 test $ac_status = 0; }; then 13407 if test yes = "$lt_cv_prog_gnu_ld"; then 13408 case `/usr/bin/file conftest.$ac_objext` in 13409 *32-bit*) 13410 LD="${LD-ld} -melf32bsmip" 13411 ;; 13412 *N32*) 13413 LD="${LD-ld} -melf32bmipn32" 13414 ;; 13415 *64-bit*) 13416 LD="${LD-ld} -melf64bmip" 13417 ;; 13418 esac 13419 else 13420 case `/usr/bin/file conftest.$ac_objext` in 13421 *32-bit*) 13422 LD="${LD-ld} -32" 13423 ;; 13424 *N32*) 13425 LD="${LD-ld} -n32" 13426 ;; 13427 *64-bit*) 13428 LD="${LD-ld} -64" 13429 ;; 13430 esac 13431 fi 13432 fi 13433 rm -rf conftest* 13434 ;; 13435 13436mips64*-*linux*) 13437 # Find out what ABI is being produced by ac_compile, and set linker 13438 # options accordingly. 13439 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13440 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13441 (eval $ac_compile) 2>&5 13442 ac_status=$? 13443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13444 test $ac_status = 0; }; then 13445 emul=elf 13446 case `/usr/bin/file conftest.$ac_objext` in 13447 *32-bit*) 13448 emul="${emul}32" 13449 ;; 13450 *64-bit*) 13451 emul="${emul}64" 13452 ;; 13453 esac 13454 case `/usr/bin/file conftest.$ac_objext` in 13455 *MSB*) 13456 emul="${emul}btsmip" 13457 ;; 13458 *LSB*) 13459 emul="${emul}ltsmip" 13460 ;; 13461 esac 13462 case `/usr/bin/file conftest.$ac_objext` in 13463 *N32*) 13464 emul="${emul}n32" 13465 ;; 13466 esac 13467 LD="${LD-ld} -m $emul" 13468 fi 13469 rm -rf conftest* 13470 ;; 13471 13472x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 13473s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 13474 # Find out what ABI is being produced by ac_compile, and set linker 13475 # options accordingly. Note that the listed cases only cover the 13476 # situations where additional linker options are needed (such as when 13477 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 13478 # vice versa); the common cases where no linker options are needed do 13479 # not appear in the list. 13480 echo 'int i;' > conftest.$ac_ext 13481 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13482 (eval $ac_compile) 2>&5 13483 ac_status=$? 13484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13485 test $ac_status = 0; }; then 13486 case `/usr/bin/file conftest.o` in 13487 *32-bit*) 13488 case $host in 13489 x86_64-*kfreebsd*-gnu) 13490 LD="${LD-ld} -m elf_i386_fbsd" 13491 ;; 13492 x86_64-*linux*) 13493 case `/usr/bin/file conftest.o` in 13494 *x86-64*) 13495 LD="${LD-ld} -m elf32_x86_64" 13496 ;; 13497 *) 13498 LD="${LD-ld} -m elf_i386" 13499 ;; 13500 esac 13501 ;; 13502 powerpc64le-*linux*) 13503 LD="${LD-ld} -m elf32lppclinux" 13504 ;; 13505 powerpc64-*linux*) 13506 LD="${LD-ld} -m elf32ppclinux" 13507 ;; 13508 s390x-*linux*) 13509 LD="${LD-ld} -m elf_s390" 13510 ;; 13511 sparc64-*linux*) 13512 LD="${LD-ld} -m elf32_sparc" 13513 ;; 13514 esac 13515 ;; 13516 *64-bit*) 13517 case $host in 13518 x86_64-*kfreebsd*-gnu) 13519 LD="${LD-ld} -m elf_x86_64_fbsd" 13520 ;; 13521 x86_64-*linux*) 13522 LD="${LD-ld} -m elf_x86_64" 13523 ;; 13524 powerpcle-*linux*) 13525 LD="${LD-ld} -m elf64lppc" 13526 ;; 13527 powerpc-*linux*) 13528 LD="${LD-ld} -m elf64ppc" 13529 ;; 13530 s390*-*linux*|s390*-*tpf*) 13531 LD="${LD-ld} -m elf64_s390" 13532 ;; 13533 sparc*-*linux*) 13534 LD="${LD-ld} -m elf64_sparc" 13535 ;; 13536 esac 13537 ;; 13538 esac 13539 fi 13540 rm -rf conftest* 13541 ;; 13542 13543*-*-sco3.2v5*) 13544 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 13545 SAVE_CFLAGS=$CFLAGS 13546 CFLAGS="$CFLAGS -belf" 13547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 13548$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 13549if ${lt_cv_cc_needs_belf+:} false; then : 13550 $as_echo_n "(cached) " >&6 13551else 13552 ac_ext=c 13553ac_cpp='$CPP $CPPFLAGS' 13554ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13555ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13556ac_compiler_gnu=$ac_cv_c_compiler_gnu 13557 13558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13559/* end confdefs.h. */ 13560 13561#ifdef F77_DUMMY_MAIN 13562 13563# ifdef __cplusplus 13564 extern "C" 13565# endif 13566 int F77_DUMMY_MAIN() { return 1; } 13567 13568#endif 13569int 13570main () 13571{ 13572 13573 ; 13574 return 0; 13575} 13576_ACEOF 13577if ac_fn_c_try_link "$LINENO"; then : 13578 lt_cv_cc_needs_belf=yes 13579else 13580 lt_cv_cc_needs_belf=no 13581fi 13582rm -f core conftest.err conftest.$ac_objext \ 13583 conftest$ac_exeext conftest.$ac_ext 13584 ac_ext=c 13585ac_cpp='$CPP $CPPFLAGS' 13586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13588ac_compiler_gnu=$ac_cv_c_compiler_gnu 13589 13590fi 13591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 13592$as_echo "$lt_cv_cc_needs_belf" >&6; } 13593 if test yes != "$lt_cv_cc_needs_belf"; then 13594 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 13595 CFLAGS=$SAVE_CFLAGS 13596 fi 13597 ;; 13598*-*solaris*) 13599 # Find out what ABI is being produced by ac_compile, and set linker 13600 # options accordingly. 13601 echo 'int i;' > conftest.$ac_ext 13602 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13603 (eval $ac_compile) 2>&5 13604 ac_status=$? 13605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13606 test $ac_status = 0; }; then 13607 case `/usr/bin/file conftest.o` in 13608 *64-bit*) 13609 case $lt_cv_prog_gnu_ld in 13610 yes*) 13611 case $host in 13612 i?86-*-solaris*|x86_64-*-solaris*) 13613 LD="${LD-ld} -m elf_x86_64" 13614 ;; 13615 sparc*-*-solaris*) 13616 LD="${LD-ld} -m elf64_sparc" 13617 ;; 13618 esac 13619 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 13620 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 13621 LD=${LD-ld}_sol2 13622 fi 13623 ;; 13624 *) 13625 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 13626 LD="${LD-ld} -64" 13627 fi 13628 ;; 13629 esac 13630 ;; 13631 esac 13632 fi 13633 rm -rf conftest* 13634 ;; 13635esac 13636 13637need_locks=$enable_libtool_lock 13638 13639if test -n "$ac_tool_prefix"; then 13640 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 13641set dummy ${ac_tool_prefix}mt; ac_word=$2 13642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13643$as_echo_n "checking for $ac_word... " >&6; } 13644if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 13645 $as_echo_n "(cached) " >&6 13646else 13647 if test -n "$MANIFEST_TOOL"; then 13648 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 13649else 13650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13651for as_dir in $PATH 13652do 13653 IFS=$as_save_IFS 13654 test -z "$as_dir" && as_dir=. 13655 for ac_exec_ext in '' $ac_executable_extensions; do 13656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13657 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 13658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13659 break 2 13660 fi 13661done 13662 done 13663IFS=$as_save_IFS 13664 13665fi 13666fi 13667MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 13668if test -n "$MANIFEST_TOOL"; then 13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 13670$as_echo "$MANIFEST_TOOL" >&6; } 13671else 13672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13673$as_echo "no" >&6; } 13674fi 13675 13676 13677fi 13678if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 13679 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 13680 # Extract the first word of "mt", so it can be a program name with args. 13681set dummy mt; ac_word=$2 13682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13683$as_echo_n "checking for $ac_word... " >&6; } 13684if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 13685 $as_echo_n "(cached) " >&6 13686else 13687 if test -n "$ac_ct_MANIFEST_TOOL"; then 13688 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 13689else 13690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13691for as_dir in $PATH 13692do 13693 IFS=$as_save_IFS 13694 test -z "$as_dir" && as_dir=. 13695 for ac_exec_ext in '' $ac_executable_extensions; do 13696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13697 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 13698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13699 break 2 13700 fi 13701done 13702 done 13703IFS=$as_save_IFS 13704 13705fi 13706fi 13707ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 13708if test -n "$ac_ct_MANIFEST_TOOL"; then 13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 13710$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 13711else 13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13713$as_echo "no" >&6; } 13714fi 13715 13716 if test "x$ac_ct_MANIFEST_TOOL" = x; then 13717 MANIFEST_TOOL=":" 13718 else 13719 case $cross_compiling:$ac_tool_warned in 13720yes:) 13721{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13722$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13723ac_tool_warned=yes ;; 13724esac 13725 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 13726 fi 13727else 13728 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 13729fi 13730 13731test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 13732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 13733$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 13734if ${lt_cv_path_mainfest_tool+:} false; then : 13735 $as_echo_n "(cached) " >&6 13736else 13737 lt_cv_path_mainfest_tool=no 13738 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 13739 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 13740 cat conftest.err >&5 13741 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 13742 lt_cv_path_mainfest_tool=yes 13743 fi 13744 rm -f conftest* 13745fi 13746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 13747$as_echo "$lt_cv_path_mainfest_tool" >&6; } 13748if test yes != "$lt_cv_path_mainfest_tool"; then 13749 MANIFEST_TOOL=: 13750fi 13751 13752 13753 13754 13755 13756 13757 case $host_os in 13758 rhapsody* | darwin*) 13759 if test -n "$ac_tool_prefix"; then 13760 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 13761set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 13762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13763$as_echo_n "checking for $ac_word... " >&6; } 13764if ${ac_cv_prog_DSYMUTIL+:} false; then : 13765 $as_echo_n "(cached) " >&6 13766else 13767 if test -n "$DSYMUTIL"; then 13768 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 13769else 13770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13771for as_dir in $PATH 13772do 13773 IFS=$as_save_IFS 13774 test -z "$as_dir" && as_dir=. 13775 for ac_exec_ext in '' $ac_executable_extensions; do 13776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13777 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 13778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13779 break 2 13780 fi 13781done 13782 done 13783IFS=$as_save_IFS 13784 13785fi 13786fi 13787DSYMUTIL=$ac_cv_prog_DSYMUTIL 13788if test -n "$DSYMUTIL"; then 13789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 13790$as_echo "$DSYMUTIL" >&6; } 13791else 13792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13793$as_echo "no" >&6; } 13794fi 13795 13796 13797fi 13798if test -z "$ac_cv_prog_DSYMUTIL"; then 13799 ac_ct_DSYMUTIL=$DSYMUTIL 13800 # Extract the first word of "dsymutil", so it can be a program name with args. 13801set dummy dsymutil; ac_word=$2 13802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13803$as_echo_n "checking for $ac_word... " >&6; } 13804if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 13805 $as_echo_n "(cached) " >&6 13806else 13807 if test -n "$ac_ct_DSYMUTIL"; then 13808 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 13809else 13810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13811for as_dir in $PATH 13812do 13813 IFS=$as_save_IFS 13814 test -z "$as_dir" && as_dir=. 13815 for ac_exec_ext in '' $ac_executable_extensions; do 13816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13817 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 13818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13819 break 2 13820 fi 13821done 13822 done 13823IFS=$as_save_IFS 13824 13825fi 13826fi 13827ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 13828if test -n "$ac_ct_DSYMUTIL"; then 13829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 13830$as_echo "$ac_ct_DSYMUTIL" >&6; } 13831else 13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13833$as_echo "no" >&6; } 13834fi 13835 13836 if test "x$ac_ct_DSYMUTIL" = x; then 13837 DSYMUTIL=":" 13838 else 13839 case $cross_compiling:$ac_tool_warned in 13840yes:) 13841{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13842$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13843ac_tool_warned=yes ;; 13844esac 13845 DSYMUTIL=$ac_ct_DSYMUTIL 13846 fi 13847else 13848 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 13849fi 13850 13851 if test -n "$ac_tool_prefix"; then 13852 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 13853set dummy ${ac_tool_prefix}nmedit; ac_word=$2 13854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13855$as_echo_n "checking for $ac_word... " >&6; } 13856if ${ac_cv_prog_NMEDIT+:} false; then : 13857 $as_echo_n "(cached) " >&6 13858else 13859 if test -n "$NMEDIT"; then 13860 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 13861else 13862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13863for as_dir in $PATH 13864do 13865 IFS=$as_save_IFS 13866 test -z "$as_dir" && as_dir=. 13867 for ac_exec_ext in '' $ac_executable_extensions; do 13868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13869 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 13870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13871 break 2 13872 fi 13873done 13874 done 13875IFS=$as_save_IFS 13876 13877fi 13878fi 13879NMEDIT=$ac_cv_prog_NMEDIT 13880if test -n "$NMEDIT"; then 13881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 13882$as_echo "$NMEDIT" >&6; } 13883else 13884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13885$as_echo "no" >&6; } 13886fi 13887 13888 13889fi 13890if test -z "$ac_cv_prog_NMEDIT"; then 13891 ac_ct_NMEDIT=$NMEDIT 13892 # Extract the first word of "nmedit", so it can be a program name with args. 13893set dummy nmedit; ac_word=$2 13894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13895$as_echo_n "checking for $ac_word... " >&6; } 13896if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 13897 $as_echo_n "(cached) " >&6 13898else 13899 if test -n "$ac_ct_NMEDIT"; then 13900 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 13901else 13902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13903for as_dir in $PATH 13904do 13905 IFS=$as_save_IFS 13906 test -z "$as_dir" && as_dir=. 13907 for ac_exec_ext in '' $ac_executable_extensions; do 13908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13909 ac_cv_prog_ac_ct_NMEDIT="nmedit" 13910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13911 break 2 13912 fi 13913done 13914 done 13915IFS=$as_save_IFS 13916 13917fi 13918fi 13919ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 13920if test -n "$ac_ct_NMEDIT"; then 13921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 13922$as_echo "$ac_ct_NMEDIT" >&6; } 13923else 13924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13925$as_echo "no" >&6; } 13926fi 13927 13928 if test "x$ac_ct_NMEDIT" = x; then 13929 NMEDIT=":" 13930 else 13931 case $cross_compiling:$ac_tool_warned in 13932yes:) 13933{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13934$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13935ac_tool_warned=yes ;; 13936esac 13937 NMEDIT=$ac_ct_NMEDIT 13938 fi 13939else 13940 NMEDIT="$ac_cv_prog_NMEDIT" 13941fi 13942 13943 if test -n "$ac_tool_prefix"; then 13944 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 13945set dummy ${ac_tool_prefix}lipo; ac_word=$2 13946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13947$as_echo_n "checking for $ac_word... " >&6; } 13948if ${ac_cv_prog_LIPO+:} false; then : 13949 $as_echo_n "(cached) " >&6 13950else 13951 if test -n "$LIPO"; then 13952 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 13953else 13954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13955for as_dir in $PATH 13956do 13957 IFS=$as_save_IFS 13958 test -z "$as_dir" && as_dir=. 13959 for ac_exec_ext in '' $ac_executable_extensions; do 13960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13961 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 13962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13963 break 2 13964 fi 13965done 13966 done 13967IFS=$as_save_IFS 13968 13969fi 13970fi 13971LIPO=$ac_cv_prog_LIPO 13972if test -n "$LIPO"; then 13973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 13974$as_echo "$LIPO" >&6; } 13975else 13976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13977$as_echo "no" >&6; } 13978fi 13979 13980 13981fi 13982if test -z "$ac_cv_prog_LIPO"; then 13983 ac_ct_LIPO=$LIPO 13984 # Extract the first word of "lipo", so it can be a program name with args. 13985set dummy lipo; ac_word=$2 13986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13987$as_echo_n "checking for $ac_word... " >&6; } 13988if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 13989 $as_echo_n "(cached) " >&6 13990else 13991 if test -n "$ac_ct_LIPO"; then 13992 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 13993else 13994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13995for as_dir in $PATH 13996do 13997 IFS=$as_save_IFS 13998 test -z "$as_dir" && as_dir=. 13999 for ac_exec_ext in '' $ac_executable_extensions; do 14000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14001 ac_cv_prog_ac_ct_LIPO="lipo" 14002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14003 break 2 14004 fi 14005done 14006 done 14007IFS=$as_save_IFS 14008 14009fi 14010fi 14011ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 14012if test -n "$ac_ct_LIPO"; then 14013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 14014$as_echo "$ac_ct_LIPO" >&6; } 14015else 14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14017$as_echo "no" >&6; } 14018fi 14019 14020 if test "x$ac_ct_LIPO" = x; then 14021 LIPO=":" 14022 else 14023 case $cross_compiling:$ac_tool_warned in 14024yes:) 14025{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14026$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14027ac_tool_warned=yes ;; 14028esac 14029 LIPO=$ac_ct_LIPO 14030 fi 14031else 14032 LIPO="$ac_cv_prog_LIPO" 14033fi 14034 14035 if test -n "$ac_tool_prefix"; then 14036 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 14037set dummy ${ac_tool_prefix}otool; ac_word=$2 14038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14039$as_echo_n "checking for $ac_word... " >&6; } 14040if ${ac_cv_prog_OTOOL+:} false; then : 14041 $as_echo_n "(cached) " >&6 14042else 14043 if test -n "$OTOOL"; then 14044 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 14045else 14046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14047for as_dir in $PATH 14048do 14049 IFS=$as_save_IFS 14050 test -z "$as_dir" && as_dir=. 14051 for ac_exec_ext in '' $ac_executable_extensions; do 14052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14053 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 14054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14055 break 2 14056 fi 14057done 14058 done 14059IFS=$as_save_IFS 14060 14061fi 14062fi 14063OTOOL=$ac_cv_prog_OTOOL 14064if test -n "$OTOOL"; then 14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 14066$as_echo "$OTOOL" >&6; } 14067else 14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14069$as_echo "no" >&6; } 14070fi 14071 14072 14073fi 14074if test -z "$ac_cv_prog_OTOOL"; then 14075 ac_ct_OTOOL=$OTOOL 14076 # Extract the first word of "otool", so it can be a program name with args. 14077set dummy otool; ac_word=$2 14078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14079$as_echo_n "checking for $ac_word... " >&6; } 14080if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 14081 $as_echo_n "(cached) " >&6 14082else 14083 if test -n "$ac_ct_OTOOL"; then 14084 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 14085else 14086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14087for as_dir in $PATH 14088do 14089 IFS=$as_save_IFS 14090 test -z "$as_dir" && as_dir=. 14091 for ac_exec_ext in '' $ac_executable_extensions; do 14092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14093 ac_cv_prog_ac_ct_OTOOL="otool" 14094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14095 break 2 14096 fi 14097done 14098 done 14099IFS=$as_save_IFS 14100 14101fi 14102fi 14103ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 14104if test -n "$ac_ct_OTOOL"; then 14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 14106$as_echo "$ac_ct_OTOOL" >&6; } 14107else 14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14109$as_echo "no" >&6; } 14110fi 14111 14112 if test "x$ac_ct_OTOOL" = x; then 14113 OTOOL=":" 14114 else 14115 case $cross_compiling:$ac_tool_warned in 14116yes:) 14117{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14118$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14119ac_tool_warned=yes ;; 14120esac 14121 OTOOL=$ac_ct_OTOOL 14122 fi 14123else 14124 OTOOL="$ac_cv_prog_OTOOL" 14125fi 14126 14127 if test -n "$ac_tool_prefix"; then 14128 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 14129set dummy ${ac_tool_prefix}otool64; ac_word=$2 14130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14131$as_echo_n "checking for $ac_word... " >&6; } 14132if ${ac_cv_prog_OTOOL64+:} false; then : 14133 $as_echo_n "(cached) " >&6 14134else 14135 if test -n "$OTOOL64"; then 14136 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 14137else 14138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14139for as_dir in $PATH 14140do 14141 IFS=$as_save_IFS 14142 test -z "$as_dir" && as_dir=. 14143 for ac_exec_ext in '' $ac_executable_extensions; do 14144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14145 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 14146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14147 break 2 14148 fi 14149done 14150 done 14151IFS=$as_save_IFS 14152 14153fi 14154fi 14155OTOOL64=$ac_cv_prog_OTOOL64 14156if test -n "$OTOOL64"; then 14157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 14158$as_echo "$OTOOL64" >&6; } 14159else 14160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14161$as_echo "no" >&6; } 14162fi 14163 14164 14165fi 14166if test -z "$ac_cv_prog_OTOOL64"; then 14167 ac_ct_OTOOL64=$OTOOL64 14168 # Extract the first word of "otool64", so it can be a program name with args. 14169set dummy otool64; ac_word=$2 14170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14171$as_echo_n "checking for $ac_word... " >&6; } 14172if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 14173 $as_echo_n "(cached) " >&6 14174else 14175 if test -n "$ac_ct_OTOOL64"; then 14176 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 14177else 14178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14179for as_dir in $PATH 14180do 14181 IFS=$as_save_IFS 14182 test -z "$as_dir" && as_dir=. 14183 for ac_exec_ext in '' $ac_executable_extensions; do 14184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14185 ac_cv_prog_ac_ct_OTOOL64="otool64" 14186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14187 break 2 14188 fi 14189done 14190 done 14191IFS=$as_save_IFS 14192 14193fi 14194fi 14195ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 14196if test -n "$ac_ct_OTOOL64"; then 14197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 14198$as_echo "$ac_ct_OTOOL64" >&6; } 14199else 14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14201$as_echo "no" >&6; } 14202fi 14203 14204 if test "x$ac_ct_OTOOL64" = x; then 14205 OTOOL64=":" 14206 else 14207 case $cross_compiling:$ac_tool_warned in 14208yes:) 14209{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14210$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14211ac_tool_warned=yes ;; 14212esac 14213 OTOOL64=$ac_ct_OTOOL64 14214 fi 14215else 14216 OTOOL64="$ac_cv_prog_OTOOL64" 14217fi 14218 14219 14220 14221 14222 14223 14224 14225 14226 14227 14228 14229 14230 14231 14232 14233 14234 14235 14236 14237 14238 14239 14240 14241 14242 14243 14244 14245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 14246$as_echo_n "checking for -single_module linker flag... " >&6; } 14247if ${lt_cv_apple_cc_single_mod+:} false; then : 14248 $as_echo_n "(cached) " >&6 14249else 14250 lt_cv_apple_cc_single_mod=no 14251 if test -z "$LT_MULTI_MODULE"; then 14252 # By default we will add the -single_module flag. You can override 14253 # by either setting the environment variable LT_MULTI_MODULE 14254 # non-empty at configure time, or by adding -multi_module to the 14255 # link flags. 14256 rm -rf libconftest.dylib* 14257 echo "int foo(void){return 1;}" > conftest.c 14258 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14259-dynamiclib -Wl,-single_module conftest.c" >&5 14260 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14261 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 14262 _lt_result=$? 14263 # If there is a non-empty error log, and "single_module" 14264 # appears in it, assume the flag caused a linker warning 14265 if test -s conftest.err && $GREP single_module conftest.err; then 14266 cat conftest.err >&5 14267 # Otherwise, if the output was created with a 0 exit code from 14268 # the compiler, it worked. 14269 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 14270 lt_cv_apple_cc_single_mod=yes 14271 else 14272 cat conftest.err >&5 14273 fi 14274 rm -rf libconftest.dylib* 14275 rm -f conftest.* 14276 fi 14277fi 14278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 14279$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 14280 14281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 14282$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 14283if ${lt_cv_ld_exported_symbols_list+:} false; then : 14284 $as_echo_n "(cached) " >&6 14285else 14286 lt_cv_ld_exported_symbols_list=no 14287 save_LDFLAGS=$LDFLAGS 14288 echo "_main" > conftest.sym 14289 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 14290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14291/* end confdefs.h. */ 14292 14293#ifdef F77_DUMMY_MAIN 14294 14295# ifdef __cplusplus 14296 extern "C" 14297# endif 14298 int F77_DUMMY_MAIN() { return 1; } 14299 14300#endif 14301int 14302main () 14303{ 14304 14305 ; 14306 return 0; 14307} 14308_ACEOF 14309if ac_fn_c_try_link "$LINENO"; then : 14310 lt_cv_ld_exported_symbols_list=yes 14311else 14312 lt_cv_ld_exported_symbols_list=no 14313fi 14314rm -f core conftest.err conftest.$ac_objext \ 14315 conftest$ac_exeext conftest.$ac_ext 14316 LDFLAGS=$save_LDFLAGS 14317 14318fi 14319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 14320$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 14321 14322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 14323$as_echo_n "checking for -force_load linker flag... " >&6; } 14324if ${lt_cv_ld_force_load+:} false; then : 14325 $as_echo_n "(cached) " >&6 14326else 14327 lt_cv_ld_force_load=no 14328 cat > conftest.c << _LT_EOF 14329int forced_loaded() { return 2;} 14330_LT_EOF 14331 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 14332 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 14333 echo "$AR cru libconftest.a conftest.o" >&5 14334 $AR cru libconftest.a conftest.o 2>&5 14335 echo "$RANLIB libconftest.a" >&5 14336 $RANLIB libconftest.a 2>&5 14337 cat > conftest.c << _LT_EOF 14338int main() { return 0;} 14339_LT_EOF 14340 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 14341 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 14342 _lt_result=$? 14343 if test -s conftest.err && $GREP force_load conftest.err; then 14344 cat conftest.err >&5 14345 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 14346 lt_cv_ld_force_load=yes 14347 else 14348 cat conftest.err >&5 14349 fi 14350 rm -f conftest.err libconftest.a conftest conftest.c 14351 rm -rf conftest.dSYM 14352 14353fi 14354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 14355$as_echo "$lt_cv_ld_force_load" >&6; } 14356 case $host_os in 14357 rhapsody* | darwin1.[012]) 14358 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 14359 darwin1.*) 14360 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14361 darwin*) # darwin 5.x on 14362 # if running on 10.5 or later, the deployment target defaults 14363 # to the OS version, if on x86, and 10.4, the deployment 14364 # target defaults to 10.4. Don't you love it? 14365 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 14366 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 14367 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 14368 10.[012][,.]*) 14369 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14370 10.*) 14371 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 14372 esac 14373 ;; 14374 esac 14375 if test yes = "$lt_cv_apple_cc_single_mod"; then 14376 _lt_dar_single_mod='$single_module' 14377 fi 14378 if test yes = "$lt_cv_ld_exported_symbols_list"; then 14379 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 14380 else 14381 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 14382 fi 14383 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 14384 _lt_dsymutil='~$DSYMUTIL $lib || :' 14385 else 14386 _lt_dsymutil= 14387 fi 14388 ;; 14389 esac 14390 14391# func_munge_path_list VARIABLE PATH 14392# ----------------------------------- 14393# VARIABLE is name of variable containing _space_ separated list of 14394# directories to be munged by the contents of PATH, which is string 14395# having a format: 14396# "DIR[:DIR]:" 14397# string "DIR[ DIR]" will be prepended to VARIABLE 14398# ":DIR[:DIR]" 14399# string "DIR[ DIR]" will be appended to VARIABLE 14400# "DIRP[:DIRP]::[DIRA:]DIRA" 14401# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 14402# "DIRA[ DIRA]" will be appended to VARIABLE 14403# "DIR[:DIR]" 14404# VARIABLE will be replaced by "DIR[ DIR]" 14405func_munge_path_list () 14406{ 14407 case x$2 in 14408 x) 14409 ;; 14410 *:) 14411 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 14412 ;; 14413 x:*) 14414 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 14415 ;; 14416 *::*) 14417 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 14418 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 14419 ;; 14420 *) 14421 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 14422 ;; 14423 esac 14424} 14425 14426for ac_header in dlfcn.h 14427do : 14428 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 14429" 14430if test "x$ac_cv_header_dlfcn_h" = xyes; then : 14431 cat >>confdefs.h <<_ACEOF 14432#define HAVE_DLFCN_H 1 14433_ACEOF 14434 14435fi 14436 14437done 14438 14439 14440 14441func_stripname_cnf () 14442{ 14443 case $2 in 14444 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 14445 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 14446 esac 14447} # func_stripname_cnf 14448 14449 14450 14451 14452 14453# Set options 14454 14455 14456 14457 enable_dlopen=no 14458 14459 14460 14461 # Check whether --enable-shared was given. 14462if test "${enable_shared+set}" = set; then : 14463 enableval=$enable_shared; p=${PACKAGE-default} 14464 case $enableval in 14465 yes) enable_shared=yes ;; 14466 no) enable_shared=no ;; 14467 *) 14468 enable_shared=no 14469 # Look at the argument we got. We use all the common list separators. 14470 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14471 for pkg in $enableval; do 14472 IFS=$lt_save_ifs 14473 if test "X$pkg" = "X$p"; then 14474 enable_shared=yes 14475 fi 14476 done 14477 IFS=$lt_save_ifs 14478 ;; 14479 esac 14480else 14481 enable_shared=yes 14482fi 14483 14484 14485 14486 14487 14488 14489 14490 14491 14492 # Check whether --enable-static was given. 14493if test "${enable_static+set}" = set; then : 14494 enableval=$enable_static; p=${PACKAGE-default} 14495 case $enableval in 14496 yes) enable_static=yes ;; 14497 no) enable_static=no ;; 14498 *) 14499 enable_static=no 14500 # Look at the argument we got. We use all the common list separators. 14501 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14502 for pkg in $enableval; do 14503 IFS=$lt_save_ifs 14504 if test "X$pkg" = "X$p"; then 14505 enable_static=yes 14506 fi 14507 done 14508 IFS=$lt_save_ifs 14509 ;; 14510 esac 14511else 14512 enable_static=yes 14513fi 14514 14515 14516 14517 14518 14519 14520 14521 14522 14523 14524# Check whether --with-pic was given. 14525if test "${with_pic+set}" = set; then : 14526 withval=$with_pic; lt_p=${PACKAGE-default} 14527 case $withval in 14528 yes|no) pic_mode=$withval ;; 14529 *) 14530 pic_mode=default 14531 # Look at the argument we got. We use all the common list separators. 14532 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14533 for lt_pkg in $withval; do 14534 IFS=$lt_save_ifs 14535 if test "X$lt_pkg" = "X$lt_p"; then 14536 pic_mode=yes 14537 fi 14538 done 14539 IFS=$lt_save_ifs 14540 ;; 14541 esac 14542else 14543 pic_mode=default 14544fi 14545 14546 14547 14548 14549 14550 14551 14552 14553 # Check whether --enable-fast-install was given. 14554if test "${enable_fast_install+set}" = set; then : 14555 enableval=$enable_fast_install; p=${PACKAGE-default} 14556 case $enableval in 14557 yes) enable_fast_install=yes ;; 14558 no) enable_fast_install=no ;; 14559 *) 14560 enable_fast_install=no 14561 # Look at the argument we got. We use all the common list separators. 14562 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14563 for pkg in $enableval; do 14564 IFS=$lt_save_ifs 14565 if test "X$pkg" = "X$p"; then 14566 enable_fast_install=yes 14567 fi 14568 done 14569 IFS=$lt_save_ifs 14570 ;; 14571 esac 14572else 14573 enable_fast_install=yes 14574fi 14575 14576 14577 14578 14579 14580 14581 14582 14583 shared_archive_member_spec= 14584case $host,$enable_shared in 14585power*-*-aix[5-9]*,yes) 14586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 14587$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 14588 14589# Check whether --with-aix-soname was given. 14590if test "${with_aix_soname+set}" = set; then : 14591 withval=$with_aix_soname; case $withval in 14592 aix|svr4|both) 14593 ;; 14594 *) 14595 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 14596 ;; 14597 esac 14598 lt_cv_with_aix_soname=$with_aix_soname 14599else 14600 if ${lt_cv_with_aix_soname+:} false; then : 14601 $as_echo_n "(cached) " >&6 14602else 14603 lt_cv_with_aix_soname=aix 14604fi 14605 14606 with_aix_soname=$lt_cv_with_aix_soname 14607fi 14608 14609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 14610$as_echo "$with_aix_soname" >&6; } 14611 if test aix != "$with_aix_soname"; then 14612 # For the AIX way of multilib, we name the shared archive member 14613 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 14614 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 14615 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 14616 # the AIX toolchain works better with OBJECT_MODE set (default 32). 14617 if test 64 = "${OBJECT_MODE-32}"; then 14618 shared_archive_member_spec=shr_64 14619 else 14620 shared_archive_member_spec=shr 14621 fi 14622 fi 14623 ;; 14624*) 14625 with_aix_soname=aix 14626 ;; 14627esac 14628 14629 14630 14631 14632 14633 14634 14635 14636 14637 14638# This can be used to rebuild libtool when needed 14639LIBTOOL_DEPS=$ltmain 14640 14641# Always use our own libtool. 14642LIBTOOL='$(SHELL) $(top_builddir)/libtool' 14643 14644 14645 14646 14647 14648 14649 14650 14651 14652 14653 14654 14655 14656 14657 14658 14659 14660 14661 14662 14663 14664 14665 14666 14667 14668 14669 14670 14671 14672 14673test -z "$LN_S" && LN_S="ln -s" 14674 14675 14676 14677 14678 14679 14680 14681 14682 14683 14684 14685 14686 14687 14688if test -n "${ZSH_VERSION+set}"; then 14689 setopt NO_GLOB_SUBST 14690fi 14691 14692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 14693$as_echo_n "checking for objdir... " >&6; } 14694if ${lt_cv_objdir+:} false; then : 14695 $as_echo_n "(cached) " >&6 14696else 14697 rm -f .libs 2>/dev/null 14698mkdir .libs 2>/dev/null 14699if test -d .libs; then 14700 lt_cv_objdir=.libs 14701else 14702 # MS-DOS does not allow filenames that begin with a dot. 14703 lt_cv_objdir=_libs 14704fi 14705rmdir .libs 2>/dev/null 14706fi 14707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 14708$as_echo "$lt_cv_objdir" >&6; } 14709objdir=$lt_cv_objdir 14710 14711 14712 14713 14714 14715cat >>confdefs.h <<_ACEOF 14716#define LT_OBJDIR "$lt_cv_objdir/" 14717_ACEOF 14718 14719 14720 14721 14722case $host_os in 14723aix3*) 14724 # AIX sometimes has problems with the GCC collect2 program. For some 14725 # reason, if we set the COLLECT_NAMES environment variable, the problems 14726 # vanish in a puff of smoke. 14727 if test set != "${COLLECT_NAMES+set}"; then 14728 COLLECT_NAMES= 14729 export COLLECT_NAMES 14730 fi 14731 ;; 14732esac 14733 14734# Global variables: 14735ofile=libtool 14736can_build_shared=yes 14737 14738# All known linkers require a '.a' archive for static linking (except MSVC, 14739# which needs '.lib'). 14740libext=a 14741 14742with_gnu_ld=$lt_cv_prog_gnu_ld 14743 14744old_CC=$CC 14745old_CFLAGS=$CFLAGS 14746 14747# Set sane defaults for various variables 14748test -z "$CC" && CC=cc 14749test -z "$LTCC" && LTCC=$CC 14750test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 14751test -z "$LD" && LD=ld 14752test -z "$ac_objext" && ac_objext=o 14753 14754func_cc_basename $compiler 14755cc_basename=$func_cc_basename_result 14756 14757 14758# Only perform the check for file, if the check method requires it 14759test -z "$MAGIC_CMD" && MAGIC_CMD=file 14760case $deplibs_check_method in 14761file_magic*) 14762 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 14763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 14764$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 14765if ${lt_cv_path_MAGIC_CMD+:} false; then : 14766 $as_echo_n "(cached) " >&6 14767else 14768 case $MAGIC_CMD in 14769[\\/*] | ?:[\\/]*) 14770 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 14771 ;; 14772*) 14773 lt_save_MAGIC_CMD=$MAGIC_CMD 14774 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 14775 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14776 for ac_dir in $ac_dummy; do 14777 IFS=$lt_save_ifs 14778 test -z "$ac_dir" && ac_dir=. 14779 if test -f "$ac_dir/${ac_tool_prefix}file"; then 14780 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 14781 if test -n "$file_magic_test_file"; then 14782 case $deplibs_check_method in 14783 "file_magic "*) 14784 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14785 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14786 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14787 $EGREP "$file_magic_regex" > /dev/null; then 14788 : 14789 else 14790 cat <<_LT_EOF 1>&2 14791 14792*** Warning: the command libtool uses to detect shared libraries, 14793*** $file_magic_cmd, produces output that libtool cannot recognize. 14794*** The result is that libtool may fail to recognize shared libraries 14795*** as such. This will affect the creation of libtool libraries that 14796*** depend on shared libraries, but programs linked with such libtool 14797*** libraries will work regardless of this problem. Nevertheless, you 14798*** may want to report the problem to your system manager and/or to 14799*** bug-libtool@gnu.org 14800 14801_LT_EOF 14802 fi ;; 14803 esac 14804 fi 14805 break 14806 fi 14807 done 14808 IFS=$lt_save_ifs 14809 MAGIC_CMD=$lt_save_MAGIC_CMD 14810 ;; 14811esac 14812fi 14813 14814MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14815if test -n "$MAGIC_CMD"; then 14816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14817$as_echo "$MAGIC_CMD" >&6; } 14818else 14819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14820$as_echo "no" >&6; } 14821fi 14822 14823 14824 14825 14826 14827if test -z "$lt_cv_path_MAGIC_CMD"; then 14828 if test -n "$ac_tool_prefix"; then 14829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 14830$as_echo_n "checking for file... " >&6; } 14831if ${lt_cv_path_MAGIC_CMD+:} false; then : 14832 $as_echo_n "(cached) " >&6 14833else 14834 case $MAGIC_CMD in 14835[\\/*] | ?:[\\/]*) 14836 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 14837 ;; 14838*) 14839 lt_save_MAGIC_CMD=$MAGIC_CMD 14840 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 14841 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14842 for ac_dir in $ac_dummy; do 14843 IFS=$lt_save_ifs 14844 test -z "$ac_dir" && ac_dir=. 14845 if test -f "$ac_dir/file"; then 14846 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 14847 if test -n "$file_magic_test_file"; then 14848 case $deplibs_check_method in 14849 "file_magic "*) 14850 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14851 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14852 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14853 $EGREP "$file_magic_regex" > /dev/null; then 14854 : 14855 else 14856 cat <<_LT_EOF 1>&2 14857 14858*** Warning: the command libtool uses to detect shared libraries, 14859*** $file_magic_cmd, produces output that libtool cannot recognize. 14860*** The result is that libtool may fail to recognize shared libraries 14861*** as such. This will affect the creation of libtool libraries that 14862*** depend on shared libraries, but programs linked with such libtool 14863*** libraries will work regardless of this problem. Nevertheless, you 14864*** may want to report the problem to your system manager and/or to 14865*** bug-libtool@gnu.org 14866 14867_LT_EOF 14868 fi ;; 14869 esac 14870 fi 14871 break 14872 fi 14873 done 14874 IFS=$lt_save_ifs 14875 MAGIC_CMD=$lt_save_MAGIC_CMD 14876 ;; 14877esac 14878fi 14879 14880MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14881if test -n "$MAGIC_CMD"; then 14882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14883$as_echo "$MAGIC_CMD" >&6; } 14884else 14885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14886$as_echo "no" >&6; } 14887fi 14888 14889 14890 else 14891 MAGIC_CMD=: 14892 fi 14893fi 14894 14895 fi 14896 ;; 14897esac 14898 14899# Use C for the default configuration in the libtool script 14900 14901lt_save_CC=$CC 14902ac_ext=c 14903ac_cpp='$CPP $CPPFLAGS' 14904ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14905ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14906ac_compiler_gnu=$ac_cv_c_compiler_gnu 14907 14908 14909# Source file extension for C test sources. 14910ac_ext=c 14911 14912# Object file extension for compiled C test sources. 14913objext=o 14914objext=$objext 14915 14916# Code to be used in simple compile tests 14917lt_simple_compile_test_code="int some_variable = 0;" 14918 14919# Code to be used in simple link tests 14920lt_simple_link_test_code='int main(){return(0);}' 14921 14922 14923 14924 14925 14926 14927 14928# If no C compiler was specified, use CC. 14929LTCC=${LTCC-"$CC"} 14930 14931# If no C compiler flags were specified, use CFLAGS. 14932LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14933 14934# Allow CC to be a program name with arguments. 14935compiler=$CC 14936 14937# Save the default compiler, since it gets overwritten when the other 14938# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 14939compiler_DEFAULT=$CC 14940 14941# save warnings/boilerplate of simple test code 14942ac_outfile=conftest.$ac_objext 14943echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14944eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14945_lt_compiler_boilerplate=`cat conftest.err` 14946$RM conftest* 14947 14948ac_outfile=conftest.$ac_objext 14949echo "$lt_simple_link_test_code" >conftest.$ac_ext 14950eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14951_lt_linker_boilerplate=`cat conftest.err` 14952$RM -r conftest* 14953 14954 14955## CAVEAT EMPTOR: 14956## There is no encapsulation within the following macros, do not change 14957## the running order or otherwise move them around unless you know exactly 14958## what you are doing... 14959if test -n "$compiler"; then 14960 14961lt_prog_compiler_no_builtin_flag= 14962 14963if test yes = "$GCC"; then 14964 case $cc_basename in 14965 nvcc*) 14966 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 14967 *) 14968 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 14969 esac 14970 14971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 14972$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 14973if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 14974 $as_echo_n "(cached) " >&6 14975else 14976 lt_cv_prog_compiler_rtti_exceptions=no 14977 ac_outfile=conftest.$ac_objext 14978 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14979 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 14980 # Insert the option either (1) after the last *FLAGS variable, or 14981 # (2) before a word containing "conftest.", or (3) at the end. 14982 # Note that $ac_compile itself does not contain backslashes and begins 14983 # with a dollar sign (not a hyphen), so the echo should work correctly. 14984 # The option is referenced via a variable to avoid confusing sed. 14985 lt_compile=`echo "$ac_compile" | $SED \ 14986 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14987 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14988 -e 's:$: $lt_compiler_flag:'` 14989 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14990 (eval "$lt_compile" 2>conftest.err) 14991 ac_status=$? 14992 cat conftest.err >&5 14993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14994 if (exit $ac_status) && test -s "$ac_outfile"; then 14995 # The compiler can only warn and ignore the option if not recognized 14996 # So say no if there are warnings other than the usual output. 14997 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14998 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14999 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15000 lt_cv_prog_compiler_rtti_exceptions=yes 15001 fi 15002 fi 15003 $RM conftest* 15004 15005fi 15006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 15007$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 15008 15009if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 15010 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 15011else 15012 : 15013fi 15014 15015fi 15016 15017 15018 15019 15020 15021 15022 lt_prog_compiler_wl= 15023lt_prog_compiler_pic= 15024lt_prog_compiler_static= 15025 15026 15027 if test yes = "$GCC"; then 15028 lt_prog_compiler_wl='-Wl,' 15029 lt_prog_compiler_static='-static' 15030 15031 case $host_os in 15032 aix*) 15033 # All AIX code is PIC. 15034 if test ia64 = "$host_cpu"; then 15035 # AIX 5 now supports IA64 processor 15036 lt_prog_compiler_static='-Bstatic' 15037 fi 15038 lt_prog_compiler_pic='-fPIC' 15039 ;; 15040 15041 amigaos*) 15042 case $host_cpu in 15043 powerpc) 15044 # see comment about AmigaOS4 .so support 15045 lt_prog_compiler_pic='-fPIC' 15046 ;; 15047 m68k) 15048 # FIXME: we need at least 68020 code to build shared libraries, but 15049 # adding the '-m68020' flag to GCC prevents building anything better, 15050 # like '-m68040'. 15051 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 15052 ;; 15053 esac 15054 ;; 15055 15056 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15057 # PIC is the default for these OSes. 15058 ;; 15059 15060 mingw* | cygwin* | pw32* | os2* | cegcc*) 15061 # This hack is so that the source file can tell whether it is being 15062 # built for inclusion in a dll (and should export symbols for example). 15063 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15064 # (--disable-auto-import) libraries 15065 lt_prog_compiler_pic='-DDLL_EXPORT' 15066 case $host_os in 15067 os2*) 15068 lt_prog_compiler_static='$wl-static' 15069 ;; 15070 esac 15071 ;; 15072 15073 darwin* | rhapsody*) 15074 # PIC is the default on this platform 15075 # Common symbols not allowed in MH_DYLIB files 15076 lt_prog_compiler_pic='-fno-common' 15077 ;; 15078 15079 haiku*) 15080 # PIC is the default for Haiku. 15081 # The "-static" flag exists, but is broken. 15082 lt_prog_compiler_static= 15083 ;; 15084 15085 hpux*) 15086 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15087 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15088 # sets the default TLS model and affects inlining. 15089 case $host_cpu in 15090 hppa*64*) 15091 # +Z the default 15092 ;; 15093 *) 15094 lt_prog_compiler_pic='-fPIC' 15095 ;; 15096 esac 15097 ;; 15098 15099 interix[3-9]*) 15100 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15101 # Instead, we relocate shared libraries at runtime. 15102 ;; 15103 15104 msdosdjgpp*) 15105 # Just because we use GCC doesn't mean we suddenly get shared libraries 15106 # on systems that don't support them. 15107 lt_prog_compiler_can_build_shared=no 15108 enable_shared=no 15109 ;; 15110 15111 *nto* | *qnx*) 15112 # QNX uses GNU C++, but need to define -shared option too, otherwise 15113 # it will coredump. 15114 lt_prog_compiler_pic='-fPIC -shared' 15115 ;; 15116 15117 sysv4*MP*) 15118 if test -d /usr/nec; then 15119 lt_prog_compiler_pic=-Kconform_pic 15120 fi 15121 ;; 15122 15123 *) 15124 lt_prog_compiler_pic='-fPIC' 15125 ;; 15126 esac 15127 15128 case $cc_basename in 15129 nvcc*) # Cuda Compiler Driver 2.2 15130 lt_prog_compiler_wl='-Xlinker ' 15131 if test -n "$lt_prog_compiler_pic"; then 15132 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 15133 fi 15134 ;; 15135 esac 15136 else 15137 # PORTME Check for flag to pass linker flags through the system compiler. 15138 case $host_os in 15139 aix*) 15140 lt_prog_compiler_wl='-Wl,' 15141 if test ia64 = "$host_cpu"; then 15142 # AIX 5 now supports IA64 processor 15143 lt_prog_compiler_static='-Bstatic' 15144 else 15145 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 15146 fi 15147 ;; 15148 15149 darwin* | rhapsody*) 15150 # PIC is the default on this platform 15151 # Common symbols not allowed in MH_DYLIB files 15152 lt_prog_compiler_pic='-fno-common' 15153 case $cc_basename in 15154 nagfor*) 15155 # NAG Fortran compiler 15156 lt_prog_compiler_wl='-Wl,-Wl,,' 15157 lt_prog_compiler_pic='-PIC' 15158 lt_prog_compiler_static='-Bstatic' 15159 ;; 15160 esac 15161 ;; 15162 15163 mingw* | cygwin* | pw32* | os2* | cegcc*) 15164 # This hack is so that the source file can tell whether it is being 15165 # built for inclusion in a dll (and should export symbols for example). 15166 lt_prog_compiler_pic='-DDLL_EXPORT' 15167 case $host_os in 15168 os2*) 15169 lt_prog_compiler_static='$wl-static' 15170 ;; 15171 esac 15172 ;; 15173 15174 hpux9* | hpux10* | hpux11*) 15175 lt_prog_compiler_wl='-Wl,' 15176 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15177 # not for PA HP-UX. 15178 case $host_cpu in 15179 hppa*64*|ia64*) 15180 # +Z the default 15181 ;; 15182 *) 15183 lt_prog_compiler_pic='+Z' 15184 ;; 15185 esac 15186 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15187 lt_prog_compiler_static='$wl-a ${wl}archive' 15188 ;; 15189 15190 irix5* | irix6* | nonstopux*) 15191 lt_prog_compiler_wl='-Wl,' 15192 # PIC (with -KPIC) is the default. 15193 lt_prog_compiler_static='-non_shared' 15194 ;; 15195 15196 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15197 case $cc_basename in 15198 # old Intel for x86_64, which still supported -KPIC. 15199 ecc*) 15200 lt_prog_compiler_wl='-Wl,' 15201 lt_prog_compiler_pic='-KPIC' 15202 lt_prog_compiler_static='-static' 15203 ;; 15204 # icc used to be incompatible with GCC. 15205 # ICC 10 doesn't accept -KPIC any more. 15206 icc* | ifort*) 15207 lt_prog_compiler_wl='-Wl,' 15208 lt_prog_compiler_pic='-fPIC' 15209 lt_prog_compiler_static='-static' 15210 ;; 15211 # Lahey Fortran 8.1. 15212 lf95*) 15213 lt_prog_compiler_wl='-Wl,' 15214 lt_prog_compiler_pic='--shared' 15215 lt_prog_compiler_static='--static' 15216 ;; 15217 nagfor*) 15218 # NAG Fortran compiler 15219 lt_prog_compiler_wl='-Wl,-Wl,,' 15220 lt_prog_compiler_pic='-PIC' 15221 lt_prog_compiler_static='-Bstatic' 15222 ;; 15223 tcc*) 15224 # Fabrice Bellard et al's Tiny C Compiler 15225 lt_prog_compiler_wl='-Wl,' 15226 lt_prog_compiler_pic='-fPIC' 15227 lt_prog_compiler_static='-static' 15228 ;; 15229 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 15230 # Portland Group compilers (*not* the Pentium gcc compiler, 15231 # which looks to be a dead project) 15232 lt_prog_compiler_wl='-Wl,' 15233 lt_prog_compiler_pic='-fpic' 15234 lt_prog_compiler_static='-Bstatic' 15235 ;; 15236 ccc*) 15237 lt_prog_compiler_wl='-Wl,' 15238 # All Alpha code is PIC. 15239 lt_prog_compiler_static='-non_shared' 15240 ;; 15241 xl* | bgxl* | bgf* | mpixl*) 15242 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 15243 lt_prog_compiler_wl='-Wl,' 15244 lt_prog_compiler_pic='-qpic' 15245 lt_prog_compiler_static='-qstaticlink' 15246 ;; 15247 *) 15248 case `$CC -V 2>&1 | sed 5q` in 15249 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 15250 # Sun Fortran 8.3 passes all unrecognized flags to the linker 15251 lt_prog_compiler_pic='-KPIC' 15252 lt_prog_compiler_static='-Bstatic' 15253 lt_prog_compiler_wl='' 15254 ;; 15255 *Sun\ F* | *Sun*Fortran*) 15256 lt_prog_compiler_pic='-KPIC' 15257 lt_prog_compiler_static='-Bstatic' 15258 lt_prog_compiler_wl='-Qoption ld ' 15259 ;; 15260 *Sun\ C*) 15261 # Sun C 5.9 15262 lt_prog_compiler_pic='-KPIC' 15263 lt_prog_compiler_static='-Bstatic' 15264 lt_prog_compiler_wl='-Wl,' 15265 ;; 15266 *Intel*\ [CF]*Compiler*) 15267 lt_prog_compiler_wl='-Wl,' 15268 lt_prog_compiler_pic='-fPIC' 15269 lt_prog_compiler_static='-static' 15270 ;; 15271 *Portland\ Group*) 15272 lt_prog_compiler_wl='-Wl,' 15273 lt_prog_compiler_pic='-fpic' 15274 lt_prog_compiler_static='-Bstatic' 15275 ;; 15276 esac 15277 ;; 15278 esac 15279 ;; 15280 15281 newsos6) 15282 lt_prog_compiler_pic='-KPIC' 15283 lt_prog_compiler_static='-Bstatic' 15284 ;; 15285 15286 *nto* | *qnx*) 15287 # QNX uses GNU C++, but need to define -shared option too, otherwise 15288 # it will coredump. 15289 lt_prog_compiler_pic='-fPIC -shared' 15290 ;; 15291 15292 osf3* | osf4* | osf5*) 15293 lt_prog_compiler_wl='-Wl,' 15294 # All OSF/1 code is PIC. 15295 lt_prog_compiler_static='-non_shared' 15296 ;; 15297 15298 rdos*) 15299 lt_prog_compiler_static='-non_shared' 15300 ;; 15301 15302 solaris*) 15303 lt_prog_compiler_pic='-KPIC' 15304 lt_prog_compiler_static='-Bstatic' 15305 case $cc_basename in 15306 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 15307 lt_prog_compiler_wl='-Qoption ld ';; 15308 *) 15309 lt_prog_compiler_wl='-Wl,';; 15310 esac 15311 ;; 15312 15313 sunos4*) 15314 lt_prog_compiler_wl='-Qoption ld ' 15315 lt_prog_compiler_pic='-PIC' 15316 lt_prog_compiler_static='-Bstatic' 15317 ;; 15318 15319 sysv4 | sysv4.2uw2* | sysv4.3*) 15320 lt_prog_compiler_wl='-Wl,' 15321 lt_prog_compiler_pic='-KPIC' 15322 lt_prog_compiler_static='-Bstatic' 15323 ;; 15324 15325 sysv4*MP*) 15326 if test -d /usr/nec; then 15327 lt_prog_compiler_pic='-Kconform_pic' 15328 lt_prog_compiler_static='-Bstatic' 15329 fi 15330 ;; 15331 15332 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15333 lt_prog_compiler_wl='-Wl,' 15334 lt_prog_compiler_pic='-KPIC' 15335 lt_prog_compiler_static='-Bstatic' 15336 ;; 15337 15338 unicos*) 15339 lt_prog_compiler_wl='-Wl,' 15340 lt_prog_compiler_can_build_shared=no 15341 ;; 15342 15343 uts4*) 15344 lt_prog_compiler_pic='-pic' 15345 lt_prog_compiler_static='-Bstatic' 15346 ;; 15347 15348 *) 15349 lt_prog_compiler_can_build_shared=no 15350 ;; 15351 esac 15352 fi 15353 15354case $host_os in 15355 # For platforms that do not support PIC, -DPIC is meaningless: 15356 *djgpp*) 15357 lt_prog_compiler_pic= 15358 ;; 15359 *) 15360 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 15361 ;; 15362esac 15363 15364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15365$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15366if ${lt_cv_prog_compiler_pic+:} false; then : 15367 $as_echo_n "(cached) " >&6 15368else 15369 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 15370fi 15371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 15372$as_echo "$lt_cv_prog_compiler_pic" >&6; } 15373lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 15374 15375# 15376# Check to make sure the PIC flag actually works. 15377# 15378if test -n "$lt_prog_compiler_pic"; then 15379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 15380$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 15381if ${lt_cv_prog_compiler_pic_works+:} false; then : 15382 $as_echo_n "(cached) " >&6 15383else 15384 lt_cv_prog_compiler_pic_works=no 15385 ac_outfile=conftest.$ac_objext 15386 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15387 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 15388 # Insert the option either (1) after the last *FLAGS variable, or 15389 # (2) before a word containing "conftest.", or (3) at the end. 15390 # Note that $ac_compile itself does not contain backslashes and begins 15391 # with a dollar sign (not a hyphen), so the echo should work correctly. 15392 # The option is referenced via a variable to avoid confusing sed. 15393 lt_compile=`echo "$ac_compile" | $SED \ 15394 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15395 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15396 -e 's:$: $lt_compiler_flag:'` 15397 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15398 (eval "$lt_compile" 2>conftest.err) 15399 ac_status=$? 15400 cat conftest.err >&5 15401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15402 if (exit $ac_status) && test -s "$ac_outfile"; then 15403 # The compiler can only warn and ignore the option if not recognized 15404 # So say no if there are warnings other than the usual output. 15405 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15406 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15407 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15408 lt_cv_prog_compiler_pic_works=yes 15409 fi 15410 fi 15411 $RM conftest* 15412 15413fi 15414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 15415$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 15416 15417if test yes = "$lt_cv_prog_compiler_pic_works"; then 15418 case $lt_prog_compiler_pic in 15419 "" | " "*) ;; 15420 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 15421 esac 15422else 15423 lt_prog_compiler_pic= 15424 lt_prog_compiler_can_build_shared=no 15425fi 15426 15427fi 15428 15429 15430 15431 15432 15433 15434 15435 15436 15437 15438 15439# 15440# Check to make sure the static flag actually works. 15441# 15442wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 15443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15444$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15445if ${lt_cv_prog_compiler_static_works+:} false; then : 15446 $as_echo_n "(cached) " >&6 15447else 15448 lt_cv_prog_compiler_static_works=no 15449 save_LDFLAGS=$LDFLAGS 15450 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15451 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15452 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15453 # The linker can only warn and ignore the option if not recognized 15454 # So say no if there are warnings 15455 if test -s conftest.err; then 15456 # Append any errors to the config.log. 15457 cat conftest.err 1>&5 15458 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15459 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15460 if diff conftest.exp conftest.er2 >/dev/null; then 15461 lt_cv_prog_compiler_static_works=yes 15462 fi 15463 else 15464 lt_cv_prog_compiler_static_works=yes 15465 fi 15466 fi 15467 $RM -r conftest* 15468 LDFLAGS=$save_LDFLAGS 15469 15470fi 15471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 15472$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 15473 15474if test yes = "$lt_cv_prog_compiler_static_works"; then 15475 : 15476else 15477 lt_prog_compiler_static= 15478fi 15479 15480 15481 15482 15483 15484 15485 15486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15487$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15488if ${lt_cv_prog_compiler_c_o+:} false; then : 15489 $as_echo_n "(cached) " >&6 15490else 15491 lt_cv_prog_compiler_c_o=no 15492 $RM -r conftest 2>/dev/null 15493 mkdir conftest 15494 cd conftest 15495 mkdir out 15496 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15497 15498 lt_compiler_flag="-o out/conftest2.$ac_objext" 15499 # Insert the option either (1) after the last *FLAGS variable, or 15500 # (2) before a word containing "conftest.", or (3) at the end. 15501 # Note that $ac_compile itself does not contain backslashes and begins 15502 # with a dollar sign (not a hyphen), so the echo should work correctly. 15503 lt_compile=`echo "$ac_compile" | $SED \ 15504 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15505 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15506 -e 's:$: $lt_compiler_flag:'` 15507 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15508 (eval "$lt_compile" 2>out/conftest.err) 15509 ac_status=$? 15510 cat out/conftest.err >&5 15511 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15512 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15513 then 15514 # The compiler can only warn and ignore the option if not recognized 15515 # So say no if there are warnings 15516 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15517 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15518 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15519 lt_cv_prog_compiler_c_o=yes 15520 fi 15521 fi 15522 chmod u+w . 2>&5 15523 $RM conftest* 15524 # SGI C++ compiler will create directory out/ii_files/ for 15525 # template instantiation 15526 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15527 $RM out/* && rmdir out 15528 cd .. 15529 $RM -r conftest 15530 $RM conftest* 15531 15532fi 15533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 15534$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 15535 15536 15537 15538 15539 15540 15541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15542$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15543if ${lt_cv_prog_compiler_c_o+:} false; then : 15544 $as_echo_n "(cached) " >&6 15545else 15546 lt_cv_prog_compiler_c_o=no 15547 $RM -r conftest 2>/dev/null 15548 mkdir conftest 15549 cd conftest 15550 mkdir out 15551 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15552 15553 lt_compiler_flag="-o out/conftest2.$ac_objext" 15554 # Insert the option either (1) after the last *FLAGS variable, or 15555 # (2) before a word containing "conftest.", or (3) at the end. 15556 # Note that $ac_compile itself does not contain backslashes and begins 15557 # with a dollar sign (not a hyphen), so the echo should work correctly. 15558 lt_compile=`echo "$ac_compile" | $SED \ 15559 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15560 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15561 -e 's:$: $lt_compiler_flag:'` 15562 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15563 (eval "$lt_compile" 2>out/conftest.err) 15564 ac_status=$? 15565 cat out/conftest.err >&5 15566 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15567 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15568 then 15569 # The compiler can only warn and ignore the option if not recognized 15570 # So say no if there are warnings 15571 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15572 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15573 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15574 lt_cv_prog_compiler_c_o=yes 15575 fi 15576 fi 15577 chmod u+w . 2>&5 15578 $RM conftest* 15579 # SGI C++ compiler will create directory out/ii_files/ for 15580 # template instantiation 15581 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15582 $RM out/* && rmdir out 15583 cd .. 15584 $RM -r conftest 15585 $RM conftest* 15586 15587fi 15588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 15589$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 15590 15591 15592 15593 15594hard_links=nottested 15595if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 15596 # do not overwrite the value of need_locks provided by the user 15597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15598$as_echo_n "checking if we can lock with hard links... " >&6; } 15599 hard_links=yes 15600 $RM conftest* 15601 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15602 touch conftest.a 15603 ln conftest.a conftest.b 2>&5 || hard_links=no 15604 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15606$as_echo "$hard_links" >&6; } 15607 if test no = "$hard_links"; then 15608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 15609$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 15610 need_locks=warn 15611 fi 15612else 15613 need_locks=no 15614fi 15615 15616 15617 15618 15619 15620 15621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15622$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15623 15624 runpath_var= 15625 allow_undefined_flag= 15626 always_export_symbols=no 15627 archive_cmds= 15628 archive_expsym_cmds= 15629 compiler_needs_object=no 15630 enable_shared_with_static_runtimes=no 15631 export_dynamic_flag_spec= 15632 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15633 hardcode_automatic=no 15634 hardcode_direct=no 15635 hardcode_direct_absolute=no 15636 hardcode_libdir_flag_spec= 15637 hardcode_libdir_separator= 15638 hardcode_minus_L=no 15639 hardcode_shlibpath_var=unsupported 15640 inherit_rpath=no 15641 link_all_deplibs=unknown 15642 module_cmds= 15643 module_expsym_cmds= 15644 old_archive_from_new_cmds= 15645 old_archive_from_expsyms_cmds= 15646 thread_safe_flag_spec= 15647 whole_archive_flag_spec= 15648 # include_expsyms should be a list of space-separated symbols to be *always* 15649 # included in the symbol list 15650 include_expsyms= 15651 # exclude_expsyms can be an extended regexp of symbols to exclude 15652 # it will be wrapped by ' (' and ')$', so one must not match beginning or 15653 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 15654 # as well as any symbol that contains 'd'. 15655 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15656 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 15657 # platforms (ab)use it in PIC code, but their linkers get confused if 15658 # the symbol is explicitly referenced. Since portable code cannot 15659 # rely on this symbol name, it's probably fine to never include it in 15660 # preloaded symbol tables. 15661 # Exclude shared library initialization/finalization symbols. 15662 extract_expsyms_cmds= 15663 15664 case $host_os in 15665 cygwin* | mingw* | pw32* | cegcc*) 15666 # FIXME: the MSVC++ port hasn't been tested in a loooong time 15667 # When not using gcc, we currently assume that we are using 15668 # Microsoft Visual C++. 15669 if test yes != "$GCC"; then 15670 with_gnu_ld=no 15671 fi 15672 ;; 15673 interix*) 15674 # we just hope/assume this is gcc and not c89 (= MSVC++) 15675 with_gnu_ld=yes 15676 ;; 15677 openbsd* | bitrig*) 15678 with_gnu_ld=no 15679 ;; 15680 esac 15681 15682 ld_shlibs=yes 15683 15684 # On some targets, GNU ld is compatible enough with the native linker 15685 # that we're better off using the native interface for both. 15686 lt_use_gnu_ld_interface=no 15687 if test yes = "$with_gnu_ld"; then 15688 case $host_os in 15689 aix*) 15690 # The AIX port of GNU ld has always aspired to compatibility 15691 # with the native linker. However, as the warning in the GNU ld 15692 # block says, versions before 2.19.5* couldn't really create working 15693 # shared libraries, regardless of the interface used. 15694 case `$LD -v 2>&1` in 15695 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 15696 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 15697 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 15698 *) 15699 lt_use_gnu_ld_interface=yes 15700 ;; 15701 esac 15702 ;; 15703 *) 15704 lt_use_gnu_ld_interface=yes 15705 ;; 15706 esac 15707 fi 15708 15709 if test yes = "$lt_use_gnu_ld_interface"; then 15710 # If archive_cmds runs LD, not CC, wlarc should be empty 15711 wlarc='$wl' 15712 15713 # Set some defaults for GNU ld with shared library support. These 15714 # are reset later if shared libraries are not supported. Putting them 15715 # here allows them to be overridden if necessary. 15716 runpath_var=LD_RUN_PATH 15717 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15718 export_dynamic_flag_spec='$wl--export-dynamic' 15719 # ancient GNU ld didn't support --whole-archive et. al. 15720 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 15721 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 15722 else 15723 whole_archive_flag_spec= 15724 fi 15725 supports_anon_versioning=no 15726 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 15727 *GNU\ gold*) supports_anon_versioning=yes ;; 15728 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 15729 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 15730 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 15731 *\ 2.11.*) ;; # other 2.11 versions 15732 *) supports_anon_versioning=yes ;; 15733 esac 15734 15735 # See if GNU ld supports shared libraries. 15736 case $host_os in 15737 aix[3-9]*) 15738 # On AIX/PPC, the GNU linker is very broken 15739 if test ia64 != "$host_cpu"; then 15740 ld_shlibs=no 15741 cat <<_LT_EOF 1>&2 15742 15743*** Warning: the GNU linker, at least up to release 2.19, is reported 15744*** to be unable to reliably create shared libraries on AIX. 15745*** Therefore, libtool is disabling shared libraries support. If you 15746*** really care for shared libraries, you may want to install binutils 15747*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 15748*** You will then need to restart the configuration process. 15749 15750_LT_EOF 15751 fi 15752 ;; 15753 15754 amigaos*) 15755 case $host_cpu in 15756 powerpc) 15757 # see comment about AmigaOS4 .so support 15758 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15759 archive_expsym_cmds='' 15760 ;; 15761 m68k) 15762 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)' 15763 hardcode_libdir_flag_spec='-L$libdir' 15764 hardcode_minus_L=yes 15765 ;; 15766 esac 15767 ;; 15768 15769 beos*) 15770 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15771 allow_undefined_flag=unsupported 15772 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15773 # support --undefined. This deserves some investigation. FIXME 15774 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15775 else 15776 ld_shlibs=no 15777 fi 15778 ;; 15779 15780 cygwin* | mingw* | pw32* | cegcc*) 15781 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 15782 # as there is no search path for DLLs. 15783 hardcode_libdir_flag_spec='-L$libdir' 15784 export_dynamic_flag_spec='$wl--export-all-symbols' 15785 allow_undefined_flag=unsupported 15786 always_export_symbols=no 15787 enable_shared_with_static_runtimes=yes 15788 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' 15789 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15790 15791 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 15792 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15793 # If the export-symbols file already is a .def file, use it as 15794 # is; otherwise, prepend EXPORTS... 15795 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 15796 cp $export_symbols $output_objdir/$soname.def; 15797 else 15798 echo EXPORTS > $output_objdir/$soname.def; 15799 cat $export_symbols >> $output_objdir/$soname.def; 15800 fi~ 15801 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15802 else 15803 ld_shlibs=no 15804 fi 15805 ;; 15806 15807 haiku*) 15808 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15809 link_all_deplibs=yes 15810 ;; 15811 15812 os2*) 15813 hardcode_libdir_flag_spec='-L$libdir' 15814 hardcode_minus_L=yes 15815 allow_undefined_flag=unsupported 15816 shrext_cmds=.dll 15817 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 15818 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 15819 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 15820 $ECHO EXPORTS >> $output_objdir/$libname.def~ 15821 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 15822 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 15823 emximp -o $lib $output_objdir/$libname.def' 15824 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 15825 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 15826 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 15827 $ECHO EXPORTS >> $output_objdir/$libname.def~ 15828 prefix_cmds="$SED"~ 15829 if test EXPORTS = "`$SED 1q $export_symbols`"; then 15830 prefix_cmds="$prefix_cmds -e 1d"; 15831 fi~ 15832 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 15833 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 15834 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 15835 emximp -o $lib $output_objdir/$libname.def' 15836 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 15837 enable_shared_with_static_runtimes=yes 15838 ;; 15839 15840 interix[3-9]*) 15841 hardcode_direct=no 15842 hardcode_shlibpath_var=no 15843 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 15844 export_dynamic_flag_spec='$wl-E' 15845 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 15846 # Instead, shared libraries are loaded at an image base (0x10000000 by 15847 # default) and relocated if they conflict, which is a slow very memory 15848 # consuming and fragmenting process. To avoid this, we pick a random, 15849 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15850 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15851 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 15852 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' 15853 ;; 15854 15855 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 15856 tmp_diet=no 15857 if test linux-dietlibc = "$host_os"; then 15858 case $cc_basename in 15859 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 15860 esac 15861 fi 15862 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 15863 && test no = "$tmp_diet" 15864 then 15865 tmp_addflag=' $pic_flag' 15866 tmp_sharedflag='-shared' 15867 case $cc_basename,$host_cpu in 15868 pgcc*) # Portland Group C compiler 15869 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' 15870 tmp_addflag=' $pic_flag' 15871 ;; 15872 pgf77* | pgf90* | pgf95* | pgfortran*) 15873 # Portland Group f77 and f90 compilers 15874 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' 15875 tmp_addflag=' $pic_flag -Mnomain' ;; 15876 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 15877 tmp_addflag=' -i_dynamic' ;; 15878 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 15879 tmp_addflag=' -i_dynamic -nofor_main' ;; 15880 ifc* | ifort*) # Intel Fortran compiler 15881 tmp_addflag=' -nofor_main' ;; 15882 lf95*) # Lahey Fortran 8.1 15883 whole_archive_flag_spec= 15884 tmp_sharedflag='--shared' ;; 15885 nagfor*) # NAGFOR 5.3 15886 tmp_sharedflag='-Wl,-shared' ;; 15887 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 15888 tmp_sharedflag='-qmkshrobj' 15889 tmp_addflag= ;; 15890 nvcc*) # Cuda Compiler Driver 2.2 15891 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' 15892 compiler_needs_object=yes 15893 ;; 15894 esac 15895 case `$CC -V 2>&1 | sed 5q` in 15896 *Sun\ C*) # Sun C 5.9 15897 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' 15898 compiler_needs_object=yes 15899 tmp_sharedflag='-G' ;; 15900 *Sun\ F*) # Sun Fortran 8.3 15901 tmp_sharedflag='-G' ;; 15902 esac 15903 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15904 15905 if test yes = "$supports_anon_versioning"; then 15906 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15907 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15908 echo "local: *; };" >> $output_objdir/$libname.ver~ 15909 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 15910 fi 15911 15912 case $cc_basename in 15913 tcc*) 15914 export_dynamic_flag_spec='-rdynamic' 15915 ;; 15916 xlf* | bgf* | bgxlf* | mpixlf*) 15917 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 15918 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 15919 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15920 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 15921 if test yes = "$supports_anon_versioning"; then 15922 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15923 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15924 echo "local: *; };" >> $output_objdir/$libname.ver~ 15925 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 15926 fi 15927 ;; 15928 esac 15929 else 15930 ld_shlibs=no 15931 fi 15932 ;; 15933 15934 netbsd*) 15935 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15936 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15937 wlarc= 15938 else 15939 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15940 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15941 fi 15942 ;; 15943 15944 solaris*) 15945 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 15946 ld_shlibs=no 15947 cat <<_LT_EOF 1>&2 15948 15949*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15950*** create shared libraries on Solaris systems. Therefore, libtool 15951*** is disabling shared libraries support. We urge you to upgrade GNU 15952*** binutils to release 2.9.1 or newer. Another option is to modify 15953*** your PATH or compiler configuration so that the native linker is 15954*** used, and then restart. 15955 15956_LT_EOF 15957 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15958 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15959 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15960 else 15961 ld_shlibs=no 15962 fi 15963 ;; 15964 15965 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 15966 case `$LD -v 2>&1` in 15967 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 15968 ld_shlibs=no 15969 cat <<_LT_EOF 1>&2 15970 15971*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 15972*** reliably create shared libraries on SCO systems. Therefore, libtool 15973*** is disabling shared libraries support. We urge you to upgrade GNU 15974*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 15975*** your PATH or compiler configuration so that the native linker is 15976*** used, and then restart. 15977 15978_LT_EOF 15979 ;; 15980 *) 15981 # For security reasons, it is highly recommended that you always 15982 # use absolute paths for naming shared libraries, and exclude the 15983 # DT_RUNPATH tag from executables and libraries. But doing so 15984 # requires that you compile everything twice, which is a pain. 15985 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15986 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15987 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15988 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15989 else 15990 ld_shlibs=no 15991 fi 15992 ;; 15993 esac 15994 ;; 15995 15996 sunos4*) 15997 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15998 wlarc= 15999 hardcode_direct=yes 16000 hardcode_shlibpath_var=no 16001 ;; 16002 16003 *) 16004 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16005 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16006 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16007 else 16008 ld_shlibs=no 16009 fi 16010 ;; 16011 esac 16012 16013 if test no = "$ld_shlibs"; then 16014 runpath_var= 16015 hardcode_libdir_flag_spec= 16016 export_dynamic_flag_spec= 16017 whole_archive_flag_spec= 16018 fi 16019 else 16020 # PORTME fill in a description of your system's linker (not GNU ld) 16021 case $host_os in 16022 aix3*) 16023 allow_undefined_flag=unsupported 16024 always_export_symbols=yes 16025 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' 16026 # Note: this linker hardcodes the directories in LIBPATH if there 16027 # are no directories specified by -L. 16028 hardcode_minus_L=yes 16029 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 16030 # Neither direct hardcoding nor static linking is supported with a 16031 # broken collect2. 16032 hardcode_direct=unsupported 16033 fi 16034 ;; 16035 16036 aix[4-9]*) 16037 if test ia64 = "$host_cpu"; then 16038 # On IA64, the linker does run time linking by default, so we don't 16039 # have to do anything special. 16040 aix_use_runtimelinking=no 16041 exp_sym_flag='-Bexport' 16042 no_entry_flag= 16043 else 16044 # If we're using GNU nm, then we don't want the "-C" option. 16045 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 16046 # Without the "-l" option, or with the "-B" option, AIX nm treats 16047 # weak defined symbols like other global defined symbols, whereas 16048 # GNU nm marks them as "W". 16049 # While the 'weak' keyword is ignored in the Export File, we need 16050 # it in the Import File for the 'aix-soname' feature, so we have 16051 # to replace the "-B" option with "-P" for AIX nm. 16052 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 16053 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' 16054 else 16055 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' 16056 fi 16057 aix_use_runtimelinking=no 16058 16059 # Test if we are trying to use run time linking or normal 16060 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16061 # have runtime linking enabled, and use it for executables. 16062 # For shared libraries, we enable/disable runtime linking 16063 # depending on the kind of the shared library created - 16064 # when "with_aix_soname,aix_use_runtimelinking" is: 16065 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 16066 # "aix,yes" lib.so shared, rtl:yes, for executables 16067 # lib.a static archive 16068 # "both,no" lib.so.V(shr.o) shared, rtl:yes 16069 # lib.a(lib.so.V) shared, rtl:no, for executables 16070 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 16071 # lib.a(lib.so.V) shared, rtl:no 16072 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 16073 # lib.a static archive 16074 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 16075 for ld_flag in $LDFLAGS; do 16076 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 16077 aix_use_runtimelinking=yes 16078 break 16079 fi 16080 done 16081 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 16082 # With aix-soname=svr4, we create the lib.so.V shared archives only, 16083 # so we don't have lib.a shared libs to link our executables. 16084 # We have to force runtime linking in this case. 16085 aix_use_runtimelinking=yes 16086 LDFLAGS="$LDFLAGS -Wl,-brtl" 16087 fi 16088 ;; 16089 esac 16090 16091 exp_sym_flag='-bexport' 16092 no_entry_flag='-bnoentry' 16093 fi 16094 16095 # When large executables or shared objects are built, AIX ld can 16096 # have problems creating the table of contents. If linking a library 16097 # or program results in "error TOC overflow" add -mminimal-toc to 16098 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16099 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16100 16101 archive_cmds='' 16102 hardcode_direct=yes 16103 hardcode_direct_absolute=yes 16104 hardcode_libdir_separator=':' 16105 link_all_deplibs=yes 16106 file_list_spec='$wl-f,' 16107 case $with_aix_soname,$aix_use_runtimelinking in 16108 aix,*) ;; # traditional, no import file 16109 svr4,* | *,yes) # use import file 16110 # The Import File defines what to hardcode. 16111 hardcode_direct=no 16112 hardcode_direct_absolute=no 16113 ;; 16114 esac 16115 16116 if test yes = "$GCC"; then 16117 case $host_os in aix4.[012]|aix4.[012].*) 16118 # We only want to do this on AIX 4.2 and lower, the check 16119 # below for broken collect2 doesn't work under 4.3+ 16120 collect2name=`$CC -print-prog-name=collect2` 16121 if test -f "$collect2name" && 16122 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 16123 then 16124 # We have reworked collect2 16125 : 16126 else 16127 # We have old collect2 16128 hardcode_direct=unsupported 16129 # It fails to find uninstalled libraries when the uninstalled 16130 # path is not listed in the libpath. Setting hardcode_minus_L 16131 # to unsupported forces relinking 16132 hardcode_minus_L=yes 16133 hardcode_libdir_flag_spec='-L$libdir' 16134 hardcode_libdir_separator= 16135 fi 16136 ;; 16137 esac 16138 shared_flag='-shared' 16139 if test yes = "$aix_use_runtimelinking"; then 16140 shared_flag="$shared_flag "'$wl-G' 16141 fi 16142 # Need to ensure runtime linking is disabled for the traditional 16143 # shared library, or the linker may eventually find shared libraries 16144 # /with/ Import File - we do not want to mix them. 16145 shared_flag_aix='-shared' 16146 shared_flag_svr4='-shared $wl-G' 16147 else 16148 # not using gcc 16149 if test ia64 = "$host_cpu"; then 16150 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16151 # chokes on -Wl,-G. The following line is correct: 16152 shared_flag='-G' 16153 else 16154 if test yes = "$aix_use_runtimelinking"; then 16155 shared_flag='$wl-G' 16156 else 16157 shared_flag='$wl-bM:SRE' 16158 fi 16159 shared_flag_aix='$wl-bM:SRE' 16160 shared_flag_svr4='$wl-G' 16161 fi 16162 fi 16163 16164 export_dynamic_flag_spec='$wl-bexpall' 16165 # It seems that -bexpall does not export symbols beginning with 16166 # underscore (_), so it is better to generate a list of symbols to export. 16167 always_export_symbols=yes 16168 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 16169 # Warning - without using the other runtime loading flags (-brtl), 16170 # -berok will link without error, but may produce a broken library. 16171 allow_undefined_flag='-berok' 16172 # Determine the default libpath from the value encoded in an 16173 # empty executable. 16174 if test set = "${lt_cv_aix_libpath+set}"; then 16175 aix_libpath=$lt_cv_aix_libpath 16176else 16177 if ${lt_cv_aix_libpath_+:} false; then : 16178 $as_echo_n "(cached) " >&6 16179else 16180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16181/* end confdefs.h. */ 16182 16183#ifdef F77_DUMMY_MAIN 16184 16185# ifdef __cplusplus 16186 extern "C" 16187# endif 16188 int F77_DUMMY_MAIN() { return 1; } 16189 16190#endif 16191int 16192main () 16193{ 16194 16195 ; 16196 return 0; 16197} 16198_ACEOF 16199if ac_fn_c_try_link "$LINENO"; then : 16200 16201 lt_aix_libpath_sed=' 16202 /Import File Strings/,/^$/ { 16203 /^0/ { 16204 s/^0 *\([^ ]*\) *$/\1/ 16205 p 16206 } 16207 }' 16208 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16209 # Check for a 64-bit object if we didn't find anything. 16210 if test -z "$lt_cv_aix_libpath_"; then 16211 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16212 fi 16213fi 16214rm -f core conftest.err conftest.$ac_objext \ 16215 conftest$ac_exeext conftest.$ac_ext 16216 if test -z "$lt_cv_aix_libpath_"; then 16217 lt_cv_aix_libpath_=/usr/lib:/lib 16218 fi 16219 16220fi 16221 16222 aix_libpath=$lt_cv_aix_libpath_ 16223fi 16224 16225 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 16226 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 16227 else 16228 if test ia64 = "$host_cpu"; then 16229 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 16230 allow_undefined_flag="-z nodefs" 16231 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" 16232 else 16233 # Determine the default libpath from the value encoded in an 16234 # empty executable. 16235 if test set = "${lt_cv_aix_libpath+set}"; then 16236 aix_libpath=$lt_cv_aix_libpath 16237else 16238 if ${lt_cv_aix_libpath_+:} false; then : 16239 $as_echo_n "(cached) " >&6 16240else 16241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16242/* end confdefs.h. */ 16243 16244#ifdef F77_DUMMY_MAIN 16245 16246# ifdef __cplusplus 16247 extern "C" 16248# endif 16249 int F77_DUMMY_MAIN() { return 1; } 16250 16251#endif 16252int 16253main () 16254{ 16255 16256 ; 16257 return 0; 16258} 16259_ACEOF 16260if ac_fn_c_try_link "$LINENO"; then : 16261 16262 lt_aix_libpath_sed=' 16263 /Import File Strings/,/^$/ { 16264 /^0/ { 16265 s/^0 *\([^ ]*\) *$/\1/ 16266 p 16267 } 16268 }' 16269 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16270 # Check for a 64-bit object if we didn't find anything. 16271 if test -z "$lt_cv_aix_libpath_"; then 16272 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16273 fi 16274fi 16275rm -f core conftest.err conftest.$ac_objext \ 16276 conftest$ac_exeext conftest.$ac_ext 16277 if test -z "$lt_cv_aix_libpath_"; then 16278 lt_cv_aix_libpath_=/usr/lib:/lib 16279 fi 16280 16281fi 16282 16283 aix_libpath=$lt_cv_aix_libpath_ 16284fi 16285 16286 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 16287 # Warning - without using the other run time loading flags, 16288 # -berok will link without error, but may produce a broken library. 16289 no_undefined_flag=' $wl-bernotok' 16290 allow_undefined_flag=' $wl-berok' 16291 if test yes = "$with_gnu_ld"; then 16292 # We only use this code for GNU lds that support --whole-archive. 16293 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 16294 else 16295 # Exported symbols can be pulled into shared objects from archives 16296 whole_archive_flag_spec='$convenience' 16297 fi 16298 archive_cmds_need_lc=yes 16299 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 16300 # -brtl affects multiple linker settings, -berok does not and is overridden later 16301 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 16302 if test svr4 != "$with_aix_soname"; then 16303 # This is similar to how AIX traditionally builds its shared libraries. 16304 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' 16305 fi 16306 if test aix != "$with_aix_soname"; then 16307 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' 16308 else 16309 # used by -dlpreopen to get the symbols 16310 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 16311 fi 16312 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 16313 fi 16314 fi 16315 ;; 16316 16317 amigaos*) 16318 case $host_cpu in 16319 powerpc) 16320 # see comment about AmigaOS4 .so support 16321 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16322 archive_expsym_cmds='' 16323 ;; 16324 m68k) 16325 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)' 16326 hardcode_libdir_flag_spec='-L$libdir' 16327 hardcode_minus_L=yes 16328 ;; 16329 esac 16330 ;; 16331 16332 bsdi[45]*) 16333 export_dynamic_flag_spec=-rdynamic 16334 ;; 16335 16336 cygwin* | mingw* | pw32* | cegcc*) 16337 # When not using gcc, we currently assume that we are using 16338 # Microsoft Visual C++. 16339 # hardcode_libdir_flag_spec is actually meaningless, as there is 16340 # no search path for DLLs. 16341 case $cc_basename in 16342 cl*) 16343 # Native MSVC 16344 hardcode_libdir_flag_spec=' ' 16345 allow_undefined_flag=unsupported 16346 always_export_symbols=yes 16347 file_list_spec='@' 16348 # Tell ltmain to make .lib files, not .a files. 16349 libext=lib 16350 # Tell ltmain to make .dll files, not .so files. 16351 shrext_cmds=.dll 16352 # FIXME: Setting linknames here is a bad hack. 16353 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 16354 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16355 cp "$export_symbols" "$output_objdir/$soname.def"; 16356 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 16357 else 16358 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 16359 fi~ 16360 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 16361 linknames=' 16362 # The linker will not automatically build a static lib if we build a DLL. 16363 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 16364 enable_shared_with_static_runtimes=yes 16365 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 16366 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 16367 # Don't use ranlib 16368 old_postinstall_cmds='chmod 644 $oldlib' 16369 postlink_cmds='lt_outputfile="@OUTPUT@"~ 16370 lt_tool_outputfile="@TOOL_OUTPUT@"~ 16371 case $lt_outputfile in 16372 *.exe|*.EXE) ;; 16373 *) 16374 lt_outputfile=$lt_outputfile.exe 16375 lt_tool_outputfile=$lt_tool_outputfile.exe 16376 ;; 16377 esac~ 16378 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 16379 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 16380 $RM "$lt_outputfile.manifest"; 16381 fi' 16382 ;; 16383 *) 16384 # Assume MSVC wrapper 16385 hardcode_libdir_flag_spec=' ' 16386 allow_undefined_flag=unsupported 16387 # Tell ltmain to make .lib files, not .a files. 16388 libext=lib 16389 # Tell ltmain to make .dll files, not .so files. 16390 shrext_cmds=.dll 16391 # FIXME: Setting linknames here is a bad hack. 16392 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 16393 # The linker will automatically build a .lib file if we build a DLL. 16394 old_archive_from_new_cmds='true' 16395 # FIXME: Should let the user specify the lib program. 16396 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 16397 enable_shared_with_static_runtimes=yes 16398 ;; 16399 esac 16400 ;; 16401 16402 darwin* | rhapsody*) 16403 16404 16405 archive_cmds_need_lc=no 16406 hardcode_direct=no 16407 hardcode_automatic=yes 16408 hardcode_shlibpath_var=unsupported 16409 if test yes = "$lt_cv_ld_force_load"; then 16410 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\"`' 16411 16412 else 16413 whole_archive_flag_spec='' 16414 fi 16415 link_all_deplibs=yes 16416 allow_undefined_flag=$_lt_dar_allow_undefined 16417 case $cc_basename in 16418 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 16419 *) _lt_dar_can_shared=$GCC ;; 16420 esac 16421 if test yes = "$_lt_dar_can_shared"; then 16422 output_verbose_link_cmd=func_echo_all 16423 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 16424 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 16425 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" 16426 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" 16427 16428 else 16429 ld_shlibs=no 16430 fi 16431 16432 ;; 16433 16434 dgux*) 16435 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16436 hardcode_libdir_flag_spec='-L$libdir' 16437 hardcode_shlibpath_var=no 16438 ;; 16439 16440 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16441 # support. Future versions do this automatically, but an explicit c++rt0.o 16442 # does not break anything, and helps significantly (at the cost of a little 16443 # extra space). 16444 freebsd2.2*) 16445 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16446 hardcode_libdir_flag_spec='-R$libdir' 16447 hardcode_direct=yes 16448 hardcode_shlibpath_var=no 16449 ;; 16450 16451 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16452 freebsd2.*) 16453 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16454 hardcode_direct=yes 16455 hardcode_minus_L=yes 16456 hardcode_shlibpath_var=no 16457 ;; 16458 16459 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16460 freebsd* | dragonfly*) 16461 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16462 hardcode_libdir_flag_spec='-R$libdir' 16463 hardcode_direct=yes 16464 hardcode_shlibpath_var=no 16465 ;; 16466 16467 hpux9*) 16468 if test yes = "$GCC"; then 16469 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' 16470 else 16471 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' 16472 fi 16473 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16474 hardcode_libdir_separator=: 16475 hardcode_direct=yes 16476 16477 # hardcode_minus_L: Not really in the search PATH, 16478 # but as the default location of the library. 16479 hardcode_minus_L=yes 16480 export_dynamic_flag_spec='$wl-E' 16481 ;; 16482 16483 hpux10*) 16484 if test yes,no = "$GCC,$with_gnu_ld"; then 16485 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16486 else 16487 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16488 fi 16489 if test no = "$with_gnu_ld"; then 16490 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16491 hardcode_libdir_separator=: 16492 hardcode_direct=yes 16493 hardcode_direct_absolute=yes 16494 export_dynamic_flag_spec='$wl-E' 16495 # hardcode_minus_L: Not really in the search PATH, 16496 # but as the default location of the library. 16497 hardcode_minus_L=yes 16498 fi 16499 ;; 16500 16501 hpux11*) 16502 if test yes,no = "$GCC,$with_gnu_ld"; then 16503 case $host_cpu in 16504 hppa*64*) 16505 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16506 ;; 16507 ia64*) 16508 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16509 ;; 16510 *) 16511 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16512 ;; 16513 esac 16514 else 16515 case $host_cpu in 16516 hppa*64*) 16517 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16518 ;; 16519 ia64*) 16520 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16521 ;; 16522 *) 16523 16524 # Older versions of the 11.00 compiler do not understand -b yet 16525 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 16526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 16527$as_echo_n "checking if $CC understands -b... " >&6; } 16528if ${lt_cv_prog_compiler__b+:} false; then : 16529 $as_echo_n "(cached) " >&6 16530else 16531 lt_cv_prog_compiler__b=no 16532 save_LDFLAGS=$LDFLAGS 16533 LDFLAGS="$LDFLAGS -b" 16534 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16535 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16536 # The linker can only warn and ignore the option if not recognized 16537 # So say no if there are warnings 16538 if test -s conftest.err; then 16539 # Append any errors to the config.log. 16540 cat conftest.err 1>&5 16541 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 16542 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16543 if diff conftest.exp conftest.er2 >/dev/null; then 16544 lt_cv_prog_compiler__b=yes 16545 fi 16546 else 16547 lt_cv_prog_compiler__b=yes 16548 fi 16549 fi 16550 $RM -r conftest* 16551 LDFLAGS=$save_LDFLAGS 16552 16553fi 16554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 16555$as_echo "$lt_cv_prog_compiler__b" >&6; } 16556 16557if test yes = "$lt_cv_prog_compiler__b"; then 16558 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16559else 16560 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16561fi 16562 16563 ;; 16564 esac 16565 fi 16566 if test no = "$with_gnu_ld"; then 16567 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16568 hardcode_libdir_separator=: 16569 16570 case $host_cpu in 16571 hppa*64*|ia64*) 16572 hardcode_direct=no 16573 hardcode_shlibpath_var=no 16574 ;; 16575 *) 16576 hardcode_direct=yes 16577 hardcode_direct_absolute=yes 16578 export_dynamic_flag_spec='$wl-E' 16579 16580 # hardcode_minus_L: Not really in the search PATH, 16581 # but as the default location of the library. 16582 hardcode_minus_L=yes 16583 ;; 16584 esac 16585 fi 16586 ;; 16587 16588 irix5* | irix6* | nonstopux*) 16589 if test yes = "$GCC"; then 16590 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' 16591 # Try to use the -exported_symbol ld option, if it does not 16592 # work, assume that -exports_file does not work either and 16593 # implicitly export all symbols. 16594 # This should be the same for all languages, so no per-tag cache variable. 16595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 16596$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 16597if ${lt_cv_irix_exported_symbol+:} false; then : 16598 $as_echo_n "(cached) " >&6 16599else 16600 save_LDFLAGS=$LDFLAGS 16601 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 16602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16603/* end confdefs.h. */ 16604int foo (void) { return 0; } 16605_ACEOF 16606if ac_fn_c_try_link "$LINENO"; then : 16607 lt_cv_irix_exported_symbol=yes 16608else 16609 lt_cv_irix_exported_symbol=no 16610fi 16611rm -f core conftest.err conftest.$ac_objext \ 16612 conftest$ac_exeext conftest.$ac_ext 16613 LDFLAGS=$save_LDFLAGS 16614fi 16615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 16616$as_echo "$lt_cv_irix_exported_symbol" >&6; } 16617 if test yes = "$lt_cv_irix_exported_symbol"; then 16618 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' 16619 fi 16620 else 16621 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' 16622 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' 16623 fi 16624 archive_cmds_need_lc='no' 16625 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16626 hardcode_libdir_separator=: 16627 inherit_rpath=yes 16628 link_all_deplibs=yes 16629 ;; 16630 16631 linux*) 16632 case $cc_basename in 16633 tcc*) 16634 # Fabrice Bellard et al's Tiny C Compiler 16635 ld_shlibs=yes 16636 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16637 ;; 16638 esac 16639 ;; 16640 16641 netbsd*) 16642 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16643 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16644 else 16645 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16646 fi 16647 hardcode_libdir_flag_spec='-R$libdir' 16648 hardcode_direct=yes 16649 hardcode_shlibpath_var=no 16650 ;; 16651 16652 newsos6) 16653 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16654 hardcode_direct=yes 16655 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16656 hardcode_libdir_separator=: 16657 hardcode_shlibpath_var=no 16658 ;; 16659 16660 *nto* | *qnx*) 16661 ;; 16662 16663 openbsd* | bitrig*) 16664 if test -f /usr/libexec/ld.so; then 16665 hardcode_direct=yes 16666 hardcode_shlibpath_var=no 16667 hardcode_direct_absolute=yes 16668 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 16669 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16670 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 16671 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16672 export_dynamic_flag_spec='$wl-E' 16673 else 16674 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16675 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16676 fi 16677 else 16678 ld_shlibs=no 16679 fi 16680 ;; 16681 16682 os2*) 16683 hardcode_libdir_flag_spec='-L$libdir' 16684 hardcode_minus_L=yes 16685 allow_undefined_flag=unsupported 16686 shrext_cmds=.dll 16687 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16688 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16689 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16690 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16691 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 16692 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16693 emximp -o $lib $output_objdir/$libname.def' 16694 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16695 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16696 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16697 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16698 prefix_cmds="$SED"~ 16699 if test EXPORTS = "`$SED 1q $export_symbols`"; then 16700 prefix_cmds="$prefix_cmds -e 1d"; 16701 fi~ 16702 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 16703 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 16704 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16705 emximp -o $lib $output_objdir/$libname.def' 16706 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 16707 enable_shared_with_static_runtimes=yes 16708 ;; 16709 16710 osf3*) 16711 if test yes = "$GCC"; then 16712 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 16713 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' 16714 else 16715 allow_undefined_flag=' -expect_unresolved \*' 16716 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' 16717 fi 16718 archive_cmds_need_lc='no' 16719 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16720 hardcode_libdir_separator=: 16721 ;; 16722 16723 osf4* | osf5*) # as osf3* with the addition of -msym flag 16724 if test yes = "$GCC"; then 16725 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 16726 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' 16727 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16728 else 16729 allow_undefined_flag=' -expect_unresolved \*' 16730 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' 16731 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~ 16732 $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' 16733 16734 # Both c and cxx compiler support -rpath directly 16735 hardcode_libdir_flag_spec='-rpath $libdir' 16736 fi 16737 archive_cmds_need_lc='no' 16738 hardcode_libdir_separator=: 16739 ;; 16740 16741 solaris*) 16742 no_undefined_flag=' -z defs' 16743 if test yes = "$GCC"; then 16744 wlarc='$wl' 16745 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16746 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16747 $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' 16748 else 16749 case `$CC -V 2>&1` in 16750 *"Compilers 5.0"*) 16751 wlarc='' 16752 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 16753 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16754 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 16755 ;; 16756 *) 16757 wlarc='$wl' 16758 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 16759 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16760 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 16761 ;; 16762 esac 16763 fi 16764 hardcode_libdir_flag_spec='-R$libdir' 16765 hardcode_shlibpath_var=no 16766 case $host_os in 16767 solaris2.[0-5] | solaris2.[0-5].*) ;; 16768 *) 16769 # The compiler driver will combine and reorder linker options, 16770 # but understands '-z linker_flag'. GCC discards it without '$wl', 16771 # but is careful enough not to reorder. 16772 # Supported since Solaris 2.6 (maybe 2.5.1?) 16773 if test yes = "$GCC"; then 16774 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 16775 else 16776 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 16777 fi 16778 ;; 16779 esac 16780 link_all_deplibs=yes 16781 ;; 16782 16783 sunos4*) 16784 if test sequent = "$host_vendor"; then 16785 # Use $CC to link under sequent, because it throws in some extra .o 16786 # files that make .init and .fini sections work. 16787 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16788 else 16789 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16790 fi 16791 hardcode_libdir_flag_spec='-L$libdir' 16792 hardcode_direct=yes 16793 hardcode_minus_L=yes 16794 hardcode_shlibpath_var=no 16795 ;; 16796 16797 sysv4) 16798 case $host_vendor in 16799 sni) 16800 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16801 hardcode_direct=yes # is this really true??? 16802 ;; 16803 siemens) 16804 ## LD is ld it makes a PLAMLIB 16805 ## CC just makes a GrossModule. 16806 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16807 reload_cmds='$CC -r -o $output$reload_objs' 16808 hardcode_direct=no 16809 ;; 16810 motorola) 16811 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16812 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 16813 ;; 16814 esac 16815 runpath_var='LD_RUN_PATH' 16816 hardcode_shlibpath_var=no 16817 ;; 16818 16819 sysv4.3*) 16820 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16821 hardcode_shlibpath_var=no 16822 export_dynamic_flag_spec='-Bexport' 16823 ;; 16824 16825 sysv4*MP*) 16826 if test -d /usr/nec; then 16827 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16828 hardcode_shlibpath_var=no 16829 runpath_var=LD_RUN_PATH 16830 hardcode_runpath_var=yes 16831 ld_shlibs=yes 16832 fi 16833 ;; 16834 16835 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 16836 no_undefined_flag='$wl-z,text' 16837 archive_cmds_need_lc=no 16838 hardcode_shlibpath_var=no 16839 runpath_var='LD_RUN_PATH' 16840 16841 if test yes = "$GCC"; then 16842 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16843 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16844 else 16845 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16846 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16847 fi 16848 ;; 16849 16850 sysv5* | sco3.2v5* | sco5v6*) 16851 # Note: We CANNOT use -z defs as we might desire, because we do not 16852 # link with -lc, and that would cause any symbols used from libc to 16853 # always be unresolved, which means just about no library would 16854 # ever link correctly. If we're not using GNU ld we use -z text 16855 # though, which does catch some bad symbols but isn't as heavy-handed 16856 # as -z defs. 16857 no_undefined_flag='$wl-z,text' 16858 allow_undefined_flag='$wl-z,nodefs' 16859 archive_cmds_need_lc=no 16860 hardcode_shlibpath_var=no 16861 hardcode_libdir_flag_spec='$wl-R,$libdir' 16862 hardcode_libdir_separator=':' 16863 link_all_deplibs=yes 16864 export_dynamic_flag_spec='$wl-Bexport' 16865 runpath_var='LD_RUN_PATH' 16866 16867 if test yes = "$GCC"; then 16868 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16869 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16870 else 16871 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16872 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16873 fi 16874 ;; 16875 16876 uts4*) 16877 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16878 hardcode_libdir_flag_spec='-L$libdir' 16879 hardcode_shlibpath_var=no 16880 ;; 16881 16882 *) 16883 ld_shlibs=no 16884 ;; 16885 esac 16886 16887 if test sni = "$host_vendor"; then 16888 case $host in 16889 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 16890 export_dynamic_flag_spec='$wl-Blargedynsym' 16891 ;; 16892 esac 16893 fi 16894 fi 16895 16896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 16897$as_echo "$ld_shlibs" >&6; } 16898test no = "$ld_shlibs" && can_build_shared=no 16899 16900with_gnu_ld=$with_gnu_ld 16901 16902 16903 16904 16905 16906 16907 16908 16909 16910 16911 16912 16913 16914 16915 16916# 16917# Do we need to explicitly link libc? 16918# 16919case "x$archive_cmds_need_lc" in 16920x|xyes) 16921 # Assume -lc should be added 16922 archive_cmds_need_lc=yes 16923 16924 if test yes,yes = "$GCC,$enable_shared"; then 16925 case $archive_cmds in 16926 *'~'*) 16927 # FIXME: we may have to deal with multi-command sequences. 16928 ;; 16929 '$CC '*) 16930 # Test whether the compiler implicitly links with -lc since on some 16931 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16932 # to ld, don't add -lc before -lgcc. 16933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 16934$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 16935if ${lt_cv_archive_cmds_need_lc+:} false; then : 16936 $as_echo_n "(cached) " >&6 16937else 16938 $RM conftest* 16939 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16940 16941 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16942 (eval $ac_compile) 2>&5 16943 ac_status=$? 16944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16945 test $ac_status = 0; } 2>conftest.err; then 16946 soname=conftest 16947 lib=conftest 16948 libobjs=conftest.$ac_objext 16949 deplibs= 16950 wl=$lt_prog_compiler_wl 16951 pic_flag=$lt_prog_compiler_pic 16952 compiler_flags=-v 16953 linker_flags=-v 16954 verstring= 16955 output_objdir=. 16956 libname=conftest 16957 lt_save_allow_undefined_flag=$allow_undefined_flag 16958 allow_undefined_flag= 16959 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 16960 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 16961 ac_status=$? 16962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16963 test $ac_status = 0; } 16964 then 16965 lt_cv_archive_cmds_need_lc=no 16966 else 16967 lt_cv_archive_cmds_need_lc=yes 16968 fi 16969 allow_undefined_flag=$lt_save_allow_undefined_flag 16970 else 16971 cat conftest.err 1>&5 16972 fi 16973 $RM conftest* 16974 16975fi 16976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 16977$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 16978 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 16979 ;; 16980 esac 16981 fi 16982 ;; 16983esac 16984 16985 16986 16987 16988 16989 16990 16991 16992 16993 16994 16995 16996 16997 16998 16999 17000 17001 17002 17003 17004 17005 17006 17007 17008 17009 17010 17011 17012 17013 17014 17015 17016 17017 17018 17019 17020 17021 17022 17023 17024 17025 17026 17027 17028 17029 17030 17031 17032 17033 17034 17035 17036 17037 17038 17039 17040 17041 17042 17043 17044 17045 17046 17047 17048 17049 17050 17051 17052 17053 17054 17055 17056 17057 17058 17059 17060 17061 17062 17063 17064 17065 17066 17067 17068 17069 17070 17071 17072 17073 17074 17075 17076 17077 17078 17079 17080 17081 17082 17083 17084 17085 17086 17087 17088 17089 17090 17091 17092 17093 17094 17095 17096 17097 17098 17099 17100 17101 17102 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 17137$as_echo_n "checking dynamic linker characteristics... " >&6; } 17138 17139if test yes = "$GCC"; then 17140 case $host_os in 17141 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 17142 *) lt_awk_arg='/^libraries:/' ;; 17143 esac 17144 case $host_os in 17145 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 17146 *) lt_sed_strip_eq='s|=/|/|g' ;; 17147 esac 17148 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 17149 case $lt_search_path_spec in 17150 *\;*) 17151 # if the path contains ";" then we assume it to be the separator 17152 # otherwise default to the standard path separator (i.e. ":") - it is 17153 # assumed that no part of a normal pathname contains ";" but that should 17154 # okay in the real world where ";" in dirpaths is itself problematic. 17155 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 17156 ;; 17157 *) 17158 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 17159 ;; 17160 esac 17161 # Ok, now we have the path, separated by spaces, we can step through it 17162 # and add multilib dir if necessary... 17163 lt_tmp_lt_search_path_spec= 17164 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 17165 # ...but if some path component already ends with the multilib dir we assume 17166 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 17167 case "$lt_multi_os_dir; $lt_search_path_spec " in 17168 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 17169 lt_multi_os_dir= 17170 ;; 17171 esac 17172 for lt_sys_path in $lt_search_path_spec; do 17173 if test -d "$lt_sys_path$lt_multi_os_dir"; then 17174 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 17175 elif test -n "$lt_multi_os_dir"; then 17176 test -d "$lt_sys_path" && \ 17177 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 17178 fi 17179 done 17180 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 17181BEGIN {RS = " "; FS = "/|\n";} { 17182 lt_foo = ""; 17183 lt_count = 0; 17184 for (lt_i = NF; lt_i > 0; lt_i--) { 17185 if ($lt_i != "" && $lt_i != ".") { 17186 if ($lt_i == "..") { 17187 lt_count++; 17188 } else { 17189 if (lt_count == 0) { 17190 lt_foo = "/" $lt_i lt_foo; 17191 } else { 17192 lt_count--; 17193 } 17194 } 17195 } 17196 } 17197 if (lt_foo != "") { lt_freq[lt_foo]++; } 17198 if (lt_freq[lt_foo] == 1) { print lt_foo; } 17199}'` 17200 # AWK program above erroneously prepends '/' to C:/dos/paths 17201 # for these hosts. 17202 case $host_os in 17203 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 17204 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 17205 esac 17206 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 17207else 17208 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17209fi 17210library_names_spec= 17211libname_spec='lib$name' 17212soname_spec= 17213shrext_cmds=.so 17214postinstall_cmds= 17215postuninstall_cmds= 17216finish_cmds= 17217finish_eval= 17218shlibpath_var= 17219shlibpath_overrides_runpath=unknown 17220version_type=none 17221dynamic_linker="$host_os ld.so" 17222sys_lib_dlsearch_path_spec="/lib /usr/lib" 17223need_lib_prefix=unknown 17224hardcode_into_libs=no 17225 17226# when you set need_version to no, make sure it does not cause -set_version 17227# flags to be left without arguments 17228need_version=unknown 17229 17230 17231 17232case $host_os in 17233aix3*) 17234 version_type=linux # correct to gnu/linux during the next big refactor 17235 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 17236 shlibpath_var=LIBPATH 17237 17238 # AIX 3 has no versioning support, so we append a major version to the name. 17239 soname_spec='$libname$release$shared_ext$major' 17240 ;; 17241 17242aix[4-9]*) 17243 version_type=linux # correct to gnu/linux during the next big refactor 17244 need_lib_prefix=no 17245 need_version=no 17246 hardcode_into_libs=yes 17247 if test ia64 = "$host_cpu"; then 17248 # AIX 5 supports IA64 17249 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 17250 shlibpath_var=LD_LIBRARY_PATH 17251 else 17252 # With GCC up to 2.95.x, collect2 would create an import file 17253 # for dependence libraries. The import file would start with 17254 # the line '#! .'. This would cause the generated library to 17255 # depend on '.', always an invalid library. This was fixed in 17256 # development snapshots of GCC prior to 3.0. 17257 case $host_os in 17258 aix4 | aix4.[01] | aix4.[01].*) 17259 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17260 echo ' yes ' 17261 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 17262 : 17263 else 17264 can_build_shared=no 17265 fi 17266 ;; 17267 esac 17268 # Using Import Files as archive members, it is possible to support 17269 # filename-based versioning of shared library archives on AIX. While 17270 # this would work for both with and without runtime linking, it will 17271 # prevent static linking of such archives. So we do filename-based 17272 # shared library versioning with .so extension only, which is used 17273 # when both runtime linking and shared linking is enabled. 17274 # Unfortunately, runtime linking may impact performance, so we do 17275 # not want this to be the default eventually. Also, we use the 17276 # versioned .so libs for executables only if there is the -brtl 17277 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 17278 # To allow for filename-based versioning support, we need to create 17279 # libNAME.so.V as an archive file, containing: 17280 # *) an Import File, referring to the versioned filename of the 17281 # archive as well as the shared archive member, telling the 17282 # bitwidth (32 or 64) of that shared object, and providing the 17283 # list of exported symbols of that shared object, eventually 17284 # decorated with the 'weak' keyword 17285 # *) the shared object with the F_LOADONLY flag set, to really avoid 17286 # it being seen by the linker. 17287 # At run time we better use the real file rather than another symlink, 17288 # but for link time we create the symlink libNAME.so -> libNAME.so.V 17289 17290 case $with_aix_soname,$aix_use_runtimelinking in 17291 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 17292 # soname into executable. Probably we can add versioning support to 17293 # collect2, so additional links can be useful in future. 17294 aix,yes) # traditional libtool 17295 dynamic_linker='AIX unversionable lib.so' 17296 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17297 # instead of lib<name>.a to let people know that these are not 17298 # typical AIX shared libraries. 17299 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17300 ;; 17301 aix,no) # traditional AIX only 17302 dynamic_linker='AIX lib.a(lib.so.V)' 17303 # We preserve .a as extension for shared libraries through AIX4.2 17304 # and later when we are not doing run time linking. 17305 library_names_spec='$libname$release.a $libname.a' 17306 soname_spec='$libname$release$shared_ext$major' 17307 ;; 17308 svr4,*) # full svr4 only 17309 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 17310 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17311 # We do not specify a path in Import Files, so LIBPATH fires. 17312 shlibpath_overrides_runpath=yes 17313 ;; 17314 *,yes) # both, prefer svr4 17315 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 17316 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17317 # unpreferred sharedlib libNAME.a needs extra handling 17318 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"' 17319 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"' 17320 # We do not specify a path in Import Files, so LIBPATH fires. 17321 shlibpath_overrides_runpath=yes 17322 ;; 17323 *,no) # both, prefer aix 17324 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 17325 library_names_spec='$libname$release.a $libname.a' 17326 soname_spec='$libname$release$shared_ext$major' 17327 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 17328 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)' 17329 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"' 17330 ;; 17331 esac 17332 shlibpath_var=LIBPATH 17333 fi 17334 ;; 17335 17336amigaos*) 17337 case $host_cpu in 17338 powerpc) 17339 # Since July 2007 AmigaOS4 officially supports .so libraries. 17340 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 17341 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17342 ;; 17343 m68k) 17344 library_names_spec='$libname.ixlibrary $libname.a' 17345 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17346 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' 17347 ;; 17348 esac 17349 ;; 17350 17351beos*) 17352 library_names_spec='$libname$shared_ext' 17353 dynamic_linker="$host_os ld.so" 17354 shlibpath_var=LIBRARY_PATH 17355 ;; 17356 17357bsdi[45]*) 17358 version_type=linux # correct to gnu/linux during the next big refactor 17359 need_version=no 17360 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17361 soname_spec='$libname$release$shared_ext$major' 17362 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17363 shlibpath_var=LD_LIBRARY_PATH 17364 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17365 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17366 # the default ld.so.conf also contains /usr/contrib/lib and 17367 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17368 # libtool to hard-code these into programs 17369 ;; 17370 17371cygwin* | mingw* | pw32* | cegcc*) 17372 version_type=windows 17373 shrext_cmds=.dll 17374 need_version=no 17375 need_lib_prefix=no 17376 17377 case $GCC,$cc_basename in 17378 yes,*) 17379 # gcc 17380 library_names_spec='$libname.dll.a' 17381 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17382 postinstall_cmds='base_file=`basename \$file`~ 17383 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17384 dldir=$destdir/`dirname \$dlpath`~ 17385 test -d \$dldir || mkdir -p \$dldir~ 17386 $install_prog $dir/$dlname \$dldir/$dlname~ 17387 chmod a+x \$dldir/$dlname~ 17388 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17389 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17390 fi' 17391 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17392 dlpath=$dir/\$dldll~ 17393 $RM \$dlpath' 17394 shlibpath_overrides_runpath=yes 17395 17396 case $host_os in 17397 cygwin*) 17398 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17399 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17400 17401 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 17402 ;; 17403 mingw* | cegcc*) 17404 # MinGW DLLs use traditional 'lib' prefix 17405 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17406 ;; 17407 pw32*) 17408 # pw32 DLLs use 'pw' prefix rather than 'lib' 17409 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17410 ;; 17411 esac 17412 dynamic_linker='Win32 ld.exe' 17413 ;; 17414 17415 *,cl*) 17416 # Native MSVC 17417 libname_spec='$name' 17418 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17419 library_names_spec='$libname.dll.lib' 17420 17421 case $build_os in 17422 mingw*) 17423 sys_lib_search_path_spec= 17424 lt_save_ifs=$IFS 17425 IFS=';' 17426 for lt_path in $LIB 17427 do 17428 IFS=$lt_save_ifs 17429 # Let DOS variable expansion print the short 8.3 style file name. 17430 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 17431 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 17432 done 17433 IFS=$lt_save_ifs 17434 # Convert to MSYS style. 17435 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 17436 ;; 17437 cygwin*) 17438 # Convert to unix form, then to dos form, then back to unix form 17439 # but this time dos style (no spaces!) so that the unix form looks 17440 # like /cygdrive/c/PROGRA~1:/cygdr... 17441 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 17442 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 17443 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17444 ;; 17445 *) 17446 sys_lib_search_path_spec=$LIB 17447 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 17448 # It is most probably a Windows format PATH. 17449 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17450 else 17451 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17452 fi 17453 # FIXME: find the short name or the path components, as spaces are 17454 # common. (e.g. "Program Files" -> "PROGRA~1") 17455 ;; 17456 esac 17457 17458 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17459 postinstall_cmds='base_file=`basename \$file`~ 17460 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17461 dldir=$destdir/`dirname \$dlpath`~ 17462 test -d \$dldir || mkdir -p \$dldir~ 17463 $install_prog $dir/$dlname \$dldir/$dlname' 17464 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17465 dlpath=$dir/\$dldll~ 17466 $RM \$dlpath' 17467 shlibpath_overrides_runpath=yes 17468 dynamic_linker='Win32 link.exe' 17469 ;; 17470 17471 *) 17472 # Assume MSVC wrapper 17473 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 17474 dynamic_linker='Win32 ld.exe' 17475 ;; 17476 esac 17477 # FIXME: first we should search . and the directory the executable is in 17478 shlibpath_var=PATH 17479 ;; 17480 17481darwin* | rhapsody*) 17482 dynamic_linker="$host_os dyld" 17483 version_type=darwin 17484 need_lib_prefix=no 17485 need_version=no 17486 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 17487 soname_spec='$libname$release$major$shared_ext' 17488 shlibpath_overrides_runpath=yes 17489 shlibpath_var=DYLD_LIBRARY_PATH 17490 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17491 17492 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 17493 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17494 ;; 17495 17496dgux*) 17497 version_type=linux # correct to gnu/linux during the next big refactor 17498 need_lib_prefix=no 17499 need_version=no 17500 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17501 soname_spec='$libname$release$shared_ext$major' 17502 shlibpath_var=LD_LIBRARY_PATH 17503 ;; 17504 17505freebsd* | dragonfly*) 17506 # DragonFly does not have aout. When/if they implement a new 17507 # versioning mechanism, adjust this. 17508 if test -x /usr/bin/objformat; then 17509 objformat=`/usr/bin/objformat` 17510 else 17511 case $host_os in 17512 freebsd[23].*) objformat=aout ;; 17513 *) objformat=elf ;; 17514 esac 17515 fi 17516 version_type=freebsd-$objformat 17517 case $version_type in 17518 freebsd-elf*) 17519 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17520 soname_spec='$libname$release$shared_ext$major' 17521 need_version=no 17522 need_lib_prefix=no 17523 ;; 17524 freebsd-*) 17525 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17526 need_version=yes 17527 ;; 17528 esac 17529 shlibpath_var=LD_LIBRARY_PATH 17530 case $host_os in 17531 freebsd2.*) 17532 shlibpath_overrides_runpath=yes 17533 ;; 17534 freebsd3.[01]* | freebsdelf3.[01]*) 17535 shlibpath_overrides_runpath=yes 17536 hardcode_into_libs=yes 17537 ;; 17538 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17539 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17540 shlibpath_overrides_runpath=no 17541 hardcode_into_libs=yes 17542 ;; 17543 *) # from 4.6 on, and DragonFly 17544 shlibpath_overrides_runpath=yes 17545 hardcode_into_libs=yes 17546 ;; 17547 esac 17548 ;; 17549 17550haiku*) 17551 version_type=linux # correct to gnu/linux during the next big refactor 17552 need_lib_prefix=no 17553 need_version=no 17554 dynamic_linker="$host_os runtime_loader" 17555 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17556 soname_spec='$libname$release$shared_ext$major' 17557 shlibpath_var=LIBRARY_PATH 17558 shlibpath_overrides_runpath=no 17559 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 17560 hardcode_into_libs=yes 17561 ;; 17562 17563hpux9* | hpux10* | hpux11*) 17564 # Give a soname corresponding to the major version so that dld.sl refuses to 17565 # link against other versions. 17566 version_type=sunos 17567 need_lib_prefix=no 17568 need_version=no 17569 case $host_cpu in 17570 ia64*) 17571 shrext_cmds='.so' 17572 hardcode_into_libs=yes 17573 dynamic_linker="$host_os dld.so" 17574 shlibpath_var=LD_LIBRARY_PATH 17575 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17576 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17577 soname_spec='$libname$release$shared_ext$major' 17578 if test 32 = "$HPUX_IA64_MODE"; then 17579 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17580 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 17581 else 17582 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17583 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 17584 fi 17585 ;; 17586 hppa*64*) 17587 shrext_cmds='.sl' 17588 hardcode_into_libs=yes 17589 dynamic_linker="$host_os dld.sl" 17590 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17591 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17592 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17593 soname_spec='$libname$release$shared_ext$major' 17594 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17595 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17596 ;; 17597 *) 17598 shrext_cmds='.sl' 17599 dynamic_linker="$host_os dld.sl" 17600 shlibpath_var=SHLIB_PATH 17601 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17602 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17603 soname_spec='$libname$release$shared_ext$major' 17604 ;; 17605 esac 17606 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 17607 postinstall_cmds='chmod 555 $lib' 17608 # or fails outright, so override atomically: 17609 install_override_mode=555 17610 ;; 17611 17612interix[3-9]*) 17613 version_type=linux # correct to gnu/linux during the next big refactor 17614 need_lib_prefix=no 17615 need_version=no 17616 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17617 soname_spec='$libname$release$shared_ext$major' 17618 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17619 shlibpath_var=LD_LIBRARY_PATH 17620 shlibpath_overrides_runpath=no 17621 hardcode_into_libs=yes 17622 ;; 17623 17624irix5* | irix6* | nonstopux*) 17625 case $host_os in 17626 nonstopux*) version_type=nonstopux ;; 17627 *) 17628 if test yes = "$lt_cv_prog_gnu_ld"; then 17629 version_type=linux # correct to gnu/linux during the next big refactor 17630 else 17631 version_type=irix 17632 fi ;; 17633 esac 17634 need_lib_prefix=no 17635 need_version=no 17636 soname_spec='$libname$release$shared_ext$major' 17637 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 17638 case $host_os in 17639 irix5* | nonstopux*) 17640 libsuff= shlibsuff= 17641 ;; 17642 *) 17643 case $LD in # libtool.m4 will add one of these switches to LD 17644 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17645 libsuff= shlibsuff= libmagic=32-bit;; 17646 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17647 libsuff=32 shlibsuff=N32 libmagic=N32;; 17648 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17649 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17650 *) libsuff= shlibsuff= libmagic=never-match;; 17651 esac 17652 ;; 17653 esac 17654 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17655 shlibpath_overrides_runpath=no 17656 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 17657 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 17658 hardcode_into_libs=yes 17659 ;; 17660 17661# No shared lib support for Linux oldld, aout, or coff. 17662linux*oldld* | linux*aout* | linux*coff*) 17663 dynamic_linker=no 17664 ;; 17665 17666linux*android*) 17667 version_type=none # Android doesn't support versioned libraries. 17668 need_lib_prefix=no 17669 need_version=no 17670 library_names_spec='$libname$release$shared_ext' 17671 soname_spec='$libname$release$shared_ext' 17672 finish_cmds= 17673 shlibpath_var=LD_LIBRARY_PATH 17674 shlibpath_overrides_runpath=yes 17675 17676 # This implies no fast_install, which is unacceptable. 17677 # Some rework will be needed to allow for fast_install 17678 # before this can be enabled. 17679 hardcode_into_libs=yes 17680 17681 dynamic_linker='Android linker' 17682 # Don't embed -rpath directories since the linker doesn't support them. 17683 hardcode_libdir_flag_spec='-L$libdir' 17684 ;; 17685 17686# This must be glibc/ELF. 17687linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 17688 version_type=linux # correct to gnu/linux during the next big refactor 17689 need_lib_prefix=no 17690 need_version=no 17691 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17692 soname_spec='$libname$release$shared_ext$major' 17693 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17694 shlibpath_var=LD_LIBRARY_PATH 17695 shlibpath_overrides_runpath=no 17696# EF : 17697 hardcode_into_libs=yes 17698 17699 # Some binutils ld are patched to set DT_RUNPATH 17700 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 17701 $as_echo_n "(cached) " >&6 17702else 17703 lt_cv_shlibpath_overrides_runpath=no 17704 save_LDFLAGS=$LDFLAGS 17705 save_libdir=$libdir 17706 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 17707 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 17708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17709/* end confdefs.h. */ 17710 17711#ifdef F77_DUMMY_MAIN 17712 17713# ifdef __cplusplus 17714 extern "C" 17715# endif 17716 int F77_DUMMY_MAIN() { return 1; } 17717 17718#endif 17719int 17720main () 17721{ 17722 17723 ; 17724 return 0; 17725} 17726_ACEOF 17727if ac_fn_c_try_link "$LINENO"; then : 17728 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 17729 lt_cv_shlibpath_overrides_runpath=yes 17730fi 17731fi 17732rm -f core conftest.err conftest.$ac_objext \ 17733 conftest$ac_exeext conftest.$ac_ext 17734 LDFLAGS=$save_LDFLAGS 17735 libdir=$save_libdir 17736 17737fi 17738 17739 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 17740 17741 # This implies no fast_install, which is unacceptable. 17742 # Some rework will be needed to allow for fast_install 17743 # before this can be enabled. 17744 hardcode_into_libs=yes 17745 17746 # Ideally, we could use ldconfig to report *all* directores which are 17747 # searched for libraries, however this is still not possible. Aside from not 17748 # being certain /sbin/ldconfig is available, command 17749 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 17750 # even though it is searched at run-time. Try to do the best guess by 17751 # appending ld.so.conf contents (and includes) to the search path. 17752 if test -f /etc/ld.so.conf; then 17753 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' ' '` 17754 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 17755 fi 17756 17757 # We used to test for /lib/ld.so.1 and disable shared libraries on 17758 # powerpc, because MkLinux only supported shared libraries with the 17759 # GNU dynamic linker. Since this was broken with cross compilers, 17760 # most powerpc-linux boxes support dynamic linking these days and 17761 # people can always --disable-shared, the test was removed, and we 17762 # assume the GNU/Linux dynamic linker is in use. 17763 dynamic_linker='GNU/Linux ld.so' 17764 ;; 17765 17766netbsd*) 17767 version_type=sunos 17768 need_lib_prefix=no 17769 need_version=no 17770 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17771 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17772 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17773 dynamic_linker='NetBSD (a.out) ld.so' 17774 else 17775 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17776 soname_spec='$libname$release$shared_ext$major' 17777 dynamic_linker='NetBSD ld.elf_so' 17778 fi 17779 shlibpath_var=LD_LIBRARY_PATH 17780 shlibpath_overrides_runpath=yes 17781 hardcode_into_libs=yes 17782 ;; 17783 17784newsos6) 17785 version_type=linux # correct to gnu/linux during the next big refactor 17786 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17787 shlibpath_var=LD_LIBRARY_PATH 17788 shlibpath_overrides_runpath=yes 17789 ;; 17790 17791*nto* | *qnx*) 17792 version_type=qnx 17793 need_lib_prefix=no 17794 need_version=no 17795 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17796 soname_spec='$libname$release$shared_ext$major' 17797 shlibpath_var=LD_LIBRARY_PATH 17798 shlibpath_overrides_runpath=no 17799 hardcode_into_libs=yes 17800 dynamic_linker='ldqnx.so' 17801 ;; 17802 17803openbsd* | bitrig*) 17804 version_type=sunos 17805 sys_lib_dlsearch_path_spec=/usr/lib 17806 need_lib_prefix=no 17807 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 17808 need_version=no 17809 else 17810 need_version=yes 17811 fi 17812 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17813 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17814 shlibpath_var=LD_LIBRARY_PATH 17815 shlibpath_overrides_runpath=yes 17816 ;; 17817 17818os2*) 17819 libname_spec='$name' 17820 version_type=windows 17821 shrext_cmds=.dll 17822 need_version=no 17823 need_lib_prefix=no 17824 # OS/2 can only load a DLL with a base name of 8 characters or less. 17825 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 17826 v=$($ECHO $release$versuffix | tr -d .-); 17827 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 17828 $ECHO $n$v`$shared_ext' 17829 library_names_spec='${libname}_dll.$libext' 17830 dynamic_linker='OS/2 ld.exe' 17831 shlibpath_var=BEGINLIBPATH 17832 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17833 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17834 postinstall_cmds='base_file=`basename \$file`~ 17835 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 17836 dldir=$destdir/`dirname \$dlpath`~ 17837 test -d \$dldir || mkdir -p \$dldir~ 17838 $install_prog $dir/$dlname \$dldir/$dlname~ 17839 chmod a+x \$dldir/$dlname~ 17840 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17841 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17842 fi' 17843 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 17844 dlpath=$dir/\$dldll~ 17845 $RM \$dlpath' 17846 ;; 17847 17848osf3* | osf4* | osf5*) 17849 version_type=osf 17850 need_lib_prefix=no 17851 need_version=no 17852 soname_spec='$libname$release$shared_ext$major' 17853 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17854 shlibpath_var=LD_LIBRARY_PATH 17855 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17856 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17857 ;; 17858 17859rdos*) 17860 dynamic_linker=no 17861 ;; 17862 17863solaris*) 17864 version_type=linux # correct to gnu/linux during the next big refactor 17865 need_lib_prefix=no 17866 need_version=no 17867 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17868 soname_spec='$libname$release$shared_ext$major' 17869 shlibpath_var=LD_LIBRARY_PATH 17870 shlibpath_overrides_runpath=yes 17871 hardcode_into_libs=yes 17872 # ldd complains unless libraries are executable 17873 postinstall_cmds='chmod +x $lib' 17874 ;; 17875 17876sunos4*) 17877 version_type=sunos 17878 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17879 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17880 shlibpath_var=LD_LIBRARY_PATH 17881 shlibpath_overrides_runpath=yes 17882 if test yes = "$with_gnu_ld"; then 17883 need_lib_prefix=no 17884 fi 17885 need_version=yes 17886 ;; 17887 17888sysv4 | sysv4.3*) 17889 version_type=linux # correct to gnu/linux during the next big refactor 17890 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17891 soname_spec='$libname$release$shared_ext$major' 17892 shlibpath_var=LD_LIBRARY_PATH 17893 case $host_vendor in 17894 sni) 17895 shlibpath_overrides_runpath=no 17896 need_lib_prefix=no 17897 runpath_var=LD_RUN_PATH 17898 ;; 17899 siemens) 17900 need_lib_prefix=no 17901 ;; 17902 motorola) 17903 need_lib_prefix=no 17904 need_version=no 17905 shlibpath_overrides_runpath=no 17906 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17907 ;; 17908 esac 17909 ;; 17910 17911sysv4*MP*) 17912 if test -d /usr/nec; then 17913 version_type=linux # correct to gnu/linux during the next big refactor 17914 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 17915 soname_spec='$libname$shared_ext.$major' 17916 shlibpath_var=LD_LIBRARY_PATH 17917 fi 17918 ;; 17919 17920sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 17921 version_type=sco 17922 need_lib_prefix=no 17923 need_version=no 17924 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 17925 soname_spec='$libname$release$shared_ext$major' 17926 shlibpath_var=LD_LIBRARY_PATH 17927 shlibpath_overrides_runpath=yes 17928 hardcode_into_libs=yes 17929 if test yes = "$with_gnu_ld"; then 17930 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 17931 else 17932 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 17933 case $host_os in 17934 sco3.2v5*) 17935 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 17936 ;; 17937 esac 17938 fi 17939 sys_lib_dlsearch_path_spec='/usr/lib' 17940 ;; 17941 17942tpf*) 17943 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 17944 version_type=linux # correct to gnu/linux during the next big refactor 17945 need_lib_prefix=no 17946 need_version=no 17947 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17948 shlibpath_var=LD_LIBRARY_PATH 17949 shlibpath_overrides_runpath=no 17950 hardcode_into_libs=yes 17951 ;; 17952 17953uts4*) 17954 version_type=linux # correct to gnu/linux during the next big refactor 17955 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17956 soname_spec='$libname$release$shared_ext$major' 17957 shlibpath_var=LD_LIBRARY_PATH 17958 ;; 17959 17960*) 17961 dynamic_linker=no 17962 ;; 17963esac 17964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 17965$as_echo "$dynamic_linker" >&6; } 17966test no = "$dynamic_linker" && can_build_shared=no 17967 17968variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17969if test yes = "$GCC"; then 17970 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17971fi 17972 17973if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 17974 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 17975fi 17976 17977if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 17978 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 17979fi 17980 17981# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 17982configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 17983 17984# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 17985func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 17986 17987# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 17988configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 17989 17990 17991 17992 17993 17994 17995 17996 17997 17998 17999 18000 18001 18002 18003 18004 18005 18006 18007 18008 18009 18010 18011 18012 18013 18014 18015 18016 18017 18018 18019 18020 18021 18022 18023 18024 18025 18026 18027 18028 18029 18030 18031 18032 18033 18034 18035 18036 18037 18038 18039 18040 18041 18042 18043 18044 18045 18046 18047 18048 18049 18050 18051 18052 18053 18054 18055 18056 18057 18058 18059 18060 18061 18062 18063 18064 18065 18066 18067 18068 18069 18070 18071 18072 18073 18074 18075 18076 18077 18078 18079 18080 18081 18082 18083 18084 18085 18086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 18087$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 18088hardcode_action= 18089if test -n "$hardcode_libdir_flag_spec" || 18090 test -n "$runpath_var" || 18091 test yes = "$hardcode_automatic"; then 18092 18093 # We can hardcode non-existent directories. 18094 if test no != "$hardcode_direct" && 18095 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18096 # have to relink, otherwise we might link with an installed library 18097 # when we should be linking with a yet-to-be-installed one 18098 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 18099 test no != "$hardcode_minus_L"; then 18100 # Linking always hardcodes the temporary library directory. 18101 hardcode_action=relink 18102 else 18103 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18104 hardcode_action=immediate 18105 fi 18106else 18107 # We cannot hardcode anything, or else we can only hardcode existing 18108 # directories. 18109 hardcode_action=unsupported 18110fi 18111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 18112$as_echo "$hardcode_action" >&6; } 18113 18114if test relink = "$hardcode_action" || 18115 test yes = "$inherit_rpath"; then 18116 # Fast installation is not supported 18117 enable_fast_install=no 18118elif test yes = "$shlibpath_overrides_runpath" || 18119 test no = "$enable_shared"; then 18120 # Fast installation is not necessary 18121 enable_fast_install=needless 18122fi 18123 18124 18125 18126 18127 18128 18129 if test yes != "$enable_dlopen"; then 18130 enable_dlopen=unknown 18131 enable_dlopen_self=unknown 18132 enable_dlopen_self_static=unknown 18133else 18134 lt_cv_dlopen=no 18135 lt_cv_dlopen_libs= 18136 18137 case $host_os in 18138 beos*) 18139 lt_cv_dlopen=load_add_on 18140 lt_cv_dlopen_libs= 18141 lt_cv_dlopen_self=yes 18142 ;; 18143 18144 mingw* | pw32* | cegcc*) 18145 lt_cv_dlopen=LoadLibrary 18146 lt_cv_dlopen_libs= 18147 ;; 18148 18149 cygwin*) 18150 lt_cv_dlopen=dlopen 18151 lt_cv_dlopen_libs= 18152 ;; 18153 18154 darwin*) 18155 # if libdl is installed we need to link against it 18156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 18157$as_echo_n "checking for dlopen in -ldl... " >&6; } 18158if ${ac_cv_lib_dl_dlopen+:} false; then : 18159 $as_echo_n "(cached) " >&6 18160else 18161 ac_check_lib_save_LIBS=$LIBS 18162LIBS="-ldl $LIBS" 18163cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18164/* end confdefs.h. */ 18165 18166/* Override any GCC internal prototype to avoid an error. 18167 Use char because int might match the return type of a GCC 18168 builtin and then its argument prototype would still apply. */ 18169#ifdef __cplusplus 18170extern "C" 18171#endif 18172char dlopen (); 18173#ifdef F77_DUMMY_MAIN 18174 18175# ifdef __cplusplus 18176 extern "C" 18177# endif 18178 int F77_DUMMY_MAIN() { return 1; } 18179 18180#endif 18181int 18182main () 18183{ 18184return dlopen (); 18185 ; 18186 return 0; 18187} 18188_ACEOF 18189if ac_fn_c_try_link "$LINENO"; then : 18190 ac_cv_lib_dl_dlopen=yes 18191else 18192 ac_cv_lib_dl_dlopen=no 18193fi 18194rm -f core conftest.err conftest.$ac_objext \ 18195 conftest$ac_exeext conftest.$ac_ext 18196LIBS=$ac_check_lib_save_LIBS 18197fi 18198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18199$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 18200if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 18201 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 18202else 18203 18204 lt_cv_dlopen=dyld 18205 lt_cv_dlopen_libs= 18206 lt_cv_dlopen_self=yes 18207 18208fi 18209 18210 ;; 18211 18212 tpf*) 18213 # Don't try to run any link tests for TPF. We know it's impossible 18214 # because TPF is a cross-compiler, and we know how we open DSOs. 18215 lt_cv_dlopen=dlopen 18216 lt_cv_dlopen_libs= 18217 lt_cv_dlopen_self=no 18218 ;; 18219 18220 *) 18221 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 18222if test "x$ac_cv_func_shl_load" = xyes; then : 18223 lt_cv_dlopen=shl_load 18224else 18225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 18226$as_echo_n "checking for shl_load in -ldld... " >&6; } 18227if ${ac_cv_lib_dld_shl_load+:} false; then : 18228 $as_echo_n "(cached) " >&6 18229else 18230 ac_check_lib_save_LIBS=$LIBS 18231LIBS="-ldld $LIBS" 18232cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18233/* end confdefs.h. */ 18234 18235/* Override any GCC internal prototype to avoid an error. 18236 Use char because int might match the return type of a GCC 18237 builtin and then its argument prototype would still apply. */ 18238#ifdef __cplusplus 18239extern "C" 18240#endif 18241char shl_load (); 18242#ifdef F77_DUMMY_MAIN 18243 18244# ifdef __cplusplus 18245 extern "C" 18246# endif 18247 int F77_DUMMY_MAIN() { return 1; } 18248 18249#endif 18250int 18251main () 18252{ 18253return shl_load (); 18254 ; 18255 return 0; 18256} 18257_ACEOF 18258if ac_fn_c_try_link "$LINENO"; then : 18259 ac_cv_lib_dld_shl_load=yes 18260else 18261 ac_cv_lib_dld_shl_load=no 18262fi 18263rm -f core conftest.err conftest.$ac_objext \ 18264 conftest$ac_exeext conftest.$ac_ext 18265LIBS=$ac_check_lib_save_LIBS 18266fi 18267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 18268$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 18269if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 18270 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 18271else 18272 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 18273if test "x$ac_cv_func_dlopen" = xyes; then : 18274 lt_cv_dlopen=dlopen 18275else 18276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 18277$as_echo_n "checking for dlopen in -ldl... " >&6; } 18278if ${ac_cv_lib_dl_dlopen+:} false; then : 18279 $as_echo_n "(cached) " >&6 18280else 18281 ac_check_lib_save_LIBS=$LIBS 18282LIBS="-ldl $LIBS" 18283cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18284/* end confdefs.h. */ 18285 18286/* Override any GCC internal prototype to avoid an error. 18287 Use char because int might match the return type of a GCC 18288 builtin and then its argument prototype would still apply. */ 18289#ifdef __cplusplus 18290extern "C" 18291#endif 18292char dlopen (); 18293#ifdef F77_DUMMY_MAIN 18294 18295# ifdef __cplusplus 18296 extern "C" 18297# endif 18298 int F77_DUMMY_MAIN() { return 1; } 18299 18300#endif 18301int 18302main () 18303{ 18304return dlopen (); 18305 ; 18306 return 0; 18307} 18308_ACEOF 18309if ac_fn_c_try_link "$LINENO"; then : 18310 ac_cv_lib_dl_dlopen=yes 18311else 18312 ac_cv_lib_dl_dlopen=no 18313fi 18314rm -f core conftest.err conftest.$ac_objext \ 18315 conftest$ac_exeext conftest.$ac_ext 18316LIBS=$ac_check_lib_save_LIBS 18317fi 18318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18319$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 18320if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 18321 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 18322else 18323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 18324$as_echo_n "checking for dlopen in -lsvld... " >&6; } 18325if ${ac_cv_lib_svld_dlopen+:} false; then : 18326 $as_echo_n "(cached) " >&6 18327else 18328 ac_check_lib_save_LIBS=$LIBS 18329LIBS="-lsvld $LIBS" 18330cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18331/* end confdefs.h. */ 18332 18333/* Override any GCC internal prototype to avoid an error. 18334 Use char because int might match the return type of a GCC 18335 builtin and then its argument prototype would still apply. */ 18336#ifdef __cplusplus 18337extern "C" 18338#endif 18339char dlopen (); 18340#ifdef F77_DUMMY_MAIN 18341 18342# ifdef __cplusplus 18343 extern "C" 18344# endif 18345 int F77_DUMMY_MAIN() { return 1; } 18346 18347#endif 18348int 18349main () 18350{ 18351return dlopen (); 18352 ; 18353 return 0; 18354} 18355_ACEOF 18356if ac_fn_c_try_link "$LINENO"; then : 18357 ac_cv_lib_svld_dlopen=yes 18358else 18359 ac_cv_lib_svld_dlopen=no 18360fi 18361rm -f core conftest.err conftest.$ac_objext \ 18362 conftest$ac_exeext conftest.$ac_ext 18363LIBS=$ac_check_lib_save_LIBS 18364fi 18365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 18366$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 18367if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 18368 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 18369else 18370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 18371$as_echo_n "checking for dld_link in -ldld... " >&6; } 18372if ${ac_cv_lib_dld_dld_link+:} false; then : 18373 $as_echo_n "(cached) " >&6 18374else 18375 ac_check_lib_save_LIBS=$LIBS 18376LIBS="-ldld $LIBS" 18377cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18378/* end confdefs.h. */ 18379 18380/* Override any GCC internal prototype to avoid an error. 18381 Use char because int might match the return type of a GCC 18382 builtin and then its argument prototype would still apply. */ 18383#ifdef __cplusplus 18384extern "C" 18385#endif 18386char dld_link (); 18387#ifdef F77_DUMMY_MAIN 18388 18389# ifdef __cplusplus 18390 extern "C" 18391# endif 18392 int F77_DUMMY_MAIN() { return 1; } 18393 18394#endif 18395int 18396main () 18397{ 18398return dld_link (); 18399 ; 18400 return 0; 18401} 18402_ACEOF 18403if ac_fn_c_try_link "$LINENO"; then : 18404 ac_cv_lib_dld_dld_link=yes 18405else 18406 ac_cv_lib_dld_dld_link=no 18407fi 18408rm -f core conftest.err conftest.$ac_objext \ 18409 conftest$ac_exeext conftest.$ac_ext 18410LIBS=$ac_check_lib_save_LIBS 18411fi 18412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 18413$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 18414if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 18415 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 18416fi 18417 18418 18419fi 18420 18421 18422fi 18423 18424 18425fi 18426 18427 18428fi 18429 18430 18431fi 18432 18433 ;; 18434 esac 18435 18436 if test no = "$lt_cv_dlopen"; then 18437 enable_dlopen=no 18438 else 18439 enable_dlopen=yes 18440 fi 18441 18442 case $lt_cv_dlopen in 18443 dlopen) 18444 save_CPPFLAGS=$CPPFLAGS 18445 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 18446 18447 save_LDFLAGS=$LDFLAGS 18448 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 18449 18450 save_LIBS=$LIBS 18451 LIBS="$lt_cv_dlopen_libs $LIBS" 18452 18453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 18454$as_echo_n "checking whether a program can dlopen itself... " >&6; } 18455if ${lt_cv_dlopen_self+:} false; then : 18456 $as_echo_n "(cached) " >&6 18457else 18458 if test yes = "$cross_compiling"; then : 18459 lt_cv_dlopen_self=cross 18460else 18461 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18462 lt_status=$lt_dlunknown 18463 cat > conftest.$ac_ext <<_LT_EOF 18464#line $LINENO "configure" 18465#include "confdefs.h" 18466 18467#if HAVE_DLFCN_H 18468#include <dlfcn.h> 18469#endif 18470 18471#include <stdio.h> 18472 18473#ifdef RTLD_GLOBAL 18474# define LT_DLGLOBAL RTLD_GLOBAL 18475#else 18476# ifdef DL_GLOBAL 18477# define LT_DLGLOBAL DL_GLOBAL 18478# else 18479# define LT_DLGLOBAL 0 18480# endif 18481#endif 18482 18483/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18484 find out it does not work in some platform. */ 18485#ifndef LT_DLLAZY_OR_NOW 18486# ifdef RTLD_LAZY 18487# define LT_DLLAZY_OR_NOW RTLD_LAZY 18488# else 18489# ifdef DL_LAZY 18490# define LT_DLLAZY_OR_NOW DL_LAZY 18491# else 18492# ifdef RTLD_NOW 18493# define LT_DLLAZY_OR_NOW RTLD_NOW 18494# else 18495# ifdef DL_NOW 18496# define LT_DLLAZY_OR_NOW DL_NOW 18497# else 18498# define LT_DLLAZY_OR_NOW 0 18499# endif 18500# endif 18501# endif 18502# endif 18503#endif 18504 18505/* When -fvisibility=hidden is used, assume the code has been annotated 18506 correspondingly for the symbols needed. */ 18507#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 18508int fnord () __attribute__((visibility("default"))); 18509#endif 18510 18511int fnord () { return 42; } 18512int main () 18513{ 18514 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18515 int status = $lt_dlunknown; 18516 18517 if (self) 18518 { 18519 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18520 else 18521 { 18522 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18523 else puts (dlerror ()); 18524 } 18525 /* dlclose (self); */ 18526 } 18527 else 18528 puts (dlerror ()); 18529 18530 return status; 18531} 18532_LT_EOF 18533 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 18534 (eval $ac_link) 2>&5 18535 ac_status=$? 18536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18537 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 18538 (./conftest; exit; ) >&5 2>/dev/null 18539 lt_status=$? 18540 case x$lt_status in 18541 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 18542 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 18543 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 18544 esac 18545 else : 18546 # compilation failed 18547 lt_cv_dlopen_self=no 18548 fi 18549fi 18550rm -fr conftest* 18551 18552 18553fi 18554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 18555$as_echo "$lt_cv_dlopen_self" >&6; } 18556 18557 if test yes = "$lt_cv_dlopen_self"; then 18558 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 18559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 18560$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 18561if ${lt_cv_dlopen_self_static+:} false; then : 18562 $as_echo_n "(cached) " >&6 18563else 18564 if test yes = "$cross_compiling"; then : 18565 lt_cv_dlopen_self_static=cross 18566else 18567 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18568 lt_status=$lt_dlunknown 18569 cat > conftest.$ac_ext <<_LT_EOF 18570#line $LINENO "configure" 18571#include "confdefs.h" 18572 18573#if HAVE_DLFCN_H 18574#include <dlfcn.h> 18575#endif 18576 18577#include <stdio.h> 18578 18579#ifdef RTLD_GLOBAL 18580# define LT_DLGLOBAL RTLD_GLOBAL 18581#else 18582# ifdef DL_GLOBAL 18583# define LT_DLGLOBAL DL_GLOBAL 18584# else 18585# define LT_DLGLOBAL 0 18586# endif 18587#endif 18588 18589/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18590 find out it does not work in some platform. */ 18591#ifndef LT_DLLAZY_OR_NOW 18592# ifdef RTLD_LAZY 18593# define LT_DLLAZY_OR_NOW RTLD_LAZY 18594# else 18595# ifdef DL_LAZY 18596# define LT_DLLAZY_OR_NOW DL_LAZY 18597# else 18598# ifdef RTLD_NOW 18599# define LT_DLLAZY_OR_NOW RTLD_NOW 18600# else 18601# ifdef DL_NOW 18602# define LT_DLLAZY_OR_NOW DL_NOW 18603# else 18604# define LT_DLLAZY_OR_NOW 0 18605# endif 18606# endif 18607# endif 18608# endif 18609#endif 18610 18611/* When -fvisibility=hidden is used, assume the code has been annotated 18612 correspondingly for the symbols needed. */ 18613#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 18614int fnord () __attribute__((visibility("default"))); 18615#endif 18616 18617int fnord () { return 42; } 18618int main () 18619{ 18620 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18621 int status = $lt_dlunknown; 18622 18623 if (self) 18624 { 18625 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18626 else 18627 { 18628 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18629 else puts (dlerror ()); 18630 } 18631 /* dlclose (self); */ 18632 } 18633 else 18634 puts (dlerror ()); 18635 18636 return status; 18637} 18638_LT_EOF 18639 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 18640 (eval $ac_link) 2>&5 18641 ac_status=$? 18642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18643 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 18644 (./conftest; exit; ) >&5 2>/dev/null 18645 lt_status=$? 18646 case x$lt_status in 18647 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 18648 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 18649 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 18650 esac 18651 else : 18652 # compilation failed 18653 lt_cv_dlopen_self_static=no 18654 fi 18655fi 18656rm -fr conftest* 18657 18658 18659fi 18660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 18661$as_echo "$lt_cv_dlopen_self_static" >&6; } 18662 fi 18663 18664 CPPFLAGS=$save_CPPFLAGS 18665 LDFLAGS=$save_LDFLAGS 18666 LIBS=$save_LIBS 18667 ;; 18668 esac 18669 18670 case $lt_cv_dlopen_self in 18671 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 18672 *) enable_dlopen_self=unknown ;; 18673 esac 18674 18675 case $lt_cv_dlopen_self_static in 18676 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 18677 *) enable_dlopen_self_static=unknown ;; 18678 esac 18679fi 18680 18681 18682 18683 18684 18685 18686 18687 18688 18689 18690 18691 18692 18693 18694 18695 18696 18697striplib= 18698old_striplib= 18699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 18700$as_echo_n "checking whether stripping libraries is possible... " >&6; } 18701if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 18702 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 18703 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 18704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18705$as_echo "yes" >&6; } 18706else 18707# FIXME - insert some real tests, host_os isn't really good enough 18708 case $host_os in 18709 darwin*) 18710 if test -n "$STRIP"; then 18711 striplib="$STRIP -x" 18712 old_striplib="$STRIP -S" 18713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18714$as_echo "yes" >&6; } 18715 else 18716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18717$as_echo "no" >&6; } 18718 fi 18719 ;; 18720 *) 18721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18722$as_echo "no" >&6; } 18723 ;; 18724 esac 18725fi 18726 18727 18728 18729 18730 18731 18732 18733 18734 18735 18736 18737 18738 # Report what library types will actually be built 18739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 18740$as_echo_n "checking if libtool supports shared libraries... " >&6; } 18741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 18742$as_echo "$can_build_shared" >&6; } 18743 18744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 18745$as_echo_n "checking whether to build shared libraries... " >&6; } 18746 test no = "$can_build_shared" && enable_shared=no 18747 18748 # On AIX, shared libraries and static libraries use the same namespace, and 18749 # are all built from PIC. 18750 case $host_os in 18751 aix3*) 18752 test yes = "$enable_shared" && enable_static=no 18753 if test -n "$RANLIB"; then 18754 archive_cmds="$archive_cmds~\$RANLIB \$lib" 18755 postinstall_cmds='$RANLIB $lib' 18756 fi 18757 ;; 18758 18759 aix[4-9]*) 18760 if test ia64 != "$host_cpu"; then 18761 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 18762 yes,aix,yes) ;; # shared object as lib.so file only 18763 yes,svr4,*) ;; # shared object as lib.so archive member only 18764 yes,*) enable_static=no ;; # shared object in lib.a archive as well 18765 esac 18766 fi 18767 ;; 18768 esac 18769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 18770$as_echo "$enable_shared" >&6; } 18771 18772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 18773$as_echo_n "checking whether to build static libraries... " >&6; } 18774 # Make sure either enable_shared or enable_static is yes. 18775 test yes = "$enable_shared" || enable_static=yes 18776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 18777$as_echo "$enable_static" >&6; } 18778 18779 18780 18781 18782fi 18783ac_ext=c 18784ac_cpp='$CPP $CPPFLAGS' 18785ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18786ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18787ac_compiler_gnu=$ac_cv_c_compiler_gnu 18788 18789CC=$lt_save_CC 18790 18791 if test -n "$CXX" && ( test no != "$CXX" && 18792 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 18793 (test g++ != "$CXX"))); then 18794 ac_ext=cpp 18795ac_cpp='$CXXCPP $CPPFLAGS' 18796ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18797ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18798ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 18800$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 18801if test -z "$CXXCPP"; then 18802 if ${ac_cv_prog_CXXCPP+:} false; then : 18803 $as_echo_n "(cached) " >&6 18804else 18805 # Double quotes because CXXCPP needs to be expanded 18806 for CXXCPP in "$CXX -E" "/lib/cpp" 18807 do 18808 ac_preproc_ok=false 18809for ac_cxx_preproc_warn_flag in '' yes 18810do 18811 # Use a header file that comes with gcc, so configuring glibc 18812 # with a fresh cross-compiler works. 18813 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18814 # <limits.h> exists even on freestanding compilers. 18815 # On the NeXT, cc -E runs the code through the compiler's parser, 18816 # not just through cpp. "Syntax error" is here to catch this case. 18817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18818/* end confdefs.h. */ 18819#ifdef __STDC__ 18820# include <limits.h> 18821#else 18822# include <assert.h> 18823#endif 18824 Syntax error 18825_ACEOF 18826if ac_fn_cxx_try_cpp "$LINENO"; then : 18827 18828else 18829 # Broken: fails on valid input. 18830continue 18831fi 18832rm -f conftest.err conftest.i conftest.$ac_ext 18833 18834 # OK, works on sane cases. Now check whether nonexistent headers 18835 # can be detected and how. 18836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18837/* end confdefs.h. */ 18838#include <ac_nonexistent.h> 18839_ACEOF 18840if ac_fn_cxx_try_cpp "$LINENO"; then : 18841 # Broken: success on invalid input. 18842continue 18843else 18844 # Passes both tests. 18845ac_preproc_ok=: 18846break 18847fi 18848rm -f conftest.err conftest.i conftest.$ac_ext 18849 18850done 18851# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 18852rm -f conftest.i conftest.err conftest.$ac_ext 18853if $ac_preproc_ok; then : 18854 break 18855fi 18856 18857 done 18858 ac_cv_prog_CXXCPP=$CXXCPP 18859 18860fi 18861 CXXCPP=$ac_cv_prog_CXXCPP 18862else 18863 ac_cv_prog_CXXCPP=$CXXCPP 18864fi 18865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 18866$as_echo "$CXXCPP" >&6; } 18867ac_preproc_ok=false 18868for ac_cxx_preproc_warn_flag in '' yes 18869do 18870 # Use a header file that comes with gcc, so configuring glibc 18871 # with a fresh cross-compiler works. 18872 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18873 # <limits.h> exists even on freestanding compilers. 18874 # On the NeXT, cc -E runs the code through the compiler's parser, 18875 # not just through cpp. "Syntax error" is here to catch this case. 18876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18877/* end confdefs.h. */ 18878#ifdef __STDC__ 18879# include <limits.h> 18880#else 18881# include <assert.h> 18882#endif 18883 Syntax error 18884_ACEOF 18885if ac_fn_cxx_try_cpp "$LINENO"; then : 18886 18887else 18888 # Broken: fails on valid input. 18889continue 18890fi 18891rm -f conftest.err conftest.i conftest.$ac_ext 18892 18893 # OK, works on sane cases. Now check whether nonexistent headers 18894 # can be detected and how. 18895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18896/* end confdefs.h. */ 18897#include <ac_nonexistent.h> 18898_ACEOF 18899if ac_fn_cxx_try_cpp "$LINENO"; then : 18900 # Broken: success on invalid input. 18901continue 18902else 18903 # Passes both tests. 18904ac_preproc_ok=: 18905break 18906fi 18907rm -f conftest.err conftest.i conftest.$ac_ext 18908 18909done 18910# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 18911rm -f conftest.i conftest.err conftest.$ac_ext 18912if $ac_preproc_ok; then : 18913 18914else 18915 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18916$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18917as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 18918See \`config.log' for more details" "$LINENO" 5; } 18919fi 18920 18921ac_ext=c 18922ac_cpp='$CPP $CPPFLAGS' 18923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18925ac_compiler_gnu=$ac_cv_c_compiler_gnu 18926 18927else 18928 _lt_caught_CXX_error=yes 18929fi 18930 18931ac_ext=cpp 18932ac_cpp='$CXXCPP $CPPFLAGS' 18933ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18934ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18935ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18936 18937archive_cmds_need_lc_CXX=no 18938allow_undefined_flag_CXX= 18939always_export_symbols_CXX=no 18940archive_expsym_cmds_CXX= 18941compiler_needs_object_CXX=no 18942export_dynamic_flag_spec_CXX= 18943hardcode_direct_CXX=no 18944hardcode_direct_absolute_CXX=no 18945hardcode_libdir_flag_spec_CXX= 18946hardcode_libdir_separator_CXX= 18947hardcode_minus_L_CXX=no 18948hardcode_shlibpath_var_CXX=unsupported 18949hardcode_automatic_CXX=no 18950inherit_rpath_CXX=no 18951module_cmds_CXX= 18952module_expsym_cmds_CXX= 18953link_all_deplibs_CXX=unknown 18954old_archive_cmds_CXX=$old_archive_cmds 18955reload_flag_CXX=$reload_flag 18956reload_cmds_CXX=$reload_cmds 18957no_undefined_flag_CXX= 18958whole_archive_flag_spec_CXX= 18959enable_shared_with_static_runtimes_CXX=no 18960 18961# Source file extension for C++ test sources. 18962ac_ext=cpp 18963 18964# Object file extension for compiled C++ test sources. 18965objext=o 18966objext_CXX=$objext 18967 18968# No sense in running all these tests if we already determined that 18969# the CXX compiler isn't working. Some variables (like enable_shared) 18970# are currently assumed to apply to all compilers on this platform, 18971# and will be corrupted by setting them based on a non-working compiler. 18972if test yes != "$_lt_caught_CXX_error"; then 18973 # Code to be used in simple compile tests 18974 lt_simple_compile_test_code="int some_variable = 0;" 18975 18976 # Code to be used in simple link tests 18977 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 18978 18979 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 18980 18981 18982 18983 18984 18985 18986# If no C compiler was specified, use CC. 18987LTCC=${LTCC-"$CC"} 18988 18989# If no C compiler flags were specified, use CFLAGS. 18990LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 18991 18992# Allow CC to be a program name with arguments. 18993compiler=$CC 18994 18995 18996 # save warnings/boilerplate of simple test code 18997 ac_outfile=conftest.$ac_objext 18998echo "$lt_simple_compile_test_code" >conftest.$ac_ext 18999eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19000_lt_compiler_boilerplate=`cat conftest.err` 19001$RM conftest* 19002 19003 ac_outfile=conftest.$ac_objext 19004echo "$lt_simple_link_test_code" >conftest.$ac_ext 19005eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19006_lt_linker_boilerplate=`cat conftest.err` 19007$RM -r conftest* 19008 19009 19010 # Allow CC to be a program name with arguments. 19011 lt_save_CC=$CC 19012 lt_save_CFLAGS=$CFLAGS 19013 lt_save_LD=$LD 19014 lt_save_GCC=$GCC 19015 GCC=$GXX 19016 lt_save_with_gnu_ld=$with_gnu_ld 19017 lt_save_path_LD=$lt_cv_path_LD 19018 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 19019 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 19020 else 19021 $as_unset lt_cv_prog_gnu_ld 19022 fi 19023 if test -n "${lt_cv_path_LDCXX+set}"; then 19024 lt_cv_path_LD=$lt_cv_path_LDCXX 19025 else 19026 $as_unset lt_cv_path_LD 19027 fi 19028 test -z "${LDCXX+set}" || LD=$LDCXX 19029 CC=${CXX-"c++"} 19030 CFLAGS=$CXXFLAGS 19031 compiler=$CC 19032 compiler_CXX=$CC 19033 func_cc_basename $compiler 19034cc_basename=$func_cc_basename_result 19035 19036 19037 if test -n "$compiler"; then 19038 # We don't want -fno-exception when compiling C++ code, so set the 19039 # no_builtin_flag separately 19040 if test yes = "$GXX"; then 19041 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 19042 else 19043 lt_prog_compiler_no_builtin_flag_CXX= 19044 fi 19045 19046 if test yes = "$GXX"; then 19047 # Set up default GNU C++ configuration 19048 19049 19050 19051# Check whether --with-gnu-ld was given. 19052if test "${with_gnu_ld+set}" = set; then : 19053 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 19054else 19055 with_gnu_ld=no 19056fi 19057 19058ac_prog=ld 19059if test yes = "$GCC"; then 19060 # Check if gcc -print-prog-name=ld gives a path. 19061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 19062$as_echo_n "checking for ld used by $CC... " >&6; } 19063 case $host in 19064 *-*-mingw*) 19065 # gcc leaves a trailing carriage return, which upsets mingw 19066 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 19067 *) 19068 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 19069 esac 19070 case $ac_prog in 19071 # Accept absolute paths. 19072 [\\/]* | ?:[\\/]*) 19073 re_direlt='/[^/][^/]*/\.\./' 19074 # Canonicalize the pathname of ld 19075 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 19076 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 19077 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 19078 done 19079 test -z "$LD" && LD=$ac_prog 19080 ;; 19081 "") 19082 # If it fails, then pretend we aren't using GCC. 19083 ac_prog=ld 19084 ;; 19085 *) 19086 # If it is relative, then search for the first ld in PATH. 19087 with_gnu_ld=unknown 19088 ;; 19089 esac 19090elif test yes = "$with_gnu_ld"; then 19091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 19092$as_echo_n "checking for GNU ld... " >&6; } 19093else 19094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 19095$as_echo_n "checking for non-GNU ld... " >&6; } 19096fi 19097if ${lt_cv_path_LD+:} false; then : 19098 $as_echo_n "(cached) " >&6 19099else 19100 if test -z "$LD"; then 19101 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 19102 for ac_dir in $PATH; do 19103 IFS=$lt_save_ifs 19104 test -z "$ac_dir" && ac_dir=. 19105 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 19106 lt_cv_path_LD=$ac_dir/$ac_prog 19107 # Check to see if the program is GNU ld. I'd rather use --version, 19108 # but apparently some variants of GNU ld only accept -v. 19109 # Break only if it was the GNU/non-GNU ld that we prefer. 19110 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 19111 *GNU* | *'with BFD'*) 19112 test no != "$with_gnu_ld" && break 19113 ;; 19114 *) 19115 test yes != "$with_gnu_ld" && break 19116 ;; 19117 esac 19118 fi 19119 done 19120 IFS=$lt_save_ifs 19121else 19122 lt_cv_path_LD=$LD # Let the user override the test with a path. 19123fi 19124fi 19125 19126LD=$lt_cv_path_LD 19127if test -n "$LD"; then 19128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 19129$as_echo "$LD" >&6; } 19130else 19131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19132$as_echo "no" >&6; } 19133fi 19134test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 19135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 19136$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 19137if ${lt_cv_prog_gnu_ld+:} false; then : 19138 $as_echo_n "(cached) " >&6 19139else 19140 # I'd rather use --version here, but apparently some GNU lds only accept -v. 19141case `$LD -v 2>&1 </dev/null` in 19142*GNU* | *'with BFD'*) 19143 lt_cv_prog_gnu_ld=yes 19144 ;; 19145*) 19146 lt_cv_prog_gnu_ld=no 19147 ;; 19148esac 19149fi 19150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 19151$as_echo "$lt_cv_prog_gnu_ld" >&6; } 19152with_gnu_ld=$lt_cv_prog_gnu_ld 19153 19154 19155 19156 19157 19158 19159 19160 # Check if GNU C++ uses GNU ld as the underlying linker, since the 19161 # archiving commands below assume that GNU ld is being used. 19162 if test yes = "$with_gnu_ld"; then 19163 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 19164 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 19165 19166 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 19167 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 19168 19169 # If archive_cmds runs LD, not CC, wlarc should be empty 19170 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 19171 # investigate it a little bit more. (MM) 19172 wlarc='$wl' 19173 19174 # ancient GNU ld didn't support --whole-archive et. al. 19175 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 19176 $GREP 'no-whole-archive' > /dev/null; then 19177 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 19178 else 19179 whole_archive_flag_spec_CXX= 19180 fi 19181 else 19182 with_gnu_ld=no 19183 wlarc= 19184 19185 # A generic and very simple default shared library creation 19186 # command for GNU C++ for the case where it uses the native 19187 # linker, instead of GNU ld. If possible, this setting should 19188 # overridden to take advantage of the native linker features on 19189 # the platform it is being used on. 19190 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 19191 fi 19192 19193 # Commands to make compiler produce verbose output that lists 19194 # what "hidden" libraries, object files and flags are used when 19195 # linking a shared library. 19196 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 19197 19198 else 19199 GXX=no 19200 with_gnu_ld=no 19201 wlarc= 19202 fi 19203 19204 # PORTME: fill in a description of your system's C++ link characteristics 19205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 19206$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 19207 ld_shlibs_CXX=yes 19208 case $host_os in 19209 aix3*) 19210 # FIXME: insert proper C++ library support 19211 ld_shlibs_CXX=no 19212 ;; 19213 aix[4-9]*) 19214 if test ia64 = "$host_cpu"; then 19215 # On IA64, the linker does run time linking by default, so we don't 19216 # have to do anything special. 19217 aix_use_runtimelinking=no 19218 exp_sym_flag='-Bexport' 19219 no_entry_flag= 19220 else 19221 aix_use_runtimelinking=no 19222 19223 # Test if we are trying to use run time linking or normal 19224 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 19225 # have runtime linking enabled, and use it for executables. 19226 # For shared libraries, we enable/disable runtime linking 19227 # depending on the kind of the shared library created - 19228 # when "with_aix_soname,aix_use_runtimelinking" is: 19229 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 19230 # "aix,yes" lib.so shared, rtl:yes, for executables 19231 # lib.a static archive 19232 # "both,no" lib.so.V(shr.o) shared, rtl:yes 19233 # lib.a(lib.so.V) shared, rtl:no, for executables 19234 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 19235 # lib.a(lib.so.V) shared, rtl:no 19236 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 19237 # lib.a static archive 19238 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 19239 for ld_flag in $LDFLAGS; do 19240 case $ld_flag in 19241 *-brtl*) 19242 aix_use_runtimelinking=yes 19243 break 19244 ;; 19245 esac 19246 done 19247 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 19248 # With aix-soname=svr4, we create the lib.so.V shared archives only, 19249 # so we don't have lib.a shared libs to link our executables. 19250 # We have to force runtime linking in this case. 19251 aix_use_runtimelinking=yes 19252 LDFLAGS="$LDFLAGS -Wl,-brtl" 19253 fi 19254 ;; 19255 esac 19256 19257 exp_sym_flag='-bexport' 19258 no_entry_flag='-bnoentry' 19259 fi 19260 19261 # When large executables or shared objects are built, AIX ld can 19262 # have problems creating the table of contents. If linking a library 19263 # or program results in "error TOC overflow" add -mminimal-toc to 19264 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 19265 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 19266 19267 archive_cmds_CXX='' 19268 hardcode_direct_CXX=yes 19269 hardcode_direct_absolute_CXX=yes 19270 hardcode_libdir_separator_CXX=':' 19271 link_all_deplibs_CXX=yes 19272 file_list_spec_CXX='$wl-f,' 19273 case $with_aix_soname,$aix_use_runtimelinking in 19274 aix,*) ;; # no import file 19275 svr4,* | *,yes) # use import file 19276 # The Import File defines what to hardcode. 19277 hardcode_direct_CXX=no 19278 hardcode_direct_absolute_CXX=no 19279 ;; 19280 esac 19281 19282 if test yes = "$GXX"; then 19283 case $host_os in aix4.[012]|aix4.[012].*) 19284 # We only want to do this on AIX 4.2 and lower, the check 19285 # below for broken collect2 doesn't work under 4.3+ 19286 collect2name=`$CC -print-prog-name=collect2` 19287 if test -f "$collect2name" && 19288 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 19289 then 19290 # We have reworked collect2 19291 : 19292 else 19293 # We have old collect2 19294 hardcode_direct_CXX=unsupported 19295 # It fails to find uninstalled libraries when the uninstalled 19296 # path is not listed in the libpath. Setting hardcode_minus_L 19297 # to unsupported forces relinking 19298 hardcode_minus_L_CXX=yes 19299 hardcode_libdir_flag_spec_CXX='-L$libdir' 19300 hardcode_libdir_separator_CXX= 19301 fi 19302 esac 19303 shared_flag='-shared' 19304 if test yes = "$aix_use_runtimelinking"; then 19305 shared_flag=$shared_flag' $wl-G' 19306 fi 19307 # Need to ensure runtime linking is disabled for the traditional 19308 # shared library, or the linker may eventually find shared libraries 19309 # /with/ Import File - we do not want to mix them. 19310 shared_flag_aix='-shared' 19311 shared_flag_svr4='-shared $wl-G' 19312 else 19313 # not using gcc 19314 if test ia64 = "$host_cpu"; then 19315 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 19316 # chokes on -Wl,-G. The following line is correct: 19317 shared_flag='-G' 19318 else 19319 if test yes = "$aix_use_runtimelinking"; then 19320 shared_flag='$wl-G' 19321 else 19322 shared_flag='$wl-bM:SRE' 19323 fi 19324 shared_flag_aix='$wl-bM:SRE' 19325 shared_flag_svr4='$wl-G' 19326 fi 19327 fi 19328 19329 export_dynamic_flag_spec_CXX='$wl-bexpall' 19330 # It seems that -bexpall does not export symbols beginning with 19331 # underscore (_), so it is better to generate a list of symbols to 19332 # export. 19333 always_export_symbols_CXX=yes 19334 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 19335 # Warning - without using the other runtime loading flags (-brtl), 19336 # -berok will link without error, but may produce a broken library. 19337 # The "-G" linker flag allows undefined symbols. 19338 no_undefined_flag_CXX='-bernotok' 19339 # Determine the default libpath from the value encoded in an empty 19340 # executable. 19341 if test set = "${lt_cv_aix_libpath+set}"; then 19342 aix_libpath=$lt_cv_aix_libpath 19343else 19344 if ${lt_cv_aix_libpath__CXX+:} false; then : 19345 $as_echo_n "(cached) " >&6 19346else 19347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19348/* end confdefs.h. */ 19349 19350#ifdef F77_DUMMY_MAIN 19351 19352# ifdef __cplusplus 19353 extern "C" 19354# endif 19355 int F77_DUMMY_MAIN() { return 1; } 19356 19357#endif 19358int 19359main () 19360{ 19361 19362 ; 19363 return 0; 19364} 19365_ACEOF 19366if ac_fn_cxx_try_link "$LINENO"; then : 19367 19368 lt_aix_libpath_sed=' 19369 /Import File Strings/,/^$/ { 19370 /^0/ { 19371 s/^0 *\([^ ]*\) *$/\1/ 19372 p 19373 } 19374 }' 19375 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 19376 # Check for a 64-bit object if we didn't find anything. 19377 if test -z "$lt_cv_aix_libpath__CXX"; then 19378 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 19379 fi 19380fi 19381rm -f core conftest.err conftest.$ac_objext \ 19382 conftest$ac_exeext conftest.$ac_ext 19383 if test -z "$lt_cv_aix_libpath__CXX"; then 19384 lt_cv_aix_libpath__CXX=/usr/lib:/lib 19385 fi 19386 19387fi 19388 19389 aix_libpath=$lt_cv_aix_libpath__CXX 19390fi 19391 19392 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 19393 19394 archive_expsym_cmds_CXX='$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 19395 else 19396 if test ia64 = "$host_cpu"; then 19397 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 19398 allow_undefined_flag_CXX="-z nodefs" 19399 archive_expsym_cmds_CXX="\$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" 19400 else 19401 # Determine the default libpath from the value encoded in an 19402 # empty executable. 19403 if test set = "${lt_cv_aix_libpath+set}"; then 19404 aix_libpath=$lt_cv_aix_libpath 19405else 19406 if ${lt_cv_aix_libpath__CXX+:} false; then : 19407 $as_echo_n "(cached) " >&6 19408else 19409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19410/* end confdefs.h. */ 19411 19412#ifdef F77_DUMMY_MAIN 19413 19414# ifdef __cplusplus 19415 extern "C" 19416# endif 19417 int F77_DUMMY_MAIN() { return 1; } 19418 19419#endif 19420int 19421main () 19422{ 19423 19424 ; 19425 return 0; 19426} 19427_ACEOF 19428if ac_fn_cxx_try_link "$LINENO"; then : 19429 19430 lt_aix_libpath_sed=' 19431 /Import File Strings/,/^$/ { 19432 /^0/ { 19433 s/^0 *\([^ ]*\) *$/\1/ 19434 p 19435 } 19436 }' 19437 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 19438 # Check for a 64-bit object if we didn't find anything. 19439 if test -z "$lt_cv_aix_libpath__CXX"; then 19440 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 19441 fi 19442fi 19443rm -f core conftest.err conftest.$ac_objext \ 19444 conftest$ac_exeext conftest.$ac_ext 19445 if test -z "$lt_cv_aix_libpath__CXX"; then 19446 lt_cv_aix_libpath__CXX=/usr/lib:/lib 19447 fi 19448 19449fi 19450 19451 aix_libpath=$lt_cv_aix_libpath__CXX 19452fi 19453 19454 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 19455 # Warning - without using the other run time loading flags, 19456 # -berok will link without error, but may produce a broken library. 19457 no_undefined_flag_CXX=' $wl-bernotok' 19458 allow_undefined_flag_CXX=' $wl-berok' 19459 if test yes = "$with_gnu_ld"; then 19460 # We only use this code for GNU lds that support --whole-archive. 19461 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 19462 else 19463 # Exported symbols can be pulled into shared objects from archives 19464 whole_archive_flag_spec_CXX='$convenience' 19465 fi 19466 archive_cmds_need_lc_CXX=yes 19467 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 19468 # -brtl affects multiple linker settings, -berok does not and is overridden later 19469 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 19470 if test svr4 != "$with_aix_soname"; then 19471 # This is similar to how AIX traditionally builds its shared 19472 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 19473 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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' 19474 fi 19475 if test aix != "$with_aix_soname"; then 19476 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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' 19477 else 19478 # used by -dlpreopen to get the symbols 19479 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 19480 fi 19481 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 19482 fi 19483 fi 19484 ;; 19485 19486 beos*) 19487 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 19488 allow_undefined_flag_CXX=unsupported 19489 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 19490 # support --undefined. This deserves some investigation. FIXME 19491 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19492 else 19493 ld_shlibs_CXX=no 19494 fi 19495 ;; 19496 19497 chorus*) 19498 case $cc_basename in 19499 *) 19500 # FIXME: insert proper C++ library support 19501 ld_shlibs_CXX=no 19502 ;; 19503 esac 19504 ;; 19505 19506 cygwin* | mingw* | pw32* | cegcc*) 19507 case $GXX,$cc_basename in 19508 ,cl* | no,cl*) 19509 # Native MSVC 19510 # hardcode_libdir_flag_spec is actually meaningless, as there is 19511 # no search path for DLLs. 19512 hardcode_libdir_flag_spec_CXX=' ' 19513 allow_undefined_flag_CXX=unsupported 19514 always_export_symbols_CXX=yes 19515 file_list_spec_CXX='@' 19516 # Tell ltmain to make .lib files, not .a files. 19517 libext=lib 19518 # Tell ltmain to make .dll files, not .so files. 19519 shrext_cmds=.dll 19520 # FIXME: Setting linknames here is a bad hack. 19521 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 19522 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 19523 cp "$export_symbols" "$output_objdir/$soname.def"; 19524 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 19525 else 19526 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 19527 fi~ 19528 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 19529 linknames=' 19530 # The linker will not automatically build a static lib if we build a DLL. 19531 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 19532 enable_shared_with_static_runtimes_CXX=yes 19533 # Don't use ranlib 19534 old_postinstall_cmds_CXX='chmod 644 $oldlib' 19535 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 19536 lt_tool_outputfile="@TOOL_OUTPUT@"~ 19537 case $lt_outputfile in 19538 *.exe|*.EXE) ;; 19539 *) 19540 lt_outputfile=$lt_outputfile.exe 19541 lt_tool_outputfile=$lt_tool_outputfile.exe 19542 ;; 19543 esac~ 19544 func_to_tool_file "$lt_outputfile"~ 19545 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 19546 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 19547 $RM "$lt_outputfile.manifest"; 19548 fi' 19549 ;; 19550 *) 19551 # g++ 19552 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 19553 # as there is no search path for DLLs. 19554 hardcode_libdir_flag_spec_CXX='-L$libdir' 19555 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 19556 allow_undefined_flag_CXX=unsupported 19557 always_export_symbols_CXX=no 19558 enable_shared_with_static_runtimes_CXX=yes 19559 19560 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 19561 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 19562 # If the export-symbols file already is a .def file, use it as 19563 # is; otherwise, prepend EXPORTS... 19564 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 19565 cp $export_symbols $output_objdir/$soname.def; 19566 else 19567 echo EXPORTS > $output_objdir/$soname.def; 19568 cat $export_symbols >> $output_objdir/$soname.def; 19569 fi~ 19570 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 19571 else 19572 ld_shlibs_CXX=no 19573 fi 19574 ;; 19575 esac 19576 ;; 19577 darwin* | rhapsody*) 19578 19579 19580 archive_cmds_need_lc_CXX=no 19581 hardcode_direct_CXX=no 19582 hardcode_automatic_CXX=yes 19583 hardcode_shlibpath_var_CXX=unsupported 19584 if test yes = "$lt_cv_ld_force_load"; then 19585 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 19586 19587 else 19588 whole_archive_flag_spec_CXX='' 19589 fi 19590 link_all_deplibs_CXX=yes 19591 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 19592 case $cc_basename in 19593 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 19594 *) _lt_dar_can_shared=$GCC ;; 19595 esac 19596 if test yes = "$_lt_dar_can_shared"; then 19597 output_verbose_link_cmd=func_echo_all 19598 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 19599 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 19600 archive_expsym_cmds_CXX="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" 19601 module_expsym_cmds_CXX="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" 19602 if test yes != "$lt_cv_apple_cc_single_mod"; then 19603 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil" 19604 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil" 19605 fi 19606 19607 else 19608 ld_shlibs_CXX=no 19609 fi 19610 19611 ;; 19612 19613 os2*) 19614 hardcode_libdir_flag_spec_CXX='-L$libdir' 19615 hardcode_minus_L_CXX=yes 19616 allow_undefined_flag_CXX=unsupported 19617 shrext_cmds=.dll 19618 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 19619 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 19620 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 19621 $ECHO EXPORTS >> $output_objdir/$libname.def~ 19622 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 19623 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 19624 emximp -o $lib $output_objdir/$libname.def' 19625 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 19626 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 19627 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 19628 $ECHO EXPORTS >> $output_objdir/$libname.def~ 19629 prefix_cmds="$SED"~ 19630 if test EXPORTS = "`$SED 1q $export_symbols`"; then 19631 prefix_cmds="$prefix_cmds -e 1d"; 19632 fi~ 19633 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 19634 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 19635 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 19636 emximp -o $lib $output_objdir/$libname.def' 19637 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 19638 enable_shared_with_static_runtimes_CXX=yes 19639 ;; 19640 19641 dgux*) 19642 case $cc_basename in 19643 ec++*) 19644 # FIXME: insert proper C++ library support 19645 ld_shlibs_CXX=no 19646 ;; 19647 ghcx*) 19648 # Green Hills C++ Compiler 19649 # FIXME: insert proper C++ library support 19650 ld_shlibs_CXX=no 19651 ;; 19652 *) 19653 # FIXME: insert proper C++ library support 19654 ld_shlibs_CXX=no 19655 ;; 19656 esac 19657 ;; 19658 19659 freebsd2.*) 19660 # C++ shared libraries reported to be fairly broken before 19661 # switch to ELF 19662 ld_shlibs_CXX=no 19663 ;; 19664 19665 freebsd-elf*) 19666 archive_cmds_need_lc_CXX=no 19667 ;; 19668 19669 freebsd* | dragonfly*) 19670 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 19671 # conventions 19672 ld_shlibs_CXX=yes 19673 ;; 19674 19675 haiku*) 19676 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19677 link_all_deplibs_CXX=yes 19678 ;; 19679 19680 hpux9*) 19681 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 19682 hardcode_libdir_separator_CXX=: 19683 export_dynamic_flag_spec_CXX='$wl-E' 19684 hardcode_direct_CXX=yes 19685 hardcode_minus_L_CXX=yes # Not in the search PATH, 19686 # but as the default 19687 # location of the library. 19688 19689 case $cc_basename in 19690 CC*) 19691 # FIXME: insert proper C++ library support 19692 ld_shlibs_CXX=no 19693 ;; 19694 aCC*) 19695 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 19696 # Commands to make compiler produce verbose output that lists 19697 # what "hidden" libraries, object files and flags are used when 19698 # linking a shared library. 19699 # 19700 # There doesn't appear to be a way to prevent this compiler from 19701 # explicitly linking system object files so we need to strip them 19702 # from the output so that they don't get included in the library 19703 # dependencies. 19704 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 19705 ;; 19706 *) 19707 if test yes = "$GXX"; then 19708 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 19709 else 19710 # FIXME: insert proper C++ library support 19711 ld_shlibs_CXX=no 19712 fi 19713 ;; 19714 esac 19715 ;; 19716 19717 hpux10*|hpux11*) 19718 if test no = "$with_gnu_ld"; then 19719 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 19720 hardcode_libdir_separator_CXX=: 19721 19722 case $host_cpu in 19723 hppa*64*|ia64*) 19724 ;; 19725 *) 19726 export_dynamic_flag_spec_CXX='$wl-E' 19727 ;; 19728 esac 19729 fi 19730 case $host_cpu in 19731 hppa*64*|ia64*) 19732 hardcode_direct_CXX=no 19733 hardcode_shlibpath_var_CXX=no 19734 ;; 19735 *) 19736 hardcode_direct_CXX=yes 19737 hardcode_direct_absolute_CXX=yes 19738 hardcode_minus_L_CXX=yes # Not in the search PATH, 19739 # but as the default 19740 # location of the library. 19741 ;; 19742 esac 19743 19744 case $cc_basename in 19745 CC*) 19746 # FIXME: insert proper C++ library support 19747 ld_shlibs_CXX=no 19748 ;; 19749 aCC*) 19750 case $host_cpu in 19751 hppa*64*) 19752 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 19753 ;; 19754 ia64*) 19755 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 19756 ;; 19757 *) 19758 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 19759 ;; 19760 esac 19761 # Commands to make compiler produce verbose output that lists 19762 # what "hidden" libraries, object files and flags are used when 19763 # linking a shared library. 19764 # 19765 # There doesn't appear to be a way to prevent this compiler from 19766 # explicitly linking system object files so we need to strip them 19767 # from the output so that they don't get included in the library 19768 # dependencies. 19769 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 19770 ;; 19771 *) 19772 if test yes = "$GXX"; then 19773 if test no = "$with_gnu_ld"; then 19774 case $host_cpu in 19775 hppa*64*) 19776 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 19777 ;; 19778 ia64*) 19779 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 19780 ;; 19781 *) 19782 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 19783 ;; 19784 esac 19785 fi 19786 else 19787 # FIXME: insert proper C++ library support 19788 ld_shlibs_CXX=no 19789 fi 19790 ;; 19791 esac 19792 ;; 19793 19794 interix[3-9]*) 19795 hardcode_direct_CXX=no 19796 hardcode_shlibpath_var_CXX=no 19797 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 19798 export_dynamic_flag_spec_CXX='$wl-E' 19799 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 19800 # Instead, shared libraries are loaded at an image base (0x10000000 by 19801 # default) and relocated if they conflict, which is a slow very memory 19802 # consuming and fragmenting process. To avoid this, we pick a random, 19803 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 19804 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 19805 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 19806 archive_expsym_cmds_CXX='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' 19807 ;; 19808 irix5* | irix6*) 19809 case $cc_basename in 19810 CC*) 19811 # SGI C++ 19812 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 19813 19814 # Archives containing C++ object files must be created using 19815 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 19816 # necessary to make sure instantiated templates are included 19817 # in the archive. 19818 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 19819 ;; 19820 *) 19821 if test yes = "$GXX"; then 19822 if test no = "$with_gnu_ld"; then 19823 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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' 19824 else 19825 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib' 19826 fi 19827 fi 19828 link_all_deplibs_CXX=yes 19829 ;; 19830 esac 19831 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 19832 hardcode_libdir_separator_CXX=: 19833 inherit_rpath_CXX=yes 19834 ;; 19835 19836 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 19837 case $cc_basename in 19838 KCC*) 19839 # Kuck and Associates, Inc. (KAI) C++ Compiler 19840 19841 # KCC will only create a shared library if the output file 19842 # ends with ".so" (or ".sl" for HP-UX), so rename the library 19843 # to its proper name (with version) after linking. 19844 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 19845 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib' 19846 # Commands to make compiler produce verbose output that lists 19847 # what "hidden" libraries, object files and flags are used when 19848 # linking a shared library. 19849 # 19850 # There doesn't appear to be a way to prevent this compiler from 19851 # explicitly linking system object files so we need to strip them 19852 # from the output so that they don't get included in the library 19853 # dependencies. 19854 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 19855 19856 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 19857 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 19858 19859 # Archives containing C++ object files must be created using 19860 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 19861 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 19862 ;; 19863 icpc* | ecpc* ) 19864 # Intel C++ 19865 with_gnu_ld=yes 19866 # version 8.0 and above of icpc choke on multiply defined symbols 19867 # if we add $predep_objects and $postdep_objects, however 7.1 and 19868 # earlier do not add the objects themselves. 19869 case `$CC -V 2>&1` in 19870 *"Version 7."*) 19871 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 19872 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 19873 ;; 19874 *) # Version 8.0 or newer 19875 tmp_idyn= 19876 case $host_cpu in 19877 ia64*) tmp_idyn=' -i_dynamic';; 19878 esac 19879 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19880 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 19881 ;; 19882 esac 19883 archive_cmds_need_lc_CXX=no 19884 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 19885 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 19886 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 19887 ;; 19888 pgCC* | pgcpp*) 19889 # Portland Group C++ compiler 19890 case `$CC -V` in 19891 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 19892 prelink_cmds_CXX='tpldir=Template.dir~ 19893 rm -rf $tpldir~ 19894 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 19895 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 19896 old_archive_cmds_CXX='tpldir=Template.dir~ 19897 rm -rf $tpldir~ 19898 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 19899 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 19900 $RANLIB $oldlib' 19901 archive_cmds_CXX='tpldir=Template.dir~ 19902 rm -rf $tpldir~ 19903 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 19904 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 19905 archive_expsym_cmds_CXX='tpldir=Template.dir~ 19906 rm -rf $tpldir~ 19907 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 19908 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 19909 ;; 19910 *) # Version 6 and above use weak symbols 19911 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 19912 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 19913 ;; 19914 esac 19915 19916 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 19917 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 19918 whole_archive_flag_spec_CXX='$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' 19919 ;; 19920 cxx*) 19921 # Compaq C++ 19922 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 19923 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols' 19924 19925 runpath_var=LD_RUN_PATH 19926 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 19927 hardcode_libdir_separator_CXX=: 19928 19929 # Commands to make compiler produce verbose output that lists 19930 # what "hidden" libraries, object files and flags are used when 19931 # linking a shared library. 19932 # 19933 # There doesn't appear to be a way to prevent this compiler from 19934 # explicitly linking system object files so we need to strip them 19935 # from the output so that they don't get included in the library 19936 # dependencies. 19937 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' 19938 ;; 19939 xl* | mpixl* | bgxl*) 19940 # IBM XL 8.0 on PPC, with GNU ld 19941 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 19942 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 19943 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19944 if test yes = "$supports_anon_versioning"; then 19945 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 19946 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 19947 echo "local: *; };" >> $output_objdir/$libname.ver~ 19948 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 19949 fi 19950 ;; 19951 *) 19952 case `$CC -V 2>&1 | sed 5q` in 19953 *Sun\ C*) 19954 # Sun C++ 5.9 19955 no_undefined_flag_CXX=' -zdefs' 19956 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 19957 archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols' 19958 hardcode_libdir_flag_spec_CXX='-R$libdir' 19959 whole_archive_flag_spec_CXX='$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' 19960 compiler_needs_object_CXX=yes 19961 19962 # Not sure whether something based on 19963 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 19964 # would be better. 19965 output_verbose_link_cmd='func_echo_all' 19966 19967 # Archives containing C++ object files must be created using 19968 # "CC -xar", where "CC" is the Sun C++ compiler. This is 19969 # necessary to make sure instantiated templates are included 19970 # in the archive. 19971 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 19972 ;; 19973 esac 19974 ;; 19975 esac 19976 ;; 19977 19978 lynxos*) 19979 # FIXME: insert proper C++ library support 19980 ld_shlibs_CXX=no 19981 ;; 19982 19983 m88k*) 19984 # FIXME: insert proper C++ library support 19985 ld_shlibs_CXX=no 19986 ;; 19987 19988 mvs*) 19989 case $cc_basename in 19990 cxx*) 19991 # FIXME: insert proper C++ library support 19992 ld_shlibs_CXX=no 19993 ;; 19994 *) 19995 # FIXME: insert proper C++ library support 19996 ld_shlibs_CXX=no 19997 ;; 19998 esac 19999 ;; 20000 20001 netbsd*) 20002 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 20003 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 20004 wlarc= 20005 hardcode_libdir_flag_spec_CXX='-R$libdir' 20006 hardcode_direct_CXX=yes 20007 hardcode_shlibpath_var_CXX=no 20008 fi 20009 # Workaround some broken pre-1.5 toolchains 20010 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 20011 ;; 20012 20013 *nto* | *qnx*) 20014 ld_shlibs_CXX=yes 20015 ;; 20016 20017 openbsd* | bitrig*) 20018 if test -f /usr/libexec/ld.so; then 20019 hardcode_direct_CXX=yes 20020 hardcode_shlibpath_var_CXX=no 20021 hardcode_direct_absolute_CXX=yes 20022 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 20023 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 20024 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 20025 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 20026 export_dynamic_flag_spec_CXX='$wl-E' 20027 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 20028 fi 20029 output_verbose_link_cmd=func_echo_all 20030 else 20031 ld_shlibs_CXX=no 20032 fi 20033 ;; 20034 20035 osf3* | osf4* | osf5*) 20036 case $cc_basename in 20037 KCC*) 20038 # Kuck and Associates, Inc. (KAI) C++ Compiler 20039 20040 # KCC will only create a shared library if the output file 20041 # ends with ".so" (or ".sl" for HP-UX), so rename the library 20042 # to its proper name (with version) after linking. 20043 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 20044 20045 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 20046 hardcode_libdir_separator_CXX=: 20047 20048 # Archives containing C++ object files must be created using 20049 # the KAI C++ compiler. 20050 case $host in 20051 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 20052 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 20053 esac 20054 ;; 20055 RCC*) 20056 # Rational C++ 2.4.1 20057 # FIXME: insert proper C++ library support 20058 ld_shlibs_CXX=no 20059 ;; 20060 cxx*) 20061 case $host in 20062 osf3*) 20063 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 20064 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 20065 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 20066 ;; 20067 *) 20068 allow_undefined_flag_CXX=' -expect_unresolved \*' 20069 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 20070 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 20071 echo "-hidden">> $lib.exp~ 20072 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~ 20073 $RM $lib.exp' 20074 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 20075 ;; 20076 esac 20077 20078 hardcode_libdir_separator_CXX=: 20079 20080 # Commands to make compiler produce verbose output that lists 20081 # what "hidden" libraries, object files and flags are used when 20082 # linking a shared library. 20083 # 20084 # There doesn't appear to be a way to prevent this compiler from 20085 # explicitly linking system object files so we need to strip them 20086 # from the output so that they don't get included in the library 20087 # dependencies. 20088 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 20089 ;; 20090 *) 20091 if test yes,no = "$GXX,$with_gnu_ld"; then 20092 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 20093 case $host in 20094 osf3*) 20095 archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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' 20096 ;; 20097 *) 20098 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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' 20099 ;; 20100 esac 20101 20102 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 20103 hardcode_libdir_separator_CXX=: 20104 20105 # Commands to make compiler produce verbose output that lists 20106 # what "hidden" libraries, object files and flags are used when 20107 # linking a shared library. 20108 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 20109 20110 else 20111 # FIXME: insert proper C++ library support 20112 ld_shlibs_CXX=no 20113 fi 20114 ;; 20115 esac 20116 ;; 20117 20118 psos*) 20119 # FIXME: insert proper C++ library support 20120 ld_shlibs_CXX=no 20121 ;; 20122 20123 sunos4*) 20124 case $cc_basename in 20125 CC*) 20126 # Sun C++ 4.x 20127 # FIXME: insert proper C++ library support 20128 ld_shlibs_CXX=no 20129 ;; 20130 lcc*) 20131 # Lucid 20132 # FIXME: insert proper C++ library support 20133 ld_shlibs_CXX=no 20134 ;; 20135 *) 20136 # FIXME: insert proper C++ library support 20137 ld_shlibs_CXX=no 20138 ;; 20139 esac 20140 ;; 20141 20142 solaris*) 20143 case $cc_basename in 20144 CC* | sunCC*) 20145 # Sun C++ 4.2, 5.x and Centerline C++ 20146 archive_cmds_need_lc_CXX=yes 20147 no_undefined_flag_CXX=' -zdefs' 20148 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 20149 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 20150 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 20151 20152 hardcode_libdir_flag_spec_CXX='-R$libdir' 20153 hardcode_shlibpath_var_CXX=no 20154 case $host_os in 20155 solaris2.[0-5] | solaris2.[0-5].*) ;; 20156 *) 20157 # The compiler driver will combine and reorder linker options, 20158 # but understands '-z linker_flag'. 20159 # Supported since Solaris 2.6 (maybe 2.5.1?) 20160 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 20161 ;; 20162 esac 20163 link_all_deplibs_CXX=yes 20164 20165 output_verbose_link_cmd='func_echo_all' 20166 20167 # Archives containing C++ object files must be created using 20168 # "CC -xar", where "CC" is the Sun C++ compiler. This is 20169 # necessary to make sure instantiated templates are included 20170 # in the archive. 20171 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 20172 ;; 20173 gcx*) 20174 # Green Hills C++ Compiler 20175 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 20176 20177 # The C++ compiler must be used to create the archive. 20178 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 20179 ;; 20180 *) 20181 # GNU C++ compiler with Solaris linker 20182 if test yes,no = "$GXX,$with_gnu_ld"; then 20183 no_undefined_flag_CXX=' $wl-z ${wl}defs' 20184 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 20185 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 20186 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 20187 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 20188 20189 # Commands to make compiler produce verbose output that lists 20190 # what "hidden" libraries, object files and flags are used when 20191 # linking a shared library. 20192 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 20193 else 20194 # g++ 2.7 appears to require '-G' NOT '-shared' on this 20195 # platform. 20196 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 20197 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 20198 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 20199 20200 # Commands to make compiler produce verbose output that lists 20201 # what "hidden" libraries, object files and flags are used when 20202 # linking a shared library. 20203 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 20204 fi 20205 20206 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 20207 case $host_os in 20208 solaris2.[0-5] | solaris2.[0-5].*) ;; 20209 *) 20210 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 20211 ;; 20212 esac 20213 fi 20214 ;; 20215 esac 20216 ;; 20217 20218 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 20219 no_undefined_flag_CXX='$wl-z,text' 20220 archive_cmds_need_lc_CXX=no 20221 hardcode_shlibpath_var_CXX=no 20222 runpath_var='LD_RUN_PATH' 20223 20224 case $cc_basename in 20225 CC*) 20226 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20227 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20228 ;; 20229 *) 20230 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20231 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20232 ;; 20233 esac 20234 ;; 20235 20236 sysv5* | sco3.2v5* | sco5v6*) 20237 # Note: We CANNOT use -z defs as we might desire, because we do not 20238 # link with -lc, and that would cause any symbols used from libc to 20239 # always be unresolved, which means just about no library would 20240 # ever link correctly. If we're not using GNU ld we use -z text 20241 # though, which does catch some bad symbols but isn't as heavy-handed 20242 # as -z defs. 20243 no_undefined_flag_CXX='$wl-z,text' 20244 allow_undefined_flag_CXX='$wl-z,nodefs' 20245 archive_cmds_need_lc_CXX=no 20246 hardcode_shlibpath_var_CXX=no 20247 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 20248 hardcode_libdir_separator_CXX=':' 20249 link_all_deplibs_CXX=yes 20250 export_dynamic_flag_spec_CXX='$wl-Bexport' 20251 runpath_var='LD_RUN_PATH' 20252 20253 case $cc_basename in 20254 CC*) 20255 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20256 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20257 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 20258 '"$old_archive_cmds_CXX" 20259 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 20260 '"$reload_cmds_CXX" 20261 ;; 20262 *) 20263 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20264 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20265 ;; 20266 esac 20267 ;; 20268 20269 tandem*) 20270 case $cc_basename in 20271 NCC*) 20272 # NonStop-UX NCC 3.20 20273 # FIXME: insert proper C++ library support 20274 ld_shlibs_CXX=no 20275 ;; 20276 *) 20277 # FIXME: insert proper C++ library support 20278 ld_shlibs_CXX=no 20279 ;; 20280 esac 20281 ;; 20282 20283 vxworks*) 20284 # FIXME: insert proper C++ library support 20285 ld_shlibs_CXX=no 20286 ;; 20287 20288 *) 20289 # FIXME: insert proper C++ library support 20290 ld_shlibs_CXX=no 20291 ;; 20292 esac 20293 20294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 20295$as_echo "$ld_shlibs_CXX" >&6; } 20296 test no = "$ld_shlibs_CXX" && can_build_shared=no 20297 20298 GCC_CXX=$GXX 20299 LD_CXX=$LD 20300 20301 ## CAVEAT EMPTOR: 20302 ## There is no encapsulation within the following macros, do not change 20303 ## the running order or otherwise move them around unless you know exactly 20304 ## what you are doing... 20305 # Dependencies to place before and after the object being linked: 20306predep_objects_CXX= 20307postdep_objects_CXX= 20308predeps_CXX= 20309postdeps_CXX= 20310compiler_lib_search_path_CXX= 20311 20312cat > conftest.$ac_ext <<_LT_EOF 20313class Foo 20314{ 20315public: 20316 Foo (void) { a = 0; } 20317private: 20318 int a; 20319}; 20320_LT_EOF 20321 20322 20323_lt_libdeps_save_CFLAGS=$CFLAGS 20324case "$CC $CFLAGS " in #( 20325*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 20326*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 20327*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 20328esac 20329 20330if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 20331 (eval $ac_compile) 2>&5 20332 ac_status=$? 20333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20334 test $ac_status = 0; }; then 20335 # Parse the compiler output and extract the necessary 20336 # objects, libraries and library flags. 20337 20338 # Sentinel used to keep track of whether or not we are before 20339 # the conftest object file. 20340 pre_test_object_deps_done=no 20341 20342 for p in `eval "$output_verbose_link_cmd"`; do 20343 case $prev$p in 20344 20345 -L* | -R* | -l*) 20346 # Some compilers place space between "-{L,R}" and the path. 20347 # Remove the space. 20348 if test x-L = "$p" || 20349 test x-R = "$p"; then 20350 prev=$p 20351 continue 20352 fi 20353 20354 # Expand the sysroot to ease extracting the directories later. 20355 if test -z "$prev"; then 20356 case $p in 20357 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 20358 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 20359 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 20360 esac 20361 fi 20362 case $p in 20363 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 20364 esac 20365 if test no = "$pre_test_object_deps_done"; then 20366 case $prev in 20367 -L | -R) 20368 # Internal compiler library paths should come after those 20369 # provided the user. The postdeps already come after the 20370 # user supplied libs so there is no need to process them. 20371 if test -z "$compiler_lib_search_path_CXX"; then 20372 compiler_lib_search_path_CXX=$prev$p 20373 else 20374 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 20375 fi 20376 ;; 20377 # The "-l" case would never come before the object being 20378 # linked, so don't bother handling this case. 20379 esac 20380 else 20381 if test -z "$postdeps_CXX"; then 20382 postdeps_CXX=$prev$p 20383 else 20384 postdeps_CXX="${postdeps_CXX} $prev$p" 20385 fi 20386 fi 20387 prev= 20388 ;; 20389 20390 *.lto.$objext) ;; # Ignore GCC LTO objects 20391 *.$objext) 20392 # This assumes that the test object file only shows up 20393 # once in the compiler output. 20394 if test "$p" = "conftest.$objext"; then 20395 pre_test_object_deps_done=yes 20396 continue 20397 fi 20398 20399 if test no = "$pre_test_object_deps_done"; then 20400 if test -z "$predep_objects_CXX"; then 20401 predep_objects_CXX=$p 20402 else 20403 predep_objects_CXX="$predep_objects_CXX $p" 20404 fi 20405 else 20406 if test -z "$postdep_objects_CXX"; then 20407 postdep_objects_CXX=$p 20408 else 20409 postdep_objects_CXX="$postdep_objects_CXX $p" 20410 fi 20411 fi 20412 ;; 20413 20414 *) ;; # Ignore the rest. 20415 20416 esac 20417 done 20418 20419 # Clean up. 20420 rm -f a.out a.exe 20421else 20422 echo "libtool.m4: error: problem compiling CXX test program" 20423fi 20424 20425$RM -f confest.$objext 20426CFLAGS=$_lt_libdeps_save_CFLAGS 20427 20428# PORTME: override above test on systems where it is broken 20429case $host_os in 20430interix[3-9]*) 20431 # Interix 3.5 installs completely hosed .la files for C++, so rather than 20432 # hack all around it, let's just trust "g++" to DTRT. 20433 predep_objects_CXX= 20434 postdep_objects_CXX= 20435 postdeps_CXX= 20436 ;; 20437esac 20438 20439 20440case " $postdeps_CXX " in 20441*" -lc "*) archive_cmds_need_lc_CXX=no ;; 20442esac 20443 compiler_lib_search_dirs_CXX= 20444if test -n "${compiler_lib_search_path_CXX}"; then 20445 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 20446fi 20447 20448 20449 20450 20451 20452 20453 20454 20455 20456 20457 20458 20459 20460 20461 20462 20463 20464 20465 20466 20467 20468 20469 20470 20471 20472 20473 20474 20475 20476 20477 20478 lt_prog_compiler_wl_CXX= 20479lt_prog_compiler_pic_CXX= 20480lt_prog_compiler_static_CXX= 20481 20482 20483 # C++ specific cases for pic, static, wl, etc. 20484 if test yes = "$GXX"; then 20485 lt_prog_compiler_wl_CXX='-Wl,' 20486 lt_prog_compiler_static_CXX='-static' 20487 20488 case $host_os in 20489 aix*) 20490 # All AIX code is PIC. 20491 if test ia64 = "$host_cpu"; then 20492 # AIX 5 now supports IA64 processor 20493 lt_prog_compiler_static_CXX='-Bstatic' 20494 fi 20495 lt_prog_compiler_pic_CXX='-fPIC' 20496 ;; 20497 20498 amigaos*) 20499 case $host_cpu in 20500 powerpc) 20501 # see comment about AmigaOS4 .so support 20502 lt_prog_compiler_pic_CXX='-fPIC' 20503 ;; 20504 m68k) 20505 # FIXME: we need at least 68020 code to build shared libraries, but 20506 # adding the '-m68020' flag to GCC prevents building anything better, 20507 # like '-m68040'. 20508 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 20509 ;; 20510 esac 20511 ;; 20512 20513 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 20514 # PIC is the default for these OSes. 20515 ;; 20516 mingw* | cygwin* | os2* | pw32* | cegcc*) 20517 # This hack is so that the source file can tell whether it is being 20518 # built for inclusion in a dll (and should export symbols for example). 20519 # Although the cygwin gcc ignores -fPIC, still need this for old-style 20520 # (--disable-auto-import) libraries 20521 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 20522 case $host_os in 20523 os2*) 20524 lt_prog_compiler_static_CXX='$wl-static' 20525 ;; 20526 esac 20527 ;; 20528 darwin* | rhapsody*) 20529 # PIC is the default on this platform 20530 # Common symbols not allowed in MH_DYLIB files 20531 lt_prog_compiler_pic_CXX='-fno-common' 20532 ;; 20533 *djgpp*) 20534 # DJGPP does not support shared libraries at all 20535 lt_prog_compiler_pic_CXX= 20536 ;; 20537 haiku*) 20538 # PIC is the default for Haiku. 20539 # The "-static" flag exists, but is broken. 20540 lt_prog_compiler_static_CXX= 20541 ;; 20542 interix[3-9]*) 20543 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 20544 # Instead, we relocate shared libraries at runtime. 20545 ;; 20546 sysv4*MP*) 20547 if test -d /usr/nec; then 20548 lt_prog_compiler_pic_CXX=-Kconform_pic 20549 fi 20550 ;; 20551 hpux*) 20552 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 20553 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 20554 # sets the default TLS model and affects inlining. 20555 case $host_cpu in 20556 hppa*64*) 20557 ;; 20558 *) 20559 lt_prog_compiler_pic_CXX='-fPIC' 20560 ;; 20561 esac 20562 ;; 20563 *qnx* | *nto*) 20564 # QNX uses GNU C++, but need to define -shared option too, otherwise 20565 # it will coredump. 20566 lt_prog_compiler_pic_CXX='-fPIC -shared' 20567 ;; 20568 *) 20569 lt_prog_compiler_pic_CXX='-fPIC' 20570 ;; 20571 esac 20572 else 20573 case $host_os in 20574 aix[4-9]*) 20575 # All AIX code is PIC. 20576 if test ia64 = "$host_cpu"; then 20577 # AIX 5 now supports IA64 processor 20578 lt_prog_compiler_static_CXX='-Bstatic' 20579 else 20580 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 20581 fi 20582 ;; 20583 chorus*) 20584 case $cc_basename in 20585 cxch68*) 20586 # Green Hills C++ Compiler 20587 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 20588 ;; 20589 esac 20590 ;; 20591 mingw* | cygwin* | os2* | pw32* | cegcc*) 20592 # This hack is so that the source file can tell whether it is being 20593 # built for inclusion in a dll (and should export symbols for example). 20594 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 20595 ;; 20596 dgux*) 20597 case $cc_basename in 20598 ec++*) 20599 lt_prog_compiler_pic_CXX='-KPIC' 20600 ;; 20601 ghcx*) 20602 # Green Hills C++ Compiler 20603 lt_prog_compiler_pic_CXX='-pic' 20604 ;; 20605 *) 20606 ;; 20607 esac 20608 ;; 20609 freebsd* | dragonfly*) 20610 # FreeBSD uses GNU C++ 20611 ;; 20612 hpux9* | hpux10* | hpux11*) 20613 case $cc_basename in 20614 CC*) 20615 lt_prog_compiler_wl_CXX='-Wl,' 20616 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 20617 if test ia64 != "$host_cpu"; then 20618 lt_prog_compiler_pic_CXX='+Z' 20619 fi 20620 ;; 20621 aCC*) 20622 lt_prog_compiler_wl_CXX='-Wl,' 20623 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 20624 case $host_cpu in 20625 hppa*64*|ia64*) 20626 # +Z the default 20627 ;; 20628 *) 20629 lt_prog_compiler_pic_CXX='+Z' 20630 ;; 20631 esac 20632 ;; 20633 *) 20634 ;; 20635 esac 20636 ;; 20637 interix*) 20638 # This is c89, which is MS Visual C++ (no shared libs) 20639 # Anyone wants to do a port? 20640 ;; 20641 irix5* | irix6* | nonstopux*) 20642 case $cc_basename in 20643 CC*) 20644 lt_prog_compiler_wl_CXX='-Wl,' 20645 lt_prog_compiler_static_CXX='-non_shared' 20646 # CC pic flag -KPIC is the default. 20647 ;; 20648 *) 20649 ;; 20650 esac 20651 ;; 20652 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 20653 case $cc_basename in 20654 KCC*) 20655 # KAI C++ Compiler 20656 lt_prog_compiler_wl_CXX='--backend -Wl,' 20657 lt_prog_compiler_pic_CXX='-fPIC' 20658 ;; 20659 ecpc* ) 20660 # old Intel C++ for x86_64, which still supported -KPIC. 20661 lt_prog_compiler_wl_CXX='-Wl,' 20662 lt_prog_compiler_pic_CXX='-KPIC' 20663 lt_prog_compiler_static_CXX='-static' 20664 ;; 20665 icpc* ) 20666 # Intel C++, used to be incompatible with GCC. 20667 # ICC 10 doesn't accept -KPIC any more. 20668 lt_prog_compiler_wl_CXX='-Wl,' 20669 lt_prog_compiler_pic_CXX='-fPIC' 20670 lt_prog_compiler_static_CXX='-static' 20671 ;; 20672 pgCC* | pgcpp*) 20673 # Portland Group C++ compiler 20674 lt_prog_compiler_wl_CXX='-Wl,' 20675 lt_prog_compiler_pic_CXX='-fpic' 20676 lt_prog_compiler_static_CXX='-Bstatic' 20677 ;; 20678 cxx*) 20679 # Compaq C++ 20680 # Make sure the PIC flag is empty. It appears that all Alpha 20681 # Linux and Compaq Tru64 Unix objects are PIC. 20682 lt_prog_compiler_pic_CXX= 20683 lt_prog_compiler_static_CXX='-non_shared' 20684 ;; 20685 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 20686 # IBM XL 8.0, 9.0 on PPC and BlueGene 20687 lt_prog_compiler_wl_CXX='-Wl,' 20688 lt_prog_compiler_pic_CXX='-qpic' 20689 lt_prog_compiler_static_CXX='-qstaticlink' 20690 ;; 20691 *) 20692 case `$CC -V 2>&1 | sed 5q` in 20693 *Sun\ C*) 20694 # Sun C++ 5.9 20695 lt_prog_compiler_pic_CXX='-KPIC' 20696 lt_prog_compiler_static_CXX='-Bstatic' 20697 lt_prog_compiler_wl_CXX='-Qoption ld ' 20698 ;; 20699 esac 20700 ;; 20701 esac 20702 ;; 20703 lynxos*) 20704 ;; 20705 m88k*) 20706 ;; 20707 mvs*) 20708 case $cc_basename in 20709 cxx*) 20710 lt_prog_compiler_pic_CXX='-W c,exportall' 20711 ;; 20712 *) 20713 ;; 20714 esac 20715 ;; 20716 netbsd*) 20717 ;; 20718 *qnx* | *nto*) 20719 # QNX uses GNU C++, but need to define -shared option too, otherwise 20720 # it will coredump. 20721 lt_prog_compiler_pic_CXX='-fPIC -shared' 20722 ;; 20723 osf3* | osf4* | osf5*) 20724 case $cc_basename in 20725 KCC*) 20726 lt_prog_compiler_wl_CXX='--backend -Wl,' 20727 ;; 20728 RCC*) 20729 # Rational C++ 2.4.1 20730 lt_prog_compiler_pic_CXX='-pic' 20731 ;; 20732 cxx*) 20733 # Digital/Compaq C++ 20734 lt_prog_compiler_wl_CXX='-Wl,' 20735 # Make sure the PIC flag is empty. It appears that all Alpha 20736 # Linux and Compaq Tru64 Unix objects are PIC. 20737 lt_prog_compiler_pic_CXX= 20738 lt_prog_compiler_static_CXX='-non_shared' 20739 ;; 20740 *) 20741 ;; 20742 esac 20743 ;; 20744 psos*) 20745 ;; 20746 solaris*) 20747 case $cc_basename in 20748 CC* | sunCC*) 20749 # Sun C++ 4.2, 5.x and Centerline C++ 20750 lt_prog_compiler_pic_CXX='-KPIC' 20751 lt_prog_compiler_static_CXX='-Bstatic' 20752 lt_prog_compiler_wl_CXX='-Qoption ld ' 20753 ;; 20754 gcx*) 20755 # Green Hills C++ Compiler 20756 lt_prog_compiler_pic_CXX='-PIC' 20757 ;; 20758 *) 20759 ;; 20760 esac 20761 ;; 20762 sunos4*) 20763 case $cc_basename in 20764 CC*) 20765 # Sun C++ 4.x 20766 lt_prog_compiler_pic_CXX='-pic' 20767 lt_prog_compiler_static_CXX='-Bstatic' 20768 ;; 20769 lcc*) 20770 # Lucid 20771 lt_prog_compiler_pic_CXX='-pic' 20772 ;; 20773 *) 20774 ;; 20775 esac 20776 ;; 20777 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 20778 case $cc_basename in 20779 CC*) 20780 lt_prog_compiler_wl_CXX='-Wl,' 20781 lt_prog_compiler_pic_CXX='-KPIC' 20782 lt_prog_compiler_static_CXX='-Bstatic' 20783 ;; 20784 esac 20785 ;; 20786 tandem*) 20787 case $cc_basename in 20788 NCC*) 20789 # NonStop-UX NCC 3.20 20790 lt_prog_compiler_pic_CXX='-KPIC' 20791 ;; 20792 *) 20793 ;; 20794 esac 20795 ;; 20796 vxworks*) 20797 ;; 20798 *) 20799 lt_prog_compiler_can_build_shared_CXX=no 20800 ;; 20801 esac 20802 fi 20803 20804case $host_os in 20805 # For platforms that do not support PIC, -DPIC is meaningless: 20806 *djgpp*) 20807 lt_prog_compiler_pic_CXX= 20808 ;; 20809 *) 20810 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 20811 ;; 20812esac 20813 20814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 20815$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 20816if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 20817 $as_echo_n "(cached) " >&6 20818else 20819 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 20820fi 20821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 20822$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 20823lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 20824 20825# 20826# Check to make sure the PIC flag actually works. 20827# 20828if test -n "$lt_prog_compiler_pic_CXX"; then 20829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 20830$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 20831if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 20832 $as_echo_n "(cached) " >&6 20833else 20834 lt_cv_prog_compiler_pic_works_CXX=no 20835 ac_outfile=conftest.$ac_objext 20836 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 20837 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 20838 # Insert the option either (1) after the last *FLAGS variable, or 20839 # (2) before a word containing "conftest.", or (3) at the end. 20840 # Note that $ac_compile itself does not contain backslashes and begins 20841 # with a dollar sign (not a hyphen), so the echo should work correctly. 20842 # The option is referenced via a variable to avoid confusing sed. 20843 lt_compile=`echo "$ac_compile" | $SED \ 20844 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 20845 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 20846 -e 's:$: $lt_compiler_flag:'` 20847 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 20848 (eval "$lt_compile" 2>conftest.err) 20849 ac_status=$? 20850 cat conftest.err >&5 20851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20852 if (exit $ac_status) && test -s "$ac_outfile"; then 20853 # The compiler can only warn and ignore the option if not recognized 20854 # So say no if there are warnings other than the usual output. 20855 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 20856 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 20857 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 20858 lt_cv_prog_compiler_pic_works_CXX=yes 20859 fi 20860 fi 20861 $RM conftest* 20862 20863fi 20864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 20865$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 20866 20867if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 20868 case $lt_prog_compiler_pic_CXX in 20869 "" | " "*) ;; 20870 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 20871 esac 20872else 20873 lt_prog_compiler_pic_CXX= 20874 lt_prog_compiler_can_build_shared_CXX=no 20875fi 20876 20877fi 20878 20879 20880 20881 20882 20883# 20884# Check to make sure the static flag actually works. 20885# 20886wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 20887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 20888$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 20889if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 20890 $as_echo_n "(cached) " >&6 20891else 20892 lt_cv_prog_compiler_static_works_CXX=no 20893 save_LDFLAGS=$LDFLAGS 20894 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 20895 echo "$lt_simple_link_test_code" > conftest.$ac_ext 20896 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 20897 # The linker can only warn and ignore the option if not recognized 20898 # So say no if there are warnings 20899 if test -s conftest.err; then 20900 # Append any errors to the config.log. 20901 cat conftest.err 1>&5 20902 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 20903 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 20904 if diff conftest.exp conftest.er2 >/dev/null; then 20905 lt_cv_prog_compiler_static_works_CXX=yes 20906 fi 20907 else 20908 lt_cv_prog_compiler_static_works_CXX=yes 20909 fi 20910 fi 20911 $RM -r conftest* 20912 LDFLAGS=$save_LDFLAGS 20913 20914fi 20915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 20916$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 20917 20918if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 20919 : 20920else 20921 lt_prog_compiler_static_CXX= 20922fi 20923 20924 20925 20926 20927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 20928$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 20929if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 20930 $as_echo_n "(cached) " >&6 20931else 20932 lt_cv_prog_compiler_c_o_CXX=no 20933 $RM -r conftest 2>/dev/null 20934 mkdir conftest 20935 cd conftest 20936 mkdir out 20937 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 20938 20939 lt_compiler_flag="-o out/conftest2.$ac_objext" 20940 # Insert the option either (1) after the last *FLAGS variable, or 20941 # (2) before a word containing "conftest.", or (3) at the end. 20942 # Note that $ac_compile itself does not contain backslashes and begins 20943 # with a dollar sign (not a hyphen), so the echo should work correctly. 20944 lt_compile=`echo "$ac_compile" | $SED \ 20945 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 20946 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 20947 -e 's:$: $lt_compiler_flag:'` 20948 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 20949 (eval "$lt_compile" 2>out/conftest.err) 20950 ac_status=$? 20951 cat out/conftest.err >&5 20952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20953 if (exit $ac_status) && test -s out/conftest2.$ac_objext 20954 then 20955 # The compiler can only warn and ignore the option if not recognized 20956 # So say no if there are warnings 20957 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 20958 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 20959 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 20960 lt_cv_prog_compiler_c_o_CXX=yes 20961 fi 20962 fi 20963 chmod u+w . 2>&5 20964 $RM conftest* 20965 # SGI C++ compiler will create directory out/ii_files/ for 20966 # template instantiation 20967 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 20968 $RM out/* && rmdir out 20969 cd .. 20970 $RM -r conftest 20971 $RM conftest* 20972 20973fi 20974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 20975$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 20976 20977 20978 20979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 20980$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 20981if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 20982 $as_echo_n "(cached) " >&6 20983else 20984 lt_cv_prog_compiler_c_o_CXX=no 20985 $RM -r conftest 2>/dev/null 20986 mkdir conftest 20987 cd conftest 20988 mkdir out 20989 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 20990 20991 lt_compiler_flag="-o out/conftest2.$ac_objext" 20992 # Insert the option either (1) after the last *FLAGS variable, or 20993 # (2) before a word containing "conftest.", or (3) at the end. 20994 # Note that $ac_compile itself does not contain backslashes and begins 20995 # with a dollar sign (not a hyphen), so the echo should work correctly. 20996 lt_compile=`echo "$ac_compile" | $SED \ 20997 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 20998 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 20999 -e 's:$: $lt_compiler_flag:'` 21000 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 21001 (eval "$lt_compile" 2>out/conftest.err) 21002 ac_status=$? 21003 cat out/conftest.err >&5 21004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21005 if (exit $ac_status) && test -s out/conftest2.$ac_objext 21006 then 21007 # The compiler can only warn and ignore the option if not recognized 21008 # So say no if there are warnings 21009 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 21010 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 21011 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 21012 lt_cv_prog_compiler_c_o_CXX=yes 21013 fi 21014 fi 21015 chmod u+w . 2>&5 21016 $RM conftest* 21017 # SGI C++ compiler will create directory out/ii_files/ for 21018 # template instantiation 21019 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 21020 $RM out/* && rmdir out 21021 cd .. 21022 $RM -r conftest 21023 $RM conftest* 21024 21025fi 21026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 21027$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 21028 21029 21030 21031 21032hard_links=nottested 21033if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 21034 # do not overwrite the value of need_locks provided by the user 21035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 21036$as_echo_n "checking if we can lock with hard links... " >&6; } 21037 hard_links=yes 21038 $RM conftest* 21039 ln conftest.a conftest.b 2>/dev/null && hard_links=no 21040 touch conftest.a 21041 ln conftest.a conftest.b 2>&5 || hard_links=no 21042 ln conftest.a conftest.b 2>/dev/null && hard_links=no 21043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 21044$as_echo "$hard_links" >&6; } 21045 if test no = "$hard_links"; then 21046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 21047$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 21048 need_locks=warn 21049 fi 21050else 21051 need_locks=no 21052fi 21053 21054 21055 21056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 21057$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 21058 21059 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 21060 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 21061 case $host_os in 21062 aix[4-9]*) 21063 # If we're using GNU nm, then we don't want the "-C" option. 21064 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 21065 # Without the "-l" option, or with the "-B" option, AIX nm treats 21066 # weak defined symbols like other global defined symbols, whereas 21067 # GNU nm marks them as "W". 21068 # While the 'weak' keyword is ignored in the Export File, we need 21069 # it in the Import File for the 'aix-soname' feature, so we have 21070 # to replace the "-B" option with "-P" for AIX nm. 21071 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 21072 export_symbols_cmds_CXX='$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' 21073 else 21074 export_symbols_cmds_CXX='`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' 21075 fi 21076 ;; 21077 pw32*) 21078 export_symbols_cmds_CXX=$ltdll_cmds 21079 ;; 21080 cygwin* | mingw* | cegcc*) 21081 case $cc_basename in 21082 cl*) 21083 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 21084 ;; 21085 *) 21086 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 21087 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 21088 ;; 21089 esac 21090 ;; 21091 *) 21092 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 21093 ;; 21094 esac 21095 21096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 21097$as_echo "$ld_shlibs_CXX" >&6; } 21098test no = "$ld_shlibs_CXX" && can_build_shared=no 21099 21100with_gnu_ld_CXX=$with_gnu_ld 21101 21102 21103 21104 21105 21106 21107# 21108# Do we need to explicitly link libc? 21109# 21110case "x$archive_cmds_need_lc_CXX" in 21111x|xyes) 21112 # Assume -lc should be added 21113 archive_cmds_need_lc_CXX=yes 21114 21115 if test yes,yes = "$GCC,$enable_shared"; then 21116 case $archive_cmds_CXX in 21117 *'~'*) 21118 # FIXME: we may have to deal with multi-command sequences. 21119 ;; 21120 '$CC '*) 21121 # Test whether the compiler implicitly links with -lc since on some 21122 # systems, -lgcc has to come before -lc. If gcc already passes -lc 21123 # to ld, don't add -lc before -lgcc. 21124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 21125$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 21126if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 21127 $as_echo_n "(cached) " >&6 21128else 21129 $RM conftest* 21130 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 21131 21132 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 21133 (eval $ac_compile) 2>&5 21134 ac_status=$? 21135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21136 test $ac_status = 0; } 2>conftest.err; then 21137 soname=conftest 21138 lib=conftest 21139 libobjs=conftest.$ac_objext 21140 deplibs= 21141 wl=$lt_prog_compiler_wl_CXX 21142 pic_flag=$lt_prog_compiler_pic_CXX 21143 compiler_flags=-v 21144 linker_flags=-v 21145 verstring= 21146 output_objdir=. 21147 libname=conftest 21148 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 21149 allow_undefined_flag_CXX= 21150 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 21151 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 21152 ac_status=$? 21153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21154 test $ac_status = 0; } 21155 then 21156 lt_cv_archive_cmds_need_lc_CXX=no 21157 else 21158 lt_cv_archive_cmds_need_lc_CXX=yes 21159 fi 21160 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 21161 else 21162 cat conftest.err 1>&5 21163 fi 21164 $RM conftest* 21165 21166fi 21167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 21168$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 21169 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 21170 ;; 21171 esac 21172 fi 21173 ;; 21174esac 21175 21176 21177 21178 21179 21180 21181 21182 21183 21184 21185 21186 21187 21188 21189 21190 21191 21192 21193 21194 21195 21196 21197 21198 21199 21200 21201 21202 21203 21204 21205 21206 21207 21208 21209 21210 21211 21212 21213 21214 21215 21216 21217 21218 21219 21220 21221 21222 21223 21224 21225 21226 21227 21228 21229 21230 21231 21232 21233 21234 21235 21236 21237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 21238$as_echo_n "checking dynamic linker characteristics... " >&6; } 21239 21240library_names_spec= 21241libname_spec='lib$name' 21242soname_spec= 21243shrext_cmds=.so 21244postinstall_cmds= 21245postuninstall_cmds= 21246finish_cmds= 21247finish_eval= 21248shlibpath_var= 21249shlibpath_overrides_runpath=unknown 21250version_type=none 21251dynamic_linker="$host_os ld.so" 21252sys_lib_dlsearch_path_spec="/lib /usr/lib" 21253need_lib_prefix=unknown 21254hardcode_into_libs=no 21255 21256# when you set need_version to no, make sure it does not cause -set_version 21257# flags to be left without arguments 21258need_version=unknown 21259 21260 21261 21262case $host_os in 21263aix3*) 21264 version_type=linux # correct to gnu/linux during the next big refactor 21265 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 21266 shlibpath_var=LIBPATH 21267 21268 # AIX 3 has no versioning support, so we append a major version to the name. 21269 soname_spec='$libname$release$shared_ext$major' 21270 ;; 21271 21272aix[4-9]*) 21273 version_type=linux # correct to gnu/linux during the next big refactor 21274 need_lib_prefix=no 21275 need_version=no 21276 hardcode_into_libs=yes 21277 if test ia64 = "$host_cpu"; then 21278 # AIX 5 supports IA64 21279 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 21280 shlibpath_var=LD_LIBRARY_PATH 21281 else 21282 # With GCC up to 2.95.x, collect2 would create an import file 21283 # for dependence libraries. The import file would start with 21284 # the line '#! .'. This would cause the generated library to 21285 # depend on '.', always an invalid library. This was fixed in 21286 # development snapshots of GCC prior to 3.0. 21287 case $host_os in 21288 aix4 | aix4.[01] | aix4.[01].*) 21289 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 21290 echo ' yes ' 21291 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 21292 : 21293 else 21294 can_build_shared=no 21295 fi 21296 ;; 21297 esac 21298 # Using Import Files as archive members, it is possible to support 21299 # filename-based versioning of shared library archives on AIX. While 21300 # this would work for both with and without runtime linking, it will 21301 # prevent static linking of such archives. So we do filename-based 21302 # shared library versioning with .so extension only, which is used 21303 # when both runtime linking and shared linking is enabled. 21304 # Unfortunately, runtime linking may impact performance, so we do 21305 # not want this to be the default eventually. Also, we use the 21306 # versioned .so libs for executables only if there is the -brtl 21307 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 21308 # To allow for filename-based versioning support, we need to create 21309 # libNAME.so.V as an archive file, containing: 21310 # *) an Import File, referring to the versioned filename of the 21311 # archive as well as the shared archive member, telling the 21312 # bitwidth (32 or 64) of that shared object, and providing the 21313 # list of exported symbols of that shared object, eventually 21314 # decorated with the 'weak' keyword 21315 # *) the shared object with the F_LOADONLY flag set, to really avoid 21316 # it being seen by the linker. 21317 # At run time we better use the real file rather than another symlink, 21318 # but for link time we create the symlink libNAME.so -> libNAME.so.V 21319 21320 case $with_aix_soname,$aix_use_runtimelinking in 21321 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 21322 # soname into executable. Probably we can add versioning support to 21323 # collect2, so additional links can be useful in future. 21324 aix,yes) # traditional libtool 21325 dynamic_linker='AIX unversionable lib.so' 21326 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 21327 # instead of lib<name>.a to let people know that these are not 21328 # typical AIX shared libraries. 21329 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21330 ;; 21331 aix,no) # traditional AIX only 21332 dynamic_linker='AIX lib.a(lib.so.V)' 21333 # We preserve .a as extension for shared libraries through AIX4.2 21334 # and later when we are not doing run time linking. 21335 library_names_spec='$libname$release.a $libname.a' 21336 soname_spec='$libname$release$shared_ext$major' 21337 ;; 21338 svr4,*) # full svr4 only 21339 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 21340 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 21341 # We do not specify a path in Import Files, so LIBPATH fires. 21342 shlibpath_overrides_runpath=yes 21343 ;; 21344 *,yes) # both, prefer svr4 21345 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 21346 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 21347 # unpreferred sharedlib libNAME.a needs extra handling 21348 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"' 21349 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"' 21350 # We do not specify a path in Import Files, so LIBPATH fires. 21351 shlibpath_overrides_runpath=yes 21352 ;; 21353 *,no) # both, prefer aix 21354 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 21355 library_names_spec='$libname$release.a $libname.a' 21356 soname_spec='$libname$release$shared_ext$major' 21357 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 21358 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)' 21359 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"' 21360 ;; 21361 esac 21362 shlibpath_var=LIBPATH 21363 fi 21364 ;; 21365 21366amigaos*) 21367 case $host_cpu in 21368 powerpc) 21369 # Since July 2007 AmigaOS4 officially supports .so libraries. 21370 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 21371 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21372 ;; 21373 m68k) 21374 library_names_spec='$libname.ixlibrary $libname.a' 21375 # Create ${libname}_ixlibrary.a entries in /sys/libs. 21376 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' 21377 ;; 21378 esac 21379 ;; 21380 21381beos*) 21382 library_names_spec='$libname$shared_ext' 21383 dynamic_linker="$host_os ld.so" 21384 shlibpath_var=LIBRARY_PATH 21385 ;; 21386 21387bsdi[45]*) 21388 version_type=linux # correct to gnu/linux during the next big refactor 21389 need_version=no 21390 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21391 soname_spec='$libname$release$shared_ext$major' 21392 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 21393 shlibpath_var=LD_LIBRARY_PATH 21394 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 21395 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 21396 # the default ld.so.conf also contains /usr/contrib/lib and 21397 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 21398 # libtool to hard-code these into programs 21399 ;; 21400 21401cygwin* | mingw* | pw32* | cegcc*) 21402 version_type=windows 21403 shrext_cmds=.dll 21404 need_version=no 21405 need_lib_prefix=no 21406 21407 case $GCC,$cc_basename in 21408 yes,*) 21409 # gcc 21410 library_names_spec='$libname.dll.a' 21411 # DLL is installed to $(libdir)/../bin by postinstall_cmds 21412 postinstall_cmds='base_file=`basename \$file`~ 21413 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 21414 dldir=$destdir/`dirname \$dlpath`~ 21415 test -d \$dldir || mkdir -p \$dldir~ 21416 $install_prog $dir/$dlname \$dldir/$dlname~ 21417 chmod a+x \$dldir/$dlname~ 21418 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 21419 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 21420 fi' 21421 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 21422 dlpath=$dir/\$dldll~ 21423 $RM \$dlpath' 21424 shlibpath_overrides_runpath=yes 21425 21426 case $host_os in 21427 cygwin*) 21428 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 21429 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 21430 21431 ;; 21432 mingw* | cegcc*) 21433 # MinGW DLLs use traditional 'lib' prefix 21434 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 21435 ;; 21436 pw32*) 21437 # pw32 DLLs use 'pw' prefix rather than 'lib' 21438 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 21439 ;; 21440 esac 21441 dynamic_linker='Win32 ld.exe' 21442 ;; 21443 21444 *,cl*) 21445 # Native MSVC 21446 libname_spec='$name' 21447 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 21448 library_names_spec='$libname.dll.lib' 21449 21450 case $build_os in 21451 mingw*) 21452 sys_lib_search_path_spec= 21453 lt_save_ifs=$IFS 21454 IFS=';' 21455 for lt_path in $LIB 21456 do 21457 IFS=$lt_save_ifs 21458 # Let DOS variable expansion print the short 8.3 style file name. 21459 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 21460 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 21461 done 21462 IFS=$lt_save_ifs 21463 # Convert to MSYS style. 21464 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 21465 ;; 21466 cygwin*) 21467 # Convert to unix form, then to dos form, then back to unix form 21468 # but this time dos style (no spaces!) so that the unix form looks 21469 # like /cygdrive/c/PROGRA~1:/cygdr... 21470 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 21471 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 21472 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 21473 ;; 21474 *) 21475 sys_lib_search_path_spec=$LIB 21476 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 21477 # It is most probably a Windows format PATH. 21478 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 21479 else 21480 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 21481 fi 21482 # FIXME: find the short name or the path components, as spaces are 21483 # common. (e.g. "Program Files" -> "PROGRA~1") 21484 ;; 21485 esac 21486 21487 # DLL is installed to $(libdir)/../bin by postinstall_cmds 21488 postinstall_cmds='base_file=`basename \$file`~ 21489 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 21490 dldir=$destdir/`dirname \$dlpath`~ 21491 test -d \$dldir || mkdir -p \$dldir~ 21492 $install_prog $dir/$dlname \$dldir/$dlname' 21493 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 21494 dlpath=$dir/\$dldll~ 21495 $RM \$dlpath' 21496 shlibpath_overrides_runpath=yes 21497 dynamic_linker='Win32 link.exe' 21498 ;; 21499 21500 *) 21501 # Assume MSVC wrapper 21502 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 21503 dynamic_linker='Win32 ld.exe' 21504 ;; 21505 esac 21506 # FIXME: first we should search . and the directory the executable is in 21507 shlibpath_var=PATH 21508 ;; 21509 21510darwin* | rhapsody*) 21511 dynamic_linker="$host_os dyld" 21512 version_type=darwin 21513 need_lib_prefix=no 21514 need_version=no 21515 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 21516 soname_spec='$libname$release$major$shared_ext' 21517 shlibpath_overrides_runpath=yes 21518 shlibpath_var=DYLD_LIBRARY_PATH 21519 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 21520 21521 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 21522 ;; 21523 21524dgux*) 21525 version_type=linux # correct to gnu/linux during the next big refactor 21526 need_lib_prefix=no 21527 need_version=no 21528 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21529 soname_spec='$libname$release$shared_ext$major' 21530 shlibpath_var=LD_LIBRARY_PATH 21531 ;; 21532 21533freebsd* | dragonfly*) 21534 # DragonFly does not have aout. When/if they implement a new 21535 # versioning mechanism, adjust this. 21536 if test -x /usr/bin/objformat; then 21537 objformat=`/usr/bin/objformat` 21538 else 21539 case $host_os in 21540 freebsd[23].*) objformat=aout ;; 21541 *) objformat=elf ;; 21542 esac 21543 fi 21544 version_type=freebsd-$objformat 21545 case $version_type in 21546 freebsd-elf*) 21547 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21548 soname_spec='$libname$release$shared_ext$major' 21549 need_version=no 21550 need_lib_prefix=no 21551 ;; 21552 freebsd-*) 21553 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 21554 need_version=yes 21555 ;; 21556 esac 21557 shlibpath_var=LD_LIBRARY_PATH 21558 case $host_os in 21559 freebsd2.*) 21560 shlibpath_overrides_runpath=yes 21561 ;; 21562 freebsd3.[01]* | freebsdelf3.[01]*) 21563 shlibpath_overrides_runpath=yes 21564 hardcode_into_libs=yes 21565 ;; 21566 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 21567 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 21568 shlibpath_overrides_runpath=no 21569 hardcode_into_libs=yes 21570 ;; 21571 *) # from 4.6 on, and DragonFly 21572 shlibpath_overrides_runpath=yes 21573 hardcode_into_libs=yes 21574 ;; 21575 esac 21576 ;; 21577 21578haiku*) 21579 version_type=linux # correct to gnu/linux during the next big refactor 21580 need_lib_prefix=no 21581 need_version=no 21582 dynamic_linker="$host_os runtime_loader" 21583 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21584 soname_spec='$libname$release$shared_ext$major' 21585 shlibpath_var=LIBRARY_PATH 21586 shlibpath_overrides_runpath=no 21587 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 21588 hardcode_into_libs=yes 21589 ;; 21590 21591hpux9* | hpux10* | hpux11*) 21592 # Give a soname corresponding to the major version so that dld.sl refuses to 21593 # link against other versions. 21594 version_type=sunos 21595 need_lib_prefix=no 21596 need_version=no 21597 case $host_cpu in 21598 ia64*) 21599 shrext_cmds='.so' 21600 hardcode_into_libs=yes 21601 dynamic_linker="$host_os dld.so" 21602 shlibpath_var=LD_LIBRARY_PATH 21603 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 21604 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21605 soname_spec='$libname$release$shared_ext$major' 21606 if test 32 = "$HPUX_IA64_MODE"; then 21607 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 21608 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 21609 else 21610 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 21611 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 21612 fi 21613 ;; 21614 hppa*64*) 21615 shrext_cmds='.sl' 21616 hardcode_into_libs=yes 21617 dynamic_linker="$host_os dld.sl" 21618 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 21619 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 21620 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21621 soname_spec='$libname$release$shared_ext$major' 21622 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 21623 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 21624 ;; 21625 *) 21626 shrext_cmds='.sl' 21627 dynamic_linker="$host_os dld.sl" 21628 shlibpath_var=SHLIB_PATH 21629 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 21630 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21631 soname_spec='$libname$release$shared_ext$major' 21632 ;; 21633 esac 21634 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 21635 postinstall_cmds='chmod 555 $lib' 21636 # or fails outright, so override atomically: 21637 install_override_mode=555 21638 ;; 21639 21640interix[3-9]*) 21641 version_type=linux # correct to gnu/linux during the next big refactor 21642 need_lib_prefix=no 21643 need_version=no 21644 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21645 soname_spec='$libname$release$shared_ext$major' 21646 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 21647 shlibpath_var=LD_LIBRARY_PATH 21648 shlibpath_overrides_runpath=no 21649 hardcode_into_libs=yes 21650 ;; 21651 21652irix5* | irix6* | nonstopux*) 21653 case $host_os in 21654 nonstopux*) version_type=nonstopux ;; 21655 *) 21656 if test yes = "$lt_cv_prog_gnu_ld"; then 21657 version_type=linux # correct to gnu/linux during the next big refactor 21658 else 21659 version_type=irix 21660 fi ;; 21661 esac 21662 need_lib_prefix=no 21663 need_version=no 21664 soname_spec='$libname$release$shared_ext$major' 21665 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 21666 case $host_os in 21667 irix5* | nonstopux*) 21668 libsuff= shlibsuff= 21669 ;; 21670 *) 21671 case $LD in # libtool.m4 will add one of these switches to LD 21672 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 21673 libsuff= shlibsuff= libmagic=32-bit;; 21674 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 21675 libsuff=32 shlibsuff=N32 libmagic=N32;; 21676 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 21677 libsuff=64 shlibsuff=64 libmagic=64-bit;; 21678 *) libsuff= shlibsuff= libmagic=never-match;; 21679 esac 21680 ;; 21681 esac 21682 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 21683 shlibpath_overrides_runpath=no 21684 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 21685 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 21686 hardcode_into_libs=yes 21687 ;; 21688 21689# No shared lib support for Linux oldld, aout, or coff. 21690linux*oldld* | linux*aout* | linux*coff*) 21691 dynamic_linker=no 21692 ;; 21693 21694linux*android*) 21695 version_type=none # Android doesn't support versioned libraries. 21696 need_lib_prefix=no 21697 need_version=no 21698 library_names_spec='$libname$release$shared_ext' 21699 soname_spec='$libname$release$shared_ext' 21700 finish_cmds= 21701 shlibpath_var=LD_LIBRARY_PATH 21702 shlibpath_overrides_runpath=yes 21703 21704 # This implies no fast_install, which is unacceptable. 21705 # Some rework will be needed to allow for fast_install 21706 # before this can be enabled. 21707 hardcode_into_libs=yes 21708 21709 dynamic_linker='Android linker' 21710 # Don't embed -rpath directories since the linker doesn't support them. 21711 hardcode_libdir_flag_spec_CXX='-L$libdir' 21712 ;; 21713 21714# This must be glibc/ELF. 21715linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 21716 version_type=linux # correct to gnu/linux during the next big refactor 21717 need_lib_prefix=no 21718 need_version=no 21719 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21720 soname_spec='$libname$release$shared_ext$major' 21721 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 21722 shlibpath_var=LD_LIBRARY_PATH 21723 shlibpath_overrides_runpath=no 21724# EF : 21725 hardcode_into_libs=yes 21726 21727 # Some binutils ld are patched to set DT_RUNPATH 21728 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 21729 $as_echo_n "(cached) " >&6 21730else 21731 lt_cv_shlibpath_overrides_runpath=no 21732 save_LDFLAGS=$LDFLAGS 21733 save_libdir=$libdir 21734 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 21735 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 21736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21737/* end confdefs.h. */ 21738 21739#ifdef F77_DUMMY_MAIN 21740 21741# ifdef __cplusplus 21742 extern "C" 21743# endif 21744 int F77_DUMMY_MAIN() { return 1; } 21745 21746#endif 21747int 21748main () 21749{ 21750 21751 ; 21752 return 0; 21753} 21754_ACEOF 21755if ac_fn_cxx_try_link "$LINENO"; then : 21756 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 21757 lt_cv_shlibpath_overrides_runpath=yes 21758fi 21759fi 21760rm -f core conftest.err conftest.$ac_objext \ 21761 conftest$ac_exeext conftest.$ac_ext 21762 LDFLAGS=$save_LDFLAGS 21763 libdir=$save_libdir 21764 21765fi 21766 21767 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 21768 21769 # This implies no fast_install, which is unacceptable. 21770 # Some rework will be needed to allow for fast_install 21771 # before this can be enabled. 21772 hardcode_into_libs=yes 21773 21774 # Ideally, we could use ldconfig to report *all* directores which are 21775 # searched for libraries, however this is still not possible. Aside from not 21776 # being certain /sbin/ldconfig is available, command 21777 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 21778 # even though it is searched at run-time. Try to do the best guess by 21779 # appending ld.so.conf contents (and includes) to the search path. 21780 if test -f /etc/ld.so.conf; then 21781 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' ' '` 21782 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 21783 fi 21784 21785 # We used to test for /lib/ld.so.1 and disable shared libraries on 21786 # powerpc, because MkLinux only supported shared libraries with the 21787 # GNU dynamic linker. Since this was broken with cross compilers, 21788 # most powerpc-linux boxes support dynamic linking these days and 21789 # people can always --disable-shared, the test was removed, and we 21790 # assume the GNU/Linux dynamic linker is in use. 21791 dynamic_linker='GNU/Linux ld.so' 21792 ;; 21793 21794netbsd*) 21795 version_type=sunos 21796 need_lib_prefix=no 21797 need_version=no 21798 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 21799 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 21800 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 21801 dynamic_linker='NetBSD (a.out) ld.so' 21802 else 21803 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21804 soname_spec='$libname$release$shared_ext$major' 21805 dynamic_linker='NetBSD ld.elf_so' 21806 fi 21807 shlibpath_var=LD_LIBRARY_PATH 21808 shlibpath_overrides_runpath=yes 21809 hardcode_into_libs=yes 21810 ;; 21811 21812newsos6) 21813 version_type=linux # correct to gnu/linux during the next big refactor 21814 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21815 shlibpath_var=LD_LIBRARY_PATH 21816 shlibpath_overrides_runpath=yes 21817 ;; 21818 21819*nto* | *qnx*) 21820 version_type=qnx 21821 need_lib_prefix=no 21822 need_version=no 21823 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21824 soname_spec='$libname$release$shared_ext$major' 21825 shlibpath_var=LD_LIBRARY_PATH 21826 shlibpath_overrides_runpath=no 21827 hardcode_into_libs=yes 21828 dynamic_linker='ldqnx.so' 21829 ;; 21830 21831openbsd* | bitrig*) 21832 version_type=sunos 21833 sys_lib_dlsearch_path_spec=/usr/lib 21834 need_lib_prefix=no 21835 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 21836 need_version=no 21837 else 21838 need_version=yes 21839 fi 21840 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 21841 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 21842 shlibpath_var=LD_LIBRARY_PATH 21843 shlibpath_overrides_runpath=yes 21844 ;; 21845 21846os2*) 21847 libname_spec='$name' 21848 version_type=windows 21849 shrext_cmds=.dll 21850 need_version=no 21851 need_lib_prefix=no 21852 # OS/2 can only load a DLL with a base name of 8 characters or less. 21853 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 21854 v=$($ECHO $release$versuffix | tr -d .-); 21855 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 21856 $ECHO $n$v`$shared_ext' 21857 library_names_spec='${libname}_dll.$libext' 21858 dynamic_linker='OS/2 ld.exe' 21859 shlibpath_var=BEGINLIBPATH 21860 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 21861 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 21862 postinstall_cmds='base_file=`basename \$file`~ 21863 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 21864 dldir=$destdir/`dirname \$dlpath`~ 21865 test -d \$dldir || mkdir -p \$dldir~ 21866 $install_prog $dir/$dlname \$dldir/$dlname~ 21867 chmod a+x \$dldir/$dlname~ 21868 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 21869 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 21870 fi' 21871 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 21872 dlpath=$dir/\$dldll~ 21873 $RM \$dlpath' 21874 ;; 21875 21876osf3* | osf4* | osf5*) 21877 version_type=osf 21878 need_lib_prefix=no 21879 need_version=no 21880 soname_spec='$libname$release$shared_ext$major' 21881 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21882 shlibpath_var=LD_LIBRARY_PATH 21883 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 21884 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 21885 ;; 21886 21887rdos*) 21888 dynamic_linker=no 21889 ;; 21890 21891solaris*) 21892 version_type=linux # correct to gnu/linux during the next big refactor 21893 need_lib_prefix=no 21894 need_version=no 21895 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21896 soname_spec='$libname$release$shared_ext$major' 21897 shlibpath_var=LD_LIBRARY_PATH 21898 shlibpath_overrides_runpath=yes 21899 hardcode_into_libs=yes 21900 # ldd complains unless libraries are executable 21901 postinstall_cmds='chmod +x $lib' 21902 ;; 21903 21904sunos4*) 21905 version_type=sunos 21906 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 21907 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 21908 shlibpath_var=LD_LIBRARY_PATH 21909 shlibpath_overrides_runpath=yes 21910 if test yes = "$with_gnu_ld"; then 21911 need_lib_prefix=no 21912 fi 21913 need_version=yes 21914 ;; 21915 21916sysv4 | sysv4.3*) 21917 version_type=linux # correct to gnu/linux during the next big refactor 21918 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21919 soname_spec='$libname$release$shared_ext$major' 21920 shlibpath_var=LD_LIBRARY_PATH 21921 case $host_vendor in 21922 sni) 21923 shlibpath_overrides_runpath=no 21924 need_lib_prefix=no 21925 runpath_var=LD_RUN_PATH 21926 ;; 21927 siemens) 21928 need_lib_prefix=no 21929 ;; 21930 motorola) 21931 need_lib_prefix=no 21932 need_version=no 21933 shlibpath_overrides_runpath=no 21934 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 21935 ;; 21936 esac 21937 ;; 21938 21939sysv4*MP*) 21940 if test -d /usr/nec; then 21941 version_type=linux # correct to gnu/linux during the next big refactor 21942 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 21943 soname_spec='$libname$shared_ext.$major' 21944 shlibpath_var=LD_LIBRARY_PATH 21945 fi 21946 ;; 21947 21948sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 21949 version_type=sco 21950 need_lib_prefix=no 21951 need_version=no 21952 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 21953 soname_spec='$libname$release$shared_ext$major' 21954 shlibpath_var=LD_LIBRARY_PATH 21955 shlibpath_overrides_runpath=yes 21956 hardcode_into_libs=yes 21957 if test yes = "$with_gnu_ld"; then 21958 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 21959 else 21960 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 21961 case $host_os in 21962 sco3.2v5*) 21963 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 21964 ;; 21965 esac 21966 fi 21967 sys_lib_dlsearch_path_spec='/usr/lib' 21968 ;; 21969 21970tpf*) 21971 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 21972 version_type=linux # correct to gnu/linux during the next big refactor 21973 need_lib_prefix=no 21974 need_version=no 21975 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21976 shlibpath_var=LD_LIBRARY_PATH 21977 shlibpath_overrides_runpath=no 21978 hardcode_into_libs=yes 21979 ;; 21980 21981uts4*) 21982 version_type=linux # correct to gnu/linux during the next big refactor 21983 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21984 soname_spec='$libname$release$shared_ext$major' 21985 shlibpath_var=LD_LIBRARY_PATH 21986 ;; 21987 21988*) 21989 dynamic_linker=no 21990 ;; 21991esac 21992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 21993$as_echo "$dynamic_linker" >&6; } 21994test no = "$dynamic_linker" && can_build_shared=no 21995 21996variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 21997if test yes = "$GCC"; then 21998 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 21999fi 22000 22001if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 22002 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 22003fi 22004 22005if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 22006 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 22007fi 22008 22009# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 22010configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 22011 22012# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 22013func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 22014 22015# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 22016configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 22017 22018 22019 22020 22021 22022 22023 22024 22025 22026 22027 22028 22029 22030 22031 22032 22033 22034 22035 22036 22037 22038 22039 22040 22041 22042 22043 22044 22045 22046 22047 22048 22049 22050 22051 22052 22053 22054 22055 22056 22057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 22058$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 22059hardcode_action_CXX= 22060if test -n "$hardcode_libdir_flag_spec_CXX" || 22061 test -n "$runpath_var_CXX" || 22062 test yes = "$hardcode_automatic_CXX"; then 22063 22064 # We can hardcode non-existent directories. 22065 if test no != "$hardcode_direct_CXX" && 22066 # If the only mechanism to avoid hardcoding is shlibpath_var, we 22067 # have to relink, otherwise we might link with an installed library 22068 # when we should be linking with a yet-to-be-installed one 22069 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 22070 test no != "$hardcode_minus_L_CXX"; then 22071 # Linking always hardcodes the temporary library directory. 22072 hardcode_action_CXX=relink 22073 else 22074 # We can link without hardcoding, and we can hardcode nonexisting dirs. 22075 hardcode_action_CXX=immediate 22076 fi 22077else 22078 # We cannot hardcode anything, or else we can only hardcode existing 22079 # directories. 22080 hardcode_action_CXX=unsupported 22081fi 22082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 22083$as_echo "$hardcode_action_CXX" >&6; } 22084 22085if test relink = "$hardcode_action_CXX" || 22086 test yes = "$inherit_rpath_CXX"; then 22087 # Fast installation is not supported 22088 enable_fast_install=no 22089elif test yes = "$shlibpath_overrides_runpath" || 22090 test no = "$enable_shared"; then 22091 # Fast installation is not necessary 22092 enable_fast_install=needless 22093fi 22094 22095 22096 22097 22098 22099 22100 22101 fi # test -n "$compiler" 22102 22103 CC=$lt_save_CC 22104 CFLAGS=$lt_save_CFLAGS 22105 LDCXX=$LD 22106 LD=$lt_save_LD 22107 GCC=$lt_save_GCC 22108 with_gnu_ld=$lt_save_with_gnu_ld 22109 lt_cv_path_LDCXX=$lt_cv_path_LD 22110 lt_cv_path_LD=$lt_save_path_LD 22111 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 22112 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 22113fi # test yes != "$_lt_caught_CXX_error" 22114 22115ac_ext=c 22116ac_cpp='$CPP $CPPFLAGS' 22117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22119ac_compiler_gnu=$ac_cv_c_compiler_gnu 22120 22121 22122 22123 ac_ext=f 22124ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 22125ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22126ac_compiler_gnu=$ac_cv_f77_compiler_gnu 22127 22128if test -z "$F77" || test no = "$F77"; then 22129 _lt_disable_F77=yes 22130fi 22131 22132archive_cmds_need_lc_F77=no 22133allow_undefined_flag_F77= 22134always_export_symbols_F77=no 22135archive_expsym_cmds_F77= 22136export_dynamic_flag_spec_F77= 22137hardcode_direct_F77=no 22138hardcode_direct_absolute_F77=no 22139hardcode_libdir_flag_spec_F77= 22140hardcode_libdir_separator_F77= 22141hardcode_minus_L_F77=no 22142hardcode_automatic_F77=no 22143inherit_rpath_F77=no 22144module_cmds_F77= 22145module_expsym_cmds_F77= 22146link_all_deplibs_F77=unknown 22147old_archive_cmds_F77=$old_archive_cmds 22148reload_flag_F77=$reload_flag 22149reload_cmds_F77=$reload_cmds 22150no_undefined_flag_F77= 22151whole_archive_flag_spec_F77= 22152enable_shared_with_static_runtimes_F77=no 22153 22154# Source file extension for f77 test sources. 22155ac_ext=f 22156 22157# Object file extension for compiled f77 test sources. 22158objext=o 22159objext_F77=$objext 22160 22161# No sense in running all these tests if we already determined that 22162# the F77 compiler isn't working. Some variables (like enable_shared) 22163# are currently assumed to apply to all compilers on this platform, 22164# and will be corrupted by setting them based on a non-working compiler. 22165if test yes != "$_lt_disable_F77"; then 22166 # Code to be used in simple compile tests 22167 lt_simple_compile_test_code="\ 22168 subroutine t 22169 return 22170 end 22171" 22172 22173 # Code to be used in simple link tests 22174 lt_simple_link_test_code="\ 22175 program t 22176 end 22177" 22178 22179 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 22180 22181 22182 22183 22184 22185 22186# If no C compiler was specified, use CC. 22187LTCC=${LTCC-"$CC"} 22188 22189# If no C compiler flags were specified, use CFLAGS. 22190LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 22191 22192# Allow CC to be a program name with arguments. 22193compiler=$CC 22194 22195 22196 # save warnings/boilerplate of simple test code 22197 ac_outfile=conftest.$ac_objext 22198echo "$lt_simple_compile_test_code" >conftest.$ac_ext 22199eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 22200_lt_compiler_boilerplate=`cat conftest.err` 22201$RM conftest* 22202 22203 ac_outfile=conftest.$ac_objext 22204echo "$lt_simple_link_test_code" >conftest.$ac_ext 22205eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 22206_lt_linker_boilerplate=`cat conftest.err` 22207$RM -r conftest* 22208 22209 22210 # Allow CC to be a program name with arguments. 22211 lt_save_CC=$CC 22212 lt_save_GCC=$GCC 22213 lt_save_CFLAGS=$CFLAGS 22214 CC=${F77-"f77"} 22215 CFLAGS=$FFLAGS 22216 compiler=$CC 22217 compiler_F77=$CC 22218 func_cc_basename $compiler 22219cc_basename=$func_cc_basename_result 22220 22221 GCC=$G77 22222 if test -n "$compiler"; then 22223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 22224$as_echo_n "checking if libtool supports shared libraries... " >&6; } 22225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 22226$as_echo "$can_build_shared" >&6; } 22227 22228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 22229$as_echo_n "checking whether to build shared libraries... " >&6; } 22230 test no = "$can_build_shared" && enable_shared=no 22231 22232 # On AIX, shared libraries and static libraries use the same namespace, and 22233 # are all built from PIC. 22234 case $host_os in 22235 aix3*) 22236 test yes = "$enable_shared" && enable_static=no 22237 if test -n "$RANLIB"; then 22238 archive_cmds="$archive_cmds~\$RANLIB \$lib" 22239 postinstall_cmds='$RANLIB $lib' 22240 fi 22241 ;; 22242 aix[4-9]*) 22243 if test ia64 != "$host_cpu"; then 22244 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 22245 yes,aix,yes) ;; # shared object as lib.so file only 22246 yes,svr4,*) ;; # shared object as lib.so archive member only 22247 yes,*) enable_static=no ;; # shared object in lib.a archive as well 22248 esac 22249 fi 22250 ;; 22251 esac 22252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 22253$as_echo "$enable_shared" >&6; } 22254 22255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 22256$as_echo_n "checking whether to build static libraries... " >&6; } 22257 # Make sure either enable_shared or enable_static is yes. 22258 test yes = "$enable_shared" || enable_static=yes 22259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 22260$as_echo "$enable_static" >&6; } 22261 22262 GCC_F77=$G77 22263 LD_F77=$LD 22264 22265 ## CAVEAT EMPTOR: 22266 ## There is no encapsulation within the following macros, do not change 22267 ## the running order or otherwise move them around unless you know exactly 22268 ## what you are doing... 22269 lt_prog_compiler_wl_F77= 22270lt_prog_compiler_pic_F77= 22271lt_prog_compiler_static_F77= 22272 22273 22274 if test yes = "$GCC"; then 22275 lt_prog_compiler_wl_F77='-Wl,' 22276 lt_prog_compiler_static_F77='-static' 22277 22278 case $host_os in 22279 aix*) 22280 # All AIX code is PIC. 22281 if test ia64 = "$host_cpu"; then 22282 # AIX 5 now supports IA64 processor 22283 lt_prog_compiler_static_F77='-Bstatic' 22284 fi 22285 lt_prog_compiler_pic_F77='-fPIC' 22286 ;; 22287 22288 amigaos*) 22289 case $host_cpu in 22290 powerpc) 22291 # see comment about AmigaOS4 .so support 22292 lt_prog_compiler_pic_F77='-fPIC' 22293 ;; 22294 m68k) 22295 # FIXME: we need at least 68020 code to build shared libraries, but 22296 # adding the '-m68020' flag to GCC prevents building anything better, 22297 # like '-m68040'. 22298 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 22299 ;; 22300 esac 22301 ;; 22302 22303 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 22304 # PIC is the default for these OSes. 22305 ;; 22306 22307 mingw* | cygwin* | pw32* | os2* | cegcc*) 22308 # This hack is so that the source file can tell whether it is being 22309 # built for inclusion in a dll (and should export symbols for example). 22310 # Although the cygwin gcc ignores -fPIC, still need this for old-style 22311 # (--disable-auto-import) libraries 22312 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 22313 case $host_os in 22314 os2*) 22315 lt_prog_compiler_static_F77='$wl-static' 22316 ;; 22317 esac 22318 ;; 22319 22320 darwin* | rhapsody*) 22321 # PIC is the default on this platform 22322 # Common symbols not allowed in MH_DYLIB files 22323 lt_prog_compiler_pic_F77='-fno-common' 22324 ;; 22325 22326 haiku*) 22327 # PIC is the default for Haiku. 22328 # The "-static" flag exists, but is broken. 22329 lt_prog_compiler_static_F77= 22330 ;; 22331 22332 hpux*) 22333 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 22334 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 22335 # sets the default TLS model and affects inlining. 22336 case $host_cpu in 22337 hppa*64*) 22338 # +Z the default 22339 ;; 22340 *) 22341 lt_prog_compiler_pic_F77='-fPIC' 22342 ;; 22343 esac 22344 ;; 22345 22346 interix[3-9]*) 22347 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 22348 # Instead, we relocate shared libraries at runtime. 22349 ;; 22350 22351 msdosdjgpp*) 22352 # Just because we use GCC doesn't mean we suddenly get shared libraries 22353 # on systems that don't support them. 22354 lt_prog_compiler_can_build_shared_F77=no 22355 enable_shared=no 22356 ;; 22357 22358 *nto* | *qnx*) 22359 # QNX uses GNU C++, but need to define -shared option too, otherwise 22360 # it will coredump. 22361 lt_prog_compiler_pic_F77='-fPIC -shared' 22362 ;; 22363 22364 sysv4*MP*) 22365 if test -d /usr/nec; then 22366 lt_prog_compiler_pic_F77=-Kconform_pic 22367 fi 22368 ;; 22369 22370 *) 22371 lt_prog_compiler_pic_F77='-fPIC' 22372 ;; 22373 esac 22374 22375 case $cc_basename in 22376 nvcc*) # Cuda Compiler Driver 2.2 22377 lt_prog_compiler_wl_F77='-Xlinker ' 22378 if test -n "$lt_prog_compiler_pic_F77"; then 22379 lt_prog_compiler_pic_F77="-Xcompiler $lt_prog_compiler_pic_F77" 22380 fi 22381 ;; 22382 esac 22383 else 22384 # PORTME Check for flag to pass linker flags through the system compiler. 22385 case $host_os in 22386 aix*) 22387 lt_prog_compiler_wl_F77='-Wl,' 22388 if test ia64 = "$host_cpu"; then 22389 # AIX 5 now supports IA64 processor 22390 lt_prog_compiler_static_F77='-Bstatic' 22391 else 22392 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 22393 fi 22394 ;; 22395 22396 darwin* | rhapsody*) 22397 # PIC is the default on this platform 22398 # Common symbols not allowed in MH_DYLIB files 22399 lt_prog_compiler_pic_F77='-fno-common' 22400 case $cc_basename in 22401 nagfor*) 22402 # NAG Fortran compiler 22403 lt_prog_compiler_wl_F77='-Wl,-Wl,,' 22404 lt_prog_compiler_pic_F77='-PIC' 22405 lt_prog_compiler_static_F77='-Bstatic' 22406 ;; 22407 esac 22408 ;; 22409 22410 mingw* | cygwin* | pw32* | os2* | cegcc*) 22411 # This hack is so that the source file can tell whether it is being 22412 # built for inclusion in a dll (and should export symbols for example). 22413 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 22414 case $host_os in 22415 os2*) 22416 lt_prog_compiler_static_F77='$wl-static' 22417 ;; 22418 esac 22419 ;; 22420 22421 hpux9* | hpux10* | hpux11*) 22422 lt_prog_compiler_wl_F77='-Wl,' 22423 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 22424 # not for PA HP-UX. 22425 case $host_cpu in 22426 hppa*64*|ia64*) 22427 # +Z the default 22428 ;; 22429 *) 22430 lt_prog_compiler_pic_F77='+Z' 22431 ;; 22432 esac 22433 # Is there a better lt_prog_compiler_static that works with the bundled CC? 22434 lt_prog_compiler_static_F77='$wl-a ${wl}archive' 22435 ;; 22436 22437 irix5* | irix6* | nonstopux*) 22438 lt_prog_compiler_wl_F77='-Wl,' 22439 # PIC (with -KPIC) is the default. 22440 lt_prog_compiler_static_F77='-non_shared' 22441 ;; 22442 22443 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 22444 case $cc_basename in 22445 # old Intel for x86_64, which still supported -KPIC. 22446 ecc*) 22447 lt_prog_compiler_wl_F77='-Wl,' 22448 lt_prog_compiler_pic_F77='-KPIC' 22449 lt_prog_compiler_static_F77='-static' 22450 ;; 22451 # icc used to be incompatible with GCC. 22452 # ICC 10 doesn't accept -KPIC any more. 22453 icc* | ifort*) 22454 lt_prog_compiler_wl_F77='-Wl,' 22455 lt_prog_compiler_pic_F77='-fPIC' 22456 lt_prog_compiler_static_F77='-static' 22457 ;; 22458 # Lahey Fortran 8.1. 22459 lf95*) 22460 lt_prog_compiler_wl_F77='-Wl,' 22461 lt_prog_compiler_pic_F77='--shared' 22462 lt_prog_compiler_static_F77='--static' 22463 ;; 22464 nagfor*) 22465 # NAG Fortran compiler 22466 lt_prog_compiler_wl_F77='-Wl,-Wl,,' 22467 lt_prog_compiler_pic_F77='-PIC' 22468 lt_prog_compiler_static_F77='-Bstatic' 22469 ;; 22470 tcc*) 22471 # Fabrice Bellard et al's Tiny C Compiler 22472 lt_prog_compiler_wl_F77='-Wl,' 22473 lt_prog_compiler_pic_F77='-fPIC' 22474 lt_prog_compiler_static_F77='-static' 22475 ;; 22476 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 22477 # Portland Group compilers (*not* the Pentium gcc compiler, 22478 # which looks to be a dead project) 22479 lt_prog_compiler_wl_F77='-Wl,' 22480 lt_prog_compiler_pic_F77='-fpic' 22481 lt_prog_compiler_static_F77='-Bstatic' 22482 ;; 22483 ccc*) 22484 lt_prog_compiler_wl_F77='-Wl,' 22485 # All Alpha code is PIC. 22486 lt_prog_compiler_static_F77='-non_shared' 22487 ;; 22488 xl* | bgxl* | bgf* | mpixl*) 22489 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 22490 lt_prog_compiler_wl_F77='-Wl,' 22491 lt_prog_compiler_pic_F77='-qpic' 22492 lt_prog_compiler_static_F77='-qstaticlink' 22493 ;; 22494 *) 22495 case `$CC -V 2>&1 | sed 5q` in 22496 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 22497 # Sun Fortran 8.3 passes all unrecognized flags to the linker 22498 lt_prog_compiler_pic_F77='-KPIC' 22499 lt_prog_compiler_static_F77='-Bstatic' 22500 lt_prog_compiler_wl_F77='' 22501 ;; 22502 *Sun\ F* | *Sun*Fortran*) 22503 lt_prog_compiler_pic_F77='-KPIC' 22504 lt_prog_compiler_static_F77='-Bstatic' 22505 lt_prog_compiler_wl_F77='-Qoption ld ' 22506 ;; 22507 *Sun\ C*) 22508 # Sun C 5.9 22509 lt_prog_compiler_pic_F77='-KPIC' 22510 lt_prog_compiler_static_F77='-Bstatic' 22511 lt_prog_compiler_wl_F77='-Wl,' 22512 ;; 22513 *Intel*\ [CF]*Compiler*) 22514 lt_prog_compiler_wl_F77='-Wl,' 22515 lt_prog_compiler_pic_F77='-fPIC' 22516 lt_prog_compiler_static_F77='-static' 22517 ;; 22518 *Portland\ Group*) 22519 lt_prog_compiler_wl_F77='-Wl,' 22520 lt_prog_compiler_pic_F77='-fpic' 22521 lt_prog_compiler_static_F77='-Bstatic' 22522 ;; 22523 esac 22524 ;; 22525 esac 22526 ;; 22527 22528 newsos6) 22529 lt_prog_compiler_pic_F77='-KPIC' 22530 lt_prog_compiler_static_F77='-Bstatic' 22531 ;; 22532 22533 *nto* | *qnx*) 22534 # QNX uses GNU C++, but need to define -shared option too, otherwise 22535 # it will coredump. 22536 lt_prog_compiler_pic_F77='-fPIC -shared' 22537 ;; 22538 22539 osf3* | osf4* | osf5*) 22540 lt_prog_compiler_wl_F77='-Wl,' 22541 # All OSF/1 code is PIC. 22542 lt_prog_compiler_static_F77='-non_shared' 22543 ;; 22544 22545 rdos*) 22546 lt_prog_compiler_static_F77='-non_shared' 22547 ;; 22548 22549 solaris*) 22550 lt_prog_compiler_pic_F77='-KPIC' 22551 lt_prog_compiler_static_F77='-Bstatic' 22552 case $cc_basename in 22553 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 22554 lt_prog_compiler_wl_F77='-Qoption ld ';; 22555 *) 22556 lt_prog_compiler_wl_F77='-Wl,';; 22557 esac 22558 ;; 22559 22560 sunos4*) 22561 lt_prog_compiler_wl_F77='-Qoption ld ' 22562 lt_prog_compiler_pic_F77='-PIC' 22563 lt_prog_compiler_static_F77='-Bstatic' 22564 ;; 22565 22566 sysv4 | sysv4.2uw2* | sysv4.3*) 22567 lt_prog_compiler_wl_F77='-Wl,' 22568 lt_prog_compiler_pic_F77='-KPIC' 22569 lt_prog_compiler_static_F77='-Bstatic' 22570 ;; 22571 22572 sysv4*MP*) 22573 if test -d /usr/nec; then 22574 lt_prog_compiler_pic_F77='-Kconform_pic' 22575 lt_prog_compiler_static_F77='-Bstatic' 22576 fi 22577 ;; 22578 22579 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 22580 lt_prog_compiler_wl_F77='-Wl,' 22581 lt_prog_compiler_pic_F77='-KPIC' 22582 lt_prog_compiler_static_F77='-Bstatic' 22583 ;; 22584 22585 unicos*) 22586 lt_prog_compiler_wl_F77='-Wl,' 22587 lt_prog_compiler_can_build_shared_F77=no 22588 ;; 22589 22590 uts4*) 22591 lt_prog_compiler_pic_F77='-pic' 22592 lt_prog_compiler_static_F77='-Bstatic' 22593 ;; 22594 22595 *) 22596 lt_prog_compiler_can_build_shared_F77=no 22597 ;; 22598 esac 22599 fi 22600 22601case $host_os in 22602 # For platforms that do not support PIC, -DPIC is meaningless: 22603 *djgpp*) 22604 lt_prog_compiler_pic_F77= 22605 ;; 22606 *) 22607 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 22608 ;; 22609esac 22610 22611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 22612$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 22613if ${lt_cv_prog_compiler_pic_F77+:} false; then : 22614 $as_echo_n "(cached) " >&6 22615else 22616 lt_cv_prog_compiler_pic_F77=$lt_prog_compiler_pic_F77 22617fi 22618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_F77" >&5 22619$as_echo "$lt_cv_prog_compiler_pic_F77" >&6; } 22620lt_prog_compiler_pic_F77=$lt_cv_prog_compiler_pic_F77 22621 22622# 22623# Check to make sure the PIC flag actually works. 22624# 22625if test -n "$lt_prog_compiler_pic_F77"; then 22626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 22627$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; } 22628if ${lt_cv_prog_compiler_pic_works_F77+:} false; then : 22629 $as_echo_n "(cached) " >&6 22630else 22631 lt_cv_prog_compiler_pic_works_F77=no 22632 ac_outfile=conftest.$ac_objext 22633 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 22634 lt_compiler_flag="$lt_prog_compiler_pic_F77" ## exclude from sc_useless_quotes_in_assignment 22635 # Insert the option either (1) after the last *FLAGS variable, or 22636 # (2) before a word containing "conftest.", or (3) at the end. 22637 # Note that $ac_compile itself does not contain backslashes and begins 22638 # with a dollar sign (not a hyphen), so the echo should work correctly. 22639 # The option is referenced via a variable to avoid confusing sed. 22640 lt_compile=`echo "$ac_compile" | $SED \ 22641 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 22642 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 22643 -e 's:$: $lt_compiler_flag:'` 22644 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 22645 (eval "$lt_compile" 2>conftest.err) 22646 ac_status=$? 22647 cat conftest.err >&5 22648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22649 if (exit $ac_status) && test -s "$ac_outfile"; then 22650 # The compiler can only warn and ignore the option if not recognized 22651 # So say no if there are warnings other than the usual output. 22652 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 22653 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 22654 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 22655 lt_cv_prog_compiler_pic_works_F77=yes 22656 fi 22657 fi 22658 $RM conftest* 22659 22660fi 22661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5 22662$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; } 22663 22664if test yes = "$lt_cv_prog_compiler_pic_works_F77"; then 22665 case $lt_prog_compiler_pic_F77 in 22666 "" | " "*) ;; 22667 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 22668 esac 22669else 22670 lt_prog_compiler_pic_F77= 22671 lt_prog_compiler_can_build_shared_F77=no 22672fi 22673 22674fi 22675 22676 22677 22678 22679 22680# 22681# Check to make sure the static flag actually works. 22682# 22683wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 22684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 22685$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 22686if ${lt_cv_prog_compiler_static_works_F77+:} false; then : 22687 $as_echo_n "(cached) " >&6 22688else 22689 lt_cv_prog_compiler_static_works_F77=no 22690 save_LDFLAGS=$LDFLAGS 22691 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 22692 echo "$lt_simple_link_test_code" > conftest.$ac_ext 22693 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 22694 # The linker can only warn and ignore the option if not recognized 22695 # So say no if there are warnings 22696 if test -s conftest.err; then 22697 # Append any errors to the config.log. 22698 cat conftest.err 1>&5 22699 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 22700 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 22701 if diff conftest.exp conftest.er2 >/dev/null; then 22702 lt_cv_prog_compiler_static_works_F77=yes 22703 fi 22704 else 22705 lt_cv_prog_compiler_static_works_F77=yes 22706 fi 22707 fi 22708 $RM -r conftest* 22709 LDFLAGS=$save_LDFLAGS 22710 22711fi 22712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5 22713$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; } 22714 22715if test yes = "$lt_cv_prog_compiler_static_works_F77"; then 22716 : 22717else 22718 lt_prog_compiler_static_F77= 22719fi 22720 22721 22722 22723 22724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 22725$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 22726if ${lt_cv_prog_compiler_c_o_F77+:} false; then : 22727 $as_echo_n "(cached) " >&6 22728else 22729 lt_cv_prog_compiler_c_o_F77=no 22730 $RM -r conftest 2>/dev/null 22731 mkdir conftest 22732 cd conftest 22733 mkdir out 22734 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 22735 22736 lt_compiler_flag="-o out/conftest2.$ac_objext" 22737 # Insert the option either (1) after the last *FLAGS variable, or 22738 # (2) before a word containing "conftest.", or (3) at the end. 22739 # Note that $ac_compile itself does not contain backslashes and begins 22740 # with a dollar sign (not a hyphen), so the echo should work correctly. 22741 lt_compile=`echo "$ac_compile" | $SED \ 22742 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 22743 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 22744 -e 's:$: $lt_compiler_flag:'` 22745 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 22746 (eval "$lt_compile" 2>out/conftest.err) 22747 ac_status=$? 22748 cat out/conftest.err >&5 22749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22750 if (exit $ac_status) && test -s out/conftest2.$ac_objext 22751 then 22752 # The compiler can only warn and ignore the option if not recognized 22753 # So say no if there are warnings 22754 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 22755 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 22756 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 22757 lt_cv_prog_compiler_c_o_F77=yes 22758 fi 22759 fi 22760 chmod u+w . 2>&5 22761 $RM conftest* 22762 # SGI C++ compiler will create directory out/ii_files/ for 22763 # template instantiation 22764 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 22765 $RM out/* && rmdir out 22766 cd .. 22767 $RM -r conftest 22768 $RM conftest* 22769 22770fi 22771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5 22772$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; } 22773 22774 22775 22776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 22777$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 22778if ${lt_cv_prog_compiler_c_o_F77+:} false; then : 22779 $as_echo_n "(cached) " >&6 22780else 22781 lt_cv_prog_compiler_c_o_F77=no 22782 $RM -r conftest 2>/dev/null 22783 mkdir conftest 22784 cd conftest 22785 mkdir out 22786 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 22787 22788 lt_compiler_flag="-o out/conftest2.$ac_objext" 22789 # Insert the option either (1) after the last *FLAGS variable, or 22790 # (2) before a word containing "conftest.", or (3) at the end. 22791 # Note that $ac_compile itself does not contain backslashes and begins 22792 # with a dollar sign (not a hyphen), so the echo should work correctly. 22793 lt_compile=`echo "$ac_compile" | $SED \ 22794 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 22795 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 22796 -e 's:$: $lt_compiler_flag:'` 22797 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 22798 (eval "$lt_compile" 2>out/conftest.err) 22799 ac_status=$? 22800 cat out/conftest.err >&5 22801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22802 if (exit $ac_status) && test -s out/conftest2.$ac_objext 22803 then 22804 # The compiler can only warn and ignore the option if not recognized 22805 # So say no if there are warnings 22806 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 22807 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 22808 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 22809 lt_cv_prog_compiler_c_o_F77=yes 22810 fi 22811 fi 22812 chmod u+w . 2>&5 22813 $RM conftest* 22814 # SGI C++ compiler will create directory out/ii_files/ for 22815 # template instantiation 22816 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 22817 $RM out/* && rmdir out 22818 cd .. 22819 $RM -r conftest 22820 $RM conftest* 22821 22822fi 22823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5 22824$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; } 22825 22826 22827 22828 22829hard_links=nottested 22830if test no = "$lt_cv_prog_compiler_c_o_F77" && test no != "$need_locks"; then 22831 # do not overwrite the value of need_locks provided by the user 22832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 22833$as_echo_n "checking if we can lock with hard links... " >&6; } 22834 hard_links=yes 22835 $RM conftest* 22836 ln conftest.a conftest.b 2>/dev/null && hard_links=no 22837 touch conftest.a 22838 ln conftest.a conftest.b 2>&5 || hard_links=no 22839 ln conftest.a conftest.b 2>/dev/null && hard_links=no 22840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 22841$as_echo "$hard_links" >&6; } 22842 if test no = "$hard_links"; then 22843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 22844$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 22845 need_locks=warn 22846 fi 22847else 22848 need_locks=no 22849fi 22850 22851 22852 22853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 22854$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 22855 22856 runpath_var= 22857 allow_undefined_flag_F77= 22858 always_export_symbols_F77=no 22859 archive_cmds_F77= 22860 archive_expsym_cmds_F77= 22861 compiler_needs_object_F77=no 22862 enable_shared_with_static_runtimes_F77=no 22863 export_dynamic_flag_spec_F77= 22864 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 22865 hardcode_automatic_F77=no 22866 hardcode_direct_F77=no 22867 hardcode_direct_absolute_F77=no 22868 hardcode_libdir_flag_spec_F77= 22869 hardcode_libdir_separator_F77= 22870 hardcode_minus_L_F77=no 22871 hardcode_shlibpath_var_F77=unsupported 22872 inherit_rpath_F77=no 22873 link_all_deplibs_F77=unknown 22874 module_cmds_F77= 22875 module_expsym_cmds_F77= 22876 old_archive_from_new_cmds_F77= 22877 old_archive_from_expsyms_cmds_F77= 22878 thread_safe_flag_spec_F77= 22879 whole_archive_flag_spec_F77= 22880 # include_expsyms should be a list of space-separated symbols to be *always* 22881 # included in the symbol list 22882 include_expsyms_F77= 22883 # exclude_expsyms can be an extended regexp of symbols to exclude 22884 # it will be wrapped by ' (' and ')$', so one must not match beginning or 22885 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 22886 # as well as any symbol that contains 'd'. 22887 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 22888 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 22889 # platforms (ab)use it in PIC code, but their linkers get confused if 22890 # the symbol is explicitly referenced. Since portable code cannot 22891 # rely on this symbol name, it's probably fine to never include it in 22892 # preloaded symbol tables. 22893 # Exclude shared library initialization/finalization symbols. 22894 extract_expsyms_cmds= 22895 22896 case $host_os in 22897 cygwin* | mingw* | pw32* | cegcc*) 22898 # FIXME: the MSVC++ port hasn't been tested in a loooong time 22899 # When not using gcc, we currently assume that we are using 22900 # Microsoft Visual C++. 22901 if test yes != "$GCC"; then 22902 with_gnu_ld=no 22903 fi 22904 ;; 22905 interix*) 22906 # we just hope/assume this is gcc and not c89 (= MSVC++) 22907 with_gnu_ld=yes 22908 ;; 22909 openbsd* | bitrig*) 22910 with_gnu_ld=no 22911 ;; 22912 esac 22913 22914 ld_shlibs_F77=yes 22915 22916 # On some targets, GNU ld is compatible enough with the native linker 22917 # that we're better off using the native interface for both. 22918 lt_use_gnu_ld_interface=no 22919 if test yes = "$with_gnu_ld"; then 22920 case $host_os in 22921 aix*) 22922 # The AIX port of GNU ld has always aspired to compatibility 22923 # with the native linker. However, as the warning in the GNU ld 22924 # block says, versions before 2.19.5* couldn't really create working 22925 # shared libraries, regardless of the interface used. 22926 case `$LD -v 2>&1` in 22927 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 22928 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 22929 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 22930 *) 22931 lt_use_gnu_ld_interface=yes 22932 ;; 22933 esac 22934 ;; 22935 *) 22936 lt_use_gnu_ld_interface=yes 22937 ;; 22938 esac 22939 fi 22940 22941 if test yes = "$lt_use_gnu_ld_interface"; then 22942 # If archive_cmds runs LD, not CC, wlarc should be empty 22943 wlarc='$wl' 22944 22945 # Set some defaults for GNU ld with shared library support. These 22946 # are reset later if shared libraries are not supported. Putting them 22947 # here allows them to be overridden if necessary. 22948 runpath_var=LD_RUN_PATH 22949 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir' 22950 export_dynamic_flag_spec_F77='$wl--export-dynamic' 22951 # ancient GNU ld didn't support --whole-archive et. al. 22952 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 22953 whole_archive_flag_spec_F77=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 22954 else 22955 whole_archive_flag_spec_F77= 22956 fi 22957 supports_anon_versioning=no 22958 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 22959 *GNU\ gold*) supports_anon_versioning=yes ;; 22960 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 22961 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 22962 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 22963 *\ 2.11.*) ;; # other 2.11 versions 22964 *) supports_anon_versioning=yes ;; 22965 esac 22966 22967 # See if GNU ld supports shared libraries. 22968 case $host_os in 22969 aix[3-9]*) 22970 # On AIX/PPC, the GNU linker is very broken 22971 if test ia64 != "$host_cpu"; then 22972 ld_shlibs_F77=no 22973 cat <<_LT_EOF 1>&2 22974 22975*** Warning: the GNU linker, at least up to release 2.19, is reported 22976*** to be unable to reliably create shared libraries on AIX. 22977*** Therefore, libtool is disabling shared libraries support. If you 22978*** really care for shared libraries, you may want to install binutils 22979*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 22980*** You will then need to restart the configuration process. 22981 22982_LT_EOF 22983 fi 22984 ;; 22985 22986 amigaos*) 22987 case $host_cpu in 22988 powerpc) 22989 # see comment about AmigaOS4 .so support 22990 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 22991 archive_expsym_cmds_F77='' 22992 ;; 22993 m68k) 22994 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)' 22995 hardcode_libdir_flag_spec_F77='-L$libdir' 22996 hardcode_minus_L_F77=yes 22997 ;; 22998 esac 22999 ;; 23000 23001 beos*) 23002 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 23003 allow_undefined_flag_F77=unsupported 23004 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 23005 # support --undefined. This deserves some investigation. FIXME 23006 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 23007 else 23008 ld_shlibs_F77=no 23009 fi 23010 ;; 23011 23012 cygwin* | mingw* | pw32* | cegcc*) 23013 # _LT_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 23014 # as there is no search path for DLLs. 23015 hardcode_libdir_flag_spec_F77='-L$libdir' 23016 export_dynamic_flag_spec_F77='$wl--export-all-symbols' 23017 allow_undefined_flag_F77=unsupported 23018 always_export_symbols_F77=no 23019 enable_shared_with_static_runtimes_F77=yes 23020 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' 23021 exclude_expsyms_F77='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 23022 23023 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 23024 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 23025 # If the export-symbols file already is a .def file, use it as 23026 # is; otherwise, prepend EXPORTS... 23027 archive_expsym_cmds_F77='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 23028 cp $export_symbols $output_objdir/$soname.def; 23029 else 23030 echo EXPORTS > $output_objdir/$soname.def; 23031 cat $export_symbols >> $output_objdir/$soname.def; 23032 fi~ 23033 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 23034 else 23035 ld_shlibs_F77=no 23036 fi 23037 ;; 23038 23039 haiku*) 23040 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 23041 link_all_deplibs_F77=yes 23042 ;; 23043 23044 os2*) 23045 hardcode_libdir_flag_spec_F77='-L$libdir' 23046 hardcode_minus_L_F77=yes 23047 allow_undefined_flag_F77=unsupported 23048 shrext_cmds=.dll 23049 archive_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 23050 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 23051 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 23052 $ECHO EXPORTS >> $output_objdir/$libname.def~ 23053 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 23054 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 23055 emximp -o $lib $output_objdir/$libname.def' 23056 archive_expsym_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 23057 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 23058 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 23059 $ECHO EXPORTS >> $output_objdir/$libname.def~ 23060 prefix_cmds="$SED"~ 23061 if test EXPORTS = "`$SED 1q $export_symbols`"; then 23062 prefix_cmds="$prefix_cmds -e 1d"; 23063 fi~ 23064 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 23065 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 23066 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 23067 emximp -o $lib $output_objdir/$libname.def' 23068 old_archive_From_new_cmds_F77='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 23069 enable_shared_with_static_runtimes_F77=yes 23070 ;; 23071 23072 interix[3-9]*) 23073 hardcode_direct_F77=no 23074 hardcode_shlibpath_var_F77=no 23075 hardcode_libdir_flag_spec_F77='$wl-rpath,$libdir' 23076 export_dynamic_flag_spec_F77='$wl-E' 23077 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 23078 # Instead, shared libraries are loaded at an image base (0x10000000 by 23079 # default) and relocated if they conflict, which is a slow very memory 23080 # consuming and fragmenting process. To avoid this, we pick a random, 23081 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 23082 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 23083 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' 23084 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' 23085 ;; 23086 23087 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 23088 tmp_diet=no 23089 if test linux-dietlibc = "$host_os"; then 23090 case $cc_basename in 23091 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 23092 esac 23093 fi 23094 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 23095 && test no = "$tmp_diet" 23096 then 23097 tmp_addflag=' $pic_flag' 23098 tmp_sharedflag='-shared' 23099 case $cc_basename,$host_cpu in 23100 pgcc*) # Portland Group C compiler 23101 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' 23102 tmp_addflag=' $pic_flag' 23103 ;; 23104 pgf77* | pgf90* | pgf95* | pgfortran*) 23105 # Portland Group f77 and f90 compilers 23106 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' 23107 tmp_addflag=' $pic_flag -Mnomain' ;; 23108 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 23109 tmp_addflag=' -i_dynamic' ;; 23110 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 23111 tmp_addflag=' -i_dynamic -nofor_main' ;; 23112 ifc* | ifort*) # Intel Fortran compiler 23113 tmp_addflag=' -nofor_main' ;; 23114 lf95*) # Lahey Fortran 8.1 23115 whole_archive_flag_spec_F77= 23116 tmp_sharedflag='--shared' ;; 23117 nagfor*) # NAGFOR 5.3 23118 tmp_sharedflag='-Wl,-shared' ;; 23119 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 23120 tmp_sharedflag='-qmkshrobj' 23121 tmp_addflag= ;; 23122 nvcc*) # Cuda Compiler Driver 2.2 23123 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' 23124 compiler_needs_object_F77=yes 23125 ;; 23126 esac 23127 case `$CC -V 2>&1 | sed 5q` in 23128 *Sun\ C*) # Sun C 5.9 23129 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' 23130 compiler_needs_object_F77=yes 23131 tmp_sharedflag='-G' ;; 23132 *Sun\ F*) # Sun Fortran 8.3 23133 tmp_sharedflag='-G' ;; 23134 esac 23135 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 23136 23137 if test yes = "$supports_anon_versioning"; then 23138 archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~ 23139 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 23140 echo "local: *; };" >> $output_objdir/$libname.ver~ 23141 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 23142 fi 23143 23144 case $cc_basename in 23145 tcc*) 23146 export_dynamic_flag_spec_F77='-rdynamic' 23147 ;; 23148 xlf* | bgf* | bgxlf* | mpixlf*) 23149 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 23150 whole_archive_flag_spec_F77='--whole-archive$convenience --no-whole-archive' 23151 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir' 23152 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 23153 if test yes = "$supports_anon_versioning"; then 23154 archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~ 23155 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 23156 echo "local: *; };" >> $output_objdir/$libname.ver~ 23157 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 23158 fi 23159 ;; 23160 esac 23161 else 23162 ld_shlibs_F77=no 23163 fi 23164 ;; 23165 23166 netbsd*) 23167 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 23168 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 23169 wlarc= 23170 else 23171 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 23172 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' 23173 fi 23174 ;; 23175 23176 solaris*) 23177 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 23178 ld_shlibs_F77=no 23179 cat <<_LT_EOF 1>&2 23180 23181*** Warning: The releases 2.8.* of the GNU linker cannot reliably 23182*** create shared libraries on Solaris systems. Therefore, libtool 23183*** is disabling shared libraries support. We urge you to upgrade GNU 23184*** binutils to release 2.9.1 or newer. Another option is to modify 23185*** your PATH or compiler configuration so that the native linker is 23186*** used, and then restart. 23187 23188_LT_EOF 23189 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 23190 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 23191 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' 23192 else 23193 ld_shlibs_F77=no 23194 fi 23195 ;; 23196 23197 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 23198 case `$LD -v 2>&1` in 23199 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 23200 ld_shlibs_F77=no 23201 cat <<_LT_EOF 1>&2 23202 23203*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 23204*** reliably create shared libraries on SCO systems. Therefore, libtool 23205*** is disabling shared libraries support. We urge you to upgrade GNU 23206*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 23207*** your PATH or compiler configuration so that the native linker is 23208*** used, and then restart. 23209 23210_LT_EOF 23211 ;; 23212 *) 23213 # For security reasons, it is highly recommended that you always 23214 # use absolute paths for naming shared libraries, and exclude the 23215 # DT_RUNPATH tag from executables and libraries. But doing so 23216 # requires that you compile everything twice, which is a pain. 23217 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 23218 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir' 23219 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 23220 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 23221 else 23222 ld_shlibs_F77=no 23223 fi 23224 ;; 23225 esac 23226 ;; 23227 23228 sunos4*) 23229 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 23230 wlarc= 23231 hardcode_direct_F77=yes 23232 hardcode_shlibpath_var_F77=no 23233 ;; 23234 23235 *) 23236 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 23237 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 23238 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' 23239 else 23240 ld_shlibs_F77=no 23241 fi 23242 ;; 23243 esac 23244 23245 if test no = "$ld_shlibs_F77"; then 23246 runpath_var= 23247 hardcode_libdir_flag_spec_F77= 23248 export_dynamic_flag_spec_F77= 23249 whole_archive_flag_spec_F77= 23250 fi 23251 else 23252 # PORTME fill in a description of your system's linker (not GNU ld) 23253 case $host_os in 23254 aix3*) 23255 allow_undefined_flag_F77=unsupported 23256 always_export_symbols_F77=yes 23257 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' 23258 # Note: this linker hardcodes the directories in LIBPATH if there 23259 # are no directories specified by -L. 23260 hardcode_minus_L_F77=yes 23261 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 23262 # Neither direct hardcoding nor static linking is supported with a 23263 # broken collect2. 23264 hardcode_direct_F77=unsupported 23265 fi 23266 ;; 23267 23268 aix[4-9]*) 23269 if test ia64 = "$host_cpu"; then 23270 # On IA64, the linker does run time linking by default, so we don't 23271 # have to do anything special. 23272 aix_use_runtimelinking=no 23273 exp_sym_flag='-Bexport' 23274 no_entry_flag= 23275 else 23276 # If we're using GNU nm, then we don't want the "-C" option. 23277 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 23278 # Without the "-l" option, or with the "-B" option, AIX nm treats 23279 # weak defined symbols like other global defined symbols, whereas 23280 # GNU nm marks them as "W". 23281 # While the 'weak' keyword is ignored in the Export File, we need 23282 # it in the Import File for the 'aix-soname' feature, so we have 23283 # to replace the "-B" option with "-P" for AIX nm. 23284 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 23285 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' 23286 else 23287 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' 23288 fi 23289 aix_use_runtimelinking=no 23290 23291 # Test if we are trying to use run time linking or normal 23292 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 23293 # have runtime linking enabled, and use it for executables. 23294 # For shared libraries, we enable/disable runtime linking 23295 # depending on the kind of the shared library created - 23296 # when "with_aix_soname,aix_use_runtimelinking" is: 23297 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 23298 # "aix,yes" lib.so shared, rtl:yes, for executables 23299 # lib.a static archive 23300 # "both,no" lib.so.V(shr.o) shared, rtl:yes 23301 # lib.a(lib.so.V) shared, rtl:no, for executables 23302 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 23303 # lib.a(lib.so.V) shared, rtl:no 23304 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 23305 # lib.a static archive 23306 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 23307 for ld_flag in $LDFLAGS; do 23308 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 23309 aix_use_runtimelinking=yes 23310 break 23311 fi 23312 done 23313 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 23314 # With aix-soname=svr4, we create the lib.so.V shared archives only, 23315 # so we don't have lib.a shared libs to link our executables. 23316 # We have to force runtime linking in this case. 23317 aix_use_runtimelinking=yes 23318 LDFLAGS="$LDFLAGS -Wl,-brtl" 23319 fi 23320 ;; 23321 esac 23322 23323 exp_sym_flag='-bexport' 23324 no_entry_flag='-bnoentry' 23325 fi 23326 23327 # When large executables or shared objects are built, AIX ld can 23328 # have problems creating the table of contents. If linking a library 23329 # or program results in "error TOC overflow" add -mminimal-toc to 23330 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 23331 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 23332 23333 archive_cmds_F77='' 23334 hardcode_direct_F77=yes 23335 hardcode_direct_absolute_F77=yes 23336 hardcode_libdir_separator_F77=':' 23337 link_all_deplibs_F77=yes 23338 file_list_spec_F77='$wl-f,' 23339 case $with_aix_soname,$aix_use_runtimelinking in 23340 aix,*) ;; # traditional, no import file 23341 svr4,* | *,yes) # use import file 23342 # The Import File defines what to hardcode. 23343 hardcode_direct_F77=no 23344 hardcode_direct_absolute_F77=no 23345 ;; 23346 esac 23347 23348 if test yes = "$GCC"; then 23349 case $host_os in aix4.[012]|aix4.[012].*) 23350 # We only want to do this on AIX 4.2 and lower, the check 23351 # below for broken collect2 doesn't work under 4.3+ 23352 collect2name=`$CC -print-prog-name=collect2` 23353 if test -f "$collect2name" && 23354 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 23355 then 23356 # We have reworked collect2 23357 : 23358 else 23359 # We have old collect2 23360 hardcode_direct_F77=unsupported 23361 # It fails to find uninstalled libraries when the uninstalled 23362 # path is not listed in the libpath. Setting hardcode_minus_L 23363 # to unsupported forces relinking 23364 hardcode_minus_L_F77=yes 23365 hardcode_libdir_flag_spec_F77='-L$libdir' 23366 hardcode_libdir_separator_F77= 23367 fi 23368 ;; 23369 esac 23370 shared_flag='-shared' 23371 if test yes = "$aix_use_runtimelinking"; then 23372 shared_flag="$shared_flag "'$wl-G' 23373 fi 23374 # Need to ensure runtime linking is disabled for the traditional 23375 # shared library, or the linker may eventually find shared libraries 23376 # /with/ Import File - we do not want to mix them. 23377 shared_flag_aix='-shared' 23378 shared_flag_svr4='-shared $wl-G' 23379 else 23380 # not using gcc 23381 if test ia64 = "$host_cpu"; then 23382 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 23383 # chokes on -Wl,-G. The following line is correct: 23384 shared_flag='-G' 23385 else 23386 if test yes = "$aix_use_runtimelinking"; then 23387 shared_flag='$wl-G' 23388 else 23389 shared_flag='$wl-bM:SRE' 23390 fi 23391 shared_flag_aix='$wl-bM:SRE' 23392 shared_flag_svr4='$wl-G' 23393 fi 23394 fi 23395 23396 export_dynamic_flag_spec_F77='$wl-bexpall' 23397 # It seems that -bexpall does not export symbols beginning with 23398 # underscore (_), so it is better to generate a list of symbols to export. 23399 always_export_symbols_F77=yes 23400 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 23401 # Warning - without using the other runtime loading flags (-brtl), 23402 # -berok will link without error, but may produce a broken library. 23403 allow_undefined_flag_F77='-berok' 23404 # Determine the default libpath from the value encoded in an 23405 # empty executable. 23406 if test set = "${lt_cv_aix_libpath+set}"; then 23407 aix_libpath=$lt_cv_aix_libpath 23408else 23409 if ${lt_cv_aix_libpath__F77+:} false; then : 23410 $as_echo_n "(cached) " >&6 23411else 23412 cat > conftest.$ac_ext <<_ACEOF 23413 program main 23414 23415 end 23416_ACEOF 23417if ac_fn_f77_try_link "$LINENO"; then : 23418 23419 lt_aix_libpath_sed=' 23420 /Import File Strings/,/^$/ { 23421 /^0/ { 23422 s/^0 *\([^ ]*\) *$/\1/ 23423 p 23424 } 23425 }' 23426 lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 23427 # Check for a 64-bit object if we didn't find anything. 23428 if test -z "$lt_cv_aix_libpath__F77"; then 23429 lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 23430 fi 23431fi 23432rm -f core conftest.err conftest.$ac_objext \ 23433 conftest$ac_exeext conftest.$ac_ext 23434 if test -z "$lt_cv_aix_libpath__F77"; then 23435 lt_cv_aix_libpath__F77=/usr/lib:/lib 23436 fi 23437 23438fi 23439 23440 aix_libpath=$lt_cv_aix_libpath__F77 23441fi 23442 23443 hardcode_libdir_flag_spec_F77='$wl-blibpath:$libdir:'"$aix_libpath" 23444 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 23445 else 23446 if test ia64 = "$host_cpu"; then 23447 hardcode_libdir_flag_spec_F77='$wl-R $libdir:/usr/lib:/lib' 23448 allow_undefined_flag_F77="-z nodefs" 23449 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" 23450 else 23451 # Determine the default libpath from the value encoded in an 23452 # empty executable. 23453 if test set = "${lt_cv_aix_libpath+set}"; then 23454 aix_libpath=$lt_cv_aix_libpath 23455else 23456 if ${lt_cv_aix_libpath__F77+:} false; then : 23457 $as_echo_n "(cached) " >&6 23458else 23459 cat > conftest.$ac_ext <<_ACEOF 23460 program main 23461 23462 end 23463_ACEOF 23464if ac_fn_f77_try_link "$LINENO"; then : 23465 23466 lt_aix_libpath_sed=' 23467 /Import File Strings/,/^$/ { 23468 /^0/ { 23469 s/^0 *\([^ ]*\) *$/\1/ 23470 p 23471 } 23472 }' 23473 lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 23474 # Check for a 64-bit object if we didn't find anything. 23475 if test -z "$lt_cv_aix_libpath__F77"; then 23476 lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 23477 fi 23478fi 23479rm -f core conftest.err conftest.$ac_objext \ 23480 conftest$ac_exeext conftest.$ac_ext 23481 if test -z "$lt_cv_aix_libpath__F77"; then 23482 lt_cv_aix_libpath__F77=/usr/lib:/lib 23483 fi 23484 23485fi 23486 23487 aix_libpath=$lt_cv_aix_libpath__F77 23488fi 23489 23490 hardcode_libdir_flag_spec_F77='$wl-blibpath:$libdir:'"$aix_libpath" 23491 # Warning - without using the other run time loading flags, 23492 # -berok will link without error, but may produce a broken library. 23493 no_undefined_flag_F77=' $wl-bernotok' 23494 allow_undefined_flag_F77=' $wl-berok' 23495 if test yes = "$with_gnu_ld"; then 23496 # We only use this code for GNU lds that support --whole-archive. 23497 whole_archive_flag_spec_F77='$wl--whole-archive$convenience $wl--no-whole-archive' 23498 else 23499 # Exported symbols can be pulled into shared objects from archives 23500 whole_archive_flag_spec_F77='$convenience' 23501 fi 23502 archive_cmds_need_lc_F77=yes 23503 archive_expsym_cmds_F77='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 23504 # -brtl affects multiple linker settings, -berok does not and is overridden later 23505 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 23506 if test svr4 != "$with_aix_soname"; then 23507 # This is similar to how AIX traditionally builds its shared libraries. 23508 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' 23509 fi 23510 if test aix != "$with_aix_soname"; then 23511 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' 23512 else 23513 # used by -dlpreopen to get the symbols 23514 archive_expsym_cmds_F77="$archive_expsym_cmds_F77"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 23515 fi 23516 archive_expsym_cmds_F77="$archive_expsym_cmds_F77"'~$RM -r $output_objdir/$realname.d' 23517 fi 23518 fi 23519 ;; 23520 23521 amigaos*) 23522 case $host_cpu in 23523 powerpc) 23524 # see comment about AmigaOS4 .so support 23525 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 23526 archive_expsym_cmds_F77='' 23527 ;; 23528 m68k) 23529 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)' 23530 hardcode_libdir_flag_spec_F77='-L$libdir' 23531 hardcode_minus_L_F77=yes 23532 ;; 23533 esac 23534 ;; 23535 23536 bsdi[45]*) 23537 export_dynamic_flag_spec_F77=-rdynamic 23538 ;; 23539 23540 cygwin* | mingw* | pw32* | cegcc*) 23541 # When not using gcc, we currently assume that we are using 23542 # Microsoft Visual C++. 23543 # hardcode_libdir_flag_spec is actually meaningless, as there is 23544 # no search path for DLLs. 23545 case $cc_basename in 23546 cl*) 23547 # Native MSVC 23548 hardcode_libdir_flag_spec_F77=' ' 23549 allow_undefined_flag_F77=unsupported 23550 always_export_symbols_F77=yes 23551 file_list_spec_F77='@' 23552 # Tell ltmain to make .lib files, not .a files. 23553 libext=lib 23554 # Tell ltmain to make .dll files, not .so files. 23555 shrext_cmds=.dll 23556 # FIXME: Setting linknames here is a bad hack. 23557 archive_cmds_F77='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 23558 archive_expsym_cmds_F77='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 23559 cp "$export_symbols" "$output_objdir/$soname.def"; 23560 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 23561 else 23562 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 23563 fi~ 23564 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 23565 linknames=' 23566 # The linker will not automatically build a static lib if we build a DLL. 23567 # _LT_TAGVAR(old_archive_from_new_cmds, F77)='true' 23568 enable_shared_with_static_runtimes_F77=yes 23569 exclude_expsyms_F77='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 23570 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 23571 # Don't use ranlib 23572 old_postinstall_cmds_F77='chmod 644 $oldlib' 23573 postlink_cmds_F77='lt_outputfile="@OUTPUT@"~ 23574 lt_tool_outputfile="@TOOL_OUTPUT@"~ 23575 case $lt_outputfile in 23576 *.exe|*.EXE) ;; 23577 *) 23578 lt_outputfile=$lt_outputfile.exe 23579 lt_tool_outputfile=$lt_tool_outputfile.exe 23580 ;; 23581 esac~ 23582 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 23583 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 23584 $RM "$lt_outputfile.manifest"; 23585 fi' 23586 ;; 23587 *) 23588 # Assume MSVC wrapper 23589 hardcode_libdir_flag_spec_F77=' ' 23590 allow_undefined_flag_F77=unsupported 23591 # Tell ltmain to make .lib files, not .a files. 23592 libext=lib 23593 # Tell ltmain to make .dll files, not .so files. 23594 shrext_cmds=.dll 23595 # FIXME: Setting linknames here is a bad hack. 23596 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 23597 # The linker will automatically build a .lib file if we build a DLL. 23598 old_archive_from_new_cmds_F77='true' 23599 # FIXME: Should let the user specify the lib program. 23600 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' 23601 enable_shared_with_static_runtimes_F77=yes 23602 ;; 23603 esac 23604 ;; 23605 23606 darwin* | rhapsody*) 23607 23608 23609 archive_cmds_need_lc_F77=no 23610 hardcode_direct_F77=no 23611 hardcode_automatic_F77=yes 23612 hardcode_shlibpath_var_F77=unsupported 23613 if test yes = "$lt_cv_ld_force_load"; then 23614 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\"`' 23615 compiler_needs_object_F77=yes 23616 else 23617 whole_archive_flag_spec_F77='' 23618 fi 23619 link_all_deplibs_F77=yes 23620 allow_undefined_flag_F77=$_lt_dar_allow_undefined 23621 case $cc_basename in 23622 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 23623 *) _lt_dar_can_shared=$GCC ;; 23624 esac 23625 if test yes = "$_lt_dar_can_shared"; then 23626 output_verbose_link_cmd=func_echo_all 23627 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" 23628 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 23629 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" 23630 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" 23631 23632 else 23633 ld_shlibs_F77=no 23634 fi 23635 23636 ;; 23637 23638 dgux*) 23639 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 23640 hardcode_libdir_flag_spec_F77='-L$libdir' 23641 hardcode_shlibpath_var_F77=no 23642 ;; 23643 23644 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 23645 # support. Future versions do this automatically, but an explicit c++rt0.o 23646 # does not break anything, and helps significantly (at the cost of a little 23647 # extra space). 23648 freebsd2.2*) 23649 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 23650 hardcode_libdir_flag_spec_F77='-R$libdir' 23651 hardcode_direct_F77=yes 23652 hardcode_shlibpath_var_F77=no 23653 ;; 23654 23655 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 23656 freebsd2.*) 23657 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 23658 hardcode_direct_F77=yes 23659 hardcode_minus_L_F77=yes 23660 hardcode_shlibpath_var_F77=no 23661 ;; 23662 23663 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 23664 freebsd* | dragonfly*) 23665 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 23666 hardcode_libdir_flag_spec_F77='-R$libdir' 23667 hardcode_direct_F77=yes 23668 hardcode_shlibpath_var_F77=no 23669 ;; 23670 23671 hpux9*) 23672 if test yes = "$GCC"; then 23673 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' 23674 else 23675 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' 23676 fi 23677 hardcode_libdir_flag_spec_F77='$wl+b $wl$libdir' 23678 hardcode_libdir_separator_F77=: 23679 hardcode_direct_F77=yes 23680 23681 # hardcode_minus_L: Not really in the search PATH, 23682 # but as the default location of the library. 23683 hardcode_minus_L_F77=yes 23684 export_dynamic_flag_spec_F77='$wl-E' 23685 ;; 23686 23687 hpux10*) 23688 if test yes,no = "$GCC,$with_gnu_ld"; then 23689 archive_cmds_F77='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 23690 else 23691 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 23692 fi 23693 if test no = "$with_gnu_ld"; then 23694 hardcode_libdir_flag_spec_F77='$wl+b $wl$libdir' 23695 hardcode_libdir_separator_F77=: 23696 hardcode_direct_F77=yes 23697 hardcode_direct_absolute_F77=yes 23698 export_dynamic_flag_spec_F77='$wl-E' 23699 # hardcode_minus_L: Not really in the search PATH, 23700 # but as the default location of the library. 23701 hardcode_minus_L_F77=yes 23702 fi 23703 ;; 23704 23705 hpux11*) 23706 if test yes,no = "$GCC,$with_gnu_ld"; then 23707 case $host_cpu in 23708 hppa*64*) 23709 archive_cmds_F77='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 23710 ;; 23711 ia64*) 23712 archive_cmds_F77='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 23713 ;; 23714 *) 23715 archive_cmds_F77='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 23716 ;; 23717 esac 23718 else 23719 case $host_cpu in 23720 hppa*64*) 23721 archive_cmds_F77='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 23722 ;; 23723 ia64*) 23724 archive_cmds_F77='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 23725 ;; 23726 *) 23727 archive_cmds_F77='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 23728 ;; 23729 esac 23730 fi 23731 if test no = "$with_gnu_ld"; then 23732 hardcode_libdir_flag_spec_F77='$wl+b $wl$libdir' 23733 hardcode_libdir_separator_F77=: 23734 23735 case $host_cpu in 23736 hppa*64*|ia64*) 23737 hardcode_direct_F77=no 23738 hardcode_shlibpath_var_F77=no 23739 ;; 23740 *) 23741 hardcode_direct_F77=yes 23742 hardcode_direct_absolute_F77=yes 23743 export_dynamic_flag_spec_F77='$wl-E' 23744 23745 # hardcode_minus_L: Not really in the search PATH, 23746 # but as the default location of the library. 23747 hardcode_minus_L_F77=yes 23748 ;; 23749 esac 23750 fi 23751 ;; 23752 23753 irix5* | irix6* | nonstopux*) 23754 if test yes = "$GCC"; then 23755 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' 23756 # Try to use the -exported_symbol ld option, if it does not 23757 # work, assume that -exports_file does not work either and 23758 # implicitly export all symbols. 23759 # This should be the same for all languages, so no per-tag cache variable. 23760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 23761$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 23762if ${lt_cv_irix_exported_symbol+:} false; then : 23763 $as_echo_n "(cached) " >&6 23764else 23765 save_LDFLAGS=$LDFLAGS 23766 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 23767 cat > conftest.$ac_ext <<_ACEOF 23768 23769 subroutine foo 23770 end 23771_ACEOF 23772if ac_fn_f77_try_link "$LINENO"; then : 23773 lt_cv_irix_exported_symbol=yes 23774else 23775 lt_cv_irix_exported_symbol=no 23776fi 23777rm -f core conftest.err conftest.$ac_objext \ 23778 conftest$ac_exeext conftest.$ac_ext 23779 LDFLAGS=$save_LDFLAGS 23780fi 23781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 23782$as_echo "$lt_cv_irix_exported_symbol" >&6; } 23783 if test yes = "$lt_cv_irix_exported_symbol"; then 23784 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' 23785 fi 23786 else 23787 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' 23788 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' 23789 fi 23790 archive_cmds_need_lc_F77='no' 23791 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir' 23792 hardcode_libdir_separator_F77=: 23793 inherit_rpath_F77=yes 23794 link_all_deplibs_F77=yes 23795 ;; 23796 23797 linux*) 23798 case $cc_basename in 23799 tcc*) 23800 # Fabrice Bellard et al's Tiny C Compiler 23801 ld_shlibs_F77=yes 23802 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 23803 ;; 23804 esac 23805 ;; 23806 23807 netbsd*) 23808 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 23809 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 23810 else 23811 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 23812 fi 23813 hardcode_libdir_flag_spec_F77='-R$libdir' 23814 hardcode_direct_F77=yes 23815 hardcode_shlibpath_var_F77=no 23816 ;; 23817 23818 newsos6) 23819 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 23820 hardcode_direct_F77=yes 23821 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir' 23822 hardcode_libdir_separator_F77=: 23823 hardcode_shlibpath_var_F77=no 23824 ;; 23825 23826 *nto* | *qnx*) 23827 ;; 23828 23829 openbsd* | bitrig*) 23830 if test -f /usr/libexec/ld.so; then 23831 hardcode_direct_F77=yes 23832 hardcode_shlibpath_var_F77=no 23833 hardcode_direct_absolute_F77=yes 23834 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 23835 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 23836 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 23837 hardcode_libdir_flag_spec_F77='$wl-rpath,$libdir' 23838 export_dynamic_flag_spec_F77='$wl-E' 23839 else 23840 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 23841 hardcode_libdir_flag_spec_F77='$wl-rpath,$libdir' 23842 fi 23843 else 23844 ld_shlibs_F77=no 23845 fi 23846 ;; 23847 23848 os2*) 23849 hardcode_libdir_flag_spec_F77='-L$libdir' 23850 hardcode_minus_L_F77=yes 23851 allow_undefined_flag_F77=unsupported 23852 shrext_cmds=.dll 23853 archive_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 23854 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 23855 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 23856 $ECHO EXPORTS >> $output_objdir/$libname.def~ 23857 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 23858 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 23859 emximp -o $lib $output_objdir/$libname.def' 23860 archive_expsym_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 23861 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 23862 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 23863 $ECHO EXPORTS >> $output_objdir/$libname.def~ 23864 prefix_cmds="$SED"~ 23865 if test EXPORTS = "`$SED 1q $export_symbols`"; then 23866 prefix_cmds="$prefix_cmds -e 1d"; 23867 fi~ 23868 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 23869 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 23870 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 23871 emximp -o $lib $output_objdir/$libname.def' 23872 old_archive_From_new_cmds_F77='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 23873 enable_shared_with_static_runtimes_F77=yes 23874 ;; 23875 23876 osf3*) 23877 if test yes = "$GCC"; then 23878 allow_undefined_flag_F77=' $wl-expect_unresolved $wl\*' 23879 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' 23880 else 23881 allow_undefined_flag_F77=' -expect_unresolved \*' 23882 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' 23883 fi 23884 archive_cmds_need_lc_F77='no' 23885 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir' 23886 hardcode_libdir_separator_F77=: 23887 ;; 23888 23889 osf4* | osf5*) # as osf3* with the addition of -msym flag 23890 if test yes = "$GCC"; then 23891 allow_undefined_flag_F77=' $wl-expect_unresolved $wl\*' 23892 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' 23893 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir' 23894 else 23895 allow_undefined_flag_F77=' -expect_unresolved \*' 23896 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' 23897 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~ 23898 $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' 23899 23900 # Both c and cxx compiler support -rpath directly 23901 hardcode_libdir_flag_spec_F77='-rpath $libdir' 23902 fi 23903 archive_cmds_need_lc_F77='no' 23904 hardcode_libdir_separator_F77=: 23905 ;; 23906 23907 solaris*) 23908 no_undefined_flag_F77=' -z defs' 23909 if test yes = "$GCC"; then 23910 wlarc='$wl' 23911 archive_cmds_F77='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 23912 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 23913 $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' 23914 else 23915 case `$CC -V 2>&1` in 23916 *"Compilers 5.0"*) 23917 wlarc='' 23918 archive_cmds_F77='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 23919 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 23920 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 23921 ;; 23922 *) 23923 wlarc='$wl' 23924 archive_cmds_F77='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 23925 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 23926 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 23927 ;; 23928 esac 23929 fi 23930 hardcode_libdir_flag_spec_F77='-R$libdir' 23931 hardcode_shlibpath_var_F77=no 23932 case $host_os in 23933 solaris2.[0-5] | solaris2.[0-5].*) ;; 23934 *) 23935 # The compiler driver will combine and reorder linker options, 23936 # but understands '-z linker_flag'. GCC discards it without '$wl', 23937 # but is careful enough not to reorder. 23938 # Supported since Solaris 2.6 (maybe 2.5.1?) 23939 if test yes = "$GCC"; then 23940 whole_archive_flag_spec_F77='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 23941 else 23942 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' 23943 fi 23944 ;; 23945 esac 23946 link_all_deplibs_F77=yes 23947 ;; 23948 23949 sunos4*) 23950 if test sequent = "$host_vendor"; then 23951 # Use $CC to link under sequent, because it throws in some extra .o 23952 # files that make .init and .fini sections work. 23953 archive_cmds_F77='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 23954 else 23955 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 23956 fi 23957 hardcode_libdir_flag_spec_F77='-L$libdir' 23958 hardcode_direct_F77=yes 23959 hardcode_minus_L_F77=yes 23960 hardcode_shlibpath_var_F77=no 23961 ;; 23962 23963 sysv4) 23964 case $host_vendor in 23965 sni) 23966 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 23967 hardcode_direct_F77=yes # is this really true??? 23968 ;; 23969 siemens) 23970 ## LD is ld it makes a PLAMLIB 23971 ## CC just makes a GrossModule. 23972 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 23973 reload_cmds_F77='$CC -r -o $output$reload_objs' 23974 hardcode_direct_F77=no 23975 ;; 23976 motorola) 23977 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 23978 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 23979 ;; 23980 esac 23981 runpath_var='LD_RUN_PATH' 23982 hardcode_shlibpath_var_F77=no 23983 ;; 23984 23985 sysv4.3*) 23986 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 23987 hardcode_shlibpath_var_F77=no 23988 export_dynamic_flag_spec_F77='-Bexport' 23989 ;; 23990 23991 sysv4*MP*) 23992 if test -d /usr/nec; then 23993 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 23994 hardcode_shlibpath_var_F77=no 23995 runpath_var=LD_RUN_PATH 23996 hardcode_runpath_var=yes 23997 ld_shlibs_F77=yes 23998 fi 23999 ;; 24000 24001 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 24002 no_undefined_flag_F77='$wl-z,text' 24003 archive_cmds_need_lc_F77=no 24004 hardcode_shlibpath_var_F77=no 24005 runpath_var='LD_RUN_PATH' 24006 24007 if test yes = "$GCC"; then 24008 archive_cmds_F77='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 24009 archive_expsym_cmds_F77='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 24010 else 24011 archive_cmds_F77='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 24012 archive_expsym_cmds_F77='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 24013 fi 24014 ;; 24015 24016 sysv5* | sco3.2v5* | sco5v6*) 24017 # Note: We CANNOT use -z defs as we might desire, because we do not 24018 # link with -lc, and that would cause any symbols used from libc to 24019 # always be unresolved, which means just about no library would 24020 # ever link correctly. If we're not using GNU ld we use -z text 24021 # though, which does catch some bad symbols but isn't as heavy-handed 24022 # as -z defs. 24023 no_undefined_flag_F77='$wl-z,text' 24024 allow_undefined_flag_F77='$wl-z,nodefs' 24025 archive_cmds_need_lc_F77=no 24026 hardcode_shlibpath_var_F77=no 24027 hardcode_libdir_flag_spec_F77='$wl-R,$libdir' 24028 hardcode_libdir_separator_F77=':' 24029 link_all_deplibs_F77=yes 24030 export_dynamic_flag_spec_F77='$wl-Bexport' 24031 runpath_var='LD_RUN_PATH' 24032 24033 if test yes = "$GCC"; then 24034 archive_cmds_F77='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 24035 archive_expsym_cmds_F77='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 24036 else 24037 archive_cmds_F77='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 24038 archive_expsym_cmds_F77='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 24039 fi 24040 ;; 24041 24042 uts4*) 24043 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 24044 hardcode_libdir_flag_spec_F77='-L$libdir' 24045 hardcode_shlibpath_var_F77=no 24046 ;; 24047 24048 *) 24049 ld_shlibs_F77=no 24050 ;; 24051 esac 24052 24053 if test sni = "$host_vendor"; then 24054 case $host in 24055 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 24056 export_dynamic_flag_spec_F77='$wl-Blargedynsym' 24057 ;; 24058 esac 24059 fi 24060 fi 24061 24062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5 24063$as_echo "$ld_shlibs_F77" >&6; } 24064test no = "$ld_shlibs_F77" && can_build_shared=no 24065 24066with_gnu_ld_F77=$with_gnu_ld 24067 24068 24069 24070 24071 24072 24073# 24074# Do we need to explicitly link libc? 24075# 24076case "x$archive_cmds_need_lc_F77" in 24077x|xyes) 24078 # Assume -lc should be added 24079 archive_cmds_need_lc_F77=yes 24080 24081 if test yes,yes = "$GCC,$enable_shared"; then 24082 case $archive_cmds_F77 in 24083 *'~'*) 24084 # FIXME: we may have to deal with multi-command sequences. 24085 ;; 24086 '$CC '*) 24087 # Test whether the compiler implicitly links with -lc since on some 24088 # systems, -lgcc has to come before -lc. If gcc already passes -lc 24089 # to ld, don't add -lc before -lgcc. 24090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 24091$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 24092if ${lt_cv_archive_cmds_need_lc_F77+:} false; then : 24093 $as_echo_n "(cached) " >&6 24094else 24095 $RM conftest* 24096 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 24097 24098 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 24099 (eval $ac_compile) 2>&5 24100 ac_status=$? 24101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24102 test $ac_status = 0; } 2>conftest.err; then 24103 soname=conftest 24104 lib=conftest 24105 libobjs=conftest.$ac_objext 24106 deplibs= 24107 wl=$lt_prog_compiler_wl_F77 24108 pic_flag=$lt_prog_compiler_pic_F77 24109 compiler_flags=-v 24110 linker_flags=-v 24111 verstring= 24112 output_objdir=. 24113 libname=conftest 24114 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 24115 allow_undefined_flag_F77= 24116 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 24117 (eval $archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 24118 ac_status=$? 24119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24120 test $ac_status = 0; } 24121 then 24122 lt_cv_archive_cmds_need_lc_F77=no 24123 else 24124 lt_cv_archive_cmds_need_lc_F77=yes 24125 fi 24126 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 24127 else 24128 cat conftest.err 1>&5 24129 fi 24130 $RM conftest* 24131 24132fi 24133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_F77" >&5 24134$as_echo "$lt_cv_archive_cmds_need_lc_F77" >&6; } 24135 archive_cmds_need_lc_F77=$lt_cv_archive_cmds_need_lc_F77 24136 ;; 24137 esac 24138 fi 24139 ;; 24140esac 24141 24142 24143 24144 24145 24146 24147 24148 24149 24150 24151 24152 24153 24154 24155 24156 24157 24158 24159 24160 24161 24162 24163 24164 24165 24166 24167 24168 24169 24170 24171 24172 24173 24174 24175 24176 24177 24178 24179 24180 24181 24182 24183 24184 24185 24186 24187 24188 24189 24190 24191 24192 24193 24194 24195 24196 24197 24198 24199 24200 24201 24202 24203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 24204$as_echo_n "checking dynamic linker characteristics... " >&6; } 24205 24206library_names_spec= 24207libname_spec='lib$name' 24208soname_spec= 24209shrext_cmds=.so 24210postinstall_cmds= 24211postuninstall_cmds= 24212finish_cmds= 24213finish_eval= 24214shlibpath_var= 24215shlibpath_overrides_runpath=unknown 24216version_type=none 24217dynamic_linker="$host_os ld.so" 24218sys_lib_dlsearch_path_spec="/lib /usr/lib" 24219need_lib_prefix=unknown 24220hardcode_into_libs=no 24221 24222# when you set need_version to no, make sure it does not cause -set_version 24223# flags to be left without arguments 24224need_version=unknown 24225 24226 24227 24228case $host_os in 24229aix3*) 24230 version_type=linux # correct to gnu/linux during the next big refactor 24231 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 24232 shlibpath_var=LIBPATH 24233 24234 # AIX 3 has no versioning support, so we append a major version to the name. 24235 soname_spec='$libname$release$shared_ext$major' 24236 ;; 24237 24238aix[4-9]*) 24239 version_type=linux # correct to gnu/linux during the next big refactor 24240 need_lib_prefix=no 24241 need_version=no 24242 hardcode_into_libs=yes 24243 if test ia64 = "$host_cpu"; then 24244 # AIX 5 supports IA64 24245 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 24246 shlibpath_var=LD_LIBRARY_PATH 24247 else 24248 # With GCC up to 2.95.x, collect2 would create an import file 24249 # for dependence libraries. The import file would start with 24250 # the line '#! .'. This would cause the generated library to 24251 # depend on '.', always an invalid library. This was fixed in 24252 # development snapshots of GCC prior to 3.0. 24253 case $host_os in 24254 aix4 | aix4.[01] | aix4.[01].*) 24255 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 24256 echo ' yes ' 24257 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 24258 : 24259 else 24260 can_build_shared=no 24261 fi 24262 ;; 24263 esac 24264 # Using Import Files as archive members, it is possible to support 24265 # filename-based versioning of shared library archives on AIX. While 24266 # this would work for both with and without runtime linking, it will 24267 # prevent static linking of such archives. So we do filename-based 24268 # shared library versioning with .so extension only, which is used 24269 # when both runtime linking and shared linking is enabled. 24270 # Unfortunately, runtime linking may impact performance, so we do 24271 # not want this to be the default eventually. Also, we use the 24272 # versioned .so libs for executables only if there is the -brtl 24273 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 24274 # To allow for filename-based versioning support, we need to create 24275 # libNAME.so.V as an archive file, containing: 24276 # *) an Import File, referring to the versioned filename of the 24277 # archive as well as the shared archive member, telling the 24278 # bitwidth (32 or 64) of that shared object, and providing the 24279 # list of exported symbols of that shared object, eventually 24280 # decorated with the 'weak' keyword 24281 # *) the shared object with the F_LOADONLY flag set, to really avoid 24282 # it being seen by the linker. 24283 # At run time we better use the real file rather than another symlink, 24284 # but for link time we create the symlink libNAME.so -> libNAME.so.V 24285 24286 case $with_aix_soname,$aix_use_runtimelinking in 24287 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 24288 # soname into executable. Probably we can add versioning support to 24289 # collect2, so additional links can be useful in future. 24290 aix,yes) # traditional libtool 24291 dynamic_linker='AIX unversionable lib.so' 24292 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 24293 # instead of lib<name>.a to let people know that these are not 24294 # typical AIX shared libraries. 24295 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 24296 ;; 24297 aix,no) # traditional AIX only 24298 dynamic_linker='AIX lib.a(lib.so.V)' 24299 # We preserve .a as extension for shared libraries through AIX4.2 24300 # and later when we are not doing run time linking. 24301 library_names_spec='$libname$release.a $libname.a' 24302 soname_spec='$libname$release$shared_ext$major' 24303 ;; 24304 svr4,*) # full svr4 only 24305 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 24306 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 24307 # We do not specify a path in Import Files, so LIBPATH fires. 24308 shlibpath_overrides_runpath=yes 24309 ;; 24310 *,yes) # both, prefer svr4 24311 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 24312 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 24313 # unpreferred sharedlib libNAME.a needs extra handling 24314 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"' 24315 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"' 24316 # We do not specify a path in Import Files, so LIBPATH fires. 24317 shlibpath_overrides_runpath=yes 24318 ;; 24319 *,no) # both, prefer aix 24320 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 24321 library_names_spec='$libname$release.a $libname.a' 24322 soname_spec='$libname$release$shared_ext$major' 24323 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 24324 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)' 24325 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"' 24326 ;; 24327 esac 24328 shlibpath_var=LIBPATH 24329 fi 24330 ;; 24331 24332amigaos*) 24333 case $host_cpu in 24334 powerpc) 24335 # Since July 2007 AmigaOS4 officially supports .so libraries. 24336 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 24337 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 24338 ;; 24339 m68k) 24340 library_names_spec='$libname.ixlibrary $libname.a' 24341 # Create ${libname}_ixlibrary.a entries in /sys/libs. 24342 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' 24343 ;; 24344 esac 24345 ;; 24346 24347beos*) 24348 library_names_spec='$libname$shared_ext' 24349 dynamic_linker="$host_os ld.so" 24350 shlibpath_var=LIBRARY_PATH 24351 ;; 24352 24353bsdi[45]*) 24354 version_type=linux # correct to gnu/linux during the next big refactor 24355 need_version=no 24356 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 24357 soname_spec='$libname$release$shared_ext$major' 24358 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 24359 shlibpath_var=LD_LIBRARY_PATH 24360 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 24361 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 24362 # the default ld.so.conf also contains /usr/contrib/lib and 24363 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 24364 # libtool to hard-code these into programs 24365 ;; 24366 24367cygwin* | mingw* | pw32* | cegcc*) 24368 version_type=windows 24369 shrext_cmds=.dll 24370 need_version=no 24371 need_lib_prefix=no 24372 24373 case $GCC,$cc_basename in 24374 yes,*) 24375 # gcc 24376 library_names_spec='$libname.dll.a' 24377 # DLL is installed to $(libdir)/../bin by postinstall_cmds 24378 postinstall_cmds='base_file=`basename \$file`~ 24379 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 24380 dldir=$destdir/`dirname \$dlpath`~ 24381 test -d \$dldir || mkdir -p \$dldir~ 24382 $install_prog $dir/$dlname \$dldir/$dlname~ 24383 chmod a+x \$dldir/$dlname~ 24384 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 24385 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 24386 fi' 24387 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 24388 dlpath=$dir/\$dldll~ 24389 $RM \$dlpath' 24390 shlibpath_overrides_runpath=yes 24391 24392 case $host_os in 24393 cygwin*) 24394 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 24395 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 24396 24397 ;; 24398 mingw* | cegcc*) 24399 # MinGW DLLs use traditional 'lib' prefix 24400 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 24401 ;; 24402 pw32*) 24403 # pw32 DLLs use 'pw' prefix rather than 'lib' 24404 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 24405 ;; 24406 esac 24407 dynamic_linker='Win32 ld.exe' 24408 ;; 24409 24410 *,cl*) 24411 # Native MSVC 24412 libname_spec='$name' 24413 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 24414 library_names_spec='$libname.dll.lib' 24415 24416 case $build_os in 24417 mingw*) 24418 sys_lib_search_path_spec= 24419 lt_save_ifs=$IFS 24420 IFS=';' 24421 for lt_path in $LIB 24422 do 24423 IFS=$lt_save_ifs 24424 # Let DOS variable expansion print the short 8.3 style file name. 24425 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 24426 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 24427 done 24428 IFS=$lt_save_ifs 24429 # Convert to MSYS style. 24430 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 24431 ;; 24432 cygwin*) 24433 # Convert to unix form, then to dos form, then back to unix form 24434 # but this time dos style (no spaces!) so that the unix form looks 24435 # like /cygdrive/c/PROGRA~1:/cygdr... 24436 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 24437 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 24438 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 24439 ;; 24440 *) 24441 sys_lib_search_path_spec=$LIB 24442 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 24443 # It is most probably a Windows format PATH. 24444 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 24445 else 24446 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 24447 fi 24448 # FIXME: find the short name or the path components, as spaces are 24449 # common. (e.g. "Program Files" -> "PROGRA~1") 24450 ;; 24451 esac 24452 24453 # DLL is installed to $(libdir)/../bin by postinstall_cmds 24454 postinstall_cmds='base_file=`basename \$file`~ 24455 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 24456 dldir=$destdir/`dirname \$dlpath`~ 24457 test -d \$dldir || mkdir -p \$dldir~ 24458 $install_prog $dir/$dlname \$dldir/$dlname' 24459 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 24460 dlpath=$dir/\$dldll~ 24461 $RM \$dlpath' 24462 shlibpath_overrides_runpath=yes 24463 dynamic_linker='Win32 link.exe' 24464 ;; 24465 24466 *) 24467 # Assume MSVC wrapper 24468 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 24469 dynamic_linker='Win32 ld.exe' 24470 ;; 24471 esac 24472 # FIXME: first we should search . and the directory the executable is in 24473 shlibpath_var=PATH 24474 ;; 24475 24476darwin* | rhapsody*) 24477 dynamic_linker="$host_os dyld" 24478 version_type=darwin 24479 need_lib_prefix=no 24480 need_version=no 24481 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 24482 soname_spec='$libname$release$major$shared_ext' 24483 shlibpath_overrides_runpath=yes 24484 shlibpath_var=DYLD_LIBRARY_PATH 24485 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 24486 24487 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 24488 ;; 24489 24490dgux*) 24491 version_type=linux # correct to gnu/linux during the next big refactor 24492 need_lib_prefix=no 24493 need_version=no 24494 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 24495 soname_spec='$libname$release$shared_ext$major' 24496 shlibpath_var=LD_LIBRARY_PATH 24497 ;; 24498 24499freebsd* | dragonfly*) 24500 # DragonFly does not have aout. When/if they implement a new 24501 # versioning mechanism, adjust this. 24502 if test -x /usr/bin/objformat; then 24503 objformat=`/usr/bin/objformat` 24504 else 24505 case $host_os in 24506 freebsd[23].*) objformat=aout ;; 24507 *) objformat=elf ;; 24508 esac 24509 fi 24510 version_type=freebsd-$objformat 24511 case $version_type in 24512 freebsd-elf*) 24513 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 24514 soname_spec='$libname$release$shared_ext$major' 24515 need_version=no 24516 need_lib_prefix=no 24517 ;; 24518 freebsd-*) 24519 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 24520 need_version=yes 24521 ;; 24522 esac 24523 shlibpath_var=LD_LIBRARY_PATH 24524 case $host_os in 24525 freebsd2.*) 24526 shlibpath_overrides_runpath=yes 24527 ;; 24528 freebsd3.[01]* | freebsdelf3.[01]*) 24529 shlibpath_overrides_runpath=yes 24530 hardcode_into_libs=yes 24531 ;; 24532 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 24533 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 24534 shlibpath_overrides_runpath=no 24535 hardcode_into_libs=yes 24536 ;; 24537 *) # from 4.6 on, and DragonFly 24538 shlibpath_overrides_runpath=yes 24539 hardcode_into_libs=yes 24540 ;; 24541 esac 24542 ;; 24543 24544haiku*) 24545 version_type=linux # correct to gnu/linux during the next big refactor 24546 need_lib_prefix=no 24547 need_version=no 24548 dynamic_linker="$host_os runtime_loader" 24549 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 24550 soname_spec='$libname$release$shared_ext$major' 24551 shlibpath_var=LIBRARY_PATH 24552 shlibpath_overrides_runpath=no 24553 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 24554 hardcode_into_libs=yes 24555 ;; 24556 24557hpux9* | hpux10* | hpux11*) 24558 # Give a soname corresponding to the major version so that dld.sl refuses to 24559 # link against other versions. 24560 version_type=sunos 24561 need_lib_prefix=no 24562 need_version=no 24563 case $host_cpu in 24564 ia64*) 24565 shrext_cmds='.so' 24566 hardcode_into_libs=yes 24567 dynamic_linker="$host_os dld.so" 24568 shlibpath_var=LD_LIBRARY_PATH 24569 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 24570 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 24571 soname_spec='$libname$release$shared_ext$major' 24572 if test 32 = "$HPUX_IA64_MODE"; then 24573 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 24574 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 24575 else 24576 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 24577 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 24578 fi 24579 ;; 24580 hppa*64*) 24581 shrext_cmds='.sl' 24582 hardcode_into_libs=yes 24583 dynamic_linker="$host_os dld.sl" 24584 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 24585 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 24586 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 24587 soname_spec='$libname$release$shared_ext$major' 24588 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 24589 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 24590 ;; 24591 *) 24592 shrext_cmds='.sl' 24593 dynamic_linker="$host_os dld.sl" 24594 shlibpath_var=SHLIB_PATH 24595 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 24596 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 24597 soname_spec='$libname$release$shared_ext$major' 24598 ;; 24599 esac 24600 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 24601 postinstall_cmds='chmod 555 $lib' 24602 # or fails outright, so override atomically: 24603 install_override_mode=555 24604 ;; 24605 24606interix[3-9]*) 24607 version_type=linux # correct to gnu/linux during the next big refactor 24608 need_lib_prefix=no 24609 need_version=no 24610 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 24611 soname_spec='$libname$release$shared_ext$major' 24612 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 24613 shlibpath_var=LD_LIBRARY_PATH 24614 shlibpath_overrides_runpath=no 24615 hardcode_into_libs=yes 24616 ;; 24617 24618irix5* | irix6* | nonstopux*) 24619 case $host_os in 24620 nonstopux*) version_type=nonstopux ;; 24621 *) 24622 if test yes = "$lt_cv_prog_gnu_ld"; then 24623 version_type=linux # correct to gnu/linux during the next big refactor 24624 else 24625 version_type=irix 24626 fi ;; 24627 esac 24628 need_lib_prefix=no 24629 need_version=no 24630 soname_spec='$libname$release$shared_ext$major' 24631 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 24632 case $host_os in 24633 irix5* | nonstopux*) 24634 libsuff= shlibsuff= 24635 ;; 24636 *) 24637 case $LD in # libtool.m4 will add one of these switches to LD 24638 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 24639 libsuff= shlibsuff= libmagic=32-bit;; 24640 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 24641 libsuff=32 shlibsuff=N32 libmagic=N32;; 24642 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 24643 libsuff=64 shlibsuff=64 libmagic=64-bit;; 24644 *) libsuff= shlibsuff= libmagic=never-match;; 24645 esac 24646 ;; 24647 esac 24648 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 24649 shlibpath_overrides_runpath=no 24650 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 24651 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 24652 hardcode_into_libs=yes 24653 ;; 24654 24655# No shared lib support for Linux oldld, aout, or coff. 24656linux*oldld* | linux*aout* | linux*coff*) 24657 dynamic_linker=no 24658 ;; 24659 24660linux*android*) 24661 version_type=none # Android doesn't support versioned libraries. 24662 need_lib_prefix=no 24663 need_version=no 24664 library_names_spec='$libname$release$shared_ext' 24665 soname_spec='$libname$release$shared_ext' 24666 finish_cmds= 24667 shlibpath_var=LD_LIBRARY_PATH 24668 shlibpath_overrides_runpath=yes 24669 24670 # This implies no fast_install, which is unacceptable. 24671 # Some rework will be needed to allow for fast_install 24672 # before this can be enabled. 24673 hardcode_into_libs=yes 24674 24675 dynamic_linker='Android linker' 24676 # Don't embed -rpath directories since the linker doesn't support them. 24677 hardcode_libdir_flag_spec_F77='-L$libdir' 24678 ;; 24679 24680# This must be glibc/ELF. 24681linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 24682 version_type=linux # correct to gnu/linux during the next big refactor 24683 need_lib_prefix=no 24684 need_version=no 24685 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 24686 soname_spec='$libname$release$shared_ext$major' 24687 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 24688 shlibpath_var=LD_LIBRARY_PATH 24689 shlibpath_overrides_runpath=no 24690# EF : 24691 hardcode_into_libs=yes 24692 24693 # Some binutils ld are patched to set DT_RUNPATH 24694 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 24695 $as_echo_n "(cached) " >&6 24696else 24697 lt_cv_shlibpath_overrides_runpath=no 24698 save_LDFLAGS=$LDFLAGS 24699 save_libdir=$libdir 24700 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_F77\"; \ 24701 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_F77\"" 24702 cat > conftest.$ac_ext <<_ACEOF 24703 program main 24704 24705 end 24706_ACEOF 24707if ac_fn_f77_try_link "$LINENO"; then : 24708 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 24709 lt_cv_shlibpath_overrides_runpath=yes 24710fi 24711fi 24712rm -f core conftest.err conftest.$ac_objext \ 24713 conftest$ac_exeext conftest.$ac_ext 24714 LDFLAGS=$save_LDFLAGS 24715 libdir=$save_libdir 24716 24717fi 24718 24719 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 24720 24721 # This implies no fast_install, which is unacceptable. 24722 # Some rework will be needed to allow for fast_install 24723 # before this can be enabled. 24724 hardcode_into_libs=yes 24725 24726 # Ideally, we could use ldconfig to report *all* directores which are 24727 # searched for libraries, however this is still not possible. Aside from not 24728 # being certain /sbin/ldconfig is available, command 24729 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 24730 # even though it is searched at run-time. Try to do the best guess by 24731 # appending ld.so.conf contents (and includes) to the search path. 24732 if test -f /etc/ld.so.conf; then 24733 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' ' '` 24734 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 24735 fi 24736 24737 # We used to test for /lib/ld.so.1 and disable shared libraries on 24738 # powerpc, because MkLinux only supported shared libraries with the 24739 # GNU dynamic linker. Since this was broken with cross compilers, 24740 # most powerpc-linux boxes support dynamic linking these days and 24741 # people can always --disable-shared, the test was removed, and we 24742 # assume the GNU/Linux dynamic linker is in use. 24743 dynamic_linker='GNU/Linux ld.so' 24744 ;; 24745 24746netbsd*) 24747 version_type=sunos 24748 need_lib_prefix=no 24749 need_version=no 24750 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 24751 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 24752 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 24753 dynamic_linker='NetBSD (a.out) ld.so' 24754 else 24755 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 24756 soname_spec='$libname$release$shared_ext$major' 24757 dynamic_linker='NetBSD ld.elf_so' 24758 fi 24759 shlibpath_var=LD_LIBRARY_PATH 24760 shlibpath_overrides_runpath=yes 24761 hardcode_into_libs=yes 24762 ;; 24763 24764newsos6) 24765 version_type=linux # correct to gnu/linux during the next big refactor 24766 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 24767 shlibpath_var=LD_LIBRARY_PATH 24768 shlibpath_overrides_runpath=yes 24769 ;; 24770 24771*nto* | *qnx*) 24772 version_type=qnx 24773 need_lib_prefix=no 24774 need_version=no 24775 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 24776 soname_spec='$libname$release$shared_ext$major' 24777 shlibpath_var=LD_LIBRARY_PATH 24778 shlibpath_overrides_runpath=no 24779 hardcode_into_libs=yes 24780 dynamic_linker='ldqnx.so' 24781 ;; 24782 24783openbsd* | bitrig*) 24784 version_type=sunos 24785 sys_lib_dlsearch_path_spec=/usr/lib 24786 need_lib_prefix=no 24787 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 24788 need_version=no 24789 else 24790 need_version=yes 24791 fi 24792 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 24793 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 24794 shlibpath_var=LD_LIBRARY_PATH 24795 shlibpath_overrides_runpath=yes 24796 ;; 24797 24798os2*) 24799 libname_spec='$name' 24800 version_type=windows 24801 shrext_cmds=.dll 24802 need_version=no 24803 need_lib_prefix=no 24804 # OS/2 can only load a DLL with a base name of 8 characters or less. 24805 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 24806 v=$($ECHO $release$versuffix | tr -d .-); 24807 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 24808 $ECHO $n$v`$shared_ext' 24809 library_names_spec='${libname}_dll.$libext' 24810 dynamic_linker='OS/2 ld.exe' 24811 shlibpath_var=BEGINLIBPATH 24812 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 24813 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 24814 postinstall_cmds='base_file=`basename \$file`~ 24815 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 24816 dldir=$destdir/`dirname \$dlpath`~ 24817 test -d \$dldir || mkdir -p \$dldir~ 24818 $install_prog $dir/$dlname \$dldir/$dlname~ 24819 chmod a+x \$dldir/$dlname~ 24820 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 24821 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 24822 fi' 24823 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 24824 dlpath=$dir/\$dldll~ 24825 $RM \$dlpath' 24826 ;; 24827 24828osf3* | osf4* | osf5*) 24829 version_type=osf 24830 need_lib_prefix=no 24831 need_version=no 24832 soname_spec='$libname$release$shared_ext$major' 24833 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 24834 shlibpath_var=LD_LIBRARY_PATH 24835 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 24836 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 24837 ;; 24838 24839rdos*) 24840 dynamic_linker=no 24841 ;; 24842 24843solaris*) 24844 version_type=linux # correct to gnu/linux during the next big refactor 24845 need_lib_prefix=no 24846 need_version=no 24847 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 24848 soname_spec='$libname$release$shared_ext$major' 24849 shlibpath_var=LD_LIBRARY_PATH 24850 shlibpath_overrides_runpath=yes 24851 hardcode_into_libs=yes 24852 # ldd complains unless libraries are executable 24853 postinstall_cmds='chmod +x $lib' 24854 ;; 24855 24856sunos4*) 24857 version_type=sunos 24858 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 24859 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 24860 shlibpath_var=LD_LIBRARY_PATH 24861 shlibpath_overrides_runpath=yes 24862 if test yes = "$with_gnu_ld"; then 24863 need_lib_prefix=no 24864 fi 24865 need_version=yes 24866 ;; 24867 24868sysv4 | sysv4.3*) 24869 version_type=linux # correct to gnu/linux during the next big refactor 24870 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 24871 soname_spec='$libname$release$shared_ext$major' 24872 shlibpath_var=LD_LIBRARY_PATH 24873 case $host_vendor in 24874 sni) 24875 shlibpath_overrides_runpath=no 24876 need_lib_prefix=no 24877 runpath_var=LD_RUN_PATH 24878 ;; 24879 siemens) 24880 need_lib_prefix=no 24881 ;; 24882 motorola) 24883 need_lib_prefix=no 24884 need_version=no 24885 shlibpath_overrides_runpath=no 24886 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 24887 ;; 24888 esac 24889 ;; 24890 24891sysv4*MP*) 24892 if test -d /usr/nec; then 24893 version_type=linux # correct to gnu/linux during the next big refactor 24894 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 24895 soname_spec='$libname$shared_ext.$major' 24896 shlibpath_var=LD_LIBRARY_PATH 24897 fi 24898 ;; 24899 24900sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 24901 version_type=sco 24902 need_lib_prefix=no 24903 need_version=no 24904 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 24905 soname_spec='$libname$release$shared_ext$major' 24906 shlibpath_var=LD_LIBRARY_PATH 24907 shlibpath_overrides_runpath=yes 24908 hardcode_into_libs=yes 24909 if test yes = "$with_gnu_ld"; then 24910 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 24911 else 24912 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 24913 case $host_os in 24914 sco3.2v5*) 24915 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 24916 ;; 24917 esac 24918 fi 24919 sys_lib_dlsearch_path_spec='/usr/lib' 24920 ;; 24921 24922tpf*) 24923 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 24924 version_type=linux # correct to gnu/linux during the next big refactor 24925 need_lib_prefix=no 24926 need_version=no 24927 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 24928 shlibpath_var=LD_LIBRARY_PATH 24929 shlibpath_overrides_runpath=no 24930 hardcode_into_libs=yes 24931 ;; 24932 24933uts4*) 24934 version_type=linux # correct to gnu/linux during the next big refactor 24935 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 24936 soname_spec='$libname$release$shared_ext$major' 24937 shlibpath_var=LD_LIBRARY_PATH 24938 ;; 24939 24940*) 24941 dynamic_linker=no 24942 ;; 24943esac 24944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 24945$as_echo "$dynamic_linker" >&6; } 24946test no = "$dynamic_linker" && can_build_shared=no 24947 24948variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 24949if test yes = "$GCC"; then 24950 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 24951fi 24952 24953if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 24954 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 24955fi 24956 24957if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 24958 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 24959fi 24960 24961# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 24962configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 24963 24964# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 24965func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 24966 24967# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 24968configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 24969 24970 24971 24972 24973 24974 24975 24976 24977 24978 24979 24980 24981 24982 24983 24984 24985 24986 24987 24988 24989 24990 24991 24992 24993 24994 24995 24996 24997 24998 24999 25000 25001 25002 25003 25004 25005 25006 25007 25008 25009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 25010$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 25011hardcode_action_F77= 25012if test -n "$hardcode_libdir_flag_spec_F77" || 25013 test -n "$runpath_var_F77" || 25014 test yes = "$hardcode_automatic_F77"; then 25015 25016 # We can hardcode non-existent directories. 25017 if test no != "$hardcode_direct_F77" && 25018 # If the only mechanism to avoid hardcoding is shlibpath_var, we 25019 # have to relink, otherwise we might link with an installed library 25020 # when we should be linking with a yet-to-be-installed one 25021 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, F77)" && 25022 test no != "$hardcode_minus_L_F77"; then 25023 # Linking always hardcodes the temporary library directory. 25024 hardcode_action_F77=relink 25025 else 25026 # We can link without hardcoding, and we can hardcode nonexisting dirs. 25027 hardcode_action_F77=immediate 25028 fi 25029else 25030 # We cannot hardcode anything, or else we can only hardcode existing 25031 # directories. 25032 hardcode_action_F77=unsupported 25033fi 25034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5 25035$as_echo "$hardcode_action_F77" >&6; } 25036 25037if test relink = "$hardcode_action_F77" || 25038 test yes = "$inherit_rpath_F77"; then 25039 # Fast installation is not supported 25040 enable_fast_install=no 25041elif test yes = "$shlibpath_overrides_runpath" || 25042 test no = "$enable_shared"; then 25043 # Fast installation is not necessary 25044 enable_fast_install=needless 25045fi 25046 25047 25048 25049 25050 25051 25052 25053 fi # test -n "$compiler" 25054 25055 GCC=$lt_save_GCC 25056 CC=$lt_save_CC 25057 CFLAGS=$lt_save_CFLAGS 25058fi # test yes != "$_lt_disable_F77" 25059 25060ac_ext=c 25061ac_cpp='$CPP $CPPFLAGS' 25062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 25063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 25064ac_compiler_gnu=$ac_cv_c_compiler_gnu 25065 25066 25067 25068 ac_ext=${ac_fc_srcext-f} 25069ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 25070ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 25071ac_compiler_gnu=$ac_cv_fc_compiler_gnu 25072 25073 25074if test -z "$FC" || test no = "$FC"; then 25075 _lt_disable_FC=yes 25076fi 25077 25078archive_cmds_need_lc_FC=no 25079allow_undefined_flag_FC= 25080always_export_symbols_FC=no 25081archive_expsym_cmds_FC= 25082export_dynamic_flag_spec_FC= 25083hardcode_direct_FC=no 25084hardcode_direct_absolute_FC=no 25085hardcode_libdir_flag_spec_FC= 25086hardcode_libdir_separator_FC= 25087hardcode_minus_L_FC=no 25088hardcode_automatic_FC=no 25089inherit_rpath_FC=no 25090module_cmds_FC= 25091module_expsym_cmds_FC= 25092link_all_deplibs_FC=unknown 25093old_archive_cmds_FC=$old_archive_cmds 25094reload_flag_FC=$reload_flag 25095reload_cmds_FC=$reload_cmds 25096no_undefined_flag_FC= 25097whole_archive_flag_spec_FC= 25098enable_shared_with_static_runtimes_FC=no 25099 25100# Source file extension for fc test sources. 25101ac_ext=${ac_fc_srcext-f} 25102 25103# Object file extension for compiled fc test sources. 25104objext=o 25105objext_FC=$objext 25106 25107# No sense in running all these tests if we already determined that 25108# the FC compiler isn't working. Some variables (like enable_shared) 25109# are currently assumed to apply to all compilers on this platform, 25110# and will be corrupted by setting them based on a non-working compiler. 25111if test yes != "$_lt_disable_FC"; then 25112 # Code to be used in simple compile tests 25113 lt_simple_compile_test_code="\ 25114 subroutine t 25115 return 25116 end 25117" 25118 25119 # Code to be used in simple link tests 25120 lt_simple_link_test_code="\ 25121 program t 25122 end 25123" 25124 25125 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 25126 25127 25128 25129 25130 25131 25132# If no C compiler was specified, use CC. 25133LTCC=${LTCC-"$CC"} 25134 25135# If no C compiler flags were specified, use CFLAGS. 25136LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 25137 25138# Allow CC to be a program name with arguments. 25139compiler=$CC 25140 25141 25142 # save warnings/boilerplate of simple test code 25143 ac_outfile=conftest.$ac_objext 25144echo "$lt_simple_compile_test_code" >conftest.$ac_ext 25145eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 25146_lt_compiler_boilerplate=`cat conftest.err` 25147$RM conftest* 25148 25149 ac_outfile=conftest.$ac_objext 25150echo "$lt_simple_link_test_code" >conftest.$ac_ext 25151eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 25152_lt_linker_boilerplate=`cat conftest.err` 25153$RM -r conftest* 25154 25155 25156 # Allow CC to be a program name with arguments. 25157 lt_save_CC=$CC 25158 lt_save_GCC=$GCC 25159 lt_save_CFLAGS=$CFLAGS 25160 CC=${FC-"f95"} 25161 CFLAGS=$FCFLAGS 25162 compiler=$CC 25163 GCC=$ac_cv_fc_compiler_gnu 25164 25165 compiler_FC=$CC 25166 func_cc_basename $compiler 25167cc_basename=$func_cc_basename_result 25168 25169 25170 if test -n "$compiler"; then 25171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 25172$as_echo_n "checking if libtool supports shared libraries... " >&6; } 25173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 25174$as_echo "$can_build_shared" >&6; } 25175 25176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 25177$as_echo_n "checking whether to build shared libraries... " >&6; } 25178 test no = "$can_build_shared" && enable_shared=no 25179 25180 # On AIX, shared libraries and static libraries use the same namespace, and 25181 # are all built from PIC. 25182 case $host_os in 25183 aix3*) 25184 test yes = "$enable_shared" && enable_static=no 25185 if test -n "$RANLIB"; then 25186 archive_cmds="$archive_cmds~\$RANLIB \$lib" 25187 postinstall_cmds='$RANLIB $lib' 25188 fi 25189 ;; 25190 aix[4-9]*) 25191 if test ia64 != "$host_cpu"; then 25192 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 25193 yes,aix,yes) ;; # shared object as lib.so file only 25194 yes,svr4,*) ;; # shared object as lib.so archive member only 25195 yes,*) enable_static=no ;; # shared object in lib.a archive as well 25196 esac 25197 fi 25198 ;; 25199 esac 25200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 25201$as_echo "$enable_shared" >&6; } 25202 25203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 25204$as_echo_n "checking whether to build static libraries... " >&6; } 25205 # Make sure either enable_shared or enable_static is yes. 25206 test yes = "$enable_shared" || enable_static=yes 25207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 25208$as_echo "$enable_static" >&6; } 25209 25210 GCC_FC=$ac_cv_fc_compiler_gnu 25211 LD_FC=$LD 25212 25213 ## CAVEAT EMPTOR: 25214 ## There is no encapsulation within the following macros, do not change 25215 ## the running order or otherwise move them around unless you know exactly 25216 ## what you are doing... 25217 # Dependencies to place before and after the object being linked: 25218predep_objects_FC= 25219postdep_objects_FC= 25220predeps_FC= 25221postdeps_FC= 25222compiler_lib_search_path_FC= 25223 25224cat > conftest.$ac_ext <<_LT_EOF 25225 subroutine foo 25226 implicit none 25227 integer a 25228 a=0 25229 return 25230 end 25231_LT_EOF 25232 25233 25234_lt_libdeps_save_CFLAGS=$CFLAGS 25235case "$CC $CFLAGS " in #( 25236*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 25237*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 25238*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 25239esac 25240 25241if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 25242 (eval $ac_compile) 2>&5 25243 ac_status=$? 25244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25245 test $ac_status = 0; }; then 25246 # Parse the compiler output and extract the necessary 25247 # objects, libraries and library flags. 25248 25249 # Sentinel used to keep track of whether or not we are before 25250 # the conftest object file. 25251 pre_test_object_deps_done=no 25252 25253 for p in `eval "$output_verbose_link_cmd"`; do 25254 case $prev$p in 25255 25256 -L* | -R* | -l*) 25257 # Some compilers place space between "-{L,R}" and the path. 25258 # Remove the space. 25259 if test x-L = "$p" || 25260 test x-R = "$p"; then 25261 prev=$p 25262 continue 25263 fi 25264 25265 # Expand the sysroot to ease extracting the directories later. 25266 if test -z "$prev"; then 25267 case $p in 25268 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 25269 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 25270 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 25271 esac 25272 fi 25273 case $p in 25274 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 25275 esac 25276 if test no = "$pre_test_object_deps_done"; then 25277 case $prev in 25278 -L | -R) 25279 # Internal compiler library paths should come after those 25280 # provided the user. The postdeps already come after the 25281 # user supplied libs so there is no need to process them. 25282 if test -z "$compiler_lib_search_path_FC"; then 25283 compiler_lib_search_path_FC=$prev$p 25284 else 25285 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} $prev$p" 25286 fi 25287 ;; 25288 # The "-l" case would never come before the object being 25289 # linked, so don't bother handling this case. 25290 esac 25291 else 25292 if test -z "$postdeps_FC"; then 25293 postdeps_FC=$prev$p 25294 else 25295 postdeps_FC="${postdeps_FC} $prev$p" 25296 fi 25297 fi 25298 prev= 25299 ;; 25300 25301 *.lto.$objext) ;; # Ignore GCC LTO objects 25302 *.$objext) 25303 # This assumes that the test object file only shows up 25304 # once in the compiler output. 25305 if test "$p" = "conftest.$objext"; then 25306 pre_test_object_deps_done=yes 25307 continue 25308 fi 25309 25310 if test no = "$pre_test_object_deps_done"; then 25311 if test -z "$predep_objects_FC"; then 25312 predep_objects_FC=$p 25313 else 25314 predep_objects_FC="$predep_objects_FC $p" 25315 fi 25316 else 25317 if test -z "$postdep_objects_FC"; then 25318 postdep_objects_FC=$p 25319 else 25320 postdep_objects_FC="$postdep_objects_FC $p" 25321 fi 25322 fi 25323 ;; 25324 25325 *) ;; # Ignore the rest. 25326 25327 esac 25328 done 25329 25330 # Clean up. 25331 rm -f a.out a.exe 25332else 25333 echo "libtool.m4: error: problem compiling FC test program" 25334fi 25335 25336$RM -f confest.$objext 25337CFLAGS=$_lt_libdeps_save_CFLAGS 25338 25339# PORTME: override above test on systems where it is broken 25340 25341 25342case " $postdeps_FC " in 25343*" -lc "*) archive_cmds_need_lc_FC=no ;; 25344esac 25345 compiler_lib_search_dirs_FC= 25346if test -n "${compiler_lib_search_path_FC}"; then 25347 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | $SED -e 's! -L! !g' -e 's!^ !!'` 25348fi 25349 25350 25351 25352 25353 25354 25355 25356 25357 25358 25359 25360 25361 25362 lt_prog_compiler_wl_FC= 25363lt_prog_compiler_pic_FC= 25364lt_prog_compiler_static_FC= 25365 25366 25367 if test yes = "$GCC"; then 25368 lt_prog_compiler_wl_FC='-Wl,' 25369 lt_prog_compiler_static_FC='-static' 25370 25371 case $host_os in 25372 aix*) 25373 # All AIX code is PIC. 25374 if test ia64 = "$host_cpu"; then 25375 # AIX 5 now supports IA64 processor 25376 lt_prog_compiler_static_FC='-Bstatic' 25377 fi 25378 lt_prog_compiler_pic_FC='-fPIC' 25379 ;; 25380 25381 amigaos*) 25382 case $host_cpu in 25383 powerpc) 25384 # see comment about AmigaOS4 .so support 25385 lt_prog_compiler_pic_FC='-fPIC' 25386 ;; 25387 m68k) 25388 # FIXME: we need at least 68020 code to build shared libraries, but 25389 # adding the '-m68020' flag to GCC prevents building anything better, 25390 # like '-m68040'. 25391 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4' 25392 ;; 25393 esac 25394 ;; 25395 25396 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 25397 # PIC is the default for these OSes. 25398 ;; 25399 25400 mingw* | cygwin* | pw32* | os2* | cegcc*) 25401 # This hack is so that the source file can tell whether it is being 25402 # built for inclusion in a dll (and should export symbols for example). 25403 # Although the cygwin gcc ignores -fPIC, still need this for old-style 25404 # (--disable-auto-import) libraries 25405 lt_prog_compiler_pic_FC='-DDLL_EXPORT' 25406 case $host_os in 25407 os2*) 25408 lt_prog_compiler_static_FC='$wl-static' 25409 ;; 25410 esac 25411 ;; 25412 25413 darwin* | rhapsody*) 25414 # PIC is the default on this platform 25415 # Common symbols not allowed in MH_DYLIB files 25416 lt_prog_compiler_pic_FC='-fno-common' 25417 ;; 25418 25419 haiku*) 25420 # PIC is the default for Haiku. 25421 # The "-static" flag exists, but is broken. 25422 lt_prog_compiler_static_FC= 25423 ;; 25424 25425 hpux*) 25426 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 25427 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 25428 # sets the default TLS model and affects inlining. 25429 case $host_cpu in 25430 hppa*64*) 25431 # +Z the default 25432 ;; 25433 *) 25434 lt_prog_compiler_pic_FC='-fPIC' 25435 ;; 25436 esac 25437 ;; 25438 25439 interix[3-9]*) 25440 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 25441 # Instead, we relocate shared libraries at runtime. 25442 ;; 25443 25444 msdosdjgpp*) 25445 # Just because we use GCC doesn't mean we suddenly get shared libraries 25446 # on systems that don't support them. 25447 lt_prog_compiler_can_build_shared_FC=no 25448 enable_shared=no 25449 ;; 25450 25451 *nto* | *qnx*) 25452 # QNX uses GNU C++, but need to define -shared option too, otherwise 25453 # it will coredump. 25454 lt_prog_compiler_pic_FC='-fPIC -shared' 25455 ;; 25456 25457 sysv4*MP*) 25458 if test -d /usr/nec; then 25459 lt_prog_compiler_pic_FC=-Kconform_pic 25460 fi 25461 ;; 25462 25463 *) 25464 lt_prog_compiler_pic_FC='-fPIC' 25465 ;; 25466 esac 25467 25468 case $cc_basename in 25469 nvcc*) # Cuda Compiler Driver 2.2 25470 lt_prog_compiler_wl_FC='-Xlinker ' 25471 if test -n "$lt_prog_compiler_pic_FC"; then 25472 lt_prog_compiler_pic_FC="-Xcompiler $lt_prog_compiler_pic_FC" 25473 fi 25474 ;; 25475 esac 25476 else 25477 # PORTME Check for flag to pass linker flags through the system compiler. 25478 case $host_os in 25479 aix*) 25480 lt_prog_compiler_wl_FC='-Wl,' 25481 if test ia64 = "$host_cpu"; then 25482 # AIX 5 now supports IA64 processor 25483 lt_prog_compiler_static_FC='-Bstatic' 25484 else 25485 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp' 25486 fi 25487 ;; 25488 25489 darwin* | rhapsody*) 25490 # PIC is the default on this platform 25491 # Common symbols not allowed in MH_DYLIB files 25492 lt_prog_compiler_pic_FC='-fno-common' 25493 case $cc_basename in 25494 nagfor*) 25495 # NAG Fortran compiler 25496 lt_prog_compiler_wl_FC='-Wl,-Wl,,' 25497 lt_prog_compiler_pic_FC='-PIC' 25498 lt_prog_compiler_static_FC='-Bstatic' 25499 ;; 25500 esac 25501 ;; 25502 25503 mingw* | cygwin* | pw32* | os2* | cegcc*) 25504 # This hack is so that the source file can tell whether it is being 25505 # built for inclusion in a dll (and should export symbols for example). 25506 lt_prog_compiler_pic_FC='-DDLL_EXPORT' 25507 case $host_os in 25508 os2*) 25509 lt_prog_compiler_static_FC='$wl-static' 25510 ;; 25511 esac 25512 ;; 25513 25514 hpux9* | hpux10* | hpux11*) 25515 lt_prog_compiler_wl_FC='-Wl,' 25516 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 25517 # not for PA HP-UX. 25518 case $host_cpu in 25519 hppa*64*|ia64*) 25520 # +Z the default 25521 ;; 25522 *) 25523 lt_prog_compiler_pic_FC='+Z' 25524 ;; 25525 esac 25526 # Is there a better lt_prog_compiler_static that works with the bundled CC? 25527 lt_prog_compiler_static_FC='$wl-a ${wl}archive' 25528 ;; 25529 25530 irix5* | irix6* | nonstopux*) 25531 lt_prog_compiler_wl_FC='-Wl,' 25532 # PIC (with -KPIC) is the default. 25533 lt_prog_compiler_static_FC='-non_shared' 25534 ;; 25535 25536 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 25537 case $cc_basename in 25538 # old Intel for x86_64, which still supported -KPIC. 25539 ecc*) 25540 lt_prog_compiler_wl_FC='-Wl,' 25541 lt_prog_compiler_pic_FC='-KPIC' 25542 lt_prog_compiler_static_FC='-static' 25543 ;; 25544 # icc used to be incompatible with GCC. 25545 # ICC 10 doesn't accept -KPIC any more. 25546 icc* | ifort*) 25547 lt_prog_compiler_wl_FC='-Wl,' 25548 lt_prog_compiler_pic_FC='-fPIC' 25549 lt_prog_compiler_static_FC='-static' 25550 ;; 25551 # Lahey Fortran 8.1. 25552 lf95*) 25553 lt_prog_compiler_wl_FC='-Wl,' 25554 lt_prog_compiler_pic_FC='--shared' 25555 lt_prog_compiler_static_FC='--static' 25556 ;; 25557 nagfor*) 25558 # NAG Fortran compiler 25559 lt_prog_compiler_wl_FC='-Wl,-Wl,,' 25560 lt_prog_compiler_pic_FC='-PIC' 25561 lt_prog_compiler_static_FC='-Bstatic' 25562 ;; 25563 tcc*) 25564 # Fabrice Bellard et al's Tiny C Compiler 25565 lt_prog_compiler_wl_FC='-Wl,' 25566 lt_prog_compiler_pic_FC='-fPIC' 25567 lt_prog_compiler_static_FC='-static' 25568 ;; 25569 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 25570 # Portland Group compilers (*not* the Pentium gcc compiler, 25571 # which looks to be a dead project) 25572 lt_prog_compiler_wl_FC='-Wl,' 25573 lt_prog_compiler_pic_FC='-fpic' 25574 lt_prog_compiler_static_FC='-Bstatic' 25575 ;; 25576 ccc*) 25577 lt_prog_compiler_wl_FC='-Wl,' 25578 # All Alpha code is PIC. 25579 lt_prog_compiler_static_FC='-non_shared' 25580 ;; 25581 xl* | bgxl* | bgf* | mpixl*) 25582 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 25583 lt_prog_compiler_wl_FC='-Wl,' 25584 lt_prog_compiler_pic_FC='-qpic' 25585 lt_prog_compiler_static_FC='-qstaticlink' 25586 ;; 25587 *) 25588 case `$CC -V 2>&1 | sed 5q` in 25589 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 25590 # Sun Fortran 8.3 passes all unrecognized flags to the linker 25591 lt_prog_compiler_pic_FC='-KPIC' 25592 lt_prog_compiler_static_FC='-Bstatic' 25593 lt_prog_compiler_wl_FC='' 25594 ;; 25595 *Sun\ F* | *Sun*Fortran*) 25596 lt_prog_compiler_pic_FC='-KPIC' 25597 lt_prog_compiler_static_FC='-Bstatic' 25598 lt_prog_compiler_wl_FC='-Qoption ld ' 25599 ;; 25600 *Sun\ C*) 25601 # Sun C 5.9 25602 lt_prog_compiler_pic_FC='-KPIC' 25603 lt_prog_compiler_static_FC='-Bstatic' 25604 lt_prog_compiler_wl_FC='-Wl,' 25605 ;; 25606 *Intel*\ [CF]*Compiler*) 25607 lt_prog_compiler_wl_FC='-Wl,' 25608 lt_prog_compiler_pic_FC='-fPIC' 25609 lt_prog_compiler_static_FC='-static' 25610 ;; 25611 *Portland\ Group*) 25612 lt_prog_compiler_wl_FC='-Wl,' 25613 lt_prog_compiler_pic_FC='-fpic' 25614 lt_prog_compiler_static_FC='-Bstatic' 25615 ;; 25616 esac 25617 ;; 25618 esac 25619 ;; 25620 25621 newsos6) 25622 lt_prog_compiler_pic_FC='-KPIC' 25623 lt_prog_compiler_static_FC='-Bstatic' 25624 ;; 25625 25626 *nto* | *qnx*) 25627 # QNX uses GNU C++, but need to define -shared option too, otherwise 25628 # it will coredump. 25629 lt_prog_compiler_pic_FC='-fPIC -shared' 25630 ;; 25631 25632 osf3* | osf4* | osf5*) 25633 lt_prog_compiler_wl_FC='-Wl,' 25634 # All OSF/1 code is PIC. 25635 lt_prog_compiler_static_FC='-non_shared' 25636 ;; 25637 25638 rdos*) 25639 lt_prog_compiler_static_FC='-non_shared' 25640 ;; 25641 25642 solaris*) 25643 lt_prog_compiler_pic_FC='-KPIC' 25644 lt_prog_compiler_static_FC='-Bstatic' 25645 case $cc_basename in 25646 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 25647 lt_prog_compiler_wl_FC='-Qoption ld ';; 25648 *) 25649 lt_prog_compiler_wl_FC='-Wl,';; 25650 esac 25651 ;; 25652 25653 sunos4*) 25654 lt_prog_compiler_wl_FC='-Qoption ld ' 25655 lt_prog_compiler_pic_FC='-PIC' 25656 lt_prog_compiler_static_FC='-Bstatic' 25657 ;; 25658 25659 sysv4 | sysv4.2uw2* | sysv4.3*) 25660 lt_prog_compiler_wl_FC='-Wl,' 25661 lt_prog_compiler_pic_FC='-KPIC' 25662 lt_prog_compiler_static_FC='-Bstatic' 25663 ;; 25664 25665 sysv4*MP*) 25666 if test -d /usr/nec; then 25667 lt_prog_compiler_pic_FC='-Kconform_pic' 25668 lt_prog_compiler_static_FC='-Bstatic' 25669 fi 25670 ;; 25671 25672 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 25673 lt_prog_compiler_wl_FC='-Wl,' 25674 lt_prog_compiler_pic_FC='-KPIC' 25675 lt_prog_compiler_static_FC='-Bstatic' 25676 ;; 25677 25678 unicos*) 25679 lt_prog_compiler_wl_FC='-Wl,' 25680 lt_prog_compiler_can_build_shared_FC=no 25681 ;; 25682 25683 uts4*) 25684 lt_prog_compiler_pic_FC='-pic' 25685 lt_prog_compiler_static_FC='-Bstatic' 25686 ;; 25687 25688 *) 25689 lt_prog_compiler_can_build_shared_FC=no 25690 ;; 25691 esac 25692 fi 25693 25694case $host_os in 25695 # For platforms that do not support PIC, -DPIC is meaningless: 25696 *djgpp*) 25697 lt_prog_compiler_pic_FC= 25698 ;; 25699 *) 25700 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC" 25701 ;; 25702esac 25703 25704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 25705$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 25706if ${lt_cv_prog_compiler_pic_FC+:} false; then : 25707 $as_echo_n "(cached) " >&6 25708else 25709 lt_cv_prog_compiler_pic_FC=$lt_prog_compiler_pic_FC 25710fi 25711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_FC" >&5 25712$as_echo "$lt_cv_prog_compiler_pic_FC" >&6; } 25713lt_prog_compiler_pic_FC=$lt_cv_prog_compiler_pic_FC 25714 25715# 25716# Check to make sure the PIC flag actually works. 25717# 25718if test -n "$lt_prog_compiler_pic_FC"; then 25719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5 25720$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; } 25721if ${lt_cv_prog_compiler_pic_works_FC+:} false; then : 25722 $as_echo_n "(cached) " >&6 25723else 25724 lt_cv_prog_compiler_pic_works_FC=no 25725 ac_outfile=conftest.$ac_objext 25726 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 25727 lt_compiler_flag="$lt_prog_compiler_pic_FC" ## exclude from sc_useless_quotes_in_assignment 25728 # Insert the option either (1) after the last *FLAGS variable, or 25729 # (2) before a word containing "conftest.", or (3) at the end. 25730 # Note that $ac_compile itself does not contain backslashes and begins 25731 # with a dollar sign (not a hyphen), so the echo should work correctly. 25732 # The option is referenced via a variable to avoid confusing sed. 25733 lt_compile=`echo "$ac_compile" | $SED \ 25734 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 25735 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 25736 -e 's:$: $lt_compiler_flag:'` 25737 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 25738 (eval "$lt_compile" 2>conftest.err) 25739 ac_status=$? 25740 cat conftest.err >&5 25741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25742 if (exit $ac_status) && test -s "$ac_outfile"; then 25743 # The compiler can only warn and ignore the option if not recognized 25744 # So say no if there are warnings other than the usual output. 25745 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 25746 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 25747 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 25748 lt_cv_prog_compiler_pic_works_FC=yes 25749 fi 25750 fi 25751 $RM conftest* 25752 25753fi 25754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5 25755$as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; } 25756 25757if test yes = "$lt_cv_prog_compiler_pic_works_FC"; then 25758 case $lt_prog_compiler_pic_FC in 25759 "" | " "*) ;; 25760 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;; 25761 esac 25762else 25763 lt_prog_compiler_pic_FC= 25764 lt_prog_compiler_can_build_shared_FC=no 25765fi 25766 25767fi 25768 25769 25770 25771 25772 25773# 25774# Check to make sure the static flag actually works. 25775# 25776wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\" 25777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 25778$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 25779if ${lt_cv_prog_compiler_static_works_FC+:} false; then : 25780 $as_echo_n "(cached) " >&6 25781else 25782 lt_cv_prog_compiler_static_works_FC=no 25783 save_LDFLAGS=$LDFLAGS 25784 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 25785 echo "$lt_simple_link_test_code" > conftest.$ac_ext 25786 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 25787 # The linker can only warn and ignore the option if not recognized 25788 # So say no if there are warnings 25789 if test -s conftest.err; then 25790 # Append any errors to the config.log. 25791 cat conftest.err 1>&5 25792 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 25793 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 25794 if diff conftest.exp conftest.er2 >/dev/null; then 25795 lt_cv_prog_compiler_static_works_FC=yes 25796 fi 25797 else 25798 lt_cv_prog_compiler_static_works_FC=yes 25799 fi 25800 fi 25801 $RM -r conftest* 25802 LDFLAGS=$save_LDFLAGS 25803 25804fi 25805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5 25806$as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; } 25807 25808if test yes = "$lt_cv_prog_compiler_static_works_FC"; then 25809 : 25810else 25811 lt_prog_compiler_static_FC= 25812fi 25813 25814 25815 25816 25817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 25818$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 25819if ${lt_cv_prog_compiler_c_o_FC+:} false; then : 25820 $as_echo_n "(cached) " >&6 25821else 25822 lt_cv_prog_compiler_c_o_FC=no 25823 $RM -r conftest 2>/dev/null 25824 mkdir conftest 25825 cd conftest 25826 mkdir out 25827 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 25828 25829 lt_compiler_flag="-o out/conftest2.$ac_objext" 25830 # Insert the option either (1) after the last *FLAGS variable, or 25831 # (2) before a word containing "conftest.", or (3) at the end. 25832 # Note that $ac_compile itself does not contain backslashes and begins 25833 # with a dollar sign (not a hyphen), so the echo should work correctly. 25834 lt_compile=`echo "$ac_compile" | $SED \ 25835 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 25836 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 25837 -e 's:$: $lt_compiler_flag:'` 25838 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 25839 (eval "$lt_compile" 2>out/conftest.err) 25840 ac_status=$? 25841 cat out/conftest.err >&5 25842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25843 if (exit $ac_status) && test -s out/conftest2.$ac_objext 25844 then 25845 # The compiler can only warn and ignore the option if not recognized 25846 # So say no if there are warnings 25847 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 25848 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 25849 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 25850 lt_cv_prog_compiler_c_o_FC=yes 25851 fi 25852 fi 25853 chmod u+w . 2>&5 25854 $RM conftest* 25855 # SGI C++ compiler will create directory out/ii_files/ for 25856 # template instantiation 25857 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 25858 $RM out/* && rmdir out 25859 cd .. 25860 $RM -r conftest 25861 $RM conftest* 25862 25863fi 25864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5 25865$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; } 25866 25867 25868 25869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 25870$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 25871if ${lt_cv_prog_compiler_c_o_FC+:} false; then : 25872 $as_echo_n "(cached) " >&6 25873else 25874 lt_cv_prog_compiler_c_o_FC=no 25875 $RM -r conftest 2>/dev/null 25876 mkdir conftest 25877 cd conftest 25878 mkdir out 25879 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 25880 25881 lt_compiler_flag="-o out/conftest2.$ac_objext" 25882 # Insert the option either (1) after the last *FLAGS variable, or 25883 # (2) before a word containing "conftest.", or (3) at the end. 25884 # Note that $ac_compile itself does not contain backslashes and begins 25885 # with a dollar sign (not a hyphen), so the echo should work correctly. 25886 lt_compile=`echo "$ac_compile" | $SED \ 25887 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 25888 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 25889 -e 's:$: $lt_compiler_flag:'` 25890 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 25891 (eval "$lt_compile" 2>out/conftest.err) 25892 ac_status=$? 25893 cat out/conftest.err >&5 25894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25895 if (exit $ac_status) && test -s out/conftest2.$ac_objext 25896 then 25897 # The compiler can only warn and ignore the option if not recognized 25898 # So say no if there are warnings 25899 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 25900 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 25901 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 25902 lt_cv_prog_compiler_c_o_FC=yes 25903 fi 25904 fi 25905 chmod u+w . 2>&5 25906 $RM conftest* 25907 # SGI C++ compiler will create directory out/ii_files/ for 25908 # template instantiation 25909 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 25910 $RM out/* && rmdir out 25911 cd .. 25912 $RM -r conftest 25913 $RM conftest* 25914 25915fi 25916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5 25917$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; } 25918 25919 25920 25921 25922hard_links=nottested 25923if test no = "$lt_cv_prog_compiler_c_o_FC" && test no != "$need_locks"; then 25924 # do not overwrite the value of need_locks provided by the user 25925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 25926$as_echo_n "checking if we can lock with hard links... " >&6; } 25927 hard_links=yes 25928 $RM conftest* 25929 ln conftest.a conftest.b 2>/dev/null && hard_links=no 25930 touch conftest.a 25931 ln conftest.a conftest.b 2>&5 || hard_links=no 25932 ln conftest.a conftest.b 2>/dev/null && hard_links=no 25933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 25934$as_echo "$hard_links" >&6; } 25935 if test no = "$hard_links"; then 25936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 25937$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 25938 need_locks=warn 25939 fi 25940else 25941 need_locks=no 25942fi 25943 25944 25945 25946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 25947$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 25948 25949 runpath_var= 25950 allow_undefined_flag_FC= 25951 always_export_symbols_FC=no 25952 archive_cmds_FC= 25953 archive_expsym_cmds_FC= 25954 compiler_needs_object_FC=no 25955 enable_shared_with_static_runtimes_FC=no 25956 export_dynamic_flag_spec_FC= 25957 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 25958 hardcode_automatic_FC=no 25959 hardcode_direct_FC=no 25960 hardcode_direct_absolute_FC=no 25961 hardcode_libdir_flag_spec_FC= 25962 hardcode_libdir_separator_FC= 25963 hardcode_minus_L_FC=no 25964 hardcode_shlibpath_var_FC=unsupported 25965 inherit_rpath_FC=no 25966 link_all_deplibs_FC=unknown 25967 module_cmds_FC= 25968 module_expsym_cmds_FC= 25969 old_archive_from_new_cmds_FC= 25970 old_archive_from_expsyms_cmds_FC= 25971 thread_safe_flag_spec_FC= 25972 whole_archive_flag_spec_FC= 25973 # include_expsyms should be a list of space-separated symbols to be *always* 25974 # included in the symbol list 25975 include_expsyms_FC= 25976 # exclude_expsyms can be an extended regexp of symbols to exclude 25977 # it will be wrapped by ' (' and ')$', so one must not match beginning or 25978 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 25979 # as well as any symbol that contains 'd'. 25980 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 25981 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 25982 # platforms (ab)use it in PIC code, but their linkers get confused if 25983 # the symbol is explicitly referenced. Since portable code cannot 25984 # rely on this symbol name, it's probably fine to never include it in 25985 # preloaded symbol tables. 25986 # Exclude shared library initialization/finalization symbols. 25987 extract_expsyms_cmds= 25988 25989 case $host_os in 25990 cygwin* | mingw* | pw32* | cegcc*) 25991 # FIXME: the MSVC++ port hasn't been tested in a loooong time 25992 # When not using gcc, we currently assume that we are using 25993 # Microsoft Visual C++. 25994 if test yes != "$GCC"; then 25995 with_gnu_ld=no 25996 fi 25997 ;; 25998 interix*) 25999 # we just hope/assume this is gcc and not c89 (= MSVC++) 26000 with_gnu_ld=yes 26001 ;; 26002 openbsd* | bitrig*) 26003 with_gnu_ld=no 26004 ;; 26005 esac 26006 26007 ld_shlibs_FC=yes 26008 26009 # On some targets, GNU ld is compatible enough with the native linker 26010 # that we're better off using the native interface for both. 26011 lt_use_gnu_ld_interface=no 26012 if test yes = "$with_gnu_ld"; then 26013 case $host_os in 26014 aix*) 26015 # The AIX port of GNU ld has always aspired to compatibility 26016 # with the native linker. However, as the warning in the GNU ld 26017 # block says, versions before 2.19.5* couldn't really create working 26018 # shared libraries, regardless of the interface used. 26019 case `$LD -v 2>&1` in 26020 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 26021 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 26022 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 26023 *) 26024 lt_use_gnu_ld_interface=yes 26025 ;; 26026 esac 26027 ;; 26028 *) 26029 lt_use_gnu_ld_interface=yes 26030 ;; 26031 esac 26032 fi 26033 26034 if test yes = "$lt_use_gnu_ld_interface"; then 26035 # If archive_cmds runs LD, not CC, wlarc should be empty 26036 wlarc='$wl' 26037 26038 # Set some defaults for GNU ld with shared library support. These 26039 # are reset later if shared libraries are not supported. Putting them 26040 # here allows them to be overridden if necessary. 26041 runpath_var=LD_RUN_PATH 26042 hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir' 26043 export_dynamic_flag_spec_FC='$wl--export-dynamic' 26044 # ancient GNU ld didn't support --whole-archive et. al. 26045 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 26046 whole_archive_flag_spec_FC=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 26047 else 26048 whole_archive_flag_spec_FC= 26049 fi 26050 supports_anon_versioning=no 26051 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 26052 *GNU\ gold*) supports_anon_versioning=yes ;; 26053 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 26054 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 26055 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 26056 *\ 2.11.*) ;; # other 2.11 versions 26057 *) supports_anon_versioning=yes ;; 26058 esac 26059 26060 # See if GNU ld supports shared libraries. 26061 case $host_os in 26062 aix[3-9]*) 26063 # On AIX/PPC, the GNU linker is very broken 26064 if test ia64 != "$host_cpu"; then 26065 ld_shlibs_FC=no 26066 cat <<_LT_EOF 1>&2 26067 26068*** Warning: the GNU linker, at least up to release 2.19, is reported 26069*** to be unable to reliably create shared libraries on AIX. 26070*** Therefore, libtool is disabling shared libraries support. If you 26071*** really care for shared libraries, you may want to install binutils 26072*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 26073*** You will then need to restart the configuration process. 26074 26075_LT_EOF 26076 fi 26077 ;; 26078 26079 amigaos*) 26080 case $host_cpu in 26081 powerpc) 26082 # see comment about AmigaOS4 .so support 26083 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 26084 archive_expsym_cmds_FC='' 26085 ;; 26086 m68k) 26087 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)' 26088 hardcode_libdir_flag_spec_FC='-L$libdir' 26089 hardcode_minus_L_FC=yes 26090 ;; 26091 esac 26092 ;; 26093 26094 beos*) 26095 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 26096 allow_undefined_flag_FC=unsupported 26097 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 26098 # support --undefined. This deserves some investigation. FIXME 26099 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 26100 else 26101 ld_shlibs_FC=no 26102 fi 26103 ;; 26104 26105 cygwin* | mingw* | pw32* | cegcc*) 26106 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless, 26107 # as there is no search path for DLLs. 26108 hardcode_libdir_flag_spec_FC='-L$libdir' 26109 export_dynamic_flag_spec_FC='$wl--export-all-symbols' 26110 allow_undefined_flag_FC=unsupported 26111 always_export_symbols_FC=no 26112 enable_shared_with_static_runtimes_FC=yes 26113 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' 26114 exclude_expsyms_FC='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 26115 26116 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 26117 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 26118 # If the export-symbols file already is a .def file, use it as 26119 # is; otherwise, prepend EXPORTS... 26120 archive_expsym_cmds_FC='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 26121 cp $export_symbols $output_objdir/$soname.def; 26122 else 26123 echo EXPORTS > $output_objdir/$soname.def; 26124 cat $export_symbols >> $output_objdir/$soname.def; 26125 fi~ 26126 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 26127 else 26128 ld_shlibs_FC=no 26129 fi 26130 ;; 26131 26132 haiku*) 26133 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 26134 link_all_deplibs_FC=yes 26135 ;; 26136 26137 os2*) 26138 hardcode_libdir_flag_spec_FC='-L$libdir' 26139 hardcode_minus_L_FC=yes 26140 allow_undefined_flag_FC=unsupported 26141 shrext_cmds=.dll 26142 archive_cmds_FC='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 26143 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 26144 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 26145 $ECHO EXPORTS >> $output_objdir/$libname.def~ 26146 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 26147 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 26148 emximp -o $lib $output_objdir/$libname.def' 26149 archive_expsym_cmds_FC='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 26150 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 26151 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 26152 $ECHO EXPORTS >> $output_objdir/$libname.def~ 26153 prefix_cmds="$SED"~ 26154 if test EXPORTS = "`$SED 1q $export_symbols`"; then 26155 prefix_cmds="$prefix_cmds -e 1d"; 26156 fi~ 26157 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 26158 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 26159 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 26160 emximp -o $lib $output_objdir/$libname.def' 26161 old_archive_From_new_cmds_FC='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 26162 enable_shared_with_static_runtimes_FC=yes 26163 ;; 26164 26165 interix[3-9]*) 26166 hardcode_direct_FC=no 26167 hardcode_shlibpath_var_FC=no 26168 hardcode_libdir_flag_spec_FC='$wl-rpath,$libdir' 26169 export_dynamic_flag_spec_FC='$wl-E' 26170 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 26171 # Instead, shared libraries are loaded at an image base (0x10000000 by 26172 # default) and relocated if they conflict, which is a slow very memory 26173 # consuming and fragmenting process. To avoid this, we pick a random, 26174 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 26175 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 26176 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' 26177 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' 26178 ;; 26179 26180 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 26181 tmp_diet=no 26182 if test linux-dietlibc = "$host_os"; then 26183 case $cc_basename in 26184 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 26185 esac 26186 fi 26187 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 26188 && test no = "$tmp_diet" 26189 then 26190 tmp_addflag=' $pic_flag' 26191 tmp_sharedflag='-shared' 26192 case $cc_basename,$host_cpu in 26193 pgcc*) # Portland Group C compiler 26194 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' 26195 tmp_addflag=' $pic_flag' 26196 ;; 26197 pgf77* | pgf90* | pgf95* | pgfortran*) 26198 # Portland Group f77 and f90 compilers 26199 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' 26200 tmp_addflag=' $pic_flag -Mnomain' ;; 26201 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 26202 tmp_addflag=' -i_dynamic' ;; 26203 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 26204 tmp_addflag=' -i_dynamic -nofor_main' ;; 26205 ifc* | ifort*) # Intel Fortran compiler 26206 tmp_addflag=' -nofor_main' ;; 26207 lf95*) # Lahey Fortran 8.1 26208 whole_archive_flag_spec_FC= 26209 tmp_sharedflag='--shared' ;; 26210 nagfor*) # NAGFOR 5.3 26211 tmp_sharedflag='-Wl,-shared' ;; 26212 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 26213 tmp_sharedflag='-qmkshrobj' 26214 tmp_addflag= ;; 26215 nvcc*) # Cuda Compiler Driver 2.2 26216 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' 26217 compiler_needs_object_FC=yes 26218 ;; 26219 esac 26220 case `$CC -V 2>&1 | sed 5q` in 26221 *Sun\ C*) # Sun C 5.9 26222 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' 26223 compiler_needs_object_FC=yes 26224 tmp_sharedflag='-G' ;; 26225 *Sun\ F*) # Sun Fortran 8.3 26226 tmp_sharedflag='-G' ;; 26227 esac 26228 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 26229 26230 if test yes = "$supports_anon_versioning"; then 26231 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~ 26232 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 26233 echo "local: *; };" >> $output_objdir/$libname.ver~ 26234 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 26235 fi 26236 26237 case $cc_basename in 26238 tcc*) 26239 export_dynamic_flag_spec_FC='-rdynamic' 26240 ;; 26241 xlf* | bgf* | bgxlf* | mpixlf*) 26242 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 26243 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive' 26244 hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir' 26245 archive_cmds_FC='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 26246 if test yes = "$supports_anon_versioning"; then 26247 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~ 26248 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 26249 echo "local: *; };" >> $output_objdir/$libname.ver~ 26250 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 26251 fi 26252 ;; 26253 esac 26254 else 26255 ld_shlibs_FC=no 26256 fi 26257 ;; 26258 26259 netbsd*) 26260 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 26261 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 26262 wlarc= 26263 else 26264 archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 26265 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' 26266 fi 26267 ;; 26268 26269 solaris*) 26270 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 26271 ld_shlibs_FC=no 26272 cat <<_LT_EOF 1>&2 26273 26274*** Warning: The releases 2.8.* of the GNU linker cannot reliably 26275*** create shared libraries on Solaris systems. Therefore, libtool 26276*** is disabling shared libraries support. We urge you to upgrade GNU 26277*** binutils to release 2.9.1 or newer. Another option is to modify 26278*** your PATH or compiler configuration so that the native linker is 26279*** used, and then restart. 26280 26281_LT_EOF 26282 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 26283 archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 26284 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' 26285 else 26286 ld_shlibs_FC=no 26287 fi 26288 ;; 26289 26290 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 26291 case `$LD -v 2>&1` in 26292 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 26293 ld_shlibs_FC=no 26294 cat <<_LT_EOF 1>&2 26295 26296*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 26297*** reliably create shared libraries on SCO systems. Therefore, libtool 26298*** is disabling shared libraries support. We urge you to upgrade GNU 26299*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 26300*** your PATH or compiler configuration so that the native linker is 26301*** used, and then restart. 26302 26303_LT_EOF 26304 ;; 26305 *) 26306 # For security reasons, it is highly recommended that you always 26307 # use absolute paths for naming shared libraries, and exclude the 26308 # DT_RUNPATH tag from executables and libraries. But doing so 26309 # requires that you compile everything twice, which is a pain. 26310 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 26311 hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir' 26312 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 26313 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 26314 else 26315 ld_shlibs_FC=no 26316 fi 26317 ;; 26318 esac 26319 ;; 26320 26321 sunos4*) 26322 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 26323 wlarc= 26324 hardcode_direct_FC=yes 26325 hardcode_shlibpath_var_FC=no 26326 ;; 26327 26328 *) 26329 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 26330 archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 26331 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' 26332 else 26333 ld_shlibs_FC=no 26334 fi 26335 ;; 26336 esac 26337 26338 if test no = "$ld_shlibs_FC"; then 26339 runpath_var= 26340 hardcode_libdir_flag_spec_FC= 26341 export_dynamic_flag_spec_FC= 26342 whole_archive_flag_spec_FC= 26343 fi 26344 else 26345 # PORTME fill in a description of your system's linker (not GNU ld) 26346 case $host_os in 26347 aix3*) 26348 allow_undefined_flag_FC=unsupported 26349 always_export_symbols_FC=yes 26350 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' 26351 # Note: this linker hardcodes the directories in LIBPATH if there 26352 # are no directories specified by -L. 26353 hardcode_minus_L_FC=yes 26354 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 26355 # Neither direct hardcoding nor static linking is supported with a 26356 # broken collect2. 26357 hardcode_direct_FC=unsupported 26358 fi 26359 ;; 26360 26361 aix[4-9]*) 26362 if test ia64 = "$host_cpu"; then 26363 # On IA64, the linker does run time linking by default, so we don't 26364 # have to do anything special. 26365 aix_use_runtimelinking=no 26366 exp_sym_flag='-Bexport' 26367 no_entry_flag= 26368 else 26369 # If we're using GNU nm, then we don't want the "-C" option. 26370 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 26371 # Without the "-l" option, or with the "-B" option, AIX nm treats 26372 # weak defined symbols like other global defined symbols, whereas 26373 # GNU nm marks them as "W". 26374 # While the 'weak' keyword is ignored in the Export File, we need 26375 # it in the Import File for the 'aix-soname' feature, so we have 26376 # to replace the "-B" option with "-P" for AIX nm. 26377 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 26378 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' 26379 else 26380 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' 26381 fi 26382 aix_use_runtimelinking=no 26383 26384 # Test if we are trying to use run time linking or normal 26385 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 26386 # have runtime linking enabled, and use it for executables. 26387 # For shared libraries, we enable/disable runtime linking 26388 # depending on the kind of the shared library created - 26389 # when "with_aix_soname,aix_use_runtimelinking" is: 26390 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 26391 # "aix,yes" lib.so shared, rtl:yes, for executables 26392 # lib.a static archive 26393 # "both,no" lib.so.V(shr.o) shared, rtl:yes 26394 # lib.a(lib.so.V) shared, rtl:no, for executables 26395 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 26396 # lib.a(lib.so.V) shared, rtl:no 26397 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 26398 # lib.a static archive 26399 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 26400 for ld_flag in $LDFLAGS; do 26401 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 26402 aix_use_runtimelinking=yes 26403 break 26404 fi 26405 done 26406 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 26407 # With aix-soname=svr4, we create the lib.so.V shared archives only, 26408 # so we don't have lib.a shared libs to link our executables. 26409 # We have to force runtime linking in this case. 26410 aix_use_runtimelinking=yes 26411 LDFLAGS="$LDFLAGS -Wl,-brtl" 26412 fi 26413 ;; 26414 esac 26415 26416 exp_sym_flag='-bexport' 26417 no_entry_flag='-bnoentry' 26418 fi 26419 26420 # When large executables or shared objects are built, AIX ld can 26421 # have problems creating the table of contents. If linking a library 26422 # or program results in "error TOC overflow" add -mminimal-toc to 26423 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 26424 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 26425 26426 archive_cmds_FC='' 26427 hardcode_direct_FC=yes 26428 hardcode_direct_absolute_FC=yes 26429 hardcode_libdir_separator_FC=':' 26430 link_all_deplibs_FC=yes 26431 file_list_spec_FC='$wl-f,' 26432 case $with_aix_soname,$aix_use_runtimelinking in 26433 aix,*) ;; # traditional, no import file 26434 svr4,* | *,yes) # use import file 26435 # The Import File defines what to hardcode. 26436 hardcode_direct_FC=no 26437 hardcode_direct_absolute_FC=no 26438 ;; 26439 esac 26440 26441 if test yes = "$GCC"; then 26442 case $host_os in aix4.[012]|aix4.[012].*) 26443 # We only want to do this on AIX 4.2 and lower, the check 26444 # below for broken collect2 doesn't work under 4.3+ 26445 collect2name=`$CC -print-prog-name=collect2` 26446 if test -f "$collect2name" && 26447 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 26448 then 26449 # We have reworked collect2 26450 : 26451 else 26452 # We have old collect2 26453 hardcode_direct_FC=unsupported 26454 # It fails to find uninstalled libraries when the uninstalled 26455 # path is not listed in the libpath. Setting hardcode_minus_L 26456 # to unsupported forces relinking 26457 hardcode_minus_L_FC=yes 26458 hardcode_libdir_flag_spec_FC='-L$libdir' 26459 hardcode_libdir_separator_FC= 26460 fi 26461 ;; 26462 esac 26463 shared_flag='-shared' 26464 if test yes = "$aix_use_runtimelinking"; then 26465 shared_flag="$shared_flag "'$wl-G' 26466 fi 26467 # Need to ensure runtime linking is disabled for the traditional 26468 # shared library, or the linker may eventually find shared libraries 26469 # /with/ Import File - we do not want to mix them. 26470 shared_flag_aix='-shared' 26471 shared_flag_svr4='-shared $wl-G' 26472 else 26473 # not using gcc 26474 if test ia64 = "$host_cpu"; then 26475 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 26476 # chokes on -Wl,-G. The following line is correct: 26477 shared_flag='-G' 26478 else 26479 if test yes = "$aix_use_runtimelinking"; then 26480 shared_flag='$wl-G' 26481 else 26482 shared_flag='$wl-bM:SRE' 26483 fi 26484 shared_flag_aix='$wl-bM:SRE' 26485 shared_flag_svr4='$wl-G' 26486 fi 26487 fi 26488 26489 export_dynamic_flag_spec_FC='$wl-bexpall' 26490 # It seems that -bexpall does not export symbols beginning with 26491 # underscore (_), so it is better to generate a list of symbols to export. 26492 always_export_symbols_FC=yes 26493 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 26494 # Warning - without using the other runtime loading flags (-brtl), 26495 # -berok will link without error, but may produce a broken library. 26496 allow_undefined_flag_FC='-berok' 26497 # Determine the default libpath from the value encoded in an 26498 # empty executable. 26499 if test set = "${lt_cv_aix_libpath+set}"; then 26500 aix_libpath=$lt_cv_aix_libpath 26501else 26502 if ${lt_cv_aix_libpath__FC+:} false; then : 26503 $as_echo_n "(cached) " >&6 26504else 26505 cat > conftest.$ac_ext <<_ACEOF 26506 program main 26507 26508 end 26509_ACEOF 26510if ac_fn_fc_try_link "$LINENO"; then : 26511 26512 lt_aix_libpath_sed=' 26513 /Import File Strings/,/^$/ { 26514 /^0/ { 26515 s/^0 *\([^ ]*\) *$/\1/ 26516 p 26517 } 26518 }' 26519 lt_cv_aix_libpath__FC=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 26520 # Check for a 64-bit object if we didn't find anything. 26521 if test -z "$lt_cv_aix_libpath__FC"; then 26522 lt_cv_aix_libpath__FC=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 26523 fi 26524fi 26525rm -f core conftest.err conftest.$ac_objext \ 26526 conftest$ac_exeext conftest.$ac_ext 26527 if test -z "$lt_cv_aix_libpath__FC"; then 26528 lt_cv_aix_libpath__FC=/usr/lib:/lib 26529 fi 26530 26531fi 26532 26533 aix_libpath=$lt_cv_aix_libpath__FC 26534fi 26535 26536 hardcode_libdir_flag_spec_FC='$wl-blibpath:$libdir:'"$aix_libpath" 26537 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 26538 else 26539 if test ia64 = "$host_cpu"; then 26540 hardcode_libdir_flag_spec_FC='$wl-R $libdir:/usr/lib:/lib' 26541 allow_undefined_flag_FC="-z nodefs" 26542 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" 26543 else 26544 # Determine the default libpath from the value encoded in an 26545 # empty executable. 26546 if test set = "${lt_cv_aix_libpath+set}"; then 26547 aix_libpath=$lt_cv_aix_libpath 26548else 26549 if ${lt_cv_aix_libpath__FC+:} false; then : 26550 $as_echo_n "(cached) " >&6 26551else 26552 cat > conftest.$ac_ext <<_ACEOF 26553 program main 26554 26555 end 26556_ACEOF 26557if ac_fn_fc_try_link "$LINENO"; then : 26558 26559 lt_aix_libpath_sed=' 26560 /Import File Strings/,/^$/ { 26561 /^0/ { 26562 s/^0 *\([^ ]*\) *$/\1/ 26563 p 26564 } 26565 }' 26566 lt_cv_aix_libpath__FC=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 26567 # Check for a 64-bit object if we didn't find anything. 26568 if test -z "$lt_cv_aix_libpath__FC"; then 26569 lt_cv_aix_libpath__FC=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 26570 fi 26571fi 26572rm -f core conftest.err conftest.$ac_objext \ 26573 conftest$ac_exeext conftest.$ac_ext 26574 if test -z "$lt_cv_aix_libpath__FC"; then 26575 lt_cv_aix_libpath__FC=/usr/lib:/lib 26576 fi 26577 26578fi 26579 26580 aix_libpath=$lt_cv_aix_libpath__FC 26581fi 26582 26583 hardcode_libdir_flag_spec_FC='$wl-blibpath:$libdir:'"$aix_libpath" 26584 # Warning - without using the other run time loading flags, 26585 # -berok will link without error, but may produce a broken library. 26586 no_undefined_flag_FC=' $wl-bernotok' 26587 allow_undefined_flag_FC=' $wl-berok' 26588 if test yes = "$with_gnu_ld"; then 26589 # We only use this code for GNU lds that support --whole-archive. 26590 whole_archive_flag_spec_FC='$wl--whole-archive$convenience $wl--no-whole-archive' 26591 else 26592 # Exported symbols can be pulled into shared objects from archives 26593 whole_archive_flag_spec_FC='$convenience' 26594 fi 26595 archive_cmds_need_lc_FC=yes 26596 archive_expsym_cmds_FC='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 26597 # -brtl affects multiple linker settings, -berok does not and is overridden later 26598 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 26599 if test svr4 != "$with_aix_soname"; then 26600 # This is similar to how AIX traditionally builds its shared libraries. 26601 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' 26602 fi 26603 if test aix != "$with_aix_soname"; then 26604 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' 26605 else 26606 # used by -dlpreopen to get the symbols 26607 archive_expsym_cmds_FC="$archive_expsym_cmds_FC"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 26608 fi 26609 archive_expsym_cmds_FC="$archive_expsym_cmds_FC"'~$RM -r $output_objdir/$realname.d' 26610 fi 26611 fi 26612 ;; 26613 26614 amigaos*) 26615 case $host_cpu in 26616 powerpc) 26617 # see comment about AmigaOS4 .so support 26618 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 26619 archive_expsym_cmds_FC='' 26620 ;; 26621 m68k) 26622 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)' 26623 hardcode_libdir_flag_spec_FC='-L$libdir' 26624 hardcode_minus_L_FC=yes 26625 ;; 26626 esac 26627 ;; 26628 26629 bsdi[45]*) 26630 export_dynamic_flag_spec_FC=-rdynamic 26631 ;; 26632 26633 cygwin* | mingw* | pw32* | cegcc*) 26634 # When not using gcc, we currently assume that we are using 26635 # Microsoft Visual C++. 26636 # hardcode_libdir_flag_spec is actually meaningless, as there is 26637 # no search path for DLLs. 26638 case $cc_basename in 26639 cl*) 26640 # Native MSVC 26641 hardcode_libdir_flag_spec_FC=' ' 26642 allow_undefined_flag_FC=unsupported 26643 always_export_symbols_FC=yes 26644 file_list_spec_FC='@' 26645 # Tell ltmain to make .lib files, not .a files. 26646 libext=lib 26647 # Tell ltmain to make .dll files, not .so files. 26648 shrext_cmds=.dll 26649 # FIXME: Setting linknames here is a bad hack. 26650 archive_cmds_FC='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 26651 archive_expsym_cmds_FC='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 26652 cp "$export_symbols" "$output_objdir/$soname.def"; 26653 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 26654 else 26655 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 26656 fi~ 26657 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 26658 linknames=' 26659 # The linker will not automatically build a static lib if we build a DLL. 26660 # _LT_TAGVAR(old_archive_from_new_cmds, FC)='true' 26661 enable_shared_with_static_runtimes_FC=yes 26662 exclude_expsyms_FC='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 26663 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 26664 # Don't use ranlib 26665 old_postinstall_cmds_FC='chmod 644 $oldlib' 26666 postlink_cmds_FC='lt_outputfile="@OUTPUT@"~ 26667 lt_tool_outputfile="@TOOL_OUTPUT@"~ 26668 case $lt_outputfile in 26669 *.exe|*.EXE) ;; 26670 *) 26671 lt_outputfile=$lt_outputfile.exe 26672 lt_tool_outputfile=$lt_tool_outputfile.exe 26673 ;; 26674 esac~ 26675 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 26676 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 26677 $RM "$lt_outputfile.manifest"; 26678 fi' 26679 ;; 26680 *) 26681 # Assume MSVC wrapper 26682 hardcode_libdir_flag_spec_FC=' ' 26683 allow_undefined_flag_FC=unsupported 26684 # Tell ltmain to make .lib files, not .a files. 26685 libext=lib 26686 # Tell ltmain to make .dll files, not .so files. 26687 shrext_cmds=.dll 26688 # FIXME: Setting linknames here is a bad hack. 26689 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 26690 # The linker will automatically build a .lib file if we build a DLL. 26691 old_archive_from_new_cmds_FC='true' 26692 # FIXME: Should let the user specify the lib program. 26693 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs' 26694 enable_shared_with_static_runtimes_FC=yes 26695 ;; 26696 esac 26697 ;; 26698 26699 darwin* | rhapsody*) 26700 26701 26702 archive_cmds_need_lc_FC=no 26703 hardcode_direct_FC=no 26704 hardcode_automatic_FC=yes 26705 hardcode_shlibpath_var_FC=unsupported 26706 if test yes = "$lt_cv_ld_force_load"; then 26707 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\"`' 26708 compiler_needs_object_FC=yes 26709 else 26710 whole_archive_flag_spec_FC='' 26711 fi 26712 link_all_deplibs_FC=yes 26713 allow_undefined_flag_FC=$_lt_dar_allow_undefined 26714 case $cc_basename in 26715 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 26716 *) _lt_dar_can_shared=$GCC ;; 26717 esac 26718 if test yes = "$_lt_dar_can_shared"; then 26719 output_verbose_link_cmd=func_echo_all 26720 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" 26721 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 26722 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" 26723 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" 26724 26725 else 26726 ld_shlibs_FC=no 26727 fi 26728 26729 ;; 26730 26731 dgux*) 26732 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 26733 hardcode_libdir_flag_spec_FC='-L$libdir' 26734 hardcode_shlibpath_var_FC=no 26735 ;; 26736 26737 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 26738 # support. Future versions do this automatically, but an explicit c++rt0.o 26739 # does not break anything, and helps significantly (at the cost of a little 26740 # extra space). 26741 freebsd2.2*) 26742 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 26743 hardcode_libdir_flag_spec_FC='-R$libdir' 26744 hardcode_direct_FC=yes 26745 hardcode_shlibpath_var_FC=no 26746 ;; 26747 26748 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 26749 freebsd2.*) 26750 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 26751 hardcode_direct_FC=yes 26752 hardcode_minus_L_FC=yes 26753 hardcode_shlibpath_var_FC=no 26754 ;; 26755 26756 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 26757 freebsd* | dragonfly*) 26758 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 26759 hardcode_libdir_flag_spec_FC='-R$libdir' 26760 hardcode_direct_FC=yes 26761 hardcode_shlibpath_var_FC=no 26762 ;; 26763 26764 hpux9*) 26765 if test yes = "$GCC"; then 26766 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' 26767 else 26768 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' 26769 fi 26770 hardcode_libdir_flag_spec_FC='$wl+b $wl$libdir' 26771 hardcode_libdir_separator_FC=: 26772 hardcode_direct_FC=yes 26773 26774 # hardcode_minus_L: Not really in the search PATH, 26775 # but as the default location of the library. 26776 hardcode_minus_L_FC=yes 26777 export_dynamic_flag_spec_FC='$wl-E' 26778 ;; 26779 26780 hpux10*) 26781 if test yes,no = "$GCC,$with_gnu_ld"; then 26782 archive_cmds_FC='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 26783 else 26784 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 26785 fi 26786 if test no = "$with_gnu_ld"; then 26787 hardcode_libdir_flag_spec_FC='$wl+b $wl$libdir' 26788 hardcode_libdir_separator_FC=: 26789 hardcode_direct_FC=yes 26790 hardcode_direct_absolute_FC=yes 26791 export_dynamic_flag_spec_FC='$wl-E' 26792 # hardcode_minus_L: Not really in the search PATH, 26793 # but as the default location of the library. 26794 hardcode_minus_L_FC=yes 26795 fi 26796 ;; 26797 26798 hpux11*) 26799 if test yes,no = "$GCC,$with_gnu_ld"; then 26800 case $host_cpu in 26801 hppa*64*) 26802 archive_cmds_FC='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 26803 ;; 26804 ia64*) 26805 archive_cmds_FC='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 26806 ;; 26807 *) 26808 archive_cmds_FC='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 26809 ;; 26810 esac 26811 else 26812 case $host_cpu in 26813 hppa*64*) 26814 archive_cmds_FC='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 26815 ;; 26816 ia64*) 26817 archive_cmds_FC='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 26818 ;; 26819 *) 26820 archive_cmds_FC='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 26821 ;; 26822 esac 26823 fi 26824 if test no = "$with_gnu_ld"; then 26825 hardcode_libdir_flag_spec_FC='$wl+b $wl$libdir' 26826 hardcode_libdir_separator_FC=: 26827 26828 case $host_cpu in 26829 hppa*64*|ia64*) 26830 hardcode_direct_FC=no 26831 hardcode_shlibpath_var_FC=no 26832 ;; 26833 *) 26834 hardcode_direct_FC=yes 26835 hardcode_direct_absolute_FC=yes 26836 export_dynamic_flag_spec_FC='$wl-E' 26837 26838 # hardcode_minus_L: Not really in the search PATH, 26839 # but as the default location of the library. 26840 hardcode_minus_L_FC=yes 26841 ;; 26842 esac 26843 fi 26844 ;; 26845 26846 irix5* | irix6* | nonstopux*) 26847 if test yes = "$GCC"; then 26848 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' 26849 # Try to use the -exported_symbol ld option, if it does not 26850 # work, assume that -exports_file does not work either and 26851 # implicitly export all symbols. 26852 # This should be the same for all languages, so no per-tag cache variable. 26853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 26854$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 26855if ${lt_cv_irix_exported_symbol+:} false; then : 26856 $as_echo_n "(cached) " >&6 26857else 26858 save_LDFLAGS=$LDFLAGS 26859 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 26860 cat > conftest.$ac_ext <<_ACEOF 26861 26862 subroutine foo 26863 end 26864_ACEOF 26865if ac_fn_fc_try_link "$LINENO"; then : 26866 lt_cv_irix_exported_symbol=yes 26867else 26868 lt_cv_irix_exported_symbol=no 26869fi 26870rm -f core conftest.err conftest.$ac_objext \ 26871 conftest$ac_exeext conftest.$ac_ext 26872 LDFLAGS=$save_LDFLAGS 26873fi 26874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 26875$as_echo "$lt_cv_irix_exported_symbol" >&6; } 26876 if test yes = "$lt_cv_irix_exported_symbol"; then 26877 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' 26878 fi 26879 else 26880 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' 26881 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' 26882 fi 26883 archive_cmds_need_lc_FC='no' 26884 hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir' 26885 hardcode_libdir_separator_FC=: 26886 inherit_rpath_FC=yes 26887 link_all_deplibs_FC=yes 26888 ;; 26889 26890 linux*) 26891 case $cc_basename in 26892 tcc*) 26893 # Fabrice Bellard et al's Tiny C Compiler 26894 ld_shlibs_FC=yes 26895 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 26896 ;; 26897 esac 26898 ;; 26899 26900 netbsd*) 26901 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 26902 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 26903 else 26904 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 26905 fi 26906 hardcode_libdir_flag_spec_FC='-R$libdir' 26907 hardcode_direct_FC=yes 26908 hardcode_shlibpath_var_FC=no 26909 ;; 26910 26911 newsos6) 26912 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 26913 hardcode_direct_FC=yes 26914 hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir' 26915 hardcode_libdir_separator_FC=: 26916 hardcode_shlibpath_var_FC=no 26917 ;; 26918 26919 *nto* | *qnx*) 26920 ;; 26921 26922 openbsd* | bitrig*) 26923 if test -f /usr/libexec/ld.so; then 26924 hardcode_direct_FC=yes 26925 hardcode_shlibpath_var_FC=no 26926 hardcode_direct_absolute_FC=yes 26927 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 26928 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 26929 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 26930 hardcode_libdir_flag_spec_FC='$wl-rpath,$libdir' 26931 export_dynamic_flag_spec_FC='$wl-E' 26932 else 26933 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 26934 hardcode_libdir_flag_spec_FC='$wl-rpath,$libdir' 26935 fi 26936 else 26937 ld_shlibs_FC=no 26938 fi 26939 ;; 26940 26941 os2*) 26942 hardcode_libdir_flag_spec_FC='-L$libdir' 26943 hardcode_minus_L_FC=yes 26944 allow_undefined_flag_FC=unsupported 26945 shrext_cmds=.dll 26946 archive_cmds_FC='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 26947 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 26948 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 26949 $ECHO EXPORTS >> $output_objdir/$libname.def~ 26950 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 26951 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 26952 emximp -o $lib $output_objdir/$libname.def' 26953 archive_expsym_cmds_FC='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 26954 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 26955 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 26956 $ECHO EXPORTS >> $output_objdir/$libname.def~ 26957 prefix_cmds="$SED"~ 26958 if test EXPORTS = "`$SED 1q $export_symbols`"; then 26959 prefix_cmds="$prefix_cmds -e 1d"; 26960 fi~ 26961 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 26962 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 26963 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 26964 emximp -o $lib $output_objdir/$libname.def' 26965 old_archive_From_new_cmds_FC='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 26966 enable_shared_with_static_runtimes_FC=yes 26967 ;; 26968 26969 osf3*) 26970 if test yes = "$GCC"; then 26971 allow_undefined_flag_FC=' $wl-expect_unresolved $wl\*' 26972 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' 26973 else 26974 allow_undefined_flag_FC=' -expect_unresolved \*' 26975 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' 26976 fi 26977 archive_cmds_need_lc_FC='no' 26978 hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir' 26979 hardcode_libdir_separator_FC=: 26980 ;; 26981 26982 osf4* | osf5*) # as osf3* with the addition of -msym flag 26983 if test yes = "$GCC"; then 26984 allow_undefined_flag_FC=' $wl-expect_unresolved $wl\*' 26985 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' 26986 hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir' 26987 else 26988 allow_undefined_flag_FC=' -expect_unresolved \*' 26989 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' 26990 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~ 26991 $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' 26992 26993 # Both c and cxx compiler support -rpath directly 26994 hardcode_libdir_flag_spec_FC='-rpath $libdir' 26995 fi 26996 archive_cmds_need_lc_FC='no' 26997 hardcode_libdir_separator_FC=: 26998 ;; 26999 27000 solaris*) 27001 no_undefined_flag_FC=' -z defs' 27002 if test yes = "$GCC"; then 27003 wlarc='$wl' 27004 archive_cmds_FC='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 27005 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 27006 $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' 27007 else 27008 case `$CC -V 2>&1` in 27009 *"Compilers 5.0"*) 27010 wlarc='' 27011 archive_cmds_FC='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 27012 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 27013 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 27014 ;; 27015 *) 27016 wlarc='$wl' 27017 archive_cmds_FC='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 27018 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 27019 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 27020 ;; 27021 esac 27022 fi 27023 hardcode_libdir_flag_spec_FC='-R$libdir' 27024 hardcode_shlibpath_var_FC=no 27025 case $host_os in 27026 solaris2.[0-5] | solaris2.[0-5].*) ;; 27027 *) 27028 # The compiler driver will combine and reorder linker options, 27029 # but understands '-z linker_flag'. GCC discards it without '$wl', 27030 # but is careful enough not to reorder. 27031 # Supported since Solaris 2.6 (maybe 2.5.1?) 27032 if test yes = "$GCC"; then 27033 whole_archive_flag_spec_FC='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 27034 else 27035 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract' 27036 fi 27037 ;; 27038 esac 27039 link_all_deplibs_FC=yes 27040 ;; 27041 27042 sunos4*) 27043 if test sequent = "$host_vendor"; then 27044 # Use $CC to link under sequent, because it throws in some extra .o 27045 # files that make .init and .fini sections work. 27046 archive_cmds_FC='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 27047 else 27048 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 27049 fi 27050 hardcode_libdir_flag_spec_FC='-L$libdir' 27051 hardcode_direct_FC=yes 27052 hardcode_minus_L_FC=yes 27053 hardcode_shlibpath_var_FC=no 27054 ;; 27055 27056 sysv4) 27057 case $host_vendor in 27058 sni) 27059 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 27060 hardcode_direct_FC=yes # is this really true??? 27061 ;; 27062 siemens) 27063 ## LD is ld it makes a PLAMLIB 27064 ## CC just makes a GrossModule. 27065 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags' 27066 reload_cmds_FC='$CC -r -o $output$reload_objs' 27067 hardcode_direct_FC=no 27068 ;; 27069 motorola) 27070 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 27071 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie 27072 ;; 27073 esac 27074 runpath_var='LD_RUN_PATH' 27075 hardcode_shlibpath_var_FC=no 27076 ;; 27077 27078 sysv4.3*) 27079 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 27080 hardcode_shlibpath_var_FC=no 27081 export_dynamic_flag_spec_FC='-Bexport' 27082 ;; 27083 27084 sysv4*MP*) 27085 if test -d /usr/nec; then 27086 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 27087 hardcode_shlibpath_var_FC=no 27088 runpath_var=LD_RUN_PATH 27089 hardcode_runpath_var=yes 27090 ld_shlibs_FC=yes 27091 fi 27092 ;; 27093 27094 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 27095 no_undefined_flag_FC='$wl-z,text' 27096 archive_cmds_need_lc_FC=no 27097 hardcode_shlibpath_var_FC=no 27098 runpath_var='LD_RUN_PATH' 27099 27100 if test yes = "$GCC"; then 27101 archive_cmds_FC='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 27102 archive_expsym_cmds_FC='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 27103 else 27104 archive_cmds_FC='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 27105 archive_expsym_cmds_FC='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 27106 fi 27107 ;; 27108 27109 sysv5* | sco3.2v5* | sco5v6*) 27110 # Note: We CANNOT use -z defs as we might desire, because we do not 27111 # link with -lc, and that would cause any symbols used from libc to 27112 # always be unresolved, which means just about no library would 27113 # ever link correctly. If we're not using GNU ld we use -z text 27114 # though, which does catch some bad symbols but isn't as heavy-handed 27115 # as -z defs. 27116 no_undefined_flag_FC='$wl-z,text' 27117 allow_undefined_flag_FC='$wl-z,nodefs' 27118 archive_cmds_need_lc_FC=no 27119 hardcode_shlibpath_var_FC=no 27120 hardcode_libdir_flag_spec_FC='$wl-R,$libdir' 27121 hardcode_libdir_separator_FC=':' 27122 link_all_deplibs_FC=yes 27123 export_dynamic_flag_spec_FC='$wl-Bexport' 27124 runpath_var='LD_RUN_PATH' 27125 27126 if test yes = "$GCC"; then 27127 archive_cmds_FC='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 27128 archive_expsym_cmds_FC='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 27129 else 27130 archive_cmds_FC='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 27131 archive_expsym_cmds_FC='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 27132 fi 27133 ;; 27134 27135 uts4*) 27136 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 27137 hardcode_libdir_flag_spec_FC='-L$libdir' 27138 hardcode_shlibpath_var_FC=no 27139 ;; 27140 27141 *) 27142 ld_shlibs_FC=no 27143 ;; 27144 esac 27145 27146 if test sni = "$host_vendor"; then 27147 case $host in 27148 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 27149 export_dynamic_flag_spec_FC='$wl-Blargedynsym' 27150 ;; 27151 esac 27152 fi 27153 fi 27154 27155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5 27156$as_echo "$ld_shlibs_FC" >&6; } 27157test no = "$ld_shlibs_FC" && can_build_shared=no 27158 27159with_gnu_ld_FC=$with_gnu_ld 27160 27161 27162 27163 27164 27165 27166# 27167# Do we need to explicitly link libc? 27168# 27169case "x$archive_cmds_need_lc_FC" in 27170x|xyes) 27171 # Assume -lc should be added 27172 archive_cmds_need_lc_FC=yes 27173 27174 if test yes,yes = "$GCC,$enable_shared"; then 27175 case $archive_cmds_FC in 27176 *'~'*) 27177 # FIXME: we may have to deal with multi-command sequences. 27178 ;; 27179 '$CC '*) 27180 # Test whether the compiler implicitly links with -lc since on some 27181 # systems, -lgcc has to come before -lc. If gcc already passes -lc 27182 # to ld, don't add -lc before -lgcc. 27183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 27184$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 27185if ${lt_cv_archive_cmds_need_lc_FC+:} false; then : 27186 $as_echo_n "(cached) " >&6 27187else 27188 $RM conftest* 27189 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 27190 27191 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 27192 (eval $ac_compile) 2>&5 27193 ac_status=$? 27194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27195 test $ac_status = 0; } 2>conftest.err; then 27196 soname=conftest 27197 lib=conftest 27198 libobjs=conftest.$ac_objext 27199 deplibs= 27200 wl=$lt_prog_compiler_wl_FC 27201 pic_flag=$lt_prog_compiler_pic_FC 27202 compiler_flags=-v 27203 linker_flags=-v 27204 verstring= 27205 output_objdir=. 27206 libname=conftest 27207 lt_save_allow_undefined_flag=$allow_undefined_flag_FC 27208 allow_undefined_flag_FC= 27209 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 27210 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 27211 ac_status=$? 27212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27213 test $ac_status = 0; } 27214 then 27215 lt_cv_archive_cmds_need_lc_FC=no 27216 else 27217 lt_cv_archive_cmds_need_lc_FC=yes 27218 fi 27219 allow_undefined_flag_FC=$lt_save_allow_undefined_flag 27220 else 27221 cat conftest.err 1>&5 27222 fi 27223 $RM conftest* 27224 27225fi 27226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5 27227$as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; } 27228 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC 27229 ;; 27230 esac 27231 fi 27232 ;; 27233esac 27234 27235 27236 27237 27238 27239 27240 27241 27242 27243 27244 27245 27246 27247 27248 27249 27250 27251 27252 27253 27254 27255 27256 27257 27258 27259 27260 27261 27262 27263 27264 27265 27266 27267 27268 27269 27270 27271 27272 27273 27274 27275 27276 27277 27278 27279 27280 27281 27282 27283 27284 27285 27286 27287 27288 27289 27290 27291 27292 27293 27294 27295 27296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 27297$as_echo_n "checking dynamic linker characteristics... " >&6; } 27298 27299library_names_spec= 27300libname_spec='lib$name' 27301soname_spec= 27302shrext_cmds=.so 27303postinstall_cmds= 27304postuninstall_cmds= 27305finish_cmds= 27306finish_eval= 27307shlibpath_var= 27308shlibpath_overrides_runpath=unknown 27309version_type=none 27310dynamic_linker="$host_os ld.so" 27311sys_lib_dlsearch_path_spec="/lib /usr/lib" 27312need_lib_prefix=unknown 27313hardcode_into_libs=no 27314 27315# when you set need_version to no, make sure it does not cause -set_version 27316# flags to be left without arguments 27317need_version=unknown 27318 27319 27320 27321case $host_os in 27322aix3*) 27323 version_type=linux # correct to gnu/linux during the next big refactor 27324 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 27325 shlibpath_var=LIBPATH 27326 27327 # AIX 3 has no versioning support, so we append a major version to the name. 27328 soname_spec='$libname$release$shared_ext$major' 27329 ;; 27330 27331aix[4-9]*) 27332 version_type=linux # correct to gnu/linux during the next big refactor 27333 need_lib_prefix=no 27334 need_version=no 27335 hardcode_into_libs=yes 27336 if test ia64 = "$host_cpu"; then 27337 # AIX 5 supports IA64 27338 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 27339 shlibpath_var=LD_LIBRARY_PATH 27340 else 27341 # With GCC up to 2.95.x, collect2 would create an import file 27342 # for dependence libraries. The import file would start with 27343 # the line '#! .'. This would cause the generated library to 27344 # depend on '.', always an invalid library. This was fixed in 27345 # development snapshots of GCC prior to 3.0. 27346 case $host_os in 27347 aix4 | aix4.[01] | aix4.[01].*) 27348 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 27349 echo ' yes ' 27350 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 27351 : 27352 else 27353 can_build_shared=no 27354 fi 27355 ;; 27356 esac 27357 # Using Import Files as archive members, it is possible to support 27358 # filename-based versioning of shared library archives on AIX. While 27359 # this would work for both with and without runtime linking, it will 27360 # prevent static linking of such archives. So we do filename-based 27361 # shared library versioning with .so extension only, which is used 27362 # when both runtime linking and shared linking is enabled. 27363 # Unfortunately, runtime linking may impact performance, so we do 27364 # not want this to be the default eventually. Also, we use the 27365 # versioned .so libs for executables only if there is the -brtl 27366 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 27367 # To allow for filename-based versioning support, we need to create 27368 # libNAME.so.V as an archive file, containing: 27369 # *) an Import File, referring to the versioned filename of the 27370 # archive as well as the shared archive member, telling the 27371 # bitwidth (32 or 64) of that shared object, and providing the 27372 # list of exported symbols of that shared object, eventually 27373 # decorated with the 'weak' keyword 27374 # *) the shared object with the F_LOADONLY flag set, to really avoid 27375 # it being seen by the linker. 27376 # At run time we better use the real file rather than another symlink, 27377 # but for link time we create the symlink libNAME.so -> libNAME.so.V 27378 27379 case $with_aix_soname,$aix_use_runtimelinking in 27380 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 27381 # soname into executable. Probably we can add versioning support to 27382 # collect2, so additional links can be useful in future. 27383 aix,yes) # traditional libtool 27384 dynamic_linker='AIX unversionable lib.so' 27385 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 27386 # instead of lib<name>.a to let people know that these are not 27387 # typical AIX shared libraries. 27388 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 27389 ;; 27390 aix,no) # traditional AIX only 27391 dynamic_linker='AIX lib.a(lib.so.V)' 27392 # We preserve .a as extension for shared libraries through AIX4.2 27393 # and later when we are not doing run time linking. 27394 library_names_spec='$libname$release.a $libname.a' 27395 soname_spec='$libname$release$shared_ext$major' 27396 ;; 27397 svr4,*) # full svr4 only 27398 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 27399 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 27400 # We do not specify a path in Import Files, so LIBPATH fires. 27401 shlibpath_overrides_runpath=yes 27402 ;; 27403 *,yes) # both, prefer svr4 27404 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 27405 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 27406 # unpreferred sharedlib libNAME.a needs extra handling 27407 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"' 27408 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"' 27409 # We do not specify a path in Import Files, so LIBPATH fires. 27410 shlibpath_overrides_runpath=yes 27411 ;; 27412 *,no) # both, prefer aix 27413 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 27414 library_names_spec='$libname$release.a $libname.a' 27415 soname_spec='$libname$release$shared_ext$major' 27416 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 27417 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)' 27418 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"' 27419 ;; 27420 esac 27421 shlibpath_var=LIBPATH 27422 fi 27423 ;; 27424 27425amigaos*) 27426 case $host_cpu in 27427 powerpc) 27428 # Since July 2007 AmigaOS4 officially supports .so libraries. 27429 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 27430 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 27431 ;; 27432 m68k) 27433 library_names_spec='$libname.ixlibrary $libname.a' 27434 # Create ${libname}_ixlibrary.a entries in /sys/libs. 27435 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' 27436 ;; 27437 esac 27438 ;; 27439 27440beos*) 27441 library_names_spec='$libname$shared_ext' 27442 dynamic_linker="$host_os ld.so" 27443 shlibpath_var=LIBRARY_PATH 27444 ;; 27445 27446bsdi[45]*) 27447 version_type=linux # correct to gnu/linux during the next big refactor 27448 need_version=no 27449 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 27450 soname_spec='$libname$release$shared_ext$major' 27451 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 27452 shlibpath_var=LD_LIBRARY_PATH 27453 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 27454 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 27455 # the default ld.so.conf also contains /usr/contrib/lib and 27456 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 27457 # libtool to hard-code these into programs 27458 ;; 27459 27460cygwin* | mingw* | pw32* | cegcc*) 27461 version_type=windows 27462 shrext_cmds=.dll 27463 need_version=no 27464 need_lib_prefix=no 27465 27466 case $GCC,$cc_basename in 27467 yes,*) 27468 # gcc 27469 library_names_spec='$libname.dll.a' 27470 # DLL is installed to $(libdir)/../bin by postinstall_cmds 27471 postinstall_cmds='base_file=`basename \$file`~ 27472 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 27473 dldir=$destdir/`dirname \$dlpath`~ 27474 test -d \$dldir || mkdir -p \$dldir~ 27475 $install_prog $dir/$dlname \$dldir/$dlname~ 27476 chmod a+x \$dldir/$dlname~ 27477 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 27478 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 27479 fi' 27480 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 27481 dlpath=$dir/\$dldll~ 27482 $RM \$dlpath' 27483 shlibpath_overrides_runpath=yes 27484 27485 case $host_os in 27486 cygwin*) 27487 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 27488 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 27489 27490 ;; 27491 mingw* | cegcc*) 27492 # MinGW DLLs use traditional 'lib' prefix 27493 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 27494 ;; 27495 pw32*) 27496 # pw32 DLLs use 'pw' prefix rather than 'lib' 27497 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 27498 ;; 27499 esac 27500 dynamic_linker='Win32 ld.exe' 27501 ;; 27502 27503 *,cl*) 27504 # Native MSVC 27505 libname_spec='$name' 27506 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 27507 library_names_spec='$libname.dll.lib' 27508 27509 case $build_os in 27510 mingw*) 27511 sys_lib_search_path_spec= 27512 lt_save_ifs=$IFS 27513 IFS=';' 27514 for lt_path in $LIB 27515 do 27516 IFS=$lt_save_ifs 27517 # Let DOS variable expansion print the short 8.3 style file name. 27518 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 27519 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 27520 done 27521 IFS=$lt_save_ifs 27522 # Convert to MSYS style. 27523 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 27524 ;; 27525 cygwin*) 27526 # Convert to unix form, then to dos form, then back to unix form 27527 # but this time dos style (no spaces!) so that the unix form looks 27528 # like /cygdrive/c/PROGRA~1:/cygdr... 27529 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 27530 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 27531 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 27532 ;; 27533 *) 27534 sys_lib_search_path_spec=$LIB 27535 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 27536 # It is most probably a Windows format PATH. 27537 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 27538 else 27539 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 27540 fi 27541 # FIXME: find the short name or the path components, as spaces are 27542 # common. (e.g. "Program Files" -> "PROGRA~1") 27543 ;; 27544 esac 27545 27546 # DLL is installed to $(libdir)/../bin by postinstall_cmds 27547 postinstall_cmds='base_file=`basename \$file`~ 27548 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 27549 dldir=$destdir/`dirname \$dlpath`~ 27550 test -d \$dldir || mkdir -p \$dldir~ 27551 $install_prog $dir/$dlname \$dldir/$dlname' 27552 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 27553 dlpath=$dir/\$dldll~ 27554 $RM \$dlpath' 27555 shlibpath_overrides_runpath=yes 27556 dynamic_linker='Win32 link.exe' 27557 ;; 27558 27559 *) 27560 # Assume MSVC wrapper 27561 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 27562 dynamic_linker='Win32 ld.exe' 27563 ;; 27564 esac 27565 # FIXME: first we should search . and the directory the executable is in 27566 shlibpath_var=PATH 27567 ;; 27568 27569darwin* | rhapsody*) 27570 dynamic_linker="$host_os dyld" 27571 version_type=darwin 27572 need_lib_prefix=no 27573 need_version=no 27574 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 27575 soname_spec='$libname$release$major$shared_ext' 27576 shlibpath_overrides_runpath=yes 27577 shlibpath_var=DYLD_LIBRARY_PATH 27578 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 27579 27580 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 27581 ;; 27582 27583dgux*) 27584 version_type=linux # correct to gnu/linux during the next big refactor 27585 need_lib_prefix=no 27586 need_version=no 27587 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 27588 soname_spec='$libname$release$shared_ext$major' 27589 shlibpath_var=LD_LIBRARY_PATH 27590 ;; 27591 27592freebsd* | dragonfly*) 27593 # DragonFly does not have aout. When/if they implement a new 27594 # versioning mechanism, adjust this. 27595 if test -x /usr/bin/objformat; then 27596 objformat=`/usr/bin/objformat` 27597 else 27598 case $host_os in 27599 freebsd[23].*) objformat=aout ;; 27600 *) objformat=elf ;; 27601 esac 27602 fi 27603 version_type=freebsd-$objformat 27604 case $version_type in 27605 freebsd-elf*) 27606 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 27607 soname_spec='$libname$release$shared_ext$major' 27608 need_version=no 27609 need_lib_prefix=no 27610 ;; 27611 freebsd-*) 27612 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 27613 need_version=yes 27614 ;; 27615 esac 27616 shlibpath_var=LD_LIBRARY_PATH 27617 case $host_os in 27618 freebsd2.*) 27619 shlibpath_overrides_runpath=yes 27620 ;; 27621 freebsd3.[01]* | freebsdelf3.[01]*) 27622 shlibpath_overrides_runpath=yes 27623 hardcode_into_libs=yes 27624 ;; 27625 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 27626 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 27627 shlibpath_overrides_runpath=no 27628 hardcode_into_libs=yes 27629 ;; 27630 *) # from 4.6 on, and DragonFly 27631 shlibpath_overrides_runpath=yes 27632 hardcode_into_libs=yes 27633 ;; 27634 esac 27635 ;; 27636 27637haiku*) 27638 version_type=linux # correct to gnu/linux during the next big refactor 27639 need_lib_prefix=no 27640 need_version=no 27641 dynamic_linker="$host_os runtime_loader" 27642 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 27643 soname_spec='$libname$release$shared_ext$major' 27644 shlibpath_var=LIBRARY_PATH 27645 shlibpath_overrides_runpath=no 27646 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 27647 hardcode_into_libs=yes 27648 ;; 27649 27650hpux9* | hpux10* | hpux11*) 27651 # Give a soname corresponding to the major version so that dld.sl refuses to 27652 # link against other versions. 27653 version_type=sunos 27654 need_lib_prefix=no 27655 need_version=no 27656 case $host_cpu in 27657 ia64*) 27658 shrext_cmds='.so' 27659 hardcode_into_libs=yes 27660 dynamic_linker="$host_os dld.so" 27661 shlibpath_var=LD_LIBRARY_PATH 27662 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 27663 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 27664 soname_spec='$libname$release$shared_ext$major' 27665 if test 32 = "$HPUX_IA64_MODE"; then 27666 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 27667 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 27668 else 27669 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 27670 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 27671 fi 27672 ;; 27673 hppa*64*) 27674 shrext_cmds='.sl' 27675 hardcode_into_libs=yes 27676 dynamic_linker="$host_os dld.sl" 27677 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 27678 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 27679 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 27680 soname_spec='$libname$release$shared_ext$major' 27681 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 27682 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 27683 ;; 27684 *) 27685 shrext_cmds='.sl' 27686 dynamic_linker="$host_os dld.sl" 27687 shlibpath_var=SHLIB_PATH 27688 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 27689 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 27690 soname_spec='$libname$release$shared_ext$major' 27691 ;; 27692 esac 27693 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 27694 postinstall_cmds='chmod 555 $lib' 27695 # or fails outright, so override atomically: 27696 install_override_mode=555 27697 ;; 27698 27699interix[3-9]*) 27700 version_type=linux # correct to gnu/linux during the next big refactor 27701 need_lib_prefix=no 27702 need_version=no 27703 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 27704 soname_spec='$libname$release$shared_ext$major' 27705 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 27706 shlibpath_var=LD_LIBRARY_PATH 27707 shlibpath_overrides_runpath=no 27708 hardcode_into_libs=yes 27709 ;; 27710 27711irix5* | irix6* | nonstopux*) 27712 case $host_os in 27713 nonstopux*) version_type=nonstopux ;; 27714 *) 27715 if test yes = "$lt_cv_prog_gnu_ld"; then 27716 version_type=linux # correct to gnu/linux during the next big refactor 27717 else 27718 version_type=irix 27719 fi ;; 27720 esac 27721 need_lib_prefix=no 27722 need_version=no 27723 soname_spec='$libname$release$shared_ext$major' 27724 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 27725 case $host_os in 27726 irix5* | nonstopux*) 27727 libsuff= shlibsuff= 27728 ;; 27729 *) 27730 case $LD in # libtool.m4 will add one of these switches to LD 27731 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 27732 libsuff= shlibsuff= libmagic=32-bit;; 27733 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 27734 libsuff=32 shlibsuff=N32 libmagic=N32;; 27735 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 27736 libsuff=64 shlibsuff=64 libmagic=64-bit;; 27737 *) libsuff= shlibsuff= libmagic=never-match;; 27738 esac 27739 ;; 27740 esac 27741 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 27742 shlibpath_overrides_runpath=no 27743 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 27744 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 27745 hardcode_into_libs=yes 27746 ;; 27747 27748# No shared lib support for Linux oldld, aout, or coff. 27749linux*oldld* | linux*aout* | linux*coff*) 27750 dynamic_linker=no 27751 ;; 27752 27753linux*android*) 27754 version_type=none # Android doesn't support versioned libraries. 27755 need_lib_prefix=no 27756 need_version=no 27757 library_names_spec='$libname$release$shared_ext' 27758 soname_spec='$libname$release$shared_ext' 27759 finish_cmds= 27760 shlibpath_var=LD_LIBRARY_PATH 27761 shlibpath_overrides_runpath=yes 27762 27763 # This implies no fast_install, which is unacceptable. 27764 # Some rework will be needed to allow for fast_install 27765 # before this can be enabled. 27766 hardcode_into_libs=yes 27767 27768 dynamic_linker='Android linker' 27769 # Don't embed -rpath directories since the linker doesn't support them. 27770 hardcode_libdir_flag_spec_FC='-L$libdir' 27771 ;; 27772 27773# This must be glibc/ELF. 27774linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 27775 version_type=linux # correct to gnu/linux during the next big refactor 27776 need_lib_prefix=no 27777 need_version=no 27778 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 27779 soname_spec='$libname$release$shared_ext$major' 27780 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 27781 shlibpath_var=LD_LIBRARY_PATH 27782 shlibpath_overrides_runpath=no 27783# EF : 27784 hardcode_into_libs=yes 27785 27786 # Some binutils ld are patched to set DT_RUNPATH 27787 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 27788 $as_echo_n "(cached) " >&6 27789else 27790 lt_cv_shlibpath_overrides_runpath=no 27791 save_LDFLAGS=$LDFLAGS 27792 save_libdir=$libdir 27793 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \ 27794 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\"" 27795 cat > conftest.$ac_ext <<_ACEOF 27796 program main 27797 27798 end 27799_ACEOF 27800if ac_fn_fc_try_link "$LINENO"; then : 27801 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 27802 lt_cv_shlibpath_overrides_runpath=yes 27803fi 27804fi 27805rm -f core conftest.err conftest.$ac_objext \ 27806 conftest$ac_exeext conftest.$ac_ext 27807 LDFLAGS=$save_LDFLAGS 27808 libdir=$save_libdir 27809 27810fi 27811 27812 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 27813 27814 # This implies no fast_install, which is unacceptable. 27815 # Some rework will be needed to allow for fast_install 27816 # before this can be enabled. 27817 hardcode_into_libs=yes 27818 27819 # Ideally, we could use ldconfig to report *all* directores which are 27820 # searched for libraries, however this is still not possible. Aside from not 27821 # being certain /sbin/ldconfig is available, command 27822 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 27823 # even though it is searched at run-time. Try to do the best guess by 27824 # appending ld.so.conf contents (and includes) to the search path. 27825 if test -f /etc/ld.so.conf; then 27826 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' ' '` 27827 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 27828 fi 27829 27830 # We used to test for /lib/ld.so.1 and disable shared libraries on 27831 # powerpc, because MkLinux only supported shared libraries with the 27832 # GNU dynamic linker. Since this was broken with cross compilers, 27833 # most powerpc-linux boxes support dynamic linking these days and 27834 # people can always --disable-shared, the test was removed, and we 27835 # assume the GNU/Linux dynamic linker is in use. 27836 dynamic_linker='GNU/Linux ld.so' 27837 ;; 27838 27839netbsd*) 27840 version_type=sunos 27841 need_lib_prefix=no 27842 need_version=no 27843 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 27844 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 27845 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 27846 dynamic_linker='NetBSD (a.out) ld.so' 27847 else 27848 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 27849 soname_spec='$libname$release$shared_ext$major' 27850 dynamic_linker='NetBSD ld.elf_so' 27851 fi 27852 shlibpath_var=LD_LIBRARY_PATH 27853 shlibpath_overrides_runpath=yes 27854 hardcode_into_libs=yes 27855 ;; 27856 27857newsos6) 27858 version_type=linux # correct to gnu/linux during the next big refactor 27859 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 27860 shlibpath_var=LD_LIBRARY_PATH 27861 shlibpath_overrides_runpath=yes 27862 ;; 27863 27864*nto* | *qnx*) 27865 version_type=qnx 27866 need_lib_prefix=no 27867 need_version=no 27868 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 27869 soname_spec='$libname$release$shared_ext$major' 27870 shlibpath_var=LD_LIBRARY_PATH 27871 shlibpath_overrides_runpath=no 27872 hardcode_into_libs=yes 27873 dynamic_linker='ldqnx.so' 27874 ;; 27875 27876openbsd* | bitrig*) 27877 version_type=sunos 27878 sys_lib_dlsearch_path_spec=/usr/lib 27879 need_lib_prefix=no 27880 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 27881 need_version=no 27882 else 27883 need_version=yes 27884 fi 27885 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 27886 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 27887 shlibpath_var=LD_LIBRARY_PATH 27888 shlibpath_overrides_runpath=yes 27889 ;; 27890 27891os2*) 27892 libname_spec='$name' 27893 version_type=windows 27894 shrext_cmds=.dll 27895 need_version=no 27896 need_lib_prefix=no 27897 # OS/2 can only load a DLL with a base name of 8 characters or less. 27898 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 27899 v=$($ECHO $release$versuffix | tr -d .-); 27900 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 27901 $ECHO $n$v`$shared_ext' 27902 library_names_spec='${libname}_dll.$libext' 27903 dynamic_linker='OS/2 ld.exe' 27904 shlibpath_var=BEGINLIBPATH 27905 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 27906 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 27907 postinstall_cmds='base_file=`basename \$file`~ 27908 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 27909 dldir=$destdir/`dirname \$dlpath`~ 27910 test -d \$dldir || mkdir -p \$dldir~ 27911 $install_prog $dir/$dlname \$dldir/$dlname~ 27912 chmod a+x \$dldir/$dlname~ 27913 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 27914 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 27915 fi' 27916 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 27917 dlpath=$dir/\$dldll~ 27918 $RM \$dlpath' 27919 ;; 27920 27921osf3* | osf4* | osf5*) 27922 version_type=osf 27923 need_lib_prefix=no 27924 need_version=no 27925 soname_spec='$libname$release$shared_ext$major' 27926 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 27927 shlibpath_var=LD_LIBRARY_PATH 27928 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 27929 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 27930 ;; 27931 27932rdos*) 27933 dynamic_linker=no 27934 ;; 27935 27936solaris*) 27937 version_type=linux # correct to gnu/linux during the next big refactor 27938 need_lib_prefix=no 27939 need_version=no 27940 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 27941 soname_spec='$libname$release$shared_ext$major' 27942 shlibpath_var=LD_LIBRARY_PATH 27943 shlibpath_overrides_runpath=yes 27944 hardcode_into_libs=yes 27945 # ldd complains unless libraries are executable 27946 postinstall_cmds='chmod +x $lib' 27947 ;; 27948 27949sunos4*) 27950 version_type=sunos 27951 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 27952 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 27953 shlibpath_var=LD_LIBRARY_PATH 27954 shlibpath_overrides_runpath=yes 27955 if test yes = "$with_gnu_ld"; then 27956 need_lib_prefix=no 27957 fi 27958 need_version=yes 27959 ;; 27960 27961sysv4 | sysv4.3*) 27962 version_type=linux # correct to gnu/linux during the next big refactor 27963 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 27964 soname_spec='$libname$release$shared_ext$major' 27965 shlibpath_var=LD_LIBRARY_PATH 27966 case $host_vendor in 27967 sni) 27968 shlibpath_overrides_runpath=no 27969 need_lib_prefix=no 27970 runpath_var=LD_RUN_PATH 27971 ;; 27972 siemens) 27973 need_lib_prefix=no 27974 ;; 27975 motorola) 27976 need_lib_prefix=no 27977 need_version=no 27978 shlibpath_overrides_runpath=no 27979 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 27980 ;; 27981 esac 27982 ;; 27983 27984sysv4*MP*) 27985 if test -d /usr/nec; then 27986 version_type=linux # correct to gnu/linux during the next big refactor 27987 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 27988 soname_spec='$libname$shared_ext.$major' 27989 shlibpath_var=LD_LIBRARY_PATH 27990 fi 27991 ;; 27992 27993sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 27994 version_type=sco 27995 need_lib_prefix=no 27996 need_version=no 27997 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 27998 soname_spec='$libname$release$shared_ext$major' 27999 shlibpath_var=LD_LIBRARY_PATH 28000 shlibpath_overrides_runpath=yes 28001 hardcode_into_libs=yes 28002 if test yes = "$with_gnu_ld"; then 28003 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 28004 else 28005 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 28006 case $host_os in 28007 sco3.2v5*) 28008 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 28009 ;; 28010 esac 28011 fi 28012 sys_lib_dlsearch_path_spec='/usr/lib' 28013 ;; 28014 28015tpf*) 28016 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 28017 version_type=linux # correct to gnu/linux during the next big refactor 28018 need_lib_prefix=no 28019 need_version=no 28020 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 28021 shlibpath_var=LD_LIBRARY_PATH 28022 shlibpath_overrides_runpath=no 28023 hardcode_into_libs=yes 28024 ;; 28025 28026uts4*) 28027 version_type=linux # correct to gnu/linux during the next big refactor 28028 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 28029 soname_spec='$libname$release$shared_ext$major' 28030 shlibpath_var=LD_LIBRARY_PATH 28031 ;; 28032 28033*) 28034 dynamic_linker=no 28035 ;; 28036esac 28037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 28038$as_echo "$dynamic_linker" >&6; } 28039test no = "$dynamic_linker" && can_build_shared=no 28040 28041variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 28042if test yes = "$GCC"; then 28043 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 28044fi 28045 28046if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 28047 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 28048fi 28049 28050if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 28051 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 28052fi 28053 28054# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 28055configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 28056 28057# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 28058func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 28059 28060# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 28061configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 28062 28063 28064 28065 28066 28067 28068 28069 28070 28071 28072 28073 28074 28075 28076 28077 28078 28079 28080 28081 28082 28083 28084 28085 28086 28087 28088 28089 28090 28091 28092 28093 28094 28095 28096 28097 28098 28099 28100 28101 28102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 28103$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 28104hardcode_action_FC= 28105if test -n "$hardcode_libdir_flag_spec_FC" || 28106 test -n "$runpath_var_FC" || 28107 test yes = "$hardcode_automatic_FC"; then 28108 28109 # We can hardcode non-existent directories. 28110 if test no != "$hardcode_direct_FC" && 28111 # If the only mechanism to avoid hardcoding is shlibpath_var, we 28112 # have to relink, otherwise we might link with an installed library 28113 # when we should be linking with a yet-to-be-installed one 28114 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" && 28115 test no != "$hardcode_minus_L_FC"; then 28116 # Linking always hardcodes the temporary library directory. 28117 hardcode_action_FC=relink 28118 else 28119 # We can link without hardcoding, and we can hardcode nonexisting dirs. 28120 hardcode_action_FC=immediate 28121 fi 28122else 28123 # We cannot hardcode anything, or else we can only hardcode existing 28124 # directories. 28125 hardcode_action_FC=unsupported 28126fi 28127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5 28128$as_echo "$hardcode_action_FC" >&6; } 28129 28130if test relink = "$hardcode_action_FC" || 28131 test yes = "$inherit_rpath_FC"; then 28132 # Fast installation is not supported 28133 enable_fast_install=no 28134elif test yes = "$shlibpath_overrides_runpath" || 28135 test no = "$enable_shared"; then 28136 # Fast installation is not necessary 28137 enable_fast_install=needless 28138fi 28139 28140 28141 28142 28143 28144 28145 28146 fi # test -n "$compiler" 28147 28148 GCC=$lt_save_GCC 28149 CC=$lt_save_CC 28150 CFLAGS=$lt_save_CFLAGS 28151fi # test yes != "$_lt_disable_FC" 28152 28153ac_ext=c 28154ac_cpp='$CPP $CPPFLAGS' 28155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28157ac_compiler_gnu=$ac_cv_c_compiler_gnu 28158 28159 28160 28161 28162 28163 28164 28165 28166 28167 28168 28169 ac_config_commands="$ac_config_commands libtool" 28170 28171 28172 28173 28174# Only expand once: 28175 28176 28177 28178 28179## LOOKING FOR diff program 28180# Extract the first word of "diff", so it can be a program name with args. 28181set dummy diff; ac_word=$2 28182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28183$as_echo_n "checking for $ac_word... " >&6; } 28184if ${ac_cv_prog_DIFF+:} false; then : 28185 $as_echo_n "(cached) " >&6 28186else 28187 if test -n "$DIFF"; then 28188 ac_cv_prog_DIFF="$DIFF" # Let the user override the test. 28189else 28190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28191for as_dir in $PATH 28192do 28193 IFS=$as_save_IFS 28194 test -z "$as_dir" && as_dir=. 28195 for ac_exec_ext in '' $ac_executable_extensions; do 28196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28197 ac_cv_prog_DIFF="yes" 28198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28199 break 2 28200 fi 28201done 28202 done 28203IFS=$as_save_IFS 28204 28205 test -z "$ac_cv_prog_DIFF" && ac_cv_prog_DIFF="no" 28206fi 28207fi 28208DIFF=$ac_cv_prog_DIFF 28209if test -n "$DIFF"; then 28210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 28211$as_echo "$DIFF" >&6; } 28212else 28213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28214$as_echo "no" >&6; } 28215fi 28216 28217 28218 28219if test "X$DIFF" = "Xno"; then 28220 as_fn_error $? "Can't find diff command, please verify your env. var. PATH" "$LINENO" 5 28221fi 28222 28223## LOOKING FOR sed program 28224# Extract the first word of "sed", so it can be a program name with args. 28225set dummy sed; ac_word=$2 28226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28227$as_echo_n "checking for $ac_word... " >&6; } 28228if ${ac_cv_prog_SED+:} false; then : 28229 $as_echo_n "(cached) " >&6 28230else 28231 if test -n "$SED"; then 28232 ac_cv_prog_SED="$SED" # Let the user override the test. 28233else 28234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28235for as_dir in $PATH 28236do 28237 IFS=$as_save_IFS 28238 test -z "$as_dir" && as_dir=. 28239 for ac_exec_ext in '' $ac_executable_extensions; do 28240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28241 ac_cv_prog_SED="yes" 28242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28243 break 2 28244 fi 28245done 28246 done 28247IFS=$as_save_IFS 28248 28249 test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="no" 28250fi 28251fi 28252SED=$ac_cv_prog_SED 28253if test -n "$SED"; then 28254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 28255$as_echo "$SED" >&6; } 28256else 28257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28258$as_echo "no" >&6; } 28259fi 28260 28261 28262 28263if test "X$SED" = "Xno"; then 28264 as_fn_error $? "Can't find sed command, please verify your env. var. PATH" "$LINENO" 5 28265fi 28266 28267## LOOKING FOR awk program 28268for ac_prog in gawk mawk nawk awk 28269do 28270 # Extract the first word of "$ac_prog", so it can be a program name with args. 28271set dummy $ac_prog; ac_word=$2 28272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28273$as_echo_n "checking for $ac_word... " >&6; } 28274if ${ac_cv_prog_AWK+:} false; then : 28275 $as_echo_n "(cached) " >&6 28276else 28277 if test -n "$AWK"; then 28278 ac_cv_prog_AWK="$AWK" # Let the user override the test. 28279else 28280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28281for as_dir in $PATH 28282do 28283 IFS=$as_save_IFS 28284 test -z "$as_dir" && as_dir=. 28285 for ac_exec_ext in '' $ac_executable_extensions; do 28286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28287 ac_cv_prog_AWK="$ac_prog" 28288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28289 break 2 28290 fi 28291done 28292 done 28293IFS=$as_save_IFS 28294 28295fi 28296fi 28297AWK=$ac_cv_prog_AWK 28298if test -n "$AWK"; then 28299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 28300$as_echo "$AWK" >&6; } 28301else 28302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28303$as_echo "no" >&6; } 28304fi 28305 28306 28307 test -n "$AWK" && break 28308done 28309 28310if test "X$AWK" = "X"; then 28311 as_fn_error $? "Can't find awk command, please verify your env. var. PATH" "$LINENO" 5 28312fi 28313 28314## Check for ln -s 28315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 28316$as_echo_n "checking whether ln -s works... " >&6; } 28317LN_S=$as_ln_s 28318if test "$LN_S" = "ln -s"; then 28319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28320$as_echo "yes" >&6; } 28321else 28322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 28323$as_echo "no, using $LN_S" >&6; } 28324fi 28325 28326 28327## Check for cp 28328# Extract the first word of "cp", so it can be a program name with args. 28329set dummy cp; ac_word=$2 28330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28331$as_echo_n "checking for $ac_word... " >&6; } 28332if ${ac_cv_path_CP+:} false; then : 28333 $as_echo_n "(cached) " >&6 28334else 28335 case $CP in 28336 [\\/]* | ?:[\\/]*) 28337 ac_cv_path_CP="$CP" # Let the user override the test with a path. 28338 ;; 28339 *) 28340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28341for as_dir in $PATH 28342do 28343 IFS=$as_save_IFS 28344 test -z "$as_dir" && as_dir=. 28345 for ac_exec_ext in '' $ac_executable_extensions; do 28346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28347 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 28348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28349 break 2 28350 fi 28351done 28352 done 28353IFS=$as_save_IFS 28354 28355 ;; 28356esac 28357fi 28358CP=$ac_cv_path_CP 28359if test -n "$CP"; then 28360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 28361$as_echo "$CP" >&6; } 28362else 28363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28364$as_echo "no" >&6; } 28365fi 28366 28367 28368 28369if test "X$CP" = "X"; then 28370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I don't find cp command in your PATH! - You coudn't use make check ! -" >&5 28371$as_echo "$as_me: WARNING: I don't find cp command in your PATH! - You coudn't use make check ! -" >&2;} 28372fi 28373 28374 28375## Check for tk interpreter : we don't check version 28376## (for next realese :-) 28377# Extract the first word of "wish", so it can be a program name with args. 28378set dummy wish; ac_word=$2 28379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28380$as_echo_n "checking for $ac_word... " >&6; } 28381if ${ac_cv_path_WISH+:} false; then : 28382 $as_echo_n "(cached) " >&6 28383else 28384 case $WISH in 28385 [\\/]* | ?:[\\/]*) 28386 ac_cv_path_WISH="$WISH" # Let the user override the test with a path. 28387 ;; 28388 *) 28389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28390for as_dir in $PATH 28391do 28392 IFS=$as_save_IFS 28393 test -z "$as_dir" && as_dir=. 28394 for ac_exec_ext in '' $ac_executable_extensions; do 28395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28396 ac_cv_path_WISH="$as_dir/$ac_word$ac_exec_ext" 28397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28398 break 2 28399 fi 28400done 28401 done 28402IFS=$as_save_IFS 28403 28404 ;; 28405esac 28406fi 28407WISH=$ac_cv_path_WISH 28408if test -n "$WISH"; then 28409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WISH" >&5 28410$as_echo "$WISH" >&6; } 28411else 28412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28413$as_echo "no" >&6; } 28414fi 28415 28416 28417 28418if test "X$WISH" = "X"; then 28419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I don't find TK interpreter in your PATH! - You coudn't use graphical dump ! -" >&5 28420$as_echo "$as_me: WARNING: I don't find TK interpreter in your PATH! - You coudn't use graphical dump ! -" >&2;} 28421fi 28422 28423 28424 28425# Checks for header files. 28426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 28427$as_echo_n "checking for ANSI C header files... " >&6; } 28428if ${ac_cv_header_stdc+:} false; then : 28429 $as_echo_n "(cached) " >&6 28430else 28431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28432/* end confdefs.h. */ 28433#include <stdlib.h> 28434#include <stdarg.h> 28435#include <string.h> 28436#include <float.h> 28437 28438#ifdef F77_DUMMY_MAIN 28439 28440# ifdef __cplusplus 28441 extern "C" 28442# endif 28443 int F77_DUMMY_MAIN() { return 1; } 28444 28445#endif 28446int 28447main () 28448{ 28449 28450 ; 28451 return 0; 28452} 28453_ACEOF 28454if ac_fn_c_try_compile "$LINENO"; then : 28455 ac_cv_header_stdc=yes 28456else 28457 ac_cv_header_stdc=no 28458fi 28459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28460 28461if test $ac_cv_header_stdc = yes; then 28462 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 28463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28464/* end confdefs.h. */ 28465#include <string.h> 28466 28467_ACEOF 28468if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 28469 $EGREP "memchr" >/dev/null 2>&1; then : 28470 28471else 28472 ac_cv_header_stdc=no 28473fi 28474rm -f conftest* 28475 28476fi 28477 28478if test $ac_cv_header_stdc = yes; then 28479 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 28480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28481/* end confdefs.h. */ 28482#include <stdlib.h> 28483 28484_ACEOF 28485if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 28486 $EGREP "free" >/dev/null 2>&1; then : 28487 28488else 28489 ac_cv_header_stdc=no 28490fi 28491rm -f conftest* 28492 28493fi 28494 28495if test $ac_cv_header_stdc = yes; then 28496 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 28497 if test "$cross_compiling" = yes; then : 28498 : 28499else 28500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28501/* end confdefs.h. */ 28502#include <ctype.h> 28503#include <stdlib.h> 28504#if ((' ' & 0x0FF) == 0x020) 28505# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 28506# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 28507#else 28508# define ISLOWER(c) \ 28509 (('a' <= (c) && (c) <= 'i') \ 28510 || ('j' <= (c) && (c) <= 'r') \ 28511 || ('s' <= (c) && (c) <= 'z')) 28512# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 28513#endif 28514 28515#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 28516int 28517main () 28518{ 28519 int i; 28520 for (i = 0; i < 256; i++) 28521 if (XOR (islower (i), ISLOWER (i)) 28522 || toupper (i) != TOUPPER (i)) 28523 return 2; 28524 return 0; 28525} 28526_ACEOF 28527if ac_fn_c_try_run "$LINENO"; then : 28528 28529else 28530 ac_cv_header_stdc=no 28531fi 28532rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 28533 conftest.$ac_objext conftest.beam conftest.$ac_ext 28534fi 28535 28536fi 28537fi 28538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 28539$as_echo "$ac_cv_header_stdc" >&6; } 28540if test $ac_cv_header_stdc = yes; then 28541 28542$as_echo "#define STDC_HEADERS 1" >>confdefs.h 28543 28544fi 28545 28546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 28547$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 28548if ${ac_cv_header_time+:} false; then : 28549 $as_echo_n "(cached) " >&6 28550else 28551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28552/* end confdefs.h. */ 28553#include <sys/types.h> 28554#include <sys/time.h> 28555#include <time.h> 28556 28557#ifdef F77_DUMMY_MAIN 28558 28559# ifdef __cplusplus 28560 extern "C" 28561# endif 28562 int F77_DUMMY_MAIN() { return 1; } 28563 28564#endif 28565int 28566main () 28567{ 28568if ((struct tm *) 0) 28569return 0; 28570 ; 28571 return 0; 28572} 28573_ACEOF 28574if ac_fn_c_try_compile "$LINENO"; then : 28575 ac_cv_header_time=yes 28576else 28577 ac_cv_header_time=no 28578fi 28579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28580fi 28581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 28582$as_echo "$ac_cv_header_time" >&6; } 28583if test $ac_cv_header_time = yes; then 28584 28585$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 28586 28587fi 28588 28589for ac_header in malloc.h sys/time.h sys/timeb.h 28590do : 28591 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 28592ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 28593if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 28594 cat >>confdefs.h <<_ACEOF 28595#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 28596_ACEOF 28597 28598fi 28599 28600done 28601 28602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 28603$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 28604if ${ac_cv_header_stdbool_h+:} false; then : 28605 $as_echo_n "(cached) " >&6 28606else 28607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28608/* end confdefs.h. */ 28609 28610 #include <stdbool.h> 28611 #ifndef bool 28612 "error: bool is not defined" 28613 #endif 28614 #ifndef false 28615 "error: false is not defined" 28616 #endif 28617 #if false 28618 "error: false is not 0" 28619 #endif 28620 #ifndef true 28621 "error: true is not defined" 28622 #endif 28623 #if true != 1 28624 "error: true is not 1" 28625 #endif 28626 #ifndef __bool_true_false_are_defined 28627 "error: __bool_true_false_are_defined is not defined" 28628 #endif 28629 28630 struct s { _Bool s: 1; _Bool t; } s; 28631 28632 char a[true == 1 ? 1 : -1]; 28633 char b[false == 0 ? 1 : -1]; 28634 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 28635 char d[(bool) 0.5 == true ? 1 : -1]; 28636 /* See body of main program for 'e'. */ 28637 char f[(_Bool) 0.0 == false ? 1 : -1]; 28638 char g[true]; 28639 char h[sizeof (_Bool)]; 28640 char i[sizeof s.t]; 28641 enum { j = false, k = true, l = false * true, m = true * 256 }; 28642 /* The following fails for 28643 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 28644 _Bool n[m]; 28645 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 28646 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 28647 /* Catch a bug in an HP-UX C compiler. See 28648 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 28649 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 28650 */ 28651 _Bool q = true; 28652 _Bool *pq = &q; 28653 28654#ifdef F77_DUMMY_MAIN 28655 28656# ifdef __cplusplus 28657 extern "C" 28658# endif 28659 int F77_DUMMY_MAIN() { return 1; } 28660 28661#endif 28662int 28663main () 28664{ 28665 28666 bool e = &s; 28667 *pq |= q; 28668 *pq |= ! q; 28669 /* Refer to every declared value, to avoid compiler optimizations. */ 28670 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 28671 + !m + !n + !o + !p + !q + !pq); 28672 28673 ; 28674 return 0; 28675} 28676_ACEOF 28677if ac_fn_c_try_compile "$LINENO"; then : 28678 ac_cv_header_stdbool_h=yes 28679else 28680 ac_cv_header_stdbool_h=no 28681fi 28682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28683fi 28684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 28685$as_echo "$ac_cv_header_stdbool_h" >&6; } 28686 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 28687if test "x$ac_cv_type__Bool" = xyes; then : 28688 28689cat >>confdefs.h <<_ACEOF 28690#define HAVE__BOOL 1 28691_ACEOF 28692 28693 28694fi 28695 28696 28697if test $ac_cv_header_stdbool_h = yes; then 28698 28699$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h 28700 28701fi 28702 28703for ac_header in sys/types.h pwd.h unistd.h 28704do : 28705 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 28706ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 28707if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 28708 cat >>confdefs.h <<_ACEOF 28709#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 28710_ACEOF 28711 28712fi 28713 28714done 28715 28716for ac_func in getpwuid geteuid cuserid 28717do : 28718 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 28719ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 28720if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 28721 cat >>confdefs.h <<_ACEOF 28722#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 28723_ACEOF 28724 28725fi 28726done 28727 28728 28729# Checks for typedefs, structures, and compiler characteristics. 28730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 28731$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 28732if ${ac_cv_c_const+:} false; then : 28733 $as_echo_n "(cached) " >&6 28734else 28735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28736/* end confdefs.h. */ 28737 28738#ifdef F77_DUMMY_MAIN 28739 28740# ifdef __cplusplus 28741 extern "C" 28742# endif 28743 int F77_DUMMY_MAIN() { return 1; } 28744 28745#endif 28746int 28747main () 28748{ 28749 28750#ifndef __cplusplus 28751 /* Ultrix mips cc rejects this sort of thing. */ 28752 typedef int charset[2]; 28753 const charset cs = { 0, 0 }; 28754 /* SunOS 4.1.1 cc rejects this. */ 28755 char const *const *pcpcc; 28756 char **ppc; 28757 /* NEC SVR4.0.2 mips cc rejects this. */ 28758 struct point {int x, y;}; 28759 static struct point const zero = {0,0}; 28760 /* AIX XL C 1.02.0.0 rejects this. 28761 It does not let you subtract one const X* pointer from another in 28762 an arm of an if-expression whose if-part is not a constant 28763 expression */ 28764 const char *g = "string"; 28765 pcpcc = &g + (g ? g-g : 0); 28766 /* HPUX 7.0 cc rejects these. */ 28767 ++pcpcc; 28768 ppc = (char**) pcpcc; 28769 pcpcc = (char const *const *) ppc; 28770 { /* SCO 3.2v4 cc rejects this sort of thing. */ 28771 char tx; 28772 char *t = &tx; 28773 char const *s = 0 ? (char *) 0 : (char const *) 0; 28774 28775 *t++ = 0; 28776 if (s) return 0; 28777 } 28778 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 28779 int x[] = {25, 17}; 28780 const int *foo = &x[0]; 28781 ++foo; 28782 } 28783 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 28784 typedef const int *iptr; 28785 iptr p = 0; 28786 ++p; 28787 } 28788 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 28789 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 28790 struct s { int j; const int *ap[3]; } bx; 28791 struct s *b = &bx; b->j = 5; 28792 } 28793 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 28794 const int foo = 10; 28795 if (!foo) return 0; 28796 } 28797 return !cs[0] && !zero.x; 28798#endif 28799 28800 ; 28801 return 0; 28802} 28803_ACEOF 28804if ac_fn_c_try_compile "$LINENO"; then : 28805 ac_cv_c_const=yes 28806else 28807 ac_cv_c_const=no 28808fi 28809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28810fi 28811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 28812$as_echo "$ac_cv_c_const" >&6; } 28813if test $ac_cv_c_const = no; then 28814 28815$as_echo "#define const /**/" >>confdefs.h 28816 28817fi 28818 28819ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 28820if test "x$ac_cv_type_size_t" = xyes; then : 28821 28822else 28823 28824cat >>confdefs.h <<_ACEOF 28825#define size_t unsigned int 28826_ACEOF 28827 28828fi 28829 28830 28831 28832## Guess where as int64 type is provided by --with-int64 option 28833## or auto-detection must be used 28834 28835 28836# Check whether --with-int64 was given. 28837if test "${with_int64+set}" = set; then : 28838 withval=$with_int64; 28839else 28840 withval=no 28841fi 28842 28843 28844 28845med_have_int64="no" 28846 28847if test x"$withval" = xno 28848then 28849 28850#Le type int64_t est défini par la macro si stdint.h n'existe pas et qu'un type entier 64bits en complément à 2 existe sur la plateforme. 28851#La définition est utilisée dans confdefs.h pour les macro suivantes. 28852 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" 28853case $ac_cv_c_int64_t in #( 28854 no|yes) ;; #( 28855 *) 28856 28857cat >>confdefs.h <<_ACEOF 28858#define int64_t $ac_cv_c_int64_t 28859_ACEOF 28860;; 28861esac 28862 28863#echo "------------------- ac_cv_c_int64_t" : $ac_cv_c_int64_t" ---------------------" 28864# Attention : med_config.h n'est pas directement inclu dans med.h (de façon volontaire pour séparer headers publiques et privés ). 28865#Il faut allors utiliser une variable de substitution pour inclure dans le header med.h.in la définition du type int64_t s'il n'est pas disponible dans stdint.h. 28866#DONE : 1) Tester en mode 32 bits avec le compilateur : -m32 (mais un long long 64bits existe) 28867#TODO : 2) Tester dans un système 32 bits avec proc 32bits 28868 28869 case "x$ac_cv_c_int64_t" in 28870 "xyes") 28871 MED_INT64="int64_t" 28872 ;; 28873 "xno") 28874 MED_INT64="med_int" 28875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: There is no 64bits signed integer type, writing/reading MED_INT64 fields will not be possible." >&5 28876$as_echo "$as_me: WARNING: There is no 64bits signed integer type, writing/reading MED_INT64 fields will not be possible." >&2;} 28877 ;; 28878 *) 28879 MED_INT64="$ac_cv_c_int64_t" 28880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: A 64bits signed integer type has been found ($ac_cv_c_int64_t) and will be used for defining int64_t type in med.h and med_config.h." >&5 28881$as_echo "$as_me: WARNING: A 64bits signed integer type has been found ($ac_cv_c_int64_t) and will be used for defining int64_t type in med.h and med_config.h." >&2;} 28882 ;; 28883 esac 28884 28885#Si int64_t est défini, positionne la définition PP HAVE_INT64 (pour l'option de compilation swig -DSWIGWORDSIZ6E4 ) 28886#En fait swig se base sur __WORDSIZE == 32/i386 ou 64/x64 malheureusemnt même un linux32 sur proc64 où int64_t existe (long long) swig ne prend pas en charge les int64 car il n'accepte pas l'option SWIGWORDSIZE64 28887 test "x$ac_cv_c_int64_t" = "xno" && med_have_int64="no" || med_have_int64="yes" 28888 # The cast to long int works around a bug in the HP C Compiler 28889# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 28890# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 28891# This bug is HP SR number 8606223364. 28892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 28893$as_echo_n "checking size of long... " >&6; } 28894if ${ac_cv_sizeof_long+:} false; then : 28895 $as_echo_n "(cached) " >&6 28896else 28897 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 28898 28899else 28900 if test "$ac_cv_type_long" = yes; then 28901 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28902$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28903as_fn_error 77 "cannot compute sizeof (long) 28904See \`config.log' for more details" "$LINENO" 5; } 28905 else 28906 ac_cv_sizeof_long=0 28907 fi 28908fi 28909 28910fi 28911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 28912$as_echo "$ac_cv_sizeof_long" >&6; } 28913 28914 28915 28916cat >>confdefs.h <<_ACEOF 28917#define SIZEOF_LONG $ac_cv_sizeof_long 28918_ACEOF 28919 28920 28921 # The cast to long int works around a bug in the HP C Compiler 28922# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 28923# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 28924# This bug is HP SR number 8606223364. 28925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 28926$as_echo_n "checking size of long long... " >&6; } 28927if ${ac_cv_sizeof_long_long+:} false; then : 28928 $as_echo_n "(cached) " >&6 28929else 28930 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 28931 28932else 28933 if test "$ac_cv_type_long_long" = yes; then 28934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28935$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28936as_fn_error 77 "cannot compute sizeof (long long) 28937See \`config.log' for more details" "$LINENO" 5; } 28938 else 28939 ac_cv_sizeof_long_long=0 28940 fi 28941fi 28942 28943fi 28944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 28945$as_echo "$ac_cv_sizeof_long_long" >&6; } 28946 28947 28948 28949cat >>confdefs.h <<_ACEOF 28950#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 28951_ACEOF 28952 28953 28954 test "x$ac_cv_sizeof_long" = "x8" && med_swig_int64="yes" || med_swig_int64="no" 28955 28956 test "x$ac_cv_sizeof_long" = "x8" && MED_H5T_INT64="H5T_NATIVE_LONG" && 28957 ( 28958$as_echo "#define MED_H5T_INT64 H5T_NATIVE_LONG" >>confdefs.h 28959) || ( 28960 test "x$ac_cv_sizeof_long_long" = "x8" && MED_H5T_INT64="H5T_NATIVE_LLONG" 28961 28962$as_echo "#define MED_H5T_INT64 H5T_NATIVE_LLONG" >>confdefs.h 28963 28964 ) 28965 28966 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" 28967case $ac_cv_c_int32_t in #( 28968 no|yes) ;; #( 28969 *) 28970 28971cat >>confdefs.h <<_ACEOF 28972#define int32_t $ac_cv_c_int32_t 28973_ACEOF 28974;; 28975esac 28976 28977 case "x$ac_cv_c_int32_t" in 28978 "xyes") MED_INT32="int32_t" ;; 28979 "xno") MED_INT32="med_int" 28980 as_fn_error $? "We must found at least a four bytes signed integer type !" "$LINENO" 5 28981 ;; 28982 *) 28983 MED_INT32="$ac_cv_c_int32_t" 28984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: A 32bits signed integer type has been found ($ac_cv_c_int32_t) and will be used for defining int32_t type in med.h and med_config.h." >&5 28985$as_echo "$as_me: WARNING: A 32bits signed integer type has been found ($ac_cv_c_int32_t) and will be used for defining int32_t type in med.h and med_config.h." >&2;} 28986 ;; 28987 esac 28988 28989else 28990 MED_INT64="$withval" 28991 { $as_echo "$as_me:${as_lineno-$LINENO}: Using type $withval for int64" >&5 28992$as_echo "$as_me: Using type $withval for int64" >&6;} 28993 med_have_int64="yes" 28994 MED_INT32="int" 28995 #Prévoir un paramétrage 28996 MED_H5T_INT64="H5T_NATIVE_LONG" 28997 28998$as_echo "#define MED_H5T_INT64 H5T_NATIVE_LONG" >>confdefs.h 28999 29000fi 29001 29002test "x$med_swig_int64" = "xyes" && ( 29003$as_echo "#define MED_SWIG_INT64 /**/" >>confdefs.h 29004) 29005 if test "x$med_swig_int64" = "xyes" ; then 29006 MED_SWIG_INT64_TRUE= 29007 MED_SWIG_INT64_FALSE='#' 29008else 29009 MED_SWIG_INT64_TRUE='#' 29010 MED_SWIG_INT64_FALSE= 29011fi 29012 29013 29014test "x$med_have_int64" = "xyes" && ( 29015$as_echo "#define HAVE_INT64 /**/" >>confdefs.h 29016) 29017 if test "x$med_have_int64" = "xyes" ; then 29018 HAVE_INT64_TRUE= 29019 HAVE_INT64_FALSE='#' 29020else 29021 HAVE_INT64_TRUE='#' 29022 HAVE_INT64_FALSE= 29023fi 29024 29025 29026 29027 29028 29029 29030 29031# Checks for library functions. 29032##AC_FUNC_MALLOC 29033for ac_func in ftime gettimeofday 29034do : 29035 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 29036ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 29037if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 29038 cat >>confdefs.h <<_ACEOF 29039#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 29040_ACEOF 29041 29042fi 29043done 29044 29045 29046#Check For Swig 29047#Swig is not needed for users as long as they don't do 29048# a <make distclean> and they don't use HDF // 29049#If swig is enabled then CHECK_SWIG check for a python devel 29050 29051 29052 29053# Check whether --with-swig was given. 29054if test "${with_swig+set}" = set; then : 29055 withval=$with_swig; with_swig=$withval 29056else 29057 with_swig=no 29058fi 29059 29060 29061 29062 29063 29064 29065 29066 29067 29068 29069 29070 29071 WITH_SWIG=0 29072 available_swig_vernum="00000" 29073 29074 SWIG=`noswig() { echo "SWIG not available." ; return 1 ; } ; noswig` 29075 29076 swig_default_path=/usr 29077 29078 29079if test ! x${with_swig} = xno ; then : 29080 29081 # we're trying to find the correct SWIG installation path 29082 swig_install_path=$swig_default_path 29083 if test ! x${with_swig} = xyes 29084 then 29085 swig_install_path=$with_swig 29086 PATH="${swig_install_path}/bin:${PATH}" 29087 fi 29088 29089 #SWIG_IS_VERSION_REF==yes --> swig is >= swig_version_ref 29090 29091 # Find path to the "swig" executable. 29092 for ac_prog in swig swig3.0 swig2.0 29093do 29094 # Extract the first word of "$ac_prog", so it can be a program name with args. 29095set dummy $ac_prog; ac_word=$2 29096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29097$as_echo_n "checking for $ac_word... " >&6; } 29098if ${ac_cv_path_SWIG+:} false; then : 29099 $as_echo_n "(cached) " >&6 29100else 29101 case $SWIG in 29102 [\\/]* | ?:[\\/]*) 29103 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path. 29104 ;; 29105 *) 29106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29107for as_dir in $PATH 29108do 29109 IFS=$as_save_IFS 29110 test -z "$as_dir" && as_dir=. 29111 for ac_exec_ext in '' $ac_executable_extensions; do 29112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29113 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext" 29114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29115 break 2 29116 fi 29117done 29118 done 29119IFS=$as_save_IFS 29120 29121 ;; 29122esac 29123fi 29124SWIG=$ac_cv_path_SWIG 29125if test -n "$SWIG"; then 29126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5 29127$as_echo "$SWIG" >&6; } 29128else 29129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29130$as_echo "no" >&6; } 29131fi 29132 29133 29134 test -n "$SWIG" && break 29135done 29136 29137 if test -z "$SWIG" ; then 29138 SWIG_IS_VERSION_REF=no && ({ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG has been enable but can't find attended version : $MED_SWIG_VERSION_REF" >&5 29139$as_echo "$as_me: WARNING: SWIG has been enable but can't find attended version : $MED_SWIG_VERSION_REF" >&2;}) 29140 29141 # Find path to the "swig" executable. 29142 for ac_prog in swig swig3.0 swig2.0 29143do 29144 # Extract the first word of "$ac_prog", so it can be a program name with args. 29145set dummy $ac_prog; ac_word=$2 29146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29147$as_echo_n "checking for $ac_word... " >&6; } 29148if ${ac_cv_path_SWIG+:} false; then : 29149 $as_echo_n "(cached) " >&6 29150else 29151 case $SWIG in 29152 [\\/]* | ?:[\\/]*) 29153 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path. 29154 ;; 29155 *) 29156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29157for as_dir in $PATH 29158do 29159 IFS=$as_save_IFS 29160 test -z "$as_dir" && as_dir=. 29161 for ac_exec_ext in '' $ac_executable_extensions; do 29162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29163 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext" 29164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29165 break 2 29166 fi 29167done 29168 done 29169IFS=$as_save_IFS 29170 29171 ;; 29172esac 29173fi 29174SWIG=$ac_cv_path_SWIG 29175if test -n "$SWIG"; then 29176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5 29177$as_echo "$SWIG" >&6; } 29178else 29179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29180$as_echo "no" >&6; } 29181fi 29182 29183 29184 test -n "$SWIG" && break 29185done 29186 29187 if test -z "$SWIG" ; then 29188 SWIG_IS_VERSION_MIN=no 29189 as_fn_error $? "SWIG has been enable but can't find minimal version : 2.0.8" "$LINENO" 5 29190 29191 elif test -n "2.0.8" ; then 29192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG version" >&5 29193$as_echo_n "checking SWIG version... " >&6; } 29194 swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'` 29195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5 29196$as_echo "$swig_version" >&6; } 29197 if test -n "$swig_version" ; then 29198 # Calculate the required version number components 29199 required=2.0.8 29200 # echo "<--- required : $required ---->" 29201 required_major=`echo $required | sed 's/[^0-9].*//'` 29202 if test -z "$required_major" ; then 29203 required_major=0 29204 fi 29205 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 29206 required_minor=`echo $required | sed 's/[^0-9].*//'` 29207 if test -z "$required_minor" ; then 29208 required_minor=0 29209 fi 29210 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 29211 required_patch=`echo $required | sed 's/[^0-9].*//'` 29212 if test -z "$required_patch" ; then 29213 required_patch=0 29214 fi 29215 # Calculate the available version number components 29216 available=$swig_version 29217 available_major=`echo $available | sed 's/[^0-9].*//'` 29218 if test -z "$available_major" ; then 29219 available_major=0 29220 fi 29221 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 29222 available_minor=`echo $available | sed 's/[^0-9].*//'` 29223 if test -z "$available_minor" ; then 29224 available_minor=0 29225 fi 29226 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 29227 available_patch=`echo $available | sed 's/[^0-9].*//'` 29228 if test -z "$available_patch" ; then 29229 available_patch=0 29230 fi 29231 # Convert the version tuple into a single number for easier comparison. 29232 # Using base 100 should be safe since SWIG internally uses BCD values 29233 # to encode its version number. 29234 required_swig_vernum=`expr $required_major \* 10000 \ 29235 \+ $required_minor \* 100 \+ $required_patch` 29236 available_swig_vernum=`expr $available_major \* 10000 \ 29237 \+ $available_minor \* 100 \+ $available_patch` 29238 29239 # echo "<--- required_swig_vernum : $required_swig_vernum ; available_swig_vernum : $available_swig_vernum --->" 29240 29241 if test $available_swig_vernum -lt $required_swig_vernum; then 29242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= 2.0.8 is required. You have $swig_version." >&5 29243$as_echo "$as_me: WARNING: SWIG version >= 2.0.8 is required. You have $swig_version." >&2;} 29244 SWIG='' 29245 SWIG_IS_VERSION_MIN=no 29246 as_fn_error $? "SWIG has been enable but can't find minimal version : 2.0.8" "$LINENO" 5 29247 29248 else 29249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG library" >&5 29250$as_echo_n "checking for SWIG library... " >&6; } 29251 SWIG_LIB=`$SWIG -swiglib` 29252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_LIB" >&5 29253$as_echo "$SWIG_LIB" >&6; } 29254 SWIG_IS_VERSION_MIN=yes 29255 fi 29256 else 29257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5 29258$as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;} 29259 SWIG='' 29260 SWIG_IS_VERSION_MIN=no 29261 as_fn_error $? "SWIG has been enable but can't find minimal version : 2.0.8" "$LINENO" 5 29262 29263 fi 29264 fi 29265 29266 29267 29268 elif test -n "$MED_SWIG_VERSION_REF" ; then 29269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG version" >&5 29270$as_echo_n "checking SWIG version... " >&6; } 29271 swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'` 29272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5 29273$as_echo "$swig_version" >&6; } 29274 if test -n "$swig_version" ; then 29275 # Calculate the required version number components 29276 required=$MED_SWIG_VERSION_REF 29277 # echo "<--- required : $required ---->" 29278 required_major=`echo $required | sed 's/[^0-9].*//'` 29279 if test -z "$required_major" ; then 29280 required_major=0 29281 fi 29282 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 29283 required_minor=`echo $required | sed 's/[^0-9].*//'` 29284 if test -z "$required_minor" ; then 29285 required_minor=0 29286 fi 29287 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 29288 required_patch=`echo $required | sed 's/[^0-9].*//'` 29289 if test -z "$required_patch" ; then 29290 required_patch=0 29291 fi 29292 # Calculate the available version number components 29293 available=$swig_version 29294 available_major=`echo $available | sed 's/[^0-9].*//'` 29295 if test -z "$available_major" ; then 29296 available_major=0 29297 fi 29298 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 29299 available_minor=`echo $available | sed 's/[^0-9].*//'` 29300 if test -z "$available_minor" ; then 29301 available_minor=0 29302 fi 29303 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 29304 available_patch=`echo $available | sed 's/[^0-9].*//'` 29305 if test -z "$available_patch" ; then 29306 available_patch=0 29307 fi 29308 # Convert the version tuple into a single number for easier comparison. 29309 # Using base 100 should be safe since SWIG internally uses BCD values 29310 # to encode its version number. 29311 required_swig_vernum=`expr $required_major \* 10000 \ 29312 \+ $required_minor \* 100 \+ $required_patch` 29313 available_swig_vernum=`expr $available_major \* 10000 \ 29314 \+ $available_minor \* 100 \+ $available_patch` 29315 29316 # echo "<--- required_swig_vernum : $required_swig_vernum ; available_swig_vernum : $available_swig_vernum --->" 29317 29318 if test $available_swig_vernum -lt $required_swig_vernum; then 29319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= $MED_SWIG_VERSION_REF is required. You have $swig_version." >&5 29320$as_echo "$as_me: WARNING: SWIG version >= $MED_SWIG_VERSION_REF is required. You have $swig_version." >&2;} 29321 SWIG='' 29322 SWIG_IS_VERSION_REF=no && ({ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG has been enable but can't find attended version : $MED_SWIG_VERSION_REF" >&5 29323$as_echo "$as_me: WARNING: SWIG has been enable but can't find attended version : $MED_SWIG_VERSION_REF" >&2;}) 29324 29325 # Find path to the "swig" executable. 29326 for ac_prog in swig swig3.0 swig2.0 29327do 29328 # Extract the first word of "$ac_prog", so it can be a program name with args. 29329set dummy $ac_prog; ac_word=$2 29330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29331$as_echo_n "checking for $ac_word... " >&6; } 29332if ${ac_cv_path_SWIG+:} false; then : 29333 $as_echo_n "(cached) " >&6 29334else 29335 case $SWIG in 29336 [\\/]* | ?:[\\/]*) 29337 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path. 29338 ;; 29339 *) 29340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29341for as_dir in $PATH 29342do 29343 IFS=$as_save_IFS 29344 test -z "$as_dir" && as_dir=. 29345 for ac_exec_ext in '' $ac_executable_extensions; do 29346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29347 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext" 29348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29349 break 2 29350 fi 29351done 29352 done 29353IFS=$as_save_IFS 29354 29355 ;; 29356esac 29357fi 29358SWIG=$ac_cv_path_SWIG 29359if test -n "$SWIG"; then 29360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5 29361$as_echo "$SWIG" >&6; } 29362else 29363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29364$as_echo "no" >&6; } 29365fi 29366 29367 29368 test -n "$SWIG" && break 29369done 29370 29371 if test -z "$SWIG" ; then 29372 SWIG_IS_VERSION_MIN=no 29373 as_fn_error $? "SWIG has been enable but can't find minimal version : 2.0.8" "$LINENO" 5 29374 29375 elif test -n "2.0.8" ; then 29376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG version" >&5 29377$as_echo_n "checking SWIG version... " >&6; } 29378 swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'` 29379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5 29380$as_echo "$swig_version" >&6; } 29381 if test -n "$swig_version" ; then 29382 # Calculate the required version number components 29383 required=2.0.8 29384 # echo "<--- required : $required ---->" 29385 required_major=`echo $required | sed 's/[^0-9].*//'` 29386 if test -z "$required_major" ; then 29387 required_major=0 29388 fi 29389 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 29390 required_minor=`echo $required | sed 's/[^0-9].*//'` 29391 if test -z "$required_minor" ; then 29392 required_minor=0 29393 fi 29394 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 29395 required_patch=`echo $required | sed 's/[^0-9].*//'` 29396 if test -z "$required_patch" ; then 29397 required_patch=0 29398 fi 29399 # Calculate the available version number components 29400 available=$swig_version 29401 available_major=`echo $available | sed 's/[^0-9].*//'` 29402 if test -z "$available_major" ; then 29403 available_major=0 29404 fi 29405 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 29406 available_minor=`echo $available | sed 's/[^0-9].*//'` 29407 if test -z "$available_minor" ; then 29408 available_minor=0 29409 fi 29410 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 29411 available_patch=`echo $available | sed 's/[^0-9].*//'` 29412 if test -z "$available_patch" ; then 29413 available_patch=0 29414 fi 29415 # Convert the version tuple into a single number for easier comparison. 29416 # Using base 100 should be safe since SWIG internally uses BCD values 29417 # to encode its version number. 29418 required_swig_vernum=`expr $required_major \* 10000 \ 29419 \+ $required_minor \* 100 \+ $required_patch` 29420 available_swig_vernum=`expr $available_major \* 10000 \ 29421 \+ $available_minor \* 100 \+ $available_patch` 29422 29423 # echo "<--- required_swig_vernum : $required_swig_vernum ; available_swig_vernum : $available_swig_vernum --->" 29424 29425 if test $available_swig_vernum -lt $required_swig_vernum; then 29426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= 2.0.8 is required. You have $swig_version." >&5 29427$as_echo "$as_me: WARNING: SWIG version >= 2.0.8 is required. You have $swig_version." >&2;} 29428 SWIG='' 29429 SWIG_IS_VERSION_MIN=no 29430 as_fn_error $? "SWIG has been enable but can't find minimal version : 2.0.8" "$LINENO" 5 29431 29432 else 29433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG library" >&5 29434$as_echo_n "checking for SWIG library... " >&6; } 29435 SWIG_LIB=`$SWIG -swiglib` 29436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_LIB" >&5 29437$as_echo "$SWIG_LIB" >&6; } 29438 SWIG_IS_VERSION_MIN=yes 29439 fi 29440 else 29441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5 29442$as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;} 29443 SWIG='' 29444 SWIG_IS_VERSION_MIN=no 29445 as_fn_error $? "SWIG has been enable but can't find minimal version : 2.0.8" "$LINENO" 5 29446 29447 fi 29448 fi 29449 29450 29451 29452 else 29453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG library" >&5 29454$as_echo_n "checking for SWIG library... " >&6; } 29455 SWIG_LIB=`$SWIG -swiglib` 29456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_LIB" >&5 29457$as_echo "$SWIG_LIB" >&6; } 29458 SWIG_IS_VERSION_REF=yes 29459 fi 29460 else 29461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5 29462$as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;} 29463 SWIG='' 29464 SWIG_IS_VERSION_REF=no && ({ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG has been enable but can't find attended version : $MED_SWIG_VERSION_REF" >&5 29465$as_echo "$as_me: WARNING: SWIG has been enable but can't find attended version : $MED_SWIG_VERSION_REF" >&2;}) 29466 29467 # Find path to the "swig" executable. 29468 for ac_prog in swig swig3.0 swig2.0 29469do 29470 # Extract the first word of "$ac_prog", so it can be a program name with args. 29471set dummy $ac_prog; ac_word=$2 29472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29473$as_echo_n "checking for $ac_word... " >&6; } 29474if ${ac_cv_path_SWIG+:} false; then : 29475 $as_echo_n "(cached) " >&6 29476else 29477 case $SWIG in 29478 [\\/]* | ?:[\\/]*) 29479 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path. 29480 ;; 29481 *) 29482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29483for as_dir in $PATH 29484do 29485 IFS=$as_save_IFS 29486 test -z "$as_dir" && as_dir=. 29487 for ac_exec_ext in '' $ac_executable_extensions; do 29488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29489 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext" 29490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29491 break 2 29492 fi 29493done 29494 done 29495IFS=$as_save_IFS 29496 29497 ;; 29498esac 29499fi 29500SWIG=$ac_cv_path_SWIG 29501if test -n "$SWIG"; then 29502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5 29503$as_echo "$SWIG" >&6; } 29504else 29505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29506$as_echo "no" >&6; } 29507fi 29508 29509 29510 test -n "$SWIG" && break 29511done 29512 29513 if test -z "$SWIG" ; then 29514 SWIG_IS_VERSION_MIN=no 29515 as_fn_error $? "SWIG has been enable but can't find minimal version : 2.0.8" "$LINENO" 5 29516 29517 elif test -n "2.0.8" ; then 29518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG version" >&5 29519$as_echo_n "checking SWIG version... " >&6; } 29520 swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'` 29521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5 29522$as_echo "$swig_version" >&6; } 29523 if test -n "$swig_version" ; then 29524 # Calculate the required version number components 29525 required=2.0.8 29526 # echo "<--- required : $required ---->" 29527 required_major=`echo $required | sed 's/[^0-9].*//'` 29528 if test -z "$required_major" ; then 29529 required_major=0 29530 fi 29531 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 29532 required_minor=`echo $required | sed 's/[^0-9].*//'` 29533 if test -z "$required_minor" ; then 29534 required_minor=0 29535 fi 29536 required=`echo $required | sed 's/[0-9]*[^0-9]//'` 29537 required_patch=`echo $required | sed 's/[^0-9].*//'` 29538 if test -z "$required_patch" ; then 29539 required_patch=0 29540 fi 29541 # Calculate the available version number components 29542 available=$swig_version 29543 available_major=`echo $available | sed 's/[^0-9].*//'` 29544 if test -z "$available_major" ; then 29545 available_major=0 29546 fi 29547 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 29548 available_minor=`echo $available | sed 's/[^0-9].*//'` 29549 if test -z "$available_minor" ; then 29550 available_minor=0 29551 fi 29552 available=`echo $available | sed 's/[0-9]*[^0-9]//'` 29553 available_patch=`echo $available | sed 's/[^0-9].*//'` 29554 if test -z "$available_patch" ; then 29555 available_patch=0 29556 fi 29557 # Convert the version tuple into a single number for easier comparison. 29558 # Using base 100 should be safe since SWIG internally uses BCD values 29559 # to encode its version number. 29560 required_swig_vernum=`expr $required_major \* 10000 \ 29561 \+ $required_minor \* 100 \+ $required_patch` 29562 available_swig_vernum=`expr $available_major \* 10000 \ 29563 \+ $available_minor \* 100 \+ $available_patch` 29564 29565 # echo "<--- required_swig_vernum : $required_swig_vernum ; available_swig_vernum : $available_swig_vernum --->" 29566 29567 if test $available_swig_vernum -lt $required_swig_vernum; then 29568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= 2.0.8 is required. You have $swig_version." >&5 29569$as_echo "$as_me: WARNING: SWIG version >= 2.0.8 is required. You have $swig_version." >&2;} 29570 SWIG='' 29571 SWIG_IS_VERSION_MIN=no 29572 as_fn_error $? "SWIG has been enable but can't find minimal version : 2.0.8" "$LINENO" 5 29573 29574 else 29575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG library" >&5 29576$as_echo_n "checking for SWIG library... " >&6; } 29577 SWIG_LIB=`$SWIG -swiglib` 29578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_LIB" >&5 29579$as_echo "$SWIG_LIB" >&6; } 29580 SWIG_IS_VERSION_MIN=yes 29581 fi 29582 else 29583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5 29584$as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;} 29585 SWIG='' 29586 SWIG_IS_VERSION_MIN=no 29587 as_fn_error $? "SWIG has been enable but can't find minimal version : 2.0.8" "$LINENO" 5 29588 29589 fi 29590 fi 29591 29592 29593 29594 fi 29595 fi 29596 29597 29598 29599 #AX_SWIG_ENABLE_CXX 29600 #AX_SWIG_MULTI_MODULE_SUPPORT 29601 29602# L'appel suivant med_check_python_devel/axpythondevel doit devancer l'appel à 29603# axswigpython qui appelle aussi cette macro sans argument si aucun appel préalable n'a été effectué 29604# PYTHON_CPPFLAGS et PYTHON_LDFLAGS for python C/API 29605# PYTHON_EXTRA_LIBS et PYTHON_EXTRA_LDFLAGS for embedding Python in your code. 29606# PYTHON_SITE_PKG 29607 29608 29609 29610 PYTHON_IS_VERSION_REF="no" 29611 PYTHON_IS_VERSION_MIN="no" 29612 29613# L'appel à axpythondevel doit devancer l'appel à 29614# axswigpython qui appelle aussi cette macro sans argument si aucun appel préalable n'a été effectué 29615# PYTHON_CPPFLAGS et PYTHON_LDFLAGS for python C/API 29616# PYTHON_EXTRA_LIBS et PYTHON_EXTRA_LDFLAGS for embedding Python in your code. 29617# PYTHON_SITE_PKG 29618 29619 29620 # 29621 # Allow the use of a (user set) custom python version 29622 # 29623 29624 29625 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args. 29626set dummy python$PYTHON_VERSION; ac_word=$2 29627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29628$as_echo_n "checking for $ac_word... " >&6; } 29629if ${ac_cv_path_PYTHON+:} false; then : 29630 $as_echo_n "(cached) " >&6 29631else 29632 case $PYTHON in 29633 [\\/]* | ?:[\\/]*) 29634 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 29635 ;; 29636 *) 29637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29638for as_dir in $PATH 29639do 29640 IFS=$as_save_IFS 29641 test -z "$as_dir" && as_dir=. 29642 for ac_exec_ext in '' $ac_executable_extensions; do 29643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29644 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 29645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29646 break 2 29647 fi 29648done 29649 done 29650IFS=$as_save_IFS 29651 29652 ;; 29653esac 29654fi 29655PYTHON=$ac_cv_path_PYTHON 29656if test -n "$PYTHON"; then 29657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 29658$as_echo "$PYTHON" >&6; } 29659else 29660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29661$as_echo "no" >&6; } 29662fi 29663 29664 29665 if test -z "$PYTHON"; then 29666 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5 29667 PYTHON_VERSION="" 29668 fi 29669 29670 # 29671 # Check for a version of Python >= 2.1.0 29672 # 29673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5 29674$as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; } 29675 ac_supports_python_ver=`$PYTHON -c "import sys; \ 29676 ver = sys.version.split ()[0]; \ 29677 print (ver >= '2.1.0')"` 29678 if test "$ac_supports_python_ver" != "True"; then 29679 if test -z "$PYTHON_NOVERSIONCHECK"; then 29680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29681$as_echo "no" >&6; } 29682 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29683$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29684as_fn_error $? " 29685This version of the AC_PYTHON_DEVEL macro 29686doesn't work properly with versions of Python before 296872.1.0. You may need to re-run configure, setting the 29688variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG, 29689PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand. 29690Moreover, to disable this check, set PYTHON_NOVERSIONCHECK 29691to something else than an empty string. 29692 29693See \`config.log' for more details" "$LINENO" 5; } 29694 else 29695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5 29696$as_echo "skip at user request" >&6; } 29697 fi 29698 else 29699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29700$as_echo "yes" >&6; } 29701 fi 29702 29703 # 29704 # if the macro parameter ``version'' is set, honour it 29705 # 29706 python_arg_version_not_found="False" 29707 if test -n ">= '3.0'"; then 29708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '3.0'" >&5 29709$as_echo_n "checking for a version of Python >= '3.0'... " >&6; } 29710 ac_supports_python_ver=`$PYTHON -c "import sys; \ 29711 ver = sys.version.split ()[0]; \ 29712 print (ver >= '3.0')"` 29713 if test "$ac_supports_python_ver" = "True"; then 29714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29715$as_echo "yes" >&6; } 29716 else 29717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29718$as_echo "no" >&6; } 29719#EF : MODIFICATION 29720# _C_MSG_ERROR([this package requires Python >= 'M4MED_PYTHON_VERSION_REF'. 29721# If you have it installed, but it isn't the default Python 29722# interpreter in your system path, please pass the PYTHON_VERSION 29723# variable to configure. See ``configure --help'' for reference. 29724# ]) 29725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: this package should use Python >= '3.0'. 29726If you have it installed, but it isn't the default Python 29727interpreter in your system path, please pass the PYTHON_VERSION 29728variable to configure. See \`\`configure --help'' for reference. 29729" >&5 29730$as_echo "$as_me: WARNING: this package should use Python >= '3.0'. 29731If you have it installed, but it isn't the default Python 29732interpreter in your system path, please pass the PYTHON_VERSION 29733variable to configure. See \`\`configure --help'' for reference. 29734" >&2;} 29735 PYTHON_VERSION="" 29736#EF: Ajout 29737 python_arg_version_not_found="True" 29738 fi 29739 fi 29740 29741 # 29742 # Check if you have distutils, else fail 29743 # 29744#EF: Ajout 29745 if test x"$python_arg_version_found" == x"False"; then : 29746 29747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5 29748$as_echo_n "checking for the distutils Python package... " >&6; } 29749 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1` 29750 if test -z "$ac_distutils_result"; then 29751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29752$as_echo "yes" >&6; } 29753 else 29754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29755$as_echo "no" >&6; } 29756 as_fn_error $? "cannot import Python module \"distutils\". 29757Please check your Python installation. The error was: 29758$ac_distutils_result" "$LINENO" 5 29759 PYTHON_VERSION="" 29760 fi 29761#EF: Ajout 29762 29763fi 29764 29765# 29766 # Check for Python include path 29767 # 29768#EF: Ajout 29769 if test x"$python_arg_version_not_found" == x"False"; then : 29770 29771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5 29772$as_echo_n "checking for Python include path... " >&6; } 29773 if test -z "$PYTHON_CPPFLAGS"; then 29774 python_path=`$PYTHON -c "import distutils.sysconfig; \ 29775 print (distutils.sysconfig.get_python_inc ());"` 29776 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \ 29777 print (distutils.sysconfig.get_python_inc (plat_specific=1));"` 29778 if test -n "${python_path}"; then 29779 if test "${plat_python_path}" != "${python_path}"; then 29780 python_path="-I$python_path -I$plat_python_path" 29781 else 29782 python_path="-I$python_path" 29783 fi 29784 fi 29785 PYTHON_CPPFLAGS=$python_path 29786 fi 29787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5 29788$as_echo "$PYTHON_CPPFLAGS" >&6; } 29789 29790#EF: Ajout 29791 29792fi 29793 29794 # 29795 # Check for Python library path 29796 # 29797#EF: Ajout 29798 if test x"$python_arg_version_not_found" == x"False"; then : 29799 29800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5 29801$as_echo_n "checking for Python library path... " >&6; } 29802 if test -z "$PYTHON_LDFLAGS"; then 29803 # (makes two attempts to ensure we've got a version number 29804 # from the interpreter) 29805 ac_python_version=`cat<<EOD | $PYTHON - 29806 29807# join all versioning strings, on some systems 29808# major/minor numbers could be in different list elements 29809from distutils.sysconfig import * 29810e = get_config_var('VERSION') 29811if e is not None: 29812 print(e) 29813EOD` 29814 29815 if test -z "$ac_python_version"; then 29816 if test -n "$PYTHON_VERSION"; then 29817 ac_python_version=$PYTHON_VERSION 29818 else 29819 ac_python_version=`$PYTHON -c "import sys; \ 29820 print (sys.version[:3])"` 29821 fi 29822 fi 29823 29824 # Make the versioning information available to the compiler 29825 29826cat >>confdefs.h <<_ACEOF 29827#define HAVE_PYTHON "$ac_python_version" 29828_ACEOF 29829 29830 29831 # First, the library directory: 29832 ac_python_libdir=`cat<<EOD | $PYTHON - 29833 29834# There should be only one 29835import distutils.sysconfig 29836e = distutils.sysconfig.get_config_var('LIBDIR') 29837if e is not None: 29838 print (e) 29839EOD` 29840 29841 # Now, for the library: 29842 ac_python_library=`cat<<EOD | $PYTHON - 29843 29844import distutils.sysconfig 29845c = distutils.sysconfig.get_config_vars() 29846if 'LDVERSION' in c: 29847 print ('python'+c['LDVERSION']) 29848else: 29849 print ('python'+c['VERSION']) 29850EOD` 29851 29852 # This small piece shamelessly adapted from PostgreSQL python macro; 29853 # credits goes to momjian, I think. I'd like to put the right name 29854 # in the credits, if someone can point me in the right direction... ? 29855 # 29856 if test -n "$ac_python_libdir" -a -n "$ac_python_library" 29857 then 29858 # use the official shared library 29859 ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"` 29860 PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library" 29861 else 29862 # old way: use libpython from python_configdir 29863 ac_python_libdir=`$PYTHON -c \ 29864 "from distutils.sysconfig import get_python_lib as f; \ 29865 import os; \ 29866 print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"` 29867 PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version" 29868 fi 29869 29870 if test -z "PYTHON_LDFLAGS"; then 29871 as_fn_error $? " 29872 Cannot determine location of your Python DSO. Please check it was installed with 29873 dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand. 29874 " "$LINENO" 5 29875 fi 29876 fi 29877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5 29878$as_echo "$PYTHON_LDFLAGS" >&6; } 29879 29880#EF: Ajout 29881 29882fi 29883 29884 # 29885 # Check for site packages 29886 # 29887#EF: Ajout 29888 if test x"$python_arg_version_not_found" == x"False"; then : 29889 29890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5 29891$as_echo_n "checking for Python site-packages path... " >&6; } 29892 if test -z "$PYTHON_SITE_PKG"; then 29893 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \ 29894 print (distutils.sysconfig.get_python_lib(0,0));"` 29895 fi 29896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5 29897$as_echo "$PYTHON_SITE_PKG" >&6; } 29898 29899#EF: Ajout 29900 29901fi 29902 29903 # 29904 # libraries which must be linked in when embedding 29905 # 29906#EF: Ajout 29907 if test x"$python_arg_version_not_found" == x"False"; then : 29908 29909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5 29910$as_echo_n "checking python extra libraries... " >&6; } 29911 if test -z "$PYTHON_EXTRA_LIBS"; then 29912 PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \ 29913 conf = distutils.sysconfig.get_config_var; \ 29914 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"` 29915 fi 29916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5 29917$as_echo "$PYTHON_EXTRA_LIBS" >&6; } 29918 29919#EF: Ajout 29920 29921fi 29922 29923 # 29924 # linking flags needed when embedding 29925 # 29926#EF: Ajout 29927 if test x"$python_arg_version_not_found" == x"False"; then : 29928 29929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5 29930$as_echo_n "checking python extra linking flags... " >&6; } 29931 if test -z "$PYTHON_EXTRA_LDFLAGS"; then 29932 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \ 29933 conf = distutils.sysconfig.get_config_var; \ 29934 print (conf('LINKFORSHARED'))"` 29935 fi 29936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5 29937$as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; } 29938 29939#EF: Ajout 29940 29941fi 29942 29943 # 29944 # final check to see if everything compiles alright 29945 # 29946#EF: Ajout 29947 if test x"$python_arg_version_not_found" == x"False"; then : 29948 29949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5 29950$as_echo_n "checking consistency of all components of python development environment... " >&6; } 29951 # save current global flags 29952 ac_save_LIBS="$LIBS" 29953 ac_save_CPPFLAGS="$CPPFLAGS" 29954 # echo "<--- ac_save_LIBS : $ac_save_LIBS ; ac_save_CPPFLAGS : $ac_save_CPPFLAGS -->" 29955 LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS" 29956 CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS" 29957 # echo "<-- LIBS : $LIBS : CPPFLAGS : $CPPFLAGS -->" 29958 ac_ext=c 29959ac_cpp='$CPP $CPPFLAGS' 29960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 29961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 29962ac_compiler_gnu=$ac_cv_c_compiler_gnu 29963 29964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29965/* end confdefs.h. */ 29966 29967 #include <Python.h> 29968#ifdef F77_DUMMY_MAIN 29969 29970# ifdef __cplusplus 29971 extern "C" 29972# endif 29973 int F77_DUMMY_MAIN() { return 1; } 29974 29975#endif 29976int 29977main () 29978{ 29979Py_Initialize(); 29980 ; 29981 return 0; 29982} 29983 29984_ACEOF 29985if ac_fn_c_try_link "$LINENO"; then : 29986 pythonexists=yes 29987else 29988 pythonexists=no 29989fi 29990rm -f core conftest.err conftest.$ac_objext \ 29991 conftest$ac_exeext conftest.$ac_ext 29992 ac_ext=c 29993ac_cpp='$CPP $CPPFLAGS' 29994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 29995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 29996ac_compiler_gnu=$ac_cv_c_compiler_gnu 29997 29998 # turn back to default flags 29999 CPPFLAGS="$ac_save_CPPFLAGS" 30000 LIBS="$ac_save_LIBS" 30001 30002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5 30003$as_echo "$pythonexists" >&6; } 30004 30005 if test ! "x$pythonexists" = "xyes"; then 30006 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30007$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30008as_fn_error $? " 30009 Could not link test program to Python. Maybe the main Python library has been 30010 installed in some non-standard library path. If so, pass it to configure, 30011 via the LDFLAGS environment variable. 30012 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\" 30013 ============================================================================ 30014 ERROR! 30015 You probably have to install the development version of the Python package 30016 for your distribution. The exact name of this package varies among them. 30017 ============================================================================ 30018 30019See \`config.log' for more details" "$LINENO" 5; } 30020 PYTHON_VERSION="" 30021 fi 30022#EF: Ajout 30023 30024fi 30025 30026 # 30027 # all done! 30028 # 30029 30030 # echo " ------ python_arg_version_not_found : $python_arg_version_not_found --------- " 30031 if test x"$python_arg_version_not_found" == "xTrue"; then : 30032 30033 30034 # 30035 # Allow the use of a (user set) custom python version 30036 # 30037 30038 30039 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args. 30040set dummy python$PYTHON_VERSION; ac_word=$2 30041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30042$as_echo_n "checking for $ac_word... " >&6; } 30043if ${ac_cv_path_PYTHON+:} false; then : 30044 $as_echo_n "(cached) " >&6 30045else 30046 case $PYTHON in 30047 [\\/]* | ?:[\\/]*) 30048 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 30049 ;; 30050 *) 30051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30052for as_dir in $PATH 30053do 30054 IFS=$as_save_IFS 30055 test -z "$as_dir" && as_dir=. 30056 for ac_exec_ext in '' $ac_executable_extensions; do 30057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30058 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 30059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30060 break 2 30061 fi 30062done 30063 done 30064IFS=$as_save_IFS 30065 30066 ;; 30067esac 30068fi 30069PYTHON=$ac_cv_path_PYTHON 30070if test -n "$PYTHON"; then 30071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 30072$as_echo "$PYTHON" >&6; } 30073else 30074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30075$as_echo "no" >&6; } 30076fi 30077 30078 30079 if test -z "$PYTHON"; then 30080 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5 30081 PYTHON_VERSION="" 30082 fi 30083 30084 # 30085 # Check for a version of Python >= 2.1.0 30086 # 30087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5 30088$as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; } 30089 ac_supports_python_ver=`$PYTHON -c "import sys; \ 30090 ver = sys.version.split ()[0]; \ 30091 print (ver >= '2.1.0')"` 30092 if test "$ac_supports_python_ver" != "True"; then 30093 if test -z "$PYTHON_NOVERSIONCHECK"; then 30094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30095$as_echo "no" >&6; } 30096 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30097$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30098as_fn_error $? " 30099This version of the AC_PYTHON_DEVEL macro 30100doesn't work properly with versions of Python before 301012.1.0. You may need to re-run configure, setting the 30102variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG, 30103PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand. 30104Moreover, to disable this check, set PYTHON_NOVERSIONCHECK 30105to something else than an empty string. 30106 30107See \`config.log' for more details" "$LINENO" 5; } 30108 else 30109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5 30110$as_echo "skip at user request" >&6; } 30111 fi 30112 else 30113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30114$as_echo "yes" >&6; } 30115 fi 30116 30117 # 30118 # if the macro parameter ``version'' is set, honour it 30119 # 30120 python_arg_version_not_found="False" 30121 if test -n ">= '2.7'"; then 30122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.7'" >&5 30123$as_echo_n "checking for a version of Python >= '2.7'... " >&6; } 30124 ac_supports_python_ver=`$PYTHON -c "import sys; \ 30125 ver = sys.version.split ()[0]; \ 30126 print (ver >= '2.7')"` 30127 if test "$ac_supports_python_ver" = "True"; then 30128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30129$as_echo "yes" >&6; } 30130 else 30131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30132$as_echo "no" >&6; } 30133#EF : MODIFICATION 30134# _C_MSG_ERROR([this package requires Python >= 'M4MED_PYTHON2_VERSION_REF'. 30135# If you have it installed, but it isn't the default Python 30136# interpreter in your system path, please pass the PYTHON_VERSION 30137# variable to configure. See ``configure --help'' for reference. 30138# ]) 30139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: this package should use Python >= '2.7'. 30140If you have it installed, but it isn't the default Python 30141interpreter in your system path, please pass the PYTHON_VERSION 30142variable to configure. See \`\`configure --help'' for reference. 30143" >&5 30144$as_echo "$as_me: WARNING: this package should use Python >= '2.7'. 30145If you have it installed, but it isn't the default Python 30146interpreter in your system path, please pass the PYTHON_VERSION 30147variable to configure. See \`\`configure --help'' for reference. 30148" >&2;} 30149 PYTHON_VERSION="" 30150#EF: Ajout 30151 python_arg_version_not_found="True" 30152 fi 30153 fi 30154 30155 # 30156 # Check if you have distutils, else fail 30157 # 30158#EF: Ajout 30159 if test x"$python_arg_version_found" == x"False"; then : 30160 30161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5 30162$as_echo_n "checking for the distutils Python package... " >&6; } 30163 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1` 30164 if test -z "$ac_distutils_result"; then 30165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30166$as_echo "yes" >&6; } 30167 else 30168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30169$as_echo "no" >&6; } 30170 as_fn_error $? "cannot import Python module \"distutils\". 30171Please check your Python installation. The error was: 30172$ac_distutils_result" "$LINENO" 5 30173 PYTHON_VERSION="" 30174 fi 30175#EF: Ajout 30176 30177fi 30178 30179# 30180 # Check for Python include path 30181 # 30182#EF: Ajout 30183 if test x"$python_arg_version_not_found" == x"False"; then : 30184 30185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5 30186$as_echo_n "checking for Python include path... " >&6; } 30187 if test -z "$PYTHON_CPPFLAGS"; then 30188 python_path=`$PYTHON -c "import distutils.sysconfig; \ 30189 print (distutils.sysconfig.get_python_inc ());"` 30190 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \ 30191 print (distutils.sysconfig.get_python_inc (plat_specific=1));"` 30192 if test -n "${python_path}"; then 30193 if test "${plat_python_path}" != "${python_path}"; then 30194 python_path="-I$python_path -I$plat_python_path" 30195 else 30196 python_path="-I$python_path" 30197 fi 30198 fi 30199 PYTHON_CPPFLAGS=$python_path 30200 fi 30201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5 30202$as_echo "$PYTHON_CPPFLAGS" >&6; } 30203 30204#EF: Ajout 30205 30206fi 30207 30208 # 30209 # Check for Python library path 30210 # 30211#EF: Ajout 30212 if test x"$python_arg_version_not_found" == x"False"; then : 30213 30214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5 30215$as_echo_n "checking for Python library path... " >&6; } 30216 if test -z "$PYTHON_LDFLAGS"; then 30217 # (makes two attempts to ensure we've got a version number 30218 # from the interpreter) 30219 ac_python_version=`cat<<EOD | $PYTHON - 30220 30221# join all versioning strings, on some systems 30222# major/minor numbers could be in different list elements 30223from distutils.sysconfig import * 30224e = get_config_var('VERSION') 30225if e is not None: 30226 print(e) 30227EOD` 30228 30229 if test -z "$ac_python_version"; then 30230 if test -n "$PYTHON_VERSION"; then 30231 ac_python_version=$PYTHON_VERSION 30232 else 30233 ac_python_version=`$PYTHON -c "import sys; \ 30234 print (sys.version[:3])"` 30235 fi 30236 fi 30237 30238 # Make the versioning information available to the compiler 30239 30240cat >>confdefs.h <<_ACEOF 30241#define HAVE_PYTHON "$ac_python_version" 30242_ACEOF 30243 30244 30245 # First, the library directory: 30246 ac_python_libdir=`cat<<EOD | $PYTHON - 30247 30248# There should be only one 30249import distutils.sysconfig 30250e = distutils.sysconfig.get_config_var('LIBDIR') 30251if e is not None: 30252 print (e) 30253EOD` 30254 30255 # Now, for the library: 30256 ac_python_library=`cat<<EOD | $PYTHON - 30257 30258import distutils.sysconfig 30259c = distutils.sysconfig.get_config_vars() 30260if 'LDVERSION' in c: 30261 print ('python'+c['LDVERSION']) 30262else: 30263 print ('python'+c['VERSION']) 30264EOD` 30265 30266 # This small piece shamelessly adapted from PostgreSQL python macro; 30267 # credits goes to momjian, I think. I'd like to put the right name 30268 # in the credits, if someone can point me in the right direction... ? 30269 # 30270 if test -n "$ac_python_libdir" -a -n "$ac_python_library" 30271 then 30272 # use the official shared library 30273 ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"` 30274 PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library" 30275 else 30276 # old way: use libpython from python_configdir 30277 ac_python_libdir=`$PYTHON -c \ 30278 "from distutils.sysconfig import get_python_lib as f; \ 30279 import os; \ 30280 print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"` 30281 PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version" 30282 fi 30283 30284 if test -z "PYTHON_LDFLAGS"; then 30285 as_fn_error $? " 30286 Cannot determine location of your Python DSO. Please check it was installed with 30287 dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand. 30288 " "$LINENO" 5 30289 fi 30290 fi 30291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5 30292$as_echo "$PYTHON_LDFLAGS" >&6; } 30293 30294#EF: Ajout 30295 30296fi 30297 30298 # 30299 # Check for site packages 30300 # 30301#EF: Ajout 30302 if test x"$python_arg_version_not_found" == x"False"; then : 30303 30304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5 30305$as_echo_n "checking for Python site-packages path... " >&6; } 30306 if test -z "$PYTHON_SITE_PKG"; then 30307 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \ 30308 print (distutils.sysconfig.get_python_lib(0,0));"` 30309 fi 30310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5 30311$as_echo "$PYTHON_SITE_PKG" >&6; } 30312 30313#EF: Ajout 30314 30315fi 30316 30317 # 30318 # libraries which must be linked in when embedding 30319 # 30320#EF: Ajout 30321 if test x"$python_arg_version_not_found" == x"False"; then : 30322 30323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5 30324$as_echo_n "checking python extra libraries... " >&6; } 30325 if test -z "$PYTHON_EXTRA_LIBS"; then 30326 PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \ 30327 conf = distutils.sysconfig.get_config_var; \ 30328 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"` 30329 fi 30330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5 30331$as_echo "$PYTHON_EXTRA_LIBS" >&6; } 30332 30333#EF: Ajout 30334 30335fi 30336 30337 # 30338 # linking flags needed when embedding 30339 # 30340#EF: Ajout 30341 if test x"$python_arg_version_not_found" == x"False"; then : 30342 30343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5 30344$as_echo_n "checking python extra linking flags... " >&6; } 30345 if test -z "$PYTHON_EXTRA_LDFLAGS"; then 30346 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \ 30347 conf = distutils.sysconfig.get_config_var; \ 30348 print (conf('LINKFORSHARED'))"` 30349 fi 30350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5 30351$as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; } 30352 30353#EF: Ajout 30354 30355fi 30356 30357 # 30358 # final check to see if everything compiles alright 30359 # 30360#EF: Ajout 30361 if test x"$python_arg_version_not_found" == x"False"; then : 30362 30363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5 30364$as_echo_n "checking consistency of all components of python development environment... " >&6; } 30365 # save current global flags 30366 ac_save_LIBS="$LIBS" 30367 ac_save_CPPFLAGS="$CPPFLAGS" 30368 # echo "<--- ac_save_LIBS : $ac_save_LIBS ; ac_save_CPPFLAGS : $ac_save_CPPFLAGS -->" 30369 LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS" 30370 CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS" 30371 # echo "<-- LIBS : $LIBS : CPPFLAGS : $CPPFLAGS -->" 30372 ac_ext=c 30373ac_cpp='$CPP $CPPFLAGS' 30374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30376ac_compiler_gnu=$ac_cv_c_compiler_gnu 30377 30378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30379/* end confdefs.h. */ 30380 30381 #include <Python.h> 30382#ifdef F77_DUMMY_MAIN 30383 30384# ifdef __cplusplus 30385 extern "C" 30386# endif 30387 int F77_DUMMY_MAIN() { return 1; } 30388 30389#endif 30390int 30391main () 30392{ 30393Py_Initialize(); 30394 ; 30395 return 0; 30396} 30397 30398_ACEOF 30399if ac_fn_c_try_link "$LINENO"; then : 30400 pythonexists=yes 30401else 30402 pythonexists=no 30403fi 30404rm -f core conftest.err conftest.$ac_objext \ 30405 conftest$ac_exeext conftest.$ac_ext 30406 ac_ext=c 30407ac_cpp='$CPP $CPPFLAGS' 30408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30410ac_compiler_gnu=$ac_cv_c_compiler_gnu 30411 30412 # turn back to default flags 30413 CPPFLAGS="$ac_save_CPPFLAGS" 30414 LIBS="$ac_save_LIBS" 30415 30416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5 30417$as_echo "$pythonexists" >&6; } 30418 30419 if test ! "x$pythonexists" = "xyes"; then 30420 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30421$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30422as_fn_error $? " 30423 Could not link test program to Python. Maybe the main Python library has been 30424 installed in some non-standard library path. If so, pass it to configure, 30425 via the LDFLAGS environment variable. 30426 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\" 30427 ============================================================================ 30428 ERROR! 30429 You probably have to install the development version of the Python package 30430 for your distribution. The exact name of this package varies among them. 30431 ============================================================================ 30432 30433See \`config.log' for more details" "$LINENO" 5; } 30434 PYTHON_VERSION="" 30435 fi 30436#EF: Ajout 30437 30438fi 30439 30440 # 30441 # all done! 30442 # 30443 30444 PYTHON_IS_VERSION_MIN="yes" 30445else 30446 PYTHON_IS_VERSION_REF="yes" 30447fi 30448 # echo "<---- python_arg_version_not_found : $python_arg_version_not_found --->" 30449 test x"$python_arg_version_not_found" == "xTrue" && as_fn_error $? "SWIG has been enabled, then we need python devel package with C development libraries. Neither the minimal version : >= '2.7' nor a version >= '3.0' has been found !" "$LINENO" 5 30450 # echo "--- PYTHON_IS_VERSION_MIN=$PYTHON_IS_VERSION_MIN ; PYTHON_IS_VERSION_REF=$PYTHON_IS_VERSION_REF ---" 30451 30452 30453 30454 30455 30456 30457 test "x" != "xno" || swig_shadow=" -noproxy" 30458 SWIG_PYTHON_OPT=-python$swig_shadow 30459 30460 SWIG_PYTHON_CPPFLAGS=$PYTHON_CPPFLAGS 30461 30462 30463 30464 # test -n "${SWIG}" && WITH_SWIG=1 30465 eval "${SWIG} -help >/dev/null 2>&1" && WITH_SWIG=1 30466 30467fi 30468 30469 30470 30471 # Propagate test into Makefiles 30472 if test $WITH_SWIG = 1; then 30473 WITH_SWIG_TRUE= 30474 WITH_SWIG_FALSE='#' 30475else 30476 WITH_SWIG_TRUE='#' 30477 WITH_SWIG_FALSE= 30478fi 30479 30480 if test $available_swig_vernum -gt "30008"; then 30481 MED_SWIG_GT_30008_TRUE= 30482 MED_SWIG_GT_30008_FALSE='#' 30483else 30484 MED_SWIG_GT_30008_TRUE='#' 30485 MED_SWIG_GT_30008_FALSE= 30486fi 30487 30488 30489 30490#MED_CHECK_SWIG 30491#MED_CHECK_SWIG([3.0.8],[/my_swig_path]) 30492 30493#Activer l'utilisation de l'API python (python devel non obligatoire si swig n'est pas utilisé). 30494 30495 30496 # Check whether --enable-python was given. 30497if test "${enable_python+set}" = set; then : 30498 enableval=$enable_python; 30499 enable_python=$enableval 30500 30501else 30502 30503 enable_python=yes 30504 30505fi 30506 30507 30508 30509 30510 30511 30512# Si swig n'est pas activé mais l'utilisation de python oui, 30513# il faut appeler la macro MEDCHECK_PYTHON_DEVEL (également appelée par MEDCHECK_SWIG si le swig est activée). 30514# Elle permet de positionner les flags de compilation/édition des liens (python devel) 30515# pour compiler les interfaces python embarquées en essayant de trouver la version PYTHON_VERSION_REF 30516# ou au minimum PYTHON_VERSION_MIN 30517# Elle définie également la version de python utilisée via ac_python_version, les tests suivants ont besoin 30518# La version est codée "x.y" (pas de release). 30519# Ne pas utiliser PYTHON_VERSION qui est une variable préciseuse 30520 if test x$enable_python = xyes && test -z "$ac_python_version"; then : 30521 30522 30523 PYTHON_IS_VERSION_REF="no" 30524 PYTHON_IS_VERSION_MIN="no" 30525 30526# L'appel à axpythondevel doit devancer l'appel à 30527# axswigpython qui appelle aussi cette macro sans argument si aucun appel préalable n'a été effectué 30528# PYTHON_CPPFLAGS et PYTHON_LDFLAGS for python C/API 30529# PYTHON_EXTRA_LIBS et PYTHON_EXTRA_LDFLAGS for embedding Python in your code. 30530# PYTHON_SITE_PKG 30531 30532 30533 # 30534 # Allow the use of a (user set) custom python version 30535 # 30536 30537 30538 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args. 30539set dummy python$PYTHON_VERSION; ac_word=$2 30540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30541$as_echo_n "checking for $ac_word... " >&6; } 30542if ${ac_cv_path_PYTHON+:} false; then : 30543 $as_echo_n "(cached) " >&6 30544else 30545 case $PYTHON in 30546 [\\/]* | ?:[\\/]*) 30547 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 30548 ;; 30549 *) 30550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30551for as_dir in $PATH 30552do 30553 IFS=$as_save_IFS 30554 test -z "$as_dir" && as_dir=. 30555 for ac_exec_ext in '' $ac_executable_extensions; do 30556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30557 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 30558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30559 break 2 30560 fi 30561done 30562 done 30563IFS=$as_save_IFS 30564 30565 ;; 30566esac 30567fi 30568PYTHON=$ac_cv_path_PYTHON 30569if test -n "$PYTHON"; then 30570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 30571$as_echo "$PYTHON" >&6; } 30572else 30573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30574$as_echo "no" >&6; } 30575fi 30576 30577 30578 if test -z "$PYTHON"; then 30579 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5 30580 PYTHON_VERSION="" 30581 fi 30582 30583 # 30584 # Check for a version of Python >= 2.1.0 30585 # 30586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5 30587$as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; } 30588 ac_supports_python_ver=`$PYTHON -c "import sys; \ 30589 ver = sys.version.split ()[0]; \ 30590 print (ver >= '2.1.0')"` 30591 if test "$ac_supports_python_ver" != "True"; then 30592 if test -z "$PYTHON_NOVERSIONCHECK"; then 30593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30594$as_echo "no" >&6; } 30595 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30596$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30597as_fn_error $? " 30598This version of the AC_PYTHON_DEVEL macro 30599doesn't work properly with versions of Python before 306002.1.0. You may need to re-run configure, setting the 30601variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG, 30602PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand. 30603Moreover, to disable this check, set PYTHON_NOVERSIONCHECK 30604to something else than an empty string. 30605 30606See \`config.log' for more details" "$LINENO" 5; } 30607 else 30608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5 30609$as_echo "skip at user request" >&6; } 30610 fi 30611 else 30612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30613$as_echo "yes" >&6; } 30614 fi 30615 30616 # 30617 # if the macro parameter ``version'' is set, honour it 30618 # 30619 python_arg_version_not_found="False" 30620 if test -n ">= '3.0'"; then 30621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '3.0'" >&5 30622$as_echo_n "checking for a version of Python >= '3.0'... " >&6; } 30623 ac_supports_python_ver=`$PYTHON -c "import sys; \ 30624 ver = sys.version.split ()[0]; \ 30625 print (ver >= '3.0')"` 30626 if test "$ac_supports_python_ver" = "True"; then 30627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30628$as_echo "yes" >&6; } 30629 else 30630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30631$as_echo "no" >&6; } 30632#EF : MODIFICATION 30633# _C_MSG_ERROR([this package requires Python >= 'M4MED_PYTHON_VERSION_REF'. 30634# If you have it installed, but it isn't the default Python 30635# interpreter in your system path, please pass the PYTHON_VERSION 30636# variable to configure. See ``configure --help'' for reference. 30637# ]) 30638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: this package should use Python >= '3.0'. 30639If you have it installed, but it isn't the default Python 30640interpreter in your system path, please pass the PYTHON_VERSION 30641variable to configure. See \`\`configure --help'' for reference. 30642" >&5 30643$as_echo "$as_me: WARNING: this package should use Python >= '3.0'. 30644If you have it installed, but it isn't the default Python 30645interpreter in your system path, please pass the PYTHON_VERSION 30646variable to configure. See \`\`configure --help'' for reference. 30647" >&2;} 30648 PYTHON_VERSION="" 30649#EF: Ajout 30650 python_arg_version_not_found="True" 30651 fi 30652 fi 30653 30654 # 30655 # Check if you have distutils, else fail 30656 # 30657#EF: Ajout 30658 if test x"$python_arg_version_found" == x"False"; then : 30659 30660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5 30661$as_echo_n "checking for the distutils Python package... " >&6; } 30662 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1` 30663 if test -z "$ac_distutils_result"; then 30664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30665$as_echo "yes" >&6; } 30666 else 30667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30668$as_echo "no" >&6; } 30669 as_fn_error $? "cannot import Python module \"distutils\". 30670Please check your Python installation. The error was: 30671$ac_distutils_result" "$LINENO" 5 30672 PYTHON_VERSION="" 30673 fi 30674#EF: Ajout 30675 30676fi 30677 30678# 30679 # Check for Python include path 30680 # 30681#EF: Ajout 30682 if test x"$python_arg_version_not_found" == x"False"; then : 30683 30684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5 30685$as_echo_n "checking for Python include path... " >&6; } 30686 if test -z "$PYTHON_CPPFLAGS"; then 30687 python_path=`$PYTHON -c "import distutils.sysconfig; \ 30688 print (distutils.sysconfig.get_python_inc ());"` 30689 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \ 30690 print (distutils.sysconfig.get_python_inc (plat_specific=1));"` 30691 if test -n "${python_path}"; then 30692 if test "${plat_python_path}" != "${python_path}"; then 30693 python_path="-I$python_path -I$plat_python_path" 30694 else 30695 python_path="-I$python_path" 30696 fi 30697 fi 30698 PYTHON_CPPFLAGS=$python_path 30699 fi 30700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5 30701$as_echo "$PYTHON_CPPFLAGS" >&6; } 30702 30703#EF: Ajout 30704 30705fi 30706 30707 # 30708 # Check for Python library path 30709 # 30710#EF: Ajout 30711 if test x"$python_arg_version_not_found" == x"False"; then : 30712 30713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5 30714$as_echo_n "checking for Python library path... " >&6; } 30715 if test -z "$PYTHON_LDFLAGS"; then 30716 # (makes two attempts to ensure we've got a version number 30717 # from the interpreter) 30718 ac_python_version=`cat<<EOD | $PYTHON - 30719 30720# join all versioning strings, on some systems 30721# major/minor numbers could be in different list elements 30722from distutils.sysconfig import * 30723e = get_config_var('VERSION') 30724if e is not None: 30725 print(e) 30726EOD` 30727 30728 if test -z "$ac_python_version"; then 30729 if test -n "$PYTHON_VERSION"; then 30730 ac_python_version=$PYTHON_VERSION 30731 else 30732 ac_python_version=`$PYTHON -c "import sys; \ 30733 print (sys.version[:3])"` 30734 fi 30735 fi 30736 30737 # Make the versioning information available to the compiler 30738 30739cat >>confdefs.h <<_ACEOF 30740#define HAVE_PYTHON "$ac_python_version" 30741_ACEOF 30742 30743 30744 # First, the library directory: 30745 ac_python_libdir=`cat<<EOD | $PYTHON - 30746 30747# There should be only one 30748import distutils.sysconfig 30749e = distutils.sysconfig.get_config_var('LIBDIR') 30750if e is not None: 30751 print (e) 30752EOD` 30753 30754 # Now, for the library: 30755 ac_python_library=`cat<<EOD | $PYTHON - 30756 30757import distutils.sysconfig 30758c = distutils.sysconfig.get_config_vars() 30759if 'LDVERSION' in c: 30760 print ('python'+c['LDVERSION']) 30761else: 30762 print ('python'+c['VERSION']) 30763EOD` 30764 30765 # This small piece shamelessly adapted from PostgreSQL python macro; 30766 # credits goes to momjian, I think. I'd like to put the right name 30767 # in the credits, if someone can point me in the right direction... ? 30768 # 30769 if test -n "$ac_python_libdir" -a -n "$ac_python_library" 30770 then 30771 # use the official shared library 30772 ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"` 30773 PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library" 30774 else 30775 # old way: use libpython from python_configdir 30776 ac_python_libdir=`$PYTHON -c \ 30777 "from distutils.sysconfig import get_python_lib as f; \ 30778 import os; \ 30779 print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"` 30780 PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version" 30781 fi 30782 30783 if test -z "PYTHON_LDFLAGS"; then 30784 as_fn_error $? " 30785 Cannot determine location of your Python DSO. Please check it was installed with 30786 dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand. 30787 " "$LINENO" 5 30788 fi 30789 fi 30790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5 30791$as_echo "$PYTHON_LDFLAGS" >&6; } 30792 30793#EF: Ajout 30794 30795fi 30796 30797 # 30798 # Check for site packages 30799 # 30800#EF: Ajout 30801 if test x"$python_arg_version_not_found" == x"False"; then : 30802 30803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5 30804$as_echo_n "checking for Python site-packages path... " >&6; } 30805 if test -z "$PYTHON_SITE_PKG"; then 30806 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \ 30807 print (distutils.sysconfig.get_python_lib(0,0));"` 30808 fi 30809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5 30810$as_echo "$PYTHON_SITE_PKG" >&6; } 30811 30812#EF: Ajout 30813 30814fi 30815 30816 # 30817 # libraries which must be linked in when embedding 30818 # 30819#EF: Ajout 30820 if test x"$python_arg_version_not_found" == x"False"; then : 30821 30822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5 30823$as_echo_n "checking python extra libraries... " >&6; } 30824 if test -z "$PYTHON_EXTRA_LIBS"; then 30825 PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \ 30826 conf = distutils.sysconfig.get_config_var; \ 30827 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"` 30828 fi 30829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5 30830$as_echo "$PYTHON_EXTRA_LIBS" >&6; } 30831 30832#EF: Ajout 30833 30834fi 30835 30836 # 30837 # linking flags needed when embedding 30838 # 30839#EF: Ajout 30840 if test x"$python_arg_version_not_found" == x"False"; then : 30841 30842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5 30843$as_echo_n "checking python extra linking flags... " >&6; } 30844 if test -z "$PYTHON_EXTRA_LDFLAGS"; then 30845 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \ 30846 conf = distutils.sysconfig.get_config_var; \ 30847 print (conf('LINKFORSHARED'))"` 30848 fi 30849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5 30850$as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; } 30851 30852#EF: Ajout 30853 30854fi 30855 30856 # 30857 # final check to see if everything compiles alright 30858 # 30859#EF: Ajout 30860 if test x"$python_arg_version_not_found" == x"False"; then : 30861 30862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5 30863$as_echo_n "checking consistency of all components of python development environment... " >&6; } 30864 # save current global flags 30865 ac_save_LIBS="$LIBS" 30866 ac_save_CPPFLAGS="$CPPFLAGS" 30867 # echo "<--- ac_save_LIBS : $ac_save_LIBS ; ac_save_CPPFLAGS : $ac_save_CPPFLAGS -->" 30868 LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS" 30869 CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS" 30870 # echo "<-- LIBS : $LIBS : CPPFLAGS : $CPPFLAGS -->" 30871 ac_ext=c 30872ac_cpp='$CPP $CPPFLAGS' 30873ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30874ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30875ac_compiler_gnu=$ac_cv_c_compiler_gnu 30876 30877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30878/* end confdefs.h. */ 30879 30880 #include <Python.h> 30881#ifdef F77_DUMMY_MAIN 30882 30883# ifdef __cplusplus 30884 extern "C" 30885# endif 30886 int F77_DUMMY_MAIN() { return 1; } 30887 30888#endif 30889int 30890main () 30891{ 30892Py_Initialize(); 30893 ; 30894 return 0; 30895} 30896 30897_ACEOF 30898if ac_fn_c_try_link "$LINENO"; then : 30899 pythonexists=yes 30900else 30901 pythonexists=no 30902fi 30903rm -f core conftest.err conftest.$ac_objext \ 30904 conftest$ac_exeext conftest.$ac_ext 30905 ac_ext=c 30906ac_cpp='$CPP $CPPFLAGS' 30907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30909ac_compiler_gnu=$ac_cv_c_compiler_gnu 30910 30911 # turn back to default flags 30912 CPPFLAGS="$ac_save_CPPFLAGS" 30913 LIBS="$ac_save_LIBS" 30914 30915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5 30916$as_echo "$pythonexists" >&6; } 30917 30918 if test ! "x$pythonexists" = "xyes"; then 30919 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30920$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30921as_fn_error $? " 30922 Could not link test program to Python. Maybe the main Python library has been 30923 installed in some non-standard library path. If so, pass it to configure, 30924 via the LDFLAGS environment variable. 30925 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\" 30926 ============================================================================ 30927 ERROR! 30928 You probably have to install the development version of the Python package 30929 for your distribution. The exact name of this package varies among them. 30930 ============================================================================ 30931 30932See \`config.log' for more details" "$LINENO" 5; } 30933 PYTHON_VERSION="" 30934 fi 30935#EF: Ajout 30936 30937fi 30938 30939 # 30940 # all done! 30941 # 30942 30943 # echo " ------ python_arg_version_not_found : $python_arg_version_not_found --------- " 30944 if test x"$python_arg_version_not_found" == "xTrue"; then : 30945 30946 30947 # 30948 # Allow the use of a (user set) custom python version 30949 # 30950 30951 30952 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args. 30953set dummy python$PYTHON_VERSION; ac_word=$2 30954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30955$as_echo_n "checking for $ac_word... " >&6; } 30956if ${ac_cv_path_PYTHON+:} false; then : 30957 $as_echo_n "(cached) " >&6 30958else 30959 case $PYTHON in 30960 [\\/]* | ?:[\\/]*) 30961 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 30962 ;; 30963 *) 30964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30965for as_dir in $PATH 30966do 30967 IFS=$as_save_IFS 30968 test -z "$as_dir" && as_dir=. 30969 for ac_exec_ext in '' $ac_executable_extensions; do 30970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30971 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 30972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30973 break 2 30974 fi 30975done 30976 done 30977IFS=$as_save_IFS 30978 30979 ;; 30980esac 30981fi 30982PYTHON=$ac_cv_path_PYTHON 30983if test -n "$PYTHON"; then 30984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 30985$as_echo "$PYTHON" >&6; } 30986else 30987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30988$as_echo "no" >&6; } 30989fi 30990 30991 30992 if test -z "$PYTHON"; then 30993 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5 30994 PYTHON_VERSION="" 30995 fi 30996 30997 # 30998 # Check for a version of Python >= 2.1.0 30999 # 31000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5 31001$as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; } 31002 ac_supports_python_ver=`$PYTHON -c "import sys; \ 31003 ver = sys.version.split ()[0]; \ 31004 print (ver >= '2.1.0')"` 31005 if test "$ac_supports_python_ver" != "True"; then 31006 if test -z "$PYTHON_NOVERSIONCHECK"; then 31007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31008$as_echo "no" >&6; } 31009 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31010$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 31011as_fn_error $? " 31012This version of the AC_PYTHON_DEVEL macro 31013doesn't work properly with versions of Python before 310142.1.0. You may need to re-run configure, setting the 31015variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG, 31016PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand. 31017Moreover, to disable this check, set PYTHON_NOVERSIONCHECK 31018to something else than an empty string. 31019 31020See \`config.log' for more details" "$LINENO" 5; } 31021 else 31022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5 31023$as_echo "skip at user request" >&6; } 31024 fi 31025 else 31026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31027$as_echo "yes" >&6; } 31028 fi 31029 31030 # 31031 # if the macro parameter ``version'' is set, honour it 31032 # 31033 python_arg_version_not_found="False" 31034 if test -n ">= '2.7'"; then 31035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.7'" >&5 31036$as_echo_n "checking for a version of Python >= '2.7'... " >&6; } 31037 ac_supports_python_ver=`$PYTHON -c "import sys; \ 31038 ver = sys.version.split ()[0]; \ 31039 print (ver >= '2.7')"` 31040 if test "$ac_supports_python_ver" = "True"; then 31041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31042$as_echo "yes" >&6; } 31043 else 31044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31045$as_echo "no" >&6; } 31046#EF : MODIFICATION 31047# _C_MSG_ERROR([this package requires Python >= 'M4MED_PYTHON2_VERSION_REF'. 31048# If you have it installed, but it isn't the default Python 31049# interpreter in your system path, please pass the PYTHON_VERSION 31050# variable to configure. See ``configure --help'' for reference. 31051# ]) 31052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: this package should use Python >= '2.7'. 31053If you have it installed, but it isn't the default Python 31054interpreter in your system path, please pass the PYTHON_VERSION 31055variable to configure. See \`\`configure --help'' for reference. 31056" >&5 31057$as_echo "$as_me: WARNING: this package should use Python >= '2.7'. 31058If you have it installed, but it isn't the default Python 31059interpreter in your system path, please pass the PYTHON_VERSION 31060variable to configure. See \`\`configure --help'' for reference. 31061" >&2;} 31062 PYTHON_VERSION="" 31063#EF: Ajout 31064 python_arg_version_not_found="True" 31065 fi 31066 fi 31067 31068 # 31069 # Check if you have distutils, else fail 31070 # 31071#EF: Ajout 31072 if test x"$python_arg_version_found" == x"False"; then : 31073 31074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5 31075$as_echo_n "checking for the distutils Python package... " >&6; } 31076 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1` 31077 if test -z "$ac_distutils_result"; then 31078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31079$as_echo "yes" >&6; } 31080 else 31081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31082$as_echo "no" >&6; } 31083 as_fn_error $? "cannot import Python module \"distutils\". 31084Please check your Python installation. The error was: 31085$ac_distutils_result" "$LINENO" 5 31086 PYTHON_VERSION="" 31087 fi 31088#EF: Ajout 31089 31090fi 31091 31092# 31093 # Check for Python include path 31094 # 31095#EF: Ajout 31096 if test x"$python_arg_version_not_found" == x"False"; then : 31097 31098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5 31099$as_echo_n "checking for Python include path... " >&6; } 31100 if test -z "$PYTHON_CPPFLAGS"; then 31101 python_path=`$PYTHON -c "import distutils.sysconfig; \ 31102 print (distutils.sysconfig.get_python_inc ());"` 31103 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \ 31104 print (distutils.sysconfig.get_python_inc (plat_specific=1));"` 31105 if test -n "${python_path}"; then 31106 if test "${plat_python_path}" != "${python_path}"; then 31107 python_path="-I$python_path -I$plat_python_path" 31108 else 31109 python_path="-I$python_path" 31110 fi 31111 fi 31112 PYTHON_CPPFLAGS=$python_path 31113 fi 31114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5 31115$as_echo "$PYTHON_CPPFLAGS" >&6; } 31116 31117#EF: Ajout 31118 31119fi 31120 31121 # 31122 # Check for Python library path 31123 # 31124#EF: Ajout 31125 if test x"$python_arg_version_not_found" == x"False"; then : 31126 31127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5 31128$as_echo_n "checking for Python library path... " >&6; } 31129 if test -z "$PYTHON_LDFLAGS"; then 31130 # (makes two attempts to ensure we've got a version number 31131 # from the interpreter) 31132 ac_python_version=`cat<<EOD | $PYTHON - 31133 31134# join all versioning strings, on some systems 31135# major/minor numbers could be in different list elements 31136from distutils.sysconfig import * 31137e = get_config_var('VERSION') 31138if e is not None: 31139 print(e) 31140EOD` 31141 31142 if test -z "$ac_python_version"; then 31143 if test -n "$PYTHON_VERSION"; then 31144 ac_python_version=$PYTHON_VERSION 31145 else 31146 ac_python_version=`$PYTHON -c "import sys; \ 31147 print (sys.version[:3])"` 31148 fi 31149 fi 31150 31151 # Make the versioning information available to the compiler 31152 31153cat >>confdefs.h <<_ACEOF 31154#define HAVE_PYTHON "$ac_python_version" 31155_ACEOF 31156 31157 31158 # First, the library directory: 31159 ac_python_libdir=`cat<<EOD | $PYTHON - 31160 31161# There should be only one 31162import distutils.sysconfig 31163e = distutils.sysconfig.get_config_var('LIBDIR') 31164if e is not None: 31165 print (e) 31166EOD` 31167 31168 # Now, for the library: 31169 ac_python_library=`cat<<EOD | $PYTHON - 31170 31171import distutils.sysconfig 31172c = distutils.sysconfig.get_config_vars() 31173if 'LDVERSION' in c: 31174 print ('python'+c['LDVERSION']) 31175else: 31176 print ('python'+c['VERSION']) 31177EOD` 31178 31179 # This small piece shamelessly adapted from PostgreSQL python macro; 31180 # credits goes to momjian, I think. I'd like to put the right name 31181 # in the credits, if someone can point me in the right direction... ? 31182 # 31183 if test -n "$ac_python_libdir" -a -n "$ac_python_library" 31184 then 31185 # use the official shared library 31186 ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"` 31187 PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library" 31188 else 31189 # old way: use libpython from python_configdir 31190 ac_python_libdir=`$PYTHON -c \ 31191 "from distutils.sysconfig import get_python_lib as f; \ 31192 import os; \ 31193 print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"` 31194 PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version" 31195 fi 31196 31197 if test -z "PYTHON_LDFLAGS"; then 31198 as_fn_error $? " 31199 Cannot determine location of your Python DSO. Please check it was installed with 31200 dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand. 31201 " "$LINENO" 5 31202 fi 31203 fi 31204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5 31205$as_echo "$PYTHON_LDFLAGS" >&6; } 31206 31207#EF: Ajout 31208 31209fi 31210 31211 # 31212 # Check for site packages 31213 # 31214#EF: Ajout 31215 if test x"$python_arg_version_not_found" == x"False"; then : 31216 31217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5 31218$as_echo_n "checking for Python site-packages path... " >&6; } 31219 if test -z "$PYTHON_SITE_PKG"; then 31220 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \ 31221 print (distutils.sysconfig.get_python_lib(0,0));"` 31222 fi 31223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5 31224$as_echo "$PYTHON_SITE_PKG" >&6; } 31225 31226#EF: Ajout 31227 31228fi 31229 31230 # 31231 # libraries which must be linked in when embedding 31232 # 31233#EF: Ajout 31234 if test x"$python_arg_version_not_found" == x"False"; then : 31235 31236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5 31237$as_echo_n "checking python extra libraries... " >&6; } 31238 if test -z "$PYTHON_EXTRA_LIBS"; then 31239 PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \ 31240 conf = distutils.sysconfig.get_config_var; \ 31241 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"` 31242 fi 31243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5 31244$as_echo "$PYTHON_EXTRA_LIBS" >&6; } 31245 31246#EF: Ajout 31247 31248fi 31249 31250 # 31251 # linking flags needed when embedding 31252 # 31253#EF: Ajout 31254 if test x"$python_arg_version_not_found" == x"False"; then : 31255 31256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5 31257$as_echo_n "checking python extra linking flags... " >&6; } 31258 if test -z "$PYTHON_EXTRA_LDFLAGS"; then 31259 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \ 31260 conf = distutils.sysconfig.get_config_var; \ 31261 print (conf('LINKFORSHARED'))"` 31262 fi 31263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5 31264$as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; } 31265 31266#EF: Ajout 31267 31268fi 31269 31270 # 31271 # final check to see if everything compiles alright 31272 # 31273#EF: Ajout 31274 if test x"$python_arg_version_not_found" == x"False"; then : 31275 31276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5 31277$as_echo_n "checking consistency of all components of python development environment... " >&6; } 31278 # save current global flags 31279 ac_save_LIBS="$LIBS" 31280 ac_save_CPPFLAGS="$CPPFLAGS" 31281 # echo "<--- ac_save_LIBS : $ac_save_LIBS ; ac_save_CPPFLAGS : $ac_save_CPPFLAGS -->" 31282 LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS" 31283 CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS" 31284 # echo "<-- LIBS : $LIBS : CPPFLAGS : $CPPFLAGS -->" 31285 ac_ext=c 31286ac_cpp='$CPP $CPPFLAGS' 31287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31289ac_compiler_gnu=$ac_cv_c_compiler_gnu 31290 31291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31292/* end confdefs.h. */ 31293 31294 #include <Python.h> 31295#ifdef F77_DUMMY_MAIN 31296 31297# ifdef __cplusplus 31298 extern "C" 31299# endif 31300 int F77_DUMMY_MAIN() { return 1; } 31301 31302#endif 31303int 31304main () 31305{ 31306Py_Initialize(); 31307 ; 31308 return 0; 31309} 31310 31311_ACEOF 31312if ac_fn_c_try_link "$LINENO"; then : 31313 pythonexists=yes 31314else 31315 pythonexists=no 31316fi 31317rm -f core conftest.err conftest.$ac_objext \ 31318 conftest$ac_exeext conftest.$ac_ext 31319 ac_ext=c 31320ac_cpp='$CPP $CPPFLAGS' 31321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31323ac_compiler_gnu=$ac_cv_c_compiler_gnu 31324 31325 # turn back to default flags 31326 CPPFLAGS="$ac_save_CPPFLAGS" 31327 LIBS="$ac_save_LIBS" 31328 31329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5 31330$as_echo "$pythonexists" >&6; } 31331 31332 if test ! "x$pythonexists" = "xyes"; then 31333 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31334$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 31335as_fn_error $? " 31336 Could not link test program to Python. Maybe the main Python library has been 31337 installed in some non-standard library path. If so, pass it to configure, 31338 via the LDFLAGS environment variable. 31339 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\" 31340 ============================================================================ 31341 ERROR! 31342 You probably have to install the development version of the Python package 31343 for your distribution. The exact name of this package varies among them. 31344 ============================================================================ 31345 31346See \`config.log' for more details" "$LINENO" 5; } 31347 PYTHON_VERSION="" 31348 fi 31349#EF: Ajout 31350 31351fi 31352 31353 # 31354 # all done! 31355 # 31356 31357 PYTHON_IS_VERSION_MIN="yes" 31358else 31359 PYTHON_IS_VERSION_REF="yes" 31360fi 31361 # echo "<---- python_arg_version_not_found : $python_arg_version_not_found --->" 31362 test x"$python_arg_version_not_found" == "xTrue" && as_fn_error $? "SWIG has been enabled, then we need python devel package with C development libraries. Neither the minimal version : >= '2.7' nor a version >= '3.0' has been found !" "$LINENO" 5 31363 # echo "--- PYTHON_IS_VERSION_MIN=$PYTHON_IS_VERSION_MIN ; PYTHON_IS_VERSION_REF=$PYTHON_IS_VERSION_REF ---" 31364 31365 31366fi 31367 31368 test x"$WITH_SWIG" = x1 && test x"$enable_python" = xno && as_fn_error $? "python is needed because swig is activated." "$LINENO" 5 31369#La gestion des modules précompilés existe désormais en med_int=int|long 31370# test x"$WITH_SWIG" = x0 && test x"$enable_python" = xyes && test ! x"$LONG_OR_INT" == "xint" && AC_MSG_ERROR([Either use --disable-python or --with-swig=[yes|<swigdir>]. Swig is needed because embedded python interfaces has been generated for --with-med_int=int.]) 31371 test x"$WITH_SWIG" = x0 && test x"$enable_python" = xyes && test x"$BUILD_WITH_PMED" == "xyes" && as_fn_error $? "Either use --disable-python or --with-swig=yes|<swigdir>. Swig is needed because embedded python interfaces has been generated without MPI." "$LINENO" 5 31372#Si la version de python trouvée n'est pas compatible avec les interfaces générées embarquées, arrête la configuration 31373# PYTHON_IS_VERSION_REF est en fait >= VERSION_REF 31374 test x"$WITH_SWIG" = x0 && test x"$enable_python" = xyes && test x"$PYTHON_IS_VERSION_REF" == "xno" && as_fn_error $? "Either use --disable-python, PYTHON_VERSION=, or --with-swig=yes|<swigdir>. Swig is needed because the detected python version is not compatible with the version used when generating the embedded interfaces." "$LINENO" 5 31375#Si la version de swig trouvée n'est pas suffisante pour gérer la version de python, arrête la configuration 31376#En particulier Python3 et swig 2.0.8 ne fonctionne pas pour les absolute import 31377#mais fontionne à partir de swig 2.0.12 31378#version_compare : si > -> 1, si < -> 1, si == -> 0 31379#SWIG_IS_VERSION_REF==yes --> swig is >= swig_version_ref 31380# [echo "$ac_python_version < 3.0.0"] 31381 31382 31383test x"$WITH_SWIG" = x1 && test x"$enable_python" = xyes &&\ 31384{ 31385 31386 31387 31388 # Used to indicate true or false condition 31389 ax_compare_version=false 31390 31391 # Convert the two version strings to be compared into a format that 31392 # allows a simple string comparison. The end result is that a version 31393 # string of the form 1.12.5-r617 will be converted to the form 31394 # 0001001200050617. In other words, each number is zero padded to four 31395 # digits, and non digits are removed. 31396 31397 ax_compare_version_A=`echo "$ac_python_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ 31398 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ 31399 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ 31400 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ 31401 -e 's/[^0-9]//g'` 31402 31403 31404 ax_compare_version_B=`echo "3.0.0" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ 31405 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ 31406 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ 31407 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ 31408 -e 's/[^0-9]//g'` 31409 31410 31411 ax_compare_version=`echo "x$ax_compare_version_A 31412x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/false/;s/x${ax_compare_version_B}/true/;1q"` 31413 31414 31415 31416 if test "$ax_compare_version" = "true" ; then 31417 # [echo "$ac_python_version < 3.0.0"] 31418 : 31419 31420 else # [echo "$ac_python_version >= 3.0.0"] 31421 31422 31423 31424 31425 # Used to indicate true or false condition 31426 ax_compare_version=false 31427 31428 # Convert the two version strings to be compared into a format that 31429 # allows a simple string comparison. The end result is that a version 31430 # string of the form 1.12.5-r617 will be converted to the form 31431 # 0001001200050617. In other words, each number is zero padded to four 31432 # digits, and non digits are removed. 31433 31434 ax_compare_version_A=`echo "$available_swig_vernum" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ 31435 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ 31436 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ 31437 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ 31438 -e 's/[^0-9]//g'` 31439 31440 31441 ax_compare_version_B=`echo "20012" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ 31442 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ 31443 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ 31444 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ 31445 -e 's/[^0-9]//g'` 31446 31447 31448 ax_compare_version=`echo "x$ax_compare_version_A 31449x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/false/;s/x${ax_compare_version_B}/true/;1q"` 31450 31451 31452 31453 if test "$ax_compare_version" = "true" ; then 31454 31455# echo "available_swig_vernum($available_swig_vernum) < 2.0.12" 31456 as_fn_error $? "Either use --disable-python or --with-swig=yes|<swigdir>. The Swig version needed must be at least 2.0.12 if you want to use python version >= 3." "$LINENO" 5 31457 31458 else 31459 : 31460# echo "available_swig_vernum($available_swig_vernum) >= 2.0.12" 31461 31462 fi 31463 31464 31465 31466 fi 31467 31468} 31469 31470# AM_CONDITIONAL([MED_HAVE_PYTHON3],[test x"$PYTHON_IS_VERSION_REF" == "xyes"]) 31471 if test x`echo $ac_python_version |sed -n 's/^\(.\).*/\1/p'` == "x3"; then 31472 MED_HAVE_PYTHON3_TRUE= 31473 MED_HAVE_PYTHON3_FALSE='#' 31474else 31475 MED_HAVE_PYTHON3_TRUE='#' 31476 MED_HAVE_PYTHON3_FALSE= 31477fi 31478 31479 31480 if test x$enable_python = xyes; then : 31481 31482 31483# L'appel à la macro PATH_PYTHON positionne : 31484# ‘PYTHON_VERSION’ 31485# ‘PYTHON_PREFIX’ 31486# ‘PYTHON_EXEC_PREFIX’ 31487# ‘PYTHON_PLATFORM’ 31488# ‘pythondir’ 31489# ‘pkgpythondir’ 31490# ‘pyexecdir’ 31491# ‘pkgpyexecdir’ 31492## 31493# 'PYTHON’ variable is used 31494 31495 31496 31497 31498 31499 31500 31501 if test -n "$PYTHON"; then 31502 # If the user set $PYTHON, use it and don't search something else. 31503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= $ac_python_version" >&5 31504$as_echo_n "checking whether $PYTHON version is >= $ac_python_version... " >&6; } 31505 prog="import sys 31506# split strings by '.' and convert to numeric. Append some zeros 31507# because we need at least 4 digits for the hex conversion. 31508# map returns an iterator in Python 3.0 and a list in 2.x 31509minver = list(map(int, '$ac_python_version'.split('.'))) + [0, 0, 0] 31510minverhex = 0 31511# xrange is not present in Python 3.0 and range returns an iterator 31512for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] 31513sys.exit(sys.hexversion < minverhex)" 31514 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5 31515 ($PYTHON -c "$prog") >&5 2>&5 31516 ac_status=$? 31517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31518 (exit $ac_status); }; then : 31519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31520$as_echo "yes" >&6; } 31521else 31522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31523$as_echo "no" >&6; } 31524 as_fn_error $? "Python interpreter is too old" "$LINENO" 5 31525fi 31526 am_display_PYTHON=$PYTHON 31527 else 31528 # Otherwise, try each interpreter until we find one that satisfies 31529 # VERSION. 31530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= $ac_python_version" >&5 31531$as_echo_n "checking for a Python interpreter with version >= $ac_python_version... " >&6; } 31532if ${am_cv_pathless_PYTHON+:} false; then : 31533 $as_echo_n "(cached) " >&6 31534else 31535 31536 for am_cv_pathless_PYTHON in python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do 31537 test "$am_cv_pathless_PYTHON" = none && break 31538 prog="import sys 31539# split strings by '.' and convert to numeric. Append some zeros 31540# because we need at least 4 digits for the hex conversion. 31541# map returns an iterator in Python 3.0 and a list in 2.x 31542minver = list(map(int, '$ac_python_version'.split('.'))) + [0, 0, 0] 31543minverhex = 0 31544# xrange is not present in Python 3.0 and range returns an iterator 31545for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] 31546sys.exit(sys.hexversion < minverhex)" 31547 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5 31548 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5 31549 ac_status=$? 31550 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31551 (exit $ac_status); }; then : 31552 break 31553fi 31554 done 31555fi 31556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5 31557$as_echo "$am_cv_pathless_PYTHON" >&6; } 31558 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON. 31559 if test "$am_cv_pathless_PYTHON" = none; then 31560 PYTHON=: 31561 else 31562 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args. 31563set dummy $am_cv_pathless_PYTHON; ac_word=$2 31564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31565$as_echo_n "checking for $ac_word... " >&6; } 31566if ${ac_cv_path_PYTHON+:} false; then : 31567 $as_echo_n "(cached) " >&6 31568else 31569 case $PYTHON in 31570 [\\/]* | ?:[\\/]*) 31571 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 31572 ;; 31573 *) 31574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31575for as_dir in $PATH 31576do 31577 IFS=$as_save_IFS 31578 test -z "$as_dir" && as_dir=. 31579 for ac_exec_ext in '' $ac_executable_extensions; do 31580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31581 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 31582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31583 break 2 31584 fi 31585done 31586 done 31587IFS=$as_save_IFS 31588 31589 ;; 31590esac 31591fi 31592PYTHON=$ac_cv_path_PYTHON 31593if test -n "$PYTHON"; then 31594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 31595$as_echo "$PYTHON" >&6; } 31596else 31597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31598$as_echo "no" >&6; } 31599fi 31600 31601 31602 fi 31603 am_display_PYTHON=$am_cv_pathless_PYTHON 31604 fi 31605 31606 31607 if test "$PYTHON" = :; then 31608 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31609$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 31610as_fn_error $? "PYTHON interpreter requested, but couldn't find python >=3.0 31611 31612See \`config.log' for more details" "$LINENO" 5; } 31613 31614 else 31615 31616 31617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5 31618$as_echo_n "checking for $am_display_PYTHON version... " >&6; } 31619if ${am_cv_python_version+:} false; then : 31620 $as_echo_n "(cached) " >&6 31621else 31622 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"` 31623fi 31624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5 31625$as_echo "$am_cv_python_version" >&6; } 31626 PYTHON_VERSION=$am_cv_python_version 31627 31628 31629 31630 PYTHON_PREFIX='${prefix}' 31631 31632 PYTHON_EXEC_PREFIX='${exec_prefix}' 31633 31634 31635 31636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5 31637$as_echo_n "checking for $am_display_PYTHON platform... " >&6; } 31638if ${am_cv_python_platform+:} false; then : 31639 $as_echo_n "(cached) " >&6 31640else 31641 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"` 31642fi 31643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5 31644$as_echo "$am_cv_python_platform" >&6; } 31645 PYTHON_PLATFORM=$am_cv_python_platform 31646 31647 31648 # Just factor out some code duplication. 31649 am_python_setup_sysconfig="\ 31650import sys 31651# Prefer sysconfig over distutils.sysconfig, for better compatibility 31652# with python 3.x. See automake bug#10227. 31653try: 31654 import sysconfig 31655except ImportError: 31656 can_use_sysconfig = 0 31657else: 31658 can_use_sysconfig = 1 31659# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs: 31660# <https://github.com/pypa/virtualenv/issues/118> 31661try: 31662 from platform import python_implementation 31663 if python_implementation() == 'CPython' and sys.version[:3] == '2.7': 31664 can_use_sysconfig = 0 31665except ImportError: 31666 pass" 31667 31668 31669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5 31670$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; } 31671if ${am_cv_python_pythondir+:} false; then : 31672 $as_echo_n "(cached) " >&6 31673else 31674 if test "x$prefix" = xNONE 31675 then 31676 am_py_prefix=$ac_default_prefix 31677 else 31678 am_py_prefix=$prefix 31679 fi 31680 am_cv_python_pythondir=`$PYTHON -c " 31681$am_python_setup_sysconfig 31682if can_use_sysconfig: 31683 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'}) 31684else: 31685 from distutils import sysconfig 31686 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix') 31687sys.stdout.write(sitedir)"` 31688 case $am_cv_python_pythondir in 31689 $am_py_prefix*) 31690 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'` 31691 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"` 31692 ;; 31693 *) 31694 case $am_py_prefix in 31695 /usr|/System*) ;; 31696 *) 31697 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages 31698 ;; 31699 esac 31700 ;; 31701 esac 31702 31703fi 31704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5 31705$as_echo "$am_cv_python_pythondir" >&6; } 31706 pythondir=$am_cv_python_pythondir 31707 31708 31709 31710 pkgpythondir=\${pythondir}/$PACKAGE 31711 31712 31713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5 31714$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; } 31715if ${am_cv_python_pyexecdir+:} false; then : 31716 $as_echo_n "(cached) " >&6 31717else 31718 if test "x$exec_prefix" = xNONE 31719 then 31720 am_py_exec_prefix=$am_py_prefix 31721 else 31722 am_py_exec_prefix=$exec_prefix 31723 fi 31724 am_cv_python_pyexecdir=`$PYTHON -c " 31725$am_python_setup_sysconfig 31726if can_use_sysconfig: 31727 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'}) 31728else: 31729 from distutils import sysconfig 31730 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix') 31731sys.stdout.write(sitedir)"` 31732 case $am_cv_python_pyexecdir in 31733 $am_py_exec_prefix*) 31734 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'` 31735 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"` 31736 ;; 31737 *) 31738 case $am_py_exec_prefix in 31739 /usr|/System*) ;; 31740 *) 31741 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages 31742 ;; 31743 esac 31744 ;; 31745 esac 31746 31747fi 31748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5 31749$as_echo "$am_cv_python_pyexecdir" >&6; } 31750 pyexecdir=$am_cv_python_pyexecdir 31751 31752 31753 31754 pkgpyexecdir=\${pyexecdir}/$PACKAGE 31755 31756 31757 31758 # AC_SUBST([python_bin], 31759 # [`basename ${PYTHON}`] ) 31760 31761 # AC_SUBST([PYTHON_PREFIX], 31762 # [`${PYTHON} -c "import sys; print (sys.prefix)"`] ) 31763 31764 # AC_SUBST([python_includedir], 31765 # [`${PYTHON} -c "import sys; print (sys.prefix + \"/include/python\" + str(sys.version_info[[0]]) + \".\" + str(sys.version_info[[1]]))"`] ) 31766 31767 # AC_SUBST([python_libdir], 31768 # [`${PYTHON} -c "import sys; print (sys.prefix + \"/lib/python\" + str(sys.version_info[[0]]) + \".\" + str(sys.version_info[[1]]) + \"/m4\")"`] ) 31769 31770 # AC_SUBST([python_version], 31771 # [`${PYTHON} -c "import sys; print (str(sys.version_info[[0]]) + \".\" + str(sys.version_info[[1]]))"`] ) 31772 31773 fi 31774 31775 31776 31777 # Pour l'affichage du Summary 31778 BUILD_PYTHONTESTS_CONDITIONAL_TRUE= 31779 BUILD_PYTHONTESTS_CONDITIONAL_FALSE='#' 31780 31781else 31782 31783 # Pour l'affichage du Summary 31784 BUILD_PYTHONTESTS_CONDITIONAL_TRUE='#' 31785 BUILD_PYTHONTESTS_CONDITIONAL_FALSE= 31786 PYTHON="Python not available" 31787 31788fi 31789 31790 31791 31792 31793 31794 if test "x$enable_python" = "xyes" ; then 31795 WITH_PYTHON_TRUE= 31796 WITH_PYTHON_FALSE='#' 31797else 31798 WITH_PYTHON_TRUE='#' 31799 WITH_PYTHON_FALSE= 31800fi 31801 31802 test x"$enable_python" = xyes && 31803$as_echo "#define MED_HAVE_PYTHON 1" >>confdefs.h 31804 31805 test ! x"$enable_python" = xyes && 31806$as_echo "#define MED_HAVE_PYTHON 0" >>confdefs.h 31807 31808 31809 31810 31811# Initialize Autotest 31812# Transmet les inforamtions de configurations 31813# aux différents groupes de tests 31814# génère atconfig et atlocal à partir d'atlocal.in (on crée aussi un atconfig.in) 31815# Les deux fichiers générés sont utililisés par le script testsuite généré 31816ac_config_commands="$ac_config_commands tests/python/atconfig" 31817 31818ac_config_commands="$ac_config_commands tests/usecases/python/atconfig" 31819 31820 31821## Configure Doxygen 31822## TODO : Créer une macro spécifique. 31823 31824DOXYMEDFILE=$srcdir/doc/dox/MEDfile.als 31825 31826 31827DOXYMEDMESH=$srcdir/doc/dox/MEDmesh.als 31828 31829 31830DOXYMEDSUPPORTMESH=$srcdir/doc/dox/MEDsupportMesh.als 31831 31832 31833DOXYMEDFILTER=$srcdir/doc/dox/MEDfilter.als 31834 31835 31836DOXYMEDLIBRARY=$srcdir/doc/dox/MEDlibrary.als 31837 31838 31839DOXYMEDFIELD=$srcdir/doc/dox/MEDfield.als 31840 31841 31842DOXYMEDFAMILY=$srcdir/doc/dox/MEDfamily.als 31843 31844 31845DOXYMEDEQUIVALENCE=$srcdir/doc/dox/MEDequivalence.als 31846 31847 31848DOXYMEDLINK=$srcdir/doc/dox/MEDlink.als 31849 31850 31851DOXYMEDJOINT=$srcdir/doc/dox/MEDjoint.als 31852 31853 31854DOXYMEDLOCALIZATION=$srcdir/doc/dox/MEDlocalization.als 31855 31856 31857DOXYMEDINTERP=$srcdir/doc/dox/MEDinterp.als 31858 31859 31860DOXYMEDSTRUCTELEMENT=$srcdir/doc/dox/MEDstructElement.als 31861 31862 31863DOXYMEDPARAMETER=$srcdir/doc/dox/MEDparameter.als 31864 31865 31866DOXYMEDPROFILE=$srcdir/doc/dox/MEDprofile.als 31867 31868 31869DOXYALIASES=./doc/dox/aliases.als 31870 31871: ${CONFIG_LT=./config.lt} 31872{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5 31873$as_echo "$as_me: creating $CONFIG_LT" >&6;} 31874as_write_fail=0 31875cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1 31876#! $SHELL 31877# Generated by $as_me. 31878# Run this file to recreate a libtool stub with the current configuration. 31879SHELL=\${CONFIG_SHELL-$SHELL} 31880export SHELL 31881_ASEOF 31882cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail=1 31883## -------------------- ## 31884## M4sh Initialization. ## 31885## -------------------- ## 31886 31887# Be more Bourne compatible 31888DUALCASE=1; export DUALCASE # for MKS sh 31889if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 31890 emulate sh 31891 NULLCMD=: 31892 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 31893 # is contrary to our usage. Disable this feature. 31894 alias -g '${1+"$@"}'='"$@"' 31895 setopt NO_GLOB_SUBST 31896else 31897 case `(set -o) 2>/dev/null` in #( 31898 *posix*) : 31899 set -o posix ;; #( 31900 *) : 31901 ;; 31902esac 31903fi 31904 31905 31906as_nl=' 31907' 31908export as_nl 31909# Printing a long string crashes Solaris 7 /usr/bin/printf. 31910as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 31911as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 31912as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 31913# Prefer a ksh shell builtin over an external printf program on Solaris, 31914# but without wasting forks for bash or zsh. 31915if test -z "$BASH_VERSION$ZSH_VERSION" \ 31916 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 31917 as_echo='print -r --' 31918 as_echo_n='print -rn --' 31919elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 31920 as_echo='printf %s\n' 31921 as_echo_n='printf %s' 31922else 31923 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 31924 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 31925 as_echo_n='/usr/ucb/echo -n' 31926 else 31927 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 31928 as_echo_n_body='eval 31929 arg=$1; 31930 case $arg in #( 31931 *"$as_nl"*) 31932 expr "X$arg" : "X\\(.*\\)$as_nl"; 31933 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 31934 esac; 31935 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 31936 ' 31937 export as_echo_n_body 31938 as_echo_n='sh -c $as_echo_n_body as_echo' 31939 fi 31940 export as_echo_body 31941 as_echo='sh -c $as_echo_body as_echo' 31942fi 31943 31944# The user is always right. 31945if test "${PATH_SEPARATOR+set}" != set; then 31946 PATH_SEPARATOR=: 31947 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 31948 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 31949 PATH_SEPARATOR=';' 31950 } 31951fi 31952 31953 31954# IFS 31955# We need space, tab and new line, in precisely that order. Quoting is 31956# there to prevent editors from complaining about space-tab. 31957# (If _AS_PATH_WALK were called with IFS unset, it would disable word 31958# splitting by setting IFS to empty value.) 31959IFS=" "" $as_nl" 31960 31961# Find who we are. Look in the path if we contain no directory separator. 31962as_myself= 31963case $0 in #(( 31964 *[\\/]* ) as_myself=$0 ;; 31965 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31966for as_dir in $PATH 31967do 31968 IFS=$as_save_IFS 31969 test -z "$as_dir" && as_dir=. 31970 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 31971 done 31972IFS=$as_save_IFS 31973 31974 ;; 31975esac 31976# We did not find ourselves, most probably we were run as `sh COMMAND' 31977# in which case we are not to be found in the path. 31978if test "x$as_myself" = x; then 31979 as_myself=$0 31980fi 31981if test ! -f "$as_myself"; then 31982 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 31983 exit 1 31984fi 31985 31986# Unset variables that we do not need and which cause bugs (e.g. in 31987# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 31988# suppresses any "Segmentation fault" message there. '((' could 31989# trigger a bug in pdksh 5.2.14. 31990for as_var in BASH_ENV ENV MAIL MAILPATH 31991do eval test x\${$as_var+set} = xset \ 31992 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 31993done 31994PS1='$ ' 31995PS2='> ' 31996PS4='+ ' 31997 31998# NLS nuisances. 31999LC_ALL=C 32000export LC_ALL 32001LANGUAGE=C 32002export LANGUAGE 32003 32004# CDPATH. 32005(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 32006 32007 32008# as_fn_error STATUS ERROR [LINENO LOG_FD] 32009# ---------------------------------------- 32010# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 32011# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 32012# script with STATUS, using 1 if that was 0. 32013as_fn_error () 32014{ 32015 as_status=$1; test $as_status -eq 0 && as_status=1 32016 if test "$4"; then 32017 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 32018 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 32019 fi 32020 $as_echo "$as_me: error: $2" >&2 32021 as_fn_exit $as_status 32022} # as_fn_error 32023 32024 32025# as_fn_set_status STATUS 32026# ----------------------- 32027# Set $? to STATUS, without forking. 32028as_fn_set_status () 32029{ 32030 return $1 32031} # as_fn_set_status 32032 32033# as_fn_exit STATUS 32034# ----------------- 32035# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 32036as_fn_exit () 32037{ 32038 set +e 32039 as_fn_set_status $1 32040 exit $1 32041} # as_fn_exit 32042 32043# as_fn_unset VAR 32044# --------------- 32045# Portably unset VAR. 32046as_fn_unset () 32047{ 32048 { eval $1=; unset $1;} 32049} 32050as_unset=as_fn_unset 32051# as_fn_append VAR VALUE 32052# ---------------------- 32053# Append the text in VALUE to the end of the definition contained in VAR. Take 32054# advantage of any shell optimizations that allow amortized linear growth over 32055# repeated appends, instead of the typical quadratic growth present in naive 32056# implementations. 32057if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 32058 eval 'as_fn_append () 32059 { 32060 eval $1+=\$2 32061 }' 32062else 32063 as_fn_append () 32064 { 32065 eval $1=\$$1\$2 32066 } 32067fi # as_fn_append 32068 32069# as_fn_arith ARG... 32070# ------------------ 32071# Perform arithmetic evaluation on the ARGs, and store the result in the 32072# global $as_val. Take advantage of shells that can avoid forks. The arguments 32073# must be portable across $(()) and expr. 32074if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 32075 eval 'as_fn_arith () 32076 { 32077 as_val=$(( $* )) 32078 }' 32079else 32080 as_fn_arith () 32081 { 32082 as_val=`expr "$@" || test $? -eq 1` 32083 } 32084fi # as_fn_arith 32085 32086 32087if expr a : '\(a\)' >/dev/null 2>&1 && 32088 test "X`expr 00001 : '.*\(...\)'`" = X001; then 32089 as_expr=expr 32090else 32091 as_expr=false 32092fi 32093 32094if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 32095 as_basename=basename 32096else 32097 as_basename=false 32098fi 32099 32100if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 32101 as_dirname=dirname 32102else 32103 as_dirname=false 32104fi 32105 32106as_me=`$as_basename -- "$0" || 32107$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 32108 X"$0" : 'X\(//\)$' \| \ 32109 X"$0" : 'X\(/\)' \| . 2>/dev/null || 32110$as_echo X/"$0" | 32111 sed '/^.*\/\([^/][^/]*\)\/*$/{ 32112 s//\1/ 32113 q 32114 } 32115 /^X\/\(\/\/\)$/{ 32116 s//\1/ 32117 q 32118 } 32119 /^X\/\(\/\).*/{ 32120 s//\1/ 32121 q 32122 } 32123 s/.*/./; q'` 32124 32125# Avoid depending upon Character Ranges. 32126as_cr_letters='abcdefghijklmnopqrstuvwxyz' 32127as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 32128as_cr_Letters=$as_cr_letters$as_cr_LETTERS 32129as_cr_digits='0123456789' 32130as_cr_alnum=$as_cr_Letters$as_cr_digits 32131 32132ECHO_C= ECHO_N= ECHO_T= 32133case `echo -n x` in #((((( 32134-n*) 32135 case `echo 'xy\c'` in 32136 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 32137 xy) ECHO_C='\c';; 32138 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 32139 ECHO_T=' ';; 32140 esac;; 32141*) 32142 ECHO_N='-n';; 32143esac 32144 32145rm -f conf$$ conf$$.exe conf$$.file 32146if test -d conf$$.dir; then 32147 rm -f conf$$.dir/conf$$.file 32148else 32149 rm -f conf$$.dir 32150 mkdir conf$$.dir 2>/dev/null 32151fi 32152if (echo >conf$$.file) 2>/dev/null; then 32153 if ln -s conf$$.file conf$$ 2>/dev/null; then 32154 as_ln_s='ln -s' 32155 # ... but there are two gotchas: 32156 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 32157 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 32158 # In both cases, we have to default to `cp -pR'. 32159 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 32160 as_ln_s='cp -pR' 32161 elif ln conf$$.file conf$$ 2>/dev/null; then 32162 as_ln_s=ln 32163 else 32164 as_ln_s='cp -pR' 32165 fi 32166else 32167 as_ln_s='cp -pR' 32168fi 32169rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 32170rmdir conf$$.dir 2>/dev/null 32171 32172 32173# as_fn_mkdir_p 32174# ------------- 32175# Create "$as_dir" as a directory, including parents if necessary. 32176as_fn_mkdir_p () 32177{ 32178 32179 case $as_dir in #( 32180 -*) as_dir=./$as_dir;; 32181 esac 32182 test -d "$as_dir" || eval $as_mkdir_p || { 32183 as_dirs= 32184 while :; do 32185 case $as_dir in #( 32186 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 32187 *) as_qdir=$as_dir;; 32188 esac 32189 as_dirs="'$as_qdir' $as_dirs" 32190 as_dir=`$as_dirname -- "$as_dir" || 32191$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 32192 X"$as_dir" : 'X\(//\)[^/]' \| \ 32193 X"$as_dir" : 'X\(//\)$' \| \ 32194 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 32195$as_echo X"$as_dir" | 32196 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 32197 s//\1/ 32198 q 32199 } 32200 /^X\(\/\/\)[^/].*/{ 32201 s//\1/ 32202 q 32203 } 32204 /^X\(\/\/\)$/{ 32205 s//\1/ 32206 q 32207 } 32208 /^X\(\/\).*/{ 32209 s//\1/ 32210 q 32211 } 32212 s/.*/./; q'` 32213 test -d "$as_dir" && break 32214 done 32215 test -z "$as_dirs" || eval "mkdir $as_dirs" 32216 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 32217 32218 32219} # as_fn_mkdir_p 32220if mkdir -p . 2>/dev/null; then 32221 as_mkdir_p='mkdir -p "$as_dir"' 32222else 32223 test -d ./-p && rmdir ./-p 32224 as_mkdir_p=false 32225fi 32226 32227 32228# as_fn_executable_p FILE 32229# ----------------------- 32230# Test if FILE is an executable regular file. 32231as_fn_executable_p () 32232{ 32233 test -f "$1" && test -x "$1" 32234} # as_fn_executable_p 32235as_test_x='test -x' 32236as_executable_p=as_fn_executable_p 32237 32238# Sed expression to map a string onto a valid CPP name. 32239as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 32240 32241# Sed expression to map a string onto a valid variable name. 32242as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 32243 32244 32245exec 6>&1 32246## --------------------------------- ## 32247## Main body of "$CONFIG_LT" script. ## 32248## --------------------------------- ## 32249_ASEOF 32250test $as_write_fail = 0 && chmod +x "$CONFIG_LT" 32251 32252cat >>"$CONFIG_LT" <<\_LTEOF 32253lt_cl_silent=false 32254exec 5>>config.log 32255{ 32256 echo 32257 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 32258## Running $as_me. ## 32259_ASBOX 32260} >&5 32261 32262lt_cl_help="\ 32263'$as_me' creates a local libtool stub from the current configuration, 32264for use in further configure time tests before the real libtool is 32265generated. 32266 32267Usage: $0 [OPTIONS] 32268 32269 -h, --help print this help, then exit 32270 -V, --version print version number, then exit 32271 -q, --quiet do not print progress messages 32272 -d, --debug don't remove temporary files 32273 32274Report bugs to <bug-libtool@gnu.org>." 32275 32276lt_cl_version="\ 32277MED Fichier config.lt 4.0.0 32278configured by $0, generated by GNU Autoconf 2.69. 32279 32280Copyright (C) 2011 Free Software Foundation, Inc. 32281This config.lt script is free software; the Free Software Foundation 32282gives unlimited permision to copy, distribute and modify it." 32283 32284while test 0 != $# 32285do 32286 case $1 in 32287 --version | --v* | -V ) 32288 echo "$lt_cl_version"; exit 0 ;; 32289 --help | --h* | -h ) 32290 echo "$lt_cl_help"; exit 0 ;; 32291 --debug | --d* | -d ) 32292 debug=: ;; 32293 --quiet | --q* | --silent | --s* | -q ) 32294 lt_cl_silent=: ;; 32295 32296 -*) as_fn_error $? "unrecognized option: $1 32297Try '$0 --help' for more information." "$LINENO" 5 ;; 32298 32299 *) as_fn_error $? "unrecognized argument: $1 32300Try '$0 --help' for more information." "$LINENO" 5 ;; 32301 esac 32302 shift 32303done 32304 32305if $lt_cl_silent; then 32306 exec 6>/dev/null 32307fi 32308_LTEOF 32309 32310cat >>"$CONFIG_LT" <<_LTEOF 32311 32312 32313# The HP-UX ksh and POSIX shell print the target directory to stdout 32314# if CDPATH is set. 32315(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 32316 32317sed_quote_subst='$sed_quote_subst' 32318double_quote_subst='$double_quote_subst' 32319delay_variable_subst='$delay_variable_subst' 32320AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 32321DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 32322OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 32323macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 32324macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 32325enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 32326enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 32327pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 32328enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 32329shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 32330SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 32331ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 32332PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 32333host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 32334host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 32335host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 32336build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 32337build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 32338build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 32339SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 32340Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 32341GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 32342EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 32343FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 32344LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 32345NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 32346LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 32347max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 32348ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 32349exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 32350lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 32351lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 32352lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 32353lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 32354lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 32355reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 32356reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 32357deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 32358file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 32359file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 32360want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 32361sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 32362AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 32363AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 32364archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 32365STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 32366RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 32367old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 32368old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 32369old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 32370lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 32371CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 32372CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 32373compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 32374GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 32375lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 32376lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 32377lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 32378lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 32379lt_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"`' 32380lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 32381nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 32382lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 32383lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 32384objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 32385MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 32386lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 32387lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 32388lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 32389lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 32390lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 32391need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 32392MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 32393DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 32394NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 32395LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 32396OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 32397OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 32398libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 32399shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 32400extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 32401archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 32402enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 32403export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 32404whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 32405compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 32406old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 32407old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 32408archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 32409archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 32410module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 32411module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 32412with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 32413allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 32414no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 32415hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 32416hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 32417hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 32418hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 32419hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 32420hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 32421hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 32422inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 32423link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 32424always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 32425export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 32426exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 32427include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 32428prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 32429postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 32430file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 32431variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 32432need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 32433need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 32434version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 32435runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 32436shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 32437shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 32438libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 32439library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 32440soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 32441install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 32442postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 32443postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 32444finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 32445finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 32446hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 32447sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 32448configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 32449configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 32450hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 32451enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 32452enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 32453enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 32454old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 32455striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 32456compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 32457predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 32458postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 32459predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 32460postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 32461compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 32462LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 32463LD_F77='`$ECHO "$LD_F77" | $SED "$delay_single_quote_subst"`' 32464LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`' 32465reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 32466reload_flag_F77='`$ECHO "$reload_flag_F77" | $SED "$delay_single_quote_subst"`' 32467reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`' 32468reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 32469reload_cmds_F77='`$ECHO "$reload_cmds_F77" | $SED "$delay_single_quote_subst"`' 32470reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`' 32471old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 32472old_archive_cmds_F77='`$ECHO "$old_archive_cmds_F77" | $SED "$delay_single_quote_subst"`' 32473old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`' 32474compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 32475compiler_F77='`$ECHO "$compiler_F77" | $SED "$delay_single_quote_subst"`' 32476compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`' 32477GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 32478GCC_F77='`$ECHO "$GCC_F77" | $SED "$delay_single_quote_subst"`' 32479GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`' 32480lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 32481lt_prog_compiler_no_builtin_flag_F77='`$ECHO "$lt_prog_compiler_no_builtin_flag_F77" | $SED "$delay_single_quote_subst"`' 32482lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`' 32483lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 32484lt_prog_compiler_pic_F77='`$ECHO "$lt_prog_compiler_pic_F77" | $SED "$delay_single_quote_subst"`' 32485lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`' 32486lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 32487lt_prog_compiler_wl_F77='`$ECHO "$lt_prog_compiler_wl_F77" | $SED "$delay_single_quote_subst"`' 32488lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`' 32489lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 32490lt_prog_compiler_static_F77='`$ECHO "$lt_prog_compiler_static_F77" | $SED "$delay_single_quote_subst"`' 32491lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`' 32492lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 32493lt_cv_prog_compiler_c_o_F77='`$ECHO "$lt_cv_prog_compiler_c_o_F77" | $SED "$delay_single_quote_subst"`' 32494lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`' 32495archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 32496archive_cmds_need_lc_F77='`$ECHO "$archive_cmds_need_lc_F77" | $SED "$delay_single_quote_subst"`' 32497archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`' 32498enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 32499enable_shared_with_static_runtimes_F77='`$ECHO "$enable_shared_with_static_runtimes_F77" | $SED "$delay_single_quote_subst"`' 32500enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`' 32501export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 32502export_dynamic_flag_spec_F77='`$ECHO "$export_dynamic_flag_spec_F77" | $SED "$delay_single_quote_subst"`' 32503export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`' 32504whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 32505whole_archive_flag_spec_F77='`$ECHO "$whole_archive_flag_spec_F77" | $SED "$delay_single_quote_subst"`' 32506whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`' 32507compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 32508compiler_needs_object_F77='`$ECHO "$compiler_needs_object_F77" | $SED "$delay_single_quote_subst"`' 32509compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`' 32510old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 32511old_archive_from_new_cmds_F77='`$ECHO "$old_archive_from_new_cmds_F77" | $SED "$delay_single_quote_subst"`' 32512old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`' 32513old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 32514old_archive_from_expsyms_cmds_F77='`$ECHO "$old_archive_from_expsyms_cmds_F77" | $SED "$delay_single_quote_subst"`' 32515old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`' 32516archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 32517archive_cmds_F77='`$ECHO "$archive_cmds_F77" | $SED "$delay_single_quote_subst"`' 32518archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`' 32519archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 32520archive_expsym_cmds_F77='`$ECHO "$archive_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`' 32521archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`' 32522module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 32523module_cmds_F77='`$ECHO "$module_cmds_F77" | $SED "$delay_single_quote_subst"`' 32524module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`' 32525module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 32526module_expsym_cmds_F77='`$ECHO "$module_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`' 32527module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`' 32528with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 32529with_gnu_ld_F77='`$ECHO "$with_gnu_ld_F77" | $SED "$delay_single_quote_subst"`' 32530with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`' 32531allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 32532allow_undefined_flag_F77='`$ECHO "$allow_undefined_flag_F77" | $SED "$delay_single_quote_subst"`' 32533allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`' 32534no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 32535no_undefined_flag_F77='`$ECHO "$no_undefined_flag_F77" | $SED "$delay_single_quote_subst"`' 32536no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`' 32537hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 32538hardcode_libdir_flag_spec_F77='`$ECHO "$hardcode_libdir_flag_spec_F77" | $SED "$delay_single_quote_subst"`' 32539hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`' 32540hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 32541hardcode_libdir_separator_F77='`$ECHO "$hardcode_libdir_separator_F77" | $SED "$delay_single_quote_subst"`' 32542hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`' 32543hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 32544hardcode_direct_F77='`$ECHO "$hardcode_direct_F77" | $SED "$delay_single_quote_subst"`' 32545hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`' 32546hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 32547hardcode_direct_absolute_F77='`$ECHO "$hardcode_direct_absolute_F77" | $SED "$delay_single_quote_subst"`' 32548hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`' 32549hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 32550hardcode_minus_L_F77='`$ECHO "$hardcode_minus_L_F77" | $SED "$delay_single_quote_subst"`' 32551hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`' 32552hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 32553hardcode_shlibpath_var_F77='`$ECHO "$hardcode_shlibpath_var_F77" | $SED "$delay_single_quote_subst"`' 32554hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`' 32555hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 32556hardcode_automatic_F77='`$ECHO "$hardcode_automatic_F77" | $SED "$delay_single_quote_subst"`' 32557hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`' 32558inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 32559inherit_rpath_F77='`$ECHO "$inherit_rpath_F77" | $SED "$delay_single_quote_subst"`' 32560inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`' 32561link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 32562link_all_deplibs_F77='`$ECHO "$link_all_deplibs_F77" | $SED "$delay_single_quote_subst"`' 32563link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`' 32564always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 32565always_export_symbols_F77='`$ECHO "$always_export_symbols_F77" | $SED "$delay_single_quote_subst"`' 32566always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`' 32567export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 32568export_symbols_cmds_F77='`$ECHO "$export_symbols_cmds_F77" | $SED "$delay_single_quote_subst"`' 32569export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`' 32570exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 32571exclude_expsyms_F77='`$ECHO "$exclude_expsyms_F77" | $SED "$delay_single_quote_subst"`' 32572exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`' 32573include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 32574include_expsyms_F77='`$ECHO "$include_expsyms_F77" | $SED "$delay_single_quote_subst"`' 32575include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`' 32576prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 32577prelink_cmds_F77='`$ECHO "$prelink_cmds_F77" | $SED "$delay_single_quote_subst"`' 32578prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`' 32579postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 32580postlink_cmds_F77='`$ECHO "$postlink_cmds_F77" | $SED "$delay_single_quote_subst"`' 32581postlink_cmds_FC='`$ECHO "$postlink_cmds_FC" | $SED "$delay_single_quote_subst"`' 32582file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 32583file_list_spec_F77='`$ECHO "$file_list_spec_F77" | $SED "$delay_single_quote_subst"`' 32584file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`' 32585hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 32586hardcode_action_F77='`$ECHO "$hardcode_action_F77" | $SED "$delay_single_quote_subst"`' 32587hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`' 32588compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 32589compiler_lib_search_dirs_F77='`$ECHO "$compiler_lib_search_dirs_F77" | $SED "$delay_single_quote_subst"`' 32590compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`' 32591predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 32592predep_objects_F77='`$ECHO "$predep_objects_F77" | $SED "$delay_single_quote_subst"`' 32593predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`' 32594postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 32595postdep_objects_F77='`$ECHO "$postdep_objects_F77" | $SED "$delay_single_quote_subst"`' 32596postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`' 32597predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 32598predeps_F77='`$ECHO "$predeps_F77" | $SED "$delay_single_quote_subst"`' 32599predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`' 32600postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 32601postdeps_F77='`$ECHO "$postdeps_F77" | $SED "$delay_single_quote_subst"`' 32602postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`' 32603compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 32604compiler_lib_search_path_F77='`$ECHO "$compiler_lib_search_path_F77" | $SED "$delay_single_quote_subst"`' 32605compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`' 32606 32607LTCC='$LTCC' 32608LTCFLAGS='$LTCFLAGS' 32609compiler='$compiler_DEFAULT' 32610 32611# A function that is used when there is no print builtin or printf. 32612func_fallback_echo () 32613{ 32614 eval 'cat <<_LTECHO_EOF 32615\$1 32616_LTECHO_EOF' 32617} 32618 32619# Quote evaled strings. 32620for var in AS \ 32621DLLTOOL \ 32622OBJDUMP \ 32623SHELL \ 32624ECHO \ 32625PATH_SEPARATOR \ 32626SED \ 32627GREP \ 32628EGREP \ 32629FGREP \ 32630LD \ 32631NM \ 32632LN_S \ 32633lt_SP2NL \ 32634lt_NL2SP \ 32635reload_flag \ 32636deplibs_check_method \ 32637file_magic_cmd \ 32638file_magic_glob \ 32639want_nocaseglob \ 32640sharedlib_from_linklib_cmd \ 32641AR \ 32642AR_FLAGS \ 32643archiver_list_spec \ 32644STRIP \ 32645RANLIB \ 32646CC \ 32647CFLAGS \ 32648compiler \ 32649lt_cv_sys_global_symbol_pipe \ 32650lt_cv_sys_global_symbol_to_cdecl \ 32651lt_cv_sys_global_symbol_to_import \ 32652lt_cv_sys_global_symbol_to_c_name_address \ 32653lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 32654lt_cv_nm_interface \ 32655nm_file_list_spec \ 32656lt_cv_truncate_bin \ 32657lt_prog_compiler_no_builtin_flag \ 32658lt_prog_compiler_pic \ 32659lt_prog_compiler_wl \ 32660lt_prog_compiler_static \ 32661lt_cv_prog_compiler_c_o \ 32662need_locks \ 32663MANIFEST_TOOL \ 32664DSYMUTIL \ 32665NMEDIT \ 32666LIPO \ 32667OTOOL \ 32668OTOOL64 \ 32669shrext_cmds \ 32670export_dynamic_flag_spec \ 32671whole_archive_flag_spec \ 32672compiler_needs_object \ 32673with_gnu_ld \ 32674allow_undefined_flag \ 32675no_undefined_flag \ 32676hardcode_libdir_flag_spec \ 32677hardcode_libdir_separator \ 32678exclude_expsyms \ 32679include_expsyms \ 32680file_list_spec \ 32681variables_saved_for_relink \ 32682libname_spec \ 32683library_names_spec \ 32684soname_spec \ 32685install_override_mode \ 32686finish_eval \ 32687old_striplib \ 32688striplib \ 32689compiler_lib_search_dirs \ 32690predep_objects \ 32691postdep_objects \ 32692predeps \ 32693postdeps \ 32694compiler_lib_search_path \ 32695LD_CXX \ 32696LD_F77 \ 32697LD_FC \ 32698reload_flag_CXX \ 32699reload_flag_F77 \ 32700reload_flag_FC \ 32701compiler_CXX \ 32702compiler_F77 \ 32703compiler_FC \ 32704lt_prog_compiler_no_builtin_flag_CXX \ 32705lt_prog_compiler_no_builtin_flag_F77 \ 32706lt_prog_compiler_no_builtin_flag_FC \ 32707lt_prog_compiler_pic_CXX \ 32708lt_prog_compiler_pic_F77 \ 32709lt_prog_compiler_pic_FC \ 32710lt_prog_compiler_wl_CXX \ 32711lt_prog_compiler_wl_F77 \ 32712lt_prog_compiler_wl_FC \ 32713lt_prog_compiler_static_CXX \ 32714lt_prog_compiler_static_F77 \ 32715lt_prog_compiler_static_FC \ 32716lt_cv_prog_compiler_c_o_CXX \ 32717lt_cv_prog_compiler_c_o_F77 \ 32718lt_cv_prog_compiler_c_o_FC \ 32719export_dynamic_flag_spec_CXX \ 32720export_dynamic_flag_spec_F77 \ 32721export_dynamic_flag_spec_FC \ 32722whole_archive_flag_spec_CXX \ 32723whole_archive_flag_spec_F77 \ 32724whole_archive_flag_spec_FC \ 32725compiler_needs_object_CXX \ 32726compiler_needs_object_F77 \ 32727compiler_needs_object_FC \ 32728with_gnu_ld_CXX \ 32729with_gnu_ld_F77 \ 32730with_gnu_ld_FC \ 32731allow_undefined_flag_CXX \ 32732allow_undefined_flag_F77 \ 32733allow_undefined_flag_FC \ 32734no_undefined_flag_CXX \ 32735no_undefined_flag_F77 \ 32736no_undefined_flag_FC \ 32737hardcode_libdir_flag_spec_CXX \ 32738hardcode_libdir_flag_spec_F77 \ 32739hardcode_libdir_flag_spec_FC \ 32740hardcode_libdir_separator_CXX \ 32741hardcode_libdir_separator_F77 \ 32742hardcode_libdir_separator_FC \ 32743exclude_expsyms_CXX \ 32744exclude_expsyms_F77 \ 32745exclude_expsyms_FC \ 32746include_expsyms_CXX \ 32747include_expsyms_F77 \ 32748include_expsyms_FC \ 32749file_list_spec_CXX \ 32750file_list_spec_F77 \ 32751file_list_spec_FC \ 32752compiler_lib_search_dirs_CXX \ 32753compiler_lib_search_dirs_F77 \ 32754compiler_lib_search_dirs_FC \ 32755predep_objects_CXX \ 32756predep_objects_F77 \ 32757predep_objects_FC \ 32758postdep_objects_CXX \ 32759postdep_objects_F77 \ 32760postdep_objects_FC \ 32761predeps_CXX \ 32762predeps_F77 \ 32763predeps_FC \ 32764postdeps_CXX \ 32765postdeps_F77 \ 32766postdeps_FC \ 32767compiler_lib_search_path_CXX \ 32768compiler_lib_search_path_F77 \ 32769compiler_lib_search_path_FC; do 32770 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 32771 *[\\\\\\\`\\"\\\$]*) 32772 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 32773 ;; 32774 *) 32775 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 32776 ;; 32777 esac 32778done 32779 32780# Double-quote double-evaled strings. 32781for var in reload_cmds \ 32782old_postinstall_cmds \ 32783old_postuninstall_cmds \ 32784old_archive_cmds \ 32785extract_expsyms_cmds \ 32786old_archive_from_new_cmds \ 32787old_archive_from_expsyms_cmds \ 32788archive_cmds \ 32789archive_expsym_cmds \ 32790module_cmds \ 32791module_expsym_cmds \ 32792export_symbols_cmds \ 32793prelink_cmds \ 32794postlink_cmds \ 32795postinstall_cmds \ 32796postuninstall_cmds \ 32797finish_cmds \ 32798sys_lib_search_path_spec \ 32799configure_time_dlsearch_path \ 32800configure_time_lt_sys_library_path \ 32801reload_cmds_CXX \ 32802reload_cmds_F77 \ 32803reload_cmds_FC \ 32804old_archive_cmds_CXX \ 32805old_archive_cmds_F77 \ 32806old_archive_cmds_FC \ 32807old_archive_from_new_cmds_CXX \ 32808old_archive_from_new_cmds_F77 \ 32809old_archive_from_new_cmds_FC \ 32810old_archive_from_expsyms_cmds_CXX \ 32811old_archive_from_expsyms_cmds_F77 \ 32812old_archive_from_expsyms_cmds_FC \ 32813archive_cmds_CXX \ 32814archive_cmds_F77 \ 32815archive_cmds_FC \ 32816archive_expsym_cmds_CXX \ 32817archive_expsym_cmds_F77 \ 32818archive_expsym_cmds_FC \ 32819module_cmds_CXX \ 32820module_cmds_F77 \ 32821module_cmds_FC \ 32822module_expsym_cmds_CXX \ 32823module_expsym_cmds_F77 \ 32824module_expsym_cmds_FC \ 32825export_symbols_cmds_CXX \ 32826export_symbols_cmds_F77 \ 32827export_symbols_cmds_FC \ 32828prelink_cmds_CXX \ 32829prelink_cmds_F77 \ 32830prelink_cmds_FC \ 32831postlink_cmds_CXX \ 32832postlink_cmds_F77 \ 32833postlink_cmds_FC; do 32834 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 32835 *[\\\\\\\`\\"\\\$]*) 32836 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 32837 ;; 32838 *) 32839 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 32840 ;; 32841 esac 32842done 32843 32844ac_aux_dir='$ac_aux_dir' 32845 32846# See if we are running on zsh, and set the options that allow our 32847# commands through without removal of \ escapes INIT. 32848if test -n "\${ZSH_VERSION+set}"; then 32849 setopt NO_GLOB_SUBST 32850fi 32851 32852 32853 PACKAGE='$PACKAGE' 32854 VERSION='$VERSION' 32855 RM='$RM' 32856 ofile='$ofile' 32857 32858 32859 32860 32861 32862 32863 32864 32865 32866_LTEOF 32867 32868cat >>"$CONFIG_LT" <<\_LTEOF 32869{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5 32870$as_echo "$as_me: creating $ofile" >&6;} 32871 32872 32873 # See if we are running on zsh, and set the options that allow our 32874 # commands through without removal of \ escapes. 32875 if test -n "${ZSH_VERSION+set}"; then 32876 setopt NO_GLOB_SUBST 32877 fi 32878 32879 cfgfile=${ofile}T 32880 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 32881 $RM "$cfgfile" 32882 32883 cat <<_LT_EOF >> "$cfgfile" 32884#! $SHELL 32885# Generated automatically by $as_me ($PACKAGE) $VERSION 32886# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 32887# NOTE: Changes made to this file will be lost: look at ltmain.sh. 32888 32889# Provide generalized library-building support services. 32890# Written by Gordon Matzigkeit, 1996 32891 32892# Copyright (C) 2014 Free Software Foundation, Inc. 32893# This is free software; see the source for copying conditions. There is NO 32894# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 32895 32896# GNU Libtool is free software; you can redistribute it and/or modify 32897# it under the terms of the GNU General Public License as published by 32898# the Free Software Foundation; either version 2 of of the License, or 32899# (at your option) any later version. 32900# 32901# As a special exception to the GNU General Public License, if you 32902# distribute this file as part of a program or library that is built 32903# using GNU Libtool, you may include this file under the same 32904# distribution terms that you use for the rest of that program. 32905# 32906# GNU Libtool is distributed in the hope that it will be useful, but 32907# WITHOUT ANY WARRANTY; without even the implied warranty of 32908# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 32909# GNU General Public License for more details. 32910# 32911# You should have received a copy of the GNU General Public License 32912# along with this program. If not, see <http://www.gnu.org/licenses/>. 32913 32914 32915# The names of the tagged configurations supported by this script. 32916available_tags='CXX F77 FC ' 32917 32918# Configured defaults for sys_lib_dlsearch_path munging. 32919: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 32920 32921# ### BEGIN LIBTOOL CONFIG 32922 32923# Assembler program. 32924AS=$lt_AS 32925 32926# DLL creation program. 32927DLLTOOL=$lt_DLLTOOL 32928 32929# Object dumper program. 32930OBJDUMP=$lt_OBJDUMP 32931 32932# Which release of libtool.m4 was used? 32933macro_version=$macro_version 32934macro_revision=$macro_revision 32935 32936# Whether or not to build shared libraries. 32937build_libtool_libs=$enable_shared 32938 32939# Whether or not to build static libraries. 32940build_old_libs=$enable_static 32941 32942# What type of objects to build. 32943pic_mode=$pic_mode 32944 32945# Whether or not to optimize for fast installation. 32946fast_install=$enable_fast_install 32947 32948# Shared archive member basename,for filename based shared library versioning on AIX. 32949shared_archive_member_spec=$shared_archive_member_spec 32950 32951# Shell to use when invoking shell scripts. 32952SHELL=$lt_SHELL 32953 32954# An echo program that protects backslashes. 32955ECHO=$lt_ECHO 32956 32957# The PATH separator for the build system. 32958PATH_SEPARATOR=$lt_PATH_SEPARATOR 32959 32960# The host system. 32961host_alias=$host_alias 32962host=$host 32963host_os=$host_os 32964 32965# The build system. 32966build_alias=$build_alias 32967build=$build 32968build_os=$build_os 32969 32970# A sed program that does not truncate output. 32971SED=$lt_SED 32972 32973# Sed that helps us avoid accidentally triggering echo(1) options like -n. 32974Xsed="\$SED -e 1s/^X//" 32975 32976# A grep program that handles long lines. 32977GREP=$lt_GREP 32978 32979# An ERE matcher. 32980EGREP=$lt_EGREP 32981 32982# A literal string matcher. 32983FGREP=$lt_FGREP 32984 32985# A BSD- or MS-compatible name lister. 32986NM=$lt_NM 32987 32988# Whether we need soft or hard links. 32989LN_S=$lt_LN_S 32990 32991# What is the maximum length of a command? 32992max_cmd_len=$max_cmd_len 32993 32994# Object file suffix (normally "o"). 32995objext=$ac_objext 32996 32997# Executable file suffix (normally ""). 32998exeext=$exeext 32999 33000# whether the shell understands "unset". 33001lt_unset=$lt_unset 33002 33003# turn spaces into newlines. 33004SP2NL=$lt_lt_SP2NL 33005 33006# turn newlines into spaces. 33007NL2SP=$lt_lt_NL2SP 33008 33009# convert \$build file names to \$host format. 33010to_host_file_cmd=$lt_cv_to_host_file_cmd 33011 33012# convert \$build files to toolchain format. 33013to_tool_file_cmd=$lt_cv_to_tool_file_cmd 33014 33015# Method to check whether dependent libraries are shared objects. 33016deplibs_check_method=$lt_deplibs_check_method 33017 33018# Command to use when deplibs_check_method = "file_magic". 33019file_magic_cmd=$lt_file_magic_cmd 33020 33021# How to find potential files when deplibs_check_method = "file_magic". 33022file_magic_glob=$lt_file_magic_glob 33023 33024# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 33025want_nocaseglob=$lt_want_nocaseglob 33026 33027# Command to associate shared and link libraries. 33028sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 33029 33030# The archiver. 33031AR=$lt_AR 33032 33033# Flags to create an archive. 33034AR_FLAGS=$lt_AR_FLAGS 33035 33036# How to feed a file listing to the archiver. 33037archiver_list_spec=$lt_archiver_list_spec 33038 33039# A symbol stripping program. 33040STRIP=$lt_STRIP 33041 33042# Commands used to install an old-style archive. 33043RANLIB=$lt_RANLIB 33044old_postinstall_cmds=$lt_old_postinstall_cmds 33045old_postuninstall_cmds=$lt_old_postuninstall_cmds 33046 33047# Whether to use a lock for old archive extraction. 33048lock_old_archive_extraction=$lock_old_archive_extraction 33049 33050# A C compiler. 33051LTCC=$lt_CC 33052 33053# LTCC compiler flags. 33054LTCFLAGS=$lt_CFLAGS 33055 33056# Take the output of nm and produce a listing of raw symbols and C names. 33057global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 33058 33059# Transform the output of nm in a proper C declaration. 33060global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 33061 33062# Transform the output of nm into a list of symbols to manually relocate. 33063global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 33064 33065# Transform the output of nm in a C name address pair. 33066global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 33067 33068# Transform the output of nm in a C name address pair when lib prefix is needed. 33069global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 33070 33071# The name lister interface. 33072nm_interface=$lt_lt_cv_nm_interface 33073 33074# Specify filename containing input files for \$NM. 33075nm_file_list_spec=$lt_nm_file_list_spec 33076 33077# The root where to search for dependent libraries,and where our libraries should be installed. 33078lt_sysroot=$lt_sysroot 33079 33080# Command to truncate a binary pipe. 33081lt_truncate_bin=$lt_lt_cv_truncate_bin 33082 33083# The name of the directory that contains temporary libtool files. 33084objdir=$objdir 33085 33086# Used to examine libraries when file_magic_cmd begins with "file". 33087MAGIC_CMD=$MAGIC_CMD 33088 33089# Must we lock files when doing compilation? 33090need_locks=$lt_need_locks 33091 33092# Manifest tool. 33093MANIFEST_TOOL=$lt_MANIFEST_TOOL 33094 33095# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 33096DSYMUTIL=$lt_DSYMUTIL 33097 33098# Tool to change global to local symbols on Mac OS X. 33099NMEDIT=$lt_NMEDIT 33100 33101# Tool to manipulate fat objects and archives on Mac OS X. 33102LIPO=$lt_LIPO 33103 33104# ldd/readelf like tool for Mach-O binaries on Mac OS X. 33105OTOOL=$lt_OTOOL 33106 33107# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 33108OTOOL64=$lt_OTOOL64 33109 33110# Old archive suffix (normally "a"). 33111libext=$libext 33112 33113# Shared library suffix (normally ".so"). 33114shrext_cmds=$lt_shrext_cmds 33115 33116# The commands to extract the exported symbol list from a shared archive. 33117extract_expsyms_cmds=$lt_extract_expsyms_cmds 33118 33119# Variables whose values should be saved in libtool wrapper scripts and 33120# restored at link time. 33121variables_saved_for_relink=$lt_variables_saved_for_relink 33122 33123# Do we need the "lib" prefix for modules? 33124need_lib_prefix=$need_lib_prefix 33125 33126# Do we need a version for libraries? 33127need_version=$need_version 33128 33129# Library versioning type. 33130version_type=$version_type 33131 33132# Shared library runtime path variable. 33133runpath_var=$runpath_var 33134 33135# Shared library path variable. 33136shlibpath_var=$shlibpath_var 33137 33138# Is shlibpath searched before the hard-coded library search path? 33139shlibpath_overrides_runpath=$shlibpath_overrides_runpath 33140 33141# Format of library name prefix. 33142libname_spec=$lt_libname_spec 33143 33144# List of archive names. First name is the real one, the rest are links. 33145# The last name is the one that the linker finds with -lNAME 33146library_names_spec=$lt_library_names_spec 33147 33148# The coded name of the library, if different from the real name. 33149soname_spec=$lt_soname_spec 33150 33151# Permission mode override for installation of shared libraries. 33152install_override_mode=$lt_install_override_mode 33153 33154# Command to use after installation of a shared archive. 33155postinstall_cmds=$lt_postinstall_cmds 33156 33157# Command to use after uninstallation of a shared archive. 33158postuninstall_cmds=$lt_postuninstall_cmds 33159 33160# Commands used to finish a libtool library installation in a directory. 33161finish_cmds=$lt_finish_cmds 33162 33163# As "finish_cmds", except a single script fragment to be evaled but 33164# not shown. 33165finish_eval=$lt_finish_eval 33166 33167# Whether we should hardcode library paths into libraries. 33168hardcode_into_libs=$hardcode_into_libs 33169 33170# Compile-time system search path for libraries. 33171sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 33172 33173# Detected run-time system search path for libraries. 33174sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 33175 33176# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 33177configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 33178 33179# Whether dlopen is supported. 33180dlopen_support=$enable_dlopen 33181 33182# Whether dlopen of programs is supported. 33183dlopen_self=$enable_dlopen_self 33184 33185# Whether dlopen of statically linked programs is supported. 33186dlopen_self_static=$enable_dlopen_self_static 33187 33188# Commands to strip libraries. 33189old_striplib=$lt_old_striplib 33190striplib=$lt_striplib 33191 33192 33193# The linker used to build libraries. 33194LD=$lt_LD 33195 33196# How to create reloadable object files. 33197reload_flag=$lt_reload_flag 33198reload_cmds=$lt_reload_cmds 33199 33200# Commands used to build an old-style archive. 33201old_archive_cmds=$lt_old_archive_cmds 33202 33203# A language specific compiler. 33204CC=$lt_compiler 33205 33206# Is the compiler the GNU compiler? 33207with_gcc=$GCC 33208 33209# Compiler flag to turn off builtin functions. 33210no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 33211 33212# Additional compiler flags for building library objects. 33213pic_flag=$lt_lt_prog_compiler_pic 33214 33215# How to pass a linker flag through the compiler. 33216wl=$lt_lt_prog_compiler_wl 33217 33218# Compiler flag to prevent dynamic linking. 33219link_static_flag=$lt_lt_prog_compiler_static 33220 33221# Does compiler simultaneously support -c and -o options? 33222compiler_c_o=$lt_lt_cv_prog_compiler_c_o 33223 33224# Whether or not to add -lc for building shared libraries. 33225build_libtool_need_lc=$archive_cmds_need_lc 33226 33227# Whether or not to disallow shared libs when runtime libs are static. 33228allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 33229 33230# Compiler flag to allow reflexive dlopens. 33231export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 33232 33233# Compiler flag to generate shared objects directly from archives. 33234whole_archive_flag_spec=$lt_whole_archive_flag_spec 33235 33236# Whether the compiler copes with passing no objects directly. 33237compiler_needs_object=$lt_compiler_needs_object 33238 33239# Create an old-style archive from a shared archive. 33240old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 33241 33242# Create a temporary old-style archive to link instead of a shared archive. 33243old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 33244 33245# Commands used to build a shared archive. 33246archive_cmds=$lt_archive_cmds 33247archive_expsym_cmds=$lt_archive_expsym_cmds 33248 33249# Commands used to build a loadable module if different from building 33250# a shared archive. 33251module_cmds=$lt_module_cmds 33252module_expsym_cmds=$lt_module_expsym_cmds 33253 33254# Whether we are building with GNU ld or not. 33255with_gnu_ld=$lt_with_gnu_ld 33256 33257# Flag that allows shared libraries with undefined symbols to be built. 33258allow_undefined_flag=$lt_allow_undefined_flag 33259 33260# Flag that enforces no undefined symbols. 33261no_undefined_flag=$lt_no_undefined_flag 33262 33263# Flag to hardcode \$libdir into a binary during linking. 33264# This must work even if \$libdir does not exist 33265hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 33266 33267# Whether we need a single "-rpath" flag with a separated argument. 33268hardcode_libdir_separator=$lt_hardcode_libdir_separator 33269 33270# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 33271# DIR into the resulting binary. 33272hardcode_direct=$hardcode_direct 33273 33274# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 33275# DIR into the resulting binary and the resulting library dependency is 33276# "absolute",i.e impossible to change by setting \$shlibpath_var if the 33277# library is relocated. 33278hardcode_direct_absolute=$hardcode_direct_absolute 33279 33280# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 33281# into the resulting binary. 33282hardcode_minus_L=$hardcode_minus_L 33283 33284# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 33285# into the resulting binary. 33286hardcode_shlibpath_var=$hardcode_shlibpath_var 33287 33288# Set to "yes" if building a shared library automatically hardcodes DIR 33289# into the library and all subsequent libraries and executables linked 33290# against it. 33291hardcode_automatic=$hardcode_automatic 33292 33293# Set to yes if linker adds runtime paths of dependent libraries 33294# to runtime path list. 33295inherit_rpath=$inherit_rpath 33296 33297# Whether libtool must link a program against all its dependency libraries. 33298link_all_deplibs=$link_all_deplibs 33299 33300# Set to "yes" if exported symbols are required. 33301always_export_symbols=$always_export_symbols 33302 33303# The commands to list exported symbols. 33304export_symbols_cmds=$lt_export_symbols_cmds 33305 33306# Symbols that should not be listed in the preloaded symbols. 33307exclude_expsyms=$lt_exclude_expsyms 33308 33309# Symbols that must always be exported. 33310include_expsyms=$lt_include_expsyms 33311 33312# Commands necessary for linking programs (against libraries) with templates. 33313prelink_cmds=$lt_prelink_cmds 33314 33315# Commands necessary for finishing linking programs. 33316postlink_cmds=$lt_postlink_cmds 33317 33318# Specify filename containing input files. 33319file_list_spec=$lt_file_list_spec 33320 33321# How to hardcode a shared library path into an executable. 33322hardcode_action=$hardcode_action 33323 33324# The directories searched by this compiler when creating a shared library. 33325compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 33326 33327# Dependencies to place before and after the objects being linked to 33328# create a shared library. 33329predep_objects=$lt_predep_objects 33330postdep_objects=$lt_postdep_objects 33331predeps=$lt_predeps 33332postdeps=$lt_postdeps 33333 33334# The library search path used internally by the compiler when linking 33335# a shared library. 33336compiler_lib_search_path=$lt_compiler_lib_search_path 33337 33338# ### END LIBTOOL CONFIG 33339 33340_LT_EOF 33341 33342 cat <<'_LT_EOF' >> "$cfgfile" 33343 33344# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 33345 33346# func_munge_path_list VARIABLE PATH 33347# ----------------------------------- 33348# VARIABLE is name of variable containing _space_ separated list of 33349# directories to be munged by the contents of PATH, which is string 33350# having a format: 33351# "DIR[:DIR]:" 33352# string "DIR[ DIR]" will be prepended to VARIABLE 33353# ":DIR[:DIR]" 33354# string "DIR[ DIR]" will be appended to VARIABLE 33355# "DIRP[:DIRP]::[DIRA:]DIRA" 33356# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 33357# "DIRA[ DIRA]" will be appended to VARIABLE 33358# "DIR[:DIR]" 33359# VARIABLE will be replaced by "DIR[ DIR]" 33360func_munge_path_list () 33361{ 33362 case x$2 in 33363 x) 33364 ;; 33365 *:) 33366 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 33367 ;; 33368 x:*) 33369 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 33370 ;; 33371 *::*) 33372 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 33373 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 33374 ;; 33375 *) 33376 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 33377 ;; 33378 esac 33379} 33380 33381 33382# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 33383func_cc_basename () 33384{ 33385 for cc_temp in $*""; do 33386 case $cc_temp in 33387 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 33388 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 33389 \-*) ;; 33390 *) break;; 33391 esac 33392 done 33393 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 33394} 33395 33396 33397# ### END FUNCTIONS SHARED WITH CONFIGURE 33398 33399_LT_EOF 33400 33401 case $host_os in 33402 aix3*) 33403 cat <<\_LT_EOF >> "$cfgfile" 33404# AIX sometimes has problems with the GCC collect2 program. For some 33405# reason, if we set the COLLECT_NAMES environment variable, the problems 33406# vanish in a puff of smoke. 33407if test set != "${COLLECT_NAMES+set}"; then 33408 COLLECT_NAMES= 33409 export COLLECT_NAMES 33410fi 33411_LT_EOF 33412 ;; 33413 esac 33414 33415 33416ltmain=$ac_aux_dir/ltmain.sh 33417 33418 33419 # We use sed instead of cat because bash on DJGPP gets confused if 33420 # if finds mixed CR/LF and LF-only lines. Since sed operates in 33421 # text mode, it properly converts lines to CR/LF. This bash problem 33422 # is reportedly fixed, but why not run on old versions too? 33423 sed '$q' "$ltmain" >> "$cfgfile" \ 33424 || (rm -f "$cfgfile"; exit 1) 33425 33426 mv -f "$cfgfile" "$ofile" || 33427 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 33428 chmod +x "$ofile" 33429 33430 33431 cat <<_LT_EOF >> "$ofile" 33432 33433# ### BEGIN LIBTOOL TAG CONFIG: CXX 33434 33435# The linker used to build libraries. 33436LD=$lt_LD_CXX 33437 33438# How to create reloadable object files. 33439reload_flag=$lt_reload_flag_CXX 33440reload_cmds=$lt_reload_cmds_CXX 33441 33442# Commands used to build an old-style archive. 33443old_archive_cmds=$lt_old_archive_cmds_CXX 33444 33445# A language specific compiler. 33446CC=$lt_compiler_CXX 33447 33448# Is the compiler the GNU compiler? 33449with_gcc=$GCC_CXX 33450 33451# Compiler flag to turn off builtin functions. 33452no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 33453 33454# Additional compiler flags for building library objects. 33455pic_flag=$lt_lt_prog_compiler_pic_CXX 33456 33457# How to pass a linker flag through the compiler. 33458wl=$lt_lt_prog_compiler_wl_CXX 33459 33460# Compiler flag to prevent dynamic linking. 33461link_static_flag=$lt_lt_prog_compiler_static_CXX 33462 33463# Does compiler simultaneously support -c and -o options? 33464compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 33465 33466# Whether or not to add -lc for building shared libraries. 33467build_libtool_need_lc=$archive_cmds_need_lc_CXX 33468 33469# Whether or not to disallow shared libs when runtime libs are static. 33470allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 33471 33472# Compiler flag to allow reflexive dlopens. 33473export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 33474 33475# Compiler flag to generate shared objects directly from archives. 33476whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 33477 33478# Whether the compiler copes with passing no objects directly. 33479compiler_needs_object=$lt_compiler_needs_object_CXX 33480 33481# Create an old-style archive from a shared archive. 33482old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 33483 33484# Create a temporary old-style archive to link instead of a shared archive. 33485old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 33486 33487# Commands used to build a shared archive. 33488archive_cmds=$lt_archive_cmds_CXX 33489archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 33490 33491# Commands used to build a loadable module if different from building 33492# a shared archive. 33493module_cmds=$lt_module_cmds_CXX 33494module_expsym_cmds=$lt_module_expsym_cmds_CXX 33495 33496# Whether we are building with GNU ld or not. 33497with_gnu_ld=$lt_with_gnu_ld_CXX 33498 33499# Flag that allows shared libraries with undefined symbols to be built. 33500allow_undefined_flag=$lt_allow_undefined_flag_CXX 33501 33502# Flag that enforces no undefined symbols. 33503no_undefined_flag=$lt_no_undefined_flag_CXX 33504 33505# Flag to hardcode \$libdir into a binary during linking. 33506# This must work even if \$libdir does not exist 33507hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 33508 33509# Whether we need a single "-rpath" flag with a separated argument. 33510hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 33511 33512# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 33513# DIR into the resulting binary. 33514hardcode_direct=$hardcode_direct_CXX 33515 33516# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 33517# DIR into the resulting binary and the resulting library dependency is 33518# "absolute",i.e impossible to change by setting \$shlibpath_var if the 33519# library is relocated. 33520hardcode_direct_absolute=$hardcode_direct_absolute_CXX 33521 33522# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 33523# into the resulting binary. 33524hardcode_minus_L=$hardcode_minus_L_CXX 33525 33526# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 33527# into the resulting binary. 33528hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 33529 33530# Set to "yes" if building a shared library automatically hardcodes DIR 33531# into the library and all subsequent libraries and executables linked 33532# against it. 33533hardcode_automatic=$hardcode_automatic_CXX 33534 33535# Set to yes if linker adds runtime paths of dependent libraries 33536# to runtime path list. 33537inherit_rpath=$inherit_rpath_CXX 33538 33539# Whether libtool must link a program against all its dependency libraries. 33540link_all_deplibs=$link_all_deplibs_CXX 33541 33542# Set to "yes" if exported symbols are required. 33543always_export_symbols=$always_export_symbols_CXX 33544 33545# The commands to list exported symbols. 33546export_symbols_cmds=$lt_export_symbols_cmds_CXX 33547 33548# Symbols that should not be listed in the preloaded symbols. 33549exclude_expsyms=$lt_exclude_expsyms_CXX 33550 33551# Symbols that must always be exported. 33552include_expsyms=$lt_include_expsyms_CXX 33553 33554# Commands necessary for linking programs (against libraries) with templates. 33555prelink_cmds=$lt_prelink_cmds_CXX 33556 33557# Commands necessary for finishing linking programs. 33558postlink_cmds=$lt_postlink_cmds_CXX 33559 33560# Specify filename containing input files. 33561file_list_spec=$lt_file_list_spec_CXX 33562 33563# How to hardcode a shared library path into an executable. 33564hardcode_action=$hardcode_action_CXX 33565 33566# The directories searched by this compiler when creating a shared library. 33567compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 33568 33569# Dependencies to place before and after the objects being linked to 33570# create a shared library. 33571predep_objects=$lt_predep_objects_CXX 33572postdep_objects=$lt_postdep_objects_CXX 33573predeps=$lt_predeps_CXX 33574postdeps=$lt_postdeps_CXX 33575 33576# The library search path used internally by the compiler when linking 33577# a shared library. 33578compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 33579 33580# ### END LIBTOOL TAG CONFIG: CXX 33581_LT_EOF 33582 33583 33584 cat <<_LT_EOF >> "$ofile" 33585 33586# ### BEGIN LIBTOOL TAG CONFIG: F77 33587 33588# The linker used to build libraries. 33589LD=$lt_LD_F77 33590 33591# How to create reloadable object files. 33592reload_flag=$lt_reload_flag_F77 33593reload_cmds=$lt_reload_cmds_F77 33594 33595# Commands used to build an old-style archive. 33596old_archive_cmds=$lt_old_archive_cmds_F77 33597 33598# A language specific compiler. 33599CC=$lt_compiler_F77 33600 33601# Is the compiler the GNU compiler? 33602with_gcc=$GCC_F77 33603 33604# Compiler flag to turn off builtin functions. 33605no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 33606 33607# Additional compiler flags for building library objects. 33608pic_flag=$lt_lt_prog_compiler_pic_F77 33609 33610# How to pass a linker flag through the compiler. 33611wl=$lt_lt_prog_compiler_wl_F77 33612 33613# Compiler flag to prevent dynamic linking. 33614link_static_flag=$lt_lt_prog_compiler_static_F77 33615 33616# Does compiler simultaneously support -c and -o options? 33617compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 33618 33619# Whether or not to add -lc for building shared libraries. 33620build_libtool_need_lc=$archive_cmds_need_lc_F77 33621 33622# Whether or not to disallow shared libs when runtime libs are static. 33623allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 33624 33625# Compiler flag to allow reflexive dlopens. 33626export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 33627 33628# Compiler flag to generate shared objects directly from archives. 33629whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 33630 33631# Whether the compiler copes with passing no objects directly. 33632compiler_needs_object=$lt_compiler_needs_object_F77 33633 33634# Create an old-style archive from a shared archive. 33635old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 33636 33637# Create a temporary old-style archive to link instead of a shared archive. 33638old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 33639 33640# Commands used to build a shared archive. 33641archive_cmds=$lt_archive_cmds_F77 33642archive_expsym_cmds=$lt_archive_expsym_cmds_F77 33643 33644# Commands used to build a loadable module if different from building 33645# a shared archive. 33646module_cmds=$lt_module_cmds_F77 33647module_expsym_cmds=$lt_module_expsym_cmds_F77 33648 33649# Whether we are building with GNU ld or not. 33650with_gnu_ld=$lt_with_gnu_ld_F77 33651 33652# Flag that allows shared libraries with undefined symbols to be built. 33653allow_undefined_flag=$lt_allow_undefined_flag_F77 33654 33655# Flag that enforces no undefined symbols. 33656no_undefined_flag=$lt_no_undefined_flag_F77 33657 33658# Flag to hardcode \$libdir into a binary during linking. 33659# This must work even if \$libdir does not exist 33660hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 33661 33662# Whether we need a single "-rpath" flag with a separated argument. 33663hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 33664 33665# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 33666# DIR into the resulting binary. 33667hardcode_direct=$hardcode_direct_F77 33668 33669# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 33670# DIR into the resulting binary and the resulting library dependency is 33671# "absolute",i.e impossible to change by setting \$shlibpath_var if the 33672# library is relocated. 33673hardcode_direct_absolute=$hardcode_direct_absolute_F77 33674 33675# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 33676# into the resulting binary. 33677hardcode_minus_L=$hardcode_minus_L_F77 33678 33679# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 33680# into the resulting binary. 33681hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 33682 33683# Set to "yes" if building a shared library automatically hardcodes DIR 33684# into the library and all subsequent libraries and executables linked 33685# against it. 33686hardcode_automatic=$hardcode_automatic_F77 33687 33688# Set to yes if linker adds runtime paths of dependent libraries 33689# to runtime path list. 33690inherit_rpath=$inherit_rpath_F77 33691 33692# Whether libtool must link a program against all its dependency libraries. 33693link_all_deplibs=$link_all_deplibs_F77 33694 33695# Set to "yes" if exported symbols are required. 33696always_export_symbols=$always_export_symbols_F77 33697 33698# The commands to list exported symbols. 33699export_symbols_cmds=$lt_export_symbols_cmds_F77 33700 33701# Symbols that should not be listed in the preloaded symbols. 33702exclude_expsyms=$lt_exclude_expsyms_F77 33703 33704# Symbols that must always be exported. 33705include_expsyms=$lt_include_expsyms_F77 33706 33707# Commands necessary for linking programs (against libraries) with templates. 33708prelink_cmds=$lt_prelink_cmds_F77 33709 33710# Commands necessary for finishing linking programs. 33711postlink_cmds=$lt_postlink_cmds_F77 33712 33713# Specify filename containing input files. 33714file_list_spec=$lt_file_list_spec_F77 33715 33716# How to hardcode a shared library path into an executable. 33717hardcode_action=$hardcode_action_F77 33718 33719# The directories searched by this compiler when creating a shared library. 33720compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77 33721 33722# Dependencies to place before and after the objects being linked to 33723# create a shared library. 33724predep_objects=$lt_predep_objects_F77 33725postdep_objects=$lt_postdep_objects_F77 33726predeps=$lt_predeps_F77 33727postdeps=$lt_postdeps_F77 33728 33729# The library search path used internally by the compiler when linking 33730# a shared library. 33731compiler_lib_search_path=$lt_compiler_lib_search_path_F77 33732 33733# ### END LIBTOOL TAG CONFIG: F77 33734_LT_EOF 33735 33736 33737 cat <<_LT_EOF >> "$ofile" 33738 33739# ### BEGIN LIBTOOL TAG CONFIG: FC 33740 33741# The linker used to build libraries. 33742LD=$lt_LD_FC 33743 33744# How to create reloadable object files. 33745reload_flag=$lt_reload_flag_FC 33746reload_cmds=$lt_reload_cmds_FC 33747 33748# Commands used to build an old-style archive. 33749old_archive_cmds=$lt_old_archive_cmds_FC 33750 33751# A language specific compiler. 33752CC=$lt_compiler_FC 33753 33754# Is the compiler the GNU compiler? 33755with_gcc=$GCC_FC 33756 33757# Compiler flag to turn off builtin functions. 33758no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC 33759 33760# Additional compiler flags for building library objects. 33761pic_flag=$lt_lt_prog_compiler_pic_FC 33762 33763# How to pass a linker flag through the compiler. 33764wl=$lt_lt_prog_compiler_wl_FC 33765 33766# Compiler flag to prevent dynamic linking. 33767link_static_flag=$lt_lt_prog_compiler_static_FC 33768 33769# Does compiler simultaneously support -c and -o options? 33770compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC 33771 33772# Whether or not to add -lc for building shared libraries. 33773build_libtool_need_lc=$archive_cmds_need_lc_FC 33774 33775# Whether or not to disallow shared libs when runtime libs are static. 33776allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC 33777 33778# Compiler flag to allow reflexive dlopens. 33779export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC 33780 33781# Compiler flag to generate shared objects directly from archives. 33782whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC 33783 33784# Whether the compiler copes with passing no objects directly. 33785compiler_needs_object=$lt_compiler_needs_object_FC 33786 33787# Create an old-style archive from a shared archive. 33788old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC 33789 33790# Create a temporary old-style archive to link instead of a shared archive. 33791old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC 33792 33793# Commands used to build a shared archive. 33794archive_cmds=$lt_archive_cmds_FC 33795archive_expsym_cmds=$lt_archive_expsym_cmds_FC 33796 33797# Commands used to build a loadable module if different from building 33798# a shared archive. 33799module_cmds=$lt_module_cmds_FC 33800module_expsym_cmds=$lt_module_expsym_cmds_FC 33801 33802# Whether we are building with GNU ld or not. 33803with_gnu_ld=$lt_with_gnu_ld_FC 33804 33805# Flag that allows shared libraries with undefined symbols to be built. 33806allow_undefined_flag=$lt_allow_undefined_flag_FC 33807 33808# Flag that enforces no undefined symbols. 33809no_undefined_flag=$lt_no_undefined_flag_FC 33810 33811# Flag to hardcode \$libdir into a binary during linking. 33812# This must work even if \$libdir does not exist 33813hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC 33814 33815# Whether we need a single "-rpath" flag with a separated argument. 33816hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC 33817 33818# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 33819# DIR into the resulting binary. 33820hardcode_direct=$hardcode_direct_FC 33821 33822# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 33823# DIR into the resulting binary and the resulting library dependency is 33824# "absolute",i.e impossible to change by setting \$shlibpath_var if the 33825# library is relocated. 33826hardcode_direct_absolute=$hardcode_direct_absolute_FC 33827 33828# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 33829# into the resulting binary. 33830hardcode_minus_L=$hardcode_minus_L_FC 33831 33832# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 33833# into the resulting binary. 33834hardcode_shlibpath_var=$hardcode_shlibpath_var_FC 33835 33836# Set to "yes" if building a shared library automatically hardcodes DIR 33837# into the library and all subsequent libraries and executables linked 33838# against it. 33839hardcode_automatic=$hardcode_automatic_FC 33840 33841# Set to yes if linker adds runtime paths of dependent libraries 33842# to runtime path list. 33843inherit_rpath=$inherit_rpath_FC 33844 33845# Whether libtool must link a program against all its dependency libraries. 33846link_all_deplibs=$link_all_deplibs_FC 33847 33848# Set to "yes" if exported symbols are required. 33849always_export_symbols=$always_export_symbols_FC 33850 33851# The commands to list exported symbols. 33852export_symbols_cmds=$lt_export_symbols_cmds_FC 33853 33854# Symbols that should not be listed in the preloaded symbols. 33855exclude_expsyms=$lt_exclude_expsyms_FC 33856 33857# Symbols that must always be exported. 33858include_expsyms=$lt_include_expsyms_FC 33859 33860# Commands necessary for linking programs (against libraries) with templates. 33861prelink_cmds=$lt_prelink_cmds_FC 33862 33863# Commands necessary for finishing linking programs. 33864postlink_cmds=$lt_postlink_cmds_FC 33865 33866# Specify filename containing input files. 33867file_list_spec=$lt_file_list_spec_FC 33868 33869# How to hardcode a shared library path into an executable. 33870hardcode_action=$hardcode_action_FC 33871 33872# The directories searched by this compiler when creating a shared library. 33873compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC 33874 33875# Dependencies to place before and after the objects being linked to 33876# create a shared library. 33877predep_objects=$lt_predep_objects_FC 33878postdep_objects=$lt_postdep_objects_FC 33879predeps=$lt_predeps_FC 33880postdeps=$lt_postdeps_FC 33881 33882# The library search path used internally by the compiler when linking 33883# a shared library. 33884compiler_lib_search_path=$lt_compiler_lib_search_path_FC 33885 33886# ### END LIBTOOL TAG CONFIG: FC 33887_LT_EOF 33888 33889 33890as_fn_exit 0 33891_LTEOF 33892chmod +x "$CONFIG_LT" 33893 33894# configure is writing to config.log, but config.lt does its own redirection, 33895# appending to config.log, which fails on DOS, as config.log is still kept 33896# open by configure. Here we exec the FD to /dev/null, effectively closing 33897# config.log, so it can be properly (re)opened and appended to by config.lt. 33898lt_cl_success=: 33899test yes = "$silent" && 33900 lt_config_lt_args="$lt_config_lt_args --quiet" 33901exec 5>/dev/null 33902$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false 33903exec 5>>config.log 33904$lt_cl_success || as_fn_exit 1 33905 33906 33907## Process a configuration summary 33908 33909 33910 33911 CONFIG_DATE="`date`" 33912 CONFIG_USER="`whoami`@`hostname`" 33913 UNAME_INFO=`uname -a` 33914 33915 33916 33917 33918CC_NOFLAGS=`echo $CC | sed 's/ -.*//'` 33919 33920if `echo $CC_NOFLAGS | grep ^/ >/dev/null 2>&1`; then 33921 CC_VERSION="$CC" 33922else 33923 CC_VERSION="$CC"; 33924 for x in `echo $PATH | sed -e 's/:/ /g'`; do 33925 if test -x $x/$CC_NOFLAGS; then 33926 CC_VERSION="$x/$CC" 33927 break 33928 fi 33929 done 33930fi 33931if test -n "$cc_vendor" && test -n "$cc_version"; then 33932 CC_VERSION="$CC_VERSION ($cc_vendor-$cc_version)" 33933fi 33934 33935if (./libtool --features | grep '^enable shared libraries' > /dev/null); then 33936 enable_shared=yes 33937else 33938 enable_shared=no 33939 test x"$enable_python" = xyes && as_fn_error $? "Building the python interface require the abilility to build shared library. Either activate --enable-shared or deactivate python interface --disable-python." "$LINENO" 5 33940fi 33941 33942if (./libtool --features | grep '^enable static libraries' > /dev/null); then 33943 enable_static=yes 33944else 33945 enable_static=no 33946fi 33947 33948if test "X$enable_static" = "Xyes" && test "X$enable_shared" = "Xyes"; then 33949 STATIC_SHARED="static, shared" 33950elif test "X$enable_static" = "Xyes"; then 33951 STATIC_SHARED="static" 33952elif test "X$enable_shared" = "Xyes"; then 33953 STATIC_SHARED="shared" 33954else 33955 STATIC_SHARED="none" 33956fi 33957 33958 33959 33960 33961ac_config_files="$ac_config_files Makefile config/Makefile include/2.3.6/Makefile include/2.3.6/med.h include/2.3.6/med23v30.h include/2.3.6/med_utils.h include/Makefile include/H5public_extract.h include/med.h include/med_parameter.hf include/med_utils.h src/libmed3.settings src/Makefile src/ci/Makefile src/fi/Makefile src/cfi/Makefile src/misc/Makefile src/hdfi/Makefile src/2.3.6/Makefile src/2.3.6/ci/Makefile src/2.3.6/fi/Makefile src/2.3.6/cfi/Makefile src/2.3.6/misc/Makefile src/2.3.6/hdfi/Makefile tests/Makefile tests/python/Makefile tests/python/atlocal tests/c/Makefile tests/c/dumps.ref/Makefile tests/c/3.2.1/Makefile tests/c/3.2.1/dumps.ref/Makefile tests/c/3.1.0/Makefile tests/c/3.1.0/dumps.ref/Makefile tests/c/3.0.8/Makefile tests/c/3.0.8/dumps.ref/Makefile tests/c/2.3.1/Makefile tests/c/2.3.1/dumps.ref/Makefile tests/c/2.3.2/Makefile tests/c/2.3.2/dumps.ref/Makefile tests/c/2.3.6/Makefile tests/c/2.3.6/dumps.ref/Makefile tests/c/2.3.1v3.0/Makefile tests/c/2.3.1v3.0/dumps.ref/Makefile tests/c/2.3.2v3.0/Makefile tests/c/2.3.2v3.0/dumps.ref/Makefile tests/c/2.3v3.0/Makefile tests/c/2.3v3.0/dumps.ref/Makefile tests/f/Makefile tests/f/dumps.ref/Makefile tests/f/3.2.1/Makefile tests/f/3.2.1/dumps.ref/Makefile tests/f/3.1.0/Makefile tests/f/3.1.0/dumps.ref/Makefile tests/f/3.0.8/Makefile tests/f/3.0.8/dumps.ref/Makefile tests/f/2.3.1/Makefile tests/f/2.3.1/dumps.ref/Makefile tests/f/2.3.2/Makefile tests/f/2.3.2/dumps.ref/Makefile tests/f/2.3.6/Makefile tests/f/2.3.6/dumps.ref/Makefile tests/f/2.3v3.0/Makefile tests/f/2.3v3.0/dumps.ref/Makefile tests/f/2.3.1v3.0/Makefile tests/f/2.3.1v3.0/dumps.ref/Makefile tests/f/2.3.2v3.0/Makefile tests/f/2.3.2v3.0/dumps.ref/Makefile tests/parallel/Makefile tests/parallel/dumps.ref/Makefile tests/parallel/f/Makefile tests/usecases/Makefile tests/usecases/c/Makefile tests/usecases/c/dumps.ref/Makefile tests/usecases/f/Makefile tests/usecases/f/dumps.ref/Makefile tests/usecases/python/Makefile tests/usecases/python/atlocal tests/unittests/Makefile tests/unittests/c/Makefile tests/unittests/c/dumps.ref/Makefile tests/unittests/c/MEDinterp/Makefile tests/unittests/c/MEDinterp/dumps.ref/Makefile tests/unittests/c/MEDmesh/Makefile tests/unittests/c/MEDmesh/dumps.ref/Makefile tests/unittests/f/Makefile tests/unittests/f/dumps.ref/Makefile tools/Makefile tools/mdump/Makefile tools/mdump/xmdump2 tools/mdump/xmdump3 tools/medconforme/Makefile tools/medimport/Makefile tools/medimport/include/Makefile tools/medimport/2.3.1/Makefile tools/medimport/2.1.x/Makefile tools/medimport/2.3.6/Makefile tools/medimport/3.0.0/Makefile tools/medimport/3.1.0/Makefile tools/medimport/3.2.0/Makefile doc/Makefile doc/dox/Makefile doc/dox/aliases.als doc/dox/Doxyfile.cfg doc/gif/Makefile doc/html/Makefile doc/html/root.html doc/html.dox/Makefile doc/jpg/Makefile doc/png/Makefile doc/odt/Makefile python/Makefile src/CMakeLists.txt tools/medimport/CMakeLists.txt CMakeLists.txt" 33962 33963 33964 33965cat >confcache <<\_ACEOF 33966# This file is a shell script that caches the results of configure 33967# tests run on this system so they can be shared between configure 33968# scripts and configure runs, see configure's option --config-cache. 33969# It is not useful on other systems. If it contains results you don't 33970# want to keep, you may remove or edit it. 33971# 33972# config.status only pays attention to the cache file if you give it 33973# the --recheck option to rerun configure. 33974# 33975# `ac_cv_env_foo' variables (set or unset) will be overridden when 33976# loading this file, other *unset* `ac_cv_foo' will be assigned the 33977# following values. 33978 33979_ACEOF 33980 33981# The following way of writing the cache mishandles newlines in values, 33982# but we know of no workaround that is simple, portable, and efficient. 33983# So, we kill variables containing newlines. 33984# Ultrix sh set writes to stderr and can't be redirected directly, 33985# and sets the high bit in the cache file unless we assign to the vars. 33986( 33987 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 33988 eval ac_val=\$$ac_var 33989 case $ac_val in #( 33990 *${as_nl}*) 33991 case $ac_var in #( 33992 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 33993$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 33994 esac 33995 case $ac_var in #( 33996 _ | IFS | as_nl) ;; #( 33997 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 33998 *) { eval $ac_var=; unset $ac_var;} ;; 33999 esac ;; 34000 esac 34001 done 34002 34003 (set) 2>&1 | 34004 case $as_nl`(ac_space=' '; set) 2>&1` in #( 34005 *${as_nl}ac_space=\ *) 34006 # `set' does not quote correctly, so add quotes: double-quote 34007 # substitution turns \\\\ into \\, and sed turns \\ into \. 34008 sed -n \ 34009 "s/'/'\\\\''/g; 34010 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 34011 ;; #( 34012 *) 34013 # `set' quotes correctly as required by POSIX, so do not add quotes. 34014 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 34015 ;; 34016 esac | 34017 sort 34018) | 34019 sed ' 34020 /^ac_cv_env_/b end 34021 t clear 34022 :clear 34023 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 34024 t end 34025 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 34026 :end' >>confcache 34027if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 34028 if test -w "$cache_file"; then 34029 if test "x$cache_file" != "x/dev/null"; then 34030 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 34031$as_echo "$as_me: updating cache $cache_file" >&6;} 34032 if test ! -f "$cache_file" || test -h "$cache_file"; then 34033 cat confcache >"$cache_file" 34034 else 34035 case $cache_file in #( 34036 */* | ?:*) 34037 mv -f confcache "$cache_file"$$ && 34038 mv -f "$cache_file"$$ "$cache_file" ;; #( 34039 *) 34040 mv -f confcache "$cache_file" ;; 34041 esac 34042 fi 34043 fi 34044 else 34045 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 34046$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 34047 fi 34048fi 34049rm -f confcache 34050 34051test "x$prefix" = xNONE && prefix=$ac_default_prefix 34052# Let make expand exec_prefix. 34053test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 34054 34055DEFS=-DHAVE_CONFIG_H 34056 34057ac_libobjs= 34058ac_ltlibobjs= 34059U= 34060for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 34061 # 1. Remove the extension, and $U if already installed. 34062 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 34063 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 34064 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 34065 # will be set to the directory where LIBOBJS objects are built. 34066 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 34067 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 34068done 34069LIBOBJS=$ac_libobjs 34070 34071LTLIBOBJS=$ac_ltlibobjs 34072 34073 34074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 34075$as_echo_n "checking that generated files are newer than configure... " >&6; } 34076 if test -n "$am_sleep_pid"; then 34077 # Hide warnings about reused PIDs. 34078 wait $am_sleep_pid 2>/dev/null 34079 fi 34080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 34081$as_echo "done" >&6; } 34082 if test -n "$EXEEXT"; then 34083 am__EXEEXT_TRUE= 34084 am__EXEEXT_FALSE='#' 34085else 34086 am__EXEEXT_TRUE='#' 34087 am__EXEEXT_FALSE= 34088fi 34089 34090if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 34091 as_fn_error $? "conditional \"AMDEP\" was never defined. 34092Usually this means the macro was only invoked conditionally." "$LINENO" 5 34093fi 34094if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 34095 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 34096Usually this means the macro was only invoked conditionally." "$LINENO" 5 34097fi 34098if test -z "${ENABLE_FORTRAN_TRUE}" && test -z "${ENABLE_FORTRAN_FALSE}"; then 34099 as_fn_error $? "conditional \"ENABLE_FORTRAN\" was never defined. 34100Usually this means the macro was only invoked conditionally." "$LINENO" 5 34101fi 34102if test -z "${WITHFCPP_TRUE}" && test -z "${WITHFCPP_FALSE}"; then 34103 as_fn_error $? "conditional \"WITHFCPP\" was never defined. 34104Usually this means the macro was only invoked conditionally." "$LINENO" 5 34105fi 34106if test -z "${WITHFCPP_TRUE}" && test -z "${WITHFCPP_FALSE}"; then 34107 as_fn_error $? "conditional \"WITHFCPP\" was never defined. 34108Usually this means the macro was only invoked conditionally." "$LINENO" 5 34109fi 34110if test -z "${WITHFCPP_TRUE}" && test -z "${WITHFCPP_FALSE}"; then 34111 as_fn_error $? "conditional \"WITHFCPP\" was never defined. 34112Usually this means the macro was only invoked conditionally." "$LINENO" 5 34113fi 34114if test -z "${WITHFCPP_TRUE}" && test -z "${WITHFCPP_FALSE}"; then 34115 as_fn_error $? "conditional \"WITHFCPP\" was never defined. 34116Usually this means the macro was only invoked conditionally." "$LINENO" 5 34117fi 34118if test -z "${WITHPMED_TRUE}" && test -z "${WITHPMED_FALSE}"; then 34119 as_fn_error $? "conditional \"WITHPMED\" was never defined. 34120Usually this means the macro was only invoked conditionally." "$LINENO" 5 34121fi 34122if test -z "${WITHPMED_TRUE}" && test -z "${WITHPMED_FALSE}"; then 34123 as_fn_error $? "conditional \"WITHPMED\" was never defined. 34124Usually this means the macro was only invoked conditionally." "$LINENO" 5 34125fi 34126if test -z "${WITHF90_TRUE}" && test -z "${WITHF90_FALSE}"; then 34127 as_fn_error $? "conditional \"WITHF90\" was never defined. 34128Usually this means the macro was only invoked conditionally." "$LINENO" 5 34129fi 34130if test -z "${INSTALLTEST_TRUE}" && test -z "${INSTALLTEST_FALSE}"; then 34131 as_fn_error $? "conditional \"INSTALLTEST\" was never defined. 34132Usually this means the macro was only invoked conditionally." "$LINENO" 5 34133fi 34134if test -z "${INSTALLTEST_TRUE}" && test -z "${INSTALLTEST_FALSE}"; then 34135 as_fn_error $? "conditional \"INSTALLTEST\" was never defined. 34136Usually this means the macro was only invoked conditionally." "$LINENO" 5 34137fi 34138if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 34139 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 34140Usually this means the macro was only invoked conditionally." "$LINENO" 5 34141fi 34142if test -z "${ENABLE_API23_TRUE}" && test -z "${ENABLE_API23_FALSE}"; then 34143 as_fn_error $? "conditional \"ENABLE_API23\" was never defined. 34144Usually this means the macro was only invoked conditionally." "$LINENO" 5 34145fi 34146if test -z "${MED_SWIG_INT64_TRUE}" && test -z "${MED_SWIG_INT64_FALSE}"; then 34147 as_fn_error $? "conditional \"MED_SWIG_INT64\" was never defined. 34148Usually this means the macro was only invoked conditionally." "$LINENO" 5 34149fi 34150if test -z "${HAVE_INT64_TRUE}" && test -z "${HAVE_INT64_FALSE}"; then 34151 as_fn_error $? "conditional \"HAVE_INT64\" was never defined. 34152Usually this means the macro was only invoked conditionally." "$LINENO" 5 34153fi 34154if test -z "${WITH_SWIG_TRUE}" && test -z "${WITH_SWIG_FALSE}"; then 34155 as_fn_error $? "conditional \"WITH_SWIG\" was never defined. 34156Usually this means the macro was only invoked conditionally." "$LINENO" 5 34157fi 34158if test -z "${MED_SWIG_GT_30008_TRUE}" && test -z "${MED_SWIG_GT_30008_FALSE}"; then 34159 as_fn_error $? "conditional \"MED_SWIG_GT_30008\" was never defined. 34160Usually this means the macro was only invoked conditionally." "$LINENO" 5 34161fi 34162if test -z "${MED_HAVE_PYTHON3_TRUE}" && test -z "${MED_HAVE_PYTHON3_FALSE}"; then 34163 as_fn_error $? "conditional \"MED_HAVE_PYTHON3\" was never defined. 34164Usually this means the macro was only invoked conditionally." "$LINENO" 5 34165fi 34166if test -z "${WITH_PYTHON_TRUE}" && test -z "${WITH_PYTHON_FALSE}"; then 34167 as_fn_error $? "conditional \"WITH_PYTHON\" was never defined. 34168Usually this means the macro was only invoked conditionally." "$LINENO" 5 34169fi 34170 34171: "${CONFIG_STATUS=./config.status}" 34172ac_write_fail=0 34173ac_clean_files_save=$ac_clean_files 34174ac_clean_files="$ac_clean_files $CONFIG_STATUS" 34175{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 34176$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 34177as_write_fail=0 34178cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 34179#! $SHELL 34180# Generated by $as_me. 34181# Run this file to recreate the current configuration. 34182# Compiler output produced by configure, useful for debugging 34183# configure, is in config.log if it exists. 34184 34185debug=false 34186ac_cs_recheck=false 34187ac_cs_silent=false 34188 34189SHELL=\${CONFIG_SHELL-$SHELL} 34190export SHELL 34191_ASEOF 34192cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 34193## -------------------- ## 34194## M4sh Initialization. ## 34195## -------------------- ## 34196 34197# Be more Bourne compatible 34198DUALCASE=1; export DUALCASE # for MKS sh 34199if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 34200 emulate sh 34201 NULLCMD=: 34202 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 34203 # is contrary to our usage. Disable this feature. 34204 alias -g '${1+"$@"}'='"$@"' 34205 setopt NO_GLOB_SUBST 34206else 34207 case `(set -o) 2>/dev/null` in #( 34208 *posix*) : 34209 set -o posix ;; #( 34210 *) : 34211 ;; 34212esac 34213fi 34214 34215 34216as_nl=' 34217' 34218export as_nl 34219# Printing a long string crashes Solaris 7 /usr/bin/printf. 34220as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 34221as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 34222as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 34223# Prefer a ksh shell builtin over an external printf program on Solaris, 34224# but without wasting forks for bash or zsh. 34225if test -z "$BASH_VERSION$ZSH_VERSION" \ 34226 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 34227 as_echo='print -r --' 34228 as_echo_n='print -rn --' 34229elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 34230 as_echo='printf %s\n' 34231 as_echo_n='printf %s' 34232else 34233 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 34234 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 34235 as_echo_n='/usr/ucb/echo -n' 34236 else 34237 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 34238 as_echo_n_body='eval 34239 arg=$1; 34240 case $arg in #( 34241 *"$as_nl"*) 34242 expr "X$arg" : "X\\(.*\\)$as_nl"; 34243 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 34244 esac; 34245 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 34246 ' 34247 export as_echo_n_body 34248 as_echo_n='sh -c $as_echo_n_body as_echo' 34249 fi 34250 export as_echo_body 34251 as_echo='sh -c $as_echo_body as_echo' 34252fi 34253 34254# The user is always right. 34255if test "${PATH_SEPARATOR+set}" != set; then 34256 PATH_SEPARATOR=: 34257 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 34258 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 34259 PATH_SEPARATOR=';' 34260 } 34261fi 34262 34263 34264# IFS 34265# We need space, tab and new line, in precisely that order. Quoting is 34266# there to prevent editors from complaining about space-tab. 34267# (If _AS_PATH_WALK were called with IFS unset, it would disable word 34268# splitting by setting IFS to empty value.) 34269IFS=" "" $as_nl" 34270 34271# Find who we are. Look in the path if we contain no directory separator. 34272as_myself= 34273case $0 in #(( 34274 *[\\/]* ) as_myself=$0 ;; 34275 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34276for as_dir in $PATH 34277do 34278 IFS=$as_save_IFS 34279 test -z "$as_dir" && as_dir=. 34280 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 34281 done 34282IFS=$as_save_IFS 34283 34284 ;; 34285esac 34286# We did not find ourselves, most probably we were run as `sh COMMAND' 34287# in which case we are not to be found in the path. 34288if test "x$as_myself" = x; then 34289 as_myself=$0 34290fi 34291if test ! -f "$as_myself"; then 34292 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 34293 exit 1 34294fi 34295 34296# Unset variables that we do not need and which cause bugs (e.g. in 34297# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 34298# suppresses any "Segmentation fault" message there. '((' could 34299# trigger a bug in pdksh 5.2.14. 34300for as_var in BASH_ENV ENV MAIL MAILPATH 34301do eval test x\${$as_var+set} = xset \ 34302 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 34303done 34304PS1='$ ' 34305PS2='> ' 34306PS4='+ ' 34307 34308# NLS nuisances. 34309LC_ALL=C 34310export LC_ALL 34311LANGUAGE=C 34312export LANGUAGE 34313 34314# CDPATH. 34315(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 34316 34317 34318# as_fn_error STATUS ERROR [LINENO LOG_FD] 34319# ---------------------------------------- 34320# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 34321# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 34322# script with STATUS, using 1 if that was 0. 34323as_fn_error () 34324{ 34325 as_status=$1; test $as_status -eq 0 && as_status=1 34326 if test "$4"; then 34327 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 34328 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 34329 fi 34330 $as_echo "$as_me: error: $2" >&2 34331 as_fn_exit $as_status 34332} # as_fn_error 34333 34334 34335# as_fn_set_status STATUS 34336# ----------------------- 34337# Set $? to STATUS, without forking. 34338as_fn_set_status () 34339{ 34340 return $1 34341} # as_fn_set_status 34342 34343# as_fn_exit STATUS 34344# ----------------- 34345# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 34346as_fn_exit () 34347{ 34348 set +e 34349 as_fn_set_status $1 34350 exit $1 34351} # as_fn_exit 34352 34353# as_fn_unset VAR 34354# --------------- 34355# Portably unset VAR. 34356as_fn_unset () 34357{ 34358 { eval $1=; unset $1;} 34359} 34360as_unset=as_fn_unset 34361# as_fn_append VAR VALUE 34362# ---------------------- 34363# Append the text in VALUE to the end of the definition contained in VAR. Take 34364# advantage of any shell optimizations that allow amortized linear growth over 34365# repeated appends, instead of the typical quadratic growth present in naive 34366# implementations. 34367if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 34368 eval 'as_fn_append () 34369 { 34370 eval $1+=\$2 34371 }' 34372else 34373 as_fn_append () 34374 { 34375 eval $1=\$$1\$2 34376 } 34377fi # as_fn_append 34378 34379# as_fn_arith ARG... 34380# ------------------ 34381# Perform arithmetic evaluation on the ARGs, and store the result in the 34382# global $as_val. Take advantage of shells that can avoid forks. The arguments 34383# must be portable across $(()) and expr. 34384if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 34385 eval 'as_fn_arith () 34386 { 34387 as_val=$(( $* )) 34388 }' 34389else 34390 as_fn_arith () 34391 { 34392 as_val=`expr "$@" || test $? -eq 1` 34393 } 34394fi # as_fn_arith 34395 34396 34397if expr a : '\(a\)' >/dev/null 2>&1 && 34398 test "X`expr 00001 : '.*\(...\)'`" = X001; then 34399 as_expr=expr 34400else 34401 as_expr=false 34402fi 34403 34404if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 34405 as_basename=basename 34406else 34407 as_basename=false 34408fi 34409 34410if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 34411 as_dirname=dirname 34412else 34413 as_dirname=false 34414fi 34415 34416as_me=`$as_basename -- "$0" || 34417$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 34418 X"$0" : 'X\(//\)$' \| \ 34419 X"$0" : 'X\(/\)' \| . 2>/dev/null || 34420$as_echo X/"$0" | 34421 sed '/^.*\/\([^/][^/]*\)\/*$/{ 34422 s//\1/ 34423 q 34424 } 34425 /^X\/\(\/\/\)$/{ 34426 s//\1/ 34427 q 34428 } 34429 /^X\/\(\/\).*/{ 34430 s//\1/ 34431 q 34432 } 34433 s/.*/./; q'` 34434 34435# Avoid depending upon Character Ranges. 34436as_cr_letters='abcdefghijklmnopqrstuvwxyz' 34437as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 34438as_cr_Letters=$as_cr_letters$as_cr_LETTERS 34439as_cr_digits='0123456789' 34440as_cr_alnum=$as_cr_Letters$as_cr_digits 34441 34442ECHO_C= ECHO_N= ECHO_T= 34443case `echo -n x` in #((((( 34444-n*) 34445 case `echo 'xy\c'` in 34446 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 34447 xy) ECHO_C='\c';; 34448 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 34449 ECHO_T=' ';; 34450 esac;; 34451*) 34452 ECHO_N='-n';; 34453esac 34454 34455rm -f conf$$ conf$$.exe conf$$.file 34456if test -d conf$$.dir; then 34457 rm -f conf$$.dir/conf$$.file 34458else 34459 rm -f conf$$.dir 34460 mkdir conf$$.dir 2>/dev/null 34461fi 34462if (echo >conf$$.file) 2>/dev/null; then 34463 if ln -s conf$$.file conf$$ 2>/dev/null; then 34464 as_ln_s='ln -s' 34465 # ... but there are two gotchas: 34466 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 34467 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 34468 # In both cases, we have to default to `cp -pR'. 34469 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 34470 as_ln_s='cp -pR' 34471 elif ln conf$$.file conf$$ 2>/dev/null; then 34472 as_ln_s=ln 34473 else 34474 as_ln_s='cp -pR' 34475 fi 34476else 34477 as_ln_s='cp -pR' 34478fi 34479rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 34480rmdir conf$$.dir 2>/dev/null 34481 34482 34483# as_fn_mkdir_p 34484# ------------- 34485# Create "$as_dir" as a directory, including parents if necessary. 34486as_fn_mkdir_p () 34487{ 34488 34489 case $as_dir in #( 34490 -*) as_dir=./$as_dir;; 34491 esac 34492 test -d "$as_dir" || eval $as_mkdir_p || { 34493 as_dirs= 34494 while :; do 34495 case $as_dir in #( 34496 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 34497 *) as_qdir=$as_dir;; 34498 esac 34499 as_dirs="'$as_qdir' $as_dirs" 34500 as_dir=`$as_dirname -- "$as_dir" || 34501$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 34502 X"$as_dir" : 'X\(//\)[^/]' \| \ 34503 X"$as_dir" : 'X\(//\)$' \| \ 34504 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 34505$as_echo X"$as_dir" | 34506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 34507 s//\1/ 34508 q 34509 } 34510 /^X\(\/\/\)[^/].*/{ 34511 s//\1/ 34512 q 34513 } 34514 /^X\(\/\/\)$/{ 34515 s//\1/ 34516 q 34517 } 34518 /^X\(\/\).*/{ 34519 s//\1/ 34520 q 34521 } 34522 s/.*/./; q'` 34523 test -d "$as_dir" && break 34524 done 34525 test -z "$as_dirs" || eval "mkdir $as_dirs" 34526 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 34527 34528 34529} # as_fn_mkdir_p 34530if mkdir -p . 2>/dev/null; then 34531 as_mkdir_p='mkdir -p "$as_dir"' 34532else 34533 test -d ./-p && rmdir ./-p 34534 as_mkdir_p=false 34535fi 34536 34537 34538# as_fn_executable_p FILE 34539# ----------------------- 34540# Test if FILE is an executable regular file. 34541as_fn_executable_p () 34542{ 34543 test -f "$1" && test -x "$1" 34544} # as_fn_executable_p 34545as_test_x='test -x' 34546as_executable_p=as_fn_executable_p 34547 34548# Sed expression to map a string onto a valid CPP name. 34549as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 34550 34551# Sed expression to map a string onto a valid variable name. 34552as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 34553 34554 34555exec 6>&1 34556## ----------------------------------- ## 34557## Main body of $CONFIG_STATUS script. ## 34558## ----------------------------------- ## 34559_ASEOF 34560test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 34561 34562cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34563# Save the log message, to keep $0 and so on meaningful, and to 34564# report actual input values of CONFIG_FILES etc. instead of their 34565# values after options handling. 34566ac_log=" 34567This file was extended by MED Fichier $as_me 4.0.0, which was 34568generated by GNU Autoconf 2.69. Invocation command line was 34569 34570 CONFIG_FILES = $CONFIG_FILES 34571 CONFIG_HEADERS = $CONFIG_HEADERS 34572 CONFIG_LINKS = $CONFIG_LINKS 34573 CONFIG_COMMANDS = $CONFIG_COMMANDS 34574 $ $0 $@ 34575 34576on `(hostname || uname -n) 2>/dev/null | sed 1q` 34577" 34578 34579_ACEOF 34580 34581case $ac_config_files in *" 34582"*) set x $ac_config_files; shift; ac_config_files=$*;; 34583esac 34584 34585case $ac_config_headers in *" 34586"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 34587esac 34588 34589 34590cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34591# Files that config.status was made for. 34592config_files="$ac_config_files" 34593config_headers="$ac_config_headers" 34594config_commands="$ac_config_commands" 34595 34596_ACEOF 34597 34598cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34599ac_cs_usage="\ 34600\`$as_me' instantiates files and other configuration actions 34601from templates according to the current configuration. Unless the files 34602and actions are specified as TAGs, all are instantiated by default. 34603 34604Usage: $0 [OPTION]... [TAG]... 34605 34606 -h, --help print this help, then exit 34607 -V, --version print version number and configuration settings, then exit 34608 --config print configuration, then exit 34609 -q, --quiet, --silent 34610 do not print progress messages 34611 -d, --debug don't remove temporary files 34612 --recheck update $as_me by reconfiguring in the same conditions 34613 --file=FILE[:TEMPLATE] 34614 instantiate the configuration file FILE 34615 --header=FILE[:TEMPLATE] 34616 instantiate the configuration header FILE 34617 34618Configuration files: 34619$config_files 34620 34621Configuration headers: 34622$config_headers 34623 34624Configuration commands: 34625$config_commands 34626 34627Report bugs to <eric.fayolle@edf.fr>." 34628 34629_ACEOF 34630cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34631ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 34632ac_cs_version="\\ 34633MED Fichier config.status 4.0.0 34634configured by $0, generated by GNU Autoconf 2.69, 34635 with options \\"\$ac_cs_config\\" 34636 34637Copyright (C) 2012 Free Software Foundation, Inc. 34638This config.status script is free software; the Free Software Foundation 34639gives unlimited permission to copy, distribute and modify it." 34640 34641ac_pwd='$ac_pwd' 34642srcdir='$srcdir' 34643INSTALL='$INSTALL' 34644MKDIR_P='$MKDIR_P' 34645AWK='$AWK' 34646test -n "\$AWK" || AWK=awk 34647_ACEOF 34648 34649cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34650# The default lists apply if the user does not specify any file. 34651ac_need_defaults=: 34652while test $# != 0 34653do 34654 case $1 in 34655 --*=?*) 34656 ac_option=`expr "X$1" : 'X\([^=]*\)='` 34657 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 34658 ac_shift=: 34659 ;; 34660 --*=) 34661 ac_option=`expr "X$1" : 'X\([^=]*\)='` 34662 ac_optarg= 34663 ac_shift=: 34664 ;; 34665 *) 34666 ac_option=$1 34667 ac_optarg=$2 34668 ac_shift=shift 34669 ;; 34670 esac 34671 34672 case $ac_option in 34673 # Handling of the options. 34674 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 34675 ac_cs_recheck=: ;; 34676 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 34677 $as_echo "$ac_cs_version"; exit ;; 34678 --config | --confi | --conf | --con | --co | --c ) 34679 $as_echo "$ac_cs_config"; exit ;; 34680 --debug | --debu | --deb | --de | --d | -d ) 34681 debug=: ;; 34682 --file | --fil | --fi | --f ) 34683 $ac_shift 34684 case $ac_optarg in 34685 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 34686 '') as_fn_error $? "missing file argument" ;; 34687 esac 34688 as_fn_append CONFIG_FILES " '$ac_optarg'" 34689 ac_need_defaults=false;; 34690 --header | --heade | --head | --hea ) 34691 $ac_shift 34692 case $ac_optarg in 34693 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 34694 esac 34695 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 34696 ac_need_defaults=false;; 34697 --he | --h) 34698 # Conflict between --help and --header 34699 as_fn_error $? "ambiguous option: \`$1' 34700Try \`$0 --help' for more information.";; 34701 --help | --hel | -h ) 34702 $as_echo "$ac_cs_usage"; exit ;; 34703 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 34704 | -silent | --silent | --silen | --sile | --sil | --si | --s) 34705 ac_cs_silent=: ;; 34706 34707 # This is an error. 34708 -*) as_fn_error $? "unrecognized option: \`$1' 34709Try \`$0 --help' for more information." ;; 34710 34711 *) as_fn_append ac_config_targets " $1" 34712 ac_need_defaults=false ;; 34713 34714 esac 34715 shift 34716done 34717 34718ac_configure_extra_args= 34719 34720if $ac_cs_silent; then 34721 exec 6>/dev/null 34722 ac_configure_extra_args="$ac_configure_extra_args --silent" 34723fi 34724 34725_ACEOF 34726cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34727if \$ac_cs_recheck; then 34728 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 34729 shift 34730 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 34731 CONFIG_SHELL='$SHELL' 34732 export CONFIG_SHELL 34733 exec "\$@" 34734fi 34735 34736_ACEOF 34737cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34738exec 5>>config.log 34739{ 34740 echo 34741 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 34742## Running $as_me. ## 34743_ASBOX 34744 $as_echo "$ac_log" 34745} >&5 34746 34747_ACEOF 34748cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34749# 34750# INIT-COMMANDS 34751# 34752AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 34753 34754 34755# The HP-UX ksh and POSIX shell print the target directory to stdout 34756# if CDPATH is set. 34757(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 34758 34759sed_quote_subst='$sed_quote_subst' 34760double_quote_subst='$double_quote_subst' 34761delay_variable_subst='$delay_variable_subst' 34762AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 34763DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 34764OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 34765macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 34766macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 34767enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 34768enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 34769pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 34770enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 34771shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 34772SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 34773ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 34774PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 34775host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 34776host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 34777host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 34778build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 34779build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 34780build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 34781SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 34782Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 34783GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 34784EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 34785FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 34786LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 34787NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 34788LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 34789max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 34790ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 34791exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 34792lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 34793lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 34794lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 34795lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 34796lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 34797reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 34798reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 34799deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 34800file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 34801file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 34802want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 34803sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 34804AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 34805AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 34806archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 34807STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 34808RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 34809old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 34810old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 34811old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 34812lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 34813CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 34814CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 34815compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 34816GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 34817lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 34818lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 34819lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 34820lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 34821lt_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"`' 34822lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 34823nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 34824lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 34825lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 34826objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 34827MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 34828lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 34829lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 34830lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 34831lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 34832lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 34833need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 34834MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 34835DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 34836NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 34837LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 34838OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 34839OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 34840libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 34841shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 34842extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 34843archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 34844enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 34845export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 34846whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 34847compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 34848old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 34849old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 34850archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 34851archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 34852module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 34853module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 34854with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 34855allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 34856no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 34857hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 34858hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 34859hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 34860hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 34861hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 34862hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 34863hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 34864inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 34865link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 34866always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 34867export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 34868exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 34869include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 34870prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 34871postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 34872file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 34873variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 34874need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 34875need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 34876version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 34877runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 34878shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 34879shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 34880libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 34881library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 34882soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 34883install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 34884postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 34885postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 34886finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 34887finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 34888hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 34889sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 34890configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 34891configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 34892hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 34893enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 34894enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 34895enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 34896old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 34897striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 34898compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 34899predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 34900postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 34901predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 34902postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 34903compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 34904LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 34905LD_F77='`$ECHO "$LD_F77" | $SED "$delay_single_quote_subst"`' 34906LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`' 34907reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 34908reload_flag_F77='`$ECHO "$reload_flag_F77" | $SED "$delay_single_quote_subst"`' 34909reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`' 34910reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 34911reload_cmds_F77='`$ECHO "$reload_cmds_F77" | $SED "$delay_single_quote_subst"`' 34912reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`' 34913old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 34914old_archive_cmds_F77='`$ECHO "$old_archive_cmds_F77" | $SED "$delay_single_quote_subst"`' 34915old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`' 34916compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 34917compiler_F77='`$ECHO "$compiler_F77" | $SED "$delay_single_quote_subst"`' 34918compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`' 34919GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 34920GCC_F77='`$ECHO "$GCC_F77" | $SED "$delay_single_quote_subst"`' 34921GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`' 34922lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 34923lt_prog_compiler_no_builtin_flag_F77='`$ECHO "$lt_prog_compiler_no_builtin_flag_F77" | $SED "$delay_single_quote_subst"`' 34924lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`' 34925lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 34926lt_prog_compiler_pic_F77='`$ECHO "$lt_prog_compiler_pic_F77" | $SED "$delay_single_quote_subst"`' 34927lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`' 34928lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 34929lt_prog_compiler_wl_F77='`$ECHO "$lt_prog_compiler_wl_F77" | $SED "$delay_single_quote_subst"`' 34930lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`' 34931lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 34932lt_prog_compiler_static_F77='`$ECHO "$lt_prog_compiler_static_F77" | $SED "$delay_single_quote_subst"`' 34933lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`' 34934lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 34935lt_cv_prog_compiler_c_o_F77='`$ECHO "$lt_cv_prog_compiler_c_o_F77" | $SED "$delay_single_quote_subst"`' 34936lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`' 34937archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 34938archive_cmds_need_lc_F77='`$ECHO "$archive_cmds_need_lc_F77" | $SED "$delay_single_quote_subst"`' 34939archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`' 34940enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 34941enable_shared_with_static_runtimes_F77='`$ECHO "$enable_shared_with_static_runtimes_F77" | $SED "$delay_single_quote_subst"`' 34942enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`' 34943export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 34944export_dynamic_flag_spec_F77='`$ECHO "$export_dynamic_flag_spec_F77" | $SED "$delay_single_quote_subst"`' 34945export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`' 34946whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 34947whole_archive_flag_spec_F77='`$ECHO "$whole_archive_flag_spec_F77" | $SED "$delay_single_quote_subst"`' 34948whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`' 34949compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 34950compiler_needs_object_F77='`$ECHO "$compiler_needs_object_F77" | $SED "$delay_single_quote_subst"`' 34951compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`' 34952old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 34953old_archive_from_new_cmds_F77='`$ECHO "$old_archive_from_new_cmds_F77" | $SED "$delay_single_quote_subst"`' 34954old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`' 34955old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 34956old_archive_from_expsyms_cmds_F77='`$ECHO "$old_archive_from_expsyms_cmds_F77" | $SED "$delay_single_quote_subst"`' 34957old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`' 34958archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 34959archive_cmds_F77='`$ECHO "$archive_cmds_F77" | $SED "$delay_single_quote_subst"`' 34960archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`' 34961archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 34962archive_expsym_cmds_F77='`$ECHO "$archive_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`' 34963archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`' 34964module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 34965module_cmds_F77='`$ECHO "$module_cmds_F77" | $SED "$delay_single_quote_subst"`' 34966module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`' 34967module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 34968module_expsym_cmds_F77='`$ECHO "$module_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`' 34969module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`' 34970with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 34971with_gnu_ld_F77='`$ECHO "$with_gnu_ld_F77" | $SED "$delay_single_quote_subst"`' 34972with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`' 34973allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 34974allow_undefined_flag_F77='`$ECHO "$allow_undefined_flag_F77" | $SED "$delay_single_quote_subst"`' 34975allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`' 34976no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 34977no_undefined_flag_F77='`$ECHO "$no_undefined_flag_F77" | $SED "$delay_single_quote_subst"`' 34978no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`' 34979hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 34980hardcode_libdir_flag_spec_F77='`$ECHO "$hardcode_libdir_flag_spec_F77" | $SED "$delay_single_quote_subst"`' 34981hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`' 34982hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 34983hardcode_libdir_separator_F77='`$ECHO "$hardcode_libdir_separator_F77" | $SED "$delay_single_quote_subst"`' 34984hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`' 34985hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 34986hardcode_direct_F77='`$ECHO "$hardcode_direct_F77" | $SED "$delay_single_quote_subst"`' 34987hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`' 34988hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 34989hardcode_direct_absolute_F77='`$ECHO "$hardcode_direct_absolute_F77" | $SED "$delay_single_quote_subst"`' 34990hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`' 34991hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 34992hardcode_minus_L_F77='`$ECHO "$hardcode_minus_L_F77" | $SED "$delay_single_quote_subst"`' 34993hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`' 34994hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 34995hardcode_shlibpath_var_F77='`$ECHO "$hardcode_shlibpath_var_F77" | $SED "$delay_single_quote_subst"`' 34996hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`' 34997hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 34998hardcode_automatic_F77='`$ECHO "$hardcode_automatic_F77" | $SED "$delay_single_quote_subst"`' 34999hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`' 35000inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 35001inherit_rpath_F77='`$ECHO "$inherit_rpath_F77" | $SED "$delay_single_quote_subst"`' 35002inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`' 35003link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 35004link_all_deplibs_F77='`$ECHO "$link_all_deplibs_F77" | $SED "$delay_single_quote_subst"`' 35005link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`' 35006always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 35007always_export_symbols_F77='`$ECHO "$always_export_symbols_F77" | $SED "$delay_single_quote_subst"`' 35008always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`' 35009export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 35010export_symbols_cmds_F77='`$ECHO "$export_symbols_cmds_F77" | $SED "$delay_single_quote_subst"`' 35011export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`' 35012exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 35013exclude_expsyms_F77='`$ECHO "$exclude_expsyms_F77" | $SED "$delay_single_quote_subst"`' 35014exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`' 35015include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 35016include_expsyms_F77='`$ECHO "$include_expsyms_F77" | $SED "$delay_single_quote_subst"`' 35017include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`' 35018prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 35019prelink_cmds_F77='`$ECHO "$prelink_cmds_F77" | $SED "$delay_single_quote_subst"`' 35020prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`' 35021postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 35022postlink_cmds_F77='`$ECHO "$postlink_cmds_F77" | $SED "$delay_single_quote_subst"`' 35023postlink_cmds_FC='`$ECHO "$postlink_cmds_FC" | $SED "$delay_single_quote_subst"`' 35024file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 35025file_list_spec_F77='`$ECHO "$file_list_spec_F77" | $SED "$delay_single_quote_subst"`' 35026file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`' 35027hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 35028hardcode_action_F77='`$ECHO "$hardcode_action_F77" | $SED "$delay_single_quote_subst"`' 35029hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`' 35030compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 35031compiler_lib_search_dirs_F77='`$ECHO "$compiler_lib_search_dirs_F77" | $SED "$delay_single_quote_subst"`' 35032compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`' 35033predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 35034predep_objects_F77='`$ECHO "$predep_objects_F77" | $SED "$delay_single_quote_subst"`' 35035predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`' 35036postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 35037postdep_objects_F77='`$ECHO "$postdep_objects_F77" | $SED "$delay_single_quote_subst"`' 35038postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`' 35039predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 35040predeps_F77='`$ECHO "$predeps_F77" | $SED "$delay_single_quote_subst"`' 35041predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`' 35042postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 35043postdeps_F77='`$ECHO "$postdeps_F77" | $SED "$delay_single_quote_subst"`' 35044postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`' 35045compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 35046compiler_lib_search_path_F77='`$ECHO "$compiler_lib_search_path_F77" | $SED "$delay_single_quote_subst"`' 35047compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`' 35048 35049LTCC='$LTCC' 35050LTCFLAGS='$LTCFLAGS' 35051compiler='$compiler_DEFAULT' 35052 35053# A function that is used when there is no print builtin or printf. 35054func_fallback_echo () 35055{ 35056 eval 'cat <<_LTECHO_EOF 35057\$1 35058_LTECHO_EOF' 35059} 35060 35061# Quote evaled strings. 35062for var in AS \ 35063DLLTOOL \ 35064OBJDUMP \ 35065SHELL \ 35066ECHO \ 35067PATH_SEPARATOR \ 35068SED \ 35069GREP \ 35070EGREP \ 35071FGREP \ 35072LD \ 35073NM \ 35074LN_S \ 35075lt_SP2NL \ 35076lt_NL2SP \ 35077reload_flag \ 35078deplibs_check_method \ 35079file_magic_cmd \ 35080file_magic_glob \ 35081want_nocaseglob \ 35082sharedlib_from_linklib_cmd \ 35083AR \ 35084AR_FLAGS \ 35085archiver_list_spec \ 35086STRIP \ 35087RANLIB \ 35088CC \ 35089CFLAGS \ 35090compiler \ 35091lt_cv_sys_global_symbol_pipe \ 35092lt_cv_sys_global_symbol_to_cdecl \ 35093lt_cv_sys_global_symbol_to_import \ 35094lt_cv_sys_global_symbol_to_c_name_address \ 35095lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 35096lt_cv_nm_interface \ 35097nm_file_list_spec \ 35098lt_cv_truncate_bin \ 35099lt_prog_compiler_no_builtin_flag \ 35100lt_prog_compiler_pic \ 35101lt_prog_compiler_wl \ 35102lt_prog_compiler_static \ 35103lt_cv_prog_compiler_c_o \ 35104need_locks \ 35105MANIFEST_TOOL \ 35106DSYMUTIL \ 35107NMEDIT \ 35108LIPO \ 35109OTOOL \ 35110OTOOL64 \ 35111shrext_cmds \ 35112export_dynamic_flag_spec \ 35113whole_archive_flag_spec \ 35114compiler_needs_object \ 35115with_gnu_ld \ 35116allow_undefined_flag \ 35117no_undefined_flag \ 35118hardcode_libdir_flag_spec \ 35119hardcode_libdir_separator \ 35120exclude_expsyms \ 35121include_expsyms \ 35122file_list_spec \ 35123variables_saved_for_relink \ 35124libname_spec \ 35125library_names_spec \ 35126soname_spec \ 35127install_override_mode \ 35128finish_eval \ 35129old_striplib \ 35130striplib \ 35131compiler_lib_search_dirs \ 35132predep_objects \ 35133postdep_objects \ 35134predeps \ 35135postdeps \ 35136compiler_lib_search_path \ 35137LD_CXX \ 35138LD_F77 \ 35139LD_FC \ 35140reload_flag_CXX \ 35141reload_flag_F77 \ 35142reload_flag_FC \ 35143compiler_CXX \ 35144compiler_F77 \ 35145compiler_FC \ 35146lt_prog_compiler_no_builtin_flag_CXX \ 35147lt_prog_compiler_no_builtin_flag_F77 \ 35148lt_prog_compiler_no_builtin_flag_FC \ 35149lt_prog_compiler_pic_CXX \ 35150lt_prog_compiler_pic_F77 \ 35151lt_prog_compiler_pic_FC \ 35152lt_prog_compiler_wl_CXX \ 35153lt_prog_compiler_wl_F77 \ 35154lt_prog_compiler_wl_FC \ 35155lt_prog_compiler_static_CXX \ 35156lt_prog_compiler_static_F77 \ 35157lt_prog_compiler_static_FC \ 35158lt_cv_prog_compiler_c_o_CXX \ 35159lt_cv_prog_compiler_c_o_F77 \ 35160lt_cv_prog_compiler_c_o_FC \ 35161export_dynamic_flag_spec_CXX \ 35162export_dynamic_flag_spec_F77 \ 35163export_dynamic_flag_spec_FC \ 35164whole_archive_flag_spec_CXX \ 35165whole_archive_flag_spec_F77 \ 35166whole_archive_flag_spec_FC \ 35167compiler_needs_object_CXX \ 35168compiler_needs_object_F77 \ 35169compiler_needs_object_FC \ 35170with_gnu_ld_CXX \ 35171with_gnu_ld_F77 \ 35172with_gnu_ld_FC \ 35173allow_undefined_flag_CXX \ 35174allow_undefined_flag_F77 \ 35175allow_undefined_flag_FC \ 35176no_undefined_flag_CXX \ 35177no_undefined_flag_F77 \ 35178no_undefined_flag_FC \ 35179hardcode_libdir_flag_spec_CXX \ 35180hardcode_libdir_flag_spec_F77 \ 35181hardcode_libdir_flag_spec_FC \ 35182hardcode_libdir_separator_CXX \ 35183hardcode_libdir_separator_F77 \ 35184hardcode_libdir_separator_FC \ 35185exclude_expsyms_CXX \ 35186exclude_expsyms_F77 \ 35187exclude_expsyms_FC \ 35188include_expsyms_CXX \ 35189include_expsyms_F77 \ 35190include_expsyms_FC \ 35191file_list_spec_CXX \ 35192file_list_spec_F77 \ 35193file_list_spec_FC \ 35194compiler_lib_search_dirs_CXX \ 35195compiler_lib_search_dirs_F77 \ 35196compiler_lib_search_dirs_FC \ 35197predep_objects_CXX \ 35198predep_objects_F77 \ 35199predep_objects_FC \ 35200postdep_objects_CXX \ 35201postdep_objects_F77 \ 35202postdep_objects_FC \ 35203predeps_CXX \ 35204predeps_F77 \ 35205predeps_FC \ 35206postdeps_CXX \ 35207postdeps_F77 \ 35208postdeps_FC \ 35209compiler_lib_search_path_CXX \ 35210compiler_lib_search_path_F77 \ 35211compiler_lib_search_path_FC; do 35212 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 35213 *[\\\\\\\`\\"\\\$]*) 35214 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 35215 ;; 35216 *) 35217 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 35218 ;; 35219 esac 35220done 35221 35222# Double-quote double-evaled strings. 35223for var in reload_cmds \ 35224old_postinstall_cmds \ 35225old_postuninstall_cmds \ 35226old_archive_cmds \ 35227extract_expsyms_cmds \ 35228old_archive_from_new_cmds \ 35229old_archive_from_expsyms_cmds \ 35230archive_cmds \ 35231archive_expsym_cmds \ 35232module_cmds \ 35233module_expsym_cmds \ 35234export_symbols_cmds \ 35235prelink_cmds \ 35236postlink_cmds \ 35237postinstall_cmds \ 35238postuninstall_cmds \ 35239finish_cmds \ 35240sys_lib_search_path_spec \ 35241configure_time_dlsearch_path \ 35242configure_time_lt_sys_library_path \ 35243reload_cmds_CXX \ 35244reload_cmds_F77 \ 35245reload_cmds_FC \ 35246old_archive_cmds_CXX \ 35247old_archive_cmds_F77 \ 35248old_archive_cmds_FC \ 35249old_archive_from_new_cmds_CXX \ 35250old_archive_from_new_cmds_F77 \ 35251old_archive_from_new_cmds_FC \ 35252old_archive_from_expsyms_cmds_CXX \ 35253old_archive_from_expsyms_cmds_F77 \ 35254old_archive_from_expsyms_cmds_FC \ 35255archive_cmds_CXX \ 35256archive_cmds_F77 \ 35257archive_cmds_FC \ 35258archive_expsym_cmds_CXX \ 35259archive_expsym_cmds_F77 \ 35260archive_expsym_cmds_FC \ 35261module_cmds_CXX \ 35262module_cmds_F77 \ 35263module_cmds_FC \ 35264module_expsym_cmds_CXX \ 35265module_expsym_cmds_F77 \ 35266module_expsym_cmds_FC \ 35267export_symbols_cmds_CXX \ 35268export_symbols_cmds_F77 \ 35269export_symbols_cmds_FC \ 35270prelink_cmds_CXX \ 35271prelink_cmds_F77 \ 35272prelink_cmds_FC \ 35273postlink_cmds_CXX \ 35274postlink_cmds_F77 \ 35275postlink_cmds_FC; do 35276 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 35277 *[\\\\\\\`\\"\\\$]*) 35278 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 35279 ;; 35280 *) 35281 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 35282 ;; 35283 esac 35284done 35285 35286ac_aux_dir='$ac_aux_dir' 35287 35288# See if we are running on zsh, and set the options that allow our 35289# commands through without removal of \ escapes INIT. 35290if test -n "\${ZSH_VERSION+set}"; then 35291 setopt NO_GLOB_SUBST 35292fi 35293 35294 35295 PACKAGE='$PACKAGE' 35296 VERSION='$VERSION' 35297 RM='$RM' 35298 ofile='$ofile' 35299 35300 35301 35302 35303 35304 35305 35306ac_aux_dir='$ac_aux_dir' 35307 35308 35309 35310 35311 35312_ACEOF 35313 35314cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 35315 35316# Handling of arguments. 35317for ac_config_target in $ac_config_targets 35318do 35319 case $ac_config_target in 35320 "include/med_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/med_config.h" ;; 35321 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 35322 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 35323 "tests/python/atconfig") CONFIG_COMMANDS="$CONFIG_COMMANDS tests/python/atconfig" ;; 35324 "tests/usecases/python/atconfig") CONFIG_COMMANDS="$CONFIG_COMMANDS tests/usecases/python/atconfig" ;; 35325 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 35326 "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;; 35327 "include/2.3.6/Makefile") CONFIG_FILES="$CONFIG_FILES include/2.3.6/Makefile" ;; 35328 "include/2.3.6/med.h") CONFIG_FILES="$CONFIG_FILES include/2.3.6/med.h" ;; 35329 "include/2.3.6/med23v30.h") CONFIG_FILES="$CONFIG_FILES include/2.3.6/med23v30.h" ;; 35330 "include/2.3.6/med_utils.h") CONFIG_FILES="$CONFIG_FILES include/2.3.6/med_utils.h" ;; 35331 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 35332 "include/H5public_extract.h") CONFIG_FILES="$CONFIG_FILES include/H5public_extract.h" ;; 35333 "include/med.h") CONFIG_FILES="$CONFIG_FILES include/med.h" ;; 35334 "include/med_parameter.hf") CONFIG_FILES="$CONFIG_FILES include/med_parameter.hf" ;; 35335 "include/med_utils.h") CONFIG_FILES="$CONFIG_FILES include/med_utils.h" ;; 35336 "src/libmed3.settings") CONFIG_FILES="$CONFIG_FILES src/libmed3.settings" ;; 35337 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 35338 "src/ci/Makefile") CONFIG_FILES="$CONFIG_FILES src/ci/Makefile" ;; 35339 "src/fi/Makefile") CONFIG_FILES="$CONFIG_FILES src/fi/Makefile" ;; 35340 "src/cfi/Makefile") CONFIG_FILES="$CONFIG_FILES src/cfi/Makefile" ;; 35341 "src/misc/Makefile") CONFIG_FILES="$CONFIG_FILES src/misc/Makefile" ;; 35342 "src/hdfi/Makefile") CONFIG_FILES="$CONFIG_FILES src/hdfi/Makefile" ;; 35343 "src/2.3.6/Makefile") CONFIG_FILES="$CONFIG_FILES src/2.3.6/Makefile" ;; 35344 "src/2.3.6/ci/Makefile") CONFIG_FILES="$CONFIG_FILES src/2.3.6/ci/Makefile" ;; 35345 "src/2.3.6/fi/Makefile") CONFIG_FILES="$CONFIG_FILES src/2.3.6/fi/Makefile" ;; 35346 "src/2.3.6/cfi/Makefile") CONFIG_FILES="$CONFIG_FILES src/2.3.6/cfi/Makefile" ;; 35347 "src/2.3.6/misc/Makefile") CONFIG_FILES="$CONFIG_FILES src/2.3.6/misc/Makefile" ;; 35348 "src/2.3.6/hdfi/Makefile") CONFIG_FILES="$CONFIG_FILES src/2.3.6/hdfi/Makefile" ;; 35349 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 35350 "tests/python/Makefile") CONFIG_FILES="$CONFIG_FILES tests/python/Makefile" ;; 35351 "tests/python/atlocal") CONFIG_FILES="$CONFIG_FILES tests/python/atlocal" ;; 35352 "tests/c/Makefile") CONFIG_FILES="$CONFIG_FILES tests/c/Makefile" ;; 35353 "tests/c/dumps.ref/Makefile") CONFIG_FILES="$CONFIG_FILES tests/c/dumps.ref/Makefile" ;; 35354 "tests/c/3.2.1/Makefile") CONFIG_FILES="$CONFIG_FILES tests/c/3.2.1/Makefile" ;; 35355 "tests/c/3.2.1/dumps.ref/Makefile") CONFIG_FILES="$CONFIG_FILES tests/c/3.2.1/dumps.ref/Makefile" ;; 35356 "tests/c/3.1.0/Makefile") CONFIG_FILES="$CONFIG_FILES tests/c/3.1.0/Makefile" ;; 35357 "tests/c/3.1.0/dumps.ref/Makefile") CONFIG_FILES="$CONFIG_FILES tests/c/3.1.0/dumps.ref/Makefile" ;; 35358 "tests/c/3.0.8/Makefile") CONFIG_FILES="$CONFIG_FILES tests/c/3.0.8/Makefile" ;; 35359 "tests/c/3.0.8/dumps.ref/Makefile") CONFIG_FILES="$CONFIG_FILES tests/c/3.0.8/dumps.ref/Makefile" ;; 35360 "tests/c/2.3.1/Makefile") CONFIG_FILES="$CONFIG_FILES tests/c/2.3.1/Makefile" ;; 35361 "tests/c/2.3.1/dumps.ref/Makefile") CONFIG_FILES="$CONFIG_FILES tests/c/2.3.1/dumps.ref/Makefile" ;; 35362 "tests/c/2.3.2/Makefile") CONFIG_FILES="$CONFIG_FILES tests/c/2.3.2/Makefile" ;; 35363 "tests/c/2.3.2/dumps.ref/Makefile") CONFIG_FILES="$CONFIG_FILES tests/c/2.3.2/dumps.ref/Makefile" ;; 35364 "tests/c/2.3.6/Makefile") CONFIG_FILES="$CONFIG_FILES tests/c/2.3.6/Makefile" ;; 35365 "tests/c/2.3.6/dumps.ref/Makefile") CONFIG_FILES="$CONFIG_FILES tests/c/2.3.6/dumps.ref/Makefile" ;; 35366 "tests/c/2.3.1v3.0/Makefile") CONFIG_FILES="$CONFIG_FILES tests/c/2.3.1v3.0/Makefile" ;; 35367 "tests/c/2.3.1v3.0/dumps.ref/Makefile") CONFIG_FILES="$CONFIG_FILES tests/c/2.3.1v3.0/dumps.ref/Makefile" ;; 35368 "tests/c/2.3.2v3.0/Makefile") CONFIG_FILES="$CONFIG_FILES tests/c/2.3.2v3.0/Makefile" ;; 35369 "tests/c/2.3.2v3.0/dumps.ref/Makefile") CONFIG_FILES="$CONFIG_FILES tests/c/2.3.2v3.0/dumps.ref/Makefile" ;; 35370 "tests/c/2.3v3.0/Makefile") CONFIG_FILES="$CONFIG_FILES tests/c/2.3v3.0/Makefile" ;; 35371 "tests/c/2.3v3.0/dumps.ref/Makefile") CONFIG_FILES="$CONFIG_FILES tests/c/2.3v3.0/dumps.ref/Makefile" ;; 35372 "tests/f/Makefile") CONFIG_FILES="$CONFIG_FILES tests/f/Makefile" ;; 35373 "tests/f/dumps.ref/Makefile") CONFIG_FILES="$CONFIG_FILES tests/f/dumps.ref/Makefile" ;; 35374 "tests/f/3.2.1/Makefile") CONFIG_FILES="$CONFIG_FILES tests/f/3.2.1/Makefile" ;; 35375 "tests/f/3.2.1/dumps.ref/Makefile") CONFIG_FILES="$CONFIG_FILES tests/f/3.2.1/dumps.ref/Makefile" ;; 35376 "tests/f/3.1.0/Makefile") CONFIG_FILES="$CONFIG_FILES tests/f/3.1.0/Makefile" ;; 35377 "tests/f/3.1.0/dumps.ref/Makefile") CONFIG_FILES="$CONFIG_FILES tests/f/3.1.0/dumps.ref/Makefile" ;; 35378 "tests/f/3.0.8/Makefile") CONFIG_FILES="$CONFIG_FILES tests/f/3.0.8/Makefile" ;; 35379 "tests/f/3.0.8/dumps.ref/Makefile") CONFIG_FILES="$CONFIG_FILES tests/f/3.0.8/dumps.ref/Makefile" ;; 35380 "tests/f/2.3.1/Makefile") CONFIG_FILES="$CONFIG_FILES tests/f/2.3.1/Makefile" ;; 35381 "tests/f/2.3.1/dumps.ref/Makefile") CONFIG_FILES="$CONFIG_FILES tests/f/2.3.1/dumps.ref/Makefile" ;; 35382 "tests/f/2.3.2/Makefile") CONFIG_FILES="$CONFIG_FILES tests/f/2.3.2/Makefile" ;; 35383 "tests/f/2.3.2/dumps.ref/Makefile") CONFIG_FILES="$CONFIG_FILES tests/f/2.3.2/dumps.ref/Makefile" ;; 35384 "tests/f/2.3.6/Makefile") CONFIG_FILES="$CONFIG_FILES tests/f/2.3.6/Makefile" ;; 35385 "tests/f/2.3.6/dumps.ref/Makefile") CONFIG_FILES="$CONFIG_FILES tests/f/2.3.6/dumps.ref/Makefile" ;; 35386 "tests/f/2.3v3.0/Makefile") CONFIG_FILES="$CONFIG_FILES tests/f/2.3v3.0/Makefile" ;; 35387 "tests/f/2.3v3.0/dumps.ref/Makefile") CONFIG_FILES="$CONFIG_FILES tests/f/2.3v3.0/dumps.ref/Makefile" ;; 35388 "tests/f/2.3.1v3.0/Makefile") CONFIG_FILES="$CONFIG_FILES tests/f/2.3.1v3.0/Makefile" ;; 35389 "tests/f/2.3.1v3.0/dumps.ref/Makefile") CONFIG_FILES="$CONFIG_FILES tests/f/2.3.1v3.0/dumps.ref/Makefile" ;; 35390 "tests/f/2.3.2v3.0/Makefile") CONFIG_FILES="$CONFIG_FILES tests/f/2.3.2v3.0/Makefile" ;; 35391 "tests/f/2.3.2v3.0/dumps.ref/Makefile") CONFIG_FILES="$CONFIG_FILES tests/f/2.3.2v3.0/dumps.ref/Makefile" ;; 35392 "tests/parallel/Makefile") CONFIG_FILES="$CONFIG_FILES tests/parallel/Makefile" ;; 35393 "tests/parallel/dumps.ref/Makefile") CONFIG_FILES="$CONFIG_FILES tests/parallel/dumps.ref/Makefile" ;; 35394 "tests/parallel/f/Makefile") CONFIG_FILES="$CONFIG_FILES tests/parallel/f/Makefile" ;; 35395 "tests/usecases/Makefile") CONFIG_FILES="$CONFIG_FILES tests/usecases/Makefile" ;; 35396 "tests/usecases/c/Makefile") CONFIG_FILES="$CONFIG_FILES tests/usecases/c/Makefile" ;; 35397 "tests/usecases/c/dumps.ref/Makefile") CONFIG_FILES="$CONFIG_FILES tests/usecases/c/dumps.ref/Makefile" ;; 35398 "tests/usecases/f/Makefile") CONFIG_FILES="$CONFIG_FILES tests/usecases/f/Makefile" ;; 35399 "tests/usecases/f/dumps.ref/Makefile") CONFIG_FILES="$CONFIG_FILES tests/usecases/f/dumps.ref/Makefile" ;; 35400 "tests/usecases/python/Makefile") CONFIG_FILES="$CONFIG_FILES tests/usecases/python/Makefile" ;; 35401 "tests/usecases/python/atlocal") CONFIG_FILES="$CONFIG_FILES tests/usecases/python/atlocal" ;; 35402 "tests/unittests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unittests/Makefile" ;; 35403 "tests/unittests/c/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unittests/c/Makefile" ;; 35404 "tests/unittests/c/dumps.ref/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unittests/c/dumps.ref/Makefile" ;; 35405 "tests/unittests/c/MEDinterp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unittests/c/MEDinterp/Makefile" ;; 35406 "tests/unittests/c/MEDinterp/dumps.ref/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unittests/c/MEDinterp/dumps.ref/Makefile" ;; 35407 "tests/unittests/c/MEDmesh/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unittests/c/MEDmesh/Makefile" ;; 35408 "tests/unittests/c/MEDmesh/dumps.ref/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unittests/c/MEDmesh/dumps.ref/Makefile" ;; 35409 "tests/unittests/f/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unittests/f/Makefile" ;; 35410 "tests/unittests/f/dumps.ref/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unittests/f/dumps.ref/Makefile" ;; 35411 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; 35412 "tools/mdump/Makefile") CONFIG_FILES="$CONFIG_FILES tools/mdump/Makefile" ;; 35413 "tools/mdump/xmdump2") CONFIG_FILES="$CONFIG_FILES tools/mdump/xmdump2" ;; 35414 "tools/mdump/xmdump3") CONFIG_FILES="$CONFIG_FILES tools/mdump/xmdump3" ;; 35415 "tools/medconforme/Makefile") CONFIG_FILES="$CONFIG_FILES tools/medconforme/Makefile" ;; 35416 "tools/medimport/Makefile") CONFIG_FILES="$CONFIG_FILES tools/medimport/Makefile" ;; 35417 "tools/medimport/include/Makefile") CONFIG_FILES="$CONFIG_FILES tools/medimport/include/Makefile" ;; 35418 "tools/medimport/2.3.1/Makefile") CONFIG_FILES="$CONFIG_FILES tools/medimport/2.3.1/Makefile" ;; 35419 "tools/medimport/2.1.x/Makefile") CONFIG_FILES="$CONFIG_FILES tools/medimport/2.1.x/Makefile" ;; 35420 "tools/medimport/2.3.6/Makefile") CONFIG_FILES="$CONFIG_FILES tools/medimport/2.3.6/Makefile" ;; 35421 "tools/medimport/3.0.0/Makefile") CONFIG_FILES="$CONFIG_FILES tools/medimport/3.0.0/Makefile" ;; 35422 "tools/medimport/3.1.0/Makefile") CONFIG_FILES="$CONFIG_FILES tools/medimport/3.1.0/Makefile" ;; 35423 "tools/medimport/3.2.0/Makefile") CONFIG_FILES="$CONFIG_FILES tools/medimport/3.2.0/Makefile" ;; 35424 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 35425 "doc/dox/Makefile") CONFIG_FILES="$CONFIG_FILES doc/dox/Makefile" ;; 35426 "doc/dox/aliases.als") CONFIG_FILES="$CONFIG_FILES doc/dox/aliases.als" ;; 35427 "doc/dox/Doxyfile.cfg") CONFIG_FILES="$CONFIG_FILES doc/dox/Doxyfile.cfg" ;; 35428 "doc/gif/Makefile") CONFIG_FILES="$CONFIG_FILES doc/gif/Makefile" ;; 35429 "doc/html/Makefile") CONFIG_FILES="$CONFIG_FILES doc/html/Makefile" ;; 35430 "doc/html/root.html") CONFIG_FILES="$CONFIG_FILES doc/html/root.html" ;; 35431 "doc/html.dox/Makefile") CONFIG_FILES="$CONFIG_FILES doc/html.dox/Makefile" ;; 35432 "doc/jpg/Makefile") CONFIG_FILES="$CONFIG_FILES doc/jpg/Makefile" ;; 35433 "doc/png/Makefile") CONFIG_FILES="$CONFIG_FILES doc/png/Makefile" ;; 35434 "doc/odt/Makefile") CONFIG_FILES="$CONFIG_FILES doc/odt/Makefile" ;; 35435 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;; 35436 "src/CMakeLists.txt") CONFIG_FILES="$CONFIG_FILES src/CMakeLists.txt" ;; 35437 "tools/medimport/CMakeLists.txt") CONFIG_FILES="$CONFIG_FILES tools/medimport/CMakeLists.txt" ;; 35438 "CMakeLists.txt") CONFIG_FILES="$CONFIG_FILES CMakeLists.txt" ;; 35439 35440 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 35441 esac 35442done 35443 35444 35445# If the user did not use the arguments to specify the items to instantiate, 35446# then the envvar interface is used. Set only those that are not. 35447# We use the long form for the default assignment because of an extremely 35448# bizarre bug on SunOS 4.1.3. 35449if $ac_need_defaults; then 35450 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 35451 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 35452 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 35453fi 35454 35455# Have a temporary directory for convenience. Make it in the build tree 35456# simply because there is no reason against having it here, and in addition, 35457# creating and moving files from /tmp can sometimes cause problems. 35458# Hook for its removal unless debugging. 35459# Note that there is a small window in which the directory will not be cleaned: 35460# after its creation but before its name has been assigned to `$tmp'. 35461$debug || 35462{ 35463 tmp= ac_tmp= 35464 trap 'exit_status=$? 35465 : "${ac_tmp:=$tmp}" 35466 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 35467' 0 35468 trap 'as_fn_exit 1' 1 2 13 15 35469} 35470# Create a (secure) tmp directory for tmp files. 35471 35472{ 35473 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 35474 test -d "$tmp" 35475} || 35476{ 35477 tmp=./conf$$-$RANDOM 35478 (umask 077 && mkdir "$tmp") 35479} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 35480ac_tmp=$tmp 35481 35482# Set up the scripts for CONFIG_FILES section. 35483# No need to generate them if there are no CONFIG_FILES. 35484# This happens for instance with `./config.status config.h'. 35485if test -n "$CONFIG_FILES"; then 35486 35487if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then 35488 ac_cs_awk_getline=: 35489 ac_cs_awk_pipe_init= 35490 ac_cs_awk_read_file=' 35491 while ((getline aline < (F[key])) > 0) 35492 print(aline) 35493 close(F[key])' 35494 ac_cs_awk_pipe_fini= 35495else 35496 ac_cs_awk_getline=false 35497 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" 35498 ac_cs_awk_read_file=' 35499 print "|#_!!_#|" 35500 print "cat " F[key] " &&" 35501 '$ac_cs_awk_pipe_init 35502 # The final `:' finishes the AND list. 35503 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' 35504fi 35505ac_cr=`echo X | tr X '\015'` 35506# On cygwin, bash can eat \r inside `` if the user requested igncr. 35507# But we know of no other shell where ac_cr would be empty at this 35508# point, so we can use a bashism as a fallback. 35509if test "x$ac_cr" = x; then 35510 eval ac_cr=\$\'\\r\' 35511fi 35512ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 35513if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 35514 ac_cs_awk_cr='\\r' 35515else 35516 ac_cs_awk_cr=$ac_cr 35517fi 35518 35519echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 35520_ACEOF 35521 35522# Create commands to substitute file output variables. 35523{ 35524 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && 35525 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && 35526 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && 35527 echo "_ACAWK" && 35528 echo "_ACEOF" 35529} >conf$$files.sh && 35530. ./conf$$files.sh || 35531 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 35532rm -f conf$$files.sh 35533 35534{ 35535 echo "cat >conf$$subs.awk <<_ACEOF" && 35536 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 35537 echo "_ACEOF" 35538} >conf$$subs.sh || 35539 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 35540ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 35541ac_delim='%!_!# ' 35542for ac_last_try in false false false false false :; do 35543 . ./conf$$subs.sh || 35544 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 35545 35546 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 35547 if test $ac_delim_n = $ac_delim_num; then 35548 break 35549 elif $ac_last_try; then 35550 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 35551 else 35552 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 35553 fi 35554done 35555rm -f conf$$subs.sh 35556 35557cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 35558cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 35559_ACEOF 35560sed -n ' 35561h 35562s/^/S["/; s/!.*/"]=/ 35563p 35564g 35565s/^[^!]*!// 35566:repl 35567t repl 35568s/'"$ac_delim"'$// 35569t delim 35570:nl 35571h 35572s/\(.\{148\}\)..*/\1/ 35573t more1 35574s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 35575p 35576n 35577b repl 35578:more1 35579s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 35580p 35581g 35582s/.\{148\}// 35583t nl 35584:delim 35585h 35586s/\(.\{148\}\)..*/\1/ 35587t more2 35588s/["\\]/\\&/g; s/^/"/; s/$/"/ 35589p 35590b 35591:more2 35592s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 35593p 35594g 35595s/.\{148\}// 35596t delim 35597' <conf$$subs.awk | sed ' 35598/^[^""]/{ 35599 N 35600 s/\n// 35601} 35602' >>$CONFIG_STATUS || ac_write_fail=1 35603rm -f conf$$subs.awk 35604cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 35605_ACAWK 35606cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 35607 for (key in S) S_is_set[key] = 1 35608 FS = "" 35609 \$ac_cs_awk_pipe_init 35610} 35611{ 35612 line = $ 0 35613 nfields = split(line, field, "@") 35614 substed = 0 35615 len = length(field[1]) 35616 for (i = 2; i < nfields; i++) { 35617 key = field[i] 35618 keylen = length(key) 35619 if (S_is_set[key]) { 35620 value = S[key] 35621 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 35622 len += length(value) + length(field[++i]) 35623 substed = 1 35624 } else 35625 len += 1 + keylen 35626 } 35627 if (nfields == 3 && !substed) { 35628 key = field[2] 35629 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { 35630 \$ac_cs_awk_read_file 35631 next 35632 } 35633 } 35634 print line 35635} 35636\$ac_cs_awk_pipe_fini 35637_ACAWK 35638_ACEOF 35639cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 35640if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 35641 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 35642else 35643 cat 35644fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 35645 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 35646_ACEOF 35647 35648# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 35649# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 35650# trailing colons and then remove the whole line if VPATH becomes empty 35651# (actually we leave an empty line to preserve line numbers). 35652if test "x$srcdir" = x.; then 35653 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 35654h 35655s/// 35656s/^/:/ 35657s/[ ]*$/:/ 35658s/:\$(srcdir):/:/g 35659s/:\${srcdir}:/:/g 35660s/:@srcdir@:/:/g 35661s/^:*// 35662s/:*$// 35663x 35664s/\(=[ ]*\).*/\1/ 35665G 35666s/\n// 35667s/^[^=]*=[ ]*$// 35668}' 35669fi 35670 35671cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 35672fi # test -n "$CONFIG_FILES" 35673 35674# Set up the scripts for CONFIG_HEADERS section. 35675# No need to generate them if there are no CONFIG_HEADERS. 35676# This happens for instance with `./config.status Makefile'. 35677if test -n "$CONFIG_HEADERS"; then 35678cat >"$ac_tmp/defines.awk" <<\_ACAWK || 35679BEGIN { 35680_ACEOF 35681 35682# Transform confdefs.h into an awk script `defines.awk', embedded as 35683# here-document in config.status, that substitutes the proper values into 35684# config.h.in to produce config.h. 35685 35686# Create a delimiter string that does not exist in confdefs.h, to ease 35687# handling of long lines. 35688ac_delim='%!_!# ' 35689for ac_last_try in false false :; do 35690 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 35691 if test -z "$ac_tt"; then 35692 break 35693 elif $ac_last_try; then 35694 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 35695 else 35696 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 35697 fi 35698done 35699 35700# For the awk script, D is an array of macro values keyed by name, 35701# likewise P contains macro parameters if any. Preserve backslash 35702# newline sequences. 35703 35704ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 35705sed -n ' 35706s/.\{148\}/&'"$ac_delim"'/g 35707t rset 35708:rset 35709s/^[ ]*#[ ]*define[ ][ ]*/ / 35710t def 35711d 35712:def 35713s/\\$// 35714t bsnl 35715s/["\\]/\\&/g 35716s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 35717D["\1"]=" \3"/p 35718s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 35719d 35720:bsnl 35721s/["\\]/\\&/g 35722s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 35723D["\1"]=" \3\\\\\\n"\\/p 35724t cont 35725s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 35726t cont 35727d 35728:cont 35729n 35730s/.\{148\}/&'"$ac_delim"'/g 35731t clear 35732:clear 35733s/\\$// 35734t bsnlc 35735s/["\\]/\\&/g; s/^/"/; s/$/"/p 35736d 35737:bsnlc 35738s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 35739b cont 35740' <confdefs.h | sed ' 35741s/'"$ac_delim"'/"\\\ 35742"/g' >>$CONFIG_STATUS || ac_write_fail=1 35743 35744cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 35745 for (key in D) D_is_set[key] = 1 35746 FS = "" 35747} 35748/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 35749 line = \$ 0 35750 split(line, arg, " ") 35751 if (arg[1] == "#") { 35752 defundef = arg[2] 35753 mac1 = arg[3] 35754 } else { 35755 defundef = substr(arg[1], 2) 35756 mac1 = arg[2] 35757 } 35758 split(mac1, mac2, "(") #) 35759 macro = mac2[1] 35760 prefix = substr(line, 1, index(line, defundef) - 1) 35761 if (D_is_set[macro]) { 35762 # Preserve the white space surrounding the "#". 35763 print prefix "define", macro P[macro] D[macro] 35764 next 35765 } else { 35766 # Replace #undef with comments. This is necessary, for example, 35767 # in the case of _POSIX_SOURCE, which is predefined and required 35768 # on some systems where configure will not decide to define it. 35769 if (defundef == "undef") { 35770 print "/*", prefix defundef, macro, "*/" 35771 next 35772 } 35773 } 35774} 35775{ print } 35776_ACAWK 35777_ACEOF 35778cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 35779 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 35780fi # test -n "$CONFIG_HEADERS" 35781 35782 35783eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 35784shift 35785for ac_tag 35786do 35787 case $ac_tag in 35788 :[FHLC]) ac_mode=$ac_tag; continue;; 35789 esac 35790 case $ac_mode$ac_tag in 35791 :[FHL]*:*);; 35792 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 35793 :[FH]-) ac_tag=-:-;; 35794 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 35795 esac 35796 ac_save_IFS=$IFS 35797 IFS=: 35798 set x $ac_tag 35799 IFS=$ac_save_IFS 35800 shift 35801 ac_file=$1 35802 shift 35803 35804 case $ac_mode in 35805 :L) ac_source=$1;; 35806 :[FH]) 35807 ac_file_inputs= 35808 for ac_f 35809 do 35810 case $ac_f in 35811 -) ac_f="$ac_tmp/stdin";; 35812 *) # Look for the file first in the build tree, then in the source tree 35813 # (if the path is not absolute). The absolute path cannot be DOS-style, 35814 # because $ac_f cannot contain `:'. 35815 test -f "$ac_f" || 35816 case $ac_f in 35817 [\\/$]*) false;; 35818 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 35819 esac || 35820 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 35821 esac 35822 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 35823 as_fn_append ac_file_inputs " '$ac_f'" 35824 done 35825 35826 # Let's still pretend it is `configure' which instantiates (i.e., don't 35827 # use $as_me), people would be surprised to read: 35828 # /* config.h. Generated by config.status. */ 35829 configure_input='Generated from '` 35830 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 35831 `' by configure.' 35832 if test x"$ac_file" != x-; then 35833 configure_input="$ac_file. $configure_input" 35834 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 35835$as_echo "$as_me: creating $ac_file" >&6;} 35836 fi 35837 # Neutralize special characters interpreted by sed in replacement strings. 35838 case $configure_input in #( 35839 *\&* | *\|* | *\\* ) 35840 ac_sed_conf_input=`$as_echo "$configure_input" | 35841 sed 's/[\\\\&|]/\\\\&/g'`;; #( 35842 *) ac_sed_conf_input=$configure_input;; 35843 esac 35844 35845 case $ac_tag in 35846 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 35847 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 35848 esac 35849 ;; 35850 esac 35851 35852 ac_dir=`$as_dirname -- "$ac_file" || 35853$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 35854 X"$ac_file" : 'X\(//\)[^/]' \| \ 35855 X"$ac_file" : 'X\(//\)$' \| \ 35856 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 35857$as_echo X"$ac_file" | 35858 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 35859 s//\1/ 35860 q 35861 } 35862 /^X\(\/\/\)[^/].*/{ 35863 s//\1/ 35864 q 35865 } 35866 /^X\(\/\/\)$/{ 35867 s//\1/ 35868 q 35869 } 35870 /^X\(\/\).*/{ 35871 s//\1/ 35872 q 35873 } 35874 s/.*/./; q'` 35875 as_dir="$ac_dir"; as_fn_mkdir_p 35876 ac_builddir=. 35877 35878case "$ac_dir" in 35879.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 35880*) 35881 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 35882 # A ".." for each directory in $ac_dir_suffix. 35883 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 35884 case $ac_top_builddir_sub in 35885 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 35886 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 35887 esac ;; 35888esac 35889ac_abs_top_builddir=$ac_pwd 35890ac_abs_builddir=$ac_pwd$ac_dir_suffix 35891# for backward compatibility: 35892ac_top_builddir=$ac_top_build_prefix 35893 35894case $srcdir in 35895 .) # We are building in place. 35896 ac_srcdir=. 35897 ac_top_srcdir=$ac_top_builddir_sub 35898 ac_abs_top_srcdir=$ac_pwd ;; 35899 [\\/]* | ?:[\\/]* ) # Absolute name. 35900 ac_srcdir=$srcdir$ac_dir_suffix; 35901 ac_top_srcdir=$srcdir 35902 ac_abs_top_srcdir=$srcdir ;; 35903 *) # Relative name. 35904 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 35905 ac_top_srcdir=$ac_top_build_prefix$srcdir 35906 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 35907esac 35908ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 35909 35910 35911 case $ac_mode in 35912 :F) 35913 # 35914 # CONFIG_FILE 35915 # 35916 35917 case $INSTALL in 35918 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 35919 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 35920 esac 35921 ac_MKDIR_P=$MKDIR_P 35922 case $MKDIR_P in 35923 [\\/$]* | ?:[\\/]* ) ;; 35924 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 35925 esac 35926_ACEOF 35927 35928cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 35929# If the template does not know about datarootdir, expand it. 35930# FIXME: This hack should be removed a few years after 2.60. 35931ac_datarootdir_hack=; ac_datarootdir_seen= 35932ac_sed_dataroot=' 35933/datarootdir/ { 35934 p 35935 q 35936} 35937/@datadir@/p 35938/@docdir@/p 35939/@infodir@/p 35940/@localedir@/p 35941/@mandir@/p' 35942case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 35943*datarootdir*) ac_datarootdir_seen=yes;; 35944*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 35945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 35946$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 35947_ACEOF 35948cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 35949 ac_datarootdir_hack=' 35950 s&@datadir@&$datadir&g 35951 s&@docdir@&$docdir&g 35952 s&@infodir@&$infodir&g 35953 s&@localedir@&$localedir&g 35954 s&@mandir@&$mandir&g 35955 s&\\\${datarootdir}&$datarootdir&g' ;; 35956esac 35957_ACEOF 35958 35959# Neutralize VPATH when `$srcdir' = `.'. 35960# Shell code in configure.ac might set extrasub. 35961# FIXME: do we really want to maintain this feature? 35962cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 35963ac_sed_extra="$ac_vpsub 35964$extrasub 35965_ACEOF 35966cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 35967:t 35968/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 35969s|@configure_input@|$ac_sed_conf_input|;t t 35970s&@top_builddir@&$ac_top_builddir_sub&;t t 35971s&@top_build_prefix@&$ac_top_build_prefix&;t t 35972s&@srcdir@&$ac_srcdir&;t t 35973s&@abs_srcdir@&$ac_abs_srcdir&;t t 35974s&@top_srcdir@&$ac_top_srcdir&;t t 35975s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 35976s&@builddir@&$ac_builddir&;t t 35977s&@abs_builddir@&$ac_abs_builddir&;t t 35978s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 35979s&@INSTALL@&$ac_INSTALL&;t t 35980s&@MKDIR_P@&$ac_MKDIR_P&;t t 35981$ac_datarootdir_hack 35982" 35983eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | 35984if $ac_cs_awk_getline; then 35985 $AWK -f "$ac_tmp/subs.awk" 35986else 35987 $AWK -f "$ac_tmp/subs.awk" | $SHELL 35988fi \ 35989 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 35990 35991test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 35992 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 35993 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 35994 "$ac_tmp/out"`; test -z "$ac_out"; } && 35995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 35996which seems to be undefined. Please make sure it is defined" >&5 35997$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 35998which seems to be undefined. Please make sure it is defined" >&2;} 35999 36000 rm -f "$ac_tmp/stdin" 36001 case $ac_file in 36002 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 36003 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 36004 esac \ 36005 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 36006 ;; 36007 :H) 36008 # 36009 # CONFIG_HEADER 36010 # 36011 if test x"$ac_file" != x-; then 36012 { 36013 $as_echo "/* $configure_input */" \ 36014 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 36015 } >"$ac_tmp/config.h" \ 36016 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 36017 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 36018 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 36019$as_echo "$as_me: $ac_file is unchanged" >&6;} 36020 else 36021 rm -f "$ac_file" 36022 mv "$ac_tmp/config.h" "$ac_file" \ 36023 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 36024 fi 36025 else 36026 $as_echo "/* $configure_input */" \ 36027 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 36028 || as_fn_error $? "could not create -" "$LINENO" 5 36029 fi 36030# Compute "$ac_file"'s index in $config_headers. 36031_am_arg="$ac_file" 36032_am_stamp_count=1 36033for _am_header in $config_headers :; do 36034 case $_am_header in 36035 $_am_arg | $_am_arg:* ) 36036 break ;; 36037 * ) 36038 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 36039 esac 36040done 36041echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 36042$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 36043 X"$_am_arg" : 'X\(//\)[^/]' \| \ 36044 X"$_am_arg" : 'X\(//\)$' \| \ 36045 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 36046$as_echo X"$_am_arg" | 36047 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 36048 s//\1/ 36049 q 36050 } 36051 /^X\(\/\/\)[^/].*/{ 36052 s//\1/ 36053 q 36054 } 36055 /^X\(\/\/\)$/{ 36056 s//\1/ 36057 q 36058 } 36059 /^X\(\/\).*/{ 36060 s//\1/ 36061 q 36062 } 36063 s/.*/./; q'`/stamp-h$_am_stamp_count 36064 ;; 36065 36066 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 36067$as_echo "$as_me: executing $ac_file commands" >&6;} 36068 ;; 36069 esac 36070 36071 36072 case $ac_file$ac_mode in 36073 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 36074 # Older Autoconf quotes --file arguments for eval, but not when files 36075 # are listed without --file. Let's play safe and only enable the eval 36076 # if we detect the quoting. 36077 case $CONFIG_FILES in 36078 *\'*) eval set x "$CONFIG_FILES" ;; 36079 *) set x $CONFIG_FILES ;; 36080 esac 36081 shift 36082 for mf 36083 do 36084 # Strip MF so we end up with the name of the file. 36085 mf=`echo "$mf" | sed -e 's/:.*$//'` 36086 # Check whether this is an Automake generated Makefile or not. 36087 # We used to match only the files named 'Makefile.in', but 36088 # some people rename them; so instead we look at the file content. 36089 # Grep'ing the first line is not enough: some people post-process 36090 # each Makefile.in and add a new line on top of each file to say so. 36091 # Grep'ing the whole file is not good either: AIX grep has a line 36092 # limit of 2048, but all sed's we know have understand at least 4000. 36093 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 36094 dirpart=`$as_dirname -- "$mf" || 36095$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 36096 X"$mf" : 'X\(//\)[^/]' \| \ 36097 X"$mf" : 'X\(//\)$' \| \ 36098 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 36099$as_echo X"$mf" | 36100 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 36101 s//\1/ 36102 q 36103 } 36104 /^X\(\/\/\)[^/].*/{ 36105 s//\1/ 36106 q 36107 } 36108 /^X\(\/\/\)$/{ 36109 s//\1/ 36110 q 36111 } 36112 /^X\(\/\).*/{ 36113 s//\1/ 36114 q 36115 } 36116 s/.*/./; q'` 36117 else 36118 continue 36119 fi 36120 # Extract the definition of DEPDIR, am__include, and am__quote 36121 # from the Makefile without running 'make'. 36122 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 36123 test -z "$DEPDIR" && continue 36124 am__include=`sed -n 's/^am__include = //p' < "$mf"` 36125 test -z "$am__include" && continue 36126 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 36127 # Find all dependency output files, they are included files with 36128 # $(DEPDIR) in their names. We invoke sed twice because it is the 36129 # simplest approach to changing $(DEPDIR) to its actual value in the 36130 # expansion. 36131 for file in `sed -n " 36132 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 36133 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 36134 # Make sure the directory exists. 36135 test -f "$dirpart/$file" && continue 36136 fdir=`$as_dirname -- "$file" || 36137$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 36138 X"$file" : 'X\(//\)[^/]' \| \ 36139 X"$file" : 'X\(//\)$' \| \ 36140 X"$file" : 'X\(/\)' \| . 2>/dev/null || 36141$as_echo X"$file" | 36142 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 36143 s//\1/ 36144 q 36145 } 36146 /^X\(\/\/\)[^/].*/{ 36147 s//\1/ 36148 q 36149 } 36150 /^X\(\/\/\)$/{ 36151 s//\1/ 36152 q 36153 } 36154 /^X\(\/\).*/{ 36155 s//\1/ 36156 q 36157 } 36158 s/.*/./; q'` 36159 as_dir=$dirpart/$fdir; as_fn_mkdir_p 36160 # echo "creating $dirpart/$file" 36161 echo '# dummy' > "$dirpart/$file" 36162 done 36163 done 36164} 36165 ;; 36166 "libtool":C) 36167 36168 # See if we are running on zsh, and set the options that allow our 36169 # commands through without removal of \ escapes. 36170 if test -n "${ZSH_VERSION+set}"; then 36171 setopt NO_GLOB_SUBST 36172 fi 36173 36174 cfgfile=${ofile}T 36175 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 36176 $RM "$cfgfile" 36177 36178 cat <<_LT_EOF >> "$cfgfile" 36179#! $SHELL 36180# Generated automatically by $as_me ($PACKAGE) $VERSION 36181# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 36182# NOTE: Changes made to this file will be lost: look at ltmain.sh. 36183 36184# Provide generalized library-building support services. 36185# Written by Gordon Matzigkeit, 1996 36186 36187# Copyright (C) 2014 Free Software Foundation, Inc. 36188# This is free software; see the source for copying conditions. There is NO 36189# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 36190 36191# GNU Libtool is free software; you can redistribute it and/or modify 36192# it under the terms of the GNU General Public License as published by 36193# the Free Software Foundation; either version 2 of of the License, or 36194# (at your option) any later version. 36195# 36196# As a special exception to the GNU General Public License, if you 36197# distribute this file as part of a program or library that is built 36198# using GNU Libtool, you may include this file under the same 36199# distribution terms that you use for the rest of that program. 36200# 36201# GNU Libtool is distributed in the hope that it will be useful, but 36202# WITHOUT ANY WARRANTY; without even the implied warranty of 36203# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 36204# GNU General Public License for more details. 36205# 36206# You should have received a copy of the GNU General Public License 36207# along with this program. If not, see <http://www.gnu.org/licenses/>. 36208 36209 36210# The names of the tagged configurations supported by this script. 36211available_tags='CXX F77 FC ' 36212 36213# Configured defaults for sys_lib_dlsearch_path munging. 36214: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 36215 36216# ### BEGIN LIBTOOL CONFIG 36217 36218# Assembler program. 36219AS=$lt_AS 36220 36221# DLL creation program. 36222DLLTOOL=$lt_DLLTOOL 36223 36224# Object dumper program. 36225OBJDUMP=$lt_OBJDUMP 36226 36227# Which release of libtool.m4 was used? 36228macro_version=$macro_version 36229macro_revision=$macro_revision 36230 36231# Whether or not to build shared libraries. 36232build_libtool_libs=$enable_shared 36233 36234# Whether or not to build static libraries. 36235build_old_libs=$enable_static 36236 36237# What type of objects to build. 36238pic_mode=$pic_mode 36239 36240# Whether or not to optimize for fast installation. 36241fast_install=$enable_fast_install 36242 36243# Shared archive member basename,for filename based shared library versioning on AIX. 36244shared_archive_member_spec=$shared_archive_member_spec 36245 36246# Shell to use when invoking shell scripts. 36247SHELL=$lt_SHELL 36248 36249# An echo program that protects backslashes. 36250ECHO=$lt_ECHO 36251 36252# The PATH separator for the build system. 36253PATH_SEPARATOR=$lt_PATH_SEPARATOR 36254 36255# The host system. 36256host_alias=$host_alias 36257host=$host 36258host_os=$host_os 36259 36260# The build system. 36261build_alias=$build_alias 36262build=$build 36263build_os=$build_os 36264 36265# A sed program that does not truncate output. 36266SED=$lt_SED 36267 36268# Sed that helps us avoid accidentally triggering echo(1) options like -n. 36269Xsed="\$SED -e 1s/^X//" 36270 36271# A grep program that handles long lines. 36272GREP=$lt_GREP 36273 36274# An ERE matcher. 36275EGREP=$lt_EGREP 36276 36277# A literal string matcher. 36278FGREP=$lt_FGREP 36279 36280# A BSD- or MS-compatible name lister. 36281NM=$lt_NM 36282 36283# Whether we need soft or hard links. 36284LN_S=$lt_LN_S 36285 36286# What is the maximum length of a command? 36287max_cmd_len=$max_cmd_len 36288 36289# Object file suffix (normally "o"). 36290objext=$ac_objext 36291 36292# Executable file suffix (normally ""). 36293exeext=$exeext 36294 36295# whether the shell understands "unset". 36296lt_unset=$lt_unset 36297 36298# turn spaces into newlines. 36299SP2NL=$lt_lt_SP2NL 36300 36301# turn newlines into spaces. 36302NL2SP=$lt_lt_NL2SP 36303 36304# convert \$build file names to \$host format. 36305to_host_file_cmd=$lt_cv_to_host_file_cmd 36306 36307# convert \$build files to toolchain format. 36308to_tool_file_cmd=$lt_cv_to_tool_file_cmd 36309 36310# Method to check whether dependent libraries are shared objects. 36311deplibs_check_method=$lt_deplibs_check_method 36312 36313# Command to use when deplibs_check_method = "file_magic". 36314file_magic_cmd=$lt_file_magic_cmd 36315 36316# How to find potential files when deplibs_check_method = "file_magic". 36317file_magic_glob=$lt_file_magic_glob 36318 36319# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 36320want_nocaseglob=$lt_want_nocaseglob 36321 36322# Command to associate shared and link libraries. 36323sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 36324 36325# The archiver. 36326AR=$lt_AR 36327 36328# Flags to create an archive. 36329AR_FLAGS=$lt_AR_FLAGS 36330 36331# How to feed a file listing to the archiver. 36332archiver_list_spec=$lt_archiver_list_spec 36333 36334# A symbol stripping program. 36335STRIP=$lt_STRIP 36336 36337# Commands used to install an old-style archive. 36338RANLIB=$lt_RANLIB 36339old_postinstall_cmds=$lt_old_postinstall_cmds 36340old_postuninstall_cmds=$lt_old_postuninstall_cmds 36341 36342# Whether to use a lock for old archive extraction. 36343lock_old_archive_extraction=$lock_old_archive_extraction 36344 36345# A C compiler. 36346LTCC=$lt_CC 36347 36348# LTCC compiler flags. 36349LTCFLAGS=$lt_CFLAGS 36350 36351# Take the output of nm and produce a listing of raw symbols and C names. 36352global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 36353 36354# Transform the output of nm in a proper C declaration. 36355global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 36356 36357# Transform the output of nm into a list of symbols to manually relocate. 36358global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 36359 36360# Transform the output of nm in a C name address pair. 36361global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 36362 36363# Transform the output of nm in a C name address pair when lib prefix is needed. 36364global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 36365 36366# The name lister interface. 36367nm_interface=$lt_lt_cv_nm_interface 36368 36369# Specify filename containing input files for \$NM. 36370nm_file_list_spec=$lt_nm_file_list_spec 36371 36372# The root where to search for dependent libraries,and where our libraries should be installed. 36373lt_sysroot=$lt_sysroot 36374 36375# Command to truncate a binary pipe. 36376lt_truncate_bin=$lt_lt_cv_truncate_bin 36377 36378# The name of the directory that contains temporary libtool files. 36379objdir=$objdir 36380 36381# Used to examine libraries when file_magic_cmd begins with "file". 36382MAGIC_CMD=$MAGIC_CMD 36383 36384# Must we lock files when doing compilation? 36385need_locks=$lt_need_locks 36386 36387# Manifest tool. 36388MANIFEST_TOOL=$lt_MANIFEST_TOOL 36389 36390# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 36391DSYMUTIL=$lt_DSYMUTIL 36392 36393# Tool to change global to local symbols on Mac OS X. 36394NMEDIT=$lt_NMEDIT 36395 36396# Tool to manipulate fat objects and archives on Mac OS X. 36397LIPO=$lt_LIPO 36398 36399# ldd/readelf like tool for Mach-O binaries on Mac OS X. 36400OTOOL=$lt_OTOOL 36401 36402# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 36403OTOOL64=$lt_OTOOL64 36404 36405# Old archive suffix (normally "a"). 36406libext=$libext 36407 36408# Shared library suffix (normally ".so"). 36409shrext_cmds=$lt_shrext_cmds 36410 36411# The commands to extract the exported symbol list from a shared archive. 36412extract_expsyms_cmds=$lt_extract_expsyms_cmds 36413 36414# Variables whose values should be saved in libtool wrapper scripts and 36415# restored at link time. 36416variables_saved_for_relink=$lt_variables_saved_for_relink 36417 36418# Do we need the "lib" prefix for modules? 36419need_lib_prefix=$need_lib_prefix 36420 36421# Do we need a version for libraries? 36422need_version=$need_version 36423 36424# Library versioning type. 36425version_type=$version_type 36426 36427# Shared library runtime path variable. 36428runpath_var=$runpath_var 36429 36430# Shared library path variable. 36431shlibpath_var=$shlibpath_var 36432 36433# Is shlibpath searched before the hard-coded library search path? 36434shlibpath_overrides_runpath=$shlibpath_overrides_runpath 36435 36436# Format of library name prefix. 36437libname_spec=$lt_libname_spec 36438 36439# List of archive names. First name is the real one, the rest are links. 36440# The last name is the one that the linker finds with -lNAME 36441library_names_spec=$lt_library_names_spec 36442 36443# The coded name of the library, if different from the real name. 36444soname_spec=$lt_soname_spec 36445 36446# Permission mode override for installation of shared libraries. 36447install_override_mode=$lt_install_override_mode 36448 36449# Command to use after installation of a shared archive. 36450postinstall_cmds=$lt_postinstall_cmds 36451 36452# Command to use after uninstallation of a shared archive. 36453postuninstall_cmds=$lt_postuninstall_cmds 36454 36455# Commands used to finish a libtool library installation in a directory. 36456finish_cmds=$lt_finish_cmds 36457 36458# As "finish_cmds", except a single script fragment to be evaled but 36459# not shown. 36460finish_eval=$lt_finish_eval 36461 36462# Whether we should hardcode library paths into libraries. 36463hardcode_into_libs=$hardcode_into_libs 36464 36465# Compile-time system search path for libraries. 36466sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 36467 36468# Detected run-time system search path for libraries. 36469sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 36470 36471# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 36472configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 36473 36474# Whether dlopen is supported. 36475dlopen_support=$enable_dlopen 36476 36477# Whether dlopen of programs is supported. 36478dlopen_self=$enable_dlopen_self 36479 36480# Whether dlopen of statically linked programs is supported. 36481dlopen_self_static=$enable_dlopen_self_static 36482 36483# Commands to strip libraries. 36484old_striplib=$lt_old_striplib 36485striplib=$lt_striplib 36486 36487 36488# The linker used to build libraries. 36489LD=$lt_LD 36490 36491# How to create reloadable object files. 36492reload_flag=$lt_reload_flag 36493reload_cmds=$lt_reload_cmds 36494 36495# Commands used to build an old-style archive. 36496old_archive_cmds=$lt_old_archive_cmds 36497 36498# A language specific compiler. 36499CC=$lt_compiler 36500 36501# Is the compiler the GNU compiler? 36502with_gcc=$GCC 36503 36504# Compiler flag to turn off builtin functions. 36505no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 36506 36507# Additional compiler flags for building library objects. 36508pic_flag=$lt_lt_prog_compiler_pic 36509 36510# How to pass a linker flag through the compiler. 36511wl=$lt_lt_prog_compiler_wl 36512 36513# Compiler flag to prevent dynamic linking. 36514link_static_flag=$lt_lt_prog_compiler_static 36515 36516# Does compiler simultaneously support -c and -o options? 36517compiler_c_o=$lt_lt_cv_prog_compiler_c_o 36518 36519# Whether or not to add -lc for building shared libraries. 36520build_libtool_need_lc=$archive_cmds_need_lc 36521 36522# Whether or not to disallow shared libs when runtime libs are static. 36523allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 36524 36525# Compiler flag to allow reflexive dlopens. 36526export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 36527 36528# Compiler flag to generate shared objects directly from archives. 36529whole_archive_flag_spec=$lt_whole_archive_flag_spec 36530 36531# Whether the compiler copes with passing no objects directly. 36532compiler_needs_object=$lt_compiler_needs_object 36533 36534# Create an old-style archive from a shared archive. 36535old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 36536 36537# Create a temporary old-style archive to link instead of a shared archive. 36538old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 36539 36540# Commands used to build a shared archive. 36541archive_cmds=$lt_archive_cmds 36542archive_expsym_cmds=$lt_archive_expsym_cmds 36543 36544# Commands used to build a loadable module if different from building 36545# a shared archive. 36546module_cmds=$lt_module_cmds 36547module_expsym_cmds=$lt_module_expsym_cmds 36548 36549# Whether we are building with GNU ld or not. 36550with_gnu_ld=$lt_with_gnu_ld 36551 36552# Flag that allows shared libraries with undefined symbols to be built. 36553allow_undefined_flag=$lt_allow_undefined_flag 36554 36555# Flag that enforces no undefined symbols. 36556no_undefined_flag=$lt_no_undefined_flag 36557 36558# Flag to hardcode \$libdir into a binary during linking. 36559# This must work even if \$libdir does not exist 36560hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 36561 36562# Whether we need a single "-rpath" flag with a separated argument. 36563hardcode_libdir_separator=$lt_hardcode_libdir_separator 36564 36565# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 36566# DIR into the resulting binary. 36567hardcode_direct=$hardcode_direct 36568 36569# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 36570# DIR into the resulting binary and the resulting library dependency is 36571# "absolute",i.e impossible to change by setting \$shlibpath_var if the 36572# library is relocated. 36573hardcode_direct_absolute=$hardcode_direct_absolute 36574 36575# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 36576# into the resulting binary. 36577hardcode_minus_L=$hardcode_minus_L 36578 36579# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 36580# into the resulting binary. 36581hardcode_shlibpath_var=$hardcode_shlibpath_var 36582 36583# Set to "yes" if building a shared library automatically hardcodes DIR 36584# into the library and all subsequent libraries and executables linked 36585# against it. 36586hardcode_automatic=$hardcode_automatic 36587 36588# Set to yes if linker adds runtime paths of dependent libraries 36589# to runtime path list. 36590inherit_rpath=$inherit_rpath 36591 36592# Whether libtool must link a program against all its dependency libraries. 36593link_all_deplibs=$link_all_deplibs 36594 36595# Set to "yes" if exported symbols are required. 36596always_export_symbols=$always_export_symbols 36597 36598# The commands to list exported symbols. 36599export_symbols_cmds=$lt_export_symbols_cmds 36600 36601# Symbols that should not be listed in the preloaded symbols. 36602exclude_expsyms=$lt_exclude_expsyms 36603 36604# Symbols that must always be exported. 36605include_expsyms=$lt_include_expsyms 36606 36607# Commands necessary for linking programs (against libraries) with templates. 36608prelink_cmds=$lt_prelink_cmds 36609 36610# Commands necessary for finishing linking programs. 36611postlink_cmds=$lt_postlink_cmds 36612 36613# Specify filename containing input files. 36614file_list_spec=$lt_file_list_spec 36615 36616# How to hardcode a shared library path into an executable. 36617hardcode_action=$hardcode_action 36618 36619# The directories searched by this compiler when creating a shared library. 36620compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 36621 36622# Dependencies to place before and after the objects being linked to 36623# create a shared library. 36624predep_objects=$lt_predep_objects 36625postdep_objects=$lt_postdep_objects 36626predeps=$lt_predeps 36627postdeps=$lt_postdeps 36628 36629# The library search path used internally by the compiler when linking 36630# a shared library. 36631compiler_lib_search_path=$lt_compiler_lib_search_path 36632 36633# ### END LIBTOOL CONFIG 36634 36635_LT_EOF 36636 36637 cat <<'_LT_EOF' >> "$cfgfile" 36638 36639# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 36640 36641# func_munge_path_list VARIABLE PATH 36642# ----------------------------------- 36643# VARIABLE is name of variable containing _space_ separated list of 36644# directories to be munged by the contents of PATH, which is string 36645# having a format: 36646# "DIR[:DIR]:" 36647# string "DIR[ DIR]" will be prepended to VARIABLE 36648# ":DIR[:DIR]" 36649# string "DIR[ DIR]" will be appended to VARIABLE 36650# "DIRP[:DIRP]::[DIRA:]DIRA" 36651# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 36652# "DIRA[ DIRA]" will be appended to VARIABLE 36653# "DIR[:DIR]" 36654# VARIABLE will be replaced by "DIR[ DIR]" 36655func_munge_path_list () 36656{ 36657 case x$2 in 36658 x) 36659 ;; 36660 *:) 36661 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 36662 ;; 36663 x:*) 36664 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 36665 ;; 36666 *::*) 36667 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 36668 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 36669 ;; 36670 *) 36671 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 36672 ;; 36673 esac 36674} 36675 36676 36677# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 36678func_cc_basename () 36679{ 36680 for cc_temp in $*""; do 36681 case $cc_temp in 36682 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 36683 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 36684 \-*) ;; 36685 *) break;; 36686 esac 36687 done 36688 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 36689} 36690 36691 36692# ### END FUNCTIONS SHARED WITH CONFIGURE 36693 36694_LT_EOF 36695 36696 case $host_os in 36697 aix3*) 36698 cat <<\_LT_EOF >> "$cfgfile" 36699# AIX sometimes has problems with the GCC collect2 program. For some 36700# reason, if we set the COLLECT_NAMES environment variable, the problems 36701# vanish in a puff of smoke. 36702if test set != "${COLLECT_NAMES+set}"; then 36703 COLLECT_NAMES= 36704 export COLLECT_NAMES 36705fi 36706_LT_EOF 36707 ;; 36708 esac 36709 36710 36711ltmain=$ac_aux_dir/ltmain.sh 36712 36713 36714 # We use sed instead of cat because bash on DJGPP gets confused if 36715 # if finds mixed CR/LF and LF-only lines. Since sed operates in 36716 # text mode, it properly converts lines to CR/LF. This bash problem 36717 # is reportedly fixed, but why not run on old versions too? 36718 sed '$q' "$ltmain" >> "$cfgfile" \ 36719 || (rm -f "$cfgfile"; exit 1) 36720 36721 mv -f "$cfgfile" "$ofile" || 36722 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 36723 chmod +x "$ofile" 36724 36725 36726 cat <<_LT_EOF >> "$ofile" 36727 36728# ### BEGIN LIBTOOL TAG CONFIG: CXX 36729 36730# The linker used to build libraries. 36731LD=$lt_LD_CXX 36732 36733# How to create reloadable object files. 36734reload_flag=$lt_reload_flag_CXX 36735reload_cmds=$lt_reload_cmds_CXX 36736 36737# Commands used to build an old-style archive. 36738old_archive_cmds=$lt_old_archive_cmds_CXX 36739 36740# A language specific compiler. 36741CC=$lt_compiler_CXX 36742 36743# Is the compiler the GNU compiler? 36744with_gcc=$GCC_CXX 36745 36746# Compiler flag to turn off builtin functions. 36747no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 36748 36749# Additional compiler flags for building library objects. 36750pic_flag=$lt_lt_prog_compiler_pic_CXX 36751 36752# How to pass a linker flag through the compiler. 36753wl=$lt_lt_prog_compiler_wl_CXX 36754 36755# Compiler flag to prevent dynamic linking. 36756link_static_flag=$lt_lt_prog_compiler_static_CXX 36757 36758# Does compiler simultaneously support -c and -o options? 36759compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 36760 36761# Whether or not to add -lc for building shared libraries. 36762build_libtool_need_lc=$archive_cmds_need_lc_CXX 36763 36764# Whether or not to disallow shared libs when runtime libs are static. 36765allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 36766 36767# Compiler flag to allow reflexive dlopens. 36768export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 36769 36770# Compiler flag to generate shared objects directly from archives. 36771whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 36772 36773# Whether the compiler copes with passing no objects directly. 36774compiler_needs_object=$lt_compiler_needs_object_CXX 36775 36776# Create an old-style archive from a shared archive. 36777old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 36778 36779# Create a temporary old-style archive to link instead of a shared archive. 36780old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 36781 36782# Commands used to build a shared archive. 36783archive_cmds=$lt_archive_cmds_CXX 36784archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 36785 36786# Commands used to build a loadable module if different from building 36787# a shared archive. 36788module_cmds=$lt_module_cmds_CXX 36789module_expsym_cmds=$lt_module_expsym_cmds_CXX 36790 36791# Whether we are building with GNU ld or not. 36792with_gnu_ld=$lt_with_gnu_ld_CXX 36793 36794# Flag that allows shared libraries with undefined symbols to be built. 36795allow_undefined_flag=$lt_allow_undefined_flag_CXX 36796 36797# Flag that enforces no undefined symbols. 36798no_undefined_flag=$lt_no_undefined_flag_CXX 36799 36800# Flag to hardcode \$libdir into a binary during linking. 36801# This must work even if \$libdir does not exist 36802hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 36803 36804# Whether we need a single "-rpath" flag with a separated argument. 36805hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 36806 36807# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 36808# DIR into the resulting binary. 36809hardcode_direct=$hardcode_direct_CXX 36810 36811# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 36812# DIR into the resulting binary and the resulting library dependency is 36813# "absolute",i.e impossible to change by setting \$shlibpath_var if the 36814# library is relocated. 36815hardcode_direct_absolute=$hardcode_direct_absolute_CXX 36816 36817# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 36818# into the resulting binary. 36819hardcode_minus_L=$hardcode_minus_L_CXX 36820 36821# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 36822# into the resulting binary. 36823hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 36824 36825# Set to "yes" if building a shared library automatically hardcodes DIR 36826# into the library and all subsequent libraries and executables linked 36827# against it. 36828hardcode_automatic=$hardcode_automatic_CXX 36829 36830# Set to yes if linker adds runtime paths of dependent libraries 36831# to runtime path list. 36832inherit_rpath=$inherit_rpath_CXX 36833 36834# Whether libtool must link a program against all its dependency libraries. 36835link_all_deplibs=$link_all_deplibs_CXX 36836 36837# Set to "yes" if exported symbols are required. 36838always_export_symbols=$always_export_symbols_CXX 36839 36840# The commands to list exported symbols. 36841export_symbols_cmds=$lt_export_symbols_cmds_CXX 36842 36843# Symbols that should not be listed in the preloaded symbols. 36844exclude_expsyms=$lt_exclude_expsyms_CXX 36845 36846# Symbols that must always be exported. 36847include_expsyms=$lt_include_expsyms_CXX 36848 36849# Commands necessary for linking programs (against libraries) with templates. 36850prelink_cmds=$lt_prelink_cmds_CXX 36851 36852# Commands necessary for finishing linking programs. 36853postlink_cmds=$lt_postlink_cmds_CXX 36854 36855# Specify filename containing input files. 36856file_list_spec=$lt_file_list_spec_CXX 36857 36858# How to hardcode a shared library path into an executable. 36859hardcode_action=$hardcode_action_CXX 36860 36861# The directories searched by this compiler when creating a shared library. 36862compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 36863 36864# Dependencies to place before and after the objects being linked to 36865# create a shared library. 36866predep_objects=$lt_predep_objects_CXX 36867postdep_objects=$lt_postdep_objects_CXX 36868predeps=$lt_predeps_CXX 36869postdeps=$lt_postdeps_CXX 36870 36871# The library search path used internally by the compiler when linking 36872# a shared library. 36873compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 36874 36875# ### END LIBTOOL TAG CONFIG: CXX 36876_LT_EOF 36877 36878 36879 cat <<_LT_EOF >> "$ofile" 36880 36881# ### BEGIN LIBTOOL TAG CONFIG: F77 36882 36883# The linker used to build libraries. 36884LD=$lt_LD_F77 36885 36886# How to create reloadable object files. 36887reload_flag=$lt_reload_flag_F77 36888reload_cmds=$lt_reload_cmds_F77 36889 36890# Commands used to build an old-style archive. 36891old_archive_cmds=$lt_old_archive_cmds_F77 36892 36893# A language specific compiler. 36894CC=$lt_compiler_F77 36895 36896# Is the compiler the GNU compiler? 36897with_gcc=$GCC_F77 36898 36899# Compiler flag to turn off builtin functions. 36900no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 36901 36902# Additional compiler flags for building library objects. 36903pic_flag=$lt_lt_prog_compiler_pic_F77 36904 36905# How to pass a linker flag through the compiler. 36906wl=$lt_lt_prog_compiler_wl_F77 36907 36908# Compiler flag to prevent dynamic linking. 36909link_static_flag=$lt_lt_prog_compiler_static_F77 36910 36911# Does compiler simultaneously support -c and -o options? 36912compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 36913 36914# Whether or not to add -lc for building shared libraries. 36915build_libtool_need_lc=$archive_cmds_need_lc_F77 36916 36917# Whether or not to disallow shared libs when runtime libs are static. 36918allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 36919 36920# Compiler flag to allow reflexive dlopens. 36921export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 36922 36923# Compiler flag to generate shared objects directly from archives. 36924whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 36925 36926# Whether the compiler copes with passing no objects directly. 36927compiler_needs_object=$lt_compiler_needs_object_F77 36928 36929# Create an old-style archive from a shared archive. 36930old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 36931 36932# Create a temporary old-style archive to link instead of a shared archive. 36933old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 36934 36935# Commands used to build a shared archive. 36936archive_cmds=$lt_archive_cmds_F77 36937archive_expsym_cmds=$lt_archive_expsym_cmds_F77 36938 36939# Commands used to build a loadable module if different from building 36940# a shared archive. 36941module_cmds=$lt_module_cmds_F77 36942module_expsym_cmds=$lt_module_expsym_cmds_F77 36943 36944# Whether we are building with GNU ld or not. 36945with_gnu_ld=$lt_with_gnu_ld_F77 36946 36947# Flag that allows shared libraries with undefined symbols to be built. 36948allow_undefined_flag=$lt_allow_undefined_flag_F77 36949 36950# Flag that enforces no undefined symbols. 36951no_undefined_flag=$lt_no_undefined_flag_F77 36952 36953# Flag to hardcode \$libdir into a binary during linking. 36954# This must work even if \$libdir does not exist 36955hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 36956 36957# Whether we need a single "-rpath" flag with a separated argument. 36958hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 36959 36960# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 36961# DIR into the resulting binary. 36962hardcode_direct=$hardcode_direct_F77 36963 36964# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 36965# DIR into the resulting binary and the resulting library dependency is 36966# "absolute",i.e impossible to change by setting \$shlibpath_var if the 36967# library is relocated. 36968hardcode_direct_absolute=$hardcode_direct_absolute_F77 36969 36970# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 36971# into the resulting binary. 36972hardcode_minus_L=$hardcode_minus_L_F77 36973 36974# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 36975# into the resulting binary. 36976hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 36977 36978# Set to "yes" if building a shared library automatically hardcodes DIR 36979# into the library and all subsequent libraries and executables linked 36980# against it. 36981hardcode_automatic=$hardcode_automatic_F77 36982 36983# Set to yes if linker adds runtime paths of dependent libraries 36984# to runtime path list. 36985inherit_rpath=$inherit_rpath_F77 36986 36987# Whether libtool must link a program against all its dependency libraries. 36988link_all_deplibs=$link_all_deplibs_F77 36989 36990# Set to "yes" if exported symbols are required. 36991always_export_symbols=$always_export_symbols_F77 36992 36993# The commands to list exported symbols. 36994export_symbols_cmds=$lt_export_symbols_cmds_F77 36995 36996# Symbols that should not be listed in the preloaded symbols. 36997exclude_expsyms=$lt_exclude_expsyms_F77 36998 36999# Symbols that must always be exported. 37000include_expsyms=$lt_include_expsyms_F77 37001 37002# Commands necessary for linking programs (against libraries) with templates. 37003prelink_cmds=$lt_prelink_cmds_F77 37004 37005# Commands necessary for finishing linking programs. 37006postlink_cmds=$lt_postlink_cmds_F77 37007 37008# Specify filename containing input files. 37009file_list_spec=$lt_file_list_spec_F77 37010 37011# How to hardcode a shared library path into an executable. 37012hardcode_action=$hardcode_action_F77 37013 37014# The directories searched by this compiler when creating a shared library. 37015compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77 37016 37017# Dependencies to place before and after the objects being linked to 37018# create a shared library. 37019predep_objects=$lt_predep_objects_F77 37020postdep_objects=$lt_postdep_objects_F77 37021predeps=$lt_predeps_F77 37022postdeps=$lt_postdeps_F77 37023 37024# The library search path used internally by the compiler when linking 37025# a shared library. 37026compiler_lib_search_path=$lt_compiler_lib_search_path_F77 37027 37028# ### END LIBTOOL TAG CONFIG: F77 37029_LT_EOF 37030 37031 37032 cat <<_LT_EOF >> "$ofile" 37033 37034# ### BEGIN LIBTOOL TAG CONFIG: FC 37035 37036# The linker used to build libraries. 37037LD=$lt_LD_FC 37038 37039# How to create reloadable object files. 37040reload_flag=$lt_reload_flag_FC 37041reload_cmds=$lt_reload_cmds_FC 37042 37043# Commands used to build an old-style archive. 37044old_archive_cmds=$lt_old_archive_cmds_FC 37045 37046# A language specific compiler. 37047CC=$lt_compiler_FC 37048 37049# Is the compiler the GNU compiler? 37050with_gcc=$GCC_FC 37051 37052# Compiler flag to turn off builtin functions. 37053no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC 37054 37055# Additional compiler flags for building library objects. 37056pic_flag=$lt_lt_prog_compiler_pic_FC 37057 37058# How to pass a linker flag through the compiler. 37059wl=$lt_lt_prog_compiler_wl_FC 37060 37061# Compiler flag to prevent dynamic linking. 37062link_static_flag=$lt_lt_prog_compiler_static_FC 37063 37064# Does compiler simultaneously support -c and -o options? 37065compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC 37066 37067# Whether or not to add -lc for building shared libraries. 37068build_libtool_need_lc=$archive_cmds_need_lc_FC 37069 37070# Whether or not to disallow shared libs when runtime libs are static. 37071allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC 37072 37073# Compiler flag to allow reflexive dlopens. 37074export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC 37075 37076# Compiler flag to generate shared objects directly from archives. 37077whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC 37078 37079# Whether the compiler copes with passing no objects directly. 37080compiler_needs_object=$lt_compiler_needs_object_FC 37081 37082# Create an old-style archive from a shared archive. 37083old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC 37084 37085# Create a temporary old-style archive to link instead of a shared archive. 37086old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC 37087 37088# Commands used to build a shared archive. 37089archive_cmds=$lt_archive_cmds_FC 37090archive_expsym_cmds=$lt_archive_expsym_cmds_FC 37091 37092# Commands used to build a loadable module if different from building 37093# a shared archive. 37094module_cmds=$lt_module_cmds_FC 37095module_expsym_cmds=$lt_module_expsym_cmds_FC 37096 37097# Whether we are building with GNU ld or not. 37098with_gnu_ld=$lt_with_gnu_ld_FC 37099 37100# Flag that allows shared libraries with undefined symbols to be built. 37101allow_undefined_flag=$lt_allow_undefined_flag_FC 37102 37103# Flag that enforces no undefined symbols. 37104no_undefined_flag=$lt_no_undefined_flag_FC 37105 37106# Flag to hardcode \$libdir into a binary during linking. 37107# This must work even if \$libdir does not exist 37108hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC 37109 37110# Whether we need a single "-rpath" flag with a separated argument. 37111hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC 37112 37113# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 37114# DIR into the resulting binary. 37115hardcode_direct=$hardcode_direct_FC 37116 37117# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 37118# DIR into the resulting binary and the resulting library dependency is 37119# "absolute",i.e impossible to change by setting \$shlibpath_var if the 37120# library is relocated. 37121hardcode_direct_absolute=$hardcode_direct_absolute_FC 37122 37123# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 37124# into the resulting binary. 37125hardcode_minus_L=$hardcode_minus_L_FC 37126 37127# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 37128# into the resulting binary. 37129hardcode_shlibpath_var=$hardcode_shlibpath_var_FC 37130 37131# Set to "yes" if building a shared library automatically hardcodes DIR 37132# into the library and all subsequent libraries and executables linked 37133# against it. 37134hardcode_automatic=$hardcode_automatic_FC 37135 37136# Set to yes if linker adds runtime paths of dependent libraries 37137# to runtime path list. 37138inherit_rpath=$inherit_rpath_FC 37139 37140# Whether libtool must link a program against all its dependency libraries. 37141link_all_deplibs=$link_all_deplibs_FC 37142 37143# Set to "yes" if exported symbols are required. 37144always_export_symbols=$always_export_symbols_FC 37145 37146# The commands to list exported symbols. 37147export_symbols_cmds=$lt_export_symbols_cmds_FC 37148 37149# Symbols that should not be listed in the preloaded symbols. 37150exclude_expsyms=$lt_exclude_expsyms_FC 37151 37152# Symbols that must always be exported. 37153include_expsyms=$lt_include_expsyms_FC 37154 37155# Commands necessary for linking programs (against libraries) with templates. 37156prelink_cmds=$lt_prelink_cmds_FC 37157 37158# Commands necessary for finishing linking programs. 37159postlink_cmds=$lt_postlink_cmds_FC 37160 37161# Specify filename containing input files. 37162file_list_spec=$lt_file_list_spec_FC 37163 37164# How to hardcode a shared library path into an executable. 37165hardcode_action=$hardcode_action_FC 37166 37167# The directories searched by this compiler when creating a shared library. 37168compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC 37169 37170# Dependencies to place before and after the objects being linked to 37171# create a shared library. 37172predep_objects=$lt_predep_objects_FC 37173postdep_objects=$lt_postdep_objects_FC 37174predeps=$lt_predeps_FC 37175postdeps=$lt_postdeps_FC 37176 37177# The library search path used internally by the compiler when linking 37178# a shared library. 37179compiler_lib_search_path=$lt_compiler_lib_search_path_FC 37180 37181# ### END LIBTOOL TAG CONFIG: FC 37182_LT_EOF 37183 37184 ;; 37185 "tests/python/atconfig":C) cat >tests/python/atconfig <<ATEOF 37186# Configurable variable values for building test suites. 37187# Generated by $0. 37188# Copyright (C) 2012 Free Software Foundation, Inc. 37189 37190# The test suite will define top_srcdir=$at_top_srcdir/../.. etc. 37191at_testdir='tests/python' 37192abs_builddir='$ac_abs_builddir' 37193at_srcdir='$ac_srcdir' 37194abs_srcdir='$ac_abs_srcdir' 37195at_top_srcdir='$ac_top_srcdir' 37196abs_top_srcdir='$ac_abs_top_srcdir' 37197at_top_build_prefix='$ac_top_build_prefix' 37198abs_top_builddir='$ac_abs_top_builddir' 37199 37200# Backward compatibility with Autotest <= 2.59b: 37201at_top_builddir=\$at_top_build_prefix 37202 37203AUTOTEST_PATH='tests/python' 37204 37205SHELL=\${CONFIG_SHELL-'$SHELL'} 37206ATEOF 37207 ;; 37208 "tests/usecases/python/atconfig":C) cat >tests/usecases/python/atconfig <<ATEOF 37209# Configurable variable values for building test suites. 37210# Generated by $0. 37211# Copyright (C) 2012 Free Software Foundation, Inc. 37212 37213# The test suite will define top_srcdir=$at_top_srcdir/../.. etc. 37214at_testdir='tests/usecases/python' 37215abs_builddir='$ac_abs_builddir' 37216at_srcdir='$ac_srcdir' 37217abs_srcdir='$ac_abs_srcdir' 37218at_top_srcdir='$ac_top_srcdir' 37219abs_top_srcdir='$ac_abs_top_srcdir' 37220at_top_build_prefix='$ac_top_build_prefix' 37221abs_top_builddir='$ac_abs_top_builddir' 37222 37223# Backward compatibility with Autotest <= 2.59b: 37224at_top_builddir=\$at_top_build_prefix 37225 37226AUTOTEST_PATH='tests/usecases/python' 37227 37228SHELL=\${CONFIG_SHELL-'$SHELL'} 37229ATEOF 37230 ;; 37231 37232 esac 37233done # for ac_tag 37234 37235 37236as_fn_exit 0 37237_ACEOF 37238ac_clean_files=$ac_clean_files_save 37239 37240test $ac_write_fail = 0 || 37241 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 37242 37243 37244# configure is writing to config.log, and then calls config.status. 37245# config.status does its own redirection, appending to config.log. 37246# Unfortunately, on DOS this fails, as config.log is still kept open 37247# by configure, so config.status won't be able to write to it; its 37248# output is simply discarded. So we exec the FD to /dev/null, 37249# effectively closing config.log, so it can be properly (re)opened and 37250# appended to by config.status. When coming back to configure, we 37251# need to make the FD available again. 37252if test "$no_create" != yes; then 37253 ac_cs_success=: 37254 ac_config_status_args= 37255 test "$silent" = yes && 37256 ac_config_status_args="$ac_config_status_args --quiet" 37257 exec 5>/dev/null 37258 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 37259 exec 5>>config.log 37260 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 37261 # would make configure fail if this is the last instruction. 37262 $ac_cs_success || as_fn_exit 1 37263fi 37264if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 37265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 37266$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 37267fi 37268 37269 37270cat src/libmed3.settings 37271 37272 37273